purecloud-platform-client-v2 220.0.0 → 222.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +3 -3
- package/dist/node/purecloud-platform-client-v2.js +1428 -138
- package/dist/web-amd/purecloud-platform-client-v2.js +1428 -138
- package/dist/web-amd/purecloud-platform-client-v2.min.js +1 -1
- package/dist/web-cjs/bundle.js +497 -168
- package/dist/web-cjs/purecloud-platform-client-v2.js +497 -168
- package/dist/web-cjs/purecloud-platform-client-v2.min.js +1 -1
- package/index.d.ts +1041 -253
- package/package.json +1 -1
- package/src/purecloud-platform-client-v2/ApiClient.js +1 -1
- package/src/purecloud-platform-client-v2/api/AgentAssistantsApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/AgentCopilotApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/AgentUIApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/AlertingApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/AnalyticsApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/ArchitectApi.js +5 -5
- package/src/purecloud-platform-client-v2/api/AuditApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/AuthorizationApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/BillingApi.js +177 -1
- package/src/purecloud-platform-client-v2/api/BusinessRulesApi.js +919 -0
- package/src/purecloud-platform-client-v2/api/CarrierServicesApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/ChatApi.js +7 -3
- 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 +153 -14
- package/src/purecloud-platform-client-v2/api/DataExtensionsApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/DataPrivacyApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/DownloadsApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/EmailsApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/EmployeeEngagementApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/EventsApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/ExternalContactsApi.js +3 -18
- package/src/purecloud-platform-client-v2/api/FaxApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/FlowsApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/GamificationApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/GeneralDataProtectionRegulationApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/GeolocationApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/GreetingsApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/GroupsApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/IdentityProviderApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/InfrastructureAsCodeApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/IntegrationsApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/JourneyApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/KnowledgeApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/LanguageUnderstandingApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/LanguagesApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/LearningApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/LicenseApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/LocationsApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/LogCaptureApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/MessagingApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/MobileDevicesApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/NotificationsApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/OAuthApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/ObjectsApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/OperationalEventsApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/OrganizationApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/OrganizationAuthorizationApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/OutboundApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/PresenceApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/ProcessAutomationApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/QualityApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/RecordingApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/ResponseManagementApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/RoutingApi.js +19 -14
- 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 +65 -1
- package/src/purecloud-platform-client-v2/api/SocialMediaApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/SpeechTextAnalyticsApi.js +1 -3
- 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 +2 -2
- package/src/purecloud-platform-client-v2/api/TeamsApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/TelephonyApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/TelephonyProvidersEdgeApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/TextbotsApi.js +3 -2
- package/src/purecloud-platform-client-v2/api/TokensApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/UploadsApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/UsageApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/UserRecordingsApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/UsersApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/UtilitiesApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/VoicemailApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/WebChatApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/WebDeploymentsApi.js +1 -3
- package/src/purecloud-platform-client-v2/api/WebMessagingApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/WidgetsApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/WorkforceManagementApi.js +3 -2
- package/src/purecloud-platform-client-v2/index.js +7 -1
package/dist/web-cjs/bundle.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
'use strict';function _callSuper(t,o,e){return o=_getPrototypeOf(o),_possibleConstructorReturn(t,_isNativeReflectConstruct()?Reflect.construct(o,e||[],_getPrototypeOf(t).constructor):o.apply(t,e));}function _possibleConstructorReturn(t,e){if(e&&("object"==_typeof(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return _assertThisInitialized(t);}function _assertThisInitialized(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e;}function _isNativeReflectConstruct(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}));}catch(t){}return(_isNativeReflectConstruct=function _isNativeReflectConstruct(){return!!t;})();}function _getPrototypeOf(t){return _getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t);},_getPrototypeOf(t);}function _inherits(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&_setPrototypeOf(t,e);}function _setPrototypeOf(t,e){return _setPrototypeOf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t;},_setPrototypeOf(t,e);}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 _toArray(r){return _arrayWithHoles(r)||_iterableToArray(r)||_unsupportedIterableToArray(r)||_nonIterableRest();}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 _iterableToArray(r){if("undefined"!=typeof Symbol&&null!=r[Symbol.iterator]||null!=r["@@iterator"])return Array.from(r);}function _arrayWithoutHoles(r){if(Array.isArray(r))return _arrayLikeToArray(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:{};// shim for using process in browser
|
|
1
|
+
'use strict';function _callSuper(t,o,e){return o=_getPrototypeOf(o),_possibleConstructorReturn(t,_isNativeReflectConstruct()?Reflect.construct(o,e||[],_getPrototypeOf(t).constructor):o.apply(t,e));}function _possibleConstructorReturn(t,e){if(e&&("object"==_typeof(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return _assertThisInitialized(t);}function _assertThisInitialized(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e;}function _isNativeReflectConstruct(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}));}catch(t){}return(_isNativeReflectConstruct=function _isNativeReflectConstruct(){return!!t;})();}function _getPrototypeOf(t){return _getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t);},_getPrototypeOf(t);}function _inherits(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&_setPrototypeOf(t,e);}function _setPrototypeOf(t,e){return _setPrototypeOf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t;},_setPrototypeOf(t,e);}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/babel/babel/blob/main/packages/babel-helpers/LICENSE */_regeneratorRuntime=function _regeneratorRuntime(){return r;};var t,r={},e=Object.prototype,n=e.hasOwnProperty,o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",u=o.toStringTag||"@@toStringTag";function c(t,r,e,n){return Object.defineProperty(t,r,{value:e,enumerable:!n,configurable:!n,writable:!n});}try{c({},"");}catch(t){c=function c(t,r,e){return t[r]=e;};}function h(r,e,n,o){var i=e&&e.prototype instanceof Generator?e:Generator,a=Object.create(i.prototype);return c(a,"_invoke",function(r,e,n){var o=1;return function(i,a){if(3===o)throw Error("Generator is already running");if(4===o){if("throw"===i)throw a;return{value:t,done:!0};}for(n.method=i,n.arg=a;;){var u=n.delegate;if(u){var c=d(u,n);if(c){if(c===f)continue;return c;}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(1===o)throw o=4,n.arg;n.dispatchException(n.arg);}else"return"===n.method&&n.abrupt("return",n.arg);o=3;var h=s(r,e,n);if("normal"===h.type){if(o=n.done?4:2,h.arg===f)continue;return{value:h.arg,done:n.done};}"throw"===h.type&&(o=4,n.method="throw",n.arg=h.arg);}};}(r,n,new Context(o||[])),!0),a;}function s(t,r,e){try{return{type:"normal",arg:t.call(r,e)};}catch(t){return{type:"throw",arg:t};}}r.wrap=h;var f={};function Generator(){}function GeneratorFunction(){}function GeneratorFunctionPrototype(){}var l={};c(l,i,function(){return this;});var p=Object.getPrototypeOf,y=p&&p(p(x([])));y&&y!==e&&n.call(y,i)&&(l=y);var v=GeneratorFunctionPrototype.prototype=Generator.prototype=Object.create(l);function g(t){["next","throw","return"].forEach(function(r){c(t,r,function(t){return this._invoke(r,t);});});}function AsyncIterator(t,r){function e(o,i,a,u){var c=s(t[o],t,i);if("throw"!==c.type){var h=c.arg,f=h.value;return f&&"object"==_typeof(f)&&n.call(f,"__await")?r.resolve(f.__await).then(function(t){e("next",t,a,u);},function(t){e("throw",t,a,u);}):r.resolve(f).then(function(t){h.value=t,a(h);},function(t){return e("throw",t,a,u);});}u(c.arg);}var o;c(this,"_invoke",function(t,n){function i(){return new r(function(r,o){e(t,n,r,o);});}return o=o?o.then(i,i):i();},!0);}function d(r,e){var n=e.method,o=r.i[n];if(o===t)return e.delegate=null,"throw"===n&&r.i["return"]&&(e.method="return",e.arg=t,d(r,e),"throw"===e.method)||"return"!==n&&(e.method="throw",e.arg=new TypeError("The iterator does not provide a '"+n+"' method")),f;var i=s(o,r.i,e.arg);if("throw"===i.type)return e.method="throw",e.arg=i.arg,e.delegate=null,f;var a=i.arg;return a?a.done?(e[r.r]=a.value,e.next=r.n,"return"!==e.method&&(e.method="next",e.arg=t),e.delegate=null,f):a:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,f);}function w(t){this.tryEntries.push(t);}function m(r){var e=r[4]||{};e.type="normal",e.arg=t,r[4]=e;}function Context(t){this.tryEntries=[[-1]],t.forEach(w,this),this.reset(!0);}function x(r){if(null!=r){var e=r[i];if(e)return e.call(r);if("function"==typeof r.next)return r;if(!isNaN(r.length)){var o=-1,a=function e(){for(;++o<r.length;)if(n.call(r,o))return e.value=r[o],e.done=!1,e;return e.value=t,e.done=!0,e;};return a.next=a;}}throw new TypeError(_typeof(r)+" is not iterable");}return GeneratorFunction.prototype=GeneratorFunctionPrototype,c(v,"constructor",GeneratorFunctionPrototype),c(GeneratorFunctionPrototype,"constructor",GeneratorFunction),GeneratorFunction.displayName=c(GeneratorFunctionPrototype,u,"GeneratorFunction"),r.isGeneratorFunction=function(t){var r="function"==typeof t&&t.constructor;return!!r&&(r===GeneratorFunction||"GeneratorFunction"===(r.displayName||r.name));},r.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,GeneratorFunctionPrototype):(t.__proto__=GeneratorFunctionPrototype,c(t,u,"GeneratorFunction")),t.prototype=Object.create(v),t;},r.awrap=function(t){return{__await:t};},g(AsyncIterator.prototype),c(AsyncIterator.prototype,a,function(){return this;}),r.AsyncIterator=AsyncIterator,r.async=function(t,e,n,o,i){void 0===i&&(i=Promise);var a=new AsyncIterator(h(t,e,n,o),i);return r.isGeneratorFunction(e)?a:a.next().then(function(t){return t.done?t.value:a.next();});},g(v),c(v,u,"Generator"),c(v,i,function(){return this;}),c(v,"toString",function(){return"[object Generator]";}),r.keys=function(t){var r=Object(t),e=[];for(var n in r)e.unshift(n);return function t(){for(;e.length;)if((n=e.pop())in r)return t.value=n,t.done=!1,t;return t.done=!0,t;};},r.values=x,Context.prototype={constructor:Context,reset:function reset(r){if(this.prev=this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(m),!r)for(var e in this)"t"===e.charAt(0)&&n.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=t);},stop:function stop(){this.done=!0;var t=this.tryEntries[0][4];if("throw"===t.type)throw t.arg;return this.rval;},dispatchException:function dispatchException(r){if(this.done)throw r;var e=this;function n(t){a.type="throw",a.arg=r,e.next=t;}for(var o=e.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i[4],u=this.prev,c=i[1],h=i[2];if(-1===i[0])return n("end"),!1;if(!c&&!h)throw Error("try statement without catch or finally");if(null!=i[0]&&i[0]<=u){if(u<c)return this.method="next",this.arg=t,n(c),!0;if(u<h)return n(h),!1;}}},abrupt:function abrupt(t,r){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n[0]>-1&&n[0]<=this.prev&&this.prev<n[2]){var o=n;break;}}o&&("break"===t||"continue"===t)&&o[0]<=r&&r<=o[2]&&(o=null);var i=o?o[4]:{};return i.type=t,i.arg=r,o?(this.method="next",this.next=o[2],f):this.complete(i);},complete:function complete(t,r){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&&r&&(this.next=r),f;},finish:function finish(t){for(var r=this.tryEntries.length-1;r>=0;--r){var e=this.tryEntries[r];if(e[2]===t)return this.complete(e[4],e[3]),m(e),f;}},"catch":function _catch(t){for(var r=this.tryEntries.length-1;r>=0;--r){var e=this.tryEntries[r];if(e[0]===t){var n=e[4];if("throw"===n.type){var o=n.arg;m(e);}return o;}}throw Error("illegal catch attempt");},delegateYield:function delegateYield(r,e,n){return this.delegate={i:x(r),r:e,n:n},"next"===this.method&&(this.arg=t),f;}},r;}function _toArray(r){return _arrayWithHoles(r)||_iterableToArray(r)||_unsupportedIterableToArray(r)||_nonIterableRest();}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 _iterableToArray(r){if("undefined"!=typeof Symbol&&null!=r[Symbol.iterator]||null!=r["@@iterator"])return Array.from(r);}function _arrayWithoutHoles(r){if(Array.isArray(r))return _arrayLikeToArray(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:{};// shim for using process in browser
|
|
2
2
|
// based off https://github.com/defunctzombie/node-process/blob/master/browser.js
|
|
3
3
|
function defaultSetTimout(){throw new Error('setTimeout has not been defined');}function defaultClearTimeout(){throw new Error('clearTimeout has not been defined');}var cachedSetTimeout=defaultSetTimout;var cachedClearTimeout=defaultClearTimeout;if(typeof global$1.setTimeout==='function'){cachedSetTimeout=setTimeout;}if(typeof global$1.clearTimeout==='function'){cachedClearTimeout=clearTimeout;}function runTimeout(fun){if(cachedSetTimeout===setTimeout){//normal enviroments in sane situations
|
|
4
4
|
return setTimeout(fun,0);}// if setTimeout wasn't available but was latter defined
|
|
@@ -619,7 +619,7 @@ var ignoreDuplicateOf=utils$1.toObjectSet(['age','authorization','content-length
|
|
|
619
619
|
*
|
|
620
620
|
* @returns {Object} Headers parsed into an object
|
|
621
621
|
*/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.isObject(header)&&utils$1.isIterable(header)){var obj={},dest,key;var _iterator3=_createForOfIteratorHelper(header),_step2;try{for(_iterator3.s();!(_step2=_iterator3.n()).done;){var entry=_step2.value;if(!utils$1.isArray(entry)){throw TypeError('Object iterator must return a key-value pair');}obj[key=entry[0]]=(dest=obj[key])?utils$1.isArray(dest)?[].concat(_toConsumableArray(dest),[entry[1]]):[dest,entry[1]]:entry[1];}}catch(err){_iterator3.e(err);}finally{_iterator3.f();}setHeaders(obj,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(_ref8){var _ref9=_slicedToArray(_ref8,2),header=_ref9[0],value=_ref9[1];return header+': '+value;}).join('\n');}},{key:"getSetCookie",value:function getSetCookie(){return this.get("set-cookie")||[];}},{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
|
|
622
|
-
utils$1.reduceDescriptors(AxiosHeaders.prototype,function(
|
|
622
|
+
utils$1.reduceDescriptors(AxiosHeaders.prototype,function(_ref0,key){var value=_ref0.value;var mapped=key[0].toUpperCase()+key.slice(1);// map `set` => `Set`
|
|
623
623
|
return{get:function get(){return value;},set:function set(headerValue){this[mapped]=headerValue;}};});utils$1.freezeMethods(AxiosHeaders);var AxiosHeaders$1=AxiosHeaders;/**
|
|
624
624
|
* Transform the data for a request or a response
|
|
625
625
|
*
|
|
@@ -697,7 +697,7 @@ function defaultToConfig2(a,b){if(!utils$1.isUndefined(b)){return getMergedValue
|
|
|
697
697
|
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,prop){return mergeDeepProperties(headersToObject(a),headersToObject(b),prop,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,newConfig.allowAbsoluteUrls),config.params,config.paramsSerializer);// HTTP basic authentication
|
|
698
698
|
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
|
|
699
699
|
}else if((contentType=headers.getContentType())!==false){// fix semicolon duplication issue for ReactNative FormData implementation
|
|
700
|
-
var
|
|
700
|
+
var _ref1=contentType?contentType.split(';').map(function(token){return token.trim();}).filter(Boolean):[],_ref10=_toArray(_ref1),type=_ref10[0],tokens=_ref10.slice(1);headers.setContentType([type||'multipart/form-data'].concat(_toConsumableArray(tokens)).join('; '));}}// Add xsrf header
|
|
701
701
|
// This is only done if running in a standard browser environment.
|
|
702
702
|
// Specifically not if we're in a web worker, or react-native.
|
|
703
703
|
if(platform.hasStandardBrowserEnv){withXSRFToken&&utils$1.isFunction(withXSRFToken)&&(withXSRFToken=withXSRFToken(newConfig));if(withXSRFToken||withXSRFToken!==false&&isURLSameOrigin(newConfig.url)){// Add xsrf header
|
|
@@ -732,10 +732,10 @@ if(onUploadProgress&&request.upload){var _progressEventReducer3=progressEventRed
|
|
|
732
732
|
// eslint-disable-next-line func-names
|
|
733
733
|
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
|
|
734
734
|
request.send(requestData||null);});};var composeSignals=function composeSignals(signals,timeout){var _signals=signals=signals?signals.filter(Boolean):[],length=_signals.length;if(timeout||length){var controller=new AbortController();var aborted;var onabort=function onabort(reason){if(!aborted){aborted=true;unsubscribe();var err=reason instanceof Error?reason:this.reason;controller.abort(err instanceof AxiosError?err:new CanceledError(err instanceof Error?err.message:err));}};var timer=timeout&&setTimeout(function(){timer=null;onabort(new AxiosError("timeout ".concat(timeout," of ms exceeded"),AxiosError.ETIMEDOUT));},timeout);var unsubscribe=function unsubscribe(){if(signals){timer&&clearTimeout(timer);timer=null;signals.forEach(function(signal){signal.unsubscribe?signal.unsubscribe(onabort):signal.removeEventListener('abort',onabort);});signals=null;}};signals.forEach(function(signal){return signal.addEventListener('abort',onabort);});var signal=controller.signal;signal.unsubscribe=function(){return utils$1.asap(unsubscribe);};return signal;}};var composeSignals$1=composeSignals;var streamChunk=/*#__PURE__*/_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){var _iteratorAbruptCompletion,_didIteratorError,_iteratorError,_iterator2,_step,chunk;return _regeneratorRuntime().wrap(function _callee$(_context2){while(1)switch(_context2.prev=_context2.next){case 0:_iteratorAbruptCompletion=false;_didIteratorError=false;_context2.prev=2;_iterator2=_asyncIterator(readStream(iterable));case 4:_context2.next=6;return _awaitAsyncGenerator(_iterator2.next());case 6:if(!(_iteratorAbruptCompletion=!(_step=_context2.sent).done)){_context2.next=12;break;}chunk=_step.value;return _context2.delegateYield(_asyncGeneratorDelegate(_asyncIterator(streamChunk(chunk,chunkSize)),_awaitAsyncGenerator),"t0",9);case 9:_iteratorAbruptCompletion=false;_context2.next=4;break;case 12:_context2.next=18;break;case 14:_context2.prev=14;_context2.t1=_context2["catch"](2);_didIteratorError=true;_iteratorError=_context2.t1;case 18:_context2.prev=18;_context2.prev=19;if(!(_iteratorAbruptCompletion&&_iterator2["return"]!=null)){_context2.next=23;break;}_context2.next=23;return _awaitAsyncGenerator(_iterator2["return"]());case 23:_context2.prev=23;if(!_didIteratorError){_context2.next=26;break;}throw _iteratorError;case 26:return _context2.finish(23);case 27:return _context2.finish(18);case 28:case"end":return _context2.stop();}},_callee,null,[[2,14,18,28],[19,,23,27]]);}));return function readBytes(_x,_x2){return _ref.apply(this,arguments);};}();var readStream=/*#__PURE__*/function(){var _ref2=_wrapAsyncGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee2(stream){var reader,_yield$_awaitAsyncGen,done,value;return _regeneratorRuntime().wrap(function _callee2$(_context3){while(1)switch(_context3.prev=_context3.next){case 0:if(!stream[Symbol.asyncIterator]){_context3.next=3;break;}return _context3.delegateYield(_asyncGeneratorDelegate(_asyncIterator(stream),_awaitAsyncGenerator),"t0",2);case 2:return _context3.abrupt("return");case 3:reader=stream.getReader();_context3.prev=4;case 5:_context3.next=7;return _awaitAsyncGenerator(reader.read());case 7:_yield$_awaitAsyncGen=_context3.sent;done=_yield$_awaitAsyncGen.done;value=_yield$_awaitAsyncGen.value;if(!done){_context3.next=12;break;}return _context3.abrupt("break",16);case 12:_context3.next=14;return value;case 14:_context3.next=5;break;case 16:_context3.prev=16;_context3.next=19;return _awaitAsyncGenerator(reader.cancel());case 19:return _context3.finish(16);case 20:case"end":return _context3.stop();}},_callee2,null,[[4,,16,20]]);}));return function readStream(_x3){return _ref2.apply(this,arguments);};}();var trackStream=function trackStream(stream,chunkSize,onProgress,onFinish){var iterator=readBytes(stream,chunkSize);var bytes=0;var done;var _onFinish=function _onFinish(e){if(!done){done=true;onFinish&&onFinish(e);}};return new ReadableStream({pull:function pull(controller){return _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee3(){var _yield$iterator$next,_done,value,len,loadedBytes;return _regeneratorRuntime().wrap(function _callee3$(_context4){while(1)switch(_context4.prev=_context4.next){case 0:_context4.prev=0;_context4.next=3;return iterator.next();case 3:_yield$iterator$next=_context4.sent;_done=_yield$iterator$next.done;value=_yield$iterator$next.value;if(!_done){_context4.next=10;break;}_onFinish();controller.close();return _context4.abrupt("return");case 10:len=value.byteLength;if(onProgress){loadedBytes=bytes+=len;onProgress(loadedBytes);}controller.enqueue(new Uint8Array(value));_context4.next=19;break;case 15:_context4.prev=15;_context4.t0=_context4["catch"](0);_onFinish(_context4.t0);throw _context4.t0;case 19:case"end":return _context4.stop();}},_callee3,null,[[0,15]]);}))();},cancel:function cancel(reason){_onFinish(reason);return iterator["return"]();}},{highWaterMark:2});};var isFetchSupported=typeof fetch==='function'&&typeof Request==='function'&&typeof Response==='function';var isReadableStreamSupported=isFetchSupported&&typeof ReadableStream==='function';// used only inside the fetch adapter
|
|
735
|
-
var encodeText=isFetchSupported&&(typeof TextEncoder==='function'?function(encoder){return function(str){return encoder.encode(str);};}(new TextEncoder()):(/*#__PURE__*/function(){var
|
|
735
|
+
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 _callee4(str){return _regeneratorRuntime().wrap(function _callee4$(_context5){while(1)switch(_context5.prev=_context5.next){case 0:_context5.t0=Uint8Array;_context5.next=3;return new Response(str).arrayBuffer();case 3:_context5.t1=_context5.sent;return _context5.abrupt("return",new _context5.t0(_context5.t1));case 5:case"end":return _context5.stop();}},_callee4);}));return function(_x4){return _ref11.apply(this,arguments);};}()));var test=function test(fn){try{for(var _len5=arguments.length,args=new Array(_len5>1?_len5-1:0),_key6=1;_key6<_len5;_key6++){args[_key6-1]=arguments[_key6];}return!!fn.apply(void 0,args);}catch(e){return false;}};var supportsRequestStream=isReadableStreamSupported&&test(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&&test(function(){return utils$1.isReadableStream(new Response('').body);});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 _callee5(body){var _request;return _regeneratorRuntime().wrap(function _callee5$(_context6){while(1)switch(_context6.prev=_context6.next){case 0:if(!(body==null)){_context6.next=2;break;}return _context6.abrupt("return",0);case 2:if(!utils$1.isBlob(body)){_context6.next=4;break;}return _context6.abrupt("return",body.size);case 4:if(!utils$1.isSpecCompliantForm(body)){_context6.next=9;break;}_request=new Request(platform.origin,{method:'POST',body:body});_context6.next=8;return _request.arrayBuffer();case 8:return _context6.abrupt("return",_context6.sent.byteLength);case 9:if(!(utils$1.isArrayBufferView(body)||utils$1.isArrayBuffer(body))){_context6.next=11;break;}return _context6.abrupt("return",body.byteLength);case 11:if(utils$1.isURLSearchParams(body)){body=body+'';}if(!utils$1.isString(body)){_context6.next=16;break;}_context6.next=15;return encodeText(body);case 15:return _context6.abrupt("return",_context6.sent.byteLength);case 16:case"end":return _context6.stop();}},_callee5);}));return function getBodyLength(_x5){return _ref12.apply(this,arguments);};}();var resolveBodyLength=/*#__PURE__*/function(){var _ref13=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee6(headers,body){var length;return _regeneratorRuntime().wrap(function _callee6$(_context7){while(1)switch(_context7.prev=_context7.next){case 0:length=utils$1.toFiniteNumber(headers.getContentLength());return _context7.abrupt("return",length==null?getBodyLength(body):length);case 2:case"end":return _context7.stop();}},_callee6);}));return function resolveBodyLength(_x6,_x7){return _ref13.apply(this,arguments);};}();var fetchAdapter=isFetchSupported&&(/*#__PURE__*/function(){var _ref14=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee7(config){var _resolveConfig,url,method,data,signal,cancelToken,timeout,onDownloadProgress,onUploadProgress,responseType,headers,_resolveConfig$withCr,withCredentials,fetchOptions,composedSignal,request,unsubscribe,requestContentLength,_request,contentTypeHeader,_progressEventDecorat,_progressEventDecorat2,onProgress,flush,isCredentialsSupported,response,isStreamResponse,options,responseContentLength,_ref15,_ref16,_onProgress,_flush,responseData;return _regeneratorRuntime().wrap(function _callee7$(_context8){while(1)switch(_context8.prev=_context8.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';composedSignal=composeSignals$1([signal,cancelToken&&cancelToken.toAbortSignal()],timeout);unsubscribe=composedSignal&&composedSignal.unsubscribe&&function(){composedSignal.unsubscribe();};_context8.prev=4;_context8.t0=onUploadProgress&&supportsRequestStream&&method!=='get'&&method!=='head';if(!_context8.t0){_context8.next=11;break;}_context8.next=9;return resolveBodyLength(headers,data);case 9:_context8.t1=requestContentLength=_context8.sent;_context8.t0=_context8.t1!==0;case 11:if(!_context8.t0){_context8.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){_progressEventDecorat=progressEventDecorator(requestContentLength,progressEventReducer(asyncDecorator(onUploadProgress))),_progressEventDecorat2=_slicedToArray(_progressEventDecorat,2),onProgress=_progressEventDecorat2[0],flush=_progressEventDecorat2[1];data=trackStream(_request.body,DEFAULT_CHUNK_SIZE,onProgress,flush);}case 15:if(!utils$1.isString(withCredentials)){withCredentials=withCredentials?'include':'omit';}// Cloudflare Workers throws when credentials are defined
|
|
736
736
|
// see https://github.com/cloudflare/workerd/issues/902
|
|
737
|
-
isCredentialsSupported="credentials"in Request.prototype;request=new Request(url,_objectSpread(_objectSpread({},fetchOptions),{},{signal:composedSignal,method:method.toUpperCase(),headers:headers.normalize().toJSON(),body:data,duplex:"half",credentials:isCredentialsSupported?withCredentials:undefined}));_context8.next=20;return fetch(request);case 20:response=_context8.sent;isStreamResponse=supportsResponseStream&&(responseType==='stream'||responseType==='response');if(supportsResponseStream&&(onDownloadProgress||isStreamResponse&&unsubscribe)){options={};['status','statusText','headers'].forEach(function(prop){options[prop]=response[prop];});responseContentLength=utils$1.toFiniteNumber(response.headers.get('content-length'));
|
|
738
|
-
}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(
|
|
737
|
+
isCredentialsSupported="credentials"in Request.prototype;request=new Request(url,_objectSpread(_objectSpread({},fetchOptions),{},{signal:composedSignal,method:method.toUpperCase(),headers:headers.normalize().toJSON(),body:data,duplex:"half",credentials:isCredentialsSupported?withCredentials:undefined}));_context8.next=20;return fetch(request);case 20:response=_context8.sent;isStreamResponse=supportsResponseStream&&(responseType==='stream'||responseType==='response');if(supportsResponseStream&&(onDownloadProgress||isStreamResponse&&unsubscribe)){options={};['status','statusText','headers'].forEach(function(prop){options[prop]=response[prop];});responseContentLength=utils$1.toFiniteNumber(response.headers.get('content-length'));_ref15=onDownloadProgress&&progressEventDecorator(responseContentLength,progressEventReducer(asyncDecorator(onDownloadProgress),true))||[],_ref16=_slicedToArray(_ref15,2),_onProgress=_ref16[0],_flush=_ref16[1];response=new Response(trackStream(response.body,DEFAULT_CHUNK_SIZE,_onProgress,function(){_flush&&_flush();unsubscribe&&unsubscribe();}),options);}responseType=responseType||'text';_context8.next=26;return resolvers[utils$1.findKey(resolvers,responseType)||'text'](response,config);case 26:responseData=_context8.sent;!isStreamResponse&&unsubscribe&&unsubscribe();_context8.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 _context8.abrupt("return",_context8.sent);case 33:_context8.prev=33;_context8.t2=_context8["catch"](4);unsubscribe&&unsubscribe();if(!(_context8.t2&&_context8.t2.name==='TypeError'&&/Load failed|fetch/i.test(_context8.t2.message))){_context8.next=38;break;}throw Object.assign(new AxiosError('Network Error',AxiosError.ERR_NETWORK,config,request),{cause:_context8.t2.cause||_context8.t2});case 38:throw AxiosError.from(_context8.t2,_context8.t2&&_context8.t2.code,config,request);case 39:case"end":return _context8.stop();}},_callee7,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
|
|
738
|
+
}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};/**
|
|
739
739
|
* Throws a `CanceledError` if cancellation has been requested.
|
|
740
740
|
*
|
|
741
741
|
* @param {Object} config The config that is to be used for the request
|
|
@@ -786,7 +786,7 @@ console.warn("".concat(opt," is likely a misspelling of ").concat(correctSpellin
|
|
|
786
786
|
*/return _createClass(Axios,[{key:"request",value:(function(){var _request2=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee8(configOrUrl,config){var dummy,stack;return _regeneratorRuntime().wrap(function _callee8$(_context9){while(1)switch(_context9.prev=_context9.next){case 0:_context9.prev=0;_context9.next=3;return this._request(configOrUrl,config);case 3:return _context9.abrupt("return",_context9.sent);case 6:_context9.prev=6;_context9.t0=_context9["catch"](0);if(_context9.t0 instanceof Error){dummy={};Error.captureStackTrace?Error.captureStackTrace(dummy):dummy=new Error();// slice off the Error: ... line
|
|
787
787
|
stack=dummy.stack?dummy.stack.replace(/^.+\n/,''):'';try{if(!_context9.t0.stack){_context9.t0.stack=stack;// match without the 2 top stack lines
|
|
788
788
|
}else if(stack&&!String(_context9.t0.stack).endsWith(stack.replace(/^.+\n.+\n/,''))){_context9.t0.stack+='\n'+stack;}}catch(e){// ignore the case where "stack" is an un-writable property
|
|
789
|
-
}}throw _context9.t0;case 10:case"end":return _context9.stop();}},_callee8,this,[[0,6]]);}));function request(_x9,
|
|
789
|
+
}}throw _context9.t0;case 10:case"end":return _context9.stop();}},_callee8,this,[[0,6]]);}));function request(_x9,_x0){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
|
|
790
790
|
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.allowAbsoluteUrls
|
|
791
791
|
if(config.allowAbsoluteUrls!==undefined);else if(this.defaults.allowAbsoluteUrls!==undefined){config.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls;}else{config.allowAbsoluteUrls=true;}validator.assertOptions(config,{baseUrl:validators.spelling('baseURL'),withXsrfToken:validators.spelling('withXSRFToken')},true);// Set config.method
|
|
792
792
|
config.method=(config.method||this.defaults.method||'get').toLowerCase();// Flatten headers
|
|
@@ -837,7 +837,7 @@ return;}token.reason=new CanceledError(message,config,request);resolvePromise(to
|
|
|
837
837
|
* @param {*} payload The value to test
|
|
838
838
|
*
|
|
839
839
|
* @returns {boolean} True if the payload is an error thrown by Axios, otherwise false
|
|
840
|
-
*/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(
|
|
840
|
+
*/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;/**
|
|
841
841
|
* Create an instance of Axios
|
|
842
842
|
*
|
|
843
843
|
* @param {Object} defaultConfig The default config for the instance
|
|
@@ -865,10 +865,10 @@ var axios$1=axios;var AbstractHttpClient=/*#__PURE__*/function(){function Abstra
|
|
|
865
865
|
return _createClass(HttpRequestOptions,[{key:"setUrl",value:function setUrl(url){if(!url)throw new Error("The 'url' property is required");this.url=url;}},{key:"setMethod",value:function setMethod(method){var validMethods=['GET','POST','PUT','DELETE','PATCH','OPTIONS','HEAD'];if(!method||!validMethods.includes(method.toUpperCase())){throw new Error("The 'method' property is invalid or missing");}this.method=method.toUpperCase();}},{key:"setData",value:function setData(data){if(data===undefined||data===null){throw new Error("The 'data' property is required");}this.data=data;}// Optional fields
|
|
866
866
|
},{key:"setParams",value:function setParams(params){if(params&&_typeof(params)!=='object'){throw new Error("The 'params' property must be an object");}this.params=params;}// Optional fields
|
|
867
867
|
},{key:"setHeaders",value:function setHeaders(headers){if(headers&&_typeof(headers)!=='object'){throw new Error("The 'headers' property must be an object");}this.headers=headers;}},{key:"setTimeout",value:function setTimeout(timeout){if(timeout===undefined||timeout===null||typeof timeout!=='number'){throw new Error("The 'timeout' property must be a number");}this.timeout=timeout;}}]);}();// Default client is Axios
|
|
868
|
-
var DefaultHttpClient=/*#__PURE__*/function(_AbstractHttpClient){function DefaultHttpClient(timeout,httpsAgent){var _this2;_classCallCheck(this,DefaultHttpClient);_this2=_callSuper(this,DefaultHttpClient);if(timeout!==null&&timeout!==undefined)_this2.setTimeout(timeout);else _this2.timeout=16000;if(httpsAgent!==null&&httpsAgent!==undefined)_this2.setHttpsAgent(httpsAgent);else _this2.httpsAgent;_this2._axiosInstance=axios$1.create({});return _this2;}_inherits(DefaultHttpClient,_AbstractHttpClient);return _createClass(DefaultHttpClient,[{key:"enableHooks",value:function enableHooks(){var _this3=this;if(this.preHook&&typeof this.preHook==='function'){if(this.requestInterceptorId!==undefined){axios$1.interceptors.request.eject(this.requestInterceptorId);}this.requestInterceptorId=this._axiosInstance.interceptors.request.use(/*#__PURE__*/function(){var
|
|
868
|
+
var DefaultHttpClient=/*#__PURE__*/function(_AbstractHttpClient){function DefaultHttpClient(timeout,httpsAgent){var _this2;_classCallCheck(this,DefaultHttpClient);_this2=_callSuper(this,DefaultHttpClient);if(timeout!==null&&timeout!==undefined)_this2.setTimeout(timeout);else _this2.timeout=16000;if(httpsAgent!==null&&httpsAgent!==undefined)_this2.setHttpsAgent(httpsAgent);else _this2.httpsAgent;_this2._axiosInstance=axios$1.create({});return _this2;}_inherits(DefaultHttpClient,_AbstractHttpClient);return _createClass(DefaultHttpClient,[{key:"enableHooks",value:function enableHooks(){var _this3=this;if(this.preHook&&typeof this.preHook==='function'){if(this.requestInterceptorId!==undefined){axios$1.interceptors.request.eject(this.requestInterceptorId);}this.requestInterceptorId=this._axiosInstance.interceptors.request.use(/*#__PURE__*/function(){var _ref21=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee9(config){return _regeneratorRuntime().wrap(function _callee9$(_context0){while(1)switch(_context0.prev=_context0.next){case 0:_context0.next=2;return _this3.preHook(config);case 2:config=_context0.sent;return _context0.abrupt("return",config);case 4:case"end":return _context0.stop();}},_callee9);}));return function(_x1){return _ref21.apply(this,arguments);};}(),function(error){// Handle errors before the request is sent
|
|
869
869
|
console.error('Request Pre-Hook Error:',error.message);return Promise.reject(error);});}if(this.postHook&&typeof this.postHook==='function'){// Response interceptor (for post-hooks)
|
|
870
|
-
if(this.responseInterceptorId!==undefined){axios$1.interceptors.response.eject(this.responseInterceptorId);}this.responseInterceptorId=this._axiosInstance.interceptors.response.use(/*#__PURE__*/function(){var
|
|
871
|
-
return
|
|
870
|
+
if(this.responseInterceptorId!==undefined){axios$1.interceptors.response.eject(this.responseInterceptorId);}this.responseInterceptorId=this._axiosInstance.interceptors.response.use(/*#__PURE__*/function(){var _ref22=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee0(response){return _regeneratorRuntime().wrap(function _callee0$(_context1){while(1)switch(_context1.prev=_context1.next){case 0:_context1.next=2;return _this3.postHook(response);case 2:response=_context1.sent;return _context1.abrupt("return",response);case 4:case"end":return _context1.stop();}},_callee0);}));return function(_x10){return _ref22.apply(this,arguments);};}(),/*#__PURE__*/function(){var _ref23=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee1(error){return _regeneratorRuntime().wrap(function _callee1$(_context10){while(1)switch(_context10.prev=_context10.next){case 0:console.error('Post-Hook: Response Error',error.message);// Optionally call post-hook in case of errors
|
|
871
|
+
return _context10.abrupt("return",Promise.reject(error));case 2:case"end":return _context10.stop();}},_callee1);}));return function(_x11){return _ref23.apply(this,arguments);};}());}}},{key:"request",value:function request(httpRequestOptions){if(!(httpRequestOptions instanceof HttpRequestOptions)){throw new Error("httpRequestOptions must be instance of HttpRequestOptions ");}var config=this.toAxiosConfig(httpRequestOptions);return this._axiosInstance.request(config);}// Method to generate Axios-compatible config
|
|
872
872
|
},{key:"toAxiosConfig",value:function toAxiosConfig(httpRequestOptions){if(!httpRequestOptions.url||!httpRequestOptions.method){throw new Error("Mandatory fields 'url' and 'method' must be set before making a request");}var config={url:httpRequestOptions.url,method:httpRequestOptions.method};if(httpRequestOptions.params)config.params=httpRequestOptions.params;if(httpRequestOptions.headers)config.headers=httpRequestOptions.headers;if(httpRequestOptions.data)config.data=httpRequestOptions.data;if(this.timeout!=null&&this.timeout!=undefined)config.timeout=this.timeout;if(this.httpsAgent)config.httpsAgent=this.httpsAgent;return config;}}]);}(AbstractHttpClient);var logLevelEnum={level:{LNone:'none',LError:'error',LDebug:'debug',LTrace:'trace'}};var logFormatEnum={formats:{JSON:'json',TEXT:'text'}};var Logger=/*#__PURE__*/function(){function Logger(){_classCallCheck(this,Logger);this.log_level=logLevelEnum.level.LNone;this.log_format=logFormatEnum.formats.TEXT;this.log_to_console=true;this.log_file_path;this.log_response_body=false;this.log_request_body=false;this.setLogger();}return _createClass(Logger,[{key:"logLevelEnum",get:function get(){return logLevelEnum;}},{key:"logFormatEnum",get:function get(){return logFormatEnum;}},{key:"setLogger",value:function setLogger(){}},{key:"log",value:function log(level,statusCode,method,url,requestHeaders,responseHeaders,requestBody,responseBody){var content=this.formatLog(level,statusCode,method,url,requestHeaders,responseHeaders,requestBody,responseBody);if(typeof window!=='undefined'){var shouldLog=this.calculateLogLevel(level);if(shouldLog>0&&this.log_to_console===true){if(this.log_format===this.logFormatEnum.formats.JSON){console.log(content);}else{console.log("".concat(level.toUpperCase(),": ").concat(content));}}}else{if(this.logger.transports.length>0)this.logger.log(level,content);}}},{key:"calculateLogLevel",value:function calculateLogLevel(level){switch(this.log_level){case this.logLevelEnum.level.LError:if(level!==this.logLevelEnum.level.LError){return-1;}return 1;case this.logLevelEnum.level.LDebug:if(level===this.logLevelEnum.level.LTrace){return-1;}return 1;case this.logLevelEnum.level.LTrace:return 1;default:return-1;}}},{key:"formatLog",value:function formatLog(level,statusCode,method,url,requestHeaders,responseHeaders,requestBody,responseBody){var result;var localRequestHeaders=requestHeaders?JSON.parse(JSON.stringify(requestHeaders)):null;var localResponseHeaders=responseHeaders?JSON.parse(JSON.stringify(responseHeaders)):null;var localRequestBody=requestBody?JSON.parse(JSON.stringify(requestBody)):null;var localResponseBody=responseBody?JSON.parse(JSON.stringify(responseBody)):null;if(requestHeaders)localRequestHeaders['Authorization']='[REDACTED]';if(!this.log_request_body)localRequestBody=undefined;if(!this.log_response_body)localResponseBody=undefined;if(this.log_format&&this.log_format===logFormatEnum.formats.JSON){result={level:level,date:new Date().toISOString(),method:method,url:decodeURIComponent(url),correlationId:localResponseHeaders?localResponseHeaders['inin-correlation-id']?localResponseHeaders['inin-correlation-id']:'':'',statusCode:statusCode};if(localRequestHeaders)result.requestHeaders=localRequestHeaders;if(localResponseHeaders)result.responseHeaders=localResponseHeaders;if(localRequestBody)result.requestBody=localRequestBody;if(localResponseBody)result.responseBody=localResponseBody;}else{result="".concat(new Date().toISOString(),"\n=== REQUEST === \n").concat(this.formatValue('URL',decodeURIComponent(url))).concat(this.formatValue('Method',method)).concat(this.formatValue('Headers',this.formatHeaderString(localRequestHeaders))).concat(this.formatValue('Body',localRequestBody?JSON.stringify(localRequestBody,null,2):''),"\n=== RESPONSE ===\n").concat(this.formatValue('Status',statusCode)).concat(this.formatValue('Headers',this.formatHeaderString(localResponseHeaders))).concat(this.formatValue('CorrelationId',localResponseHeaders?localResponseHeaders['inin-correlation-id']?localResponseHeaders['inin-correlation-id']:'':'')).concat(this.formatValue('Body',localResponseBody?JSON.stringify(localResponseBody,null,2):''));}return result;}},{key:"formatHeaderString",value:function formatHeaderString(headers){var headerString='';if(!headers)return headerString;for(var _i=0,_Object$entries=Object.entries(headers);_i<_Object$entries.length;_i++){var _Object$entries$_i=_slicedToArray(_Object$entries[_i],2),key=_Object$entries$_i[0],value=_Object$entries$_i[1];headerString+="\n\t".concat(key,": ").concat(value);}return headerString;}},{key:"formatValue",value:function formatValue(key,value){if(!value||value===''||value==='{}')return'';return"".concat(key,": ").concat(value,"\n");}},{key:"getLogLevel",value:function getLogLevel(level){switch(level){case'error':return logLevelEnum.level.LError;case'debug':return logLevelEnum.level.LDebug;case'trace':return logLevelEnum.level.LTrace;default:return logLevelEnum.level.LNone;}}},{key:"getLogFormat",value:function getLogFormat(format){switch(format){case'json':return logFormatEnum.formats.JSON;default:return logFormatEnum.formats.TEXT;}}}]);}();var Configuration=/*#__PURE__*/function(){function Configuration(){_classCallCheck(this,Configuration);if(!Configuration.instance){Configuration.instance=this;}if(typeof window!=='undefined'){this.configPath='';}else{var os=require('os');var path=require('path');this.configPath=path.join(os.homedir(),'.genesyscloudjavascript','config');}this.refresh_access_token=true;this.refresh_token_wait_max=10;this.live_reload_config=true;this.host;this.environment;this.basePath;this.authUrl;this.config;this.gateway=undefined;this.logger=new Logger();this.setEnvironment();this.liveLoadConfig();}return _createClass(Configuration,[{key:"instance",get:/**
|
|
873
873
|
* Singleton getter
|
|
874
874
|
*/function get(){return Configuration.instance;}/**
|
|
@@ -892,7 +892,7 @@ if(env)this.environment=env;else this.environment=this.host?this.host:'mypureclo
|
|
|
892
892
|
this.environment=this.environment.replace(/\/+$/,'');// Strip protocol and subdomain
|
|
893
893
|
if(this.environment.startsWith('https://'))this.environment=this.environment.substring(8);if(this.environment.startsWith('http://'))this.environment=this.environment.substring(7);if(this.environment.startsWith('api.'))this.environment=this.environment.substring(4);this.basePath="https://api.".concat(this.environment);this.authUrl="https://login.".concat(this.environment);}},{key:"getConfUrl",value:function getConfUrl(pathType,regionUrl){if(!this.gateway)return regionUrl;if(!this.gateway.host)return regionUrl;var url=this.gateway.protocol+'://'+this.gateway.host;if(this.gateway.port>-1)url=url+':'+this.gateway.port.toString();if(pathType==='login'){if(this.gateway.path_params_login){if(this.gateway.path_params_login.startsWith('/'))url=url+this.gateway.path_params_login;else url=url+'/'+this.gateway.path_params_login;}}else{if(this.gateway.path_params_api){if(this.gateway.path_params_api.startsWith('/'))url=url+this.gateway.path_params_api;else url=url+'/'+this.gateway.path_params_api;}}return url;}},{key:"getConfigString",value:function getConfigString(section,key){if(this.config._sections[section])return this.config._sections[section][key];}},{key:"getConfigBoolean",value:function getConfigBoolean(section,key){if(this.config._sections[section]&&this.config._sections[section][key]!==undefined){if(typeof this.config._sections[section][key]==='string'){return this.config._sections[section][key]==='true';}else return this.config._sections[section][key];}}},{key:"getConfigInt",value:function getConfigInt(section,key){if(this.config._sections[section]&&this.config._sections[section][key]){if(typeof this.config._sections[section][key]==='string'){return parseInt(this.config._sections[section][key]);}else return this.config._sections[section][key];}}}]);}();/**
|
|
894
894
|
* @module purecloud-platform-client-v2/ApiClient
|
|
895
|
-
* @version
|
|
895
|
+
* @version 222.0.0
|
|
896
896
|
*/var ApiClient=/*#__PURE__*/function(){/**
|
|
897
897
|
* Manages low level client-server communications, parameter marshalling, etc. There should not be any need for an
|
|
898
898
|
* application to use this class directly - the *Api and model classes provide the public API for the service. The
|
|
@@ -1094,35 +1094,35 @@ _this9._handleCodeAuthorizationResponse(request,bodyParam,resolve,reject);});}/*
|
|
|
1094
1094
|
* @param {string} clientSecret - The client secret of an OAuth Code Authorization Grant client
|
|
1095
1095
|
* @param {string} authCode - Authorization code
|
|
1096
1096
|
* @param {string} redirectUri - Authorized redirect URI for your Code Authorization client
|
|
1097
|
-
*/},{key:"refreshCodeAuthorizationGrant",value:function refreshCodeAuthorizationGrant(clientId,clientSecret,refreshToken){var
|
|
1098
|
-
|
|
1097
|
+
*/},{key:"refreshCodeAuthorizationGrant",value:function refreshCodeAuthorizationGrant(clientId,clientSecret,refreshToken){var _this0=this;return new Promise(function(resolve,reject){if(typeof window!=='undefined'){reject(new Error('The Code Authorization grant is not supported in a browser.'));return;}var encodedData=Buffer.from(clientId+':'+clientSecret).toString('base64');var request=_this0._formAuthRequest(encodedData,{grant_type:'refresh_token',refresh_token:refreshToken});request.proxy=_this0.proxy;var bodyParam={grant_type:'refresh_token',refresh_token:refreshToken};// Handle response
|
|
1098
|
+
_this0._handleCodeAuthorizationResponse(request,bodyParam,resolve,reject);});}/**
|
|
1099
1099
|
* @description Handles the response for code auth requests
|
|
1100
1100
|
* @param {object} request - Authorization request object
|
|
1101
1101
|
* @param {object} bodyParam - Input body data for authorization request
|
|
1102
1102
|
* @param {function} resolve - Promise resolve callback
|
|
1103
1103
|
* @param {function} reject - Promise reject callback
|
|
1104
|
-
*/},{key:"_handleCodeAuthorizationResponse",value:function _handleCodeAuthorizationResponse(request,bodyParam,resolve,reject){var
|
|
1105
|
-
|
|
1106
|
-
var access_token=response.data.access_token;var refresh_token=response.data.refresh_token;
|
|
1107
|
-
resolve(
|
|
1108
|
-
if(error.response){
|
|
1104
|
+
*/},{key:"_handleCodeAuthorizationResponse",value:function _handleCodeAuthorizationResponse(request,bodyParam,resolve,reject){var _this1=this;var loginBasePath=this.config.getConfUrl('login',"https://login.".concat(this.config.environment));request.then(function(response){// Logging
|
|
1105
|
+
_this1.config.logger.log('trace',response.status,'POST',"".concat(loginBasePath,"/oauth/token"),request.headers,response.headers,bodyParam,undefined);_this1.config.logger.log('debug',response.status,'POST',"".concat(loginBasePath,"/oauth/token"),request.headers,undefined,bodyParam,undefined);// Get access token from response
|
|
1106
|
+
var access_token=response.data.access_token;var refresh_token=response.data.refresh_token;_this1.setAccessToken(access_token);_this1.authData.refreshToken=refresh_token;_this1.authData.tokenExpiryTime=new Date().getTime()+response.data['expires_in']*1000;_this1.authData.tokenExpiryTimeString=new Date(_this1.authData.tokenExpiryTime).toUTCString();// Return auth data
|
|
1107
|
+
resolve(_this1.authData);})["catch"](function(error){// Log error
|
|
1108
|
+
if(error.response){_this1.config.logger.log('error',error.response.status,'POST',"".concat(loginBasePath,"/oauth/token"),request.headers,error.response.headers,bodyParam,error.response.data);}reject(error);});}/**
|
|
1109
1109
|
* @description Utility function to create the request for auth requests
|
|
1110
1110
|
* @param {string} encodedData - Base64 encoded client and clientSecret pair
|
|
1111
1111
|
* @param {object} data - data to url form encode
|
|
1112
1112
|
*/},{key:"_formAuthRequest",value:function _formAuthRequest(encodedData,data){var loginBasePath=this.config.getConfUrl('login',"https://login.".concat(this.config.environment));var headers={'Authorization':'Basic '+encodedData,'Content-Type':'application/x-www-form-urlencoded'};var requestOptions=new HttpRequestOptions("".concat(loginBasePath,"/oauth/token"),"POST",headers,null,qs__default["default"].stringify(data),this.timeout);var httpClient=this.getHttpClient();return httpClient.request(requestOptions);}/**
|
|
1113
1113
|
* @description Handles an expired access token. Only available in node apps.
|
|
1114
1114
|
* @param {string} statusCode - The status code of a request
|
|
1115
|
-
*/},{key:"_handleExpiredAccessToken",value:function _handleExpiredAccessToken(){var
|
|
1116
|
-
|
|
1117
|
-
|
|
1115
|
+
*/},{key:"_handleExpiredAccessToken",value:function _handleExpiredAccessToken(){var _this10=this;return new Promise(function(resolve,reject){if(typeof window!=='undefined'){reject(new Error('This method is not supported in a browser.'));return;}if(!_this10.refreshInProgress){_this10.refreshInProgress=true;_this10.refreshCodeAuthorizationGrant(_this10.clientId,_this10.clientSecret,_this10.authData.refreshToken).then(function(){_this10.refreshInProgress=false;resolve();})["catch"](function(err){// Handle failure response
|
|
1116
|
+
_this10.refreshInProgress=false;reject(err);});}else{// Wait refresh_token_wait_max seconds for other thread to complete refresh
|
|
1117
|
+
_this10._sleep(_this10.config.refresh_token_wait_max).then(function(){if(_this10.refreshInProgress)reject(new Error("Token refresh took longer than ".concat(_this10.config.refresh_token_wait_max," seconds")));else resolve();});}});}/**
|
|
1118
1118
|
* @description Sleeps for a defined length
|
|
1119
1119
|
* @param {int} millis - Length to sleep in milliseconds
|
|
1120
1120
|
*/},{key:"_sleep",value:function _sleep(millis){return new Promise(function(resolve){return setTimeout(resolve,millis);});}/**
|
|
1121
1121
|
* @description Loads token from storage, if enabled, and checks to ensure it works.
|
|
1122
|
-
*/},{key:"_testTokenAccess",value:function _testTokenAccess(){var
|
|
1123
|
-
|
|
1124
|
-
if(!
|
|
1125
|
-
|
|
1122
|
+
*/},{key:"_testTokenAccess",value:function _testTokenAccess(){var _this11=this;return new Promise(function(resolve,reject){// Load from storage
|
|
1123
|
+
_this11._loadSettings();// Check if there is a token to test
|
|
1124
|
+
if(!_this11.authentications['PureCloud OAuth'].accessToken){reject(new Error('Token is not set'));return;}// Test token
|
|
1125
|
+
_this11.callApi('/api/v2/tokens/me','GET',null,null,null,null,null,['PureCloud OAuth'],['application/json'],['application/json']).then(function(){resolve();})["catch"](function(error){_this11._saveSettings({accessToken:undefined});reject(error);});});}/**
|
|
1126
1126
|
* @description Parses the URL hash, grabs the access token, and clears the hash. If no access token is found, no action is taken.
|
|
1127
1127
|
*/},{key:"_setValuesFromUrlHash",value:function _setValuesFromUrlHash(){// Check for window
|
|
1128
1128
|
if(!(typeof window!=='undefined'&&window.location.hash))return;// Process hash string into object
|
|
@@ -1167,7 +1167,7 @@ this.setAccessToken(this.authentications['PureCloud OAuth'].accessToken);}/**
|
|
|
1167
1167
|
* @param {String} path The path to append to the base URL.
|
|
1168
1168
|
* @param {Object} pathParams The parameter values to append.
|
|
1169
1169
|
* @returns {String} The encoded path with parameter values substituted.
|
|
1170
|
-
*/},{key:"buildUrl",value:function buildUrl(path,pathParams){var
|
|
1170
|
+
*/},{key:"buildUrl",value:function buildUrl(path,pathParams){var _this12=this;if(!path.match(/^\//)){path="/".concat(path);}var url=this.config.getConfUrl('api',this.config.basePath)+path;url=url.replace(/\{([\w-]+)\}/g,function(fullMatch,key){var value;if(pathParams.hasOwnProperty(key)){value=_this12.paramToString(pathParams[key]);}else{value=fullMatch;}return encodeURIComponent(value);});return url;}/**
|
|
1171
1171
|
* Checks whether the given content type represents JSON.<br>
|
|
1172
1172
|
* JSON content type examples:<br>
|
|
1173
1173
|
* <ul>
|
|
@@ -1208,7 +1208,7 @@ return param.map(this.paramToString);default:throw new Error("Unknown collection
|
|
|
1208
1208
|
* Applies authentication headers to the request.
|
|
1209
1209
|
* @param {Object} request The axios request config object.
|
|
1210
1210
|
* @param {Array.<String>} authNames An array of authentication method names.
|
|
1211
|
-
*/},{key:"applyAuthToRequest",value:function applyAuthToRequest(request,authNames){var
|
|
1211
|
+
*/},{key:"applyAuthToRequest",value:function applyAuthToRequest(request,authNames){var _this13=this;authNames.forEach(function(authName){var auth=_this13.authentications[authName];switch(auth.type){case'basic':if(auth.username||auth.password){request.auth={username:auth.username||'',password:auth.password||''};}break;case'apiKey':if(auth.apiKey){var data={};if(auth.apiKeyPrefix){data[auth.name]="".concat(auth.apiKeyPrefix," ").concat(auth.apiKey);}else{data[auth.name]=auth.apiKey;}if(auth['in']==='header'){request.headers=_this13.addHeaders(request.headers,data);}else{request.setParams(_this13.serialize(data));}}break;case'oauth2':if(auth.accessToken){request.headers=_this13.addHeaders(request.headers,{'Authorization':"Bearer ".concat(auth.accessToken)});}break;default:throw new Error("Unknown authentication type: ".concat(auth.type));}});}/**
|
|
1212
1212
|
* @description Sets the proxy agent axios will use for requests
|
|
1213
1213
|
* @param {any} agent - The proxy agent
|
|
1214
1214
|
*/},{key:"setProxyAgent",value:function setProxyAgent(agent){this.proxyAgent=agent;var httpClient=this.getHttpClient();httpClient.setHttpsAgent(this.proxyAgent);}/**
|
|
@@ -1225,7 +1225,7 @@ return param.map(this.paramToString);default:throw new Error("Unknown collection
|
|
|
1225
1225
|
* @param {Array.<String>} accepts An array of acceptable response MIME types.types or the
|
|
1226
1226
|
* constructor for a complex type.
|
|
1227
1227
|
* @returns {Promise} A Promise object.
|
|
1228
|
-
*/},{key:"callApi",value:function callApi(path,httpMethod,pathParams,queryParams,headerParams,formParams,bodyParam,authNames,contentTypes,accepts){var
|
|
1228
|
+
*/},{key:"callApi",value:function callApi(path,httpMethod,pathParams,queryParams,headerParams,formParams,bodyParam,authNames,contentTypes,accepts){var _this14=this;return new Promise(function(resolve,reject){sendRequest(_this14);function sendRequest(that){var url=that.buildUrl(path,pathParams);var request=new HttpRequestOptions(url,httpMethod,null,that.serialize(queryParams),null,that.timeout);// apply authentications
|
|
1229
1229
|
that.applyAuthToRequest(request,authNames);// set header parameters
|
|
1230
1230
|
var defaultHeaders=that.defaultHeaders;var normalizedHeaderParams=that.normalizeParams(headerParams);request.headers=that.addHeaders(request.headers,defaultHeaders,normalizedHeaderParams);var contentType=that.jsonPreferredMime(contentTypes);if(contentType){request.headers['Content-Type']=contentType;}else if(!request.headers['Content-Type']){request.headers['Content-Type']='application/json';}if(contentType==='application/x-www-form-urlencoded'){request.setData(that.normalizeParams(formParams));}else if(contentType=='multipart/form-data'){var _formParams=that.normalizeParams(formParams);for(var key in _formParams){if(_formParams.hasOwnProperty(key)){// Looks like axios handles files and forms the same way
|
|
1231
1231
|
var formData=new FormData();formData.set(key,_formParams[key]);request.setData(formData);}}}else if(bodyParam){request.setData(bodyParam);}var accept=that.jsonPreferredMime(accepts);if(accept){request.headers['Accept']=accept;}var httpClient=that.getHttpClient();httpClient.request(request).then(function(response){// Build response object
|
|
@@ -1235,7 +1235,7 @@ resolve(data);})["catch"](function(error){var data=error;if(error.response&&erro
|
|
|
1235
1235
|
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 AgentAssistantsApi=/*#__PURE__*/function(){/**
|
|
1236
1236
|
* AgentAssistants service.
|
|
1237
1237
|
* @module purecloud-platform-client-v2/api/AgentAssistantsApi
|
|
1238
|
-
* @version
|
|
1238
|
+
* @version 222.0.0
|
|
1239
1239
|
*//**
|
|
1240
1240
|
* Constructs a new AgentAssistantsApi.
|
|
1241
1241
|
* @alias module:purecloud-platform-client-v2/api/AgentAssistantsApi
|
|
@@ -1336,7 +1336,7 @@ if(queueId===undefined||queueId===null){throw'Missing the required parameter "qu
|
|
|
1336
1336
|
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling putAssistantQueue';}return this.apiClient.callApi('/api/v2/assistants/{assistantId}/queues/{queueId}','PUT',{'assistantId':assistantId,'queueId':queueId},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}}]);}();var AgentCopilotApi=/*#__PURE__*/function(){/**
|
|
1337
1337
|
* AgentCopilot service.
|
|
1338
1338
|
* @module purecloud-platform-client-v2/api/AgentCopilotApi
|
|
1339
|
-
* @version
|
|
1339
|
+
* @version 222.0.0
|
|
1340
1340
|
*//**
|
|
1341
1341
|
* Constructs a new AgentCopilotApi.
|
|
1342
1342
|
* @alias module:purecloud-platform-client-v2/api/AgentCopilotApi
|
|
@@ -1358,7 +1358,7 @@ if(assistantId===undefined||assistantId===null){throw'Missing the required param
|
|
|
1358
1358
|
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling putAssistantCopilot';}return this.apiClient.callApi('/api/v2/assistants/{assistantId}/copilot','PUT',{'assistantId':assistantId},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}}]);}();var AgentUIApi=/*#__PURE__*/function(){/**
|
|
1359
1359
|
* AgentUI service.
|
|
1360
1360
|
* @module purecloud-platform-client-v2/api/AgentUIApi
|
|
1361
|
-
* @version
|
|
1361
|
+
* @version 222.0.0
|
|
1362
1362
|
*//**
|
|
1363
1363
|
* Constructs a new AgentUIApi.
|
|
1364
1364
|
* @alias module:purecloud-platform-client-v2/api/AgentUIApi
|
|
@@ -1392,7 +1392,7 @@ if(agentId===undefined||agentId===null){throw'Missing the required parameter "ag
|
|
|
1392
1392
|
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling putUsersAgentuiAgentsAutoanswerAgentIdSettings';}return this.apiClient.callApi('/api/v2/users/agentui/agents/autoanswer/{agentId}/settings','PUT',{'agentId':agentId},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}}]);}();var AlertingApi=/*#__PURE__*/function(){/**
|
|
1393
1393
|
* Alerting service.
|
|
1394
1394
|
* @module purecloud-platform-client-v2/api/AlertingApi
|
|
1395
|
-
* @version
|
|
1395
|
+
* @version 222.0.0
|
|
1396
1396
|
*//**
|
|
1397
1397
|
* Constructs a new AlertingApi.
|
|
1398
1398
|
* @alias module:purecloud-platform-client-v2/api/AlertingApi
|
|
@@ -1481,7 +1481,7 @@ if(ruleId===undefined||ruleId===null){throw'Missing the required parameter "rule
|
|
|
1481
1481
|
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(){/**
|
|
1482
1482
|
* Analytics service.
|
|
1483
1483
|
* @module purecloud-platform-client-v2/api/AnalyticsApi
|
|
1484
|
-
* @version
|
|
1484
|
+
* @version 222.0.0
|
|
1485
1485
|
*//**
|
|
1486
1486
|
* Constructs a new AnalyticsApi.
|
|
1487
1487
|
* @alias module:purecloud-platform-client-v2/api/AnalyticsApi
|
|
@@ -2149,7 +2149,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
2149
2149
|
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(){/**
|
|
2150
2150
|
* Architect service.
|
|
2151
2151
|
* @module purecloud-platform-client-v2/api/ArchitectApi
|
|
2152
|
-
* @version
|
|
2152
|
+
* @version 222.0.0
|
|
2153
2153
|
*//**
|
|
2154
2154
|
* Constructs a new ArchitectApi.
|
|
2155
2155
|
* @alias module:purecloud-platform-client-v2/api/ArchitectApi
|
|
@@ -2420,7 +2420,6 @@ if(ivrId===undefined||ivrId===null){throw'Missing the required parameter "ivrId"
|
|
|
2420
2420
|
* Get an IVR IdentityResolutionConfig.
|
|
2421
2421
|
*
|
|
2422
2422
|
* @param {String} ivrId IVR id
|
|
2423
|
-
* getArchitectIvrIdentityresolution is a preview method and is subject to both breaking and non-breaking changes at any time without notice
|
|
2424
2423
|
*/},{key:"getArchitectIvrIdentityresolution",value:function getArchitectIvrIdentityresolution(ivrId){// verify the required parameter 'ivrId' is set
|
|
2425
2424
|
if(ivrId===undefined||ivrId===null){throw'Missing the required parameter "ivrId" when calling getArchitectIvrIdentityresolution';}return this.apiClient.callApi('/api/v2/architect/ivrs/{ivrId}/identityresolution','GET',{'ivrId':ivrId},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
2426
2425
|
* Get IVR configs.
|
|
@@ -2433,7 +2432,8 @@ if(ivrId===undefined||ivrId===null){throw'Missing the required parameter "ivrId"
|
|
|
2433
2432
|
* @param {String} opts.name Name of the IVR to filter by.
|
|
2434
2433
|
* @param {String} opts.dnis The phone number of the IVR to filter by.
|
|
2435
2434
|
* @param {String} opts.scheduleGroup The Schedule Group of the IVR to filter by.
|
|
2436
|
-
|
|
2435
|
+
* @param {Array.<String>} opts.expand Which fields, if any, to expand
|
|
2436
|
+
*/},{key:"getArchitectIvrs",value:function getArchitectIvrs(opts){opts=opts||{};return this.apiClient.callApi('/api/v2/architect/ivrs','GET',{},{'pageNumber':opts['pageNumber'],'pageSize':opts['pageSize'],'sortBy':opts['sortBy'],'sortOrder':opts['sortOrder'],'name':opts['name'],'dnis':opts['dnis'],'scheduleGroup':opts['scheduleGroup'],'expand':this.apiClient.buildCollectionParam(opts['expand'],'multi')},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
2437
2437
|
* Get a pageable list of basic ivr configuration information objects filterable by query parameters.
|
|
2438
2438
|
*
|
|
2439
2439
|
* @param {Object} opts Optional parameters
|
|
@@ -2715,10 +2715,11 @@ if(flowId===undefined||flowId===null){throw'Missing the required parameter "flow
|
|
|
2715
2715
|
* @param {Object} opts.secure Secure
|
|
2716
2716
|
* @param {Boolean} opts.deleted Include deleted (default to false)
|
|
2717
2717
|
* @param {Boolean} opts.includeSchemas Include variable schemas (default to false)
|
|
2718
|
+
* @param {Boolean} opts.virtualAgentEnabled Include/exclude virtual agent flows
|
|
2718
2719
|
* @param {String} opts.publishedAfter Published after
|
|
2719
2720
|
* @param {String} opts.publishedBefore Published before
|
|
2720
2721
|
* @param {Array.<String>} opts.divisionId division ID(s)
|
|
2721
|
-
*/},{key:"getFlows",value:function getFlows(opts){opts=opts||{};return this.apiClient.callApi('/api/v2/flows','GET',{},{'type':this.apiClient.buildCollectionParam(opts['type'],'multi'),'pageNumber':opts['pageNumber'],'pageSize':opts['pageSize'],'sortBy':opts['sortBy'],'sortOrder':opts['sortOrder'],'id':this.apiClient.buildCollectionParam(opts['id'],'multi'),'name':opts['name'],'description':opts['description'],'nameOrDescription':opts['nameOrDescription'],'publishVersionId':opts['publishVersionId'],'editableBy':opts['editableBy'],'lockedBy':opts['lockedBy'],'lockedByClientId':opts['lockedByClientId'],'secure':opts['secure'],'deleted':opts['deleted'],'includeSchemas':opts['includeSchemas'],'publishedAfter':opts['publishedAfter'],'publishedBefore':opts['publishedBefore'],'divisionId':this.apiClient.buildCollectionParam(opts['divisionId'],'multi')},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
2722
|
+
*/},{key:"getFlows",value:function getFlows(opts){opts=opts||{};return this.apiClient.callApi('/api/v2/flows','GET',{},{'type':this.apiClient.buildCollectionParam(opts['type'],'multi'),'pageNumber':opts['pageNumber'],'pageSize':opts['pageSize'],'sortBy':opts['sortBy'],'sortOrder':opts['sortOrder'],'id':this.apiClient.buildCollectionParam(opts['id'],'multi'),'name':opts['name'],'description':opts['description'],'nameOrDescription':opts['nameOrDescription'],'publishVersionId':opts['publishVersionId'],'editableBy':opts['editableBy'],'lockedBy':opts['lockedBy'],'lockedByClientId':opts['lockedByClientId'],'secure':opts['secure'],'deleted':opts['deleted'],'includeSchemas':opts['includeSchemas'],'virtualAgentEnabled':opts['virtualAgentEnabled'],'publishedAfter':opts['publishedAfter'],'publishedBefore':opts['publishedBefore'],'divisionId':this.apiClient.buildCollectionParam(opts['divisionId'],'multi')},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
2722
2723
|
* Returns a specific datatable by id
|
|
2723
2724
|
* Given a datatableId returns the datatable object and schema associated with it.
|
|
2724
2725
|
* @param {String} datatableId id of datatable
|
|
@@ -3181,7 +3182,6 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
3181
3182
|
*
|
|
3182
3183
|
* @param {String} ivrId IVR id
|
|
3183
3184
|
* @param {Object} body
|
|
3184
|
-
* putArchitectIvrIdentityresolution is a preview method and is subject to both breaking and non-breaking changes at any time without notice
|
|
3185
3185
|
*/},{key:"putArchitectIvrIdentityresolution",value:function putArchitectIvrIdentityresolution(ivrId,body){// verify the required parameter 'ivrId' is set
|
|
3186
3186
|
if(ivrId===undefined||ivrId===null){throw'Missing the required parameter "ivrId" when calling putArchitectIvrIdentityresolution';}// verify the required parameter 'body' is set
|
|
3187
3187
|
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling putArchitectIvrIdentityresolution';}return this.apiClient.callApi('/api/v2/architect/ivrs/{ivrId}/identityresolution','PUT',{'ivrId':ivrId},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
@@ -3281,7 +3281,7 @@ if(milestoneId===undefined||milestoneId===null){throw'Missing the required param
|
|
|
3281
3281
|
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(){/**
|
|
3282
3282
|
* Audit service.
|
|
3283
3283
|
* @module purecloud-platform-client-v2/api/AuditApi
|
|
3284
|
-
* @version
|
|
3284
|
+
* @version 222.0.0
|
|
3285
3285
|
*//**
|
|
3286
3286
|
* Constructs a new AuditApi.
|
|
3287
3287
|
* @alias module:purecloud-platform-client-v2/api/AuditApi
|
|
@@ -3331,7 +3331,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
3331
3331
|
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(){/**
|
|
3332
3332
|
* Authorization service.
|
|
3333
3333
|
* @module purecloud-platform-client-v2/api/AuthorizationApi
|
|
3334
|
-
* @version
|
|
3334
|
+
* @version 222.0.0
|
|
3335
3335
|
*//**
|
|
3336
3336
|
* Constructs a new AuthorizationApi.
|
|
3337
3337
|
* @alias module:purecloud-platform-client-v2/api/AuthorizationApi
|
|
@@ -3766,7 +3766,7 @@ if(subjectId===undefined||subjectId===null){throw'Missing the required parameter
|
|
|
3766
3766
|
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(){/**
|
|
3767
3767
|
* Billing service.
|
|
3768
3768
|
* @module purecloud-platform-client-v2/api/BillingApi
|
|
3769
|
-
* @version
|
|
3769
|
+
* @version 222.0.0
|
|
3770
3770
|
*//**
|
|
3771
3771
|
* Constructs a new BillingApi.
|
|
3772
3772
|
* @alias module:purecloud-platform-client-v2/api/BillingApi
|
|
@@ -3774,11 +3774,64 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
3774
3774
|
* @param {module:purecloud-platform-client-v2/ApiClient} apiClient Optional API client implementation to use,
|
|
3775
3775
|
* default to {@link module:purecloud-platform-client-v2/ApiClient#instance} if unspecified.
|
|
3776
3776
|
*/function BillingApi(apiClient){_classCallCheck(this,BillingApi);this.apiClient=apiClient||ApiClient.instance;}/**
|
|
3777
|
+
* Get billing contract
|
|
3778
|
+
* Retrieve a single contract from the system.
|
|
3779
|
+
* @param {String} contractId The contract number.
|
|
3780
|
+
* getBillingContract is a preview method and is subject to both breaking and non-breaking changes at any time without notice
|
|
3781
|
+
*/return _createClass(BillingApi,[{key:"getBillingContract",value:function getBillingContract(contractId){// verify the required parameter 'contractId' is set
|
|
3782
|
+
if(contractId===undefined||contractId===null){throw'Missing the required parameter "contractId" when calling getBillingContract';}return this.apiClient.callApi('/api/v2/billing/contracts/{contractId}','GET',{'contractId':contractId},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
3783
|
+
* Get contract billing period
|
|
3784
|
+
* Fetch the billing information for a given Organization by billing period.
|
|
3785
|
+
* @param {String} contractId The contract number.
|
|
3786
|
+
* @param {String} billingPeriodId The Billing Period Id for the Org.
|
|
3787
|
+
* getBillingContractBillingperiod is a preview method and is subject to both breaking and non-breaking changes at any time without notice
|
|
3788
|
+
*/},{key:"getBillingContractBillingperiod",value:function getBillingContractBillingperiod(contractId,billingPeriodId){// verify the required parameter 'contractId' is set
|
|
3789
|
+
if(contractId===undefined||contractId===null){throw'Missing the required parameter "contractId" when calling getBillingContractBillingperiod';}// verify the required parameter 'billingPeriodId' is set
|
|
3790
|
+
if(billingPeriodId===undefined||billingPeriodId===null){throw'Missing the required parameter "billingPeriodId" when calling getBillingContractBillingperiod';}return this.apiClient.callApi('/api/v2/billing/contracts/{contractId}/billingperiods/{billingPeriodId}','GET',{'contractId':contractId,'billingPeriodId':billingPeriodId},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
3791
|
+
* Get billing contracts
|
|
3792
|
+
* Retrieve a list of contracts stored in the system.
|
|
3793
|
+
* @param {Object} opts Optional parameters
|
|
3794
|
+
* @param {String} opts.before The cursor that points to the start of the set of entities that has been returned.
|
|
3795
|
+
* @param {String} opts.after The cursor that points to the end of the set of entities that has been returned.
|
|
3796
|
+
* @param {String} opts.pageSize Number of entities to return. Maximum of 200.
|
|
3797
|
+
* @param {String} opts.dateStart Start date for the query. Dates are represented as an ISO-8601 string. For example: yyyy-MM-dd
|
|
3798
|
+
* @param {String} opts.dateEnd End date for the query. Dates are represented as an ISO-8601 string. For example: yyyy-MM-dd
|
|
3799
|
+
* @param {Object} opts.status Filter by the status of contracts
|
|
3800
|
+
* @param {String} opts.externalNumber Filter by the unique external number.
|
|
3801
|
+
* getBillingContracts is a preview method and is subject to both breaking and non-breaking changes at any time without notice
|
|
3802
|
+
*/},{key:"getBillingContracts",value:function getBillingContracts(opts){opts=opts||{};return this.apiClient.callApi('/api/v2/billing/contracts','GET',{},{'before':opts['before'],'after':opts['after'],'pageSize':opts['pageSize'],'dateStart':opts['dateStart'],'dateEnd':opts['dateEnd'],'status':opts['status'],'externalNumber':opts['externalNumber']},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
3803
|
+
* Get invoice document
|
|
3804
|
+
* Fetch the document for a specific invoice.
|
|
3805
|
+
* @param {String} invoiceId invoiceId
|
|
3806
|
+
* getBillingContractsInvoiceDocument is a preview method and is subject to both breaking and non-breaking changes at any time without notice
|
|
3807
|
+
*/},{key:"getBillingContractsInvoiceDocument",value:function getBillingContractsInvoiceDocument(invoiceId){// verify the required parameter 'invoiceId' is set
|
|
3808
|
+
if(invoiceId===undefined||invoiceId===null){throw'Missing the required parameter "invoiceId" when calling getBillingContractsInvoiceDocument';}return this.apiClient.callApi('/api/v2/billing/contracts/invoices/{invoiceId}/document','GET',{'invoiceId':invoiceId},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
3809
|
+
* Get invoice lines
|
|
3810
|
+
* Fetch a list of all bills for the specified account.
|
|
3811
|
+
* @param {String} invoiceId invoiceId
|
|
3812
|
+
* @param {Object} opts Optional parameters
|
|
3813
|
+
* @param {String} opts.before The cursor that points to the start of the set of entities that has been returned.
|
|
3814
|
+
* @param {String} opts.after The cursor that points to the end of the set of entities that has been returned.
|
|
3815
|
+
* @param {String} opts.pageSize Number of entities to return. Maximum of 200.
|
|
3816
|
+
* getBillingContractsInvoiceLines is a preview method and is subject to both breaking and non-breaking changes at any time without notice
|
|
3817
|
+
*/},{key:"getBillingContractsInvoiceLines",value:function getBillingContractsInvoiceLines(invoiceId,opts){opts=opts||{};// verify the required parameter 'invoiceId' is set
|
|
3818
|
+
if(invoiceId===undefined||invoiceId===null){throw'Missing the required parameter "invoiceId" when calling getBillingContractsInvoiceLines';}return this.apiClient.callApi('/api/v2/billing/contracts/invoices/{invoiceId}/lines','GET',{'invoiceId':invoiceId},{'before':opts['before'],'after':opts['after'],'pageSize':opts['pageSize']},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
3819
|
+
* Get invoices
|
|
3820
|
+
* Retrieve a list of invoices stored in the system.
|
|
3821
|
+
* @param {Object} opts Optional parameters
|
|
3822
|
+
* @param {String} opts.before The cursor that points to the start of the set of entities that has been returned.
|
|
3823
|
+
* @param {String} opts.after The cursor that points to the end of the set of entities that has been returned.
|
|
3824
|
+
* @param {String} opts.pageSize Number of entities to return. Maximum of 200.
|
|
3825
|
+
* @param {String} opts.dateStart Start date for the query. Dates are represented as an ISO-8601 string. For example: yyyy-MM-dd
|
|
3826
|
+
* @param {String} opts.dateEnd End date for the query. Dates are represented as an ISO-8601 string. For example: yyyy-MM-dd
|
|
3827
|
+
* @param {Object} opts.paymentStatus Payment Status
|
|
3828
|
+
* getBillingContractsInvoices is a preview method and is subject to both breaking and non-breaking changes at any time without notice
|
|
3829
|
+
*/},{key:"getBillingContractsInvoices",value:function getBillingContractsInvoices(opts){opts=opts||{};return this.apiClient.callApi('/api/v2/billing/contracts/invoices','GET',{},{'before':opts['before'],'after':opts['after'],'pageSize':opts['pageSize'],'dateStart':opts['dateStart'],'dateEnd':opts['dateEnd'],'paymentStatus':opts['paymentStatus']},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
3777
3830
|
* Get a report of the billable license usages
|
|
3778
3831
|
* Report is of the billable usages (e.g. licenses and devices utilized) for a given period. If responses status is InProgress, wait a few seconds, then try the same request again.
|
|
3779
3832
|
* @param {Date} startDate The period start date. Date time is represented as an ISO-8601 string. For example: yyyy-MM-ddTHH:mm:ss[.mmm]Z
|
|
3780
3833
|
* @param {Date} endDate The period end date. Date time is represented as an ISO-8601 string. For example: yyyy-MM-ddTHH:mm:ss[.mmm]Z
|
|
3781
|
-
*/
|
|
3834
|
+
*/},{key:"getBillingReportsBillableusage",value:function getBillingReportsBillableusage(startDate,endDate){// verify the required parameter 'startDate' is set
|
|
3782
3835
|
if(startDate===undefined||startDate===null){throw'Missing the required parameter "startDate" when calling getBillingReportsBillableusage';}// verify the required parameter 'endDate' is set
|
|
3783
3836
|
if(endDate===undefined||endDate===null){throw'Missing the required parameter "endDate" when calling getBillingReportsBillableusage';}return this.apiClient.callApi('/api/v2/billing/reports/billableusage','GET',{},{'startDate':startDate,'endDate':endDate},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
3784
3837
|
* Get the billing overview for an organization that is managed by a partner.
|
|
@@ -3787,10 +3840,258 @@ if(endDate===undefined||endDate===null){throw'Missing the required parameter "en
|
|
|
3787
3840
|
* @param {Object} opts Optional parameters
|
|
3788
3841
|
* @param {Number} opts.billingPeriodIndex 0 for active period (overview data may change until period closes). 1 for prior completed billing period. 2 for two billing cycles prior, and so on. (default to 0)
|
|
3789
3842
|
*/},{key:"getBillingTrusteebillingoverviewTrustorOrgId",value:function getBillingTrusteebillingoverviewTrustorOrgId(trustorOrgId,opts){opts=opts||{};// verify the required parameter 'trustorOrgId' is set
|
|
3790
|
-
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
|
|
3843
|
+
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 BusinessRulesApi=/*#__PURE__*/function(){/**
|
|
3844
|
+
* BusinessRules service.
|
|
3845
|
+
* @module purecloud-platform-client-v2/api/BusinessRulesApi
|
|
3846
|
+
* @version 222.0.0
|
|
3847
|
+
*//**
|
|
3848
|
+
* Constructs a new BusinessRulesApi.
|
|
3849
|
+
* @alias module:purecloud-platform-client-v2/api/BusinessRulesApi
|
|
3850
|
+
* @class
|
|
3851
|
+
* @param {module:purecloud-platform-client-v2/ApiClient} apiClient Optional API client implementation to use,
|
|
3852
|
+
* default to {@link module:purecloud-platform-client-v2/ApiClient#instance} if unspecified.
|
|
3853
|
+
*/function BusinessRulesApi(apiClient){_classCallCheck(this,BusinessRulesApi);this.apiClient=apiClient||ApiClient.instance;}/**
|
|
3854
|
+
* Delete a decision table
|
|
3855
|
+
*
|
|
3856
|
+
* @param {String} tableId Table ID
|
|
3857
|
+
* @param {Object} opts Optional parameters
|
|
3858
|
+
* @param {Boolean} opts.forceDelete Force delete decision table (under certain conditions) (default to false)
|
|
3859
|
+
* deleteBusinessrulesDecisiontable is a preview method and is subject to both breaking and non-breaking changes at any time without notice
|
|
3860
|
+
*/return _createClass(BusinessRulesApi,[{key:"deleteBusinessrulesDecisiontable",value:function deleteBusinessrulesDecisiontable(tableId,opts){opts=opts||{};// verify the required parameter 'tableId' is set
|
|
3861
|
+
if(tableId===undefined||tableId===null){throw'Missing the required parameter "tableId" when calling deleteBusinessrulesDecisiontable';}return this.apiClient.callApi('/api/v2/businessrules/decisiontables/{tableId}','DELETE',{'tableId':tableId},{'forceDelete':opts['forceDelete']},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
3862
|
+
* Delete a decision table version
|
|
3863
|
+
*
|
|
3864
|
+
* @param {String} tableId Table ID
|
|
3865
|
+
* @param {Number} tableVersion Table Version
|
|
3866
|
+
* deleteBusinessrulesDecisiontableVersion is a preview method and is subject to both breaking and non-breaking changes at any time without notice
|
|
3867
|
+
*/},{key:"deleteBusinessrulesDecisiontableVersion",value:function deleteBusinessrulesDecisiontableVersion(tableId,tableVersion){// verify the required parameter 'tableId' is set
|
|
3868
|
+
if(tableId===undefined||tableId===null){throw'Missing the required parameter "tableId" when calling deleteBusinessrulesDecisiontableVersion';}// verify the required parameter 'tableVersion' is set
|
|
3869
|
+
if(tableVersion===undefined||tableVersion===null){throw'Missing the required parameter "tableVersion" when calling deleteBusinessrulesDecisiontableVersion';}return this.apiClient.callApi('/api/v2/businessrules/decisiontables/{tableId}/versions/{tableVersion}','DELETE',{'tableId':tableId,'tableVersion':tableVersion},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
3870
|
+
* Delete a decision table row
|
|
3871
|
+
*
|
|
3872
|
+
* @param {String} tableId Table ID
|
|
3873
|
+
* @param {Number} tableVersion Table Version
|
|
3874
|
+
* @param {String} rowId Row ID
|
|
3875
|
+
* deleteBusinessrulesDecisiontableVersionRow is a preview method and is subject to both breaking and non-breaking changes at any time without notice
|
|
3876
|
+
*/},{key:"deleteBusinessrulesDecisiontableVersionRow",value:function deleteBusinessrulesDecisiontableVersionRow(tableId,tableVersion,rowId){// verify the required parameter 'tableId' is set
|
|
3877
|
+
if(tableId===undefined||tableId===null){throw'Missing the required parameter "tableId" when calling deleteBusinessrulesDecisiontableVersionRow';}// verify the required parameter 'tableVersion' is set
|
|
3878
|
+
if(tableVersion===undefined||tableVersion===null){throw'Missing the required parameter "tableVersion" when calling deleteBusinessrulesDecisiontableVersionRow';}// verify the required parameter 'rowId' is set
|
|
3879
|
+
if(rowId===undefined||rowId===null){throw'Missing the required parameter "rowId" when calling deleteBusinessrulesDecisiontableVersionRow';}return this.apiClient.callApi('/api/v2/businessrules/decisiontables/{tableId}/versions/{tableVersion}/rows/{rowId}','DELETE',{'tableId':tableId,'tableVersion':tableVersion,'rowId':rowId},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
3880
|
+
* Delete a schema
|
|
3881
|
+
*
|
|
3882
|
+
* @param {String} schemaId Schema ID
|
|
3883
|
+
* deleteBusinessrulesSchema is a preview method and is subject to both breaking and non-breaking changes at any time without notice
|
|
3884
|
+
*/},{key:"deleteBusinessrulesSchema",value:function deleteBusinessrulesSchema(schemaId){// verify the required parameter 'schemaId' is set
|
|
3885
|
+
if(schemaId===undefined||schemaId===null){throw'Missing the required parameter "schemaId" when calling deleteBusinessrulesSchema';}return this.apiClient.callApi('/api/v2/businessrules/schemas/{schemaId}','DELETE',{'schemaId':schemaId},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
3886
|
+
* Get a decision table
|
|
3887
|
+
*
|
|
3888
|
+
* @param {String} tableId Table ID
|
|
3889
|
+
* getBusinessrulesDecisiontable is a preview method and is subject to both breaking and non-breaking changes at any time without notice
|
|
3890
|
+
*/},{key:"getBusinessrulesDecisiontable",value:function getBusinessrulesDecisiontable(tableId){// verify the required parameter 'tableId' is set
|
|
3891
|
+
if(tableId===undefined||tableId===null){throw'Missing the required parameter "tableId" when calling getBusinessrulesDecisiontable';}return this.apiClient.callApi('/api/v2/businessrules/decisiontables/{tableId}','GET',{'tableId':tableId},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
3892
|
+
* Get a decision table version
|
|
3893
|
+
*
|
|
3894
|
+
* @param {String} tableId Table ID
|
|
3895
|
+
* @param {Number} tableVersion Table Version
|
|
3896
|
+
* getBusinessrulesDecisiontableVersion is a preview method and is subject to both breaking and non-breaking changes at any time without notice
|
|
3897
|
+
*/},{key:"getBusinessrulesDecisiontableVersion",value:function getBusinessrulesDecisiontableVersion(tableId,tableVersion){// verify the required parameter 'tableId' is set
|
|
3898
|
+
if(tableId===undefined||tableId===null){throw'Missing the required parameter "tableId" when calling getBusinessrulesDecisiontableVersion';}// verify the required parameter 'tableVersion' is set
|
|
3899
|
+
if(tableVersion===undefined||tableVersion===null){throw'Missing the required parameter "tableVersion" when calling getBusinessrulesDecisiontableVersion';}return this.apiClient.callApi('/api/v2/businessrules/decisiontables/{tableId}/versions/{tableVersion}','GET',{'tableId':tableId,'tableVersion':tableVersion},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
3900
|
+
* Get a decision table row
|
|
3901
|
+
*
|
|
3902
|
+
* @param {String} tableId Table ID
|
|
3903
|
+
* @param {Number} tableVersion Table Version
|
|
3904
|
+
* @param {String} rowId Row ID
|
|
3905
|
+
* getBusinessrulesDecisiontableVersionRow is a preview method and is subject to both breaking and non-breaking changes at any time without notice
|
|
3906
|
+
*/},{key:"getBusinessrulesDecisiontableVersionRow",value:function getBusinessrulesDecisiontableVersionRow(tableId,tableVersion,rowId){// verify the required parameter 'tableId' is set
|
|
3907
|
+
if(tableId===undefined||tableId===null){throw'Missing the required parameter "tableId" when calling getBusinessrulesDecisiontableVersionRow';}// verify the required parameter 'tableVersion' is set
|
|
3908
|
+
if(tableVersion===undefined||tableVersion===null){throw'Missing the required parameter "tableVersion" when calling getBusinessrulesDecisiontableVersionRow';}// verify the required parameter 'rowId' is set
|
|
3909
|
+
if(rowId===undefined||rowId===null){throw'Missing the required parameter "rowId" when calling getBusinessrulesDecisiontableVersionRow';}return this.apiClient.callApi('/api/v2/businessrules/decisiontables/{tableId}/versions/{tableVersion}/rows/{rowId}','GET',{'tableId':tableId,'tableVersion':tableVersion,'rowId':rowId},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
3910
|
+
* Get a list of decision table rows.
|
|
3911
|
+
*
|
|
3912
|
+
* @param {String} tableId Table ID
|
|
3913
|
+
* @param {Number} tableVersion Table Version
|
|
3914
|
+
* @param {Object} opts Optional parameters
|
|
3915
|
+
* @param {String} opts.pageNumber Page number of the entities to return. Defaults to 1.
|
|
3916
|
+
* @param {String} opts.pageSize Number of entities to return. Maximum of 100. Defaults to 25.
|
|
3917
|
+
* getBusinessrulesDecisiontableVersionRows is a preview method and is subject to both breaking and non-breaking changes at any time without notice
|
|
3918
|
+
*/},{key:"getBusinessrulesDecisiontableVersionRows",value:function getBusinessrulesDecisiontableVersionRows(tableId,tableVersion,opts){opts=opts||{};// verify the required parameter 'tableId' is set
|
|
3919
|
+
if(tableId===undefined||tableId===null){throw'Missing the required parameter "tableId" when calling getBusinessrulesDecisiontableVersionRows';}// verify the required parameter 'tableVersion' is set
|
|
3920
|
+
if(tableVersion===undefined||tableVersion===null){throw'Missing the required parameter "tableVersion" when calling getBusinessrulesDecisiontableVersionRows';}return this.apiClient.callApi('/api/v2/businessrules/decisiontables/{tableId}/versions/{tableVersion}/rows','GET',{'tableId':tableId,'tableVersion':tableVersion},{'pageNumber':opts['pageNumber'],'pageSize':opts['pageSize']},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
3921
|
+
* Get a list of decision table versions
|
|
3922
|
+
*
|
|
3923
|
+
* @param {String} tableId Table ID
|
|
3924
|
+
* @param {Object} opts Optional parameters
|
|
3925
|
+
* @param {String} opts.after The cursor that points to the end of the set of entities that has been returned.
|
|
3926
|
+
* @param {String} opts.pageSize Number of entities to return. Maximum of 200.
|
|
3927
|
+
* @param {Array.<String>} opts.divisionIds One or more comma separated divisions to filters decision tables by. If nothing is provided, the decision tables associated with the list of divisions that the user has access to will be returned.
|
|
3928
|
+
* getBusinessrulesDecisiontableVersions is a preview method and is subject to both breaking and non-breaking changes at any time without notice
|
|
3929
|
+
*/},{key:"getBusinessrulesDecisiontableVersions",value:function getBusinessrulesDecisiontableVersions(tableId,opts){opts=opts||{};// verify the required parameter 'tableId' is set
|
|
3930
|
+
if(tableId===undefined||tableId===null){throw'Missing the required parameter "tableId" when calling getBusinessrulesDecisiontableVersions';}return this.apiClient.callApi('/api/v2/businessrules/decisiontables/{tableId}/versions','GET',{'tableId':tableId},{'after':opts['after'],'pageSize':opts['pageSize'],'divisionIds':this.apiClient.buildCollectionParam(opts['divisionIds'],'multi')},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
3931
|
+
* Get a list of decision tables.
|
|
3932
|
+
*
|
|
3933
|
+
* @param {Object} opts Optional parameters
|
|
3934
|
+
* @param {String} opts.after The cursor that points to the end of the set of entities that has been returned.
|
|
3935
|
+
* @param {String} opts.pageSize Number of entities to return. Maximum of 200.
|
|
3936
|
+
* @param {Array.<String>} opts.divisionIds One or more comma separated divisions to filters decision tables by. If nothing is provided, the decision tables associated with the list of divisions that the user has access to will be returned.
|
|
3937
|
+
* getBusinessrulesDecisiontables is a preview method and is subject to both breaking and non-breaking changes at any time without notice
|
|
3938
|
+
*/},{key:"getBusinessrulesDecisiontables",value:function getBusinessrulesDecisiontables(opts){opts=opts||{};return this.apiClient.callApi('/api/v2/businessrules/decisiontables','GET',{},{'after':opts['after'],'pageSize':opts['pageSize'],'divisionIds':this.apiClient.buildCollectionParam(opts['divisionIds'],'multi')},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
3939
|
+
* Search for decision tables.
|
|
3940
|
+
*
|
|
3941
|
+
* @param {Object} opts Optional parameters
|
|
3942
|
+
* @param {String} opts.before The cursor that points to the start of the set of entities that has been returned.
|
|
3943
|
+
* @param {String} opts.after The cursor that points to the end of the set of entities that has been returned.
|
|
3944
|
+
* @param {String} opts.pageSize Number of entities to return. Maximum of 200.
|
|
3945
|
+
* @param {String} opts.schemaId Search for decision tables that use the schema with this ID. Cannot be combined with name search. Search results will not be paginated if used.
|
|
3946
|
+
* @param {String} opts.name Search for decision tables with a name that contains the given search string. Search is case insensitive and will match any table that contains this string in any part of the name. Cannot be combined with schema search. Search results will not be paginated if used.
|
|
3947
|
+
* getBusinessrulesDecisiontablesSearch is a preview method and is subject to both breaking and non-breaking changes at any time without notice
|
|
3948
|
+
*/},{key:"getBusinessrulesDecisiontablesSearch",value:function getBusinessrulesDecisiontablesSearch(opts){opts=opts||{};return this.apiClient.callApi('/api/v2/businessrules/decisiontables/search','GET',{},{'before':opts['before'],'after':opts['after'],'pageSize':opts['pageSize'],'schemaId':opts['schemaId'],'name':opts['name']},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
3949
|
+
* Get a schema
|
|
3950
|
+
*
|
|
3951
|
+
* @param {String} schemaId Schema ID
|
|
3952
|
+
* getBusinessrulesSchema is a preview method and is subject to both breaking and non-breaking changes at any time without notice
|
|
3953
|
+
*/},{key:"getBusinessrulesSchema",value:function getBusinessrulesSchema(schemaId){// verify the required parameter 'schemaId' is set
|
|
3954
|
+
if(schemaId===undefined||schemaId===null){throw'Missing the required parameter "schemaId" when calling getBusinessrulesSchema';}return this.apiClient.callApi('/api/v2/businessrules/schemas/{schemaId}','GET',{'schemaId':schemaId},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
3955
|
+
* Get a list of schemas.
|
|
3956
|
+
*
|
|
3957
|
+
* getBusinessrulesSchemas is a preview method and is subject to both breaking and non-breaking changes at any time without notice
|
|
3958
|
+
*/},{key:"getBusinessrulesSchemas",value:function getBusinessrulesSchemas(){return this.apiClient.callApi('/api/v2/businessrules/schemas','GET',{},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
3959
|
+
* Get a specific named core type.
|
|
3960
|
+
*
|
|
3961
|
+
* @param {String} coreTypeName The core type's name
|
|
3962
|
+
* getBusinessrulesSchemasCoretype is a preview method and is subject to both breaking and non-breaking changes at any time without notice
|
|
3963
|
+
*/},{key:"getBusinessrulesSchemasCoretype",value:function getBusinessrulesSchemasCoretype(coreTypeName){// verify the required parameter 'coreTypeName' is set
|
|
3964
|
+
if(coreTypeName===undefined||coreTypeName===null){throw'Missing the required parameter "coreTypeName" when calling getBusinessrulesSchemasCoretype';}return this.apiClient.callApi('/api/v2/businessrules/schemas/coretypes/{coreTypeName}','GET',{'coreTypeName':coreTypeName},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
3965
|
+
* Get the core types from which all schemas are built.
|
|
3966
|
+
*
|
|
3967
|
+
* getBusinessrulesSchemasCoretypes is a preview method and is subject to both breaking and non-breaking changes at any time without notice
|
|
3968
|
+
*/},{key:"getBusinessrulesSchemasCoretypes",value:function getBusinessrulesSchemasCoretypes(){return this.apiClient.callApi('/api/v2/businessrules/schemas/coretypes','GET',{},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
3969
|
+
* Update a decision table
|
|
3970
|
+
*
|
|
3971
|
+
* @param {String} tableId Table ID
|
|
3972
|
+
* @param {Object} body Decision Table
|
|
3973
|
+
* patchBusinessrulesDecisiontable is a preview method and is subject to both breaking and non-breaking changes at any time without notice
|
|
3974
|
+
*/},{key:"patchBusinessrulesDecisiontable",value:function patchBusinessrulesDecisiontable(tableId,body){// verify the required parameter 'tableId' is set
|
|
3975
|
+
if(tableId===undefined||tableId===null){throw'Missing the required parameter "tableId" when calling patchBusinessrulesDecisiontable';}// verify the required parameter 'body' is set
|
|
3976
|
+
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling patchBusinessrulesDecisiontable';}return this.apiClient.callApi('/api/v2/businessrules/decisiontables/{tableId}','PATCH',{'tableId':tableId},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
3977
|
+
* Update a decision table version
|
|
3978
|
+
*
|
|
3979
|
+
* @param {String} tableId Table ID
|
|
3980
|
+
* @param {Number} tableVersion Table Version
|
|
3981
|
+
* @param {Object} body Decision Table
|
|
3982
|
+
* patchBusinessrulesDecisiontableVersion is a preview method and is subject to both breaking and non-breaking changes at any time without notice
|
|
3983
|
+
*/},{key:"patchBusinessrulesDecisiontableVersion",value:function patchBusinessrulesDecisiontableVersion(tableId,tableVersion,body){// verify the required parameter 'tableId' is set
|
|
3984
|
+
if(tableId===undefined||tableId===null){throw'Missing the required parameter "tableId" when calling patchBusinessrulesDecisiontableVersion';}// verify the required parameter 'tableVersion' is set
|
|
3985
|
+
if(tableVersion===undefined||tableVersion===null){throw'Missing the required parameter "tableVersion" when calling patchBusinessrulesDecisiontableVersion';}// verify the required parameter 'body' is set
|
|
3986
|
+
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling patchBusinessrulesDecisiontableVersion';}return this.apiClient.callApi('/api/v2/businessrules/decisiontables/{tableId}/versions/{tableVersion}','PATCH',{'tableId':tableId,'tableVersion':tableVersion},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
3987
|
+
* Update a decision table row
|
|
3988
|
+
*
|
|
3989
|
+
* @param {String} tableId Table ID
|
|
3990
|
+
* @param {Number} tableVersion Table Version
|
|
3991
|
+
* @param {String} rowId Row ID
|
|
3992
|
+
* @param {Object} body Update decision table row request
|
|
3993
|
+
* patchBusinessrulesDecisiontableVersionRow is a preview method and is subject to both breaking and non-breaking changes at any time without notice
|
|
3994
|
+
*/},{key:"patchBusinessrulesDecisiontableVersionRow",value:function patchBusinessrulesDecisiontableVersionRow(tableId,tableVersion,rowId,body){// verify the required parameter 'tableId' is set
|
|
3995
|
+
if(tableId===undefined||tableId===null){throw'Missing the required parameter "tableId" when calling patchBusinessrulesDecisiontableVersionRow';}// verify the required parameter 'tableVersion' is set
|
|
3996
|
+
if(tableVersion===undefined||tableVersion===null){throw'Missing the required parameter "tableVersion" when calling patchBusinessrulesDecisiontableVersionRow';}// verify the required parameter 'rowId' is set
|
|
3997
|
+
if(rowId===undefined||rowId===null){throw'Missing the required parameter "rowId" when calling patchBusinessrulesDecisiontableVersionRow';}// verify the required parameter 'body' is set
|
|
3998
|
+
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling patchBusinessrulesDecisiontableVersionRow';}return this.apiClient.callApi('/api/v2/businessrules/decisiontables/{tableId}/versions/{tableVersion}/rows/{rowId}','PATCH',{'tableId':tableId,'tableVersion':tableVersion,'rowId':rowId},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
3999
|
+
* Execute a published decision table
|
|
4000
|
+
*
|
|
4001
|
+
* @param {String} tableId Table ID
|
|
4002
|
+
* @param {Object} body Decision Table
|
|
4003
|
+
* postBusinessrulesDecisiontableExecute is a preview method and is subject to both breaking and non-breaking changes at any time without notice
|
|
4004
|
+
*/},{key:"postBusinessrulesDecisiontableExecute",value:function postBusinessrulesDecisiontableExecute(tableId,body){// verify the required parameter 'tableId' is set
|
|
4005
|
+
if(tableId===undefined||tableId===null){throw'Missing the required parameter "tableId" when calling postBusinessrulesDecisiontableExecute';}// verify the required parameter 'body' is set
|
|
4006
|
+
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling postBusinessrulesDecisiontableExecute';}return this.apiClient.callApi('/api/v2/businessrules/decisiontables/{tableId}/execute','POST',{'tableId':tableId},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
4007
|
+
* Copy a decision table version
|
|
4008
|
+
*
|
|
4009
|
+
* @param {String} tableId Table ID
|
|
4010
|
+
* @param {Number} tableVersion Table Version
|
|
4011
|
+
* @param {Object} body Decision Table
|
|
4012
|
+
* postBusinessrulesDecisiontableVersionCopy is a preview method and is subject to both breaking and non-breaking changes at any time without notice
|
|
4013
|
+
*/},{key:"postBusinessrulesDecisiontableVersionCopy",value:function postBusinessrulesDecisiontableVersionCopy(tableId,tableVersion,body){// verify the required parameter 'tableId' is set
|
|
4014
|
+
if(tableId===undefined||tableId===null){throw'Missing the required parameter "tableId" when calling postBusinessrulesDecisiontableVersionCopy';}// verify the required parameter 'tableVersion' is set
|
|
4015
|
+
if(tableVersion===undefined||tableVersion===null){throw'Missing the required parameter "tableVersion" when calling postBusinessrulesDecisiontableVersionCopy';}// verify the required parameter 'body' is set
|
|
4016
|
+
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling postBusinessrulesDecisiontableVersionCopy';}return this.apiClient.callApi('/api/v2/businessrules/decisiontables/{tableId}/versions/{tableVersion}/copy','POST',{'tableId':tableId,'tableVersion':tableVersion},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
4017
|
+
* Execute a decision table version
|
|
4018
|
+
*
|
|
4019
|
+
* @param {String} tableId Table ID
|
|
4020
|
+
* @param {Number} tableVersion Table Version
|
|
4021
|
+
* @param {Object} body Decision Table
|
|
4022
|
+
* postBusinessrulesDecisiontableVersionExecute is a preview method and is subject to both breaking and non-breaking changes at any time without notice
|
|
4023
|
+
*/},{key:"postBusinessrulesDecisiontableVersionExecute",value:function postBusinessrulesDecisiontableVersionExecute(tableId,tableVersion,body){// verify the required parameter 'tableId' is set
|
|
4024
|
+
if(tableId===undefined||tableId===null){throw'Missing the required parameter "tableId" when calling postBusinessrulesDecisiontableVersionExecute';}// verify the required parameter 'tableVersion' is set
|
|
4025
|
+
if(tableVersion===undefined||tableVersion===null){throw'Missing the required parameter "tableVersion" when calling postBusinessrulesDecisiontableVersionExecute';}// verify the required parameter 'body' is set
|
|
4026
|
+
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling postBusinessrulesDecisiontableVersionExecute';}return this.apiClient.callApi('/api/v2/businessrules/decisiontables/{tableId}/versions/{tableVersion}/execute','POST',{'tableId':tableId,'tableVersion':tableVersion},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
4027
|
+
* Create a decision table row
|
|
4028
|
+
*
|
|
4029
|
+
* @param {String} tableId Table ID
|
|
4030
|
+
* @param {Number} tableVersion Table Version
|
|
4031
|
+
* @param {Object} body Create decision table row request
|
|
4032
|
+
* postBusinessrulesDecisiontableVersionRows is a preview method and is subject to both breaking and non-breaking changes at any time without notice
|
|
4033
|
+
*/},{key:"postBusinessrulesDecisiontableVersionRows",value:function postBusinessrulesDecisiontableVersionRows(tableId,tableVersion,body){// verify the required parameter 'tableId' is set
|
|
4034
|
+
if(tableId===undefined||tableId===null){throw'Missing the required parameter "tableId" when calling postBusinessrulesDecisiontableVersionRows';}// verify the required parameter 'tableVersion' is set
|
|
4035
|
+
if(tableVersion===undefined||tableVersion===null){throw'Missing the required parameter "tableVersion" when calling postBusinessrulesDecisiontableVersionRows';}// verify the required parameter 'body' is set
|
|
4036
|
+
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling postBusinessrulesDecisiontableVersionRows';}return this.apiClient.callApi('/api/v2/businessrules/decisiontables/{tableId}/versions/{tableVersion}/rows','POST',{'tableId':tableId,'tableVersion':tableVersion},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
4037
|
+
* Search for decision table rows
|
|
4038
|
+
*
|
|
4039
|
+
* @param {String} tableId Table ID
|
|
4040
|
+
* @param {Number} tableVersion Table Version
|
|
4041
|
+
* @param {Object} body Search decision table rows request
|
|
4042
|
+
* @param {Object} opts Optional parameters
|
|
4043
|
+
* @param {String} opts.pageNumber Page number of the entities to return. Defaults to 1.
|
|
4044
|
+
* @param {String} opts.pageSize Number of entities to return. Maximum of 100. Defaults to 25.
|
|
4045
|
+
* postBusinessrulesDecisiontableVersionRowsSearch is a preview method and is subject to both breaking and non-breaking changes at any time without notice
|
|
4046
|
+
*/},{key:"postBusinessrulesDecisiontableVersionRowsSearch",value:function postBusinessrulesDecisiontableVersionRowsSearch(tableId,tableVersion,body,opts){opts=opts||{};// verify the required parameter 'tableId' is set
|
|
4047
|
+
if(tableId===undefined||tableId===null){throw'Missing the required parameter "tableId" when calling postBusinessrulesDecisiontableVersionRowsSearch';}// verify the required parameter 'tableVersion' is set
|
|
4048
|
+
if(tableVersion===undefined||tableVersion===null){throw'Missing the required parameter "tableVersion" when calling postBusinessrulesDecisiontableVersionRowsSearch';}// verify the required parameter 'body' is set
|
|
4049
|
+
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling postBusinessrulesDecisiontableVersionRowsSearch';}return this.apiClient.callApi('/api/v2/businessrules/decisiontables/{tableId}/versions/{tableVersion}/rows/search','POST',{'tableId':tableId,'tableVersion':tableVersion},{'pageNumber':opts['pageNumber'],'pageSize':opts['pageSize']},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
4050
|
+
* Update the Business Rules Schema to the latest version for a given decision table version
|
|
4051
|
+
*
|
|
4052
|
+
* @param {String} tableId Table ID
|
|
4053
|
+
* @param {Number} tableVersion Table Version
|
|
4054
|
+
* postBusinessrulesDecisiontableVersionSync is a preview method and is subject to both breaking and non-breaking changes at any time without notice
|
|
4055
|
+
*/},{key:"postBusinessrulesDecisiontableVersionSync",value:function postBusinessrulesDecisiontableVersionSync(tableId,tableVersion){// verify the required parameter 'tableId' is set
|
|
4056
|
+
if(tableId===undefined||tableId===null){throw'Missing the required parameter "tableId" when calling postBusinessrulesDecisiontableVersionSync';}// verify the required parameter 'tableVersion' is set
|
|
4057
|
+
if(tableVersion===undefined||tableVersion===null){throw'Missing the required parameter "tableVersion" when calling postBusinessrulesDecisiontableVersionSync';}return this.apiClient.callApi('/api/v2/businessrules/decisiontables/{tableId}/versions/{tableVersion}/sync','POST',{'tableId':tableId,'tableVersion':tableVersion},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
4058
|
+
* Create a new decision table version
|
|
4059
|
+
*
|
|
4060
|
+
* @param {String} tableId Table ID
|
|
4061
|
+
* postBusinessrulesDecisiontableVersions is a preview method and is subject to both breaking and non-breaking changes at any time without notice
|
|
4062
|
+
*/},{key:"postBusinessrulesDecisiontableVersions",value:function postBusinessrulesDecisiontableVersions(tableId){// verify the required parameter 'tableId' is set
|
|
4063
|
+
if(tableId===undefined||tableId===null){throw'Missing the required parameter "tableId" when calling postBusinessrulesDecisiontableVersions';}return this.apiClient.callApi('/api/v2/businessrules/decisiontables/{tableId}/versions','POST',{'tableId':tableId},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
4064
|
+
* Create a decision table
|
|
4065
|
+
*
|
|
4066
|
+
* @param {Object} body Decision Table
|
|
4067
|
+
* postBusinessrulesDecisiontables is a preview method and is subject to both breaking and non-breaking changes at any time without notice
|
|
4068
|
+
*/},{key:"postBusinessrulesDecisiontables",value:function postBusinessrulesDecisiontables(body){// verify the required parameter 'body' is set
|
|
4069
|
+
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling postBusinessrulesDecisiontables';}return this.apiClient.callApi('/api/v2/businessrules/decisiontables','POST',{},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
4070
|
+
* Create a schema
|
|
4071
|
+
*
|
|
4072
|
+
* @param {Object} body Schema
|
|
4073
|
+
* postBusinessrulesSchemas is a preview method and is subject to both breaking and non-breaking changes at any time without notice
|
|
4074
|
+
*/},{key:"postBusinessrulesSchemas",value:function postBusinessrulesSchemas(body){// verify the required parameter 'body' is set
|
|
4075
|
+
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling postBusinessrulesSchemas';}return this.apiClient.callApi('/api/v2/businessrules/schemas','POST',{},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
4076
|
+
* Publish a decision table version
|
|
4077
|
+
*
|
|
4078
|
+
* @param {String} tableId Table ID
|
|
4079
|
+
* @param {Number} tableVersion Table Version
|
|
4080
|
+
* putBusinessrulesDecisiontableVersionPublish is a preview method and is subject to both breaking and non-breaking changes at any time without notice
|
|
4081
|
+
*/},{key:"putBusinessrulesDecisiontableVersionPublish",value:function putBusinessrulesDecisiontableVersionPublish(tableId,tableVersion){// verify the required parameter 'tableId' is set
|
|
4082
|
+
if(tableId===undefined||tableId===null){throw'Missing the required parameter "tableId" when calling putBusinessrulesDecisiontableVersionPublish';}// verify the required parameter 'tableVersion' is set
|
|
4083
|
+
if(tableVersion===undefined||tableVersion===null){throw'Missing the required parameter "tableVersion" when calling putBusinessrulesDecisiontableVersionPublish';}return this.apiClient.callApi('/api/v2/businessrules/decisiontables/{tableId}/versions/{tableVersion}/publish','PUT',{'tableId':tableId,'tableVersion':tableVersion},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
4084
|
+
* Update a schema
|
|
4085
|
+
*
|
|
4086
|
+
* @param {String} schemaId Schema ID
|
|
4087
|
+
* @param {Object} body Data Schema
|
|
4088
|
+
* putBusinessrulesSchema is a preview method and is subject to both breaking and non-breaking changes at any time without notice
|
|
4089
|
+
*/},{key:"putBusinessrulesSchema",value:function putBusinessrulesSchema(schemaId,body){// verify the required parameter 'schemaId' is set
|
|
4090
|
+
if(schemaId===undefined||schemaId===null){throw'Missing the required parameter "schemaId" when calling putBusinessrulesSchema';}// verify the required parameter 'body' is set
|
|
4091
|
+
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling putBusinessrulesSchema';}return this.apiClient.callApi('/api/v2/businessrules/schemas/{schemaId}','PUT',{'schemaId':schemaId},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}}]);}();var CarrierServicesApi=/*#__PURE__*/function(){/**
|
|
3791
4092
|
* CarrierServices service.
|
|
3792
4093
|
* @module purecloud-platform-client-v2/api/CarrierServicesApi
|
|
3793
|
-
* @version
|
|
4094
|
+
* @version 222.0.0
|
|
3794
4095
|
*//**
|
|
3795
4096
|
* Constructs a new CarrierServicesApi.
|
|
3796
4097
|
* @alias module:purecloud-platform-client-v2/api/CarrierServicesApi
|
|
@@ -3810,7 +4111,7 @@ if(phoneNumber===undefined||phoneNumber===null){throw'Missing the required param
|
|
|
3810
4111
|
*/},{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(){/**
|
|
3811
4112
|
* Chat service.
|
|
3812
4113
|
* @module purecloud-platform-client-v2/api/ChatApi
|
|
3813
|
-
* @version
|
|
4114
|
+
* @version 222.0.0
|
|
3814
4115
|
*//**
|
|
3815
4116
|
* Constructs a new ChatApi.
|
|
3816
4117
|
* @alias module:purecloud-platform-client-v2/api/ChatApi
|
|
@@ -3889,8 +4190,10 @@ if(participantJid===undefined||participantJid===null){throw'Missing the required
|
|
|
3889
4190
|
* Get room participants in a room
|
|
3890
4191
|
*
|
|
3891
4192
|
* @param {String} roomJid roomJid
|
|
3892
|
-
|
|
3893
|
-
|
|
4193
|
+
* @param {Object} opts Optional parameters
|
|
4194
|
+
* @param {Boolean} opts.notify Whether to get users to notify
|
|
4195
|
+
*/},{key:"getChatsRoomParticipants",value:function getChatsRoomParticipants(roomJid,opts){opts=opts||{};// verify the required parameter 'roomJid' is set
|
|
4196
|
+
if(roomJid===undefined||roomJid===null){throw'Missing the required parameter "roomJid" when calling getChatsRoomParticipants';}return this.apiClient.callApi('/api/v2/chats/rooms/{roomJid}/participants','GET',{'roomJid':roomJid},{'notify':opts['notify']},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
3894
4197
|
* Get Chat Settings.
|
|
3895
4198
|
*
|
|
3896
4199
|
*/},{key:"getChatsSettings",value:function getChatsSettings(){return this.apiClient.callApi('/api/v2/chats/settings','GET',{},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
@@ -4028,7 +4331,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
4028
4331
|
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(){/**
|
|
4029
4332
|
* Coaching service.
|
|
4030
4333
|
* @module purecloud-platform-client-v2/api/CoachingApi
|
|
4031
|
-
* @version
|
|
4334
|
+
* @version 222.0.0
|
|
4032
4335
|
*//**
|
|
4033
4336
|
* Constructs a new CoachingApi.
|
|
4034
4337
|
* @alias module:purecloud-platform-client-v2/api/CoachingApi
|
|
@@ -4181,7 +4484,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
4181
4484
|
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(){/**
|
|
4182
4485
|
* ContentManagement service.
|
|
4183
4486
|
* @module purecloud-platform-client-v2/api/ContentManagementApi
|
|
4184
|
-
* @version
|
|
4487
|
+
* @version 222.0.0
|
|
4185
4488
|
*//**
|
|
4186
4489
|
* Constructs a new ContentManagementApi.
|
|
4187
4490
|
* @alias module:purecloud-platform-client-v2/api/ContentManagementApi
|
|
@@ -4463,7 +4766,7 @@ if(tagId===undefined||tagId===null){throw'Missing the required parameter "tagId"
|
|
|
4463
4766
|
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(){/**
|
|
4464
4767
|
* Conversations service.
|
|
4465
4768
|
* @module purecloud-platform-client-v2/api/ConversationsApi
|
|
4466
|
-
* @version
|
|
4769
|
+
* @version 222.0.0
|
|
4467
4770
|
*//**
|
|
4468
4771
|
* Constructs a new ConversationsApi.
|
|
4469
4772
|
* @alias module:purecloud-platform-client-v2/api/ConversationsApi
|
|
@@ -4920,7 +5223,7 @@ if(mediaId===undefined||mediaId===null){throw'Missing the required parameter "me
|
|
|
4920
5223
|
*
|
|
4921
5224
|
* @param {String} messageId messageId
|
|
4922
5225
|
* @param {Object} opts Optional parameters
|
|
4923
|
-
* @param {Boolean} opts.useNormalizedMessage If true, response removes deprecated fields (textBody, media
|
|
5226
|
+
* @param {Boolean} opts.useNormalizedMessage If true, response removes deprecated fields (textBody, media) (default to false)
|
|
4924
5227
|
*/},{key:"getConversationsMessageDetails",value:function getConversationsMessageDetails(messageId,opts){opts=opts||{};// verify the required parameter 'messageId' is set
|
|
4925
5228
|
if(messageId===undefined||messageId===null){throw'Missing the required parameter "messageId" when calling getConversationsMessageDetails';}return this.apiClient.callApi('/api/v2/conversations/messages/{messageId}/details','GET',{'messageId':messageId},{'useNormalizedMessage':opts['useNormalizedMessage']},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
4926
5229
|
* Get conversation message
|
|
@@ -4928,7 +5231,7 @@ if(messageId===undefined||messageId===null){throw'Missing the required parameter
|
|
|
4928
5231
|
* @param {String} conversationId conversationId
|
|
4929
5232
|
* @param {String} messageId messageId
|
|
4930
5233
|
* @param {Object} opts Optional parameters
|
|
4931
|
-
* @param {Boolean} opts.useNormalizedMessage If true, response removes deprecated fields (textBody, media
|
|
5234
|
+
* @param {Boolean} opts.useNormalizedMessage If true, response removes deprecated fields (textBody, media) (default to false)
|
|
4932
5235
|
*/},{key:"getConversationsMessageMessage",value:function getConversationsMessageMessage(conversationId,messageId,opts){opts=opts||{};// verify the required parameter 'conversationId' is set
|
|
4933
5236
|
if(conversationId===undefined||conversationId===null){throw'Missing the required parameter "conversationId" when calling getConversationsMessageMessage';}// verify the required parameter 'messageId' is set
|
|
4934
5237
|
if(messageId===undefined||messageId===null){throw'Missing the required parameter "messageId" when calling getConversationsMessageMessage';}return this.apiClient.callApi('/api/v2/conversations/messages/{conversationId}/messages/{messageId}','GET',{'conversationId':conversationId,'messageId':messageId},{'useNormalizedMessage':opts['useNormalizedMessage']},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
@@ -4980,22 +5283,30 @@ if(cachedMediaItemId===undefined||cachedMediaItemId===null){throw'Missing the re
|
|
|
4980
5283
|
* Get a list of Facebook Permissions
|
|
4981
5284
|
*
|
|
4982
5285
|
*/},{key:"getConversationsMessagingFacebookPermissions",value:function getConversationsMessagingFacebookPermissions(){return this.apiClient.callApi('/api/v2/conversations/messaging/facebook/permissions','GET',{},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
5286
|
+
* Get Apple messaging integration identity resolution settings
|
|
5287
|
+
*
|
|
5288
|
+
* @param {String} integrationId Integration ID
|
|
5289
|
+
* getConversationsMessagingIdentityresolutionIntegrationsAppleIntegrationId is a preview method and is subject to both breaking and non-breaking changes at any time without notice
|
|
5290
|
+
*/},{key:"getConversationsMessagingIdentityresolutionIntegrationsAppleIntegrationId",value:function getConversationsMessagingIdentityresolutionIntegrationsAppleIntegrationId(integrationId){// verify the required parameter 'integrationId' is set
|
|
5291
|
+
if(integrationId===undefined||integrationId===null){throw'Missing the required parameter "integrationId" when calling getConversationsMessagingIdentityresolutionIntegrationsAppleIntegrationId';}return this.apiClient.callApi('/api/v2/conversations/messaging/identityresolution/integrations/apple/{integrationId}','GET',{'integrationId':integrationId},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
4983
5292
|
* Get Facebook messaging integration identity resolution settings
|
|
4984
5293
|
*
|
|
4985
5294
|
* @param {String} integrationId Integration ID
|
|
4986
|
-
* getConversationsMessagingIdentityresolutionIntegrationsFacebookIntegrationId is a preview method and is subject to both breaking and non-breaking changes at any time without notice
|
|
4987
5295
|
*/},{key:"getConversationsMessagingIdentityresolutionIntegrationsFacebookIntegrationId",value:function getConversationsMessagingIdentityresolutionIntegrationsFacebookIntegrationId(integrationId){// verify the required parameter 'integrationId' is set
|
|
4988
5296
|
if(integrationId===undefined||integrationId===null){throw'Missing the required parameter "integrationId" when calling getConversationsMessagingIdentityresolutionIntegrationsFacebookIntegrationId';}return this.apiClient.callApi('/api/v2/conversations/messaging/identityresolution/integrations/facebook/{integrationId}','GET',{'integrationId':integrationId},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
5297
|
+
* Get an Instagram integration identity resolution settings
|
|
5298
|
+
*
|
|
5299
|
+
* @param {String} integrationId Integration ID
|
|
5300
|
+
*/},{key:"getConversationsMessagingIdentityresolutionIntegrationsInstagramIntegrationId",value:function getConversationsMessagingIdentityresolutionIntegrationsInstagramIntegrationId(integrationId){// verify the required parameter 'integrationId' is set
|
|
5301
|
+
if(integrationId===undefined||integrationId===null){throw'Missing the required parameter "integrationId" when calling getConversationsMessagingIdentityresolutionIntegrationsInstagramIntegrationId';}return this.apiClient.callApi('/api/v2/conversations/messaging/identityresolution/integrations/instagram/{integrationId}','GET',{'integrationId':integrationId},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
4989
5302
|
* Get an open messaging integration Identity Resolution settings
|
|
4990
5303
|
*
|
|
4991
5304
|
* @param {String} integrationId Integration ID
|
|
4992
|
-
* getConversationsMessagingIdentityresolutionIntegrationsOpenIntegrationId is a preview method and is subject to both breaking and non-breaking changes at any time without notice
|
|
4993
5305
|
*/},{key:"getConversationsMessagingIdentityresolutionIntegrationsOpenIntegrationId",value:function getConversationsMessagingIdentityresolutionIntegrationsOpenIntegrationId(integrationId){// verify the required parameter 'integrationId' is set
|
|
4994
5306
|
if(integrationId===undefined||integrationId===null){throw'Missing the required parameter "integrationId" when calling getConversationsMessagingIdentityresolutionIntegrationsOpenIntegrationId';}return this.apiClient.callApi('/api/v2/conversations/messaging/identityresolution/integrations/open/{integrationId}','GET',{'integrationId':integrationId},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
4995
5307
|
* Get a whatsApp integration Identity Resolution settings
|
|
4996
5308
|
*
|
|
4997
5309
|
* @param {String} integrationId Integration ID
|
|
4998
|
-
* getConversationsMessagingIdentityresolutionIntegrationsWhatsappIntegrationId is a preview method and is subject to both breaking and non-breaking changes at any time without notice
|
|
4999
5310
|
*/},{key:"getConversationsMessagingIdentityresolutionIntegrationsWhatsappIntegrationId",value:function getConversationsMessagingIdentityresolutionIntegrationsWhatsappIntegrationId(integrationId){// verify the required parameter 'integrationId' is set
|
|
5000
5311
|
if(integrationId===undefined||integrationId===null){throw'Missing the required parameter "integrationId" when calling getConversationsMessagingIdentityresolutionIntegrationsWhatsappIntegrationId';}return this.apiClient.callApi('/api/v2/conversations/messaging/identityresolution/integrations/whatsapp/{integrationId}','GET',{'integrationId':integrationId},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
5001
5312
|
* Get twitter oauth settings to patch an integration
|
|
@@ -5200,13 +5511,21 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
5200
5511
|
*/},{key:"patchConversationSecureattributes",value:function patchConversationSecureattributes(conversationId,body){// verify the required parameter 'conversationId' is set
|
|
5201
5512
|
if(conversationId===undefined||conversationId===null){throw'Missing the required parameter "conversationId" when calling patchConversationSecureattributes';}// verify the required parameter 'body' is set
|
|
5202
5513
|
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling patchConversationSecureattributes';}return this.apiClient.callApi('/api/v2/conversations/{conversationId}/secureattributes','PATCH',{'conversationId':conversationId},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
5514
|
+
* Update agent's engagement for the summary.
|
|
5515
|
+
*
|
|
5516
|
+
* @param {String} conversationId Conversation ID
|
|
5517
|
+
* @param {String} summaryId Summary ID
|
|
5518
|
+
* @param {Object} opts Optional parameters
|
|
5519
|
+
* @param {Object} opts.body
|
|
5520
|
+
*/},{key:"patchConversationSummaryEngagements",value:function patchConversationSummaryEngagements(conversationId,summaryId,opts){opts=opts||{};// verify the required parameter 'conversationId' is set
|
|
5521
|
+
if(conversationId===undefined||conversationId===null){throw'Missing the required parameter "conversationId" when calling patchConversationSummaryEngagements';}// verify the required parameter 'summaryId' is set
|
|
5522
|
+
if(summaryId===undefined||summaryId===null){throw'Missing the required parameter "summaryId" when calling patchConversationSummaryEngagements';}return this.apiClient.callApi('/api/v2/conversations/{conversationId}/summaries/{summaryId}/engagements','PATCH',{'conversationId':conversationId,'summaryId':summaryId},{},{},{},opts['body'],['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
5203
5523
|
* Update the feedback for the summary.
|
|
5204
5524
|
*
|
|
5205
5525
|
* @param {String} conversationId Conversation ID
|
|
5206
5526
|
* @param {String} summaryId Summary ID
|
|
5207
5527
|
* @param {Object} opts Optional parameters
|
|
5208
5528
|
* @param {Object} opts.body
|
|
5209
|
-
* patchConversationSummaryFeedback is a preview method and is subject to both breaking and non-breaking changes at any time without notice
|
|
5210
5529
|
*/},{key:"patchConversationSummaryFeedback",value:function patchConversationSummaryFeedback(conversationId,summaryId,opts){opts=opts||{};// verify the required parameter 'conversationId' is set
|
|
5211
5530
|
if(conversationId===undefined||conversationId===null){throw'Missing the required parameter "conversationId" when calling patchConversationSummaryFeedback';}// verify the required parameter 'summaryId' is set
|
|
5212
5531
|
if(summaryId===undefined||summaryId===null){throw'Missing the required parameter "summaryId" when calling patchConversationSummaryFeedback';}return this.apiClient.callApi('/api/v2/conversations/{conversationId}/summaries/{summaryId}/feedback','PATCH',{'conversationId':conversationId,'summaryId':summaryId},{},{},{},opts['body'],['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
@@ -5513,7 +5832,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
5513
5832
|
if(integrationId===undefined||integrationId===null){throw'Missing the required parameter "integrationId" when calling patchConversationsMessagingIntegrationsTwitterIntegrationId';}// verify the required parameter 'body' is set
|
|
5514
5833
|
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']);}/**
|
|
5515
5834
|
* Activate a WhatsApp messaging integration created using the WhatsApp embedded signup flow
|
|
5516
|
-
* Please specify the phone number to associate with this WhatsApp integration from the list of available phone numbers returned to you in the
|
|
5835
|
+
* Please specify the phone number to associate with this WhatsApp integration from the list of available phone numbers returned to you in the GET call on the integration with a createStatus of Completed. You can then run a GET on the integration to check if its status has been updated to Active.
|
|
5517
5836
|
* @param {String} integrationId Integration ID
|
|
5518
5837
|
* @param {Object} body WhatsAppEmbeddedSignupIntegrationActivationRequest
|
|
5519
5838
|
*/},{key:"patchConversationsMessagingIntegrationsWhatsappEmbeddedsignupIntegrationId",value:function patchConversationsMessagingIntegrationsWhatsappEmbeddedsignupIntegrationId(integrationId,body){// verify the required parameter 'integrationId' is set
|
|
@@ -5963,12 +6282,12 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
5963
6282
|
*/},{key:"postConversationsKeyconfigurationsValidate",value:function postConversationsKeyconfigurationsValidate(body){// verify the required parameter 'body' is set
|
|
5964
6283
|
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling postConversationsKeyconfigurationsValidate';}return this.apiClient.callApi('/api/v2/conversations/keyconfigurations/validate','POST',{},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
5965
6284
|
* Send message
|
|
5966
|
-
* Send message on existing conversation/communication. Only one message body field can be accepted, per request. Example: 1 textBody, 1 mediaId,
|
|
6285
|
+
* Send message on existing conversation/communication. Only one message body field can be accepted, per request. Example: 1 textBody, 1 mediaId, or 1 messageTemplate.
|
|
5967
6286
|
* @param {String} conversationId conversationId
|
|
5968
6287
|
* @param {String} communicationId communicationId
|
|
5969
6288
|
* @param {Object} body Message
|
|
5970
6289
|
* @param {Object} opts Optional parameters
|
|
5971
|
-
* @param {Boolean} opts.useNormalizedMessage If true, response removes deprecated fields (textBody, media
|
|
6290
|
+
* @param {Boolean} opts.useNormalizedMessage If true, response removes deprecated fields (textBody, media) (default to false)
|
|
5972
6291
|
*/},{key:"postConversationsMessageCommunicationMessages",value:function postConversationsMessageCommunicationMessages(conversationId,communicationId,body,opts){opts=opts||{};// verify the required parameter 'conversationId' is set
|
|
5973
6292
|
if(conversationId===undefined||conversationId===null){throw'Missing the required parameter "conversationId" when calling postConversationsMessageCommunicationMessages';}// verify the required parameter 'communicationId' is set
|
|
5974
6293
|
if(communicationId===undefined||communicationId===null){throw'Missing the required parameter "communicationId" when calling postConversationsMessageCommunicationMessages';}// verify the required parameter 'body' is set
|
|
@@ -6026,7 +6345,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
6026
6345
|
* The path parameter [conversationId] should contain the conversationId of the conversation being filtered. The body should contain the messageId(s) of messages being requested. For example: ["a3069a33b-bbb1-4703-9d68-061d9e9db96e", "55bc6be3-078c-4a49-a4e6-1e05776ed7e8"]
|
|
6027
6346
|
* @param {String} conversationId
|
|
6028
6347
|
* @param {Object} opts Optional parameters
|
|
6029
|
-
* @param {Boolean} opts.useNormalizedMessage If true, response removes deprecated fields (textBody, media
|
|
6348
|
+
* @param {Boolean} opts.useNormalizedMessage If true, response removes deprecated fields (textBody, media) (default to false)
|
|
6030
6349
|
* @param {Array.<String>} opts.body messageIds
|
|
6031
6350
|
*/},{key:"postConversationsMessageMessagesBulk",value:function postConversationsMessageMessagesBulk(conversationId,opts){opts=opts||{};// verify the required parameter 'conversationId' is set
|
|
6032
6351
|
if(conversationId===undefined||conversationId===null){throw'Missing the required parameter "conversationId" when calling postConversationsMessageMessagesBulk';}return this.apiClient.callApi('/api/v2/conversations/messages/{conversationId}/messages/bulk','POST',{'conversationId':conversationId},{'useNormalizedMessage':opts['useNormalizedMessage']},{},{},opts['body'],['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
@@ -6259,19 +6578,32 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
6259
6578
|
*/},{key:"putConversationsMessageRecordingstate",value:function putConversationsMessageRecordingstate(conversationId,body){// verify the required parameter 'conversationId' is set
|
|
6260
6579
|
if(conversationId===undefined||conversationId===null){throw'Missing the required parameter "conversationId" when calling putConversationsMessageRecordingstate';}// verify the required parameter 'body' is set
|
|
6261
6580
|
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']);}/**
|
|
6581
|
+
* Create an identity resolution settings for a Apple messaging integration
|
|
6582
|
+
*
|
|
6583
|
+
* @param {String} integrationId Integration ID
|
|
6584
|
+
* @param {Object} body IdentityResolutionConfig
|
|
6585
|
+
* putConversationsMessagingIdentityresolutionIntegrationsAppleIntegrationId is a preview method and is subject to both breaking and non-breaking changes at any time without notice
|
|
6586
|
+
*/},{key:"putConversationsMessagingIdentityresolutionIntegrationsAppleIntegrationId",value:function putConversationsMessagingIdentityresolutionIntegrationsAppleIntegrationId(integrationId,body){// verify the required parameter 'integrationId' is set
|
|
6587
|
+
if(integrationId===undefined||integrationId===null){throw'Missing the required parameter "integrationId" when calling putConversationsMessagingIdentityresolutionIntegrationsAppleIntegrationId';}// verify the required parameter 'body' is set
|
|
6588
|
+
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling putConversationsMessagingIdentityresolutionIntegrationsAppleIntegrationId';}return this.apiClient.callApi('/api/v2/conversations/messaging/identityresolution/integrations/apple/{integrationId}','PUT',{'integrationId':integrationId},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
6262
6589
|
* Create an identity resolution settings for a Facebook messaging integration
|
|
6263
6590
|
*
|
|
6264
6591
|
* @param {String} integrationId Integration ID
|
|
6265
6592
|
* @param {Object} body IdentityResolutionConfig
|
|
6266
|
-
* putConversationsMessagingIdentityresolutionIntegrationsFacebookIntegrationId is a preview method and is subject to both breaking and non-breaking changes at any time without notice
|
|
6267
6593
|
*/},{key:"putConversationsMessagingIdentityresolutionIntegrationsFacebookIntegrationId",value:function putConversationsMessagingIdentityresolutionIntegrationsFacebookIntegrationId(integrationId,body){// verify the required parameter 'integrationId' is set
|
|
6268
6594
|
if(integrationId===undefined||integrationId===null){throw'Missing the required parameter "integrationId" when calling putConversationsMessagingIdentityresolutionIntegrationsFacebookIntegrationId';}// verify the required parameter 'body' is set
|
|
6269
6595
|
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling putConversationsMessagingIdentityresolutionIntegrationsFacebookIntegrationId';}return this.apiClient.callApi('/api/v2/conversations/messaging/identityresolution/integrations/facebook/{integrationId}','PUT',{'integrationId':integrationId},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
6596
|
+
* Create identity resolution settings for an Instagram messaging integration
|
|
6597
|
+
*
|
|
6598
|
+
* @param {String} integrationId Integration ID
|
|
6599
|
+
* @param {Object} body IdentityResolutionConfig
|
|
6600
|
+
*/},{key:"putConversationsMessagingIdentityresolutionIntegrationsInstagramIntegrationId",value:function putConversationsMessagingIdentityresolutionIntegrationsInstagramIntegrationId(integrationId,body){// verify the required parameter 'integrationId' is set
|
|
6601
|
+
if(integrationId===undefined||integrationId===null){throw'Missing the required parameter "integrationId" when calling putConversationsMessagingIdentityresolutionIntegrationsInstagramIntegrationId';}// verify the required parameter 'body' is set
|
|
6602
|
+
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling putConversationsMessagingIdentityresolutionIntegrationsInstagramIntegrationId';}return this.apiClient.callApi('/api/v2/conversations/messaging/identityresolution/integrations/instagram/{integrationId}','PUT',{'integrationId':integrationId},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
6270
6603
|
* Update an open messaging integration Identity Resolution settings
|
|
6271
6604
|
*
|
|
6272
6605
|
* @param {String} integrationId Integration ID
|
|
6273
6606
|
* @param {Object} body
|
|
6274
|
-
* putConversationsMessagingIdentityresolutionIntegrationsOpenIntegrationId is a preview method and is subject to both breaking and non-breaking changes at any time without notice
|
|
6275
6607
|
*/},{key:"putConversationsMessagingIdentityresolutionIntegrationsOpenIntegrationId",value:function putConversationsMessagingIdentityresolutionIntegrationsOpenIntegrationId(integrationId,body){// verify the required parameter 'integrationId' is set
|
|
6276
6608
|
if(integrationId===undefined||integrationId===null){throw'Missing the required parameter "integrationId" when calling putConversationsMessagingIdentityresolutionIntegrationsOpenIntegrationId';}// verify the required parameter 'body' is set
|
|
6277
6609
|
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling putConversationsMessagingIdentityresolutionIntegrationsOpenIntegrationId';}return this.apiClient.callApi('/api/v2/conversations/messaging/identityresolution/integrations/open/{integrationId}','PUT',{'integrationId':integrationId},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
@@ -6279,7 +6611,6 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
6279
6611
|
*
|
|
6280
6612
|
* @param {String} integrationId Integration ID
|
|
6281
6613
|
* @param {Object} body
|
|
6282
|
-
* putConversationsMessagingIdentityresolutionIntegrationsWhatsappIntegrationId is a preview method and is subject to both breaking and non-breaking changes at any time without notice
|
|
6283
6614
|
*/},{key:"putConversationsMessagingIdentityresolutionIntegrationsWhatsappIntegrationId",value:function putConversationsMessagingIdentityresolutionIntegrationsWhatsappIntegrationId(integrationId,body){// verify the required parameter 'integrationId' is set
|
|
6284
6615
|
if(integrationId===undefined||integrationId===null){throw'Missing the required parameter "integrationId" when calling putConversationsMessagingIdentityresolutionIntegrationsWhatsappIntegrationId';}// verify the required parameter 'body' is set
|
|
6285
6616
|
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling putConversationsMessagingIdentityresolutionIntegrationsWhatsappIntegrationId';}return this.apiClient.callApi('/api/v2/conversations/messaging/identityresolution/integrations/whatsapp/{integrationId}','PUT',{'integrationId':integrationId},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
@@ -6322,7 +6653,7 @@ if(conversationId===undefined||conversationId===null){throw'Missing the required
|
|
|
6322
6653
|
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(){/**
|
|
6323
6654
|
* DataExtensions service.
|
|
6324
6655
|
* @module purecloud-platform-client-v2/api/DataExtensionsApi
|
|
6325
|
-
* @version
|
|
6656
|
+
* @version 222.0.0
|
|
6326
6657
|
*//**
|
|
6327
6658
|
* Constructs a new DataExtensionsApi.
|
|
6328
6659
|
* @alias module:purecloud-platform-client-v2/api/DataExtensionsApi
|
|
@@ -6343,7 +6674,7 @@ if(coretypeName===undefined||coretypeName===null){throw'Missing the required par
|
|
|
6343
6674
|
*/},{key:"getDataextensionsLimits",value:function getDataextensionsLimits(){return this.apiClient.callApi('/api/v2/dataextensions/limits','GET',{},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}}]);}();var DataPrivacyApi=/*#__PURE__*/function(){/**
|
|
6344
6675
|
* DataPrivacy service.
|
|
6345
6676
|
* @module purecloud-platform-client-v2/api/DataPrivacyApi
|
|
6346
|
-
* @version
|
|
6677
|
+
* @version 222.0.0
|
|
6347
6678
|
*//**
|
|
6348
6679
|
* Constructs a new DataPrivacyApi.
|
|
6349
6680
|
* @alias module:purecloud-platform-client-v2/api/DataPrivacyApi
|
|
@@ -6383,7 +6714,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
6383
6714
|
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling postDataprivacyMaskingrulesValidate';}return this.apiClient.callApi('/api/v2/dataprivacy/maskingrules/validate','POST',{},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}}]);}();var DownloadsApi=/*#__PURE__*/function(){/**
|
|
6384
6715
|
* Downloads service.
|
|
6385
6716
|
* @module purecloud-platform-client-v2/api/DownloadsApi
|
|
6386
|
-
* @version
|
|
6717
|
+
* @version 222.0.0
|
|
6387
6718
|
*//**
|
|
6388
6719
|
* Constructs a new DownloadsApi.
|
|
6389
6720
|
* @alias module:purecloud-platform-client-v2/api/DownloadsApi
|
|
@@ -6402,7 +6733,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
6402
6733
|
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(){/**
|
|
6403
6734
|
* Emails service.
|
|
6404
6735
|
* @module purecloud-platform-client-v2/api/EmailsApi
|
|
6405
|
-
* @version
|
|
6736
|
+
* @version 222.0.0
|
|
6406
6737
|
*//**
|
|
6407
6738
|
* Constructs a new EmailsApi.
|
|
6408
6739
|
* @alias module:purecloud-platform-client-v2/api/EmailsApi
|
|
@@ -6431,7 +6762,7 @@ if(downloadId===undefined||downloadId===null){throw'Missing the required paramet
|
|
|
6431
6762
|
*/},{key:"patchEmailsSettingsThreading",value:function patchEmailsSettingsThreading(opts){opts=opts||{};return this.apiClient.callApi('/api/v2/emails/settings/threading','PATCH',{},{},{},{},opts['body'],['PureCloud OAuth'],['application/json'],['application/json']);}}]);}();var EmployeeEngagementApi=/*#__PURE__*/function(){/**
|
|
6432
6763
|
* EmployeeEngagement service.
|
|
6433
6764
|
* @module purecloud-platform-client-v2/api/EmployeeEngagementApi
|
|
6434
|
-
* @version
|
|
6765
|
+
* @version 222.0.0
|
|
6435
6766
|
*//**
|
|
6436
6767
|
* Constructs a new EmployeeEngagementApi.
|
|
6437
6768
|
* @alias module:purecloud-platform-client-v2/api/EmployeeEngagementApi
|
|
@@ -6469,7 +6800,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
6469
6800
|
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling postEmployeeengagementRecognitions';}return this.apiClient.callApi('/api/v2/employeeengagement/recognitions','POST',{},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}}]);}();var EventsApi=/*#__PURE__*/function(){/**
|
|
6470
6801
|
* Events service.
|
|
6471
6802
|
* @module purecloud-platform-client-v2/api/EventsApi
|
|
6472
|
-
* @version
|
|
6803
|
+
* @version 222.0.0
|
|
6473
6804
|
*//**
|
|
6474
6805
|
* Constructs a new EventsApi.
|
|
6475
6806
|
* @alias module:purecloud-platform-client-v2/api/EventsApi
|
|
@@ -6494,7 +6825,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
6494
6825
|
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(){/**
|
|
6495
6826
|
* ExternalContacts service.
|
|
6496
6827
|
* @module purecloud-platform-client-v2/api/ExternalContactsApi
|
|
6497
|
-
* @version
|
|
6828
|
+
* @version 222.0.0
|
|
6498
6829
|
*//**
|
|
6499
6830
|
* Constructs a new ExternalContactsApi.
|
|
6500
6831
|
* @alias module:purecloud-platform-client-v2/api/ExternalContactsApi
|
|
@@ -6645,7 +6976,7 @@ if(schemaId===undefined||schemaId===null){throw'Missing the required parameter "
|
|
|
6645
6976
|
* Get a list of schemas.
|
|
6646
6977
|
*
|
|
6647
6978
|
*/},{key:"getExternalcontactsContactsSchemas",value:function getExternalcontactsContactsSchemas(){return this.apiClient.callApi('/api/v2/externalcontacts/contacts/schemas','GET',{},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
6648
|
-
* Get
|
|
6979
|
+
* Get a specific named core type.
|
|
6649
6980
|
*
|
|
6650
6981
|
* @param {String} coreTypeName Name of the core type
|
|
6651
6982
|
*/},{key:"getExternalcontactsContactsSchemasCoretype",value:function getExternalcontactsContactsSchemasCoretype(coreTypeName){// verify the required parameter 'coreTypeName' is set
|
|
@@ -6742,7 +7073,6 @@ if(externalOrganizationId===undefined||externalOrganizationId===null){throw'Miss
|
|
|
6742
7073
|
* List the identifiers for an external organization
|
|
6743
7074
|
*
|
|
6744
7075
|
* @param {String} externalOrganizationId External Organization ID
|
|
6745
|
-
* getExternalcontactsOrganizationIdentifiers is a preview method and is subject to both breaking and non-breaking changes at any time without notice
|
|
6746
7076
|
*/},{key:"getExternalcontactsOrganizationIdentifiers",value:function getExternalcontactsOrganizationIdentifiers(externalOrganizationId){// verify the required parameter 'externalOrganizationId' is set
|
|
6747
7077
|
if(externalOrganizationId===undefined||externalOrganizationId===null){throw'Missing the required parameter "externalOrganizationId" when calling getExternalcontactsOrganizationIdentifiers';}return this.apiClient.callApi('/api/v2/externalcontacts/organizations/{externalOrganizationId}/identifiers','GET',{'externalOrganizationId':externalOrganizationId},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
6748
7078
|
* Fetch a note for an external organization
|
|
@@ -6806,7 +7136,7 @@ if(schemaId===undefined||schemaId===null){throw'Missing the required parameter "
|
|
|
6806
7136
|
* Get a list of schemas.
|
|
6807
7137
|
*
|
|
6808
7138
|
*/},{key:"getExternalcontactsOrganizationsSchemas",value:function getExternalcontactsOrganizationsSchemas(){return this.apiClient.callApi('/api/v2/externalcontacts/organizations/schemas','GET',{},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
6809
|
-
* Get
|
|
7139
|
+
* Get a specific named core type.
|
|
6810
7140
|
*
|
|
6811
7141
|
* @param {String} coreTypeName Name of the core type
|
|
6812
7142
|
*/},{key:"getExternalcontactsOrganizationsSchemasCoretype",value:function getExternalcontactsOrganizationsSchemasCoretype(coreTypeName){// verify the required parameter 'coreTypeName' is set
|
|
@@ -6844,7 +7174,6 @@ if(lookupVal===undefined||lookupVal===null){throw'Missing the required parameter
|
|
|
6844
7174
|
* @param {Object} opts Optional parameters
|
|
6845
7175
|
* @param {Number} opts.limit The number of contacts per page; must be between 10 and 200, default is 100
|
|
6846
7176
|
* @param {String} opts.cursor Indicates where to resume query results (not required for first page), each page returns a new cursor with a 24h TTL
|
|
6847
|
-
* getExternalcontactsScanContactsDivisionviewsAll is a preview method and is subject to both breaking and non-breaking changes at any time without notice
|
|
6848
7177
|
*/},{key:"getExternalcontactsScanContactsDivisionviewsAll",value:function getExternalcontactsScanContactsDivisionviewsAll(opts){opts=opts||{};return this.apiClient.callApi('/api/v2/externalcontacts/scan/contacts/divisionviews/all','GET',{},{'limit':opts['limit'],'cursor':opts['cursor']},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
6849
7178
|
* Scan for notes using paging
|
|
6850
7179
|
*
|
|
@@ -6858,7 +7187,6 @@ if(lookupVal===undefined||lookupVal===null){throw'Missing the required parameter
|
|
|
6858
7187
|
* @param {Object} opts Optional parameters
|
|
6859
7188
|
* @param {Number} opts.limit The number of notes per page; must be between 10 and 200, default is 100
|
|
6860
7189
|
* @param {String} opts.cursor Indicates where to resume query results (not required for first page), each page returns a new cursor with a 24h TTL
|
|
6861
|
-
* getExternalcontactsScanNotesDivisionviewsAll is a preview method and is subject to both breaking and non-breaking changes at any time without notice
|
|
6862
7190
|
*/},{key:"getExternalcontactsScanNotesDivisionviewsAll",value:function getExternalcontactsScanNotesDivisionviewsAll(opts){opts=opts||{};return this.apiClient.callApi('/api/v2/externalcontacts/scan/notes/divisionviews/all','GET',{},{'limit':opts['limit'],'cursor':opts['cursor']},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
6863
7191
|
* Scan for external organizations using paging
|
|
6864
7192
|
*
|
|
@@ -6872,7 +7200,6 @@ if(lookupVal===undefined||lookupVal===null){throw'Missing the required parameter
|
|
|
6872
7200
|
* @param {Object} opts Optional parameters
|
|
6873
7201
|
* @param {Number} opts.limit The number of organizations per page; must be between 10 and 200, default is 100
|
|
6874
7202
|
* @param {String} opts.cursor Indicates where to resume query results (not required for first page), each page returns a new cursor with a 24h TTL
|
|
6875
|
-
* getExternalcontactsScanOrganizationsDivisionviewsAll is a preview method and is subject to both breaking and non-breaking changes at any time without notice
|
|
6876
7203
|
*/},{key:"getExternalcontactsScanOrganizationsDivisionviewsAll",value:function getExternalcontactsScanOrganizationsDivisionviewsAll(opts){opts=opts||{};return this.apiClient.callApi('/api/v2/externalcontacts/scan/organizations/divisionviews/all','GET',{},{'limit':opts['limit'],'cursor':opts['cursor']},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
6877
7204
|
* Scan for relationships
|
|
6878
7205
|
*
|
|
@@ -6886,7 +7213,6 @@ if(lookupVal===undefined||lookupVal===null){throw'Missing the required parameter
|
|
|
6886
7213
|
* @param {Object} opts Optional parameters
|
|
6887
7214
|
* @param {Number} opts.limit The number of relationships per page; must be between 10 and 200, default is 100
|
|
6888
7215
|
* @param {String} opts.cursor Indicates where to resume query results (not required for first page), each page returns a new cursor with a 24h TTL
|
|
6889
|
-
* getExternalcontactsScanRelationshipsDivisionviewsAll is a preview method and is subject to both breaking and non-breaking changes at any time without notice
|
|
6890
7216
|
*/},{key:"getExternalcontactsScanRelationshipsDivisionviewsAll",value:function getExternalcontactsScanRelationshipsDivisionviewsAll(opts){opts=opts||{};return this.apiClient.callApi('/api/v2/externalcontacts/scan/relationships/divisionviews/all','GET',{},{'limit':opts['limit'],'cursor':opts['cursor']},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
6891
7217
|
* Claim or release identifiers for a contact
|
|
6892
7218
|
*
|
|
@@ -6899,7 +7225,6 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
6899
7225
|
*
|
|
6900
7226
|
* @param {String} externalOrganizationId External Organization ID
|
|
6901
7227
|
* @param {Object} body ClaimRequest
|
|
6902
|
-
* patchExternalcontactsOrganizationIdentifiers is a preview method and is subject to both breaking and non-breaking changes at any time without notice
|
|
6903
7228
|
*/},{key:"patchExternalcontactsOrganizationIdentifiers",value:function patchExternalcontactsOrganizationIdentifiers(externalOrganizationId,body){// verify the required parameter 'externalOrganizationId' is set
|
|
6904
7229
|
if(externalOrganizationId===undefined||externalOrganizationId===null){throw'Missing the required parameter "externalOrganizationId" when calling patchExternalcontactsOrganizationIdentifiers';}// verify the required parameter 'body' is set
|
|
6905
7230
|
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling patchExternalcontactsOrganizationIdentifiers';}return this.apiClient.callApi('/api/v2/externalcontacts/organizations/{externalOrganizationId}/identifiers','PATCH',{'externalOrganizationId':externalOrganizationId},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
@@ -6916,7 +7241,6 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
6916
7241
|
* Bulk fetch contacts across divisions
|
|
6917
7242
|
*
|
|
6918
7243
|
* @param {Object} body Contact ids
|
|
6919
|
-
* postExternalcontactsBulkContactsDivisionviews is a preview method and is subject to both breaking and non-breaking changes at any time without notice
|
|
6920
7244
|
*/},{key:"postExternalcontactsBulkContactsDivisionviews",value:function postExternalcontactsBulkContactsDivisionviews(body){// verify the required parameter 'body' is set
|
|
6921
7245
|
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling postExternalcontactsBulkContactsDivisionviews';}return this.apiClient.callApi('/api/v2/externalcontacts/bulk/contacts/divisionviews','POST',{},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
6922
7246
|
* Bulk Enrich Contacts - Run up to 10 Enrich operations per request
|
|
@@ -6924,7 +7248,6 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
6924
7248
|
* @param {Object} body Contact Enrich Requests
|
|
6925
7249
|
* @param {Object} opts Optional parameters
|
|
6926
7250
|
* @param {Boolean} opts.dryRun If true, the request will not make any modifications, but will show you what the end result *would* be.
|
|
6927
|
-
* postExternalcontactsBulkContactsEnrich is a preview method and is subject to both breaking and non-breaking changes at any time without notice
|
|
6928
7251
|
*/},{key:"postExternalcontactsBulkContactsEnrich",value:function postExternalcontactsBulkContactsEnrich(body,opts){opts=opts||{};// verify the required parameter 'body' is set
|
|
6929
7252
|
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling postExternalcontactsBulkContactsEnrich';}return this.apiClient.callApi('/api/v2/externalcontacts/bulk/contacts/enrich','POST',{},{'dryRun':opts['dryRun']},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
6930
7253
|
* Bulk remove contacts
|
|
@@ -6975,7 +7298,6 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
6975
7298
|
* Bulk fetch organizations across divisions
|
|
6976
7299
|
*
|
|
6977
7300
|
* @param {Object} body Organizations ids
|
|
6978
|
-
* postExternalcontactsBulkOrganizationsDivisionviews is a preview method and is subject to both breaking and non-breaking changes at any time without notice
|
|
6979
7301
|
*/},{key:"postExternalcontactsBulkOrganizationsDivisionviews",value:function postExternalcontactsBulkOrganizationsDivisionviews(body){// verify the required parameter 'body' is set
|
|
6980
7302
|
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling postExternalcontactsBulkOrganizationsDivisionviews';}return this.apiClient.callApi('/api/v2/externalcontacts/bulk/organizations/divisionviews','POST',{},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
6981
7303
|
* Bulk enrich external organizations - Run up to 10 Enrich operations per request
|
|
@@ -6983,7 +7305,6 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
6983
7305
|
* @param {Object} body External Organization Enrich Requests
|
|
6984
7306
|
* @param {Object} opts Optional parameters
|
|
6985
7307
|
* @param {Boolean} opts.dryRun If true, the request will not make any modifications, but will show you what the end result *would* be.
|
|
6986
|
-
* postExternalcontactsBulkOrganizationsEnrich is a preview method and is subject to both breaking and non-breaking changes at any time without notice
|
|
6987
7308
|
*/},{key:"postExternalcontactsBulkOrganizationsEnrich",value:function postExternalcontactsBulkOrganizationsEnrich(body,opts){opts=opts||{};// verify the required parameter 'body' is set
|
|
6988
7309
|
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling postExternalcontactsBulkOrganizationsEnrich';}return this.apiClient.callApi('/api/v2/externalcontacts/bulk/organizations/enrich','POST',{},{'dryRun':opts['dryRun']},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
6989
7310
|
* Bulk remove organizations
|
|
@@ -7038,7 +7359,6 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
7038
7359
|
* @param {Object} body ContactEnrichRequest
|
|
7039
7360
|
* @param {Object} opts Optional parameters
|
|
7040
7361
|
* @param {Boolean} opts.dryRun If true, the request will not make any modifications, but will show you what the end result *would* be.
|
|
7041
|
-
* postExternalcontactsContactsEnrich is a preview method and is subject to both breaking and non-breaking changes at any time without notice
|
|
7042
7362
|
*/},{key:"postExternalcontactsContactsEnrich",value:function postExternalcontactsContactsEnrich(body,opts){opts=opts||{};// verify the required parameter 'body' is set
|
|
7043
7363
|
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling postExternalcontactsContactsEnrich';}return this.apiClient.callApi('/api/v2/externalcontacts/contacts/enrich','POST',{},{'dryRun':opts['dryRun']},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
7044
7364
|
* Create bulk export
|
|
@@ -7049,7 +7369,6 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
7049
7369
|
* Merge up to 25 contacts into a new contact record
|
|
7050
7370
|
* Merge operation may fail if the resulting mergeset exceeds our default limit of 52. The valueOverride field lets you override any of the Contact fields post-merge. If any Contact field is left null in `valueOverride`, it will be taken from the most recently-modified contact in the merge set. Exception for *phone/*email fields: Conflicting data will be moved to any other available phone/email fields in the merged contact.
|
|
7051
7371
|
* @param {Object} body MergeRequest
|
|
7052
|
-
* postExternalcontactsContactsMerge is a preview method and is subject to both breaking and non-breaking changes at any time without notice
|
|
7053
7372
|
*/},{key:"postExternalcontactsContactsMerge",value:function postExternalcontactsContactsMerge(body){// verify the required parameter 'body' is set
|
|
7054
7373
|
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling postExternalcontactsContactsMerge';}return this.apiClient.callApi('/api/v2/externalcontacts/contacts/merge','POST',{},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
7055
7374
|
* Create a schema
|
|
@@ -7075,7 +7394,6 @@ if(identifier===undefined||identifier===null){throw'Missing the required paramet
|
|
|
7075
7394
|
* @param {Object} identifier
|
|
7076
7395
|
* @param {Object} opts Optional parameters
|
|
7077
7396
|
* @param {Array.<String>} opts.expand which field, if any, to expand
|
|
7078
|
-
* postExternalcontactsIdentifierlookupContacts is a preview method and is subject to both breaking and non-breaking changes at any time without notice
|
|
7079
7397
|
*/},{key:"postExternalcontactsIdentifierlookupContacts",value:function postExternalcontactsIdentifierlookupContacts(identifier,opts){opts=opts||{};// verify the required parameter 'identifier' is set
|
|
7080
7398
|
if(identifier===undefined||identifier===null){throw'Missing the required parameter "identifier" when calling postExternalcontactsIdentifierlookupContacts';}return this.apiClient.callApi('/api/v2/externalcontacts/identifierlookup/contacts','POST',{},{'expand':this.apiClient.buildCollectionParam(opts['expand'],'multi')},{},{},identifier,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
7081
7399
|
* Fetch an external organization using an identifier type and value.
|
|
@@ -7083,7 +7401,6 @@ if(identifier===undefined||identifier===null){throw'Missing the required paramet
|
|
|
7083
7401
|
* @param {Object} identifier
|
|
7084
7402
|
* @param {Object} opts Optional parameters
|
|
7085
7403
|
* @param {Array.<String>} opts.expand which field, if any, to expand
|
|
7086
|
-
* postExternalcontactsIdentifierlookupOrganizations is a preview method and is subject to both breaking and non-breaking changes at any time without notice
|
|
7087
7404
|
*/},{key:"postExternalcontactsIdentifierlookupOrganizations",value:function postExternalcontactsIdentifierlookupOrganizations(identifier,opts){opts=opts||{};// verify the required parameter 'identifier' is set
|
|
7088
7405
|
if(identifier===undefined||identifier===null){throw'Missing the required parameter "identifier" when calling postExternalcontactsIdentifierlookupOrganizations';}return this.apiClient.callApi('/api/v2/externalcontacts/identifierlookup/organizations','POST',{},{'expand':this.apiClient.buildCollectionParam(opts['expand'],'multi')},{},{},identifier,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
7089
7406
|
* Create CSV import job
|
|
@@ -7134,7 +7451,6 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
7134
7451
|
* @param {Object} body ExternalOrgEnrichRequest
|
|
7135
7452
|
* @param {Object} opts Optional parameters
|
|
7136
7453
|
* @param {Boolean} opts.dryRun If true, the request will not make any modifications, but will show you what the end result *would* be.
|
|
7137
|
-
* postExternalcontactsOrganizationsEnrich is a preview method and is subject to both breaking and non-breaking changes at any time without notice
|
|
7138
7454
|
*/},{key:"postExternalcontactsOrganizationsEnrich",value:function postExternalcontactsOrganizationsEnrich(body,opts){opts=opts||{};// verify the required parameter 'body' is set
|
|
7139
7455
|
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling postExternalcontactsOrganizationsEnrich';}return this.apiClient.callApi('/api/v2/externalcontacts/organizations/enrich','POST',{},{'dryRun':opts['dryRun']},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
7140
7456
|
* Create a schema
|
|
@@ -7244,7 +7560,7 @@ if(relationshipId===undefined||relationshipId===null){throw'Missing the required
|
|
|
7244
7560
|
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(){/**
|
|
7245
7561
|
* Fax service.
|
|
7246
7562
|
* @module purecloud-platform-client-v2/api/FaxApi
|
|
7247
|
-
* @version
|
|
7563
|
+
* @version 222.0.0
|
|
7248
7564
|
*//**
|
|
7249
7565
|
* Constructs a new FaxApi.
|
|
7250
7566
|
* @alias module:purecloud-platform-client-v2/api/FaxApi
|
|
@@ -7293,7 +7609,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
7293
7609
|
*/},{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(){/**
|
|
7294
7610
|
* Flows service.
|
|
7295
7611
|
* @module purecloud-platform-client-v2/api/FlowsApi
|
|
7296
|
-
* @version
|
|
7612
|
+
* @version 222.0.0
|
|
7297
7613
|
*//**
|
|
7298
7614
|
* Constructs a new FlowsApi.
|
|
7299
7615
|
* @alias module:purecloud-platform-client-v2/api/FlowsApi
|
|
@@ -7341,7 +7657,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
7341
7657
|
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(){/**
|
|
7342
7658
|
* Gamification service.
|
|
7343
7659
|
* @module purecloud-platform-client-v2/api/GamificationApi
|
|
7344
|
-
* @version
|
|
7660
|
+
* @version 222.0.0
|
|
7345
7661
|
*//**
|
|
7346
7662
|
* Constructs a new GamificationApi.
|
|
7347
7663
|
* @alias module:purecloud-platform-client-v2/api/GamificationApi
|
|
@@ -7994,7 +8310,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
7994
8310
|
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(){/**
|
|
7995
8311
|
* GeneralDataProtectionRegulation service.
|
|
7996
8312
|
* @module purecloud-platform-client-v2/api/GeneralDataProtectionRegulationApi
|
|
7997
|
-
* @version
|
|
8313
|
+
* @version 222.0.0
|
|
7998
8314
|
*//**
|
|
7999
8315
|
* Constructs a new GeneralDataProtectionRegulationApi.
|
|
8000
8316
|
* @alias module:purecloud-platform-client-v2/api/GeneralDataProtectionRegulationApi
|
|
@@ -8029,7 +8345,7 @@ if(searchValue===undefined||searchValue===null){throw'Missing the required param
|
|
|
8029
8345
|
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(){/**
|
|
8030
8346
|
* Geolocation service.
|
|
8031
8347
|
* @module purecloud-platform-client-v2/api/GeolocationApi
|
|
8032
|
-
* @version
|
|
8348
|
+
* @version 222.0.0
|
|
8033
8349
|
*//**
|
|
8034
8350
|
* Constructs a new GeolocationApi.
|
|
8035
8351
|
* @alias module:purecloud-platform-client-v2/api/GeolocationApi
|
|
@@ -8063,7 +8379,7 @@ if(clientId===undefined||clientId===null){throw'Missing the required parameter "
|
|
|
8063
8379
|
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(){/**
|
|
8064
8380
|
* Greetings service.
|
|
8065
8381
|
* @module purecloud-platform-client-v2/api/GreetingsApi
|
|
8066
|
-
* @version
|
|
8382
|
+
* @version 222.0.0
|
|
8067
8383
|
*//**
|
|
8068
8384
|
* Constructs a new GreetingsApi.
|
|
8069
8385
|
* @alias module:purecloud-platform-client-v2/api/GreetingsApi
|
|
@@ -8170,7 +8486,7 @@ if(userId===undefined||userId===null){throw'Missing the required parameter "user
|
|
|
8170
8486
|
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(){/**
|
|
8171
8487
|
* Groups service.
|
|
8172
8488
|
* @module purecloud-platform-client-v2/api/GroupsApi
|
|
8173
|
-
* @version
|
|
8489
|
+
* @version 222.0.0
|
|
8174
8490
|
*//**
|
|
8175
8491
|
* Constructs a new GroupsApi.
|
|
8176
8492
|
* @alias module:purecloud-platform-client-v2/api/GroupsApi
|
|
@@ -8303,7 +8619,7 @@ if(groupId===undefined||groupId===null){throw'Missing the required parameter "gr
|
|
|
8303
8619
|
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(){/**
|
|
8304
8620
|
* IdentityProvider service.
|
|
8305
8621
|
* @module purecloud-platform-client-v2/api/IdentityProviderApi
|
|
8306
|
-
* @version
|
|
8622
|
+
* @version 222.0.0
|
|
8307
8623
|
*//**
|
|
8308
8624
|
* Constructs a new IdentityProviderApi.
|
|
8309
8625
|
* @alias module:purecloud-platform-client-v2/api/IdentityProviderApi
|
|
@@ -8459,7 +8775,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
8459
8775
|
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(){/**
|
|
8460
8776
|
* InfrastructureAsCode service.
|
|
8461
8777
|
* @module purecloud-platform-client-v2/api/InfrastructureAsCodeApi
|
|
8462
|
-
* @version
|
|
8778
|
+
* @version 222.0.0
|
|
8463
8779
|
*//**
|
|
8464
8780
|
* Constructs a new InfrastructureAsCodeApi.
|
|
8465
8781
|
* @alias module:purecloud-platform-client-v2/api/InfrastructureAsCodeApi
|
|
@@ -8513,7 +8829,7 @@ if(jobId===undefined||jobId===null){throw'Missing the required parameter "jobId"
|
|
|
8513
8829
|
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(){/**
|
|
8514
8830
|
* Integrations service.
|
|
8515
8831
|
* @module purecloud-platform-client-v2/api/IntegrationsApi
|
|
8516
|
-
* @version
|
|
8832
|
+
* @version 222.0.0
|
|
8517
8833
|
*//**
|
|
8518
8834
|
* Constructs a new IntegrationsApi.
|
|
8519
8835
|
* @alias module:purecloud-platform-client-v2/api/IntegrationsApi
|
|
@@ -9152,7 +9468,7 @@ if(ucIntegrationId===undefined||ucIntegrationId===null){throw'Missing the requir
|
|
|
9152
9468
|
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(){/**
|
|
9153
9469
|
* Journey service.
|
|
9154
9470
|
* @module purecloud-platform-client-v2/api/JourneyApi
|
|
9155
|
-
* @version
|
|
9471
|
+
* @version 222.0.0
|
|
9156
9472
|
*//**
|
|
9157
9473
|
* Constructs a new JourneyApi.
|
|
9158
9474
|
* @alias module:purecloud-platform-client-v2/api/JourneyApi
|
|
@@ -9632,7 +9948,7 @@ if(versionId===undefined||versionId===null){throw'Missing the required parameter
|
|
|
9632
9948
|
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling putJourneyViewVersion';}return this.apiClient.callApi('/api/v2/journey/views/{viewId}/versions/{versionId}','PUT',{'viewId':viewId,'versionId':versionId},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}}]);}();var KnowledgeApi=/*#__PURE__*/function(){/**
|
|
9633
9949
|
* Knowledge service.
|
|
9634
9950
|
* @module purecloud-platform-client-v2/api/KnowledgeApi
|
|
9635
|
-
* @version
|
|
9951
|
+
* @version 222.0.0
|
|
9636
9952
|
*//**
|
|
9637
9953
|
* Constructs a new KnowledgeApi.
|
|
9638
9954
|
* @alias module:purecloud-platform-client-v2/api/KnowledgeApi
|
|
@@ -10695,7 +11011,7 @@ if(sourceId===undefined||sourceId===null){throw'Missing the required parameter "
|
|
|
10695
11011
|
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling putKnowledgeKnowledgebaseSourcesServicenowSourceId';}return this.apiClient.callApi('/api/v2/knowledge/knowledgebases/{knowledgeBaseId}/sources/servicenow/{sourceId}','PUT',{'knowledgeBaseId':knowledgeBaseId,'sourceId':sourceId},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}}]);}();var LanguageUnderstandingApi=/*#__PURE__*/function(){/**
|
|
10696
11012
|
* LanguageUnderstanding service.
|
|
10697
11013
|
* @module purecloud-platform-client-v2/api/LanguageUnderstandingApi
|
|
10698
|
-
* @version
|
|
11014
|
+
* @version 222.0.0
|
|
10699
11015
|
*//**
|
|
10700
11016
|
* Constructs a new LanguageUnderstandingApi.
|
|
10701
11017
|
* @alias module:purecloud-platform-client-v2/api/LanguageUnderstandingApi
|
|
@@ -10954,7 +11270,7 @@ if(domainVersionId===undefined||domainVersionId===null){throw'Missing the requir
|
|
|
10954
11270
|
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(){/**
|
|
10955
11271
|
* Languages service.
|
|
10956
11272
|
* @module purecloud-platform-client-v2/api/LanguagesApi
|
|
10957
|
-
* @version
|
|
11273
|
+
* @version 222.0.0
|
|
10958
11274
|
*//**
|
|
10959
11275
|
* Constructs a new LanguagesApi.
|
|
10960
11276
|
* @alias module:purecloud-platform-client-v2/api/LanguagesApi
|
|
@@ -11009,7 +11325,7 @@ if(userId===undefined||userId===null){throw'Missing the required parameter "user
|
|
|
11009
11325
|
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(){/**
|
|
11010
11326
|
* Learning service.
|
|
11011
11327
|
* @module purecloud-platform-client-v2/api/LearningApi
|
|
11012
|
-
* @version
|
|
11328
|
+
* @version 222.0.0
|
|
11013
11329
|
*//**
|
|
11014
11330
|
* Constructs a new LearningApi.
|
|
11015
11331
|
* @alias module:purecloud-platform-client-v2/api/LearningApi
|
|
@@ -11280,7 +11596,7 @@ if(moduleId===undefined||moduleId===null){throw'Missing the required parameter "
|
|
|
11280
11596
|
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(){/**
|
|
11281
11597
|
* License service.
|
|
11282
11598
|
* @module purecloud-platform-client-v2/api/LicenseApi
|
|
11283
|
-
* @version
|
|
11599
|
+
* @version 222.0.0
|
|
11284
11600
|
*//**
|
|
11285
11601
|
* Constructs a new LicenseApi.
|
|
11286
11602
|
* @alias module:purecloud-platform-client-v2/api/LicenseApi
|
|
@@ -11334,7 +11650,7 @@ if(featureName===undefined||featureName===null){throw'Missing the required param
|
|
|
11334
11650
|
*/},{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(){/**
|
|
11335
11651
|
* Locations service.
|
|
11336
11652
|
* @module purecloud-platform-client-v2/api/LocationsApi
|
|
11337
|
-
* @version
|
|
11653
|
+
* @version 222.0.0
|
|
11338
11654
|
*//**
|
|
11339
11655
|
* Constructs a new LocationsApi.
|
|
11340
11656
|
* @alias module:purecloud-platform-client-v2/api/LocationsApi
|
|
@@ -11393,7 +11709,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
11393
11709
|
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(){/**
|
|
11394
11710
|
* LogCapture service.
|
|
11395
11711
|
* @module purecloud-platform-client-v2/api/LogCaptureApi
|
|
11396
|
-
* @version
|
|
11712
|
+
* @version 222.0.0
|
|
11397
11713
|
*//**
|
|
11398
11714
|
* Constructs a new LogCaptureApi.
|
|
11399
11715
|
* @alias module:purecloud-platform-client-v2/api/LogCaptureApi
|
|
@@ -11443,7 +11759,7 @@ if(userId===undefined||userId===null){throw'Missing the required parameter "user
|
|
|
11443
11759
|
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(){/**
|
|
11444
11760
|
* Messaging service.
|
|
11445
11761
|
* @module purecloud-platform-client-v2/api/MessagingApi
|
|
11446
|
-
* @version
|
|
11762
|
+
* @version 222.0.0
|
|
11447
11763
|
*//**
|
|
11448
11764
|
* Constructs a new MessagingApi.
|
|
11449
11765
|
* @alias module:purecloud-platform-client-v2/api/MessagingApi
|
|
@@ -11533,7 +11849,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
11533
11849
|
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(){/**
|
|
11534
11850
|
* MobileDevices service.
|
|
11535
11851
|
* @module purecloud-platform-client-v2/api/MobileDevicesApi
|
|
11536
|
-
* @version
|
|
11852
|
+
* @version 222.0.0
|
|
11537
11853
|
*//**
|
|
11538
11854
|
* Constructs a new MobileDevicesApi.
|
|
11539
11855
|
* @alias module:purecloud-platform-client-v2/api/MobileDevicesApi
|
|
@@ -11572,7 +11888,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
11572
11888
|
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(){/**
|
|
11573
11889
|
* Notifications service.
|
|
11574
11890
|
* @module purecloud-platform-client-v2/api/NotificationsApi
|
|
11575
|
-
* @version
|
|
11891
|
+
* @version 222.0.0
|
|
11576
11892
|
*//**
|
|
11577
11893
|
* Constructs a new NotificationsApi.
|
|
11578
11894
|
* @alias module:purecloud-platform-client-v2/api/NotificationsApi
|
|
@@ -11629,7 +11945,7 @@ if(channelId===undefined||channelId===null){throw'Missing the required parameter
|
|
|
11629
11945
|
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(){/**
|
|
11630
11946
|
* OAuth service.
|
|
11631
11947
|
* @module purecloud-platform-client-v2/api/OAuthApi
|
|
11632
|
-
* @version
|
|
11948
|
+
* @version 222.0.0
|
|
11633
11949
|
*//**
|
|
11634
11950
|
* Constructs a new OAuthApi.
|
|
11635
11951
|
* @alias module:purecloud-platform-client-v2/api/OAuthApi
|
|
@@ -11714,7 +12030,7 @@ if(clientId===undefined||clientId===null){throw'Missing the required parameter "
|
|
|
11714
12030
|
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(){/**
|
|
11715
12031
|
* Objects service.
|
|
11716
12032
|
* @module purecloud-platform-client-v2/api/ObjectsApi
|
|
11717
|
-
* @version
|
|
12033
|
+
* @version 222.0.0
|
|
11718
12034
|
*//**
|
|
11719
12035
|
* Constructs a new ObjectsApi.
|
|
11720
12036
|
* @alias module:purecloud-platform-client-v2/api/ObjectsApi
|
|
@@ -11800,7 +12116,7 @@ if(divisionId===undefined||divisionId===null){throw'Missing the required paramet
|
|
|
11800
12116
|
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(){/**
|
|
11801
12117
|
* OperationalEvents service.
|
|
11802
12118
|
* @module purecloud-platform-client-v2/api/OperationalEventsApi
|
|
11803
|
-
* @version
|
|
12119
|
+
* @version 222.0.0
|
|
11804
12120
|
*//**
|
|
11805
12121
|
* Constructs a new OperationalEventsApi.
|
|
11806
12122
|
* @alias module:purecloud-platform-client-v2/api/OperationalEventsApi
|
|
@@ -11831,7 +12147,7 @@ if(eventDefinitionId===undefined||eventDefinitionId===null){throw'Missing the re
|
|
|
11831
12147
|
*/},{key:"postUsageEventsQuery",value:function postUsageEventsQuery(opts){opts=opts||{};return this.apiClient.callApi('/api/v2/usage/events/query','POST',{},{'before':opts['before'],'after':opts['after'],'pageSize':opts['pageSize']},{},{},opts['body'],['PureCloud OAuth'],['application/json'],['application/json']);}}]);}();var OrganizationApi=/*#__PURE__*/function(){/**
|
|
11832
12148
|
* Organization service.
|
|
11833
12149
|
* @module purecloud-platform-client-v2/api/OrganizationApi
|
|
11834
|
-
* @version
|
|
12150
|
+
* @version 222.0.0
|
|
11835
12151
|
*//**
|
|
11836
12152
|
* Constructs a new OrganizationApi.
|
|
11837
12153
|
* @alias module:purecloud-platform-client-v2/api/OrganizationApi
|
|
@@ -11936,7 +12252,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
11936
12252
|
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(){/**
|
|
11937
12253
|
* OrganizationAuthorization service.
|
|
11938
12254
|
* @module purecloud-platform-client-v2/api/OrganizationAuthorizationApi
|
|
11939
|
-
* @version
|
|
12255
|
+
* @version 222.0.0
|
|
11940
12256
|
*//**
|
|
11941
12257
|
* Constructs a new OrganizationAuthorizationApi.
|
|
11942
12258
|
* @alias module:purecloud-platform-client-v2/api/OrganizationAuthorizationApi
|
|
@@ -12270,7 +12586,7 @@ if(trustorOrgId===undefined||trustorOrgId===null){throw'Missing the required par
|
|
|
12270
12586
|
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(){/**
|
|
12271
12587
|
* Outbound service.
|
|
12272
12588
|
* @module purecloud-platform-client-v2/api/OutboundApi
|
|
12273
|
-
* @version
|
|
12589
|
+
* @version 222.0.0
|
|
12274
12590
|
*//**
|
|
12275
12591
|
* Constructs a new OutboundApi.
|
|
12276
12592
|
* @alias module:purecloud-platform-client-v2/api/OutboundApi
|
|
@@ -13401,7 +13717,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
13401
13717
|
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(){/**
|
|
13402
13718
|
* Presence service.
|
|
13403
13719
|
* @module purecloud-platform-client-v2/api/PresenceApi
|
|
13404
|
-
* @version
|
|
13720
|
+
* @version 222.0.0
|
|
13405
13721
|
*//**
|
|
13406
13722
|
* Constructs a new PresenceApi.
|
|
13407
13723
|
* @alias module:purecloud-platform-client-v2/api/PresenceApi
|
|
@@ -13574,7 +13890,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
13574
13890
|
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(){/**
|
|
13575
13891
|
* ProcessAutomation service.
|
|
13576
13892
|
* @module purecloud-platform-client-v2/api/ProcessAutomationApi
|
|
13577
|
-
* @version
|
|
13893
|
+
* @version 222.0.0
|
|
13578
13894
|
*//**
|
|
13579
13895
|
* Constructs a new ProcessAutomationApi.
|
|
13580
13896
|
* @alias module:purecloud-platform-client-v2/api/ProcessAutomationApi
|
|
@@ -13637,7 +13953,7 @@ if(triggerId===undefined||triggerId===null){throw'Missing the required parameter
|
|
|
13637
13953
|
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(){/**
|
|
13638
13954
|
* Quality service.
|
|
13639
13955
|
* @module purecloud-platform-client-v2/api/QualityApi
|
|
13640
|
-
* @version
|
|
13956
|
+
* @version 222.0.0
|
|
13641
13957
|
*//**
|
|
13642
13958
|
* Constructs a new QualityApi.
|
|
13643
13959
|
* @alias module:purecloud-platform-client-v2/api/QualityApi
|
|
@@ -14115,7 +14431,7 @@ if(customerSurveyUrl===undefined||customerSurveyUrl===null){throw'Missing the re
|
|
|
14115
14431
|
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(){/**
|
|
14116
14432
|
* Recording service.
|
|
14117
14433
|
* @module purecloud-platform-client-v2/api/RecordingApi
|
|
14118
|
-
* @version
|
|
14434
|
+
* @version 222.0.0
|
|
14119
14435
|
*//**
|
|
14120
14436
|
* Constructs a new RecordingApi.
|
|
14121
14437
|
* @alias module:purecloud-platform-client-v2/api/RecordingApi
|
|
@@ -14514,7 +14830,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
14514
14830
|
*/},{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(){/**
|
|
14515
14831
|
* ResponseManagement service.
|
|
14516
14832
|
* @module purecloud-platform-client-v2/api/ResponseManagementApi
|
|
14517
|
-
* @version
|
|
14833
|
+
* @version 222.0.0
|
|
14518
14834
|
*//**
|
|
14519
14835
|
* Constructs a new ResponseManagementApi.
|
|
14520
14836
|
* @alias module:purecloud-platform-client-v2/api/ResponseManagementApi
|
|
@@ -14635,7 +14951,7 @@ if(responseAssetId===undefined||responseAssetId===null){throw'Missing the requir
|
|
|
14635
14951
|
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(){/**
|
|
14636
14952
|
* Routing service.
|
|
14637
14953
|
* @module purecloud-platform-client-v2/api/RoutingApi
|
|
14638
|
-
* @version
|
|
14954
|
+
* @version 222.0.0
|
|
14639
14955
|
*//**
|
|
14640
14956
|
* Constructs a new RoutingApi.
|
|
14641
14957
|
* @alias module:purecloud-platform-client-v2/api/RoutingApi
|
|
@@ -14816,14 +15132,15 @@ if(domainId===undefined||domainId===null){throw'Missing the required parameter "
|
|
|
14816
15132
|
*
|
|
14817
15133
|
* @param {String} domainName email domain
|
|
14818
15134
|
* @param {String} routeId route ID
|
|
14819
|
-
|
|
15135
|
+
* @param {Object} opts Optional parameters
|
|
15136
|
+
* @param {Array.<String>} opts.expand Which fields, if any, to expand
|
|
15137
|
+
*/},{key:"getRoutingEmailDomainRoute",value:function getRoutingEmailDomainRoute(domainName,routeId,opts){opts=opts||{};// verify the required parameter 'domainName' is set
|
|
14820
15138
|
if(domainName===undefined||domainName===null){throw'Missing the required parameter "domainName" when calling getRoutingEmailDomainRoute';}// verify the required parameter 'routeId' is set
|
|
14821
|
-
if(routeId===undefined||routeId===null){throw'Missing the required parameter "routeId" when calling getRoutingEmailDomainRoute';}return this.apiClient.callApi('/api/v2/routing/email/domains/{domainName}/routes/{routeId}','GET',{'domainName':domainName,'routeId':routeId},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
15139
|
+
if(routeId===undefined||routeId===null){throw'Missing the required parameter "routeId" when calling getRoutingEmailDomainRoute';}return this.apiClient.callApi('/api/v2/routing/email/domains/{domainName}/routes/{routeId}','GET',{'domainName':domainName,'routeId':routeId},{'expand':this.apiClient.buildCollectionParam(opts['expand'],'multi')},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
14822
15140
|
* Get a route identity resolution setting.
|
|
14823
15141
|
*
|
|
14824
15142
|
* @param {String} domainName email domain
|
|
14825
15143
|
* @param {String} routeId route ID
|
|
14826
|
-
* getRoutingEmailDomainRouteIdentityresolution is a preview method and is subject to both breaking and non-breaking changes at any time without notice
|
|
14827
15144
|
*/},{key:"getRoutingEmailDomainRouteIdentityresolution",value:function getRoutingEmailDomainRouteIdentityresolution(domainName,routeId){// verify the required parameter 'domainName' is set
|
|
14828
15145
|
if(domainName===undefined||domainName===null){throw'Missing the required parameter "domainName" when calling getRoutingEmailDomainRouteIdentityresolution';}// verify the required parameter 'routeId' is set
|
|
14829
15146
|
if(routeId===undefined||routeId===null){throw'Missing the required parameter "routeId" when calling getRoutingEmailDomainRouteIdentityresolution';}return this.apiClient.callApi('/api/v2/routing/email/domains/{domainName}/routes/{routeId}/identityresolution','GET',{'domainName':domainName,'routeId':routeId},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
@@ -14834,8 +15151,9 @@ if(routeId===undefined||routeId===null){throw'Missing the required parameter "ro
|
|
|
14834
15151
|
* @param {Number} opts.pageSize Page size (default to 25)
|
|
14835
15152
|
* @param {Number} opts.pageNumber Page number (default to 1)
|
|
14836
15153
|
* @param {String} opts.pattern Filter routes by the route's pattern property
|
|
15154
|
+
* @param {Array.<String>} opts.expand Which fields, if any, to expand
|
|
14837
15155
|
*/},{key:"getRoutingEmailDomainRoutes",value:function getRoutingEmailDomainRoutes(domainName,opts){opts=opts||{};// verify the required parameter 'domainName' is set
|
|
14838
|
-
if(domainName===undefined||domainName===null){throw'Missing the required parameter "domainName" when calling getRoutingEmailDomainRoutes';}return this.apiClient.callApi('/api/v2/routing/email/domains/{domainName}/routes','GET',{'domainName':domainName},{'pageSize':opts['pageSize'],'pageNumber':opts['pageNumber'],'pattern':opts['pattern']},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
15156
|
+
if(domainName===undefined||domainName===null){throw'Missing the required parameter "domainName" when calling getRoutingEmailDomainRoutes';}return this.apiClient.callApi('/api/v2/routing/email/domains/{domainName}/routes','GET',{'domainName':domainName},{'pageSize':opts['pageSize'],'pageNumber':opts['pageNumber'],'pattern':opts['pattern'],'expand':this.apiClient.buildCollectionParam(opts['expand'],'multi')},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
14839
15157
|
* Get domains
|
|
14840
15158
|
*
|
|
14841
15159
|
* @param {Object} opts Optional parameters
|
|
@@ -14931,8 +15249,10 @@ if(predictorId===undefined||predictorId===null){throw'Missing the required param
|
|
|
14931
15249
|
* Get details about this queue.
|
|
14932
15250
|
*
|
|
14933
15251
|
* @param {String} queueId Queue ID
|
|
14934
|
-
|
|
14935
|
-
|
|
15252
|
+
* @param {Object} opts Optional parameters
|
|
15253
|
+
* @param {Array.<String>} opts.expand Which fields, if any, to expand
|
|
15254
|
+
*/},{key:"getRoutingQueue",value:function getRoutingQueue(queueId,opts){opts=opts||{};// verify the required parameter 'queueId' is set
|
|
15255
|
+
if(queueId===undefined||queueId===null){throw'Missing the required parameter "queueId" when calling getRoutingQueue';}return this.apiClient.callApi('/api/v2/routing/queues/{queueId}','GET',{'queueId':queueId},{'expand':this.apiClient.buildCollectionParam(opts['expand'],'multi')},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
14936
15256
|
* Get an assistant associated with a queue.
|
|
14937
15257
|
*
|
|
14938
15258
|
* @param {String} queueId Queue ID
|
|
@@ -14962,7 +15282,6 @@ if(queueId===undefined||queueId===null){throw'Missing the required parameter "qu
|
|
|
14962
15282
|
* Get Queue IdentityResolution Settings.
|
|
14963
15283
|
*
|
|
14964
15284
|
* @param {String} queueId Queue ID
|
|
14965
|
-
* getRoutingQueueIdentityresolution is a preview method and is subject to both breaking and non-breaking changes at any time without notice
|
|
14966
15285
|
*/},{key:"getRoutingQueueIdentityresolution",value:function getRoutingQueueIdentityresolution(queueId){// verify the required parameter 'queueId' is set
|
|
14967
15286
|
if(queueId===undefined||queueId===null){throw'Missing the required parameter "queueId" when calling getRoutingQueueIdentityresolution';}return this.apiClient.callApi('/api/v2/routing/queues/{queueId}/identityresolution','GET',{'queueId':queueId},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
14968
15287
|
* Get Estimated Wait Time
|
|
@@ -15030,7 +15349,8 @@ if(queueId===undefined||queueId===null){throw'Missing the required parameter "qu
|
|
|
15030
15349
|
* @param {Array.<String>} opts.peerId Include only queues with the specified peer ID(s)
|
|
15031
15350
|
* @param {String} opts.cannedResponseLibraryId Include only queues explicitly associated with the specified canned response library ID
|
|
15032
15351
|
* @param {Boolean} opts.hasPeer Include only queues with a peer ID
|
|
15033
|
-
|
|
15352
|
+
* @param {Array.<String>} opts.expand Which fields, if any, to expand
|
|
15353
|
+
*/},{key:"getRoutingQueues",value:function getRoutingQueues(opts){opts=opts||{};return this.apiClient.callApi('/api/v2/routing/queues','GET',{},{'pageNumber':opts['pageNumber'],'pageSize':opts['pageSize'],'sortOrder':opts['sortOrder'],'name':opts['name'],'id':this.apiClient.buildCollectionParam(opts['id'],'multi'),'divisionId':this.apiClient.buildCollectionParam(opts['divisionId'],'multi'),'peerId':this.apiClient.buildCollectionParam(opts['peerId'],'multi'),'cannedResponseLibraryId':opts['cannedResponseLibraryId'],'hasPeer':opts['hasPeer'],'expand':this.apiClient.buildCollectionParam(opts['expand'],'multi')},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
15034
15354
|
* Get a paged listing of simplified queue objects, filterable by name, queue ID(s), or division ID(s).
|
|
15035
15355
|
*
|
|
15036
15356
|
* @param {Object} opts Optional parameters
|
|
@@ -15136,7 +15456,6 @@ if(phoneNumberType===undefined||phoneNumberType===null){throw'Missing the requir
|
|
|
15136
15456
|
* Get a SMS identity resolution settings.
|
|
15137
15457
|
*
|
|
15138
15458
|
* @param {String} addressId Address ID
|
|
15139
|
-
* getRoutingSmsIdentityresolutionPhonenumber is a preview method and is subject to both breaking and non-breaking changes at any time without notice
|
|
15140
15459
|
*/},{key:"getRoutingSmsIdentityresolutionPhonenumber",value:function getRoutingSmsIdentityresolutionPhonenumber(addressId){// verify the required parameter 'addressId' is set
|
|
15141
15460
|
if(addressId===undefined||addressId===null){throw'Missing the required parameter "addressId" when calling getRoutingSmsIdentityresolutionPhonenumber';}return this.apiClient.callApi('/api/v2/routing/sms/identityresolution/phonenumbers/{addressId}','GET',{'addressId':addressId},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
15142
15461
|
* Get a phone number provisioned for SMS.
|
|
@@ -15160,7 +15479,8 @@ if(phoneNumberId===undefined||phoneNumberId===null){throw'Missing the required p
|
|
|
15160
15479
|
* @param {String} opts.language A language tag (which is sometimes referred to as a locale identifier) to use to localize country field and sort operations (default to en-US)
|
|
15161
15480
|
* @param {String} opts.integrationId Filter on the Genesys Cloud integration id to which the phone number belongs to
|
|
15162
15481
|
* @param {String} opts.supportedContentId Filter based on the supported content ID
|
|
15163
|
-
|
|
15482
|
+
* @param {Array.<String>} opts.expand Which fields, if any, to expand
|
|
15483
|
+
*/},{key:"getRoutingSmsPhonenumbers",value:function getRoutingSmsPhonenumbers(opts){opts=opts||{};return this.apiClient.callApi('/api/v2/routing/sms/phonenumbers','GET',{},{'phoneNumber':opts['phoneNumber'],'phoneNumberType':this.apiClient.buildCollectionParam(opts['phoneNumberType'],'multi'),'phoneNumberStatus':this.apiClient.buildCollectionParam(opts['phoneNumberStatus'],'multi'),'countryCode':this.apiClient.buildCollectionParam(opts['countryCode'],'multi'),'pageSize':opts['pageSize'],'pageNumber':opts['pageNumber'],'sortBy':opts['sortBy'],'sortOrder':opts['sortOrder'],'language':opts['language'],'integration.id':opts['integrationId'],'supportedContent.id':opts['supportedContentId'],'expand':this.apiClient.buildCollectionParam(opts['expand'],'multi')},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
15164
15484
|
* Get the user's Direct Routing Backup settings.
|
|
15165
15485
|
*
|
|
15166
15486
|
* @param {String} userId User ID
|
|
@@ -15581,7 +15901,6 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
15581
15901
|
* @param {String} domainName email domain
|
|
15582
15902
|
* @param {String} routeId route ID
|
|
15583
15903
|
* @param {Object} body
|
|
15584
|
-
* putRoutingEmailDomainRouteIdentityresolution is a preview method and is subject to both breaking and non-breaking changes at any time without notice
|
|
15585
15904
|
*/},{key:"putRoutingEmailDomainRouteIdentityresolution",value:function putRoutingEmailDomainRouteIdentityresolution(domainName,routeId,body){// verify the required parameter 'domainName' is set
|
|
15586
15905
|
if(domainName===undefined||domainName===null){throw'Missing the required parameter "domainName" when calling putRoutingEmailDomainRouteIdentityresolution';}// verify the required parameter 'routeId' is set
|
|
15587
15906
|
if(routeId===undefined||routeId===null){throw'Missing the required parameter "routeId" when calling putRoutingEmailDomainRouteIdentityresolution';}// verify the required parameter 'body' is set
|
|
@@ -15609,7 +15928,6 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
15609
15928
|
*
|
|
15610
15929
|
* @param {String} queueId Queue ID
|
|
15611
15930
|
* @param {Object} body
|
|
15612
|
-
* putRoutingQueueIdentityresolution is a preview method and is subject to both breaking and non-breaking changes at any time without notice
|
|
15613
15931
|
*/},{key:"putRoutingQueueIdentityresolution",value:function putRoutingQueueIdentityresolution(queueId,body){// verify the required parameter 'queueId' is set
|
|
15614
15932
|
if(queueId===undefined||queueId===null){throw'Missing the required parameter "queueId" when calling putRoutingQueueIdentityresolution';}// verify the required parameter 'body' is set
|
|
15615
15933
|
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling putRoutingQueueIdentityresolution';}return this.apiClient.callApi('/api/v2/routing/queues/{queueId}/identityresolution','PUT',{'queueId':queueId},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
@@ -15627,7 +15945,6 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
15627
15945
|
*
|
|
15628
15946
|
* @param {String} addressId Address ID
|
|
15629
15947
|
* @param {Object} body
|
|
15630
|
-
* putRoutingSmsIdentityresolutionPhonenumber is a preview method and is subject to both breaking and non-breaking changes at any time without notice
|
|
15631
15948
|
*/},{key:"putRoutingSmsIdentityresolutionPhonenumber",value:function putRoutingSmsIdentityresolutionPhonenumber(addressId,body){// verify the required parameter 'addressId' is set
|
|
15632
15949
|
if(addressId===undefined||addressId===null){throw'Missing the required parameter "addressId" when calling putRoutingSmsIdentityresolutionPhonenumber';}// verify the required parameter 'body' is set
|
|
15633
15950
|
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling putRoutingSmsIdentityresolutionPhonenumber';}return this.apiClient.callApi('/api/v2/routing/sms/identityresolution/phonenumbers/{addressId}','PUT',{'addressId':addressId},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
@@ -15682,7 +15999,7 @@ if(userId===undefined||userId===null){throw'Missing the required parameter "user
|
|
|
15682
15999
|
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(){/**
|
|
15683
16000
|
* SCIM service.
|
|
15684
16001
|
* @module purecloud-platform-client-v2/api/SCIMApi
|
|
15685
|
-
* @version
|
|
16002
|
+
* @version 222.0.0
|
|
15686
16003
|
*//**
|
|
15687
16004
|
* Constructs a new SCIMApi.
|
|
15688
16005
|
* @alias module:purecloud-platform-client-v2/api/SCIMApi
|
|
@@ -15907,7 +16224,7 @@ if(userId===undefined||userId===null){throw'Missing the required parameter "user
|
|
|
15907
16224
|
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(){/**
|
|
15908
16225
|
* ScreenRecording service.
|
|
15909
16226
|
* @module purecloud-platform-client-v2/api/ScreenRecordingApi
|
|
15910
|
-
* @version
|
|
16227
|
+
* @version 222.0.0
|
|
15911
16228
|
*//**
|
|
15912
16229
|
* Constructs a new ScreenRecordingApi.
|
|
15913
16230
|
* @alias module:purecloud-platform-client-v2/api/ScreenRecordingApi
|
|
@@ -15922,7 +16239,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
15922
16239
|
*/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(){/**
|
|
15923
16240
|
* Scripts service.
|
|
15924
16241
|
* @module purecloud-platform-client-v2/api/ScriptsApi
|
|
15925
|
-
* @version
|
|
16242
|
+
* @version 222.0.0
|
|
15926
16243
|
*//**
|
|
15927
16244
|
* Constructs a new ScriptsApi.
|
|
15928
16245
|
* @alias module:purecloud-platform-client-v2/api/ScriptsApi
|
|
@@ -16068,7 +16385,7 @@ if(scriptId===undefined||scriptId===null){throw'Missing the required parameter "
|
|
|
16068
16385
|
*/},{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(){/**
|
|
16069
16386
|
* Search service.
|
|
16070
16387
|
* @module purecloud-platform-client-v2/api/SearchApi
|
|
16071
|
-
* @version
|
|
16388
|
+
* @version 222.0.0
|
|
16072
16389
|
*//**
|
|
16073
16390
|
* Constructs a new SearchApi.
|
|
16074
16391
|
* @alias module:purecloud-platform-client-v2/api/SearchApi
|
|
@@ -16240,7 +16557,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
16240
16557
|
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(){/**
|
|
16241
16558
|
* Settings service.
|
|
16242
16559
|
* @module purecloud-platform-client-v2/api/SettingsApi
|
|
16243
|
-
* @version
|
|
16560
|
+
* @version 222.0.0
|
|
16244
16561
|
*//**
|
|
16245
16562
|
* Constructs a new SettingsApi.
|
|
16246
16563
|
* @alias module:purecloud-platform-client-v2/api/SettingsApi
|
|
@@ -16251,6 +16568,9 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
16251
16568
|
* Reset email threading settings to default
|
|
16252
16569
|
*
|
|
16253
16570
|
*/return _createClass(SettingsApi,[{key:"deleteEmailsSettingsThreading",value:function deleteEmailsSettingsThreading(){return this.apiClient.callApi('/api/v2/emails/settings/threading','DELETE',{},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
16571
|
+
* Delete settings
|
|
16572
|
+
*
|
|
16573
|
+
*/},{key:"deleteExternalcontactsSettings",value:function deleteExternalcontactsSettings(){return this.apiClient.callApi('/api/v2/externalcontacts/settings','DELETE',{},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
16254
16574
|
* Delete agent auto answer settings
|
|
16255
16575
|
*
|
|
16256
16576
|
* @param {String} agentId The agent to apply the auto answer settings to
|
|
@@ -16262,6 +16582,9 @@ if(agentId===undefined||agentId===null){throw'Missing the required parameter "ag
|
|
|
16262
16582
|
* Get email threading settings
|
|
16263
16583
|
*
|
|
16264
16584
|
*/},{key:"getEmailsSettingsThreading",value:function getEmailsSettingsThreading(){return this.apiClient.callApi('/api/v2/emails/settings/threading','GET',{},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
16585
|
+
* Get settings
|
|
16586
|
+
*
|
|
16587
|
+
*/},{key:"getExternalcontactsSettings",value:function getExternalcontactsSettings(){return this.apiClient.callApi('/api/v2/externalcontacts/settings','GET',{},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
16265
16588
|
* Get the execution history enabled setting.
|
|
16266
16589
|
* Get the execution history enabled setting.
|
|
16267
16590
|
*/},{key:"getSettingsExecutiondata",value:function getSettingsExecutiondata(){return this.apiClient.callApi('/api/v2/settings/executiondata','GET',{},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
@@ -16292,6 +16615,11 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
16292
16615
|
*/},{key:"patchUsersAgentuiAgentsAutoanswerAgentIdSettings",value:function patchUsersAgentuiAgentsAutoanswerAgentIdSettings(agentId,body){// verify the required parameter 'agentId' is set
|
|
16293
16616
|
if(agentId===undefined||agentId===null){throw'Missing the required parameter "agentId" when calling patchUsersAgentuiAgentsAutoanswerAgentIdSettings';}// verify the required parameter 'body' is set
|
|
16294
16617
|
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling patchUsersAgentuiAgentsAutoanswerAgentIdSettings';}return this.apiClient.callApi('/api/v2/users/agentui/agents/autoanswer/{agentId}/settings','PATCH',{'agentId':agentId},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
16618
|
+
* Set settings
|
|
16619
|
+
*
|
|
16620
|
+
* @param {Object} opts Optional parameters
|
|
16621
|
+
* @param {Object} opts.body
|
|
16622
|
+
*/},{key:"putExternalcontactsSettings",value:function putExternalcontactsSettings(opts){opts=opts||{};return this.apiClient.callApi('/api/v2/externalcontacts/settings','PUT',{},{},{},{},opts['body'],['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
16295
16623
|
* Set agent auto answer settings
|
|
16296
16624
|
*
|
|
16297
16625
|
* @param {String} agentId The agent to apply the auto answer settings to
|
|
@@ -16301,7 +16629,7 @@ if(agentId===undefined||agentId===null){throw'Missing the required parameter "ag
|
|
|
16301
16629
|
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling putUsersAgentuiAgentsAutoanswerAgentIdSettings';}return this.apiClient.callApi('/api/v2/users/agentui/agents/autoanswer/{agentId}/settings','PUT',{'agentId':agentId},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}}]);}();var SocialMediaApi=/*#__PURE__*/function(){/**
|
|
16302
16630
|
* SocialMedia service.
|
|
16303
16631
|
* @module purecloud-platform-client-v2/api/SocialMediaApi
|
|
16304
|
-
* @version
|
|
16632
|
+
* @version 222.0.0
|
|
16305
16633
|
*//**
|
|
16306
16634
|
* Constructs a new SocialMediaApi.
|
|
16307
16635
|
* @alias module:purecloud-platform-client-v2/api/SocialMediaApi
|
|
@@ -16638,7 +16966,7 @@ if(topicId===undefined||topicId===null){throw'Missing the required parameter "to
|
|
|
16638
16966
|
if(twitterIngestionRuleId===undefined||twitterIngestionRuleId===null){throw'Missing the required parameter "twitterIngestionRuleId" when calling putSocialmediaTopicDataingestionrulesTwitterTwitterIngestionRuleId';}return this.apiClient.callApi('/api/v2/socialmedia/topics/{topicId}/dataingestionrules/twitter/{twitterIngestionRuleId}','PUT',{'topicId':topicId,'twitterIngestionRuleId':twitterIngestionRuleId},{},{},{},opts['body'],['PureCloud OAuth'],['application/json'],['application/json']);}}]);}();var SpeechTextAnalyticsApi=/*#__PURE__*/function(){/**
|
|
16639
16967
|
* SpeechTextAnalytics service.
|
|
16640
16968
|
* @module purecloud-platform-client-v2/api/SpeechTextAnalyticsApi
|
|
16641
|
-
* @version
|
|
16969
|
+
* @version 222.0.0
|
|
16642
16970
|
*//**
|
|
16643
16971
|
* Constructs a new SpeechTextAnalyticsApi.
|
|
16644
16972
|
* @alias module:purecloud-platform-client-v2/api/SpeechTextAnalyticsApi
|
|
@@ -16847,13 +17175,11 @@ if(jobId===undefined||jobId===null){throw'Missing the required parameter "jobId"
|
|
|
16847
17175
|
* @param {Object} opts Optional parameters
|
|
16848
17176
|
* @param {String} opts.communicationId Communication id associated with the conversation. Please provide a valid communicationId when requesting non-email interactions.
|
|
16849
17177
|
* @param {String} opts.recordingId Recording id associated with the communication. Please provide a valid recordingId when requesting voice interactions.
|
|
16850
|
-
* getSpeechandtextanalyticsTranslationsLanguageConversation is a preview method and is subject to both breaking and non-breaking changes at any time without notice
|
|
16851
17178
|
*/},{key:"getSpeechandtextanalyticsTranslationsLanguageConversation",value:function getSpeechandtextanalyticsTranslationsLanguageConversation(languageId,conversationId,opts){opts=opts||{};// verify the required parameter 'languageId' is set
|
|
16852
17179
|
if(languageId===undefined||languageId===null){throw'Missing the required parameter "languageId" when calling getSpeechandtextanalyticsTranslationsLanguageConversation';}// verify the required parameter 'conversationId' is set
|
|
16853
17180
|
if(conversationId===undefined||conversationId===null){throw'Missing the required parameter "conversationId" when calling getSpeechandtextanalyticsTranslationsLanguageConversation';}return this.apiClient.callApi('/api/v2/speechandtextanalytics/translations/languages/{languageId}/conversations/{conversationId}','GET',{'languageId':languageId,'conversationId':conversationId},{'communicationId':opts['communicationId'],'recordingId':opts['recordingId']},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
16854
17181
|
* Get supported translation languages
|
|
16855
17182
|
*
|
|
16856
|
-
* getSpeechandtextanalyticsTranslationsLanguages is a preview method and is subject to both breaking and non-breaking changes at any time without notice
|
|
16857
17183
|
*/},{key:"getSpeechandtextanalyticsTranslationsLanguages",value:function getSpeechandtextanalyticsTranslationsLanguages(){return this.apiClient.callApi('/api/v2/speechandtextanalytics/translations/languages','GET',{},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
16858
17184
|
* Patch Speech And Text Analytics Settings
|
|
16859
17185
|
*
|
|
@@ -16961,7 +17287,7 @@ if(topicId===undefined||topicId===null){throw'Missing the required parameter "to
|
|
|
16961
17287
|
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(){/**
|
|
16962
17288
|
* Stations service.
|
|
16963
17289
|
* @module purecloud-platform-client-v2/api/StationsApi
|
|
16964
|
-
* @version
|
|
17290
|
+
* @version 222.0.0
|
|
16965
17291
|
*//**
|
|
16966
17292
|
* Constructs a new StationsApi.
|
|
16967
17293
|
* @alias module:purecloud-platform-client-v2/api/StationsApi
|
|
@@ -16993,7 +17319,7 @@ if(stationId===undefined||stationId===null){throw'Missing the required parameter
|
|
|
16993
17319
|
*/},{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(){/**
|
|
16994
17320
|
* Suggest service.
|
|
16995
17321
|
* @module purecloud-platform-client-v2/api/SuggestApi
|
|
16996
|
-
* @version
|
|
17322
|
+
* @version 222.0.0
|
|
16997
17323
|
*//**
|
|
16998
17324
|
* Constructs a new SuggestApi.
|
|
16999
17325
|
* @alias module:purecloud-platform-client-v2/api/SuggestApi
|
|
@@ -17033,7 +17359,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
17033
17359
|
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(){/**
|
|
17034
17360
|
* TaskManagement service.
|
|
17035
17361
|
* @module purecloud-platform-client-v2/api/TaskManagementApi
|
|
17036
|
-
* @version
|
|
17362
|
+
* @version 222.0.0
|
|
17037
17363
|
*//**
|
|
17038
17364
|
* Constructs a new TaskManagementApi.
|
|
17039
17365
|
* @alias module:purecloud-platform-client-v2/api/TaskManagementApi
|
|
@@ -17241,7 +17567,7 @@ if(schemaId===undefined||schemaId===null){throw'Missing the required parameter "
|
|
|
17241
17567
|
* Get a list of schemas.
|
|
17242
17568
|
*
|
|
17243
17569
|
*/},{key:"getTaskmanagementWorkitemsSchemas",value:function getTaskmanagementWorkitemsSchemas(){return this.apiClient.callApi('/api/v2/taskmanagement/workitems/schemas','GET',{},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
17244
|
-
* Get
|
|
17570
|
+
* Get a specific named core type.
|
|
17245
17571
|
*
|
|
17246
17572
|
* @param {String} coreTypeName Name of the core type
|
|
17247
17573
|
*/},{key:"getTaskmanagementWorkitemsSchemasCoretype",value:function getTaskmanagementWorkitemsSchemasCoretype(coreTypeName){// verify the required parameter 'coreTypeName' is set
|
|
@@ -17541,7 +17867,7 @@ if(schemaId===undefined||schemaId===null){throw'Missing the required parameter "
|
|
|
17541
17867
|
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(){/**
|
|
17542
17868
|
* Teams service.
|
|
17543
17869
|
* @module purecloud-platform-client-v2/api/TeamsApi
|
|
17544
|
-
* @version
|
|
17870
|
+
* @version 222.0.0
|
|
17545
17871
|
*//**
|
|
17546
17872
|
* Constructs a new TeamsApi.
|
|
17547
17873
|
* @alias module:purecloud-platform-client-v2/api/TeamsApi
|
|
@@ -17621,7 +17947,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
17621
17947
|
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(){/**
|
|
17622
17948
|
* Telephony service.
|
|
17623
17949
|
* @module purecloud-platform-client-v2/api/TelephonyApi
|
|
17624
|
-
* @version
|
|
17950
|
+
* @version 222.0.0
|
|
17625
17951
|
*//**
|
|
17626
17952
|
* Constructs a new TelephonyApi.
|
|
17627
17953
|
* @alias module:purecloud-platform-client-v2/api/TelephonyApi
|
|
@@ -17668,7 +17994,7 @@ if(downloadId===undefined||downloadId===null){throw'Missing the required paramet
|
|
|
17668
17994
|
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(){/**
|
|
17669
17995
|
* TelephonyProvidersEdge service.
|
|
17670
17996
|
* @module purecloud-platform-client-v2/api/TelephonyProvidersEdgeApi
|
|
17671
|
-
* @version
|
|
17997
|
+
* @version 222.0.0
|
|
17672
17998
|
*//**
|
|
17673
17999
|
* Constructs a new TelephonyProvidersEdgeApi.
|
|
17674
18000
|
* @alias module:purecloud-platform-client-v2/api/TelephonyProvidersEdgeApi
|
|
@@ -18504,7 +18830,7 @@ if(trunkBaseSettingsId===undefined||trunkBaseSettingsId===null){throw'Missing th
|
|
|
18504
18830
|
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(){/**
|
|
18505
18831
|
* Textbots service.
|
|
18506
18832
|
* @module purecloud-platform-client-v2/api/TextbotsApi
|
|
18507
|
-
* @version
|
|
18833
|
+
* @version 222.0.0
|
|
18508
18834
|
*//**
|
|
18509
18835
|
* Constructs a new TextbotsApi.
|
|
18510
18836
|
* @alias module:purecloud-platform-client-v2/api/TextbotsApi
|
|
@@ -18518,8 +18844,9 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
18518
18844
|
* @param {Array.<String>} opts.botType Bot types
|
|
18519
18845
|
* @param {String} opts.botName Bot name
|
|
18520
18846
|
* @param {Array.<String>} opts.botId Bot IDs. Maximum of 50
|
|
18847
|
+
* @param {Boolean} opts.virtualAgentEnabled Include or exclude virtual agent flows, only applies to GenesysBotFlows or GenesysDigitalBotFlows
|
|
18521
18848
|
* @param {Number} opts.pageSize The maximum results to return. Maximum of 100 (default to 25)
|
|
18522
|
-
*/return _createClass(TextbotsApi,[{key:"getTextbotsBotsSearch",value:function getTextbotsBotsSearch(opts){opts=opts||{};return this.apiClient.callApi('/api/v2/textbots/bots/search','GET',{},{'botType':this.apiClient.buildCollectionParam(opts['botType'],'multi'),'botName':opts['botName'],'botId':this.apiClient.buildCollectionParam(opts['botId'],'multi'),'pageSize':opts['pageSize']},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
18849
|
+
*/return _createClass(TextbotsApi,[{key:"getTextbotsBotsSearch",value:function getTextbotsBotsSearch(opts){opts=opts||{};return this.apiClient.callApi('/api/v2/textbots/bots/search','GET',{},{'botType':this.apiClient.buildCollectionParam(opts['botType'],'multi'),'botName':opts['botName'],'botId':this.apiClient.buildCollectionParam(opts['botId'],'multi'),'virtualAgentEnabled':opts['virtualAgentEnabled'],'pageSize':opts['pageSize']},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
18523
18850
|
* Issue a bot flow turn event
|
|
18524
18851
|
* Send a turn event to an executing bot flow and produce the next action to take.
|
|
18525
18852
|
* @param {String} sessionId The bot flow session ID, typically obtained from 'POST /api/v2/textbots/botflows/sessions'
|
|
@@ -18539,7 +18866,7 @@ if(launchRequest===undefined||launchRequest===null){throw'Missing the required p
|
|
|
18539
18866
|
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(){/**
|
|
18540
18867
|
* Tokens service.
|
|
18541
18868
|
* @module purecloud-platform-client-v2/api/TokensApi
|
|
18542
|
-
* @version
|
|
18869
|
+
* @version 222.0.0
|
|
18543
18870
|
*//**
|
|
18544
18871
|
* Constructs a new TokensApi.
|
|
18545
18872
|
* @alias module:purecloud-platform-client-v2/api/TokensApi
|
|
@@ -18573,7 +18900,7 @@ if(userId===undefined||userId===null){throw'Missing the required parameter "user
|
|
|
18573
18900
|
*/},{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(){/**
|
|
18574
18901
|
* Uploads service.
|
|
18575
18902
|
* @module purecloud-platform-client-v2/api/UploadsApi
|
|
18576
|
-
* @version
|
|
18903
|
+
* @version 222.0.0
|
|
18577
18904
|
*//**
|
|
18578
18905
|
* Constructs a new UploadsApi.
|
|
18579
18906
|
* @alias module:purecloud-platform-client-v2/api/UploadsApi
|
|
@@ -18641,7 +18968,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
18641
18968
|
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(){/**
|
|
18642
18969
|
* Usage service.
|
|
18643
18970
|
* @module purecloud-platform-client-v2/api/UsageApi
|
|
18644
|
-
* @version
|
|
18971
|
+
* @version 222.0.0
|
|
18645
18972
|
*//**
|
|
18646
18973
|
* Constructs a new UsageApi.
|
|
18647
18974
|
* @alias module:purecloud-platform-client-v2/api/UsageApi
|
|
@@ -18695,7 +19022,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
18695
19022
|
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(){/**
|
|
18696
19023
|
* UserRecordings service.
|
|
18697
19024
|
* @module purecloud-platform-client-v2/api/UserRecordingsApi
|
|
18698
|
-
* @version
|
|
19025
|
+
* @version 222.0.0
|
|
18699
19026
|
*//**
|
|
18700
19027
|
* Constructs a new UserRecordingsApi.
|
|
18701
19028
|
* @alias module:purecloud-platform-client-v2/api/UserRecordingsApi
|
|
@@ -18752,7 +19079,7 @@ if(recordingId===undefined||recordingId===null){throw'Missing the required param
|
|
|
18752
19079
|
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(){/**
|
|
18753
19080
|
* Users service.
|
|
18754
19081
|
* @module purecloud-platform-client-v2/api/UsersApi
|
|
18755
|
-
* @version
|
|
19082
|
+
* @version 222.0.0
|
|
18756
19083
|
*//**
|
|
18757
19084
|
* Constructs a new UsersApi.
|
|
18758
19085
|
* @alias module:purecloud-platform-client-v2/api/UsersApi
|
|
@@ -19479,7 +19806,7 @@ if(verifierId===undefined||verifierId===null){throw'Missing the required paramet
|
|
|
19479
19806
|
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(){/**
|
|
19480
19807
|
* Utilities service.
|
|
19481
19808
|
* @module purecloud-platform-client-v2/api/UtilitiesApi
|
|
19482
|
-
* @version
|
|
19809
|
+
* @version 222.0.0
|
|
19483
19810
|
*//**
|
|
19484
19811
|
* Constructs a new UtilitiesApi.
|
|
19485
19812
|
* @alias module:purecloud-platform-client-v2/api/UtilitiesApi
|
|
@@ -19506,7 +19833,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
19506
19833
|
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(){/**
|
|
19507
19834
|
* Voicemail service.
|
|
19508
19835
|
* @module purecloud-platform-client-v2/api/VoicemailApi
|
|
19509
|
-
* @version
|
|
19836
|
+
* @version 222.0.0
|
|
19510
19837
|
*//**
|
|
19511
19838
|
* Constructs a new VoicemailApi.
|
|
19512
19839
|
* @alias module:purecloud-platform-client-v2/api/VoicemailApi
|
|
@@ -19668,7 +19995,7 @@ if(userId===undefined||userId===null){throw'Missing the required parameter "user
|
|
|
19668
19995
|
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(){/**
|
|
19669
19996
|
* WebChat service.
|
|
19670
19997
|
* @module purecloud-platform-client-v2/api/WebChatApi
|
|
19671
|
-
* @version
|
|
19998
|
+
* @version 222.0.0
|
|
19672
19999
|
*//**
|
|
19673
20000
|
* Constructs a new WebChatApi.
|
|
19674
20001
|
* @alias module:purecloud-platform-client-v2/api/WebChatApi
|
|
@@ -19812,7 +20139,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
19812
20139
|
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(){/**
|
|
19813
20140
|
* WebDeployments service.
|
|
19814
20141
|
* @module purecloud-platform-client-v2/api/WebDeploymentsApi
|
|
19815
|
-
* @version
|
|
20142
|
+
* @version 222.0.0
|
|
19816
20143
|
*//**
|
|
19817
20144
|
* Constructs a new WebDeploymentsApi.
|
|
19818
20145
|
* @alias module:purecloud-platform-client-v2/api/WebDeploymentsApi
|
|
@@ -19890,7 +20217,6 @@ if(deploymentId===undefined||deploymentId===null){throw'Missing the required par
|
|
|
19890
20217
|
* Get a deployment identity resolution setting.
|
|
19891
20218
|
*
|
|
19892
20219
|
* @param {String} deploymentId The deployment ID
|
|
19893
|
-
* getWebdeploymentsDeploymentIdentityresolution is a preview method and is subject to both breaking and non-breaking changes at any time without notice
|
|
19894
20220
|
*/},{key:"getWebdeploymentsDeploymentIdentityresolution",value:function getWebdeploymentsDeploymentIdentityresolution(deploymentId){// verify the required parameter 'deploymentId' is set
|
|
19895
20221
|
if(deploymentId===undefined||deploymentId===null){throw'Missing the required parameter "deploymentId" when calling getWebdeploymentsDeploymentIdentityresolution';}return this.apiClient.callApi('/api/v2/webdeployments/deployments/{deploymentId}/identityresolution','GET',{'deploymentId':deploymentId},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
19896
20222
|
* Get deployments
|
|
@@ -19941,13 +20267,12 @@ if(deployment===undefined||deployment===null){throw'Missing the required paramet
|
|
|
19941
20267
|
*
|
|
19942
20268
|
* @param {String} deploymentId The deployment ID
|
|
19943
20269
|
* @param {Object} body
|
|
19944
|
-
* putWebdeploymentsDeploymentIdentityresolution is a preview method and is subject to both breaking and non-breaking changes at any time without notice
|
|
19945
20270
|
*/},{key:"putWebdeploymentsDeploymentIdentityresolution",value:function putWebdeploymentsDeploymentIdentityresolution(deploymentId,body){// verify the required parameter 'deploymentId' is set
|
|
19946
20271
|
if(deploymentId===undefined||deploymentId===null){throw'Missing the required parameter "deploymentId" when calling putWebdeploymentsDeploymentIdentityresolution';}// verify the required parameter 'body' is set
|
|
19947
20272
|
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling putWebdeploymentsDeploymentIdentityresolution';}return this.apiClient.callApi('/api/v2/webdeployments/deployments/{deploymentId}/identityresolution','PUT',{'deploymentId':deploymentId},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}}]);}();var WebMessagingApi=/*#__PURE__*/function(){/**
|
|
19948
20273
|
* WebMessaging service.
|
|
19949
20274
|
* @module purecloud-platform-client-v2/api/WebMessagingApi
|
|
19950
|
-
* @version
|
|
20275
|
+
* @version 222.0.0
|
|
19951
20276
|
*//**
|
|
19952
20277
|
* Constructs a new WebMessagingApi.
|
|
19953
20278
|
* @alias module:purecloud-platform-client-v2/api/WebMessagingApi
|
|
@@ -19963,7 +20288,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
19963
20288
|
*/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(){/**
|
|
19964
20289
|
* Widgets service.
|
|
19965
20290
|
* @module purecloud-platform-client-v2/api/WidgetsApi
|
|
19966
|
-
* @version
|
|
20291
|
+
* @version 222.0.0
|
|
19967
20292
|
*//**
|
|
19968
20293
|
* Constructs a new WidgetsApi.
|
|
19969
20294
|
* @alias module:purecloud-platform-client-v2/api/WidgetsApi
|
|
@@ -20003,7 +20328,7 @@ if(deploymentId===undefined||deploymentId===null){throw'Missing the required par
|
|
|
20003
20328
|
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(){/**
|
|
20004
20329
|
* WorkforceManagement service.
|
|
20005
20330
|
* @module purecloud-platform-client-v2/api/WorkforceManagementApi
|
|
20006
|
-
* @version
|
|
20331
|
+
* @version 222.0.0
|
|
20007
20332
|
*//**
|
|
20008
20333
|
* Constructs a new WorkforceManagementApi.
|
|
20009
20334
|
* @alias module:purecloud-platform-client-v2/api/WorkforceManagementApi
|
|
@@ -20767,10 +21092,11 @@ if(weekId===undefined||weekId===null){throw'Missing the required parameter "week
|
|
|
20767
21092
|
* @param {String} weekDateId The start week date of the initiating shift in yyyy-MM-dd format. Dates are represented as an ISO-8601 string. For example: yyyy-MM-dd
|
|
20768
21093
|
* @param {Object} opts Optional parameters
|
|
20769
21094
|
* @param {Boolean} opts.evaluateMatches Whether to evaluate the matches for violations (default to true)
|
|
21095
|
+
* @param {Boolean} opts.includeCrossWeekShifts Whether to include all shift trades with either the initiating shift or the receiving shift in the week (default to false)
|
|
20770
21096
|
* @param {Boolean} opts.forceDownloadService Force the result of this operation to be sent via download service. For testing/app development purposes
|
|
20771
21097
|
*/},{key:"getWorkforcemanagementManagementunitWeekShifttrades",value:function getWorkforcemanagementManagementunitWeekShifttrades(managementUnitId,weekDateId,opts){opts=opts||{};// verify the required parameter 'managementUnitId' is set
|
|
20772
21098
|
if(managementUnitId===undefined||managementUnitId===null){throw'Missing the required parameter "managementUnitId" when calling getWorkforcemanagementManagementunitWeekShifttrades';}// verify the required parameter 'weekDateId' is set
|
|
20773
|
-
if(weekDateId===undefined||weekDateId===null){throw'Missing the required parameter "weekDateId" when calling getWorkforcemanagementManagementunitWeekShifttrades';}return this.apiClient.callApi('/api/v2/workforcemanagement/managementunits/{managementUnitId}/weeks/{weekDateId}/shifttrades','GET',{'managementUnitId':managementUnitId,'weekDateId':weekDateId},{'evaluateMatches':opts['evaluateMatches'],'forceDownloadService':opts['forceDownloadService']},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
21099
|
+
if(weekDateId===undefined||weekDateId===null){throw'Missing the required parameter "weekDateId" when calling getWorkforcemanagementManagementunitWeekShifttrades';}return this.apiClient.callApi('/api/v2/workforcemanagement/managementunits/{managementUnitId}/weeks/{weekDateId}/shifttrades','GET',{'managementUnitId':managementUnitId,'weekDateId':weekDateId},{'evaluateMatches':opts['evaluateMatches'],'includeCrossWeekShifts':opts['includeCrossWeekShifts'],'forceDownloadService':opts['forceDownloadService']},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
20774
21100
|
* Get a work plan
|
|
20775
21101
|
*
|
|
20776
21102
|
* @param {String} managementUnitId The ID of the management unit, or 'mine' for the management unit of the logged-in user.
|
|
@@ -21824,7 +22150,7 @@ if(timeOffLimitId===undefined||timeOffLimitId===null){throw'Missing the required
|
|
|
21824
22150
|
* </pre>
|
|
21825
22151
|
* </p>
|
|
21826
22152
|
* @module purecloud-platform-client-v2/index
|
|
21827
|
-
* @version
|
|
22153
|
+
* @version 222.0.0
|
|
21828
22154
|
*/var platformClient=/*#__PURE__*/_createClass(function platformClient(){_classCallCheck(this,platformClient);/**
|
|
21829
22155
|
* The ApiClient constructor.
|
|
21830
22156
|
* @property {module:purecloud-platform-client-v2/ApiClient}
|
|
@@ -21859,6 +22185,9 @@ if(timeOffLimitId===undefined||timeOffLimitId===null){throw'Missing the required
|
|
|
21859
22185
|
* The BillingApi service constructor.
|
|
21860
22186
|
* @property {module:purecloud-platform-client-v2/api/BillingApi}
|
|
21861
22187
|
*/this.BillingApi=BillingApi;/**
|
|
22188
|
+
* The BusinessRulesApi service constructor.
|
|
22189
|
+
* @property {module:purecloud-platform-client-v2/api/BusinessRulesApi}
|
|
22190
|
+
*/this.BusinessRulesApi=BusinessRulesApi;/**
|
|
21862
22191
|
* The CarrierServicesApi service constructor.
|
|
21863
22192
|
* @property {module:purecloud-platform-client-v2/api/CarrierServicesApi}
|
|
21864
22193
|
*/this.CarrierServicesApi=CarrierServicesApi;/**
|