purecloud-platform-client-v2 221.0.0 → 223.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 +1032 -524
- package/dist/web-amd/purecloud-platform-client-v2.js +1032 -524
- package/dist/web-amd/purecloud-platform-client-v2.min.js +1 -1
- package/dist/web-cjs/bundle.js +498 -392
- package/dist/web-cjs/purecloud-platform-client-v2.js +498 -392
- package/dist/web-cjs/purecloud-platform-client-v2.min.js +1 -1
- package/index.d.ts +1408 -1008
- package/package.json +1 -1
- package/src/purecloud-platform-client-v2/ApiClient.js +1 -1
- package/src/purecloud-platform-client-v2/api/AgentAssistantsApi.js +3 -2
- 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 +3 -2
- package/src/purecloud-platform-client-v2/api/AuditApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/AuthorizationApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/BillingApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/BusinessRulesApi.js +5 -6
- package/src/purecloud-platform-client-v2/api/CarrierServicesApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/ChatApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/CoachingApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/ContentManagementApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/ConversationsApi.js +154 -7
- 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 -3
- 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 +150 -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 +2 -3
- 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 +1 -1
- package/src/purecloud-platform-client-v2/api/SCIMApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/ScreenRecordingApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/ScriptsApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/SearchApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/SettingsApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/SocialMediaApi.js +71 -8
- package/src/purecloud-platform-client-v2/api/SpeechTextAnalyticsApi.js +51 -1
- package/src/purecloud-platform-client-v2/api/StationsApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/SuggestApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/TaskManagementApi.js +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 -1
- package/src/purecloud-platform-client-v2/api/WebMessagingApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/WidgetsApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/WorkforceManagementApi.js +514 -416
- package/src/purecloud-platform-client-v2/index.js +1 -1
package/dist/web-cjs/bundle.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
'use strict';function _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
|
|
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 _regeneratorValues(e){if(null!=e){var t=e["function"==typeof Symbol&&Symbol.iterator||"@@iterator"],r=0;if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length))return{next:function next(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e};}};}throw new TypeError(_typeof(e)+" is not iterable");}function _regenerator(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */var e,t,r="function"==typeof Symbol?Symbol:{},n=r.iterator||"@@iterator",o=r.toStringTag||"@@toStringTag";function i(r,n,o,i){var c=n&&n.prototype instanceof Generator?n:Generator,u=Object.create(c.prototype);return _regeneratorDefine2(u,"_invoke",function(r,n,o){var i,c,u,f=0,p=o||[],y=!1,G={p:0,n:0,v:e,a:d,f:d.bind(e,4),d:function d(t,r){return i=t,c=0,u=e,G.n=r,a;}};function d(r,n){for(c=r,u=n,t=0;!y&&f&&!o&&t<p.length;t++){var o,i=p[t],d=G.p,l=i[2];r>3?(o=l===n)&&(c=i[4]||3,u=i[5]===e?i[3]:i[5],i[4]=3,i[5]=e):i[0]<=d&&((o=r<2&&d<i[1])?(c=0,G.v=n,G.n=i[1]):d<l&&(o=r<3||i[0]>n||n>l)&&(i[4]=r,i[5]=n,G.n=l,c=0));}if(o||r>1)return a;throw y=!0,n;}return function(o,p,l){if(f>1)throw TypeError("Generator is already running");for(y&&1===p&&d(p,l),c=p,u=l;(t=c<2?e:u)||!y;){i||(c?c<3?(c>1&&(G.n=-1),d(c,u)):G.n=u:G.v=u);try{if(f=2,i){if(c||(o="next"),t=i[o]){if(!(t=t.call(i,u)))throw TypeError("iterator result is not an object");if(!t.done)return t;u=t.value,c<2&&(c=0);}else 1===c&&(t=i["return"])&&t.call(i),c<2&&(u=TypeError("The iterator does not provide a '"+o+"' method"),c=1);i=e;}else if((t=(y=G.n<0)?u:r.call(n,G))!==a)break;}catch(t){i=e,c=1,u=t;}finally{f=1;}}return{value:t,done:y};};}(r,o,i),!0),u;}var a={};function Generator(){}function GeneratorFunction(){}function GeneratorFunctionPrototype(){}t=Object.getPrototypeOf;var c=[][n]?t(t([][n]())):(_regeneratorDefine2(t={},n,function(){return this;}),t),u=GeneratorFunctionPrototype.prototype=Generator.prototype=Object.create(c);function f(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,GeneratorFunctionPrototype):(e.__proto__=GeneratorFunctionPrototype,_regeneratorDefine2(e,o,"GeneratorFunction")),e.prototype=Object.create(u),e;}return GeneratorFunction.prototype=GeneratorFunctionPrototype,_regeneratorDefine2(u,"constructor",GeneratorFunctionPrototype),_regeneratorDefine2(GeneratorFunctionPrototype,"constructor",GeneratorFunction),GeneratorFunction.displayName="GeneratorFunction",_regeneratorDefine2(GeneratorFunctionPrototype,o,"GeneratorFunction"),_regeneratorDefine2(u),_regeneratorDefine2(u,o,"Generator"),_regeneratorDefine2(u,n,function(){return this;}),_regeneratorDefine2(u,"toString",function(){return"[object Generator]";}),(_regenerator=function _regenerator(){return{w:i,m:f};})();}function _regeneratorDefine2(e,r,n,t){var i=Object.defineProperty;try{i({},"",{});}catch(e){i=0;}_regeneratorDefine2=function _regeneratorDefine(e,r,n,t){if(r)i?i(e,r,{value:n,enumerable:!t,configurable:!t,writable:!t}):e[r]=n;else{var o=function o(r,n){_regeneratorDefine2(e,r,function(e){return this._invoke(r,n,e);});};o("next",0),o("throw",1),o("return",2);}},_regeneratorDefine2(e,r,n,t);}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
|
|
@@ -731,10 +731,10 @@ if(onDownloadProgress){var _progressEventReducer=progressEventReducer(onDownload
|
|
|
731
731
|
if(onUploadProgress&&request.upload){var _progressEventReducer3=progressEventReducer(onUploadProgress);var _progressEventReducer4=_slicedToArray(_progressEventReducer3,2);uploadThrottled=_progressEventReducer4[0];flushUpload=_progressEventReducer4[1];request.upload.addEventListener('progress',uploadThrottled);request.upload.addEventListener('loadend',flushUpload);}if(_config.cancelToken||_config.signal){// Handle cancellation
|
|
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
|
-
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__*/
|
|
735
|
-
var encodeText=isFetchSupported&&(typeof TextEncoder==='function'?function(encoder){return function(str){return encoder.encode(str);};}(new TextEncoder()):(/*#__PURE__*/function(){var _ref11=_asyncToGenerator(/*#__PURE__*/
|
|
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__*/_regenerator().m(function streamChunk(chunk,chunkSize){var len,pos,end;return _regenerator().w(function(_context){while(1)switch(_context.n){case 0:len=chunk.byteLength;if(!(!chunkSize||len<chunkSize)){_context.n=2;break;}_context.n=1;return chunk;case 1:return _context.a(2);case 2:pos=0;case 3:if(!(pos<len)){_context.n=5;break;}end=pos+chunkSize;_context.n=4;return chunk.slice(pos,end);case 4:pos=end;_context.n=3;break;case 5:return _context.a(2);}},streamChunk);});var readBytes=/*#__PURE__*/function(){var _ref=_wrapAsyncGenerator(/*#__PURE__*/_regenerator().m(function _callee(iterable,chunkSize){var _iteratorAbruptCompletion,_didIteratorError,_iteratorError,_iterator2,_step,chunk,_t;return _regenerator().w(function(_context2){while(1)switch(_context2.n){case 0:_iteratorAbruptCompletion=false;_didIteratorError=false;_context2.p=1;_iterator2=_asyncIterator(readStream(iterable));case 2:_context2.n=3;return _awaitAsyncGenerator(_iterator2.next());case 3:if(!(_iteratorAbruptCompletion=!(_step=_context2.v).done)){_context2.n=5;break;}chunk=_step.value;return _context2.d(_regeneratorValues(_asyncGeneratorDelegate(_asyncIterator(streamChunk(chunk,chunkSize)),_awaitAsyncGenerator)),4);case 4:_iteratorAbruptCompletion=false;_context2.n=2;break;case 5:_context2.n=7;break;case 6:_context2.p=6;_t=_context2.v;_didIteratorError=true;_iteratorError=_t;case 7:_context2.p=7;_context2.p=8;if(!(_iteratorAbruptCompletion&&_iterator2["return"]!=null)){_context2.n=9;break;}_context2.n=9;return _awaitAsyncGenerator(_iterator2["return"]());case 9:_context2.p=9;if(!_didIteratorError){_context2.n=10;break;}throw _iteratorError;case 10:return _context2.f(9);case 11:return _context2.f(7);case 12:return _context2.a(2);}},_callee,null,[[8,,9,11],[1,6,7,12]]);}));return function readBytes(_x,_x2){return _ref.apply(this,arguments);};}();var readStream=/*#__PURE__*/function(){var _ref2=_wrapAsyncGenerator(/*#__PURE__*/_regenerator().m(function _callee2(stream){var reader,_yield$_awaitAsyncGen,done,value;return _regenerator().w(function(_context3){while(1)switch(_context3.n){case 0:if(!stream[Symbol.asyncIterator]){_context3.n=2;break;}return _context3.d(_regeneratorValues(_asyncGeneratorDelegate(_asyncIterator(stream),_awaitAsyncGenerator)),1);case 1:return _context3.a(2);case 2:reader=stream.getReader();_context3.p=3;case 4:_context3.n=5;return _awaitAsyncGenerator(reader.read());case 5:_yield$_awaitAsyncGen=_context3.v;done=_yield$_awaitAsyncGen.done;value=_yield$_awaitAsyncGen.value;if(!done){_context3.n=6;break;}return _context3.a(3,8);case 6:_context3.n=7;return value;case 7:_context3.n=4;break;case 8:_context3.p=8;_context3.n=9;return _awaitAsyncGenerator(reader.cancel());case 9:return _context3.f(8);case 10:return _context3.a(2);}},_callee2,null,[[3,,8,10]]);}));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__*/_regenerator().m(function _callee3(){var _yield$iterator$next,_done,value,len,loadedBytes,_t2;return _regenerator().w(function(_context4){while(1)switch(_context4.n){case 0:_context4.p=0;_context4.n=1;return iterator.next();case 1:_yield$iterator$next=_context4.v;_done=_yield$iterator$next.done;value=_yield$iterator$next.value;if(!_done){_context4.n=2;break;}_onFinish();controller.close();return _context4.a(2);case 2:len=value.byteLength;if(onProgress){loadedBytes=bytes+=len;onProgress(loadedBytes);}controller.enqueue(new Uint8Array(value));_context4.n=4;break;case 3:_context4.p=3;_t2=_context4.v;_onFinish(_t2);throw _t2;case 4:return _context4.a(2);}},_callee3,null,[[0,3]]);}))();},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 _ref11=_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee4(str){var _t3,_t4;return _regenerator().w(function(_context5){while(1)switch(_context5.n){case 0:_t3=Uint8Array;_context5.n=1;return new Response(str).arrayBuffer();case 1:_t4=_context5.v;return _context5.a(2,new _t3(_t4));}},_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__*/_regenerator().m(function _callee5(body){var _request;return _regenerator().w(function(_context6){while(1)switch(_context6.n){case 0:if(!(body==null)){_context6.n=1;break;}return _context6.a(2,0);case 1:if(!utils$1.isBlob(body)){_context6.n=2;break;}return _context6.a(2,body.size);case 2:if(!utils$1.isSpecCompliantForm(body)){_context6.n=4;break;}_request=new Request(platform.origin,{method:'POST',body:body});_context6.n=3;return _request.arrayBuffer();case 3:return _context6.a(2,_context6.v.byteLength);case 4:if(!(utils$1.isArrayBufferView(body)||utils$1.isArrayBuffer(body))){_context6.n=5;break;}return _context6.a(2,body.byteLength);case 5:if(utils$1.isURLSearchParams(body)){body=body+'';}if(!utils$1.isString(body)){_context6.n=7;break;}_context6.n=6;return encodeText(body);case 6:return _context6.a(2,_context6.v.byteLength);}},_callee5);}));return function getBodyLength(_x5){return _ref12.apply(this,arguments);};}();var resolveBodyLength=/*#__PURE__*/function(){var _ref13=_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee6(headers,body){var length;return _regenerator().w(function(_context7){while(1)switch(_context7.n){case 0:length=utils$1.toFiniteNumber(headers.getContentLength());return _context7.a(2,length==null?getBodyLength(body):length);}},_callee6);}));return function resolveBodyLength(_x6,_x7){return _ref13.apply(this,arguments);};}();var fetchAdapter=isFetchSupported&&(/*#__PURE__*/function(){var _ref14=_asyncToGenerator(/*#__PURE__*/_regenerator().m(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,_t5,_t6,_t7;return _regenerator().w(function(_context8){while(1)switch(_context8.n){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.p=1;_t5=onUploadProgress&&supportsRequestStream&&method!=='get'&&method!=='head';if(!_t5){_context8.n=3;break;}_context8.n=2;return resolveBodyLength(headers,data);case 2:_t6=requestContentLength=_context8.v;_t5=_t6!==0;case 3:if(!_t5){_context8.n=4;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 4: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.
|
|
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.n=5;return fetch(request);case 5:response=_context8.v;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.n=6;return resolvers[utils$1.findKey(resolvers,responseType)||'text'](response,config);case 6:responseData=_context8.v;!isStreamResponse&&unsubscribe&&unsubscribe();_context8.n=7;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 7:return _context8.a(2,_context8.v);case 8:_context8.p=8;_t7=_context8.v;unsubscribe&&unsubscribe();if(!(_t7&&_t7.name==='TypeError'&&/Load failed|fetch/i.test(_t7.message))){_context8.n=9;break;}throw Object.assign(new AxiosError('Network Error',AxiosError.ERR_NETWORK,config,request),{cause:_t7.cause||_t7});case 9:throw AxiosError.from(_t7,_t7&&_t7.code,config,request);case 10:return _context8.a(2);}},_callee7,null,[[1,8]]);}));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
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
|
*
|
|
@@ -783,10 +783,10 @@ console.warn("".concat(opt," is likely a misspelling of ").concat(correctSpellin
|
|
|
783
783
|
* @param {?Object} config
|
|
784
784
|
*
|
|
785
785
|
* @returns {Promise} The Promise to be fulfilled
|
|
786
|
-
*/return _createClass(Axios,[{key:"request",value:(function(){var _request2=_asyncToGenerator(/*#__PURE__*/
|
|
787
|
-
stack=dummy.stack?dummy.stack.replace(/^.+\n/,''):'';try{if(!
|
|
788
|
-
}else if(stack&&!String(
|
|
789
|
-
}}throw
|
|
786
|
+
*/return _createClass(Axios,[{key:"request",value:(function(){var _request2=_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee8(configOrUrl,config){var dummy,stack,_t8;return _regenerator().w(function(_context9){while(1)switch(_context9.n){case 0:_context9.p=0;_context9.n=1;return this._request(configOrUrl,config);case 1:return _context9.a(2,_context9.v);case 2:_context9.p=2;_t8=_context9.v;if(_t8 instanceof Error){dummy={};Error.captureStackTrace?Error.captureStackTrace(dummy):dummy=new Error();// slice off the Error: ... line
|
|
787
|
+
stack=dummy.stack?dummy.stack.replace(/^.+\n/,''):'';try{if(!_t8.stack){_t8.stack=stack;// match without the 2 top stack lines
|
|
788
|
+
}else if(stack&&!String(_t8.stack).endsWith(stack.replace(/^.+\n.+\n/,''))){_t8.stack+='\n'+stack;}}catch(e){// ignore the case where "stack" is an un-writable property
|
|
789
|
+
}}throw _t8;case 3:return _context9.a(2);}},_callee8,this,[[0,2]]);}));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
|
|
@@ -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 _ref21=_asyncToGenerator(/*#__PURE__*/
|
|
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__*/_regenerator().m(function _callee9(config){return _regenerator().w(function(_context0){while(1)switch(_context0.n){case 0:_context0.n=1;return _this3.preHook(config);case 1:config=_context0.v;return _context0.a(2,config);}},_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 _ref22=_asyncToGenerator(/*#__PURE__*/
|
|
871
|
-
return _context10.
|
|
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__*/_regenerator().m(function _callee0(response){return _regenerator().w(function(_context1){while(1)switch(_context1.n){case 0:_context1.n=1;return _this3.postHook(response);case 1:response=_context1.v;return _context1.a(2,response);}},_callee0);}));return function(_x10){return _ref22.apply(this,arguments);};}(),/*#__PURE__*/function(){var _ref23=_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee1(error){return _regenerator().w(function(_context10){while(1)switch(_context10.n){case 0:console.error('Post-Hook: Response Error',error.message);// Optionally call post-hook in case of errors
|
|
871
|
+
return _context10.a(2,Promise.reject(error));}},_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 223.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
|
|
@@ -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 223.0.0
|
|
1239
1239
|
*//**
|
|
1240
1240
|
* Constructs a new AgentAssistantsApi.
|
|
1241
1241
|
* @alias module:purecloud-platform-client-v2/api/AgentAssistantsApi
|
|
@@ -1296,7 +1296,8 @@ if(assistantId===undefined||assistantId===null){throw'Missing the required param
|
|
|
1296
1296
|
* @param {String} opts.limit Number of entities to return. Maximum of 200. Deprecated in favour of pageSize
|
|
1297
1297
|
* @param {String} opts.pageSize Number of entities to return. Maximum of 200.
|
|
1298
1298
|
* @param {String} opts.name Return the assistant by the given name.
|
|
1299
|
-
|
|
1299
|
+
* @param {Object} opts.expand Which fields, if any, to expand
|
|
1300
|
+
*/},{key:"getAssistants",value:function getAssistants(opts){opts=opts||{};return this.apiClient.callApi('/api/v2/assistants','GET',{},{'before':opts['before'],'after':opts['after'],'limit':opts['limit'],'pageSize':opts['pageSize'],'name':opts['name'],'expand':opts['expand']},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
1300
1301
|
* Get all queues assigned to any assistant.
|
|
1301
1302
|
*
|
|
1302
1303
|
* @param {Object} opts Optional parameters
|
|
@@ -1336,7 +1337,7 @@ if(queueId===undefined||queueId===null){throw'Missing the required parameter "qu
|
|
|
1336
1337
|
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
1338
|
* AgentCopilot service.
|
|
1338
1339
|
* @module purecloud-platform-client-v2/api/AgentCopilotApi
|
|
1339
|
-
* @version
|
|
1340
|
+
* @version 223.0.0
|
|
1340
1341
|
*//**
|
|
1341
1342
|
* Constructs a new AgentCopilotApi.
|
|
1342
1343
|
* @alias module:purecloud-platform-client-v2/api/AgentCopilotApi
|
|
@@ -1358,7 +1359,7 @@ if(assistantId===undefined||assistantId===null){throw'Missing the required param
|
|
|
1358
1359
|
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
1360
|
* AgentUI service.
|
|
1360
1361
|
* @module purecloud-platform-client-v2/api/AgentUIApi
|
|
1361
|
-
* @version
|
|
1362
|
+
* @version 223.0.0
|
|
1362
1363
|
*//**
|
|
1363
1364
|
* Constructs a new AgentUIApi.
|
|
1364
1365
|
* @alias module:purecloud-platform-client-v2/api/AgentUIApi
|
|
@@ -1392,7 +1393,7 @@ if(agentId===undefined||agentId===null){throw'Missing the required parameter "ag
|
|
|
1392
1393
|
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
1394
|
* Alerting service.
|
|
1394
1395
|
* @module purecloud-platform-client-v2/api/AlertingApi
|
|
1395
|
-
* @version
|
|
1396
|
+
* @version 223.0.0
|
|
1396
1397
|
*//**
|
|
1397
1398
|
* Constructs a new AlertingApi.
|
|
1398
1399
|
* @alias module:purecloud-platform-client-v2/api/AlertingApi
|
|
@@ -1481,7 +1482,7 @@ if(ruleId===undefined||ruleId===null){throw'Missing the required parameter "rule
|
|
|
1481
1482
|
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
1483
|
* Analytics service.
|
|
1483
1484
|
* @module purecloud-platform-client-v2/api/AnalyticsApi
|
|
1484
|
-
* @version
|
|
1485
|
+
* @version 223.0.0
|
|
1485
1486
|
*//**
|
|
1486
1487
|
* Constructs a new AnalyticsApi.
|
|
1487
1488
|
* @alias module:purecloud-platform-client-v2/api/AnalyticsApi
|
|
@@ -2149,7 +2150,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
2149
2150
|
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
2151
|
* Architect service.
|
|
2151
2152
|
* @module purecloud-platform-client-v2/api/ArchitectApi
|
|
2152
|
-
* @version
|
|
2153
|
+
* @version 223.0.0
|
|
2153
2154
|
*//**
|
|
2154
2155
|
* Constructs a new ArchitectApi.
|
|
2155
2156
|
* @alias module:purecloud-platform-client-v2/api/ArchitectApi
|
|
@@ -2715,10 +2716,11 @@ if(flowId===undefined||flowId===null){throw'Missing the required parameter "flow
|
|
|
2715
2716
|
* @param {Object} opts.secure Secure
|
|
2716
2717
|
* @param {Boolean} opts.deleted Include deleted (default to false)
|
|
2717
2718
|
* @param {Boolean} opts.includeSchemas Include variable schemas (default to false)
|
|
2719
|
+
* @param {Boolean} opts.virtualAgentEnabled Include/exclude virtual agent flows
|
|
2718
2720
|
* @param {String} opts.publishedAfter Published after
|
|
2719
2721
|
* @param {String} opts.publishedBefore Published before
|
|
2720
2722
|
* @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']);}/**
|
|
2723
|
+
*/},{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
2724
|
* Returns a specific datatable by id
|
|
2723
2725
|
* Given a datatableId returns the datatable object and schema associated with it.
|
|
2724
2726
|
* @param {String} datatableId id of datatable
|
|
@@ -3280,7 +3282,7 @@ if(milestoneId===undefined||milestoneId===null){throw'Missing the required param
|
|
|
3280
3282
|
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(){/**
|
|
3281
3283
|
* Audit service.
|
|
3282
3284
|
* @module purecloud-platform-client-v2/api/AuditApi
|
|
3283
|
-
* @version
|
|
3285
|
+
* @version 223.0.0
|
|
3284
3286
|
*//**
|
|
3285
3287
|
* Constructs a new AuditApi.
|
|
3286
3288
|
* @alias module:purecloud-platform-client-v2/api/AuditApi
|
|
@@ -3330,7 +3332,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
3330
3332
|
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(){/**
|
|
3331
3333
|
* Authorization service.
|
|
3332
3334
|
* @module purecloud-platform-client-v2/api/AuthorizationApi
|
|
3333
|
-
* @version
|
|
3335
|
+
* @version 223.0.0
|
|
3334
3336
|
*//**
|
|
3335
3337
|
* Constructs a new AuthorizationApi.
|
|
3336
3338
|
* @alias module:purecloud-platform-client-v2/api/AuthorizationApi
|
|
@@ -3765,7 +3767,7 @@ if(subjectId===undefined||subjectId===null){throw'Missing the required parameter
|
|
|
3765
3767
|
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(){/**
|
|
3766
3768
|
* Billing service.
|
|
3767
3769
|
* @module purecloud-platform-client-v2/api/BillingApi
|
|
3768
|
-
* @version
|
|
3770
|
+
* @version 223.0.0
|
|
3769
3771
|
*//**
|
|
3770
3772
|
* Constructs a new BillingApi.
|
|
3771
3773
|
* @alias module:purecloud-platform-client-v2/api/BillingApi
|
|
@@ -3842,7 +3844,7 @@ if(endDate===undefined||endDate===null){throw'Missing the required parameter "en
|
|
|
3842
3844
|
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(){/**
|
|
3843
3845
|
* BusinessRules service.
|
|
3844
3846
|
* @module purecloud-platform-client-v2/api/BusinessRulesApi
|
|
3845
|
-
* @version
|
|
3847
|
+
* @version 223.0.0
|
|
3846
3848
|
*//**
|
|
3847
3849
|
* Constructs a new BusinessRulesApi.
|
|
3848
3850
|
* @alias module:purecloud-platform-client-v2/api/BusinessRulesApi
|
|
@@ -3922,7 +3924,7 @@ if(tableVersion===undefined||tableVersion===null){throw'Missing the required par
|
|
|
3922
3924
|
* @param {String} tableId Table ID
|
|
3923
3925
|
* @param {Object} opts Optional parameters
|
|
3924
3926
|
* @param {String} opts.after The cursor that points to the end of the set of entities that has been returned.
|
|
3925
|
-
* @param {String} opts.pageSize Number of entities to return. Maximum of
|
|
3927
|
+
* @param {String} opts.pageSize Number of entities to return. Maximum of 100.
|
|
3926
3928
|
* @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.
|
|
3927
3929
|
* getBusinessrulesDecisiontableVersions is a preview method and is subject to both breaking and non-breaking changes at any time without notice
|
|
3928
3930
|
*/},{key:"getBusinessrulesDecisiontableVersions",value:function getBusinessrulesDecisiontableVersions(tableId,opts){opts=opts||{};// verify the required parameter 'tableId' is set
|
|
@@ -3931,20 +3933,19 @@ if(tableId===undefined||tableId===null){throw'Missing the required parameter "ta
|
|
|
3931
3933
|
*
|
|
3932
3934
|
* @param {Object} opts Optional parameters
|
|
3933
3935
|
* @param {String} opts.after The cursor that points to the end of the set of entities that has been returned.
|
|
3934
|
-
* @param {String} opts.pageSize Number of entities to return. Maximum of
|
|
3936
|
+
* @param {String} opts.pageSize Number of entities to return. Maximum of 100.
|
|
3935
3937
|
* @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.
|
|
3936
3938
|
* getBusinessrulesDecisiontables is a preview method and is subject to both breaking and non-breaking changes at any time without notice
|
|
3937
3939
|
*/},{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']);}/**
|
|
3938
3940
|
* Search for decision tables.
|
|
3939
3941
|
*
|
|
3940
3942
|
* @param {Object} opts Optional parameters
|
|
3941
|
-
* @param {String} opts.before The cursor that points to the start of the set of entities that has been returned.
|
|
3942
3943
|
* @param {String} opts.after The cursor that points to the end of the set of entities that has been returned.
|
|
3943
|
-
* @param {String} opts.pageSize Number of entities to return. Maximum of
|
|
3944
|
+
* @param {String} opts.pageSize Number of entities to return. Maximum of 100.
|
|
3944
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.
|
|
3945
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.
|
|
3946
3947
|
* getBusinessrulesDecisiontablesSearch is a preview method and is subject to both breaking and non-breaking changes at any time without notice
|
|
3947
|
-
*/},{key:"getBusinessrulesDecisiontablesSearch",value:function getBusinessrulesDecisiontablesSearch(opts){opts=opts||{};return this.apiClient.callApi('/api/v2/businessrules/decisiontables/search','GET',{},{'
|
|
3948
|
+
*/},{key:"getBusinessrulesDecisiontablesSearch",value:function getBusinessrulesDecisiontablesSearch(opts){opts=opts||{};return this.apiClient.callApi('/api/v2/businessrules/decisiontables/search','GET',{},{'after':opts['after'],'pageSize':opts['pageSize'],'schemaId':opts['schemaId'],'name':opts['name']},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
3948
3949
|
* Get a schema
|
|
3949
3950
|
*
|
|
3950
3951
|
* @param {String} schemaId Schema ID
|
|
@@ -4090,7 +4091,7 @@ if(schemaId===undefined||schemaId===null){throw'Missing the required parameter "
|
|
|
4090
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(){/**
|
|
4091
4092
|
* CarrierServices service.
|
|
4092
4093
|
* @module purecloud-platform-client-v2/api/CarrierServicesApi
|
|
4093
|
-
* @version
|
|
4094
|
+
* @version 223.0.0
|
|
4094
4095
|
*//**
|
|
4095
4096
|
* Constructs a new CarrierServicesApi.
|
|
4096
4097
|
* @alias module:purecloud-platform-client-v2/api/CarrierServicesApi
|
|
@@ -4110,7 +4111,7 @@ if(phoneNumber===undefined||phoneNumber===null){throw'Missing the required param
|
|
|
4110
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(){/**
|
|
4111
4112
|
* Chat service.
|
|
4112
4113
|
* @module purecloud-platform-client-v2/api/ChatApi
|
|
4113
|
-
* @version
|
|
4114
|
+
* @version 223.0.0
|
|
4114
4115
|
*//**
|
|
4115
4116
|
* Constructs a new ChatApi.
|
|
4116
4117
|
* @alias module:purecloud-platform-client-v2/api/ChatApi
|
|
@@ -4330,7 +4331,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
4330
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(){/**
|
|
4331
4332
|
* Coaching service.
|
|
4332
4333
|
* @module purecloud-platform-client-v2/api/CoachingApi
|
|
4333
|
-
* @version
|
|
4334
|
+
* @version 223.0.0
|
|
4334
4335
|
*//**
|
|
4335
4336
|
* Constructs a new CoachingApi.
|
|
4336
4337
|
* @alias module:purecloud-platform-client-v2/api/CoachingApi
|
|
@@ -4483,7 +4484,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
4483
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(){/**
|
|
4484
4485
|
* ContentManagement service.
|
|
4485
4486
|
* @module purecloud-platform-client-v2/api/ContentManagementApi
|
|
4486
|
-
* @version
|
|
4487
|
+
* @version 223.0.0
|
|
4487
4488
|
*//**
|
|
4488
4489
|
* Constructs a new ContentManagementApi.
|
|
4489
4490
|
* @alias module:purecloud-platform-client-v2/api/ContentManagementApi
|
|
@@ -4765,7 +4766,7 @@ if(tagId===undefined||tagId===null){throw'Missing the required parameter "tagId"
|
|
|
4765
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(){/**
|
|
4766
4767
|
* Conversations service.
|
|
4767
4768
|
* @module purecloud-platform-client-v2/api/ConversationsApi
|
|
4768
|
-
* @version
|
|
4769
|
+
* @version 223.0.0
|
|
4769
4770
|
*//**
|
|
4770
4771
|
* Constructs a new ConversationsApi.
|
|
4771
4772
|
* @alias module:purecloud-platform-client-v2/api/ConversationsApi
|
|
@@ -5222,7 +5223,7 @@ if(mediaId===undefined||mediaId===null){throw'Missing the required parameter "me
|
|
|
5222
5223
|
*
|
|
5223
5224
|
* @param {String} messageId messageId
|
|
5224
5225
|
* @param {Object} opts Optional parameters
|
|
5225
|
-
* @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)
|
|
5226
5227
|
*/},{key:"getConversationsMessageDetails",value:function getConversationsMessageDetails(messageId,opts){opts=opts||{};// verify the required parameter 'messageId' is set
|
|
5227
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']);}/**
|
|
5228
5229
|
* Get conversation message
|
|
@@ -5230,7 +5231,7 @@ if(messageId===undefined||messageId===null){throw'Missing the required parameter
|
|
|
5230
5231
|
* @param {String} conversationId conversationId
|
|
5231
5232
|
* @param {String} messageId messageId
|
|
5232
5233
|
* @param {Object} opts Optional parameters
|
|
5233
|
-
* @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)
|
|
5234
5235
|
*/},{key:"getConversationsMessageMessage",value:function getConversationsMessageMessage(conversationId,messageId,opts){opts=opts||{};// verify the required parameter 'conversationId' is set
|
|
5235
5236
|
if(conversationId===undefined||conversationId===null){throw'Missing the required parameter "conversationId" when calling getConversationsMessageMessage';}// verify the required parameter 'messageId' is set
|
|
5236
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']);}/**
|
|
@@ -5282,11 +5283,22 @@ if(cachedMediaItemId===undefined||cachedMediaItemId===null){throw'Missing the re
|
|
|
5282
5283
|
* Get a list of Facebook Permissions
|
|
5283
5284
|
*
|
|
5284
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']);}/**
|
|
5285
5292
|
* Get Facebook messaging integration identity resolution settings
|
|
5286
5293
|
*
|
|
5287
5294
|
* @param {String} integrationId Integration ID
|
|
5288
5295
|
*/},{key:"getConversationsMessagingIdentityresolutionIntegrationsFacebookIntegrationId",value:function getConversationsMessagingIdentityresolutionIntegrationsFacebookIntegrationId(integrationId){// verify the required parameter 'integrationId' is set
|
|
5289
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']);}/**
|
|
5290
5302
|
* Get an open messaging integration Identity Resolution settings
|
|
5291
5303
|
*
|
|
5292
5304
|
* @param {String} integrationId Integration ID
|
|
@@ -5820,7 +5832,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
5820
5832
|
if(integrationId===undefined||integrationId===null){throw'Missing the required parameter "integrationId" when calling patchConversationsMessagingIntegrationsTwitterIntegrationId';}// verify the required parameter 'body' is set
|
|
5821
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']);}/**
|
|
5822
5834
|
* Activate a WhatsApp messaging integration created using the WhatsApp embedded signup flow
|
|
5823
|
-
* 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.
|
|
5824
5836
|
* @param {String} integrationId Integration ID
|
|
5825
5837
|
* @param {Object} body WhatsAppEmbeddedSignupIntegrationActivationRequest
|
|
5826
5838
|
*/},{key:"patchConversationsMessagingIntegrationsWhatsappEmbeddedsignupIntegrationId",value:function patchConversationsMessagingIntegrationsWhatsappEmbeddedsignupIntegrationId(integrationId,body){// verify the required parameter 'integrationId' is set
|
|
@@ -6270,12 +6282,12 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
6270
6282
|
*/},{key:"postConversationsKeyconfigurationsValidate",value:function postConversationsKeyconfigurationsValidate(body){// verify the required parameter 'body' is set
|
|
6271
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']);}/**
|
|
6272
6284
|
* Send message
|
|
6273
|
-
* 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.
|
|
6274
6286
|
* @param {String} conversationId conversationId
|
|
6275
6287
|
* @param {String} communicationId communicationId
|
|
6276
6288
|
* @param {Object} body Message
|
|
6277
6289
|
* @param {Object} opts Optional parameters
|
|
6278
|
-
* @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)
|
|
6279
6291
|
*/},{key:"postConversationsMessageCommunicationMessages",value:function postConversationsMessageCommunicationMessages(conversationId,communicationId,body,opts){opts=opts||{};// verify the required parameter 'conversationId' is set
|
|
6280
6292
|
if(conversationId===undefined||conversationId===null){throw'Missing the required parameter "conversationId" when calling postConversationsMessageCommunicationMessages';}// verify the required parameter 'communicationId' is set
|
|
6281
6293
|
if(communicationId===undefined||communicationId===null){throw'Missing the required parameter "communicationId" when calling postConversationsMessageCommunicationMessages';}// verify the required parameter 'body' is set
|
|
@@ -6297,6 +6309,15 @@ if(communicationId===undefined||communicationId===null){throw'Missing the requir
|
|
|
6297
6309
|
if(conversationId===undefined||conversationId===null){throw'Missing the required parameter "conversationId" when calling postConversationsMessageCommunicationMessagesMediaUploads';}// verify the required parameter 'communicationId' is set
|
|
6298
6310
|
if(communicationId===undefined||communicationId===null){throw'Missing the required parameter "communicationId" when calling postConversationsMessageCommunicationMessagesMediaUploads';}// verify the required parameter 'body' is set
|
|
6299
6311
|
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling postConversationsMessageCommunicationMessagesMediaUploads';}return this.apiClient.callApi('/api/v2/conversations/messages/{conversationId}/communications/{communicationId}/messages/media/uploads','POST',{'conversationId':conversationId,'communicationId':communicationId},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
6312
|
+
* Send a social media message
|
|
6313
|
+
* Send a social media message on existing conversation/communication.
|
|
6314
|
+
* @param {String} conversationId conversationId
|
|
6315
|
+
* @param {String} communicationId communicationId
|
|
6316
|
+
* @param {Object} body Message
|
|
6317
|
+
*/},{key:"postConversationsMessageCommunicationSocialmediaMessages",value:function postConversationsMessageCommunicationSocialmediaMessages(conversationId,communicationId,body){// verify the required parameter 'conversationId' is set
|
|
6318
|
+
if(conversationId===undefined||conversationId===null){throw'Missing the required parameter "conversationId" when calling postConversationsMessageCommunicationSocialmediaMessages';}// verify the required parameter 'communicationId' is set
|
|
6319
|
+
if(communicationId===undefined||communicationId===null){throw'Missing the required parameter "communicationId" when calling postConversationsMessageCommunicationSocialmediaMessages';}// verify the required parameter 'body' is set
|
|
6320
|
+
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling postConversationsMessageCommunicationSocialmediaMessages';}return this.apiClient.callApi('/api/v2/conversations/messages/{conversationId}/communications/{communicationId}/socialmedia/messages','POST',{'conversationId':conversationId,'communicationId':communicationId},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
6300
6321
|
* Send message typing event
|
|
6301
6322
|
* Send message typing event for existing conversation/communication.
|
|
6302
6323
|
* @param {String} conversationId conversationId
|
|
@@ -6333,7 +6354,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
6333
6354
|
* 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"]
|
|
6334
6355
|
* @param {String} conversationId
|
|
6335
6356
|
* @param {Object} opts Optional parameters
|
|
6336
|
-
* @param {Boolean} opts.useNormalizedMessage If true, response removes deprecated fields (textBody, media
|
|
6357
|
+
* @param {Boolean} opts.useNormalizedMessage If true, response removes deprecated fields (textBody, media) (default to false)
|
|
6337
6358
|
* @param {Array.<String>} opts.body messageIds
|
|
6338
6359
|
*/},{key:"postConversationsMessageMessagesBulk",value:function postConversationsMessageMessagesBulk(conversationId,opts){opts=opts||{};// verify the required parameter 'conversationId' is set
|
|
6339
6360
|
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']);}/**
|
|
@@ -6566,6 +6587,14 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
6566
6587
|
*/},{key:"putConversationsMessageRecordingstate",value:function putConversationsMessageRecordingstate(conversationId,body){// verify the required parameter 'conversationId' is set
|
|
6567
6588
|
if(conversationId===undefined||conversationId===null){throw'Missing the required parameter "conversationId" when calling putConversationsMessageRecordingstate';}// verify the required parameter 'body' is set
|
|
6568
6589
|
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']);}/**
|
|
6590
|
+
* Create an identity resolution settings for a Apple messaging integration
|
|
6591
|
+
*
|
|
6592
|
+
* @param {String} integrationId Integration ID
|
|
6593
|
+
* @param {Object} body IdentityResolutionConfig
|
|
6594
|
+
* putConversationsMessagingIdentityresolutionIntegrationsAppleIntegrationId is a preview method and is subject to both breaking and non-breaking changes at any time without notice
|
|
6595
|
+
*/},{key:"putConversationsMessagingIdentityresolutionIntegrationsAppleIntegrationId",value:function putConversationsMessagingIdentityresolutionIntegrationsAppleIntegrationId(integrationId,body){// verify the required parameter 'integrationId' is set
|
|
6596
|
+
if(integrationId===undefined||integrationId===null){throw'Missing the required parameter "integrationId" when calling putConversationsMessagingIdentityresolutionIntegrationsAppleIntegrationId';}// verify the required parameter 'body' is set
|
|
6597
|
+
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']);}/**
|
|
6569
6598
|
* Create an identity resolution settings for a Facebook messaging integration
|
|
6570
6599
|
*
|
|
6571
6600
|
* @param {String} integrationId Integration ID
|
|
@@ -6573,6 +6602,13 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
6573
6602
|
*/},{key:"putConversationsMessagingIdentityresolutionIntegrationsFacebookIntegrationId",value:function putConversationsMessagingIdentityresolutionIntegrationsFacebookIntegrationId(integrationId,body){// verify the required parameter 'integrationId' is set
|
|
6574
6603
|
if(integrationId===undefined||integrationId===null){throw'Missing the required parameter "integrationId" when calling putConversationsMessagingIdentityresolutionIntegrationsFacebookIntegrationId';}// verify the required parameter 'body' is set
|
|
6575
6604
|
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']);}/**
|
|
6605
|
+
* Create identity resolution settings for an Instagram messaging integration
|
|
6606
|
+
*
|
|
6607
|
+
* @param {String} integrationId Integration ID
|
|
6608
|
+
* @param {Object} body IdentityResolutionConfig
|
|
6609
|
+
*/},{key:"putConversationsMessagingIdentityresolutionIntegrationsInstagramIntegrationId",value:function putConversationsMessagingIdentityresolutionIntegrationsInstagramIntegrationId(integrationId,body){// verify the required parameter 'integrationId' is set
|
|
6610
|
+
if(integrationId===undefined||integrationId===null){throw'Missing the required parameter "integrationId" when calling putConversationsMessagingIdentityresolutionIntegrationsInstagramIntegrationId';}// verify the required parameter 'body' is set
|
|
6611
|
+
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']);}/**
|
|
6576
6612
|
* Update an open messaging integration Identity Resolution settings
|
|
6577
6613
|
*
|
|
6578
6614
|
* @param {String} integrationId Integration ID
|
|
@@ -6626,7 +6662,7 @@ if(conversationId===undefined||conversationId===null){throw'Missing the required
|
|
|
6626
6662
|
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(){/**
|
|
6627
6663
|
* DataExtensions service.
|
|
6628
6664
|
* @module purecloud-platform-client-v2/api/DataExtensionsApi
|
|
6629
|
-
* @version
|
|
6665
|
+
* @version 223.0.0
|
|
6630
6666
|
*//**
|
|
6631
6667
|
* Constructs a new DataExtensionsApi.
|
|
6632
6668
|
* @alias module:purecloud-platform-client-v2/api/DataExtensionsApi
|
|
@@ -6647,7 +6683,7 @@ if(coretypeName===undefined||coretypeName===null){throw'Missing the required par
|
|
|
6647
6683
|
*/},{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(){/**
|
|
6648
6684
|
* DataPrivacy service.
|
|
6649
6685
|
* @module purecloud-platform-client-v2/api/DataPrivacyApi
|
|
6650
|
-
* @version
|
|
6686
|
+
* @version 223.0.0
|
|
6651
6687
|
*//**
|
|
6652
6688
|
* Constructs a new DataPrivacyApi.
|
|
6653
6689
|
* @alias module:purecloud-platform-client-v2/api/DataPrivacyApi
|
|
@@ -6687,7 +6723,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
6687
6723
|
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(){/**
|
|
6688
6724
|
* Downloads service.
|
|
6689
6725
|
* @module purecloud-platform-client-v2/api/DownloadsApi
|
|
6690
|
-
* @version
|
|
6726
|
+
* @version 223.0.0
|
|
6691
6727
|
*//**
|
|
6692
6728
|
* Constructs a new DownloadsApi.
|
|
6693
6729
|
* @alias module:purecloud-platform-client-v2/api/DownloadsApi
|
|
@@ -6706,7 +6742,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
6706
6742
|
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(){/**
|
|
6707
6743
|
* Emails service.
|
|
6708
6744
|
* @module purecloud-platform-client-v2/api/EmailsApi
|
|
6709
|
-
* @version
|
|
6745
|
+
* @version 223.0.0
|
|
6710
6746
|
*//**
|
|
6711
6747
|
* Constructs a new EmailsApi.
|
|
6712
6748
|
* @alias module:purecloud-platform-client-v2/api/EmailsApi
|
|
@@ -6735,7 +6771,7 @@ if(downloadId===undefined||downloadId===null){throw'Missing the required paramet
|
|
|
6735
6771
|
*/},{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(){/**
|
|
6736
6772
|
* EmployeeEngagement service.
|
|
6737
6773
|
* @module purecloud-platform-client-v2/api/EmployeeEngagementApi
|
|
6738
|
-
* @version
|
|
6774
|
+
* @version 223.0.0
|
|
6739
6775
|
*//**
|
|
6740
6776
|
* Constructs a new EmployeeEngagementApi.
|
|
6741
6777
|
* @alias module:purecloud-platform-client-v2/api/EmployeeEngagementApi
|
|
@@ -6773,7 +6809,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
6773
6809
|
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(){/**
|
|
6774
6810
|
* Events service.
|
|
6775
6811
|
* @module purecloud-platform-client-v2/api/EventsApi
|
|
6776
|
-
* @version
|
|
6812
|
+
* @version 223.0.0
|
|
6777
6813
|
*//**
|
|
6778
6814
|
* Constructs a new EventsApi.
|
|
6779
6815
|
* @alias module:purecloud-platform-client-v2/api/EventsApi
|
|
@@ -6798,7 +6834,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
6798
6834
|
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(){/**
|
|
6799
6835
|
* ExternalContacts service.
|
|
6800
6836
|
* @module purecloud-platform-client-v2/api/ExternalContactsApi
|
|
6801
|
-
* @version
|
|
6837
|
+
* @version 223.0.0
|
|
6802
6838
|
*//**
|
|
6803
6839
|
* Constructs a new ExternalContactsApi.
|
|
6804
6840
|
* @alias module:purecloud-platform-client-v2/api/ExternalContactsApi
|
|
@@ -6949,7 +6985,7 @@ if(schemaId===undefined||schemaId===null){throw'Missing the required parameter "
|
|
|
6949
6985
|
* Get a list of schemas.
|
|
6950
6986
|
*
|
|
6951
6987
|
*/},{key:"getExternalcontactsContactsSchemas",value:function getExternalcontactsContactsSchemas(){return this.apiClient.callApi('/api/v2/externalcontacts/contacts/schemas','GET',{},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
6952
|
-
* Get
|
|
6988
|
+
* Get a specific named core type.
|
|
6953
6989
|
*
|
|
6954
6990
|
* @param {String} coreTypeName Name of the core type
|
|
6955
6991
|
*/},{key:"getExternalcontactsContactsSchemasCoretype",value:function getExternalcontactsContactsSchemasCoretype(coreTypeName){// verify the required parameter 'coreTypeName' is set
|
|
@@ -7109,7 +7145,7 @@ if(schemaId===undefined||schemaId===null){throw'Missing the required parameter "
|
|
|
7109
7145
|
* Get a list of schemas.
|
|
7110
7146
|
*
|
|
7111
7147
|
*/},{key:"getExternalcontactsOrganizationsSchemas",value:function getExternalcontactsOrganizationsSchemas(){return this.apiClient.callApi('/api/v2/externalcontacts/organizations/schemas','GET',{},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
7112
|
-
* Get
|
|
7148
|
+
* Get a specific named core type.
|
|
7113
7149
|
*
|
|
7114
7150
|
* @param {String} coreTypeName Name of the core type
|
|
7115
7151
|
*/},{key:"getExternalcontactsOrganizationsSchemasCoretype",value:function getExternalcontactsOrganizationsSchemasCoretype(coreTypeName){// verify the required parameter 'coreTypeName' is set
|
|
@@ -7533,7 +7569,7 @@ if(relationshipId===undefined||relationshipId===null){throw'Missing the required
|
|
|
7533
7569
|
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(){/**
|
|
7534
7570
|
* Fax service.
|
|
7535
7571
|
* @module purecloud-platform-client-v2/api/FaxApi
|
|
7536
|
-
* @version
|
|
7572
|
+
* @version 223.0.0
|
|
7537
7573
|
*//**
|
|
7538
7574
|
* Constructs a new FaxApi.
|
|
7539
7575
|
* @alias module:purecloud-platform-client-v2/api/FaxApi
|
|
@@ -7582,7 +7618,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
7582
7618
|
*/},{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(){/**
|
|
7583
7619
|
* Flows service.
|
|
7584
7620
|
* @module purecloud-platform-client-v2/api/FlowsApi
|
|
7585
|
-
* @version
|
|
7621
|
+
* @version 223.0.0
|
|
7586
7622
|
*//**
|
|
7587
7623
|
* Constructs a new FlowsApi.
|
|
7588
7624
|
* @alias module:purecloud-platform-client-v2/api/FlowsApi
|
|
@@ -7630,7 +7666,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
7630
7666
|
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(){/**
|
|
7631
7667
|
* Gamification service.
|
|
7632
7668
|
* @module purecloud-platform-client-v2/api/GamificationApi
|
|
7633
|
-
* @version
|
|
7669
|
+
* @version 223.0.0
|
|
7634
7670
|
*//**
|
|
7635
7671
|
* Constructs a new GamificationApi.
|
|
7636
7672
|
* @alias module:purecloud-platform-client-v2/api/GamificationApi
|
|
@@ -8283,7 +8319,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
8283
8319
|
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(){/**
|
|
8284
8320
|
* GeneralDataProtectionRegulation service.
|
|
8285
8321
|
* @module purecloud-platform-client-v2/api/GeneralDataProtectionRegulationApi
|
|
8286
|
-
* @version
|
|
8322
|
+
* @version 223.0.0
|
|
8287
8323
|
*//**
|
|
8288
8324
|
* Constructs a new GeneralDataProtectionRegulationApi.
|
|
8289
8325
|
* @alias module:purecloud-platform-client-v2/api/GeneralDataProtectionRegulationApi
|
|
@@ -8318,7 +8354,7 @@ if(searchValue===undefined||searchValue===null){throw'Missing the required param
|
|
|
8318
8354
|
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(){/**
|
|
8319
8355
|
* Geolocation service.
|
|
8320
8356
|
* @module purecloud-platform-client-v2/api/GeolocationApi
|
|
8321
|
-
* @version
|
|
8357
|
+
* @version 223.0.0
|
|
8322
8358
|
*//**
|
|
8323
8359
|
* Constructs a new GeolocationApi.
|
|
8324
8360
|
* @alias module:purecloud-platform-client-v2/api/GeolocationApi
|
|
@@ -8352,7 +8388,7 @@ if(clientId===undefined||clientId===null){throw'Missing the required parameter "
|
|
|
8352
8388
|
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(){/**
|
|
8353
8389
|
* Greetings service.
|
|
8354
8390
|
* @module purecloud-platform-client-v2/api/GreetingsApi
|
|
8355
|
-
* @version
|
|
8391
|
+
* @version 223.0.0
|
|
8356
8392
|
*//**
|
|
8357
8393
|
* Constructs a new GreetingsApi.
|
|
8358
8394
|
* @alias module:purecloud-platform-client-v2/api/GreetingsApi
|
|
@@ -8459,7 +8495,7 @@ if(userId===undefined||userId===null){throw'Missing the required parameter "user
|
|
|
8459
8495
|
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(){/**
|
|
8460
8496
|
* Groups service.
|
|
8461
8497
|
* @module purecloud-platform-client-v2/api/GroupsApi
|
|
8462
|
-
* @version
|
|
8498
|
+
* @version 223.0.0
|
|
8463
8499
|
*//**
|
|
8464
8500
|
* Constructs a new GroupsApi.
|
|
8465
8501
|
* @alias module:purecloud-platform-client-v2/api/GroupsApi
|
|
@@ -8592,7 +8628,7 @@ if(groupId===undefined||groupId===null){throw'Missing the required parameter "gr
|
|
|
8592
8628
|
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(){/**
|
|
8593
8629
|
* IdentityProvider service.
|
|
8594
8630
|
* @module purecloud-platform-client-v2/api/IdentityProviderApi
|
|
8595
|
-
* @version
|
|
8631
|
+
* @version 223.0.0
|
|
8596
8632
|
*//**
|
|
8597
8633
|
* Constructs a new IdentityProviderApi.
|
|
8598
8634
|
* @alias module:purecloud-platform-client-v2/api/IdentityProviderApi
|
|
@@ -8748,7 +8784,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
8748
8784
|
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(){/**
|
|
8749
8785
|
* InfrastructureAsCode service.
|
|
8750
8786
|
* @module purecloud-platform-client-v2/api/InfrastructureAsCodeApi
|
|
8751
|
-
* @version
|
|
8787
|
+
* @version 223.0.0
|
|
8752
8788
|
*//**
|
|
8753
8789
|
* Constructs a new InfrastructureAsCodeApi.
|
|
8754
8790
|
* @alias module:purecloud-platform-client-v2/api/InfrastructureAsCodeApi
|
|
@@ -8802,7 +8838,7 @@ if(jobId===undefined||jobId===null){throw'Missing the required parameter "jobId"
|
|
|
8802
8838
|
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(){/**
|
|
8803
8839
|
* Integrations service.
|
|
8804
8840
|
* @module purecloud-platform-client-v2/api/IntegrationsApi
|
|
8805
|
-
* @version
|
|
8841
|
+
* @version 223.0.0
|
|
8806
8842
|
*//**
|
|
8807
8843
|
* Constructs a new IntegrationsApi.
|
|
8808
8844
|
* @alias module:purecloud-platform-client-v2/api/IntegrationsApi
|
|
@@ -8975,6 +9011,34 @@ if(fileName===undefined||fileName===null){throw'Missing the required parameter "
|
|
|
8975
9011
|
* Get action function settings for Action
|
|
8976
9012
|
*
|
|
8977
9013
|
*/},{key:"getIntegrationsActionsFunctionsRuntimes",value:function getIntegrationsActionsFunctionsRuntimes(){return this.apiClient.callApi('/api/v2/integrations/actions/functions/runtimes','GET',{},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
9014
|
+
* Get a specific Bot details
|
|
9015
|
+
*
|
|
9016
|
+
* @param {String} integrationId The integration ID for this group of bots
|
|
9017
|
+
* @param {String} botId The bot ID for this bot
|
|
9018
|
+
* @param {Object} opts Optional parameters
|
|
9019
|
+
* @param {String} opts.version Specific Version
|
|
9020
|
+
* getIntegrationsBotconnectorBot is a preview method and is subject to both breaking and non-breaking changes at any time without notice
|
|
9021
|
+
*/},{key:"getIntegrationsBotconnectorBot",value:function getIntegrationsBotconnectorBot(integrationId,botId,opts){opts=opts||{};// verify the required parameter 'integrationId' is set
|
|
9022
|
+
if(integrationId===undefined||integrationId===null){throw'Missing the required parameter "integrationId" when calling getIntegrationsBotconnectorBot';}// verify the required parameter 'botId' is set
|
|
9023
|
+
if(botId===undefined||botId===null){throw'Missing the required parameter "botId" when calling getIntegrationsBotconnectorBot';}return this.apiClient.callApi('/api/v2/integrations/botconnectors/{integrationId}/bots/{botId}','GET',{'integrationId':integrationId,'botId':botId},{'version':opts['version']},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
9024
|
+
* Get the list of bots for this integration.
|
|
9025
|
+
*
|
|
9026
|
+
* @param {String} integrationId The integration ID for this group of bots.
|
|
9027
|
+
* @param {Object} opts Optional parameters
|
|
9028
|
+
* @param {Number} opts.pageNumber Page number (default to 1)
|
|
9029
|
+
* @param {Number} opts.pageSize Page size (default to 25)
|
|
9030
|
+
* getIntegrationsBotconnectorBots is a preview method and is subject to both breaking and non-breaking changes at any time without notice
|
|
9031
|
+
*/},{key:"getIntegrationsBotconnectorBots",value:function getIntegrationsBotconnectorBots(integrationId,opts){opts=opts||{};// verify the required parameter 'integrationId' is set
|
|
9032
|
+
if(integrationId===undefined||integrationId===null){throw'Missing the required parameter "integrationId" when calling getIntegrationsBotconnectorBots';}return this.apiClient.callApi('/api/v2/integrations/botconnectors/{integrationId}/bots','GET',{'integrationId':integrationId},{'pageNumber':opts['pageNumber'],'pageSize':opts['pageSize']},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
9033
|
+
* Get the summary list of bots for this integration.
|
|
9034
|
+
*
|
|
9035
|
+
* @param {String} integrationId The integration ID for this group of bots.
|
|
9036
|
+
* @param {Object} opts Optional parameters
|
|
9037
|
+
* @param {Number} opts.pageNumber Page number (default to 1)
|
|
9038
|
+
* @param {Number} opts.pageSize Page size (default to 25)
|
|
9039
|
+
* getIntegrationsBotconnectorBotsSummaries is a preview method and is subject to both breaking and non-breaking changes at any time without notice
|
|
9040
|
+
*/},{key:"getIntegrationsBotconnectorBotsSummaries",value:function getIntegrationsBotconnectorBotsSummaries(integrationId,opts){opts=opts||{};// verify the required parameter 'integrationId' is set
|
|
9041
|
+
if(integrationId===undefined||integrationId===null){throw'Missing the required parameter "integrationId" when calling getIntegrationsBotconnectorBotsSummaries';}return this.apiClient.callApi('/api/v2/integrations/botconnectors/{integrationId}/bots/summaries','GET',{'integrationId':integrationId},{'pageNumber':opts['pageNumber'],'pageSize':opts['pageSize']},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
8978
9042
|
* Get a specific botConnector bot, plus versions, for this integration
|
|
8979
9043
|
*
|
|
8980
9044
|
* @param {String} integrationId The integration ID for this group of bots
|
|
@@ -9354,6 +9418,18 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
9354
9418
|
* @param {Object} body Input used to create Action Draft.
|
|
9355
9419
|
*/},{key:"postIntegrationsActionsDrafts",value:function postIntegrationsActionsDrafts(body){// verify the required parameter 'body' is set
|
|
9356
9420
|
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling postIntegrationsActionsDrafts';}return this.apiClient.callApi('/api/v2/integrations/actions/drafts','POST',{},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
9421
|
+
* Send an incoming message to the bot.
|
|
9422
|
+
*
|
|
9423
|
+
* @param {Object} body Incoming Message Request
|
|
9424
|
+
* postIntegrationsBotconnectorsIncomingMessages is a preview method and is subject to both breaking and non-breaking changes at any time without notice
|
|
9425
|
+
*/},{key:"postIntegrationsBotconnectorsIncomingMessages",value:function postIntegrationsBotconnectorsIncomingMessages(body){// verify the required parameter 'body' is set
|
|
9426
|
+
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling postIntegrationsBotconnectorsIncomingMessages';}return this.apiClient.callApi('/api/v2/integrations/botconnectors/incoming/messages','POST',{},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
9427
|
+
* Send an outgoing message to the end user.
|
|
9428
|
+
*
|
|
9429
|
+
* @param {Object} body Outgoing Message Request
|
|
9430
|
+
* postIntegrationsBotconnectorsOutgoingMessages is a preview method and is subject to both breaking and non-breaking changes at any time without notice
|
|
9431
|
+
*/},{key:"postIntegrationsBotconnectorsOutgoingMessages",value:function postIntegrationsBotconnectorsOutgoingMessages(body){// verify the required parameter 'body' is set
|
|
9432
|
+
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling postIntegrationsBotconnectorsOutgoingMessages';}return this.apiClient.callApi('/api/v2/integrations/botconnectors/outgoing/messages','POST',{},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
9357
9433
|
* Create a set of credentials
|
|
9358
9434
|
*
|
|
9359
9435
|
* @param {Object} opts Optional parameters
|
|
@@ -9441,7 +9517,7 @@ if(ucIntegrationId===undefined||ucIntegrationId===null){throw'Missing the requir
|
|
|
9441
9517
|
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(){/**
|
|
9442
9518
|
* Journey service.
|
|
9443
9519
|
* @module purecloud-platform-client-v2/api/JourneyApi
|
|
9444
|
-
* @version
|
|
9520
|
+
* @version 223.0.0
|
|
9445
9521
|
*//**
|
|
9446
9522
|
* Constructs a new JourneyApi.
|
|
9447
9523
|
* @alias module:purecloud-platform-client-v2/api/JourneyApi
|
|
@@ -9921,7 +9997,7 @@ if(versionId===undefined||versionId===null){throw'Missing the required parameter
|
|
|
9921
9997
|
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(){/**
|
|
9922
9998
|
* Knowledge service.
|
|
9923
9999
|
* @module purecloud-platform-client-v2/api/KnowledgeApi
|
|
9924
|
-
* @version
|
|
10000
|
+
* @version 223.0.0
|
|
9925
10001
|
*//**
|
|
9926
10002
|
* Constructs a new KnowledgeApi.
|
|
9927
10003
|
* @alias module:purecloud-platform-client-v2/api/KnowledgeApi
|
|
@@ -10984,7 +11060,7 @@ if(sourceId===undefined||sourceId===null){throw'Missing the required parameter "
|
|
|
10984
11060
|
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(){/**
|
|
10985
11061
|
* LanguageUnderstanding service.
|
|
10986
11062
|
* @module purecloud-platform-client-v2/api/LanguageUnderstandingApi
|
|
10987
|
-
* @version
|
|
11063
|
+
* @version 223.0.0
|
|
10988
11064
|
*//**
|
|
10989
11065
|
* Constructs a new LanguageUnderstandingApi.
|
|
10990
11066
|
* @alias module:purecloud-platform-client-v2/api/LanguageUnderstandingApi
|
|
@@ -11243,7 +11319,7 @@ if(domainVersionId===undefined||domainVersionId===null){throw'Missing the requir
|
|
|
11243
11319
|
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(){/**
|
|
11244
11320
|
* Languages service.
|
|
11245
11321
|
* @module purecloud-platform-client-v2/api/LanguagesApi
|
|
11246
|
-
* @version
|
|
11322
|
+
* @version 223.0.0
|
|
11247
11323
|
*//**
|
|
11248
11324
|
* Constructs a new LanguagesApi.
|
|
11249
11325
|
* @alias module:purecloud-platform-client-v2/api/LanguagesApi
|
|
@@ -11298,7 +11374,7 @@ if(userId===undefined||userId===null){throw'Missing the required parameter "user
|
|
|
11298
11374
|
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(){/**
|
|
11299
11375
|
* Learning service.
|
|
11300
11376
|
* @module purecloud-platform-client-v2/api/LearningApi
|
|
11301
|
-
* @version
|
|
11377
|
+
* @version 223.0.0
|
|
11302
11378
|
*//**
|
|
11303
11379
|
* Constructs a new LearningApi.
|
|
11304
11380
|
* @alias module:purecloud-platform-client-v2/api/LearningApi
|
|
@@ -11569,7 +11645,7 @@ if(moduleId===undefined||moduleId===null){throw'Missing the required parameter "
|
|
|
11569
11645
|
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(){/**
|
|
11570
11646
|
* License service.
|
|
11571
11647
|
* @module purecloud-platform-client-v2/api/LicenseApi
|
|
11572
|
-
* @version
|
|
11648
|
+
* @version 223.0.0
|
|
11573
11649
|
*//**
|
|
11574
11650
|
* Constructs a new LicenseApi.
|
|
11575
11651
|
* @alias module:purecloud-platform-client-v2/api/LicenseApi
|
|
@@ -11623,7 +11699,7 @@ if(featureName===undefined||featureName===null){throw'Missing the required param
|
|
|
11623
11699
|
*/},{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(){/**
|
|
11624
11700
|
* Locations service.
|
|
11625
11701
|
* @module purecloud-platform-client-v2/api/LocationsApi
|
|
11626
|
-
* @version
|
|
11702
|
+
* @version 223.0.0
|
|
11627
11703
|
*//**
|
|
11628
11704
|
* Constructs a new LocationsApi.
|
|
11629
11705
|
* @alias module:purecloud-platform-client-v2/api/LocationsApi
|
|
@@ -11682,7 +11758,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
11682
11758
|
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(){/**
|
|
11683
11759
|
* LogCapture service.
|
|
11684
11760
|
* @module purecloud-platform-client-v2/api/LogCaptureApi
|
|
11685
|
-
* @version
|
|
11761
|
+
* @version 223.0.0
|
|
11686
11762
|
*//**
|
|
11687
11763
|
* Constructs a new LogCaptureApi.
|
|
11688
11764
|
* @alias module:purecloud-platform-client-v2/api/LogCaptureApi
|
|
@@ -11718,11 +11794,10 @@ if(userId===undefined||userId===null){throw'Missing the required parameter "user
|
|
|
11718
11794
|
* Query collected log entries. It returns a limited amount of records, to get all records use download endpoint.
|
|
11719
11795
|
*
|
|
11720
11796
|
* @param {Object} opts Optional parameters
|
|
11721
|
-
* @param {String} opts.before The cursor that points to the start of the set of entities that has been returned.
|
|
11722
11797
|
* @param {String} opts.after The cursor that points to the end of the set of entities that has been returned.
|
|
11723
11798
|
* @param {String} opts.pageSize Number of entities to return. Maximum of 200.
|
|
11724
11799
|
* @param {Object} opts.body
|
|
11725
|
-
*/},{key:"postDiagnosticsLogcaptureBrowserEntriesQuery",value:function postDiagnosticsLogcaptureBrowserEntriesQuery(opts){opts=opts||{};return this.apiClient.callApi('/api/v2/diagnostics/logcapture/browser/entries/query','POST',{},{'
|
|
11800
|
+
*/},{key:"postDiagnosticsLogcaptureBrowserEntriesQuery",value:function postDiagnosticsLogcaptureBrowserEntriesQuery(opts){opts=opts||{};return this.apiClient.callApi('/api/v2/diagnostics/logcapture/browser/entries/query','POST',{},{'after':opts['after'],'pageSize':opts['pageSize']},{},{},opts['body'],['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
11726
11801
|
* Enable log capture for a user or update expiration
|
|
11727
11802
|
*
|
|
11728
11803
|
* @param {String} userId The id of the user to enable browser log capture
|
|
@@ -11732,7 +11807,7 @@ if(userId===undefined||userId===null){throw'Missing the required parameter "user
|
|
|
11732
11807
|
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(){/**
|
|
11733
11808
|
* Messaging service.
|
|
11734
11809
|
* @module purecloud-platform-client-v2/api/MessagingApi
|
|
11735
|
-
* @version
|
|
11810
|
+
* @version 223.0.0
|
|
11736
11811
|
*//**
|
|
11737
11812
|
* Constructs a new MessagingApi.
|
|
11738
11813
|
* @alias module:purecloud-platform-client-v2/api/MessagingApi
|
|
@@ -11822,7 +11897,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
11822
11897
|
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(){/**
|
|
11823
11898
|
* MobileDevices service.
|
|
11824
11899
|
* @module purecloud-platform-client-v2/api/MobileDevicesApi
|
|
11825
|
-
* @version
|
|
11900
|
+
* @version 223.0.0
|
|
11826
11901
|
*//**
|
|
11827
11902
|
* Constructs a new MobileDevicesApi.
|
|
11828
11903
|
* @alias module:purecloud-platform-client-v2/api/MobileDevicesApi
|
|
@@ -11861,7 +11936,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
11861
11936
|
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(){/**
|
|
11862
11937
|
* Notifications service.
|
|
11863
11938
|
* @module purecloud-platform-client-v2/api/NotificationsApi
|
|
11864
|
-
* @version
|
|
11939
|
+
* @version 223.0.0
|
|
11865
11940
|
*//**
|
|
11866
11941
|
* Constructs a new NotificationsApi.
|
|
11867
11942
|
* @alias module:purecloud-platform-client-v2/api/NotificationsApi
|
|
@@ -11918,7 +11993,7 @@ if(channelId===undefined||channelId===null){throw'Missing the required parameter
|
|
|
11918
11993
|
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(){/**
|
|
11919
11994
|
* OAuth service.
|
|
11920
11995
|
* @module purecloud-platform-client-v2/api/OAuthApi
|
|
11921
|
-
* @version
|
|
11996
|
+
* @version 223.0.0
|
|
11922
11997
|
*//**
|
|
11923
11998
|
* Constructs a new OAuthApi.
|
|
11924
11999
|
* @alias module:purecloud-platform-client-v2/api/OAuthApi
|
|
@@ -12003,7 +12078,7 @@ if(clientId===undefined||clientId===null){throw'Missing the required parameter "
|
|
|
12003
12078
|
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(){/**
|
|
12004
12079
|
* Objects service.
|
|
12005
12080
|
* @module purecloud-platform-client-v2/api/ObjectsApi
|
|
12006
|
-
* @version
|
|
12081
|
+
* @version 223.0.0
|
|
12007
12082
|
*//**
|
|
12008
12083
|
* Constructs a new ObjectsApi.
|
|
12009
12084
|
* @alias module:purecloud-platform-client-v2/api/ObjectsApi
|
|
@@ -12089,7 +12164,7 @@ if(divisionId===undefined||divisionId===null){throw'Missing the required paramet
|
|
|
12089
12164
|
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(){/**
|
|
12090
12165
|
* OperationalEvents service.
|
|
12091
12166
|
* @module purecloud-platform-client-v2/api/OperationalEventsApi
|
|
12092
|
-
* @version
|
|
12167
|
+
* @version 223.0.0
|
|
12093
12168
|
*//**
|
|
12094
12169
|
* Constructs a new OperationalEventsApi.
|
|
12095
12170
|
* @alias module:purecloud-platform-client-v2/api/OperationalEventsApi
|
|
@@ -12120,7 +12195,7 @@ if(eventDefinitionId===undefined||eventDefinitionId===null){throw'Missing the re
|
|
|
12120
12195
|
*/},{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(){/**
|
|
12121
12196
|
* Organization service.
|
|
12122
12197
|
* @module purecloud-platform-client-v2/api/OrganizationApi
|
|
12123
|
-
* @version
|
|
12198
|
+
* @version 223.0.0
|
|
12124
12199
|
*//**
|
|
12125
12200
|
* Constructs a new OrganizationApi.
|
|
12126
12201
|
* @alias module:purecloud-platform-client-v2/api/OrganizationApi
|
|
@@ -12225,7 +12300,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
12225
12300
|
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(){/**
|
|
12226
12301
|
* OrganizationAuthorization service.
|
|
12227
12302
|
* @module purecloud-platform-client-v2/api/OrganizationAuthorizationApi
|
|
12228
|
-
* @version
|
|
12303
|
+
* @version 223.0.0
|
|
12229
12304
|
*//**
|
|
12230
12305
|
* Constructs a new OrganizationAuthorizationApi.
|
|
12231
12306
|
* @alias module:purecloud-platform-client-v2/api/OrganizationAuthorizationApi
|
|
@@ -12559,7 +12634,7 @@ if(trustorOrgId===undefined||trustorOrgId===null){throw'Missing the required par
|
|
|
12559
12634
|
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(){/**
|
|
12560
12635
|
* Outbound service.
|
|
12561
12636
|
* @module purecloud-platform-client-v2/api/OutboundApi
|
|
12562
|
-
* @version
|
|
12637
|
+
* @version 223.0.0
|
|
12563
12638
|
*//**
|
|
12564
12639
|
* Constructs a new OutboundApi.
|
|
12565
12640
|
* @alias module:purecloud-platform-client-v2/api/OutboundApi
|
|
@@ -13690,7 +13765,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
13690
13765
|
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(){/**
|
|
13691
13766
|
* Presence service.
|
|
13692
13767
|
* @module purecloud-platform-client-v2/api/PresenceApi
|
|
13693
|
-
* @version
|
|
13768
|
+
* @version 223.0.0
|
|
13694
13769
|
*//**
|
|
13695
13770
|
* Constructs a new PresenceApi.
|
|
13696
13771
|
* @alias module:purecloud-platform-client-v2/api/PresenceApi
|
|
@@ -13863,7 +13938,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
13863
13938
|
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(){/**
|
|
13864
13939
|
* ProcessAutomation service.
|
|
13865
13940
|
* @module purecloud-platform-client-v2/api/ProcessAutomationApi
|
|
13866
|
-
* @version
|
|
13941
|
+
* @version 223.0.0
|
|
13867
13942
|
*//**
|
|
13868
13943
|
* Constructs a new ProcessAutomationApi.
|
|
13869
13944
|
* @alias module:purecloud-platform-client-v2/api/ProcessAutomationApi
|
|
@@ -13926,7 +14001,7 @@ if(triggerId===undefined||triggerId===null){throw'Missing the required parameter
|
|
|
13926
14001
|
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(){/**
|
|
13927
14002
|
* Quality service.
|
|
13928
14003
|
* @module purecloud-platform-client-v2/api/QualityApi
|
|
13929
|
-
* @version
|
|
14004
|
+
* @version 223.0.0
|
|
13930
14005
|
*//**
|
|
13931
14006
|
* Constructs a new QualityApi.
|
|
13932
14007
|
* @alias module:purecloud-platform-client-v2/api/QualityApi
|
|
@@ -14404,7 +14479,7 @@ if(customerSurveyUrl===undefined||customerSurveyUrl===null){throw'Missing the re
|
|
|
14404
14479
|
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(){/**
|
|
14405
14480
|
* Recording service.
|
|
14406
14481
|
* @module purecloud-platform-client-v2/api/RecordingApi
|
|
14407
|
-
* @version
|
|
14482
|
+
* @version 223.0.0
|
|
14408
14483
|
*//**
|
|
14409
14484
|
* Constructs a new RecordingApi.
|
|
14410
14485
|
* @alias module:purecloud-platform-client-v2/api/RecordingApi
|
|
@@ -14803,7 +14878,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
14803
14878
|
*/},{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(){/**
|
|
14804
14879
|
* ResponseManagement service.
|
|
14805
14880
|
* @module purecloud-platform-client-v2/api/ResponseManagementApi
|
|
14806
|
-
* @version
|
|
14881
|
+
* @version 223.0.0
|
|
14807
14882
|
*//**
|
|
14808
14883
|
* Constructs a new ResponseManagementApi.
|
|
14809
14884
|
* @alias module:purecloud-platform-client-v2/api/ResponseManagementApi
|
|
@@ -14924,7 +14999,7 @@ if(responseAssetId===undefined||responseAssetId===null){throw'Missing the requir
|
|
|
14924
14999
|
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(){/**
|
|
14925
15000
|
* Routing service.
|
|
14926
15001
|
* @module purecloud-platform-client-v2/api/RoutingApi
|
|
14927
|
-
* @version
|
|
15002
|
+
* @version 223.0.0
|
|
14928
15003
|
*//**
|
|
14929
15004
|
* Constructs a new RoutingApi.
|
|
14930
15005
|
* @alias module:purecloud-platform-client-v2/api/RoutingApi
|
|
@@ -15972,7 +16047,7 @@ if(userId===undefined||userId===null){throw'Missing the required parameter "user
|
|
|
15972
16047
|
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(){/**
|
|
15973
16048
|
* SCIM service.
|
|
15974
16049
|
* @module purecloud-platform-client-v2/api/SCIMApi
|
|
15975
|
-
* @version
|
|
16050
|
+
* @version 223.0.0
|
|
15976
16051
|
*//**
|
|
15977
16052
|
* Constructs a new SCIMApi.
|
|
15978
16053
|
* @alias module:purecloud-platform-client-v2/api/SCIMApi
|
|
@@ -16197,7 +16272,7 @@ if(userId===undefined||userId===null){throw'Missing the required parameter "user
|
|
|
16197
16272
|
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(){/**
|
|
16198
16273
|
* ScreenRecording service.
|
|
16199
16274
|
* @module purecloud-platform-client-v2/api/ScreenRecordingApi
|
|
16200
|
-
* @version
|
|
16275
|
+
* @version 223.0.0
|
|
16201
16276
|
*//**
|
|
16202
16277
|
* Constructs a new ScreenRecordingApi.
|
|
16203
16278
|
* @alias module:purecloud-platform-client-v2/api/ScreenRecordingApi
|
|
@@ -16212,7 +16287,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
16212
16287
|
*/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(){/**
|
|
16213
16288
|
* Scripts service.
|
|
16214
16289
|
* @module purecloud-platform-client-v2/api/ScriptsApi
|
|
16215
|
-
* @version
|
|
16290
|
+
* @version 223.0.0
|
|
16216
16291
|
*//**
|
|
16217
16292
|
* Constructs a new ScriptsApi.
|
|
16218
16293
|
* @alias module:purecloud-platform-client-v2/api/ScriptsApi
|
|
@@ -16358,7 +16433,7 @@ if(scriptId===undefined||scriptId===null){throw'Missing the required parameter "
|
|
|
16358
16433
|
*/},{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(){/**
|
|
16359
16434
|
* Search service.
|
|
16360
16435
|
* @module purecloud-platform-client-v2/api/SearchApi
|
|
16361
|
-
* @version
|
|
16436
|
+
* @version 223.0.0
|
|
16362
16437
|
*//**
|
|
16363
16438
|
* Constructs a new SearchApi.
|
|
16364
16439
|
* @alias module:purecloud-platform-client-v2/api/SearchApi
|
|
@@ -16530,7 +16605,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
16530
16605
|
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(){/**
|
|
16531
16606
|
* Settings service.
|
|
16532
16607
|
* @module purecloud-platform-client-v2/api/SettingsApi
|
|
16533
|
-
* @version
|
|
16608
|
+
* @version 223.0.0
|
|
16534
16609
|
*//**
|
|
16535
16610
|
* Constructs a new SettingsApi.
|
|
16536
16611
|
* @alias module:purecloud-platform-client-v2/api/SettingsApi
|
|
@@ -16602,7 +16677,7 @@ if(agentId===undefined||agentId===null){throw'Missing the required parameter "ag
|
|
|
16602
16677
|
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(){/**
|
|
16603
16678
|
* SocialMedia service.
|
|
16604
16679
|
* @module purecloud-platform-client-v2/api/SocialMediaApi
|
|
16605
|
-
* @version
|
|
16680
|
+
* @version 223.0.0
|
|
16606
16681
|
*//**
|
|
16607
16682
|
* Constructs a new SocialMediaApi.
|
|
16608
16683
|
* @alias module:purecloud-platform-client-v2/api/SocialMediaApi
|
|
@@ -16643,7 +16718,6 @@ if(facebookIngestionRuleId===undefined||facebookIngestionRuleId===null){throw'Mi
|
|
|
16643
16718
|
* @param {String} openId openId
|
|
16644
16719
|
* @param {Object} opts Optional parameters
|
|
16645
16720
|
* @param {Boolean} opts.hardDelete Determines whether a open data ingestion rule should be soft-deleted (have it's state set to deleted) or hard-deleted (permanently removed). Set to false (soft-delete) by default. (default to false)
|
|
16646
|
-
* deleteSocialmediaTopicDataingestionrulesOpenOpenId is a preview method and is subject to both breaking and non-breaking changes at any time without notice
|
|
16647
16721
|
*/},{key:"deleteSocialmediaTopicDataingestionrulesOpenOpenId",value:function deleteSocialmediaTopicDataingestionrulesOpenOpenId(topicId,openId,opts){opts=opts||{};// verify the required parameter 'topicId' is set
|
|
16648
16722
|
if(topicId===undefined||topicId===null){throw'Missing the required parameter "topicId" when calling deleteSocialmediaTopicDataingestionrulesOpenOpenId';}// verify the required parameter 'openId' is set
|
|
16649
16723
|
if(openId===undefined||openId===null){throw'Missing the required parameter "openId" when calling deleteSocialmediaTopicDataingestionrulesOpenOpenId';}return this.apiClient.callApi('/api/v2/socialmedia/topics/{topicId}/dataingestionrules/open/{openId}','DELETE',{'topicId':topicId,'openId':openId},{'hardDelete':opts['hardDelete']},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
@@ -16746,7 +16820,6 @@ if(facebookIngestionRuleId===undefined||facebookIngestionRuleId===null){throw'Mi
|
|
|
16746
16820
|
* @param {String} openId openId
|
|
16747
16821
|
* @param {Object} opts Optional parameters
|
|
16748
16822
|
* @param {Boolean} opts.includeDeleted Determines whether to include soft-deleted items in the result.
|
|
16749
|
-
* getSocialmediaTopicDataingestionrulesOpenOpenId is a preview method and is subject to both breaking and non-breaking changes at any time without notice
|
|
16750
16823
|
*/},{key:"getSocialmediaTopicDataingestionrulesOpenOpenId",value:function getSocialmediaTopicDataingestionrulesOpenOpenId(topicId,openId,opts){opts=opts||{};// verify the required parameter 'topicId' is set
|
|
16751
16824
|
if(topicId===undefined||topicId===null){throw'Missing the required parameter "topicId" when calling getSocialmediaTopicDataingestionrulesOpenOpenId';}// verify the required parameter 'openId' is set
|
|
16752
16825
|
if(openId===undefined||openId===null){throw'Missing the required parameter "openId" when calling getSocialmediaTopicDataingestionrulesOpenOpenId';}return this.apiClient.callApi('/api/v2/socialmedia/topics/{topicId}/dataingestionrules/open/{openId}','GET',{'topicId':topicId,'openId':openId},{'includeDeleted':opts['includeDeleted']},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
@@ -16757,7 +16830,6 @@ if(openId===undefined||openId===null){throw'Missing the required parameter "open
|
|
|
16757
16830
|
* @param {String} dataIngestionRuleVersion version
|
|
16758
16831
|
* @param {Object} opts Optional parameters
|
|
16759
16832
|
* @param {Boolean} opts.includeDeleted Determines whether to include soft-deleted item in the result.
|
|
16760
|
-
* getSocialmediaTopicDataingestionrulesOpenOpenIdVersion is a preview method and is subject to both breaking and non-breaking changes at any time without notice
|
|
16761
16833
|
*/},{key:"getSocialmediaTopicDataingestionrulesOpenOpenIdVersion",value:function getSocialmediaTopicDataingestionrulesOpenOpenIdVersion(topicId,openId,dataIngestionRuleVersion,opts){opts=opts||{};// verify the required parameter 'topicId' is set
|
|
16762
16834
|
if(topicId===undefined||topicId===null){throw'Missing the required parameter "topicId" when calling getSocialmediaTopicDataingestionrulesOpenOpenIdVersion';}// verify the required parameter 'openId' is set
|
|
16763
16835
|
if(openId===undefined||openId===null){throw'Missing the required parameter "openId" when calling getSocialmediaTopicDataingestionrulesOpenOpenIdVersion';}// verify the required parameter 'dataIngestionRuleVersion' is set
|
|
@@ -16770,7 +16842,6 @@ if(dataIngestionRuleVersion===undefined||dataIngestionRuleVersion===null){throw'
|
|
|
16770
16842
|
* @param {Number} opts.pageNumber Page number (default to 1)
|
|
16771
16843
|
* @param {Number} opts.pageSize Page size (default to 25)
|
|
16772
16844
|
* @param {Boolean} opts.includeDeleted Determines whether to include soft-deleted items in the result.
|
|
16773
|
-
* getSocialmediaTopicDataingestionrulesOpenOpenIdVersions is a preview method and is subject to both breaking and non-breaking changes at any time without notice
|
|
16774
16845
|
*/},{key:"getSocialmediaTopicDataingestionrulesOpenOpenIdVersions",value:function getSocialmediaTopicDataingestionrulesOpenOpenIdVersions(topicId,openId,opts){opts=opts||{};// verify the required parameter 'topicId' is set
|
|
16775
16846
|
if(topicId===undefined||topicId===null){throw'Missing the required parameter "topicId" when calling getSocialmediaTopicDataingestionrulesOpenOpenIdVersions';}// verify the required parameter 'openId' is set
|
|
16776
16847
|
if(openId===undefined||openId===null){throw'Missing the required parameter "openId" when calling getSocialmediaTopicDataingestionrulesOpenOpenIdVersions';}return this.apiClient.callApi('/api/v2/socialmedia/topics/{topicId}/dataingestionrules/open/{openId}/versions','GET',{'topicId':topicId,'openId':openId},{'pageNumber':opts['pageNumber'],'pageSize':opts['pageSize'],'includeDeleted':opts['includeDeleted']},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
@@ -16835,7 +16906,6 @@ if(facebookIngestionRuleId===undefined||facebookIngestionRuleId===null){throw'Mi
|
|
|
16835
16906
|
* @param {String} openId openId
|
|
16836
16907
|
* @param {Object} opts Optional parameters
|
|
16837
16908
|
* @param {Object} opts.body
|
|
16838
|
-
* patchSocialmediaTopicDataingestionrulesOpenOpenId is a preview method and is subject to both breaking and non-breaking changes at any time without notice
|
|
16839
16909
|
*/},{key:"patchSocialmediaTopicDataingestionrulesOpenOpenId",value:function patchSocialmediaTopicDataingestionrulesOpenOpenId(topicId,openId,opts){opts=opts||{};// verify the required parameter 'topicId' is set
|
|
16840
16910
|
if(topicId===undefined||topicId===null){throw'Missing the required parameter "topicId" when calling patchSocialmediaTopicDataingestionrulesOpenOpenId';}// verify the required parameter 'openId' is set
|
|
16841
16911
|
if(openId===undefined||openId===null){throw'Missing the required parameter "openId" when calling patchSocialmediaTopicDataingestionrulesOpenOpenId';}return this.apiClient.callApi('/api/v2/socialmedia/topics/{topicId}/dataingestionrules/open/{openId}','PATCH',{'topicId':topicId,'openId':openId},{},{},{},opts['body'],['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
@@ -16882,9 +16952,26 @@ if(topicId===undefined||topicId===null){throw'Missing the required parameter "to
|
|
|
16882
16952
|
* @param {String} topicId topicId
|
|
16883
16953
|
* @param {Object} opts Optional parameters
|
|
16884
16954
|
* @param {Object} opts.body
|
|
16885
|
-
* postSocialmediaTopicDataingestionrulesOpen is a preview method and is subject to both breaking and non-breaking changes at any time without notice
|
|
16886
16955
|
*/},{key:"postSocialmediaTopicDataingestionrulesOpen",value:function postSocialmediaTopicDataingestionrulesOpen(topicId,opts){opts=opts||{};// verify the required parameter 'topicId' is set
|
|
16887
16956
|
if(topicId===undefined||topicId===null){throw'Missing the required parameter "topicId" when calling postSocialmediaTopicDataingestionrulesOpen';}return this.apiClient.callApi('/api/v2/socialmedia/topics/{topicId}/dataingestionrules/open','POST',{'topicId':topicId},{},{},{},opts['body'],['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
16957
|
+
* Ingest a list of Open Social Messages
|
|
16958
|
+
* Ingest a list of open social messages to an ingestion rule on a topic. This endpoint will ingest and enrich these messages. In order to call this endpoint you will need OAuth token generated using OAuth client credentials authorized with at least social scope.
|
|
16959
|
+
* @param {String} topicId Topic ID
|
|
16960
|
+
* @param {String} ruleId Data Ingestion Rule ID
|
|
16961
|
+
* @param {Array.<Object>} body NormalizedMessage
|
|
16962
|
+
*/},{key:"postSocialmediaTopicDataingestionrulesOpenRuleIdMessagesBulk",value:function postSocialmediaTopicDataingestionrulesOpenRuleIdMessagesBulk(topicId,ruleId,body){// verify the required parameter 'topicId' is set
|
|
16963
|
+
if(topicId===undefined||topicId===null){throw'Missing the required parameter "topicId" when calling postSocialmediaTopicDataingestionrulesOpenRuleIdMessagesBulk';}// verify the required parameter 'ruleId' is set
|
|
16964
|
+
if(ruleId===undefined||ruleId===null){throw'Missing the required parameter "ruleId" when calling postSocialmediaTopicDataingestionrulesOpenRuleIdMessagesBulk';}// verify the required parameter 'body' is set
|
|
16965
|
+
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling postSocialmediaTopicDataingestionrulesOpenRuleIdMessagesBulk';}return this.apiClient.callApi('/api/v2/socialmedia/topics/{topicId}/dataingestionrules/open/{ruleId}/messages/bulk','POST',{'topicId':topicId,'ruleId':ruleId},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
16966
|
+
* Ingest a list of Open Social Reactions
|
|
16967
|
+
* Ingest a list of open social reactions to an ingestion rule on a topic. This endpoint will ingest these reactions. In order to call this endpoint you will need OAuth token generated using OAuth client credentials authorized with at least social scope.
|
|
16968
|
+
* @param {String} topicId Topic ID
|
|
16969
|
+
* @param {String} ruleId Data Ingestion Rule ID
|
|
16970
|
+
* @param {Object} body NormalizedEvent
|
|
16971
|
+
*/},{key:"postSocialmediaTopicDataingestionrulesOpenRuleIdReactionsBulk",value:function postSocialmediaTopicDataingestionrulesOpenRuleIdReactionsBulk(topicId,ruleId,body){// verify the required parameter 'topicId' is set
|
|
16972
|
+
if(topicId===undefined||topicId===null){throw'Missing the required parameter "topicId" when calling postSocialmediaTopicDataingestionrulesOpenRuleIdReactionsBulk';}// verify the required parameter 'ruleId' is set
|
|
16973
|
+
if(ruleId===undefined||ruleId===null){throw'Missing the required parameter "ruleId" when calling postSocialmediaTopicDataingestionrulesOpenRuleIdReactionsBulk';}// verify the required parameter 'body' is set
|
|
16974
|
+
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling postSocialmediaTopicDataingestionrulesOpenRuleIdReactionsBulk';}return this.apiClient.callApi('/api/v2/socialmedia/topics/{topicId}/dataingestionrules/open/{ruleId}/reactions/bulk','POST',{'topicId':topicId,'ruleId':ruleId},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
16888
16975
|
* Create an twitter data ingestion rule.
|
|
16889
16976
|
*
|
|
16890
16977
|
* @param {String} topicId topicId
|
|
@@ -16924,7 +17011,6 @@ if(facebookIngestionRuleId===undefined||facebookIngestionRuleId===null){throw'Mi
|
|
|
16924
17011
|
* @param {String} openId openId
|
|
16925
17012
|
* @param {Object} opts Optional parameters
|
|
16926
17013
|
* @param {Object} opts.body
|
|
16927
|
-
* putSocialmediaTopicDataingestionrulesOpenOpenId is a preview method and is subject to both breaking and non-breaking changes at any time without notice
|
|
16928
17014
|
*/},{key:"putSocialmediaTopicDataingestionrulesOpenOpenId",value:function putSocialmediaTopicDataingestionrulesOpenOpenId(topicId,openId,opts){opts=opts||{};// verify the required parameter 'topicId' is set
|
|
16929
17015
|
if(topicId===undefined||topicId===null){throw'Missing the required parameter "topicId" when calling putSocialmediaTopicDataingestionrulesOpenOpenId';}// verify the required parameter 'openId' is set
|
|
16930
17016
|
if(openId===undefined||openId===null){throw'Missing the required parameter "openId" when calling putSocialmediaTopicDataingestionrulesOpenOpenId';}return this.apiClient.callApi('/api/v2/socialmedia/topics/{topicId}/dataingestionrules/open/{openId}','PUT',{'topicId':topicId,'openId':openId},{},{},{},opts['body'],['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
@@ -16939,7 +17025,7 @@ if(topicId===undefined||topicId===null){throw'Missing the required parameter "to
|
|
|
16939
17025
|
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(){/**
|
|
16940
17026
|
* SpeechTextAnalytics service.
|
|
16941
17027
|
* @module purecloud-platform-client-v2/api/SpeechTextAnalyticsApi
|
|
16942
|
-
* @version
|
|
17028
|
+
* @version 223.0.0
|
|
16943
17029
|
*//**
|
|
16944
17030
|
* Constructs a new SpeechTextAnalyticsApi.
|
|
16945
17031
|
* @alias module:purecloud-platform-client-v2/api/SpeechTextAnalyticsApi
|
|
@@ -17141,6 +17227,11 @@ if(topicId===undefined||topicId===null){throw'Missing the required parameter "to
|
|
|
17141
17227
|
* @param {String} jobId The id of the publish topics job
|
|
17142
17228
|
*/},{key:"getSpeechandtextanalyticsTopicsPublishjob",value:function getSpeechandtextanalyticsTopicsPublishjob(jobId){// verify the required parameter 'jobId' is set
|
|
17143
17229
|
if(jobId===undefined||jobId===null){throw'Missing the required parameter "jobId" when calling getSpeechandtextanalyticsTopicsPublishjob';}return this.apiClient.callApi('/api/v2/speechandtextanalytics/topics/publishjobs/{jobId}','GET',{'jobId':jobId},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
17230
|
+
* Get a Speech and Text Analytics test topics phrase job by id
|
|
17231
|
+
*
|
|
17232
|
+
* @param {String} jobId the id of the test topic phrase job
|
|
17233
|
+
*/},{key:"getSpeechandtextanalyticsTopicsTestphraseJob",value:function getSpeechandtextanalyticsTopicsTestphraseJob(jobId){// verify the required parameter 'jobId' is set
|
|
17234
|
+
if(jobId===undefined||jobId===null){throw'Missing the required parameter "jobId" when calling getSpeechandtextanalyticsTopicsTestphraseJob';}return this.apiClient.callApi('/api/v2/speechandtextanalytics/topics/testphrase/jobs/{jobId}','GET',{'jobId':jobId},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
17144
17235
|
* Translate a single interaction recording (or an email conversation)
|
|
17145
17236
|
*
|
|
17146
17237
|
* @param {String} languageId Target translation language
|
|
@@ -17199,6 +17290,11 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
17199
17290
|
* @param {Object} body The publish topics job to create
|
|
17200
17291
|
*/},{key:"postSpeechandtextanalyticsTopicsPublishjobs",value:function postSpeechandtextanalyticsTopicsPublishjobs(body){// verify the required parameter 'body' is set
|
|
17201
17292
|
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling postSpeechandtextanalyticsTopicsPublishjobs';}return this.apiClient.callApi('/api/v2/speechandtextanalytics/topics/publishjobs','POST',{},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
17293
|
+
* Create new Speech and Text Analytics publish topics job
|
|
17294
|
+
*
|
|
17295
|
+
* @param {Object} body The publish test topic phrase job to create
|
|
17296
|
+
*/},{key:"postSpeechandtextanalyticsTopicsTestphraseJobs",value:function postSpeechandtextanalyticsTopicsTestphraseJobs(body){// verify the required parameter 'body' is set
|
|
17297
|
+
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling postSpeechandtextanalyticsTopicsTestphraseJobs';}return this.apiClient.callApi('/api/v2/speechandtextanalytics/topics/testphrase/jobs','POST',{},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
17202
17298
|
* Search resources.
|
|
17203
17299
|
*
|
|
17204
17300
|
* @param {Object} body Search request options
|
|
@@ -17260,7 +17356,7 @@ if(topicId===undefined||topicId===null){throw'Missing the required parameter "to
|
|
|
17260
17356
|
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(){/**
|
|
17261
17357
|
* Stations service.
|
|
17262
17358
|
* @module purecloud-platform-client-v2/api/StationsApi
|
|
17263
|
-
* @version
|
|
17359
|
+
* @version 223.0.0
|
|
17264
17360
|
*//**
|
|
17265
17361
|
* Constructs a new StationsApi.
|
|
17266
17362
|
* @alias module:purecloud-platform-client-v2/api/StationsApi
|
|
@@ -17292,7 +17388,7 @@ if(stationId===undefined||stationId===null){throw'Missing the required parameter
|
|
|
17292
17388
|
*/},{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(){/**
|
|
17293
17389
|
* Suggest service.
|
|
17294
17390
|
* @module purecloud-platform-client-v2/api/SuggestApi
|
|
17295
|
-
* @version
|
|
17391
|
+
* @version 223.0.0
|
|
17296
17392
|
*//**
|
|
17297
17393
|
* Constructs a new SuggestApi.
|
|
17298
17394
|
* @alias module:purecloud-platform-client-v2/api/SuggestApi
|
|
@@ -17332,7 +17428,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
17332
17428
|
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(){/**
|
|
17333
17429
|
* TaskManagement service.
|
|
17334
17430
|
* @module purecloud-platform-client-v2/api/TaskManagementApi
|
|
17335
|
-
* @version
|
|
17431
|
+
* @version 223.0.0
|
|
17336
17432
|
*//**
|
|
17337
17433
|
* Constructs a new TaskManagementApi.
|
|
17338
17434
|
* @alias module:purecloud-platform-client-v2/api/TaskManagementApi
|
|
@@ -17540,7 +17636,7 @@ if(schemaId===undefined||schemaId===null){throw'Missing the required parameter "
|
|
|
17540
17636
|
* Get a list of schemas.
|
|
17541
17637
|
*
|
|
17542
17638
|
*/},{key:"getTaskmanagementWorkitemsSchemas",value:function getTaskmanagementWorkitemsSchemas(){return this.apiClient.callApi('/api/v2/taskmanagement/workitems/schemas','GET',{},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
17543
|
-
* Get
|
|
17639
|
+
* Get a specific named core type.
|
|
17544
17640
|
*
|
|
17545
17641
|
* @param {String} coreTypeName Name of the core type
|
|
17546
17642
|
*/},{key:"getTaskmanagementWorkitemsSchemasCoretype",value:function getTaskmanagementWorkitemsSchemasCoretype(coreTypeName){// verify the required parameter 'coreTypeName' is set
|
|
@@ -17840,7 +17936,7 @@ if(schemaId===undefined||schemaId===null){throw'Missing the required parameter "
|
|
|
17840
17936
|
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(){/**
|
|
17841
17937
|
* Teams service.
|
|
17842
17938
|
* @module purecloud-platform-client-v2/api/TeamsApi
|
|
17843
|
-
* @version
|
|
17939
|
+
* @version 223.0.0
|
|
17844
17940
|
*//**
|
|
17845
17941
|
* Constructs a new TeamsApi.
|
|
17846
17942
|
* @alias module:purecloud-platform-client-v2/api/TeamsApi
|
|
@@ -17920,7 +18016,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
17920
18016
|
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(){/**
|
|
17921
18017
|
* Telephony service.
|
|
17922
18018
|
* @module purecloud-platform-client-v2/api/TelephonyApi
|
|
17923
|
-
* @version
|
|
18019
|
+
* @version 223.0.0
|
|
17924
18020
|
*//**
|
|
17925
18021
|
* Constructs a new TelephonyApi.
|
|
17926
18022
|
* @alias module:purecloud-platform-client-v2/api/TelephonyApi
|
|
@@ -17967,7 +18063,7 @@ if(downloadId===undefined||downloadId===null){throw'Missing the required paramet
|
|
|
17967
18063
|
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(){/**
|
|
17968
18064
|
* TelephonyProvidersEdge service.
|
|
17969
18065
|
* @module purecloud-platform-client-v2/api/TelephonyProvidersEdgeApi
|
|
17970
|
-
* @version
|
|
18066
|
+
* @version 223.0.0
|
|
17971
18067
|
*//**
|
|
17972
18068
|
* Constructs a new TelephonyProvidersEdgeApi.
|
|
17973
18069
|
* @alias module:purecloud-platform-client-v2/api/TelephonyProvidersEdgeApi
|
|
@@ -18803,7 +18899,7 @@ if(trunkBaseSettingsId===undefined||trunkBaseSettingsId===null){throw'Missing th
|
|
|
18803
18899
|
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(){/**
|
|
18804
18900
|
* Textbots service.
|
|
18805
18901
|
* @module purecloud-platform-client-v2/api/TextbotsApi
|
|
18806
|
-
* @version
|
|
18902
|
+
* @version 223.0.0
|
|
18807
18903
|
*//**
|
|
18808
18904
|
* Constructs a new TextbotsApi.
|
|
18809
18905
|
* @alias module:purecloud-platform-client-v2/api/TextbotsApi
|
|
@@ -18817,8 +18913,9 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
18817
18913
|
* @param {Array.<String>} opts.botType Bot types
|
|
18818
18914
|
* @param {String} opts.botName Bot name
|
|
18819
18915
|
* @param {Array.<String>} opts.botId Bot IDs. Maximum of 50
|
|
18916
|
+
* @param {Boolean} opts.virtualAgentEnabled Include or exclude virtual agent flows, only applies to GenesysBotFlows or GenesysDigitalBotFlows
|
|
18820
18917
|
* @param {Number} opts.pageSize The maximum results to return. Maximum of 100 (default to 25)
|
|
18821
|
-
*/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']);}/**
|
|
18918
|
+
*/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']);}/**
|
|
18822
18919
|
* Issue a bot flow turn event
|
|
18823
18920
|
* Send a turn event to an executing bot flow and produce the next action to take.
|
|
18824
18921
|
* @param {String} sessionId The bot flow session ID, typically obtained from 'POST /api/v2/textbots/botflows/sessions'
|
|
@@ -18838,7 +18935,7 @@ if(launchRequest===undefined||launchRequest===null){throw'Missing the required p
|
|
|
18838
18935
|
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(){/**
|
|
18839
18936
|
* Tokens service.
|
|
18840
18937
|
* @module purecloud-platform-client-v2/api/TokensApi
|
|
18841
|
-
* @version
|
|
18938
|
+
* @version 223.0.0
|
|
18842
18939
|
*//**
|
|
18843
18940
|
* Constructs a new TokensApi.
|
|
18844
18941
|
* @alias module:purecloud-platform-client-v2/api/TokensApi
|
|
@@ -18872,7 +18969,7 @@ if(userId===undefined||userId===null){throw'Missing the required parameter "user
|
|
|
18872
18969
|
*/},{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(){/**
|
|
18873
18970
|
* Uploads service.
|
|
18874
18971
|
* @module purecloud-platform-client-v2/api/UploadsApi
|
|
18875
|
-
* @version
|
|
18972
|
+
* @version 223.0.0
|
|
18876
18973
|
*//**
|
|
18877
18974
|
* Constructs a new UploadsApi.
|
|
18878
18975
|
* @alias module:purecloud-platform-client-v2/api/UploadsApi
|
|
@@ -18940,7 +19037,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
18940
19037
|
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(){/**
|
|
18941
19038
|
* Usage service.
|
|
18942
19039
|
* @module purecloud-platform-client-v2/api/UsageApi
|
|
18943
|
-
* @version
|
|
19040
|
+
* @version 223.0.0
|
|
18944
19041
|
*//**
|
|
18945
19042
|
* Constructs a new UsageApi.
|
|
18946
19043
|
* @alias module:purecloud-platform-client-v2/api/UsageApi
|
|
@@ -18994,7 +19091,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
18994
19091
|
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(){/**
|
|
18995
19092
|
* UserRecordings service.
|
|
18996
19093
|
* @module purecloud-platform-client-v2/api/UserRecordingsApi
|
|
18997
|
-
* @version
|
|
19094
|
+
* @version 223.0.0
|
|
18998
19095
|
*//**
|
|
18999
19096
|
* Constructs a new UserRecordingsApi.
|
|
19000
19097
|
* @alias module:purecloud-platform-client-v2/api/UserRecordingsApi
|
|
@@ -19051,7 +19148,7 @@ if(recordingId===undefined||recordingId===null){throw'Missing the required param
|
|
|
19051
19148
|
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(){/**
|
|
19052
19149
|
* Users service.
|
|
19053
19150
|
* @module purecloud-platform-client-v2/api/UsersApi
|
|
19054
|
-
* @version
|
|
19151
|
+
* @version 223.0.0
|
|
19055
19152
|
*//**
|
|
19056
19153
|
* Constructs a new UsersApi.
|
|
19057
19154
|
* @alias module:purecloud-platform-client-v2/api/UsersApi
|
|
@@ -19778,7 +19875,7 @@ if(verifierId===undefined||verifierId===null){throw'Missing the required paramet
|
|
|
19778
19875
|
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(){/**
|
|
19779
19876
|
* Utilities service.
|
|
19780
19877
|
* @module purecloud-platform-client-v2/api/UtilitiesApi
|
|
19781
|
-
* @version
|
|
19878
|
+
* @version 223.0.0
|
|
19782
19879
|
*//**
|
|
19783
19880
|
* Constructs a new UtilitiesApi.
|
|
19784
19881
|
* @alias module:purecloud-platform-client-v2/api/UtilitiesApi
|
|
@@ -19805,7 +19902,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
19805
19902
|
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(){/**
|
|
19806
19903
|
* Voicemail service.
|
|
19807
19904
|
* @module purecloud-platform-client-v2/api/VoicemailApi
|
|
19808
|
-
* @version
|
|
19905
|
+
* @version 223.0.0
|
|
19809
19906
|
*//**
|
|
19810
19907
|
* Constructs a new VoicemailApi.
|
|
19811
19908
|
* @alias module:purecloud-platform-client-v2/api/VoicemailApi
|
|
@@ -19967,7 +20064,7 @@ if(userId===undefined||userId===null){throw'Missing the required parameter "user
|
|
|
19967
20064
|
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(){/**
|
|
19968
20065
|
* WebChat service.
|
|
19969
20066
|
* @module purecloud-platform-client-v2/api/WebChatApi
|
|
19970
|
-
* @version
|
|
20067
|
+
* @version 223.0.0
|
|
19971
20068
|
*//**
|
|
19972
20069
|
* Constructs a new WebChatApi.
|
|
19973
20070
|
* @alias module:purecloud-platform-client-v2/api/WebChatApi
|
|
@@ -20111,7 +20208,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
20111
20208
|
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(){/**
|
|
20112
20209
|
* WebDeployments service.
|
|
20113
20210
|
* @module purecloud-platform-client-v2/api/WebDeploymentsApi
|
|
20114
|
-
* @version
|
|
20211
|
+
* @version 223.0.0
|
|
20115
20212
|
*//**
|
|
20116
20213
|
* Constructs a new WebDeploymentsApi.
|
|
20117
20214
|
* @alias module:purecloud-platform-client-v2/api/WebDeploymentsApi
|
|
@@ -20244,7 +20341,7 @@ if(deploymentId===undefined||deploymentId===null){throw'Missing the required par
|
|
|
20244
20341
|
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(){/**
|
|
20245
20342
|
* WebMessaging service.
|
|
20246
20343
|
* @module purecloud-platform-client-v2/api/WebMessagingApi
|
|
20247
|
-
* @version
|
|
20344
|
+
* @version 223.0.0
|
|
20248
20345
|
*//**
|
|
20249
20346
|
* Constructs a new WebMessagingApi.
|
|
20250
20347
|
* @alias module:purecloud-platform-client-v2/api/WebMessagingApi
|
|
@@ -20260,7 +20357,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
20260
20357
|
*/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(){/**
|
|
20261
20358
|
* Widgets service.
|
|
20262
20359
|
* @module purecloud-platform-client-v2/api/WidgetsApi
|
|
20263
|
-
* @version
|
|
20360
|
+
* @version 223.0.0
|
|
20264
20361
|
*//**
|
|
20265
20362
|
* Constructs a new WidgetsApi.
|
|
20266
20363
|
* @alias module:purecloud-platform-client-v2/api/WidgetsApi
|
|
@@ -20300,7 +20397,7 @@ if(deploymentId===undefined||deploymentId===null){throw'Missing the required par
|
|
|
20300
20397
|
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(){/**
|
|
20301
20398
|
* WorkforceManagement service.
|
|
20302
20399
|
* @module purecloud-platform-client-v2/api/WorkforceManagementApi
|
|
20303
|
-
* @version
|
|
20400
|
+
* @version 223.0.0
|
|
20304
20401
|
*//**
|
|
20305
20402
|
* Constructs a new WorkforceManagementApi.
|
|
20306
20403
|
* @alias module:purecloud-platform-client-v2/api/WorkforceManagementApi
|
|
@@ -21064,10 +21161,11 @@ if(weekId===undefined||weekId===null){throw'Missing the required parameter "week
|
|
|
21064
21161
|
* @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
|
|
21065
21162
|
* @param {Object} opts Optional parameters
|
|
21066
21163
|
* @param {Boolean} opts.evaluateMatches Whether to evaluate the matches for violations (default to true)
|
|
21164
|
+
* @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)
|
|
21067
21165
|
* @param {Boolean} opts.forceDownloadService Force the result of this operation to be sent via download service. For testing/app development purposes
|
|
21068
21166
|
*/},{key:"getWorkforcemanagementManagementunitWeekShifttrades",value:function getWorkforcemanagementManagementunitWeekShifttrades(managementUnitId,weekDateId,opts){opts=opts||{};// verify the required parameter 'managementUnitId' is set
|
|
21069
21167
|
if(managementUnitId===undefined||managementUnitId===null){throw'Missing the required parameter "managementUnitId" when calling getWorkforcemanagementManagementunitWeekShifttrades';}// verify the required parameter 'weekDateId' is set
|
|
21070
|
-
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']);}/**
|
|
21168
|
+
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']);}/**
|
|
21071
21169
|
* Get a work plan
|
|
21072
21170
|
*
|
|
21073
21171
|
* @param {String} managementUnitId The ID of the management unit, or 'mine' for the management unit of the logged-in user.
|
|
@@ -21177,10 +21275,10 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
21177
21275
|
* Update my alternative shifts trade by trade ID
|
|
21178
21276
|
*
|
|
21179
21277
|
* @param {String} tradeId The ID of the alternative shift trade
|
|
21180
|
-
* @param {Object}
|
|
21181
|
-
|
|
21182
|
-
|
|
21183
|
-
if(
|
|
21278
|
+
* @param {Object} body body
|
|
21279
|
+
*/},{key:"patchWorkforcemanagementAlternativeshiftsTrade",value:function patchWorkforcemanagementAlternativeshiftsTrade(tradeId,body){// verify the required parameter 'tradeId' is set
|
|
21280
|
+
if(tradeId===undefined||tradeId===null){throw'Missing the required parameter "tradeId" when calling patchWorkforcemanagementAlternativeshiftsTrade';}// verify the required parameter 'body' is set
|
|
21281
|
+
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling patchWorkforcemanagementAlternativeshiftsTrade';}return this.apiClient.callApi('/api/v2/workforcemanagement/alternativeshifts/trades/{tradeId}','PATCH',{'tradeId':tradeId},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
21184
21282
|
* Bulk update alternative shift trade states
|
|
21185
21283
|
*
|
|
21186
21284
|
* @param {Object} body The request body
|
|
@@ -21189,19 +21287,19 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
21189
21287
|
* Update business unit
|
|
21190
21288
|
*
|
|
21191
21289
|
* @param {String} businessUnitId The ID of the business unit, or 'mine' for the business unit of the logged-in user.
|
|
21192
|
-
* @param {Object}
|
|
21193
|
-
|
|
21194
|
-
|
|
21195
|
-
if(
|
|
21290
|
+
* @param {Object} body body
|
|
21291
|
+
*/},{key:"patchWorkforcemanagementBusinessunit",value:function patchWorkforcemanagementBusinessunit(businessUnitId,body){// verify the required parameter 'businessUnitId' is set
|
|
21292
|
+
if(businessUnitId===undefined||businessUnitId===null){throw'Missing the required parameter "businessUnitId" when calling patchWorkforcemanagementBusinessunit';}// verify the required parameter 'body' is set
|
|
21293
|
+
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling patchWorkforcemanagementBusinessunit';}return this.apiClient.callApi('/api/v2/workforcemanagement/businessunits/{businessUnitId}','PATCH',{'businessUnitId':businessUnitId},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
21196
21294
|
* Update an activity code
|
|
21197
21295
|
*
|
|
21198
21296
|
* @param {String} businessUnitId The ID of the business unit, or 'mine' for the business unit of the logged-in user.
|
|
21199
21297
|
* @param {String} activityCodeId The ID of the activity code to update
|
|
21200
|
-
* @param {Object}
|
|
21201
|
-
|
|
21202
|
-
*/},{key:"patchWorkforcemanagementBusinessunitActivitycode",value:function patchWorkforcemanagementBusinessunitActivitycode(businessUnitId,activityCodeId,opts){opts=opts||{};// verify the required parameter 'businessUnitId' is set
|
|
21298
|
+
* @param {Object} body body
|
|
21299
|
+
*/},{key:"patchWorkforcemanagementBusinessunitActivitycode",value:function patchWorkforcemanagementBusinessunitActivitycode(businessUnitId,activityCodeId,body){// verify the required parameter 'businessUnitId' is set
|
|
21203
21300
|
if(businessUnitId===undefined||businessUnitId===null){throw'Missing the required parameter "businessUnitId" when calling patchWorkforcemanagementBusinessunitActivitycode';}// verify the required parameter 'activityCodeId' is set
|
|
21204
|
-
if(activityCodeId===undefined||activityCodeId===null){throw'Missing the required parameter "activityCodeId" when calling patchWorkforcemanagementBusinessunitActivitycode';}
|
|
21301
|
+
if(activityCodeId===undefined||activityCodeId===null){throw'Missing the required parameter "activityCodeId" when calling patchWorkforcemanagementBusinessunitActivitycode';}// verify the required parameter 'body' is set
|
|
21302
|
+
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling patchWorkforcemanagementBusinessunitActivitycode';}return this.apiClient.callApi('/api/v2/workforcemanagement/businessunits/{businessUnitId}/activitycodes/{activityCodeId}','PATCH',{'businessUnitId':businessUnitId,'activityCodeId':activityCodeId},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
21205
21303
|
* Update an activity plan
|
|
21206
21304
|
* If a job associated with the activity plan is in Processing state the activity plan cannot be updated
|
|
21207
21305
|
* @param {String} businessUnitId The ID of the business unit
|
|
@@ -21214,55 +21312,55 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
21214
21312
|
* Update alternative shifts settings for a business unit
|
|
21215
21313
|
*
|
|
21216
21314
|
* @param {String} businessUnitId The ID of the business unit
|
|
21217
|
-
* @param {Object}
|
|
21218
|
-
|
|
21219
|
-
|
|
21220
|
-
if(
|
|
21315
|
+
* @param {Object} body body
|
|
21316
|
+
*/},{key:"patchWorkforcemanagementBusinessunitAlternativeshiftsSettings",value:function patchWorkforcemanagementBusinessunitAlternativeshiftsSettings(businessUnitId,body){// verify the required parameter 'businessUnitId' is set
|
|
21317
|
+
if(businessUnitId===undefined||businessUnitId===null){throw'Missing the required parameter "businessUnitId" when calling patchWorkforcemanagementBusinessunitAlternativeshiftsSettings';}// verify the required parameter 'body' is set
|
|
21318
|
+
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling patchWorkforcemanagementBusinessunitAlternativeshiftsSettings';}return this.apiClient.callApi('/api/v2/workforcemanagement/businessunits/{businessUnitId}/alternativeshifts/settings','PATCH',{'businessUnitId':businessUnitId},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
21221
21319
|
* Updates the planning group
|
|
21222
21320
|
*
|
|
21223
21321
|
* @param {String} businessUnitId The ID of the business unit.
|
|
21224
21322
|
* @param {String} planningGroupId The ID of a planning group to update
|
|
21225
|
-
* @param {Object}
|
|
21226
|
-
|
|
21227
|
-
*/},{key:"patchWorkforcemanagementBusinessunitPlanninggroup",value:function patchWorkforcemanagementBusinessunitPlanninggroup(businessUnitId,planningGroupId,opts){opts=opts||{};// verify the required parameter 'businessUnitId' is set
|
|
21323
|
+
* @param {Object} body body
|
|
21324
|
+
*/},{key:"patchWorkforcemanagementBusinessunitPlanninggroup",value:function patchWorkforcemanagementBusinessunitPlanninggroup(businessUnitId,planningGroupId,body){// verify the required parameter 'businessUnitId' is set
|
|
21228
21325
|
if(businessUnitId===undefined||businessUnitId===null){throw'Missing the required parameter "businessUnitId" when calling patchWorkforcemanagementBusinessunitPlanninggroup';}// verify the required parameter 'planningGroupId' is set
|
|
21229
|
-
if(planningGroupId===undefined||planningGroupId===null){throw'Missing the required parameter "planningGroupId" when calling patchWorkforcemanagementBusinessunitPlanninggroup';}
|
|
21326
|
+
if(planningGroupId===undefined||planningGroupId===null){throw'Missing the required parameter "planningGroupId" when calling patchWorkforcemanagementBusinessunitPlanninggroup';}// verify the required parameter 'body' is set
|
|
21327
|
+
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling patchWorkforcemanagementBusinessunitPlanninggroup';}return this.apiClient.callApi('/api/v2/workforcemanagement/businessunits/{businessUnitId}/planninggroups/{planningGroupId}','PATCH',{'businessUnitId':businessUnitId,'planningGroupId':planningGroupId},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
21230
21328
|
* Mark a schedule run as applied
|
|
21231
21329
|
*
|
|
21232
21330
|
* @param {String} businessUnitId The ID of the business unit
|
|
21233
21331
|
* @param {String} runId The ID of the schedule run
|
|
21234
|
-
* @param {Object}
|
|
21235
|
-
|
|
21236
|
-
*/},{key:"patchWorkforcemanagementBusinessunitSchedulingRun",value:function patchWorkforcemanagementBusinessunitSchedulingRun(businessUnitId,runId,opts){opts=opts||{};// verify the required parameter 'businessUnitId' is set
|
|
21332
|
+
* @param {Object} body body
|
|
21333
|
+
*/},{key:"patchWorkforcemanagementBusinessunitSchedulingRun",value:function patchWorkforcemanagementBusinessunitSchedulingRun(businessUnitId,runId,body){// verify the required parameter 'businessUnitId' is set
|
|
21237
21334
|
if(businessUnitId===undefined||businessUnitId===null){throw'Missing the required parameter "businessUnitId" when calling patchWorkforcemanagementBusinessunitSchedulingRun';}// verify the required parameter 'runId' is set
|
|
21238
|
-
if(runId===undefined||runId===null){throw'Missing the required parameter "runId" when calling patchWorkforcemanagementBusinessunitSchedulingRun';}
|
|
21335
|
+
if(runId===undefined||runId===null){throw'Missing the required parameter "runId" when calling patchWorkforcemanagementBusinessunitSchedulingRun';}// verify the required parameter 'body' is set
|
|
21336
|
+
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling patchWorkforcemanagementBusinessunitSchedulingRun';}return this.apiClient.callApi('/api/v2/workforcemanagement/businessunits/{businessUnitId}/scheduling/runs/{runId}','PATCH',{'businessUnitId':businessUnitId,'runId':runId},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
21239
21337
|
* Updates a service goal template
|
|
21240
21338
|
*
|
|
21241
21339
|
* @param {String} businessUnitId The ID of the business unit.
|
|
21242
21340
|
* @param {String} serviceGoalTemplateId The ID of a service goal template to update
|
|
21243
|
-
* @param {Object}
|
|
21244
|
-
|
|
21245
|
-
*/},{key:"patchWorkforcemanagementBusinessunitServicegoaltemplate",value:function patchWorkforcemanagementBusinessunitServicegoaltemplate(businessUnitId,serviceGoalTemplateId,opts){opts=opts||{};// verify the required parameter 'businessUnitId' is set
|
|
21341
|
+
* @param {Object} body body
|
|
21342
|
+
*/},{key:"patchWorkforcemanagementBusinessunitServicegoaltemplate",value:function patchWorkforcemanagementBusinessunitServicegoaltemplate(businessUnitId,serviceGoalTemplateId,body){// verify the required parameter 'businessUnitId' is set
|
|
21246
21343
|
if(businessUnitId===undefined||businessUnitId===null){throw'Missing the required parameter "businessUnitId" when calling patchWorkforcemanagementBusinessunitServicegoaltemplate';}// verify the required parameter 'serviceGoalTemplateId' is set
|
|
21247
|
-
if(serviceGoalTemplateId===undefined||serviceGoalTemplateId===null){throw'Missing the required parameter "serviceGoalTemplateId" when calling patchWorkforcemanagementBusinessunitServicegoaltemplate';}
|
|
21344
|
+
if(serviceGoalTemplateId===undefined||serviceGoalTemplateId===null){throw'Missing the required parameter "serviceGoalTemplateId" when calling patchWorkforcemanagementBusinessunitServicegoaltemplate';}// verify the required parameter 'body' is set
|
|
21345
|
+
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling patchWorkforcemanagementBusinessunitServicegoaltemplate';}return this.apiClient.callApi('/api/v2/workforcemanagement/businessunits/{businessUnitId}/servicegoaltemplates/{serviceGoalTemplateId}','PATCH',{'businessUnitId':businessUnitId,'serviceGoalTemplateId':serviceGoalTemplateId},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
21248
21346
|
* Updates a staffing group
|
|
21249
21347
|
*
|
|
21250
21348
|
* @param {String} businessUnitId The ID of the business unit
|
|
21251
21349
|
* @param {String} staffingGroupId The ID of the staffing group to update
|
|
21252
|
-
* @param {Object}
|
|
21253
|
-
|
|
21254
|
-
*/},{key:"patchWorkforcemanagementBusinessunitStaffinggroup",value:function patchWorkforcemanagementBusinessunitStaffinggroup(businessUnitId,staffingGroupId,opts){opts=opts||{};// verify the required parameter 'businessUnitId' is set
|
|
21350
|
+
* @param {Object} body body
|
|
21351
|
+
*/},{key:"patchWorkforcemanagementBusinessunitStaffinggroup",value:function patchWorkforcemanagementBusinessunitStaffinggroup(businessUnitId,staffingGroupId,body){// verify the required parameter 'businessUnitId' is set
|
|
21255
21352
|
if(businessUnitId===undefined||businessUnitId===null){throw'Missing the required parameter "businessUnitId" when calling patchWorkforcemanagementBusinessunitStaffinggroup';}// verify the required parameter 'staffingGroupId' is set
|
|
21256
|
-
if(staffingGroupId===undefined||staffingGroupId===null){throw'Missing the required parameter "staffingGroupId" when calling patchWorkforcemanagementBusinessunitStaffinggroup';}
|
|
21353
|
+
if(staffingGroupId===undefined||staffingGroupId===null){throw'Missing the required parameter "staffingGroupId" when calling patchWorkforcemanagementBusinessunitStaffinggroup';}// verify the required parameter 'body' is set
|
|
21354
|
+
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling patchWorkforcemanagementBusinessunitStaffinggroup';}return this.apiClient.callApi('/api/v2/workforcemanagement/businessunits/{businessUnitId}/staffinggroups/{staffingGroupId}','PATCH',{'businessUnitId':businessUnitId,'staffingGroupId':staffingGroupId},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
21257
21355
|
* Updates a time-off plan
|
|
21258
21356
|
*
|
|
21259
21357
|
* @param {String} businessUnitId The ID of the business unit
|
|
21260
21358
|
* @param {String} timeOffPlanId The ID of the time-off plan to update
|
|
21261
|
-
* @param {Object}
|
|
21262
|
-
|
|
21263
|
-
*/},{key:"patchWorkforcemanagementBusinessunitTimeoffplan",value:function patchWorkforcemanagementBusinessunitTimeoffplan(businessUnitId,timeOffPlanId,opts){opts=opts||{};// verify the required parameter 'businessUnitId' is set
|
|
21359
|
+
* @param {Object} body body
|
|
21360
|
+
*/},{key:"patchWorkforcemanagementBusinessunitTimeoffplan",value:function patchWorkforcemanagementBusinessunitTimeoffplan(businessUnitId,timeOffPlanId,body){// verify the required parameter 'businessUnitId' is set
|
|
21264
21361
|
if(businessUnitId===undefined||businessUnitId===null){throw'Missing the required parameter "businessUnitId" when calling patchWorkforcemanagementBusinessunitTimeoffplan';}// verify the required parameter 'timeOffPlanId' is set
|
|
21265
|
-
if(timeOffPlanId===undefined||timeOffPlanId===null){throw'Missing the required parameter "timeOffPlanId" when calling patchWorkforcemanagementBusinessunitTimeoffplan';}
|
|
21362
|
+
if(timeOffPlanId===undefined||timeOffPlanId===null){throw'Missing the required parameter "timeOffPlanId" when calling patchWorkforcemanagementBusinessunitTimeoffplan';}// verify the required parameter 'body' is set
|
|
21363
|
+
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling patchWorkforcemanagementBusinessunitTimeoffplan';}return this.apiClient.callApi('/api/v2/workforcemanagement/businessunits/{businessUnitId}/timeoffplans/{timeOffPlanId}','PATCH',{'businessUnitId':businessUnitId,'timeOffPlanId':timeOffPlanId},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
21266
21364
|
* Update work plan bid
|
|
21267
21365
|
*
|
|
21268
21366
|
* @param {String} businessUnitId The ID of the business unit
|
|
@@ -21277,84 +21375,84 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
21277
21375
|
* @param {String} businessUnitId The ID of the business unit
|
|
21278
21376
|
* @param {String} bidId The work plan bid id of the bid groups
|
|
21279
21377
|
* @param {String} bidGroupId Work Plan Bid Group id
|
|
21280
|
-
* @param {Object}
|
|
21281
|
-
|
|
21282
|
-
*/},{key:"patchWorkforcemanagementBusinessunitWorkplanbidGroup",value:function patchWorkforcemanagementBusinessunitWorkplanbidGroup(businessUnitId,bidId,bidGroupId,opts){opts=opts||{};// verify the required parameter 'businessUnitId' is set
|
|
21378
|
+
* @param {Object} body body
|
|
21379
|
+
*/},{key:"patchWorkforcemanagementBusinessunitWorkplanbidGroup",value:function patchWorkforcemanagementBusinessunitWorkplanbidGroup(businessUnitId,bidId,bidGroupId,body){// verify the required parameter 'businessUnitId' is set
|
|
21283
21380
|
if(businessUnitId===undefined||businessUnitId===null){throw'Missing the required parameter "businessUnitId" when calling patchWorkforcemanagementBusinessunitWorkplanbidGroup';}// verify the required parameter 'bidId' is set
|
|
21284
21381
|
if(bidId===undefined||bidId===null){throw'Missing the required parameter "bidId" when calling patchWorkforcemanagementBusinessunitWorkplanbidGroup';}// verify the required parameter 'bidGroupId' is set
|
|
21285
|
-
if(bidGroupId===undefined||bidGroupId===null){throw'Missing the required parameter "bidGroupId" when calling patchWorkforcemanagementBusinessunitWorkplanbidGroup';}
|
|
21382
|
+
if(bidGroupId===undefined||bidGroupId===null){throw'Missing the required parameter "bidGroupId" when calling patchWorkforcemanagementBusinessunitWorkplanbidGroup';}// verify the required parameter 'body' is set
|
|
21383
|
+
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling patchWorkforcemanagementBusinessunitWorkplanbidGroup';}return this.apiClient.callApi('/api/v2/workforcemanagement/businessunits/{businessUnitId}/workplanbids/{bidId}/groups/{bidGroupId}','PATCH',{'businessUnitId':businessUnitId,'bidId':bidId,'bidGroupId':bidGroupId},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
21286
21384
|
* Overrides the assigned work plan for the specified agents
|
|
21287
21385
|
*
|
|
21288
21386
|
* @param {String} businessUnitId The ID of the business unit
|
|
21289
21387
|
* @param {String} bidId The work plan bid id of the bid groups
|
|
21290
21388
|
* @param {String} bidGroupId The ID of the work plan bid group
|
|
21291
|
-
* @param {Object}
|
|
21292
|
-
|
|
21293
|
-
*/},{key:"patchWorkforcemanagementBusinessunitWorkplanbidGroupPreferences",value:function patchWorkforcemanagementBusinessunitWorkplanbidGroupPreferences(businessUnitId,bidId,bidGroupId,opts){opts=opts||{};// verify the required parameter 'businessUnitId' is set
|
|
21389
|
+
* @param {Object} body body
|
|
21390
|
+
*/},{key:"patchWorkforcemanagementBusinessunitWorkplanbidGroupPreferences",value:function patchWorkforcemanagementBusinessunitWorkplanbidGroupPreferences(businessUnitId,bidId,bidGroupId,body){// verify the required parameter 'businessUnitId' is set
|
|
21294
21391
|
if(businessUnitId===undefined||businessUnitId===null){throw'Missing the required parameter "businessUnitId" when calling patchWorkforcemanagementBusinessunitWorkplanbidGroupPreferences';}// verify the required parameter 'bidId' is set
|
|
21295
21392
|
if(bidId===undefined||bidId===null){throw'Missing the required parameter "bidId" when calling patchWorkforcemanagementBusinessunitWorkplanbidGroupPreferences';}// verify the required parameter 'bidGroupId' is set
|
|
21296
|
-
if(bidGroupId===undefined||bidGroupId===null){throw'Missing the required parameter "bidGroupId" when calling patchWorkforcemanagementBusinessunitWorkplanbidGroupPreferences';}
|
|
21393
|
+
if(bidGroupId===undefined||bidGroupId===null){throw'Missing the required parameter "bidGroupId" when calling patchWorkforcemanagementBusinessunitWorkplanbidGroupPreferences';}// verify the required parameter 'body' is set
|
|
21394
|
+
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling patchWorkforcemanagementBusinessunitWorkplanbidGroupPreferences';}return this.apiClient.callApi('/api/v2/workforcemanagement/businessunits/{businessUnitId}/workplanbids/{bidId}/groups/{bidGroupId}/preferences','PATCH',{'businessUnitId':businessUnitId,'bidId':bidId,'bidGroupId':bidGroupId},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
21297
21395
|
* Update the requested management unit
|
|
21298
21396
|
*
|
|
21299
21397
|
* @param {String} managementUnitId The ID of the management unit, or 'mine' for the management unit of the logged-in user.
|
|
21300
|
-
* @param {Object}
|
|
21301
|
-
|
|
21302
|
-
|
|
21303
|
-
if(
|
|
21398
|
+
* @param {Object} body body
|
|
21399
|
+
*/},{key:"patchWorkforcemanagementManagementunit",value:function patchWorkforcemanagementManagementunit(managementUnitId,body){// verify the required parameter 'managementUnitId' is set
|
|
21400
|
+
if(managementUnitId===undefined||managementUnitId===null){throw'Missing the required parameter "managementUnitId" when calling patchWorkforcemanagementManagementunit';}// verify the required parameter 'body' is set
|
|
21401
|
+
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling patchWorkforcemanagementManagementunit';}return this.apiClient.callApi('/api/v2/workforcemanagement/managementunits/{managementUnitId}','PATCH',{'managementUnitId':managementUnitId},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
21304
21402
|
* Update agent configurations
|
|
21305
21403
|
*
|
|
21306
21404
|
* @param {String} managementUnitId The ID of the management unit, or 'mine' for the management unit of the logged-in user.
|
|
21307
|
-
* @param {Object}
|
|
21308
|
-
|
|
21309
|
-
|
|
21310
|
-
if(
|
|
21405
|
+
* @param {Object} body body
|
|
21406
|
+
*/},{key:"patchWorkforcemanagementManagementunitAgents",value:function patchWorkforcemanagementManagementunitAgents(managementUnitId,body){// verify the required parameter 'managementUnitId' is set
|
|
21407
|
+
if(managementUnitId===undefined||managementUnitId===null){throw'Missing the required parameter "managementUnitId" when calling patchWorkforcemanagementManagementunitAgents';}// verify the required parameter 'body' is set
|
|
21408
|
+
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling patchWorkforcemanagementManagementunitAgents';}return this.apiClient.callApi('/api/v2/workforcemanagement/managementunits/{managementUnitId}/agents','PATCH',{'managementUnitId':managementUnitId},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
21311
21409
|
* Updates agent work plan configuration
|
|
21312
21410
|
*
|
|
21313
21411
|
* @param {String} managementUnitId The ID of the management unit, or 'mine' for the management unit of the logged-in user.
|
|
21314
|
-
* @param {Object}
|
|
21315
|
-
|
|
21316
|
-
|
|
21317
|
-
if(
|
|
21412
|
+
* @param {Object} body body
|
|
21413
|
+
*/},{key:"patchWorkforcemanagementManagementunitAgentsWorkplansBulk",value:function patchWorkforcemanagementManagementunitAgentsWorkplansBulk(managementUnitId,body){// verify the required parameter 'managementUnitId' is set
|
|
21414
|
+
if(managementUnitId===undefined||managementUnitId===null){throw'Missing the required parameter "managementUnitId" when calling patchWorkforcemanagementManagementunitAgentsWorkplansBulk';}// verify the required parameter 'body' is set
|
|
21415
|
+
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling patchWorkforcemanagementManagementunitAgentsWorkplansBulk';}return this.apiClient.callApi('/api/v2/workforcemanagement/managementunits/{managementUnitId}/agents/workplans/bulk','PATCH',{'managementUnitId':managementUnitId},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
21318
21416
|
* Updates a time off limit object.
|
|
21319
21417
|
* Updates time off limit object properties, but not daily values.
|
|
21320
21418
|
* @param {String} managementUnitId The ID of the management unit.
|
|
21321
21419
|
* @param {String} timeOffLimitId The id of time off limit object to update
|
|
21322
|
-
* @param {Object}
|
|
21323
|
-
|
|
21324
|
-
*/},{key:"patchWorkforcemanagementManagementunitTimeofflimit",value:function patchWorkforcemanagementManagementunitTimeofflimit(managementUnitId,timeOffLimitId,opts){opts=opts||{};// verify the required parameter 'managementUnitId' is set
|
|
21420
|
+
* @param {Object} body body
|
|
21421
|
+
*/},{key:"patchWorkforcemanagementManagementunitTimeofflimit",value:function patchWorkforcemanagementManagementunitTimeofflimit(managementUnitId,timeOffLimitId,body){// verify the required parameter 'managementUnitId' is set
|
|
21325
21422
|
if(managementUnitId===undefined||managementUnitId===null){throw'Missing the required parameter "managementUnitId" when calling patchWorkforcemanagementManagementunitTimeofflimit';}// verify the required parameter 'timeOffLimitId' is set
|
|
21326
|
-
if(timeOffLimitId===undefined||timeOffLimitId===null){throw'Missing the required parameter "timeOffLimitId" when calling patchWorkforcemanagementManagementunitTimeofflimit';}
|
|
21423
|
+
if(timeOffLimitId===undefined||timeOffLimitId===null){throw'Missing the required parameter "timeOffLimitId" when calling patchWorkforcemanagementManagementunitTimeofflimit';}// verify the required parameter 'body' is set
|
|
21424
|
+
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling patchWorkforcemanagementManagementunitTimeofflimit';}return this.apiClient.callApi('/api/v2/workforcemanagement/managementunits/{managementUnitId}/timeofflimits/{timeOffLimitId}','PATCH',{'managementUnitId':managementUnitId,'timeOffLimitId':timeOffLimitId},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
21327
21425
|
* Updates a time off plan
|
|
21328
21426
|
*
|
|
21329
21427
|
* @param {String} managementUnitId The ID of the management unit
|
|
21330
21428
|
* @param {String} timeOffPlanId The ID of the time off plan to update
|
|
21331
|
-
* @param {Object}
|
|
21332
|
-
|
|
21333
|
-
*/},{key:"patchWorkforcemanagementManagementunitTimeoffplan",value:function patchWorkforcemanagementManagementunitTimeoffplan(managementUnitId,timeOffPlanId,opts){opts=opts||{};// verify the required parameter 'managementUnitId' is set
|
|
21429
|
+
* @param {Object} body body
|
|
21430
|
+
*/},{key:"patchWorkforcemanagementManagementunitTimeoffplan",value:function patchWorkforcemanagementManagementunitTimeoffplan(managementUnitId,timeOffPlanId,body){// verify the required parameter 'managementUnitId' is set
|
|
21334
21431
|
if(managementUnitId===undefined||managementUnitId===null){throw'Missing the required parameter "managementUnitId" when calling patchWorkforcemanagementManagementunitTimeoffplan';}// verify the required parameter 'timeOffPlanId' is set
|
|
21335
|
-
if(timeOffPlanId===undefined||timeOffPlanId===null){throw'Missing the required parameter "timeOffPlanId" when calling patchWorkforcemanagementManagementunitTimeoffplan';}
|
|
21432
|
+
if(timeOffPlanId===undefined||timeOffPlanId===null){throw'Missing the required parameter "timeOffPlanId" when calling patchWorkforcemanagementManagementunitTimeoffplan';}// verify the required parameter 'body' is set
|
|
21433
|
+
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling patchWorkforcemanagementManagementunitTimeoffplan';}return this.apiClient.callApi('/api/v2/workforcemanagement/managementunits/{managementUnitId}/timeoffplans/{timeOffPlanId}','PATCH',{'managementUnitId':managementUnitId,'timeOffPlanId':timeOffPlanId},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
21336
21434
|
* Set integration status for a time off request.
|
|
21337
21435
|
*
|
|
21338
21436
|
* @param {String} managementUnitId The ID of the management unit.
|
|
21339
21437
|
* @param {String} timeOffRequestId The ID of the time off request.
|
|
21340
21438
|
* @param {String} userId The ID of user to whom the time off request belongs.
|
|
21341
|
-
* @param {Object}
|
|
21342
|
-
|
|
21343
|
-
*/},{key:"patchWorkforcemanagementManagementunitTimeoffrequestUserIntegrationstatus",value:function patchWorkforcemanagementManagementunitTimeoffrequestUserIntegrationstatus(managementUnitId,timeOffRequestId,userId,opts){opts=opts||{};// verify the required parameter 'managementUnitId' is set
|
|
21439
|
+
* @param {Object} body body
|
|
21440
|
+
*/},{key:"patchWorkforcemanagementManagementunitTimeoffrequestUserIntegrationstatus",value:function patchWorkforcemanagementManagementunitTimeoffrequestUserIntegrationstatus(managementUnitId,timeOffRequestId,userId,body){// verify the required parameter 'managementUnitId' is set
|
|
21344
21441
|
if(managementUnitId===undefined||managementUnitId===null){throw'Missing the required parameter "managementUnitId" when calling patchWorkforcemanagementManagementunitTimeoffrequestUserIntegrationstatus';}// verify the required parameter 'timeOffRequestId' is set
|
|
21345
21442
|
if(timeOffRequestId===undefined||timeOffRequestId===null){throw'Missing the required parameter "timeOffRequestId" when calling patchWorkforcemanagementManagementunitTimeoffrequestUserIntegrationstatus';}// verify the required parameter 'userId' is set
|
|
21346
|
-
if(userId===undefined||userId===null){throw'Missing the required parameter "userId" when calling patchWorkforcemanagementManagementunitTimeoffrequestUserIntegrationstatus';}
|
|
21443
|
+
if(userId===undefined||userId===null){throw'Missing the required parameter "userId" when calling patchWorkforcemanagementManagementunitTimeoffrequestUserIntegrationstatus';}// verify the required parameter 'body' is set
|
|
21444
|
+
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling patchWorkforcemanagementManagementunitTimeoffrequestUserIntegrationstatus';}return this.apiClient.callApi('/api/v2/workforcemanagement/managementunits/{managementUnitId}/timeoffrequests/{timeOffRequestId}/users/{userId}/integrationstatus','PATCH',{'managementUnitId':managementUnitId,'timeOffRequestId':timeOffRequestId,'userId':userId},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
21347
21445
|
* Update a time off request
|
|
21348
21446
|
*
|
|
21349
21447
|
* @param {String} managementUnitId The ID of the management unit, or 'mine' for the management unit of the logged-in user.
|
|
21350
21448
|
* @param {String} userId The id of the user the requested time off request belongs to
|
|
21351
21449
|
* @param {String} timeOffRequestId The id of the time off request to update
|
|
21352
|
-
* @param {Object}
|
|
21353
|
-
|
|
21354
|
-
*/},{key:"patchWorkforcemanagementManagementunitUserTimeoffrequest",value:function patchWorkforcemanagementManagementunitUserTimeoffrequest(managementUnitId,userId,timeOffRequestId,opts){opts=opts||{};// verify the required parameter 'managementUnitId' is set
|
|
21450
|
+
* @param {Object} body body
|
|
21451
|
+
*/},{key:"patchWorkforcemanagementManagementunitUserTimeoffrequest",value:function patchWorkforcemanagementManagementunitUserTimeoffrequest(managementUnitId,userId,timeOffRequestId,body){// verify the required parameter 'managementUnitId' is set
|
|
21355
21452
|
if(managementUnitId===undefined||managementUnitId===null){throw'Missing the required parameter "managementUnitId" when calling patchWorkforcemanagementManagementunitUserTimeoffrequest';}// verify the required parameter 'userId' is set
|
|
21356
21453
|
if(userId===undefined||userId===null){throw'Missing the required parameter "userId" when calling patchWorkforcemanagementManagementunitUserTimeoffrequest';}// verify the required parameter 'timeOffRequestId' is set
|
|
21357
|
-
if(timeOffRequestId===undefined||timeOffRequestId===null){throw'Missing the required parameter "timeOffRequestId" when calling patchWorkforcemanagementManagementunitUserTimeoffrequest';}
|
|
21454
|
+
if(timeOffRequestId===undefined||timeOffRequestId===null){throw'Missing the required parameter "timeOffRequestId" when calling patchWorkforcemanagementManagementunitUserTimeoffrequest';}// verify the required parameter 'body' is set
|
|
21455
|
+
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling patchWorkforcemanagementManagementunitUserTimeoffrequest';}return this.apiClient.callApi('/api/v2/workforcemanagement/managementunits/{managementUnitId}/users/{userId}/timeoffrequests/{timeOffRequestId}','PATCH',{'managementUnitId':managementUnitId,'userId':userId,'timeOffRequestId':timeOffRequestId},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
21358
21456
|
* Updates a shift trade. This route can only be called by the initiating agent
|
|
21359
21457
|
*
|
|
21360
21458
|
* @param {String} managementUnitId The ID of the management unit, or 'mine' for the management unit of the logged-in user.
|
|
@@ -21370,35 +21468,36 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
21370
21468
|
*
|
|
21371
21469
|
* @param {String} managementUnitId The ID of the management unit, or 'mine' for the management unit of the logged-in user.
|
|
21372
21470
|
* @param {String} workPlanId The ID of the work plan to update
|
|
21471
|
+
* @param {Object} body body
|
|
21373
21472
|
* @param {Object} opts Optional parameters
|
|
21374
21473
|
* @param {Object} opts.validationMode Allows to update work plan even if validation result is invalid
|
|
21375
|
-
|
|
21376
|
-
*/},{key:"patchWorkforcemanagementManagementunitWorkplan",value:function patchWorkforcemanagementManagementunitWorkplan(managementUnitId,workPlanId,opts){opts=opts||{};// verify the required parameter 'managementUnitId' is set
|
|
21474
|
+
*/},{key:"patchWorkforcemanagementManagementunitWorkplan",value:function patchWorkforcemanagementManagementunitWorkplan(managementUnitId,workPlanId,body,opts){opts=opts||{};// verify the required parameter 'managementUnitId' is set
|
|
21377
21475
|
if(managementUnitId===undefined||managementUnitId===null){throw'Missing the required parameter "managementUnitId" when calling patchWorkforcemanagementManagementunitWorkplan';}// verify the required parameter 'workPlanId' is set
|
|
21378
|
-
if(workPlanId===undefined||workPlanId===null){throw'Missing the required parameter "workPlanId" when calling patchWorkforcemanagementManagementunitWorkplan';}
|
|
21476
|
+
if(workPlanId===undefined||workPlanId===null){throw'Missing the required parameter "workPlanId" when calling patchWorkforcemanagementManagementunitWorkplan';}// verify the required parameter 'body' is set
|
|
21477
|
+
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling patchWorkforcemanagementManagementunitWorkplan';}return this.apiClient.callApi('/api/v2/workforcemanagement/managementunits/{managementUnitId}/workplans/{workPlanId}','PATCH',{'managementUnitId':managementUnitId,'workPlanId':workPlanId},{'validationMode':opts['validationMode']},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
21379
21478
|
* Update a work plan rotation
|
|
21380
21479
|
*
|
|
21381
21480
|
* @param {String} managementUnitId The ID of the management unit, or 'mine' for the management unit of the logged-in user.
|
|
21382
21481
|
* @param {String} workPlanRotationId The ID of the work plan rotation to update
|
|
21383
|
-
* @param {Object}
|
|
21384
|
-
|
|
21385
|
-
*/},{key:"patchWorkforcemanagementManagementunitWorkplanrotation",value:function patchWorkforcemanagementManagementunitWorkplanrotation(managementUnitId,workPlanRotationId,opts){opts=opts||{};// verify the required parameter 'managementUnitId' is set
|
|
21482
|
+
* @param {Object} body body
|
|
21483
|
+
*/},{key:"patchWorkforcemanagementManagementunitWorkplanrotation",value:function patchWorkforcemanagementManagementunitWorkplanrotation(managementUnitId,workPlanRotationId,body){// verify the required parameter 'managementUnitId' is set
|
|
21386
21484
|
if(managementUnitId===undefined||managementUnitId===null){throw'Missing the required parameter "managementUnitId" when calling patchWorkforcemanagementManagementunitWorkplanrotation';}// verify the required parameter 'workPlanRotationId' is set
|
|
21387
|
-
if(workPlanRotationId===undefined||workPlanRotationId===null){throw'Missing the required parameter "workPlanRotationId" when calling patchWorkforcemanagementManagementunitWorkplanrotation';}
|
|
21485
|
+
if(workPlanRotationId===undefined||workPlanRotationId===null){throw'Missing the required parameter "workPlanRotationId" when calling patchWorkforcemanagementManagementunitWorkplanrotation';}// verify the required parameter 'body' is set
|
|
21486
|
+
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling patchWorkforcemanagementManagementunitWorkplanrotation';}return this.apiClient.callApi('/api/v2/workforcemanagement/managementunits/{managementUnitId}/workplanrotations/{workPlanRotationId}','PATCH',{'managementUnitId':managementUnitId,'workPlanRotationId':workPlanRotationId},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
21388
21487
|
* Update a time off request for the current user
|
|
21389
21488
|
*
|
|
21390
21489
|
* @param {String} timeOffRequestId The ID of the time off request
|
|
21391
|
-
* @param {Object}
|
|
21392
|
-
|
|
21393
|
-
|
|
21394
|
-
if(
|
|
21490
|
+
* @param {Object} body body
|
|
21491
|
+
*/},{key:"patchWorkforcemanagementTimeoffrequest",value:function patchWorkforcemanagementTimeoffrequest(timeOffRequestId,body){// verify the required parameter 'timeOffRequestId' is set
|
|
21492
|
+
if(timeOffRequestId===undefined||timeOffRequestId===null){throw'Missing the required parameter "timeOffRequestId" when calling patchWorkforcemanagementTimeoffrequest';}// verify the required parameter 'body' is set
|
|
21493
|
+
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling patchWorkforcemanagementTimeoffrequest';}return this.apiClient.callApi('/api/v2/workforcemanagement/timeoffrequests/{timeOffRequestId}','PATCH',{'timeOffRequestId':timeOffRequestId},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
21395
21494
|
* Update work plan bid ranks for a user
|
|
21396
21495
|
*
|
|
21397
21496
|
* @param {String} userId The userId to whom the work plan bid ranks apply.
|
|
21398
|
-
* @param {Object}
|
|
21399
|
-
|
|
21400
|
-
|
|
21401
|
-
if(
|
|
21497
|
+
* @param {Object} body body
|
|
21498
|
+
*/},{key:"patchWorkforcemanagementUserWorkplanbidranks",value:function patchWorkforcemanagementUserWorkplanbidranks(userId,body){// verify the required parameter 'userId' is set
|
|
21499
|
+
if(userId===undefined||userId===null){throw'Missing the required parameter "userId" when calling patchWorkforcemanagementUserWorkplanbidranks';}// verify the required parameter 'body' is set
|
|
21500
|
+
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling patchWorkforcemanagementUserWorkplanbidranks';}return this.apiClient.callApi('/api/v2/workforcemanagement/users/{userId}/workplanbidranks','PATCH',{'userId':userId},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
21402
21501
|
* Update bulk work plan bid ranks on users. Max 50 users can be updated at a time.
|
|
21403
21502
|
*
|
|
21404
21503
|
* @param {Array.<Object>} body Users
|
|
@@ -21407,10 +21506,10 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
21407
21506
|
* Update an agent's work plan bidding preference
|
|
21408
21507
|
*
|
|
21409
21508
|
* @param {String} bidId The ID of the work plan bid
|
|
21410
|
-
* @param {Object}
|
|
21411
|
-
|
|
21412
|
-
|
|
21413
|
-
if(
|
|
21509
|
+
* @param {Object} body body
|
|
21510
|
+
*/},{key:"patchWorkforcemanagementWorkplanbidPreferences",value:function patchWorkforcemanagementWorkplanbidPreferences(bidId,body){// verify the required parameter 'bidId' is set
|
|
21511
|
+
if(bidId===undefined||bidId===null){throw'Missing the required parameter "bidId" when calling patchWorkforcemanagementWorkplanbidPreferences';}// verify the required parameter 'body' is set
|
|
21512
|
+
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling patchWorkforcemanagementWorkplanbidPreferences';}return this.apiClient.callApi('/api/v2/workforcemanagement/workplanbids/{bidId}/preferences','PATCH',{'bidId':bidId},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
21414
21513
|
* Submit an adherence explanation for the current user
|
|
21415
21514
|
*
|
|
21416
21515
|
* @param {Object} body The request body
|
|
@@ -21432,9 +21531,9 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
21432
21531
|
*/},{key:"postWorkforcemanagementAdherenceHistorical",value:function postWorkforcemanagementAdherenceHistorical(opts){opts=opts||{};return this.apiClient.callApi('/api/v2/workforcemanagement/adherence/historical','POST',{},{},{},{},opts['body'],['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
21433
21532
|
* Request a historical adherence report in bulk
|
|
21434
21533
|
*
|
|
21435
|
-
* @param {Object}
|
|
21436
|
-
|
|
21437
|
-
|
|
21534
|
+
* @param {Object} body body
|
|
21535
|
+
*/},{key:"postWorkforcemanagementAdherenceHistoricalBulk",value:function postWorkforcemanagementAdherenceHistoricalBulk(body){// verify the required parameter 'body' is set
|
|
21536
|
+
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling postWorkforcemanagementAdherenceHistoricalBulk';}return this.apiClient.callApi('/api/v2/workforcemanagement/adherence/historical/bulk','POST',{},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
21438
21537
|
* Add an adherence explanation for the requested user
|
|
21439
21538
|
*
|
|
21440
21539
|
* @param {String} agentId The ID of the agent to query
|
|
@@ -21454,14 +21553,14 @@ if(agentId===undefined||agentId===null){throw'Missing the required parameter "ag
|
|
|
21454
21553
|
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling postWorkforcemanagementAgentAdherenceExplanationsQuery';}return this.apiClient.callApi('/api/v2/workforcemanagement/agents/{agentId}/adherence/explanations/query','POST',{'agentId':agentId},{'forceAsync':opts['forceAsync'],'forceDownloadService':opts['forceDownloadService']},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
21455
21554
|
* Move agents in and out of management unit
|
|
21456
21555
|
*
|
|
21457
|
-
* @param {Object}
|
|
21458
|
-
|
|
21459
|
-
|
|
21556
|
+
* @param {Object} body body
|
|
21557
|
+
*/},{key:"postWorkforcemanagementAgents",value:function postWorkforcemanagementAgents(body){// verify the required parameter 'body' is set
|
|
21558
|
+
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling postWorkforcemanagementAgents';}return this.apiClient.callApi('/api/v2/workforcemanagement/agents','POST',{},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
21460
21559
|
* Query integrations for agents
|
|
21461
21560
|
*
|
|
21462
|
-
* @param {Object}
|
|
21463
|
-
|
|
21464
|
-
|
|
21561
|
+
* @param {Object} body body
|
|
21562
|
+
*/},{key:"postWorkforcemanagementAgentsIntegrationsHrisQuery",value:function postWorkforcemanagementAgentsIntegrationsHrisQuery(body){// verify the required parameter 'body' is set
|
|
21563
|
+
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling postWorkforcemanagementAgentsIntegrationsHrisQuery';}return this.apiClient.callApi('/api/v2/workforcemanagement/agents/integrations/hris/query','POST',{},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
21465
21564
|
* Get agent possible work shifts for requested time frame
|
|
21466
21565
|
*
|
|
21467
21566
|
* @param {Object} body body
|
|
@@ -21469,9 +21568,9 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
21469
21568
|
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling postWorkforcemanagementAgentsMePossibleworkshifts';}return this.apiClient.callApi('/api/v2/workforcemanagement/agents/me/possibleworkshifts','POST',{},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
21470
21569
|
* Get published schedule for the current user
|
|
21471
21570
|
*
|
|
21472
|
-
* @param {Object}
|
|
21473
|
-
|
|
21474
|
-
|
|
21571
|
+
* @param {Object} body body
|
|
21572
|
+
*/},{key:"postWorkforcemanagementAgentschedulesMine",value:function postWorkforcemanagementAgentschedulesMine(body){// verify the required parameter 'body' is set
|
|
21573
|
+
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling postWorkforcemanagementAgentschedulesMine';}return this.apiClient.callApi('/api/v2/workforcemanagement/agentschedules/mine','POST',{},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
21475
21574
|
* Request a list of alternative shift offers for a given schedule
|
|
21476
21575
|
*
|
|
21477
21576
|
* @param {Object} body The request body
|
|
@@ -21490,10 +21589,10 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
21490
21589
|
* Create a new activity code
|
|
21491
21590
|
*
|
|
21492
21591
|
* @param {String} businessUnitId The ID of the business unit, or 'mine' for the business unit of the logged-in user.
|
|
21493
|
-
* @param {Object}
|
|
21494
|
-
|
|
21495
|
-
|
|
21496
|
-
if(
|
|
21592
|
+
* @param {Object} body body
|
|
21593
|
+
*/},{key:"postWorkforcemanagementBusinessunitActivitycodes",value:function postWorkforcemanagementBusinessunitActivitycodes(businessUnitId,body){// verify the required parameter 'businessUnitId' is set
|
|
21594
|
+
if(businessUnitId===undefined||businessUnitId===null){throw'Missing the required parameter "businessUnitId" when calling postWorkforcemanagementBusinessunitActivitycodes';}// verify the required parameter 'body' is set
|
|
21595
|
+
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling postWorkforcemanagementBusinessunitActivitycodes';}return this.apiClient.callApi('/api/v2/workforcemanagement/businessunits/{businessUnitId}/activitycodes','POST',{'businessUnitId':businessUnitId},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
21497
21596
|
* Run an activity plan manually
|
|
21498
21597
|
* Triggers a job running the activity plan. The activity plan cannot be updated until the job completes
|
|
21499
21598
|
* @param {String} businessUnitId The ID of the business unit
|
|
@@ -21521,12 +21620,13 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
21521
21620
|
* Search published schedules
|
|
21522
21621
|
*
|
|
21523
21622
|
* @param {String} businessUnitId The ID of the business unit
|
|
21623
|
+
* @param {Object} body body
|
|
21524
21624
|
* @param {Object} opts Optional parameters
|
|
21525
21625
|
* @param {Boolean} opts.forceAsync Force the result of this operation to be sent asynchronously via notification. For testing/app development purposes
|
|
21526
21626
|
* @param {Boolean} opts.forceDownloadService Force the result of this operation to be sent via download service. For testing/app development purposes
|
|
21527
|
-
|
|
21528
|
-
|
|
21529
|
-
if(
|
|
21627
|
+
*/},{key:"postWorkforcemanagementBusinessunitAgentschedulesSearch",value:function postWorkforcemanagementBusinessunitAgentschedulesSearch(businessUnitId,body,opts){opts=opts||{};// verify the required parameter 'businessUnitId' is set
|
|
21628
|
+
if(businessUnitId===undefined||businessUnitId===null){throw'Missing the required parameter "businessUnitId" when calling postWorkforcemanagementBusinessunitAgentschedulesSearch';}// verify the required parameter 'body' is set
|
|
21629
|
+
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling postWorkforcemanagementBusinessunitAgentschedulesSearch';}return this.apiClient.callApi('/api/v2/workforcemanagement/businessunits/{businessUnitId}/agentschedules/search','POST',{'businessUnitId':businessUnitId},{'forceAsync':opts['forceAsync'],'forceDownloadService':opts['forceDownloadService']},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
21530
21630
|
* List alternative shifts trades for a given management unit or agent
|
|
21531
21631
|
*
|
|
21532
21632
|
* @param {String} businessUnitId The ID of the business unit
|
|
@@ -21539,60 +21639,61 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
21539
21639
|
* Get intraday data for the given date for the requested planningGroupIds
|
|
21540
21640
|
*
|
|
21541
21641
|
* @param {String} businessUnitId The ID of the business unit
|
|
21642
|
+
* @param {Object} body body
|
|
21542
21643
|
* @param {Object} opts Optional parameters
|
|
21543
21644
|
* @param {Boolean} opts.forceAsync Force the result of this operation to be sent asynchronously via notification. For testing/app development purposes
|
|
21544
|
-
|
|
21545
|
-
|
|
21546
|
-
if(
|
|
21645
|
+
*/},{key:"postWorkforcemanagementBusinessunitIntraday",value:function postWorkforcemanagementBusinessunitIntraday(businessUnitId,body,opts){opts=opts||{};// verify the required parameter 'businessUnitId' is set
|
|
21646
|
+
if(businessUnitId===undefined||businessUnitId===null){throw'Missing the required parameter "businessUnitId" when calling postWorkforcemanagementBusinessunitIntraday';}// verify the required parameter 'body' is set
|
|
21647
|
+
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling postWorkforcemanagementBusinessunitIntraday';}return this.apiClient.callApi('/api/v2/workforcemanagement/businessunits/{businessUnitId}/intraday','POST',{'businessUnitId':businessUnitId},{'forceAsync':opts['forceAsync']},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
21547
21648
|
* Adds a new planning group
|
|
21548
21649
|
*
|
|
21549
21650
|
* @param {String} businessUnitId The ID of the business unit.
|
|
21550
|
-
* @param {Object}
|
|
21551
|
-
|
|
21552
|
-
|
|
21553
|
-
if(
|
|
21651
|
+
* @param {Object} body body
|
|
21652
|
+
*/},{key:"postWorkforcemanagementBusinessunitPlanninggroups",value:function postWorkforcemanagementBusinessunitPlanninggroups(businessUnitId,body){// verify the required parameter 'businessUnitId' is set
|
|
21653
|
+
if(businessUnitId===undefined||businessUnitId===null){throw'Missing the required parameter "businessUnitId" when calling postWorkforcemanagementBusinessunitPlanninggroups';}// verify the required parameter 'body' is set
|
|
21654
|
+
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling postWorkforcemanagementBusinessunitPlanninggroups';}return this.apiClient.callApi('/api/v2/workforcemanagement/businessunits/{businessUnitId}/planninggroups','POST',{'businessUnitId':businessUnitId},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
21554
21655
|
* Adds a new service goal template
|
|
21555
21656
|
*
|
|
21556
21657
|
* @param {String} businessUnitId The ID of the business unit.
|
|
21557
|
-
* @param {Object}
|
|
21558
|
-
|
|
21559
|
-
|
|
21560
|
-
if(
|
|
21658
|
+
* @param {Object} body body
|
|
21659
|
+
*/},{key:"postWorkforcemanagementBusinessunitServicegoaltemplates",value:function postWorkforcemanagementBusinessunitServicegoaltemplates(businessUnitId,body){// verify the required parameter 'businessUnitId' is set
|
|
21660
|
+
if(businessUnitId===undefined||businessUnitId===null){throw'Missing the required parameter "businessUnitId" when calling postWorkforcemanagementBusinessunitServicegoaltemplates';}// verify the required parameter 'body' is set
|
|
21661
|
+
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling postWorkforcemanagementBusinessunitServicegoaltemplates';}return this.apiClient.callApi('/api/v2/workforcemanagement/businessunits/{businessUnitId}/servicegoaltemplates','POST',{'businessUnitId':businessUnitId},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
21561
21662
|
* Creates a new staffing group
|
|
21562
21663
|
*
|
|
21563
21664
|
* @param {String} businessUnitId The ID of the business unit
|
|
21564
|
-
* @param {Object}
|
|
21565
|
-
|
|
21566
|
-
|
|
21567
|
-
if(
|
|
21665
|
+
* @param {Object} body body
|
|
21666
|
+
*/},{key:"postWorkforcemanagementBusinessunitStaffinggroups",value:function postWorkforcemanagementBusinessunitStaffinggroups(businessUnitId,body){// verify the required parameter 'businessUnitId' is set
|
|
21667
|
+
if(businessUnitId===undefined||businessUnitId===null){throw'Missing the required parameter "businessUnitId" when calling postWorkforcemanagementBusinessunitStaffinggroups';}// verify the required parameter 'body' is set
|
|
21668
|
+
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling postWorkforcemanagementBusinessunitStaffinggroups';}return this.apiClient.callApi('/api/v2/workforcemanagement/businessunits/{businessUnitId}/staffinggroups','POST',{'businessUnitId':businessUnitId},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
21568
21669
|
* Gets staffing group associations for a list of user IDs
|
|
21569
21670
|
*
|
|
21570
21671
|
* @param {String} businessUnitId The ID of the business unit
|
|
21571
|
-
* @param {Object}
|
|
21572
|
-
|
|
21573
|
-
|
|
21574
|
-
if(
|
|
21672
|
+
* @param {Object} body body
|
|
21673
|
+
*/},{key:"postWorkforcemanagementBusinessunitStaffinggroupsQuery",value:function postWorkforcemanagementBusinessunitStaffinggroupsQuery(businessUnitId,body){// verify the required parameter 'businessUnitId' is set
|
|
21674
|
+
if(businessUnitId===undefined||businessUnitId===null){throw'Missing the required parameter "businessUnitId" when calling postWorkforcemanagementBusinessunitStaffinggroupsQuery';}// verify the required parameter 'body' is set
|
|
21675
|
+
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling postWorkforcemanagementBusinessunitStaffinggroupsQuery';}return this.apiClient.callApi('/api/v2/workforcemanagement/businessunits/{businessUnitId}/staffinggroups/query','POST',{'businessUnitId':businessUnitId},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
21575
21676
|
* Creates a new time-off limit object
|
|
21576
21677
|
*
|
|
21577
21678
|
* @param {String} businessUnitId The ID of the business unit
|
|
21578
|
-
* @param {Object}
|
|
21579
|
-
|
|
21580
|
-
|
|
21581
|
-
if(
|
|
21679
|
+
* @param {Object} body body
|
|
21680
|
+
*/},{key:"postWorkforcemanagementBusinessunitTimeofflimits",value:function postWorkforcemanagementBusinessunitTimeofflimits(businessUnitId,body){// verify the required parameter 'businessUnitId' is set
|
|
21681
|
+
if(businessUnitId===undefined||businessUnitId===null){throw'Missing the required parameter "businessUnitId" when calling postWorkforcemanagementBusinessunitTimeofflimits';}// verify the required parameter 'body' is set
|
|
21682
|
+
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling postWorkforcemanagementBusinessunitTimeofflimits';}return this.apiClient.callApi('/api/v2/workforcemanagement/businessunits/{businessUnitId}/timeofflimits','POST',{'businessUnitId':businessUnitId},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
21582
21683
|
* Retrieves time-off limit related values based on a given set of filters.
|
|
21583
21684
|
*
|
|
21584
21685
|
* @param {String} businessUnitId The ID of the business unit
|
|
21585
|
-
* @param {Object}
|
|
21586
|
-
|
|
21587
|
-
|
|
21588
|
-
if(
|
|
21686
|
+
* @param {Object} body body
|
|
21687
|
+
*/},{key:"postWorkforcemanagementBusinessunitTimeofflimitsValuesQuery",value:function postWorkforcemanagementBusinessunitTimeofflimitsValuesQuery(businessUnitId,body){// verify the required parameter 'businessUnitId' is set
|
|
21688
|
+
if(businessUnitId===undefined||businessUnitId===null){throw'Missing the required parameter "businessUnitId" when calling postWorkforcemanagementBusinessunitTimeofflimitsValuesQuery';}// verify the required parameter 'body' is set
|
|
21689
|
+
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling postWorkforcemanagementBusinessunitTimeofflimitsValuesQuery';}return this.apiClient.callApi('/api/v2/workforcemanagement/businessunits/{businessUnitId}/timeofflimits/values/query','POST',{'businessUnitId':businessUnitId},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
21589
21690
|
* Creates a new time-off plan
|
|
21590
21691
|
*
|
|
21591
21692
|
* @param {String} businessUnitId The ID of the business unit
|
|
21592
|
-
* @param {Object}
|
|
21593
|
-
|
|
21594
|
-
|
|
21595
|
-
if(
|
|
21693
|
+
* @param {Object} body body
|
|
21694
|
+
*/},{key:"postWorkforcemanagementBusinessunitTimeoffplans",value:function postWorkforcemanagementBusinessunitTimeoffplans(businessUnitId,body){// verify the required parameter 'businessUnitId' is set
|
|
21695
|
+
if(businessUnitId===undefined||businessUnitId===null){throw'Missing the required parameter "businessUnitId" when calling postWorkforcemanagementBusinessunitTimeoffplans';}// verify the required parameter 'body' is set
|
|
21696
|
+
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling postWorkforcemanagementBusinessunitTimeoffplans';}return this.apiClient.callApi('/api/v2/workforcemanagement/businessunits/{businessUnitId}/timeoffplans','POST',{'businessUnitId':businessUnitId},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
21596
21697
|
* Loads agent schedule data from the schedule. Used in combination with the metadata route
|
|
21597
21698
|
*
|
|
21598
21699
|
* @param {String} businessUnitId The ID of the business unit
|
|
@@ -21623,23 +21724,23 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
21623
21724
|
* @param {String} businessUnitId The ID of the business unit to which the performance prediction belongs
|
|
21624
21725
|
* @param {String} weekId First day of schedule week in yyyy-MM-dd format
|
|
21625
21726
|
* @param {String} scheduleId The ID of the schedule the performance prediction belongs to
|
|
21626
|
-
* @param {Object}
|
|
21627
|
-
|
|
21628
|
-
*/},{key:"postWorkforcemanagementBusinessunitWeekSchedulePerformancepredictionsRecalculations",value:function postWorkforcemanagementBusinessunitWeekSchedulePerformancepredictionsRecalculations(businessUnitId,weekId,scheduleId,opts){opts=opts||{};// verify the required parameter 'businessUnitId' is set
|
|
21727
|
+
* @param {Object} body body
|
|
21728
|
+
*/},{key:"postWorkforcemanagementBusinessunitWeekSchedulePerformancepredictionsRecalculations",value:function postWorkforcemanagementBusinessunitWeekSchedulePerformancepredictionsRecalculations(businessUnitId,weekId,scheduleId,body){// verify the required parameter 'businessUnitId' is set
|
|
21629
21729
|
if(businessUnitId===undefined||businessUnitId===null){throw'Missing the required parameter "businessUnitId" when calling postWorkforcemanagementBusinessunitWeekSchedulePerformancepredictionsRecalculations';}// verify the required parameter 'weekId' is set
|
|
21630
21730
|
if(weekId===undefined||weekId===null){throw'Missing the required parameter "weekId" when calling postWorkforcemanagementBusinessunitWeekSchedulePerformancepredictionsRecalculations';}// verify the required parameter 'scheduleId' is set
|
|
21631
|
-
if(scheduleId===undefined||scheduleId===null){throw'Missing the required parameter "scheduleId" when calling postWorkforcemanagementBusinessunitWeekSchedulePerformancepredictionsRecalculations';}
|
|
21731
|
+
if(scheduleId===undefined||scheduleId===null){throw'Missing the required parameter "scheduleId" when calling postWorkforcemanagementBusinessunitWeekSchedulePerformancepredictionsRecalculations';}// verify the required parameter 'body' is set
|
|
21732
|
+
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling postWorkforcemanagementBusinessunitWeekSchedulePerformancepredictionsRecalculations';}return this.apiClient.callApi('/api/v2/workforcemanagement/businessunits/{businessUnitId}/weeks/{weekId}/schedules/{scheduleId}/performancepredictions/recalculations','POST',{'businessUnitId':businessUnitId,'weekId':weekId,'scheduleId':scheduleId},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
21632
21733
|
* Upload daily activity changes to be able to request a performance prediction recalculation
|
|
21633
21734
|
*
|
|
21634
21735
|
* @param {String} businessUnitId The ID of the business unit to which the performance prediction belongs
|
|
21635
21736
|
* @param {String} weekId First day of schedule week in yyyy-MM-dd format
|
|
21636
21737
|
* @param {String} scheduleId The ID of the schedule the performance prediction belongs to
|
|
21637
|
-
* @param {Object}
|
|
21638
|
-
|
|
21639
|
-
*/},{key:"postWorkforcemanagementBusinessunitWeekSchedulePerformancepredictionsRecalculationsUploadurl",value:function postWorkforcemanagementBusinessunitWeekSchedulePerformancepredictionsRecalculationsUploadurl(businessUnitId,weekId,scheduleId,opts){opts=opts||{};// verify the required parameter 'businessUnitId' is set
|
|
21738
|
+
* @param {Object} body body
|
|
21739
|
+
*/},{key:"postWorkforcemanagementBusinessunitWeekSchedulePerformancepredictionsRecalculationsUploadurl",value:function postWorkforcemanagementBusinessunitWeekSchedulePerformancepredictionsRecalculationsUploadurl(businessUnitId,weekId,scheduleId,body){// verify the required parameter 'businessUnitId' is set
|
|
21640
21740
|
if(businessUnitId===undefined||businessUnitId===null){throw'Missing the required parameter "businessUnitId" when calling postWorkforcemanagementBusinessunitWeekSchedulePerformancepredictionsRecalculationsUploadurl';}// verify the required parameter 'weekId' is set
|
|
21641
21741
|
if(weekId===undefined||weekId===null){throw'Missing the required parameter "weekId" when calling postWorkforcemanagementBusinessunitWeekSchedulePerformancepredictionsRecalculationsUploadurl';}// verify the required parameter 'scheduleId' is set
|
|
21642
|
-
if(scheduleId===undefined||scheduleId===null){throw'Missing the required parameter "scheduleId" when calling postWorkforcemanagementBusinessunitWeekSchedulePerformancepredictionsRecalculationsUploadurl';}
|
|
21742
|
+
if(scheduleId===undefined||scheduleId===null){throw'Missing the required parameter "scheduleId" when calling postWorkforcemanagementBusinessunitWeekSchedulePerformancepredictionsRecalculationsUploadurl';}// verify the required parameter 'body' is set
|
|
21743
|
+
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling postWorkforcemanagementBusinessunitWeekSchedulePerformancepredictionsRecalculationsUploadurl';}return this.apiClient.callApi('/api/v2/workforcemanagement/businessunits/{businessUnitId}/weeks/{weekId}/schedules/{scheduleId}/performancepredictions/recalculations/uploadurl','POST',{'businessUnitId':businessUnitId,'weekId':weekId,'scheduleId':scheduleId},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
21643
21744
|
* Start a rescheduling run
|
|
21644
21745
|
*
|
|
21645
21746
|
* @param {String} businessUnitId The ID of the business unit
|
|
@@ -21764,23 +21865,23 @@ if(bidId===undefined||bidId===null){throw'Missing the required parameter "bidId"
|
|
|
21764
21865
|
*
|
|
21765
21866
|
* @param {String} businessUnitId The ID of the business unit
|
|
21766
21867
|
* @param {String} bidId The work plan bid id of the bid groups
|
|
21767
|
-
* @param {Object}
|
|
21768
|
-
|
|
21769
|
-
*/},{key:"postWorkforcemanagementBusinessunitWorkplanbidGroups",value:function postWorkforcemanagementBusinessunitWorkplanbidGroups(businessUnitId,bidId,opts){opts=opts||{};// verify the required parameter 'businessUnitId' is set
|
|
21868
|
+
* @param {Object} body body
|
|
21869
|
+
*/},{key:"postWorkforcemanagementBusinessunitWorkplanbidGroups",value:function postWorkforcemanagementBusinessunitWorkplanbidGroups(businessUnitId,bidId,body){// verify the required parameter 'businessUnitId' is set
|
|
21770
21870
|
if(businessUnitId===undefined||businessUnitId===null){throw'Missing the required parameter "businessUnitId" when calling postWorkforcemanagementBusinessunitWorkplanbidGroups';}// verify the required parameter 'bidId' is set
|
|
21771
|
-
if(bidId===undefined||bidId===null){throw'Missing the required parameter "bidId" when calling postWorkforcemanagementBusinessunitWorkplanbidGroups';}
|
|
21871
|
+
if(bidId===undefined||bidId===null){throw'Missing the required parameter "bidId" when calling postWorkforcemanagementBusinessunitWorkplanbidGroups';}// verify the required parameter 'body' is set
|
|
21872
|
+
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling postWorkforcemanagementBusinessunitWorkplanbidGroups';}return this.apiClient.callApi('/api/v2/workforcemanagement/businessunits/{businessUnitId}/workplanbids/{bidId}/groups','POST',{'businessUnitId':businessUnitId,'bidId':bidId},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
21772
21873
|
* Create a new work plan bid
|
|
21773
21874
|
*
|
|
21774
21875
|
* @param {String} businessUnitId The ID of the business unit
|
|
21775
|
-
* @param {Object}
|
|
21776
|
-
|
|
21777
|
-
|
|
21778
|
-
if(
|
|
21876
|
+
* @param {Object} body The work plan bid to be created
|
|
21877
|
+
*/},{key:"postWorkforcemanagementBusinessunitWorkplanbids",value:function postWorkforcemanagementBusinessunitWorkplanbids(businessUnitId,body){// verify the required parameter 'businessUnitId' is set
|
|
21878
|
+
if(businessUnitId===undefined||businessUnitId===null){throw'Missing the required parameter "businessUnitId" when calling postWorkforcemanagementBusinessunitWorkplanbids';}// verify the required parameter 'body' is set
|
|
21879
|
+
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling postWorkforcemanagementBusinessunitWorkplanbids';}return this.apiClient.callApi('/api/v2/workforcemanagement/businessunits/{businessUnitId}/workplanbids','POST',{'businessUnitId':businessUnitId},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
21779
21880
|
* Add a new business unit
|
|
21780
21881
|
* It may take a minute or two for a new business unit to be available for api operations
|
|
21781
|
-
* @param {Object}
|
|
21782
|
-
|
|
21783
|
-
|
|
21882
|
+
* @param {Object} body body
|
|
21883
|
+
*/},{key:"postWorkforcemanagementBusinessunits",value:function postWorkforcemanagementBusinessunits(body){// verify the required parameter 'body' is set
|
|
21884
|
+
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling postWorkforcemanagementBusinessunits';}return this.apiClient.callApi('/api/v2/workforcemanagement/businessunits','POST',{},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
21784
21885
|
* Create a newly generated calendar link for the current user; if the current user has previously generated one, the generated link will be returned
|
|
21785
21886
|
*
|
|
21786
21887
|
* @param {Object} opts Optional parameters
|
|
@@ -21788,18 +21889,18 @@ if(businessUnitId===undefined||businessUnitId===null){throw'Missing the required
|
|
|
21788
21889
|
*/},{key:"postWorkforcemanagementCalendarUrlIcs",value:function postWorkforcemanagementCalendarUrlIcs(opts){opts=opts||{};return this.apiClient.callApi('/api/v2/workforcemanagement/calendar/url/ics','POST',{},{'language':opts['language']},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
21789
21890
|
* Delete the list of the historical data import entries
|
|
21790
21891
|
*
|
|
21791
|
-
* @param {Object}
|
|
21792
|
-
|
|
21793
|
-
|
|
21892
|
+
* @param {Object} body body
|
|
21893
|
+
*/},{key:"postWorkforcemanagementHistoricaldataBulkRemoveJobs",value:function postWorkforcemanagementHistoricaldataBulkRemoveJobs(body){// verify the required parameter 'body' is set
|
|
21894
|
+
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling postWorkforcemanagementHistoricaldataBulkRemoveJobs';}return this.apiClient.callApi('/api/v2/workforcemanagement/historicaldata/bulk/remove/jobs','POST',{},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
21794
21895
|
* Delete the entries of the historical data imports in the organization.
|
|
21795
21896
|
* Deprecated: Please use POST /workforcemanagement/historicaldata/bulk/remove/jobs instead.
|
|
21796
21897
|
* @deprecated
|
|
21797
21898
|
*/},{key:"postWorkforcemanagementHistoricaldataDeletejob",value:function postWorkforcemanagementHistoricaldataDeletejob(){return this.apiClient.callApi('/api/v2/workforcemanagement/historicaldata/deletejob','POST',{},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
21798
21899
|
* Trigger validation process for historical import
|
|
21799
21900
|
*
|
|
21800
|
-
* @param {Object}
|
|
21801
|
-
|
|
21802
|
-
|
|
21901
|
+
* @param {Object} body body
|
|
21902
|
+
*/},{key:"postWorkforcemanagementHistoricaldataValidate",value:function postWorkforcemanagementHistoricaldataValidate(body){// verify the required parameter 'body' is set
|
|
21903
|
+
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling postWorkforcemanagementHistoricaldataValidate';}return this.apiClient.callApi('/api/v2/workforcemanagement/historicaldata/validate','POST',{},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
21803
21904
|
* Get list of time off types configured in integration
|
|
21804
21905
|
*
|
|
21805
21906
|
* @param {String} hrisIntegrationId The ID of the HRIS integration for which time off types are queried.
|
|
@@ -21808,99 +21909,102 @@ if(hrisIntegrationId===undefined||hrisIntegrationId===null){throw'Missing the re
|
|
|
21808
21909
|
* Get agents work plans configuration
|
|
21809
21910
|
*
|
|
21810
21911
|
* @param {String} managementUnitId The ID of the management unit, or 'mine' for the management unit of the logged-in user.
|
|
21912
|
+
* @param {Object} body body
|
|
21811
21913
|
* @param {Object} opts Optional parameters
|
|
21812
21914
|
* @param {Boolean} opts.forceDownloadService Force the result of this operation to be sent via download service. For testing/app development purposes
|
|
21813
|
-
|
|
21814
|
-
|
|
21815
|
-
if(
|
|
21915
|
+
*/},{key:"postWorkforcemanagementManagementunitAgentsWorkplansQuery",value:function postWorkforcemanagementManagementunitAgentsWorkplansQuery(managementUnitId,body,opts){opts=opts||{};// verify the required parameter 'managementUnitId' is set
|
|
21916
|
+
if(managementUnitId===undefined||managementUnitId===null){throw'Missing the required parameter "managementUnitId" when calling postWorkforcemanagementManagementunitAgentsWorkplansQuery';}// verify the required parameter 'body' is set
|
|
21917
|
+
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling postWorkforcemanagementManagementunitAgentsWorkplansQuery';}return this.apiClient.callApi('/api/v2/workforcemanagement/managementunits/{managementUnitId}/agents/workplans/query','POST',{'managementUnitId':managementUnitId},{'forceDownloadService':opts['forceDownloadService']},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
21816
21918
|
* Query published schedules for given given time range for set of users
|
|
21817
21919
|
*
|
|
21818
21920
|
* @param {String} managementUnitId The ID of the management unit, or 'mine' for the management unit of the logged-in user.
|
|
21921
|
+
* @param {Object} body body
|
|
21819
21922
|
* @param {Object} opts Optional parameters
|
|
21820
21923
|
* @param {Boolean} opts.forceAsync Force the result of this operation to be sent asynchronously via notification. For testing/app development purposes
|
|
21821
21924
|
* @param {Boolean} opts.forceDownloadService Force the result of this operation to be sent via download service. For testing/app development purposes
|
|
21822
|
-
|
|
21823
|
-
|
|
21824
|
-
if(
|
|
21925
|
+
*/},{key:"postWorkforcemanagementManagementunitAgentschedulesSearch",value:function postWorkforcemanagementManagementunitAgentschedulesSearch(managementUnitId,body,opts){opts=opts||{};// verify the required parameter 'managementUnitId' is set
|
|
21926
|
+
if(managementUnitId===undefined||managementUnitId===null){throw'Missing the required parameter "managementUnitId" when calling postWorkforcemanagementManagementunitAgentschedulesSearch';}// verify the required parameter 'body' is set
|
|
21927
|
+
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling postWorkforcemanagementManagementunitAgentschedulesSearch';}return this.apiClient.callApi('/api/v2/workforcemanagement/managementunits/{managementUnitId}/agentschedules/search','POST',{'managementUnitId':managementUnitId},{'forceAsync':opts['forceAsync'],'forceDownloadService':opts['forceDownloadService']},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
21825
21928
|
* Request a historical adherence report
|
|
21826
21929
|
* The maximum supported range for historical adherence queries is 31 days, or 7 days with includeExceptions = true
|
|
21827
21930
|
* @param {String} managementUnitId The ID of the management unit
|
|
21828
|
-
* @param {Object}
|
|
21829
|
-
|
|
21830
|
-
|
|
21831
|
-
if(
|
|
21931
|
+
* @param {Object} body body
|
|
21932
|
+
*/},{key:"postWorkforcemanagementManagementunitHistoricaladherencequery",value:function postWorkforcemanagementManagementunitHistoricaladherencequery(managementUnitId,body){// verify the required parameter 'managementUnitId' is set
|
|
21933
|
+
if(managementUnitId===undefined||managementUnitId===null){throw'Missing the required parameter "managementUnitId" when calling postWorkforcemanagementManagementunitHistoricaladherencequery';}// verify the required parameter 'body' is set
|
|
21934
|
+
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling postWorkforcemanagementManagementunitHistoricaladherencequery';}return this.apiClient.callApi('/api/v2/workforcemanagement/managementunits/{managementUnitId}/historicaladherencequery','POST',{'managementUnitId':managementUnitId},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
21832
21935
|
* Move the requested management unit to a new business unit
|
|
21833
21936
|
* Returns status 200 if the management unit is already in the requested business unit
|
|
21834
21937
|
* @param {String} managementUnitId The ID of the management unit, or 'mine' for the management unit of the logged-in user.
|
|
21835
|
-
* @param {Object}
|
|
21836
|
-
|
|
21837
|
-
|
|
21838
|
-
if(
|
|
21938
|
+
* @param {Object} body body
|
|
21939
|
+
*/},{key:"postWorkforcemanagementManagementunitMove",value:function postWorkforcemanagementManagementunitMove(managementUnitId,body){// verify the required parameter 'managementUnitId' is set
|
|
21940
|
+
if(managementUnitId===undefined||managementUnitId===null){throw'Missing the required parameter "managementUnitId" when calling postWorkforcemanagementManagementunitMove';}// verify the required parameter 'body' is set
|
|
21941
|
+
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling postWorkforcemanagementManagementunitMove';}return this.apiClient.callApi('/api/v2/workforcemanagement/managementunits/{managementUnitId}/move','POST',{'managementUnitId':managementUnitId},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
21839
21942
|
* Query published schedules for given given time range for set of users
|
|
21840
21943
|
*
|
|
21841
21944
|
* @param {String} managementUnitId The ID of the management unit, or 'mine' for the management unit of the logged-in user.
|
|
21842
|
-
* @param {Object}
|
|
21843
|
-
* @param {Object} opts.body body
|
|
21945
|
+
* @param {Object} body body
|
|
21844
21946
|
* @deprecated
|
|
21845
|
-
*/},{key:"postWorkforcemanagementManagementunitSchedulesSearch",value:function postWorkforcemanagementManagementunitSchedulesSearch(managementUnitId,
|
|
21846
|
-
if(managementUnitId===undefined||managementUnitId===null){throw'Missing the required parameter "managementUnitId" when calling postWorkforcemanagementManagementunitSchedulesSearch';}
|
|
21947
|
+
*/},{key:"postWorkforcemanagementManagementunitSchedulesSearch",value:function postWorkforcemanagementManagementunitSchedulesSearch(managementUnitId,body){// verify the required parameter 'managementUnitId' is set
|
|
21948
|
+
if(managementUnitId===undefined||managementUnitId===null){throw'Missing the required parameter "managementUnitId" when calling postWorkforcemanagementManagementunitSchedulesSearch';}// verify the required parameter 'body' is set
|
|
21949
|
+
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling postWorkforcemanagementManagementunitSchedulesSearch';}return this.apiClient.callApi('/api/v2/workforcemanagement/managementunits/{managementUnitId}/schedules/search','POST',{'managementUnitId':managementUnitId},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
21847
21950
|
* Request a historical shrinkage report
|
|
21848
21951
|
* The maximum supported range for historical shrinkage queries is up to 32 days. Historical Shrinkage for a given date range can be queried in two modes - granular and aggregated. To see granular shrinkage information, provide granularity in the request body.
|
|
21849
21952
|
* @param {String} managementUnitId The ID of the management unit
|
|
21850
|
-
* @param {Object}
|
|
21851
|
-
|
|
21852
|
-
|
|
21853
|
-
if(
|
|
21953
|
+
* @param {Object} body body
|
|
21954
|
+
*/},{key:"postWorkforcemanagementManagementunitShrinkageJobs",value:function postWorkforcemanagementManagementunitShrinkageJobs(managementUnitId,body){// verify the required parameter 'managementUnitId' is set
|
|
21955
|
+
if(managementUnitId===undefined||managementUnitId===null){throw'Missing the required parameter "managementUnitId" when calling postWorkforcemanagementManagementunitShrinkageJobs';}// verify the required parameter 'body' is set
|
|
21956
|
+
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling postWorkforcemanagementManagementunitShrinkageJobs';}return this.apiClient.callApi('/api/v2/workforcemanagement/managementunits/{managementUnitId}/shrinkage/jobs','POST',{'managementUnitId':managementUnitId},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
21854
21957
|
* Creates a new time off limit object under management unit.
|
|
21855
21958
|
* Only one limit object is allowed under management unit, so an attempt to create second object will fail.
|
|
21856
21959
|
* @param {String} managementUnitId The ID of the management unit.
|
|
21857
|
-
* @param {Object}
|
|
21858
|
-
|
|
21859
|
-
|
|
21860
|
-
if(
|
|
21960
|
+
* @param {Object} body body
|
|
21961
|
+
*/},{key:"postWorkforcemanagementManagementunitTimeofflimits",value:function postWorkforcemanagementManagementunitTimeofflimits(managementUnitId,body){// verify the required parameter 'managementUnitId' is set
|
|
21962
|
+
if(managementUnitId===undefined||managementUnitId===null){throw'Missing the required parameter "managementUnitId" when calling postWorkforcemanagementManagementunitTimeofflimits';}// verify the required parameter 'body' is set
|
|
21963
|
+
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling postWorkforcemanagementManagementunitTimeofflimits';}return this.apiClient.callApi('/api/v2/workforcemanagement/managementunits/{managementUnitId}/timeofflimits','POST',{'managementUnitId':managementUnitId},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
21861
21964
|
* Retrieves time off limit related values based on a given set of filters.
|
|
21862
21965
|
*
|
|
21863
21966
|
* @param {String} managementUnitId The ID of the management unit.
|
|
21864
|
-
* @param {Object}
|
|
21865
|
-
|
|
21866
|
-
|
|
21867
|
-
if(
|
|
21967
|
+
* @param {Object} body body
|
|
21968
|
+
*/},{key:"postWorkforcemanagementManagementunitTimeofflimitsValuesQuery",value:function postWorkforcemanagementManagementunitTimeofflimitsValuesQuery(managementUnitId,body){// verify the required parameter 'managementUnitId' is set
|
|
21969
|
+
if(managementUnitId===undefined||managementUnitId===null){throw'Missing the required parameter "managementUnitId" when calling postWorkforcemanagementManagementunitTimeofflimitsValuesQuery';}// verify the required parameter 'body' is set
|
|
21970
|
+
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling postWorkforcemanagementManagementunitTimeofflimitsValuesQuery';}return this.apiClient.callApi('/api/v2/workforcemanagement/managementunits/{managementUnitId}/timeofflimits/values/query','POST',{'managementUnitId':managementUnitId},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
21868
21971
|
* Creates a new time off plan
|
|
21869
21972
|
*
|
|
21870
21973
|
* @param {String} managementUnitId The ID of the management unit
|
|
21871
|
-
* @param {Object}
|
|
21872
|
-
|
|
21873
|
-
|
|
21874
|
-
if(
|
|
21974
|
+
* @param {Object} body body
|
|
21975
|
+
*/},{key:"postWorkforcemanagementManagementunitTimeoffplans",value:function postWorkforcemanagementManagementunitTimeoffplans(managementUnitId,body){// verify the required parameter 'managementUnitId' is set
|
|
21976
|
+
if(managementUnitId===undefined||managementUnitId===null){throw'Missing the required parameter "managementUnitId" when calling postWorkforcemanagementManagementunitTimeoffplans';}// verify the required parameter 'body' is set
|
|
21977
|
+
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling postWorkforcemanagementManagementunitTimeoffplans';}return this.apiClient.callApi('/api/v2/workforcemanagement/managementunits/{managementUnitId}/timeoffplans','POST',{'managementUnitId':managementUnitId},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
21875
21978
|
* Create a new time off request
|
|
21876
21979
|
*
|
|
21877
21980
|
* @param {String} managementUnitId The ID of the management unit, or 'mine' for the management unit of the logged-in user.
|
|
21878
|
-
* @param {Object}
|
|
21879
|
-
|
|
21880
|
-
|
|
21881
|
-
if(
|
|
21981
|
+
* @param {Object} body body
|
|
21982
|
+
*/},{key:"postWorkforcemanagementManagementunitTimeoffrequests",value:function postWorkforcemanagementManagementunitTimeoffrequests(managementUnitId,body){// verify the required parameter 'managementUnitId' is set
|
|
21983
|
+
if(managementUnitId===undefined||managementUnitId===null){throw'Missing the required parameter "managementUnitId" when calling postWorkforcemanagementManagementunitTimeoffrequests';}// verify the required parameter 'body' is set
|
|
21984
|
+
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling postWorkforcemanagementManagementunitTimeoffrequests';}return this.apiClient.callApi('/api/v2/workforcemanagement/managementunits/{managementUnitId}/timeoffrequests','POST',{'managementUnitId':managementUnitId},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
21882
21985
|
* Retrieves integration statuses for a list of time off requests
|
|
21883
21986
|
*
|
|
21884
21987
|
* @param {String} managementUnitId The ID of the management unit.
|
|
21885
|
-
* @param {Object}
|
|
21886
|
-
|
|
21887
|
-
|
|
21888
|
-
if(
|
|
21988
|
+
* @param {Object} body body
|
|
21989
|
+
*/},{key:"postWorkforcemanagementManagementunitTimeoffrequestsIntegrationstatusQuery",value:function postWorkforcemanagementManagementunitTimeoffrequestsIntegrationstatusQuery(managementUnitId,body){// verify the required parameter 'managementUnitId' is set
|
|
21990
|
+
if(managementUnitId===undefined||managementUnitId===null){throw'Missing the required parameter "managementUnitId" when calling postWorkforcemanagementManagementunitTimeoffrequestsIntegrationstatusQuery';}// verify the required parameter 'body' is set
|
|
21991
|
+
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling postWorkforcemanagementManagementunitTimeoffrequestsIntegrationstatusQuery';}return this.apiClient.callApi('/api/v2/workforcemanagement/managementunits/{managementUnitId}/timeoffrequests/integrationstatus/query','POST',{'managementUnitId':managementUnitId},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
21889
21992
|
* Fetches time off requests matching the conditions specified in the request body
|
|
21890
21993
|
* Request body requires one of the following: User ID is specified, statuses == [Pending] or date range to be specified and less than or equal to 33 days. All other fields are filters
|
|
21891
21994
|
* @param {String} managementUnitId The ID of the management unit, or 'mine' for the management unit of the logged-in user.
|
|
21995
|
+
* @param {Object} body body
|
|
21892
21996
|
* @param {Object} opts Optional parameters
|
|
21893
21997
|
* @param {Boolean} opts.forceDownloadService Force the result of this operation to be sent via download service. For testing/app development purposes
|
|
21894
|
-
|
|
21895
|
-
|
|
21896
|
-
if(
|
|
21998
|
+
*/},{key:"postWorkforcemanagementManagementunitTimeoffrequestsQuery",value:function postWorkforcemanagementManagementunitTimeoffrequestsQuery(managementUnitId,body,opts){opts=opts||{};// verify the required parameter 'managementUnitId' is set
|
|
21999
|
+
if(managementUnitId===undefined||managementUnitId===null){throw'Missing the required parameter "managementUnitId" when calling postWorkforcemanagementManagementunitTimeoffrequestsQuery';}// verify the required parameter 'body' is set
|
|
22000
|
+
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling postWorkforcemanagementManagementunitTimeoffrequestsQuery';}return this.apiClient.callApi('/api/v2/workforcemanagement/managementunits/{managementUnitId}/timeoffrequests/query','POST',{'managementUnitId':managementUnitId},{'forceDownloadService':opts['forceDownloadService']},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
21897
22001
|
* Retrieves daily waitlist position for a list of time off requests
|
|
21898
22002
|
*
|
|
21899
22003
|
* @param {String} managementUnitId The ID of the management unit.
|
|
21900
|
-
* @param {Object}
|
|
21901
|
-
|
|
21902
|
-
|
|
21903
|
-
if(
|
|
22004
|
+
* @param {Object} body body
|
|
22005
|
+
*/},{key:"postWorkforcemanagementManagementunitTimeoffrequestsWaitlistpositionsQuery",value:function postWorkforcemanagementManagementunitTimeoffrequestsWaitlistpositionsQuery(managementUnitId,body){// verify the required parameter 'managementUnitId' is set
|
|
22006
|
+
if(managementUnitId===undefined||managementUnitId===null){throw'Missing the required parameter "managementUnitId" when calling postWorkforcemanagementManagementunitTimeoffrequestsWaitlistpositionsQuery';}// verify the required parameter 'body' is set
|
|
22007
|
+
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling postWorkforcemanagementManagementunitTimeoffrequestsWaitlistpositionsQuery';}return this.apiClient.callApi('/api/v2/workforcemanagement/managementunits/{managementUnitId}/timeoffrequests/waitlistpositions/query','POST',{'managementUnitId':managementUnitId},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
21904
22008
|
* Query time off balances for a given user for specified activity code and dates
|
|
21905
22009
|
*
|
|
21906
22010
|
* @param {String} managementUnitId The ID of the management unit
|
|
@@ -21923,11 +22027,11 @@ if(timeOffRequestId===undefined||timeOffRequestId===null){throw'Missing the requ
|
|
|
21923
22027
|
*
|
|
21924
22028
|
* @param {String} managementUnitId The ID of the management unit
|
|
21925
22029
|
* @param {String} userId The id of the user for whom the time off request estimate is requested
|
|
21926
|
-
* @param {Object}
|
|
21927
|
-
|
|
21928
|
-
*/},{key:"postWorkforcemanagementManagementunitUserTimeoffrequestsEstimate",value:function postWorkforcemanagementManagementunitUserTimeoffrequestsEstimate(managementUnitId,userId,opts){opts=opts||{};// verify the required parameter 'managementUnitId' is set
|
|
22030
|
+
* @param {Object} body body
|
|
22031
|
+
*/},{key:"postWorkforcemanagementManagementunitUserTimeoffrequestsEstimate",value:function postWorkforcemanagementManagementunitUserTimeoffrequestsEstimate(managementUnitId,userId,body){// verify the required parameter 'managementUnitId' is set
|
|
21929
22032
|
if(managementUnitId===undefined||managementUnitId===null){throw'Missing the required parameter "managementUnitId" when calling postWorkforcemanagementManagementunitUserTimeoffrequestsEstimate';}// verify the required parameter 'userId' is set
|
|
21930
|
-
if(userId===undefined||userId===null){throw'Missing the required parameter "userId" when calling postWorkforcemanagementManagementunitUserTimeoffrequestsEstimate';}
|
|
22033
|
+
if(userId===undefined||userId===null){throw'Missing the required parameter "userId" when calling postWorkforcemanagementManagementunitUserTimeoffrequestsEstimate';}// verify the required parameter 'body' is set
|
|
22034
|
+
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling postWorkforcemanagementManagementunitUserTimeoffrequestsEstimate';}return this.apiClient.callApi('/api/v2/workforcemanagement/managementunits/{managementUnitId}/users/{userId}/timeoffrequests/estimate','POST',{'managementUnitId':managementUnitId,'userId':userId},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
21931
22035
|
* Matches a shift trade. This route can only be called by the receiving agent
|
|
21932
22036
|
*
|
|
21933
22037
|
* @param {String} managementUnitId The ID of the management unit, or 'mine' for the management unit of the logged-in user.
|
|
@@ -21974,55 +22078,57 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
21974
22078
|
*
|
|
21975
22079
|
* @param {String} managementUnitId The ID of the management unit, or 'mine' for the management unit of the logged-in user.
|
|
21976
22080
|
* @param {String} workPlanId The ID of the work plan to create a copy
|
|
21977
|
-
* @param {Object}
|
|
21978
|
-
|
|
21979
|
-
*/},{key:"postWorkforcemanagementManagementunitWorkplanCopy",value:function postWorkforcemanagementManagementunitWorkplanCopy(managementUnitId,workPlanId,opts){opts=opts||{};// verify the required parameter 'managementUnitId' is set
|
|
22081
|
+
* @param {Object} body body
|
|
22082
|
+
*/},{key:"postWorkforcemanagementManagementunitWorkplanCopy",value:function postWorkforcemanagementManagementunitWorkplanCopy(managementUnitId,workPlanId,body){// verify the required parameter 'managementUnitId' is set
|
|
21980
22083
|
if(managementUnitId===undefined||managementUnitId===null){throw'Missing the required parameter "managementUnitId" when calling postWorkforcemanagementManagementunitWorkplanCopy';}// verify the required parameter 'workPlanId' is set
|
|
21981
|
-
if(workPlanId===undefined||workPlanId===null){throw'Missing the required parameter "workPlanId" when calling postWorkforcemanagementManagementunitWorkplanCopy';}
|
|
22084
|
+
if(workPlanId===undefined||workPlanId===null){throw'Missing the required parameter "workPlanId" when calling postWorkforcemanagementManagementunitWorkplanCopy';}// verify the required parameter 'body' is set
|
|
22085
|
+
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling postWorkforcemanagementManagementunitWorkplanCopy';}return this.apiClient.callApi('/api/v2/workforcemanagement/managementunits/{managementUnitId}/workplans/{workPlanId}/copy','POST',{'managementUnitId':managementUnitId,'workPlanId':workPlanId},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
21982
22086
|
* Validate Work Plan
|
|
21983
22087
|
*
|
|
21984
22088
|
* @param {String} managementUnitId The ID of the management unit, or 'mine' for the management unit of the logged-in user.
|
|
21985
22089
|
* @param {String} workPlanId The ID of the work plan to validate. For new work plan, use the word 'new' for the ID.
|
|
22090
|
+
* @param {Object} body body
|
|
21986
22091
|
* @param {Object} opts Optional parameters
|
|
21987
22092
|
* @param {Array.<String>} opts.expand
|
|
21988
|
-
|
|
21989
|
-
*/},{key:"postWorkforcemanagementManagementunitWorkplanValidate",value:function postWorkforcemanagementManagementunitWorkplanValidate(managementUnitId,workPlanId,opts){opts=opts||{};// verify the required parameter 'managementUnitId' is set
|
|
22093
|
+
*/},{key:"postWorkforcemanagementManagementunitWorkplanValidate",value:function postWorkforcemanagementManagementunitWorkplanValidate(managementUnitId,workPlanId,body,opts){opts=opts||{};// verify the required parameter 'managementUnitId' is set
|
|
21990
22094
|
if(managementUnitId===undefined||managementUnitId===null){throw'Missing the required parameter "managementUnitId" when calling postWorkforcemanagementManagementunitWorkplanValidate';}// verify the required parameter 'workPlanId' is set
|
|
21991
|
-
if(workPlanId===undefined||workPlanId===null){throw'Missing the required parameter "workPlanId" when calling postWorkforcemanagementManagementunitWorkplanValidate';}
|
|
22095
|
+
if(workPlanId===undefined||workPlanId===null){throw'Missing the required parameter "workPlanId" when calling postWorkforcemanagementManagementunitWorkplanValidate';}// verify the required parameter 'body' is set
|
|
22096
|
+
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling postWorkforcemanagementManagementunitWorkplanValidate';}return this.apiClient.callApi('/api/v2/workforcemanagement/managementunits/{managementUnitId}/workplans/{workPlanId}/validate','POST',{'managementUnitId':managementUnitId,'workPlanId':workPlanId},{'expand':this.apiClient.buildCollectionParam(opts['expand'],'multi')},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
21992
22097
|
* Create a copy of work plan rotation
|
|
21993
22098
|
*
|
|
21994
22099
|
* @param {String} managementUnitId The ID of the management unit, or 'mine' for the management unit of the logged-in user.
|
|
21995
22100
|
* @param {String} workPlanRotationId The ID of the work plan rotation to create a copy
|
|
21996
|
-
* @param {Object}
|
|
21997
|
-
|
|
21998
|
-
*/},{key:"postWorkforcemanagementManagementunitWorkplanrotationCopy",value:function postWorkforcemanagementManagementunitWorkplanrotationCopy(managementUnitId,workPlanRotationId,opts){opts=opts||{};// verify the required parameter 'managementUnitId' is set
|
|
22101
|
+
* @param {Object} body body
|
|
22102
|
+
*/},{key:"postWorkforcemanagementManagementunitWorkplanrotationCopy",value:function postWorkforcemanagementManagementunitWorkplanrotationCopy(managementUnitId,workPlanRotationId,body){// verify the required parameter 'managementUnitId' is set
|
|
21999
22103
|
if(managementUnitId===undefined||managementUnitId===null){throw'Missing the required parameter "managementUnitId" when calling postWorkforcemanagementManagementunitWorkplanrotationCopy';}// verify the required parameter 'workPlanRotationId' is set
|
|
22000
|
-
if(workPlanRotationId===undefined||workPlanRotationId===null){throw'Missing the required parameter "workPlanRotationId" when calling postWorkforcemanagementManagementunitWorkplanrotationCopy';}
|
|
22104
|
+
if(workPlanRotationId===undefined||workPlanRotationId===null){throw'Missing the required parameter "workPlanRotationId" when calling postWorkforcemanagementManagementunitWorkplanrotationCopy';}// verify the required parameter 'body' is set
|
|
22105
|
+
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling postWorkforcemanagementManagementunitWorkplanrotationCopy';}return this.apiClient.callApi('/api/v2/workforcemanagement/managementunits/{managementUnitId}/workplanrotations/{workPlanRotationId}/copy','POST',{'managementUnitId':managementUnitId,'workPlanRotationId':workPlanRotationId},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
22001
22106
|
* Create a new work plan rotation
|
|
22002
22107
|
*
|
|
22003
22108
|
* @param {String} managementUnitId The ID of the management unit, or 'mine' for the management unit of the logged-in user.
|
|
22004
|
-
* @param {Object}
|
|
22005
|
-
|
|
22006
|
-
|
|
22007
|
-
if(
|
|
22109
|
+
* @param {Object} body body
|
|
22110
|
+
*/},{key:"postWorkforcemanagementManagementunitWorkplanrotations",value:function postWorkforcemanagementManagementunitWorkplanrotations(managementUnitId,body){// verify the required parameter 'managementUnitId' is set
|
|
22111
|
+
if(managementUnitId===undefined||managementUnitId===null){throw'Missing the required parameter "managementUnitId" when calling postWorkforcemanagementManagementunitWorkplanrotations';}// verify the required parameter 'body' is set
|
|
22112
|
+
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling postWorkforcemanagementManagementunitWorkplanrotations';}return this.apiClient.callApi('/api/v2/workforcemanagement/managementunits/{managementUnitId}/workplanrotations','POST',{'managementUnitId':managementUnitId},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
22008
22113
|
* Create a new work plan
|
|
22009
22114
|
*
|
|
22010
22115
|
* @param {String} managementUnitId The ID of the management unit, or 'mine' for the management unit of the logged-in user.
|
|
22116
|
+
* @param {Object} body body
|
|
22011
22117
|
* @param {Object} opts Optional parameters
|
|
22012
22118
|
* @param {Object} opts.validationMode Allows to create work plan even if the validation result is invalid
|
|
22013
|
-
|
|
22014
|
-
|
|
22015
|
-
if(
|
|
22119
|
+
*/},{key:"postWorkforcemanagementManagementunitWorkplans",value:function postWorkforcemanagementManagementunitWorkplans(managementUnitId,body,opts){opts=opts||{};// verify the required parameter 'managementUnitId' is set
|
|
22120
|
+
if(managementUnitId===undefined||managementUnitId===null){throw'Missing the required parameter "managementUnitId" when calling postWorkforcemanagementManagementunitWorkplans';}// verify the required parameter 'body' is set
|
|
22121
|
+
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling postWorkforcemanagementManagementunitWorkplans';}return this.apiClient.callApi('/api/v2/workforcemanagement/managementunits/{managementUnitId}/workplans','POST',{'managementUnitId':managementUnitId},{'validationMode':opts['validationMode']},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
22016
22122
|
* Add a management unit
|
|
22017
22123
|
* It may take a minute or two for a new management unit to be available for api operations
|
|
22018
|
-
* @param {Object}
|
|
22019
|
-
|
|
22020
|
-
|
|
22124
|
+
* @param {Object} body body
|
|
22125
|
+
*/},{key:"postWorkforcemanagementManagementunits",value:function postWorkforcemanagementManagementunits(body){// verify the required parameter 'body' is set
|
|
22126
|
+
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling postWorkforcemanagementManagementunits';}return this.apiClient.callApi('/api/v2/workforcemanagement/managementunits','POST',{},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
22021
22127
|
* Mark a list of notifications as read or unread
|
|
22022
22128
|
*
|
|
22023
|
-
* @param {Object}
|
|
22024
|
-
|
|
22025
|
-
|
|
22129
|
+
* @param {Object} body body
|
|
22130
|
+
*/},{key:"postWorkforcemanagementNotificationsUpdate",value:function postWorkforcemanagementNotificationsUpdate(body){// verify the required parameter 'body' is set
|
|
22131
|
+
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling postWorkforcemanagementNotificationsUpdate';}return this.apiClient.callApi('/api/v2/workforcemanagement/notifications/update','POST',{},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
22026
22132
|
* Get published schedule for the current user
|
|
22027
22133
|
*
|
|
22028
22134
|
* @param {Object} opts Optional parameters
|
|
@@ -22032,17 +22138,17 @@ if(managementUnitId===undefined||managementUnitId===null){throw'Missing the requ
|
|
|
22032
22138
|
* Request a teams historical adherence report
|
|
22033
22139
|
* The maximum supported range for historical adherence queries is 31 days, or 7 days with includeExceptions = true
|
|
22034
22140
|
* @param {String} teamId The ID of the team
|
|
22035
|
-
* @param {Object}
|
|
22036
|
-
|
|
22037
|
-
|
|
22038
|
-
if(
|
|
22141
|
+
* @param {Object} body body
|
|
22142
|
+
*/},{key:"postWorkforcemanagementTeamAdherenceHistorical",value:function postWorkforcemanagementTeamAdherenceHistorical(teamId,body){// verify the required parameter 'teamId' is set
|
|
22143
|
+
if(teamId===undefined||teamId===null){throw'Missing the required parameter "teamId" when calling postWorkforcemanagementTeamAdherenceHistorical';}// verify the required parameter 'body' is set
|
|
22144
|
+
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling postWorkforcemanagementTeamAdherenceHistorical';}return this.apiClient.callApi('/api/v2/workforcemanagement/teams/{teamId}/adherence/historical','POST',{'teamId':teamId},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
22039
22145
|
* Request a historical shrinkage report
|
|
22040
22146
|
* The maximum supported range for historical shrinkage queries is up to 32 days
|
|
22041
22147
|
* @param {String} teamId The ID of the team
|
|
22042
|
-
* @param {Object}
|
|
22043
|
-
|
|
22044
|
-
|
|
22045
|
-
if(
|
|
22148
|
+
* @param {Object} body body
|
|
22149
|
+
*/},{key:"postWorkforcemanagementTeamShrinkageJobs",value:function postWorkforcemanagementTeamShrinkageJobs(teamId,body){// verify the required parameter 'teamId' is set
|
|
22150
|
+
if(teamId===undefined||teamId===null){throw'Missing the required parameter "teamId" when calling postWorkforcemanagementTeamShrinkageJobs';}// verify the required parameter 'body' is set
|
|
22151
|
+
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling postWorkforcemanagementTeamShrinkageJobs';}return this.apiClient.callApi('/api/v2/workforcemanagement/teams/{teamId}/shrinkage/jobs','POST',{'teamId':teamId},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
22046
22152
|
* Query time off balances for the current user for specified activity code and dates
|
|
22047
22153
|
*
|
|
22048
22154
|
* @param {Object} body The request body
|
|
@@ -22050,24 +22156,24 @@ if(teamId===undefined||teamId===null){throw'Missing the required parameter "team
|
|
|
22050
22156
|
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling postWorkforcemanagementTimeoffbalanceJobs';}return this.apiClient.callApi('/api/v2/workforcemanagement/timeoffbalance/jobs','POST',{},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
22051
22157
|
* Queries available time off for the current user
|
|
22052
22158
|
*
|
|
22053
|
-
* @param {Object}
|
|
22054
|
-
|
|
22055
|
-
|
|
22159
|
+
* @param {Object} body body
|
|
22160
|
+
*/},{key:"postWorkforcemanagementTimeofflimitsAvailableQuery",value:function postWorkforcemanagementTimeofflimitsAvailableQuery(body){// verify the required parameter 'body' is set
|
|
22161
|
+
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling postWorkforcemanagementTimeofflimitsAvailableQuery';}return this.apiClient.callApi('/api/v2/workforcemanagement/timeofflimits/available/query','POST',{},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
22056
22162
|
* Create a time off request for the current user
|
|
22057
22163
|
*
|
|
22058
|
-
* @param {Object}
|
|
22059
|
-
|
|
22060
|
-
|
|
22164
|
+
* @param {Object} body body
|
|
22165
|
+
*/},{key:"postWorkforcemanagementTimeoffrequests",value:function postWorkforcemanagementTimeoffrequests(body){// verify the required parameter 'body' is set
|
|
22166
|
+
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling postWorkforcemanagementTimeoffrequests';}return this.apiClient.callApi('/api/v2/workforcemanagement/timeoffrequests','POST',{},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
22061
22167
|
* Estimates available time off for current user
|
|
22062
22168
|
*
|
|
22063
|
-
* @param {Object}
|
|
22064
|
-
|
|
22065
|
-
|
|
22169
|
+
* @param {Object} body body
|
|
22170
|
+
*/},{key:"postWorkforcemanagementTimeoffrequestsEstimate",value:function postWorkforcemanagementTimeoffrequestsEstimate(body){// verify the required parameter 'body' is set
|
|
22171
|
+
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling postWorkforcemanagementTimeoffrequestsEstimate';}return this.apiClient.callApi('/api/v2/workforcemanagement/timeoffrequests/estimate','POST',{},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
22066
22172
|
* Retrieves integration statuses for a list of current user time off requests
|
|
22067
22173
|
*
|
|
22068
|
-
* @param {Object}
|
|
22069
|
-
|
|
22070
|
-
|
|
22174
|
+
* @param {Object} body body
|
|
22175
|
+
*/},{key:"postWorkforcemanagementTimeoffrequestsIntegrationstatusQuery",value:function postWorkforcemanagementTimeoffrequestsIntegrationstatusQuery(body){// verify the required parameter 'body' is set
|
|
22176
|
+
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling postWorkforcemanagementTimeoffrequestsIntegrationstatusQuery';}return this.apiClient.callApi('/api/v2/workforcemanagement/timeoffrequests/integrationstatus/query','POST',{},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
22071
22177
|
* Update integrations for agent
|
|
22072
22178
|
*
|
|
22073
22179
|
* @param {String} agentId The ID of the agent
|
|
@@ -22079,20 +22185,20 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
22079
22185
|
* Note that only limit daily values can be set through API, allocated and waitlisted values are read-only for time-off limit API
|
|
22080
22186
|
* @param {String} businessUnitId The ID of the business unit
|
|
22081
22187
|
* @param {String} timeOffLimitId The ID of the time-off limit object to set values for
|
|
22082
|
-
* @param {Object}
|
|
22083
|
-
|
|
22084
|
-
*/},{key:"putWorkforcemanagementBusinessunitTimeofflimitValues",value:function putWorkforcemanagementBusinessunitTimeofflimitValues(businessUnitId,timeOffLimitId,opts){opts=opts||{};// verify the required parameter 'businessUnitId' is set
|
|
22188
|
+
* @param {Object} body body
|
|
22189
|
+
*/},{key:"putWorkforcemanagementBusinessunitTimeofflimitValues",value:function putWorkforcemanagementBusinessunitTimeofflimitValues(businessUnitId,timeOffLimitId,body){// verify the required parameter 'businessUnitId' is set
|
|
22085
22190
|
if(businessUnitId===undefined||businessUnitId===null){throw'Missing the required parameter "businessUnitId" when calling putWorkforcemanagementBusinessunitTimeofflimitValues';}// verify the required parameter 'timeOffLimitId' is set
|
|
22086
|
-
if(timeOffLimitId===undefined||timeOffLimitId===null){throw'Missing the required parameter "timeOffLimitId" when calling putWorkforcemanagementBusinessunitTimeofflimitValues';}
|
|
22191
|
+
if(timeOffLimitId===undefined||timeOffLimitId===null){throw'Missing the required parameter "timeOffLimitId" when calling putWorkforcemanagementBusinessunitTimeofflimitValues';}// verify the required parameter 'body' is set
|
|
22192
|
+
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling putWorkforcemanagementBusinessunitTimeofflimitValues';}return this.apiClient.callApi('/api/v2/workforcemanagement/businessunits/{businessUnitId}/timeofflimits/{timeOffLimitId}/values','PUT',{'businessUnitId':businessUnitId,'timeOffLimitId':timeOffLimitId},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
22087
22193
|
* Sets daily values for a date range of time off limit object
|
|
22088
22194
|
* Note that only limit daily values can be set through API, allocated and waitlisted values are read-only for time off limit API
|
|
22089
22195
|
* @param {String} managementUnitId The ID of the management unit.
|
|
22090
22196
|
* @param {String} timeOffLimitId The ID of the time off limit object to set values for
|
|
22091
|
-
* @param {Object}
|
|
22092
|
-
|
|
22093
|
-
*/},{key:"putWorkforcemanagementManagementunitTimeofflimitValues",value:function putWorkforcemanagementManagementunitTimeofflimitValues(managementUnitId,timeOffLimitId,opts){opts=opts||{};// verify the required parameter 'managementUnitId' is set
|
|
22197
|
+
* @param {Object} body body
|
|
22198
|
+
*/},{key:"putWorkforcemanagementManagementunitTimeofflimitValues",value:function putWorkforcemanagementManagementunitTimeofflimitValues(managementUnitId,timeOffLimitId,body){// verify the required parameter 'managementUnitId' is set
|
|
22094
22199
|
if(managementUnitId===undefined||managementUnitId===null){throw'Missing the required parameter "managementUnitId" when calling putWorkforcemanagementManagementunitTimeofflimitValues';}// verify the required parameter 'timeOffLimitId' is set
|
|
22095
|
-
if(timeOffLimitId===undefined||timeOffLimitId===null){throw'Missing the required parameter "timeOffLimitId" when calling putWorkforcemanagementManagementunitTimeofflimitValues';}
|
|
22200
|
+
if(timeOffLimitId===undefined||timeOffLimitId===null){throw'Missing the required parameter "timeOffLimitId" when calling putWorkforcemanagementManagementunitTimeofflimitValues';}// verify the required parameter 'body' is set
|
|
22201
|
+
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling putWorkforcemanagementManagementunitTimeofflimitValues';}return this.apiClient.callApi('/api/v2/workforcemanagement/managementunits/{managementUnitId}/timeofflimits/{timeOffLimitId}/values','PUT',{'managementUnitId':managementUnitId,'timeOffLimitId':timeOffLimitId},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}}]);}();/**
|
|
22096
22202
|
* A JavaScript library to interface with the PureCloud Platform API.<br>
|
|
22097
22203
|
* The <code>index</code> module provides access to constructors for all the classes which comprise the public API.
|
|
22098
22204
|
* <p>
|
|
@@ -22121,7 +22227,7 @@ if(timeOffLimitId===undefined||timeOffLimitId===null){throw'Missing the required
|
|
|
22121
22227
|
* </pre>
|
|
22122
22228
|
* </p>
|
|
22123
22229
|
* @module purecloud-platform-client-v2/index
|
|
22124
|
-
* @version
|
|
22230
|
+
* @version 223.0.0
|
|
22125
22231
|
*/var platformClient=/*#__PURE__*/_createClass(function platformClient(){_classCallCheck(this,platformClient);/**
|
|
22126
22232
|
* The ApiClient constructor.
|
|
22127
22233
|
* @property {module:purecloud-platform-client-v2/ApiClient}
|