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
package/dist/web-cjs/bundle.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
'use strict';function _regeneratorRuntime(){"use strict";/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */_regeneratorRuntime=function _regeneratorRuntime(){return e;};var t,e={},r=Object.prototype,n=r.hasOwnProperty,o=Object.defineProperty||function(t,e,r){t[e]=r.value;},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",c=i.asyncIterator||"@@asyncIterator",u=i.toStringTag||"@@toStringTag";function define(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e];}try{define({},"");}catch(t){define=function define(t,e,r){return t[e]=r;};}function wrap(t,e,r,n){var i=e&&e.prototype instanceof Generator?e:Generator,a=Object.create(i.prototype),c=new Context(n||[]);return o(a,"_invoke",{value:makeInvokeMethod(t,r,c)}),a;}function tryCatch(t,e,r){try{return{type:"normal",arg:t.call(e,r)};}catch(t){return{type:"throw",arg:t};}}e.wrap=wrap;var h="suspendedStart",l="suspendedYield",f="executing",s="completed",y={};function Generator(){}function GeneratorFunction(){}function GeneratorFunctionPrototype(){}var p={};define(p,a,function(){return this;});var d=Object.getPrototypeOf,v=d&&d(d(values([])));v&&v!==r&&n.call(v,a)&&(p=v);var g=GeneratorFunctionPrototype.prototype=Generator.prototype=Object.create(p);function defineIteratorMethods(t){["next","throw","return"].forEach(function(e){define(t,e,function(t){return this._invoke(e,t);});});}function AsyncIterator(t,e){function invoke(r,o,i,a){var c=tryCatch(t[r],t,o);if("throw"!==c.type){var u=c.arg,h=u.value;return h&&"object"==_typeof(h)&&n.call(h,"__await")?e.resolve(h.__await).then(function(t){invoke("next",t,i,a);},function(t){invoke("throw",t,i,a);}):e.resolve(h).then(function(t){u.value=t,i(u);},function(t){return invoke("throw",t,i,a);});}a(c.arg);}var r;o(this,"_invoke",{value:function value(t,n){function callInvokeWithMethodAndArg(){return new e(function(e,r){invoke(t,n,e,r);});}return r=r?r.then(callInvokeWithMethodAndArg,callInvokeWithMethodAndArg):callInvokeWithMethodAndArg();}});}function makeInvokeMethod(e,r,n){var o=h;return function(i,a){if(o===f)throw Error("Generator is already running");if(o===s){if("throw"===i)throw a;return{value:t,done:!0};}for(n.method=i,n.arg=a;;){var c=n.delegate;if(c){var u=maybeInvokeDelegate(c,n);if(u){if(u===y)continue;return u;}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===h)throw o=s,n.arg;n.dispatchException(n.arg);}else"return"===n.method&&n.abrupt("return",n.arg);o=f;var p=tryCatch(e,r,n);if("normal"===p.type){if(o=n.done?s:l,p.arg===y)continue;return{value:p.arg,done:n.done};}"throw"===p.type&&(o=s,n.method="throw",n.arg=p.arg);}};}function maybeInvokeDelegate(e,r){var n=r.method,o=e.iterator[n];if(o===t)return r.delegate=null,"throw"===n&&e.iterator["return"]&&(r.method="return",r.arg=t,maybeInvokeDelegate(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),y;var i=tryCatch(o,e.iterator,r.arg);if("throw"===i.type)return r.method="throw",r.arg=i.arg,r.delegate=null,y;var a=i.arg;return a?a.done?(r[e.resultName]=a.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,y):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,y);}function pushTryEntry(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e);}function resetTryEntry(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e;}function Context(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(pushTryEntry,this),this.reset(!0);}function values(e){if(e||""===e){var r=e[a];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,i=function next(){for(;++o<e.length;)if(n.call(e,o))return next.value=e[o],next.done=!1,next;return next.value=t,next.done=!0,next;};return i.next=i;}}throw new TypeError(_typeof(e)+" is not iterable");}return GeneratorFunction.prototype=GeneratorFunctionPrototype,o(g,"constructor",{value:GeneratorFunctionPrototype,configurable:!0}),o(GeneratorFunctionPrototype,"constructor",{value:GeneratorFunction,configurable:!0}),GeneratorFunction.displayName=define(GeneratorFunctionPrototype,u,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===GeneratorFunction||"GeneratorFunction"===(e.displayName||e.name));},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,GeneratorFunctionPrototype):(t.__proto__=GeneratorFunctionPrototype,define(t,u,"GeneratorFunction")),t.prototype=Object.create(g),t;},e.awrap=function(t){return{__await:t};},defineIteratorMethods(AsyncIterator.prototype),define(AsyncIterator.prototype,c,function(){return this;}),e.AsyncIterator=AsyncIterator,e.async=function(t,r,n,o,i){void 0===i&&(i=Promise);var a=new AsyncIterator(wrap(t,r,n,o),i);return e.isGeneratorFunction(r)?a:a.next().then(function(t){return t.done?t.value:a.next();});},defineIteratorMethods(g),define(g,u,"Generator"),define(g,a,function(){return this;}),define(g,"toString",function(){return"[object Generator]";}),e.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function next(){for(;r.length;){var t=r.pop();if(t in e)return next.value=t,next.done=!1,next;}return next.done=!0,next;};},e.values=values,Context.prototype={constructor:Context,reset:function reset(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(resetTryEntry),!e)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=t);},stop:function stop(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval;},dispatchException:function dispatchException(e){if(this.done)throw e;var r=this;function handle(n,o){return a.type="throw",a.arg=e,r.next=n,o&&(r.method="next",r.arg=t),!!o;}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return handle("end");if(i.tryLoc<=this.prev){var c=n.call(i,"catchLoc"),u=n.call(i,"finallyLoc");if(c&&u){if(this.prev<i.catchLoc)return handle(i.catchLoc,!0);if(this.prev<i.finallyLoc)return handle(i.finallyLoc);}else if(c){if(this.prev<i.catchLoc)return handle(i.catchLoc,!0);}else{if(!u)throw Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return handle(i.finallyLoc);}}}},abrupt:function abrupt(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break;}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,y):this.complete(a);},complete:function complete(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),y;},finish:function finish(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),resetTryEntry(r),y;}},"catch":function _catch(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;resetTryEntry(r);}return o;}}throw Error("illegal catch attempt");},delegateYield:function delegateYield(e,r,n){return this.delegate={iterator:values(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),y;}},e;}function asyncGeneratorStep(gen,resolve,reject,_next,_throw,key,arg){try{var info=gen[key](arg);var value=info.value;}catch(error){reject(error);return;}if(info.done){resolve(value);}else{Promise.resolve(value).then(_next,_throw);}}function _asyncToGenerator(fn){return function(){var self=this,args=arguments;return new Promise(function(resolve,reject){var gen=fn.apply(self,args);function _next(value){asyncGeneratorStep(gen,resolve,reject,_next,_throw,"next",value);}function _throw(err){asyncGeneratorStep(gen,resolve,reject,_next,_throw,"throw",err);}_next(undefined);});};}function _toConsumableArray(arr){return _arrayWithoutHoles(arr)||_iterableToArray(arr)||_unsupportedIterableToArray(arr)||_nonIterableSpread();}function _nonIterableSpread(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");}function _arrayWithoutHoles(arr){if(Array.isArray(arr))return _arrayLikeToArray(arr);}function _toArray(arr){return _arrayWithHoles(arr)||_iterableToArray(arr)||_unsupportedIterableToArray(arr)||_nonIterableRest();}function _iterableToArray(iter){if(typeof Symbol!=="undefined"&&iter[Symbol.iterator]!=null||iter["@@iterator"]!=null)return Array.from(iter);}function _slicedToArray(arr,i){return _arrayWithHoles(arr)||_iterableToArrayLimit(arr,i)||_unsupportedIterableToArray(arr,i)||_nonIterableRest();}function _nonIterableRest(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");}function _unsupportedIterableToArray(o,minLen){if(!o)return;if(typeof o==="string")return _arrayLikeToArray(o,minLen);var n=Object.prototype.toString.call(o).slice(8,-1);if(n==="Object"&&o.constructor)n=o.constructor.name;if(n==="Map"||n==="Set")return Array.from(o);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return _arrayLikeToArray(o,minLen);}function _arrayLikeToArray(arr,len){if(len==null||len>arr.length)len=arr.length;for(var i=0,arr2=new Array(len);i<len;i++)arr2[i]=arr[i];return arr2;}function _iterableToArrayLimit(r,l){var t=null==r?null:"undefined"!=typeof Symbol&&r[Symbol.iterator]||r["@@iterator"];if(null!=t){var e,n,i,u,a=[],f=!0,o=!1;try{if(i=(t=t.call(r)).next,0===l){if(Object(t)!==t)return;f=!1;}else for(;!(f=(e=i.call(t)).done)&&(a.push(e.value),a.length!==l);f=!0);}catch(r){o=!0,n=r;}finally{try{if(!f&&null!=t["return"]&&(u=t["return"](),Object(u)!==u))return;}finally{if(o)throw n;}}return a;}}function _arrayWithHoles(arr){if(Array.isArray(arr))return arr;}function ownKeys(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);r&&(o=o.filter(function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable;})),t.push.apply(t,o);}return t;}function _objectSpread(e){for(var r=1;r<arguments.length;r++){var t=null!=arguments[r]?arguments[r]:{};r%2?ownKeys(Object(t),!0).forEach(function(r){_defineProperty(e,r,t[r]);}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):ownKeys(Object(t)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r));});}return e;}function _defineProperty(obj,key,value){key=_toPropertyKey(key);if(key in obj){Object.defineProperty(obj,key,{value:value,enumerable:true,configurable:true,writable:true});}else{obj[key]=value;}return obj;}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function");}}function _defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||false;descriptor.configurable=true;if("value"in descriptor)descriptor.writable=true;Object.defineProperty(target,_toPropertyKey(descriptor.key),descriptor);}}function _createClass(Constructor,protoProps,staticProps){if(protoProps)_defineProperties(Constructor.prototype,protoProps);if(staticProps)_defineProperties(Constructor,staticProps);Object.defineProperty(Constructor,"prototype",{writable:false});return Constructor;}function _toPropertyKey(t){var i=_toPrimitive(t,"string");return"symbol"==_typeof(i)?i:i+"";}function _toPrimitive(t,r){if("object"!=_typeof(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var i=e.call(t,r||"default");if("object"!=_typeof(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.");}return("string"===r?String:Number)(t);}function _typeof(o){"@babel/helpers - typeof";return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(o){return typeof o;}:function(o){return o&&"function"==typeof Symbol&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o;},_typeof(o);}var qs=require('qs');function _interopDefaultLegacy(e){return e&&_typeof(e)==='object'&&'default'in e?e:{'default':e};}var qs__default=/*#__PURE__*/_interopDefaultLegacy(qs);var PureCloudRegionHosts={us_east_1:'mypurecloud.com',eu_west_1:'mypurecloud.ie',ap_southeast_2:'mypurecloud.com.au',ap_northeast_1:'mypurecloud.jp',eu_central_1:'mypurecloud.de',us_west_2:'usw2.pure.cloud',ca_central_1:'cac1.pure.cloud',ap_northeast_2:'apne2.pure.cloud',eu_west_2:'euw2.pure.cloud',ap_south_1:'aps1.pure.cloud',us_east_2:'use2.us-gov-pure.cloud',sa_east_1:'sae1.pure.cloud',me_central_1:'mec1.pure.cloud',ap_northeast_3:'apne3.pure.cloud',eu_central_2:'euc2.pure.cloud'};var global$1=typeof global!=="undefined"?global:typeof self!=="undefined"?self:typeof window!=="undefined"?window:{};var lookup=[];var revLookup=[];var Arr=typeof Uint8Array!=='undefined'?Uint8Array:Array;var inited=false;function init(){inited=true;var code='ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/';for(var i=0,len=code.length;i<len;++i){lookup[i]=code[i];revLookup[code.charCodeAt(i)]=i;}revLookup['-'.charCodeAt(0)]=62;revLookup['_'.charCodeAt(0)]=63;}function toByteArray(b64){if(!inited){init();}var i,j,l,tmp,placeHolders,arr;var len=b64.length;if(len%4>0){throw new Error('Invalid string. Length must be a multiple of 4');}// the number of equal signs (place holders)
|
|
1
|
+
'use strict';function asyncGeneratorStep(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)
|
|
2
2
|
// if there are two placeholders, than the two characters before it
|
|
3
3
|
// represent one byte
|
|
4
4
|
// if there is only one, then the three characters before it represent 2 bytes
|
|
@@ -260,7 +260,7 @@ kind==='object'&&isFunction(thing.toString)&&thing.toString()==='[object FormDat
|
|
|
260
260
|
* @param {*} val The value to test
|
|
261
261
|
*
|
|
262
262
|
* @returns {boolean} True if value is a URLSearchParams object, otherwise false
|
|
263
|
-
*/var isURLSearchParams=kindOfTest('URLSearchParams');/**
|
|
263
|
+
*/var isURLSearchParams=kindOfTest('URLSearchParams');var _map=['ReadableStream','Request','Response','Headers'].map(kindOfTest),_map2=_slicedToArray(_map,4),isReadableStream=_map2[0],isRequest=_map2[1],isResponse=_map2[2],isHeaders=_map2[3];/**
|
|
264
264
|
* Trim excess whitespace off the beginning and end of a string
|
|
265
265
|
*
|
|
266
266
|
* @param {String} str The String to trim
|
|
@@ -280,7 +280,7 @@ kind==='object'&&isFunction(thing.toString)&&thing.toString()==='[object FormDat
|
|
|
280
280
|
*
|
|
281
281
|
* @param {Boolean} [allOwnKeys = false]
|
|
282
282
|
* @returns {any}
|
|
283
|
-
*/function forEach(obj,fn){var
|
|
283
|
+
*/function forEach(obj,fn){var _ref2=arguments.length>2&&arguments[2]!==undefined?arguments[2]:{},_ref2$allOwnKeys=_ref2.allOwnKeys,allOwnKeys=_ref2$allOwnKeys===void 0?false:_ref2$allOwnKeys;// Don't bother if no value provided
|
|
284
284
|
if(obj===null||typeof obj==='undefined'){return;}var i;var l;// Force an array if not already something iterable
|
|
285
285
|
if(_typeof(obj)!=='object'){/*eslint no-param-reassign:0*/obj=[obj];}if(isArray(obj)){// Iterate over array values
|
|
286
286
|
for(i=0,l=obj.length;i<l;i++){fn.call(null,obj[i],i,obj);}}else{// Iterate over object keys
|
|
@@ -301,7 +301,7 @@ var keys=allOwnKeys?Object.getOwnPropertyNames(obj):Object.keys(obj);var len=key
|
|
|
301
301
|
* @param {Object} obj1 Object to merge
|
|
302
302
|
*
|
|
303
303
|
* @returns {Object} Result of all merge properties
|
|
304
|
-
*/function merge(/* obj1, obj2, obj3, ... */){var
|
|
304
|
+
*/function merge(/* obj1, obj2, obj3, ... */){var _ref3=isContextDefined(this)&&this||{},caseless=_ref3.caseless;var result={};var assignValue=function assignValue(val,key){var targetKey=caseless&&findKey(result,key)||key;if(isPlainObject(result[targetKey])&&isPlainObject(val)){result[targetKey]=merge(result[targetKey],val);}else if(isPlainObject(val)){result[targetKey]=merge({},val);}else if(isArray(val)){result[targetKey]=val.slice();}else{result[targetKey]=val;}};for(var i=0,l=arguments.length;i<l;i++){arguments[i]&&forEach(arguments[i],assignValue);}return result;}/**
|
|
305
305
|
* Extends object a by mutably adding to it the properties of object b.
|
|
306
306
|
*
|
|
307
307
|
* @param {Object} a The object to be extended
|
|
@@ -310,7 +310,7 @@ var keys=allOwnKeys?Object.getOwnPropertyNames(obj):Object.keys(obj);var len=key
|
|
|
310
310
|
*
|
|
311
311
|
* @param {Boolean} [allOwnKeys]
|
|
312
312
|
* @returns {Object} The resulting value of object a
|
|
313
|
-
*/var extend=function extend(a,b,thisArg){var
|
|
313
|
+
*/var extend=function extend(a,b,thisArg){var _ref4=arguments.length>3&&arguments[3]!==undefined?arguments[3]:{},allOwnKeys=_ref4.allOwnKeys;forEach(b,function(val,key){if(thisArg&&isFunction(val)){a[key]=bind(val,thisArg);}else{a[key]=val;}},{allOwnKeys:allOwnKeys});return a;};/**
|
|
314
314
|
* Remove byte order marker. This catches EF BB BF (the UTF-8 BOM)
|
|
315
315
|
*
|
|
316
316
|
* @param {string} content with BOM
|
|
@@ -370,7 +370,7 @@ return function(thing){return TypedArray&&thing instanceof TypedArray;};}(typeof
|
|
|
370
370
|
* @param {string} str - The string to search.
|
|
371
371
|
*
|
|
372
372
|
* @returns {Array<boolean>}
|
|
373
|
-
*/var matchAll=function matchAll(regExp,str){var matches;var arr=[];while((matches=regExp.exec(str))!==null){arr.push(matches);}return arr;};/* Checking if the kindOfTest function returns true when passed an HTMLFormElement. */var isHTMLForm=kindOfTest('HTMLFormElement');var toCamelCase=function toCamelCase(str){return str.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function replacer(m,p1,p2){return p1.toUpperCase()+p2;});};/* Creating a function that will check if an object has a property. */var hasOwnProperty=function(
|
|
373
|
+
*/var matchAll=function matchAll(regExp,str){var matches;var arr=[];while((matches=regExp.exec(str))!==null){arr.push(matches);}return arr;};/* Checking if the kindOfTest function returns true when passed an HTMLFormElement. */var isHTMLForm=kindOfTest('HTMLFormElement');var toCamelCase=function toCamelCase(str){return str.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function replacer(m,p1,p2){return p1.toUpperCase()+p2;});};/* Creating a function that will check if an object has a property. */var hasOwnProperty=function(_ref5){var hasOwnProperty=_ref5.hasOwnProperty;return function(obj,prop){return hasOwnProperty.call(obj,prop);};}(Object.prototype);/**
|
|
374
374
|
* Determine if a value is a RegExp object
|
|
375
375
|
*
|
|
376
376
|
* @param {*} val The value to test
|
|
@@ -380,13 +380,13 @@ return function(thing){return TypedArray&&thing instanceof TypedArray;};}(typeof
|
|
|
380
380
|
* Makes all methods read-only
|
|
381
381
|
* @param {Object} obj
|
|
382
382
|
*/var freezeMethods=function freezeMethods(obj){reduceDescriptors(obj,function(descriptor,name){// skip restricted props in strict mode
|
|
383
|
-
if(isFunction(obj)&&['arguments','caller','callee'].indexOf(name)!==-1){return false;}var value=obj[name];if(!isFunction(value))return;descriptor.enumerable=false;if('writable'in descriptor){descriptor.writable=false;return;}if(!descriptor.set){descriptor.set=function(){throw Error('Can not rewrite read-only method \''+name+'\'');};}});};var toObjectSet=function toObjectSet(arrayOrString,delimiter){var obj={};var define=function define(arr){arr.forEach(function(value){obj[value]=true;});};isArray(arrayOrString)?define(arrayOrString):define(String(arrayOrString).split(delimiter));return obj;};var noop=function noop(){};var toFiniteNumber=function toFiniteNumber(value,defaultValue){
|
|
383
|
+
if(isFunction(obj)&&['arguments','caller','callee'].indexOf(name)!==-1){return false;}var value=obj[name];if(!isFunction(value))return;descriptor.enumerable=false;if('writable'in descriptor){descriptor.writable=false;return;}if(!descriptor.set){descriptor.set=function(){throw Error('Can not rewrite read-only method \''+name+'\'');};}});};var toObjectSet=function toObjectSet(arrayOrString,delimiter){var obj={};var define=function define(arr){arr.forEach(function(value){obj[value]=true;});};isArray(arrayOrString)?define(arrayOrString):define(String(arrayOrString).split(delimiter));return obj;};var noop=function noop(){};var toFiniteNumber=function toFiniteNumber(value,defaultValue){return value!=null&&Number.isFinite(value=+value)?value:defaultValue;};var ALPHA='abcdefghijklmnopqrstuvwxyz';var DIGIT='0123456789';var ALPHABET={DIGIT:DIGIT,ALPHA:ALPHA,ALPHA_DIGIT:ALPHA+ALPHA.toUpperCase()+DIGIT};var generateString=function generateString(){var size=arguments.length>0&&arguments[0]!==undefined?arguments[0]:16;var alphabet=arguments.length>1&&arguments[1]!==undefined?arguments[1]:ALPHABET.ALPHA_DIGIT;var str='';var length=alphabet.length;while(size--){str+=alphabet[Math.random()*length|0];}return str;};/**
|
|
384
384
|
* If the thing is a FormData object, return true, otherwise return false.
|
|
385
385
|
*
|
|
386
386
|
* @param {unknown} thing - The thing to check.
|
|
387
387
|
*
|
|
388
388
|
* @returns {boolean}
|
|
389
|
-
*/function isSpecCompliantForm(thing){return!!(thing&&isFunction(thing.append)&&thing[Symbol.toStringTag]==='FormData'&&thing[Symbol.iterator]);}var toJSONObject=function toJSONObject(obj){var stack=new Array(10);var visit=function visit(source,i){if(isObject(source)){if(stack.indexOf(source)>=0){return;}if(!('toJSON'in source)){stack[i]=source;var target=isArray(source)?[]:{};forEach(source,function(value,key){var reducedValue=visit(value,i+1);!isUndefined(reducedValue)&&(target[key]=reducedValue);});stack[i]=undefined;return target;}}return source;};return visit(obj,0);};var isAsyncFn=kindOfTest('AsyncFunction');var isThenable=function isThenable(thing){return thing&&(isObject(thing)||isFunction(thing))&&isFunction(thing.then)&&isFunction(thing["catch"]);};var utils$1={isArray:isArray,isArrayBuffer:isArrayBuffer,isBuffer:isBuffer,isFormData:isFormData,isArrayBufferView:isArrayBufferView,isString:isString,isNumber:isNumber,isBoolean:isBoolean,isObject:isObject,isPlainObject:isPlainObject,isUndefined:isUndefined,isDate:isDate,isFile:isFile,isBlob:isBlob,isRegExp:isRegExp,isFunction:isFunction,isStream:isStream,isURLSearchParams:isURLSearchParams,isTypedArray:isTypedArray,isFileList:isFileList,forEach:forEach,merge:merge,extend:extend,trim:trim,stripBOM:stripBOM,inherits:inherits,toFlatObject:toFlatObject,kindOf:kindOf,kindOfTest:kindOfTest,endsWith:endsWith,toArray:toArray,forEachEntry:forEachEntry,matchAll:matchAll,isHTMLForm:isHTMLForm,hasOwnProperty:hasOwnProperty,hasOwnProp:hasOwnProperty,// an alias to avoid ESLint no-prototype-builtins detection
|
|
389
|
+
*/function isSpecCompliantForm(thing){return!!(thing&&isFunction(thing.append)&&thing[Symbol.toStringTag]==='FormData'&&thing[Symbol.iterator]);}var toJSONObject=function toJSONObject(obj){var stack=new Array(10);var visit=function visit(source,i){if(isObject(source)){if(stack.indexOf(source)>=0){return;}if(!('toJSON'in source)){stack[i]=source;var target=isArray(source)?[]:{};forEach(source,function(value,key){var reducedValue=visit(value,i+1);!isUndefined(reducedValue)&&(target[key]=reducedValue);});stack[i]=undefined;return target;}}return source;};return visit(obj,0);};var isAsyncFn=kindOfTest('AsyncFunction');var isThenable=function isThenable(thing){return thing&&(isObject(thing)||isFunction(thing))&&isFunction(thing.then)&&isFunction(thing["catch"]);};var utils$1={isArray:isArray,isArrayBuffer:isArrayBuffer,isBuffer:isBuffer,isFormData:isFormData,isArrayBufferView:isArrayBufferView,isString:isString,isNumber:isNumber,isBoolean:isBoolean,isObject:isObject,isPlainObject:isPlainObject,isReadableStream:isReadableStream,isRequest:isRequest,isResponse:isResponse,isHeaders:isHeaders,isUndefined:isUndefined,isDate:isDate,isFile:isFile,isBlob:isBlob,isRegExp:isRegExp,isFunction:isFunction,isStream:isStream,isURLSearchParams:isURLSearchParams,isTypedArray:isTypedArray,isFileList:isFileList,forEach:forEach,merge:merge,extend:extend,trim:trim,stripBOM:stripBOM,inherits:inherits,toFlatObject:toFlatObject,kindOf:kindOf,kindOfTest:kindOfTest,endsWith:endsWith,toArray:toArray,forEachEntry:forEachEntry,matchAll:matchAll,isHTMLForm:isHTMLForm,hasOwnProperty:hasOwnProperty,hasOwnProp:hasOwnProperty,// an alias to avoid ESLint no-prototype-builtins detection
|
|
390
390
|
reduceDescriptors:reduceDescriptors,freezeMethods:freezeMethods,toObjectSet:toObjectSet,toCamelCase:toCamelCase,noop:noop,toFiniteNumber:toFiniteNumber,findKey:findKey,global:_global,isContextDefined:isContextDefined,ALPHABET:ALPHABET,generateString:generateString,isSpecCompliantForm:isSpecCompliantForm,toJSONObject:toJSONObject,isAsyncFn:isAsyncFn,isThenable:isThenable};/**
|
|
391
391
|
* Create an Error with the specified message, config, error code, request and response.
|
|
392
392
|
*
|
|
@@ -548,7 +548,7 @@ indexes===true?renderKey([key],index,dots):indexes===null?key:key+'[]',convertVa
|
|
|
548
548
|
* `typeof window !== 'undefined' && typeof document !== 'undefined'`.
|
|
549
549
|
* This leads to a problem when axios post `FormData` in webWorker
|
|
550
550
|
*/var hasStandardBrowserWebWorkerEnv=function(){return typeof WorkerGlobalScope!=='undefined'&&// eslint-disable-next-line no-undef
|
|
551
|
-
self instanceof WorkerGlobalScope&&typeof self.importScripts==='function';}();var utils=/*#__PURE__*/Object.freeze({__proto__:null,hasBrowserEnv:hasBrowserEnv,hasStandardBrowserWebWorkerEnv:hasStandardBrowserWebWorkerEnv,hasStandardBrowserEnv:hasStandardBrowserEnv});var platform=_objectSpread(_objectSpread({},utils),platform$1);function toURLEncodedForm(data,options){return toFormData(data,new platform.classes.URLSearchParams(),Object.assign({visitor:function visitor(value,key,path,helpers){if(platform.isNode&&utils$1.isBuffer(value)){this.append(key,value.toString('base64'));return false;}return helpers.defaultVisitor.apply(this,arguments);}},options));}/**
|
|
551
|
+
self instanceof WorkerGlobalScope&&typeof self.importScripts==='function';}();var origin=hasBrowserEnv&&window.location.href||'http://localhost';var utils=/*#__PURE__*/Object.freeze({__proto__:null,hasBrowserEnv:hasBrowserEnv,hasStandardBrowserWebWorkerEnv:hasStandardBrowserWebWorkerEnv,hasStandardBrowserEnv:hasStandardBrowserEnv,origin:origin});var platform=_objectSpread(_objectSpread({},utils),platform$1);function toURLEncodedForm(data,options){return toFormData(data,new platform.classes.URLSearchParams(),Object.assign({visitor:function visitor(value,key,path,helpers){if(platform.isNode&&utils$1.isBuffer(value)){this.append(key,value.toString('base64'));return false;}return helpers.defaultVisitor.apply(this,arguments);}},options));}/**
|
|
552
552
|
* It takes a string like `foo[x][y][z]` and returns an array like `['foo', 'x', 'y', 'z']
|
|
553
553
|
*
|
|
554
554
|
* @param {string} name - The name of the property to get.
|
|
@@ -579,7 +579,7 @@ return utils$1.matchAll(/\w+|\[(\w*)]/g,name).map(function(match){return match[0
|
|
|
579
579
|
* @param {Function} encoder - A function that takes a value and returns a string.
|
|
580
580
|
*
|
|
581
581
|
* @returns {string} A stringified version of the rawValue.
|
|
582
|
-
*/function stringifySafely(rawValue,parser,encoder){if(utils$1.isString(rawValue)){try{(parser||JSON.parse)(rawValue);return utils$1.trim(rawValue);}catch(e){if(e.name!=='SyntaxError'){throw e;}}}return(encoder||JSON.stringify)(rawValue);}var defaults={transitional:transitionalDefaults,adapter:['xhr','http'],transformRequest:[function transformRequest(data,headers){var contentType=headers.getContentType()||'';var hasJSONContentType=contentType.indexOf('application/json')>-1;var isObjectPayload=utils$1.isObject(data);if(isObjectPayload&&utils$1.isHTMLForm(data)){data=new FormData(data);}var isFormData=utils$1.isFormData(data);if(isFormData){return hasJSONContentType?JSON.stringify(formDataToJSON(data)):data;}if(utils$1.isArrayBuffer(data)||utils$1.isBuffer(data)||utils$1.isStream(data)||utils$1.isFile(data)||utils$1.isBlob(data)){return data;}if(utils$1.isArrayBufferView(data)){return data.buffer;}if(utils$1.isURLSearchParams(data)){headers.setContentType('application/x-www-form-urlencoded;charset=utf-8',false);return data.toString();}var isFileList;if(isObjectPayload){if(contentType.indexOf('application/x-www-form-urlencoded')>-1){return toURLEncodedForm(data,this.formSerializer).toString();}if((isFileList=utils$1.isFileList(data))||contentType.indexOf('multipart/form-data')>-1){var _FormData=this.env&&this.env.FormData;return toFormData(isFileList?{'files[]':data}:data,_FormData&&new _FormData(),this.formSerializer);}}if(isObjectPayload||hasJSONContentType){headers.setContentType('application/json',false);return stringifySafely(data);}return data;}],transformResponse:[function transformResponse(data){var transitional=this.transitional||defaults.transitional;var forcedJSONParsing=transitional&&transitional.forcedJSONParsing;var JSONRequested=this.responseType==='json';if(data&&utils$1.isString(data)&&(forcedJSONParsing&&!this.responseType||JSONRequested)){var silentJSONParsing=transitional&&transitional.silentJSONParsing;var strictJSONParsing=!silentJSONParsing&&JSONRequested;try{return JSON.parse(data);}catch(e){if(strictJSONParsing){if(e.name==='SyntaxError'){throw AxiosError.from(e,AxiosError.ERR_BAD_RESPONSE,this,null,this.response);}throw e;}}}return data;}],/**
|
|
582
|
+
*/function stringifySafely(rawValue,parser,encoder){if(utils$1.isString(rawValue)){try{(parser||JSON.parse)(rawValue);return utils$1.trim(rawValue);}catch(e){if(e.name!=='SyntaxError'){throw e;}}}return(encoder||JSON.stringify)(rawValue);}var defaults={transitional:transitionalDefaults,adapter:['xhr','http','fetch'],transformRequest:[function transformRequest(data,headers){var contentType=headers.getContentType()||'';var hasJSONContentType=contentType.indexOf('application/json')>-1;var isObjectPayload=utils$1.isObject(data);if(isObjectPayload&&utils$1.isHTMLForm(data)){data=new FormData(data);}var isFormData=utils$1.isFormData(data);if(isFormData){return hasJSONContentType?JSON.stringify(formDataToJSON(data)):data;}if(utils$1.isArrayBuffer(data)||utils$1.isBuffer(data)||utils$1.isStream(data)||utils$1.isFile(data)||utils$1.isBlob(data)||utils$1.isReadableStream(data)){return data;}if(utils$1.isArrayBufferView(data)){return data.buffer;}if(utils$1.isURLSearchParams(data)){headers.setContentType('application/x-www-form-urlencoded;charset=utf-8',false);return data.toString();}var isFileList;if(isObjectPayload){if(contentType.indexOf('application/x-www-form-urlencoded')>-1){return toURLEncodedForm(data,this.formSerializer).toString();}if((isFileList=utils$1.isFileList(data))||contentType.indexOf('multipart/form-data')>-1){var _FormData=this.env&&this.env.FormData;return toFormData(isFileList?{'files[]':data}:data,_FormData&&new _FormData(),this.formSerializer);}}if(isObjectPayload||hasJSONContentType){headers.setContentType('application/json',false);return stringifySafely(data);}return data;}],transformResponse:[function transformResponse(data){var transitional=this.transitional||defaults.transitional;var forcedJSONParsing=transitional&&transitional.forcedJSONParsing;var JSONRequested=this.responseType==='json';if(utils$1.isResponse(data)||utils$1.isReadableStream(data)){return data;}if(data&&utils$1.isString(data)&&(forcedJSONParsing&&!this.responseType||JSONRequested)){var silentJSONParsing=transitional&&transitional.silentJSONParsing;var strictJSONParsing=!silentJSONParsing&&JSONRequested;try{return JSON.parse(data);}catch(e){if(strictJSONParsing){if(e.name==='SyntaxError'){throw AxiosError.from(e,AxiosError.ERR_BAD_RESPONSE,this,null,this.response);}throw e;}}}return data;}],/**
|
|
583
583
|
* A timeout in milliseconds to abort a request. If set to 0 (default) a
|
|
584
584
|
* timeout is not created.
|
|
585
585
|
*/timeout:0,xsrfCookieName:'XSRF-TOKEN',xsrfHeaderName:'X-XSRF-TOKEN',maxContentLength:-1,maxBodyLength:-1,env:{FormData:platform.classes.FormData,Blob:platform.classes.Blob},validateStatus:function validateStatus(status){return status>=200&&status<300;},headers:{common:{'Accept':'application/json, text/plain, */*','Content-Type':undefined}}};utils$1.forEach(['delete','get','head','post','put','patch'],function(method){defaults.headers[method]={};});var defaults$1=defaults;// RawAxiosHeaders whose duplicates are ignored by node
|
|
@@ -597,8 +597,8 @@ var ignoreDuplicateOf=utils$1.toObjectSet(['age','authorization','content-length
|
|
|
597
597
|
* @param {String} rawHeaders Headers needing to be parsed
|
|
598
598
|
*
|
|
599
599
|
* @returns {Object} Headers parsed into an object
|
|
600
|
-
*/var parseHeaders=function parseHeaders(rawHeaders){var parsed={};var key;var val;var i;rawHeaders&&rawHeaders.split('\n').forEach(function parser(line){i=line.indexOf(':');key=line.substring(0,i).trim().toLowerCase();val=line.substring(i+1).trim();if(!key||parsed[key]&&ignoreDuplicateOf[key]){return;}if(key==='set-cookie'){if(parsed[key]){parsed[key].push(val);}else{parsed[key]=[val];}}else{parsed[key]=parsed[key]?parsed[key]+', '+val:val;}});return parsed;};var $internals=Symbol('internals');function normalizeHeader(header){return header&&String(header).trim().toLowerCase();}function normalizeValue(value){if(value===false||value==null){return value;}return utils$1.isArray(value)?value.map(normalizeValue):String(value);}function parseTokens(str){var tokens=Object.create(null);var tokensRE=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;var match;while(match=tokensRE.exec(str)){tokens[match[1]]=match[2];}return tokens;}var isValidHeaderName=function isValidHeaderName(str){return /^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(str.trim());};function matchHeaderValue(context,value,header,filter,isHeaderNameFilter){if(utils$1.isFunction(filter)){return filter.call(this,value,header);}if(isHeaderNameFilter){value=header;}if(!utils$1.isString(value))return;if(utils$1.isString(filter)){return value.indexOf(filter)!==-1;}if(utils$1.isRegExp(filter)){return filter.test(value);}}function formatHeader(header){return header.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,function(w,_char,str){return _char.toUpperCase()+str;});}function buildAccessors(obj,header){var accessorName=utils$1.toCamelCase(' '+header);['get','set','has'].forEach(function(methodName){Object.defineProperty(obj,methodName+accessorName,{value:function value(arg1,arg2,arg3){return this[methodName].call(this,header,arg1,arg2,arg3);},configurable:true});});}var AxiosHeaders=/*#__PURE__*/function(){function AxiosHeaders(headers){_classCallCheck(this,AxiosHeaders);headers&&this.set(headers);}return _createClass(AxiosHeaders,[{key:"set",value:function set(header,valueOrRewrite,rewrite){var self=this;function setHeader(_value,_header,_rewrite){var lHeader=normalizeHeader(_header);if(!lHeader){throw new Error('header name must be a non-empty string');}var key=utils$1.findKey(self,lHeader);if(!key||self[key]===undefined||_rewrite===true||_rewrite===undefined&&self[key]!==false){self[key||_header]=normalizeValue(_value);}}var setHeaders=function setHeaders(headers,_rewrite){return utils$1.forEach(headers,function(_value,_header){return setHeader(_value,_header,_rewrite);});};if(utils$1.isPlainObject(header)||header instanceof this.constructor){setHeaders(header,valueOrRewrite);}else if(utils$1.isString(header)&&(header=header.trim())&&!isValidHeaderName(header)){setHeaders(parseHeaders(header),valueOrRewrite);}else{header!=null&&setHeader(valueOrRewrite,header,rewrite);}return this;}},{key:"get",value:function get(header,parser){header=normalizeHeader(header);if(header){var key=utils$1.findKey(this,header);if(key){var value=this[key];if(!parser){return value;}if(parser===true){return parseTokens(value);}if(utils$1.isFunction(parser)){return parser.call(this,value,key);}if(utils$1.isRegExp(parser)){return parser.exec(value);}throw new TypeError('parser must be boolean|regexp|function');}}}},{key:"has",value:function has(header,matcher){header=normalizeHeader(header);if(header){var key=utils$1.findKey(this,header);return!!(key&&this[key]!==undefined&&(!matcher||matchHeaderValue(this,this[key],key,matcher)));}return false;}},{key:"delete",value:function _delete(header,matcher){var self=this;var deleted=false;function deleteHeader(_header){_header=normalizeHeader(_header);if(_header){var key=utils$1.findKey(self,_header);if(key&&(!matcher||matchHeaderValue(self,self[key],key,matcher))){delete self[key];deleted=true;}}}if(utils$1.isArray(header)){header.forEach(deleteHeader);}else{deleteHeader(header);}return deleted;}},{key:"clear",value:function clear(matcher){var keys=Object.keys(this);var i=keys.length;var deleted=false;while(i--){var key=keys[i];if(!matcher||matchHeaderValue(this,this[key],key,matcher,true)){delete this[key];deleted=true;}}return deleted;}},{key:"normalize",value:function normalize(format){var self=this;var headers={};utils$1.forEach(this,function(value,header){var key=utils$1.findKey(headers,header);if(key){self[key]=normalizeValue(value);delete self[header];return;}var normalized=format?formatHeader(header):String(header).trim();if(normalized!==header){delete self[header];}self[normalized]=normalizeValue(value);headers[normalized]=true;});return this;}},{key:"concat",value:function concat(){var _this$constructor;for(var _len=arguments.length,targets=new Array(_len),_key2=0;_key2<_len;_key2++){targets[_key2]=arguments[_key2];}return(_this$constructor=this.constructor).concat.apply(_this$constructor,[this].concat(targets));}},{key:"toJSON",value:function toJSON(asStrings){var obj=Object.create(null);utils$1.forEach(this,function(value,header){value!=null&&value!==false&&(obj[header]=asStrings&&utils$1.isArray(value)?value.join(', '):value);});return obj;}},{key:Symbol.iterator,value:function value(){return Object.entries(this.toJSON())[Symbol.iterator]();}},{key:"toString",value:function toString(){return Object.entries(this.toJSON()).map(function(
|
|
601
|
-
utils$1.reduceDescriptors(AxiosHeaders.prototype,function(
|
|
600
|
+
*/var parseHeaders=function parseHeaders(rawHeaders){var parsed={};var key;var val;var i;rawHeaders&&rawHeaders.split('\n').forEach(function parser(line){i=line.indexOf(':');key=line.substring(0,i).trim().toLowerCase();val=line.substring(i+1).trim();if(!key||parsed[key]&&ignoreDuplicateOf[key]){return;}if(key==='set-cookie'){if(parsed[key]){parsed[key].push(val);}else{parsed[key]=[val];}}else{parsed[key]=parsed[key]?parsed[key]+', '+val:val;}});return parsed;};var $internals=Symbol('internals');function normalizeHeader(header){return header&&String(header).trim().toLowerCase();}function normalizeValue(value){if(value===false||value==null){return value;}return utils$1.isArray(value)?value.map(normalizeValue):String(value);}function parseTokens(str){var tokens=Object.create(null);var tokensRE=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;var match;while(match=tokensRE.exec(str)){tokens[match[1]]=match[2];}return tokens;}var isValidHeaderName=function isValidHeaderName(str){return /^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(str.trim());};function matchHeaderValue(context,value,header,filter,isHeaderNameFilter){if(utils$1.isFunction(filter)){return filter.call(this,value,header);}if(isHeaderNameFilter){value=header;}if(!utils$1.isString(value))return;if(utils$1.isString(filter)){return value.indexOf(filter)!==-1;}if(utils$1.isRegExp(filter)){return filter.test(value);}}function formatHeader(header){return header.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,function(w,_char,str){return _char.toUpperCase()+str;});}function buildAccessors(obj,header){var accessorName=utils$1.toCamelCase(' '+header);['get','set','has'].forEach(function(methodName){Object.defineProperty(obj,methodName+accessorName,{value:function value(arg1,arg2,arg3){return this[methodName].call(this,header,arg1,arg2,arg3);},configurable:true});});}var AxiosHeaders=/*#__PURE__*/function(){function AxiosHeaders(headers){_classCallCheck(this,AxiosHeaders);headers&&this.set(headers);}return _createClass(AxiosHeaders,[{key:"set",value:function set(header,valueOrRewrite,rewrite){var self=this;function setHeader(_value,_header,_rewrite){var lHeader=normalizeHeader(_header);if(!lHeader){throw new Error('header name must be a non-empty string');}var key=utils$1.findKey(self,lHeader);if(!key||self[key]===undefined||_rewrite===true||_rewrite===undefined&&self[key]!==false){self[key||_header]=normalizeValue(_value);}}var setHeaders=function setHeaders(headers,_rewrite){return utils$1.forEach(headers,function(_value,_header){return setHeader(_value,_header,_rewrite);});};if(utils$1.isPlainObject(header)||header instanceof this.constructor){setHeaders(header,valueOrRewrite);}else if(utils$1.isString(header)&&(header=header.trim())&&!isValidHeaderName(header)){setHeaders(parseHeaders(header),valueOrRewrite);}else if(utils$1.isHeaders(header)){var _iterator2=_createForOfIteratorHelper(header.entries()),_step2;try{for(_iterator2.s();!(_step2=_iterator2.n()).done;){var _step2$value=_slicedToArray(_step2.value,2),key=_step2$value[0],value=_step2$value[1];setHeader(value,key,rewrite);}}catch(err){_iterator2.e(err);}finally{_iterator2.f();}}else{header!=null&&setHeader(valueOrRewrite,header,rewrite);}return this;}},{key:"get",value:function get(header,parser){header=normalizeHeader(header);if(header){var key=utils$1.findKey(this,header);if(key){var value=this[key];if(!parser){return value;}if(parser===true){return parseTokens(value);}if(utils$1.isFunction(parser)){return parser.call(this,value,key);}if(utils$1.isRegExp(parser)){return parser.exec(value);}throw new TypeError('parser must be boolean|regexp|function');}}}},{key:"has",value:function has(header,matcher){header=normalizeHeader(header);if(header){var key=utils$1.findKey(this,header);return!!(key&&this[key]!==undefined&&(!matcher||matchHeaderValue(this,this[key],key,matcher)));}return false;}},{key:"delete",value:function _delete(header,matcher){var self=this;var deleted=false;function deleteHeader(_header){_header=normalizeHeader(_header);if(_header){var key=utils$1.findKey(self,_header);if(key&&(!matcher||matchHeaderValue(self,self[key],key,matcher))){delete self[key];deleted=true;}}}if(utils$1.isArray(header)){header.forEach(deleteHeader);}else{deleteHeader(header);}return deleted;}},{key:"clear",value:function clear(matcher){var keys=Object.keys(this);var i=keys.length;var deleted=false;while(i--){var key=keys[i];if(!matcher||matchHeaderValue(this,this[key],key,matcher,true)){delete this[key];deleted=true;}}return deleted;}},{key:"normalize",value:function normalize(format){var self=this;var headers={};utils$1.forEach(this,function(value,header){var key=utils$1.findKey(headers,header);if(key){self[key]=normalizeValue(value);delete self[header];return;}var normalized=format?formatHeader(header):String(header).trim();if(normalized!==header){delete self[header];}self[normalized]=normalizeValue(value);headers[normalized]=true;});return this;}},{key:"concat",value:function concat(){var _this$constructor;for(var _len=arguments.length,targets=new Array(_len),_key2=0;_key2<_len;_key2++){targets[_key2]=arguments[_key2];}return(_this$constructor=this.constructor).concat.apply(_this$constructor,[this].concat(targets));}},{key:"toJSON",value:function toJSON(asStrings){var obj=Object.create(null);utils$1.forEach(this,function(value,header){value!=null&&value!==false&&(obj[header]=asStrings&&utils$1.isArray(value)?value.join(', '):value);});return obj;}},{key:Symbol.iterator,value:function value(){return Object.entries(this.toJSON())[Symbol.iterator]();}},{key:"toString",value:function toString(){return Object.entries(this.toJSON()).map(function(_ref6){var _ref7=_slicedToArray(_ref6,2),header=_ref7[0],value=_ref7[1];return header+': '+value;}).join('\n');}},{key:Symbol.toStringTag,get:function get(){return'AxiosHeaders';}}],[{key:"from",value:function from(thing){return thing instanceof this?thing:new this(thing);}},{key:"concat",value:function concat(first){var computed=new this(first);for(var _len2=arguments.length,targets=new Array(_len2>1?_len2-1:0),_key3=1;_key3<_len2;_key3++){targets[_key3-1]=arguments[_key3];}targets.forEach(function(target){return computed.set(target);});return computed;}},{key:"accessor",value:function accessor(header){var internals=this[$internals]=this[$internals]={accessors:{}};var accessors=internals.accessors;var prototype=this.prototype;function defineAccessor(_header){var lHeader=normalizeHeader(_header);if(!accessors[lHeader]){buildAccessors(prototype,_header);accessors[lHeader]=true;}}utils$1.isArray(header)?header.forEach(defineAccessor):defineAccessor(header);return this;}}]);}();AxiosHeaders.accessor(['Content-Type','Content-Length','Accept','Accept-Encoding','User-Agent','Authorization']);// reserved names hotfix
|
|
601
|
+
utils$1.reduceDescriptors(AxiosHeaders.prototype,function(_ref8,key){var value=_ref8.value;var mapped=key[0].toUpperCase()+key.slice(1);// map `set` => `Set`
|
|
602
602
|
return{get:function get(){return value;},set:function set(headerValue){this[mapped]=headerValue;}};});utils$1.freezeMethods(AxiosHeaders);var AxiosHeaders$1=AxiosHeaders;/**
|
|
603
603
|
* Transform the data for a request or a response
|
|
604
604
|
*
|
|
@@ -623,7 +623,32 @@ AxiosError.call(this,message==null?'canceled':message,AxiosError.ERR_CANCELED,co
|
|
|
623
623
|
* @param {object} response The response.
|
|
624
624
|
*
|
|
625
625
|
* @returns {object} The response.
|
|
626
|
-
*/function settle(resolve,reject,response){var validateStatus=response.config.validateStatus;if(!response.status||!validateStatus||validateStatus(response.status)){resolve(response);}else{reject(new AxiosError('Request failed with status code '+response.status,[AxiosError.ERR_BAD_REQUEST,AxiosError.ERR_BAD_RESPONSE][Math.floor(response.status/100)-4],response.config,response.request,response));}}var
|
|
626
|
+
*/function settle(resolve,reject,response){var validateStatus=response.config.validateStatus;if(!response.status||!validateStatus||validateStatus(response.status)){resolve(response);}else{reject(new AxiosError('Request failed with status code '+response.status,[AxiosError.ERR_BAD_REQUEST,AxiosError.ERR_BAD_RESPONSE][Math.floor(response.status/100)-4],response.config,response.request,response));}}function parseProtocol(url){var match=/^([-+\w]{1,25})(:?\/\/|:)/.exec(url);return match&&match[1]||'';}/**
|
|
627
|
+
* Calculate data maxRate
|
|
628
|
+
* @param {Number} [samplesCount= 10]
|
|
629
|
+
* @param {Number} [min= 1000]
|
|
630
|
+
* @returns {Function}
|
|
631
|
+
*/function speedometer(samplesCount,min){samplesCount=samplesCount||10;var bytes=new Array(samplesCount);var timestamps=new Array(samplesCount);var head=0;var tail=0;var firstSampleTS;min=min!==undefined?min:1000;return function push(chunkLength){var now=Date.now();var startedAt=timestamps[tail];if(!firstSampleTS){firstSampleTS=now;}bytes[head]=chunkLength;timestamps[head]=now;var i=tail;var bytesCount=0;while(i!==head){bytesCount+=bytes[i++];i=i%samplesCount;}head=(head+1)%samplesCount;if(head===tail){tail=(tail+1)%samplesCount;}if(now-firstSampleTS<min){return;}var passed=startedAt&&now-startedAt;return passed?Math.round(bytesCount*1000/passed):undefined;};}/**
|
|
632
|
+
* Throttle decorator
|
|
633
|
+
* @param {Function} fn
|
|
634
|
+
* @param {Number} freq
|
|
635
|
+
* @return {Function}
|
|
636
|
+
*/function throttle(fn,freq){var timestamp=0;var threshold=1000/freq;var timer=null;return function throttled(){var _arguments=arguments;var force=this===true;var now=Date.now();if(force||now-timestamp>threshold){if(timer){clearTimeout(timer);timer=null;}timestamp=now;return fn.apply(null,arguments);}if(!timer){timer=setTimeout(function(){timer=null;timestamp=Date.now();return fn.apply(null,_arguments);},threshold-(now-timestamp));}};}var progressEventReducer=function progressEventReducer(listener,isDownloadStream){var freq=arguments.length>2&&arguments[2]!==undefined?arguments[2]:3;var bytesNotified=0;var _speedometer=speedometer(50,250);return throttle(function(e){var loaded=e.loaded;var total=e.lengthComputable?e.total:undefined;var progressBytes=loaded-bytesNotified;var rate=_speedometer(progressBytes);var inRange=loaded<=total;bytesNotified=loaded;var data={loaded:loaded,total:total,progress:total?loaded/total:undefined,bytes:progressBytes,rate:rate?rate:undefined,estimated:rate&&total&&inRange?(total-loaded)/rate:undefined,event:e,lengthComputable:total!=null};data[isDownloadStream?'download':'upload']=true;listener(data);},freq);};var isURLSameOrigin=platform.hasStandardBrowserEnv?// Standard browser envs have full support of the APIs needed to test
|
|
637
|
+
// whether the request URL is of the same origin as current location.
|
|
638
|
+
function standardBrowserEnv(){var msie=/(msie|trident)/i.test(navigator.userAgent);var urlParsingNode=document.createElement('a');var originURL;/**
|
|
639
|
+
* Parse a URL to discover its components
|
|
640
|
+
*
|
|
641
|
+
* @param {String} url The URL to be parsed
|
|
642
|
+
* @returns {Object}
|
|
643
|
+
*/function resolveURL(url){var href=url;if(msie){// IE needs attribute set twice to normalize properties
|
|
644
|
+
urlParsingNode.setAttribute('href',href);href=urlParsingNode.href;}urlParsingNode.setAttribute('href',href);// urlParsingNode provides the UrlUtils interface - http://url.spec.whatwg.org/#urlutils
|
|
645
|
+
return{href:urlParsingNode.href,protocol:urlParsingNode.protocol?urlParsingNode.protocol.replace(/:$/,''):'',host:urlParsingNode.host,search:urlParsingNode.search?urlParsingNode.search.replace(/^\?/,''):'',hash:urlParsingNode.hash?urlParsingNode.hash.replace(/^#/,''):'',hostname:urlParsingNode.hostname,port:urlParsingNode.port,pathname:urlParsingNode.pathname.charAt(0)==='/'?urlParsingNode.pathname:'/'+urlParsingNode.pathname};}originURL=resolveURL(window.location.href);/**
|
|
646
|
+
* Determine if a URL shares the same origin as the current location
|
|
647
|
+
*
|
|
648
|
+
* @param {String} requestURL The URL to test
|
|
649
|
+
* @returns {boolean} True if URL shares the same origin, otherwise false
|
|
650
|
+
*/return function isURLSameOrigin(requestURL){var parsed=utils$1.isString(requestURL)?resolveURL(requestURL):requestURL;return parsed.protocol===originURL.protocol&&parsed.host===originURL.host;};}():// Non standard browser envs (web workers, react-native) lack needed support.
|
|
651
|
+
function nonStandardBrowserEnv(){return function isURLSameOrigin(){return true;};}();var cookies=platform.hasStandardBrowserEnv?// Standard browser envs support document.cookie
|
|
627
652
|
{write:function write(name,value,expires,path,domain,secure){var cookie=[name+'='+encodeURIComponent(value)];utils$1.isNumber(expires)&&cookie.push('expires='+new Date(expires).toGMTString());utils$1.isString(path)&&cookie.push('path='+path);utils$1.isString(domain)&&cookie.push('domain='+domain);secure===true&&cookie.push('secure');document.cookie=cookie.join('; ');},read:function read(name){var match=document.cookie.match(new RegExp('(^|;\\s*)('+name+')=([^;]*)'));return match?decodeURIComponent(match[3]):null;},remove:function remove(name){this.write(name,'',Date.now()-86400000);}}:// Non-standard browser env (web workers, react-native) lack needed support.
|
|
628
653
|
{write:function write(){},read:function read(){return null;},remove:function remove(){}};/**
|
|
629
654
|
* Determines whether the specified URL is absolute
|
|
@@ -650,31 +675,28 @@ return /^([a-z][a-z\d+\-.]*:)?\/\//i.test(url);}/**
|
|
|
650
675
|
* @param {string} requestedURL Absolute or relative URL to combine
|
|
651
676
|
*
|
|
652
677
|
* @returns {string} The combined full path
|
|
653
|
-
*/function buildFullPath(baseURL,requestedURL){if(baseURL&&!isAbsoluteURL(requestedURL)){return combineURLs(baseURL,requestedURL);}return requestedURL;}var
|
|
654
|
-
|
|
655
|
-
|
|
656
|
-
|
|
657
|
-
|
|
658
|
-
|
|
659
|
-
|
|
660
|
-
|
|
661
|
-
|
|
662
|
-
|
|
663
|
-
|
|
664
|
-
|
|
665
|
-
|
|
666
|
-
|
|
667
|
-
|
|
668
|
-
|
|
669
|
-
|
|
670
|
-
|
|
671
|
-
|
|
672
|
-
|
|
673
|
-
|
|
674
|
-
|
|
675
|
-
var _ref8=contentType?contentType.split(';').map(function(token){return token.trim();}).filter(Boolean):[],_ref9=_toArray(_ref8),type=_ref9[0],tokens=_ref9.slice(1);requestHeaders.setContentType([type||'multipart/form-data'].concat(_toConsumableArray(tokens)).join('; '));}}var request=new XMLHttpRequest();// HTTP basic authentication
|
|
676
|
-
if(config.auth){var username=config.auth.username||'';var password=config.auth.password?unescape(encodeURIComponent(config.auth.password)):'';requestHeaders.set('Authorization','Basic '+btoa(username+':'+password));}var fullPath=buildFullPath(config.baseURL,config.url);request.open(config.method.toUpperCase(),buildURL(fullPath,config.params,config.paramsSerializer),true);// Set the request timeout in MS
|
|
677
|
-
request.timeout=config.timeout;function onloadend(){if(!request){return;}// Prepare the response
|
|
678
|
+
*/function buildFullPath(baseURL,requestedURL){if(baseURL&&!isAbsoluteURL(requestedURL)){return combineURLs(baseURL,requestedURL);}return requestedURL;}var headersToObject=function headersToObject(thing){return thing instanceof AxiosHeaders$1?_objectSpread({},thing):thing;};/**
|
|
679
|
+
* Config-specific merge-function which creates a new config-object
|
|
680
|
+
* by merging two configuration objects together.
|
|
681
|
+
*
|
|
682
|
+
* @param {Object} config1
|
|
683
|
+
* @param {Object} config2
|
|
684
|
+
*
|
|
685
|
+
* @returns {Object} New object resulting from merging config2 to config1
|
|
686
|
+
*/function mergeConfig(config1,config2){// eslint-disable-next-line no-param-reassign
|
|
687
|
+
config2=config2||{};var config={};function getMergedValue(target,source,caseless){if(utils$1.isPlainObject(target)&&utils$1.isPlainObject(source)){return utils$1.merge.call({caseless:caseless},target,source);}else if(utils$1.isPlainObject(source)){return utils$1.merge({},source);}else if(utils$1.isArray(source)){return source.slice();}return source;}// eslint-disable-next-line consistent-return
|
|
688
|
+
function mergeDeepProperties(a,b,caseless){if(!utils$1.isUndefined(b)){return getMergedValue(a,b,caseless);}else if(!utils$1.isUndefined(a)){return getMergedValue(undefined,a,caseless);}}// eslint-disable-next-line consistent-return
|
|
689
|
+
function valueFromConfig2(a,b){if(!utils$1.isUndefined(b)){return getMergedValue(undefined,b);}}// eslint-disable-next-line consistent-return
|
|
690
|
+
function defaultToConfig2(a,b){if(!utils$1.isUndefined(b)){return getMergedValue(undefined,b);}else if(!utils$1.isUndefined(a)){return getMergedValue(undefined,a);}}// eslint-disable-next-line consistent-return
|
|
691
|
+
function mergeDirectKeys(a,b,prop){if(prop in config2){return getMergedValue(a,b);}else if(prop in config1){return getMergedValue(undefined,a);}}var mergeMap={url:valueFromConfig2,method:valueFromConfig2,data:valueFromConfig2,baseURL:defaultToConfig2,transformRequest:defaultToConfig2,transformResponse:defaultToConfig2,paramsSerializer:defaultToConfig2,timeout:defaultToConfig2,timeoutMessage:defaultToConfig2,withCredentials:defaultToConfig2,withXSRFToken:defaultToConfig2,adapter:defaultToConfig2,responseType:defaultToConfig2,xsrfCookieName:defaultToConfig2,xsrfHeaderName:defaultToConfig2,onUploadProgress:defaultToConfig2,onDownloadProgress:defaultToConfig2,decompress:defaultToConfig2,maxContentLength:defaultToConfig2,maxBodyLength:defaultToConfig2,beforeRedirect:defaultToConfig2,transport:defaultToConfig2,httpAgent:defaultToConfig2,httpsAgent:defaultToConfig2,cancelToken:defaultToConfig2,socketPath:defaultToConfig2,responseEncoding:defaultToConfig2,validateStatus:mergeDirectKeys,headers:function headers(a,b){return mergeDeepProperties(headersToObject(a),headersToObject(b),true);}};utils$1.forEach(Object.keys(Object.assign({},config1,config2)),function computeConfigValue(prop){var merge=mergeMap[prop]||mergeDeepProperties;var configValue=merge(config1[prop],config2[prop],prop);utils$1.isUndefined(configValue)&&merge!==mergeDirectKeys||(config[prop]=configValue);});return config;}var resolveConfig=function resolveConfig(config){var newConfig=mergeConfig({},config);var data=newConfig.data,withXSRFToken=newConfig.withXSRFToken,xsrfHeaderName=newConfig.xsrfHeaderName,xsrfCookieName=newConfig.xsrfCookieName,headers=newConfig.headers,auth=newConfig.auth;newConfig.headers=headers=AxiosHeaders$1.from(headers);newConfig.url=buildURL(buildFullPath(newConfig.baseURL,newConfig.url),config.params,config.paramsSerializer);// HTTP basic authentication
|
|
692
|
+
if(auth){headers.set('Authorization','Basic '+btoa((auth.username||'')+':'+(auth.password?unescape(encodeURIComponent(auth.password)):'')));}var contentType;if(utils$1.isFormData(data)){if(platform.hasStandardBrowserEnv||platform.hasStandardBrowserWebWorkerEnv){headers.setContentType(undefined);// Let the browser set it
|
|
693
|
+
}else if((contentType=headers.getContentType())!==false){// fix semicolon duplication issue for ReactNative FormData implementation
|
|
694
|
+
var _ref9=contentType?contentType.split(';').map(function(token){return token.trim();}).filter(Boolean):[],_ref10=_toArray(_ref9),type=_ref10[0],tokens=_ref10.slice(1);headers.setContentType([type||'multipart/form-data'].concat(_toConsumableArray(tokens)).join('; '));}}// Add xsrf header
|
|
695
|
+
// This is only done if running in a standard browser environment.
|
|
696
|
+
// Specifically not if we're in a web worker, or react-native.
|
|
697
|
+
if(platform.hasStandardBrowserEnv){withXSRFToken&&utils$1.isFunction(withXSRFToken)&&(withXSRFToken=withXSRFToken(newConfig));if(withXSRFToken||withXSRFToken!==false&&isURLSameOrigin(newConfig.url)){// Add xsrf header
|
|
698
|
+
var xsrfValue=xsrfHeaderName&&xsrfCookieName&&cookies.read(xsrfCookieName);if(xsrfValue){headers.set(xsrfHeaderName,xsrfValue);}}}return newConfig;};var isXHRAdapterSupported=typeof XMLHttpRequest!=='undefined';var xhrAdapter=isXHRAdapterSupported&&function(config){return new Promise(function dispatchXhrRequest(resolve,reject){var _config=resolveConfig(config);var requestData=_config.data;var requestHeaders=AxiosHeaders$1.from(_config.headers).normalize();var responseType=_config.responseType;var onCanceled;function done(){if(_config.cancelToken){_config.cancelToken.unsubscribe(onCanceled);}if(_config.signal){_config.signal.removeEventListener('abort',onCanceled);}}var request=new XMLHttpRequest();request.open(_config.method.toUpperCase(),_config.url,true);// Set the request timeout in MS
|
|
699
|
+
request.timeout=_config.timeout;function onloadend(){if(!request){return;}// Prepare the response
|
|
678
700
|
var responseHeaders=AxiosHeaders$1.from('getAllResponseHeaders'in request&&request.getAllResponseHeaders());var responseData=!responseType||responseType==='text'||responseType==='json'?request.responseText:request.response;var response={data:responseData,status:request.status,statusText:request.statusText,headers:responseHeaders,config:config,request:request};settle(function _resolve(value){resolve(value);done();},function _reject(err){reject(err);done();},response);// Clean up request
|
|
679
701
|
request=null;}if('onloadend'in request){// Use onloadend if available
|
|
680
702
|
request.onloadend=onloadend;}else{// Listen for ready state to emulate onloadend
|
|
@@ -685,28 +707,26 @@ request.onreadystatechange=function handleLoad(){if(!request||request.readyState
|
|
|
685
707
|
if(request.status===0&&!(request.responseURL&&request.responseURL.indexOf('file:')===0)){return;}// readystate handler is calling before onerror or ontimeout handlers,
|
|
686
708
|
// so we should call onloadend on the next 'tick'
|
|
687
709
|
setTimeout(onloadend);};}// Handle browser request cancellation (as opposed to a manual cancellation)
|
|
688
|
-
request.onabort=function handleAbort(){if(!request){return;}reject(new AxiosError('Request aborted',AxiosError.ECONNABORTED,
|
|
710
|
+
request.onabort=function handleAbort(){if(!request){return;}reject(new AxiosError('Request aborted',AxiosError.ECONNABORTED,_config,request));// Clean up request
|
|
689
711
|
request=null;};// Handle low level network errors
|
|
690
712
|
request.onerror=function handleError(){// Real errors are hidden from us by the browser
|
|
691
713
|
// onerror should only fire if it's a network error
|
|
692
|
-
reject(new AxiosError('Network Error',AxiosError.ERR_NETWORK,
|
|
714
|
+
reject(new AxiosError('Network Error',AxiosError.ERR_NETWORK,_config,request));// Clean up request
|
|
693
715
|
request=null;};// Handle timeout
|
|
694
|
-
request.ontimeout=function handleTimeout(){var timeoutErrorMessage=
|
|
695
|
-
request=null;};//
|
|
696
|
-
// This is only done if running in a standard browser environment.
|
|
697
|
-
// Specifically not if we're in a web worker, or react-native.
|
|
698
|
-
if(platform.hasStandardBrowserEnv){withXSRFToken&&utils$1.isFunction(withXSRFToken)&&(withXSRFToken=withXSRFToken(config));if(withXSRFToken||withXSRFToken!==false&&isURLSameOrigin(fullPath)){// Add xsrf header
|
|
699
|
-
var xsrfValue=config.xsrfHeaderName&&config.xsrfCookieName&&cookies.read(config.xsrfCookieName);if(xsrfValue){requestHeaders.set(config.xsrfHeaderName,xsrfValue);}}}// Remove Content-Type if data is undefined
|
|
716
|
+
request.ontimeout=function handleTimeout(){var timeoutErrorMessage=_config.timeout?'timeout of '+_config.timeout+'ms exceeded':'timeout exceeded';var transitional=_config.transitional||transitionalDefaults;if(_config.timeoutErrorMessage){timeoutErrorMessage=_config.timeoutErrorMessage;}reject(new AxiosError(timeoutErrorMessage,transitional.clarifyTimeoutError?AxiosError.ETIMEDOUT:AxiosError.ECONNABORTED,_config,request));// Clean up request
|
|
717
|
+
request=null;};// Remove Content-Type if data is undefined
|
|
700
718
|
requestData===undefined&&requestHeaders.setContentType(null);// Add headers to the request
|
|
701
719
|
if('setRequestHeader'in request){utils$1.forEach(requestHeaders.toJSON(),function setRequestHeader(val,key){request.setRequestHeader(key,val);});}// Add withCredentials to request if needed
|
|
702
|
-
if(!utils$1.isUndefined(
|
|
703
|
-
if(responseType&&responseType!=='json'){request.responseType=
|
|
704
|
-
if(typeof
|
|
705
|
-
if(typeof
|
|
720
|
+
if(!utils$1.isUndefined(_config.withCredentials)){request.withCredentials=!!_config.withCredentials;}// Add responseType to request if needed
|
|
721
|
+
if(responseType&&responseType!=='json'){request.responseType=_config.responseType;}// Handle progress if needed
|
|
722
|
+
if(typeof _config.onDownloadProgress==='function'){request.addEventListener('progress',progressEventReducer(_config.onDownloadProgress,true));}// Not all browsers support upload events
|
|
723
|
+
if(typeof _config.onUploadProgress==='function'&&request.upload){request.upload.addEventListener('progress',progressEventReducer(_config.onUploadProgress));}if(_config.cancelToken||_config.signal){// Handle cancellation
|
|
706
724
|
// eslint-disable-next-line func-names
|
|
707
|
-
onCanceled=function onCanceled(cancel){if(!request){return;}reject(!cancel||cancel.type?new CanceledError(null,config,request):cancel);request.abort();request=null;};
|
|
708
|
-
request.send(requestData||null);});};var
|
|
709
|
-
|
|
725
|
+
onCanceled=function onCanceled(cancel){if(!request){return;}reject(!cancel||cancel.type?new CanceledError(null,config,request):cancel);request.abort();request=null;};_config.cancelToken&&_config.cancelToken.subscribe(onCanceled);if(_config.signal){_config.signal.aborted?onCanceled():_config.signal.addEventListener('abort',onCanceled);}}var protocol=parseProtocol(_config.url);if(protocol&&platform.protocols.indexOf(protocol)===-1){reject(new AxiosError('Unsupported protocol '+protocol+':',AxiosError.ERR_BAD_REQUEST,config));return;}// Send the request
|
|
726
|
+
request.send(requestData||null);});};var composeSignals=function composeSignals(signals,timeout){var controller=new AbortController();var aborted;var onabort=function onabort(cancel){if(!aborted){aborted=true;unsubscribe();var err=cancel instanceof Error?cancel:this.reason;controller.abort(err instanceof AxiosError?err:new CanceledError(err instanceof Error?err.message:err));}};var timer=timeout&&setTimeout(function(){onabort(new AxiosError("timeout ".concat(timeout," of ms exceeded"),AxiosError.ETIMEDOUT));},timeout);var unsubscribe=function unsubscribe(){if(signals){timer&&clearTimeout(timer);timer=null;signals.forEach(function(signal){signal&&(signal.removeEventListener?signal.removeEventListener('abort',onabort):signal.unsubscribe(onabort));});signals=null;}};signals.forEach(function(signal){return signal&&signal.addEventListener&&signal.addEventListener('abort',onabort);});var signal=controller.signal;signal.unsubscribe=unsubscribe;return[signal,function(){timer&&clearTimeout(timer);timer=null;}];};var composeSignals$1=composeSignals;var streamChunk=/*#__PURE__*/_regeneratorRuntime().mark(function streamChunk(chunk,chunkSize){var len,pos,end;return _regeneratorRuntime().wrap(function streamChunk$(_context){while(1)switch(_context.prev=_context.next){case 0:len=chunk.byteLength;if(!(!chunkSize||len<chunkSize)){_context.next=5;break;}_context.next=4;return chunk;case 4:return _context.abrupt("return");case 5:pos=0;case 6:if(!(pos<len)){_context.next=13;break;}end=pos+chunkSize;_context.next=10;return chunk.slice(pos,end);case 10:pos=end;_context.next=6;break;case 13:case"end":return _context.stop();}},streamChunk);});var readBytes=/*#__PURE__*/function(){var _ref=_wrapAsyncGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(iterable,chunkSize,encode){var _iteratorAbruptCompletion,_didIteratorError,_iteratorError,_iterator,_step,chunk;return _regeneratorRuntime().wrap(function _callee$(_context2){while(1)switch(_context2.prev=_context2.next){case 0:_iteratorAbruptCompletion=false;_didIteratorError=false;_context2.prev=2;_iterator=_asyncIterator(iterable);case 4:_context2.next=6;return _awaitAsyncGenerator(_iterator.next());case 6:if(!(_iteratorAbruptCompletion=!(_step=_context2.sent).done)){_context2.next=27;break;}chunk=_step.value;_context2.t0=_asyncGeneratorDelegate;_context2.t1=_asyncIterator;_context2.t2=streamChunk;if(!ArrayBuffer.isView(chunk)){_context2.next=15;break;}_context2.t3=chunk;_context2.next=18;break;case 15:_context2.next=17;return _awaitAsyncGenerator(encode(String(chunk)));case 17:_context2.t3=_context2.sent;case 18:_context2.t4=_context2.t3;_context2.t5=chunkSize;_context2.t6=(0,_context2.t2)(_context2.t4,_context2.t5);_context2.t7=(0,_context2.t1)(_context2.t6);_context2.t8=_awaitAsyncGenerator;return _context2.delegateYield((0,_context2.t0)(_context2.t7,_context2.t8),"t9",24);case 24:_iteratorAbruptCompletion=false;_context2.next=4;break;case 27:_context2.next=33;break;case 29:_context2.prev=29;_context2.t10=_context2["catch"](2);_didIteratorError=true;_iteratorError=_context2.t10;case 33:_context2.prev=33;_context2.prev=34;if(!(_iteratorAbruptCompletion&&_iterator["return"]!=null)){_context2.next=38;break;}_context2.next=38;return _awaitAsyncGenerator(_iterator["return"]());case 38:_context2.prev=38;if(!_didIteratorError){_context2.next=41;break;}throw _iteratorError;case 41:return _context2.finish(38);case 42:return _context2.finish(33);case 43:case"end":return _context2.stop();}},_callee,null,[[2,29,33,43],[34,,38,42]]);}));return function readBytes(_x,_x2,_x3){return _ref.apply(this,arguments);};}();var trackStream=function trackStream(stream,chunkSize,onProgress,onFinish,encode){var iterator=readBytes(stream,chunkSize,encode);var bytes=0;return new ReadableStream({type:'bytes',pull:function pull(controller){return _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee2(){var _yield$iterator$next,done,value,len;return _regeneratorRuntime().wrap(function _callee2$(_context3){while(1)switch(_context3.prev=_context3.next){case 0:_context3.next=2;return iterator.next();case 2:_yield$iterator$next=_context3.sent;done=_yield$iterator$next.done;value=_yield$iterator$next.value;if(!done){_context3.next=9;break;}controller.close();onFinish();return _context3.abrupt("return");case 9:len=value.byteLength;onProgress&&onProgress(bytes+=len);controller.enqueue(new Uint8Array(value));case 12:case"end":return _context3.stop();}},_callee2);}))();},cancel:function cancel(reason){onFinish(reason);return iterator["return"]();}},{highWaterMark:2});};var fetchProgressDecorator=function fetchProgressDecorator(total,fn){var lengthComputable=total!=null;return function(loaded){return setTimeout(function(){return fn({lengthComputable:lengthComputable,total:total,loaded:loaded});});};};var isFetchSupported=typeof fetch==='function'&&typeof Request==='function'&&typeof Response==='function';var isReadableStreamSupported=isFetchSupported&&typeof ReadableStream==='function';// used only inside the fetch adapter
|
|
727
|
+
var encodeText=isFetchSupported&&(typeof TextEncoder==='function'?function(encoder){return function(str){return encoder.encode(str);};}(new TextEncoder()):(/*#__PURE__*/function(){var _ref11=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee3(str){return _regeneratorRuntime().wrap(function _callee3$(_context4){while(1)switch(_context4.prev=_context4.next){case 0:_context4.t0=Uint8Array;_context4.next=3;return new Response(str).arrayBuffer();case 3:_context4.t1=_context4.sent;return _context4.abrupt("return",new _context4.t0(_context4.t1));case 5:case"end":return _context4.stop();}},_callee3);}));return function(_x4){return _ref11.apply(this,arguments);};}()));var supportsRequestStream=isReadableStreamSupported&&function(){var duplexAccessed=false;var hasContentType=new Request(platform.origin,{body:new ReadableStream(),method:'POST',get duplex(){duplexAccessed=true;return'half';}}).headers.has('Content-Type');return duplexAccessed&&!hasContentType;}();var DEFAULT_CHUNK_SIZE=64*1024;var supportsResponseStream=isReadableStreamSupported&&!!function(){try{return utils$1.isReadableStream(new Response('').body);}catch(err){// return undefined
|
|
728
|
+
}}();var resolvers={stream:supportsResponseStream&&function(res){return res.body;}};isFetchSupported&&function(res){['text','arrayBuffer','blob','formData','stream'].forEach(function(type){!resolvers[type]&&(resolvers[type]=utils$1.isFunction(res[type])?function(res){return res[type]();}:function(_,config){throw new AxiosError("Response type '".concat(type,"' is not supported"),AxiosError.ERR_NOT_SUPPORT,config);});});}(new Response());var getBodyLength=/*#__PURE__*/function(){var _ref12=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee4(body){return _regeneratorRuntime().wrap(function _callee4$(_context5){while(1)switch(_context5.prev=_context5.next){case 0:if(!(body==null)){_context5.next=2;break;}return _context5.abrupt("return",0);case 2:if(!utils$1.isBlob(body)){_context5.next=4;break;}return _context5.abrupt("return",body.size);case 4:if(!utils$1.isSpecCompliantForm(body)){_context5.next=8;break;}_context5.next=7;return new Request(body).arrayBuffer();case 7:return _context5.abrupt("return",_context5.sent.byteLength);case 8:if(!utils$1.isArrayBufferView(body)){_context5.next=10;break;}return _context5.abrupt("return",body.byteLength);case 10:if(utils$1.isURLSearchParams(body)){body=body+'';}if(!utils$1.isString(body)){_context5.next=15;break;}_context5.next=14;return encodeText(body);case 14:return _context5.abrupt("return",_context5.sent.byteLength);case 15:case"end":return _context5.stop();}},_callee4);}));return function getBodyLength(_x5){return _ref12.apply(this,arguments);};}();var resolveBodyLength=/*#__PURE__*/function(){var _ref13=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee5(headers,body){var length;return _regeneratorRuntime().wrap(function _callee5$(_context6){while(1)switch(_context6.prev=_context6.next){case 0:length=utils$1.toFiniteNumber(headers.getContentLength());return _context6.abrupt("return",length==null?getBodyLength(body):length);case 2:case"end":return _context6.stop();}},_callee5);}));return function resolveBodyLength(_x6,_x7){return _ref13.apply(this,arguments);};}();var fetchAdapter=isFetchSupported&&(/*#__PURE__*/function(){var _ref14=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee6(config){var _resolveConfig,url,method,data,signal,cancelToken,timeout,onDownloadProgress,onUploadProgress,responseType,headers,_resolveConfig$withCr,withCredentials,fetchOptions,_ref15,_ref16,composedSignal,stopTimeout,finished,request,onFinish,requestContentLength,_request,contentTypeHeader,response,isStreamResponse,options,responseContentLength,responseData;return _regeneratorRuntime().wrap(function _callee6$(_context7){while(1)switch(_context7.prev=_context7.next){case 0:_resolveConfig=resolveConfig(config),url=_resolveConfig.url,method=_resolveConfig.method,data=_resolveConfig.data,signal=_resolveConfig.signal,cancelToken=_resolveConfig.cancelToken,timeout=_resolveConfig.timeout,onDownloadProgress=_resolveConfig.onDownloadProgress,onUploadProgress=_resolveConfig.onUploadProgress,responseType=_resolveConfig.responseType,headers=_resolveConfig.headers,_resolveConfig$withCr=_resolveConfig.withCredentials,withCredentials=_resolveConfig$withCr===void 0?'same-origin':_resolveConfig$withCr,fetchOptions=_resolveConfig.fetchOptions;responseType=responseType?(responseType+'').toLowerCase():'text';_ref15=signal||cancelToken||timeout?composeSignals$1([signal,cancelToken],timeout):[],_ref16=_slicedToArray(_ref15,2),composedSignal=_ref16[0],stopTimeout=_ref16[1];onFinish=function onFinish(){!finished&&setTimeout(function(){composedSignal&&composedSignal.unsubscribe();});finished=true;};_context7.prev=4;_context7.t0=onUploadProgress&&supportsRequestStream&&method!=='get'&&method!=='head';if(!_context7.t0){_context7.next=11;break;}_context7.next=9;return resolveBodyLength(headers,data);case 9:_context7.t1=requestContentLength=_context7.sent;_context7.t0=_context7.t1!==0;case 11:if(!_context7.t0){_context7.next=15;break;}_request=new Request(url,{method:'POST',body:data,duplex:"half"});if(utils$1.isFormData(data)&&(contentTypeHeader=_request.headers.get('content-type'))){headers.setContentType(contentTypeHeader);}if(_request.body){data=trackStream(_request.body,DEFAULT_CHUNK_SIZE,fetchProgressDecorator(requestContentLength,progressEventReducer(onUploadProgress)),null,encodeText);}case 15:if(!utils$1.isString(withCredentials)){withCredentials=withCredentials?'cors':'omit';}request=new Request(url,_objectSpread(_objectSpread({},fetchOptions),{},{signal:composedSignal,method:method.toUpperCase(),headers:headers.normalize().toJSON(),body:data,duplex:"half",withCredentials:withCredentials}));_context7.next=19;return fetch(request);case 19:response=_context7.sent;isStreamResponse=supportsResponseStream&&(responseType==='stream'||responseType==='response');if(supportsResponseStream&&(onDownloadProgress||isStreamResponse)){options={};['status','statusText','headers'].forEach(function(prop){options[prop]=response[prop];});responseContentLength=utils$1.toFiniteNumber(response.headers.get('content-length'));response=new Response(trackStream(response.body,DEFAULT_CHUNK_SIZE,onDownloadProgress&&fetchProgressDecorator(responseContentLength,progressEventReducer(onDownloadProgress,true)),isStreamResponse&&onFinish,encodeText),options);}responseType=responseType||'text';_context7.next=25;return resolvers[utils$1.findKey(resolvers,responseType)||'text'](response,config);case 25:responseData=_context7.sent;!isStreamResponse&&onFinish();stopTimeout&&stopTimeout();_context7.next=30;return new Promise(function(resolve,reject){settle(resolve,reject,{data:responseData,headers:AxiosHeaders$1.from(response.headers),status:response.status,statusText:response.statusText,config:config,request:request});});case 30:return _context7.abrupt("return",_context7.sent);case 33:_context7.prev=33;_context7.t2=_context7["catch"](4);onFinish();if(!(_context7.t2&&_context7.t2.name==='TypeError'&&/fetch/i.test(_context7.t2.message))){_context7.next=38;break;}throw Object.assign(new AxiosError('Network Error',AxiosError.ERR_NETWORK,config,request),{cause:_context7.t2.cause||_context7.t2});case 38:throw AxiosError.from(_context7.t2,_context7.t2&&_context7.t2.code,config,request);case 39:case"end":return _context7.stop();}},_callee6,null,[[4,33]]);}));return function(_x8){return _ref14.apply(this,arguments);};}());var knownAdapters={http:httpAdapter,xhr:xhrAdapter,fetch:fetchAdapter};utils$1.forEach(knownAdapters,function(fn,value){if(fn){try{Object.defineProperty(fn,'name',{value:value});}catch(e){// eslint-disable-next-line no-empty
|
|
729
|
+
}Object.defineProperty(fn,'adapterName',{value:value});}});var renderReason=function renderReason(reason){return"- ".concat(reason);};var isResolvedHandle=function isResolvedHandle(adapter){return utils$1.isFunction(adapter)||adapter===null||adapter===false;};var adapters={getAdapter:function getAdapter(adapters){adapters=utils$1.isArray(adapters)?adapters:[adapters];var _adapters=adapters,length=_adapters.length;var nameOrAdapter;var adapter;var rejectedReasons={};for(var i=0;i<length;i++){nameOrAdapter=adapters[i];var id=void 0;adapter=nameOrAdapter;if(!isResolvedHandle(nameOrAdapter)){adapter=knownAdapters[(id=String(nameOrAdapter)).toLowerCase()];if(adapter===undefined){throw new AxiosError("Unknown adapter '".concat(id,"'"));}}if(adapter){break;}rejectedReasons[id||'#'+i]=adapter;}if(!adapter){var reasons=Object.entries(rejectedReasons).map(function(_ref17){var _ref18=_slicedToArray(_ref17,2),id=_ref18[0],state=_ref18[1];return"adapter ".concat(id," ")+(state===false?'is not supported by the environment':'is not available in the build');});var s=length?reasons.length>1?'since :\n'+reasons.map(renderReason).join('\n'):' '+renderReason(reasons[0]):'as no adapter specified';throw new AxiosError("There is no suitable adapter to dispatch the request "+s,'ERR_NOT_SUPPORT');}return adapter;},adapters:knownAdapters};/**
|
|
710
730
|
* Throws a `CanceledError` if cancellation has been requested.
|
|
711
731
|
*
|
|
712
732
|
* @param {Object} config The config that is to be used for the request
|
|
@@ -721,20 +741,7 @@ request.send(requestData||null);});};var knownAdapters={http:httpAdapter,xhr:xhr
|
|
|
721
741
|
*/function dispatchRequest(config){throwIfCancellationRequested(config);config.headers=AxiosHeaders$1.from(config.headers);// Transform request data
|
|
722
742
|
config.data=transformData.call(config,config.transformRequest);if(['post','put','patch'].indexOf(config.method)!==-1){config.headers.setContentType('application/x-www-form-urlencoded',false);}var adapter=adapters.getAdapter(config.adapter||defaults$1.adapter);return adapter(config).then(function onAdapterResolution(response){throwIfCancellationRequested(config);// Transform response data
|
|
723
743
|
response.data=transformData.call(config,config.transformResponse,response);response.headers=AxiosHeaders$1.from(response.headers);return response;},function onAdapterRejection(reason){if(!isCancel(reason)){throwIfCancellationRequested(config);// Transform response data
|
|
724
|
-
if(reason&&reason.response){reason.response.data=transformData.call(config,config.transformResponse,reason.response);reason.response.headers=AxiosHeaders$1.from(reason.response.headers);}}return Promise.reject(reason);});}var
|
|
725
|
-
* Config-specific merge-function which creates a new config-object
|
|
726
|
-
* by merging two configuration objects together.
|
|
727
|
-
*
|
|
728
|
-
* @param {Object} config1
|
|
729
|
-
* @param {Object} config2
|
|
730
|
-
*
|
|
731
|
-
* @returns {Object} New object resulting from merging config2 to config1
|
|
732
|
-
*/function mergeConfig(config1,config2){// eslint-disable-next-line no-param-reassign
|
|
733
|
-
config2=config2||{};var config={};function getMergedValue(target,source,caseless){if(utils$1.isPlainObject(target)&&utils$1.isPlainObject(source)){return utils$1.merge.call({caseless:caseless},target,source);}else if(utils$1.isPlainObject(source)){return utils$1.merge({},source);}else if(utils$1.isArray(source)){return source.slice();}return source;}// eslint-disable-next-line consistent-return
|
|
734
|
-
function mergeDeepProperties(a,b,caseless){if(!utils$1.isUndefined(b)){return getMergedValue(a,b,caseless);}else if(!utils$1.isUndefined(a)){return getMergedValue(undefined,a,caseless);}}// eslint-disable-next-line consistent-return
|
|
735
|
-
function valueFromConfig2(a,b){if(!utils$1.isUndefined(b)){return getMergedValue(undefined,b);}}// eslint-disable-next-line consistent-return
|
|
736
|
-
function defaultToConfig2(a,b){if(!utils$1.isUndefined(b)){return getMergedValue(undefined,b);}else if(!utils$1.isUndefined(a)){return getMergedValue(undefined,a);}}// eslint-disable-next-line consistent-return
|
|
737
|
-
function mergeDirectKeys(a,b,prop){if(prop in config2){return getMergedValue(a,b);}else if(prop in config1){return getMergedValue(undefined,a);}}var mergeMap={url:valueFromConfig2,method:valueFromConfig2,data:valueFromConfig2,baseURL:defaultToConfig2,transformRequest:defaultToConfig2,transformResponse:defaultToConfig2,paramsSerializer:defaultToConfig2,timeout:defaultToConfig2,timeoutMessage:defaultToConfig2,withCredentials:defaultToConfig2,withXSRFToken:defaultToConfig2,adapter:defaultToConfig2,responseType:defaultToConfig2,xsrfCookieName:defaultToConfig2,xsrfHeaderName:defaultToConfig2,onUploadProgress:defaultToConfig2,onDownloadProgress:defaultToConfig2,decompress:defaultToConfig2,maxContentLength:defaultToConfig2,maxBodyLength:defaultToConfig2,beforeRedirect:defaultToConfig2,transport:defaultToConfig2,httpAgent:defaultToConfig2,httpsAgent:defaultToConfig2,cancelToken:defaultToConfig2,socketPath:defaultToConfig2,responseEncoding:defaultToConfig2,validateStatus:mergeDirectKeys,headers:function headers(a,b){return mergeDeepProperties(headersToObject(a),headersToObject(b),true);}};utils$1.forEach(Object.keys(Object.assign({},config1,config2)),function computeConfigValue(prop){var merge=mergeMap[prop]||mergeDeepProperties;var configValue=merge(config1[prop],config2[prop],prop);utils$1.isUndefined(configValue)&&merge!==mergeDirectKeys||(config[prop]=configValue);});return config;}var VERSION="1.6.8";var validators$1={};// eslint-disable-next-line func-names
|
|
744
|
+
if(reason&&reason.response){reason.response.data=transformData.call(config,config.transformResponse,reason.response);reason.response.headers=AxiosHeaders$1.from(reason.response.headers);}}return Promise.reject(reason);});}var VERSION="1.7.2";var validators$1={};// eslint-disable-next-line func-names
|
|
738
745
|
['object','boolean','number','function','string','symbol'].forEach(function(type,i){validators$1[type]=function validator(thing){return _typeof(thing)===type||'a'+(i<1?'n ':' ')+type;};});var deprecatedWarnings={};/**
|
|
739
746
|
* Transitional option validator
|
|
740
747
|
*
|
|
@@ -766,10 +773,11 @@ console.warn(formatMessage(opt,' has been deprecated since v'+version+' and will
|
|
|
766
773
|
* @param {?Object} config
|
|
767
774
|
*
|
|
768
775
|
* @returns {Promise} The Promise to be fulfilled
|
|
769
|
-
*/return _createClass(Axios,[{key:"request",value:(function(){var _request2=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function
|
|
770
|
-
stack=dummy.stack?dummy.stack.replace(/^.+\n/,''):'';if(!
|
|
771
|
-
}else if(stack&&!String(
|
|
772
|
-
|
|
776
|
+
*/return _createClass(Axios,[{key:"request",value:(function(){var _request2=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee7(configOrUrl,config){var dummy,stack;return _regeneratorRuntime().wrap(function _callee7$(_context8){while(1)switch(_context8.prev=_context8.next){case 0:_context8.prev=0;_context8.next=3;return this._request(configOrUrl,config);case 3:return _context8.abrupt("return",_context8.sent);case 6:_context8.prev=6;_context8.t0=_context8["catch"](0);if(_context8.t0 instanceof Error){Error.captureStackTrace?Error.captureStackTrace(dummy={}):dummy=new Error();// slice off the Error: ... line
|
|
777
|
+
stack=dummy.stack?dummy.stack.replace(/^.+\n/,''):'';try{if(!_context8.t0.stack){_context8.t0.stack=stack;// match without the 2 top stack lines
|
|
778
|
+
}else if(stack&&!String(_context8.t0.stack).endsWith(stack.replace(/^.+\n.+\n/,''))){_context8.t0.stack+='\n'+stack;}}catch(e){// ignore the case where "stack" is an un-writable property
|
|
779
|
+
}}throw _context8.t0;case 10:case"end":return _context8.stop();}},_callee7,this,[[0,6]]);}));function request(_x9,_x10){return _request2.apply(this,arguments);}return request;}())},{key:"_request",value:function _request(configOrUrl,config){/*eslint no-param-reassign:0*/ // Allow for axios('example/url'[, config]) a la fetch API
|
|
780
|
+
if(typeof configOrUrl==='string'){config=config||{};config.url=configOrUrl;}else{config=configOrUrl||{};}config=mergeConfig(this.defaults,config);var _config2=config,transitional=_config2.transitional,paramsSerializer=_config2.paramsSerializer,headers=_config2.headers;if(transitional!==undefined){validator.assertOptions(transitional,{silentJSONParsing:validators.transitional(validators["boolean"]),forcedJSONParsing:validators.transitional(validators["boolean"]),clarifyTimeoutError:validators.transitional(validators["boolean"])},false);}if(paramsSerializer!=null){if(utils$1.isFunction(paramsSerializer)){config.paramsSerializer={serialize:paramsSerializer};}else{validator.assertOptions(paramsSerializer,{encode:validators["function"],serialize:validators["function"]},true);}}// Set config.method
|
|
773
781
|
config.method=(config.method||this.defaults.method||'get').toLowerCase();// Flatten headers
|
|
774
782
|
var contextHeaders=headers&&utils$1.merge(headers.common,headers[config.method]);headers&&utils$1.forEach(['delete','get','head','post','put','patch','common'],function(method){delete headers[method];});config.headers=AxiosHeaders$1.concat(contextHeaders,headers);// filter out skipped interceptors
|
|
775
783
|
var requestInterceptorChain=[];var synchronousRequestInterceptors=true;this.interceptors.request.forEach(function unshiftRequestInterceptors(interceptor){if(typeof interceptor.runWhen==='function'&&interceptor.runWhen(config)===false){return;}synchronousRequestInterceptors=synchronousRequestInterceptors&&interceptor.synchronous;requestInterceptorChain.unshift(interceptor.fulfilled,interceptor.rejected);});var responseInterceptorChain=[];this.interceptors.response.forEach(function pushResponseInterceptors(interceptor){responseInterceptorChain.push(interceptor.fulfilled,interceptor.rejected);});var promise;var i=0;var len;if(!synchronousRequestInterceptors){var chain=[dispatchRequest.bind(this),undefined];chain.unshift.apply(chain,requestInterceptorChain);chain.push.apply(chain,responseInterceptorChain);len=chain.length;promise=Promise.resolve(config);while(i<len){promise=promise.then(chain[i++],chain[i++]);}return promise;}len=requestInterceptorChain.length;var newConfig=config;i=0;while(i<len){var onFulfilled=requestInterceptorChain[i++];var onRejected=requestInterceptorChain[i++];try{newConfig=onFulfilled(newConfig);}catch(error){onRejected.call(this,error);break;}}try{promise=dispatchRequest.call(this,newConfig);}catch(error){return Promise.reject(error);}i=0;len=responseInterceptorChain.length;while(i<len){promise=promise.then(responseInterceptorChain[i++],responseInterceptorChain[i++]);}return promise;}},{key:"getUri",value:function getUri(config){config=mergeConfig(this.defaults,config);var fullPath=buildFullPath(config.baseURL,config.url);return buildURL(fullPath,config.params,config.paramsSerializer);}}]);}();// Provide aliases for supported request methods
|
|
@@ -818,7 +826,7 @@ return;}token.reason=new CanceledError(message,config,request);resolvePromise(to
|
|
|
818
826
|
* @param {*} payload The value to test
|
|
819
827
|
*
|
|
820
828
|
* @returns {boolean} True if the payload is an error thrown by Axios, otherwise false
|
|
821
|
-
*/function isAxiosError(payload){return utils$1.isObject(payload)&&payload.isAxiosError===true;}var HttpStatusCode={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(HttpStatusCode).forEach(function(
|
|
829
|
+
*/function isAxiosError(payload){return utils$1.isObject(payload)&&payload.isAxiosError===true;}var HttpStatusCode={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(HttpStatusCode).forEach(function(_ref19){var _ref20=_slicedToArray(_ref19,2),key=_ref20[0],value=_ref20[1];HttpStatusCode[value]=key;});var HttpStatusCode$1=HttpStatusCode;/**
|
|
822
830
|
* Create an instance of Axios
|
|
823
831
|
*
|
|
824
832
|
* @param {Object} defaultConfig The default config for the instance
|
|
@@ -847,7 +855,7 @@ if(env)this.environment=env;else this.environment=this.host?this.host:'mypureclo
|
|
|
847
855
|
this.environment=this.environment.replace(/\/+$/,'');// Strip protocol and subdomain
|
|
848
856
|
if(this.environment.startsWith('https://'))this.environment=this.environment.substring(8);if(this.environment.startsWith('http://'))this.environment=this.environment.substring(7);if(this.environment.startsWith('api.'))this.environment=this.environment.substring(4);this.basePath="https://api.".concat(this.environment);this.authUrl="https://login.".concat(this.environment);}},{key:"getConfigString",value:function getConfigString(section,key){if(this.config._sections[section])return this.config._sections[section][key];}},{key:"getConfigBoolean",value:function getConfigBoolean(section,key){if(this.config._sections[section]&&this.config._sections[section][key]!==undefined){if(typeof this.config._sections[section][key]==='string'){return this.config._sections[section][key]==='true';}else return this.config._sections[section][key];}}},{key:"getConfigInt",value:function getConfigInt(section,key){if(this.config._sections[section]&&this.config._sections[section][key]){if(typeof this.config._sections[section][key]==='string'){return parseInt(this.config._sections[section][key]);}else return this.config._sections[section][key];}}}]);}();/**
|
|
849
857
|
* @module purecloud-platform-client-v2/ApiClient
|
|
850
|
-
* @version
|
|
858
|
+
* @version 194.0.0
|
|
851
859
|
*/var ApiClient=/*#__PURE__*/function(){/**
|
|
852
860
|
* Manages low level client-server communications, parameter marshalling, etc. There should not be any need for an
|
|
853
861
|
* application to use this class directly - the *Api and model classes provide the public API for the service. The
|
|
@@ -1159,7 +1167,7 @@ resolve(data);})["catch"](function(error){var data=error;if(error.response&&erro
|
|
|
1159
1167
|
that.config.logger.log('error',error.response.status,httpMethod,url,request.headers,error.response.headers,bodyParam,error.response.data);data=that.returnExtended===true?{status:error.response.status,statusText:error.response.statusText,headers:error.response.headers,body:error.response.data,text:error.response.text,error:error}:error.response.data?error.response.data:error.response.text;}reject(data);});}});}}]);}();var AlertingApi=/*#__PURE__*/function(){/**
|
|
1160
1168
|
* Alerting service.
|
|
1161
1169
|
* @module purecloud-platform-client-v2/api/AlertingApi
|
|
1162
|
-
* @version
|
|
1170
|
+
* @version 194.0.0
|
|
1163
1171
|
*/ /**
|
|
1164
1172
|
* Constructs a new AlertingApi.
|
|
1165
1173
|
* @alias module:purecloud-platform-client-v2/api/AlertingApi
|
|
@@ -1316,7 +1324,7 @@ if(ruleId===undefined||ruleId===null){throw'Missing the required parameter "rule
|
|
|
1316
1324
|
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling putAlertingRule';}return this.apiClient.callApi('/api/v2/alerting/rules/{ruleId}','PUT',{'ruleId':ruleId},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}}]);}();var AnalyticsApi=/*#__PURE__*/function(){/**
|
|
1317
1325
|
* Analytics service.
|
|
1318
1326
|
* @module purecloud-platform-client-v2/api/AnalyticsApi
|
|
1319
|
-
* @version
|
|
1327
|
+
* @version 194.0.0
|
|
1320
1328
|
*/ /**
|
|
1321
1329
|
* Constructs a new AnalyticsApi.
|
|
1322
1330
|
* @alias module:purecloud-platform-client-v2/api/AnalyticsApi
|
|
@@ -1329,11 +1337,6 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
1329
1337
|
* @param {String} jobId jobId
|
|
1330
1338
|
*/return _createClass(AnalyticsApi,[{key:"deleteAnalyticsConversationsDetailsJob",value:function deleteAnalyticsConversationsDetailsJob(jobId){// verify the required parameter 'jobId' is set
|
|
1331
1339
|
if(jobId===undefined||jobId===null){throw'Missing the required parameter "jobId" when calling deleteAnalyticsConversationsDetailsJob';}return this.apiClient.callApi('/api/v2/analytics/conversations/details/jobs/{jobId}','DELETE',{'jobId':jobId},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
1332
|
-
* Delete a scheduled report job.
|
|
1333
|
-
*
|
|
1334
|
-
* @param {String} scheduleId Schedule ID
|
|
1335
|
-
*/},{key:"deleteAnalyticsReportingSchedule",value:function deleteAnalyticsReportingSchedule(scheduleId){// verify the required parameter 'scheduleId' is set
|
|
1336
|
-
if(scheduleId===undefined||scheduleId===null){throw'Missing the required parameter "scheduleId" when calling deleteAnalyticsReportingSchedule';}return this.apiClient.callApi('/api/v2/analytics/reporting/schedules/{scheduleId}','DELETE',{'scheduleId':scheduleId},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
1337
1340
|
* Delete/cancel an async request
|
|
1338
1341
|
*
|
|
1339
1342
|
* @param {String} jobId jobId
|
|
@@ -1353,8 +1356,21 @@ if(jobId===undefined||jobId===null){throw'Missing the required parameter "jobId"
|
|
|
1353
1356
|
* getAnalyticsActionsAggregatesJobResults is a preview method and is subject to both breaking and non-breaking changes at any time without notice
|
|
1354
1357
|
*/},{key:"getAnalyticsActionsAggregatesJobResults",value:function getAnalyticsActionsAggregatesJobResults(jobId,opts){opts=opts||{};// verify the required parameter 'jobId' is set
|
|
1355
1358
|
if(jobId===undefined||jobId===null){throw'Missing the required parameter "jobId" when calling getAnalyticsActionsAggregatesJobResults';}return this.apiClient.callApi('/api/v2/analytics/actions/aggregates/jobs/{jobId}/results','GET',{'jobId':jobId},{'cursor':opts['cursor']},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
1359
|
+
* Get Reporting Turns (division aware).
|
|
1360
|
+
* Returns the reporting turns for the specified flow, filtered by the clients divisions and grouped by session, in reverse chronological order from the date the session was created, with the reporting turns from the most recent session appearing at the start of the list. For pagination, clients should keep sending requests using the value of nextUri in the response, until its no longer present, only then have all items have been returned. Note: resources returned by this endpoint are not persisted indefinitely, as they are deleted after approximately, but not before, 10 days.
|
|
1361
|
+
* @param {String} botFlowId ID of the bot flow.
|
|
1362
|
+
* @param {Object} opts Optional parameters
|
|
1363
|
+
* @param {String} opts.after The cursor that points to the ID of the last item in the list of entities that has been returned.
|
|
1364
|
+
* @param {String} opts.pageSize Max number of entities to return. Maximum of 250 (default to 50)
|
|
1365
|
+
* @param {String} opts.interval Date range filter based on the date the individual resources were completed. UTC is the default if no TZ is supplied, however alternate timezones can be used e.g: '2022-11-22T09:11:11.111+08:00/2022-11-30T07:17:44.586-07'. . Intervals are represented as an ISO-8601 string. For example: YYYY-MM-DDThh:mm:ss/YYYY-MM-DDThh:mm:ss
|
|
1366
|
+
* @param {String} opts.actionId Optional action ID to get the reporting turns associated to a particular flow action
|
|
1367
|
+
* @param {String} opts.sessionId Optional session ID to get the reporting turns for a particular session. Specifying a session ID alongside an action ID or a language or any ask action results is not allowed.
|
|
1368
|
+
* @param {String} opts.language Optional language code to get the reporting turns for a particular language
|
|
1369
|
+
* @param {Object} opts.askActionResults Optional case-insensitive comma separated list of ask action results to filter the reporting turns.
|
|
1370
|
+
*/},{key:"getAnalyticsBotflowDivisionsReportingturns",value:function getAnalyticsBotflowDivisionsReportingturns(botFlowId,opts){opts=opts||{};// verify the required parameter 'botFlowId' is set
|
|
1371
|
+
if(botFlowId===undefined||botFlowId===null){throw'Missing the required parameter "botFlowId" when calling getAnalyticsBotflowDivisionsReportingturns';}return this.apiClient.callApi('/api/v2/analytics/botflows/{botFlowId}/divisions/reportingturns','GET',{'botFlowId':botFlowId},{'after':opts['after'],'pageSize':opts['pageSize'],'interval':opts['interval'],'actionId':opts['actionId'],'sessionId':opts['sessionId'],'language':opts['language'],'askActionResults':opts['askActionResults']},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
1356
1372
|
* Get Reporting Turns.
|
|
1357
|
-
* Returns the reporting turns grouped by session, in reverse chronological order from the date the session was created, with the reporting turns from the most recent session appearing at the start of the list. For pagination, clients should keep sending requests using the value of nextUri in the response, until its no longer present, only then have all items have been returned. Note: resources returned by this endpoint are not persisted indefinitely, as they are deleted after approximately, but not before, 10 days.
|
|
1373
|
+
* Deprecated: Please use GET /analytics/botflows/{botFlowId}/divisions/reportingturns instead. Returns the reporting turns grouped by session, in reverse chronological order from the date the session was created, with the reporting turns from the most recent session appearing at the start of the list. For pagination, clients should keep sending requests using the value of nextUri in the response, until its no longer present, only then have all items have been returned. Note: resources returned by this endpoint are not persisted indefinitely, as they are deleted after approximately, but not before, 10 days.
|
|
1358
1374
|
* @param {String} botFlowId ID of the bot flow.
|
|
1359
1375
|
* @param {Object} opts Optional parameters
|
|
1360
1376
|
* @param {String} opts.after The cursor that points to the ID of the last item in the list of entities that has been returned.
|
|
@@ -1364,6 +1380,7 @@ if(jobId===undefined||jobId===null){throw'Missing the required parameter "jobId"
|
|
|
1364
1380
|
* @param {String} opts.sessionId Optional session ID to get the reporting turns for a particular session. Specifying a session ID alongside an action ID or a language or any ask action results is not allowed.
|
|
1365
1381
|
* @param {String} opts.language Optional language code to get the reporting turns for a particular language
|
|
1366
1382
|
* @param {Object} opts.askActionResults Optional case-insensitive comma separated list of ask action results to filter the reporting turns.
|
|
1383
|
+
* @deprecated
|
|
1367
1384
|
*/},{key:"getAnalyticsBotflowReportingturns",value:function getAnalyticsBotflowReportingturns(botFlowId,opts){opts=opts||{};// verify the required parameter 'botFlowId' is set
|
|
1368
1385
|
if(botFlowId===undefined||botFlowId===null){throw'Missing the required parameter "botFlowId" when calling getAnalyticsBotflowReportingturns';}return this.apiClient.callApi('/api/v2/analytics/botflows/{botFlowId}/reportingturns','GET',{'botFlowId':botFlowId},{'after':opts['after'],'pageSize':opts['pageSize'],'interval':opts['interval'],'actionId':opts['actionId'],'sessionId':opts['sessionId'],'language':opts['language'],'askActionResults':opts['askActionResults']},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
1369
1386
|
* Get Bot Flow Sessions.
|
|
@@ -1527,54 +1544,6 @@ if(userId===undefined||userId===null){throw'Missing the required parameter "user
|
|
|
1527
1544
|
* Get all export metadata
|
|
1528
1545
|
*
|
|
1529
1546
|
*/},{key:"getAnalyticsReportingExportsMetadata",value:function getAnalyticsReportingExportsMetadata(){return this.apiClient.callApi('/api/v2/analytics/reporting/exports/metadata','GET',{},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
1530
|
-
* Get list of reporting metadata.
|
|
1531
|
-
*
|
|
1532
|
-
* @param {Object} opts Optional parameters
|
|
1533
|
-
* @param {Number} opts.pageNumber Page number (default to 1)
|
|
1534
|
-
* @param {Number} opts.pageSize Page size (default to 25)
|
|
1535
|
-
* @param {String} opts.locale Locale
|
|
1536
|
-
*/},{key:"getAnalyticsReportingMetadata",value:function getAnalyticsReportingMetadata(opts){opts=opts||{};return this.apiClient.callApi('/api/v2/analytics/reporting/metadata','GET',{},{'pageNumber':opts['pageNumber'],'pageSize':opts['pageSize'],'locale':opts['locale']},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
1537
|
-
* Get a reporting metadata.
|
|
1538
|
-
*
|
|
1539
|
-
* @param {String} reportId Report ID
|
|
1540
|
-
* @param {Object} opts Optional parameters
|
|
1541
|
-
* @param {String} opts.locale Locale
|
|
1542
|
-
*/},{key:"getAnalyticsReportingReportIdMetadata",value:function getAnalyticsReportingReportIdMetadata(reportId,opts){opts=opts||{};// verify the required parameter 'reportId' is set
|
|
1543
|
-
if(reportId===undefined||reportId===null){throw'Missing the required parameter "reportId" when calling getAnalyticsReportingReportIdMetadata';}return this.apiClient.callApi('/api/v2/analytics/reporting/{reportId}/metadata','GET',{'reportId':reportId},{'locale':opts['locale']},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
1544
|
-
* Get a list of report formats
|
|
1545
|
-
* Get a list of report formats.
|
|
1546
|
-
*/},{key:"getAnalyticsReportingReportformats",value:function getAnalyticsReportingReportformats(){return this.apiClient.callApi('/api/v2/analytics/reporting/reportformats','GET',{},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
1547
|
-
* Get a scheduled report job.
|
|
1548
|
-
*
|
|
1549
|
-
* @param {String} scheduleId Schedule ID
|
|
1550
|
-
*/},{key:"getAnalyticsReportingSchedule",value:function getAnalyticsReportingSchedule(scheduleId){// verify the required parameter 'scheduleId' is set
|
|
1551
|
-
if(scheduleId===undefined||scheduleId===null){throw'Missing the required parameter "scheduleId" when calling getAnalyticsReportingSchedule';}return this.apiClient.callApi('/api/v2/analytics/reporting/schedules/{scheduleId}','GET',{'scheduleId':scheduleId},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
1552
|
-
* Get list of completed scheduled report jobs.
|
|
1553
|
-
*
|
|
1554
|
-
* @param {String} scheduleId Schedule ID
|
|
1555
|
-
* @param {Object} opts Optional parameters
|
|
1556
|
-
* @param {Number} opts.pageNumber (default to 1)
|
|
1557
|
-
* @param {Number} opts.pageSize (default to 25)
|
|
1558
|
-
*/},{key:"getAnalyticsReportingScheduleHistory",value:function getAnalyticsReportingScheduleHistory(scheduleId,opts){opts=opts||{};// verify the required parameter 'scheduleId' is set
|
|
1559
|
-
if(scheduleId===undefined||scheduleId===null){throw'Missing the required parameter "scheduleId" when calling getAnalyticsReportingScheduleHistory';}return this.apiClient.callApi('/api/v2/analytics/reporting/schedules/{scheduleId}/history','GET',{'scheduleId':scheduleId},{'pageNumber':opts['pageNumber'],'pageSize':opts['pageSize']},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
1560
|
-
* Get most recently completed scheduled report job.
|
|
1561
|
-
*
|
|
1562
|
-
* @param {String} scheduleId Schedule ID
|
|
1563
|
-
*/},{key:"getAnalyticsReportingScheduleHistoryLatest",value:function getAnalyticsReportingScheduleHistoryLatest(scheduleId){// verify the required parameter 'scheduleId' is set
|
|
1564
|
-
if(scheduleId===undefined||scheduleId===null){throw'Missing the required parameter "scheduleId" when calling getAnalyticsReportingScheduleHistoryLatest';}return this.apiClient.callApi('/api/v2/analytics/reporting/schedules/{scheduleId}/history/latest','GET',{'scheduleId':scheduleId},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
1565
|
-
* A completed scheduled report job
|
|
1566
|
-
* A completed scheduled report job.
|
|
1567
|
-
* @param {String} runId Run ID
|
|
1568
|
-
* @param {String} scheduleId Schedule ID
|
|
1569
|
-
*/},{key:"getAnalyticsReportingScheduleHistoryRunId",value:function getAnalyticsReportingScheduleHistoryRunId(runId,scheduleId){// verify the required parameter 'runId' is set
|
|
1570
|
-
if(runId===undefined||runId===null){throw'Missing the required parameter "runId" when calling getAnalyticsReportingScheduleHistoryRunId';}// verify the required parameter 'scheduleId' is set
|
|
1571
|
-
if(scheduleId===undefined||scheduleId===null){throw'Missing the required parameter "scheduleId" when calling getAnalyticsReportingScheduleHistoryRunId';}return this.apiClient.callApi('/api/v2/analytics/reporting/schedules/{scheduleId}/history/{runId}','GET',{'runId':runId,'scheduleId':scheduleId},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
1572
|
-
* Get a list of scheduled report jobs
|
|
1573
|
-
* Get a list of scheduled report jobs.
|
|
1574
|
-
* @param {Object} opts Optional parameters
|
|
1575
|
-
* @param {Number} opts.pageNumber Page number (default to 1)
|
|
1576
|
-
* @param {Number} opts.pageSize Page size (default to 25)
|
|
1577
|
-
*/},{key:"getAnalyticsReportingSchedules",value:function getAnalyticsReportingSchedules(opts){opts=opts||{};return this.apiClient.callApi('/api/v2/analytics/reporting/schedules','GET',{},{'pageNumber':opts['pageNumber'],'pageSize':opts['pageSize']},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
1578
1547
|
* Get AnalyticsReportingSettings for an organization
|
|
1579
1548
|
*
|
|
1580
1549
|
*/},{key:"getAnalyticsReportingSettings",value:function getAnalyticsReportingSettings(){return this.apiClient.callApi('/api/v2/analytics/reporting/settings','GET',{},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
@@ -1587,11 +1556,9 @@ if(scheduleId===undefined||scheduleId===null){throw'Missing the required paramet
|
|
|
1587
1556
|
* @param {Number} opts.pageSize (default to 50)
|
|
1588
1557
|
* @param {Boolean} opts.publicOnly If true, retrieve only public dashboards
|
|
1589
1558
|
* @param {Boolean} opts.favoriteOnly If true, retrieve only favorite dashboards
|
|
1559
|
+
* @param {String} opts.name retrieve dashboards that match with given name
|
|
1590
1560
|
*/},{key:"getAnalyticsReportingSettingsUserDashboards",value:function getAnalyticsReportingSettingsUserDashboards(userId,opts){opts=opts||{};// verify the required parameter 'userId' is set
|
|
1591
|
-
if(userId===undefined||userId===null){throw'Missing the required parameter "userId" when calling getAnalyticsReportingSettingsUserDashboards';}return this.apiClient.callApi('/api/v2/analytics/reporting/settings/users/{userId}/dashboards','GET',{'userId':userId},{'sortBy':opts['sortBy'],'pageNumber':opts['pageNumber'],'pageSize':opts['pageSize'],'publicOnly':opts['publicOnly'],'favoriteOnly':opts['favoriteOnly']},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
1592
|
-
* Get a list of report time periods.
|
|
1593
|
-
*
|
|
1594
|
-
*/},{key:"getAnalyticsReportingTimeperiods",value:function getAnalyticsReportingTimeperiods(){return this.apiClient.callApi('/api/v2/analytics/reporting/timeperiods','GET',{},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
1561
|
+
if(userId===undefined||userId===null){throw'Missing the required parameter "userId" when calling getAnalyticsReportingSettingsUserDashboards';}return this.apiClient.callApi('/api/v2/analytics/reporting/settings/users/{userId}/dashboards','GET',{'userId':userId},{'sortBy':opts['sortBy'],'pageNumber':opts['pageNumber'],'pageSize':opts['pageSize'],'publicOnly':opts['publicOnly'],'favoriteOnly':opts['favoriteOnly'],'name':opts['name']},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
1595
1562
|
* Get status for async query for resolution aggregates
|
|
1596
1563
|
*
|
|
1597
1564
|
* @param {String} jobId jobId
|
|
@@ -1718,7 +1685,6 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
1718
1685
|
* @param {Object} opts Optional parameters
|
|
1719
1686
|
* @param {Number} opts.pageSize The desired page size
|
|
1720
1687
|
* @param {Number} opts.pageNumber The desired page number
|
|
1721
|
-
* postAnalyticsConversationsActivityQuery is a preview method and is subject to both breaking and non-breaking changes at any time without notice
|
|
1722
1688
|
*/},{key:"postAnalyticsConversationsActivityQuery",value:function postAnalyticsConversationsActivityQuery(body,opts){opts=opts||{};// verify the required parameter 'body' is set
|
|
1723
1689
|
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling postAnalyticsConversationsActivityQuery';}return this.apiClient.callApi('/api/v2/analytics/conversations/activity/query','POST',{},{'pageSize':opts['pageSize'],'pageNumber':opts['pageNumber']},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
1724
1690
|
* Query for conversation aggregates asynchronously
|
|
@@ -1775,7 +1741,6 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
1775
1741
|
* @param {Object} opts Optional parameters
|
|
1776
1742
|
* @param {Number} opts.pageSize The desired page size
|
|
1777
1743
|
* @param {Number} opts.pageNumber The desired page number
|
|
1778
|
-
* postAnalyticsFlowsActivityQuery is a preview method and is subject to both breaking and non-breaking changes at any time without notice
|
|
1779
1744
|
*/},{key:"postAnalyticsFlowsActivityQuery",value:function postAnalyticsFlowsActivityQuery(body,opts){opts=opts||{};// verify the required parameter 'body' is set
|
|
1780
1745
|
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling postAnalyticsFlowsActivityQuery';}return this.apiClient.callApi('/api/v2/analytics/flows/activity/query','POST',{},{'pageSize':opts['pageSize'],'pageNumber':opts['pageNumber']},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
1781
1746
|
* Query for flow aggregates asynchronously
|
|
@@ -1836,18 +1801,6 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
1836
1801
|
* @param {Object} body ReportingExportJobRequest
|
|
1837
1802
|
*/},{key:"postAnalyticsReportingExports",value:function postAnalyticsReportingExports(body){// verify the required parameter 'body' is set
|
|
1838
1803
|
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling postAnalyticsReportingExports';}return this.apiClient.callApi('/api/v2/analytics/reporting/exports','POST',{},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
1839
|
-
* Place a scheduled report immediately into the reporting queue
|
|
1840
|
-
* This route is deprecated, please use POST:api/v2/analytics/reporting/exports/{exportId}/execute instead
|
|
1841
|
-
* @param {String} scheduleId Schedule ID
|
|
1842
|
-
* @deprecated
|
|
1843
|
-
*/},{key:"postAnalyticsReportingScheduleRunreport",value:function postAnalyticsReportingScheduleRunreport(scheduleId){// verify the required parameter 'scheduleId' is set
|
|
1844
|
-
if(scheduleId===undefined||scheduleId===null){throw'Missing the required parameter "scheduleId" when calling postAnalyticsReportingScheduleRunreport';}return this.apiClient.callApi('/api/v2/analytics/reporting/schedules/{scheduleId}/runreport','POST',{'scheduleId':scheduleId},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
1845
|
-
* Create a scheduled report job
|
|
1846
|
-
* This route is deprecated, please use POST:api/v2/analytics/reporting/exports instead
|
|
1847
|
-
* @param {Object} body ReportSchedule
|
|
1848
|
-
* @deprecated
|
|
1849
|
-
*/},{key:"postAnalyticsReportingSchedules",value:function postAnalyticsReportingSchedules(body){// verify the required parameter 'body' is set
|
|
1850
|
-
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling postAnalyticsReportingSchedules';}return this.apiClient.callApi('/api/v2/analytics/reporting/schedules','POST',{},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
1851
1804
|
* Bulk remove dashboard configurations
|
|
1852
1805
|
*
|
|
1853
1806
|
* @param {Object} body
|
|
@@ -1870,7 +1823,6 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
1870
1823
|
* @param {Object} opts Optional parameters
|
|
1871
1824
|
* @param {Number} opts.pageSize The desired page size
|
|
1872
1825
|
* @param {Number} opts.pageNumber The desired page number
|
|
1873
|
-
* postAnalyticsRoutingActivityQuery is a preview method and is subject to both breaking and non-breaking changes at any time without notice
|
|
1874
1826
|
*/},{key:"postAnalyticsRoutingActivityQuery",value:function postAnalyticsRoutingActivityQuery(body,opts){opts=opts||{};// verify the required parameter 'body' is set
|
|
1875
1827
|
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling postAnalyticsRoutingActivityQuery';}return this.apiClient.callApi('/api/v2/analytics/routing/activity/query','POST',{},{'pageSize':opts['pageSize'],'pageNumber':opts['pageNumber']},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
1876
1828
|
* Query for survey aggregates asynchronously
|
|
@@ -1902,7 +1854,6 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
1902
1854
|
* @param {Object} opts Optional parameters
|
|
1903
1855
|
* @param {Number} opts.pageSize The desired page size
|
|
1904
1856
|
* @param {Number} opts.pageNumber The desired page number
|
|
1905
|
-
* postAnalyticsTeamsActivityQuery is a preview method and is subject to both breaking and non-breaking changes at any time without notice
|
|
1906
1857
|
*/},{key:"postAnalyticsTeamsActivityQuery",value:function postAnalyticsTeamsActivityQuery(body,opts){opts=opts||{};// verify the required parameter 'body' is set
|
|
1907
1858
|
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling postAnalyticsTeamsActivityQuery';}return this.apiClient.callApi('/api/v2/analytics/teams/activity/query','POST',{},{'pageSize':opts['pageSize'],'pageNumber':opts['pageNumber']},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
1908
1859
|
* Query for transcript aggregates asynchronously
|
|
@@ -1922,7 +1873,6 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
1922
1873
|
* @param {Object} opts Optional parameters
|
|
1923
1874
|
* @param {Number} opts.pageSize The desired page size
|
|
1924
1875
|
* @param {Number} opts.pageNumber The desired page number
|
|
1925
|
-
* postAnalyticsUsersActivityQuery is a preview method and is subject to both breaking and non-breaking changes at any time without notice
|
|
1926
1876
|
*/},{key:"postAnalyticsUsersActivityQuery",value:function postAnalyticsUsersActivityQuery(body,opts){opts=opts||{};// verify the required parameter 'body' is set
|
|
1927
1877
|
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling postAnalyticsUsersActivityQuery';}return this.apiClient.callApi('/api/v2/analytics/users/activity/query','POST',{},{'pageSize':opts['pageSize'],'pageNumber':opts['pageNumber']},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
1928
1878
|
* Query for user aggregates asynchronously
|
|
@@ -1955,18 +1905,10 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
1955
1905
|
*
|
|
1956
1906
|
* @param {Object} body retentionDays
|
|
1957
1907
|
*/},{key:"putAnalyticsDataretentionSettings",value:function putAnalyticsDataretentionSettings(body){// verify the required parameter 'body' is set
|
|
1958
|
-
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling putAnalyticsDataretentionSettings';}return this.apiClient.callApi('/api/v2/analytics/dataretention/settings','PUT',{},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
1959
|
-
* Update a scheduled report job.
|
|
1960
|
-
* This route is deprecated, please use PATCH:api/v2/analytics/reporting/exports/{exportId}/schedule instead
|
|
1961
|
-
* @param {String} scheduleId Schedule ID
|
|
1962
|
-
* @param {Object} body ReportSchedule
|
|
1963
|
-
* @deprecated
|
|
1964
|
-
*/},{key:"putAnalyticsReportingSchedule",value:function putAnalyticsReportingSchedule(scheduleId,body){// verify the required parameter 'scheduleId' is set
|
|
1965
|
-
if(scheduleId===undefined||scheduleId===null){throw'Missing the required parameter "scheduleId" when calling putAnalyticsReportingSchedule';}// verify the required parameter 'body' is set
|
|
1966
|
-
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling putAnalyticsReportingSchedule';}return this.apiClient.callApi('/api/v2/analytics/reporting/schedules/{scheduleId}','PUT',{'scheduleId':scheduleId},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}}]);}();var ArchitectApi=/*#__PURE__*/function(){/**
|
|
1908
|
+
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling putAnalyticsDataretentionSettings';}return this.apiClient.callApi('/api/v2/analytics/dataretention/settings','PUT',{},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}}]);}();var ArchitectApi=/*#__PURE__*/function(){/**
|
|
1967
1909
|
* Architect service.
|
|
1968
1910
|
* @module purecloud-platform-client-v2/api/ArchitectApi
|
|
1969
|
-
* @version
|
|
1911
|
+
* @version 194.0.0
|
|
1970
1912
|
*/ /**
|
|
1971
1913
|
* Constructs a new ArchitectApi.
|
|
1972
1914
|
* @alias module:purecloud-platform-client-v2/api/ArchitectApi
|
|
@@ -3082,7 +3024,7 @@ if(milestoneId===undefined||milestoneId===null){throw'Missing the required param
|
|
|
3082
3024
|
if(flowOutcomeId===undefined||flowOutcomeId===null){throw'Missing the required parameter "flowOutcomeId" when calling putFlowsOutcome';}return this.apiClient.callApi('/api/v2/flows/outcomes/{flowOutcomeId}','PUT',{'flowOutcomeId':flowOutcomeId},{},{},{},opts['body'],['PureCloud OAuth'],['application/json'],['application/json']);}}]);}();var AuditApi=/*#__PURE__*/function(){/**
|
|
3083
3025
|
* Audit service.
|
|
3084
3026
|
* @module purecloud-platform-client-v2/api/AuditApi
|
|
3085
|
-
* @version
|
|
3027
|
+
* @version 194.0.0
|
|
3086
3028
|
*/ /**
|
|
3087
3029
|
* Constructs a new AuditApi.
|
|
3088
3030
|
* @alias module:purecloud-platform-client-v2/api/AuditApi
|
|
@@ -3121,10 +3063,17 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
3121
3063
|
* @param {Object} opts Optional parameters
|
|
3122
3064
|
* @param {Array.<String>} opts.expand Which fields, if any, to expand
|
|
3123
3065
|
*/},{key:"postAuditsQueryRealtime",value:function postAuditsQueryRealtime(body,opts){opts=opts||{};// verify the required parameter 'body' is set
|
|
3124
|
-
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']);}
|
|
3066
|
+
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling postAuditsQueryRealtime';}return this.apiClient.callApi('/api/v2/audits/query/realtime','POST',{},{'expand':this.apiClient.buildCollectionParam(opts['expand'],'multi')},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
3067
|
+
* Often a single action results in multiple audits. The endpoint retrieves all audits created by the same action as the given audit id.
|
|
3068
|
+
*
|
|
3069
|
+
* @param {Object} body query
|
|
3070
|
+
* @param {Object} opts Optional parameters
|
|
3071
|
+
* @param {Array.<String>} opts.expand Which fields, if any, to expand
|
|
3072
|
+
*/},{key:"postAuditsQueryRealtimeRelated",value:function postAuditsQueryRealtimeRelated(body,opts){opts=opts||{};// verify the required parameter 'body' is set
|
|
3073
|
+
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(){/**
|
|
3125
3074
|
* Authorization service.
|
|
3126
3075
|
* @module purecloud-platform-client-v2/api/AuthorizationApi
|
|
3127
|
-
* @version
|
|
3076
|
+
* @version 194.0.0
|
|
3128
3077
|
*/ /**
|
|
3129
3078
|
* Constructs a new AuthorizationApi.
|
|
3130
3079
|
* @alias module:purecloud-platform-client-v2/api/AuthorizationApi
|
|
@@ -3439,7 +3388,7 @@ if(subjectId===undefined||subjectId===null){throw'Missing the required parameter
|
|
|
3439
3388
|
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling putUserRoles';}return this.apiClient.callApi('/api/v2/users/{subjectId}/roles','PUT',{'subjectId':subjectId},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}}]);}();var BillingApi=/*#__PURE__*/function(){/**
|
|
3440
3389
|
* Billing service.
|
|
3441
3390
|
* @module purecloud-platform-client-v2/api/BillingApi
|
|
3442
|
-
* @version
|
|
3391
|
+
* @version 194.0.0
|
|
3443
3392
|
*/ /**
|
|
3444
3393
|
* Constructs a new BillingApi.
|
|
3445
3394
|
* @alias module:purecloud-platform-client-v2/api/BillingApi
|
|
@@ -3463,7 +3412,7 @@ if(endDate===undefined||endDate===null){throw'Missing the required parameter "en
|
|
|
3463
3412
|
if(trustorOrgId===undefined||trustorOrgId===null){throw'Missing the required parameter "trustorOrgId" when calling getBillingTrusteebillingoverviewTrustorOrgId';}return this.apiClient.callApi('/api/v2/billing/trusteebillingoverview/{trustorOrgId}','GET',{'trustorOrgId':trustorOrgId},{'billingPeriodIndex':opts['billingPeriodIndex']},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}}]);}();var CarrierServicesApi=/*#__PURE__*/function(){/**
|
|
3464
3413
|
* CarrierServices service.
|
|
3465
3414
|
* @module purecloud-platform-client-v2/api/CarrierServicesApi
|
|
3466
|
-
* @version
|
|
3415
|
+
* @version 194.0.0
|
|
3467
3416
|
*/ /**
|
|
3468
3417
|
* Constructs a new CarrierServicesApi.
|
|
3469
3418
|
* @alias module:purecloud-platform-client-v2/api/CarrierServicesApi
|
|
@@ -3483,7 +3432,7 @@ if(phoneNumber===undefined||phoneNumber===null){throw'Missing the required param
|
|
|
3483
3432
|
*/},{key:"postCarrierservicesIntegrationsEmergencylocationsMe",value:function postCarrierservicesIntegrationsEmergencylocationsMe(opts){opts=opts||{};return this.apiClient.callApi('/api/v2/carrierservices/integrations/emergencylocations/me','POST',{},{},{},{},opts['body'],['PureCloud OAuth'],['application/json'],['application/json']);}}]);}();var ChatApi=/*#__PURE__*/function(){/**
|
|
3484
3433
|
* Chat service.
|
|
3485
3434
|
* @module purecloud-platform-client-v2/api/ChatApi
|
|
3486
|
-
* @version
|
|
3435
|
+
* @version 194.0.0
|
|
3487
3436
|
*/ /**
|
|
3488
3437
|
* Constructs a new ChatApi.
|
|
3489
3438
|
* @alias module:purecloud-platform-client-v2/api/ChatApi
|
|
@@ -3605,6 +3554,10 @@ if(userId===undefined||userId===null){throw'Missing the required parameter "user
|
|
|
3605
3554
|
* getChatsUserSettings is a preview method and is subject to both breaking and non-breaking changes at any time without notice
|
|
3606
3555
|
*/},{key:"getChatsUserSettings",value:function getChatsUserSettings(userId){// verify the required parameter 'userId' is set
|
|
3607
3556
|
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']);}/**
|
|
3557
|
+
* Get a user's chat settings
|
|
3558
|
+
*
|
|
3559
|
+
* getChatsUsersMeSettings is a preview method and is subject to both breaking and non-breaking changes at any time without notice
|
|
3560
|
+
*/},{key:"getChatsUsersMeSettings",value:function getChatsUsersMeSettings(){return this.apiClient.callApi('/api/v2/chats/users/me/settings','GET',{},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
3608
3561
|
* Set properties for a room
|
|
3609
3562
|
*
|
|
3610
3563
|
* @param {String} roomJid roomJid
|
|
@@ -3643,6 +3596,12 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
3643
3596
|
*/},{key:"patchChatsUserSettings",value:function patchChatsUserSettings(userId,body){// verify the required parameter 'userId' is set
|
|
3644
3597
|
if(userId===undefined||userId===null){throw'Missing the required parameter "userId" when calling patchChatsUserSettings';}// verify the required parameter 'body' is set
|
|
3645
3598
|
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']);}/**
|
|
3599
|
+
* Update a user's chat settings
|
|
3600
|
+
*
|
|
3601
|
+
* @param {Object} body
|
|
3602
|
+
* patchChatsUsersMeSettings is a preview method and is subject to both breaking and non-breaking changes at any time without notice
|
|
3603
|
+
*/},{key:"patchChatsUsersMeSettings",value:function patchChatsUsersMeSettings(body){// verify the required parameter 'body' is set
|
|
3604
|
+
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling patchChatsUsersMeSettings';}return this.apiClient.callApi('/api/v2/chats/users/me/settings','PATCH',{},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
3646
3605
|
* Send a message to a room
|
|
3647
3606
|
*
|
|
3648
3607
|
* @param {String} roomJid roomId
|
|
@@ -3698,7 +3657,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
3698
3657
|
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling putChatsSettings';}return this.apiClient.callApi('/api/v2/chats/settings','PUT',{},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}}]);}();var CoachingApi=/*#__PURE__*/function(){/**
|
|
3699
3658
|
* Coaching service.
|
|
3700
3659
|
* @module purecloud-platform-client-v2/api/CoachingApi
|
|
3701
|
-
* @version
|
|
3660
|
+
* @version 194.0.0
|
|
3702
3661
|
*/ /**
|
|
3703
3662
|
* Constructs a new CoachingApi.
|
|
3704
3663
|
* @alias module:purecloud-platform-client-v2/api/CoachingApi
|
|
@@ -3851,7 +3810,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
3851
3810
|
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling postCoachingScheduleslotsQuery';}return this.apiClient.callApi('/api/v2/coaching/scheduleslots/query','POST',{},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}}]);}();var ContentManagementApi=/*#__PURE__*/function(){/**
|
|
3852
3811
|
* ContentManagement service.
|
|
3853
3812
|
* @module purecloud-platform-client-v2/api/ContentManagementApi
|
|
3854
|
-
* @version
|
|
3813
|
+
* @version 194.0.0
|
|
3855
3814
|
*/ /**
|
|
3856
3815
|
* Constructs a new ContentManagementApi.
|
|
3857
3816
|
* @alias module:purecloud-platform-client-v2/api/ContentManagementApi
|
|
@@ -4134,7 +4093,7 @@ if(tagId===undefined||tagId===null){throw'Missing the required parameter "tagId"
|
|
|
4134
4093
|
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling putContentmanagementWorkspaceTagvalue';}return this.apiClient.callApi('/api/v2/contentmanagement/workspaces/{workspaceId}/tagvalues/{tagId}','PUT',{'workspaceId':workspaceId,'tagId':tagId},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}}]);}();var ConversationsApi=/*#__PURE__*/function(){/**
|
|
4135
4094
|
* Conversations service.
|
|
4136
4095
|
* @module purecloud-platform-client-v2/api/ConversationsApi
|
|
4137
|
-
* @version
|
|
4096
|
+
* @version 194.0.0
|
|
4138
4097
|
*/ /**
|
|
4139
4098
|
* Constructs a new ConversationsApi.
|
|
4140
4099
|
* @alias module:purecloud-platform-client-v2/api/ConversationsApi
|
|
@@ -4192,23 +4151,11 @@ if(integrationId===undefined||integrationId===null){throw'Missing the required p
|
|
|
4192
4151
|
* @param {String} integrationId Integration ID
|
|
4193
4152
|
*/},{key:"deleteConversationsMessagingIntegrationsInstagramIntegrationId",value:function deleteConversationsMessagingIntegrationsInstagramIntegrationId(integrationId){// verify the required parameter 'integrationId' is set
|
|
4194
4153
|
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']);}/**
|
|
4195
|
-
* Delete a LINE messenger integration (Deprecated)
|
|
4196
|
-
* This endpoint is deprecated. Please see the article https://help.mypurecloud.com/articles/deprecation-native-line-third-party-messaging-channel/
|
|
4197
|
-
* @param {String} integrationId Integration ID
|
|
4198
|
-
* @deprecated
|
|
4199
|
-
*/},{key:"deleteConversationsMessagingIntegrationsLineIntegrationId",value:function deleteConversationsMessagingIntegrationsLineIntegrationId(integrationId){// verify the required parameter 'integrationId' is set
|
|
4200
|
-
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']);}/**
|
|
4201
4154
|
* Delete an Open messaging integration
|
|
4202
4155
|
* See https://developer.genesys.cloud/api/digital/openmessaging/ for more information.
|
|
4203
4156
|
* @param {String} integrationId Integration ID
|
|
4204
4157
|
*/},{key:"deleteConversationsMessagingIntegrationsOpenIntegrationId",value:function deleteConversationsMessagingIntegrationsOpenIntegrationId(integrationId){// verify the required parameter 'integrationId' is set
|
|
4205
4158
|
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']);}/**
|
|
4206
|
-
* Delete a Twitter messaging integration
|
|
4207
|
-
* This endpoint is deprecated. Please see the article https://help.mypurecloud.com/articles/deprecation-native-x-formerly-twitter-third-party-messaging-channel/
|
|
4208
|
-
* @param {String} integrationId Integration ID
|
|
4209
|
-
* @deprecated
|
|
4210
|
-
*/},{key:"deleteConversationsMessagingIntegrationsTwitterIntegrationId",value:function deleteConversationsMessagingIntegrationsTwitterIntegrationId(integrationId){// verify the required parameter 'integrationId' is set
|
|
4211
|
-
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']);}/**
|
|
4212
4159
|
* Delete a WhatsApp messaging integration
|
|
4213
4160
|
*
|
|
4214
4161
|
* @param {String} integrationId Integration ID
|
|
@@ -4669,24 +4616,6 @@ if(integrationId===undefined||integrationId===null){throw'Missing the required p
|
|
|
4669
4616
|
* @param {Object} opts.expand Expand instructions for the return value.
|
|
4670
4617
|
*/},{key:"getConversationsMessagingIntegrationsInstagramIntegrationId",value:function getConversationsMessagingIntegrationsInstagramIntegrationId(integrationId,opts){opts=opts||{};// verify the required parameter 'integrationId' is set
|
|
4671
4618
|
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']);}/**
|
|
4672
|
-
* Get a list of LINE messenger Integrations (Deprecated)
|
|
4673
|
-
* This endpoint is deprecated. Please see the article https://help.mypurecloud.com/articles/deprecation-native-line-third-party-messaging-channel/
|
|
4674
|
-
* @param {Object} opts Optional parameters
|
|
4675
|
-
* @param {Number} opts.pageSize Page size (default to 25)
|
|
4676
|
-
* @param {Number} opts.pageNumber Page number (default to 1)
|
|
4677
|
-
* @param {Object} opts.expand Expand instructions for the return value.
|
|
4678
|
-
* @param {String} opts.supportedContentId Filter integrations returned based on the supported content ID
|
|
4679
|
-
* @param {String} opts.messagingSettingId Filter integrations returned based on the setting ID
|
|
4680
|
-
* @deprecated
|
|
4681
|
-
*/},{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']);}/**
|
|
4682
|
-
* Get a LINE messenger integration (Deprecated)
|
|
4683
|
-
* This endpoint is deprecated. Please see the article https://help.mypurecloud.com/articles/deprecation-native-line-third-party-messaging-channel/
|
|
4684
|
-
* @param {String} integrationId Integration ID
|
|
4685
|
-
* @param {Object} opts Optional parameters
|
|
4686
|
-
* @param {Object} opts.expand Expand instructions for the return value.
|
|
4687
|
-
* @deprecated
|
|
4688
|
-
*/},{key:"getConversationsMessagingIntegrationsLineIntegrationId",value:function getConversationsMessagingIntegrationsLineIntegrationId(integrationId,opts){opts=opts||{};// verify the required parameter 'integrationId' is set
|
|
4689
|
-
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']);}/**
|
|
4690
4619
|
* Get a list of Open messaging integrations
|
|
4691
4620
|
* See https://developer.genesys.cloud/api/digital/openmessaging/ for more information.
|
|
4692
4621
|
* @param {Object} opts Optional parameters
|
|
@@ -4703,24 +4632,6 @@ if(integrationId===undefined||integrationId===null){throw'Missing the required p
|
|
|
4703
4632
|
* @param {Object} opts.expand Expand instructions for the return value.
|
|
4704
4633
|
*/},{key:"getConversationsMessagingIntegrationsOpenIntegrationId",value:function getConversationsMessagingIntegrationsOpenIntegrationId(integrationId,opts){opts=opts||{};// verify the required parameter 'integrationId' is set
|
|
4705
4634
|
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']);}/**
|
|
4706
|
-
* Get a list of Twitter Integrations (Deprecated)
|
|
4707
|
-
* This endpoint is deprecated. Please see the article https://help.mypurecloud.com/articles/deprecation-native-x-formerly-twitter-third-party-messaging-channel/
|
|
4708
|
-
* @param {Object} opts Optional parameters
|
|
4709
|
-
* @param {Number} opts.pageSize Page size (default to 25)
|
|
4710
|
-
* @param {Number} opts.pageNumber Page number (default to 1)
|
|
4711
|
-
* @param {Object} opts.expand Expand instructions for the return value.
|
|
4712
|
-
* @param {String} opts.supportedContentId Filter integrations returned based on the supported content ID
|
|
4713
|
-
* @param {String} opts.messagingSettingId Filter integrations returned based on the setting ID
|
|
4714
|
-
* @deprecated
|
|
4715
|
-
*/},{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']);}/**
|
|
4716
|
-
* Get a Twitter messaging integration (Deprecated)
|
|
4717
|
-
* This endpoint is deprecated. Please see the article https://help.mypurecloud.com/articles/deprecation-native-x-formerly-twitter-third-party-messaging-channel/
|
|
4718
|
-
* @param {String} integrationId Integration ID
|
|
4719
|
-
* @param {Object} opts Optional parameters
|
|
4720
|
-
* @param {Object} opts.expand Expand instructions for the return value.
|
|
4721
|
-
* @deprecated
|
|
4722
|
-
*/},{key:"getConversationsMessagingIntegrationsTwitterIntegrationId",value:function getConversationsMessagingIntegrationsTwitterIntegrationId(integrationId,opts){opts=opts||{};// verify the required parameter 'integrationId' is set
|
|
4723
|
-
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']);}/**
|
|
4724
4635
|
* Get a list of WhatsApp Integrations
|
|
4725
4636
|
*
|
|
4726
4637
|
* @param {Object} opts Optional parameters
|
|
@@ -5134,14 +5045,6 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
5134
5045
|
*/},{key:"patchConversationsMessagingIntegrationsOpenIntegrationId",value:function patchConversationsMessagingIntegrationsOpenIntegrationId(integrationId,body){// verify the required parameter 'integrationId' is set
|
|
5135
5046
|
if(integrationId===undefined||integrationId===null){throw'Missing the required parameter "integrationId" when calling patchConversationsMessagingIntegrationsOpenIntegrationId';}// verify the required parameter 'body' is set
|
|
5136
5047
|
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']);}/**
|
|
5137
|
-
* Update Twitter messaging integration
|
|
5138
|
-
* This endpoint is deprecated. Please see the article https://help.mypurecloud.com/articles/deprecation-native-x-formerly-twitter-third-party-messaging-channel/
|
|
5139
|
-
* @param {String} integrationId Integration ID
|
|
5140
|
-
* @param {Object} body TwitterIntegrationRequest
|
|
5141
|
-
* @deprecated
|
|
5142
|
-
*/},{key:"patchConversationsMessagingIntegrationsTwitterIntegrationId",value:function patchConversationsMessagingIntegrationsTwitterIntegrationId(integrationId,body){// verify the required parameter 'integrationId' is set
|
|
5143
|
-
if(integrationId===undefined||integrationId===null){throw'Missing the required parameter "integrationId" when calling patchConversationsMessagingIntegrationsTwitterIntegrationId';}// verify the required parameter 'body' is set
|
|
5144
|
-
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']);}/**
|
|
5145
5048
|
* Activate a WhatsApp messaging integration created using the WhatsApp embedded signup flow
|
|
5146
5049
|
* 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
|
|
5147
5050
|
* @param {String} integrationId Integration ID
|
|
@@ -5188,7 +5091,6 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
5188
5091
|
* @param {Object} opts Optional parameters
|
|
5189
5092
|
* @param {Number} opts.pageSize The desired page size
|
|
5190
5093
|
* @param {Number} opts.pageNumber The desired page number
|
|
5191
|
-
* postAnalyticsConversationsActivityQuery is a preview method and is subject to both breaking and non-breaking changes at any time without notice
|
|
5192
5094
|
*/},{key:"postAnalyticsConversationsActivityQuery",value:function postAnalyticsConversationsActivityQuery(body,opts){opts=opts||{};// verify the required parameter 'body' is set
|
|
5193
5095
|
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling postAnalyticsConversationsActivityQuery';}return this.apiClient.callApi('/api/v2/analytics/conversations/activity/query','POST',{},{'pageSize':opts['pageSize'],'pageNumber':opts['pageNumber']},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
5194
5096
|
* Query for conversation aggregates asynchronously
|
|
@@ -5677,23 +5579,11 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
5677
5579
|
* @param {Object} body InstagramIntegrationRequest
|
|
5678
5580
|
*/},{key:"postConversationsMessagingIntegrationsInstagram",value:function postConversationsMessagingIntegrationsInstagram(body){// verify the required parameter 'body' is set
|
|
5679
5581
|
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']);}/**
|
|
5680
|
-
* Create a LINE messenger Integration (Deprecated)
|
|
5681
|
-
* This endpoint is deprecated. Please see the article https://help.mypurecloud.com/articles/deprecation-native-line-third-party-messaging-channel/
|
|
5682
|
-
* @param {Object} body LineIntegrationRequest
|
|
5683
|
-
* @deprecated
|
|
5684
|
-
*/},{key:"postConversationsMessagingIntegrationsLine",value:function postConversationsMessagingIntegrationsLine(body){// verify the required parameter 'body' is set
|
|
5685
|
-
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']);}/**
|
|
5686
5582
|
* Create an Open messaging integration
|
|
5687
5583
|
* See https://developer.genesys.cloud/api/digital/openmessaging/ for more information.
|
|
5688
5584
|
* @param {Object} body OpenIntegrationRequest
|
|
5689
5585
|
*/},{key:"postConversationsMessagingIntegrationsOpen",value:function postConversationsMessagingIntegrationsOpen(body){// verify the required parameter 'body' is set
|
|
5690
5586
|
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']);}/**
|
|
5691
|
-
* Create a Twitter Integration
|
|
5692
|
-
* This endpoint is deprecated. Please see the article https://help.mypurecloud.com/articles/deprecation-native-x-formerly-twitter-third-party-messaging-channel/
|
|
5693
|
-
* @param {Object} body TwitterIntegrationRequest
|
|
5694
|
-
* @deprecated
|
|
5695
|
-
*/},{key:"postConversationsMessagingIntegrationsTwitter",value:function postConversationsMessagingIntegrationsTwitter(body){// verify the required parameter 'body' is set
|
|
5696
|
-
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']);}/**
|
|
5697
5587
|
* [This API is deprecated. Use POST /api/v2/conversations/messaging/integrations/whatsapp/embeddedsignup instead] Create a WhatsApp Integration
|
|
5698
5588
|
* [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.
|
|
5699
5589
|
* @param {Object} body WhatsAppIntegrationRequest
|
|
@@ -5848,14 +5738,6 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
5848
5738
|
*/},{key:"putConversationsMessageRecordingstate",value:function putConversationsMessageRecordingstate(conversationId,body){// verify the required parameter 'conversationId' is set
|
|
5849
5739
|
if(conversationId===undefined||conversationId===null){throw'Missing the required parameter "conversationId" when calling putConversationsMessageRecordingstate';}// verify the required parameter 'body' is set
|
|
5850
5740
|
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']);}/**
|
|
5851
|
-
* Update a LINE messenger integration (Deprecated)
|
|
5852
|
-
* This endpoint is deprecated. Please see the article https://help.mypurecloud.com/articles/deprecation-native-line-third-party-messaging-channel/
|
|
5853
|
-
* @param {String} integrationId Integration ID
|
|
5854
|
-
* @param {Object} body LineIntegrationRequest
|
|
5855
|
-
* @deprecated
|
|
5856
|
-
*/},{key:"putConversationsMessagingIntegrationsLineIntegrationId",value:function putConversationsMessagingIntegrationsLineIntegrationId(integrationId,body){// verify the required parameter 'integrationId' is set
|
|
5857
|
-
if(integrationId===undefined||integrationId===null){throw'Missing the required parameter "integrationId" when calling putConversationsMessagingIntegrationsLineIntegrationId';}// verify the required parameter 'body' is set
|
|
5858
|
-
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']);}/**
|
|
5859
5741
|
* Set the organization's default setting that may be applied to to integrations without settings
|
|
5860
5742
|
* 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.
|
|
5861
5743
|
* @param {Object} body MessagingSetting
|
|
@@ -5895,7 +5777,7 @@ if(conversationId===undefined||conversationId===null){throw'Missing the required
|
|
|
5895
5777
|
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling putConversationsVideoRecordingstate';}return this.apiClient.callApi('/api/v2/conversations/videos/{conversationId}/recordingstate','PUT',{'conversationId':conversationId},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}}]);}();var DataExtensionsApi=/*#__PURE__*/function(){/**
|
|
5896
5778
|
* DataExtensions service.
|
|
5897
5779
|
* @module purecloud-platform-client-v2/api/DataExtensionsApi
|
|
5898
|
-
* @version
|
|
5780
|
+
* @version 194.0.0
|
|
5899
5781
|
*/ /**
|
|
5900
5782
|
* Constructs a new DataExtensionsApi.
|
|
5901
5783
|
* @alias module:purecloud-platform-client-v2/api/DataExtensionsApi
|
|
@@ -5916,7 +5798,7 @@ if(coretypeName===undefined||coretypeName===null){throw'Missing the required par
|
|
|
5916
5798
|
*/},{key:"getDataextensionsLimits",value:function getDataextensionsLimits(){return this.apiClient.callApi('/api/v2/dataextensions/limits','GET',{},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}}]);}();var DownloadsApi=/*#__PURE__*/function(){/**
|
|
5917
5799
|
* Downloads service.
|
|
5918
5800
|
* @module purecloud-platform-client-v2/api/DownloadsApi
|
|
5919
|
-
* @version
|
|
5801
|
+
* @version 194.0.0
|
|
5920
5802
|
*/ /**
|
|
5921
5803
|
* Constructs a new DownloadsApi.
|
|
5922
5804
|
* @alias module:purecloud-platform-client-v2/api/DownloadsApi
|
|
@@ -5935,7 +5817,7 @@ if(coretypeName===undefined||coretypeName===null){throw'Missing the required par
|
|
|
5935
5817
|
if(downloadId===undefined||downloadId===null){throw'Missing the required parameter "downloadId" when calling getDownload';}return this.apiClient.callApi('/api/v2/downloads/{downloadId}','GET',{'downloadId':downloadId},{'contentDisposition':opts['contentDisposition'],'issueRedirect':opts['issueRedirect'],'redirectToAuth':opts['redirectToAuth']},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}}]);}();var EmailsApi=/*#__PURE__*/function(){/**
|
|
5936
5818
|
* Emails service.
|
|
5937
5819
|
* @module purecloud-platform-client-v2/api/EmailsApi
|
|
5938
|
-
* @version
|
|
5820
|
+
* @version 194.0.0
|
|
5939
5821
|
*/ /**
|
|
5940
5822
|
* Constructs a new EmailsApi.
|
|
5941
5823
|
* @alias module:purecloud-platform-client-v2/api/EmailsApi
|
|
@@ -5953,7 +5835,7 @@ if(downloadId===undefined||downloadId===null){throw'Missing the required paramet
|
|
|
5953
5835
|
*/},{key:"patchEmailsSettings",value:function patchEmailsSettings(opts){opts=opts||{};return this.apiClient.callApi('/api/v2/emails/settings','PATCH',{},{},{},{},opts['body'],['PureCloud OAuth'],['application/json'],['application/json']);}}]);}();var EventsApi=/*#__PURE__*/function(){/**
|
|
5954
5836
|
* Events service.
|
|
5955
5837
|
* @module purecloud-platform-client-v2/api/EventsApi
|
|
5956
|
-
* @version
|
|
5838
|
+
* @version 194.0.0
|
|
5957
5839
|
*/ /**
|
|
5958
5840
|
* Constructs a new EventsApi.
|
|
5959
5841
|
* @alias module:purecloud-platform-client-v2/api/EventsApi
|
|
@@ -5978,7 +5860,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
5978
5860
|
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling postEventsUsersRoutingstatus';}return this.apiClient.callApi('/api/v2/events/users/routingstatus','POST',{},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}}]);}();var ExternalContactsApi=/*#__PURE__*/function(){/**
|
|
5979
5861
|
* ExternalContacts service.
|
|
5980
5862
|
* @module purecloud-platform-client-v2/api/ExternalContactsApi
|
|
5981
|
-
* @version
|
|
5863
|
+
* @version 194.0.0
|
|
5982
5864
|
*/ /**
|
|
5983
5865
|
* Constructs a new ExternalContactsApi.
|
|
5984
5866
|
* @alias module:purecloud-platform-client-v2/api/ExternalContactsApi
|
|
@@ -6105,10 +5987,10 @@ if(schemaId===undefined||schemaId===null){throw'Missing the required parameter "
|
|
|
6105
5987
|
*
|
|
6106
5988
|
* @param {String} externalOrganizationId External Organization ID
|
|
6107
5989
|
* @param {Object} opts Optional parameters
|
|
6108
|
-
* @param {
|
|
5990
|
+
* @param {Array.<String>} opts.expand which fields, if any, to expand (externalDataSources)
|
|
6109
5991
|
* @param {Boolean} opts.includeTrustors (true or false) whether or not to include trustor information embedded in the externalOrganization
|
|
6110
5992
|
*/},{key:"getExternalcontactsOrganization",value:function getExternalcontactsOrganization(externalOrganizationId,opts){opts=opts||{};// verify the required parameter 'externalOrganizationId' is set
|
|
6111
|
-
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']);}/**
|
|
5993
|
+
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']);}/**
|
|
6112
5994
|
* Search for external contacts in an external organization
|
|
6113
5995
|
*
|
|
6114
5996
|
* @param {String} externalOrganizationId External Organization ID
|
|
@@ -6145,10 +6027,10 @@ if(externalOrganizationId===undefined||externalOrganizationId===null){throw'Miss
|
|
|
6145
6027
|
* @param {Object} opts Optional parameters
|
|
6146
6028
|
* @param {Number} opts.pageSize Page size (limited to fetching first 1,000 records; pageNumber * pageSize must be <= 1,000) (default to 20)
|
|
6147
6029
|
* @param {Number} opts.pageNumber Page number (limited to fetching first 1,000 records; pageNumber * pageSize must be <= 1,000) (default to 1)
|
|
6148
|
-
* @param {
|
|
6030
|
+
* @param {Array.<String>} opts.expand which fields, if any, to expand
|
|
6149
6031
|
* @param {String} opts.sortOrder The Relationship field to sort by. Any of: [createDate, relationship]. Direction: [asc, desc]. e.g. createDate:asc, relationship:desc
|
|
6150
6032
|
*/},{key:"getExternalcontactsOrganizationRelationships",value:function getExternalcontactsOrganizationRelationships(externalOrganizationId,opts){opts=opts||{};// verify the required parameter 'externalOrganizationId' is set
|
|
6151
|
-
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']);}/**
|
|
6033
|
+
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']);}/**
|
|
6152
6034
|
* Search for external organizations
|
|
6153
6035
|
*
|
|
6154
6036
|
* @param {Object} opts Optional parameters
|
|
@@ -6184,9 +6066,9 @@ if(schemaId===undefined||schemaId===null){throw'Missing the required parameter "
|
|
|
6184
6066
|
*
|
|
6185
6067
|
* @param {String} relationshipId Relationship Id
|
|
6186
6068
|
* @param {Object} opts Optional parameters
|
|
6187
|
-
* @param {
|
|
6069
|
+
* @param {Array.<String>} opts.expand which fields, if any, to expand
|
|
6188
6070
|
*/},{key:"getExternalcontactsRelationship",value:function getExternalcontactsRelationship(relationshipId,opts){opts=opts||{};// verify the required parameter 'relationshipId' is set
|
|
6189
|
-
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']);}/**
|
|
6071
|
+
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']);}/**
|
|
6190
6072
|
* Look up contacts and externalOrganizations based on an attribute. Maximum of 25 values returned.
|
|
6191
6073
|
*
|
|
6192
6074
|
* @param {String} lookupVal User supplied value to lookup contacts/externalOrganizations (supports email addresses, e164 phone numbers, Twitter screen names)
|
|
@@ -6433,7 +6315,7 @@ if(relationshipId===undefined||relationshipId===null){throw'Missing the required
|
|
|
6433
6315
|
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling putExternalcontactsRelationship';}return this.apiClient.callApi('/api/v2/externalcontacts/relationships/{relationshipId}','PUT',{'relationshipId':relationshipId},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}}]);}();var FaxApi=/*#__PURE__*/function(){/**
|
|
6434
6316
|
* Fax service.
|
|
6435
6317
|
* @module purecloud-platform-client-v2/api/FaxApi
|
|
6436
|
-
* @version
|
|
6318
|
+
* @version 194.0.0
|
|
6437
6319
|
*/ /**
|
|
6438
6320
|
* Constructs a new FaxApi.
|
|
6439
6321
|
* @alias module:purecloud-platform-client-v2/api/FaxApi
|
|
@@ -6482,7 +6364,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
6482
6364
|
*/},{key:"putFaxSettings",value:function putFaxSettings(opts){opts=opts||{};return this.apiClient.callApi('/api/v2/fax/settings','PUT',{},{},{},{},opts['body'],['PureCloud OAuth'],['application/json'],['application/json']);}}]);}();var FlowsApi=/*#__PURE__*/function(){/**
|
|
6483
6365
|
* Flows service.
|
|
6484
6366
|
* @module purecloud-platform-client-v2/api/FlowsApi
|
|
6485
|
-
* @version
|
|
6367
|
+
* @version 194.0.0
|
|
6486
6368
|
*/ /**
|
|
6487
6369
|
* Constructs a new FlowsApi.
|
|
6488
6370
|
* @alias module:purecloud-platform-client-v2/api/FlowsApi
|
|
@@ -6510,7 +6392,6 @@ if(jobId===undefined||jobId===null){throw'Missing the required parameter "jobId"
|
|
|
6510
6392
|
* @param {Object} opts Optional parameters
|
|
6511
6393
|
* @param {Number} opts.pageSize The desired page size
|
|
6512
6394
|
* @param {Number} opts.pageNumber The desired page number
|
|
6513
|
-
* postAnalyticsFlowsActivityQuery is a preview method and is subject to both breaking and non-breaking changes at any time without notice
|
|
6514
6395
|
*/},{key:"postAnalyticsFlowsActivityQuery",value:function postAnalyticsFlowsActivityQuery(body,opts){opts=opts||{};// verify the required parameter 'body' is set
|
|
6515
6396
|
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling postAnalyticsFlowsActivityQuery';}return this.apiClient.callApi('/api/v2/analytics/flows/activity/query','POST',{},{'pageSize':opts['pageSize'],'pageNumber':opts['pageNumber']},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
6516
6397
|
* Query for flow aggregates asynchronously
|
|
@@ -6531,7 +6412,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
6531
6412
|
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling postAnalyticsFlowsObservationsQuery';}return this.apiClient.callApi('/api/v2/analytics/flows/observations/query','POST',{},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}}]);}();var GamificationApi=/*#__PURE__*/function(){/**
|
|
6532
6413
|
* Gamification service.
|
|
6533
6414
|
* @module purecloud-platform-client-v2/api/GamificationApi
|
|
6534
|
-
* @version
|
|
6415
|
+
* @version 194.0.0
|
|
6535
6416
|
*/ /**
|
|
6536
6417
|
* Constructs a new GamificationApi.
|
|
6537
6418
|
* @alias module:purecloud-platform-client-v2/api/GamificationApi
|
|
@@ -7071,7 +6952,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
7071
6952
|
if(status===undefined||status===null){throw'Missing the required parameter "status" when calling putGamificationStatus';}return this.apiClient.callApi('/api/v2/gamification/status','PUT',{},{},{},{},status,['PureCloud OAuth'],['application/json'],['application/json']);}}]);}();var GeneralDataProtectionRegulationApi=/*#__PURE__*/function(){/**
|
|
7072
6953
|
* GeneralDataProtectionRegulation service.
|
|
7073
6954
|
* @module purecloud-platform-client-v2/api/GeneralDataProtectionRegulationApi
|
|
7074
|
-
* @version
|
|
6955
|
+
* @version 194.0.0
|
|
7075
6956
|
*/ /**
|
|
7076
6957
|
* Constructs a new GeneralDataProtectionRegulationApi.
|
|
7077
6958
|
* @alias module:purecloud-platform-client-v2/api/GeneralDataProtectionRegulationApi
|
|
@@ -7106,7 +6987,7 @@ if(searchValue===undefined||searchValue===null){throw'Missing the required param
|
|
|
7106
6987
|
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling postGdprRequests';}return this.apiClient.callApi('/api/v2/gdpr/requests','POST',{},{'deleteConfirmed':opts['deleteConfirmed']},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}}]);}();var GeolocationApi=/*#__PURE__*/function(){/**
|
|
7107
6988
|
* Geolocation service.
|
|
7108
6989
|
* @module purecloud-platform-client-v2/api/GeolocationApi
|
|
7109
|
-
* @version
|
|
6990
|
+
* @version 194.0.0
|
|
7110
6991
|
*/ /**
|
|
7111
6992
|
* Constructs a new GeolocationApi.
|
|
7112
6993
|
* @alias module:purecloud-platform-client-v2/api/GeolocationApi
|
|
@@ -7140,7 +7021,7 @@ if(clientId===undefined||clientId===null){throw'Missing the required parameter "
|
|
|
7140
7021
|
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling patchUserGeolocation';}return this.apiClient.callApi('/api/v2/users/{userId}/geolocations/{clientId}','PATCH',{'userId':userId,'clientId':clientId},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}}]);}();var GreetingsApi=/*#__PURE__*/function(){/**
|
|
7141
7022
|
* Greetings service.
|
|
7142
7023
|
* @module purecloud-platform-client-v2/api/GreetingsApi
|
|
7143
|
-
* @version
|
|
7024
|
+
* @version 194.0.0
|
|
7144
7025
|
*/ /**
|
|
7145
7026
|
* Constructs a new GreetingsApi.
|
|
7146
7027
|
* @alias module:purecloud-platform-client-v2/api/GreetingsApi
|
|
@@ -7247,7 +7128,7 @@ if(userId===undefined||userId===null){throw'Missing the required parameter "user
|
|
|
7247
7128
|
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling putUserGreetingsDefaults';}return this.apiClient.callApi('/api/v2/users/{userId}/greetings/defaults','PUT',{'userId':userId},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}}]);}();var GroupsApi=/*#__PURE__*/function(){/**
|
|
7248
7129
|
* Groups service.
|
|
7249
7130
|
* @module purecloud-platform-client-v2/api/GroupsApi
|
|
7250
|
-
* @version
|
|
7131
|
+
* @version 194.0.0
|
|
7251
7132
|
*/ /**
|
|
7252
7133
|
* Constructs a new GroupsApi.
|
|
7253
7134
|
* @alias module:purecloud-platform-client-v2/api/GroupsApi
|
|
@@ -7380,7 +7261,7 @@ if(groupId===undefined||groupId===null){throw'Missing the required parameter "gr
|
|
|
7380
7261
|
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling putGroupDynamicsettings';}return this.apiClient.callApi('/api/v2/groups/{groupId}/dynamicsettings','PUT',{'groupId':groupId},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}}]);}();var IdentityProviderApi=/*#__PURE__*/function(){/**
|
|
7381
7262
|
* IdentityProvider service.
|
|
7382
7263
|
* @module purecloud-platform-client-v2/api/IdentityProviderApi
|
|
7383
|
-
* @version
|
|
7264
|
+
* @version 194.0.0
|
|
7384
7265
|
*/ /**
|
|
7385
7266
|
* Constructs a new IdentityProviderApi.
|
|
7386
7267
|
* @alias module:purecloud-platform-client-v2/api/IdentityProviderApi
|
|
@@ -7536,7 +7417,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
7536
7417
|
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling putIdentityprovidersSalesforce';}return this.apiClient.callApi('/api/v2/identityproviders/salesforce','PUT',{},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}}]);}();var InfrastructureAsCodeApi=/*#__PURE__*/function(){/**
|
|
7537
7418
|
* InfrastructureAsCode service.
|
|
7538
7419
|
* @module purecloud-platform-client-v2/api/InfrastructureAsCodeApi
|
|
7539
|
-
* @version
|
|
7420
|
+
* @version 194.0.0
|
|
7540
7421
|
*/ /**
|
|
7541
7422
|
* Constructs a new InfrastructureAsCodeApi.
|
|
7542
7423
|
* @alias module:purecloud-platform-client-v2/api/InfrastructureAsCodeApi
|
|
@@ -7590,7 +7471,7 @@ if(jobId===undefined||jobId===null){throw'Missing the required parameter "jobId"
|
|
|
7590
7471
|
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling postInfrastructureascodeJobs';}return this.apiClient.callApi('/api/v2/infrastructureascode/jobs','POST',{},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}}]);}();var IntegrationsApi=/*#__PURE__*/function(){/**
|
|
7591
7472
|
* Integrations service.
|
|
7592
7473
|
* @module purecloud-platform-client-v2/api/IntegrationsApi
|
|
7593
|
-
* @version
|
|
7474
|
+
* @version 194.0.0
|
|
7594
7475
|
*/ /**
|
|
7595
7476
|
* Constructs a new IntegrationsApi.
|
|
7596
7477
|
* @alias module:purecloud-platform-client-v2/api/IntegrationsApi
|
|
@@ -8201,7 +8082,7 @@ if(ucIntegrationId===undefined||ucIntegrationId===null){throw'Missing the requir
|
|
|
8201
8082
|
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling putIntegrationsUnifiedcommunicationThirdpartypresences';}return this.apiClient.callApi('/api/v2/integrations/unifiedcommunications/{ucIntegrationId}/thirdpartypresences','PUT',{'ucIntegrationId':ucIntegrationId},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}}]);}();var JourneyApi=/*#__PURE__*/function(){/**
|
|
8202
8083
|
* Journey service.
|
|
8203
8084
|
* @module purecloud-platform-client-v2/api/JourneyApi
|
|
8204
|
-
* @version
|
|
8085
|
+
* @version 194.0.0
|
|
8205
8086
|
*/ /**
|
|
8206
8087
|
* Constructs a new JourneyApi.
|
|
8207
8088
|
* @alias module:purecloud-platform-client-v2/api/JourneyApi
|
|
@@ -8589,7 +8470,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
8589
8470
|
*/},{key:"postJourneyViewsEncodingsValidate",value:function postJourneyViewsEncodingsValidate(opts){opts=opts||{};return this.apiClient.callApi('/api/v2/journey/views/encodings/validate','POST',{},{},{},{},opts['body'],['PureCloud OAuth'],['application/json'],['application/json']);}}]);}();var KnowledgeApi=/*#__PURE__*/function(){/**
|
|
8590
8471
|
* Knowledge service.
|
|
8591
8472
|
* @module purecloud-platform-client-v2/api/KnowledgeApi
|
|
8592
|
-
* @version
|
|
8473
|
+
* @version 194.0.0
|
|
8593
8474
|
*/ /**
|
|
8594
8475
|
* Constructs a new KnowledgeApi.
|
|
8595
8476
|
* @alias module:purecloud-platform-client-v2/api/KnowledgeApi
|
|
@@ -9501,7 +9382,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
9501
9382
|
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling postKnowledgeKnowledgebases';}return this.apiClient.callApi('/api/v2/knowledge/knowledgebases','POST',{},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}}]);}();var LanguageUnderstandingApi=/*#__PURE__*/function(){/**
|
|
9502
9383
|
* LanguageUnderstanding service.
|
|
9503
9384
|
* @module purecloud-platform-client-v2/api/LanguageUnderstandingApi
|
|
9504
|
-
* @version
|
|
9385
|
+
* @version 194.0.0
|
|
9505
9386
|
*/ /**
|
|
9506
9387
|
* Constructs a new LanguageUnderstandingApi.
|
|
9507
9388
|
* @alias module:purecloud-platform-client-v2/api/LanguageUnderstandingApi
|
|
@@ -9761,7 +9642,7 @@ if(domainVersionId===undefined||domainVersionId===null){throw'Missing the requir
|
|
|
9761
9642
|
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling putLanguageunderstandingDomainVersion';}return this.apiClient.callApi('/api/v2/languageunderstanding/domains/{domainId}/versions/{domainVersionId}','PUT',{'domainId':domainId,'domainVersionId':domainVersionId},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}}]);}();var LanguagesApi=/*#__PURE__*/function(){/**
|
|
9762
9643
|
* Languages service.
|
|
9763
9644
|
* @module purecloud-platform-client-v2/api/LanguagesApi
|
|
9764
|
-
* @version
|
|
9645
|
+
* @version 194.0.0
|
|
9765
9646
|
*/ /**
|
|
9766
9647
|
* Constructs a new LanguagesApi.
|
|
9767
9648
|
* @alias module:purecloud-platform-client-v2/api/LanguagesApi
|
|
@@ -9816,7 +9697,7 @@ if(userId===undefined||userId===null){throw'Missing the required parameter "user
|
|
|
9816
9697
|
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling postLanguages';}return this.apiClient.callApi('/api/v2/languages','POST',{},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}}]);}();var LearningApi=/*#__PURE__*/function(){/**
|
|
9817
9698
|
* Learning service.
|
|
9818
9699
|
* @module purecloud-platform-client-v2/api/LearningApi
|
|
9819
|
-
* @version
|
|
9700
|
+
* @version 194.0.0
|
|
9820
9701
|
*/ /**
|
|
9821
9702
|
* Constructs a new LearningApi.
|
|
9822
9703
|
* @alias module:purecloud-platform-client-v2/api/LearningApi
|
|
@@ -10045,7 +9926,7 @@ if(moduleId===undefined||moduleId===null){throw'Missing the required parameter "
|
|
|
10045
9926
|
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling putLearningModuleRule';}return this.apiClient.callApi('/api/v2/learning/modules/{moduleId}/rule','PUT',{'moduleId':moduleId},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}}]);}();var LicenseApi=/*#__PURE__*/function(){/**
|
|
10046
9927
|
* License service.
|
|
10047
9928
|
* @module purecloud-platform-client-v2/api/LicenseApi
|
|
10048
|
-
* @version
|
|
9929
|
+
* @version 194.0.0
|
|
10049
9930
|
*/ /**
|
|
10050
9931
|
* Constructs a new LicenseApi.
|
|
10051
9932
|
* @alias module:purecloud-platform-client-v2/api/LicenseApi
|
|
@@ -10099,7 +9980,7 @@ if(featureName===undefined||featureName===null){throw'Missing the required param
|
|
|
10099
9980
|
*/},{key:"postLicenseUsers",value:function postLicenseUsers(opts){opts=opts||{};return this.apiClient.callApi('/api/v2/license/users','POST',{},{},{},{},opts['body'],['PureCloud OAuth'],['application/json'],['application/json']);}}]);}();var LocationsApi=/*#__PURE__*/function(){/**
|
|
10100
9981
|
* Locations service.
|
|
10101
9982
|
* @module purecloud-platform-client-v2/api/LocationsApi
|
|
10102
|
-
* @version
|
|
9983
|
+
* @version 194.0.0
|
|
10103
9984
|
*/ /**
|
|
10104
9985
|
* Constructs a new LocationsApi.
|
|
10105
9986
|
* @alias module:purecloud-platform-client-v2/api/LocationsApi
|
|
@@ -10158,7 +10039,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
10158
10039
|
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling postLocationsSearch';}return this.apiClient.callApi('/api/v2/locations/search','POST',{},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}}]);}();var LogCaptureApi=/*#__PURE__*/function(){/**
|
|
10159
10040
|
* LogCapture service.
|
|
10160
10041
|
* @module purecloud-platform-client-v2/api/LogCaptureApi
|
|
10161
|
-
* @version
|
|
10042
|
+
* @version 194.0.0
|
|
10162
10043
|
*/ /**
|
|
10163
10044
|
* Constructs a new LogCaptureApi.
|
|
10164
10045
|
* @alias module:purecloud-platform-client-v2/api/LogCaptureApi
|
|
@@ -10208,7 +10089,7 @@ if(userId===undefined||userId===null){throw'Missing the required parameter "user
|
|
|
10208
10089
|
if(userId===undefined||userId===null){throw'Missing the required parameter "userId" when calling postDiagnosticsLogcaptureBrowserUser';}return this.apiClient.callApi('/api/v2/diagnostics/logcapture/browser/users/{userId}','POST',{'userId':userId},{},{},{},opts['body'],['PureCloud OAuth'],['application/json'],['application/json']);}}]);}();var MessagingApi=/*#__PURE__*/function(){/**
|
|
10209
10090
|
* Messaging service.
|
|
10210
10091
|
* @module purecloud-platform-client-v2/api/MessagingApi
|
|
10211
|
-
* @version
|
|
10092
|
+
* @version 194.0.0
|
|
10212
10093
|
*/ /**
|
|
10213
10094
|
* Constructs a new MessagingApi.
|
|
10214
10095
|
* @alias module:purecloud-platform-client-v2/api/MessagingApi
|
|
@@ -10298,7 +10179,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
10298
10179
|
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling putMessagingSettingsDefault';}return this.apiClient.callApi('/api/v2/messaging/settings/default','PUT',{},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}}]);}();var MobileDevicesApi=/*#__PURE__*/function(){/**
|
|
10299
10180
|
* MobileDevices service.
|
|
10300
10181
|
* @module purecloud-platform-client-v2/api/MobileDevicesApi
|
|
10301
|
-
* @version
|
|
10182
|
+
* @version 194.0.0
|
|
10302
10183
|
*/ /**
|
|
10303
10184
|
* Constructs a new MobileDevicesApi.
|
|
10304
10185
|
* @alias module:purecloud-platform-client-v2/api/MobileDevicesApi
|
|
@@ -10337,7 +10218,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
10337
10218
|
if(deviceId===undefined||deviceId===null){throw'Missing the required parameter "deviceId" when calling putMobiledevice';}return this.apiClient.callApi('/api/v2/mobiledevices/{deviceId}','PUT',{'deviceId':deviceId},{},{},{},opts['body'],['PureCloud OAuth'],['application/json'],['application/json']);}}]);}();var NotificationsApi=/*#__PURE__*/function(){/**
|
|
10338
10219
|
* Notifications service.
|
|
10339
10220
|
* @module purecloud-platform-client-v2/api/NotificationsApi
|
|
10340
|
-
* @version
|
|
10221
|
+
* @version 194.0.0
|
|
10341
10222
|
*/ /**
|
|
10342
10223
|
* Constructs a new NotificationsApi.
|
|
10343
10224
|
* @alias module:purecloud-platform-client-v2/api/NotificationsApi
|
|
@@ -10394,7 +10275,7 @@ if(channelId===undefined||channelId===null){throw'Missing the required parameter
|
|
|
10394
10275
|
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling putNotificationsChannelSubscriptions';}return this.apiClient.callApi('/api/v2/notifications/channels/{channelId}/subscriptions','PUT',{'channelId':channelId},{'ignoreErrors':opts['ignoreErrors']},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}}]);}();var OAuthApi=/*#__PURE__*/function(){/**
|
|
10395
10276
|
* OAuth service.
|
|
10396
10277
|
* @module purecloud-platform-client-v2/api/OAuthApi
|
|
10397
|
-
* @version
|
|
10278
|
+
* @version 194.0.0
|
|
10398
10279
|
*/ /**
|
|
10399
10280
|
* Constructs a new OAuthApi.
|
|
10400
10281
|
* @alias module:purecloud-platform-client-v2/api/OAuthApi
|
|
@@ -10479,7 +10360,7 @@ if(clientId===undefined||clientId===null){throw'Missing the required parameter "
|
|
|
10479
10360
|
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling putOauthClient';}return this.apiClient.callApi('/api/v2/oauth/clients/{clientId}','PUT',{'clientId':clientId},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}}]);}();var ObjectsApi=/*#__PURE__*/function(){/**
|
|
10480
10361
|
* Objects service.
|
|
10481
10362
|
* @module purecloud-platform-client-v2/api/ObjectsApi
|
|
10482
|
-
* @version
|
|
10363
|
+
* @version 194.0.0
|
|
10483
10364
|
*/ /**
|
|
10484
10365
|
* Constructs a new ObjectsApi.
|
|
10485
10366
|
* @alias module:purecloud-platform-client-v2/api/ObjectsApi
|
|
@@ -10550,7 +10431,7 @@ if(divisionId===undefined||divisionId===null){throw'Missing the required paramet
|
|
|
10550
10431
|
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling putAuthorizationDivision';}return this.apiClient.callApi('/api/v2/authorization/divisions/{divisionId}','PUT',{'divisionId':divisionId},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}}]);}();var OperationalEventsApi=/*#__PURE__*/function(){/**
|
|
10551
10432
|
* OperationalEvents service.
|
|
10552
10433
|
* @module purecloud-platform-client-v2/api/OperationalEventsApi
|
|
10553
|
-
* @version
|
|
10434
|
+
* @version 194.0.0
|
|
10554
10435
|
*/ /**
|
|
10555
10436
|
* Constructs a new OperationalEventsApi.
|
|
10556
10437
|
* @alias module:purecloud-platform-client-v2/api/OperationalEventsApi
|
|
@@ -10568,7 +10449,7 @@ if(eventDefinitionId===undefined||eventDefinitionId===null){throw'Missing the re
|
|
|
10568
10449
|
*/},{key:"getUsageEventsDefinitions",value:function getUsageEventsDefinitions(){return this.apiClient.callApi('/api/v2/usage/events/definitions','GET',{},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}}]);}();var OrganizationApi=/*#__PURE__*/function(){/**
|
|
10569
10450
|
* Organization service.
|
|
10570
10451
|
* @module purecloud-platform-client-v2/api/OrganizationApi
|
|
10571
|
-
* @version
|
|
10452
|
+
* @version 194.0.0
|
|
10572
10453
|
*/ /**
|
|
10573
10454
|
* Constructs a new OrganizationApi.
|
|
10574
10455
|
* @alias module:purecloud-platform-client-v2/api/OrganizationApi
|
|
@@ -10610,6 +10491,9 @@ if(requestId===undefined||requestId===null){throw'Missing the required parameter
|
|
|
10610
10491
|
* Get limit documentation
|
|
10611
10492
|
*
|
|
10612
10493
|
*/},{key:"getOrganizationsLimitsDocs",value:function getOrganizationsLimitsDocs(){return this.apiClient.callApi('/api/v2/organizations/limits/docs','GET',{},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
10494
|
+
* Get free trial limit documentation
|
|
10495
|
+
*
|
|
10496
|
+
*/},{key:"getOrganizationsLimitsDocsFreetrial",value:function getOrganizationsLimitsDocsFreetrial(){return this.apiClient.callApi('/api/v2/organizations/limits/docs/freetrial','GET',{},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
10613
10497
|
* Get the effective limits in a namespace for an organization
|
|
10614
10498
|
*
|
|
10615
10499
|
* @param {String} namespaceName The namespace to fetch limits for
|
|
@@ -10670,7 +10554,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
10670
10554
|
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling putOrganizationsWhitelist';}return this.apiClient.callApi('/api/v2/organizations/whitelist','PUT',{},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}}]);}();var OrganizationAuthorizationApi=/*#__PURE__*/function(){/**
|
|
10671
10555
|
* OrganizationAuthorization service.
|
|
10672
10556
|
* @module purecloud-platform-client-v2/api/OrganizationAuthorizationApi
|
|
10673
|
-
* @version
|
|
10557
|
+
* @version 194.0.0
|
|
10674
10558
|
*/ /**
|
|
10675
10559
|
* Constructs a new OrganizationAuthorizationApi.
|
|
10676
10560
|
* @alias module:purecloud-platform-client-v2/api/OrganizationAuthorizationApi
|
|
@@ -10993,7 +10877,7 @@ if(trustorOrgId===undefined||trustorOrgId===null){throw'Missing the required par
|
|
|
10993
10877
|
if(trusteeUserId===undefined||trusteeUserId===null){throw'Missing the required parameter "trusteeUserId" when calling putOrgauthorizationTrustorUser';}return this.apiClient.callApi('/api/v2/orgauthorization/trustors/{trustorOrgId}/users/{trusteeUserId}','PUT',{'trustorOrgId':trustorOrgId,'trusteeUserId':trusteeUserId},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}}]);}();var OutboundApi=/*#__PURE__*/function(){/**
|
|
10994
10878
|
* Outbound service.
|
|
10995
10879
|
* @module purecloud-platform-client-v2/api/OutboundApi
|
|
10996
|
-
* @version
|
|
10880
|
+
* @version 194.0.0
|
|
10997
10881
|
*/ /**
|
|
10998
10882
|
* Constructs a new OutboundApi.
|
|
10999
10883
|
* @alias module:purecloud-platform-client-v2/api/OutboundApi
|
|
@@ -11229,6 +11113,18 @@ if(campaignId===undefined||campaignId===null){throw'Missing the required paramet
|
|
|
11229
11113
|
* @param {String} campaignId Campaign ID
|
|
11230
11114
|
*/},{key:"getOutboundCampaignInteractions",value:function getOutboundCampaignInteractions(campaignId){// verify the required parameter 'campaignId' is set
|
|
11231
11115
|
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']);}/**
|
|
11116
|
+
* Get line distribution information for campaigns using same Edge Group or Site as given campaign
|
|
11117
|
+
*
|
|
11118
|
+
* @param {String} campaignId Campaign ID
|
|
11119
|
+
* @param {Object} opts Optional parameters
|
|
11120
|
+
* @param {Boolean} opts.includeOnlyActiveCampaigns If true will return only active Campaigns (default to true)
|
|
11121
|
+
* @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.
|
|
11122
|
+
* @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.
|
|
11123
|
+
* @param {Boolean} opts.useWeight Enable usage of weight, this value overrides current Campaign's setting in line distribution calculations
|
|
11124
|
+
* @param {Number} opts.relativeWeight Relative weight to be used in line distribution calculations instead of current Campaign's relative weight
|
|
11125
|
+
* @param {Number} opts.outboundLineCount The number of outbound lines to be used in line distribution calculations, instead of current Campaign's Outbound Lines Count
|
|
11126
|
+
*/},{key:"getOutboundCampaignLinedistribution",value:function getOutboundCampaignLinedistribution(campaignId,opts){opts=opts||{};// verify the required parameter 'campaignId' is set
|
|
11127
|
+
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']);}/**
|
|
11232
11128
|
* Get campaign progress
|
|
11233
11129
|
*
|
|
11234
11130
|
* @param {String} campaignId Campaign ID
|
|
@@ -11761,6 +11657,27 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
11761
11657
|
*/},{key:"postOutboundContactlistContactsBulk",value:function postOutboundContactlistContactsBulk(contactListId,body){// verify the required parameter 'contactListId' is set
|
|
11762
11658
|
if(contactListId===undefined||contactListId===null){throw'Missing the required parameter "contactListId" when calling postOutboundContactlistContactsBulk';}// verify the required parameter 'body' is set
|
|
11763
11659
|
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']);}/**
|
|
11660
|
+
* Start an async job to delete contacts using a filter.
|
|
11661
|
+
*
|
|
11662
|
+
* @param {String} contactListId Contact List ID
|
|
11663
|
+
* @param {Object} body Contact filter information.
|
|
11664
|
+
*/},{key:"postOutboundContactlistContactsBulkRemove",value:function postOutboundContactlistContactsBulkRemove(contactListId,body){// verify the required parameter 'contactListId' is set
|
|
11665
|
+
if(contactListId===undefined||contactListId===null){throw'Missing the required parameter "contactListId" when calling postOutboundContactlistContactsBulkRemove';}// verify the required parameter 'body' is set
|
|
11666
|
+
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']);}/**
|
|
11667
|
+
* Start an async job to bulk edit contacts.
|
|
11668
|
+
*
|
|
11669
|
+
* @param {String} contactListId Contact List ID
|
|
11670
|
+
* @param {Object} body Contact bulk edit request information.
|
|
11671
|
+
*/},{key:"postOutboundContactlistContactsBulkUpdate",value:function postOutboundContactlistContactsBulkUpdate(contactListId,body){// verify the required parameter 'contactListId' is set
|
|
11672
|
+
if(contactListId===undefined||contactListId===null){throw'Missing the required parameter "contactListId" when calling postOutboundContactlistContactsBulkUpdate';}// verify the required parameter 'body' is set
|
|
11673
|
+
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']);}/**
|
|
11674
|
+
* Query contacts from a contact list.
|
|
11675
|
+
*
|
|
11676
|
+
* @param {String} contactListId Contact List ID
|
|
11677
|
+
* @param {Object} body Contact search parameters.
|
|
11678
|
+
*/},{key:"postOutboundContactlistContactsSearch",value:function postOutboundContactlistContactsSearch(contactListId,body){// verify the required parameter 'contactListId' is set
|
|
11679
|
+
if(contactListId===undefined||contactListId===null){throw'Missing the required parameter "contactListId" when calling postOutboundContactlistContactsSearch';}// verify the required parameter 'body' is set
|
|
11680
|
+
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']);}/**
|
|
11764
11681
|
* Initiate the export of a contact list.
|
|
11765
11682
|
* Returns 200 if received OK.
|
|
11766
11683
|
* @param {String} contactListId ContactList ID
|
|
@@ -12032,7 +11949,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
12032
11949
|
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling putOutboundWrapupcodemappings';}return this.apiClient.callApi('/api/v2/outbound/wrapupcodemappings','PUT',{},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}}]);}();var PresenceApi=/*#__PURE__*/function(){/**
|
|
12033
11950
|
* Presence service.
|
|
12034
11951
|
* @module purecloud-platform-client-v2/api/PresenceApi
|
|
12035
|
-
* @version
|
|
11952
|
+
* @version 194.0.0
|
|
12036
11953
|
*/ /**
|
|
12037
11954
|
* Constructs a new PresenceApi.
|
|
12038
11955
|
* @alias module:purecloud-platform-client-v2/api/PresenceApi
|
|
@@ -12205,7 +12122,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
12205
12122
|
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling putUsersPresencesBulk';}return this.apiClient.callApi('/api/v2/users/presences/bulk','PUT',{},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}}]);}();var ProcessAutomationApi=/*#__PURE__*/function(){/**
|
|
12206
12123
|
* ProcessAutomation service.
|
|
12207
12124
|
* @module purecloud-platform-client-v2/api/ProcessAutomationApi
|
|
12208
|
-
* @version
|
|
12125
|
+
* @version 194.0.0
|
|
12209
12126
|
*/ /**
|
|
12210
12127
|
* Constructs a new ProcessAutomationApi.
|
|
12211
12128
|
* @alias module:purecloud-platform-client-v2/api/ProcessAutomationApi
|
|
@@ -12268,7 +12185,7 @@ if(triggerId===undefined||triggerId===null){throw'Missing the required parameter
|
|
|
12268
12185
|
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling putProcessautomationTrigger';}return this.apiClient.callApi('/api/v2/processautomation/triggers/{triggerId}','PUT',{'triggerId':triggerId},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}}]);}();var QualityApi=/*#__PURE__*/function(){/**
|
|
12269
12186
|
* Quality service.
|
|
12270
12187
|
* @module purecloud-platform-client-v2/api/QualityApi
|
|
12271
|
-
* @version
|
|
12188
|
+
* @version 194.0.0
|
|
12272
12189
|
*/ /**
|
|
12273
12190
|
* Constructs a new QualityApi.
|
|
12274
12191
|
* @alias module:purecloud-platform-client-v2/api/QualityApi
|
|
@@ -12406,7 +12323,7 @@ if(transactionId===undefined||transactionId===null){throw'Missing the required p
|
|
|
12406
12323
|
*/},{key:"getQualityConversationsAuditsQueryTransactionIdResults",value:function getQualityConversationsAuditsQueryTransactionIdResults(transactionId,opts){opts=opts||{};// verify the required parameter 'transactionId' is set
|
|
12407
12324
|
if(transactionId===undefined||transactionId===null){throw'Missing the required parameter "transactionId" when calling getQualityConversationsAuditsQueryTransactionIdResults';}return this.apiClient.callApi('/api/v2/quality/conversations/audits/query/{transactionId}/results','GET',{'transactionId':transactionId},{'cursor':opts['cursor'],'pageSize':opts['pageSize'],'expand':this.apiClient.buildCollectionParam(opts['expand'],'multi')},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
12408
12325
|
* Queries Evaluations and returns a paged list
|
|
12409
|
-
* Query params must include one of conversationId, evaluatorUserId, agentUserId or assigneeUserId. When querying by agentUserId (and not conversationId or evaluatorUserId), the results are sorted by release date. Evaluations set to Never Release are omitted in this case. When querying by evaluatorUserId or conversationId (including when combined with agentUserId), the results are sorted by assigned date. NOTE: The count for total and pageCount might not be accurate when querying for a large number of evaluations. nextUri, if present, will indicate that there are more evaluations to fetch.
|
|
12326
|
+
* Query params must include one of conversationId, evaluatorUserId, agentUserId or assigneeUserId. When querying by agentUserId (and not conversationId or evaluatorUserId), the results are sorted by release date. Evaluations set to Never Release are omitted in this case. When querying by evaluatorUserId or conversationId (including when combined with agentUserId), the results are sorted by assigned date. NOTE: The count for total and pageCount might not be accurate when querying for a large number of evaluations. nextUri, if present, will indicate that there are more evaluations to fetch. The evaluation entities contained in the response might only contain a subset of all the properties listed below. It is often because a given propertys value has not yet been populated or is not applicable in the current state of the evaluation. It might also be because the missing property in the response was not requested by the user.
|
|
12410
12327
|
* @param {Object} opts Optional parameters
|
|
12411
12328
|
* @param {Number} opts.pageSize The total page size requested (default to 25)
|
|
12412
12329
|
* @param {Number} opts.pageNumber The page number requested (default to 1)
|
|
@@ -12426,7 +12343,7 @@ if(transactionId===undefined||transactionId===null){throw'Missing the required p
|
|
|
12426
12343
|
* @param {Array.<String>} opts.evaluationState
|
|
12427
12344
|
* @param {Boolean} opts.isReleased the evaluation has been released
|
|
12428
12345
|
* @param {Boolean} opts.agentHasRead agent has the evaluation
|
|
12429
|
-
* @param {Boolean} opts.expandAnswerTotalScores get the total scores for evaluations
|
|
12346
|
+
* @param {Boolean} opts.expandAnswerTotalScores get the total scores for evaluations. NOTE: The answers will only be populated if this parameter is set to true in the request.
|
|
12430
12347
|
* @param {Number} opts.maximum the maximum number of results to return
|
|
12431
12348
|
* @param {String} opts.sortOrder NOTE: Does not work when conversationId is supplied.
|
|
12432
12349
|
*/},{key:"getQualityEvaluationsQuery",value:function getQualityEvaluationsQuery(opts){opts=opts||{};return this.apiClient.callApi('/api/v2/quality/evaluations/query','GET',{},{'pageSize':opts['pageSize'],'pageNumber':opts['pageNumber'],'sortBy':opts['sortBy'],'expand':this.apiClient.buildCollectionParam(opts['expand'],'multi'),'nextPage':opts['nextPage'],'previousPage':opts['previousPage'],'conversationId':opts['conversationId'],'agentUserId':opts['agentUserId'],'agentTeamId':opts['agentTeamId'],'evaluatorUserId':opts['evaluatorUserId'],'assigneeUserId':opts['assigneeUserId'],'queueId':opts['queueId'],'startTime':opts['startTime'],'endTime':opts['endTime'],'formContextId':opts['formContextId'],'evaluationState':this.apiClient.buildCollectionParam(opts['evaluationState'],'multi'),'isReleased':opts['isReleased'],'agentHasRead':opts['agentHasRead'],'expandAnswerTotalScores':opts['expandAnswerTotalScores'],'maximum':opts['maximum'],'sortOrder':opts['sortOrder']},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
@@ -12739,7 +12656,7 @@ if(customerSurveyUrl===undefined||customerSurveyUrl===null){throw'Missing the re
|
|
|
12739
12656
|
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling putQualitySurveysScorable';}return this.apiClient.callApi('/api/v2/quality/surveys/scorable','PUT',{},{'customerSurveyUrl':customerSurveyUrl},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}}]);}();var RecordingApi=/*#__PURE__*/function(){/**
|
|
12740
12657
|
* Recording service.
|
|
12741
12658
|
* @module purecloud-platform-client-v2/api/RecordingApi
|
|
12742
|
-
* @version
|
|
12659
|
+
* @version 194.0.0
|
|
12743
12660
|
*/ /**
|
|
12744
12661
|
* Constructs a new RecordingApi.
|
|
12745
12662
|
* @alias module:purecloud-platform-client-v2/api/RecordingApi
|
|
@@ -13150,7 +13067,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
13150
13067
|
*/},{key:"putRecordingsDeletionprotection",value:function putRecordingsDeletionprotection(opts){opts=opts||{};return this.apiClient.callApi('/api/v2/recordings/deletionprotection','PUT',{},{'protect':opts['protect']},{},{},opts['body'],['PureCloud OAuth'],['application/json'],['application/json']);}}]);}();var ResponseManagementApi=/*#__PURE__*/function(){/**
|
|
13151
13068
|
* ResponseManagement service.
|
|
13152
13069
|
* @module purecloud-platform-client-v2/api/ResponseManagementApi
|
|
13153
|
-
* @version
|
|
13070
|
+
* @version 194.0.0
|
|
13154
13071
|
*/ /**
|
|
13155
13072
|
* Constructs a new ResponseManagementApi.
|
|
13156
13073
|
* @alias module:purecloud-platform-client-v2/api/ResponseManagementApi
|
|
@@ -13271,7 +13188,7 @@ if(responseAssetId===undefined||responseAssetId===null){throw'Missing the requir
|
|
|
13271
13188
|
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling putResponsemanagementResponseasset';}return this.apiClient.callApi('/api/v2/responsemanagement/responseassets/{responseAssetId}','PUT',{'responseAssetId':responseAssetId},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}}]);}();var RoutingApi=/*#__PURE__*/function(){/**
|
|
13272
13189
|
* Routing service.
|
|
13273
13190
|
* @module purecloud-platform-client-v2/api/RoutingApi
|
|
13274
|
-
* @version
|
|
13191
|
+
* @version 194.0.0
|
|
13275
13192
|
*/ /**
|
|
13276
13193
|
* Constructs a new RoutingApi.
|
|
13277
13194
|
* @alias module:purecloud-platform-client-v2/api/RoutingApi
|
|
@@ -14004,7 +13921,6 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
14004
13921
|
* @param {Object} opts Optional parameters
|
|
14005
13922
|
* @param {Number} opts.pageSize The desired page size
|
|
14006
13923
|
* @param {Number} opts.pageNumber The desired page number
|
|
14007
|
-
* postAnalyticsRoutingActivityQuery is a preview method and is subject to both breaking and non-breaking changes at any time without notice
|
|
14008
13924
|
*/},{key:"postAnalyticsRoutingActivityQuery",value:function postAnalyticsRoutingActivityQuery(body,opts){opts=opts||{};// verify the required parameter 'body' is set
|
|
14009
13925
|
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling postAnalyticsRoutingActivityQuery';}return this.apiClient.callApi('/api/v2/analytics/routing/activity/query','POST',{},{'pageSize':opts['pageSize'],'pageNumber':opts['pageNumber']},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
14010
13926
|
* Create a benefit assessment.
|
|
@@ -14246,7 +14162,7 @@ if(userId===undefined||userId===null){throw'Missing the required parameter "user
|
|
|
14246
14162
|
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling putUserRoutingskillsBulk';}return this.apiClient.callApi('/api/v2/users/{userId}/routingskills/bulk','PUT',{'userId':userId},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}}]);}();var SCIMApi=/*#__PURE__*/function(){/**
|
|
14247
14163
|
* SCIM service.
|
|
14248
14164
|
* @module purecloud-platform-client-v2/api/SCIMApi
|
|
14249
|
-
* @version
|
|
14165
|
+
* @version 194.0.0
|
|
14250
14166
|
*/ /**
|
|
14251
14167
|
* Constructs a new SCIMApi.
|
|
14252
14168
|
* @alias module:purecloud-platform-client-v2/api/SCIMApi
|
|
@@ -14471,7 +14387,7 @@ if(userId===undefined||userId===null){throw'Missing the required parameter "user
|
|
|
14471
14387
|
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling putScimV2User';}return this.apiClient.callApi('/api/v2/scim/v2/users/{userId}','PUT',{'userId':userId},{},{'If-Match':opts['ifMatch']},{},body,['PureCloud OAuth'],['application/scim+json','application/json'],['application/scim+json','application/json']);}}]);}();var ScreenRecordingApi=/*#__PURE__*/function(){/**
|
|
14472
14388
|
* ScreenRecording service.
|
|
14473
14389
|
* @module purecloud-platform-client-v2/api/ScreenRecordingApi
|
|
14474
|
-
* @version
|
|
14390
|
+
* @version 194.0.0
|
|
14475
14391
|
*/ /**
|
|
14476
14392
|
* Constructs a new ScreenRecordingApi.
|
|
14477
14393
|
* @alias module:purecloud-platform-client-v2/api/ScreenRecordingApi
|
|
@@ -14486,7 +14402,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
14486
14402
|
*/return _createClass(ScreenRecordingApi,[{key:"postScreenrecordingToken",value:function postScreenrecordingToken(opts){opts=opts||{};return this.apiClient.callApi('/api/v2/screenrecording/token','POST',{},{},{},{},opts['body'],['PureCloud OAuth'],['application/json'],['application/json']);}}]);}();var ScriptsApi=/*#__PURE__*/function(){/**
|
|
14487
14403
|
* Scripts service.
|
|
14488
14404
|
* @module purecloud-platform-client-v2/api/ScriptsApi
|
|
14489
|
-
* @version
|
|
14405
|
+
* @version 194.0.0
|
|
14490
14406
|
*/ /**
|
|
14491
14407
|
* Constructs a new ScriptsApi.
|
|
14492
14408
|
* @alias module:purecloud-platform-client-v2/api/ScriptsApi
|
|
@@ -14622,7 +14538,7 @@ if(scriptId===undefined||scriptId===null){throw'Missing the required parameter "
|
|
|
14622
14538
|
*/},{key:"postScriptsPublished",value:function postScriptsPublished(opts){opts=opts||{};return this.apiClient.callApi('/api/v2/scripts/published','POST',{},{'scriptDataVersion':opts['scriptDataVersion']},{},{},opts['body'],['PureCloud OAuth'],['application/json'],['application/json']);}}]);}();var SearchApi=/*#__PURE__*/function(){/**
|
|
14623
14539
|
* Search service.
|
|
14624
14540
|
* @module purecloud-platform-client-v2/api/SearchApi
|
|
14625
|
-
* @version
|
|
14541
|
+
* @version 194.0.0
|
|
14626
14542
|
*/ /**
|
|
14627
14543
|
* Constructs a new SearchApi.
|
|
14628
14544
|
* @alias module:purecloud-platform-client-v2/api/SearchApi
|
|
@@ -14782,7 +14698,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
14782
14698
|
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling postVoicemailSearch';}return this.apiClient.callApi('/api/v2/voicemail/search','POST',{},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}}]);}();var SettingsApi=/*#__PURE__*/function(){/**
|
|
14783
14699
|
* Settings service.
|
|
14784
14700
|
* @module purecloud-platform-client-v2/api/SettingsApi
|
|
14785
|
-
* @version
|
|
14701
|
+
* @version 194.0.0
|
|
14786
14702
|
*/ /**
|
|
14787
14703
|
* Constructs a new SettingsApi.
|
|
14788
14704
|
* @alias module:purecloud-platform-client-v2/api/SettingsApi
|
|
@@ -14810,7 +14726,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
14810
14726
|
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling patchSettingsExecutiondata';}return this.apiClient.callApi('/api/v2/settings/executiondata','PATCH',{},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}}]);}();var SpeechTextAnalyticsApi=/*#__PURE__*/function(){/**
|
|
14811
14727
|
* SpeechTextAnalytics service.
|
|
14812
14728
|
* @module purecloud-platform-client-v2/api/SpeechTextAnalyticsApi
|
|
14813
|
-
* @version
|
|
14729
|
+
* @version 194.0.0
|
|
14814
14730
|
*/ /**
|
|
14815
14731
|
* Constructs a new SpeechTextAnalyticsApi.
|
|
14816
14732
|
* @alias module:purecloud-platform-client-v2/api/SpeechTextAnalyticsApi
|
|
@@ -15054,7 +14970,7 @@ if(topicId===undefined||topicId===null){throw'Missing the required parameter "to
|
|
|
15054
14970
|
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling putSpeechandtextanalyticsTopic';}return this.apiClient.callApi('/api/v2/speechandtextanalytics/topics/{topicId}','PUT',{'topicId':topicId},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}}]);}();var StationsApi=/*#__PURE__*/function(){/**
|
|
15055
14971
|
* Stations service.
|
|
15056
14972
|
* @module purecloud-platform-client-v2/api/StationsApi
|
|
15057
|
-
* @version
|
|
14973
|
+
* @version 194.0.0
|
|
15058
14974
|
*/ /**
|
|
15059
14975
|
* Constructs a new StationsApi.
|
|
15060
14976
|
* @alias module:purecloud-platform-client-v2/api/StationsApi
|
|
@@ -15086,7 +15002,7 @@ if(stationId===undefined||stationId===null){throw'Missing the required parameter
|
|
|
15086
15002
|
*/},{key:"getStations",value:function getStations(opts){opts=opts||{};return this.apiClient.callApi('/api/v2/stations','GET',{},{'pageSize':opts['pageSize'],'pageNumber':opts['pageNumber'],'sortBy':opts['sortBy'],'name':opts['name'],'userSelectable':opts['userSelectable'],'webRtcUserId':opts['webRtcUserId'],'id':opts['id'],'lineAppearanceId':opts['lineAppearanceId']},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}}]);}();var SuggestApi=/*#__PURE__*/function(){/**
|
|
15087
15003
|
* Suggest service.
|
|
15088
15004
|
* @module purecloud-platform-client-v2/api/SuggestApi
|
|
15089
|
-
* @version
|
|
15005
|
+
* @version 194.0.0
|
|
15090
15006
|
*/ /**
|
|
15091
15007
|
* Constructs a new SuggestApi.
|
|
15092
15008
|
* @alias module:purecloud-platform-client-v2/api/SuggestApi
|
|
@@ -15126,7 +15042,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
15126
15042
|
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling postSearchSuggest';}return this.apiClient.callApi('/api/v2/search/suggest','POST',{},{'profile':opts['profile']},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}}]);}();var TaskManagementApi=/*#__PURE__*/function(){/**
|
|
15127
15043
|
* TaskManagement service.
|
|
15128
15044
|
* @module purecloud-platform-client-v2/api/TaskManagementApi
|
|
15129
|
-
* @version
|
|
15045
|
+
* @version 194.0.0
|
|
15130
15046
|
*/ /**
|
|
15131
15047
|
* Constructs a new TaskManagementApi.
|
|
15132
15048
|
* @alias module:purecloud-platform-client-v2/api/TaskManagementApi
|
|
@@ -15137,39 +15053,33 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
15137
15053
|
* Delete a workbin
|
|
15138
15054
|
*
|
|
15139
15055
|
* @param {String} workbinId Workbin ID
|
|
15140
|
-
* deleteTaskmanagementWorkbin is a preview method and is subject to both breaking and non-breaking changes at any time without notice
|
|
15141
15056
|
*/return _createClass(TaskManagementApi,[{key:"deleteTaskmanagementWorkbin",value:function deleteTaskmanagementWorkbin(workbinId){// verify the required parameter 'workbinId' is set
|
|
15142
15057
|
if(workbinId===undefined||workbinId===null){throw'Missing the required parameter "workbinId" when calling deleteTaskmanagementWorkbin';}return this.apiClient.callApi('/api/v2/taskmanagement/workbins/{workbinId}','DELETE',{'workbinId':workbinId},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
15143
15058
|
* Delete a workitem
|
|
15144
15059
|
*
|
|
15145
15060
|
* @param {String} workitemId Workitem ID
|
|
15146
|
-
* deleteTaskmanagementWorkitem is a preview method and is subject to both breaking and non-breaking changes at any time without notice
|
|
15147
15061
|
*/},{key:"deleteTaskmanagementWorkitem",value:function deleteTaskmanagementWorkitem(workitemId){// verify the required parameter 'workitemId' is set
|
|
15148
15062
|
if(workitemId===undefined||workitemId===null){throw'Missing the required parameter "workitemId" when calling deleteTaskmanagementWorkitem';}return this.apiClient.callApi('/api/v2/taskmanagement/workitems/{workitemId}','DELETE',{'workitemId':workitemId},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
15149
15063
|
* Delete a schema
|
|
15150
15064
|
*
|
|
15151
15065
|
* @param {String} schemaId Schema ID
|
|
15152
|
-
* deleteTaskmanagementWorkitemsSchema is a preview method and is subject to both breaking and non-breaking changes at any time without notice
|
|
15153
15066
|
*/},{key:"deleteTaskmanagementWorkitemsSchema",value:function deleteTaskmanagementWorkitemsSchema(schemaId){// verify the required parameter 'schemaId' is set
|
|
15154
15067
|
if(schemaId===undefined||schemaId===null){throw'Missing the required parameter "schemaId" when calling deleteTaskmanagementWorkitemsSchema';}return this.apiClient.callApi('/api/v2/taskmanagement/workitems/schemas/{schemaId}','DELETE',{'schemaId':schemaId},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
15155
15068
|
* Delete a worktype
|
|
15156
15069
|
*
|
|
15157
15070
|
* @param {String} worktypeId Worktype id
|
|
15158
|
-
* deleteTaskmanagementWorktype is a preview method and is subject to both breaking and non-breaking changes at any time without notice
|
|
15159
15071
|
*/},{key:"deleteTaskmanagementWorktype",value:function deleteTaskmanagementWorktype(worktypeId){// verify the required parameter 'worktypeId' is set
|
|
15160
15072
|
if(worktypeId===undefined||worktypeId===null){throw'Missing the required parameter "worktypeId" when calling deleteTaskmanagementWorktype';}return this.apiClient.callApi('/api/v2/taskmanagement/worktypes/{worktypeId}','DELETE',{'worktypeId':worktypeId},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
15161
15073
|
* Delete a status
|
|
15162
15074
|
*
|
|
15163
15075
|
* @param {String} worktypeId Worktype id
|
|
15164
15076
|
* @param {String} statusId Status id
|
|
15165
|
-
* deleteTaskmanagementWorktypeStatus is a preview method and is subject to both breaking and non-breaking changes at any time without notice
|
|
15166
15077
|
*/},{key:"deleteTaskmanagementWorktypeStatus",value:function deleteTaskmanagementWorktypeStatus(worktypeId,statusId){// verify the required parameter 'worktypeId' is set
|
|
15167
15078
|
if(worktypeId===undefined||worktypeId===null){throw'Missing the required parameter "worktypeId" when calling deleteTaskmanagementWorktypeStatus';}// verify the required parameter 'statusId' is set
|
|
15168
15079
|
if(statusId===undefined||statusId===null){throw'Missing the required parameter "statusId" when calling deleteTaskmanagementWorktypeStatus';}return this.apiClient.callApi('/api/v2/taskmanagement/worktypes/{worktypeId}/statuses/{statusId}','DELETE',{'worktypeId':worktypeId,'statusId':statusId},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
15169
15080
|
* Get a workbin
|
|
15170
15081
|
*
|
|
15171
15082
|
* @param {String} workbinId Workbin ID
|
|
15172
|
-
* getTaskmanagementWorkbin is a preview method and is subject to both breaking and non-breaking changes at any time without notice
|
|
15173
15083
|
*/},{key:"getTaskmanagementWorkbin",value:function getTaskmanagementWorkbin(workbinId){// verify the required parameter 'workbinId' is set
|
|
15174
15084
|
if(workbinId===undefined||workbinId===null){throw'Missing the required parameter "workbinId" when calling getTaskmanagementWorkbin';}return this.apiClient.callApi('/api/v2/taskmanagement/workbins/{workbinId}','GET',{'workbinId':workbinId},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
15175
15085
|
* Get a listing of a workbin's attribute change history
|
|
@@ -15205,7 +15115,6 @@ if(workbinId===undefined||workbinId===null){throw'Missing the required parameter
|
|
|
15205
15115
|
* @param {String} workitemId Workitem ID
|
|
15206
15116
|
* @param {Object} opts Optional parameters
|
|
15207
15117
|
* @param {Object} opts.expands Which fields to expand. Comma separated if more than one.
|
|
15208
|
-
* getTaskmanagementWorkitem is a preview method and is subject to both breaking and non-breaking changes at any time without notice
|
|
15209
15118
|
*/},{key:"getTaskmanagementWorkitem",value:function getTaskmanagementWorkitem(workitemId,opts){opts=opts||{};// verify the required parameter 'workitemId' is set
|
|
15210
15119
|
if(workitemId===undefined||workitemId===null){throw'Missing the required parameter "workitemId" when calling getTaskmanagementWorkitem';}return this.apiClient.callApi('/api/v2/taskmanagement/workitems/{workitemId}','GET',{'workitemId':workitemId},{'expands':opts['expands']},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
15211
15120
|
* Get a listing of a workitem's attribute change history
|
|
@@ -15227,7 +15136,6 @@ if(workitemId===undefined||workitemId===null){throw'Missing the required paramet
|
|
|
15227
15136
|
* @param {String} opts.after The cursor that points to the end of the set of entities that has been returned.
|
|
15228
15137
|
* @param {Number} opts.pageSize Limit the number of entities to return. It is not guaranteed that the requested number of entities will be filled in a single request. If an `after` key is returned as part of the response it is possible that more entities that match the filter criteria exist. Maximum of 50. (default to 25)
|
|
15229
15138
|
* @param {Object} opts.sortOrder Ascending or descending sort order (default to descending)
|
|
15230
|
-
* getTaskmanagementWorkitemUserWrapups is a preview method and is subject to both breaking and non-breaking changes at any time without notice
|
|
15231
15139
|
*/},{key:"getTaskmanagementWorkitemUserWrapups",value:function getTaskmanagementWorkitemUserWrapups(workitemId,userId,opts){opts=opts||{};// verify the required parameter 'workitemId' is set
|
|
15232
15140
|
if(workitemId===undefined||workitemId===null){throw'Missing the required parameter "workitemId" when calling getTaskmanagementWorkitemUserWrapups';}// verify the required parameter 'userId' is set
|
|
15233
15141
|
if(userId===undefined||userId===null){throw'Missing the required parameter "userId" when calling getTaskmanagementWorkitemUserWrapups';}return this.apiClient.callApi('/api/v2/taskmanagement/workitems/{workitemId}/users/{userId}/wrapups','GET',{'workitemId':workitemId,'userId':userId},{'expands':opts['expands'],'after':opts['after'],'pageSize':opts['pageSize'],'sortOrder':opts['sortOrder']},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
@@ -15257,51 +15165,43 @@ if(workitemId===undefined||workitemId===null){throw'Missing the required paramet
|
|
|
15257
15165
|
* @param {String} opts.after The cursor that points to the end of the set of entities that has been returned.
|
|
15258
15166
|
* @param {Number} opts.pageSize Limit the number of entities to return. It is not guaranteed that the requested number of entities will be filled in a single request. If an `after` key is returned as part of the response it is possible that more entities that match the filter criteria exist. Maximum of 50. (default to 25)
|
|
15259
15167
|
* @param {Object} opts.sortOrder Ascending or descending sort order (default to descending)
|
|
15260
|
-
* getTaskmanagementWorkitemWrapups is a preview method and is subject to both breaking and non-breaking changes at any time without notice
|
|
15261
15168
|
*/},{key:"getTaskmanagementWorkitemWrapups",value:function getTaskmanagementWorkitemWrapups(workitemId,opts){opts=opts||{};// verify the required parameter 'workitemId' is set
|
|
15262
15169
|
if(workitemId===undefined||workitemId===null){throw'Missing the required parameter "workitemId" when calling getTaskmanagementWorkitemWrapups';}return this.apiClient.callApi('/api/v2/taskmanagement/workitems/{workitemId}/wrapups','GET',{'workitemId':workitemId},{'expands':opts['expands'],'after':opts['after'],'pageSize':opts['pageSize'],'sortOrder':opts['sortOrder']},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
15263
15170
|
* Get the workitem query job associated with the job id.
|
|
15264
15171
|
*
|
|
15265
15172
|
* @param {String} jobId jobId
|
|
15266
|
-
* getTaskmanagementWorkitemsQueryJob is a preview method and is subject to both breaking and non-breaking changes at any time without notice
|
|
15267
15173
|
*/},{key:"getTaskmanagementWorkitemsQueryJob",value:function getTaskmanagementWorkitemsQueryJob(jobId){// verify the required parameter 'jobId' is set
|
|
15268
15174
|
if(jobId===undefined||jobId===null){throw'Missing the required parameter "jobId" when calling getTaskmanagementWorkitemsQueryJob';}return this.apiClient.callApi('/api/v2/taskmanagement/workitems/query/jobs/{jobId}','GET',{'jobId':jobId},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
15269
15175
|
* Get results from for workitem query job
|
|
15270
15176
|
*
|
|
15271
15177
|
* @param {String} jobId jobId
|
|
15272
|
-
* getTaskmanagementWorkitemsQueryJobResults is a preview method and is subject to both breaking and non-breaking changes at any time without notice
|
|
15273
15178
|
*/},{key:"getTaskmanagementWorkitemsQueryJobResults",value:function getTaskmanagementWorkitemsQueryJobResults(jobId){// verify the required parameter 'jobId' is set
|
|
15274
15179
|
if(jobId===undefined||jobId===null){throw'Missing the required parameter "jobId" when calling getTaskmanagementWorkitemsQueryJobResults';}return this.apiClient.callApi('/api/v2/taskmanagement/workitems/query/jobs/{jobId}/results','GET',{'jobId':jobId},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
15275
15180
|
* Get a schema
|
|
15276
15181
|
*
|
|
15277
15182
|
* @param {String} schemaId Schema ID
|
|
15278
|
-
* getTaskmanagementWorkitemsSchema is a preview method and is subject to both breaking and non-breaking changes at any time without notice
|
|
15279
15183
|
*/},{key:"getTaskmanagementWorkitemsSchema",value:function getTaskmanagementWorkitemsSchema(schemaId){// verify the required parameter 'schemaId' is set
|
|
15280
15184
|
if(schemaId===undefined||schemaId===null){throw'Missing the required parameter "schemaId" when calling getTaskmanagementWorkitemsSchema';}return this.apiClient.callApi('/api/v2/taskmanagement/workitems/schemas/{schemaId}','GET',{'schemaId':schemaId},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
15281
15185
|
* Get a specific version of a schema
|
|
15282
15186
|
*
|
|
15283
15187
|
* @param {String} schemaId Schema ID
|
|
15284
15188
|
* @param {String} versionId Schema version
|
|
15285
|
-
* getTaskmanagementWorkitemsSchemaVersion is a preview method and is subject to both breaking and non-breaking changes at any time without notice
|
|
15286
15189
|
*/},{key:"getTaskmanagementWorkitemsSchemaVersion",value:function getTaskmanagementWorkitemsSchemaVersion(schemaId,versionId){// verify the required parameter 'schemaId' is set
|
|
15287
15190
|
if(schemaId===undefined||schemaId===null){throw'Missing the required parameter "schemaId" when calling getTaskmanagementWorkitemsSchemaVersion';}// verify the required parameter 'versionId' is set
|
|
15288
15191
|
if(versionId===undefined||versionId===null){throw'Missing the required parameter "versionId" when calling getTaskmanagementWorkitemsSchemaVersion';}return this.apiClient.callApi('/api/v2/taskmanagement/workitems/schemas/{schemaId}/versions/{versionId}','GET',{'schemaId':schemaId,'versionId':versionId},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
15289
15192
|
* Get all versions of a schema
|
|
15290
15193
|
*
|
|
15291
15194
|
* @param {String} schemaId Schema ID
|
|
15292
|
-
* getTaskmanagementWorkitemsSchemaVersions is a preview method and is subject to both breaking and non-breaking changes at any time without notice
|
|
15293
15195
|
*/},{key:"getTaskmanagementWorkitemsSchemaVersions",value:function getTaskmanagementWorkitemsSchemaVersions(schemaId){// verify the required parameter 'schemaId' is set
|
|
15294
15196
|
if(schemaId===undefined||schemaId===null){throw'Missing the required parameter "schemaId" when calling getTaskmanagementWorkitemsSchemaVersions';}return this.apiClient.callApi('/api/v2/taskmanagement/workitems/schemas/{schemaId}/versions','GET',{'schemaId':schemaId},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
15295
15197
|
* Get a list of schemas.
|
|
15296
15198
|
*
|
|
15297
|
-
* getTaskmanagementWorkitemsSchemas is a preview method and is subject to both breaking and non-breaking changes at any time without notice
|
|
15298
15199
|
*/},{key:"getTaskmanagementWorkitemsSchemas",value:function getTaskmanagementWorkitemsSchemas(){return this.apiClient.callApi('/api/v2/taskmanagement/workitems/schemas','GET',{},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
15299
15200
|
* Get a worktype
|
|
15300
15201
|
*
|
|
15301
15202
|
* @param {String} worktypeId Worktype id
|
|
15302
15203
|
* @param {Object} opts Optional parameters
|
|
15303
15204
|
* @param {Array.<String>} opts.expands Which fields, if any, to expand.
|
|
15304
|
-
* getTaskmanagementWorktype is a preview method and is subject to both breaking and non-breaking changes at any time without notice
|
|
15305
15205
|
*/},{key:"getTaskmanagementWorktype",value:function getTaskmanagementWorktype(worktypeId,opts){opts=opts||{};// verify the required parameter 'worktypeId' is set
|
|
15306
15206
|
if(worktypeId===undefined||worktypeId===null){throw'Missing the required parameter "worktypeId" when calling getTaskmanagementWorktype';}return this.apiClient.callApi('/api/v2/taskmanagement/worktypes/{worktypeId}','GET',{'worktypeId':worktypeId},{'expands':this.apiClient.buildCollectionParam(opts['expands'],'multi')},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
15307
15207
|
* Get a listing of a worktype's attribute change history
|
|
@@ -15318,14 +15218,12 @@ if(worktypeId===undefined||worktypeId===null){throw'Missing the required paramet
|
|
|
15318
15218
|
*
|
|
15319
15219
|
* @param {String} worktypeId Worktype id
|
|
15320
15220
|
* @param {String} statusId Status id
|
|
15321
|
-
* getTaskmanagementWorktypeStatus is a preview method and is subject to both breaking and non-breaking changes at any time without notice
|
|
15322
15221
|
*/},{key:"getTaskmanagementWorktypeStatus",value:function getTaskmanagementWorktypeStatus(worktypeId,statusId){// verify the required parameter 'worktypeId' is set
|
|
15323
15222
|
if(worktypeId===undefined||worktypeId===null){throw'Missing the required parameter "worktypeId" when calling getTaskmanagementWorktypeStatus';}// verify the required parameter 'statusId' is set
|
|
15324
15223
|
if(statusId===undefined||statusId===null){throw'Missing the required parameter "statusId" when calling getTaskmanagementWorktypeStatus';}return this.apiClient.callApi('/api/v2/taskmanagement/worktypes/{worktypeId}/statuses/{statusId}','GET',{'worktypeId':worktypeId,'statusId':statusId},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
15325
15224
|
* Get list of statuses for this worktype.
|
|
15326
15225
|
*
|
|
15327
15226
|
* @param {String} worktypeId Worktype id
|
|
15328
|
-
* getTaskmanagementWorktypeStatuses is a preview method and is subject to both breaking and non-breaking changes at any time without notice
|
|
15329
15227
|
*/},{key:"getTaskmanagementWorktypeStatuses",value:function getTaskmanagementWorktypeStatuses(worktypeId){// verify the required parameter 'worktypeId' is set
|
|
15330
15228
|
if(worktypeId===undefined||worktypeId===null){throw'Missing the required parameter "worktypeId" when calling getTaskmanagementWorktypeStatuses';}return this.apiClient.callApi('/api/v2/taskmanagement/worktypes/{worktypeId}/statuses','GET',{'worktypeId':worktypeId},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
15331
15229
|
* Get a version of a worktype
|
|
@@ -15350,7 +15248,6 @@ if(worktypeId===undefined||worktypeId===null){throw'Missing the required paramet
|
|
|
15350
15248
|
*
|
|
15351
15249
|
* @param {String} workbinId Workbin ID
|
|
15352
15250
|
* @param {Object} body Json with attributes and their new values: {description:new description, name:new name}.
|
|
15353
|
-
* patchTaskmanagementWorkbin is a preview method and is subject to both breaking and non-breaking changes at any time without notice
|
|
15354
15251
|
*/},{key:"patchTaskmanagementWorkbin",value:function patchTaskmanagementWorkbin(workbinId,body){// verify the required parameter 'workbinId' is set
|
|
15355
15252
|
if(workbinId===undefined||workbinId===null){throw'Missing the required parameter "workbinId" when calling patchTaskmanagementWorkbin';}// verify the required parameter 'body' is set
|
|
15356
15253
|
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling patchTaskmanagementWorkbin';}return this.apiClient.callApi('/api/v2/taskmanagement/workbins/{workbinId}','PATCH',{'workbinId':workbinId},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
@@ -15358,7 +15255,6 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
15358
15255
|
*
|
|
15359
15256
|
* @param {String} workitemId Workitem ID
|
|
15360
15257
|
* @param {Object} body Workitem
|
|
15361
|
-
* patchTaskmanagementWorkitem is a preview method and is subject to both breaking and non-breaking changes at any time without notice
|
|
15362
15258
|
*/},{key:"patchTaskmanagementWorkitem",value:function patchTaskmanagementWorkitem(workitemId,body){// verify the required parameter 'workitemId' is set
|
|
15363
15259
|
if(workitemId===undefined||workitemId===null){throw'Missing the required parameter "workitemId" when calling patchTaskmanagementWorkitem';}// verify the required parameter 'body' is set
|
|
15364
15260
|
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling patchTaskmanagementWorkitem';}return this.apiClient.callApi('/api/v2/taskmanagement/workitems/{workitemId}','PATCH',{'workitemId':workitemId},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
@@ -15366,7 +15262,6 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
15366
15262
|
*
|
|
15367
15263
|
* @param {String} workitemId Workitem ID
|
|
15368
15264
|
* @param {Object} body Targeted user
|
|
15369
|
-
* patchTaskmanagementWorkitemAssignment is a preview method and is subject to both breaking and non-breaking changes at any time without notice
|
|
15370
15265
|
*/},{key:"patchTaskmanagementWorkitemAssignment",value:function patchTaskmanagementWorkitemAssignment(workitemId,body){// verify the required parameter 'workitemId' is set
|
|
15371
15266
|
if(workitemId===undefined||workitemId===null){throw'Missing the required parameter "workitemId" when calling patchTaskmanagementWorkitemAssignment';}// verify the required parameter 'body' is set
|
|
15372
15267
|
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling patchTaskmanagementWorkitemAssignment';}return this.apiClient.callApi('/api/v2/taskmanagement/workitems/{workitemId}/assignment','PATCH',{'workitemId':workitemId},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
@@ -15375,7 +15270,6 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
15375
15270
|
* @param {String} workitemId The ID of the Workitem.
|
|
15376
15271
|
* @param {String} userId The ID of the user
|
|
15377
15272
|
* @param {Object} body Request body to add/remove a wrapup code for a workitem
|
|
15378
|
-
* patchTaskmanagementWorkitemUserWrapups is a preview method and is subject to both breaking and non-breaking changes at any time without notice
|
|
15379
15273
|
*/},{key:"patchTaskmanagementWorkitemUserWrapups",value:function patchTaskmanagementWorkitemUserWrapups(workitemId,userId,body){// verify the required parameter 'workitemId' is set
|
|
15380
15274
|
if(workitemId===undefined||workitemId===null){throw'Missing the required parameter "workitemId" when calling patchTaskmanagementWorkitemUserWrapups';}// verify the required parameter 'userId' is set
|
|
15381
15275
|
if(userId===undefined||userId===null){throw'Missing the required parameter "userId" when calling patchTaskmanagementWorkitemUserWrapups';}// verify the required parameter 'body' is set
|
|
@@ -15384,7 +15278,6 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
15384
15278
|
*
|
|
15385
15279
|
* @param {String} workitemId The ID of the Workitem.
|
|
15386
15280
|
* @param {Object} body Request body to add/remove the wrapup code for workitem
|
|
15387
|
-
* patchTaskmanagementWorkitemUsersMeWrapups is a preview method and is subject to both breaking and non-breaking changes at any time without notice
|
|
15388
15281
|
*/},{key:"patchTaskmanagementWorkitemUsersMeWrapups",value:function patchTaskmanagementWorkitemUsersMeWrapups(workitemId,body){// verify the required parameter 'workitemId' is set
|
|
15389
15282
|
if(workitemId===undefined||workitemId===null){throw'Missing the required parameter "workitemId" when calling patchTaskmanagementWorkitemUsersMeWrapups';}// verify the required parameter 'body' is set
|
|
15390
15283
|
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling patchTaskmanagementWorkitemUsersMeWrapups';}return this.apiClient.callApi('/api/v2/taskmanagement/workitems/{workitemId}/users/me/wrapups','PATCH',{'workitemId':workitemId},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
@@ -15393,7 +15286,6 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
15393
15286
|
* @param {String} worktypeId Worktype id
|
|
15394
15287
|
* @param {Object} opts Optional parameters
|
|
15395
15288
|
* @param {Object} opts.body body
|
|
15396
|
-
* patchTaskmanagementWorktype is a preview method and is subject to both breaking and non-breaking changes at any time without notice
|
|
15397
15289
|
*/},{key:"patchTaskmanagementWorktype",value:function patchTaskmanagementWorktype(worktypeId,opts){opts=opts||{};// verify the required parameter 'worktypeId' is set
|
|
15398
15290
|
if(worktypeId===undefined||worktypeId===null){throw'Missing the required parameter "worktypeId" when calling patchTaskmanagementWorktype';}return this.apiClient.callApi('/api/v2/taskmanagement/worktypes/{worktypeId}','PATCH',{'worktypeId':worktypeId},{},{},{},opts['body'],['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
15399
15291
|
* Update the attributes of a status
|
|
@@ -15402,7 +15294,6 @@ if(worktypeId===undefined||worktypeId===null){throw'Missing the required paramet
|
|
|
15402
15294
|
* @param {String} statusId Status id
|
|
15403
15295
|
* @param {Object} opts Optional parameters
|
|
15404
15296
|
* @param {Object} opts.body body
|
|
15405
|
-
* patchTaskmanagementWorktypeStatus is a preview method and is subject to both breaking and non-breaking changes at any time without notice
|
|
15406
15297
|
*/},{key:"patchTaskmanagementWorktypeStatus",value:function patchTaskmanagementWorktypeStatus(worktypeId,statusId,opts){opts=opts||{};// verify the required parameter 'worktypeId' is set
|
|
15407
15298
|
if(worktypeId===undefined||worktypeId===null){throw'Missing the required parameter "worktypeId" when calling patchTaskmanagementWorktypeStatus';}// verify the required parameter 'statusId' is set
|
|
15408
15299
|
if(statusId===undefined||statusId===null){throw'Missing the required parameter "statusId" when calling patchTaskmanagementWorktypeStatus';}return this.apiClient.callApi('/api/v2/taskmanagement/worktypes/{worktypeId}/statuses/{statusId}','PATCH',{'worktypeId':worktypeId,'statusId':statusId},{},{},{},opts['body'],['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
@@ -15410,24 +15301,20 @@ if(statusId===undefined||statusId===null){throw'Missing the required parameter "
|
|
|
15410
15301
|
*
|
|
15411
15302
|
* @param {Object} opts Optional parameters
|
|
15412
15303
|
* @param {Object} opts.body body
|
|
15413
|
-
* postTaskmanagementWorkbins is a preview method and is subject to both breaking and non-breaking changes at any time without notice
|
|
15414
15304
|
*/},{key:"postTaskmanagementWorkbins",value:function postTaskmanagementWorkbins(opts){opts=opts||{};return this.apiClient.callApi('/api/v2/taskmanagement/workbins','POST',{},{},{},{},opts['body'],['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
15415
15305
|
* Query for workbins
|
|
15416
15306
|
*
|
|
15417
15307
|
* @param {Object} body QueryPostRequest
|
|
15418
|
-
* postTaskmanagementWorkbinsQuery is a preview method and is subject to both breaking and non-breaking changes at any time without notice
|
|
15419
15308
|
*/},{key:"postTaskmanagementWorkbinsQuery",value:function postTaskmanagementWorkbinsQuery(body){// verify the required parameter 'body' is set
|
|
15420
15309
|
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling postTaskmanagementWorkbinsQuery';}return this.apiClient.callApi('/api/v2/taskmanagement/workbins/query','POST',{},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
15421
15310
|
* Cancel the assignment process for a workitem that is currently queued for assignment through ACD.
|
|
15422
15311
|
*
|
|
15423
15312
|
* @param {String} workitemId Workitem ID
|
|
15424
|
-
* postTaskmanagementWorkitemAcdCancel is a preview method and is subject to both breaking and non-breaking changes at any time without notice
|
|
15425
15313
|
*/},{key:"postTaskmanagementWorkitemAcdCancel",value:function postTaskmanagementWorkitemAcdCancel(workitemId){// verify the required parameter 'workitemId' is set
|
|
15426
15314
|
if(workitemId===undefined||workitemId===null){throw'Missing the required parameter "workitemId" when calling postTaskmanagementWorkitemAcdCancel';}return this.apiClient.callApi('/api/v2/taskmanagement/workitems/{workitemId}/acd/cancel','POST',{'workitemId':workitemId},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
15427
15315
|
* Disconnect the assignee of the workitem
|
|
15428
15316
|
*
|
|
15429
15317
|
* @param {String} workitemId Workitem ID
|
|
15430
|
-
* postTaskmanagementWorkitemDisconnect is a preview method and is subject to both breaking and non-breaking changes at any time without notice
|
|
15431
15318
|
*/},{key:"postTaskmanagementWorkitemDisconnect",value:function postTaskmanagementWorkitemDisconnect(workitemId){// verify the required parameter 'workitemId' is set
|
|
15432
15319
|
if(workitemId===undefined||workitemId===null){throw'Missing the required parameter "workitemId" when calling postTaskmanagementWorkitemDisconnect';}return this.apiClient.callApi('/api/v2/taskmanagement/workitems/{workitemId}/disconnect','POST',{'workitemId':workitemId},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
15433
15320
|
* Terminate a workitem
|
|
@@ -15435,13 +15322,11 @@ if(workitemId===undefined||workitemId===null){throw'Missing the required paramet
|
|
|
15435
15322
|
* @param {String} workitemId Workitem ID
|
|
15436
15323
|
* @param {Object} opts Optional parameters
|
|
15437
15324
|
* @param {Object} opts.body Terminated request
|
|
15438
|
-
* postTaskmanagementWorkitemTerminate is a preview method and is subject to both breaking and non-breaking changes at any time without notice
|
|
15439
15325
|
*/},{key:"postTaskmanagementWorkitemTerminate",value:function postTaskmanagementWorkitemTerminate(workitemId,opts){opts=opts||{};// verify the required parameter 'workitemId' is set
|
|
15440
15326
|
if(workitemId===undefined||workitemId===null){throw'Missing the required parameter "workitemId" when calling postTaskmanagementWorkitemTerminate';}return this.apiClient.callApi('/api/v2/taskmanagement/workitems/{workitemId}/terminate','POST',{'workitemId':workitemId},{},{},{},opts['body'],['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
15441
15327
|
* Create a workitem
|
|
15442
15328
|
*
|
|
15443
15329
|
* @param {Object} body Workitem
|
|
15444
|
-
* postTaskmanagementWorkitems is a preview method and is subject to both breaking and non-breaking changes at any time without notice
|
|
15445
15330
|
*/},{key:"postTaskmanagementWorkitems",value:function postTaskmanagementWorkitems(body){// verify the required parameter 'body' is set
|
|
15446
15331
|
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling postTaskmanagementWorkitems';}return this.apiClient.callApi('/api/v2/taskmanagement/workitems','POST',{},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
15447
15332
|
* Query for workitems
|
|
@@ -15453,13 +15338,11 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
15453
15338
|
* Create a workitem query job
|
|
15454
15339
|
*
|
|
15455
15340
|
* @param {Object} body WorkitemQueryJobCreate
|
|
15456
|
-
* postTaskmanagementWorkitemsQueryJobs is a preview method and is subject to both breaking and non-breaking changes at any time without notice
|
|
15457
15341
|
*/},{key:"postTaskmanagementWorkitemsQueryJobs",value:function postTaskmanagementWorkitemsQueryJobs(body){// verify the required parameter 'body' is set
|
|
15458
15342
|
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling postTaskmanagementWorkitemsQueryJobs';}return this.apiClient.callApi('/api/v2/taskmanagement/workitems/query/jobs','POST',{},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
15459
15343
|
* Create a schema
|
|
15460
15344
|
*
|
|
15461
15345
|
* @param {Object} body Schema
|
|
15462
|
-
* postTaskmanagementWorkitemsSchemas is a preview method and is subject to both breaking and non-breaking changes at any time without notice
|
|
15463
15346
|
*/},{key:"postTaskmanagementWorkitemsSchemas",value:function postTaskmanagementWorkitemsSchemas(body){// verify the required parameter 'body' is set
|
|
15464
15347
|
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling postTaskmanagementWorkitemsSchemas';}return this.apiClient.callApi('/api/v2/taskmanagement/workitems/schemas','POST',{},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
15465
15348
|
* Add a status to a worktype
|
|
@@ -15467,32 +15350,28 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
15467
15350
|
* @param {String} worktypeId Worktype id
|
|
15468
15351
|
* @param {Object} opts Optional parameters
|
|
15469
15352
|
* @param {Object} opts.body body
|
|
15470
|
-
* postTaskmanagementWorktypeStatuses is a preview method and is subject to both breaking and non-breaking changes at any time without notice
|
|
15471
15353
|
*/},{key:"postTaskmanagementWorktypeStatuses",value:function postTaskmanagementWorktypeStatuses(worktypeId,opts){opts=opts||{};// verify the required parameter 'worktypeId' is set
|
|
15472
15354
|
if(worktypeId===undefined||worktypeId===null){throw'Missing the required parameter "worktypeId" when calling postTaskmanagementWorktypeStatuses';}return this.apiClient.callApi('/api/v2/taskmanagement/worktypes/{worktypeId}/statuses','POST',{'worktypeId':worktypeId},{},{},{},opts['body'],['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
15473
15355
|
* Create a worktype
|
|
15474
15356
|
*
|
|
15475
15357
|
* @param {Object} opts Optional parameters
|
|
15476
15358
|
* @param {Object} opts.body body
|
|
15477
|
-
* postTaskmanagementWorktypes is a preview method and is subject to both breaking and non-breaking changes at any time without notice
|
|
15478
15359
|
*/},{key:"postTaskmanagementWorktypes",value:function postTaskmanagementWorktypes(opts){opts=opts||{};return this.apiClient.callApi('/api/v2/taskmanagement/worktypes','POST',{},{},{},{},opts['body'],['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
15479
15360
|
* Query for worktypes
|
|
15480
15361
|
*
|
|
15481
15362
|
* @param {Object} body QueryPostRequest
|
|
15482
|
-
* postTaskmanagementWorktypesQuery is a preview method and is subject to both breaking and non-breaking changes at any time without notice
|
|
15483
15363
|
*/},{key:"postTaskmanagementWorktypesQuery",value:function postTaskmanagementWorktypesQuery(body){// verify the required parameter 'body' is set
|
|
15484
15364
|
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling postTaskmanagementWorktypesQuery';}return this.apiClient.callApi('/api/v2/taskmanagement/worktypes/query','POST',{},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
15485
15365
|
* Update a schema
|
|
15486
15366
|
*
|
|
15487
15367
|
* @param {String} schemaId Schema ID
|
|
15488
15368
|
* @param {Object} body Data Schema
|
|
15489
|
-
* putTaskmanagementWorkitemsSchema is a preview method and is subject to both breaking and non-breaking changes at any time without notice
|
|
15490
15369
|
*/},{key:"putTaskmanagementWorkitemsSchema",value:function putTaskmanagementWorkitemsSchema(schemaId,body){// verify the required parameter 'schemaId' is set
|
|
15491
15370
|
if(schemaId===undefined||schemaId===null){throw'Missing the required parameter "schemaId" when calling putTaskmanagementWorkitemsSchema';}// verify the required parameter 'body' is set
|
|
15492
15371
|
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling putTaskmanagementWorkitemsSchema';}return this.apiClient.callApi('/api/v2/taskmanagement/workitems/schemas/{schemaId}','PUT',{'schemaId':schemaId},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}}]);}();var TeamsApi=/*#__PURE__*/function(){/**
|
|
15493
15372
|
* Teams service.
|
|
15494
15373
|
* @module purecloud-platform-client-v2/api/TeamsApi
|
|
15495
|
-
* @version
|
|
15374
|
+
* @version 194.0.0
|
|
15496
15375
|
*/ /**
|
|
15497
15376
|
* Constructs a new TeamsApi.
|
|
15498
15377
|
* @alias module:purecloud-platform-client-v2/api/TeamsApi
|
|
@@ -15549,7 +15428,6 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
15549
15428
|
* @param {Object} opts Optional parameters
|
|
15550
15429
|
* @param {Number} opts.pageSize The desired page size
|
|
15551
15430
|
* @param {Number} opts.pageNumber The desired page number
|
|
15552
|
-
* postAnalyticsTeamsActivityQuery is a preview method and is subject to both breaking and non-breaking changes at any time without notice
|
|
15553
15431
|
*/},{key:"postAnalyticsTeamsActivityQuery",value:function postAnalyticsTeamsActivityQuery(body,opts){opts=opts||{};// verify the required parameter 'body' is set
|
|
15554
15432
|
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling postAnalyticsTeamsActivityQuery';}return this.apiClient.callApi('/api/v2/analytics/teams/activity/query','POST',{},{'pageSize':opts['pageSize'],'pageNumber':opts['pageNumber']},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
15555
15433
|
* Add team members
|
|
@@ -15571,7 +15449,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
15571
15449
|
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling postTeamsSearch';}return this.apiClient.callApi('/api/v2/teams/search','POST',{},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}}]);}();var TelephonyApi=/*#__PURE__*/function(){/**
|
|
15572
15450
|
* Telephony service.
|
|
15573
15451
|
* @module purecloud-platform-client-v2/api/TelephonyApi
|
|
15574
|
-
* @version
|
|
15452
|
+
* @version 194.0.0
|
|
15575
15453
|
*/ /**
|
|
15576
15454
|
* Constructs a new TelephonyApi.
|
|
15577
15455
|
* @alias module:purecloud-platform-client-v2/api/TelephonyApi
|
|
@@ -15618,7 +15496,7 @@ if(downloadId===undefined||downloadId===null){throw'Missing the required paramet
|
|
|
15618
15496
|
if(sIPSearchPublicRequest===undefined||sIPSearchPublicRequest===null){throw'Missing the required parameter "sIPSearchPublicRequest" when calling postTelephonySiptracesDownload';}return this.apiClient.callApi('/api/v2/telephony/siptraces/download','POST',{},{},{},{},sIPSearchPublicRequest,['PureCloud OAuth'],['application/json'],['application/json']);}}]);}();var TelephonyProvidersEdgeApi=/*#__PURE__*/function(){/**
|
|
15619
15497
|
* TelephonyProvidersEdge service.
|
|
15620
15498
|
* @module purecloud-platform-client-v2/api/TelephonyProvidersEdgeApi
|
|
15621
|
-
* @version
|
|
15499
|
+
* @version 194.0.0
|
|
15622
15500
|
*/ /**
|
|
15623
15501
|
* Constructs a new TelephonyProvidersEdgeApi.
|
|
15624
15502
|
* @alias module:purecloud-platform-client-v2/api/TelephonyProvidersEdgeApi
|
|
@@ -16428,7 +16306,7 @@ if(trunkBaseSettingsId===undefined||trunkBaseSettingsId===null){throw'Missing th
|
|
|
16428
16306
|
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling putTelephonyProvidersEdgesTrunkbasesetting';}return this.apiClient.callApi('/api/v2/telephony/providers/edges/trunkbasesettings/{trunkBaseSettingsId}','PUT',{'trunkBaseSettingsId':trunkBaseSettingsId},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}}]);}();var TextbotsApi=/*#__PURE__*/function(){/**
|
|
16429
16307
|
* Textbots service.
|
|
16430
16308
|
* @module purecloud-platform-client-v2/api/TextbotsApi
|
|
16431
|
-
* @version
|
|
16309
|
+
* @version 194.0.0
|
|
16432
16310
|
*/ /**
|
|
16433
16311
|
* Constructs a new TextbotsApi.
|
|
16434
16312
|
* @alias module:purecloud-platform-client-v2/api/TextbotsApi
|
|
@@ -16463,7 +16341,7 @@ if(launchRequest===undefined||launchRequest===null){throw'Missing the required p
|
|
|
16463
16341
|
if(postTextRequest===undefined||postTextRequest===null){throw'Missing the required parameter "postTextRequest" when calling postTextbotsBotsExecute';}return this.apiClient.callApi('/api/v2/textbots/bots/execute','POST',{},{},{},{},postTextRequest,['PureCloud OAuth'],['application/json'],['application/json']);}}]);}();var TokensApi=/*#__PURE__*/function(){/**
|
|
16464
16342
|
* Tokens service.
|
|
16465
16343
|
* @module purecloud-platform-client-v2/api/TokensApi
|
|
16466
|
-
* @version
|
|
16344
|
+
* @version 194.0.0
|
|
16467
16345
|
*/ /**
|
|
16468
16346
|
* Constructs a new TokensApi.
|
|
16469
16347
|
* @alias module:purecloud-platform-client-v2/api/TokensApi
|
|
@@ -16497,7 +16375,7 @@ if(userId===undefined||userId===null){throw'Missing the required parameter "user
|
|
|
16497
16375
|
*/},{key:"putTokensTimeout",value:function putTokensTimeout(opts){opts=opts||{};return this.apiClient.callApi('/api/v2/tokens/timeout','PUT',{},{},{},{},opts['body'],['PureCloud OAuth'],['application/json'],['application/json']);}}]);}();var UploadsApi=/*#__PURE__*/function(){/**
|
|
16498
16376
|
* Uploads service.
|
|
16499
16377
|
* @module purecloud-platform-client-v2/api/UploadsApi
|
|
16500
|
-
* @version
|
|
16378
|
+
* @version 194.0.0
|
|
16501
16379
|
*/ /**
|
|
16502
16380
|
* Constructs a new UploadsApi.
|
|
16503
16381
|
* @alias module:purecloud-platform-client-v2/api/UploadsApi
|
|
@@ -16563,7 +16441,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
16563
16441
|
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling postUploadsWorkforcemanagementHistoricaldataCsv';}return this.apiClient.callApi('/api/v2/uploads/workforcemanagement/historicaldata/csv','POST',{},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}}]);}();var UsageApi=/*#__PURE__*/function(){/**
|
|
16564
16442
|
* Usage service.
|
|
16565
16443
|
* @module purecloud-platform-client-v2/api/UsageApi
|
|
16566
|
-
* @version
|
|
16444
|
+
* @version 194.0.0
|
|
16567
16445
|
*/ /**
|
|
16568
16446
|
* Constructs a new UsageApi.
|
|
16569
16447
|
* @alias module:purecloud-platform-client-v2/api/UsageApi
|
|
@@ -16617,7 +16495,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
16617
16495
|
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling postUsageSimplesearch';}return this.apiClient.callApi('/api/v2/usage/simplesearch','POST',{},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}}]);}();var UserRecordingsApi=/*#__PURE__*/function(){/**
|
|
16618
16496
|
* UserRecordings service.
|
|
16619
16497
|
* @module purecloud-platform-client-v2/api/UserRecordingsApi
|
|
16620
|
-
* @version
|
|
16498
|
+
* @version 194.0.0
|
|
16621
16499
|
*/ /**
|
|
16622
16500
|
* Constructs a new UserRecordingsApi.
|
|
16623
16501
|
* @alias module:purecloud-platform-client-v2/api/UserRecordingsApi
|
|
@@ -16666,7 +16544,7 @@ if(recordingId===undefined||recordingId===null){throw'Missing the required param
|
|
|
16666
16544
|
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling putUserrecording';}return this.apiClient.callApi('/api/v2/userrecordings/{recordingId}','PUT',{'recordingId':recordingId},{'expand':this.apiClient.buildCollectionParam(opts['expand'],'multi')},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}}]);}();var UsersApi=/*#__PURE__*/function(){/**
|
|
16667
16545
|
* Users service.
|
|
16668
16546
|
* @module purecloud-platform-client-v2/api/UsersApi
|
|
16669
|
-
* @version
|
|
16547
|
+
* @version 194.0.0
|
|
16670
16548
|
*/ /**
|
|
16671
16549
|
* Constructs a new UsersApi.
|
|
16672
16550
|
* @alias module:purecloud-platform-client-v2/api/UsersApi
|
|
@@ -17102,7 +16980,6 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
17102
16980
|
* @param {Object} opts Optional parameters
|
|
17103
16981
|
* @param {Number} opts.pageSize The desired page size
|
|
17104
16982
|
* @param {Number} opts.pageNumber The desired page number
|
|
17105
|
-
* postAnalyticsUsersActivityQuery is a preview method and is subject to both breaking and non-breaking changes at any time without notice
|
|
17106
16983
|
*/},{key:"postAnalyticsUsersActivityQuery",value:function postAnalyticsUsersActivityQuery(body,opts){opts=opts||{};// verify the required parameter 'body' is set
|
|
17107
16984
|
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling postAnalyticsUsersActivityQuery';}return this.apiClient.callApi('/api/v2/analytics/users/activity/query','POST',{},{'pageSize':opts['pageSize'],'pageNumber':opts['pageNumber']},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
17108
16985
|
* Query for user aggregates asynchronously
|
|
@@ -17329,7 +17206,7 @@ if(verifierId===undefined||verifierId===null){throw'Missing the required paramet
|
|
|
17329
17206
|
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling putUserVerifier';}return this.apiClient.callApi('/api/v2/users/{userId}/verifiers/{verifierId}','PUT',{'userId':userId,'verifierId':verifierId},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}}]);}();var UtilitiesApi=/*#__PURE__*/function(){/**
|
|
17330
17207
|
* Utilities service.
|
|
17331
17208
|
* @module purecloud-platform-client-v2/api/UtilitiesApi
|
|
17332
|
-
* @version
|
|
17209
|
+
* @version 194.0.0
|
|
17333
17210
|
*/ /**
|
|
17334
17211
|
* Constructs a new UtilitiesApi.
|
|
17335
17212
|
* @alias module:purecloud-platform-client-v2/api/UtilitiesApi
|
|
@@ -17356,7 +17233,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
17356
17233
|
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling postCertificateDetails';}return this.apiClient.callApi('/api/v2/certificate/details','POST',{},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}}]);}();var VoicemailApi=/*#__PURE__*/function(){/**
|
|
17357
17234
|
* Voicemail service.
|
|
17358
17235
|
* @module purecloud-platform-client-v2/api/VoicemailApi
|
|
17359
|
-
* @version
|
|
17236
|
+
* @version 194.0.0
|
|
17360
17237
|
*/ /**
|
|
17361
17238
|
* Constructs a new VoicemailApi.
|
|
17362
17239
|
* @alias module:purecloud-platform-client-v2/api/VoicemailApi
|
|
@@ -17505,7 +17382,7 @@ if(userId===undefined||userId===null){throw'Missing the required parameter "user
|
|
|
17505
17382
|
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling putVoicemailUserpolicy';}return this.apiClient.callApi('/api/v2/voicemail/userpolicies/{userId}','PUT',{'userId':userId},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}}]);}();var WebChatApi=/*#__PURE__*/function(){/**
|
|
17506
17383
|
* WebChat service.
|
|
17507
17384
|
* @module purecloud-platform-client-v2/api/WebChatApi
|
|
17508
|
-
* @version
|
|
17385
|
+
* @version 194.0.0
|
|
17509
17386
|
*/ /**
|
|
17510
17387
|
* Constructs a new WebChatApi.
|
|
17511
17388
|
* @alias module:purecloud-platform-client-v2/api/WebChatApi
|
|
@@ -17640,7 +17517,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
17640
17517
|
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling putWebchatSettings';}return this.apiClient.callApi('/api/v2/webchat/settings','PUT',{},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}}]);}();var WebDeploymentsApi=/*#__PURE__*/function(){/**
|
|
17641
17518
|
* WebDeployments service.
|
|
17642
17519
|
* @module purecloud-platform-client-v2/api/WebDeploymentsApi
|
|
17643
|
-
* @version
|
|
17520
|
+
* @version 194.0.0
|
|
17644
17521
|
*/ /**
|
|
17645
17522
|
* Constructs a new WebDeploymentsApi.
|
|
17646
17523
|
* @alias module:purecloud-platform-client-v2/api/WebDeploymentsApi
|
|
@@ -17761,7 +17638,7 @@ if(deploymentId===undefined||deploymentId===null){throw'Missing the required par
|
|
|
17761
17638
|
if(deployment===undefined||deployment===null){throw'Missing the required parameter "deployment" when calling putWebdeploymentsDeployment';}return this.apiClient.callApi('/api/v2/webdeployments/deployments/{deploymentId}','PUT',{'deploymentId':deploymentId},{},{},{},deployment,['PureCloud OAuth'],['application/json'],['application/json']);}}]);}();var WebMessagingApi=/*#__PURE__*/function(){/**
|
|
17762
17639
|
* WebMessaging service.
|
|
17763
17640
|
* @module purecloud-platform-client-v2/api/WebMessagingApi
|
|
17764
|
-
* @version
|
|
17641
|
+
* @version 194.0.0
|
|
17765
17642
|
*/ /**
|
|
17766
17643
|
* Constructs a new WebMessagingApi.
|
|
17767
17644
|
* @alias module:purecloud-platform-client-v2/api/WebMessagingApi
|
|
@@ -17777,7 +17654,7 @@ if(deployment===undefined||deployment===null){throw'Missing the required paramet
|
|
|
17777
17654
|
*/return _createClass(WebMessagingApi,[{key:"getWebmessagingMessages",value:function getWebmessagingMessages(opts){opts=opts||{};return this.apiClient.callApi('/api/v2/webmessaging/messages','GET',{},{'pageSize':opts['pageSize'],'pageNumber':opts['pageNumber']},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}}]);}();var WidgetsApi=/*#__PURE__*/function(){/**
|
|
17778
17655
|
* Widgets service.
|
|
17779
17656
|
* @module purecloud-platform-client-v2/api/WidgetsApi
|
|
17780
|
-
* @version
|
|
17657
|
+
* @version 194.0.0
|
|
17781
17658
|
*/ /**
|
|
17782
17659
|
* Constructs a new WidgetsApi.
|
|
17783
17660
|
* @alias module:purecloud-platform-client-v2/api/WidgetsApi
|
|
@@ -17812,7 +17689,7 @@ if(deploymentId===undefined||deploymentId===null){throw'Missing the required par
|
|
|
17812
17689
|
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling putWidgetsDeployment';}return this.apiClient.callApi('/api/v2/widgets/deployments/{deploymentId}','PUT',{'deploymentId':deploymentId},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}}]);}();var WorkforceManagementApi=/*#__PURE__*/function(){/**
|
|
17813
17690
|
* WorkforceManagement service.
|
|
17814
17691
|
* @module purecloud-platform-client-v2/api/WorkforceManagementApi
|
|
17815
|
-
* @version
|
|
17692
|
+
* @version 194.0.0
|
|
17816
17693
|
*/ /**
|
|
17817
17694
|
* Constructs a new WorkforceManagementApi.
|
|
17818
17695
|
* @alias module:purecloud-platform-client-v2/api/WorkforceManagementApi
|
|
@@ -18305,9 +18182,10 @@ if(managementUnitId===undefined||managementUnitId===null){throw'Missing the requ
|
|
|
18305
18182
|
* @param {String} agentId The agent id
|
|
18306
18183
|
* @param {Object} opts Optional parameters
|
|
18307
18184
|
* @param {Boolean} opts.excludeCapabilities Excludes all capabilities of the agent such as queues, languages, and skills
|
|
18185
|
+
* @param {Array.<String>} opts.expand
|
|
18308
18186
|
*/},{key:"getWorkforcemanagementManagementunitAgent",value:function getWorkforcemanagementManagementunitAgent(managementUnitId,agentId,opts){opts=opts||{};// verify the required parameter 'managementUnitId' is set
|
|
18309
18187
|
if(managementUnitId===undefined||managementUnitId===null){throw'Missing the required parameter "managementUnitId" when calling getWorkforcemanagementManagementunitAgent';}// verify the required parameter 'agentId' is set
|
|
18310
|
-
if(agentId===undefined||agentId===null){throw'Missing the required parameter "agentId" when calling getWorkforcemanagementManagementunitAgent';}return this.apiClient.callApi('/api/v2/workforcemanagement/managementunits/{managementUnitId}/agents/{agentId}','GET',{'managementUnitId':managementUnitId,'agentId':agentId},{'excludeCapabilities':opts['excludeCapabilities']},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
18188
|
+
if(agentId===undefined||agentId===null){throw'Missing the required parameter "agentId" when calling getWorkforcemanagementManagementunitAgent';}return this.apiClient.callApi('/api/v2/workforcemanagement/managementunits/{managementUnitId}/agents/{agentId}','GET',{'managementUnitId':managementUnitId,'agentId':agentId},{'excludeCapabilities':opts['excludeCapabilities'],'expand':this.apiClient.buildCollectionParam(opts['expand'],'multi')},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
18311
18189
|
* Gets all the shift trades for a given agent
|
|
18312
18190
|
*
|
|
18313
18191
|
* @param {String} managementUnitId The ID of the management unit, or 'mine' for the management unit of the logged-in user.
|
|
@@ -18444,8 +18322,9 @@ if(managementUnitId===undefined||managementUnitId===null){throw'Missing the requ
|
|
|
18444
18322
|
* @param {String} managementUnitId The ID of the management unit, or 'mine' for the management unit of the logged-in user.
|
|
18445
18323
|
* @param {Object} opts Optional parameters
|
|
18446
18324
|
* @param {Array.<String>} opts.expand Include to access additional data on the work plans
|
|
18325
|
+
* @param {Array.<String>} opts.exclude Exclude specific data on the work plans from the response
|
|
18447
18326
|
*/},{key:"getWorkforcemanagementManagementunitWorkplans",value:function getWorkforcemanagementManagementunitWorkplans(managementUnitId,opts){opts=opts||{};// verify the required parameter 'managementUnitId' is set
|
|
18448
|
-
if(managementUnitId===undefined||managementUnitId===null){throw'Missing the required parameter "managementUnitId" when calling getWorkforcemanagementManagementunitWorkplans';}return this.apiClient.callApi('/api/v2/workforcemanagement/managementunits/{managementUnitId}/workplans','GET',{'managementUnitId':managementUnitId},{'expand':this.apiClient.buildCollectionParam(opts['expand'],'multi')},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
18327
|
+
if(managementUnitId===undefined||managementUnitId===null){throw'Missing the required parameter "managementUnitId" when calling getWorkforcemanagementManagementunitWorkplans';}return this.apiClient.callApi('/api/v2/workforcemanagement/managementunits/{managementUnitId}/workplans','GET',{'managementUnitId':managementUnitId},{'expand':this.apiClient.buildCollectionParam(opts['expand'],'multi'),'exclude':this.apiClient.buildCollectionParam(opts['exclude'],'multi')},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
18449
18328
|
* Get management units
|
|
18450
18329
|
*
|
|
18451
18330
|
* @param {Object} opts Optional parameters
|
|
@@ -19290,7 +19169,7 @@ if(timeOffLimitId===undefined||timeOffLimitId===null){throw'Missing the required
|
|
|
19290
19169
|
* </pre>
|
|
19291
19170
|
* </p>
|
|
19292
19171
|
* @module purecloud-platform-client-v2/index
|
|
19293
|
-
* @version
|
|
19172
|
+
* @version 194.0.0
|
|
19294
19173
|
*/var platformClient=/*#__PURE__*/_createClass(function platformClient(){_classCallCheck(this,platformClient);/**
|
|
19295
19174
|
* The ApiClient constructor.
|
|
19296
19175
|
* @property {module:purecloud-platform-client-v2/ApiClient}
|