purecloud-platform-client-v2 222.0.0 → 224.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 +1863 -540
- package/dist/web-amd/purecloud-platform-client-v2.js +1863 -540
- package/dist/web-amd/purecloud-platform-client-v2.min.js +1 -1
- package/dist/web-cjs/bundle.js +745 -410
- package/dist/web-cjs/purecloud-platform-client-v2.js +745 -410
- package/dist/web-cjs/purecloud-platform-client-v2.min.js +1 -1
- package/index.d.ts +1681 -998
- package/package.json +1 -1
- package/src/purecloud-platform-client-v2/ApiClient.js +1 -1
- package/src/purecloud-platform-client-v2/api/AIStudioApi.js +387 -0
- 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 +2 -2
- package/src/purecloud-platform-client-v2/api/ArchitectApi.js +4 -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 +52 -8
- 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 +327 -16
- 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 +1 -1
- 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 +89 -2
- 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 +176 -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 +31 -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 +1 -1
- package/src/purecloud-platform-client-v2/api/TeamsApi.js +2 -2
- package/src/purecloud-platform-client-v2/api/TelephonyApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/TelephonyProvidersEdgeApi.js +43 -2
- package/src/purecloud-platform-client-v2/api/TextbotsApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/TokensApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/UploadsApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/UsageApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/UserRecordingsApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/UsersApi.js +31 -1
- package/src/purecloud-platform-client-v2/api/UtilitiesApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/VoicemailApi.js +2 -2
- 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 +524 -421
- package/src/purecloud-platform-client-v2/index.js +7 -1
package/dist/web-cjs/bundle.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
'use strict';function _callSuper(t,o,e){return o=_getPrototypeOf(o),_possibleConstructorReturn(t,_isNativeReflectConstruct()?Reflect.construct(o,e||[],_getPrototypeOf(t).constructor):o.apply(t,e));}function _possibleConstructorReturn(t,e){if(e&&("object"==_typeof(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return _assertThisInitialized(t);}function _assertThisInitialized(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e;}function _isNativeReflectConstruct(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}));}catch(t){}return(_isNativeReflectConstruct=function _isNativeReflectConstruct(){return!!t;})();}function _getPrototypeOf(t){return _getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t);},_getPrototypeOf(t);}function _inherits(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&_setPrototypeOf(t,e);}function _setPrototypeOf(t,e){return _setPrototypeOf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t;},_setPrototypeOf(t,e);}function asyncGeneratorStep(n,t,e,r,o,a,c){try{var i=n[a](c),u=i.value;}catch(n){return void e(n);}i.done?t(u):Promise.resolve(u).then(r,o);}function _asyncToGenerator(n){return function(){var t=this,e=arguments;return new Promise(function(r,o){var a=n.apply(t,e);function _next(n){asyncGeneratorStep(a,r,o,_next,_throw,"next",n);}function _throw(n){asyncGeneratorStep(a,r,o,_next,_throw,"throw",n);}_next(void 0);});};}function _regeneratorRuntime(){"use strict";/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/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)&&(u=i[(c=i[4])?5:(c=3,3)],i[4]=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
|
|
@@ -476,7 +476,7 @@ token=removeBrackets(token);return!dots&&i?'['+token+']':token;}).join(dots?'.':
|
|
|
476
476
|
formData=formData||new FormData();// eslint-disable-next-line no-param-reassign
|
|
477
477
|
options=utils$1.toFlatObject(options,{metaTokens:true,dots:false,indexes:false},false,function defined(option,source){// eslint-disable-next-line no-eq-null,eqeqeq
|
|
478
478
|
return!utils$1.isUndefined(source[option]);});var metaTokens=options.metaTokens;// eslint-disable-next-line no-use-before-define
|
|
479
|
-
var visitor=options.visitor||defaultVisitor;var dots=options.dots;var indexes=options.indexes;var _Blob=options.Blob||typeof Blob!=='undefined'&&Blob;var useBlob=_Blob&&utils$1.isSpecCompliantForm(formData);if(!utils$1.isFunction(visitor)){throw new TypeError('visitor must be a function');}function convertValue(value){if(value===null)return'';if(utils$1.isDate(value)){return value.toISOString();}if(!useBlob&&utils$1.isBlob(value)){throw new AxiosError('Blob is not supported. Use a Buffer instead.');}if(utils$1.isArrayBuffer(value)||utils$1.isTypedArray(value)){return useBlob&&typeof Blob==='function'?new Blob([value]):Buffer.from(value);}return value;}/**
|
|
479
|
+
var visitor=options.visitor||defaultVisitor;var dots=options.dots;var indexes=options.indexes;var _Blob=options.Blob||typeof Blob!=='undefined'&&Blob;var useBlob=_Blob&&utils$1.isSpecCompliantForm(formData);if(!utils$1.isFunction(visitor)){throw new TypeError('visitor must be a function');}function convertValue(value){if(value===null)return'';if(utils$1.isDate(value)){return value.toISOString();}if(utils$1.isBoolean(value)){return value.toString();}if(!useBlob&&utils$1.isBlob(value)){throw new AxiosError('Blob is not supported. Use a Buffer instead.');}if(utils$1.isArrayBuffer(value)||utils$1.isTypedArray(value)){return useBlob&&typeof Blob==='function'?new Blob([value]):Buffer.from(value);}return value;}/**
|
|
480
480
|
* Default visitor.
|
|
481
481
|
*
|
|
482
482
|
* @param {*} value
|
|
@@ -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);case 7:return _context6.a(2);}},_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,fetchOptions);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
|
*
|
|
@@ -750,7 +750,7 @@ isCredentialsSupported="credentials"in Request.prototype;request=new Request(url
|
|
|
750
750
|
*/function dispatchRequest(config){throwIfCancellationRequested(config);config.headers=AxiosHeaders$1.from(config.headers);// Transform request data
|
|
751
751
|
config.data=transformData.call(config,config.transformRequest);if(['post','put','patch'].indexOf(config.method)!==-1){config.headers.setContentType('application/x-www-form-urlencoded',false);}var adapter=adapters.getAdapter(config.adapter||defaults$1.adapter);return adapter(config).then(function onAdapterResolution(response){throwIfCancellationRequested(config);// Transform response data
|
|
752
752
|
response.data=transformData.call(config,config.transformResponse,response);response.headers=AxiosHeaders$1.from(response.headers);return response;},function onAdapterRejection(reason){if(!isCancel(reason)){throwIfCancellationRequested(config);// Transform response data
|
|
753
|
-
if(reason&&reason.response){reason.response.data=transformData.call(config,config.transformResponse,reason.response);reason.response.headers=AxiosHeaders$1.from(reason.response.headers);}}return Promise.reject(reason);});}var VERSION="1.
|
|
753
|
+
if(reason&&reason.response){reason.response.data=transformData.call(config,config.transformResponse,reason.response);reason.response.headers=AxiosHeaders$1.from(reason.response.headers);}}return Promise.reject(reason);});}var VERSION="1.10.0";var validators$1={};// eslint-disable-next-line func-names
|
|
754
754
|
['object','boolean','number','function','string','symbol'].forEach(function(type,i){validators$1[type]=function validator(thing){return _typeof(thing)===type||'a'+(i<1?'n ':' ')+type;};});var deprecatedWarnings={};/**
|
|
755
755
|
* Transitional option validator
|
|
756
756
|
*
|
|
@@ -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 224.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
|
|
@@ -1232,10 +1232,116 @@ var formData=new FormData();formData.set(key,_formParams[key]);request.setData(f
|
|
|
1232
1232
|
var data=that.returnExtended===true?{status:response.status,statusText:response.statusText,headers:response.headers,body:response.data,text:response.text,error:null}:response.data?response.data:response.text;// Debug logging
|
|
1233
1233
|
that.config.logger.log('trace',response.status,httpMethod,url,request.headers,response.headers,bodyParam,undefined);that.config.logger.log('debug',response.status,httpMethod,url,request.headers,undefined,bodyParam,undefined);// Resolve promise
|
|
1234
1234
|
resolve(data);})["catch"](function(error){var data=error;if(error.response&&error.response.status==401&&that.config.refresh_access_token&&that.authData.refreshToken&&that.authData.refreshToken!==""){that._handleExpiredAccessToken().then(function(){sendRequest(that);})["catch"](function(err){reject(err);});}else if(error.response){// Log error
|
|
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
|
|
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 AIStudioApi=/*#__PURE__*/function(){/**
|
|
1236
|
+
* AIStudio service.
|
|
1237
|
+
* @module purecloud-platform-client-v2/api/AIStudioApi
|
|
1238
|
+
* @version 224.0.0
|
|
1239
|
+
*//**
|
|
1240
|
+
* Constructs a new AIStudioApi.
|
|
1241
|
+
* @alias module:purecloud-platform-client-v2/api/AIStudioApi
|
|
1242
|
+
* @class
|
|
1243
|
+
* @param {module:purecloud-platform-client-v2/ApiClient} apiClient Optional API client implementation to use,
|
|
1244
|
+
* default to {@link module:purecloud-platform-client-v2/ApiClient#instance} if unspecified.
|
|
1245
|
+
*/function AIStudioApi(apiClient){_classCallCheck(this,AIStudioApi);this.apiClient=apiClient||ApiClient.instance;}/**
|
|
1246
|
+
* Start the deletion of a guide.
|
|
1247
|
+
*
|
|
1248
|
+
* @param {String} guideId Guide ID
|
|
1249
|
+
* deleteGuideJobs is a preview method and is subject to both breaking and non-breaking changes at any time without notice
|
|
1250
|
+
*/return _createClass(AIStudioApi,[{key:"deleteGuideJobs",value:function deleteGuideJobs(guideId){// verify the required parameter 'guideId' is set
|
|
1251
|
+
if(guideId===undefined||guideId===null){throw'Missing the required parameter "guideId" when calling deleteGuideJobs';}return this.apiClient.callApi('/api/v2/guides/{guideId}/jobs','DELETE',{'guideId':guideId},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
1252
|
+
* Get guide.
|
|
1253
|
+
*
|
|
1254
|
+
* @param {String} guideId Guide ID
|
|
1255
|
+
* getGuide is a preview method and is subject to both breaking and non-breaking changes at any time without notice
|
|
1256
|
+
*/},{key:"getGuide",value:function getGuide(guideId){// verify the required parameter 'guideId' is set
|
|
1257
|
+
if(guideId===undefined||guideId===null){throw'Missing the required parameter "guideId" when calling getGuide';}return this.apiClient.callApi('/api/v2/guides/{guideId}','GET',{'guideId':guideId},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
1258
|
+
* Get the specified guide deletion job.
|
|
1259
|
+
*
|
|
1260
|
+
* @param {String} guideId Guide ID
|
|
1261
|
+
* @param {String} jobId jobId
|
|
1262
|
+
* getGuideJob is a preview method and is subject to both breaking and non-breaking changes at any time without notice
|
|
1263
|
+
*/},{key:"getGuideJob",value:function getGuideJob(guideId,jobId){// verify the required parameter 'guideId' is set
|
|
1264
|
+
if(guideId===undefined||guideId===null){throw'Missing the required parameter "guideId" when calling getGuideJob';}// verify the required parameter 'jobId' is set
|
|
1265
|
+
if(jobId===undefined||jobId===null){throw'Missing the required parameter "jobId" when calling getGuideJob';}return this.apiClient.callApi('/api/v2/guides/{guideId}/jobs/{jobId}','GET',{'guideId':guideId,'jobId':jobId},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
1266
|
+
* Get a guide version.
|
|
1267
|
+
*
|
|
1268
|
+
* @param {String} guideId Guide ID
|
|
1269
|
+
* @param {String} versionId Version ID
|
|
1270
|
+
* getGuideVersion is a preview method and is subject to both breaking and non-breaking changes at any time without notice
|
|
1271
|
+
*/},{key:"getGuideVersion",value:function getGuideVersion(guideId,versionId){// verify the required parameter 'guideId' is set
|
|
1272
|
+
if(guideId===undefined||guideId===null){throw'Missing the required parameter "guideId" when calling getGuideVersion';}// verify the required parameter 'versionId' is set
|
|
1273
|
+
if(versionId===undefined||versionId===null){throw'Missing the required parameter "versionId" when calling getGuideVersion';}return this.apiClient.callApi('/api/v2/guides/{guideId}/versions/{versionId}','GET',{'guideId':guideId,'versionId':versionId},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
1274
|
+
* Get the status of the publishing job for this guide version.
|
|
1275
|
+
*
|
|
1276
|
+
* @param {String} guideId Guide ID
|
|
1277
|
+
* @param {String} versionId Version ID
|
|
1278
|
+
* @param {String} jobId jobId
|
|
1279
|
+
* getGuideVersionJob is a preview method and is subject to both breaking and non-breaking changes at any time without notice
|
|
1280
|
+
*/},{key:"getGuideVersionJob",value:function getGuideVersionJob(guideId,versionId,jobId){// verify the required parameter 'guideId' is set
|
|
1281
|
+
if(guideId===undefined||guideId===null){throw'Missing the required parameter "guideId" when calling getGuideVersionJob';}// verify the required parameter 'versionId' is set
|
|
1282
|
+
if(versionId===undefined||versionId===null){throw'Missing the required parameter "versionId" when calling getGuideVersionJob';}// verify the required parameter 'jobId' is set
|
|
1283
|
+
if(jobId===undefined||jobId===null){throw'Missing the required parameter "jobId" when calling getGuideVersionJob';}return this.apiClient.callApi('/api/v2/guides/{guideId}/versions/{versionId}/jobs/{jobId}','GET',{'guideId':guideId,'versionId':versionId,'jobId':jobId},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
1284
|
+
* Get all guides.
|
|
1285
|
+
*
|
|
1286
|
+
* @param {Object} opts Optional parameters
|
|
1287
|
+
* @param {String} opts.name Filter by matching name - case insensitive.
|
|
1288
|
+
* @param {String} opts.nameContains Filter by name contains - case insensitive.
|
|
1289
|
+
* @param {Object} opts.status Filter by status.
|
|
1290
|
+
* @param {Object} opts.sortBy Sort by. Default value dateModified. (default to dateModified)
|
|
1291
|
+
* @param {Object} opts.sortOrder Sort Order. Default value desc. (default to desc)
|
|
1292
|
+
* @param {Number} opts.pageNumber Page number. (default to 1)
|
|
1293
|
+
* @param {Number} opts.pageSize Page size. The maximum page size is 100. (default to 25)
|
|
1294
|
+
* getGuides is a preview method and is subject to both breaking and non-breaking changes at any time without notice
|
|
1295
|
+
*/},{key:"getGuides",value:function getGuides(opts){opts=opts||{};return this.apiClient.callApi('/api/v2/guides','GET',{},{'name':opts['name'],'nameContains':opts['nameContains'],'status':opts['status'],'sortBy':opts['sortBy'],'sortOrder':opts['sortOrder'],'pageNumber':opts['pageNumber'],'pageSize':opts['pageSize']},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
1296
|
+
* Get the status of the guide content generation job.
|
|
1297
|
+
*
|
|
1298
|
+
* @param {String} jobId jobId
|
|
1299
|
+
* getGuidesJob is a preview method and is subject to both breaking and non-breaking changes at any time without notice
|
|
1300
|
+
*/},{key:"getGuidesJob",value:function getGuidesJob(jobId){// verify the required parameter 'jobId' is set
|
|
1301
|
+
if(jobId===undefined||jobId===null){throw'Missing the required parameter "jobId" when calling getGuidesJob';}return this.apiClient.callApi('/api/v2/guides/jobs/{jobId}','GET',{'jobId':jobId},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
1302
|
+
* Update a guide version.
|
|
1303
|
+
*
|
|
1304
|
+
* @param {String} guideId Guide ID
|
|
1305
|
+
* @param {String} versionId Version ID
|
|
1306
|
+
* @param {Object} body
|
|
1307
|
+
* patchGuideVersion is a preview method and is subject to both breaking and non-breaking changes at any time without notice
|
|
1308
|
+
*/},{key:"patchGuideVersion",value:function patchGuideVersion(guideId,versionId,body){// verify the required parameter 'guideId' is set
|
|
1309
|
+
if(guideId===undefined||guideId===null){throw'Missing the required parameter "guideId" when calling patchGuideVersion';}// verify the required parameter 'versionId' is set
|
|
1310
|
+
if(versionId===undefined||versionId===null){throw'Missing the required parameter "versionId" when calling patchGuideVersion';}// verify the required parameter 'body' is set
|
|
1311
|
+
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling patchGuideVersion';}return this.apiClient.callApi('/api/v2/guides/{guideId}/versions/{versionId}','PATCH',{'guideId':guideId,'versionId':versionId},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
1312
|
+
* Start the publishing of a guide version.
|
|
1313
|
+
*
|
|
1314
|
+
* @param {String} guideId Guide ID
|
|
1315
|
+
* @param {String} versionId Version ID
|
|
1316
|
+
* @param {Object} body
|
|
1317
|
+
* postGuideVersionJobs is a preview method and is subject to both breaking and non-breaking changes at any time without notice
|
|
1318
|
+
*/},{key:"postGuideVersionJobs",value:function postGuideVersionJobs(guideId,versionId,body){// verify the required parameter 'guideId' is set
|
|
1319
|
+
if(guideId===undefined||guideId===null){throw'Missing the required parameter "guideId" when calling postGuideVersionJobs';}// verify the required parameter 'versionId' is set
|
|
1320
|
+
if(versionId===undefined||versionId===null){throw'Missing the required parameter "versionId" when calling postGuideVersionJobs';}// verify the required parameter 'body' is set
|
|
1321
|
+
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling postGuideVersionJobs';}return this.apiClient.callApi('/api/v2/guides/{guideId}/versions/{versionId}/jobs','POST',{'guideId':guideId,'versionId':versionId},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
1322
|
+
* Create a guide version.
|
|
1323
|
+
*
|
|
1324
|
+
* @param {String} guideId Guide ID
|
|
1325
|
+
* @param {Object} opts Optional parameters
|
|
1326
|
+
* @param {Object} opts.body
|
|
1327
|
+
* postGuideVersions is a preview method and is subject to both breaking and non-breaking changes at any time without notice
|
|
1328
|
+
*/},{key:"postGuideVersions",value:function postGuideVersions(guideId,opts){opts=opts||{};// verify the required parameter 'guideId' is set
|
|
1329
|
+
if(guideId===undefined||guideId===null){throw'Missing the required parameter "guideId" when calling postGuideVersions';}return this.apiClient.callApi('/api/v2/guides/{guideId}/versions','POST',{'guideId':guideId},{},{},{},opts['body'],['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
1330
|
+
* Create a guide.
|
|
1331
|
+
*
|
|
1332
|
+
* @param {Object} body
|
|
1333
|
+
* postGuides is a preview method and is subject to both breaking and non-breaking changes at any time without notice
|
|
1334
|
+
*/},{key:"postGuides",value:function postGuides(body){// verify the required parameter 'body' is set
|
|
1335
|
+
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling postGuides';}return this.apiClient.callApi('/api/v2/guides','POST',{},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
1336
|
+
* Start a guide content generation job.
|
|
1337
|
+
*
|
|
1338
|
+
* @param {Object} body
|
|
1339
|
+
* postGuidesJobs is a preview method and is subject to both breaking and non-breaking changes at any time without notice
|
|
1340
|
+
*/},{key:"postGuidesJobs",value:function postGuidesJobs(body){// verify the required parameter 'body' is set
|
|
1341
|
+
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling postGuidesJobs';}return this.apiClient.callApi('/api/v2/guides/jobs','POST',{},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}}]);}();var AgentAssistantsApi=/*#__PURE__*/function(){/**
|
|
1236
1342
|
* AgentAssistants service.
|
|
1237
1343
|
* @module purecloud-platform-client-v2/api/AgentAssistantsApi
|
|
1238
|
-
* @version
|
|
1344
|
+
* @version 224.0.0
|
|
1239
1345
|
*//**
|
|
1240
1346
|
* Constructs a new AgentAssistantsApi.
|
|
1241
1347
|
* @alias module:purecloud-platform-client-v2/api/AgentAssistantsApi
|
|
@@ -1296,7 +1402,8 @@ if(assistantId===undefined||assistantId===null){throw'Missing the required param
|
|
|
1296
1402
|
* @param {String} opts.limit Number of entities to return. Maximum of 200. Deprecated in favour of pageSize
|
|
1297
1403
|
* @param {String} opts.pageSize Number of entities to return. Maximum of 200.
|
|
1298
1404
|
* @param {String} opts.name Return the assistant by the given name.
|
|
1299
|
-
|
|
1405
|
+
* @param {Object} opts.expand Which fields, if any, to expand
|
|
1406
|
+
*/},{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
1407
|
* Get all queues assigned to any assistant.
|
|
1301
1408
|
*
|
|
1302
1409
|
* @param {Object} opts Optional parameters
|
|
@@ -1336,7 +1443,7 @@ if(queueId===undefined||queueId===null){throw'Missing the required parameter "qu
|
|
|
1336
1443
|
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
1444
|
* AgentCopilot service.
|
|
1338
1445
|
* @module purecloud-platform-client-v2/api/AgentCopilotApi
|
|
1339
|
-
* @version
|
|
1446
|
+
* @version 224.0.0
|
|
1340
1447
|
*//**
|
|
1341
1448
|
* Constructs a new AgentCopilotApi.
|
|
1342
1449
|
* @alias module:purecloud-platform-client-v2/api/AgentCopilotApi
|
|
@@ -1358,7 +1465,7 @@ if(assistantId===undefined||assistantId===null){throw'Missing the required param
|
|
|
1358
1465
|
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
1466
|
* AgentUI service.
|
|
1360
1467
|
* @module purecloud-platform-client-v2/api/AgentUIApi
|
|
1361
|
-
* @version
|
|
1468
|
+
* @version 224.0.0
|
|
1362
1469
|
*//**
|
|
1363
1470
|
* Constructs a new AgentUIApi.
|
|
1364
1471
|
* @alias module:purecloud-platform-client-v2/api/AgentUIApi
|
|
@@ -1392,7 +1499,7 @@ if(agentId===undefined||agentId===null){throw'Missing the required parameter "ag
|
|
|
1392
1499
|
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
1500
|
* Alerting service.
|
|
1394
1501
|
* @module purecloud-platform-client-v2/api/AlertingApi
|
|
1395
|
-
* @version
|
|
1502
|
+
* @version 224.0.0
|
|
1396
1503
|
*//**
|
|
1397
1504
|
* Constructs a new AlertingApi.
|
|
1398
1505
|
* @alias module:purecloud-platform-client-v2/api/AlertingApi
|
|
@@ -1481,7 +1588,7 @@ if(ruleId===undefined||ruleId===null){throw'Missing the required parameter "rule
|
|
|
1481
1588
|
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
1589
|
* Analytics service.
|
|
1483
1590
|
* @module purecloud-platform-client-v2/api/AnalyticsApi
|
|
1484
|
-
* @version
|
|
1591
|
+
* @version 224.0.0
|
|
1485
1592
|
*//**
|
|
1486
1593
|
* Constructs a new AnalyticsApi.
|
|
1487
1594
|
* @alias module:purecloud-platform-client-v2/api/AnalyticsApi
|
|
@@ -1877,7 +1984,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
1877
1984
|
* @param {Object} body query
|
|
1878
1985
|
*/},{key:"postAnalyticsAgentcopilotsAggregatesQuery",value:function postAnalyticsAgentcopilotsAggregatesQuery(body){// verify the required parameter 'body' is set
|
|
1879
1986
|
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling postAnalyticsAgentcopilotsAggregatesQuery';}return this.apiClient.callApi('/api/v2/analytics/agentcopilots/aggregates/query','POST',{},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
1880
|
-
* Count agents by
|
|
1987
|
+
* Count agents by different groupings
|
|
1881
1988
|
*
|
|
1882
1989
|
* @param {Object} body query
|
|
1883
1990
|
*/},{key:"postAnalyticsAgentsStatusCounts",value:function postAnalyticsAgentsStatusCounts(body){// verify the required parameter 'body' is set
|
|
@@ -2149,7 +2256,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
2149
2256
|
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
2257
|
* Architect service.
|
|
2151
2258
|
* @module purecloud-platform-client-v2/api/ArchitectApi
|
|
2152
|
-
* @version
|
|
2259
|
+
* @version 224.0.0
|
|
2153
2260
|
*//**
|
|
2154
2261
|
* Constructs a new ArchitectApi.
|
|
2155
2262
|
* @alias module:purecloud-platform-client-v2/api/ArchitectApi
|
|
@@ -2375,7 +2482,7 @@ if(emergencyGroupId===undefined||emergencyGroupId===null){throw'Missing the requ
|
|
|
2375
2482
|
* @param {String} opts.name Name of the Emergency Group to filter by.
|
|
2376
2483
|
*/},{key:"getArchitectEmergencygroups",value:function getArchitectEmergencygroups(opts){opts=opts||{};return this.apiClient.callApi('/api/v2/architect/emergencygroups','GET',{},{'pageNumber':opts['pageNumber'],'pageSize':opts['pageSize'],'sortBy':opts['sortBy'],'sortOrder':opts['sortOrder'],'name':opts['name']},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
2377
2484
|
* Get a pageable list of basic emergency group objects filterable by query parameters.
|
|
2378
|
-
* This returns emergency groups consisting of name and division. If one or more IDs are specified, the search will fetch
|
|
2485
|
+
* This returns emergency groups consisting of name and division. If one or more IDs are specified, the search will fetch emergency groups that match the given ID(s) and not use any additional supplied query parameters in the search.
|
|
2379
2486
|
* @param {Object} opts Optional parameters
|
|
2380
2487
|
* @param {Number} opts.pageNumber Page number (default to 1)
|
|
2381
2488
|
* @param {Number} opts.pageSize Page size (default to 25)
|
|
@@ -2998,6 +3105,7 @@ if(promptId===undefined||promptId===null){throw'Missing the required parameter "
|
|
|
2998
3105
|
*
|
|
2999
3106
|
* @param {String} promptId Prompt ID
|
|
3000
3107
|
* @param {String} languageCode Language
|
|
3108
|
+
* postArchitectPromptResourceUploads is a preview method and is subject to both breaking and non-breaking changes at any time without notice
|
|
3001
3109
|
*/},{key:"postArchitectPromptResourceUploads",value:function postArchitectPromptResourceUploads(promptId,languageCode){// verify the required parameter 'promptId' is set
|
|
3002
3110
|
if(promptId===undefined||promptId===null){throw'Missing the required parameter "promptId" when calling postArchitectPromptResourceUploads';}// verify the required parameter 'languageCode' is set
|
|
3003
3111
|
if(languageCode===undefined||languageCode===null){throw'Missing the required parameter "languageCode" when calling postArchitectPromptResourceUploads';}return this.apiClient.callApi('/api/v2/architect/prompts/{promptId}/resources/{languageCode}/uploads','POST',{'promptId':promptId,'languageCode':languageCode},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
@@ -3032,6 +3140,7 @@ if(promptId===undefined||promptId===null){throw'Missing the required parameter "
|
|
|
3032
3140
|
*
|
|
3033
3141
|
* @param {String} promptId Prompt ID
|
|
3034
3142
|
* @param {String} languageCode Language
|
|
3143
|
+
* postArchitectSystempromptResourceUploads is a preview method and is subject to both breaking and non-breaking changes at any time without notice
|
|
3035
3144
|
*/},{key:"postArchitectSystempromptResourceUploads",value:function postArchitectSystempromptResourceUploads(promptId,languageCode){// verify the required parameter 'promptId' is set
|
|
3036
3145
|
if(promptId===undefined||promptId===null){throw'Missing the required parameter "promptId" when calling postArchitectSystempromptResourceUploads';}// verify the required parameter 'languageCode' is set
|
|
3037
3146
|
if(languageCode===undefined||languageCode===null){throw'Missing the required parameter "languageCode" when calling postArchitectSystempromptResourceUploads';}return this.apiClient.callApi('/api/v2/architect/systemprompts/{promptId}/resources/{languageCode}/uploads','POST',{'promptId':promptId,'languageCode':languageCode},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
@@ -3281,7 +3390,7 @@ if(milestoneId===undefined||milestoneId===null){throw'Missing the required param
|
|
|
3281
3390
|
if(flowOutcomeId===undefined||flowOutcomeId===null){throw'Missing the required parameter "flowOutcomeId" when calling putFlowsOutcome';}return this.apiClient.callApi('/api/v2/flows/outcomes/{flowOutcomeId}','PUT',{'flowOutcomeId':flowOutcomeId},{},{},{},opts['body'],['PureCloud OAuth'],['application/json'],['application/json']);}}]);}();var AuditApi=/*#__PURE__*/function(){/**
|
|
3282
3391
|
* Audit service.
|
|
3283
3392
|
* @module purecloud-platform-client-v2/api/AuditApi
|
|
3284
|
-
* @version
|
|
3393
|
+
* @version 224.0.0
|
|
3285
3394
|
*//**
|
|
3286
3395
|
* Constructs a new AuditApi.
|
|
3287
3396
|
* @alias module:purecloud-platform-client-v2/api/AuditApi
|
|
@@ -3331,7 +3440,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
3331
3440
|
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling postAuditsQueryRealtimeRelated';}return this.apiClient.callApi('/api/v2/audits/query/realtime/related','POST',{},{'expand':this.apiClient.buildCollectionParam(opts['expand'],'multi')},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}}]);}();var AuthorizationApi=/*#__PURE__*/function(){/**
|
|
3332
3441
|
* Authorization service.
|
|
3333
3442
|
* @module purecloud-platform-client-v2/api/AuthorizationApi
|
|
3334
|
-
* @version
|
|
3443
|
+
* @version 224.0.0
|
|
3335
3444
|
*//**
|
|
3336
3445
|
* Constructs a new AuthorizationApi.
|
|
3337
3446
|
* @alias module:purecloud-platform-client-v2/api/AuthorizationApi
|
|
@@ -3766,7 +3875,7 @@ if(subjectId===undefined||subjectId===null){throw'Missing the required parameter
|
|
|
3766
3875
|
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling putUserRoles';}return this.apiClient.callApi('/api/v2/users/{subjectId}/roles','PUT',{'subjectId':subjectId},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}}]);}();var BillingApi=/*#__PURE__*/function(){/**
|
|
3767
3876
|
* Billing service.
|
|
3768
3877
|
* @module purecloud-platform-client-v2/api/BillingApi
|
|
3769
|
-
* @version
|
|
3878
|
+
* @version 224.0.0
|
|
3770
3879
|
*//**
|
|
3771
3880
|
* Constructs a new BillingApi.
|
|
3772
3881
|
* @alias module:purecloud-platform-client-v2/api/BillingApi
|
|
@@ -3843,7 +3952,7 @@ if(endDate===undefined||endDate===null){throw'Missing the required parameter "en
|
|
|
3843
3952
|
if(trustorOrgId===undefined||trustorOrgId===null){throw'Missing the required parameter "trustorOrgId" when calling getBillingTrusteebillingoverviewTrustorOrgId';}return this.apiClient.callApi('/api/v2/billing/trusteebillingoverview/{trustorOrgId}','GET',{'trustorOrgId':trustorOrgId},{'billingPeriodIndex':opts['billingPeriodIndex']},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}}]);}();var BusinessRulesApi=/*#__PURE__*/function(){/**
|
|
3844
3953
|
* BusinessRules service.
|
|
3845
3954
|
* @module purecloud-platform-client-v2/api/BusinessRulesApi
|
|
3846
|
-
* @version
|
|
3955
|
+
* @version 224.0.0
|
|
3847
3956
|
*//**
|
|
3848
3957
|
* Constructs a new BusinessRulesApi.
|
|
3849
3958
|
* @alias module:purecloud-platform-client-v2/api/BusinessRulesApi
|
|
@@ -3923,7 +4032,7 @@ if(tableVersion===undefined||tableVersion===null){throw'Missing the required par
|
|
|
3923
4032
|
* @param {String} tableId Table ID
|
|
3924
4033
|
* @param {Object} opts Optional parameters
|
|
3925
4034
|
* @param {String} opts.after The cursor that points to the end of the set of entities that has been returned.
|
|
3926
|
-
* @param {String} opts.pageSize Number of entities to return. Maximum of
|
|
4035
|
+
* @param {String} opts.pageSize Number of entities to return. Maximum of 100.
|
|
3927
4036
|
* @param {Array.<String>} opts.divisionIds One or more comma separated divisions to filters decision tables by. If nothing is provided, the decision tables associated with the list of divisions that the user has access to will be returned.
|
|
3928
4037
|
* getBusinessrulesDecisiontableVersions is a preview method and is subject to both breaking and non-breaking changes at any time without notice
|
|
3929
4038
|
*/},{key:"getBusinessrulesDecisiontableVersions",value:function getBusinessrulesDecisiontableVersions(tableId,opts){opts=opts||{};// verify the required parameter 'tableId' is set
|
|
@@ -3932,20 +4041,22 @@ if(tableId===undefined||tableId===null){throw'Missing the required parameter "ta
|
|
|
3932
4041
|
*
|
|
3933
4042
|
* @param {Object} opts Optional parameters
|
|
3934
4043
|
* @param {String} opts.after The cursor that points to the end of the set of entities that has been returned.
|
|
3935
|
-
* @param {String} opts.pageSize Number of entities to return. Maximum of
|
|
4044
|
+
* @param {String} opts.pageSize Number of entities to return. Maximum of 100.
|
|
3936
4045
|
* @param {Array.<String>} opts.divisionIds One or more comma separated divisions to filters decision tables by. If nothing is provided, the decision tables associated with the list of divisions that the user has access to will be returned.
|
|
3937
4046
|
* getBusinessrulesDecisiontables is a preview method and is subject to both breaking and non-breaking changes at any time without notice
|
|
3938
4047
|
*/},{key:"getBusinessrulesDecisiontables",value:function getBusinessrulesDecisiontables(opts){opts=opts||{};return this.apiClient.callApi('/api/v2/businessrules/decisiontables','GET',{},{'after':opts['after'],'pageSize':opts['pageSize'],'divisionIds':this.apiClient.buildCollectionParam(opts['divisionIds'],'multi')},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
3939
4048
|
* Search for decision tables.
|
|
3940
4049
|
*
|
|
3941
4050
|
* @param {Object} opts Optional parameters
|
|
3942
|
-
* @param {String} opts.before The cursor that points to the start of the set of entities that has been returned.
|
|
3943
4051
|
* @param {String} opts.after The cursor that points to the end of the set of entities that has been returned.
|
|
3944
|
-
* @param {String} opts.pageSize Number of entities to return. Maximum of
|
|
4052
|
+
* @param {String} opts.pageSize Number of entities to return. Maximum of 100.
|
|
3945
4053
|
* @param {String} opts.schemaId Search for decision tables that use the schema with this ID. Cannot be combined with name search. Search results will not be paginated if used.
|
|
3946
4054
|
* @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.
|
|
4055
|
+
* @param {Boolean} opts.withPublishedVersion Filters results to only decision tables that have at least one version in Published status
|
|
4056
|
+
* @param {Array.<String>} opts.expand Fields to expand in response
|
|
4057
|
+
* @param {Array.<String>} opts.ids Decision table IDs to search for
|
|
3947
4058
|
* getBusinessrulesDecisiontablesSearch is a preview method and is subject to both breaking and non-breaking changes at any time without notice
|
|
3948
|
-
*/},{key:"getBusinessrulesDecisiontablesSearch",value:function getBusinessrulesDecisiontablesSearch(opts){opts=opts||{};return this.apiClient.callApi('/api/v2/businessrules/decisiontables/search','GET',{},{'
|
|
4059
|
+
*/},{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'],'withPublishedVersion':opts['withPublishedVersion'],'expand':this.apiClient.buildCollectionParam(opts['expand'],'multi'),'ids':this.apiClient.buildCollectionParam(opts['ids'],'multi')},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
3949
4060
|
* Get a schema
|
|
3950
4061
|
*
|
|
3951
4062
|
* @param {String} schemaId Schema ID
|
|
@@ -3984,12 +4095,13 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
3984
4095
|
if(tableId===undefined||tableId===null){throw'Missing the required parameter "tableId" when calling patchBusinessrulesDecisiontableVersion';}// verify the required parameter 'tableVersion' is set
|
|
3985
4096
|
if(tableVersion===undefined||tableVersion===null){throw'Missing the required parameter "tableVersion" when calling patchBusinessrulesDecisiontableVersion';}// verify the required parameter 'body' is set
|
|
3986
4097
|
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling patchBusinessrulesDecisiontableVersion';}return this.apiClient.callApi('/api/v2/businessrules/decisiontables/{tableId}/versions/{tableVersion}','PATCH',{'tableId':tableId,'tableVersion':tableVersion},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
3987
|
-
*
|
|
4098
|
+
* Partially update a decision table row. Will be deprecated, we should use PUT request.
|
|
3988
4099
|
*
|
|
3989
4100
|
* @param {String} tableId Table ID
|
|
3990
4101
|
* @param {Number} tableVersion Table Version
|
|
3991
4102
|
* @param {String} rowId Row ID
|
|
3992
|
-
* @param {Object} body
|
|
4103
|
+
* @param {Object} body Partially update decision table row request
|
|
4104
|
+
* @deprecated
|
|
3993
4105
|
* patchBusinessrulesDecisiontableVersionRow is a preview method and is subject to both breaking and non-breaking changes at any time without notice
|
|
3994
4106
|
*/},{key:"patchBusinessrulesDecisiontableVersionRow",value:function patchBusinessrulesDecisiontableVersionRow(tableId,tableVersion,rowId,body){// verify the required parameter 'tableId' is set
|
|
3995
4107
|
if(tableId===undefined||tableId===null){throw'Missing the required parameter "tableId" when calling patchBusinessrulesDecisiontableVersionRow';}// verify the required parameter 'tableVersion' is set
|
|
@@ -4081,6 +4193,18 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
4081
4193
|
*/},{key:"putBusinessrulesDecisiontableVersionPublish",value:function putBusinessrulesDecisiontableVersionPublish(tableId,tableVersion){// verify the required parameter 'tableId' is set
|
|
4082
4194
|
if(tableId===undefined||tableId===null){throw'Missing the required parameter "tableId" when calling putBusinessrulesDecisiontableVersionPublish';}// verify the required parameter 'tableVersion' is set
|
|
4083
4195
|
if(tableVersion===undefined||tableVersion===null){throw'Missing the required parameter "tableVersion" when calling putBusinessrulesDecisiontableVersionPublish';}return this.apiClient.callApi('/api/v2/businessrules/decisiontables/{tableId}/versions/{tableVersion}/publish','PUT',{'tableId':tableId,'tableVersion':tableVersion},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
4196
|
+
* Full update a decision table row
|
|
4197
|
+
*
|
|
4198
|
+
* @param {String} tableId Table ID
|
|
4199
|
+
* @param {Number} tableVersion Table Version
|
|
4200
|
+
* @param {String} rowId Row ID
|
|
4201
|
+
* @param {Object} body Full update decision table row request
|
|
4202
|
+
* putBusinessrulesDecisiontableVersionRow is a preview method and is subject to both breaking and non-breaking changes at any time without notice
|
|
4203
|
+
*/},{key:"putBusinessrulesDecisiontableVersionRow",value:function putBusinessrulesDecisiontableVersionRow(tableId,tableVersion,rowId,body){// verify the required parameter 'tableId' is set
|
|
4204
|
+
if(tableId===undefined||tableId===null){throw'Missing the required parameter "tableId" when calling putBusinessrulesDecisiontableVersionRow';}// verify the required parameter 'tableVersion' is set
|
|
4205
|
+
if(tableVersion===undefined||tableVersion===null){throw'Missing the required parameter "tableVersion" when calling putBusinessrulesDecisiontableVersionRow';}// verify the required parameter 'rowId' is set
|
|
4206
|
+
if(rowId===undefined||rowId===null){throw'Missing the required parameter "rowId" when calling putBusinessrulesDecisiontableVersionRow';}// verify the required parameter 'body' is set
|
|
4207
|
+
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling putBusinessrulesDecisiontableVersionRow';}return this.apiClient.callApi('/api/v2/businessrules/decisiontables/{tableId}/versions/{tableVersion}/rows/{rowId}','PUT',{'tableId':tableId,'tableVersion':tableVersion,'rowId':rowId},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
4084
4208
|
* Update a schema
|
|
4085
4209
|
*
|
|
4086
4210
|
* @param {String} schemaId Schema ID
|
|
@@ -4091,7 +4215,7 @@ if(schemaId===undefined||schemaId===null){throw'Missing the required parameter "
|
|
|
4091
4215
|
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(){/**
|
|
4092
4216
|
* CarrierServices service.
|
|
4093
4217
|
* @module purecloud-platform-client-v2/api/CarrierServicesApi
|
|
4094
|
-
* @version
|
|
4218
|
+
* @version 224.0.0
|
|
4095
4219
|
*//**
|
|
4096
4220
|
* Constructs a new CarrierServicesApi.
|
|
4097
4221
|
* @alias module:purecloud-platform-client-v2/api/CarrierServicesApi
|
|
@@ -4111,7 +4235,7 @@ if(phoneNumber===undefined||phoneNumber===null){throw'Missing the required param
|
|
|
4111
4235
|
*/},{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(){/**
|
|
4112
4236
|
* Chat service.
|
|
4113
4237
|
* @module purecloud-platform-client-v2/api/ChatApi
|
|
4114
|
-
* @version
|
|
4238
|
+
* @version 224.0.0
|
|
4115
4239
|
*//**
|
|
4116
4240
|
* Constructs a new ChatApi.
|
|
4117
4241
|
* @alias module:purecloud-platform-client-v2/api/ChatApi
|
|
@@ -4331,7 +4455,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
4331
4455
|
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(){/**
|
|
4332
4456
|
* Coaching service.
|
|
4333
4457
|
* @module purecloud-platform-client-v2/api/CoachingApi
|
|
4334
|
-
* @version
|
|
4458
|
+
* @version 224.0.0
|
|
4335
4459
|
*//**
|
|
4336
4460
|
* Constructs a new CoachingApi.
|
|
4337
4461
|
* @alias module:purecloud-platform-client-v2/api/CoachingApi
|
|
@@ -4484,7 +4608,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
4484
4608
|
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(){/**
|
|
4485
4609
|
* ContentManagement service.
|
|
4486
4610
|
* @module purecloud-platform-client-v2/api/ContentManagementApi
|
|
4487
|
-
* @version
|
|
4611
|
+
* @version 224.0.0
|
|
4488
4612
|
*//**
|
|
4489
4613
|
* Constructs a new ContentManagementApi.
|
|
4490
4614
|
* @alias module:purecloud-platform-client-v2/api/ContentManagementApi
|
|
@@ -4766,7 +4890,7 @@ if(tagId===undefined||tagId===null){throw'Missing the required parameter "tagId"
|
|
|
4766
4890
|
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(){/**
|
|
4767
4891
|
* Conversations service.
|
|
4768
4892
|
* @module purecloud-platform-client-v2/api/ConversationsApi
|
|
4769
|
-
* @version
|
|
4893
|
+
* @version 224.0.0
|
|
4770
4894
|
*//**
|
|
4771
4895
|
* Constructs a new ConversationsApi.
|
|
4772
4896
|
* @alias module:purecloud-platform-client-v2/api/ConversationsApi
|
|
@@ -4897,6 +5021,27 @@ if(jobId===undefined||jobId===null){throw'Missing the required parameter "jobId"
|
|
|
4897
5021
|
* @param {String} conversationId conversation ID
|
|
4898
5022
|
*/},{key:"getConversation",value:function getConversation(conversationId){// verify the required parameter 'conversationId' is set
|
|
4899
5023
|
if(conversationId===undefined||conversationId===null){throw'Missing the required parameter "conversationId" when calling getConversation';}return this.apiClient.callApi('/api/v2/conversations/{conversationId}','GET',{'conversationId':conversationId},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
5024
|
+
* Get message
|
|
5025
|
+
*
|
|
5026
|
+
* @param {String} conversationId conversationId
|
|
5027
|
+
* @param {String} communicationId communicationId
|
|
5028
|
+
* @param {String} messageId messageId
|
|
5029
|
+
* getConversationCommunicationInternalmessage is a preview method and is subject to both breaking and non-breaking changes at any time without notice
|
|
5030
|
+
*/},{key:"getConversationCommunicationInternalmessage",value:function getConversationCommunicationInternalmessage(conversationId,communicationId,messageId){// verify the required parameter 'conversationId' is set
|
|
5031
|
+
if(conversationId===undefined||conversationId===null){throw'Missing the required parameter "conversationId" when calling getConversationCommunicationInternalmessage';}// verify the required parameter 'communicationId' is set
|
|
5032
|
+
if(communicationId===undefined||communicationId===null){throw'Missing the required parameter "communicationId" when calling getConversationCommunicationInternalmessage';}// verify the required parameter 'messageId' is set
|
|
5033
|
+
if(messageId===undefined||messageId===null){throw'Missing the required parameter "messageId" when calling getConversationCommunicationInternalmessage';}return this.apiClient.callApi('/api/v2/conversations/{conversationId}/communications/{communicationId}/internalmessages/{messageId}','GET',{'conversationId':conversationId,'communicationId':communicationId,'messageId':messageId},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
5034
|
+
* Get messages for communication
|
|
5035
|
+
*
|
|
5036
|
+
* @param {String} conversationId conversationId
|
|
5037
|
+
* @param {String} communicationId communicationId
|
|
5038
|
+
* @param {Object} opts Optional parameters
|
|
5039
|
+
* @param {Number} opts.pageSize Indicates maximum number of results in response. Default page size is 25 results. The maximum page size is 200. (default to 25)
|
|
5040
|
+
* @param {Number} opts.pageNumber Page number (default to 1)
|
|
5041
|
+
* getConversationCommunicationInternalmessages is a preview method and is subject to both breaking and non-breaking changes at any time without notice
|
|
5042
|
+
*/},{key:"getConversationCommunicationInternalmessages",value:function getConversationCommunicationInternalmessages(conversationId,communicationId,opts){opts=opts||{};// verify the required parameter 'conversationId' is set
|
|
5043
|
+
if(conversationId===undefined||conversationId===null){throw'Missing the required parameter "conversationId" when calling getConversationCommunicationInternalmessages';}// verify the required parameter 'communicationId' is set
|
|
5044
|
+
if(communicationId===undefined||communicationId===null){throw'Missing the required parameter "communicationId" when calling getConversationCommunicationInternalmessages';}return this.apiClient.callApi('/api/v2/conversations/{conversationId}/communications/{communicationId}/internalmessages','GET',{'conversationId':conversationId,'communicationId':communicationId},{'pageSize':opts['pageSize'],'pageNumber':opts['pageNumber']},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
4900
5045
|
* Fetch info on a secure session
|
|
4901
5046
|
*
|
|
4902
5047
|
* @param {String} conversationId conversation ID
|
|
@@ -4973,7 +5118,7 @@ if(conversationId===undefined||conversationId===null){throw'Missing the required
|
|
|
4973
5118
|
* @param {String} participantId participantId
|
|
4974
5119
|
* @param {String} communicationId communicationId
|
|
4975
5120
|
* @param {Object} opts Optional parameters
|
|
4976
|
-
* @param {Boolean} opts.provisional Indicates
|
|
5121
|
+
* @param {Boolean} opts.provisional Indicates whether or not to fetch provisional wrap-up code. (default to false)
|
|
4977
5122
|
*/},{key:"getConversationsCallParticipantCommunicationWrapup",value:function getConversationsCallParticipantCommunicationWrapup(conversationId,participantId,communicationId,opts){opts=opts||{};// verify the required parameter 'conversationId' is set
|
|
4978
5123
|
if(conversationId===undefined||conversationId===null){throw'Missing the required parameter "conversationId" when calling getConversationsCallParticipantCommunicationWrapup';}// verify the required parameter 'participantId' is set
|
|
4979
5124
|
if(participantId===undefined||participantId===null){throw'Missing the required parameter "participantId" when calling getConversationsCallParticipantCommunicationWrapup';}// verify the required parameter 'communicationId' is set
|
|
@@ -4983,7 +5128,7 @@ if(communicationId===undefined||communicationId===null){throw'Missing the requir
|
|
|
4983
5128
|
* @param {String} conversationId conversationId
|
|
4984
5129
|
* @param {String} participantId participantId
|
|
4985
5130
|
* @param {Object} opts Optional parameters
|
|
4986
|
-
* @param {Boolean} opts.provisional Indicates
|
|
5131
|
+
* @param {Boolean} opts.provisional Indicates whether or not to fetch provisional wrap-up code. (default to false)
|
|
4987
5132
|
*/},{key:"getConversationsCallParticipantWrapup",value:function getConversationsCallParticipantWrapup(conversationId,participantId,opts){opts=opts||{};// verify the required parameter 'conversationId' is set
|
|
4988
5133
|
if(conversationId===undefined||conversationId===null){throw'Missing the required parameter "conversationId" when calling getConversationsCallParticipantWrapup';}// verify the required parameter 'participantId' is set
|
|
4989
5134
|
if(participantId===undefined||participantId===null){throw'Missing the required parameter "participantId" when calling getConversationsCallParticipantWrapup';}return this.apiClient.callApi('/api/v2/conversations/calls/{conversationId}/participants/{participantId}/wrapup','GET',{'conversationId':conversationId,'participantId':participantId},{'provisional':opts['provisional']},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
@@ -5005,7 +5150,7 @@ if(conversationId===undefined||conversationId===null){throw'Missing the required
|
|
|
5005
5150
|
* @param {String} participantId participantId
|
|
5006
5151
|
* @param {String} communicationId communicationId
|
|
5007
5152
|
* @param {Object} opts Optional parameters
|
|
5008
|
-
* @param {Boolean} opts.provisional Indicates
|
|
5153
|
+
* @param {Boolean} opts.provisional Indicates whether or not to fetch provisional wrap-up code. (default to false)
|
|
5009
5154
|
*/},{key:"getConversationsCallbackParticipantCommunicationWrapup",value:function getConversationsCallbackParticipantCommunicationWrapup(conversationId,participantId,communicationId,opts){opts=opts||{};// verify the required parameter 'conversationId' is set
|
|
5010
5155
|
if(conversationId===undefined||conversationId===null){throw'Missing the required parameter "conversationId" when calling getConversationsCallbackParticipantCommunicationWrapup';}// verify the required parameter 'participantId' is set
|
|
5011
5156
|
if(participantId===undefined||participantId===null){throw'Missing the required parameter "participantId" when calling getConversationsCallbackParticipantCommunicationWrapup';}// verify the required parameter 'communicationId' is set
|
|
@@ -5015,7 +5160,7 @@ if(communicationId===undefined||communicationId===null){throw'Missing the requir
|
|
|
5015
5160
|
* @param {String} conversationId conversationId
|
|
5016
5161
|
* @param {String} participantId participantId
|
|
5017
5162
|
* @param {Object} opts Optional parameters
|
|
5018
|
-
* @param {Boolean} opts.provisional Indicates
|
|
5163
|
+
* @param {Boolean} opts.provisional Indicates whether or not to fetch provisional wrap-up code. (default to false)
|
|
5019
5164
|
*/},{key:"getConversationsCallbackParticipantWrapup",value:function getConversationsCallbackParticipantWrapup(conversationId,participantId,opts){opts=opts||{};// verify the required parameter 'conversationId' is set
|
|
5020
5165
|
if(conversationId===undefined||conversationId===null){throw'Missing the required parameter "conversationId" when calling getConversationsCallbackParticipantWrapup';}// verify the required parameter 'participantId' is set
|
|
5021
5166
|
if(participantId===undefined||participantId===null){throw'Missing the required parameter "participantId" when calling getConversationsCallbackParticipantWrapup';}return this.apiClient.callApi('/api/v2/conversations/callbacks/{conversationId}/participants/{participantId}/wrapup','GET',{'conversationId':conversationId,'participantId':participantId},{'provisional':opts['provisional']},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
@@ -5074,7 +5219,7 @@ if(conversationId===undefined||conversationId===null){throw'Missing the required
|
|
|
5074
5219
|
* @param {String} participantId participantId
|
|
5075
5220
|
* @param {String} communicationId communicationId
|
|
5076
5221
|
* @param {Object} opts Optional parameters
|
|
5077
|
-
* @param {Boolean} opts.provisional Indicates
|
|
5222
|
+
* @param {Boolean} opts.provisional Indicates whether or not to fetch provisional wrap-up code. (default to false)
|
|
5078
5223
|
* @deprecated
|
|
5079
5224
|
*/},{key:"getConversationsChatParticipantCommunicationWrapup",value:function getConversationsChatParticipantCommunicationWrapup(conversationId,participantId,communicationId,opts){opts=opts||{};// verify the required parameter 'conversationId' is set
|
|
5080
5225
|
if(conversationId===undefined||conversationId===null){throw'Missing the required parameter "conversationId" when calling getConversationsChatParticipantCommunicationWrapup';}// verify the required parameter 'participantId' is set
|
|
@@ -5085,7 +5230,7 @@ if(communicationId===undefined||communicationId===null){throw'Missing the requir
|
|
|
5085
5230
|
* @param {String} conversationId conversationId
|
|
5086
5231
|
* @param {String} participantId participantId
|
|
5087
5232
|
* @param {Object} opts Optional parameters
|
|
5088
|
-
* @param {Boolean} opts.provisional Indicates
|
|
5233
|
+
* @param {Boolean} opts.provisional Indicates whether or not to fetch provisional wrap-up code. (default to false)
|
|
5089
5234
|
* @deprecated
|
|
5090
5235
|
*/},{key:"getConversationsChatParticipantWrapup",value:function getConversationsChatParticipantWrapup(conversationId,participantId,opts){opts=opts||{};// verify the required parameter 'conversationId' is set
|
|
5091
5236
|
if(conversationId===undefined||conversationId===null){throw'Missing the required parameter "conversationId" when calling getConversationsChatParticipantWrapup';}// verify the required parameter 'participantId' is set
|
|
@@ -5113,7 +5258,7 @@ if(conversationId===undefined||conversationId===null){throw'Missing the required
|
|
|
5113
5258
|
* @param {String} participantId participantId
|
|
5114
5259
|
* @param {String} communicationId communicationId
|
|
5115
5260
|
* @param {Object} opts Optional parameters
|
|
5116
|
-
* @param {Boolean} opts.provisional Indicates
|
|
5261
|
+
* @param {Boolean} opts.provisional Indicates whether or not to fetch provisional wrap-up code. (default to false)
|
|
5117
5262
|
* @deprecated
|
|
5118
5263
|
*/},{key:"getConversationsCobrowsesessionParticipantCommunicationWrapup",value:function getConversationsCobrowsesessionParticipantCommunicationWrapup(conversationId,participantId,communicationId,opts){opts=opts||{};// verify the required parameter 'conversationId' is set
|
|
5119
5264
|
if(conversationId===undefined||conversationId===null){throw'Missing the required parameter "conversationId" when calling getConversationsCobrowsesessionParticipantCommunicationWrapup';}// verify the required parameter 'participantId' is set
|
|
@@ -5124,7 +5269,7 @@ if(communicationId===undefined||communicationId===null){throw'Missing the requir
|
|
|
5124
5269
|
* @param {String} conversationId conversationId
|
|
5125
5270
|
* @param {String} participantId participantId
|
|
5126
5271
|
* @param {Object} opts Optional parameters
|
|
5127
|
-
* @param {Boolean} opts.provisional Indicates
|
|
5272
|
+
* @param {Boolean} opts.provisional Indicates whether or not to fetch provisional wrap-up code. (default to false)
|
|
5128
5273
|
* @deprecated
|
|
5129
5274
|
*/},{key:"getConversationsCobrowsesessionParticipantWrapup",value:function getConversationsCobrowsesessionParticipantWrapup(conversationId,participantId,opts){opts=opts||{};// verify the required parameter 'conversationId' is set
|
|
5130
5275
|
if(conversationId===undefined||conversationId===null){throw'Missing the required parameter "conversationId" when calling getConversationsCobrowsesessionParticipantWrapup';}// verify the required parameter 'participantId' is set
|
|
@@ -5168,7 +5313,7 @@ if(conversationId===undefined||conversationId===null){throw'Missing the required
|
|
|
5168
5313
|
* @param {String} participantId participantId
|
|
5169
5314
|
* @param {String} communicationId communicationId
|
|
5170
5315
|
* @param {Object} opts Optional parameters
|
|
5171
|
-
* @param {Boolean} opts.provisional Indicates
|
|
5316
|
+
* @param {Boolean} opts.provisional Indicates whether or not to fetch provisional wrap-up code. (default to false)
|
|
5172
5317
|
*/},{key:"getConversationsEmailParticipantCommunicationWrapup",value:function getConversationsEmailParticipantCommunicationWrapup(conversationId,participantId,communicationId,opts){opts=opts||{};// verify the required parameter 'conversationId' is set
|
|
5173
5318
|
if(conversationId===undefined||conversationId===null){throw'Missing the required parameter "conversationId" when calling getConversationsEmailParticipantCommunicationWrapup';}// verify the required parameter 'participantId' is set
|
|
5174
5319
|
if(participantId===undefined||participantId===null){throw'Missing the required parameter "participantId" when calling getConversationsEmailParticipantCommunicationWrapup';}// verify the required parameter 'communicationId' is set
|
|
@@ -5178,7 +5323,7 @@ if(communicationId===undefined||communicationId===null){throw'Missing the requir
|
|
|
5178
5323
|
* @param {String} conversationId conversationId
|
|
5179
5324
|
* @param {String} participantId participantId
|
|
5180
5325
|
* @param {Object} opts Optional parameters
|
|
5181
|
-
* @param {Boolean} opts.provisional Indicates
|
|
5326
|
+
* @param {Boolean} opts.provisional Indicates whether or not to fetch provisional wrap-up code. (default to false)
|
|
5182
5327
|
*/},{key:"getConversationsEmailParticipantWrapup",value:function getConversationsEmailParticipantWrapup(conversationId,participantId,opts){opts=opts||{};// verify the required parameter 'conversationId' is set
|
|
5183
5328
|
if(conversationId===undefined||conversationId===null){throw'Missing the required parameter "conversationId" when calling getConversationsEmailParticipantWrapup';}// verify the required parameter 'participantId' is set
|
|
5184
5329
|
if(participantId===undefined||participantId===null){throw'Missing the required parameter "participantId" when calling getConversationsEmailParticipantWrapup';}return this.apiClient.callApi('/api/v2/conversations/emails/{conversationId}/participants/{participantId}/wrapup','GET',{'conversationId':conversationId,'participantId':participantId},{'provisional':opts['provisional']},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
@@ -5197,6 +5342,16 @@ if(conversationId===undefined||conversationId===null){throw'Missing the required
|
|
|
5197
5342
|
* Get active email conversations for the logged in user
|
|
5198
5343
|
*
|
|
5199
5344
|
*/},{key:"getConversationsEmails",value:function getConversationsEmails(){return this.apiClient.callApi('/api/v2/conversations/emails','GET',{},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
5345
|
+
* Get internal message conversation
|
|
5346
|
+
*
|
|
5347
|
+
* @param {String} conversationId conversationId
|
|
5348
|
+
* getConversationsInternalmessage is a preview method and is subject to both breaking and non-breaking changes at any time without notice
|
|
5349
|
+
*/},{key:"getConversationsInternalmessage",value:function getConversationsInternalmessage(conversationId){// verify the required parameter 'conversationId' is set
|
|
5350
|
+
if(conversationId===undefined||conversationId===null){throw'Missing the required parameter "conversationId" when calling getConversationsInternalmessage';}return this.apiClient.callApi('/api/v2/conversations/internalmessages/{conversationId}','GET',{'conversationId':conversationId},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
5351
|
+
* Get active internal message conversations for the logged in user
|
|
5352
|
+
*
|
|
5353
|
+
* getConversationsInternalmessages is a preview method and is subject to both breaking and non-breaking changes at any time without notice
|
|
5354
|
+
*/},{key:"getConversationsInternalmessages",value:function getConversationsInternalmessages(){return this.apiClient.callApi('/api/v2/conversations/internalmessages','GET',{},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
5200
5355
|
* Get the encryption key configurations
|
|
5201
5356
|
*
|
|
5202
5357
|
* @param {String} keyconfigurationsId Key Configurations Id
|
|
@@ -5241,7 +5396,7 @@ if(messageId===undefined||messageId===null){throw'Missing the required parameter
|
|
|
5241
5396
|
* @param {String} participantId participantId
|
|
5242
5397
|
* @param {String} communicationId communicationId
|
|
5243
5398
|
* @param {Object} opts Optional parameters
|
|
5244
|
-
* @param {Boolean} opts.provisional Indicates
|
|
5399
|
+
* @param {Boolean} opts.provisional Indicates whether or not to fetch provisional wrap-up code. (default to false)
|
|
5245
5400
|
*/},{key:"getConversationsMessageParticipantCommunicationWrapup",value:function getConversationsMessageParticipantCommunicationWrapup(conversationId,participantId,communicationId,opts){opts=opts||{};// verify the required parameter 'conversationId' is set
|
|
5246
5401
|
if(conversationId===undefined||conversationId===null){throw'Missing the required parameter "conversationId" when calling getConversationsMessageParticipantCommunicationWrapup';}// verify the required parameter 'participantId' is set
|
|
5247
5402
|
if(participantId===undefined||participantId===null){throw'Missing the required parameter "participantId" when calling getConversationsMessageParticipantCommunicationWrapup';}// verify the required parameter 'communicationId' is set
|
|
@@ -5251,7 +5406,7 @@ if(communicationId===undefined||communicationId===null){throw'Missing the requir
|
|
|
5251
5406
|
* @param {String} conversationId conversationId
|
|
5252
5407
|
* @param {String} participantId participantId
|
|
5253
5408
|
* @param {Object} opts Optional parameters
|
|
5254
|
-
* @param {Boolean} opts.provisional Indicates
|
|
5409
|
+
* @param {Boolean} opts.provisional Indicates whether or not to fetch provisional wrap-up code. (default to false)
|
|
5255
5410
|
*/},{key:"getConversationsMessageParticipantWrapup",value:function getConversationsMessageParticipantWrapup(conversationId,participantId,opts){opts=opts||{};// verify the required parameter 'conversationId' is set
|
|
5256
5411
|
if(conversationId===undefined||conversationId===null){throw'Missing the required parameter "conversationId" when calling getConversationsMessageParticipantWrapup';}// verify the required parameter 'participantId' is set
|
|
5257
5412
|
if(participantId===undefined||participantId===null){throw'Missing the required parameter "participantId" when calling getConversationsMessageParticipantWrapup';}return this.apiClient.callApi('/api/v2/conversations/messages/{conversationId}/participants/{participantId}/wrapup','GET',{'conversationId':conversationId,'participantId':participantId},{'provisional':opts['provisional']},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
@@ -5304,6 +5459,11 @@ if(integrationId===undefined||integrationId===null){throw'Missing the required p
|
|
|
5304
5459
|
* @param {String} integrationId Integration ID
|
|
5305
5460
|
*/},{key:"getConversationsMessagingIdentityresolutionIntegrationsOpenIntegrationId",value:function getConversationsMessagingIdentityresolutionIntegrationsOpenIntegrationId(integrationId){// verify the required parameter 'integrationId' is set
|
|
5306
5461
|
if(integrationId===undefined||integrationId===null){throw'Missing the required parameter "integrationId" when calling getConversationsMessagingIdentityresolutionIntegrationsOpenIntegrationId';}return this.apiClient.callApi('/api/v2/conversations/messaging/identityresolution/integrations/open/{integrationId}','GET',{'integrationId':integrationId},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
5462
|
+
* Get X (Formally Twitter) messaging integration identity resolution settings
|
|
5463
|
+
*
|
|
5464
|
+
* @param {String} integrationId Integration Id
|
|
5465
|
+
*/},{key:"getConversationsMessagingIdentityresolutionIntegrationsTwitterIntegrationId",value:function getConversationsMessagingIdentityresolutionIntegrationsTwitterIntegrationId(integrationId){// verify the required parameter 'integrationId' is set
|
|
5466
|
+
if(integrationId===undefined||integrationId===null){throw'Missing the required parameter "integrationId" when calling getConversationsMessagingIdentityresolutionIntegrationsTwitterIntegrationId';}return this.apiClient.callApi('/api/v2/conversations/messaging/identityresolution/integrations/twitter/{integrationId}','GET',{'integrationId':integrationId},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
5307
5467
|
* Get a whatsApp integration Identity Resolution settings
|
|
5308
5468
|
*
|
|
5309
5469
|
* @param {String} integrationId Integration ID
|
|
@@ -5443,7 +5603,7 @@ if(supportedContentId===undefined||supportedContentId===null){throw'Missing the
|
|
|
5443
5603
|
* @param {String} participantId participantId
|
|
5444
5604
|
* @param {String} communicationId communicationId
|
|
5445
5605
|
* @param {Object} opts Optional parameters
|
|
5446
|
-
* @param {Boolean} opts.provisional Indicates
|
|
5606
|
+
* @param {Boolean} opts.provisional Indicates whether or not to fetch provisional wrap-up code. (default to false)
|
|
5447
5607
|
* @deprecated
|
|
5448
5608
|
*/},{key:"getConversationsScreenshareParticipantCommunicationWrapup",value:function getConversationsScreenshareParticipantCommunicationWrapup(conversationId,participantId,communicationId,opts){opts=opts||{};// verify the required parameter 'conversationId' is set
|
|
5449
5609
|
if(conversationId===undefined||conversationId===null){throw'Missing the required parameter "conversationId" when calling getConversationsScreenshareParticipantCommunicationWrapup';}// verify the required parameter 'participantId' is set
|
|
@@ -5458,7 +5618,7 @@ if(communicationId===undefined||communicationId===null){throw'Missing the requir
|
|
|
5458
5618
|
* @param {String} participantId participantId
|
|
5459
5619
|
* @param {String} communicationId communicationId
|
|
5460
5620
|
* @param {Object} opts Optional parameters
|
|
5461
|
-
* @param {Boolean} opts.provisional Indicates
|
|
5621
|
+
* @param {Boolean} opts.provisional Indicates whether or not to fetch provisional wrap-up code. (default to false)
|
|
5462
5622
|
*/},{key:"getConversationsSocialParticipantCommunicationWrapup",value:function getConversationsSocialParticipantCommunicationWrapup(conversationId,participantId,communicationId,opts){opts=opts||{};// verify the required parameter 'conversationId' is set
|
|
5463
5623
|
if(conversationId===undefined||conversationId===null){throw'Missing the required parameter "conversationId" when calling getConversationsSocialParticipantCommunicationWrapup';}// verify the required parameter 'participantId' is set
|
|
5464
5624
|
if(participantId===undefined||participantId===null){throw'Missing the required parameter "participantId" when calling getConversationsSocialParticipantCommunicationWrapup';}// verify the required parameter 'communicationId' is set
|
|
@@ -5475,7 +5635,7 @@ if(conferenceId===undefined||conferenceId===null){throw'Missing the required par
|
|
|
5475
5635
|
* @param {String} participantId participantId
|
|
5476
5636
|
* @param {String} communicationId communicationId
|
|
5477
5637
|
* @param {Object} opts Optional parameters
|
|
5478
|
-
* @param {Boolean} opts.provisional Indicates
|
|
5638
|
+
* @param {Boolean} opts.provisional Indicates whether or not to fetch provisional wrap-up code. (default to false)
|
|
5479
5639
|
*/},{key:"getConversationsVideoParticipantCommunicationWrapup",value:function getConversationsVideoParticipantCommunicationWrapup(conversationId,participantId,communicationId,opts){opts=opts||{};// verify the required parameter 'conversationId' is set
|
|
5480
5640
|
if(conversationId===undefined||conversationId===null){throw'Missing the required parameter "conversationId" when calling getConversationsVideoParticipantCommunicationWrapup';}// verify the required parameter 'participantId' is set
|
|
5481
5641
|
if(participantId===undefined||participantId===null){throw'Missing the required parameter "participantId" when calling getConversationsVideoParticipantCommunicationWrapup';}// verify the required parameter 'communicationId' is set
|
|
@@ -5917,6 +6077,16 @@ if(conversationId===undefined||conversationId===null){throw'Missing the required
|
|
|
5917
6077
|
* @param {String} conversationId Conversation ID
|
|
5918
6078
|
*/},{key:"postConversationCobrowse",value:function postConversationCobrowse(conversationId){// verify the required parameter 'conversationId' is set
|
|
5919
6079
|
if(conversationId===undefined||conversationId===null){throw'Missing the required parameter "conversationId" when calling postConversationCobrowse';}return this.apiClient.callApi('/api/v2/conversations/{conversationId}/cobrowse','POST',{'conversationId':conversationId},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
6080
|
+
* Send internal message
|
|
6081
|
+
* Send a new internal message for an existing communication.
|
|
6082
|
+
* @param {String} conversationId conversationId
|
|
6083
|
+
* @param {String} communicationId communicationId
|
|
6084
|
+
* @param {Object} body Message
|
|
6085
|
+
* postConversationCommunicationInternalmessages is a preview method and is subject to both breaking and non-breaking changes at any time without notice
|
|
6086
|
+
*/},{key:"postConversationCommunicationInternalmessages",value:function postConversationCommunicationInternalmessages(conversationId,communicationId,body){// verify the required parameter 'conversationId' is set
|
|
6087
|
+
if(conversationId===undefined||conversationId===null){throw'Missing the required parameter "conversationId" when calling postConversationCommunicationInternalmessages';}// verify the required parameter 'communicationId' is set
|
|
6088
|
+
if(communicationId===undefined||communicationId===null){throw'Missing the required parameter "communicationId" when calling postConversationCommunicationInternalmessages';}// verify the required parameter 'body' is set
|
|
6089
|
+
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling postConversationCommunicationInternalmessages';}return this.apiClient.callApi('/api/v2/conversations/{conversationId}/communications/{communicationId}/internalmessages','POST',{'conversationId':conversationId,'communicationId':communicationId},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
5920
6090
|
* Performs a full conversation teardown. Issues disconnect requests for any connected media. Applies a system wrap-up code to any participants that are pending wrap-up. This is not intended to be the normal way of ending interactions but is available in the event of problems with the application to allow a resynchronization of state across all components. It is recommended that users submit a support case if they are relying on this endpoint systematically as there is likely something that needs investigation.
|
|
5921
6091
|
*
|
|
5922
6092
|
* @param {String} conversationId conversation ID
|
|
@@ -5940,6 +6110,16 @@ if(participantId===undefined||participantId===null){throw'Missing the required p
|
|
|
5940
6110
|
*/},{key:"postConversationParticipantDigits",value:function postConversationParticipantDigits(conversationId,participantId,opts){opts=opts||{};// verify the required parameter 'conversationId' is set
|
|
5941
6111
|
if(conversationId===undefined||conversationId===null){throw'Missing the required parameter "conversationId" when calling postConversationParticipantDigits';}// verify the required parameter 'participantId' is set
|
|
5942
6112
|
if(participantId===undefined||participantId===null){throw'Missing the required parameter "participantId" when calling postConversationParticipantDigits';}return this.apiClient.callApi('/api/v2/conversations/{conversationId}/participants/{participantId}/digits','POST',{'conversationId':conversationId,'participantId':participantId},{},{},{},opts['body'],['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
6113
|
+
* Setup internal message communication with user
|
|
6114
|
+
* The target user of the digital consultation must have the `conversation:internalMessaging:accept` permission.
|
|
6115
|
+
* @param {String} conversationId conversation ID
|
|
6116
|
+
* @param {String} participantId participant ID
|
|
6117
|
+
* @param {Object} body Confer request
|
|
6118
|
+
* postConversationParticipantInternalmessagesUsersCommunications is a preview method and is subject to both breaking and non-breaking changes at any time without notice
|
|
6119
|
+
*/},{key:"postConversationParticipantInternalmessagesUsersCommunications",value:function postConversationParticipantInternalmessagesUsersCommunications(conversationId,participantId,body){// verify the required parameter 'conversationId' is set
|
|
6120
|
+
if(conversationId===undefined||conversationId===null){throw'Missing the required parameter "conversationId" when calling postConversationParticipantInternalmessagesUsersCommunications';}// verify the required parameter 'participantId' is set
|
|
6121
|
+
if(participantId===undefined||participantId===null){throw'Missing the required parameter "participantId" when calling postConversationParticipantInternalmessagesUsersCommunications';}// verify the required parameter 'body' is set
|
|
6122
|
+
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling postConversationParticipantInternalmessagesUsersCommunications';}return this.apiClient.callApi('/api/v2/conversations/{conversationId}/participants/{participantId}/internalmessages/users/communications','POST',{'conversationId':conversationId,'participantId':participantId},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
5943
6123
|
* Replace this participant with the specified user and/or address
|
|
5944
6124
|
*
|
|
5945
6125
|
* @param {String} conversationId conversation ID
|
|
@@ -6309,6 +6489,15 @@ if(communicationId===undefined||communicationId===null){throw'Missing the requir
|
|
|
6309
6489
|
if(conversationId===undefined||conversationId===null){throw'Missing the required parameter "conversationId" when calling postConversationsMessageCommunicationMessagesMediaUploads';}// verify the required parameter 'communicationId' is set
|
|
6310
6490
|
if(communicationId===undefined||communicationId===null){throw'Missing the required parameter "communicationId" when calling postConversationsMessageCommunicationMessagesMediaUploads';}// verify the required parameter 'body' is set
|
|
6311
6491
|
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']);}/**
|
|
6492
|
+
* Send a social media message
|
|
6493
|
+
* Send a social media message on existing conversation/communication.
|
|
6494
|
+
* @param {String} conversationId conversationId
|
|
6495
|
+
* @param {String} communicationId communicationId
|
|
6496
|
+
* @param {Object} body Message
|
|
6497
|
+
*/},{key:"postConversationsMessageCommunicationSocialmediaMessages",value:function postConversationsMessageCommunicationSocialmediaMessages(conversationId,communicationId,body){// verify the required parameter 'conversationId' is set
|
|
6498
|
+
if(conversationId===undefined||conversationId===null){throw'Missing the required parameter "conversationId" when calling postConversationsMessageCommunicationSocialmediaMessages';}// verify the required parameter 'communicationId' is set
|
|
6499
|
+
if(communicationId===undefined||communicationId===null){throw'Missing the required parameter "communicationId" when calling postConversationsMessageCommunicationSocialmediaMessages';}// verify the required parameter 'body' is set
|
|
6500
|
+
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']);}/**
|
|
6312
6501
|
* Send message typing event
|
|
6313
6502
|
* Send message typing event for existing conversation/communication.
|
|
6314
6503
|
* @param {String} conversationId conversationId
|
|
@@ -6341,6 +6530,13 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
6341
6530
|
*/},{key:"postConversationsMessageInboundOpenReceipt",value:function postConversationsMessageInboundOpenReceipt(integrationId,body){// verify the required parameter 'integrationId' is set
|
|
6342
6531
|
if(integrationId===undefined||integrationId===null){throw'Missing the required parameter "integrationId" when calling postConversationsMessageInboundOpenReceipt';}// verify the required parameter 'body' is set
|
|
6343
6532
|
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling postConversationsMessageInboundOpenReceipt';}return this.apiClient.callApi('/api/v2/conversations/messages/{integrationId}/inbound/open/receipt','POST',{'integrationId':integrationId},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
6533
|
+
* Send inbound Open Response
|
|
6534
|
+
* Send an inbound response for a structured message to an Open Messaging integration. In order to call this endpoint you will need OAuth token generated using OAuth client credentials authorized with at least messaging scope. This will be a part of an existing conversation. See https://developer.genesys.cloud/api/digital/openmessaging/ for example usage.
|
|
6535
|
+
* @param {String} integrationId integrationId
|
|
6536
|
+
* @param {Object} body OpenInboundStructuredResponseMessage
|
|
6537
|
+
*/},{key:"postConversationsMessageInboundOpenStructuredResponse",value:function postConversationsMessageInboundOpenStructuredResponse(integrationId,body){// verify the required parameter 'integrationId' is set
|
|
6538
|
+
if(integrationId===undefined||integrationId===null){throw'Missing the required parameter "integrationId" when calling postConversationsMessageInboundOpenStructuredResponse';}// verify the required parameter 'body' is set
|
|
6539
|
+
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling postConversationsMessageInboundOpenStructuredResponse';}return this.apiClient.callApi('/api/v2/conversations/messages/{integrationId}/inbound/open/structured/response','POST',{'integrationId':integrationId},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
6344
6540
|
* Get messages in batch
|
|
6345
6541
|
* 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"]
|
|
6346
6542
|
* @param {String} conversationId
|
|
@@ -6607,6 +6803,13 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
6607
6803
|
*/},{key:"putConversationsMessagingIdentityresolutionIntegrationsOpenIntegrationId",value:function putConversationsMessagingIdentityresolutionIntegrationsOpenIntegrationId(integrationId,body){// verify the required parameter 'integrationId' is set
|
|
6608
6804
|
if(integrationId===undefined||integrationId===null){throw'Missing the required parameter "integrationId" when calling putConversationsMessagingIdentityresolutionIntegrationsOpenIntegrationId';}// verify the required parameter 'body' is set
|
|
6609
6805
|
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling putConversationsMessagingIdentityresolutionIntegrationsOpenIntegrationId';}return this.apiClient.callApi('/api/v2/conversations/messaging/identityresolution/integrations/open/{integrationId}','PUT',{'integrationId':integrationId},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
6806
|
+
* Create an identity resolution settings for an X (Formally Twitter) messaging integration
|
|
6807
|
+
*
|
|
6808
|
+
* @param {String} integrationId Integration Id
|
|
6809
|
+
* @param {Object} body IdentityResolutionConfig
|
|
6810
|
+
*/},{key:"putConversationsMessagingIdentityresolutionIntegrationsTwitterIntegrationId",value:function putConversationsMessagingIdentityresolutionIntegrationsTwitterIntegrationId(integrationId,body){// verify the required parameter 'integrationId' is set
|
|
6811
|
+
if(integrationId===undefined||integrationId===null){throw'Missing the required parameter "integrationId" when calling putConversationsMessagingIdentityresolutionIntegrationsTwitterIntegrationId';}// verify the required parameter 'body' is set
|
|
6812
|
+
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling putConversationsMessagingIdentityresolutionIntegrationsTwitterIntegrationId';}return this.apiClient.callApi('/api/v2/conversations/messaging/identityresolution/integrations/twitter/{integrationId}','PUT',{'integrationId':integrationId},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
6610
6813
|
* Update a whatsApp integration Identity Resolution settings
|
|
6611
6814
|
*
|
|
6612
6815
|
* @param {String} integrationId Integration ID
|
|
@@ -6653,7 +6856,7 @@ if(conversationId===undefined||conversationId===null){throw'Missing the required
|
|
|
6653
6856
|
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(){/**
|
|
6654
6857
|
* DataExtensions service.
|
|
6655
6858
|
* @module purecloud-platform-client-v2/api/DataExtensionsApi
|
|
6656
|
-
* @version
|
|
6859
|
+
* @version 224.0.0
|
|
6657
6860
|
*//**
|
|
6658
6861
|
* Constructs a new DataExtensionsApi.
|
|
6659
6862
|
* @alias module:purecloud-platform-client-v2/api/DataExtensionsApi
|
|
@@ -6674,7 +6877,7 @@ if(coretypeName===undefined||coretypeName===null){throw'Missing the required par
|
|
|
6674
6877
|
*/},{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(){/**
|
|
6675
6878
|
* DataPrivacy service.
|
|
6676
6879
|
* @module purecloud-platform-client-v2/api/DataPrivacyApi
|
|
6677
|
-
* @version
|
|
6880
|
+
* @version 224.0.0
|
|
6678
6881
|
*//**
|
|
6679
6882
|
* Constructs a new DataPrivacyApi.
|
|
6680
6883
|
* @alias module:purecloud-platform-client-v2/api/DataPrivacyApi
|
|
@@ -6714,7 +6917,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
6714
6917
|
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(){/**
|
|
6715
6918
|
* Downloads service.
|
|
6716
6919
|
* @module purecloud-platform-client-v2/api/DownloadsApi
|
|
6717
|
-
* @version
|
|
6920
|
+
* @version 224.0.0
|
|
6718
6921
|
*//**
|
|
6719
6922
|
* Constructs a new DownloadsApi.
|
|
6720
6923
|
* @alias module:purecloud-platform-client-v2/api/DownloadsApi
|
|
@@ -6733,7 +6936,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
6733
6936
|
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(){/**
|
|
6734
6937
|
* Emails service.
|
|
6735
6938
|
* @module purecloud-platform-client-v2/api/EmailsApi
|
|
6736
|
-
* @version
|
|
6939
|
+
* @version 224.0.0
|
|
6737
6940
|
*//**
|
|
6738
6941
|
* Constructs a new EmailsApi.
|
|
6739
6942
|
* @alias module:purecloud-platform-client-v2/api/EmailsApi
|
|
@@ -6762,7 +6965,7 @@ if(downloadId===undefined||downloadId===null){throw'Missing the required paramet
|
|
|
6762
6965
|
*/},{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(){/**
|
|
6763
6966
|
* EmployeeEngagement service.
|
|
6764
6967
|
* @module purecloud-platform-client-v2/api/EmployeeEngagementApi
|
|
6765
|
-
* @version
|
|
6968
|
+
* @version 224.0.0
|
|
6766
6969
|
*//**
|
|
6767
6970
|
* Constructs a new EmployeeEngagementApi.
|
|
6768
6971
|
* @alias module:purecloud-platform-client-v2/api/EmployeeEngagementApi
|
|
@@ -6800,7 +7003,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
6800
7003
|
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(){/**
|
|
6801
7004
|
* Events service.
|
|
6802
7005
|
* @module purecloud-platform-client-v2/api/EventsApi
|
|
6803
|
-
* @version
|
|
7006
|
+
* @version 224.0.0
|
|
6804
7007
|
*//**
|
|
6805
7008
|
* Constructs a new EventsApi.
|
|
6806
7009
|
* @alias module:purecloud-platform-client-v2/api/EventsApi
|
|
@@ -6825,7 +7028,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
6825
7028
|
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(){/**
|
|
6826
7029
|
* ExternalContacts service.
|
|
6827
7030
|
* @module purecloud-platform-client-v2/api/ExternalContactsApi
|
|
6828
|
-
* @version
|
|
7031
|
+
* @version 224.0.0
|
|
6829
7032
|
*//**
|
|
6830
7033
|
* Constructs a new ExternalContactsApi.
|
|
6831
7034
|
* @alias module:purecloud-platform-client-v2/api/ExternalContactsApi
|
|
@@ -7560,7 +7763,7 @@ if(relationshipId===undefined||relationshipId===null){throw'Missing the required
|
|
|
7560
7763
|
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(){/**
|
|
7561
7764
|
* Fax service.
|
|
7562
7765
|
* @module purecloud-platform-client-v2/api/FaxApi
|
|
7563
|
-
* @version
|
|
7766
|
+
* @version 224.0.0
|
|
7564
7767
|
*//**
|
|
7565
7768
|
* Constructs a new FaxApi.
|
|
7566
7769
|
* @alias module:purecloud-platform-client-v2/api/FaxApi
|
|
@@ -7609,7 +7812,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
7609
7812
|
*/},{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(){/**
|
|
7610
7813
|
* Flows service.
|
|
7611
7814
|
* @module purecloud-platform-client-v2/api/FlowsApi
|
|
7612
|
-
* @version
|
|
7815
|
+
* @version 224.0.0
|
|
7613
7816
|
*//**
|
|
7614
7817
|
* Constructs a new FlowsApi.
|
|
7615
7818
|
* @alias module:purecloud-platform-client-v2/api/FlowsApi
|
|
@@ -7657,7 +7860,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
7657
7860
|
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(){/**
|
|
7658
7861
|
* Gamification service.
|
|
7659
7862
|
* @module purecloud-platform-client-v2/api/GamificationApi
|
|
7660
|
-
* @version
|
|
7863
|
+
* @version 224.0.0
|
|
7661
7864
|
*//**
|
|
7662
7865
|
* Constructs a new GamificationApi.
|
|
7663
7866
|
* @alias module:purecloud-platform-client-v2/api/GamificationApi
|
|
@@ -8310,7 +8513,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
8310
8513
|
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(){/**
|
|
8311
8514
|
* GeneralDataProtectionRegulation service.
|
|
8312
8515
|
* @module purecloud-platform-client-v2/api/GeneralDataProtectionRegulationApi
|
|
8313
|
-
* @version
|
|
8516
|
+
* @version 224.0.0
|
|
8314
8517
|
*//**
|
|
8315
8518
|
* Constructs a new GeneralDataProtectionRegulationApi.
|
|
8316
8519
|
* @alias module:purecloud-platform-client-v2/api/GeneralDataProtectionRegulationApi
|
|
@@ -8345,7 +8548,7 @@ if(searchValue===undefined||searchValue===null){throw'Missing the required param
|
|
|
8345
8548
|
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(){/**
|
|
8346
8549
|
* Geolocation service.
|
|
8347
8550
|
* @module purecloud-platform-client-v2/api/GeolocationApi
|
|
8348
|
-
* @version
|
|
8551
|
+
* @version 224.0.0
|
|
8349
8552
|
*//**
|
|
8350
8553
|
* Constructs a new GeolocationApi.
|
|
8351
8554
|
* @alias module:purecloud-platform-client-v2/api/GeolocationApi
|
|
@@ -8379,7 +8582,7 @@ if(clientId===undefined||clientId===null){throw'Missing the required parameter "
|
|
|
8379
8582
|
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(){/**
|
|
8380
8583
|
* Greetings service.
|
|
8381
8584
|
* @module purecloud-platform-client-v2/api/GreetingsApi
|
|
8382
|
-
* @version
|
|
8585
|
+
* @version 224.0.0
|
|
8383
8586
|
*//**
|
|
8384
8587
|
* Constructs a new GreetingsApi.
|
|
8385
8588
|
* @alias module:purecloud-platform-client-v2/api/GreetingsApi
|
|
@@ -8397,13 +8600,34 @@ if(greetingId===undefined||greetingId===null){throw'Missing the required paramet
|
|
|
8397
8600
|
* @param {String} greetingId Greeting ID
|
|
8398
8601
|
*/},{key:"getGreeting",value:function getGreeting(greetingId){// verify the required parameter 'greetingId' is set
|
|
8399
8602
|
if(greetingId===undefined||greetingId===null){throw'Missing the required parameter "greetingId" when calling getGreeting';}return this.apiClient.callApi('/api/v2/greetings/{greetingId}','GET',{'greetingId':greetingId},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
8400
|
-
*
|
|
8603
|
+
* Download a organization greeting recording
|
|
8401
8604
|
*
|
|
8402
8605
|
* @param {String} greetingId Greeting ID
|
|
8403
8606
|
* @param {Object} opts Optional parameters
|
|
8404
8607
|
* @param {Object} opts.formatId The desired media format. (default to WAV)
|
|
8608
|
+
*/},{key:"getGreetingDownloads",value:function getGreetingDownloads(greetingId,opts){opts=opts||{};// verify the required parameter 'greetingId' is set
|
|
8609
|
+
if(greetingId===undefined||greetingId===null){throw'Missing the required parameter "greetingId" when calling getGreetingDownloads';}return this.apiClient.callApi('/api/v2/greetings/{greetingId}/downloads','GET',{'greetingId':greetingId},{'formatId':opts['formatId']},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
8610
|
+
* Download a group greeting recording
|
|
8611
|
+
*
|
|
8612
|
+
* @param {String} greetingId Greeting ID
|
|
8613
|
+
* @param {Object} opts Optional parameters
|
|
8614
|
+
* @param {Object} opts.formatId The desired media format. (default to WAV)
|
|
8615
|
+
*/},{key:"getGreetingGroupsDownloads",value:function getGreetingGroupsDownloads(greetingId,opts){opts=opts||{};// verify the required parameter 'greetingId' is set
|
|
8616
|
+
if(greetingId===undefined||greetingId===null){throw'Missing the required parameter "greetingId" when calling getGreetingGroupsDownloads';}return this.apiClient.callApi('/api/v2/greetings/{greetingId}/groups/downloads','GET',{'greetingId':greetingId},{'formatId':opts['formatId']},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
8617
|
+
* Get media playback URI for this greeting
|
|
8618
|
+
* API should migrate to use GET api/v2/greetings/{greetingId}/downloads
|
|
8619
|
+
* @param {String} greetingId Greeting ID
|
|
8620
|
+
* @param {Object} opts Optional parameters
|
|
8621
|
+
* @param {Object} opts.formatId The desired media format. (default to WAV)
|
|
8405
8622
|
*/},{key:"getGreetingMedia",value:function getGreetingMedia(greetingId,opts){opts=opts||{};// verify the required parameter 'greetingId' is set
|
|
8406
8623
|
if(greetingId===undefined||greetingId===null){throw'Missing the required parameter "greetingId" when calling getGreetingMedia';}return this.apiClient.callApi('/api/v2/greetings/{greetingId}/media','GET',{'greetingId':greetingId},{'formatId':opts['formatId']},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
8624
|
+
* Download a user greeting recording
|
|
8625
|
+
*
|
|
8626
|
+
* @param {String} greetingId Greeting ID
|
|
8627
|
+
* @param {Object} opts Optional parameters
|
|
8628
|
+
* @param {Object} opts.formatId The desired media format. (default to WAV)
|
|
8629
|
+
*/},{key:"getGreetingUsersDownloads",value:function getGreetingUsersDownloads(greetingId,opts){opts=opts||{};// verify the required parameter 'greetingId' is set
|
|
8630
|
+
if(greetingId===undefined||greetingId===null){throw'Missing the required parameter "greetingId" when calling getGreetingUsersDownloads';}return this.apiClient.callApi('/api/v2/greetings/{greetingId}/users/downloads','GET',{'greetingId':greetingId},{'formatId':opts['formatId']},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
8407
8631
|
* Gets an Organization's Greetings
|
|
8408
8632
|
*
|
|
8409
8633
|
* @param {Object} opts Optional parameters
|
|
@@ -8486,7 +8710,7 @@ if(userId===undefined||userId===null){throw'Missing the required parameter "user
|
|
|
8486
8710
|
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(){/**
|
|
8487
8711
|
* Groups service.
|
|
8488
8712
|
* @module purecloud-platform-client-v2/api/GroupsApi
|
|
8489
|
-
* @version
|
|
8713
|
+
* @version 224.0.0
|
|
8490
8714
|
*//**
|
|
8491
8715
|
* Constructs a new GroupsApi.
|
|
8492
8716
|
* @alias module:purecloud-platform-client-v2/api/GroupsApi
|
|
@@ -8619,7 +8843,7 @@ if(groupId===undefined||groupId===null){throw'Missing the required parameter "gr
|
|
|
8619
8843
|
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(){/**
|
|
8620
8844
|
* IdentityProvider service.
|
|
8621
8845
|
* @module purecloud-platform-client-v2/api/IdentityProviderApi
|
|
8622
|
-
* @version
|
|
8846
|
+
* @version 224.0.0
|
|
8623
8847
|
*//**
|
|
8624
8848
|
* Constructs a new IdentityProviderApi.
|
|
8625
8849
|
* @alias module:purecloud-platform-client-v2/api/IdentityProviderApi
|
|
@@ -8775,7 +8999,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
8775
8999
|
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(){/**
|
|
8776
9000
|
* InfrastructureAsCode service.
|
|
8777
9001
|
* @module purecloud-platform-client-v2/api/InfrastructureAsCodeApi
|
|
8778
|
-
* @version
|
|
9002
|
+
* @version 224.0.0
|
|
8779
9003
|
*//**
|
|
8780
9004
|
* Constructs a new InfrastructureAsCodeApi.
|
|
8781
9005
|
* @alias module:purecloud-platform-client-v2/api/InfrastructureAsCodeApi
|
|
@@ -8829,7 +9053,7 @@ if(jobId===undefined||jobId===null){throw'Missing the required parameter "jobId"
|
|
|
8829
9053
|
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(){/**
|
|
8830
9054
|
* Integrations service.
|
|
8831
9055
|
* @module purecloud-platform-client-v2/api/IntegrationsApi
|
|
8832
|
-
* @version
|
|
9056
|
+
* @version 224.0.0
|
|
8833
9057
|
*//**
|
|
8834
9058
|
* Constructs a new IntegrationsApi.
|
|
8835
9059
|
* @alias module:purecloud-platform-client-v2/api/IntegrationsApi
|
|
@@ -9002,6 +9226,34 @@ if(fileName===undefined||fileName===null){throw'Missing the required parameter "
|
|
|
9002
9226
|
* Get action function settings for Action
|
|
9003
9227
|
*
|
|
9004
9228
|
*/},{key:"getIntegrationsActionsFunctionsRuntimes",value:function getIntegrationsActionsFunctionsRuntimes(){return this.apiClient.callApi('/api/v2/integrations/actions/functions/runtimes','GET',{},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
9229
|
+
* Get a specific Bot details
|
|
9230
|
+
*
|
|
9231
|
+
* @param {String} integrationId The integration ID for this group of bots
|
|
9232
|
+
* @param {String} botId The bot ID for this bot
|
|
9233
|
+
* @param {Object} opts Optional parameters
|
|
9234
|
+
* @param {String} opts.version Specific Version
|
|
9235
|
+
* getIntegrationsBotconnectorBot is a preview method and is subject to both breaking and non-breaking changes at any time without notice
|
|
9236
|
+
*/},{key:"getIntegrationsBotconnectorBot",value:function getIntegrationsBotconnectorBot(integrationId,botId,opts){opts=opts||{};// verify the required parameter 'integrationId' is set
|
|
9237
|
+
if(integrationId===undefined||integrationId===null){throw'Missing the required parameter "integrationId" when calling getIntegrationsBotconnectorBot';}// verify the required parameter 'botId' is set
|
|
9238
|
+
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']);}/**
|
|
9239
|
+
* Get the list of bots for this integration.
|
|
9240
|
+
*
|
|
9241
|
+
* @param {String} integrationId The integration ID for this group of bots.
|
|
9242
|
+
* @param {Object} opts Optional parameters
|
|
9243
|
+
* @param {Number} opts.pageNumber Page number (default to 1)
|
|
9244
|
+
* @param {Number} opts.pageSize Page size (default to 25)
|
|
9245
|
+
* getIntegrationsBotconnectorBots is a preview method and is subject to both breaking and non-breaking changes at any time without notice
|
|
9246
|
+
*/},{key:"getIntegrationsBotconnectorBots",value:function getIntegrationsBotconnectorBots(integrationId,opts){opts=opts||{};// verify the required parameter 'integrationId' is set
|
|
9247
|
+
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']);}/**
|
|
9248
|
+
* Get the summary list of bots for this integration.
|
|
9249
|
+
*
|
|
9250
|
+
* @param {String} integrationId The integration ID for this group of bots.
|
|
9251
|
+
* @param {Object} opts Optional parameters
|
|
9252
|
+
* @param {Number} opts.pageNumber Page number (default to 1)
|
|
9253
|
+
* @param {Number} opts.pageSize Page size (default to 25)
|
|
9254
|
+
* getIntegrationsBotconnectorBotsSummaries is a preview method and is subject to both breaking and non-breaking changes at any time without notice
|
|
9255
|
+
*/},{key:"getIntegrationsBotconnectorBotsSummaries",value:function getIntegrationsBotconnectorBotsSummaries(integrationId,opts){opts=opts||{};// verify the required parameter 'integrationId' is set
|
|
9256
|
+
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']);}/**
|
|
9005
9257
|
* Get a specific botConnector bot, plus versions, for this integration
|
|
9006
9258
|
*
|
|
9007
9259
|
* @param {String} integrationId The integration ID for this group of bots
|
|
@@ -9066,6 +9318,13 @@ if(credentialId===undefined||credentialId===null){throw'Missing the required par
|
|
|
9066
9318
|
* @param {Number} opts.pageNumber Page number (default to 1)
|
|
9067
9319
|
* @param {Number} opts.pageSize Page size (default to 25)
|
|
9068
9320
|
*/},{key:"getIntegrationsCredentials",value:function getIntegrationsCredentials(opts){opts=opts||{};return this.apiClient.callApi('/api/v2/integrations/credentials','GET',{},{'pageNumber':opts['pageNumber'],'pageSize':opts['pageSize']},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
9321
|
+
* List multiple sets of credentials using cursor-based paging
|
|
9322
|
+
*
|
|
9323
|
+
* @param {Object} opts Optional parameters
|
|
9324
|
+
* @param {String} opts.before The cursor that points to the start of the set of entities that has been returned.
|
|
9325
|
+
* @param {String} opts.after The cursor that points to the end of the set of entities that has been returned.
|
|
9326
|
+
* @param {String} opts.pageSize Number of entities to return. Maximum of 200.
|
|
9327
|
+
*/},{key:"getIntegrationsCredentialsListing",value:function getIntegrationsCredentialsListing(opts){opts=opts||{};return this.apiClient.callApi('/api/v2/integrations/credentials/listing','GET',{},{'before':opts['before'],'after':opts['after'],'pageSize':opts['pageSize']},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
9069
9328
|
* List all credential types
|
|
9070
9329
|
*
|
|
9071
9330
|
*/},{key:"getIntegrationsCredentialsTypes",value:function getIntegrationsCredentialsTypes(){return this.apiClient.callApi('/api/v2/integrations/credentials/types','GET',{},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
@@ -9381,6 +9640,18 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
9381
9640
|
* @param {Object} body Input used to create Action Draft.
|
|
9382
9641
|
*/},{key:"postIntegrationsActionsDrafts",value:function postIntegrationsActionsDrafts(body){// verify the required parameter 'body' is set
|
|
9383
9642
|
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']);}/**
|
|
9643
|
+
* Send an incoming message to the bot.
|
|
9644
|
+
*
|
|
9645
|
+
* @param {Object} body Incoming Message Request
|
|
9646
|
+
* postIntegrationsBotconnectorsIncomingMessages is a preview method and is subject to both breaking and non-breaking changes at any time without notice
|
|
9647
|
+
*/},{key:"postIntegrationsBotconnectorsIncomingMessages",value:function postIntegrationsBotconnectorsIncomingMessages(body){// verify the required parameter 'body' is set
|
|
9648
|
+
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']);}/**
|
|
9649
|
+
* Send an outgoing message to the end user.
|
|
9650
|
+
*
|
|
9651
|
+
* @param {Object} body Outgoing Message Request
|
|
9652
|
+
* postIntegrationsBotconnectorsOutgoingMessages is a preview method and is subject to both breaking and non-breaking changes at any time without notice
|
|
9653
|
+
*/},{key:"postIntegrationsBotconnectorsOutgoingMessages",value:function postIntegrationsBotconnectorsOutgoingMessages(body){// verify the required parameter 'body' is set
|
|
9654
|
+
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']);}/**
|
|
9384
9655
|
* Create a set of credentials
|
|
9385
9656
|
*
|
|
9386
9657
|
* @param {Object} opts Optional parameters
|
|
@@ -9468,7 +9739,7 @@ if(ucIntegrationId===undefined||ucIntegrationId===null){throw'Missing the requir
|
|
|
9468
9739
|
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(){/**
|
|
9469
9740
|
* Journey service.
|
|
9470
9741
|
* @module purecloud-platform-client-v2/api/JourneyApi
|
|
9471
|
-
* @version
|
|
9742
|
+
* @version 224.0.0
|
|
9472
9743
|
*//**
|
|
9473
9744
|
* Constructs a new JourneyApi.
|
|
9474
9745
|
* @alias module:purecloud-platform-client-v2/api/JourneyApi
|
|
@@ -9948,7 +10219,7 @@ if(versionId===undefined||versionId===null){throw'Missing the required parameter
|
|
|
9948
10219
|
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(){/**
|
|
9949
10220
|
* Knowledge service.
|
|
9950
10221
|
* @module purecloud-platform-client-v2/api/KnowledgeApi
|
|
9951
|
-
* @version
|
|
10222
|
+
* @version 224.0.0
|
|
9952
10223
|
*//**
|
|
9953
10224
|
* Constructs a new KnowledgeApi.
|
|
9954
10225
|
* @alias module:purecloud-platform-client-v2/api/KnowledgeApi
|
|
@@ -11011,7 +11282,7 @@ if(sourceId===undefined||sourceId===null){throw'Missing the required parameter "
|
|
|
11011
11282
|
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(){/**
|
|
11012
11283
|
* LanguageUnderstanding service.
|
|
11013
11284
|
* @module purecloud-platform-client-v2/api/LanguageUnderstandingApi
|
|
11014
|
-
* @version
|
|
11285
|
+
* @version 224.0.0
|
|
11015
11286
|
*//**
|
|
11016
11287
|
* Constructs a new LanguageUnderstandingApi.
|
|
11017
11288
|
* @alias module:purecloud-platform-client-v2/api/LanguageUnderstandingApi
|
|
@@ -11270,7 +11541,7 @@ if(domainVersionId===undefined||domainVersionId===null){throw'Missing the requir
|
|
|
11270
11541
|
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(){/**
|
|
11271
11542
|
* Languages service.
|
|
11272
11543
|
* @module purecloud-platform-client-v2/api/LanguagesApi
|
|
11273
|
-
* @version
|
|
11544
|
+
* @version 224.0.0
|
|
11274
11545
|
*//**
|
|
11275
11546
|
* Constructs a new LanguagesApi.
|
|
11276
11547
|
* @alias module:purecloud-platform-client-v2/api/LanguagesApi
|
|
@@ -11325,7 +11596,7 @@ if(userId===undefined||userId===null){throw'Missing the required parameter "user
|
|
|
11325
11596
|
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(){/**
|
|
11326
11597
|
* Learning service.
|
|
11327
11598
|
* @module purecloud-platform-client-v2/api/LearningApi
|
|
11328
|
-
* @version
|
|
11599
|
+
* @version 224.0.0
|
|
11329
11600
|
*//**
|
|
11330
11601
|
* Constructs a new LearningApi.
|
|
11331
11602
|
* @alias module:purecloud-platform-client-v2/api/LearningApi
|
|
@@ -11596,7 +11867,7 @@ if(moduleId===undefined||moduleId===null){throw'Missing the required parameter "
|
|
|
11596
11867
|
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(){/**
|
|
11597
11868
|
* License service.
|
|
11598
11869
|
* @module purecloud-platform-client-v2/api/LicenseApi
|
|
11599
|
-
* @version
|
|
11870
|
+
* @version 224.0.0
|
|
11600
11871
|
*//**
|
|
11601
11872
|
* Constructs a new LicenseApi.
|
|
11602
11873
|
* @alias module:purecloud-platform-client-v2/api/LicenseApi
|
|
@@ -11650,7 +11921,7 @@ if(featureName===undefined||featureName===null){throw'Missing the required param
|
|
|
11650
11921
|
*/},{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(){/**
|
|
11651
11922
|
* Locations service.
|
|
11652
11923
|
* @module purecloud-platform-client-v2/api/LocationsApi
|
|
11653
|
-
* @version
|
|
11924
|
+
* @version 224.0.0
|
|
11654
11925
|
*//**
|
|
11655
11926
|
* Constructs a new LocationsApi.
|
|
11656
11927
|
* @alias module:purecloud-platform-client-v2/api/LocationsApi
|
|
@@ -11709,7 +11980,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
11709
11980
|
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(){/**
|
|
11710
11981
|
* LogCapture service.
|
|
11711
11982
|
* @module purecloud-platform-client-v2/api/LogCaptureApi
|
|
11712
|
-
* @version
|
|
11983
|
+
* @version 224.0.0
|
|
11713
11984
|
*//**
|
|
11714
11985
|
* Constructs a new LogCaptureApi.
|
|
11715
11986
|
* @alias module:purecloud-platform-client-v2/api/LogCaptureApi
|
|
@@ -11745,11 +12016,10 @@ if(userId===undefined||userId===null){throw'Missing the required parameter "user
|
|
|
11745
12016
|
* Query collected log entries. It returns a limited amount of records, to get all records use download endpoint.
|
|
11746
12017
|
*
|
|
11747
12018
|
* @param {Object} opts Optional parameters
|
|
11748
|
-
* @param {String} opts.before The cursor that points to the start of the set of entities that has been returned.
|
|
11749
12019
|
* @param {String} opts.after The cursor that points to the end of the set of entities that has been returned.
|
|
11750
12020
|
* @param {String} opts.pageSize Number of entities to return. Maximum of 200.
|
|
11751
12021
|
* @param {Object} opts.body
|
|
11752
|
-
*/},{key:"postDiagnosticsLogcaptureBrowserEntriesQuery",value:function postDiagnosticsLogcaptureBrowserEntriesQuery(opts){opts=opts||{};return this.apiClient.callApi('/api/v2/diagnostics/logcapture/browser/entries/query','POST',{},{'
|
|
12022
|
+
*/},{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']);}/**
|
|
11753
12023
|
* Enable log capture for a user or update expiration
|
|
11754
12024
|
*
|
|
11755
12025
|
* @param {String} userId The id of the user to enable browser log capture
|
|
@@ -11759,7 +12029,7 @@ if(userId===undefined||userId===null){throw'Missing the required parameter "user
|
|
|
11759
12029
|
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(){/**
|
|
11760
12030
|
* Messaging service.
|
|
11761
12031
|
* @module purecloud-platform-client-v2/api/MessagingApi
|
|
11762
|
-
* @version
|
|
12032
|
+
* @version 224.0.0
|
|
11763
12033
|
*//**
|
|
11764
12034
|
* Constructs a new MessagingApi.
|
|
11765
12035
|
* @alias module:purecloud-platform-client-v2/api/MessagingApi
|
|
@@ -11849,7 +12119,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
11849
12119
|
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(){/**
|
|
11850
12120
|
* MobileDevices service.
|
|
11851
12121
|
* @module purecloud-platform-client-v2/api/MobileDevicesApi
|
|
11852
|
-
* @version
|
|
12122
|
+
* @version 224.0.0
|
|
11853
12123
|
*//**
|
|
11854
12124
|
* Constructs a new MobileDevicesApi.
|
|
11855
12125
|
* @alias module:purecloud-platform-client-v2/api/MobileDevicesApi
|
|
@@ -11888,7 +12158,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
11888
12158
|
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(){/**
|
|
11889
12159
|
* Notifications service.
|
|
11890
12160
|
* @module purecloud-platform-client-v2/api/NotificationsApi
|
|
11891
|
-
* @version
|
|
12161
|
+
* @version 224.0.0
|
|
11892
12162
|
*//**
|
|
11893
12163
|
* Constructs a new NotificationsApi.
|
|
11894
12164
|
* @alias module:purecloud-platform-client-v2/api/NotificationsApi
|
|
@@ -11945,7 +12215,7 @@ if(channelId===undefined||channelId===null){throw'Missing the required parameter
|
|
|
11945
12215
|
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(){/**
|
|
11946
12216
|
* OAuth service.
|
|
11947
12217
|
* @module purecloud-platform-client-v2/api/OAuthApi
|
|
11948
|
-
* @version
|
|
12218
|
+
* @version 224.0.0
|
|
11949
12219
|
*//**
|
|
11950
12220
|
* Constructs a new OAuthApi.
|
|
11951
12221
|
* @alias module:purecloud-platform-client-v2/api/OAuthApi
|
|
@@ -12030,7 +12300,7 @@ if(clientId===undefined||clientId===null){throw'Missing the required parameter "
|
|
|
12030
12300
|
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(){/**
|
|
12031
12301
|
* Objects service.
|
|
12032
12302
|
* @module purecloud-platform-client-v2/api/ObjectsApi
|
|
12033
|
-
* @version
|
|
12303
|
+
* @version 224.0.0
|
|
12034
12304
|
*//**
|
|
12035
12305
|
* Constructs a new ObjectsApi.
|
|
12036
12306
|
* @alias module:purecloud-platform-client-v2/api/ObjectsApi
|
|
@@ -12116,7 +12386,7 @@ if(divisionId===undefined||divisionId===null){throw'Missing the required paramet
|
|
|
12116
12386
|
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(){/**
|
|
12117
12387
|
* OperationalEvents service.
|
|
12118
12388
|
* @module purecloud-platform-client-v2/api/OperationalEventsApi
|
|
12119
|
-
* @version
|
|
12389
|
+
* @version 224.0.0
|
|
12120
12390
|
*//**
|
|
12121
12391
|
* Constructs a new OperationalEventsApi.
|
|
12122
12392
|
* @alias module:purecloud-platform-client-v2/api/OperationalEventsApi
|
|
@@ -12147,7 +12417,7 @@ if(eventDefinitionId===undefined||eventDefinitionId===null){throw'Missing the re
|
|
|
12147
12417
|
*/},{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(){/**
|
|
12148
12418
|
* Organization service.
|
|
12149
12419
|
* @module purecloud-platform-client-v2/api/OrganizationApi
|
|
12150
|
-
* @version
|
|
12420
|
+
* @version 224.0.0
|
|
12151
12421
|
*//**
|
|
12152
12422
|
* Constructs a new OrganizationApi.
|
|
12153
12423
|
* @alias module:purecloud-platform-client-v2/api/OrganizationApi
|
|
@@ -12252,7 +12522,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
12252
12522
|
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(){/**
|
|
12253
12523
|
* OrganizationAuthorization service.
|
|
12254
12524
|
* @module purecloud-platform-client-v2/api/OrganizationAuthorizationApi
|
|
12255
|
-
* @version
|
|
12525
|
+
* @version 224.0.0
|
|
12256
12526
|
*//**
|
|
12257
12527
|
* Constructs a new OrganizationAuthorizationApi.
|
|
12258
12528
|
* @alias module:purecloud-platform-client-v2/api/OrganizationAuthorizationApi
|
|
@@ -12586,7 +12856,7 @@ if(trustorOrgId===undefined||trustorOrgId===null){throw'Missing the required par
|
|
|
12586
12856
|
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(){/**
|
|
12587
12857
|
* Outbound service.
|
|
12588
12858
|
* @module purecloud-platform-client-v2/api/OutboundApi
|
|
12589
|
-
* @version
|
|
12859
|
+
* @version 224.0.0
|
|
12590
12860
|
*//**
|
|
12591
12861
|
* Constructs a new OutboundApi.
|
|
12592
12862
|
* @alias module:purecloud-platform-client-v2/api/OutboundApi
|
|
@@ -13717,7 +13987,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
13717
13987
|
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(){/**
|
|
13718
13988
|
* Presence service.
|
|
13719
13989
|
* @module purecloud-platform-client-v2/api/PresenceApi
|
|
13720
|
-
* @version
|
|
13990
|
+
* @version 224.0.0
|
|
13721
13991
|
*//**
|
|
13722
13992
|
* Constructs a new PresenceApi.
|
|
13723
13993
|
* @alias module:purecloud-platform-client-v2/api/PresenceApi
|
|
@@ -13890,7 +14160,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
13890
14160
|
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(){/**
|
|
13891
14161
|
* ProcessAutomation service.
|
|
13892
14162
|
* @module purecloud-platform-client-v2/api/ProcessAutomationApi
|
|
13893
|
-
* @version
|
|
14163
|
+
* @version 224.0.0
|
|
13894
14164
|
*//**
|
|
13895
14165
|
* Constructs a new ProcessAutomationApi.
|
|
13896
14166
|
* @alias module:purecloud-platform-client-v2/api/ProcessAutomationApi
|
|
@@ -13953,7 +14223,7 @@ if(triggerId===undefined||triggerId===null){throw'Missing the required parameter
|
|
|
13953
14223
|
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(){/**
|
|
13954
14224
|
* Quality service.
|
|
13955
14225
|
* @module purecloud-platform-client-v2/api/QualityApi
|
|
13956
|
-
* @version
|
|
14226
|
+
* @version 224.0.0
|
|
13957
14227
|
*//**
|
|
13958
14228
|
* Constructs a new QualityApi.
|
|
13959
14229
|
* @alias module:purecloud-platform-client-v2/api/QualityApi
|
|
@@ -14431,7 +14701,7 @@ if(customerSurveyUrl===undefined||customerSurveyUrl===null){throw'Missing the re
|
|
|
14431
14701
|
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(){/**
|
|
14432
14702
|
* Recording service.
|
|
14433
14703
|
* @module purecloud-platform-client-v2/api/RecordingApi
|
|
14434
|
-
* @version
|
|
14704
|
+
* @version 224.0.0
|
|
14435
14705
|
*//**
|
|
14436
14706
|
* Constructs a new RecordingApi.
|
|
14437
14707
|
* @alias module:purecloud-platform-client-v2/api/RecordingApi
|
|
@@ -14830,7 +15100,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
14830
15100
|
*/},{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(){/**
|
|
14831
15101
|
* ResponseManagement service.
|
|
14832
15102
|
* @module purecloud-platform-client-v2/api/ResponseManagementApi
|
|
14833
|
-
* @version
|
|
15103
|
+
* @version 224.0.0
|
|
14834
15104
|
*//**
|
|
14835
15105
|
* Constructs a new ResponseManagementApi.
|
|
14836
15106
|
* @alias module:purecloud-platform-client-v2/api/ResponseManagementApi
|
|
@@ -14951,7 +15221,7 @@ if(responseAssetId===undefined||responseAssetId===null){throw'Missing the requir
|
|
|
14951
15221
|
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(){/**
|
|
14952
15222
|
* Routing service.
|
|
14953
15223
|
* @module purecloud-platform-client-v2/api/RoutingApi
|
|
14954
|
-
* @version
|
|
15224
|
+
* @version 224.0.0
|
|
14955
15225
|
*//**
|
|
14956
15226
|
* Constructs a new RoutingApi.
|
|
14957
15227
|
* @alias module:purecloud-platform-client-v2/api/RoutingApi
|
|
@@ -15680,6 +15950,13 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
15680
15950
|
*/},{key:"patchRoutingSkillgroup",value:function patchRoutingSkillgroup(skillGroupId,body){// verify the required parameter 'skillGroupId' is set
|
|
15681
15951
|
if(skillGroupId===undefined||skillGroupId===null){throw'Missing the required parameter "skillGroupId" when calling patchRoutingSkillgroup';}// verify the required parameter 'body' is set
|
|
15682
15952
|
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling patchRoutingSkillgroup';}return this.apiClient.callApi('/api/v2/routing/skillgroups/{skillGroupId}','PATCH',{'skillGroupId':skillGroupId},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
15953
|
+
* Update a phone number provisioned for SMS.
|
|
15954
|
+
*
|
|
15955
|
+
* @param {String} phoneNumberId phone number
|
|
15956
|
+
* @param {Object} body SmsPhoneNumberPatchRequest
|
|
15957
|
+
*/},{key:"patchRoutingSmsPhonenumber",value:function patchRoutingSmsPhonenumber(phoneNumberId,body){// verify the required parameter 'phoneNumberId' is set
|
|
15958
|
+
if(phoneNumberId===undefined||phoneNumberId===null){throw'Missing the required parameter "phoneNumberId" when calling patchRoutingSmsPhonenumber';}// verify the required parameter 'body' is set
|
|
15959
|
+
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling patchRoutingSmsPhonenumber';}return this.apiClient.callApi('/api/v2/routing/sms/phonenumbers/{phoneNumberId}','PATCH',{'phoneNumberId':phoneNumberId},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
15683
15960
|
* Join or unjoin a queue for a user
|
|
15684
15961
|
*
|
|
15685
15962
|
* @param {String} queueId Queue ID
|
|
@@ -15999,7 +16276,7 @@ if(userId===undefined||userId===null){throw'Missing the required parameter "user
|
|
|
15999
16276
|
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(){/**
|
|
16000
16277
|
* SCIM service.
|
|
16001
16278
|
* @module purecloud-platform-client-v2/api/SCIMApi
|
|
16002
|
-
* @version
|
|
16279
|
+
* @version 224.0.0
|
|
16003
16280
|
*//**
|
|
16004
16281
|
* Constructs a new SCIMApi.
|
|
16005
16282
|
* @alias module:purecloud-platform-client-v2/api/SCIMApi
|
|
@@ -16224,7 +16501,7 @@ if(userId===undefined||userId===null){throw'Missing the required parameter "user
|
|
|
16224
16501
|
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(){/**
|
|
16225
16502
|
* ScreenRecording service.
|
|
16226
16503
|
* @module purecloud-platform-client-v2/api/ScreenRecordingApi
|
|
16227
|
-
* @version
|
|
16504
|
+
* @version 224.0.0
|
|
16228
16505
|
*//**
|
|
16229
16506
|
* Constructs a new ScreenRecordingApi.
|
|
16230
16507
|
* @alias module:purecloud-platform-client-v2/api/ScreenRecordingApi
|
|
@@ -16239,7 +16516,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
16239
16516
|
*/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(){/**
|
|
16240
16517
|
* Scripts service.
|
|
16241
16518
|
* @module purecloud-platform-client-v2/api/ScriptsApi
|
|
16242
|
-
* @version
|
|
16519
|
+
* @version 224.0.0
|
|
16243
16520
|
*//**
|
|
16244
16521
|
* Constructs a new ScriptsApi.
|
|
16245
16522
|
* @alias module:purecloud-platform-client-v2/api/ScriptsApi
|
|
@@ -16385,7 +16662,7 @@ if(scriptId===undefined||scriptId===null){throw'Missing the required parameter "
|
|
|
16385
16662
|
*/},{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(){/**
|
|
16386
16663
|
* Search service.
|
|
16387
16664
|
* @module purecloud-platform-client-v2/api/SearchApi
|
|
16388
|
-
* @version
|
|
16665
|
+
* @version 224.0.0
|
|
16389
16666
|
*//**
|
|
16390
16667
|
* Constructs a new SearchApi.
|
|
16391
16668
|
* @alias module:purecloud-platform-client-v2/api/SearchApi
|
|
@@ -16557,7 +16834,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
16557
16834
|
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(){/**
|
|
16558
16835
|
* Settings service.
|
|
16559
16836
|
* @module purecloud-platform-client-v2/api/SettingsApi
|
|
16560
|
-
* @version
|
|
16837
|
+
* @version 224.0.0
|
|
16561
16838
|
*//**
|
|
16562
16839
|
* Constructs a new SettingsApi.
|
|
16563
16840
|
* @alias module:purecloud-platform-client-v2/api/SettingsApi
|
|
@@ -16629,7 +16906,7 @@ if(agentId===undefined||agentId===null){throw'Missing the required parameter "ag
|
|
|
16629
16906
|
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(){/**
|
|
16630
16907
|
* SocialMedia service.
|
|
16631
16908
|
* @module purecloud-platform-client-v2/api/SocialMediaApi
|
|
16632
|
-
* @version
|
|
16909
|
+
* @version 224.0.0
|
|
16633
16910
|
*//**
|
|
16634
16911
|
* Constructs a new SocialMediaApi.
|
|
16635
16912
|
* @alias module:purecloud-platform-client-v2/api/SocialMediaApi
|
|
@@ -16670,7 +16947,6 @@ if(facebookIngestionRuleId===undefined||facebookIngestionRuleId===null){throw'Mi
|
|
|
16670
16947
|
* @param {String} openId openId
|
|
16671
16948
|
* @param {Object} opts Optional parameters
|
|
16672
16949
|
* @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)
|
|
16673
|
-
* deleteSocialmediaTopicDataingestionrulesOpenOpenId is a preview method and is subject to both breaking and non-breaking changes at any time without notice
|
|
16674
16950
|
*/},{key:"deleteSocialmediaTopicDataingestionrulesOpenOpenId",value:function deleteSocialmediaTopicDataingestionrulesOpenOpenId(topicId,openId,opts){opts=opts||{};// verify the required parameter 'topicId' is set
|
|
16675
16951
|
if(topicId===undefined||topicId===null){throw'Missing the required parameter "topicId" when calling deleteSocialmediaTopicDataingestionrulesOpenOpenId';}// verify the required parameter 'openId' is set
|
|
16676
16952
|
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']);}/**
|
|
@@ -16773,7 +17049,6 @@ if(facebookIngestionRuleId===undefined||facebookIngestionRuleId===null){throw'Mi
|
|
|
16773
17049
|
* @param {String} openId openId
|
|
16774
17050
|
* @param {Object} opts Optional parameters
|
|
16775
17051
|
* @param {Boolean} opts.includeDeleted Determines whether to include soft-deleted items in the result.
|
|
16776
|
-
* getSocialmediaTopicDataingestionrulesOpenOpenId is a preview method and is subject to both breaking and non-breaking changes at any time without notice
|
|
16777
17052
|
*/},{key:"getSocialmediaTopicDataingestionrulesOpenOpenId",value:function getSocialmediaTopicDataingestionrulesOpenOpenId(topicId,openId,opts){opts=opts||{};// verify the required parameter 'topicId' is set
|
|
16778
17053
|
if(topicId===undefined||topicId===null){throw'Missing the required parameter "topicId" when calling getSocialmediaTopicDataingestionrulesOpenOpenId';}// verify the required parameter 'openId' is set
|
|
16779
17054
|
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']);}/**
|
|
@@ -16784,7 +17059,6 @@ if(openId===undefined||openId===null){throw'Missing the required parameter "open
|
|
|
16784
17059
|
* @param {String} dataIngestionRuleVersion version
|
|
16785
17060
|
* @param {Object} opts Optional parameters
|
|
16786
17061
|
* @param {Boolean} opts.includeDeleted Determines whether to include soft-deleted item in the result.
|
|
16787
|
-
* getSocialmediaTopicDataingestionrulesOpenOpenIdVersion is a preview method and is subject to both breaking and non-breaking changes at any time without notice
|
|
16788
17062
|
*/},{key:"getSocialmediaTopicDataingestionrulesOpenOpenIdVersion",value:function getSocialmediaTopicDataingestionrulesOpenOpenIdVersion(topicId,openId,dataIngestionRuleVersion,opts){opts=opts||{};// verify the required parameter 'topicId' is set
|
|
16789
17063
|
if(topicId===undefined||topicId===null){throw'Missing the required parameter "topicId" when calling getSocialmediaTopicDataingestionrulesOpenOpenIdVersion';}// verify the required parameter 'openId' is set
|
|
16790
17064
|
if(openId===undefined||openId===null){throw'Missing the required parameter "openId" when calling getSocialmediaTopicDataingestionrulesOpenOpenIdVersion';}// verify the required parameter 'dataIngestionRuleVersion' is set
|
|
@@ -16797,7 +17071,6 @@ if(dataIngestionRuleVersion===undefined||dataIngestionRuleVersion===null){throw'
|
|
|
16797
17071
|
* @param {Number} opts.pageNumber Page number (default to 1)
|
|
16798
17072
|
* @param {Number} opts.pageSize Page size (default to 25)
|
|
16799
17073
|
* @param {Boolean} opts.includeDeleted Determines whether to include soft-deleted items in the result.
|
|
16800
|
-
* getSocialmediaTopicDataingestionrulesOpenOpenIdVersions is a preview method and is subject to both breaking and non-breaking changes at any time without notice
|
|
16801
17074
|
*/},{key:"getSocialmediaTopicDataingestionrulesOpenOpenIdVersions",value:function getSocialmediaTopicDataingestionrulesOpenOpenIdVersions(topicId,openId,opts){opts=opts||{};// verify the required parameter 'topicId' is set
|
|
16802
17075
|
if(topicId===undefined||topicId===null){throw'Missing the required parameter "topicId" when calling getSocialmediaTopicDataingestionrulesOpenOpenIdVersions';}// verify the required parameter 'openId' is set
|
|
16803
17076
|
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']);}/**
|
|
@@ -16862,7 +17135,6 @@ if(facebookIngestionRuleId===undefined||facebookIngestionRuleId===null){throw'Mi
|
|
|
16862
17135
|
* @param {String} openId openId
|
|
16863
17136
|
* @param {Object} opts Optional parameters
|
|
16864
17137
|
* @param {Object} opts.body
|
|
16865
|
-
* patchSocialmediaTopicDataingestionrulesOpenOpenId is a preview method and is subject to both breaking and non-breaking changes at any time without notice
|
|
16866
17138
|
*/},{key:"patchSocialmediaTopicDataingestionrulesOpenOpenId",value:function patchSocialmediaTopicDataingestionrulesOpenOpenId(topicId,openId,opts){opts=opts||{};// verify the required parameter 'topicId' is set
|
|
16867
17139
|
if(topicId===undefined||topicId===null){throw'Missing the required parameter "topicId" when calling patchSocialmediaTopicDataingestionrulesOpenOpenId';}// verify the required parameter 'openId' is set
|
|
16868
17140
|
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']);}/**
|
|
@@ -16909,9 +17181,26 @@ if(topicId===undefined||topicId===null){throw'Missing the required parameter "to
|
|
|
16909
17181
|
* @param {String} topicId topicId
|
|
16910
17182
|
* @param {Object} opts Optional parameters
|
|
16911
17183
|
* @param {Object} opts.body
|
|
16912
|
-
* postSocialmediaTopicDataingestionrulesOpen is a preview method and is subject to both breaking and non-breaking changes at any time without notice
|
|
16913
17184
|
*/},{key:"postSocialmediaTopicDataingestionrulesOpen",value:function postSocialmediaTopicDataingestionrulesOpen(topicId,opts){opts=opts||{};// verify the required parameter 'topicId' is set
|
|
16914
17185
|
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']);}/**
|
|
17186
|
+
* Ingest a list of Open Social Messages
|
|
17187
|
+
* 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.
|
|
17188
|
+
* @param {String} topicId Topic ID
|
|
17189
|
+
* @param {String} ruleId Data Ingestion Rule ID
|
|
17190
|
+
* @param {Array.<Object>} body NormalizedMessage
|
|
17191
|
+
*/},{key:"postSocialmediaTopicDataingestionrulesOpenRuleIdMessagesBulk",value:function postSocialmediaTopicDataingestionrulesOpenRuleIdMessagesBulk(topicId,ruleId,body){// verify the required parameter 'topicId' is set
|
|
17192
|
+
if(topicId===undefined||topicId===null){throw'Missing the required parameter "topicId" when calling postSocialmediaTopicDataingestionrulesOpenRuleIdMessagesBulk';}// verify the required parameter 'ruleId' is set
|
|
17193
|
+
if(ruleId===undefined||ruleId===null){throw'Missing the required parameter "ruleId" when calling postSocialmediaTopicDataingestionrulesOpenRuleIdMessagesBulk';}// verify the required parameter 'body' is set
|
|
17194
|
+
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']);}/**
|
|
17195
|
+
* Ingest a list of Open Social Reactions
|
|
17196
|
+
* 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.
|
|
17197
|
+
* @param {String} topicId Topic ID
|
|
17198
|
+
* @param {String} ruleId Data Ingestion Rule ID
|
|
17199
|
+
* @param {Object} body NormalizedEvent
|
|
17200
|
+
*/},{key:"postSocialmediaTopicDataingestionrulesOpenRuleIdReactionsBulk",value:function postSocialmediaTopicDataingestionrulesOpenRuleIdReactionsBulk(topicId,ruleId,body){// verify the required parameter 'topicId' is set
|
|
17201
|
+
if(topicId===undefined||topicId===null){throw'Missing the required parameter "topicId" when calling postSocialmediaTopicDataingestionrulesOpenRuleIdReactionsBulk';}// verify the required parameter 'ruleId' is set
|
|
17202
|
+
if(ruleId===undefined||ruleId===null){throw'Missing the required parameter "ruleId" when calling postSocialmediaTopicDataingestionrulesOpenRuleIdReactionsBulk';}// verify the required parameter 'body' is set
|
|
17203
|
+
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']);}/**
|
|
16915
17204
|
* Create an twitter data ingestion rule.
|
|
16916
17205
|
*
|
|
16917
17206
|
* @param {String} topicId topicId
|
|
@@ -16951,7 +17240,6 @@ if(facebookIngestionRuleId===undefined||facebookIngestionRuleId===null){throw'Mi
|
|
|
16951
17240
|
* @param {String} openId openId
|
|
16952
17241
|
* @param {Object} opts Optional parameters
|
|
16953
17242
|
* @param {Object} opts.body
|
|
16954
|
-
* putSocialmediaTopicDataingestionrulesOpenOpenId is a preview method and is subject to both breaking and non-breaking changes at any time without notice
|
|
16955
17243
|
*/},{key:"putSocialmediaTopicDataingestionrulesOpenOpenId",value:function putSocialmediaTopicDataingestionrulesOpenOpenId(topicId,openId,opts){opts=opts||{};// verify the required parameter 'topicId' is set
|
|
16956
17244
|
if(topicId===undefined||topicId===null){throw'Missing the required parameter "topicId" when calling putSocialmediaTopicDataingestionrulesOpenOpenId';}// verify the required parameter 'openId' is set
|
|
16957
17245
|
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']);}/**
|
|
@@ -16966,7 +17254,7 @@ if(topicId===undefined||topicId===null){throw'Missing the required parameter "to
|
|
|
16966
17254
|
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(){/**
|
|
16967
17255
|
* SpeechTextAnalytics service.
|
|
16968
17256
|
* @module purecloud-platform-client-v2/api/SpeechTextAnalyticsApi
|
|
16969
|
-
* @version
|
|
17257
|
+
* @version 224.0.0
|
|
16970
17258
|
*//**
|
|
16971
17259
|
* Constructs a new SpeechTextAnalyticsApi.
|
|
16972
17260
|
* @alias module:purecloud-platform-client-v2/api/SpeechTextAnalyticsApi
|
|
@@ -17168,6 +17456,11 @@ if(topicId===undefined||topicId===null){throw'Missing the required parameter "to
|
|
|
17168
17456
|
* @param {String} jobId The id of the publish topics job
|
|
17169
17457
|
*/},{key:"getSpeechandtextanalyticsTopicsPublishjob",value:function getSpeechandtextanalyticsTopicsPublishjob(jobId){// verify the required parameter 'jobId' is set
|
|
17170
17458
|
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']);}/**
|
|
17459
|
+
* Get a Speech and Text Analytics test topics phrase job by id
|
|
17460
|
+
*
|
|
17461
|
+
* @param {String} jobId the id of the test topic phrase job
|
|
17462
|
+
*/},{key:"getSpeechandtextanalyticsTopicsTestphraseJob",value:function getSpeechandtextanalyticsTopicsTestphraseJob(jobId){// verify the required parameter 'jobId' is set
|
|
17463
|
+
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']);}/**
|
|
17171
17464
|
* Translate a single interaction recording (or an email conversation)
|
|
17172
17465
|
*
|
|
17173
17466
|
* @param {String} languageId Target translation language
|
|
@@ -17226,6 +17519,11 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
17226
17519
|
* @param {Object} body The publish topics job to create
|
|
17227
17520
|
*/},{key:"postSpeechandtextanalyticsTopicsPublishjobs",value:function postSpeechandtextanalyticsTopicsPublishjobs(body){// verify the required parameter 'body' is set
|
|
17228
17521
|
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']);}/**
|
|
17522
|
+
* Create new Speech and Text Analytics publish topics job
|
|
17523
|
+
*
|
|
17524
|
+
* @param {Object} body The publish test topic phrase job to create
|
|
17525
|
+
*/},{key:"postSpeechandtextanalyticsTopicsTestphraseJobs",value:function postSpeechandtextanalyticsTopicsTestphraseJobs(body){// verify the required parameter 'body' is set
|
|
17526
|
+
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']);}/**
|
|
17229
17527
|
* Search resources.
|
|
17230
17528
|
*
|
|
17231
17529
|
* @param {Object} body Search request options
|
|
@@ -17287,7 +17585,7 @@ if(topicId===undefined||topicId===null){throw'Missing the required parameter "to
|
|
|
17287
17585
|
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(){/**
|
|
17288
17586
|
* Stations service.
|
|
17289
17587
|
* @module purecloud-platform-client-v2/api/StationsApi
|
|
17290
|
-
* @version
|
|
17588
|
+
* @version 224.0.0
|
|
17291
17589
|
*//**
|
|
17292
17590
|
* Constructs a new StationsApi.
|
|
17293
17591
|
* @alias module:purecloud-platform-client-v2/api/StationsApi
|
|
@@ -17319,7 +17617,7 @@ if(stationId===undefined||stationId===null){throw'Missing the required parameter
|
|
|
17319
17617
|
*/},{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(){/**
|
|
17320
17618
|
* Suggest service.
|
|
17321
17619
|
* @module purecloud-platform-client-v2/api/SuggestApi
|
|
17322
|
-
* @version
|
|
17620
|
+
* @version 224.0.0
|
|
17323
17621
|
*//**
|
|
17324
17622
|
* Constructs a new SuggestApi.
|
|
17325
17623
|
* @alias module:purecloud-platform-client-v2/api/SuggestApi
|
|
@@ -17359,7 +17657,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
17359
17657
|
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(){/**
|
|
17360
17658
|
* TaskManagement service.
|
|
17361
17659
|
* @module purecloud-platform-client-v2/api/TaskManagementApi
|
|
17362
|
-
* @version
|
|
17660
|
+
* @version 224.0.0
|
|
17363
17661
|
*//**
|
|
17364
17662
|
* Constructs a new TaskManagementApi.
|
|
17365
17663
|
* @alias module:purecloud-platform-client-v2/api/TaskManagementApi
|
|
@@ -17867,7 +18165,7 @@ if(schemaId===undefined||schemaId===null){throw'Missing the required parameter "
|
|
|
17867
18165
|
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(){/**
|
|
17868
18166
|
* Teams service.
|
|
17869
18167
|
* @module purecloud-platform-client-v2/api/TeamsApi
|
|
17870
|
-
* @version
|
|
18168
|
+
* @version 224.0.0
|
|
17871
18169
|
*//**
|
|
17872
18170
|
* Constructs a new TeamsApi.
|
|
17873
18171
|
* @alias module:purecloud-platform-client-v2/api/TeamsApi
|
|
@@ -17911,7 +18209,7 @@ if(teamId===undefined||teamId===null){throw'Missing the required parameter "team
|
|
|
17911
18209
|
* @param {String} opts.name Return only teams whose names start with this value (case-insensitive matching)
|
|
17912
18210
|
* @param {String} opts.after The cursor that points to the next item in the complete list of teams
|
|
17913
18211
|
* @param {String} opts.before The cursor that points to the previous item in the complete list of teams
|
|
17914
|
-
* @param {Object} opts.expand Expand the
|
|
18212
|
+
* @param {Object} opts.expand Expand the division on each team
|
|
17915
18213
|
*/},{key:"getTeams",value:function getTeams(opts){opts=opts||{};return this.apiClient.callApi('/api/v2/teams','GET',{},{'pageSize':opts['pageSize'],'name':opts['name'],'after':opts['after'],'before':opts['before'],'expand':opts['expand']},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
17916
18214
|
* Update team
|
|
17917
18215
|
*
|
|
@@ -17947,7 +18245,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
17947
18245
|
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(){/**
|
|
17948
18246
|
* Telephony service.
|
|
17949
18247
|
* @module purecloud-platform-client-v2/api/TelephonyApi
|
|
17950
|
-
* @version
|
|
18248
|
+
* @version 224.0.0
|
|
17951
18249
|
*//**
|
|
17952
18250
|
* Constructs a new TelephonyApi.
|
|
17953
18251
|
* @alias module:purecloud-platform-client-v2/api/TelephonyApi
|
|
@@ -17994,7 +18292,7 @@ if(downloadId===undefined||downloadId===null){throw'Missing the required paramet
|
|
|
17994
18292
|
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(){/**
|
|
17995
18293
|
* TelephonyProvidersEdge service.
|
|
17996
18294
|
* @module purecloud-platform-client-v2/api/TelephonyProvidersEdgeApi
|
|
17997
|
-
* @version
|
|
18295
|
+
* @version 224.0.0
|
|
17998
18296
|
*//**
|
|
17999
18297
|
* Constructs a new TelephonyProvidersEdgeApi.
|
|
18000
18298
|
* @alias module:purecloud-platform-client-v2/api/TelephonyProvidersEdgeApi
|
|
@@ -18278,7 +18576,7 @@ if(extensionPoolId===undefined||extensionPoolId===null){throw'Missing the requir
|
|
|
18278
18576
|
* @param {Array.<String>} opts.divisionId List of divisionIds on which to filter.
|
|
18279
18577
|
*/},{key:"getTelephonyProvidersEdgesExtensionpools",value:function getTelephonyProvidersEdgesExtensionpools(opts){opts=opts||{};return this.apiClient.callApi('/api/v2/telephony/providers/edges/extensionpools','GET',{},{'pageSize':opts['pageSize'],'pageNumber':opts['pageNumber'],'sortBy':opts['sortBy'],'number':opts['_number'],'divisionId':this.apiClient.buildCollectionParam(opts['divisionId'],'multi')},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
18280
18578
|
* Get a pageable list of basic extension pool objects filterable by query parameters.
|
|
18281
|
-
* This returns extension pools consisting of name and division. If one or more IDs are specified, the search will fetch
|
|
18579
|
+
* This returns extension pools consisting of name and division. If one or more IDs are specified, the search will fetch extension pools that match the given ID(s) and not use any additional supplied query parameters in the search.
|
|
18282
18580
|
* @param {Object} opts Optional parameters
|
|
18283
18581
|
* @param {Number} opts.pageNumber Page number (default to 1)
|
|
18284
18582
|
* @param {Number} opts.pageSize Page size (default to 25)
|
|
@@ -18677,6 +18975,18 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
18677
18975
|
* @param {Object} body ExtensionPool
|
|
18678
18976
|
*/},{key:"postTelephonyProvidersEdgesExtensionpools",value:function postTelephonyProvidersEdgesExtensionpools(body){// verify the required parameter 'body' is set
|
|
18679
18977
|
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling postTelephonyProvidersEdgesExtensionpools';}return this.apiClient.callApi('/api/v2/telephony/providers/edges/extensionpools','POST',{},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
18978
|
+
* Post media endpoint statistics event.
|
|
18979
|
+
*
|
|
18980
|
+
* @param {String} conversationId Identifier of the conversation
|
|
18981
|
+
* @param {String} communicationId Identifier of the media session
|
|
18982
|
+
* @param {String} mediaResourceId Identifier of the media resource of the endpoint
|
|
18983
|
+
* @param {Object} body MediaStatisticsPostRequest
|
|
18984
|
+
* postTelephonyProvidersEdgesMediastatisticsConversationCommunicationMediaresource is a preview method and is subject to both breaking and non-breaking changes at any time without notice
|
|
18985
|
+
*/},{key:"postTelephonyProvidersEdgesMediastatisticsConversationCommunicationMediaresource",value:function postTelephonyProvidersEdgesMediastatisticsConversationCommunicationMediaresource(conversationId,communicationId,mediaResourceId,body){// verify the required parameter 'conversationId' is set
|
|
18986
|
+
if(conversationId===undefined||conversationId===null){throw'Missing the required parameter "conversationId" when calling postTelephonyProvidersEdgesMediastatisticsConversationCommunicationMediaresource';}// verify the required parameter 'communicationId' is set
|
|
18987
|
+
if(communicationId===undefined||communicationId===null){throw'Missing the required parameter "communicationId" when calling postTelephonyProvidersEdgesMediastatisticsConversationCommunicationMediaresource';}// verify the required parameter 'mediaResourceId' is set
|
|
18988
|
+
if(mediaResourceId===undefined||mediaResourceId===null){throw'Missing the required parameter "mediaResourceId" when calling postTelephonyProvidersEdgesMediastatisticsConversationCommunicationMediaresource';}// verify the required parameter 'body' is set
|
|
18989
|
+
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling postTelephonyProvidersEdgesMediastatisticsConversationCommunicationMediaresource';}return this.apiClient.callApi('/api/v2/telephony/providers/edges/mediastatistics/conversations/{conversationId}/communications/{communicationId}/mediaresources/{mediaResourceId}','POST',{'conversationId':conversationId,'communicationId':communicationId,'mediaResourceId':mediaResourceId},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
18680
18990
|
* Reboot a Phone
|
|
18681
18991
|
*
|
|
18682
18992
|
* @param {String} phoneId Phone Id
|
|
@@ -18830,7 +19140,7 @@ if(trunkBaseSettingsId===undefined||trunkBaseSettingsId===null){throw'Missing th
|
|
|
18830
19140
|
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(){/**
|
|
18831
19141
|
* Textbots service.
|
|
18832
19142
|
* @module purecloud-platform-client-v2/api/TextbotsApi
|
|
18833
|
-
* @version
|
|
19143
|
+
* @version 224.0.0
|
|
18834
19144
|
*//**
|
|
18835
19145
|
* Constructs a new TextbotsApi.
|
|
18836
19146
|
* @alias module:purecloud-platform-client-v2/api/TextbotsApi
|
|
@@ -18866,7 +19176,7 @@ if(launchRequest===undefined||launchRequest===null){throw'Missing the required p
|
|
|
18866
19176
|
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(){/**
|
|
18867
19177
|
* Tokens service.
|
|
18868
19178
|
* @module purecloud-platform-client-v2/api/TokensApi
|
|
18869
|
-
* @version
|
|
19179
|
+
* @version 224.0.0
|
|
18870
19180
|
*//**
|
|
18871
19181
|
* Constructs a new TokensApi.
|
|
18872
19182
|
* @alias module:purecloud-platform-client-v2/api/TokensApi
|
|
@@ -18900,7 +19210,7 @@ if(userId===undefined||userId===null){throw'Missing the required parameter "user
|
|
|
18900
19210
|
*/},{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(){/**
|
|
18901
19211
|
* Uploads service.
|
|
18902
19212
|
* @module purecloud-platform-client-v2/api/UploadsApi
|
|
18903
|
-
* @version
|
|
19213
|
+
* @version 224.0.0
|
|
18904
19214
|
*//**
|
|
18905
19215
|
* Constructs a new UploadsApi.
|
|
18906
19216
|
* @alias module:purecloud-platform-client-v2/api/UploadsApi
|
|
@@ -18968,7 +19278,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
18968
19278
|
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(){/**
|
|
18969
19279
|
* Usage service.
|
|
18970
19280
|
* @module purecloud-platform-client-v2/api/UsageApi
|
|
18971
|
-
* @version
|
|
19281
|
+
* @version 224.0.0
|
|
18972
19282
|
*//**
|
|
18973
19283
|
* Constructs a new UsageApi.
|
|
18974
19284
|
* @alias module:purecloud-platform-client-v2/api/UsageApi
|
|
@@ -19022,7 +19332,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
19022
19332
|
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(){/**
|
|
19023
19333
|
* UserRecordings service.
|
|
19024
19334
|
* @module purecloud-platform-client-v2/api/UserRecordingsApi
|
|
19025
|
-
* @version
|
|
19335
|
+
* @version 224.0.0
|
|
19026
19336
|
*//**
|
|
19027
19337
|
* Constructs a new UserRecordingsApi.
|
|
19028
19338
|
* @alias module:purecloud-platform-client-v2/api/UserRecordingsApi
|
|
@@ -19079,7 +19389,7 @@ if(recordingId===undefined||recordingId===null){throw'Missing the required param
|
|
|
19079
19389
|
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(){/**
|
|
19080
19390
|
* Users service.
|
|
19081
19391
|
* @module purecloud-platform-client-v2/api/UsersApi
|
|
19082
|
-
* @version
|
|
19392
|
+
* @version 224.0.0
|
|
19083
19393
|
*//**
|
|
19084
19394
|
* Constructs a new UsersApi.
|
|
19085
19395
|
* @alias module:purecloud-platform-client-v2/api/UsersApi
|
|
@@ -19485,6 +19795,17 @@ if(externalKey===undefined||externalKey===null){throw'Missing the required param
|
|
|
19485
19795
|
* @param {Array.<String>} opts.expand Which fields, if any, to expand.
|
|
19486
19796
|
* @param {Object} opts.integrationPresenceSource Get your presence for a given integration. This parameter will only be used when presence is provided as an expand.
|
|
19487
19797
|
*/},{key:"getUsersMe",value:function getUsersMe(opts){opts=opts||{};return this.apiClient.callApi('/api/v2/users/me','GET',{},{'expand':this.apiClient.buildCollectionParam(opts['expand'],'multi'),'integrationPresenceSource':opts['integrationPresenceSource']},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
19798
|
+
* Get list of available users, paged by cursor token, No division filtering available so directory:user:view permission for all divisions is required
|
|
19799
|
+
*
|
|
19800
|
+
* @param {Object} opts Optional parameters
|
|
19801
|
+
* @param {String} opts.cursor Cursor token to retrieve next page
|
|
19802
|
+
* @param {Number} opts.pageSize Page size (default to 25)
|
|
19803
|
+
* @param {Object} opts.sortOrder Ascending or descending sort order (default to ASC)
|
|
19804
|
+
* @param {Array.<String>} opts.expand Which fields, if any, to expand. Note, expand parameters are resolved with a best effort approach and not guaranteed to be returned. If requested expand information is absolutely required, it's recommended to use specific API requests instead.
|
|
19805
|
+
* @param {Object} opts.integrationPresenceSource Gets an integration presence for users instead of their defaults. This parameter will only be used when presence is provided as an expand. When using this parameter the maximum number of users that can be returned is 100.
|
|
19806
|
+
* @param {Object} opts.state Only list users of this state (default to active)
|
|
19807
|
+
* getUsersQuery is a preview method and is subject to both breaking and non-breaking changes at any time without notice
|
|
19808
|
+
*/},{key:"getUsersQuery",value:function getUsersQuery(opts){opts=opts||{};return this.apiClient.callApi('/api/v2/users/query','GET',{},{'cursor':opts['cursor'],'pageSize':opts['pageSize'],'sortOrder':opts['sortOrder'],'expand':this.apiClient.buildCollectionParam(opts['expand'],'multi'),'integrationPresenceSource':opts['integrationPresenceSource'],'state':opts['state']},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
19488
19809
|
* Search users using the q64 value returned from a previous search
|
|
19489
19810
|
*
|
|
19490
19811
|
* @param {String} q64 q64
|
|
@@ -19806,7 +20127,7 @@ if(verifierId===undefined||verifierId===null){throw'Missing the required paramet
|
|
|
19806
20127
|
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(){/**
|
|
19807
20128
|
* Utilities service.
|
|
19808
20129
|
* @module purecloud-platform-client-v2/api/UtilitiesApi
|
|
19809
|
-
* @version
|
|
20130
|
+
* @version 224.0.0
|
|
19810
20131
|
*//**
|
|
19811
20132
|
* Constructs a new UtilitiesApi.
|
|
19812
20133
|
* @alias module:purecloud-platform-client-v2/api/UtilitiesApi
|
|
@@ -19833,7 +20154,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
19833
20154
|
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(){/**
|
|
19834
20155
|
* Voicemail service.
|
|
19835
20156
|
* @module purecloud-platform-client-v2/api/VoicemailApi
|
|
19836
|
-
* @version
|
|
20157
|
+
* @version 224.0.0
|
|
19837
20158
|
*//**
|
|
19838
20159
|
* Constructs a new VoicemailApi.
|
|
19839
20160
|
* @alias module:purecloud-platform-client-v2/api/VoicemailApi
|
|
@@ -19890,7 +20211,7 @@ if(groupId===undefined||groupId===null){throw'Missing the required parameter "gr
|
|
|
19890
20211
|
*/},{key:"getVoicemailMessage",value:function getVoicemailMessage(messageId,opts){opts=opts||{};// verify the required parameter 'messageId' is set
|
|
19891
20212
|
if(messageId===undefined||messageId===null){throw'Missing the required parameter "messageId" when calling getVoicemailMessage';}return this.apiClient.callApi('/api/v2/voicemail/messages/{messageId}','GET',{'messageId':messageId},{'expand':this.apiClient.buildCollectionParam(opts['expand'],'multi')},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
19892
20213
|
* Get media playback URI for this voicemail message
|
|
19893
|
-
*
|
|
20214
|
+
* API should migrate to use GET api/v2/voicemail/messages/{messageId}/downloads
|
|
19894
20215
|
* @param {String} messageId Message ID
|
|
19895
20216
|
* @param {Object} opts Optional parameters
|
|
19896
20217
|
* @param {Object} opts.formatId The desired media format. (default to WEBM)
|
|
@@ -19995,7 +20316,7 @@ if(userId===undefined||userId===null){throw'Missing the required parameter "user
|
|
|
19995
20316
|
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(){/**
|
|
19996
20317
|
* WebChat service.
|
|
19997
20318
|
* @module purecloud-platform-client-v2/api/WebChatApi
|
|
19998
|
-
* @version
|
|
20319
|
+
* @version 224.0.0
|
|
19999
20320
|
*//**
|
|
20000
20321
|
* Constructs a new WebChatApi.
|
|
20001
20322
|
* @alias module:purecloud-platform-client-v2/api/WebChatApi
|
|
@@ -20139,7 +20460,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
20139
20460
|
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(){/**
|
|
20140
20461
|
* WebDeployments service.
|
|
20141
20462
|
* @module purecloud-platform-client-v2/api/WebDeploymentsApi
|
|
20142
|
-
* @version
|
|
20463
|
+
* @version 224.0.0
|
|
20143
20464
|
*//**
|
|
20144
20465
|
* Constructs a new WebDeploymentsApi.
|
|
20145
20466
|
* @alias module:purecloud-platform-client-v2/api/WebDeploymentsApi
|
|
@@ -20272,7 +20593,7 @@ if(deploymentId===undefined||deploymentId===null){throw'Missing the required par
|
|
|
20272
20593
|
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(){/**
|
|
20273
20594
|
* WebMessaging service.
|
|
20274
20595
|
* @module purecloud-platform-client-v2/api/WebMessagingApi
|
|
20275
|
-
* @version
|
|
20596
|
+
* @version 224.0.0
|
|
20276
20597
|
*//**
|
|
20277
20598
|
* Constructs a new WebMessagingApi.
|
|
20278
20599
|
* @alias module:purecloud-platform-client-v2/api/WebMessagingApi
|
|
@@ -20288,7 +20609,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
20288
20609
|
*/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(){/**
|
|
20289
20610
|
* Widgets service.
|
|
20290
20611
|
* @module purecloud-platform-client-v2/api/WidgetsApi
|
|
20291
|
-
* @version
|
|
20612
|
+
* @version 224.0.0
|
|
20292
20613
|
*//**
|
|
20293
20614
|
* Constructs a new WidgetsApi.
|
|
20294
20615
|
* @alias module:purecloud-platform-client-v2/api/WidgetsApi
|
|
@@ -20328,7 +20649,7 @@ if(deploymentId===undefined||deploymentId===null){throw'Missing the required par
|
|
|
20328
20649
|
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(){/**
|
|
20329
20650
|
* WorkforceManagement service.
|
|
20330
20651
|
* @module purecloud-platform-client-v2/api/WorkforceManagementApi
|
|
20331
|
-
* @version
|
|
20652
|
+
* @version 224.0.0
|
|
20332
20653
|
*//**
|
|
20333
20654
|
* Constructs a new WorkforceManagementApi.
|
|
20334
20655
|
* @alias module:purecloud-platform-client-v2/api/WorkforceManagementApi
|
|
@@ -20703,8 +21024,9 @@ if(staffingGroupId===undefined||staffingGroupId===null){throw'Missing the requir
|
|
|
20703
21024
|
* @param {String} businessUnitId The ID of the business unit
|
|
20704
21025
|
* @param {Object} opts Optional parameters
|
|
20705
21026
|
* @param {String} opts.managementUnitId The ID of the management unit to get management unit specific staffing groups
|
|
21027
|
+
* @param {Boolean} opts.forceDownloadService Force the result of this operation to be sent via download service. For testing/app development purposes
|
|
20706
21028
|
*/},{key:"getWorkforcemanagementBusinessunitStaffinggroups",value:function getWorkforcemanagementBusinessunitStaffinggroups(businessUnitId,opts){opts=opts||{};// verify the required parameter 'businessUnitId' is set
|
|
20707
|
-
if(businessUnitId===undefined||businessUnitId===null){throw'Missing the required parameter "businessUnitId" when calling getWorkforcemanagementBusinessunitStaffinggroups';}return this.apiClient.callApi('/api/v2/workforcemanagement/businessunits/{businessUnitId}/staffinggroups','GET',{'businessUnitId':businessUnitId},{'managementUnitId':opts['managementUnitId']},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
21029
|
+
if(businessUnitId===undefined||businessUnitId===null){throw'Missing the required parameter "businessUnitId" when calling getWorkforcemanagementBusinessunitStaffinggroups';}return this.apiClient.callApi('/api/v2/workforcemanagement/businessunits/{businessUnitId}/staffinggroups','GET',{'businessUnitId':businessUnitId},{'managementUnitId':opts['managementUnitId'],'forceDownloadService':opts['forceDownloadService']},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
20708
21030
|
* Gets a time-off limit object
|
|
20709
21031
|
* Returns properties of time-off limit object, but not daily values
|
|
20710
21032
|
* @param {String} businessUnitId The ID of the business unit
|
|
@@ -21206,10 +21528,10 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
21206
21528
|
* Update my alternative shifts trade by trade ID
|
|
21207
21529
|
*
|
|
21208
21530
|
* @param {String} tradeId The ID of the alternative shift trade
|
|
21209
|
-
* @param {Object}
|
|
21210
|
-
|
|
21211
|
-
|
|
21212
|
-
if(
|
|
21531
|
+
* @param {Object} body body
|
|
21532
|
+
*/},{key:"patchWorkforcemanagementAlternativeshiftsTrade",value:function patchWorkforcemanagementAlternativeshiftsTrade(tradeId,body){// verify the required parameter 'tradeId' is set
|
|
21533
|
+
if(tradeId===undefined||tradeId===null){throw'Missing the required parameter "tradeId" when calling patchWorkforcemanagementAlternativeshiftsTrade';}// verify the required parameter 'body' is set
|
|
21534
|
+
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']);}/**
|
|
21213
21535
|
* Bulk update alternative shift trade states
|
|
21214
21536
|
*
|
|
21215
21537
|
* @param {Object} body The request body
|
|
@@ -21218,19 +21540,19 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
21218
21540
|
* Update business unit
|
|
21219
21541
|
*
|
|
21220
21542
|
* @param {String} businessUnitId The ID of the business unit, or 'mine' for the business unit of the logged-in user.
|
|
21221
|
-
* @param {Object}
|
|
21222
|
-
|
|
21223
|
-
|
|
21224
|
-
if(
|
|
21543
|
+
* @param {Object} body body
|
|
21544
|
+
*/},{key:"patchWorkforcemanagementBusinessunit",value:function patchWorkforcemanagementBusinessunit(businessUnitId,body){// verify the required parameter 'businessUnitId' is set
|
|
21545
|
+
if(businessUnitId===undefined||businessUnitId===null){throw'Missing the required parameter "businessUnitId" when calling patchWorkforcemanagementBusinessunit';}// verify the required parameter 'body' is set
|
|
21546
|
+
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']);}/**
|
|
21225
21547
|
* Update an activity code
|
|
21226
21548
|
*
|
|
21227
21549
|
* @param {String} businessUnitId The ID of the business unit, or 'mine' for the business unit of the logged-in user.
|
|
21228
21550
|
* @param {String} activityCodeId The ID of the activity code to update
|
|
21229
|
-
* @param {Object}
|
|
21230
|
-
|
|
21231
|
-
*/},{key:"patchWorkforcemanagementBusinessunitActivitycode",value:function patchWorkforcemanagementBusinessunitActivitycode(businessUnitId,activityCodeId,opts){opts=opts||{};// verify the required parameter 'businessUnitId' is set
|
|
21551
|
+
* @param {Object} body body
|
|
21552
|
+
*/},{key:"patchWorkforcemanagementBusinessunitActivitycode",value:function patchWorkforcemanagementBusinessunitActivitycode(businessUnitId,activityCodeId,body){// verify the required parameter 'businessUnitId' is set
|
|
21232
21553
|
if(businessUnitId===undefined||businessUnitId===null){throw'Missing the required parameter "businessUnitId" when calling patchWorkforcemanagementBusinessunitActivitycode';}// verify the required parameter 'activityCodeId' is set
|
|
21233
|
-
if(activityCodeId===undefined||activityCodeId===null){throw'Missing the required parameter "activityCodeId" when calling patchWorkforcemanagementBusinessunitActivitycode';}
|
|
21554
|
+
if(activityCodeId===undefined||activityCodeId===null){throw'Missing the required parameter "activityCodeId" when calling patchWorkforcemanagementBusinessunitActivitycode';}// verify the required parameter 'body' is set
|
|
21555
|
+
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']);}/**
|
|
21234
21556
|
* Update an activity plan
|
|
21235
21557
|
* If a job associated with the activity plan is in Processing state the activity plan cannot be updated
|
|
21236
21558
|
* @param {String} businessUnitId The ID of the business unit
|
|
@@ -21243,55 +21565,55 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
21243
21565
|
* Update alternative shifts settings for a business unit
|
|
21244
21566
|
*
|
|
21245
21567
|
* @param {String} businessUnitId The ID of the business unit
|
|
21246
|
-
* @param {Object}
|
|
21247
|
-
|
|
21248
|
-
|
|
21249
|
-
if(
|
|
21568
|
+
* @param {Object} body body
|
|
21569
|
+
*/},{key:"patchWorkforcemanagementBusinessunitAlternativeshiftsSettings",value:function patchWorkforcemanagementBusinessunitAlternativeshiftsSettings(businessUnitId,body){// verify the required parameter 'businessUnitId' is set
|
|
21570
|
+
if(businessUnitId===undefined||businessUnitId===null){throw'Missing the required parameter "businessUnitId" when calling patchWorkforcemanagementBusinessunitAlternativeshiftsSettings';}// verify the required parameter 'body' is set
|
|
21571
|
+
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']);}/**
|
|
21250
21572
|
* Updates the planning group
|
|
21251
21573
|
*
|
|
21252
21574
|
* @param {String} businessUnitId The ID of the business unit.
|
|
21253
21575
|
* @param {String} planningGroupId The ID of a planning group to update
|
|
21254
|
-
* @param {Object}
|
|
21255
|
-
|
|
21256
|
-
*/},{key:"patchWorkforcemanagementBusinessunitPlanninggroup",value:function patchWorkforcemanagementBusinessunitPlanninggroup(businessUnitId,planningGroupId,opts){opts=opts||{};// verify the required parameter 'businessUnitId' is set
|
|
21576
|
+
* @param {Object} body body
|
|
21577
|
+
*/},{key:"patchWorkforcemanagementBusinessunitPlanninggroup",value:function patchWorkforcemanagementBusinessunitPlanninggroup(businessUnitId,planningGroupId,body){// verify the required parameter 'businessUnitId' is set
|
|
21257
21578
|
if(businessUnitId===undefined||businessUnitId===null){throw'Missing the required parameter "businessUnitId" when calling patchWorkforcemanagementBusinessunitPlanninggroup';}// verify the required parameter 'planningGroupId' is set
|
|
21258
|
-
if(planningGroupId===undefined||planningGroupId===null){throw'Missing the required parameter "planningGroupId" when calling patchWorkforcemanagementBusinessunitPlanninggroup';}
|
|
21579
|
+
if(planningGroupId===undefined||planningGroupId===null){throw'Missing the required parameter "planningGroupId" when calling patchWorkforcemanagementBusinessunitPlanninggroup';}// verify the required parameter 'body' is set
|
|
21580
|
+
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']);}/**
|
|
21259
21581
|
* Mark a schedule run as applied
|
|
21260
21582
|
*
|
|
21261
21583
|
* @param {String} businessUnitId The ID of the business unit
|
|
21262
21584
|
* @param {String} runId The ID of the schedule run
|
|
21263
|
-
* @param {Object}
|
|
21264
|
-
|
|
21265
|
-
*/},{key:"patchWorkforcemanagementBusinessunitSchedulingRun",value:function patchWorkforcemanagementBusinessunitSchedulingRun(businessUnitId,runId,opts){opts=opts||{};// verify the required parameter 'businessUnitId' is set
|
|
21585
|
+
* @param {Object} body body
|
|
21586
|
+
*/},{key:"patchWorkforcemanagementBusinessunitSchedulingRun",value:function patchWorkforcemanagementBusinessunitSchedulingRun(businessUnitId,runId,body){// verify the required parameter 'businessUnitId' is set
|
|
21266
21587
|
if(businessUnitId===undefined||businessUnitId===null){throw'Missing the required parameter "businessUnitId" when calling patchWorkforcemanagementBusinessunitSchedulingRun';}// verify the required parameter 'runId' is set
|
|
21267
|
-
if(runId===undefined||runId===null){throw'Missing the required parameter "runId" when calling patchWorkforcemanagementBusinessunitSchedulingRun';}
|
|
21588
|
+
if(runId===undefined||runId===null){throw'Missing the required parameter "runId" when calling patchWorkforcemanagementBusinessunitSchedulingRun';}// verify the required parameter 'body' is set
|
|
21589
|
+
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']);}/**
|
|
21268
21590
|
* Updates a service goal template
|
|
21269
21591
|
*
|
|
21270
21592
|
* @param {String} businessUnitId The ID of the business unit.
|
|
21271
21593
|
* @param {String} serviceGoalTemplateId The ID of a service goal template to update
|
|
21272
|
-
* @param {Object}
|
|
21273
|
-
|
|
21274
|
-
*/},{key:"patchWorkforcemanagementBusinessunitServicegoaltemplate",value:function patchWorkforcemanagementBusinessunitServicegoaltemplate(businessUnitId,serviceGoalTemplateId,opts){opts=opts||{};// verify the required parameter 'businessUnitId' is set
|
|
21594
|
+
* @param {Object} body body
|
|
21595
|
+
*/},{key:"patchWorkforcemanagementBusinessunitServicegoaltemplate",value:function patchWorkforcemanagementBusinessunitServicegoaltemplate(businessUnitId,serviceGoalTemplateId,body){// verify the required parameter 'businessUnitId' is set
|
|
21275
21596
|
if(businessUnitId===undefined||businessUnitId===null){throw'Missing the required parameter "businessUnitId" when calling patchWorkforcemanagementBusinessunitServicegoaltemplate';}// verify the required parameter 'serviceGoalTemplateId' is set
|
|
21276
|
-
if(serviceGoalTemplateId===undefined||serviceGoalTemplateId===null){throw'Missing the required parameter "serviceGoalTemplateId" when calling patchWorkforcemanagementBusinessunitServicegoaltemplate';}
|
|
21597
|
+
if(serviceGoalTemplateId===undefined||serviceGoalTemplateId===null){throw'Missing the required parameter "serviceGoalTemplateId" when calling patchWorkforcemanagementBusinessunitServicegoaltemplate';}// verify the required parameter 'body' is set
|
|
21598
|
+
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']);}/**
|
|
21277
21599
|
* Updates a staffing group
|
|
21278
21600
|
*
|
|
21279
21601
|
* @param {String} businessUnitId The ID of the business unit
|
|
21280
21602
|
* @param {String} staffingGroupId The ID of the staffing group to update
|
|
21281
|
-
* @param {Object}
|
|
21282
|
-
|
|
21283
|
-
*/},{key:"patchWorkforcemanagementBusinessunitStaffinggroup",value:function patchWorkforcemanagementBusinessunitStaffinggroup(businessUnitId,staffingGroupId,opts){opts=opts||{};// verify the required parameter 'businessUnitId' is set
|
|
21603
|
+
* @param {Object} body body
|
|
21604
|
+
*/},{key:"patchWorkforcemanagementBusinessunitStaffinggroup",value:function patchWorkforcemanagementBusinessunitStaffinggroup(businessUnitId,staffingGroupId,body){// verify the required parameter 'businessUnitId' is set
|
|
21284
21605
|
if(businessUnitId===undefined||businessUnitId===null){throw'Missing the required parameter "businessUnitId" when calling patchWorkforcemanagementBusinessunitStaffinggroup';}// verify the required parameter 'staffingGroupId' is set
|
|
21285
|
-
if(staffingGroupId===undefined||staffingGroupId===null){throw'Missing the required parameter "staffingGroupId" when calling patchWorkforcemanagementBusinessunitStaffinggroup';}
|
|
21606
|
+
if(staffingGroupId===undefined||staffingGroupId===null){throw'Missing the required parameter "staffingGroupId" when calling patchWorkforcemanagementBusinessunitStaffinggroup';}// verify the required parameter 'body' is set
|
|
21607
|
+
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']);}/**
|
|
21286
21608
|
* Updates a time-off plan
|
|
21287
21609
|
*
|
|
21288
21610
|
* @param {String} businessUnitId The ID of the business unit
|
|
21289
21611
|
* @param {String} timeOffPlanId The ID of the time-off plan to update
|
|
21290
|
-
* @param {Object}
|
|
21291
|
-
|
|
21292
|
-
*/},{key:"patchWorkforcemanagementBusinessunitTimeoffplan",value:function patchWorkforcemanagementBusinessunitTimeoffplan(businessUnitId,timeOffPlanId,opts){opts=opts||{};// verify the required parameter 'businessUnitId' is set
|
|
21612
|
+
* @param {Object} body body
|
|
21613
|
+
*/},{key:"patchWorkforcemanagementBusinessunitTimeoffplan",value:function patchWorkforcemanagementBusinessunitTimeoffplan(businessUnitId,timeOffPlanId,body){// verify the required parameter 'businessUnitId' is set
|
|
21293
21614
|
if(businessUnitId===undefined||businessUnitId===null){throw'Missing the required parameter "businessUnitId" when calling patchWorkforcemanagementBusinessunitTimeoffplan';}// verify the required parameter 'timeOffPlanId' is set
|
|
21294
|
-
if(timeOffPlanId===undefined||timeOffPlanId===null){throw'Missing the required parameter "timeOffPlanId" when calling patchWorkforcemanagementBusinessunitTimeoffplan';}
|
|
21615
|
+
if(timeOffPlanId===undefined||timeOffPlanId===null){throw'Missing the required parameter "timeOffPlanId" when calling patchWorkforcemanagementBusinessunitTimeoffplan';}// verify the required parameter 'body' is set
|
|
21616
|
+
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']);}/**
|
|
21295
21617
|
* Update work plan bid
|
|
21296
21618
|
*
|
|
21297
21619
|
* @param {String} businessUnitId The ID of the business unit
|
|
@@ -21306,84 +21628,84 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
21306
21628
|
* @param {String} businessUnitId The ID of the business unit
|
|
21307
21629
|
* @param {String} bidId The work plan bid id of the bid groups
|
|
21308
21630
|
* @param {String} bidGroupId Work Plan Bid Group id
|
|
21309
|
-
* @param {Object}
|
|
21310
|
-
|
|
21311
|
-
*/},{key:"patchWorkforcemanagementBusinessunitWorkplanbidGroup",value:function patchWorkforcemanagementBusinessunitWorkplanbidGroup(businessUnitId,bidId,bidGroupId,opts){opts=opts||{};// verify the required parameter 'businessUnitId' is set
|
|
21631
|
+
* @param {Object} body body
|
|
21632
|
+
*/},{key:"patchWorkforcemanagementBusinessunitWorkplanbidGroup",value:function patchWorkforcemanagementBusinessunitWorkplanbidGroup(businessUnitId,bidId,bidGroupId,body){// verify the required parameter 'businessUnitId' is set
|
|
21312
21633
|
if(businessUnitId===undefined||businessUnitId===null){throw'Missing the required parameter "businessUnitId" when calling patchWorkforcemanagementBusinessunitWorkplanbidGroup';}// verify the required parameter 'bidId' is set
|
|
21313
21634
|
if(bidId===undefined||bidId===null){throw'Missing the required parameter "bidId" when calling patchWorkforcemanagementBusinessunitWorkplanbidGroup';}// verify the required parameter 'bidGroupId' is set
|
|
21314
|
-
if(bidGroupId===undefined||bidGroupId===null){throw'Missing the required parameter "bidGroupId" when calling patchWorkforcemanagementBusinessunitWorkplanbidGroup';}
|
|
21635
|
+
if(bidGroupId===undefined||bidGroupId===null){throw'Missing the required parameter "bidGroupId" when calling patchWorkforcemanagementBusinessunitWorkplanbidGroup';}// verify the required parameter 'body' is set
|
|
21636
|
+
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']);}/**
|
|
21315
21637
|
* Overrides the assigned work plan for the specified agents
|
|
21316
21638
|
*
|
|
21317
21639
|
* @param {String} businessUnitId The ID of the business unit
|
|
21318
21640
|
* @param {String} bidId The work plan bid id of the bid groups
|
|
21319
21641
|
* @param {String} bidGroupId The ID of the work plan bid group
|
|
21320
|
-
* @param {Object}
|
|
21321
|
-
|
|
21322
|
-
*/},{key:"patchWorkforcemanagementBusinessunitWorkplanbidGroupPreferences",value:function patchWorkforcemanagementBusinessunitWorkplanbidGroupPreferences(businessUnitId,bidId,bidGroupId,opts){opts=opts||{};// verify the required parameter 'businessUnitId' is set
|
|
21642
|
+
* @param {Object} body body
|
|
21643
|
+
*/},{key:"patchWorkforcemanagementBusinessunitWorkplanbidGroupPreferences",value:function patchWorkforcemanagementBusinessunitWorkplanbidGroupPreferences(businessUnitId,bidId,bidGroupId,body){// verify the required parameter 'businessUnitId' is set
|
|
21323
21644
|
if(businessUnitId===undefined||businessUnitId===null){throw'Missing the required parameter "businessUnitId" when calling patchWorkforcemanagementBusinessunitWorkplanbidGroupPreferences';}// verify the required parameter 'bidId' is set
|
|
21324
21645
|
if(bidId===undefined||bidId===null){throw'Missing the required parameter "bidId" when calling patchWorkforcemanagementBusinessunitWorkplanbidGroupPreferences';}// verify the required parameter 'bidGroupId' is set
|
|
21325
|
-
if(bidGroupId===undefined||bidGroupId===null){throw'Missing the required parameter "bidGroupId" when calling patchWorkforcemanagementBusinessunitWorkplanbidGroupPreferences';}
|
|
21646
|
+
if(bidGroupId===undefined||bidGroupId===null){throw'Missing the required parameter "bidGroupId" when calling patchWorkforcemanagementBusinessunitWorkplanbidGroupPreferences';}// verify the required parameter 'body' is set
|
|
21647
|
+
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']);}/**
|
|
21326
21648
|
* Update the requested management unit
|
|
21327
21649
|
*
|
|
21328
21650
|
* @param {String} managementUnitId The ID of the management unit, or 'mine' for the management unit of the logged-in user.
|
|
21329
|
-
* @param {Object}
|
|
21330
|
-
|
|
21331
|
-
|
|
21332
|
-
if(
|
|
21651
|
+
* @param {Object} body body
|
|
21652
|
+
*/},{key:"patchWorkforcemanagementManagementunit",value:function patchWorkforcemanagementManagementunit(managementUnitId,body){// verify the required parameter 'managementUnitId' is set
|
|
21653
|
+
if(managementUnitId===undefined||managementUnitId===null){throw'Missing the required parameter "managementUnitId" when calling patchWorkforcemanagementManagementunit';}// verify the required parameter 'body' is set
|
|
21654
|
+
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']);}/**
|
|
21333
21655
|
* Update agent configurations
|
|
21334
21656
|
*
|
|
21335
21657
|
* @param {String} managementUnitId The ID of the management unit, or 'mine' for the management unit of the logged-in user.
|
|
21336
|
-
* @param {Object}
|
|
21337
|
-
|
|
21338
|
-
|
|
21339
|
-
if(
|
|
21658
|
+
* @param {Object} body body
|
|
21659
|
+
*/},{key:"patchWorkforcemanagementManagementunitAgents",value:function patchWorkforcemanagementManagementunitAgents(managementUnitId,body){// verify the required parameter 'managementUnitId' is set
|
|
21660
|
+
if(managementUnitId===undefined||managementUnitId===null){throw'Missing the required parameter "managementUnitId" when calling patchWorkforcemanagementManagementunitAgents';}// verify the required parameter 'body' is set
|
|
21661
|
+
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']);}/**
|
|
21340
21662
|
* Updates agent work plan configuration
|
|
21341
21663
|
*
|
|
21342
21664
|
* @param {String} managementUnitId The ID of the management unit, or 'mine' for the management unit of the logged-in user.
|
|
21343
|
-
* @param {Object}
|
|
21344
|
-
|
|
21345
|
-
|
|
21346
|
-
if(
|
|
21665
|
+
* @param {Object} body body
|
|
21666
|
+
*/},{key:"patchWorkforcemanagementManagementunitAgentsWorkplansBulk",value:function patchWorkforcemanagementManagementunitAgentsWorkplansBulk(managementUnitId,body){// verify the required parameter 'managementUnitId' is set
|
|
21667
|
+
if(managementUnitId===undefined||managementUnitId===null){throw'Missing the required parameter "managementUnitId" when calling patchWorkforcemanagementManagementunitAgentsWorkplansBulk';}// verify the required parameter 'body' is set
|
|
21668
|
+
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']);}/**
|
|
21347
21669
|
* Updates a time off limit object.
|
|
21348
21670
|
* Updates time off limit object properties, but not daily values.
|
|
21349
21671
|
* @param {String} managementUnitId The ID of the management unit.
|
|
21350
21672
|
* @param {String} timeOffLimitId The id of time off limit object to update
|
|
21351
|
-
* @param {Object}
|
|
21352
|
-
|
|
21353
|
-
*/},{key:"patchWorkforcemanagementManagementunitTimeofflimit",value:function patchWorkforcemanagementManagementunitTimeofflimit(managementUnitId,timeOffLimitId,opts){opts=opts||{};// verify the required parameter 'managementUnitId' is set
|
|
21673
|
+
* @param {Object} body body
|
|
21674
|
+
*/},{key:"patchWorkforcemanagementManagementunitTimeofflimit",value:function patchWorkforcemanagementManagementunitTimeofflimit(managementUnitId,timeOffLimitId,body){// verify the required parameter 'managementUnitId' is set
|
|
21354
21675
|
if(managementUnitId===undefined||managementUnitId===null){throw'Missing the required parameter "managementUnitId" when calling patchWorkforcemanagementManagementunitTimeofflimit';}// verify the required parameter 'timeOffLimitId' is set
|
|
21355
|
-
if(timeOffLimitId===undefined||timeOffLimitId===null){throw'Missing the required parameter "timeOffLimitId" when calling patchWorkforcemanagementManagementunitTimeofflimit';}
|
|
21676
|
+
if(timeOffLimitId===undefined||timeOffLimitId===null){throw'Missing the required parameter "timeOffLimitId" when calling patchWorkforcemanagementManagementunitTimeofflimit';}// verify the required parameter 'body' is set
|
|
21677
|
+
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']);}/**
|
|
21356
21678
|
* Updates a time off plan
|
|
21357
21679
|
*
|
|
21358
21680
|
* @param {String} managementUnitId The ID of the management unit
|
|
21359
21681
|
* @param {String} timeOffPlanId The ID of the time off plan to update
|
|
21360
|
-
* @param {Object}
|
|
21361
|
-
|
|
21362
|
-
*/},{key:"patchWorkforcemanagementManagementunitTimeoffplan",value:function patchWorkforcemanagementManagementunitTimeoffplan(managementUnitId,timeOffPlanId,opts){opts=opts||{};// verify the required parameter 'managementUnitId' is set
|
|
21682
|
+
* @param {Object} body body
|
|
21683
|
+
*/},{key:"patchWorkforcemanagementManagementunitTimeoffplan",value:function patchWorkforcemanagementManagementunitTimeoffplan(managementUnitId,timeOffPlanId,body){// verify the required parameter 'managementUnitId' is set
|
|
21363
21684
|
if(managementUnitId===undefined||managementUnitId===null){throw'Missing the required parameter "managementUnitId" when calling patchWorkforcemanagementManagementunitTimeoffplan';}// verify the required parameter 'timeOffPlanId' is set
|
|
21364
|
-
if(timeOffPlanId===undefined||timeOffPlanId===null){throw'Missing the required parameter "timeOffPlanId" when calling patchWorkforcemanagementManagementunitTimeoffplan';}
|
|
21685
|
+
if(timeOffPlanId===undefined||timeOffPlanId===null){throw'Missing the required parameter "timeOffPlanId" when calling patchWorkforcemanagementManagementunitTimeoffplan';}// verify the required parameter 'body' is set
|
|
21686
|
+
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']);}/**
|
|
21365
21687
|
* Set integration status for a time off request.
|
|
21366
21688
|
*
|
|
21367
21689
|
* @param {String} managementUnitId The ID of the management unit.
|
|
21368
21690
|
* @param {String} timeOffRequestId The ID of the time off request.
|
|
21369
21691
|
* @param {String} userId The ID of user to whom the time off request belongs.
|
|
21370
|
-
* @param {Object}
|
|
21371
|
-
|
|
21372
|
-
*/},{key:"patchWorkforcemanagementManagementunitTimeoffrequestUserIntegrationstatus",value:function patchWorkforcemanagementManagementunitTimeoffrequestUserIntegrationstatus(managementUnitId,timeOffRequestId,userId,opts){opts=opts||{};// verify the required parameter 'managementUnitId' is set
|
|
21692
|
+
* @param {Object} body body
|
|
21693
|
+
*/},{key:"patchWorkforcemanagementManagementunitTimeoffrequestUserIntegrationstatus",value:function patchWorkforcemanagementManagementunitTimeoffrequestUserIntegrationstatus(managementUnitId,timeOffRequestId,userId,body){// verify the required parameter 'managementUnitId' is set
|
|
21373
21694
|
if(managementUnitId===undefined||managementUnitId===null){throw'Missing the required parameter "managementUnitId" when calling patchWorkforcemanagementManagementunitTimeoffrequestUserIntegrationstatus';}// verify the required parameter 'timeOffRequestId' is set
|
|
21374
21695
|
if(timeOffRequestId===undefined||timeOffRequestId===null){throw'Missing the required parameter "timeOffRequestId" when calling patchWorkforcemanagementManagementunitTimeoffrequestUserIntegrationstatus';}// verify the required parameter 'userId' is set
|
|
21375
|
-
if(userId===undefined||userId===null){throw'Missing the required parameter "userId" when calling patchWorkforcemanagementManagementunitTimeoffrequestUserIntegrationstatus';}
|
|
21696
|
+
if(userId===undefined||userId===null){throw'Missing the required parameter "userId" when calling patchWorkforcemanagementManagementunitTimeoffrequestUserIntegrationstatus';}// verify the required parameter 'body' is set
|
|
21697
|
+
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']);}/**
|
|
21376
21698
|
* Update a time off request
|
|
21377
21699
|
*
|
|
21378
21700
|
* @param {String} managementUnitId The ID of the management unit, or 'mine' for the management unit of the logged-in user.
|
|
21379
21701
|
* @param {String} userId The id of the user the requested time off request belongs to
|
|
21380
21702
|
* @param {String} timeOffRequestId The id of the time off request to update
|
|
21381
|
-
* @param {Object}
|
|
21382
|
-
|
|
21383
|
-
*/},{key:"patchWorkforcemanagementManagementunitUserTimeoffrequest",value:function patchWorkforcemanagementManagementunitUserTimeoffrequest(managementUnitId,userId,timeOffRequestId,opts){opts=opts||{};// verify the required parameter 'managementUnitId' is set
|
|
21703
|
+
* @param {Object} body body
|
|
21704
|
+
*/},{key:"patchWorkforcemanagementManagementunitUserTimeoffrequest",value:function patchWorkforcemanagementManagementunitUserTimeoffrequest(managementUnitId,userId,timeOffRequestId,body){// verify the required parameter 'managementUnitId' is set
|
|
21384
21705
|
if(managementUnitId===undefined||managementUnitId===null){throw'Missing the required parameter "managementUnitId" when calling patchWorkforcemanagementManagementunitUserTimeoffrequest';}// verify the required parameter 'userId' is set
|
|
21385
21706
|
if(userId===undefined||userId===null){throw'Missing the required parameter "userId" when calling patchWorkforcemanagementManagementunitUserTimeoffrequest';}// verify the required parameter 'timeOffRequestId' is set
|
|
21386
|
-
if(timeOffRequestId===undefined||timeOffRequestId===null){throw'Missing the required parameter "timeOffRequestId" when calling patchWorkforcemanagementManagementunitUserTimeoffrequest';}
|
|
21707
|
+
if(timeOffRequestId===undefined||timeOffRequestId===null){throw'Missing the required parameter "timeOffRequestId" when calling patchWorkforcemanagementManagementunitUserTimeoffrequest';}// verify the required parameter 'body' is set
|
|
21708
|
+
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']);}/**
|
|
21387
21709
|
* Updates a shift trade. This route can only be called by the initiating agent
|
|
21388
21710
|
*
|
|
21389
21711
|
* @param {String} managementUnitId The ID of the management unit, or 'mine' for the management unit of the logged-in user.
|
|
@@ -21399,35 +21721,36 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
21399
21721
|
*
|
|
21400
21722
|
* @param {String} managementUnitId The ID of the management unit, or 'mine' for the management unit of the logged-in user.
|
|
21401
21723
|
* @param {String} workPlanId The ID of the work plan to update
|
|
21724
|
+
* @param {Object} body body
|
|
21402
21725
|
* @param {Object} opts Optional parameters
|
|
21403
21726
|
* @param {Object} opts.validationMode Allows to update work plan even if validation result is invalid
|
|
21404
|
-
|
|
21405
|
-
*/},{key:"patchWorkforcemanagementManagementunitWorkplan",value:function patchWorkforcemanagementManagementunitWorkplan(managementUnitId,workPlanId,opts){opts=opts||{};// verify the required parameter 'managementUnitId' is set
|
|
21727
|
+
*/},{key:"patchWorkforcemanagementManagementunitWorkplan",value:function patchWorkforcemanagementManagementunitWorkplan(managementUnitId,workPlanId,body,opts){opts=opts||{};// verify the required parameter 'managementUnitId' is set
|
|
21406
21728
|
if(managementUnitId===undefined||managementUnitId===null){throw'Missing the required parameter "managementUnitId" when calling patchWorkforcemanagementManagementunitWorkplan';}// verify the required parameter 'workPlanId' is set
|
|
21407
|
-
if(workPlanId===undefined||workPlanId===null){throw'Missing the required parameter "workPlanId" when calling patchWorkforcemanagementManagementunitWorkplan';}
|
|
21729
|
+
if(workPlanId===undefined||workPlanId===null){throw'Missing the required parameter "workPlanId" when calling patchWorkforcemanagementManagementunitWorkplan';}// verify the required parameter 'body' is set
|
|
21730
|
+
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']);}/**
|
|
21408
21731
|
* Update a work plan rotation
|
|
21409
21732
|
*
|
|
21410
21733
|
* @param {String} managementUnitId The ID of the management unit, or 'mine' for the management unit of the logged-in user.
|
|
21411
21734
|
* @param {String} workPlanRotationId The ID of the work plan rotation to update
|
|
21412
|
-
* @param {Object}
|
|
21413
|
-
|
|
21414
|
-
*/},{key:"patchWorkforcemanagementManagementunitWorkplanrotation",value:function patchWorkforcemanagementManagementunitWorkplanrotation(managementUnitId,workPlanRotationId,opts){opts=opts||{};// verify the required parameter 'managementUnitId' is set
|
|
21735
|
+
* @param {Object} body body
|
|
21736
|
+
*/},{key:"patchWorkforcemanagementManagementunitWorkplanrotation",value:function patchWorkforcemanagementManagementunitWorkplanrotation(managementUnitId,workPlanRotationId,body){// verify the required parameter 'managementUnitId' is set
|
|
21415
21737
|
if(managementUnitId===undefined||managementUnitId===null){throw'Missing the required parameter "managementUnitId" when calling patchWorkforcemanagementManagementunitWorkplanrotation';}// verify the required parameter 'workPlanRotationId' is set
|
|
21416
|
-
if(workPlanRotationId===undefined||workPlanRotationId===null){throw'Missing the required parameter "workPlanRotationId" when calling patchWorkforcemanagementManagementunitWorkplanrotation';}
|
|
21738
|
+
if(workPlanRotationId===undefined||workPlanRotationId===null){throw'Missing the required parameter "workPlanRotationId" when calling patchWorkforcemanagementManagementunitWorkplanrotation';}// verify the required parameter 'body' is set
|
|
21739
|
+
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']);}/**
|
|
21417
21740
|
* Update a time off request for the current user
|
|
21418
21741
|
*
|
|
21419
21742
|
* @param {String} timeOffRequestId The ID of the time off request
|
|
21420
|
-
* @param {Object}
|
|
21421
|
-
|
|
21422
|
-
|
|
21423
|
-
if(
|
|
21743
|
+
* @param {Object} body body
|
|
21744
|
+
*/},{key:"patchWorkforcemanagementTimeoffrequest",value:function patchWorkforcemanagementTimeoffrequest(timeOffRequestId,body){// verify the required parameter 'timeOffRequestId' is set
|
|
21745
|
+
if(timeOffRequestId===undefined||timeOffRequestId===null){throw'Missing the required parameter "timeOffRequestId" when calling patchWorkforcemanagementTimeoffrequest';}// verify the required parameter 'body' is set
|
|
21746
|
+
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']);}/**
|
|
21424
21747
|
* Update work plan bid ranks for a user
|
|
21425
21748
|
*
|
|
21426
21749
|
* @param {String} userId The userId to whom the work plan bid ranks apply.
|
|
21427
|
-
* @param {Object}
|
|
21428
|
-
|
|
21429
|
-
|
|
21430
|
-
if(
|
|
21750
|
+
* @param {Object} body body
|
|
21751
|
+
*/},{key:"patchWorkforcemanagementUserWorkplanbidranks",value:function patchWorkforcemanagementUserWorkplanbidranks(userId,body){// verify the required parameter 'userId' is set
|
|
21752
|
+
if(userId===undefined||userId===null){throw'Missing the required parameter "userId" when calling patchWorkforcemanagementUserWorkplanbidranks';}// verify the required parameter 'body' is set
|
|
21753
|
+
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']);}/**
|
|
21431
21754
|
* Update bulk work plan bid ranks on users. Max 50 users can be updated at a time.
|
|
21432
21755
|
*
|
|
21433
21756
|
* @param {Array.<Object>} body Users
|
|
@@ -21436,10 +21759,10 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
21436
21759
|
* Update an agent's work plan bidding preference
|
|
21437
21760
|
*
|
|
21438
21761
|
* @param {String} bidId The ID of the work plan bid
|
|
21439
|
-
* @param {Object}
|
|
21440
|
-
|
|
21441
|
-
|
|
21442
|
-
if(
|
|
21762
|
+
* @param {Object} body body
|
|
21763
|
+
*/},{key:"patchWorkforcemanagementWorkplanbidPreferences",value:function patchWorkforcemanagementWorkplanbidPreferences(bidId,body){// verify the required parameter 'bidId' is set
|
|
21764
|
+
if(bidId===undefined||bidId===null){throw'Missing the required parameter "bidId" when calling patchWorkforcemanagementWorkplanbidPreferences';}// verify the required parameter 'body' is set
|
|
21765
|
+
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']);}/**
|
|
21443
21766
|
* Submit an adherence explanation for the current user
|
|
21444
21767
|
*
|
|
21445
21768
|
* @param {Object} body The request body
|
|
@@ -21461,9 +21784,9 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
21461
21784
|
*/},{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']);}/**
|
|
21462
21785
|
* Request a historical adherence report in bulk
|
|
21463
21786
|
*
|
|
21464
|
-
* @param {Object}
|
|
21465
|
-
|
|
21466
|
-
|
|
21787
|
+
* @param {Object} body body
|
|
21788
|
+
*/},{key:"postWorkforcemanagementAdherenceHistoricalBulk",value:function postWorkforcemanagementAdherenceHistoricalBulk(body){// verify the required parameter 'body' is set
|
|
21789
|
+
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']);}/**
|
|
21467
21790
|
* Add an adherence explanation for the requested user
|
|
21468
21791
|
*
|
|
21469
21792
|
* @param {String} agentId The ID of the agent to query
|
|
@@ -21483,14 +21806,14 @@ if(agentId===undefined||agentId===null){throw'Missing the required parameter "ag
|
|
|
21483
21806
|
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']);}/**
|
|
21484
21807
|
* Move agents in and out of management unit
|
|
21485
21808
|
*
|
|
21486
|
-
* @param {Object}
|
|
21487
|
-
|
|
21488
|
-
|
|
21809
|
+
* @param {Object} body body
|
|
21810
|
+
*/},{key:"postWorkforcemanagementAgents",value:function postWorkforcemanagementAgents(body){// verify the required parameter 'body' is set
|
|
21811
|
+
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']);}/**
|
|
21489
21812
|
* Query integrations for agents
|
|
21490
21813
|
*
|
|
21491
|
-
* @param {Object}
|
|
21492
|
-
|
|
21493
|
-
|
|
21814
|
+
* @param {Object} body body
|
|
21815
|
+
*/},{key:"postWorkforcemanagementAgentsIntegrationsHrisQuery",value:function postWorkforcemanagementAgentsIntegrationsHrisQuery(body){// verify the required parameter 'body' is set
|
|
21816
|
+
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']);}/**
|
|
21494
21817
|
* Get agent possible work shifts for requested time frame
|
|
21495
21818
|
*
|
|
21496
21819
|
* @param {Object} body body
|
|
@@ -21498,9 +21821,9 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
21498
21821
|
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']);}/**
|
|
21499
21822
|
* Get published schedule for the current user
|
|
21500
21823
|
*
|
|
21501
|
-
* @param {Object}
|
|
21502
|
-
|
|
21503
|
-
|
|
21824
|
+
* @param {Object} body body
|
|
21825
|
+
*/},{key:"postWorkforcemanagementAgentschedulesMine",value:function postWorkforcemanagementAgentschedulesMine(body){// verify the required parameter 'body' is set
|
|
21826
|
+
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']);}/**
|
|
21504
21827
|
* Request a list of alternative shift offers for a given schedule
|
|
21505
21828
|
*
|
|
21506
21829
|
* @param {Object} body The request body
|
|
@@ -21519,10 +21842,10 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
21519
21842
|
* Create a new activity code
|
|
21520
21843
|
*
|
|
21521
21844
|
* @param {String} businessUnitId The ID of the business unit, or 'mine' for the business unit of the logged-in user.
|
|
21522
|
-
* @param {Object}
|
|
21523
|
-
|
|
21524
|
-
|
|
21525
|
-
if(
|
|
21845
|
+
* @param {Object} body body
|
|
21846
|
+
*/},{key:"postWorkforcemanagementBusinessunitActivitycodes",value:function postWorkforcemanagementBusinessunitActivitycodes(businessUnitId,body){// verify the required parameter 'businessUnitId' is set
|
|
21847
|
+
if(businessUnitId===undefined||businessUnitId===null){throw'Missing the required parameter "businessUnitId" when calling postWorkforcemanagementBusinessunitActivitycodes';}// verify the required parameter 'body' is set
|
|
21848
|
+
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']);}/**
|
|
21526
21849
|
* Run an activity plan manually
|
|
21527
21850
|
* Triggers a job running the activity plan. The activity plan cannot be updated until the job completes
|
|
21528
21851
|
* @param {String} businessUnitId The ID of the business unit
|
|
@@ -21550,12 +21873,13 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
21550
21873
|
* Search published schedules
|
|
21551
21874
|
*
|
|
21552
21875
|
* @param {String} businessUnitId The ID of the business unit
|
|
21876
|
+
* @param {Object} body body
|
|
21553
21877
|
* @param {Object} opts Optional parameters
|
|
21554
21878
|
* @param {Boolean} opts.forceAsync Force the result of this operation to be sent asynchronously via notification. For testing/app development purposes
|
|
21555
21879
|
* @param {Boolean} opts.forceDownloadService Force the result of this operation to be sent via download service. For testing/app development purposes
|
|
21556
|
-
|
|
21557
|
-
|
|
21558
|
-
if(
|
|
21880
|
+
*/},{key:"postWorkforcemanagementBusinessunitAgentschedulesSearch",value:function postWorkforcemanagementBusinessunitAgentschedulesSearch(businessUnitId,body,opts){opts=opts||{};// verify the required parameter 'businessUnitId' is set
|
|
21881
|
+
if(businessUnitId===undefined||businessUnitId===null){throw'Missing the required parameter "businessUnitId" when calling postWorkforcemanagementBusinessunitAgentschedulesSearch';}// verify the required parameter 'body' is set
|
|
21882
|
+
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']);}/**
|
|
21559
21883
|
* List alternative shifts trades for a given management unit or agent
|
|
21560
21884
|
*
|
|
21561
21885
|
* @param {String} businessUnitId The ID of the business unit
|
|
@@ -21568,60 +21892,63 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
21568
21892
|
* Get intraday data for the given date for the requested planningGroupIds
|
|
21569
21893
|
*
|
|
21570
21894
|
* @param {String} businessUnitId The ID of the business unit
|
|
21895
|
+
* @param {Object} body body
|
|
21571
21896
|
* @param {Object} opts Optional parameters
|
|
21572
21897
|
* @param {Boolean} opts.forceAsync Force the result of this operation to be sent asynchronously via notification. For testing/app development purposes
|
|
21573
|
-
|
|
21574
|
-
|
|
21575
|
-
if(
|
|
21898
|
+
*/},{key:"postWorkforcemanagementBusinessunitIntraday",value:function postWorkforcemanagementBusinessunitIntraday(businessUnitId,body,opts){opts=opts||{};// verify the required parameter 'businessUnitId' is set
|
|
21899
|
+
if(businessUnitId===undefined||businessUnitId===null){throw'Missing the required parameter "businessUnitId" when calling postWorkforcemanagementBusinessunitIntraday';}// verify the required parameter 'body' is set
|
|
21900
|
+
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']);}/**
|
|
21576
21901
|
* Adds a new planning group
|
|
21577
21902
|
*
|
|
21578
21903
|
* @param {String} businessUnitId The ID of the business unit.
|
|
21579
|
-
* @param {Object}
|
|
21580
|
-
|
|
21581
|
-
|
|
21582
|
-
if(
|
|
21904
|
+
* @param {Object} body body
|
|
21905
|
+
*/},{key:"postWorkforcemanagementBusinessunitPlanninggroups",value:function postWorkforcemanagementBusinessunitPlanninggroups(businessUnitId,body){// verify the required parameter 'businessUnitId' is set
|
|
21906
|
+
if(businessUnitId===undefined||businessUnitId===null){throw'Missing the required parameter "businessUnitId" when calling postWorkforcemanagementBusinessunitPlanninggroups';}// verify the required parameter 'body' is set
|
|
21907
|
+
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']);}/**
|
|
21583
21908
|
* Adds a new service goal template
|
|
21584
21909
|
*
|
|
21585
21910
|
* @param {String} businessUnitId The ID of the business unit.
|
|
21586
|
-
* @param {Object}
|
|
21587
|
-
|
|
21588
|
-
|
|
21589
|
-
if(
|
|
21911
|
+
* @param {Object} body body
|
|
21912
|
+
*/},{key:"postWorkforcemanagementBusinessunitServicegoaltemplates",value:function postWorkforcemanagementBusinessunitServicegoaltemplates(businessUnitId,body){// verify the required parameter 'businessUnitId' is set
|
|
21913
|
+
if(businessUnitId===undefined||businessUnitId===null){throw'Missing the required parameter "businessUnitId" when calling postWorkforcemanagementBusinessunitServicegoaltemplates';}// verify the required parameter 'body' is set
|
|
21914
|
+
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']);}/**
|
|
21590
21915
|
* Creates a new staffing group
|
|
21591
21916
|
*
|
|
21592
21917
|
* @param {String} businessUnitId The ID of the business unit
|
|
21593
|
-
* @param {Object}
|
|
21594
|
-
|
|
21595
|
-
|
|
21596
|
-
if(
|
|
21918
|
+
* @param {Object} body body
|
|
21919
|
+
*/},{key:"postWorkforcemanagementBusinessunitStaffinggroups",value:function postWorkforcemanagementBusinessunitStaffinggroups(businessUnitId,body){// verify the required parameter 'businessUnitId' is set
|
|
21920
|
+
if(businessUnitId===undefined||businessUnitId===null){throw'Missing the required parameter "businessUnitId" when calling postWorkforcemanagementBusinessunitStaffinggroups';}// verify the required parameter 'body' is set
|
|
21921
|
+
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']);}/**
|
|
21597
21922
|
* Gets staffing group associations for a list of user IDs
|
|
21598
21923
|
*
|
|
21599
21924
|
* @param {String} businessUnitId The ID of the business unit
|
|
21925
|
+
* @param {Object} body body
|
|
21600
21926
|
* @param {Object} opts Optional parameters
|
|
21601
|
-
* @param {
|
|
21602
|
-
*/},{key:"postWorkforcemanagementBusinessunitStaffinggroupsQuery",value:function postWorkforcemanagementBusinessunitStaffinggroupsQuery(businessUnitId,opts){opts=opts||{};// verify the required parameter 'businessUnitId' is set
|
|
21603
|
-
if(businessUnitId===undefined||businessUnitId===null){throw'Missing the required parameter "businessUnitId" when calling postWorkforcemanagementBusinessunitStaffinggroupsQuery';}
|
|
21927
|
+
* @param {Boolean} opts.forceDownloadService Force the result of this operation to be sent via download service
|
|
21928
|
+
*/},{key:"postWorkforcemanagementBusinessunitStaffinggroupsQuery",value:function postWorkforcemanagementBusinessunitStaffinggroupsQuery(businessUnitId,body,opts){opts=opts||{};// verify the required parameter 'businessUnitId' is set
|
|
21929
|
+
if(businessUnitId===undefined||businessUnitId===null){throw'Missing the required parameter "businessUnitId" when calling postWorkforcemanagementBusinessunitStaffinggroupsQuery';}// verify the required parameter 'body' is set
|
|
21930
|
+
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},{'forceDownloadService':opts['forceDownloadService']},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
21604
21931
|
* Creates a new time-off limit object
|
|
21605
21932
|
*
|
|
21606
21933
|
* @param {String} businessUnitId The ID of the business unit
|
|
21607
|
-
* @param {Object}
|
|
21608
|
-
|
|
21609
|
-
|
|
21610
|
-
if(
|
|
21934
|
+
* @param {Object} body body
|
|
21935
|
+
*/},{key:"postWorkforcemanagementBusinessunitTimeofflimits",value:function postWorkforcemanagementBusinessunitTimeofflimits(businessUnitId,body){// verify the required parameter 'businessUnitId' is set
|
|
21936
|
+
if(businessUnitId===undefined||businessUnitId===null){throw'Missing the required parameter "businessUnitId" when calling postWorkforcemanagementBusinessunitTimeofflimits';}// verify the required parameter 'body' is set
|
|
21937
|
+
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']);}/**
|
|
21611
21938
|
* Retrieves time-off limit related values based on a given set of filters.
|
|
21612
21939
|
*
|
|
21613
21940
|
* @param {String} businessUnitId The ID of the business unit
|
|
21614
|
-
* @param {Object}
|
|
21615
|
-
|
|
21616
|
-
|
|
21617
|
-
if(
|
|
21941
|
+
* @param {Object} body body
|
|
21942
|
+
*/},{key:"postWorkforcemanagementBusinessunitTimeofflimitsValuesQuery",value:function postWorkforcemanagementBusinessunitTimeofflimitsValuesQuery(businessUnitId,body){// verify the required parameter 'businessUnitId' is set
|
|
21943
|
+
if(businessUnitId===undefined||businessUnitId===null){throw'Missing the required parameter "businessUnitId" when calling postWorkforcemanagementBusinessunitTimeofflimitsValuesQuery';}// verify the required parameter 'body' is set
|
|
21944
|
+
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']);}/**
|
|
21618
21945
|
* Creates a new time-off plan
|
|
21619
21946
|
*
|
|
21620
21947
|
* @param {String} businessUnitId The ID of the business unit
|
|
21621
|
-
* @param {Object}
|
|
21622
|
-
|
|
21623
|
-
|
|
21624
|
-
if(
|
|
21948
|
+
* @param {Object} body body
|
|
21949
|
+
*/},{key:"postWorkforcemanagementBusinessunitTimeoffplans",value:function postWorkforcemanagementBusinessunitTimeoffplans(businessUnitId,body){// verify the required parameter 'businessUnitId' is set
|
|
21950
|
+
if(businessUnitId===undefined||businessUnitId===null){throw'Missing the required parameter "businessUnitId" when calling postWorkforcemanagementBusinessunitTimeoffplans';}// verify the required parameter 'body' is set
|
|
21951
|
+
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']);}/**
|
|
21625
21952
|
* Loads agent schedule data from the schedule. Used in combination with the metadata route
|
|
21626
21953
|
*
|
|
21627
21954
|
* @param {String} businessUnitId The ID of the business unit
|
|
@@ -21652,23 +21979,23 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
21652
21979
|
* @param {String} businessUnitId The ID of the business unit to which the performance prediction belongs
|
|
21653
21980
|
* @param {String} weekId First day of schedule week in yyyy-MM-dd format
|
|
21654
21981
|
* @param {String} scheduleId The ID of the schedule the performance prediction belongs to
|
|
21655
|
-
* @param {Object}
|
|
21656
|
-
|
|
21657
|
-
*/},{key:"postWorkforcemanagementBusinessunitWeekSchedulePerformancepredictionsRecalculations",value:function postWorkforcemanagementBusinessunitWeekSchedulePerformancepredictionsRecalculations(businessUnitId,weekId,scheduleId,opts){opts=opts||{};// verify the required parameter 'businessUnitId' is set
|
|
21982
|
+
* @param {Object} body body
|
|
21983
|
+
*/},{key:"postWorkforcemanagementBusinessunitWeekSchedulePerformancepredictionsRecalculations",value:function postWorkforcemanagementBusinessunitWeekSchedulePerformancepredictionsRecalculations(businessUnitId,weekId,scheduleId,body){// verify the required parameter 'businessUnitId' is set
|
|
21658
21984
|
if(businessUnitId===undefined||businessUnitId===null){throw'Missing the required parameter "businessUnitId" when calling postWorkforcemanagementBusinessunitWeekSchedulePerformancepredictionsRecalculations';}// verify the required parameter 'weekId' is set
|
|
21659
21985
|
if(weekId===undefined||weekId===null){throw'Missing the required parameter "weekId" when calling postWorkforcemanagementBusinessunitWeekSchedulePerformancepredictionsRecalculations';}// verify the required parameter 'scheduleId' is set
|
|
21660
|
-
if(scheduleId===undefined||scheduleId===null){throw'Missing the required parameter "scheduleId" when calling postWorkforcemanagementBusinessunitWeekSchedulePerformancepredictionsRecalculations';}
|
|
21986
|
+
if(scheduleId===undefined||scheduleId===null){throw'Missing the required parameter "scheduleId" when calling postWorkforcemanagementBusinessunitWeekSchedulePerformancepredictionsRecalculations';}// verify the required parameter 'body' is set
|
|
21987
|
+
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']);}/**
|
|
21661
21988
|
* Upload daily activity changes to be able to request a performance prediction recalculation
|
|
21662
21989
|
*
|
|
21663
21990
|
* @param {String} businessUnitId The ID of the business unit to which the performance prediction belongs
|
|
21664
21991
|
* @param {String} weekId First day of schedule week in yyyy-MM-dd format
|
|
21665
21992
|
* @param {String} scheduleId The ID of the schedule the performance prediction belongs to
|
|
21666
|
-
* @param {Object}
|
|
21667
|
-
|
|
21668
|
-
*/},{key:"postWorkforcemanagementBusinessunitWeekSchedulePerformancepredictionsRecalculationsUploadurl",value:function postWorkforcemanagementBusinessunitWeekSchedulePerformancepredictionsRecalculationsUploadurl(businessUnitId,weekId,scheduleId,opts){opts=opts||{};// verify the required parameter 'businessUnitId' is set
|
|
21993
|
+
* @param {Object} body body
|
|
21994
|
+
*/},{key:"postWorkforcemanagementBusinessunitWeekSchedulePerformancepredictionsRecalculationsUploadurl",value:function postWorkforcemanagementBusinessunitWeekSchedulePerformancepredictionsRecalculationsUploadurl(businessUnitId,weekId,scheduleId,body){// verify the required parameter 'businessUnitId' is set
|
|
21669
21995
|
if(businessUnitId===undefined||businessUnitId===null){throw'Missing the required parameter "businessUnitId" when calling postWorkforcemanagementBusinessunitWeekSchedulePerformancepredictionsRecalculationsUploadurl';}// verify the required parameter 'weekId' is set
|
|
21670
21996
|
if(weekId===undefined||weekId===null){throw'Missing the required parameter "weekId" when calling postWorkforcemanagementBusinessunitWeekSchedulePerformancepredictionsRecalculationsUploadurl';}// verify the required parameter 'scheduleId' is set
|
|
21671
|
-
if(scheduleId===undefined||scheduleId===null){throw'Missing the required parameter "scheduleId" when calling postWorkforcemanagementBusinessunitWeekSchedulePerformancepredictionsRecalculationsUploadurl';}
|
|
21997
|
+
if(scheduleId===undefined||scheduleId===null){throw'Missing the required parameter "scheduleId" when calling postWorkforcemanagementBusinessunitWeekSchedulePerformancepredictionsRecalculationsUploadurl';}// verify the required parameter 'body' is set
|
|
21998
|
+
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']);}/**
|
|
21672
21999
|
* Start a rescheduling run
|
|
21673
22000
|
*
|
|
21674
22001
|
* @param {String} businessUnitId The ID of the business unit
|
|
@@ -21784,32 +22111,32 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
21784
22111
|
*
|
|
21785
22112
|
* @param {String} businessUnitId The ID of the business unit
|
|
21786
22113
|
* @param {String} bidId The ID of the work plan bid to copy
|
|
21787
|
-
* @param {Object}
|
|
21788
|
-
|
|
21789
|
-
*/},{key:"postWorkforcemanagementBusinessunitWorkplanbidCopy",value:function postWorkforcemanagementBusinessunitWorkplanbidCopy(businessUnitId,bidId,opts){opts=opts||{};// verify the required parameter 'businessUnitId' is set
|
|
22114
|
+
* @param {Object} body body
|
|
22115
|
+
*/},{key:"postWorkforcemanagementBusinessunitWorkplanbidCopy",value:function postWorkforcemanagementBusinessunitWorkplanbidCopy(businessUnitId,bidId,body){// verify the required parameter 'businessUnitId' is set
|
|
21790
22116
|
if(businessUnitId===undefined||businessUnitId===null){throw'Missing the required parameter "businessUnitId" when calling postWorkforcemanagementBusinessunitWorkplanbidCopy';}// verify the required parameter 'bidId' is set
|
|
21791
|
-
if(bidId===undefined||bidId===null){throw'Missing the required parameter "bidId" when calling postWorkforcemanagementBusinessunitWorkplanbidCopy';}
|
|
22117
|
+
if(bidId===undefined||bidId===null){throw'Missing the required parameter "bidId" when calling postWorkforcemanagementBusinessunitWorkplanbidCopy';}// verify the required parameter 'body' is set
|
|
22118
|
+
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling postWorkforcemanagementBusinessunitWorkplanbidCopy';}return this.apiClient.callApi('/api/v2/workforcemanagement/businessunits/{businessUnitId}/workplanbids/{bidId}/copy','POST',{'businessUnitId':businessUnitId,'bidId':bidId},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
21792
22119
|
* Add a bid group in a given work plan bid
|
|
21793
22120
|
*
|
|
21794
22121
|
* @param {String} businessUnitId The ID of the business unit
|
|
21795
22122
|
* @param {String} bidId The work plan bid id of the bid groups
|
|
21796
|
-
* @param {Object}
|
|
21797
|
-
|
|
21798
|
-
*/},{key:"postWorkforcemanagementBusinessunitWorkplanbidGroups",value:function postWorkforcemanagementBusinessunitWorkplanbidGroups(businessUnitId,bidId,opts){opts=opts||{};// verify the required parameter 'businessUnitId' is set
|
|
22123
|
+
* @param {Object} body body
|
|
22124
|
+
*/},{key:"postWorkforcemanagementBusinessunitWorkplanbidGroups",value:function postWorkforcemanagementBusinessunitWorkplanbidGroups(businessUnitId,bidId,body){// verify the required parameter 'businessUnitId' is set
|
|
21799
22125
|
if(businessUnitId===undefined||businessUnitId===null){throw'Missing the required parameter "businessUnitId" when calling postWorkforcemanagementBusinessunitWorkplanbidGroups';}// verify the required parameter 'bidId' is set
|
|
21800
|
-
if(bidId===undefined||bidId===null){throw'Missing the required parameter "bidId" when calling postWorkforcemanagementBusinessunitWorkplanbidGroups';}
|
|
22126
|
+
if(bidId===undefined||bidId===null){throw'Missing the required parameter "bidId" when calling postWorkforcemanagementBusinessunitWorkplanbidGroups';}// verify the required parameter 'body' is set
|
|
22127
|
+
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']);}/**
|
|
21801
22128
|
* Create a new work plan bid
|
|
21802
22129
|
*
|
|
21803
22130
|
* @param {String} businessUnitId The ID of the business unit
|
|
21804
|
-
* @param {Object}
|
|
21805
|
-
|
|
21806
|
-
|
|
21807
|
-
if(
|
|
22131
|
+
* @param {Object} body The work plan bid to be created
|
|
22132
|
+
*/},{key:"postWorkforcemanagementBusinessunitWorkplanbids",value:function postWorkforcemanagementBusinessunitWorkplanbids(businessUnitId,body){// verify the required parameter 'businessUnitId' is set
|
|
22133
|
+
if(businessUnitId===undefined||businessUnitId===null){throw'Missing the required parameter "businessUnitId" when calling postWorkforcemanagementBusinessunitWorkplanbids';}// verify the required parameter 'body' is set
|
|
22134
|
+
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']);}/**
|
|
21808
22135
|
* Add a new business unit
|
|
21809
22136
|
* It may take a minute or two for a new business unit to be available for api operations
|
|
21810
|
-
* @param {Object}
|
|
21811
|
-
|
|
21812
|
-
|
|
22137
|
+
* @param {Object} body body
|
|
22138
|
+
*/},{key:"postWorkforcemanagementBusinessunits",value:function postWorkforcemanagementBusinessunits(body){// verify the required parameter 'body' is set
|
|
22139
|
+
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']);}/**
|
|
21813
22140
|
* Create a newly generated calendar link for the current user; if the current user has previously generated one, the generated link will be returned
|
|
21814
22141
|
*
|
|
21815
22142
|
* @param {Object} opts Optional parameters
|
|
@@ -21817,18 +22144,18 @@ if(businessUnitId===undefined||businessUnitId===null){throw'Missing the required
|
|
|
21817
22144
|
*/},{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']);}/**
|
|
21818
22145
|
* Delete the list of the historical data import entries
|
|
21819
22146
|
*
|
|
21820
|
-
* @param {Object}
|
|
21821
|
-
|
|
21822
|
-
|
|
22147
|
+
* @param {Object} body body
|
|
22148
|
+
*/},{key:"postWorkforcemanagementHistoricaldataBulkRemoveJobs",value:function postWorkforcemanagementHistoricaldataBulkRemoveJobs(body){// verify the required parameter 'body' is set
|
|
22149
|
+
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']);}/**
|
|
21823
22150
|
* Delete the entries of the historical data imports in the organization.
|
|
21824
22151
|
* Deprecated: Please use POST /workforcemanagement/historicaldata/bulk/remove/jobs instead.
|
|
21825
22152
|
* @deprecated
|
|
21826
22153
|
*/},{key:"postWorkforcemanagementHistoricaldataDeletejob",value:function postWorkforcemanagementHistoricaldataDeletejob(){return this.apiClient.callApi('/api/v2/workforcemanagement/historicaldata/deletejob','POST',{},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
21827
22154
|
* Trigger validation process for historical import
|
|
21828
22155
|
*
|
|
21829
|
-
* @param {Object}
|
|
21830
|
-
|
|
21831
|
-
|
|
22156
|
+
* @param {Object} body body
|
|
22157
|
+
*/},{key:"postWorkforcemanagementHistoricaldataValidate",value:function postWorkforcemanagementHistoricaldataValidate(body){// verify the required parameter 'body' is set
|
|
22158
|
+
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']);}/**
|
|
21832
22159
|
* Get list of time off types configured in integration
|
|
21833
22160
|
*
|
|
21834
22161
|
* @param {String} hrisIntegrationId The ID of the HRIS integration for which time off types are queried.
|
|
@@ -21837,99 +22164,102 @@ if(hrisIntegrationId===undefined||hrisIntegrationId===null){throw'Missing the re
|
|
|
21837
22164
|
* Get agents work plans configuration
|
|
21838
22165
|
*
|
|
21839
22166
|
* @param {String} managementUnitId The ID of the management unit, or 'mine' for the management unit of the logged-in user.
|
|
22167
|
+
* @param {Object} body body
|
|
21840
22168
|
* @param {Object} opts Optional parameters
|
|
21841
22169
|
* @param {Boolean} opts.forceDownloadService Force the result of this operation to be sent via download service. For testing/app development purposes
|
|
21842
|
-
|
|
21843
|
-
|
|
21844
|
-
if(
|
|
22170
|
+
*/},{key:"postWorkforcemanagementManagementunitAgentsWorkplansQuery",value:function postWorkforcemanagementManagementunitAgentsWorkplansQuery(managementUnitId,body,opts){opts=opts||{};// verify the required parameter 'managementUnitId' is set
|
|
22171
|
+
if(managementUnitId===undefined||managementUnitId===null){throw'Missing the required parameter "managementUnitId" when calling postWorkforcemanagementManagementunitAgentsWorkplansQuery';}// verify the required parameter 'body' is set
|
|
22172
|
+
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']);}/**
|
|
21845
22173
|
* Query published schedules for given given time range for set of users
|
|
21846
22174
|
*
|
|
21847
22175
|
* @param {String} managementUnitId The ID of the management unit, or 'mine' for the management unit of the logged-in user.
|
|
22176
|
+
* @param {Object} body body
|
|
21848
22177
|
* @param {Object} opts Optional parameters
|
|
21849
22178
|
* @param {Boolean} opts.forceAsync Force the result of this operation to be sent asynchronously via notification. For testing/app development purposes
|
|
21850
22179
|
* @param {Boolean} opts.forceDownloadService Force the result of this operation to be sent via download service. For testing/app development purposes
|
|
21851
|
-
|
|
21852
|
-
|
|
21853
|
-
if(
|
|
22180
|
+
*/},{key:"postWorkforcemanagementManagementunitAgentschedulesSearch",value:function postWorkforcemanagementManagementunitAgentschedulesSearch(managementUnitId,body,opts){opts=opts||{};// verify the required parameter 'managementUnitId' is set
|
|
22181
|
+
if(managementUnitId===undefined||managementUnitId===null){throw'Missing the required parameter "managementUnitId" when calling postWorkforcemanagementManagementunitAgentschedulesSearch';}// verify the required parameter 'body' is set
|
|
22182
|
+
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']);}/**
|
|
21854
22183
|
* Request a historical adherence report
|
|
21855
22184
|
* The maximum supported range for historical adherence queries is 31 days, or 7 days with includeExceptions = true
|
|
21856
22185
|
* @param {String} managementUnitId The ID of the management unit
|
|
21857
|
-
* @param {Object}
|
|
21858
|
-
|
|
21859
|
-
|
|
21860
|
-
if(
|
|
22186
|
+
* @param {Object} body body
|
|
22187
|
+
*/},{key:"postWorkforcemanagementManagementunitHistoricaladherencequery",value:function postWorkforcemanagementManagementunitHistoricaladherencequery(managementUnitId,body){// verify the required parameter 'managementUnitId' is set
|
|
22188
|
+
if(managementUnitId===undefined||managementUnitId===null){throw'Missing the required parameter "managementUnitId" when calling postWorkforcemanagementManagementunitHistoricaladherencequery';}// verify the required parameter 'body' is set
|
|
22189
|
+
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']);}/**
|
|
21861
22190
|
* Move the requested management unit to a new business unit
|
|
21862
22191
|
* Returns status 200 if the management unit is already in the requested business unit
|
|
21863
22192
|
* @param {String} managementUnitId The ID of the management unit, or 'mine' for the management unit of the logged-in user.
|
|
21864
|
-
* @param {Object}
|
|
21865
|
-
|
|
21866
|
-
|
|
21867
|
-
if(
|
|
22193
|
+
* @param {Object} body body
|
|
22194
|
+
*/},{key:"postWorkforcemanagementManagementunitMove",value:function postWorkforcemanagementManagementunitMove(managementUnitId,body){// verify the required parameter 'managementUnitId' is set
|
|
22195
|
+
if(managementUnitId===undefined||managementUnitId===null){throw'Missing the required parameter "managementUnitId" when calling postWorkforcemanagementManagementunitMove';}// verify the required parameter 'body' is set
|
|
22196
|
+
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']);}/**
|
|
21868
22197
|
* Query published schedules for given given time range for set of users
|
|
21869
22198
|
*
|
|
21870
22199
|
* @param {String} managementUnitId The ID of the management unit, or 'mine' for the management unit of the logged-in user.
|
|
21871
|
-
* @param {Object}
|
|
21872
|
-
* @param {Object} opts.body body
|
|
22200
|
+
* @param {Object} body body
|
|
21873
22201
|
* @deprecated
|
|
21874
|
-
*/},{key:"postWorkforcemanagementManagementunitSchedulesSearch",value:function postWorkforcemanagementManagementunitSchedulesSearch(managementUnitId,
|
|
21875
|
-
if(managementUnitId===undefined||managementUnitId===null){throw'Missing the required parameter "managementUnitId" when calling postWorkforcemanagementManagementunitSchedulesSearch';}
|
|
22202
|
+
*/},{key:"postWorkforcemanagementManagementunitSchedulesSearch",value:function postWorkforcemanagementManagementunitSchedulesSearch(managementUnitId,body){// verify the required parameter 'managementUnitId' is set
|
|
22203
|
+
if(managementUnitId===undefined||managementUnitId===null){throw'Missing the required parameter "managementUnitId" when calling postWorkforcemanagementManagementunitSchedulesSearch';}// verify the required parameter 'body' is set
|
|
22204
|
+
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']);}/**
|
|
21876
22205
|
* Request a historical shrinkage report
|
|
21877
22206
|
* 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.
|
|
21878
22207
|
* @param {String} managementUnitId The ID of the management unit
|
|
21879
|
-
* @param {Object}
|
|
21880
|
-
|
|
21881
|
-
|
|
21882
|
-
if(
|
|
22208
|
+
* @param {Object} body body
|
|
22209
|
+
*/},{key:"postWorkforcemanagementManagementunitShrinkageJobs",value:function postWorkforcemanagementManagementunitShrinkageJobs(managementUnitId,body){// verify the required parameter 'managementUnitId' is set
|
|
22210
|
+
if(managementUnitId===undefined||managementUnitId===null){throw'Missing the required parameter "managementUnitId" when calling postWorkforcemanagementManagementunitShrinkageJobs';}// verify the required parameter 'body' is set
|
|
22211
|
+
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']);}/**
|
|
21883
22212
|
* Creates a new time off limit object under management unit.
|
|
21884
22213
|
* Only one limit object is allowed under management unit, so an attempt to create second object will fail.
|
|
21885
22214
|
* @param {String} managementUnitId The ID of the management unit.
|
|
21886
|
-
* @param {Object}
|
|
21887
|
-
|
|
21888
|
-
|
|
21889
|
-
if(
|
|
22215
|
+
* @param {Object} body body
|
|
22216
|
+
*/},{key:"postWorkforcemanagementManagementunitTimeofflimits",value:function postWorkforcemanagementManagementunitTimeofflimits(managementUnitId,body){// verify the required parameter 'managementUnitId' is set
|
|
22217
|
+
if(managementUnitId===undefined||managementUnitId===null){throw'Missing the required parameter "managementUnitId" when calling postWorkforcemanagementManagementunitTimeofflimits';}// verify the required parameter 'body' is set
|
|
22218
|
+
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']);}/**
|
|
21890
22219
|
* Retrieves time off limit related values based on a given set of filters.
|
|
21891
22220
|
*
|
|
21892
22221
|
* @param {String} managementUnitId The ID of the management unit.
|
|
21893
|
-
* @param {Object}
|
|
21894
|
-
|
|
21895
|
-
|
|
21896
|
-
if(
|
|
22222
|
+
* @param {Object} body body
|
|
22223
|
+
*/},{key:"postWorkforcemanagementManagementunitTimeofflimitsValuesQuery",value:function postWorkforcemanagementManagementunitTimeofflimitsValuesQuery(managementUnitId,body){// verify the required parameter 'managementUnitId' is set
|
|
22224
|
+
if(managementUnitId===undefined||managementUnitId===null){throw'Missing the required parameter "managementUnitId" when calling postWorkforcemanagementManagementunitTimeofflimitsValuesQuery';}// verify the required parameter 'body' is set
|
|
22225
|
+
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']);}/**
|
|
21897
22226
|
* Creates a new time off plan
|
|
21898
22227
|
*
|
|
21899
22228
|
* @param {String} managementUnitId The ID of the management unit
|
|
21900
|
-
* @param {Object}
|
|
21901
|
-
|
|
21902
|
-
|
|
21903
|
-
if(
|
|
22229
|
+
* @param {Object} body body
|
|
22230
|
+
*/},{key:"postWorkforcemanagementManagementunitTimeoffplans",value:function postWorkforcemanagementManagementunitTimeoffplans(managementUnitId,body){// verify the required parameter 'managementUnitId' is set
|
|
22231
|
+
if(managementUnitId===undefined||managementUnitId===null){throw'Missing the required parameter "managementUnitId" when calling postWorkforcemanagementManagementunitTimeoffplans';}// verify the required parameter 'body' is set
|
|
22232
|
+
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']);}/**
|
|
21904
22233
|
* Create a new time off request
|
|
21905
22234
|
*
|
|
21906
22235
|
* @param {String} managementUnitId The ID of the management unit, or 'mine' for the management unit of the logged-in user.
|
|
21907
|
-
* @param {Object}
|
|
21908
|
-
|
|
21909
|
-
|
|
21910
|
-
if(
|
|
22236
|
+
* @param {Object} body body
|
|
22237
|
+
*/},{key:"postWorkforcemanagementManagementunitTimeoffrequests",value:function postWorkforcemanagementManagementunitTimeoffrequests(managementUnitId,body){// verify the required parameter 'managementUnitId' is set
|
|
22238
|
+
if(managementUnitId===undefined||managementUnitId===null){throw'Missing the required parameter "managementUnitId" when calling postWorkforcemanagementManagementunitTimeoffrequests';}// verify the required parameter 'body' is set
|
|
22239
|
+
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']);}/**
|
|
21911
22240
|
* Retrieves integration statuses for a list of time off requests
|
|
21912
22241
|
*
|
|
21913
22242
|
* @param {String} managementUnitId The ID of the management unit.
|
|
21914
|
-
* @param {Object}
|
|
21915
|
-
|
|
21916
|
-
|
|
21917
|
-
if(
|
|
22243
|
+
* @param {Object} body body
|
|
22244
|
+
*/},{key:"postWorkforcemanagementManagementunitTimeoffrequestsIntegrationstatusQuery",value:function postWorkforcemanagementManagementunitTimeoffrequestsIntegrationstatusQuery(managementUnitId,body){// verify the required parameter 'managementUnitId' is set
|
|
22245
|
+
if(managementUnitId===undefined||managementUnitId===null){throw'Missing the required parameter "managementUnitId" when calling postWorkforcemanagementManagementunitTimeoffrequestsIntegrationstatusQuery';}// verify the required parameter 'body' is set
|
|
22246
|
+
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']);}/**
|
|
21918
22247
|
* Fetches time off requests matching the conditions specified in the request body
|
|
21919
22248
|
* 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
|
|
21920
22249
|
* @param {String} managementUnitId The ID of the management unit, or 'mine' for the management unit of the logged-in user.
|
|
22250
|
+
* @param {Object} body body
|
|
21921
22251
|
* @param {Object} opts Optional parameters
|
|
21922
22252
|
* @param {Boolean} opts.forceDownloadService Force the result of this operation to be sent via download service. For testing/app development purposes
|
|
21923
|
-
|
|
21924
|
-
|
|
21925
|
-
if(
|
|
22253
|
+
*/},{key:"postWorkforcemanagementManagementunitTimeoffrequestsQuery",value:function postWorkforcemanagementManagementunitTimeoffrequestsQuery(managementUnitId,body,opts){opts=opts||{};// verify the required parameter 'managementUnitId' is set
|
|
22254
|
+
if(managementUnitId===undefined||managementUnitId===null){throw'Missing the required parameter "managementUnitId" when calling postWorkforcemanagementManagementunitTimeoffrequestsQuery';}// verify the required parameter 'body' is set
|
|
22255
|
+
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']);}/**
|
|
21926
22256
|
* Retrieves daily waitlist position for a list of time off requests
|
|
21927
22257
|
*
|
|
21928
22258
|
* @param {String} managementUnitId The ID of the management unit.
|
|
21929
|
-
* @param {Object}
|
|
21930
|
-
|
|
21931
|
-
|
|
21932
|
-
if(
|
|
22259
|
+
* @param {Object} body body
|
|
22260
|
+
*/},{key:"postWorkforcemanagementManagementunitTimeoffrequestsWaitlistpositionsQuery",value:function postWorkforcemanagementManagementunitTimeoffrequestsWaitlistpositionsQuery(managementUnitId,body){// verify the required parameter 'managementUnitId' is set
|
|
22261
|
+
if(managementUnitId===undefined||managementUnitId===null){throw'Missing the required parameter "managementUnitId" when calling postWorkforcemanagementManagementunitTimeoffrequestsWaitlistpositionsQuery';}// verify the required parameter 'body' is set
|
|
22262
|
+
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']);}/**
|
|
21933
22263
|
* Query time off balances for a given user for specified activity code and dates
|
|
21934
22264
|
*
|
|
21935
22265
|
* @param {String} managementUnitId The ID of the management unit
|
|
@@ -21952,11 +22282,11 @@ if(timeOffRequestId===undefined||timeOffRequestId===null){throw'Missing the requ
|
|
|
21952
22282
|
*
|
|
21953
22283
|
* @param {String} managementUnitId The ID of the management unit
|
|
21954
22284
|
* @param {String} userId The id of the user for whom the time off request estimate is requested
|
|
21955
|
-
* @param {Object}
|
|
21956
|
-
|
|
21957
|
-
*/},{key:"postWorkforcemanagementManagementunitUserTimeoffrequestsEstimate",value:function postWorkforcemanagementManagementunitUserTimeoffrequestsEstimate(managementUnitId,userId,opts){opts=opts||{};// verify the required parameter 'managementUnitId' is set
|
|
22285
|
+
* @param {Object} body body
|
|
22286
|
+
*/},{key:"postWorkforcemanagementManagementunitUserTimeoffrequestsEstimate",value:function postWorkforcemanagementManagementunitUserTimeoffrequestsEstimate(managementUnitId,userId,body){// verify the required parameter 'managementUnitId' is set
|
|
21958
22287
|
if(managementUnitId===undefined||managementUnitId===null){throw'Missing the required parameter "managementUnitId" when calling postWorkforcemanagementManagementunitUserTimeoffrequestsEstimate';}// verify the required parameter 'userId' is set
|
|
21959
|
-
if(userId===undefined||userId===null){throw'Missing the required parameter "userId" when calling postWorkforcemanagementManagementunitUserTimeoffrequestsEstimate';}
|
|
22288
|
+
if(userId===undefined||userId===null){throw'Missing the required parameter "userId" when calling postWorkforcemanagementManagementunitUserTimeoffrequestsEstimate';}// verify the required parameter 'body' is set
|
|
22289
|
+
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']);}/**
|
|
21960
22290
|
* Matches a shift trade. This route can only be called by the receiving agent
|
|
21961
22291
|
*
|
|
21962
22292
|
* @param {String} managementUnitId The ID of the management unit, or 'mine' for the management unit of the logged-in user.
|
|
@@ -22003,55 +22333,57 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
22003
22333
|
*
|
|
22004
22334
|
* @param {String} managementUnitId The ID of the management unit, or 'mine' for the management unit of the logged-in user.
|
|
22005
22335
|
* @param {String} workPlanId The ID of the work plan to create a copy
|
|
22006
|
-
* @param {Object}
|
|
22007
|
-
|
|
22008
|
-
*/},{key:"postWorkforcemanagementManagementunitWorkplanCopy",value:function postWorkforcemanagementManagementunitWorkplanCopy(managementUnitId,workPlanId,opts){opts=opts||{};// verify the required parameter 'managementUnitId' is set
|
|
22336
|
+
* @param {Object} body body
|
|
22337
|
+
*/},{key:"postWorkforcemanagementManagementunitWorkplanCopy",value:function postWorkforcemanagementManagementunitWorkplanCopy(managementUnitId,workPlanId,body){// verify the required parameter 'managementUnitId' is set
|
|
22009
22338
|
if(managementUnitId===undefined||managementUnitId===null){throw'Missing the required parameter "managementUnitId" when calling postWorkforcemanagementManagementunitWorkplanCopy';}// verify the required parameter 'workPlanId' is set
|
|
22010
|
-
if(workPlanId===undefined||workPlanId===null){throw'Missing the required parameter "workPlanId" when calling postWorkforcemanagementManagementunitWorkplanCopy';}
|
|
22339
|
+
if(workPlanId===undefined||workPlanId===null){throw'Missing the required parameter "workPlanId" when calling postWorkforcemanagementManagementunitWorkplanCopy';}// verify the required parameter 'body' is set
|
|
22340
|
+
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']);}/**
|
|
22011
22341
|
* Validate Work Plan
|
|
22012
22342
|
*
|
|
22013
22343
|
* @param {String} managementUnitId The ID of the management unit, or 'mine' for the management unit of the logged-in user.
|
|
22014
22344
|
* @param {String} workPlanId The ID of the work plan to validate. For new work plan, use the word 'new' for the ID.
|
|
22345
|
+
* @param {Object} body body
|
|
22015
22346
|
* @param {Object} opts Optional parameters
|
|
22016
22347
|
* @param {Array.<String>} opts.expand
|
|
22017
|
-
|
|
22018
|
-
*/},{key:"postWorkforcemanagementManagementunitWorkplanValidate",value:function postWorkforcemanagementManagementunitWorkplanValidate(managementUnitId,workPlanId,opts){opts=opts||{};// verify the required parameter 'managementUnitId' is set
|
|
22348
|
+
*/},{key:"postWorkforcemanagementManagementunitWorkplanValidate",value:function postWorkforcemanagementManagementunitWorkplanValidate(managementUnitId,workPlanId,body,opts){opts=opts||{};// verify the required parameter 'managementUnitId' is set
|
|
22019
22349
|
if(managementUnitId===undefined||managementUnitId===null){throw'Missing the required parameter "managementUnitId" when calling postWorkforcemanagementManagementunitWorkplanValidate';}// verify the required parameter 'workPlanId' is set
|
|
22020
|
-
if(workPlanId===undefined||workPlanId===null){throw'Missing the required parameter "workPlanId" when calling postWorkforcemanagementManagementunitWorkplanValidate';}
|
|
22350
|
+
if(workPlanId===undefined||workPlanId===null){throw'Missing the required parameter "workPlanId" when calling postWorkforcemanagementManagementunitWorkplanValidate';}// verify the required parameter 'body' is set
|
|
22351
|
+
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']);}/**
|
|
22021
22352
|
* Create a copy of work plan rotation
|
|
22022
22353
|
*
|
|
22023
22354
|
* @param {String} managementUnitId The ID of the management unit, or 'mine' for the management unit of the logged-in user.
|
|
22024
22355
|
* @param {String} workPlanRotationId The ID of the work plan rotation to create a copy
|
|
22025
|
-
* @param {Object}
|
|
22026
|
-
|
|
22027
|
-
*/},{key:"postWorkforcemanagementManagementunitWorkplanrotationCopy",value:function postWorkforcemanagementManagementunitWorkplanrotationCopy(managementUnitId,workPlanRotationId,opts){opts=opts||{};// verify the required parameter 'managementUnitId' is set
|
|
22356
|
+
* @param {Object} body body
|
|
22357
|
+
*/},{key:"postWorkforcemanagementManagementunitWorkplanrotationCopy",value:function postWorkforcemanagementManagementunitWorkplanrotationCopy(managementUnitId,workPlanRotationId,body){// verify the required parameter 'managementUnitId' is set
|
|
22028
22358
|
if(managementUnitId===undefined||managementUnitId===null){throw'Missing the required parameter "managementUnitId" when calling postWorkforcemanagementManagementunitWorkplanrotationCopy';}// verify the required parameter 'workPlanRotationId' is set
|
|
22029
|
-
if(workPlanRotationId===undefined||workPlanRotationId===null){throw'Missing the required parameter "workPlanRotationId" when calling postWorkforcemanagementManagementunitWorkplanrotationCopy';}
|
|
22359
|
+
if(workPlanRotationId===undefined||workPlanRotationId===null){throw'Missing the required parameter "workPlanRotationId" when calling postWorkforcemanagementManagementunitWorkplanrotationCopy';}// verify the required parameter 'body' is set
|
|
22360
|
+
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']);}/**
|
|
22030
22361
|
* Create a new work plan rotation
|
|
22031
22362
|
*
|
|
22032
22363
|
* @param {String} managementUnitId The ID of the management unit, or 'mine' for the management unit of the logged-in user.
|
|
22033
|
-
* @param {Object}
|
|
22034
|
-
|
|
22035
|
-
|
|
22036
|
-
if(
|
|
22364
|
+
* @param {Object} body body
|
|
22365
|
+
*/},{key:"postWorkforcemanagementManagementunitWorkplanrotations",value:function postWorkforcemanagementManagementunitWorkplanrotations(managementUnitId,body){// verify the required parameter 'managementUnitId' is set
|
|
22366
|
+
if(managementUnitId===undefined||managementUnitId===null){throw'Missing the required parameter "managementUnitId" when calling postWorkforcemanagementManagementunitWorkplanrotations';}// verify the required parameter 'body' is set
|
|
22367
|
+
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']);}/**
|
|
22037
22368
|
* Create a new work plan
|
|
22038
22369
|
*
|
|
22039
22370
|
* @param {String} managementUnitId The ID of the management unit, or 'mine' for the management unit of the logged-in user.
|
|
22371
|
+
* @param {Object} body body
|
|
22040
22372
|
* @param {Object} opts Optional parameters
|
|
22041
22373
|
* @param {Object} opts.validationMode Allows to create work plan even if the validation result is invalid
|
|
22042
|
-
|
|
22043
|
-
|
|
22044
|
-
if(
|
|
22374
|
+
*/},{key:"postWorkforcemanagementManagementunitWorkplans",value:function postWorkforcemanagementManagementunitWorkplans(managementUnitId,body,opts){opts=opts||{};// verify the required parameter 'managementUnitId' is set
|
|
22375
|
+
if(managementUnitId===undefined||managementUnitId===null){throw'Missing the required parameter "managementUnitId" when calling postWorkforcemanagementManagementunitWorkplans';}// verify the required parameter 'body' is set
|
|
22376
|
+
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']);}/**
|
|
22045
22377
|
* Add a management unit
|
|
22046
22378
|
* It may take a minute or two for a new management unit to be available for api operations
|
|
22047
|
-
* @param {Object}
|
|
22048
|
-
|
|
22049
|
-
|
|
22379
|
+
* @param {Object} body body
|
|
22380
|
+
*/},{key:"postWorkforcemanagementManagementunits",value:function postWorkforcemanagementManagementunits(body){// verify the required parameter 'body' is set
|
|
22381
|
+
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']);}/**
|
|
22050
22382
|
* Mark a list of notifications as read or unread
|
|
22051
22383
|
*
|
|
22052
|
-
* @param {Object}
|
|
22053
|
-
|
|
22054
|
-
|
|
22384
|
+
* @param {Object} body body
|
|
22385
|
+
*/},{key:"postWorkforcemanagementNotificationsUpdate",value:function postWorkforcemanagementNotificationsUpdate(body){// verify the required parameter 'body' is set
|
|
22386
|
+
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']);}/**
|
|
22055
22387
|
* Get published schedule for the current user
|
|
22056
22388
|
*
|
|
22057
22389
|
* @param {Object} opts Optional parameters
|
|
@@ -22061,17 +22393,17 @@ if(managementUnitId===undefined||managementUnitId===null){throw'Missing the requ
|
|
|
22061
22393
|
* Request a teams historical adherence report
|
|
22062
22394
|
* The maximum supported range for historical adherence queries is 31 days, or 7 days with includeExceptions = true
|
|
22063
22395
|
* @param {String} teamId The ID of the team
|
|
22064
|
-
* @param {Object}
|
|
22065
|
-
|
|
22066
|
-
|
|
22067
|
-
if(
|
|
22396
|
+
* @param {Object} body body
|
|
22397
|
+
*/},{key:"postWorkforcemanagementTeamAdherenceHistorical",value:function postWorkforcemanagementTeamAdherenceHistorical(teamId,body){// verify the required parameter 'teamId' is set
|
|
22398
|
+
if(teamId===undefined||teamId===null){throw'Missing the required parameter "teamId" when calling postWorkforcemanagementTeamAdherenceHistorical';}// verify the required parameter 'body' is set
|
|
22399
|
+
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']);}/**
|
|
22068
22400
|
* Request a historical shrinkage report
|
|
22069
22401
|
* The maximum supported range for historical shrinkage queries is up to 32 days
|
|
22070
22402
|
* @param {String} teamId The ID of the team
|
|
22071
|
-
* @param {Object}
|
|
22072
|
-
|
|
22073
|
-
|
|
22074
|
-
if(
|
|
22403
|
+
* @param {Object} body body
|
|
22404
|
+
*/},{key:"postWorkforcemanagementTeamShrinkageJobs",value:function postWorkforcemanagementTeamShrinkageJobs(teamId,body){// verify the required parameter 'teamId' is set
|
|
22405
|
+
if(teamId===undefined||teamId===null){throw'Missing the required parameter "teamId" when calling postWorkforcemanagementTeamShrinkageJobs';}// verify the required parameter 'body' is set
|
|
22406
|
+
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']);}/**
|
|
22075
22407
|
* Query time off balances for the current user for specified activity code and dates
|
|
22076
22408
|
*
|
|
22077
22409
|
* @param {Object} body The request body
|
|
@@ -22079,24 +22411,24 @@ if(teamId===undefined||teamId===null){throw'Missing the required parameter "team
|
|
|
22079
22411
|
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']);}/**
|
|
22080
22412
|
* Queries available time off for the current user
|
|
22081
22413
|
*
|
|
22082
|
-
* @param {Object}
|
|
22083
|
-
|
|
22084
|
-
|
|
22414
|
+
* @param {Object} body body
|
|
22415
|
+
*/},{key:"postWorkforcemanagementTimeofflimitsAvailableQuery",value:function postWorkforcemanagementTimeofflimitsAvailableQuery(body){// verify the required parameter 'body' is set
|
|
22416
|
+
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']);}/**
|
|
22085
22417
|
* Create a time off request for the current user
|
|
22086
22418
|
*
|
|
22087
|
-
* @param {Object}
|
|
22088
|
-
|
|
22089
|
-
|
|
22419
|
+
* @param {Object} body body
|
|
22420
|
+
*/},{key:"postWorkforcemanagementTimeoffrequests",value:function postWorkforcemanagementTimeoffrequests(body){// verify the required parameter 'body' is set
|
|
22421
|
+
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']);}/**
|
|
22090
22422
|
* Estimates available time off for current user
|
|
22091
22423
|
*
|
|
22092
|
-
* @param {Object}
|
|
22093
|
-
|
|
22094
|
-
|
|
22424
|
+
* @param {Object} body body
|
|
22425
|
+
*/},{key:"postWorkforcemanagementTimeoffrequestsEstimate",value:function postWorkforcemanagementTimeoffrequestsEstimate(body){// verify the required parameter 'body' is set
|
|
22426
|
+
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']);}/**
|
|
22095
22427
|
* Retrieves integration statuses for a list of current user time off requests
|
|
22096
22428
|
*
|
|
22097
|
-
* @param {Object}
|
|
22098
|
-
|
|
22099
|
-
|
|
22429
|
+
* @param {Object} body body
|
|
22430
|
+
*/},{key:"postWorkforcemanagementTimeoffrequestsIntegrationstatusQuery",value:function postWorkforcemanagementTimeoffrequestsIntegrationstatusQuery(body){// verify the required parameter 'body' is set
|
|
22431
|
+
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']);}/**
|
|
22100
22432
|
* Update integrations for agent
|
|
22101
22433
|
*
|
|
22102
22434
|
* @param {String} agentId The ID of the agent
|
|
@@ -22108,20 +22440,20 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
22108
22440
|
* Note that only limit daily values can be set through API, allocated and waitlisted values are read-only for time-off limit API
|
|
22109
22441
|
* @param {String} businessUnitId The ID of the business unit
|
|
22110
22442
|
* @param {String} timeOffLimitId The ID of the time-off limit object to set values for
|
|
22111
|
-
* @param {Object}
|
|
22112
|
-
|
|
22113
|
-
*/},{key:"putWorkforcemanagementBusinessunitTimeofflimitValues",value:function putWorkforcemanagementBusinessunitTimeofflimitValues(businessUnitId,timeOffLimitId,opts){opts=opts||{};// verify the required parameter 'businessUnitId' is set
|
|
22443
|
+
* @param {Object} body body
|
|
22444
|
+
*/},{key:"putWorkforcemanagementBusinessunitTimeofflimitValues",value:function putWorkforcemanagementBusinessunitTimeofflimitValues(businessUnitId,timeOffLimitId,body){// verify the required parameter 'businessUnitId' is set
|
|
22114
22445
|
if(businessUnitId===undefined||businessUnitId===null){throw'Missing the required parameter "businessUnitId" when calling putWorkforcemanagementBusinessunitTimeofflimitValues';}// verify the required parameter 'timeOffLimitId' is set
|
|
22115
|
-
if(timeOffLimitId===undefined||timeOffLimitId===null){throw'Missing the required parameter "timeOffLimitId" when calling putWorkforcemanagementBusinessunitTimeofflimitValues';}
|
|
22446
|
+
if(timeOffLimitId===undefined||timeOffLimitId===null){throw'Missing the required parameter "timeOffLimitId" when calling putWorkforcemanagementBusinessunitTimeofflimitValues';}// verify the required parameter 'body' is set
|
|
22447
|
+
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']);}/**
|
|
22116
22448
|
* Sets daily values for a date range of time off limit object
|
|
22117
22449
|
* Note that only limit daily values can be set through API, allocated and waitlisted values are read-only for time off limit API
|
|
22118
22450
|
* @param {String} managementUnitId The ID of the management unit.
|
|
22119
22451
|
* @param {String} timeOffLimitId The ID of the time off limit object to set values for
|
|
22120
|
-
* @param {Object}
|
|
22121
|
-
|
|
22122
|
-
*/},{key:"putWorkforcemanagementManagementunitTimeofflimitValues",value:function putWorkforcemanagementManagementunitTimeofflimitValues(managementUnitId,timeOffLimitId,opts){opts=opts||{};// verify the required parameter 'managementUnitId' is set
|
|
22452
|
+
* @param {Object} body body
|
|
22453
|
+
*/},{key:"putWorkforcemanagementManagementunitTimeofflimitValues",value:function putWorkforcemanagementManagementunitTimeofflimitValues(managementUnitId,timeOffLimitId,body){// verify the required parameter 'managementUnitId' is set
|
|
22123
22454
|
if(managementUnitId===undefined||managementUnitId===null){throw'Missing the required parameter "managementUnitId" when calling putWorkforcemanagementManagementunitTimeofflimitValues';}// verify the required parameter 'timeOffLimitId' is set
|
|
22124
|
-
if(timeOffLimitId===undefined||timeOffLimitId===null){throw'Missing the required parameter "timeOffLimitId" when calling putWorkforcemanagementManagementunitTimeofflimitValues';}
|
|
22455
|
+
if(timeOffLimitId===undefined||timeOffLimitId===null){throw'Missing the required parameter "timeOffLimitId" when calling putWorkforcemanagementManagementunitTimeofflimitValues';}// verify the required parameter 'body' is set
|
|
22456
|
+
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']);}}]);}();/**
|
|
22125
22457
|
* A JavaScript library to interface with the PureCloud Platform API.<br>
|
|
22126
22458
|
* The <code>index</code> module provides access to constructors for all the classes which comprise the public API.
|
|
22127
22459
|
* <p>
|
|
@@ -22150,7 +22482,7 @@ if(timeOffLimitId===undefined||timeOffLimitId===null){throw'Missing the required
|
|
|
22150
22482
|
* </pre>
|
|
22151
22483
|
* </p>
|
|
22152
22484
|
* @module purecloud-platform-client-v2/index
|
|
22153
|
-
* @version
|
|
22485
|
+
* @version 224.0.0
|
|
22154
22486
|
*/var platformClient=/*#__PURE__*/_createClass(function platformClient(){_classCallCheck(this,platformClient);/**
|
|
22155
22487
|
* The ApiClient constructor.
|
|
22156
22488
|
* @property {module:purecloud-platform-client-v2/ApiClient}
|
|
@@ -22158,6 +22490,9 @@ if(timeOffLimitId===undefined||timeOffLimitId===null){throw'Missing the required
|
|
|
22158
22490
|
* The ApiClient class.
|
|
22159
22491
|
* @property {module:purecloud-platform-client-v2/ApiClient}
|
|
22160
22492
|
*/this.ApiClientClass=ApiClient;/**
|
|
22493
|
+
* The AIStudioApi service constructor.
|
|
22494
|
+
* @property {module:purecloud-platform-client-v2/api/AIStudioApi}
|
|
22495
|
+
*/this.AIStudioApi=AIStudioApi;/**
|
|
22161
22496
|
* The AgentAssistantsApi service constructor.
|
|
22162
22497
|
* @property {module:purecloud-platform-client-v2/api/AgentAssistantsApi}
|
|
22163
22498
|
*/this.AgentAssistantsApi=AgentAssistantsApi;/**
|