purecloud-platform-client-v2 221.0.0 → 223.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (92) hide show
  1. package/README.md +3 -3
  2. package/dist/node/purecloud-platform-client-v2.js +1032 -524
  3. package/dist/web-amd/purecloud-platform-client-v2.js +1032 -524
  4. package/dist/web-amd/purecloud-platform-client-v2.min.js +1 -1
  5. package/dist/web-cjs/bundle.js +498 -392
  6. package/dist/web-cjs/purecloud-platform-client-v2.js +498 -392
  7. package/dist/web-cjs/purecloud-platform-client-v2.min.js +1 -1
  8. package/index.d.ts +1408 -1008
  9. package/package.json +1 -1
  10. package/src/purecloud-platform-client-v2/ApiClient.js +1 -1
  11. package/src/purecloud-platform-client-v2/api/AgentAssistantsApi.js +3 -2
  12. package/src/purecloud-platform-client-v2/api/AgentCopilotApi.js +1 -1
  13. package/src/purecloud-platform-client-v2/api/AgentUIApi.js +1 -1
  14. package/src/purecloud-platform-client-v2/api/AlertingApi.js +1 -1
  15. package/src/purecloud-platform-client-v2/api/AnalyticsApi.js +1 -1
  16. package/src/purecloud-platform-client-v2/api/ArchitectApi.js +3 -2
  17. package/src/purecloud-platform-client-v2/api/AuditApi.js +1 -1
  18. package/src/purecloud-platform-client-v2/api/AuthorizationApi.js +1 -1
  19. package/src/purecloud-platform-client-v2/api/BillingApi.js +1 -1
  20. package/src/purecloud-platform-client-v2/api/BusinessRulesApi.js +5 -6
  21. package/src/purecloud-platform-client-v2/api/CarrierServicesApi.js +1 -1
  22. package/src/purecloud-platform-client-v2/api/ChatApi.js +1 -1
  23. package/src/purecloud-platform-client-v2/api/CoachingApi.js +1 -1
  24. package/src/purecloud-platform-client-v2/api/ContentManagementApi.js +1 -1
  25. package/src/purecloud-platform-client-v2/api/ConversationsApi.js +154 -7
  26. package/src/purecloud-platform-client-v2/api/DataExtensionsApi.js +1 -1
  27. package/src/purecloud-platform-client-v2/api/DataPrivacyApi.js +1 -1
  28. package/src/purecloud-platform-client-v2/api/DownloadsApi.js +1 -1
  29. package/src/purecloud-platform-client-v2/api/EmailsApi.js +1 -1
  30. package/src/purecloud-platform-client-v2/api/EmployeeEngagementApi.js +1 -1
  31. package/src/purecloud-platform-client-v2/api/EventsApi.js +1 -1
  32. package/src/purecloud-platform-client-v2/api/ExternalContactsApi.js +3 -3
  33. package/src/purecloud-platform-client-v2/api/FaxApi.js +1 -1
  34. package/src/purecloud-platform-client-v2/api/FlowsApi.js +1 -1
  35. package/src/purecloud-platform-client-v2/api/GamificationApi.js +1 -1
  36. package/src/purecloud-platform-client-v2/api/GeneralDataProtectionRegulationApi.js +1 -1
  37. package/src/purecloud-platform-client-v2/api/GeolocationApi.js +1 -1
  38. package/src/purecloud-platform-client-v2/api/GreetingsApi.js +1 -1
  39. package/src/purecloud-platform-client-v2/api/GroupsApi.js +1 -1
  40. package/src/purecloud-platform-client-v2/api/IdentityProviderApi.js +1 -1
  41. package/src/purecloud-platform-client-v2/api/InfrastructureAsCodeApi.js +1 -1
  42. package/src/purecloud-platform-client-v2/api/IntegrationsApi.js +150 -1
  43. package/src/purecloud-platform-client-v2/api/JourneyApi.js +1 -1
  44. package/src/purecloud-platform-client-v2/api/KnowledgeApi.js +1 -1
  45. package/src/purecloud-platform-client-v2/api/LanguageUnderstandingApi.js +1 -1
  46. package/src/purecloud-platform-client-v2/api/LanguagesApi.js +1 -1
  47. package/src/purecloud-platform-client-v2/api/LearningApi.js +1 -1
  48. package/src/purecloud-platform-client-v2/api/LicenseApi.js +1 -1
  49. package/src/purecloud-platform-client-v2/api/LocationsApi.js +1 -1
  50. package/src/purecloud-platform-client-v2/api/LogCaptureApi.js +2 -3
  51. package/src/purecloud-platform-client-v2/api/MessagingApi.js +1 -1
  52. package/src/purecloud-platform-client-v2/api/MobileDevicesApi.js +1 -1
  53. package/src/purecloud-platform-client-v2/api/NotificationsApi.js +1 -1
  54. package/src/purecloud-platform-client-v2/api/OAuthApi.js +1 -1
  55. package/src/purecloud-platform-client-v2/api/ObjectsApi.js +1 -1
  56. package/src/purecloud-platform-client-v2/api/OperationalEventsApi.js +1 -1
  57. package/src/purecloud-platform-client-v2/api/OrganizationApi.js +1 -1
  58. package/src/purecloud-platform-client-v2/api/OrganizationAuthorizationApi.js +1 -1
  59. package/src/purecloud-platform-client-v2/api/OutboundApi.js +1 -1
  60. package/src/purecloud-platform-client-v2/api/PresenceApi.js +1 -1
  61. package/src/purecloud-platform-client-v2/api/ProcessAutomationApi.js +1 -1
  62. package/src/purecloud-platform-client-v2/api/QualityApi.js +1 -1
  63. package/src/purecloud-platform-client-v2/api/RecordingApi.js +1 -1
  64. package/src/purecloud-platform-client-v2/api/ResponseManagementApi.js +1 -1
  65. package/src/purecloud-platform-client-v2/api/RoutingApi.js +1 -1
  66. package/src/purecloud-platform-client-v2/api/SCIMApi.js +1 -1
  67. package/src/purecloud-platform-client-v2/api/ScreenRecordingApi.js +1 -1
  68. package/src/purecloud-platform-client-v2/api/ScriptsApi.js +1 -1
  69. package/src/purecloud-platform-client-v2/api/SearchApi.js +1 -1
  70. package/src/purecloud-platform-client-v2/api/SettingsApi.js +1 -1
  71. package/src/purecloud-platform-client-v2/api/SocialMediaApi.js +71 -8
  72. package/src/purecloud-platform-client-v2/api/SpeechTextAnalyticsApi.js +51 -1
  73. package/src/purecloud-platform-client-v2/api/StationsApi.js +1 -1
  74. package/src/purecloud-platform-client-v2/api/SuggestApi.js +1 -1
  75. package/src/purecloud-platform-client-v2/api/TaskManagementApi.js +2 -2
  76. package/src/purecloud-platform-client-v2/api/TeamsApi.js +1 -1
  77. package/src/purecloud-platform-client-v2/api/TelephonyApi.js +1 -1
  78. package/src/purecloud-platform-client-v2/api/TelephonyProvidersEdgeApi.js +1 -1
  79. package/src/purecloud-platform-client-v2/api/TextbotsApi.js +3 -2
  80. package/src/purecloud-platform-client-v2/api/TokensApi.js +1 -1
  81. package/src/purecloud-platform-client-v2/api/UploadsApi.js +1 -1
  82. package/src/purecloud-platform-client-v2/api/UsageApi.js +1 -1
  83. package/src/purecloud-platform-client-v2/api/UserRecordingsApi.js +1 -1
  84. package/src/purecloud-platform-client-v2/api/UsersApi.js +1 -1
  85. package/src/purecloud-platform-client-v2/api/UtilitiesApi.js +1 -1
  86. package/src/purecloud-platform-client-v2/api/VoicemailApi.js +1 -1
  87. package/src/purecloud-platform-client-v2/api/WebChatApi.js +1 -1
  88. package/src/purecloud-platform-client-v2/api/WebDeploymentsApi.js +1 -1
  89. package/src/purecloud-platform-client-v2/api/WebMessagingApi.js +1 -1
  90. package/src/purecloud-platform-client-v2/api/WidgetsApi.js +1 -1
  91. package/src/purecloud-platform-client-v2/api/WorkforceManagementApi.js +514 -416
  92. package/src/purecloud-platform-client-v2/index.js +1 -1
@@ -5564,7 +5564,7 @@ exports.clearImmediate = typeof clearImmediate === "function" ? clearImmediate :
5564
5564
  }).call(this)}).call(this,require("timers").setImmediate,require("timers").clearImmediate)
5565
5565
  },{"process/browser.js":43,"timers":53}],"platformClient":[function(require,module,exports){
5566
5566
  (function (global,Buffer,setImmediate){(function (){
5567
- '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
5567
+ 'use strict';function _callSuper(t,o,e){return o=_getPrototypeOf(o),_possibleConstructorReturn(t,_isNativeReflectConstruct()?Reflect.construct(o,e||[],_getPrototypeOf(t).constructor):o.apply(t,e));}function _possibleConstructorReturn(t,e){if(e&&("object"==_typeof(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return _assertThisInitialized(t);}function _assertThisInitialized(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e;}function _isNativeReflectConstruct(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}));}catch(t){}return(_isNativeReflectConstruct=function _isNativeReflectConstruct(){return!!t;})();}function _getPrototypeOf(t){return _getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t);},_getPrototypeOf(t);}function _inherits(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&_setPrototypeOf(t,e);}function _setPrototypeOf(t,e){return _setPrototypeOf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t;},_setPrototypeOf(t,e);}function asyncGeneratorStep(n,t,e,r,o,a,c){try{var i=n[a](c),u=i.value;}catch(n){return void e(n);}i.done?t(u):Promise.resolve(u).then(r,o);}function _asyncToGenerator(n){return function(){var t=this,e=arguments;return new Promise(function(r,o){var a=n.apply(t,e);function _next(n){asyncGeneratorStep(a,r,o,_next,_throw,"next",n);}function _throw(n){asyncGeneratorStep(a,r,o,_next,_throw,"throw",n);}_next(void 0);});};}function _regeneratorValues(e){if(null!=e){var t=e["function"==typeof Symbol&&Symbol.iterator||"@@iterator"],r=0;if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length))return{next:function next(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e};}};}throw new TypeError(_typeof(e)+" is not iterable");}function _regenerator(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */var e,t,r="function"==typeof Symbol?Symbol:{},n=r.iterator||"@@iterator",o=r.toStringTag||"@@toStringTag";function i(r,n,o,i){var c=n&&n.prototype instanceof Generator?n:Generator,u=Object.create(c.prototype);return _regeneratorDefine2(u,"_invoke",function(r,n,o){var i,c,u,f=0,p=o||[],y=!1,G={p:0,n:0,v:e,a:d,f:d.bind(e,4),d:function d(t,r){return i=t,c=0,u=e,G.n=r,a;}};function d(r,n){for(c=r,u=n,t=0;!y&&f&&!o&&t<p.length;t++){var o,i=p[t],d=G.p,l=i[2];r>3?(o=l===n)&&(c=i[4]||3,u=i[5]===e?i[3]:i[5],i[4]=3,i[5]=e):i[0]<=d&&((o=r<2&&d<i[1])?(c=0,G.v=n,G.n=i[1]):d<l&&(o=r<3||i[0]>n||n>l)&&(i[4]=r,i[5]=n,G.n=l,c=0));}if(o||r>1)return a;throw y=!0,n;}return function(o,p,l){if(f>1)throw TypeError("Generator is already running");for(y&&1===p&&d(p,l),c=p,u=l;(t=c<2?e:u)||!y;){i||(c?c<3?(c>1&&(G.n=-1),d(c,u)):G.n=u:G.v=u);try{if(f=2,i){if(c||(o="next"),t=i[o]){if(!(t=t.call(i,u)))throw TypeError("iterator result is not an object");if(!t.done)return t;u=t.value,c<2&&(c=0);}else 1===c&&(t=i["return"])&&t.call(i),c<2&&(u=TypeError("The iterator does not provide a '"+o+"' method"),c=1);i=e;}else if((t=(y=G.n<0)?u:r.call(n,G))!==a)break;}catch(t){i=e,c=1,u=t;}finally{f=1;}}return{value:t,done:y};};}(r,o,i),!0),u;}var a={};function Generator(){}function GeneratorFunction(){}function GeneratorFunctionPrototype(){}t=Object.getPrototypeOf;var c=[][n]?t(t([][n]())):(_regeneratorDefine2(t={},n,function(){return this;}),t),u=GeneratorFunctionPrototype.prototype=Generator.prototype=Object.create(c);function f(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,GeneratorFunctionPrototype):(e.__proto__=GeneratorFunctionPrototype,_regeneratorDefine2(e,o,"GeneratorFunction")),e.prototype=Object.create(u),e;}return GeneratorFunction.prototype=GeneratorFunctionPrototype,_regeneratorDefine2(u,"constructor",GeneratorFunctionPrototype),_regeneratorDefine2(GeneratorFunctionPrototype,"constructor",GeneratorFunction),GeneratorFunction.displayName="GeneratorFunction",_regeneratorDefine2(GeneratorFunctionPrototype,o,"GeneratorFunction"),_regeneratorDefine2(u),_regeneratorDefine2(u,o,"Generator"),_regeneratorDefine2(u,n,function(){return this;}),_regeneratorDefine2(u,"toString",function(){return"[object Generator]";}),(_regenerator=function _regenerator(){return{w:i,m:f};})();}function _regeneratorDefine2(e,r,n,t){var i=Object.defineProperty;try{i({},"",{});}catch(e){i=0;}_regeneratorDefine2=function _regeneratorDefine(e,r,n,t){if(r)i?i(e,r,{value:n,enumerable:!t,configurable:!t,writable:!t}):e[r]=n;else{var o=function o(r,n){_regeneratorDefine2(e,r,function(e){return this._invoke(r,n,e);});};o("next",0),o("throw",1),o("return",2);}},_regeneratorDefine2(e,r,n,t);}function _toArray(r){return _arrayWithHoles(r)||_iterableToArray(r)||_unsupportedIterableToArray(r)||_nonIterableRest();}function _toConsumableArray(r){return _arrayWithoutHoles(r)||_iterableToArray(r)||_unsupportedIterableToArray(r)||_nonIterableSpread();}function _nonIterableSpread(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");}function _iterableToArray(r){if("undefined"!=typeof Symbol&&null!=r[Symbol.iterator]||null!=r["@@iterator"])return Array.from(r);}function _arrayWithoutHoles(r){if(Array.isArray(r))return _arrayLikeToArray(r);}function _createForOfIteratorHelper(r,e){var t="undefined"!=typeof Symbol&&r[Symbol.iterator]||r["@@iterator"];if(!t){if(Array.isArray(r)||(t=_unsupportedIterableToArray(r))||e&&r&&"number"==typeof r.length){t&&(r=t);var _n=0,F=function F(){};return{s:F,n:function n(){return _n>=r.length?{done:!0}:{done:!1,value:r[_n++]};},e:function e(r){throw r;},f:F};}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");}var o,a=!0,u=!1;return{s:function s(){t=t.call(r);},n:function n(){var r=t.next();return a=r.done,r;},e:function e(r){u=!0,o=r;},f:function f(){try{a||null==t["return"]||t["return"]();}finally{if(u)throw o;}}};}function ownKeys(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);r&&(o=o.filter(function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable;})),t.push.apply(t,o);}return t;}function _objectSpread(e){for(var r=1;r<arguments.length;r++){var t=null!=arguments[r]?arguments[r]:{};r%2?ownKeys(Object(t),!0).forEach(function(r){_defineProperty(e,r,t[r]);}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):ownKeys(Object(t)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r));});}return e;}function _defineProperty(e,r,t){return(r=_toPropertyKey(r))in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e;}function _classCallCheck(a,n){if(!(a instanceof n))throw new TypeError("Cannot call a class as a function");}function _defineProperties(e,r){for(var t=0;t<r.length;t++){var o=r[t];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,_toPropertyKey(o.key),o);}}function _createClass(e,r,t){return r&&_defineProperties(e.prototype,r),t&&_defineProperties(e,t),Object.defineProperty(e,"prototype",{writable:!1}),e;}function _toPropertyKey(t){var i=_toPrimitive(t,"string");return"symbol"==_typeof(i)?i:i+"";}function _toPrimitive(t,r){if("object"!=_typeof(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var i=e.call(t,r||"default");if("object"!=_typeof(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.");}return("string"===r?String:Number)(t);}function _slicedToArray(r,e){return _arrayWithHoles(r)||_iterableToArrayLimit(r,e)||_unsupportedIterableToArray(r,e)||_nonIterableRest();}function _nonIterableRest(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");}function _unsupportedIterableToArray(r,a){if(r){if("string"==typeof r)return _arrayLikeToArray(r,a);var t={}.toString.call(r).slice(8,-1);return"Object"===t&&r.constructor&&(t=r.constructor.name),"Map"===t||"Set"===t?Array.from(r):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?_arrayLikeToArray(r,a):void 0;}}function _arrayLikeToArray(r,a){(null==a||a>r.length)&&(a=r.length);for(var e=0,n=Array(a);e<a;e++)n[e]=r[e];return n;}function _iterableToArrayLimit(r,l){var t=null==r?null:"undefined"!=typeof Symbol&&r[Symbol.iterator]||r["@@iterator"];if(null!=t){var e,n,i,u,a=[],f=!0,o=!1;try{if(i=(t=t.call(r)).next,0===l){if(Object(t)!==t)return;f=!1;}else for(;!(f=(e=i.call(t)).done)&&(a.push(e.value),a.length!==l);f=!0);}catch(r){o=!0,n=r;}finally{try{if(!f&&null!=t["return"]&&(u=t["return"](),Object(u)!==u))return;}finally{if(o)throw n;}}return a;}}function _arrayWithHoles(r){if(Array.isArray(r))return r;}function _typeof(o){"@babel/helpers - typeof";return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(o){return typeof o;}:function(o){return o&&"function"==typeof Symbol&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o;},_typeof(o);}function _wrapAsyncGenerator(e){return function(){return new AsyncGenerator(e.apply(this,arguments));};}function AsyncGenerator(e){var r,t;function resume(r,t){try{var n=e[r](t),o=n.value,u=o instanceof _OverloadYield;Promise.resolve(u?o.v:o).then(function(t){if(u){var i="return"===r?"return":"next";if(!o.k||t.done)return resume(i,t);t=e[i](t).value;}settle(n.done?"return":"normal",t);},function(e){resume("throw",e);});}catch(e){settle("throw",e);}}function settle(e,n){switch(e){case"return":r.resolve({value:n,done:!0});break;case"throw":r.reject(n);break;default:r.resolve({value:n,done:!1});}(r=r.next)?resume(r.key,r.arg):t=null;}this._invoke=function(e,n){return new Promise(function(o,u){var i={key:e,arg:n,resolve:o,reject:u,next:null};t?t=t.next=i:(r=t=i,resume(e,n));});},"function"!=typeof e["return"]&&(this["return"]=void 0);}AsyncGenerator.prototype["function"==typeof Symbol&&Symbol.asyncIterator||"@@asyncIterator"]=function(){return this;},AsyncGenerator.prototype.next=function(e){return this._invoke("next",e);},AsyncGenerator.prototype["throw"]=function(e){return this._invoke("throw",e);},AsyncGenerator.prototype["return"]=function(e){return this._invoke("return",e);};function _awaitAsyncGenerator(e){return new _OverloadYield(e,0);}function _asyncGeneratorDelegate(t){var e={},n=!1;function pump(e,r){return n=!0,r=new Promise(function(n){n(t[e](r));}),{done:!1,value:new _OverloadYield(r,1)};}return e["undefined"!=typeof Symbol&&Symbol.iterator||"@@iterator"]=function(){return this;},e.next=function(t){return n?(n=!1,t):pump("next",t);},"function"==typeof t["throw"]&&(e["throw"]=function(t){if(n)throw n=!1,t;return pump("throw",t);}),"function"==typeof t["return"]&&(e["return"]=function(t){return n?(n=!1,t):pump("return",t);}),e;}function _OverloadYield(e,d){this.v=e,this.k=d;}function _asyncIterator(r){var n,t,o,e=2;for("undefined"!=typeof Symbol&&(t=Symbol.asyncIterator,o=Symbol.iterator);e--;){if(t&&null!=(n=r[t]))return n.call(r);if(o&&null!=(n=r[o]))return new AsyncFromSyncIterator(n.call(r));t="@@asyncIterator",o="@@iterator";}throw new TypeError("Object is not async iterable");}function AsyncFromSyncIterator(r){function AsyncFromSyncIteratorContinuation(r){if(Object(r)!==r)return Promise.reject(new TypeError(r+" is not an object."));var n=r.done;return Promise.resolve(r.value).then(function(r){return{value:r,done:n};});}return AsyncFromSyncIterator=function AsyncFromSyncIterator(r){this.s=r,this.n=r.next;},AsyncFromSyncIterator.prototype={s:null,n:null,next:function next(){return AsyncFromSyncIteratorContinuation(this.n.apply(this.s,arguments));},"return":function _return(r){var n=this.s["return"];return void 0===n?Promise.resolve({value:r,done:!0}):AsyncFromSyncIteratorContinuation(n.apply(this.s,arguments));},"throw":function _throw(r){var n=this.s["return"];return void 0===n?Promise.reject(r):AsyncFromSyncIteratorContinuation(n.apply(this.s,arguments));}},new AsyncFromSyncIterator(r);}var qs=require('qs');function _interopDefaultLegacy(e){return e&&_typeof(e)==='object'&&'default'in e?e:{'default':e};}var qs__default=/*#__PURE__*/_interopDefaultLegacy(qs);var PureCloudRegionHosts={us_east_1:'mypurecloud.com',eu_west_1:'mypurecloud.ie',ap_southeast_2:'mypurecloud.com.au',ap_northeast_1:'mypurecloud.jp',eu_central_1:'mypurecloud.de',us_west_2:'usw2.pure.cloud',ca_central_1:'cac1.pure.cloud',ap_northeast_2:'apne2.pure.cloud',eu_west_2:'euw2.pure.cloud',ap_south_1:'aps1.pure.cloud',us_east_2:'use2.us-gov-pure.cloud',sa_east_1:'sae1.pure.cloud',me_central_1:'mec1.pure.cloud',ap_northeast_3:'apne3.pure.cloud',eu_central_2:'euc2.pure.cloud'};var global$1=typeof global!=="undefined"?global:typeof self!=="undefined"?self:typeof window!=="undefined"?window:{};// shim for using process in browser
5568
5568
  // based off https://github.com/defunctzombie/node-process/blob/master/browser.js
5569
5569
  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
5570
5570
  return setTimeout(fun,0);}// if setTimeout wasn't available but was latter defined
@@ -6297,10 +6297,10 @@ if(onDownloadProgress){var _progressEventReducer=progressEventReducer(onDownload
6297
6297
  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
6298
6298
  // eslint-disable-next-line func-names
6299
6299
  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
6300
- request.send(requestData||null);});};var composeSignals=function composeSignals(signals,timeout){var _signals=signals=signals?signals.filter(Boolean):[],length=_signals.length;if(timeout||length){var controller=new AbortController();var aborted;var onabort=function onabort(reason){if(!aborted){aborted=true;unsubscribe();var err=reason instanceof Error?reason:this.reason;controller.abort(err instanceof AxiosError?err:new CanceledError(err instanceof Error?err.message:err));}};var timer=timeout&&setTimeout(function(){timer=null;onabort(new AxiosError("timeout ".concat(timeout," of ms exceeded"),AxiosError.ETIMEDOUT));},timeout);var unsubscribe=function unsubscribe(){if(signals){timer&&clearTimeout(timer);timer=null;signals.forEach(function(signal){signal.unsubscribe?signal.unsubscribe(onabort):signal.removeEventListener('abort',onabort);});signals=null;}};signals.forEach(function(signal){return signal.addEventListener('abort',onabort);});var signal=controller.signal;signal.unsubscribe=function(){return utils$1.asap(unsubscribe);};return signal;}};var composeSignals$1=composeSignals;var streamChunk=/*#__PURE__*/_regeneratorRuntime().mark(function streamChunk(chunk,chunkSize){var len,pos,end;return _regeneratorRuntime().wrap(function streamChunk$(_context){while(1)switch(_context.prev=_context.next){case 0:len=chunk.byteLength;if(!(!chunkSize||len<chunkSize)){_context.next=5;break;}_context.next=4;return chunk;case 4:return _context.abrupt("return");case 5:pos=0;case 6:if(!(pos<len)){_context.next=13;break;}end=pos+chunkSize;_context.next=10;return chunk.slice(pos,end);case 10:pos=end;_context.next=6;break;case 13:case"end":return _context.stop();}},streamChunk);});var readBytes=/*#__PURE__*/function(){var _ref=_wrapAsyncGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(iterable,chunkSize){var _iteratorAbruptCompletion,_didIteratorError,_iteratorError,_iterator2,_step,chunk;return _regeneratorRuntime().wrap(function _callee$(_context2){while(1)switch(_context2.prev=_context2.next){case 0:_iteratorAbruptCompletion=false;_didIteratorError=false;_context2.prev=2;_iterator2=_asyncIterator(readStream(iterable));case 4:_context2.next=6;return _awaitAsyncGenerator(_iterator2.next());case 6:if(!(_iteratorAbruptCompletion=!(_step=_context2.sent).done)){_context2.next=12;break;}chunk=_step.value;return _context2.delegateYield(_asyncGeneratorDelegate(_asyncIterator(streamChunk(chunk,chunkSize)),_awaitAsyncGenerator),"t0",9);case 9:_iteratorAbruptCompletion=false;_context2.next=4;break;case 12:_context2.next=18;break;case 14:_context2.prev=14;_context2.t1=_context2["catch"](2);_didIteratorError=true;_iteratorError=_context2.t1;case 18:_context2.prev=18;_context2.prev=19;if(!(_iteratorAbruptCompletion&&_iterator2["return"]!=null)){_context2.next=23;break;}_context2.next=23;return _awaitAsyncGenerator(_iterator2["return"]());case 23:_context2.prev=23;if(!_didIteratorError){_context2.next=26;break;}throw _iteratorError;case 26:return _context2.finish(23);case 27:return _context2.finish(18);case 28:case"end":return _context2.stop();}},_callee,null,[[2,14,18,28],[19,,23,27]]);}));return function readBytes(_x,_x2){return _ref.apply(this,arguments);};}();var readStream=/*#__PURE__*/function(){var _ref2=_wrapAsyncGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee2(stream){var reader,_yield$_awaitAsyncGen,done,value;return _regeneratorRuntime().wrap(function _callee2$(_context3){while(1)switch(_context3.prev=_context3.next){case 0:if(!stream[Symbol.asyncIterator]){_context3.next=3;break;}return _context3.delegateYield(_asyncGeneratorDelegate(_asyncIterator(stream),_awaitAsyncGenerator),"t0",2);case 2:return _context3.abrupt("return");case 3:reader=stream.getReader();_context3.prev=4;case 5:_context3.next=7;return _awaitAsyncGenerator(reader.read());case 7:_yield$_awaitAsyncGen=_context3.sent;done=_yield$_awaitAsyncGen.done;value=_yield$_awaitAsyncGen.value;if(!done){_context3.next=12;break;}return _context3.abrupt("break",16);case 12:_context3.next=14;return value;case 14:_context3.next=5;break;case 16:_context3.prev=16;_context3.next=19;return _awaitAsyncGenerator(reader.cancel());case 19:return _context3.finish(16);case 20:case"end":return _context3.stop();}},_callee2,null,[[4,,16,20]]);}));return function readStream(_x3){return _ref2.apply(this,arguments);};}();var trackStream=function trackStream(stream,chunkSize,onProgress,onFinish){var iterator=readBytes(stream,chunkSize);var bytes=0;var done;var _onFinish=function _onFinish(e){if(!done){done=true;onFinish&&onFinish(e);}};return new ReadableStream({pull:function pull(controller){return _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee3(){var _yield$iterator$next,_done,value,len,loadedBytes;return _regeneratorRuntime().wrap(function _callee3$(_context4){while(1)switch(_context4.prev=_context4.next){case 0:_context4.prev=0;_context4.next=3;return iterator.next();case 3:_yield$iterator$next=_context4.sent;_done=_yield$iterator$next.done;value=_yield$iterator$next.value;if(!_done){_context4.next=10;break;}_onFinish();controller.close();return _context4.abrupt("return");case 10:len=value.byteLength;if(onProgress){loadedBytes=bytes+=len;onProgress(loadedBytes);}controller.enqueue(new Uint8Array(value));_context4.next=19;break;case 15:_context4.prev=15;_context4.t0=_context4["catch"](0);_onFinish(_context4.t0);throw _context4.t0;case 19:case"end":return _context4.stop();}},_callee3,null,[[0,15]]);}))();},cancel:function cancel(reason){_onFinish(reason);return iterator["return"]();}},{highWaterMark:2});};var isFetchSupported=typeof fetch==='function'&&typeof Request==='function'&&typeof Response==='function';var isReadableStreamSupported=isFetchSupported&&typeof ReadableStream==='function';// used only inside the fetch adapter
6301
- var encodeText=isFetchSupported&&(typeof TextEncoder==='function'?function(encoder){return function(str){return encoder.encode(str);};}(new TextEncoder()):(/*#__PURE__*/function(){var _ref11=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee4(str){return _regeneratorRuntime().wrap(function _callee4$(_context5){while(1)switch(_context5.prev=_context5.next){case 0:_context5.t0=Uint8Array;_context5.next=3;return new Response(str).arrayBuffer();case 3:_context5.t1=_context5.sent;return _context5.abrupt("return",new _context5.t0(_context5.t1));case 5:case"end":return _context5.stop();}},_callee4);}));return function(_x4){return _ref11.apply(this,arguments);};}()));var test=function test(fn){try{for(var _len5=arguments.length,args=new Array(_len5>1?_len5-1:0),_key6=1;_key6<_len5;_key6++){args[_key6-1]=arguments[_key6];}return!!fn.apply(void 0,args);}catch(e){return false;}};var supportsRequestStream=isReadableStreamSupported&&test(function(){var duplexAccessed=false;var hasContentType=new Request(platform.origin,{body:new ReadableStream(),method:'POST',get duplex(){duplexAccessed=true;return'half';}}).headers.has('Content-Type');return duplexAccessed&&!hasContentType;});var DEFAULT_CHUNK_SIZE=64*1024;var supportsResponseStream=isReadableStreamSupported&&test(function(){return utils$1.isReadableStream(new Response('').body);});var resolvers={stream:supportsResponseStream&&function(res){return res.body;}};isFetchSupported&&function(res){['text','arrayBuffer','blob','formData','stream'].forEach(function(type){!resolvers[type]&&(resolvers[type]=utils$1.isFunction(res[type])?function(res){return res[type]();}:function(_,config){throw new AxiosError("Response type '".concat(type,"' is not supported"),AxiosError.ERR_NOT_SUPPORT,config);});});}(new Response());var getBodyLength=/*#__PURE__*/function(){var _ref12=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee5(body){var _request;return _regeneratorRuntime().wrap(function _callee5$(_context6){while(1)switch(_context6.prev=_context6.next){case 0:if(!(body==null)){_context6.next=2;break;}return _context6.abrupt("return",0);case 2:if(!utils$1.isBlob(body)){_context6.next=4;break;}return _context6.abrupt("return",body.size);case 4:if(!utils$1.isSpecCompliantForm(body)){_context6.next=9;break;}_request=new Request(platform.origin,{method:'POST',body:body});_context6.next=8;return _request.arrayBuffer();case 8:return _context6.abrupt("return",_context6.sent.byteLength);case 9:if(!(utils$1.isArrayBufferView(body)||utils$1.isArrayBuffer(body))){_context6.next=11;break;}return _context6.abrupt("return",body.byteLength);case 11:if(utils$1.isURLSearchParams(body)){body=body+'';}if(!utils$1.isString(body)){_context6.next=16;break;}_context6.next=15;return encodeText(body);case 15:return _context6.abrupt("return",_context6.sent.byteLength);case 16:case"end":return _context6.stop();}},_callee5);}));return function getBodyLength(_x5){return _ref12.apply(this,arguments);};}();var resolveBodyLength=/*#__PURE__*/function(){var _ref13=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee6(headers,body){var length;return _regeneratorRuntime().wrap(function _callee6$(_context7){while(1)switch(_context7.prev=_context7.next){case 0:length=utils$1.toFiniteNumber(headers.getContentLength());return _context7.abrupt("return",length==null?getBodyLength(body):length);case 2:case"end":return _context7.stop();}},_callee6);}));return function resolveBodyLength(_x6,_x7){return _ref13.apply(this,arguments);};}();var fetchAdapter=isFetchSupported&&(/*#__PURE__*/function(){var _ref14=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee7(config){var _resolveConfig,url,method,data,signal,cancelToken,timeout,onDownloadProgress,onUploadProgress,responseType,headers,_resolveConfig$withCr,withCredentials,fetchOptions,composedSignal,request,unsubscribe,requestContentLength,_request,contentTypeHeader,_progressEventDecorat,_progressEventDecorat2,onProgress,flush,isCredentialsSupported,response,isStreamResponse,options,responseContentLength,_ref15,_ref16,_onProgress,_flush,responseData;return _regeneratorRuntime().wrap(function _callee7$(_context8){while(1)switch(_context8.prev=_context8.next){case 0:_resolveConfig=resolveConfig(config),url=_resolveConfig.url,method=_resolveConfig.method,data=_resolveConfig.data,signal=_resolveConfig.signal,cancelToken=_resolveConfig.cancelToken,timeout=_resolveConfig.timeout,onDownloadProgress=_resolveConfig.onDownloadProgress,onUploadProgress=_resolveConfig.onUploadProgress,responseType=_resolveConfig.responseType,headers=_resolveConfig.headers,_resolveConfig$withCr=_resolveConfig.withCredentials,withCredentials=_resolveConfig$withCr===void 0?'same-origin':_resolveConfig$withCr,fetchOptions=_resolveConfig.fetchOptions;responseType=responseType?(responseType+'').toLowerCase():'text';composedSignal=composeSignals$1([signal,cancelToken&&cancelToken.toAbortSignal()],timeout);unsubscribe=composedSignal&&composedSignal.unsubscribe&&function(){composedSignal.unsubscribe();};_context8.prev=4;_context8.t0=onUploadProgress&&supportsRequestStream&&method!=='get'&&method!=='head';if(!_context8.t0){_context8.next=11;break;}_context8.next=9;return resolveBodyLength(headers,data);case 9:_context8.t1=requestContentLength=_context8.sent;_context8.t0=_context8.t1!==0;case 11:if(!_context8.t0){_context8.next=15;break;}_request=new Request(url,{method:'POST',body:data,duplex:"half"});if(utils$1.isFormData(data)&&(contentTypeHeader=_request.headers.get('content-type'))){headers.setContentType(contentTypeHeader);}if(_request.body){_progressEventDecorat=progressEventDecorator(requestContentLength,progressEventReducer(asyncDecorator(onUploadProgress))),_progressEventDecorat2=_slicedToArray(_progressEventDecorat,2),onProgress=_progressEventDecorat2[0],flush=_progressEventDecorat2[1];data=trackStream(_request.body,DEFAULT_CHUNK_SIZE,onProgress,flush);}case 15:if(!utils$1.isString(withCredentials)){withCredentials=withCredentials?'include':'omit';}// Cloudflare Workers throws when credentials are defined
6300
+ 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
6301
+ var encodeText=isFetchSupported&&(typeof TextEncoder==='function'?function(encoder){return function(str){return encoder.encode(str);};}(new TextEncoder()):(/*#__PURE__*/function(){var _ref11=_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee4(str){var _t3,_t4;return _regenerator().w(function(_context5){while(1)switch(_context5.n){case 0:_t3=Uint8Array;_context5.n=1;return new Response(str).arrayBuffer();case 1:_t4=_context5.v;return _context5.a(2,new _t3(_t4));}},_callee4);}));return function(_x4){return _ref11.apply(this,arguments);};}()));var test=function test(fn){try{for(var _len5=arguments.length,args=new Array(_len5>1?_len5-1:0),_key6=1;_key6<_len5;_key6++){args[_key6-1]=arguments[_key6];}return!!fn.apply(void 0,args);}catch(e){return false;}};var supportsRequestStream=isReadableStreamSupported&&test(function(){var duplexAccessed=false;var hasContentType=new Request(platform.origin,{body:new ReadableStream(),method:'POST',get duplex(){duplexAccessed=true;return'half';}}).headers.has('Content-Type');return duplexAccessed&&!hasContentType;});var DEFAULT_CHUNK_SIZE=64*1024;var supportsResponseStream=isReadableStreamSupported&&test(function(){return utils$1.isReadableStream(new Response('').body);});var resolvers={stream:supportsResponseStream&&function(res){return res.body;}};isFetchSupported&&function(res){['text','arrayBuffer','blob','formData','stream'].forEach(function(type){!resolvers[type]&&(resolvers[type]=utils$1.isFunction(res[type])?function(res){return res[type]();}:function(_,config){throw new AxiosError("Response type '".concat(type,"' is not supported"),AxiosError.ERR_NOT_SUPPORT,config);});});}(new Response());var getBodyLength=/*#__PURE__*/function(){var _ref12=_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee5(body){var _request;return _regenerator().w(function(_context6){while(1)switch(_context6.n){case 0:if(!(body==null)){_context6.n=1;break;}return _context6.a(2,0);case 1:if(!utils$1.isBlob(body)){_context6.n=2;break;}return _context6.a(2,body.size);case 2:if(!utils$1.isSpecCompliantForm(body)){_context6.n=4;break;}_request=new Request(platform.origin,{method:'POST',body:body});_context6.n=3;return _request.arrayBuffer();case 3:return _context6.a(2,_context6.v.byteLength);case 4:if(!(utils$1.isArrayBufferView(body)||utils$1.isArrayBuffer(body))){_context6.n=5;break;}return _context6.a(2,body.byteLength);case 5:if(utils$1.isURLSearchParams(body)){body=body+'';}if(!utils$1.isString(body)){_context6.n=7;break;}_context6.n=6;return encodeText(body);case 6:return _context6.a(2,_context6.v.byteLength);}},_callee5);}));return function getBodyLength(_x5){return _ref12.apply(this,arguments);};}();var resolveBodyLength=/*#__PURE__*/function(){var _ref13=_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee6(headers,body){var length;return _regenerator().w(function(_context7){while(1)switch(_context7.n){case 0:length=utils$1.toFiniteNumber(headers.getContentLength());return _context7.a(2,length==null?getBodyLength(body):length);}},_callee6);}));return function resolveBodyLength(_x6,_x7){return _ref13.apply(this,arguments);};}();var fetchAdapter=isFetchSupported&&(/*#__PURE__*/function(){var _ref14=_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee7(config){var _resolveConfig,url,method,data,signal,cancelToken,timeout,onDownloadProgress,onUploadProgress,responseType,headers,_resolveConfig$withCr,withCredentials,fetchOptions,composedSignal,request,unsubscribe,requestContentLength,_request,contentTypeHeader,_progressEventDecorat,_progressEventDecorat2,onProgress,flush,isCredentialsSupported,response,isStreamResponse,options,responseContentLength,_ref15,_ref16,_onProgress,_flush,responseData,_t5,_t6,_t7;return _regenerator().w(function(_context8){while(1)switch(_context8.n){case 0:_resolveConfig=resolveConfig(config),url=_resolveConfig.url,method=_resolveConfig.method,data=_resolveConfig.data,signal=_resolveConfig.signal,cancelToken=_resolveConfig.cancelToken,timeout=_resolveConfig.timeout,onDownloadProgress=_resolveConfig.onDownloadProgress,onUploadProgress=_resolveConfig.onUploadProgress,responseType=_resolveConfig.responseType,headers=_resolveConfig.headers,_resolveConfig$withCr=_resolveConfig.withCredentials,withCredentials=_resolveConfig$withCr===void 0?'same-origin':_resolveConfig$withCr,fetchOptions=_resolveConfig.fetchOptions;responseType=responseType?(responseType+'').toLowerCase():'text';composedSignal=composeSignals$1([signal,cancelToken&&cancelToken.toAbortSignal()],timeout);unsubscribe=composedSignal&&composedSignal.unsubscribe&&function(){composedSignal.unsubscribe();};_context8.p=1;_t5=onUploadProgress&&supportsRequestStream&&method!=='get'&&method!=='head';if(!_t5){_context8.n=3;break;}_context8.n=2;return resolveBodyLength(headers,data);case 2:_t6=requestContentLength=_context8.v;_t5=_t6!==0;case 3:if(!_t5){_context8.n=4;break;}_request=new Request(url,{method:'POST',body:data,duplex:"half"});if(utils$1.isFormData(data)&&(contentTypeHeader=_request.headers.get('content-type'))){headers.setContentType(contentTypeHeader);}if(_request.body){_progressEventDecorat=progressEventDecorator(requestContentLength,progressEventReducer(asyncDecorator(onUploadProgress))),_progressEventDecorat2=_slicedToArray(_progressEventDecorat,2),onProgress=_progressEventDecorat2[0],flush=_progressEventDecorat2[1];data=trackStream(_request.body,DEFAULT_CHUNK_SIZE,onProgress,flush);}case 4:if(!utils$1.isString(withCredentials)){withCredentials=withCredentials?'include':'omit';}// Cloudflare Workers throws when credentials are defined
6302
6302
  // see https://github.com/cloudflare/workerd/issues/902
6303
- isCredentialsSupported="credentials"in Request.prototype;request=new Request(url,_objectSpread(_objectSpread({},fetchOptions),{},{signal:composedSignal,method:method.toUpperCase(),headers:headers.normalize().toJSON(),body:data,duplex:"half",credentials:isCredentialsSupported?withCredentials:undefined}));_context8.next=20;return fetch(request);case 20:response=_context8.sent;isStreamResponse=supportsResponseStream&&(responseType==='stream'||responseType==='response');if(supportsResponseStream&&(onDownloadProgress||isStreamResponse&&unsubscribe)){options={};['status','statusText','headers'].forEach(function(prop){options[prop]=response[prop];});responseContentLength=utils$1.toFiniteNumber(response.headers.get('content-length'));_ref15=onDownloadProgress&&progressEventDecorator(responseContentLength,progressEventReducer(asyncDecorator(onDownloadProgress),true))||[],_ref16=_slicedToArray(_ref15,2),_onProgress=_ref16[0],_flush=_ref16[1];response=new Response(trackStream(response.body,DEFAULT_CHUNK_SIZE,_onProgress,function(){_flush&&_flush();unsubscribe&&unsubscribe();}),options);}responseType=responseType||'text';_context8.next=26;return resolvers[utils$1.findKey(resolvers,responseType)||'text'](response,config);case 26:responseData=_context8.sent;!isStreamResponse&&unsubscribe&&unsubscribe();_context8.next=30;return new Promise(function(resolve,reject){settle(resolve,reject,{data:responseData,headers:AxiosHeaders$1.from(response.headers),status:response.status,statusText:response.statusText,config:config,request:request});});case 30:return _context8.abrupt("return",_context8.sent);case 33:_context8.prev=33;_context8.t2=_context8["catch"](4);unsubscribe&&unsubscribe();if(!(_context8.t2&&_context8.t2.name==='TypeError'&&/Load failed|fetch/i.test(_context8.t2.message))){_context8.next=38;break;}throw Object.assign(new AxiosError('Network Error',AxiosError.ERR_NETWORK,config,request),{cause:_context8.t2.cause||_context8.t2});case 38:throw AxiosError.from(_context8.t2,_context8.t2&&_context8.t2.code,config,request);case 39:case"end":return _context8.stop();}},_callee7,null,[[4,33]]);}));return function(_x8){return _ref14.apply(this,arguments);};}());var knownAdapters={http:httpAdapter,xhr:xhrAdapter,fetch:fetchAdapter};utils$1.forEach(knownAdapters,function(fn,value){if(fn){try{Object.defineProperty(fn,'name',{value:value});}catch(e){// eslint-disable-next-line no-empty
6303
+ isCredentialsSupported="credentials"in Request.prototype;request=new Request(url,_objectSpread(_objectSpread({},fetchOptions),{},{signal:composedSignal,method:method.toUpperCase(),headers:headers.normalize().toJSON(),body:data,duplex:"half",credentials:isCredentialsSupported?withCredentials:undefined}));_context8.n=5;return fetch(request);case 5:response=_context8.v;isStreamResponse=supportsResponseStream&&(responseType==='stream'||responseType==='response');if(supportsResponseStream&&(onDownloadProgress||isStreamResponse&&unsubscribe)){options={};['status','statusText','headers'].forEach(function(prop){options[prop]=response[prop];});responseContentLength=utils$1.toFiniteNumber(response.headers.get('content-length'));_ref15=onDownloadProgress&&progressEventDecorator(responseContentLength,progressEventReducer(asyncDecorator(onDownloadProgress),true))||[],_ref16=_slicedToArray(_ref15,2),_onProgress=_ref16[0],_flush=_ref16[1];response=new Response(trackStream(response.body,DEFAULT_CHUNK_SIZE,_onProgress,function(){_flush&&_flush();unsubscribe&&unsubscribe();}),options);}responseType=responseType||'text';_context8.n=6;return resolvers[utils$1.findKey(resolvers,responseType)||'text'](response,config);case 6:responseData=_context8.v;!isStreamResponse&&unsubscribe&&unsubscribe();_context8.n=7;return new Promise(function(resolve,reject){settle(resolve,reject,{data:responseData,headers:AxiosHeaders$1.from(response.headers),status:response.status,statusText:response.statusText,config:config,request:request});});case 7:return _context8.a(2,_context8.v);case 8:_context8.p=8;_t7=_context8.v;unsubscribe&&unsubscribe();if(!(_t7&&_t7.name==='TypeError'&&/Load failed|fetch/i.test(_t7.message))){_context8.n=9;break;}throw Object.assign(new AxiosError('Network Error',AxiosError.ERR_NETWORK,config,request),{cause:_t7.cause||_t7});case 9:throw AxiosError.from(_t7,_t7&&_t7.code,config,request);case 10:return _context8.a(2);}},_callee7,null,[[1,8]]);}));return function(_x8){return _ref14.apply(this,arguments);};}());var knownAdapters={http:httpAdapter,xhr:xhrAdapter,fetch:fetchAdapter};utils$1.forEach(knownAdapters,function(fn,value){if(fn){try{Object.defineProperty(fn,'name',{value:value});}catch(e){// eslint-disable-next-line no-empty
6304
6304
  }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};/**
6305
6305
  * Throws a `CanceledError` if cancellation has been requested.
6306
6306
  *
@@ -6349,10 +6349,10 @@ console.warn("".concat(opt," is likely a misspelling of ").concat(correctSpellin
6349
6349
  * @param {?Object} config
6350
6350
  *
6351
6351
  * @returns {Promise} The Promise to be fulfilled
6352
- */return _createClass(Axios,[{key:"request",value:(function(){var _request2=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee8(configOrUrl,config){var dummy,stack;return _regeneratorRuntime().wrap(function _callee8$(_context9){while(1)switch(_context9.prev=_context9.next){case 0:_context9.prev=0;_context9.next=3;return this._request(configOrUrl,config);case 3:return _context9.abrupt("return",_context9.sent);case 6:_context9.prev=6;_context9.t0=_context9["catch"](0);if(_context9.t0 instanceof Error){dummy={};Error.captureStackTrace?Error.captureStackTrace(dummy):dummy=new Error();// slice off the Error: ... line
6353
- stack=dummy.stack?dummy.stack.replace(/^.+\n/,''):'';try{if(!_context9.t0.stack){_context9.t0.stack=stack;// match without the 2 top stack lines
6354
- }else if(stack&&!String(_context9.t0.stack).endsWith(stack.replace(/^.+\n.+\n/,''))){_context9.t0.stack+='\n'+stack;}}catch(e){// ignore the case where "stack" is an un-writable property
6355
- }}throw _context9.t0;case 10:case"end":return _context9.stop();}},_callee8,this,[[0,6]]);}));function request(_x9,_x0){return _request2.apply(this,arguments);}return request;}())},{key:"_request",value:function _request(configOrUrl,config){/*eslint no-param-reassign:0*/// Allow for axios('example/url'[, config]) a la fetch API
6352
+ */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
6353
+ stack=dummy.stack?dummy.stack.replace(/^.+\n/,''):'';try{if(!_t8.stack){_t8.stack=stack;// match without the 2 top stack lines
6354
+ }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
6355
+ }}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
6356
6356
  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
6357
6357
  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
6358
6358
  config.method=(config.method||this.defaults.method||'get').toLowerCase();// Flatten headers
@@ -6431,10 +6431,10 @@ var axios$1=axios;var AbstractHttpClient=/*#__PURE__*/function(){function Abstra
6431
6431
  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
6432
6432
  },{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
6433
6433
  },{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
6434
- var DefaultHttpClient=/*#__PURE__*/function(_AbstractHttpClient){function DefaultHttpClient(timeout,httpsAgent){var _this2;_classCallCheck(this,DefaultHttpClient);_this2=_callSuper(this,DefaultHttpClient);if(timeout!==null&&timeout!==undefined)_this2.setTimeout(timeout);else _this2.timeout=16000;if(httpsAgent!==null&&httpsAgent!==undefined)_this2.setHttpsAgent(httpsAgent);else _this2.httpsAgent;_this2._axiosInstance=axios$1.create({});return _this2;}_inherits(DefaultHttpClient,_AbstractHttpClient);return _createClass(DefaultHttpClient,[{key:"enableHooks",value:function enableHooks(){var _this3=this;if(this.preHook&&typeof this.preHook==='function'){if(this.requestInterceptorId!==undefined){axios$1.interceptors.request.eject(this.requestInterceptorId);}this.requestInterceptorId=this._axiosInstance.interceptors.request.use(/*#__PURE__*/function(){var _ref21=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee9(config){return _regeneratorRuntime().wrap(function _callee9$(_context0){while(1)switch(_context0.prev=_context0.next){case 0:_context0.next=2;return _this3.preHook(config);case 2:config=_context0.sent;return _context0.abrupt("return",config);case 4:case"end":return _context0.stop();}},_callee9);}));return function(_x1){return _ref21.apply(this,arguments);};}(),function(error){// Handle errors before the request is sent
6434
+ 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
6435
6435
  console.error('Request Pre-Hook Error:',error.message);return Promise.reject(error);});}if(this.postHook&&typeof this.postHook==='function'){// Response interceptor (for post-hooks)
6436
- if(this.responseInterceptorId!==undefined){axios$1.interceptors.response.eject(this.responseInterceptorId);}this.responseInterceptorId=this._axiosInstance.interceptors.response.use(/*#__PURE__*/function(){var _ref22=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee0(response){return _regeneratorRuntime().wrap(function _callee0$(_context1){while(1)switch(_context1.prev=_context1.next){case 0:_context1.next=2;return _this3.postHook(response);case 2:response=_context1.sent;return _context1.abrupt("return",response);case 4:case"end":return _context1.stop();}},_callee0);}));return function(_x10){return _ref22.apply(this,arguments);};}(),/*#__PURE__*/function(){var _ref23=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee1(error){return _regeneratorRuntime().wrap(function _callee1$(_context10){while(1)switch(_context10.prev=_context10.next){case 0:console.error('Post-Hook: Response Error',error.message);// Optionally call post-hook in case of errors
6437
- return _context10.abrupt("return",Promise.reject(error));case 2:case"end":return _context10.stop();}},_callee1);}));return function(_x11){return _ref23.apply(this,arguments);};}());}}},{key:"request",value:function request(httpRequestOptions){if(!(httpRequestOptions instanceof HttpRequestOptions)){throw new Error("httpRequestOptions must be instance of HttpRequestOptions ");}var config=this.toAxiosConfig(httpRequestOptions);return this._axiosInstance.request(config);}// Method to generate Axios-compatible config
6436
+ 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
6437
+ 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
6438
6438
  },{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:/**
6439
6439
  * Singleton getter
6440
6440
  */function get(){return Configuration.instance;}/**
@@ -6458,7 +6458,7 @@ if(env)this.environment=env;else this.environment=this.host?this.host:'mypureclo
6458
6458
  this.environment=this.environment.replace(/\/+$/,'');// Strip protocol and subdomain
6459
6459
  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];}}}]);}();/**
6460
6460
  * @module purecloud-platform-client-v2/ApiClient
6461
- * @version 221.0.0
6461
+ * @version 223.0.0
6462
6462
  */var ApiClient=/*#__PURE__*/function(){/**
6463
6463
  * Manages low level client-server communications, parameter marshalling, etc. There should not be any need for an
6464
6464
  * application to use this class directly - the *Api and model classes provide the public API for the service. The
@@ -6801,7 +6801,7 @@ resolve(data);})["catch"](function(error){var data=error;if(error.response&&erro
6801
6801
  that.config.logger.log('error',error.response.status,httpMethod,url,request.headers,error.response.headers,bodyParam,error.response.data);data=that.returnExtended===true?{status:error.response.status,statusText:error.response.statusText,headers:error.response.headers,body:error.response.data,text:error.response.text,error:error}:error.response.data?error.response.data:error.response.text;}reject(data);});}});}}]);}();var AgentAssistantsApi=/*#__PURE__*/function(){/**
6802
6802
  * AgentAssistants service.
6803
6803
  * @module purecloud-platform-client-v2/api/AgentAssistantsApi
6804
- * @version 221.0.0
6804
+ * @version 223.0.0
6805
6805
  *//**
6806
6806
  * Constructs a new AgentAssistantsApi.
6807
6807
  * @alias module:purecloud-platform-client-v2/api/AgentAssistantsApi
@@ -6862,7 +6862,8 @@ if(assistantId===undefined||assistantId===null){throw'Missing the required param
6862
6862
  * @param {String} opts.limit Number of entities to return. Maximum of 200. Deprecated in favour of pageSize
6863
6863
  * @param {String} opts.pageSize Number of entities to return. Maximum of 200.
6864
6864
  * @param {String} opts.name Return the assistant by the given name.
6865
- */},{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']},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
6865
+ * @param {Object} opts.expand Which fields, if any, to expand
6866
+ */},{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']);}/**
6866
6867
  * Get all queues assigned to any assistant.
6867
6868
  *
6868
6869
  * @param {Object} opts Optional parameters
@@ -6902,7 +6903,7 @@ if(queueId===undefined||queueId===null){throw'Missing the required parameter "qu
6902
6903
  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(){/**
6903
6904
  * AgentCopilot service.
6904
6905
  * @module purecloud-platform-client-v2/api/AgentCopilotApi
6905
- * @version 221.0.0
6906
+ * @version 223.0.0
6906
6907
  *//**
6907
6908
  * Constructs a new AgentCopilotApi.
6908
6909
  * @alias module:purecloud-platform-client-v2/api/AgentCopilotApi
@@ -6924,7 +6925,7 @@ if(assistantId===undefined||assistantId===null){throw'Missing the required param
6924
6925
  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(){/**
6925
6926
  * AgentUI service.
6926
6927
  * @module purecloud-platform-client-v2/api/AgentUIApi
6927
- * @version 221.0.0
6928
+ * @version 223.0.0
6928
6929
  *//**
6929
6930
  * Constructs a new AgentUIApi.
6930
6931
  * @alias module:purecloud-platform-client-v2/api/AgentUIApi
@@ -6958,7 +6959,7 @@ if(agentId===undefined||agentId===null){throw'Missing the required parameter "ag
6958
6959
  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(){/**
6959
6960
  * Alerting service.
6960
6961
  * @module purecloud-platform-client-v2/api/AlertingApi
6961
- * @version 221.0.0
6962
+ * @version 223.0.0
6962
6963
  *//**
6963
6964
  * Constructs a new AlertingApi.
6964
6965
  * @alias module:purecloud-platform-client-v2/api/AlertingApi
@@ -7047,7 +7048,7 @@ if(ruleId===undefined||ruleId===null){throw'Missing the required parameter "rule
7047
7048
  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(){/**
7048
7049
  * Analytics service.
7049
7050
  * @module purecloud-platform-client-v2/api/AnalyticsApi
7050
- * @version 221.0.0
7051
+ * @version 223.0.0
7051
7052
  *//**
7052
7053
  * Constructs a new AnalyticsApi.
7053
7054
  * @alias module:purecloud-platform-client-v2/api/AnalyticsApi
@@ -7715,7 +7716,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
7715
7716
  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(){/**
7716
7717
  * Architect service.
7717
7718
  * @module purecloud-platform-client-v2/api/ArchitectApi
7718
- * @version 221.0.0
7719
+ * @version 223.0.0
7719
7720
  *//**
7720
7721
  * Constructs a new ArchitectApi.
7721
7722
  * @alias module:purecloud-platform-client-v2/api/ArchitectApi
@@ -8281,10 +8282,11 @@ if(flowId===undefined||flowId===null){throw'Missing the required parameter "flow
8281
8282
  * @param {Object} opts.secure Secure
8282
8283
  * @param {Boolean} opts.deleted Include deleted (default to false)
8283
8284
  * @param {Boolean} opts.includeSchemas Include variable schemas (default to false)
8285
+ * @param {Boolean} opts.virtualAgentEnabled Include/exclude virtual agent flows
8284
8286
  * @param {String} opts.publishedAfter Published after
8285
8287
  * @param {String} opts.publishedBefore Published before
8286
8288
  * @param {Array.<String>} opts.divisionId division ID(s)
8287
- */},{key:"getFlows",value:function getFlows(opts){opts=opts||{};return this.apiClient.callApi('/api/v2/flows','GET',{},{'type':this.apiClient.buildCollectionParam(opts['type'],'multi'),'pageNumber':opts['pageNumber'],'pageSize':opts['pageSize'],'sortBy':opts['sortBy'],'sortOrder':opts['sortOrder'],'id':this.apiClient.buildCollectionParam(opts['id'],'multi'),'name':opts['name'],'description':opts['description'],'nameOrDescription':opts['nameOrDescription'],'publishVersionId':opts['publishVersionId'],'editableBy':opts['editableBy'],'lockedBy':opts['lockedBy'],'lockedByClientId':opts['lockedByClientId'],'secure':opts['secure'],'deleted':opts['deleted'],'includeSchemas':opts['includeSchemas'],'publishedAfter':opts['publishedAfter'],'publishedBefore':opts['publishedBefore'],'divisionId':this.apiClient.buildCollectionParam(opts['divisionId'],'multi')},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
8289
+ */},{key:"getFlows",value:function getFlows(opts){opts=opts||{};return this.apiClient.callApi('/api/v2/flows','GET',{},{'type':this.apiClient.buildCollectionParam(opts['type'],'multi'),'pageNumber':opts['pageNumber'],'pageSize':opts['pageSize'],'sortBy':opts['sortBy'],'sortOrder':opts['sortOrder'],'id':this.apiClient.buildCollectionParam(opts['id'],'multi'),'name':opts['name'],'description':opts['description'],'nameOrDescription':opts['nameOrDescription'],'publishVersionId':opts['publishVersionId'],'editableBy':opts['editableBy'],'lockedBy':opts['lockedBy'],'lockedByClientId':opts['lockedByClientId'],'secure':opts['secure'],'deleted':opts['deleted'],'includeSchemas':opts['includeSchemas'],'virtualAgentEnabled':opts['virtualAgentEnabled'],'publishedAfter':opts['publishedAfter'],'publishedBefore':opts['publishedBefore'],'divisionId':this.apiClient.buildCollectionParam(opts['divisionId'],'multi')},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
8288
8290
  * Returns a specific datatable by id
8289
8291
  * Given a datatableId returns the datatable object and schema associated with it.
8290
8292
  * @param {String} datatableId id of datatable
@@ -8846,7 +8848,7 @@ if(milestoneId===undefined||milestoneId===null){throw'Missing the required param
8846
8848
  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(){/**
8847
8849
  * Audit service.
8848
8850
  * @module purecloud-platform-client-v2/api/AuditApi
8849
- * @version 221.0.0
8851
+ * @version 223.0.0
8850
8852
  *//**
8851
8853
  * Constructs a new AuditApi.
8852
8854
  * @alias module:purecloud-platform-client-v2/api/AuditApi
@@ -8896,7 +8898,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
8896
8898
  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(){/**
8897
8899
  * Authorization service.
8898
8900
  * @module purecloud-platform-client-v2/api/AuthorizationApi
8899
- * @version 221.0.0
8901
+ * @version 223.0.0
8900
8902
  *//**
8901
8903
  * Constructs a new AuthorizationApi.
8902
8904
  * @alias module:purecloud-platform-client-v2/api/AuthorizationApi
@@ -9331,7 +9333,7 @@ if(subjectId===undefined||subjectId===null){throw'Missing the required parameter
9331
9333
  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(){/**
9332
9334
  * Billing service.
9333
9335
  * @module purecloud-platform-client-v2/api/BillingApi
9334
- * @version 221.0.0
9336
+ * @version 223.0.0
9335
9337
  *//**
9336
9338
  * Constructs a new BillingApi.
9337
9339
  * @alias module:purecloud-platform-client-v2/api/BillingApi
@@ -9408,7 +9410,7 @@ if(endDate===undefined||endDate===null){throw'Missing the required parameter "en
9408
9410
  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(){/**
9409
9411
  * BusinessRules service.
9410
9412
  * @module purecloud-platform-client-v2/api/BusinessRulesApi
9411
- * @version 221.0.0
9413
+ * @version 223.0.0
9412
9414
  *//**
9413
9415
  * Constructs a new BusinessRulesApi.
9414
9416
  * @alias module:purecloud-platform-client-v2/api/BusinessRulesApi
@@ -9488,7 +9490,7 @@ if(tableVersion===undefined||tableVersion===null){throw'Missing the required par
9488
9490
  * @param {String} tableId Table ID
9489
9491
  * @param {Object} opts Optional parameters
9490
9492
  * @param {String} opts.after The cursor that points to the end of the set of entities that has been returned.
9491
- * @param {String} opts.pageSize Number of entities to return. Maximum of 200.
9493
+ * @param {String} opts.pageSize Number of entities to return. Maximum of 100.
9492
9494
  * @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.
9493
9495
  * getBusinessrulesDecisiontableVersions is a preview method and is subject to both breaking and non-breaking changes at any time without notice
9494
9496
  */},{key:"getBusinessrulesDecisiontableVersions",value:function getBusinessrulesDecisiontableVersions(tableId,opts){opts=opts||{};// verify the required parameter 'tableId' is set
@@ -9497,20 +9499,19 @@ if(tableId===undefined||tableId===null){throw'Missing the required parameter "ta
9497
9499
  *
9498
9500
  * @param {Object} opts Optional parameters
9499
9501
  * @param {String} opts.after The cursor that points to the end of the set of entities that has been returned.
9500
- * @param {String} opts.pageSize Number of entities to return. Maximum of 200.
9502
+ * @param {String} opts.pageSize Number of entities to return. Maximum of 100.
9501
9503
  * @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.
9502
9504
  * getBusinessrulesDecisiontables is a preview method and is subject to both breaking and non-breaking changes at any time without notice
9503
9505
  */},{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']);}/**
9504
9506
  * Search for decision tables.
9505
9507
  *
9506
9508
  * @param {Object} opts Optional parameters
9507
- * @param {String} opts.before The cursor that points to the start of the set of entities that has been returned.
9508
9509
  * @param {String} opts.after The cursor that points to the end of the set of entities that has been returned.
9509
- * @param {String} opts.pageSize Number of entities to return. Maximum of 200.
9510
+ * @param {String} opts.pageSize Number of entities to return. Maximum of 100.
9510
9511
  * @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.
9511
9512
  * @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.
9512
9513
  * getBusinessrulesDecisiontablesSearch is a preview method and is subject to both breaking and non-breaking changes at any time without notice
9513
- */},{key:"getBusinessrulesDecisiontablesSearch",value:function getBusinessrulesDecisiontablesSearch(opts){opts=opts||{};return this.apiClient.callApi('/api/v2/businessrules/decisiontables/search','GET',{},{'before':opts['before'],'after':opts['after'],'pageSize':opts['pageSize'],'schemaId':opts['schemaId'],'name':opts['name']},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
9514
+ */},{key:"getBusinessrulesDecisiontablesSearch",value:function getBusinessrulesDecisiontablesSearch(opts){opts=opts||{};return this.apiClient.callApi('/api/v2/businessrules/decisiontables/search','GET',{},{'after':opts['after'],'pageSize':opts['pageSize'],'schemaId':opts['schemaId'],'name':opts['name']},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
9514
9515
  * Get a schema
9515
9516
  *
9516
9517
  * @param {String} schemaId Schema ID
@@ -9656,7 +9657,7 @@ if(schemaId===undefined||schemaId===null){throw'Missing the required parameter "
9656
9657
  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(){/**
9657
9658
  * CarrierServices service.
9658
9659
  * @module purecloud-platform-client-v2/api/CarrierServicesApi
9659
- * @version 221.0.0
9660
+ * @version 223.0.0
9660
9661
  *//**
9661
9662
  * Constructs a new CarrierServicesApi.
9662
9663
  * @alias module:purecloud-platform-client-v2/api/CarrierServicesApi
@@ -9676,7 +9677,7 @@ if(phoneNumber===undefined||phoneNumber===null){throw'Missing the required param
9676
9677
  */},{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(){/**
9677
9678
  * Chat service.
9678
9679
  * @module purecloud-platform-client-v2/api/ChatApi
9679
- * @version 221.0.0
9680
+ * @version 223.0.0
9680
9681
  *//**
9681
9682
  * Constructs a new ChatApi.
9682
9683
  * @alias module:purecloud-platform-client-v2/api/ChatApi
@@ -9896,7 +9897,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
9896
9897
  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(){/**
9897
9898
  * Coaching service.
9898
9899
  * @module purecloud-platform-client-v2/api/CoachingApi
9899
- * @version 221.0.0
9900
+ * @version 223.0.0
9900
9901
  *//**
9901
9902
  * Constructs a new CoachingApi.
9902
9903
  * @alias module:purecloud-platform-client-v2/api/CoachingApi
@@ -10049,7 +10050,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
10049
10050
  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(){/**
10050
10051
  * ContentManagement service.
10051
10052
  * @module purecloud-platform-client-v2/api/ContentManagementApi
10052
- * @version 221.0.0
10053
+ * @version 223.0.0
10053
10054
  *//**
10054
10055
  * Constructs a new ContentManagementApi.
10055
10056
  * @alias module:purecloud-platform-client-v2/api/ContentManagementApi
@@ -10331,7 +10332,7 @@ if(tagId===undefined||tagId===null){throw'Missing the required parameter "tagId"
10331
10332
  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(){/**
10332
10333
  * Conversations service.
10333
10334
  * @module purecloud-platform-client-v2/api/ConversationsApi
10334
- * @version 221.0.0
10335
+ * @version 223.0.0
10335
10336
  *//**
10336
10337
  * Constructs a new ConversationsApi.
10337
10338
  * @alias module:purecloud-platform-client-v2/api/ConversationsApi
@@ -10788,7 +10789,7 @@ if(mediaId===undefined||mediaId===null){throw'Missing the required parameter "me
10788
10789
  *
10789
10790
  * @param {String} messageId messageId
10790
10791
  * @param {Object} opts Optional parameters
10791
- * @param {Boolean} opts.useNormalizedMessage If true, response removes deprecated fields (textBody, media, stickers) (default to false)
10792
+ * @param {Boolean} opts.useNormalizedMessage If true, response removes deprecated fields (textBody, media) (default to false)
10792
10793
  */},{key:"getConversationsMessageDetails",value:function getConversationsMessageDetails(messageId,opts){opts=opts||{};// verify the required parameter 'messageId' is set
10793
10794
  if(messageId===undefined||messageId===null){throw'Missing the required parameter "messageId" when calling getConversationsMessageDetails';}return this.apiClient.callApi('/api/v2/conversations/messages/{messageId}/details','GET',{'messageId':messageId},{'useNormalizedMessage':opts['useNormalizedMessage']},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
10794
10795
  * Get conversation message
@@ -10796,7 +10797,7 @@ if(messageId===undefined||messageId===null){throw'Missing the required parameter
10796
10797
  * @param {String} conversationId conversationId
10797
10798
  * @param {String} messageId messageId
10798
10799
  * @param {Object} opts Optional parameters
10799
- * @param {Boolean} opts.useNormalizedMessage If true, response removes deprecated fields (textBody, media, stickers) (default to false)
10800
+ * @param {Boolean} opts.useNormalizedMessage If true, response removes deprecated fields (textBody, media) (default to false)
10800
10801
  */},{key:"getConversationsMessageMessage",value:function getConversationsMessageMessage(conversationId,messageId,opts){opts=opts||{};// verify the required parameter 'conversationId' is set
10801
10802
  if(conversationId===undefined||conversationId===null){throw'Missing the required parameter "conversationId" when calling getConversationsMessageMessage';}// verify the required parameter 'messageId' is set
10802
10803
  if(messageId===undefined||messageId===null){throw'Missing the required parameter "messageId" when calling getConversationsMessageMessage';}return this.apiClient.callApi('/api/v2/conversations/messages/{conversationId}/messages/{messageId}','GET',{'conversationId':conversationId,'messageId':messageId},{'useNormalizedMessage':opts['useNormalizedMessage']},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
@@ -10848,11 +10849,22 @@ if(cachedMediaItemId===undefined||cachedMediaItemId===null){throw'Missing the re
10848
10849
  * Get a list of Facebook Permissions
10849
10850
  *
10850
10851
  */},{key:"getConversationsMessagingFacebookPermissions",value:function getConversationsMessagingFacebookPermissions(){return this.apiClient.callApi('/api/v2/conversations/messaging/facebook/permissions','GET',{},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
10852
+ * Get Apple messaging integration identity resolution settings
10853
+ *
10854
+ * @param {String} integrationId Integration ID
10855
+ * getConversationsMessagingIdentityresolutionIntegrationsAppleIntegrationId is a preview method and is subject to both breaking and non-breaking changes at any time without notice
10856
+ */},{key:"getConversationsMessagingIdentityresolutionIntegrationsAppleIntegrationId",value:function getConversationsMessagingIdentityresolutionIntegrationsAppleIntegrationId(integrationId){// verify the required parameter 'integrationId' is set
10857
+ if(integrationId===undefined||integrationId===null){throw'Missing the required parameter "integrationId" when calling getConversationsMessagingIdentityresolutionIntegrationsAppleIntegrationId';}return this.apiClient.callApi('/api/v2/conversations/messaging/identityresolution/integrations/apple/{integrationId}','GET',{'integrationId':integrationId},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
10851
10858
  * Get Facebook messaging integration identity resolution settings
10852
10859
  *
10853
10860
  * @param {String} integrationId Integration ID
10854
10861
  */},{key:"getConversationsMessagingIdentityresolutionIntegrationsFacebookIntegrationId",value:function getConversationsMessagingIdentityresolutionIntegrationsFacebookIntegrationId(integrationId){// verify the required parameter 'integrationId' is set
10855
10862
  if(integrationId===undefined||integrationId===null){throw'Missing the required parameter "integrationId" when calling getConversationsMessagingIdentityresolutionIntegrationsFacebookIntegrationId';}return this.apiClient.callApi('/api/v2/conversations/messaging/identityresolution/integrations/facebook/{integrationId}','GET',{'integrationId':integrationId},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
10863
+ * Get an Instagram integration identity resolution settings
10864
+ *
10865
+ * @param {String} integrationId Integration ID
10866
+ */},{key:"getConversationsMessagingIdentityresolutionIntegrationsInstagramIntegrationId",value:function getConversationsMessagingIdentityresolutionIntegrationsInstagramIntegrationId(integrationId){// verify the required parameter 'integrationId' is set
10867
+ if(integrationId===undefined||integrationId===null){throw'Missing the required parameter "integrationId" when calling getConversationsMessagingIdentityresolutionIntegrationsInstagramIntegrationId';}return this.apiClient.callApi('/api/v2/conversations/messaging/identityresolution/integrations/instagram/{integrationId}','GET',{'integrationId':integrationId},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
10856
10868
  * Get an open messaging integration Identity Resolution settings
10857
10869
  *
10858
10870
  * @param {String} integrationId Integration ID
@@ -11386,7 +11398,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
11386
11398
  if(integrationId===undefined||integrationId===null){throw'Missing the required parameter "integrationId" when calling patchConversationsMessagingIntegrationsTwitterIntegrationId';}// verify the required parameter 'body' is set
11387
11399
  if(body===undefined||body===null){throw'Missing the required parameter "body" when calling patchConversationsMessagingIntegrationsTwitterIntegrationId';}return this.apiClient.callApi('/api/v2/conversations/messaging/integrations/twitter/{integrationId}','PATCH',{'integrationId':integrationId},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}/**
11388
11400
  * Activate a WhatsApp messaging integration created using the WhatsApp embedded signup flow
11389
- * Please specify the phone number to associate with this WhatsApp integration from the list of available phone numbers returned to you in the POST call to create the integration. You can then run a GET on the integration to check if its status has been updated to Active
11401
+ * Please specify the phone number to associate with this WhatsApp integration from the list of available phone numbers returned to you in the GET call on the integration with a createStatus of Completed. You can then run a GET on the integration to check if its status has been updated to Active.
11390
11402
  * @param {String} integrationId Integration ID
11391
11403
  * @param {Object} body WhatsAppEmbeddedSignupIntegrationActivationRequest
11392
11404
  */},{key:"patchConversationsMessagingIntegrationsWhatsappEmbeddedsignupIntegrationId",value:function patchConversationsMessagingIntegrationsWhatsappEmbeddedsignupIntegrationId(integrationId,body){// verify the required parameter 'integrationId' is set
@@ -11836,12 +11848,12 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
11836
11848
  */},{key:"postConversationsKeyconfigurationsValidate",value:function postConversationsKeyconfigurationsValidate(body){// verify the required parameter 'body' is set
11837
11849
  if(body===undefined||body===null){throw'Missing the required parameter "body" when calling postConversationsKeyconfigurationsValidate';}return this.apiClient.callApi('/api/v2/conversations/keyconfigurations/validate','POST',{},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}/**
11838
11850
  * Send message
11839
- * Send message on existing conversation/communication. Only one message body field can be accepted, per request. Example: 1 textBody, 1 mediaId, 1 stickerId, or 1 messageTemplate.
11851
+ * Send message on existing conversation/communication. Only one message body field can be accepted, per request. Example: 1 textBody, 1 mediaId, or 1 messageTemplate.
11840
11852
  * @param {String} conversationId conversationId
11841
11853
  * @param {String} communicationId communicationId
11842
11854
  * @param {Object} body Message
11843
11855
  * @param {Object} opts Optional parameters
11844
- * @param {Boolean} opts.useNormalizedMessage If true, response removes deprecated fields (textBody, media, stickers) (default to false)
11856
+ * @param {Boolean} opts.useNormalizedMessage If true, response removes deprecated fields (textBody, media) (default to false)
11845
11857
  */},{key:"postConversationsMessageCommunicationMessages",value:function postConversationsMessageCommunicationMessages(conversationId,communicationId,body,opts){opts=opts||{};// verify the required parameter 'conversationId' is set
11846
11858
  if(conversationId===undefined||conversationId===null){throw'Missing the required parameter "conversationId" when calling postConversationsMessageCommunicationMessages';}// verify the required parameter 'communicationId' is set
11847
11859
  if(communicationId===undefined||communicationId===null){throw'Missing the required parameter "communicationId" when calling postConversationsMessageCommunicationMessages';}// verify the required parameter 'body' is set
@@ -11863,6 +11875,15 @@ if(communicationId===undefined||communicationId===null){throw'Missing the requir
11863
11875
  if(conversationId===undefined||conversationId===null){throw'Missing the required parameter "conversationId" when calling postConversationsMessageCommunicationMessagesMediaUploads';}// verify the required parameter 'communicationId' is set
11864
11876
  if(communicationId===undefined||communicationId===null){throw'Missing the required parameter "communicationId" when calling postConversationsMessageCommunicationMessagesMediaUploads';}// verify the required parameter 'body' is set
11865
11877
  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']);}/**
11878
+ * Send a social media message
11879
+ * Send a social media message on existing conversation/communication.
11880
+ * @param {String} conversationId conversationId
11881
+ * @param {String} communicationId communicationId
11882
+ * @param {Object} body Message
11883
+ */},{key:"postConversationsMessageCommunicationSocialmediaMessages",value:function postConversationsMessageCommunicationSocialmediaMessages(conversationId,communicationId,body){// verify the required parameter 'conversationId' is set
11884
+ if(conversationId===undefined||conversationId===null){throw'Missing the required parameter "conversationId" when calling postConversationsMessageCommunicationSocialmediaMessages';}// verify the required parameter 'communicationId' is set
11885
+ if(communicationId===undefined||communicationId===null){throw'Missing the required parameter "communicationId" when calling postConversationsMessageCommunicationSocialmediaMessages';}// verify the required parameter 'body' is set
11886
+ 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']);}/**
11866
11887
  * Send message typing event
11867
11888
  * Send message typing event for existing conversation/communication.
11868
11889
  * @param {String} conversationId conversationId
@@ -11899,7 +11920,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
11899
11920
  * 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"]
11900
11921
  * @param {String} conversationId
11901
11922
  * @param {Object} opts Optional parameters
11902
- * @param {Boolean} opts.useNormalizedMessage If true, response removes deprecated fields (textBody, media, stickers) (default to false)
11923
+ * @param {Boolean} opts.useNormalizedMessage If true, response removes deprecated fields (textBody, media) (default to false)
11903
11924
  * @param {Array.<String>} opts.body messageIds
11904
11925
  */},{key:"postConversationsMessageMessagesBulk",value:function postConversationsMessageMessagesBulk(conversationId,opts){opts=opts||{};// verify the required parameter 'conversationId' is set
11905
11926
  if(conversationId===undefined||conversationId===null){throw'Missing the required parameter "conversationId" when calling postConversationsMessageMessagesBulk';}return this.apiClient.callApi('/api/v2/conversations/messages/{conversationId}/messages/bulk','POST',{'conversationId':conversationId},{'useNormalizedMessage':opts['useNormalizedMessage']},{},{},opts['body'],['PureCloud OAuth'],['application/json'],['application/json']);}/**
@@ -12132,6 +12153,14 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
12132
12153
  */},{key:"putConversationsMessageRecordingstate",value:function putConversationsMessageRecordingstate(conversationId,body){// verify the required parameter 'conversationId' is set
12133
12154
  if(conversationId===undefined||conversationId===null){throw'Missing the required parameter "conversationId" when calling putConversationsMessageRecordingstate';}// verify the required parameter 'body' is set
12134
12155
  if(body===undefined||body===null){throw'Missing the required parameter "body" when calling putConversationsMessageRecordingstate';}return this.apiClient.callApi('/api/v2/conversations/messages/{conversationId}/recordingstate','PUT',{'conversationId':conversationId},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}/**
12156
+ * Create an identity resolution settings for a Apple messaging integration
12157
+ *
12158
+ * @param {String} integrationId Integration ID
12159
+ * @param {Object} body IdentityResolutionConfig
12160
+ * putConversationsMessagingIdentityresolutionIntegrationsAppleIntegrationId is a preview method and is subject to both breaking and non-breaking changes at any time without notice
12161
+ */},{key:"putConversationsMessagingIdentityresolutionIntegrationsAppleIntegrationId",value:function putConversationsMessagingIdentityresolutionIntegrationsAppleIntegrationId(integrationId,body){// verify the required parameter 'integrationId' is set
12162
+ if(integrationId===undefined||integrationId===null){throw'Missing the required parameter "integrationId" when calling putConversationsMessagingIdentityresolutionIntegrationsAppleIntegrationId';}// verify the required parameter 'body' is set
12163
+ if(body===undefined||body===null){throw'Missing the required parameter "body" when calling putConversationsMessagingIdentityresolutionIntegrationsAppleIntegrationId';}return this.apiClient.callApi('/api/v2/conversations/messaging/identityresolution/integrations/apple/{integrationId}','PUT',{'integrationId':integrationId},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}/**
12135
12164
  * Create an identity resolution settings for a Facebook messaging integration
12136
12165
  *
12137
12166
  * @param {String} integrationId Integration ID
@@ -12139,6 +12168,13 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
12139
12168
  */},{key:"putConversationsMessagingIdentityresolutionIntegrationsFacebookIntegrationId",value:function putConversationsMessagingIdentityresolutionIntegrationsFacebookIntegrationId(integrationId,body){// verify the required parameter 'integrationId' is set
12140
12169
  if(integrationId===undefined||integrationId===null){throw'Missing the required parameter "integrationId" when calling putConversationsMessagingIdentityresolutionIntegrationsFacebookIntegrationId';}// verify the required parameter 'body' is set
12141
12170
  if(body===undefined||body===null){throw'Missing the required parameter "body" when calling putConversationsMessagingIdentityresolutionIntegrationsFacebookIntegrationId';}return this.apiClient.callApi('/api/v2/conversations/messaging/identityresolution/integrations/facebook/{integrationId}','PUT',{'integrationId':integrationId},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}/**
12171
+ * Create identity resolution settings for an Instagram messaging integration
12172
+ *
12173
+ * @param {String} integrationId Integration ID
12174
+ * @param {Object} body IdentityResolutionConfig
12175
+ */},{key:"putConversationsMessagingIdentityresolutionIntegrationsInstagramIntegrationId",value:function putConversationsMessagingIdentityresolutionIntegrationsInstagramIntegrationId(integrationId,body){// verify the required parameter 'integrationId' is set
12176
+ if(integrationId===undefined||integrationId===null){throw'Missing the required parameter "integrationId" when calling putConversationsMessagingIdentityresolutionIntegrationsInstagramIntegrationId';}// verify the required parameter 'body' is set
12177
+ if(body===undefined||body===null){throw'Missing the required parameter "body" when calling putConversationsMessagingIdentityresolutionIntegrationsInstagramIntegrationId';}return this.apiClient.callApi('/api/v2/conversations/messaging/identityresolution/integrations/instagram/{integrationId}','PUT',{'integrationId':integrationId},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}/**
12142
12178
  * Update an open messaging integration Identity Resolution settings
12143
12179
  *
12144
12180
  * @param {String} integrationId Integration ID
@@ -12192,7 +12228,7 @@ if(conversationId===undefined||conversationId===null){throw'Missing the required
12192
12228
  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(){/**
12193
12229
  * DataExtensions service.
12194
12230
  * @module purecloud-platform-client-v2/api/DataExtensionsApi
12195
- * @version 221.0.0
12231
+ * @version 223.0.0
12196
12232
  *//**
12197
12233
  * Constructs a new DataExtensionsApi.
12198
12234
  * @alias module:purecloud-platform-client-v2/api/DataExtensionsApi
@@ -12213,7 +12249,7 @@ if(coretypeName===undefined||coretypeName===null){throw'Missing the required par
12213
12249
  */},{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(){/**
12214
12250
  * DataPrivacy service.
12215
12251
  * @module purecloud-platform-client-v2/api/DataPrivacyApi
12216
- * @version 221.0.0
12252
+ * @version 223.0.0
12217
12253
  *//**
12218
12254
  * Constructs a new DataPrivacyApi.
12219
12255
  * @alias module:purecloud-platform-client-v2/api/DataPrivacyApi
@@ -12253,7 +12289,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
12253
12289
  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(){/**
12254
12290
  * Downloads service.
12255
12291
  * @module purecloud-platform-client-v2/api/DownloadsApi
12256
- * @version 221.0.0
12292
+ * @version 223.0.0
12257
12293
  *//**
12258
12294
  * Constructs a new DownloadsApi.
12259
12295
  * @alias module:purecloud-platform-client-v2/api/DownloadsApi
@@ -12272,7 +12308,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
12272
12308
  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(){/**
12273
12309
  * Emails service.
12274
12310
  * @module purecloud-platform-client-v2/api/EmailsApi
12275
- * @version 221.0.0
12311
+ * @version 223.0.0
12276
12312
  *//**
12277
12313
  * Constructs a new EmailsApi.
12278
12314
  * @alias module:purecloud-platform-client-v2/api/EmailsApi
@@ -12301,7 +12337,7 @@ if(downloadId===undefined||downloadId===null){throw'Missing the required paramet
12301
12337
  */},{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(){/**
12302
12338
  * EmployeeEngagement service.
12303
12339
  * @module purecloud-platform-client-v2/api/EmployeeEngagementApi
12304
- * @version 221.0.0
12340
+ * @version 223.0.0
12305
12341
  *//**
12306
12342
  * Constructs a new EmployeeEngagementApi.
12307
12343
  * @alias module:purecloud-platform-client-v2/api/EmployeeEngagementApi
@@ -12339,7 +12375,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
12339
12375
  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(){/**
12340
12376
  * Events service.
12341
12377
  * @module purecloud-platform-client-v2/api/EventsApi
12342
- * @version 221.0.0
12378
+ * @version 223.0.0
12343
12379
  *//**
12344
12380
  * Constructs a new EventsApi.
12345
12381
  * @alias module:purecloud-platform-client-v2/api/EventsApi
@@ -12364,7 +12400,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
12364
12400
  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(){/**
12365
12401
  * ExternalContacts service.
12366
12402
  * @module purecloud-platform-client-v2/api/ExternalContactsApi
12367
- * @version 221.0.0
12403
+ * @version 223.0.0
12368
12404
  *//**
12369
12405
  * Constructs a new ExternalContactsApi.
12370
12406
  * @alias module:purecloud-platform-client-v2/api/ExternalContactsApi
@@ -12515,7 +12551,7 @@ if(schemaId===undefined||schemaId===null){throw'Missing the required parameter "
12515
12551
  * Get a list of schemas.
12516
12552
  *
12517
12553
  */},{key:"getExternalcontactsContactsSchemas",value:function getExternalcontactsContactsSchemas(){return this.apiClient.callApi('/api/v2/externalcontacts/contacts/schemas','GET',{},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
12518
- * Get the core types from which all schemas are built.
12554
+ * Get a specific named core type.
12519
12555
  *
12520
12556
  * @param {String} coreTypeName Name of the core type
12521
12557
  */},{key:"getExternalcontactsContactsSchemasCoretype",value:function getExternalcontactsContactsSchemasCoretype(coreTypeName){// verify the required parameter 'coreTypeName' is set
@@ -12675,7 +12711,7 @@ if(schemaId===undefined||schemaId===null){throw'Missing the required parameter "
12675
12711
  * Get a list of schemas.
12676
12712
  *
12677
12713
  */},{key:"getExternalcontactsOrganizationsSchemas",value:function getExternalcontactsOrganizationsSchemas(){return this.apiClient.callApi('/api/v2/externalcontacts/organizations/schemas','GET',{},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
12678
- * Get the core types from which all schemas are built.
12714
+ * Get a specific named core type.
12679
12715
  *
12680
12716
  * @param {String} coreTypeName Name of the core type
12681
12717
  */},{key:"getExternalcontactsOrganizationsSchemasCoretype",value:function getExternalcontactsOrganizationsSchemasCoretype(coreTypeName){// verify the required parameter 'coreTypeName' is set
@@ -13099,7 +13135,7 @@ if(relationshipId===undefined||relationshipId===null){throw'Missing the required
13099
13135
  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(){/**
13100
13136
  * Fax service.
13101
13137
  * @module purecloud-platform-client-v2/api/FaxApi
13102
- * @version 221.0.0
13138
+ * @version 223.0.0
13103
13139
  *//**
13104
13140
  * Constructs a new FaxApi.
13105
13141
  * @alias module:purecloud-platform-client-v2/api/FaxApi
@@ -13148,7 +13184,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
13148
13184
  */},{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(){/**
13149
13185
  * Flows service.
13150
13186
  * @module purecloud-platform-client-v2/api/FlowsApi
13151
- * @version 221.0.0
13187
+ * @version 223.0.0
13152
13188
  *//**
13153
13189
  * Constructs a new FlowsApi.
13154
13190
  * @alias module:purecloud-platform-client-v2/api/FlowsApi
@@ -13196,7 +13232,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
13196
13232
  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(){/**
13197
13233
  * Gamification service.
13198
13234
  * @module purecloud-platform-client-v2/api/GamificationApi
13199
- * @version 221.0.0
13235
+ * @version 223.0.0
13200
13236
  *//**
13201
13237
  * Constructs a new GamificationApi.
13202
13238
  * @alias module:purecloud-platform-client-v2/api/GamificationApi
@@ -13849,7 +13885,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
13849
13885
  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(){/**
13850
13886
  * GeneralDataProtectionRegulation service.
13851
13887
  * @module purecloud-platform-client-v2/api/GeneralDataProtectionRegulationApi
13852
- * @version 221.0.0
13888
+ * @version 223.0.0
13853
13889
  *//**
13854
13890
  * Constructs a new GeneralDataProtectionRegulationApi.
13855
13891
  * @alias module:purecloud-platform-client-v2/api/GeneralDataProtectionRegulationApi
@@ -13884,7 +13920,7 @@ if(searchValue===undefined||searchValue===null){throw'Missing the required param
13884
13920
  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(){/**
13885
13921
  * Geolocation service.
13886
13922
  * @module purecloud-platform-client-v2/api/GeolocationApi
13887
- * @version 221.0.0
13923
+ * @version 223.0.0
13888
13924
  *//**
13889
13925
  * Constructs a new GeolocationApi.
13890
13926
  * @alias module:purecloud-platform-client-v2/api/GeolocationApi
@@ -13918,7 +13954,7 @@ if(clientId===undefined||clientId===null){throw'Missing the required parameter "
13918
13954
  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(){/**
13919
13955
  * Greetings service.
13920
13956
  * @module purecloud-platform-client-v2/api/GreetingsApi
13921
- * @version 221.0.0
13957
+ * @version 223.0.0
13922
13958
  *//**
13923
13959
  * Constructs a new GreetingsApi.
13924
13960
  * @alias module:purecloud-platform-client-v2/api/GreetingsApi
@@ -14025,7 +14061,7 @@ if(userId===undefined||userId===null){throw'Missing the required parameter "user
14025
14061
  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(){/**
14026
14062
  * Groups service.
14027
14063
  * @module purecloud-platform-client-v2/api/GroupsApi
14028
- * @version 221.0.0
14064
+ * @version 223.0.0
14029
14065
  *//**
14030
14066
  * Constructs a new GroupsApi.
14031
14067
  * @alias module:purecloud-platform-client-v2/api/GroupsApi
@@ -14158,7 +14194,7 @@ if(groupId===undefined||groupId===null){throw'Missing the required parameter "gr
14158
14194
  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(){/**
14159
14195
  * IdentityProvider service.
14160
14196
  * @module purecloud-platform-client-v2/api/IdentityProviderApi
14161
- * @version 221.0.0
14197
+ * @version 223.0.0
14162
14198
  *//**
14163
14199
  * Constructs a new IdentityProviderApi.
14164
14200
  * @alias module:purecloud-platform-client-v2/api/IdentityProviderApi
@@ -14314,7 +14350,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
14314
14350
  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(){/**
14315
14351
  * InfrastructureAsCode service.
14316
14352
  * @module purecloud-platform-client-v2/api/InfrastructureAsCodeApi
14317
- * @version 221.0.0
14353
+ * @version 223.0.0
14318
14354
  *//**
14319
14355
  * Constructs a new InfrastructureAsCodeApi.
14320
14356
  * @alias module:purecloud-platform-client-v2/api/InfrastructureAsCodeApi
@@ -14368,7 +14404,7 @@ if(jobId===undefined||jobId===null){throw'Missing the required parameter "jobId"
14368
14404
  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(){/**
14369
14405
  * Integrations service.
14370
14406
  * @module purecloud-platform-client-v2/api/IntegrationsApi
14371
- * @version 221.0.0
14407
+ * @version 223.0.0
14372
14408
  *//**
14373
14409
  * Constructs a new IntegrationsApi.
14374
14410
  * @alias module:purecloud-platform-client-v2/api/IntegrationsApi
@@ -14541,6 +14577,34 @@ if(fileName===undefined||fileName===null){throw'Missing the required parameter "
14541
14577
  * Get action function settings for Action
14542
14578
  *
14543
14579
  */},{key:"getIntegrationsActionsFunctionsRuntimes",value:function getIntegrationsActionsFunctionsRuntimes(){return this.apiClient.callApi('/api/v2/integrations/actions/functions/runtimes','GET',{},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
14580
+ * Get a specific Bot details
14581
+ *
14582
+ * @param {String} integrationId The integration ID for this group of bots
14583
+ * @param {String} botId The bot ID for this bot
14584
+ * @param {Object} opts Optional parameters
14585
+ * @param {String} opts.version Specific Version
14586
+ * getIntegrationsBotconnectorBot is a preview method and is subject to both breaking and non-breaking changes at any time without notice
14587
+ */},{key:"getIntegrationsBotconnectorBot",value:function getIntegrationsBotconnectorBot(integrationId,botId,opts){opts=opts||{};// verify the required parameter 'integrationId' is set
14588
+ if(integrationId===undefined||integrationId===null){throw'Missing the required parameter "integrationId" when calling getIntegrationsBotconnectorBot';}// verify the required parameter 'botId' is set
14589
+ 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']);}/**
14590
+ * Get the list of bots for this integration.
14591
+ *
14592
+ * @param {String} integrationId The integration ID for this group of bots.
14593
+ * @param {Object} opts Optional parameters
14594
+ * @param {Number} opts.pageNumber Page number (default to 1)
14595
+ * @param {Number} opts.pageSize Page size (default to 25)
14596
+ * getIntegrationsBotconnectorBots is a preview method and is subject to both breaking and non-breaking changes at any time without notice
14597
+ */},{key:"getIntegrationsBotconnectorBots",value:function getIntegrationsBotconnectorBots(integrationId,opts){opts=opts||{};// verify the required parameter 'integrationId' is set
14598
+ 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']);}/**
14599
+ * Get the summary list of bots for this integration.
14600
+ *
14601
+ * @param {String} integrationId The integration ID for this group of bots.
14602
+ * @param {Object} opts Optional parameters
14603
+ * @param {Number} opts.pageNumber Page number (default to 1)
14604
+ * @param {Number} opts.pageSize Page size (default to 25)
14605
+ * getIntegrationsBotconnectorBotsSummaries is a preview method and is subject to both breaking and non-breaking changes at any time without notice
14606
+ */},{key:"getIntegrationsBotconnectorBotsSummaries",value:function getIntegrationsBotconnectorBotsSummaries(integrationId,opts){opts=opts||{};// verify the required parameter 'integrationId' is set
14607
+ 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']);}/**
14544
14608
  * Get a specific botConnector bot, plus versions, for this integration
14545
14609
  *
14546
14610
  * @param {String} integrationId The integration ID for this group of bots
@@ -14920,6 +14984,18 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
14920
14984
  * @param {Object} body Input used to create Action Draft.
14921
14985
  */},{key:"postIntegrationsActionsDrafts",value:function postIntegrationsActionsDrafts(body){// verify the required parameter 'body' is set
14922
14986
  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']);}/**
14987
+ * Send an incoming message to the bot.
14988
+ *
14989
+ * @param {Object} body Incoming Message Request
14990
+ * postIntegrationsBotconnectorsIncomingMessages is a preview method and is subject to both breaking and non-breaking changes at any time without notice
14991
+ */},{key:"postIntegrationsBotconnectorsIncomingMessages",value:function postIntegrationsBotconnectorsIncomingMessages(body){// verify the required parameter 'body' is set
14992
+ 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']);}/**
14993
+ * Send an outgoing message to the end user.
14994
+ *
14995
+ * @param {Object} body Outgoing Message Request
14996
+ * postIntegrationsBotconnectorsOutgoingMessages is a preview method and is subject to both breaking and non-breaking changes at any time without notice
14997
+ */},{key:"postIntegrationsBotconnectorsOutgoingMessages",value:function postIntegrationsBotconnectorsOutgoingMessages(body){// verify the required parameter 'body' is set
14998
+ 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']);}/**
14923
14999
  * Create a set of credentials
14924
15000
  *
14925
15001
  * @param {Object} opts Optional parameters
@@ -15007,7 +15083,7 @@ if(ucIntegrationId===undefined||ucIntegrationId===null){throw'Missing the requir
15007
15083
  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(){/**
15008
15084
  * Journey service.
15009
15085
  * @module purecloud-platform-client-v2/api/JourneyApi
15010
- * @version 221.0.0
15086
+ * @version 223.0.0
15011
15087
  *//**
15012
15088
  * Constructs a new JourneyApi.
15013
15089
  * @alias module:purecloud-platform-client-v2/api/JourneyApi
@@ -15487,7 +15563,7 @@ if(versionId===undefined||versionId===null){throw'Missing the required parameter
15487
15563
  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(){/**
15488
15564
  * Knowledge service.
15489
15565
  * @module purecloud-platform-client-v2/api/KnowledgeApi
15490
- * @version 221.0.0
15566
+ * @version 223.0.0
15491
15567
  *//**
15492
15568
  * Constructs a new KnowledgeApi.
15493
15569
  * @alias module:purecloud-platform-client-v2/api/KnowledgeApi
@@ -16550,7 +16626,7 @@ if(sourceId===undefined||sourceId===null){throw'Missing the required parameter "
16550
16626
  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(){/**
16551
16627
  * LanguageUnderstanding service.
16552
16628
  * @module purecloud-platform-client-v2/api/LanguageUnderstandingApi
16553
- * @version 221.0.0
16629
+ * @version 223.0.0
16554
16630
  *//**
16555
16631
  * Constructs a new LanguageUnderstandingApi.
16556
16632
  * @alias module:purecloud-platform-client-v2/api/LanguageUnderstandingApi
@@ -16809,7 +16885,7 @@ if(domainVersionId===undefined||domainVersionId===null){throw'Missing the requir
16809
16885
  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(){/**
16810
16886
  * Languages service.
16811
16887
  * @module purecloud-platform-client-v2/api/LanguagesApi
16812
- * @version 221.0.0
16888
+ * @version 223.0.0
16813
16889
  *//**
16814
16890
  * Constructs a new LanguagesApi.
16815
16891
  * @alias module:purecloud-platform-client-v2/api/LanguagesApi
@@ -16864,7 +16940,7 @@ if(userId===undefined||userId===null){throw'Missing the required parameter "user
16864
16940
  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(){/**
16865
16941
  * Learning service.
16866
16942
  * @module purecloud-platform-client-v2/api/LearningApi
16867
- * @version 221.0.0
16943
+ * @version 223.0.0
16868
16944
  *//**
16869
16945
  * Constructs a new LearningApi.
16870
16946
  * @alias module:purecloud-platform-client-v2/api/LearningApi
@@ -17135,7 +17211,7 @@ if(moduleId===undefined||moduleId===null){throw'Missing the required parameter "
17135
17211
  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(){/**
17136
17212
  * License service.
17137
17213
  * @module purecloud-platform-client-v2/api/LicenseApi
17138
- * @version 221.0.0
17214
+ * @version 223.0.0
17139
17215
  *//**
17140
17216
  * Constructs a new LicenseApi.
17141
17217
  * @alias module:purecloud-platform-client-v2/api/LicenseApi
@@ -17189,7 +17265,7 @@ if(featureName===undefined||featureName===null){throw'Missing the required param
17189
17265
  */},{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(){/**
17190
17266
  * Locations service.
17191
17267
  * @module purecloud-platform-client-v2/api/LocationsApi
17192
- * @version 221.0.0
17268
+ * @version 223.0.0
17193
17269
  *//**
17194
17270
  * Constructs a new LocationsApi.
17195
17271
  * @alias module:purecloud-platform-client-v2/api/LocationsApi
@@ -17248,7 +17324,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
17248
17324
  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(){/**
17249
17325
  * LogCapture service.
17250
17326
  * @module purecloud-platform-client-v2/api/LogCaptureApi
17251
- * @version 221.0.0
17327
+ * @version 223.0.0
17252
17328
  *//**
17253
17329
  * Constructs a new LogCaptureApi.
17254
17330
  * @alias module:purecloud-platform-client-v2/api/LogCaptureApi
@@ -17284,11 +17360,10 @@ if(userId===undefined||userId===null){throw'Missing the required parameter "user
17284
17360
  * Query collected log entries. It returns a limited amount of records, to get all records use download endpoint.
17285
17361
  *
17286
17362
  * @param {Object} opts Optional parameters
17287
- * @param {String} opts.before The cursor that points to the start of the set of entities that has been returned.
17288
17363
  * @param {String} opts.after The cursor that points to the end of the set of entities that has been returned.
17289
17364
  * @param {String} opts.pageSize Number of entities to return. Maximum of 200.
17290
17365
  * @param {Object} opts.body
17291
- */},{key:"postDiagnosticsLogcaptureBrowserEntriesQuery",value:function postDiagnosticsLogcaptureBrowserEntriesQuery(opts){opts=opts||{};return this.apiClient.callApi('/api/v2/diagnostics/logcapture/browser/entries/query','POST',{},{'before':opts['before'],'after':opts['after'],'pageSize':opts['pageSize']},{},{},opts['body'],['PureCloud OAuth'],['application/json'],['application/json']);}/**
17366
+ */},{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']);}/**
17292
17367
  * Enable log capture for a user or update expiration
17293
17368
  *
17294
17369
  * @param {String} userId The id of the user to enable browser log capture
@@ -17298,7 +17373,7 @@ if(userId===undefined||userId===null){throw'Missing the required parameter "user
17298
17373
  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(){/**
17299
17374
  * Messaging service.
17300
17375
  * @module purecloud-platform-client-v2/api/MessagingApi
17301
- * @version 221.0.0
17376
+ * @version 223.0.0
17302
17377
  *//**
17303
17378
  * Constructs a new MessagingApi.
17304
17379
  * @alias module:purecloud-platform-client-v2/api/MessagingApi
@@ -17388,7 +17463,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
17388
17463
  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(){/**
17389
17464
  * MobileDevices service.
17390
17465
  * @module purecloud-platform-client-v2/api/MobileDevicesApi
17391
- * @version 221.0.0
17466
+ * @version 223.0.0
17392
17467
  *//**
17393
17468
  * Constructs a new MobileDevicesApi.
17394
17469
  * @alias module:purecloud-platform-client-v2/api/MobileDevicesApi
@@ -17427,7 +17502,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
17427
17502
  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(){/**
17428
17503
  * Notifications service.
17429
17504
  * @module purecloud-platform-client-v2/api/NotificationsApi
17430
- * @version 221.0.0
17505
+ * @version 223.0.0
17431
17506
  *//**
17432
17507
  * Constructs a new NotificationsApi.
17433
17508
  * @alias module:purecloud-platform-client-v2/api/NotificationsApi
@@ -17484,7 +17559,7 @@ if(channelId===undefined||channelId===null){throw'Missing the required parameter
17484
17559
  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(){/**
17485
17560
  * OAuth service.
17486
17561
  * @module purecloud-platform-client-v2/api/OAuthApi
17487
- * @version 221.0.0
17562
+ * @version 223.0.0
17488
17563
  *//**
17489
17564
  * Constructs a new OAuthApi.
17490
17565
  * @alias module:purecloud-platform-client-v2/api/OAuthApi
@@ -17569,7 +17644,7 @@ if(clientId===undefined||clientId===null){throw'Missing the required parameter "
17569
17644
  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(){/**
17570
17645
  * Objects service.
17571
17646
  * @module purecloud-platform-client-v2/api/ObjectsApi
17572
- * @version 221.0.0
17647
+ * @version 223.0.0
17573
17648
  *//**
17574
17649
  * Constructs a new ObjectsApi.
17575
17650
  * @alias module:purecloud-platform-client-v2/api/ObjectsApi
@@ -17655,7 +17730,7 @@ if(divisionId===undefined||divisionId===null){throw'Missing the required paramet
17655
17730
  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(){/**
17656
17731
  * OperationalEvents service.
17657
17732
  * @module purecloud-platform-client-v2/api/OperationalEventsApi
17658
- * @version 221.0.0
17733
+ * @version 223.0.0
17659
17734
  *//**
17660
17735
  * Constructs a new OperationalEventsApi.
17661
17736
  * @alias module:purecloud-platform-client-v2/api/OperationalEventsApi
@@ -17686,7 +17761,7 @@ if(eventDefinitionId===undefined||eventDefinitionId===null){throw'Missing the re
17686
17761
  */},{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(){/**
17687
17762
  * Organization service.
17688
17763
  * @module purecloud-platform-client-v2/api/OrganizationApi
17689
- * @version 221.0.0
17764
+ * @version 223.0.0
17690
17765
  *//**
17691
17766
  * Constructs a new OrganizationApi.
17692
17767
  * @alias module:purecloud-platform-client-v2/api/OrganizationApi
@@ -17791,7 +17866,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
17791
17866
  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(){/**
17792
17867
  * OrganizationAuthorization service.
17793
17868
  * @module purecloud-platform-client-v2/api/OrganizationAuthorizationApi
17794
- * @version 221.0.0
17869
+ * @version 223.0.0
17795
17870
  *//**
17796
17871
  * Constructs a new OrganizationAuthorizationApi.
17797
17872
  * @alias module:purecloud-platform-client-v2/api/OrganizationAuthorizationApi
@@ -18125,7 +18200,7 @@ if(trustorOrgId===undefined||trustorOrgId===null){throw'Missing the required par
18125
18200
  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(){/**
18126
18201
  * Outbound service.
18127
18202
  * @module purecloud-platform-client-v2/api/OutboundApi
18128
- * @version 221.0.0
18203
+ * @version 223.0.0
18129
18204
  *//**
18130
18205
  * Constructs a new OutboundApi.
18131
18206
  * @alias module:purecloud-platform-client-v2/api/OutboundApi
@@ -19256,7 +19331,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
19256
19331
  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(){/**
19257
19332
  * Presence service.
19258
19333
  * @module purecloud-platform-client-v2/api/PresenceApi
19259
- * @version 221.0.0
19334
+ * @version 223.0.0
19260
19335
  *//**
19261
19336
  * Constructs a new PresenceApi.
19262
19337
  * @alias module:purecloud-platform-client-v2/api/PresenceApi
@@ -19429,7 +19504,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
19429
19504
  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(){/**
19430
19505
  * ProcessAutomation service.
19431
19506
  * @module purecloud-platform-client-v2/api/ProcessAutomationApi
19432
- * @version 221.0.0
19507
+ * @version 223.0.0
19433
19508
  *//**
19434
19509
  * Constructs a new ProcessAutomationApi.
19435
19510
  * @alias module:purecloud-platform-client-v2/api/ProcessAutomationApi
@@ -19492,7 +19567,7 @@ if(triggerId===undefined||triggerId===null){throw'Missing the required parameter
19492
19567
  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(){/**
19493
19568
  * Quality service.
19494
19569
  * @module purecloud-platform-client-v2/api/QualityApi
19495
- * @version 221.0.0
19570
+ * @version 223.0.0
19496
19571
  *//**
19497
19572
  * Constructs a new QualityApi.
19498
19573
  * @alias module:purecloud-platform-client-v2/api/QualityApi
@@ -19970,7 +20045,7 @@ if(customerSurveyUrl===undefined||customerSurveyUrl===null){throw'Missing the re
19970
20045
  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(){/**
19971
20046
  * Recording service.
19972
20047
  * @module purecloud-platform-client-v2/api/RecordingApi
19973
- * @version 221.0.0
20048
+ * @version 223.0.0
19974
20049
  *//**
19975
20050
  * Constructs a new RecordingApi.
19976
20051
  * @alias module:purecloud-platform-client-v2/api/RecordingApi
@@ -20369,7 +20444,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
20369
20444
  */},{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(){/**
20370
20445
  * ResponseManagement service.
20371
20446
  * @module purecloud-platform-client-v2/api/ResponseManagementApi
20372
- * @version 221.0.0
20447
+ * @version 223.0.0
20373
20448
  *//**
20374
20449
  * Constructs a new ResponseManagementApi.
20375
20450
  * @alias module:purecloud-platform-client-v2/api/ResponseManagementApi
@@ -20490,7 +20565,7 @@ if(responseAssetId===undefined||responseAssetId===null){throw'Missing the requir
20490
20565
  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(){/**
20491
20566
  * Routing service.
20492
20567
  * @module purecloud-platform-client-v2/api/RoutingApi
20493
- * @version 221.0.0
20568
+ * @version 223.0.0
20494
20569
  *//**
20495
20570
  * Constructs a new RoutingApi.
20496
20571
  * @alias module:purecloud-platform-client-v2/api/RoutingApi
@@ -21538,7 +21613,7 @@ if(userId===undefined||userId===null){throw'Missing the required parameter "user
21538
21613
  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(){/**
21539
21614
  * SCIM service.
21540
21615
  * @module purecloud-platform-client-v2/api/SCIMApi
21541
- * @version 221.0.0
21616
+ * @version 223.0.0
21542
21617
  *//**
21543
21618
  * Constructs a new SCIMApi.
21544
21619
  * @alias module:purecloud-platform-client-v2/api/SCIMApi
@@ -21763,7 +21838,7 @@ if(userId===undefined||userId===null){throw'Missing the required parameter "user
21763
21838
  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(){/**
21764
21839
  * ScreenRecording service.
21765
21840
  * @module purecloud-platform-client-v2/api/ScreenRecordingApi
21766
- * @version 221.0.0
21841
+ * @version 223.0.0
21767
21842
  *//**
21768
21843
  * Constructs a new ScreenRecordingApi.
21769
21844
  * @alias module:purecloud-platform-client-v2/api/ScreenRecordingApi
@@ -21778,7 +21853,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
21778
21853
  */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(){/**
21779
21854
  * Scripts service.
21780
21855
  * @module purecloud-platform-client-v2/api/ScriptsApi
21781
- * @version 221.0.0
21856
+ * @version 223.0.0
21782
21857
  *//**
21783
21858
  * Constructs a new ScriptsApi.
21784
21859
  * @alias module:purecloud-platform-client-v2/api/ScriptsApi
@@ -21924,7 +21999,7 @@ if(scriptId===undefined||scriptId===null){throw'Missing the required parameter "
21924
21999
  */},{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(){/**
21925
22000
  * Search service.
21926
22001
  * @module purecloud-platform-client-v2/api/SearchApi
21927
- * @version 221.0.0
22002
+ * @version 223.0.0
21928
22003
  *//**
21929
22004
  * Constructs a new SearchApi.
21930
22005
  * @alias module:purecloud-platform-client-v2/api/SearchApi
@@ -22096,7 +22171,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
22096
22171
  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(){/**
22097
22172
  * Settings service.
22098
22173
  * @module purecloud-platform-client-v2/api/SettingsApi
22099
- * @version 221.0.0
22174
+ * @version 223.0.0
22100
22175
  *//**
22101
22176
  * Constructs a new SettingsApi.
22102
22177
  * @alias module:purecloud-platform-client-v2/api/SettingsApi
@@ -22168,7 +22243,7 @@ if(agentId===undefined||agentId===null){throw'Missing the required parameter "ag
22168
22243
  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(){/**
22169
22244
  * SocialMedia service.
22170
22245
  * @module purecloud-platform-client-v2/api/SocialMediaApi
22171
- * @version 221.0.0
22246
+ * @version 223.0.0
22172
22247
  *//**
22173
22248
  * Constructs a new SocialMediaApi.
22174
22249
  * @alias module:purecloud-platform-client-v2/api/SocialMediaApi
@@ -22209,7 +22284,6 @@ if(facebookIngestionRuleId===undefined||facebookIngestionRuleId===null){throw'Mi
22209
22284
  * @param {String} openId openId
22210
22285
  * @param {Object} opts Optional parameters
22211
22286
  * @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)
22212
- * deleteSocialmediaTopicDataingestionrulesOpenOpenId is a preview method and is subject to both breaking and non-breaking changes at any time without notice
22213
22287
  */},{key:"deleteSocialmediaTopicDataingestionrulesOpenOpenId",value:function deleteSocialmediaTopicDataingestionrulesOpenOpenId(topicId,openId,opts){opts=opts||{};// verify the required parameter 'topicId' is set
22214
22288
  if(topicId===undefined||topicId===null){throw'Missing the required parameter "topicId" when calling deleteSocialmediaTopicDataingestionrulesOpenOpenId';}// verify the required parameter 'openId' is set
22215
22289
  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']);}/**
@@ -22312,7 +22386,6 @@ if(facebookIngestionRuleId===undefined||facebookIngestionRuleId===null){throw'Mi
22312
22386
  * @param {String} openId openId
22313
22387
  * @param {Object} opts Optional parameters
22314
22388
  * @param {Boolean} opts.includeDeleted Determines whether to include soft-deleted items in the result.
22315
- * getSocialmediaTopicDataingestionrulesOpenOpenId is a preview method and is subject to both breaking and non-breaking changes at any time without notice
22316
22389
  */},{key:"getSocialmediaTopicDataingestionrulesOpenOpenId",value:function getSocialmediaTopicDataingestionrulesOpenOpenId(topicId,openId,opts){opts=opts||{};// verify the required parameter 'topicId' is set
22317
22390
  if(topicId===undefined||topicId===null){throw'Missing the required parameter "topicId" when calling getSocialmediaTopicDataingestionrulesOpenOpenId';}// verify the required parameter 'openId' is set
22318
22391
  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']);}/**
@@ -22323,7 +22396,6 @@ if(openId===undefined||openId===null){throw'Missing the required parameter "open
22323
22396
  * @param {String} dataIngestionRuleVersion version
22324
22397
  * @param {Object} opts Optional parameters
22325
22398
  * @param {Boolean} opts.includeDeleted Determines whether to include soft-deleted item in the result.
22326
- * getSocialmediaTopicDataingestionrulesOpenOpenIdVersion is a preview method and is subject to both breaking and non-breaking changes at any time without notice
22327
22399
  */},{key:"getSocialmediaTopicDataingestionrulesOpenOpenIdVersion",value:function getSocialmediaTopicDataingestionrulesOpenOpenIdVersion(topicId,openId,dataIngestionRuleVersion,opts){opts=opts||{};// verify the required parameter 'topicId' is set
22328
22400
  if(topicId===undefined||topicId===null){throw'Missing the required parameter "topicId" when calling getSocialmediaTopicDataingestionrulesOpenOpenIdVersion';}// verify the required parameter 'openId' is set
22329
22401
  if(openId===undefined||openId===null){throw'Missing the required parameter "openId" when calling getSocialmediaTopicDataingestionrulesOpenOpenIdVersion';}// verify the required parameter 'dataIngestionRuleVersion' is set
@@ -22336,7 +22408,6 @@ if(dataIngestionRuleVersion===undefined||dataIngestionRuleVersion===null){throw'
22336
22408
  * @param {Number} opts.pageNumber Page number (default to 1)
22337
22409
  * @param {Number} opts.pageSize Page size (default to 25)
22338
22410
  * @param {Boolean} opts.includeDeleted Determines whether to include soft-deleted items in the result.
22339
- * getSocialmediaTopicDataingestionrulesOpenOpenIdVersions is a preview method and is subject to both breaking and non-breaking changes at any time without notice
22340
22411
  */},{key:"getSocialmediaTopicDataingestionrulesOpenOpenIdVersions",value:function getSocialmediaTopicDataingestionrulesOpenOpenIdVersions(topicId,openId,opts){opts=opts||{};// verify the required parameter 'topicId' is set
22341
22412
  if(topicId===undefined||topicId===null){throw'Missing the required parameter "topicId" when calling getSocialmediaTopicDataingestionrulesOpenOpenIdVersions';}// verify the required parameter 'openId' is set
22342
22413
  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']);}/**
@@ -22401,7 +22472,6 @@ if(facebookIngestionRuleId===undefined||facebookIngestionRuleId===null){throw'Mi
22401
22472
  * @param {String} openId openId
22402
22473
  * @param {Object} opts Optional parameters
22403
22474
  * @param {Object} opts.body
22404
- * patchSocialmediaTopicDataingestionrulesOpenOpenId is a preview method and is subject to both breaking and non-breaking changes at any time without notice
22405
22475
  */},{key:"patchSocialmediaTopicDataingestionrulesOpenOpenId",value:function patchSocialmediaTopicDataingestionrulesOpenOpenId(topicId,openId,opts){opts=opts||{};// verify the required parameter 'topicId' is set
22406
22476
  if(topicId===undefined||topicId===null){throw'Missing the required parameter "topicId" when calling patchSocialmediaTopicDataingestionrulesOpenOpenId';}// verify the required parameter 'openId' is set
22407
22477
  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']);}/**
@@ -22448,9 +22518,26 @@ if(topicId===undefined||topicId===null){throw'Missing the required parameter "to
22448
22518
  * @param {String} topicId topicId
22449
22519
  * @param {Object} opts Optional parameters
22450
22520
  * @param {Object} opts.body
22451
- * postSocialmediaTopicDataingestionrulesOpen is a preview method and is subject to both breaking and non-breaking changes at any time without notice
22452
22521
  */},{key:"postSocialmediaTopicDataingestionrulesOpen",value:function postSocialmediaTopicDataingestionrulesOpen(topicId,opts){opts=opts||{};// verify the required parameter 'topicId' is set
22453
22522
  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']);}/**
22523
+ * Ingest a list of Open Social Messages
22524
+ * 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.
22525
+ * @param {String} topicId Topic ID
22526
+ * @param {String} ruleId Data Ingestion Rule ID
22527
+ * @param {Array.<Object>} body NormalizedMessage
22528
+ */},{key:"postSocialmediaTopicDataingestionrulesOpenRuleIdMessagesBulk",value:function postSocialmediaTopicDataingestionrulesOpenRuleIdMessagesBulk(topicId,ruleId,body){// verify the required parameter 'topicId' is set
22529
+ if(topicId===undefined||topicId===null){throw'Missing the required parameter "topicId" when calling postSocialmediaTopicDataingestionrulesOpenRuleIdMessagesBulk';}// verify the required parameter 'ruleId' is set
22530
+ if(ruleId===undefined||ruleId===null){throw'Missing the required parameter "ruleId" when calling postSocialmediaTopicDataingestionrulesOpenRuleIdMessagesBulk';}// verify the required parameter 'body' is set
22531
+ 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']);}/**
22532
+ * Ingest a list of Open Social Reactions
22533
+ * 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.
22534
+ * @param {String} topicId Topic ID
22535
+ * @param {String} ruleId Data Ingestion Rule ID
22536
+ * @param {Object} body NormalizedEvent
22537
+ */},{key:"postSocialmediaTopicDataingestionrulesOpenRuleIdReactionsBulk",value:function postSocialmediaTopicDataingestionrulesOpenRuleIdReactionsBulk(topicId,ruleId,body){// verify the required parameter 'topicId' is set
22538
+ if(topicId===undefined||topicId===null){throw'Missing the required parameter "topicId" when calling postSocialmediaTopicDataingestionrulesOpenRuleIdReactionsBulk';}// verify the required parameter 'ruleId' is set
22539
+ if(ruleId===undefined||ruleId===null){throw'Missing the required parameter "ruleId" when calling postSocialmediaTopicDataingestionrulesOpenRuleIdReactionsBulk';}// verify the required parameter 'body' is set
22540
+ 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']);}/**
22454
22541
  * Create an twitter data ingestion rule.
22455
22542
  *
22456
22543
  * @param {String} topicId topicId
@@ -22490,7 +22577,6 @@ if(facebookIngestionRuleId===undefined||facebookIngestionRuleId===null){throw'Mi
22490
22577
  * @param {String} openId openId
22491
22578
  * @param {Object} opts Optional parameters
22492
22579
  * @param {Object} opts.body
22493
- * putSocialmediaTopicDataingestionrulesOpenOpenId is a preview method and is subject to both breaking and non-breaking changes at any time without notice
22494
22580
  */},{key:"putSocialmediaTopicDataingestionrulesOpenOpenId",value:function putSocialmediaTopicDataingestionrulesOpenOpenId(topicId,openId,opts){opts=opts||{};// verify the required parameter 'topicId' is set
22495
22581
  if(topicId===undefined||topicId===null){throw'Missing the required parameter "topicId" when calling putSocialmediaTopicDataingestionrulesOpenOpenId';}// verify the required parameter 'openId' is set
22496
22582
  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']);}/**
@@ -22505,7 +22591,7 @@ if(topicId===undefined||topicId===null){throw'Missing the required parameter "to
22505
22591
  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(){/**
22506
22592
  * SpeechTextAnalytics service.
22507
22593
  * @module purecloud-platform-client-v2/api/SpeechTextAnalyticsApi
22508
- * @version 221.0.0
22594
+ * @version 223.0.0
22509
22595
  *//**
22510
22596
  * Constructs a new SpeechTextAnalyticsApi.
22511
22597
  * @alias module:purecloud-platform-client-v2/api/SpeechTextAnalyticsApi
@@ -22707,6 +22793,11 @@ if(topicId===undefined||topicId===null){throw'Missing the required parameter "to
22707
22793
  * @param {String} jobId The id of the publish topics job
22708
22794
  */},{key:"getSpeechandtextanalyticsTopicsPublishjob",value:function getSpeechandtextanalyticsTopicsPublishjob(jobId){// verify the required parameter 'jobId' is set
22709
22795
  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']);}/**
22796
+ * Get a Speech and Text Analytics test topics phrase job by id
22797
+ *
22798
+ * @param {String} jobId the id of the test topic phrase job
22799
+ */},{key:"getSpeechandtextanalyticsTopicsTestphraseJob",value:function getSpeechandtextanalyticsTopicsTestphraseJob(jobId){// verify the required parameter 'jobId' is set
22800
+ 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']);}/**
22710
22801
  * Translate a single interaction recording (or an email conversation)
22711
22802
  *
22712
22803
  * @param {String} languageId Target translation language
@@ -22765,6 +22856,11 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
22765
22856
  * @param {Object} body The publish topics job to create
22766
22857
  */},{key:"postSpeechandtextanalyticsTopicsPublishjobs",value:function postSpeechandtextanalyticsTopicsPublishjobs(body){// verify the required parameter 'body' is set
22767
22858
  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']);}/**
22859
+ * Create new Speech and Text Analytics publish topics job
22860
+ *
22861
+ * @param {Object} body The publish test topic phrase job to create
22862
+ */},{key:"postSpeechandtextanalyticsTopicsTestphraseJobs",value:function postSpeechandtextanalyticsTopicsTestphraseJobs(body){// verify the required parameter 'body' is set
22863
+ 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']);}/**
22768
22864
  * Search resources.
22769
22865
  *
22770
22866
  * @param {Object} body Search request options
@@ -22826,7 +22922,7 @@ if(topicId===undefined||topicId===null){throw'Missing the required parameter "to
22826
22922
  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(){/**
22827
22923
  * Stations service.
22828
22924
  * @module purecloud-platform-client-v2/api/StationsApi
22829
- * @version 221.0.0
22925
+ * @version 223.0.0
22830
22926
  *//**
22831
22927
  * Constructs a new StationsApi.
22832
22928
  * @alias module:purecloud-platform-client-v2/api/StationsApi
@@ -22858,7 +22954,7 @@ if(stationId===undefined||stationId===null){throw'Missing the required parameter
22858
22954
  */},{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(){/**
22859
22955
  * Suggest service.
22860
22956
  * @module purecloud-platform-client-v2/api/SuggestApi
22861
- * @version 221.0.0
22957
+ * @version 223.0.0
22862
22958
  *//**
22863
22959
  * Constructs a new SuggestApi.
22864
22960
  * @alias module:purecloud-platform-client-v2/api/SuggestApi
@@ -22898,7 +22994,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
22898
22994
  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(){/**
22899
22995
  * TaskManagement service.
22900
22996
  * @module purecloud-platform-client-v2/api/TaskManagementApi
22901
- * @version 221.0.0
22997
+ * @version 223.0.0
22902
22998
  *//**
22903
22999
  * Constructs a new TaskManagementApi.
22904
23000
  * @alias module:purecloud-platform-client-v2/api/TaskManagementApi
@@ -23106,7 +23202,7 @@ if(schemaId===undefined||schemaId===null){throw'Missing the required parameter "
23106
23202
  * Get a list of schemas.
23107
23203
  *
23108
23204
  */},{key:"getTaskmanagementWorkitemsSchemas",value:function getTaskmanagementWorkitemsSchemas(){return this.apiClient.callApi('/api/v2/taskmanagement/workitems/schemas','GET',{},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
23109
- * Get the core types from which all schemas are built.
23205
+ * Get a specific named core type.
23110
23206
  *
23111
23207
  * @param {String} coreTypeName Name of the core type
23112
23208
  */},{key:"getTaskmanagementWorkitemsSchemasCoretype",value:function getTaskmanagementWorkitemsSchemasCoretype(coreTypeName){// verify the required parameter 'coreTypeName' is set
@@ -23406,7 +23502,7 @@ if(schemaId===undefined||schemaId===null){throw'Missing the required parameter "
23406
23502
  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(){/**
23407
23503
  * Teams service.
23408
23504
  * @module purecloud-platform-client-v2/api/TeamsApi
23409
- * @version 221.0.0
23505
+ * @version 223.0.0
23410
23506
  *//**
23411
23507
  * Constructs a new TeamsApi.
23412
23508
  * @alias module:purecloud-platform-client-v2/api/TeamsApi
@@ -23486,7 +23582,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
23486
23582
  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(){/**
23487
23583
  * Telephony service.
23488
23584
  * @module purecloud-platform-client-v2/api/TelephonyApi
23489
- * @version 221.0.0
23585
+ * @version 223.0.0
23490
23586
  *//**
23491
23587
  * Constructs a new TelephonyApi.
23492
23588
  * @alias module:purecloud-platform-client-v2/api/TelephonyApi
@@ -23533,7 +23629,7 @@ if(downloadId===undefined||downloadId===null){throw'Missing the required paramet
23533
23629
  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(){/**
23534
23630
  * TelephonyProvidersEdge service.
23535
23631
  * @module purecloud-platform-client-v2/api/TelephonyProvidersEdgeApi
23536
- * @version 221.0.0
23632
+ * @version 223.0.0
23537
23633
  *//**
23538
23634
  * Constructs a new TelephonyProvidersEdgeApi.
23539
23635
  * @alias module:purecloud-platform-client-v2/api/TelephonyProvidersEdgeApi
@@ -24369,7 +24465,7 @@ if(trunkBaseSettingsId===undefined||trunkBaseSettingsId===null){throw'Missing th
24369
24465
  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(){/**
24370
24466
  * Textbots service.
24371
24467
  * @module purecloud-platform-client-v2/api/TextbotsApi
24372
- * @version 221.0.0
24468
+ * @version 223.0.0
24373
24469
  *//**
24374
24470
  * Constructs a new TextbotsApi.
24375
24471
  * @alias module:purecloud-platform-client-v2/api/TextbotsApi
@@ -24383,8 +24479,9 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
24383
24479
  * @param {Array.<String>} opts.botType Bot types
24384
24480
  * @param {String} opts.botName Bot name
24385
24481
  * @param {Array.<String>} opts.botId Bot IDs. Maximum of 50
24482
+ * @param {Boolean} opts.virtualAgentEnabled Include or exclude virtual agent flows, only applies to GenesysBotFlows or GenesysDigitalBotFlows
24386
24483
  * @param {Number} opts.pageSize The maximum results to return. Maximum of 100 (default to 25)
24387
- */return _createClass(TextbotsApi,[{key:"getTextbotsBotsSearch",value:function getTextbotsBotsSearch(opts){opts=opts||{};return this.apiClient.callApi('/api/v2/textbots/bots/search','GET',{},{'botType':this.apiClient.buildCollectionParam(opts['botType'],'multi'),'botName':opts['botName'],'botId':this.apiClient.buildCollectionParam(opts['botId'],'multi'),'pageSize':opts['pageSize']},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
24484
+ */return _createClass(TextbotsApi,[{key:"getTextbotsBotsSearch",value:function getTextbotsBotsSearch(opts){opts=opts||{};return this.apiClient.callApi('/api/v2/textbots/bots/search','GET',{},{'botType':this.apiClient.buildCollectionParam(opts['botType'],'multi'),'botName':opts['botName'],'botId':this.apiClient.buildCollectionParam(opts['botId'],'multi'),'virtualAgentEnabled':opts['virtualAgentEnabled'],'pageSize':opts['pageSize']},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
24388
24485
  * Issue a bot flow turn event
24389
24486
  * Send a turn event to an executing bot flow and produce the next action to take.
24390
24487
  * @param {String} sessionId The bot flow session ID, typically obtained from 'POST /api/v2/textbots/botflows/sessions'
@@ -24404,7 +24501,7 @@ if(launchRequest===undefined||launchRequest===null){throw'Missing the required p
24404
24501
  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(){/**
24405
24502
  * Tokens service.
24406
24503
  * @module purecloud-platform-client-v2/api/TokensApi
24407
- * @version 221.0.0
24504
+ * @version 223.0.0
24408
24505
  *//**
24409
24506
  * Constructs a new TokensApi.
24410
24507
  * @alias module:purecloud-platform-client-v2/api/TokensApi
@@ -24438,7 +24535,7 @@ if(userId===undefined||userId===null){throw'Missing the required parameter "user
24438
24535
  */},{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(){/**
24439
24536
  * Uploads service.
24440
24537
  * @module purecloud-platform-client-v2/api/UploadsApi
24441
- * @version 221.0.0
24538
+ * @version 223.0.0
24442
24539
  *//**
24443
24540
  * Constructs a new UploadsApi.
24444
24541
  * @alias module:purecloud-platform-client-v2/api/UploadsApi
@@ -24506,7 +24603,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
24506
24603
  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(){/**
24507
24604
  * Usage service.
24508
24605
  * @module purecloud-platform-client-v2/api/UsageApi
24509
- * @version 221.0.0
24606
+ * @version 223.0.0
24510
24607
  *//**
24511
24608
  * Constructs a new UsageApi.
24512
24609
  * @alias module:purecloud-platform-client-v2/api/UsageApi
@@ -24560,7 +24657,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
24560
24657
  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(){/**
24561
24658
  * UserRecordings service.
24562
24659
  * @module purecloud-platform-client-v2/api/UserRecordingsApi
24563
- * @version 221.0.0
24660
+ * @version 223.0.0
24564
24661
  *//**
24565
24662
  * Constructs a new UserRecordingsApi.
24566
24663
  * @alias module:purecloud-platform-client-v2/api/UserRecordingsApi
@@ -24617,7 +24714,7 @@ if(recordingId===undefined||recordingId===null){throw'Missing the required param
24617
24714
  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(){/**
24618
24715
  * Users service.
24619
24716
  * @module purecloud-platform-client-v2/api/UsersApi
24620
- * @version 221.0.0
24717
+ * @version 223.0.0
24621
24718
  *//**
24622
24719
  * Constructs a new UsersApi.
24623
24720
  * @alias module:purecloud-platform-client-v2/api/UsersApi
@@ -25344,7 +25441,7 @@ if(verifierId===undefined||verifierId===null){throw'Missing the required paramet
25344
25441
  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(){/**
25345
25442
  * Utilities service.
25346
25443
  * @module purecloud-platform-client-v2/api/UtilitiesApi
25347
- * @version 221.0.0
25444
+ * @version 223.0.0
25348
25445
  *//**
25349
25446
  * Constructs a new UtilitiesApi.
25350
25447
  * @alias module:purecloud-platform-client-v2/api/UtilitiesApi
@@ -25371,7 +25468,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
25371
25468
  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(){/**
25372
25469
  * Voicemail service.
25373
25470
  * @module purecloud-platform-client-v2/api/VoicemailApi
25374
- * @version 221.0.0
25471
+ * @version 223.0.0
25375
25472
  *//**
25376
25473
  * Constructs a new VoicemailApi.
25377
25474
  * @alias module:purecloud-platform-client-v2/api/VoicemailApi
@@ -25533,7 +25630,7 @@ if(userId===undefined||userId===null){throw'Missing the required parameter "user
25533
25630
  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(){/**
25534
25631
  * WebChat service.
25535
25632
  * @module purecloud-platform-client-v2/api/WebChatApi
25536
- * @version 221.0.0
25633
+ * @version 223.0.0
25537
25634
  *//**
25538
25635
  * Constructs a new WebChatApi.
25539
25636
  * @alias module:purecloud-platform-client-v2/api/WebChatApi
@@ -25677,7 +25774,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
25677
25774
  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(){/**
25678
25775
  * WebDeployments service.
25679
25776
  * @module purecloud-platform-client-v2/api/WebDeploymentsApi
25680
- * @version 221.0.0
25777
+ * @version 223.0.0
25681
25778
  *//**
25682
25779
  * Constructs a new WebDeploymentsApi.
25683
25780
  * @alias module:purecloud-platform-client-v2/api/WebDeploymentsApi
@@ -25810,7 +25907,7 @@ if(deploymentId===undefined||deploymentId===null){throw'Missing the required par
25810
25907
  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(){/**
25811
25908
  * WebMessaging service.
25812
25909
  * @module purecloud-platform-client-v2/api/WebMessagingApi
25813
- * @version 221.0.0
25910
+ * @version 223.0.0
25814
25911
  *//**
25815
25912
  * Constructs a new WebMessagingApi.
25816
25913
  * @alias module:purecloud-platform-client-v2/api/WebMessagingApi
@@ -25826,7 +25923,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
25826
25923
  */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(){/**
25827
25924
  * Widgets service.
25828
25925
  * @module purecloud-platform-client-v2/api/WidgetsApi
25829
- * @version 221.0.0
25926
+ * @version 223.0.0
25830
25927
  *//**
25831
25928
  * Constructs a new WidgetsApi.
25832
25929
  * @alias module:purecloud-platform-client-v2/api/WidgetsApi
@@ -25866,7 +25963,7 @@ if(deploymentId===undefined||deploymentId===null){throw'Missing the required par
25866
25963
  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(){/**
25867
25964
  * WorkforceManagement service.
25868
25965
  * @module purecloud-platform-client-v2/api/WorkforceManagementApi
25869
- * @version 221.0.0
25966
+ * @version 223.0.0
25870
25967
  *//**
25871
25968
  * Constructs a new WorkforceManagementApi.
25872
25969
  * @alias module:purecloud-platform-client-v2/api/WorkforceManagementApi
@@ -26630,10 +26727,11 @@ if(weekId===undefined||weekId===null){throw'Missing the required parameter "week
26630
26727
  * @param {String} weekDateId The start week date of the initiating shift in yyyy-MM-dd format. Dates are represented as an ISO-8601 string. For example: yyyy-MM-dd
26631
26728
  * @param {Object} opts Optional parameters
26632
26729
  * @param {Boolean} opts.evaluateMatches Whether to evaluate the matches for violations (default to true)
26730
+ * @param {Boolean} opts.includeCrossWeekShifts Whether to include all shift trades with either the initiating shift or the receiving shift in the week (default to false)
26633
26731
  * @param {Boolean} opts.forceDownloadService Force the result of this operation to be sent via download service. For testing/app development purposes
26634
26732
  */},{key:"getWorkforcemanagementManagementunitWeekShifttrades",value:function getWorkforcemanagementManagementunitWeekShifttrades(managementUnitId,weekDateId,opts){opts=opts||{};// verify the required parameter 'managementUnitId' is set
26635
26733
  if(managementUnitId===undefined||managementUnitId===null){throw'Missing the required parameter "managementUnitId" when calling getWorkforcemanagementManagementunitWeekShifttrades';}// verify the required parameter 'weekDateId' is set
26636
- if(weekDateId===undefined||weekDateId===null){throw'Missing the required parameter "weekDateId" when calling getWorkforcemanagementManagementunitWeekShifttrades';}return this.apiClient.callApi('/api/v2/workforcemanagement/managementunits/{managementUnitId}/weeks/{weekDateId}/shifttrades','GET',{'managementUnitId':managementUnitId,'weekDateId':weekDateId},{'evaluateMatches':opts['evaluateMatches'],'forceDownloadService':opts['forceDownloadService']},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
26734
+ if(weekDateId===undefined||weekDateId===null){throw'Missing the required parameter "weekDateId" when calling getWorkforcemanagementManagementunitWeekShifttrades';}return this.apiClient.callApi('/api/v2/workforcemanagement/managementunits/{managementUnitId}/weeks/{weekDateId}/shifttrades','GET',{'managementUnitId':managementUnitId,'weekDateId':weekDateId},{'evaluateMatches':opts['evaluateMatches'],'includeCrossWeekShifts':opts['includeCrossWeekShifts'],'forceDownloadService':opts['forceDownloadService']},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
26637
26735
  * Get a work plan
26638
26736
  *
26639
26737
  * @param {String} managementUnitId The ID of the management unit, or 'mine' for the management unit of the logged-in user.
@@ -26743,10 +26841,10 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
26743
26841
  * Update my alternative shifts trade by trade ID
26744
26842
  *
26745
26843
  * @param {String} tradeId The ID of the alternative shift trade
26746
- * @param {Object} opts Optional parameters
26747
- * @param {Object} opts.body body
26748
- */},{key:"patchWorkforcemanagementAlternativeshiftsTrade",value:function patchWorkforcemanagementAlternativeshiftsTrade(tradeId,opts){opts=opts||{};// verify the required parameter 'tradeId' is set
26749
- if(tradeId===undefined||tradeId===null){throw'Missing the required parameter "tradeId" when calling patchWorkforcemanagementAlternativeshiftsTrade';}return this.apiClient.callApi('/api/v2/workforcemanagement/alternativeshifts/trades/{tradeId}','PATCH',{'tradeId':tradeId},{},{},{},opts['body'],['PureCloud OAuth'],['application/json'],['application/json']);}/**
26844
+ * @param {Object} body body
26845
+ */},{key:"patchWorkforcemanagementAlternativeshiftsTrade",value:function patchWorkforcemanagementAlternativeshiftsTrade(tradeId,body){// verify the required parameter 'tradeId' is set
26846
+ if(tradeId===undefined||tradeId===null){throw'Missing the required parameter "tradeId" when calling patchWorkforcemanagementAlternativeshiftsTrade';}// verify the required parameter 'body' is set
26847
+ 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']);}/**
26750
26848
  * Bulk update alternative shift trade states
26751
26849
  *
26752
26850
  * @param {Object} body The request body
@@ -26755,19 +26853,19 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
26755
26853
  * Update business unit
26756
26854
  *
26757
26855
  * @param {String} businessUnitId The ID of the business unit, or 'mine' for the business unit of the logged-in user.
26758
- * @param {Object} opts Optional parameters
26759
- * @param {Object} opts.body body
26760
- */},{key:"patchWorkforcemanagementBusinessunit",value:function patchWorkforcemanagementBusinessunit(businessUnitId,opts){opts=opts||{};// verify the required parameter 'businessUnitId' is set
26761
- if(businessUnitId===undefined||businessUnitId===null){throw'Missing the required parameter "businessUnitId" when calling patchWorkforcemanagementBusinessunit';}return this.apiClient.callApi('/api/v2/workforcemanagement/businessunits/{businessUnitId}','PATCH',{'businessUnitId':businessUnitId},{},{},{},opts['body'],['PureCloud OAuth'],['application/json'],['application/json']);}/**
26856
+ * @param {Object} body body
26857
+ */},{key:"patchWorkforcemanagementBusinessunit",value:function patchWorkforcemanagementBusinessunit(businessUnitId,body){// verify the required parameter 'businessUnitId' is set
26858
+ if(businessUnitId===undefined||businessUnitId===null){throw'Missing the required parameter "businessUnitId" when calling patchWorkforcemanagementBusinessunit';}// verify the required parameter 'body' is set
26859
+ 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']);}/**
26762
26860
  * Update an activity code
26763
26861
  *
26764
26862
  * @param {String} businessUnitId The ID of the business unit, or 'mine' for the business unit of the logged-in user.
26765
26863
  * @param {String} activityCodeId The ID of the activity code to update
26766
- * @param {Object} opts Optional parameters
26767
- * @param {Object} opts.body body
26768
- */},{key:"patchWorkforcemanagementBusinessunitActivitycode",value:function patchWorkforcemanagementBusinessunitActivitycode(businessUnitId,activityCodeId,opts){opts=opts||{};// verify the required parameter 'businessUnitId' is set
26864
+ * @param {Object} body body
26865
+ */},{key:"patchWorkforcemanagementBusinessunitActivitycode",value:function patchWorkforcemanagementBusinessunitActivitycode(businessUnitId,activityCodeId,body){// verify the required parameter 'businessUnitId' is set
26769
26866
  if(businessUnitId===undefined||businessUnitId===null){throw'Missing the required parameter "businessUnitId" when calling patchWorkforcemanagementBusinessunitActivitycode';}// verify the required parameter 'activityCodeId' is set
26770
- if(activityCodeId===undefined||activityCodeId===null){throw'Missing the required parameter "activityCodeId" when calling patchWorkforcemanagementBusinessunitActivitycode';}return this.apiClient.callApi('/api/v2/workforcemanagement/businessunits/{businessUnitId}/activitycodes/{activityCodeId}','PATCH',{'businessUnitId':businessUnitId,'activityCodeId':activityCodeId},{},{},{},opts['body'],['PureCloud OAuth'],['application/json'],['application/json']);}/**
26867
+ if(activityCodeId===undefined||activityCodeId===null){throw'Missing the required parameter "activityCodeId" when calling patchWorkforcemanagementBusinessunitActivitycode';}// verify the required parameter 'body' is set
26868
+ 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']);}/**
26771
26869
  * Update an activity plan
26772
26870
  * If a job associated with the activity plan is in Processing state the activity plan cannot be updated
26773
26871
  * @param {String} businessUnitId The ID of the business unit
@@ -26780,55 +26878,55 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
26780
26878
  * Update alternative shifts settings for a business unit
26781
26879
  *
26782
26880
  * @param {String} businessUnitId The ID of the business unit
26783
- * @param {Object} opts Optional parameters
26784
- * @param {Object} opts.body body
26785
- */},{key:"patchWorkforcemanagementBusinessunitAlternativeshiftsSettings",value:function patchWorkforcemanagementBusinessunitAlternativeshiftsSettings(businessUnitId,opts){opts=opts||{};// verify the required parameter 'businessUnitId' is set
26786
- if(businessUnitId===undefined||businessUnitId===null){throw'Missing the required parameter "businessUnitId" when calling patchWorkforcemanagementBusinessunitAlternativeshiftsSettings';}return this.apiClient.callApi('/api/v2/workforcemanagement/businessunits/{businessUnitId}/alternativeshifts/settings','PATCH',{'businessUnitId':businessUnitId},{},{},{},opts['body'],['PureCloud OAuth'],['application/json'],['application/json']);}/**
26881
+ * @param {Object} body body
26882
+ */},{key:"patchWorkforcemanagementBusinessunitAlternativeshiftsSettings",value:function patchWorkforcemanagementBusinessunitAlternativeshiftsSettings(businessUnitId,body){// verify the required parameter 'businessUnitId' is set
26883
+ if(businessUnitId===undefined||businessUnitId===null){throw'Missing the required parameter "businessUnitId" when calling patchWorkforcemanagementBusinessunitAlternativeshiftsSettings';}// verify the required parameter 'body' is set
26884
+ 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']);}/**
26787
26885
  * Updates the planning group
26788
26886
  *
26789
26887
  * @param {String} businessUnitId The ID of the business unit.
26790
26888
  * @param {String} planningGroupId The ID of a planning group to update
26791
- * @param {Object} opts Optional parameters
26792
- * @param {Object} opts.body body
26793
- */},{key:"patchWorkforcemanagementBusinessunitPlanninggroup",value:function patchWorkforcemanagementBusinessunitPlanninggroup(businessUnitId,planningGroupId,opts){opts=opts||{};// verify the required parameter 'businessUnitId' is set
26889
+ * @param {Object} body body
26890
+ */},{key:"patchWorkforcemanagementBusinessunitPlanninggroup",value:function patchWorkforcemanagementBusinessunitPlanninggroup(businessUnitId,planningGroupId,body){// verify the required parameter 'businessUnitId' is set
26794
26891
  if(businessUnitId===undefined||businessUnitId===null){throw'Missing the required parameter "businessUnitId" when calling patchWorkforcemanagementBusinessunitPlanninggroup';}// verify the required parameter 'planningGroupId' is set
26795
- if(planningGroupId===undefined||planningGroupId===null){throw'Missing the required parameter "planningGroupId" when calling patchWorkforcemanagementBusinessunitPlanninggroup';}return this.apiClient.callApi('/api/v2/workforcemanagement/businessunits/{businessUnitId}/planninggroups/{planningGroupId}','PATCH',{'businessUnitId':businessUnitId,'planningGroupId':planningGroupId},{},{},{},opts['body'],['PureCloud OAuth'],['application/json'],['application/json']);}/**
26892
+ if(planningGroupId===undefined||planningGroupId===null){throw'Missing the required parameter "planningGroupId" when calling patchWorkforcemanagementBusinessunitPlanninggroup';}// verify the required parameter 'body' is set
26893
+ 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']);}/**
26796
26894
  * Mark a schedule run as applied
26797
26895
  *
26798
26896
  * @param {String} businessUnitId The ID of the business unit
26799
26897
  * @param {String} runId The ID of the schedule run
26800
- * @param {Object} opts Optional parameters
26801
- * @param {Object} opts.body body
26802
- */},{key:"patchWorkforcemanagementBusinessunitSchedulingRun",value:function patchWorkforcemanagementBusinessunitSchedulingRun(businessUnitId,runId,opts){opts=opts||{};// verify the required parameter 'businessUnitId' is set
26898
+ * @param {Object} body body
26899
+ */},{key:"patchWorkforcemanagementBusinessunitSchedulingRun",value:function patchWorkforcemanagementBusinessunitSchedulingRun(businessUnitId,runId,body){// verify the required parameter 'businessUnitId' is set
26803
26900
  if(businessUnitId===undefined||businessUnitId===null){throw'Missing the required parameter "businessUnitId" when calling patchWorkforcemanagementBusinessunitSchedulingRun';}// verify the required parameter 'runId' is set
26804
- if(runId===undefined||runId===null){throw'Missing the required parameter "runId" when calling patchWorkforcemanagementBusinessunitSchedulingRun';}return this.apiClient.callApi('/api/v2/workforcemanagement/businessunits/{businessUnitId}/scheduling/runs/{runId}','PATCH',{'businessUnitId':businessUnitId,'runId':runId},{},{},{},opts['body'],['PureCloud OAuth'],['application/json'],['application/json']);}/**
26901
+ if(runId===undefined||runId===null){throw'Missing the required parameter "runId" when calling patchWorkforcemanagementBusinessunitSchedulingRun';}// verify the required parameter 'body' is set
26902
+ 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']);}/**
26805
26903
  * Updates a service goal template
26806
26904
  *
26807
26905
  * @param {String} businessUnitId The ID of the business unit.
26808
26906
  * @param {String} serviceGoalTemplateId The ID of a service goal template to update
26809
- * @param {Object} opts Optional parameters
26810
- * @param {Object} opts.body body
26811
- */},{key:"patchWorkforcemanagementBusinessunitServicegoaltemplate",value:function patchWorkforcemanagementBusinessunitServicegoaltemplate(businessUnitId,serviceGoalTemplateId,opts){opts=opts||{};// verify the required parameter 'businessUnitId' is set
26907
+ * @param {Object} body body
26908
+ */},{key:"patchWorkforcemanagementBusinessunitServicegoaltemplate",value:function patchWorkforcemanagementBusinessunitServicegoaltemplate(businessUnitId,serviceGoalTemplateId,body){// verify the required parameter 'businessUnitId' is set
26812
26909
  if(businessUnitId===undefined||businessUnitId===null){throw'Missing the required parameter "businessUnitId" when calling patchWorkforcemanagementBusinessunitServicegoaltemplate';}// verify the required parameter 'serviceGoalTemplateId' is set
26813
- if(serviceGoalTemplateId===undefined||serviceGoalTemplateId===null){throw'Missing the required parameter "serviceGoalTemplateId" when calling patchWorkforcemanagementBusinessunitServicegoaltemplate';}return this.apiClient.callApi('/api/v2/workforcemanagement/businessunits/{businessUnitId}/servicegoaltemplates/{serviceGoalTemplateId}','PATCH',{'businessUnitId':businessUnitId,'serviceGoalTemplateId':serviceGoalTemplateId},{},{},{},opts['body'],['PureCloud OAuth'],['application/json'],['application/json']);}/**
26910
+ if(serviceGoalTemplateId===undefined||serviceGoalTemplateId===null){throw'Missing the required parameter "serviceGoalTemplateId" when calling patchWorkforcemanagementBusinessunitServicegoaltemplate';}// verify the required parameter 'body' is set
26911
+ 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']);}/**
26814
26912
  * Updates a staffing group
26815
26913
  *
26816
26914
  * @param {String} businessUnitId The ID of the business unit
26817
26915
  * @param {String} staffingGroupId The ID of the staffing group to update
26818
- * @param {Object} opts Optional parameters
26819
- * @param {Object} opts.body body
26820
- */},{key:"patchWorkforcemanagementBusinessunitStaffinggroup",value:function patchWorkforcemanagementBusinessunitStaffinggroup(businessUnitId,staffingGroupId,opts){opts=opts||{};// verify the required parameter 'businessUnitId' is set
26916
+ * @param {Object} body body
26917
+ */},{key:"patchWorkforcemanagementBusinessunitStaffinggroup",value:function patchWorkforcemanagementBusinessunitStaffinggroup(businessUnitId,staffingGroupId,body){// verify the required parameter 'businessUnitId' is set
26821
26918
  if(businessUnitId===undefined||businessUnitId===null){throw'Missing the required parameter "businessUnitId" when calling patchWorkforcemanagementBusinessunitStaffinggroup';}// verify the required parameter 'staffingGroupId' is set
26822
- if(staffingGroupId===undefined||staffingGroupId===null){throw'Missing the required parameter "staffingGroupId" when calling patchWorkforcemanagementBusinessunitStaffinggroup';}return this.apiClient.callApi('/api/v2/workforcemanagement/businessunits/{businessUnitId}/staffinggroups/{staffingGroupId}','PATCH',{'businessUnitId':businessUnitId,'staffingGroupId':staffingGroupId},{},{},{},opts['body'],['PureCloud OAuth'],['application/json'],['application/json']);}/**
26919
+ if(staffingGroupId===undefined||staffingGroupId===null){throw'Missing the required parameter "staffingGroupId" when calling patchWorkforcemanagementBusinessunitStaffinggroup';}// verify the required parameter 'body' is set
26920
+ 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']);}/**
26823
26921
  * Updates a time-off plan
26824
26922
  *
26825
26923
  * @param {String} businessUnitId The ID of the business unit
26826
26924
  * @param {String} timeOffPlanId The ID of the time-off plan to update
26827
- * @param {Object} opts Optional parameters
26828
- * @param {Object} opts.body body
26829
- */},{key:"patchWorkforcemanagementBusinessunitTimeoffplan",value:function patchWorkforcemanagementBusinessunitTimeoffplan(businessUnitId,timeOffPlanId,opts){opts=opts||{};// verify the required parameter 'businessUnitId' is set
26925
+ * @param {Object} body body
26926
+ */},{key:"patchWorkforcemanagementBusinessunitTimeoffplan",value:function patchWorkforcemanagementBusinessunitTimeoffplan(businessUnitId,timeOffPlanId,body){// verify the required parameter 'businessUnitId' is set
26830
26927
  if(businessUnitId===undefined||businessUnitId===null){throw'Missing the required parameter "businessUnitId" when calling patchWorkforcemanagementBusinessunitTimeoffplan';}// verify the required parameter 'timeOffPlanId' is set
26831
- if(timeOffPlanId===undefined||timeOffPlanId===null){throw'Missing the required parameter "timeOffPlanId" when calling patchWorkforcemanagementBusinessunitTimeoffplan';}return this.apiClient.callApi('/api/v2/workforcemanagement/businessunits/{businessUnitId}/timeoffplans/{timeOffPlanId}','PATCH',{'businessUnitId':businessUnitId,'timeOffPlanId':timeOffPlanId},{},{},{},opts['body'],['PureCloud OAuth'],['application/json'],['application/json']);}/**
26928
+ if(timeOffPlanId===undefined||timeOffPlanId===null){throw'Missing the required parameter "timeOffPlanId" when calling patchWorkforcemanagementBusinessunitTimeoffplan';}// verify the required parameter 'body' is set
26929
+ 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']);}/**
26832
26930
  * Update work plan bid
26833
26931
  *
26834
26932
  * @param {String} businessUnitId The ID of the business unit
@@ -26843,84 +26941,84 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
26843
26941
  * @param {String} businessUnitId The ID of the business unit
26844
26942
  * @param {String} bidId The work plan bid id of the bid groups
26845
26943
  * @param {String} bidGroupId Work Plan Bid Group id
26846
- * @param {Object} opts Optional parameters
26847
- * @param {Object} opts.body body
26848
- */},{key:"patchWorkforcemanagementBusinessunitWorkplanbidGroup",value:function patchWorkforcemanagementBusinessunitWorkplanbidGroup(businessUnitId,bidId,bidGroupId,opts){opts=opts||{};// verify the required parameter 'businessUnitId' is set
26944
+ * @param {Object} body body
26945
+ */},{key:"patchWorkforcemanagementBusinessunitWorkplanbidGroup",value:function patchWorkforcemanagementBusinessunitWorkplanbidGroup(businessUnitId,bidId,bidGroupId,body){// verify the required parameter 'businessUnitId' is set
26849
26946
  if(businessUnitId===undefined||businessUnitId===null){throw'Missing the required parameter "businessUnitId" when calling patchWorkforcemanagementBusinessunitWorkplanbidGroup';}// verify the required parameter 'bidId' is set
26850
26947
  if(bidId===undefined||bidId===null){throw'Missing the required parameter "bidId" when calling patchWorkforcemanagementBusinessunitWorkplanbidGroup';}// verify the required parameter 'bidGroupId' is set
26851
- if(bidGroupId===undefined||bidGroupId===null){throw'Missing the required parameter "bidGroupId" when calling patchWorkforcemanagementBusinessunitWorkplanbidGroup';}return this.apiClient.callApi('/api/v2/workforcemanagement/businessunits/{businessUnitId}/workplanbids/{bidId}/groups/{bidGroupId}','PATCH',{'businessUnitId':businessUnitId,'bidId':bidId,'bidGroupId':bidGroupId},{},{},{},opts['body'],['PureCloud OAuth'],['application/json'],['application/json']);}/**
26948
+ if(bidGroupId===undefined||bidGroupId===null){throw'Missing the required parameter "bidGroupId" when calling patchWorkforcemanagementBusinessunitWorkplanbidGroup';}// verify the required parameter 'body' is set
26949
+ 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']);}/**
26852
26950
  * Overrides the assigned work plan for the specified agents
26853
26951
  *
26854
26952
  * @param {String} businessUnitId The ID of the business unit
26855
26953
  * @param {String} bidId The work plan bid id of the bid groups
26856
26954
  * @param {String} bidGroupId The ID of the work plan bid group
26857
- * @param {Object} opts Optional parameters
26858
- * @param {Object} opts.body body
26859
- */},{key:"patchWorkforcemanagementBusinessunitWorkplanbidGroupPreferences",value:function patchWorkforcemanagementBusinessunitWorkplanbidGroupPreferences(businessUnitId,bidId,bidGroupId,opts){opts=opts||{};// verify the required parameter 'businessUnitId' is set
26955
+ * @param {Object} body body
26956
+ */},{key:"patchWorkforcemanagementBusinessunitWorkplanbidGroupPreferences",value:function patchWorkforcemanagementBusinessunitWorkplanbidGroupPreferences(businessUnitId,bidId,bidGroupId,body){// verify the required parameter 'businessUnitId' is set
26860
26957
  if(businessUnitId===undefined||businessUnitId===null){throw'Missing the required parameter "businessUnitId" when calling patchWorkforcemanagementBusinessunitWorkplanbidGroupPreferences';}// verify the required parameter 'bidId' is set
26861
26958
  if(bidId===undefined||bidId===null){throw'Missing the required parameter "bidId" when calling patchWorkforcemanagementBusinessunitWorkplanbidGroupPreferences';}// verify the required parameter 'bidGroupId' is set
26862
- if(bidGroupId===undefined||bidGroupId===null){throw'Missing the required parameter "bidGroupId" when calling patchWorkforcemanagementBusinessunitWorkplanbidGroupPreferences';}return this.apiClient.callApi('/api/v2/workforcemanagement/businessunits/{businessUnitId}/workplanbids/{bidId}/groups/{bidGroupId}/preferences','PATCH',{'businessUnitId':businessUnitId,'bidId':bidId,'bidGroupId':bidGroupId},{},{},{},opts['body'],['PureCloud OAuth'],['application/json'],['application/json']);}/**
26959
+ if(bidGroupId===undefined||bidGroupId===null){throw'Missing the required parameter "bidGroupId" when calling patchWorkforcemanagementBusinessunitWorkplanbidGroupPreferences';}// verify the required parameter 'body' is set
26960
+ 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']);}/**
26863
26961
  * Update the requested management unit
26864
26962
  *
26865
26963
  * @param {String} managementUnitId The ID of the management unit, or 'mine' for the management unit of the logged-in user.
26866
- * @param {Object} opts Optional parameters
26867
- * @param {Object} opts.body body
26868
- */},{key:"patchWorkforcemanagementManagementunit",value:function patchWorkforcemanagementManagementunit(managementUnitId,opts){opts=opts||{};// verify the required parameter 'managementUnitId' is set
26869
- if(managementUnitId===undefined||managementUnitId===null){throw'Missing the required parameter "managementUnitId" when calling patchWorkforcemanagementManagementunit';}return this.apiClient.callApi('/api/v2/workforcemanagement/managementunits/{managementUnitId}','PATCH',{'managementUnitId':managementUnitId},{},{},{},opts['body'],['PureCloud OAuth'],['application/json'],['application/json']);}/**
26964
+ * @param {Object} body body
26965
+ */},{key:"patchWorkforcemanagementManagementunit",value:function patchWorkforcemanagementManagementunit(managementUnitId,body){// verify the required parameter 'managementUnitId' is set
26966
+ if(managementUnitId===undefined||managementUnitId===null){throw'Missing the required parameter "managementUnitId" when calling patchWorkforcemanagementManagementunit';}// verify the required parameter 'body' is set
26967
+ 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']);}/**
26870
26968
  * Update agent configurations
26871
26969
  *
26872
26970
  * @param {String} managementUnitId The ID of the management unit, or 'mine' for the management unit of the logged-in user.
26873
- * @param {Object} opts Optional parameters
26874
- * @param {Object} opts.body body
26875
- */},{key:"patchWorkforcemanagementManagementunitAgents",value:function patchWorkforcemanagementManagementunitAgents(managementUnitId,opts){opts=opts||{};// verify the required parameter 'managementUnitId' is set
26876
- if(managementUnitId===undefined||managementUnitId===null){throw'Missing the required parameter "managementUnitId" when calling patchWorkforcemanagementManagementunitAgents';}return this.apiClient.callApi('/api/v2/workforcemanagement/managementunits/{managementUnitId}/agents','PATCH',{'managementUnitId':managementUnitId},{},{},{},opts['body'],['PureCloud OAuth'],['application/json'],['application/json']);}/**
26971
+ * @param {Object} body body
26972
+ */},{key:"patchWorkforcemanagementManagementunitAgents",value:function patchWorkforcemanagementManagementunitAgents(managementUnitId,body){// verify the required parameter 'managementUnitId' is set
26973
+ if(managementUnitId===undefined||managementUnitId===null){throw'Missing the required parameter "managementUnitId" when calling patchWorkforcemanagementManagementunitAgents';}// verify the required parameter 'body' is set
26974
+ 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']);}/**
26877
26975
  * Updates agent work plan configuration
26878
26976
  *
26879
26977
  * @param {String} managementUnitId The ID of the management unit, or 'mine' for the management unit of the logged-in user.
26880
- * @param {Object} opts Optional parameters
26881
- * @param {Object} opts.body body
26882
- */},{key:"patchWorkforcemanagementManagementunitAgentsWorkplansBulk",value:function patchWorkforcemanagementManagementunitAgentsWorkplansBulk(managementUnitId,opts){opts=opts||{};// verify the required parameter 'managementUnitId' is set
26883
- if(managementUnitId===undefined||managementUnitId===null){throw'Missing the required parameter "managementUnitId" when calling patchWorkforcemanagementManagementunitAgentsWorkplansBulk';}return this.apiClient.callApi('/api/v2/workforcemanagement/managementunits/{managementUnitId}/agents/workplans/bulk','PATCH',{'managementUnitId':managementUnitId},{},{},{},opts['body'],['PureCloud OAuth'],['application/json'],['application/json']);}/**
26978
+ * @param {Object} body body
26979
+ */},{key:"patchWorkforcemanagementManagementunitAgentsWorkplansBulk",value:function patchWorkforcemanagementManagementunitAgentsWorkplansBulk(managementUnitId,body){// verify the required parameter 'managementUnitId' is set
26980
+ if(managementUnitId===undefined||managementUnitId===null){throw'Missing the required parameter "managementUnitId" when calling patchWorkforcemanagementManagementunitAgentsWorkplansBulk';}// verify the required parameter 'body' is set
26981
+ 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']);}/**
26884
26982
  * Updates a time off limit object.
26885
26983
  * Updates time off limit object properties, but not daily values.
26886
26984
  * @param {String} managementUnitId The ID of the management unit.
26887
26985
  * @param {String} timeOffLimitId The id of time off limit object to update
26888
- * @param {Object} opts Optional parameters
26889
- * @param {Object} opts.body body
26890
- */},{key:"patchWorkforcemanagementManagementunitTimeofflimit",value:function patchWorkforcemanagementManagementunitTimeofflimit(managementUnitId,timeOffLimitId,opts){opts=opts||{};// verify the required parameter 'managementUnitId' is set
26986
+ * @param {Object} body body
26987
+ */},{key:"patchWorkforcemanagementManagementunitTimeofflimit",value:function patchWorkforcemanagementManagementunitTimeofflimit(managementUnitId,timeOffLimitId,body){// verify the required parameter 'managementUnitId' is set
26891
26988
  if(managementUnitId===undefined||managementUnitId===null){throw'Missing the required parameter "managementUnitId" when calling patchWorkforcemanagementManagementunitTimeofflimit';}// verify the required parameter 'timeOffLimitId' is set
26892
- if(timeOffLimitId===undefined||timeOffLimitId===null){throw'Missing the required parameter "timeOffLimitId" when calling patchWorkforcemanagementManagementunitTimeofflimit';}return this.apiClient.callApi('/api/v2/workforcemanagement/managementunits/{managementUnitId}/timeofflimits/{timeOffLimitId}','PATCH',{'managementUnitId':managementUnitId,'timeOffLimitId':timeOffLimitId},{},{},{},opts['body'],['PureCloud OAuth'],['application/json'],['application/json']);}/**
26989
+ if(timeOffLimitId===undefined||timeOffLimitId===null){throw'Missing the required parameter "timeOffLimitId" when calling patchWorkforcemanagementManagementunitTimeofflimit';}// verify the required parameter 'body' is set
26990
+ 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']);}/**
26893
26991
  * Updates a time off plan
26894
26992
  *
26895
26993
  * @param {String} managementUnitId The ID of the management unit
26896
26994
  * @param {String} timeOffPlanId The ID of the time off plan to update
26897
- * @param {Object} opts Optional parameters
26898
- * @param {Object} opts.body body
26899
- */},{key:"patchWorkforcemanagementManagementunitTimeoffplan",value:function patchWorkforcemanagementManagementunitTimeoffplan(managementUnitId,timeOffPlanId,opts){opts=opts||{};// verify the required parameter 'managementUnitId' is set
26995
+ * @param {Object} body body
26996
+ */},{key:"patchWorkforcemanagementManagementunitTimeoffplan",value:function patchWorkforcemanagementManagementunitTimeoffplan(managementUnitId,timeOffPlanId,body){// verify the required parameter 'managementUnitId' is set
26900
26997
  if(managementUnitId===undefined||managementUnitId===null){throw'Missing the required parameter "managementUnitId" when calling patchWorkforcemanagementManagementunitTimeoffplan';}// verify the required parameter 'timeOffPlanId' is set
26901
- if(timeOffPlanId===undefined||timeOffPlanId===null){throw'Missing the required parameter "timeOffPlanId" when calling patchWorkforcemanagementManagementunitTimeoffplan';}return this.apiClient.callApi('/api/v2/workforcemanagement/managementunits/{managementUnitId}/timeoffplans/{timeOffPlanId}','PATCH',{'managementUnitId':managementUnitId,'timeOffPlanId':timeOffPlanId},{},{},{},opts['body'],['PureCloud OAuth'],['application/json'],['application/json']);}/**
26998
+ if(timeOffPlanId===undefined||timeOffPlanId===null){throw'Missing the required parameter "timeOffPlanId" when calling patchWorkforcemanagementManagementunitTimeoffplan';}// verify the required parameter 'body' is set
26999
+ 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']);}/**
26902
27000
  * Set integration status for a time off request.
26903
27001
  *
26904
27002
  * @param {String} managementUnitId The ID of the management unit.
26905
27003
  * @param {String} timeOffRequestId The ID of the time off request.
26906
27004
  * @param {String} userId The ID of user to whom the time off request belongs.
26907
- * @param {Object} opts Optional parameters
26908
- * @param {Object} opts.body body
26909
- */},{key:"patchWorkforcemanagementManagementunitTimeoffrequestUserIntegrationstatus",value:function patchWorkforcemanagementManagementunitTimeoffrequestUserIntegrationstatus(managementUnitId,timeOffRequestId,userId,opts){opts=opts||{};// verify the required parameter 'managementUnitId' is set
27005
+ * @param {Object} body body
27006
+ */},{key:"patchWorkforcemanagementManagementunitTimeoffrequestUserIntegrationstatus",value:function patchWorkforcemanagementManagementunitTimeoffrequestUserIntegrationstatus(managementUnitId,timeOffRequestId,userId,body){// verify the required parameter 'managementUnitId' is set
26910
27007
  if(managementUnitId===undefined||managementUnitId===null){throw'Missing the required parameter "managementUnitId" when calling patchWorkforcemanagementManagementunitTimeoffrequestUserIntegrationstatus';}// verify the required parameter 'timeOffRequestId' is set
26911
27008
  if(timeOffRequestId===undefined||timeOffRequestId===null){throw'Missing the required parameter "timeOffRequestId" when calling patchWorkforcemanagementManagementunitTimeoffrequestUserIntegrationstatus';}// verify the required parameter 'userId' is set
26912
- if(userId===undefined||userId===null){throw'Missing the required parameter "userId" when calling patchWorkforcemanagementManagementunitTimeoffrequestUserIntegrationstatus';}return this.apiClient.callApi('/api/v2/workforcemanagement/managementunits/{managementUnitId}/timeoffrequests/{timeOffRequestId}/users/{userId}/integrationstatus','PATCH',{'managementUnitId':managementUnitId,'timeOffRequestId':timeOffRequestId,'userId':userId},{},{},{},opts['body'],['PureCloud OAuth'],['application/json'],['application/json']);}/**
27009
+ if(userId===undefined||userId===null){throw'Missing the required parameter "userId" when calling patchWorkforcemanagementManagementunitTimeoffrequestUserIntegrationstatus';}// verify the required parameter 'body' is set
27010
+ 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']);}/**
26913
27011
  * Update a time off request
26914
27012
  *
26915
27013
  * @param {String} managementUnitId The ID of the management unit, or 'mine' for the management unit of the logged-in user.
26916
27014
  * @param {String} userId The id of the user the requested time off request belongs to
26917
27015
  * @param {String} timeOffRequestId The id of the time off request to update
26918
- * @param {Object} opts Optional parameters
26919
- * @param {Object} opts.body body
26920
- */},{key:"patchWorkforcemanagementManagementunitUserTimeoffrequest",value:function patchWorkforcemanagementManagementunitUserTimeoffrequest(managementUnitId,userId,timeOffRequestId,opts){opts=opts||{};// verify the required parameter 'managementUnitId' is set
27016
+ * @param {Object} body body
27017
+ */},{key:"patchWorkforcemanagementManagementunitUserTimeoffrequest",value:function patchWorkforcemanagementManagementunitUserTimeoffrequest(managementUnitId,userId,timeOffRequestId,body){// verify the required parameter 'managementUnitId' is set
26921
27018
  if(managementUnitId===undefined||managementUnitId===null){throw'Missing the required parameter "managementUnitId" when calling patchWorkforcemanagementManagementunitUserTimeoffrequest';}// verify the required parameter 'userId' is set
26922
27019
  if(userId===undefined||userId===null){throw'Missing the required parameter "userId" when calling patchWorkforcemanagementManagementunitUserTimeoffrequest';}// verify the required parameter 'timeOffRequestId' is set
26923
- if(timeOffRequestId===undefined||timeOffRequestId===null){throw'Missing the required parameter "timeOffRequestId" when calling patchWorkforcemanagementManagementunitUserTimeoffrequest';}return this.apiClient.callApi('/api/v2/workforcemanagement/managementunits/{managementUnitId}/users/{userId}/timeoffrequests/{timeOffRequestId}','PATCH',{'managementUnitId':managementUnitId,'userId':userId,'timeOffRequestId':timeOffRequestId},{},{},{},opts['body'],['PureCloud OAuth'],['application/json'],['application/json']);}/**
27020
+ if(timeOffRequestId===undefined||timeOffRequestId===null){throw'Missing the required parameter "timeOffRequestId" when calling patchWorkforcemanagementManagementunitUserTimeoffrequest';}// verify the required parameter 'body' is set
27021
+ 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']);}/**
26924
27022
  * Updates a shift trade. This route can only be called by the initiating agent
26925
27023
  *
26926
27024
  * @param {String} managementUnitId The ID of the management unit, or 'mine' for the management unit of the logged-in user.
@@ -26936,35 +27034,36 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
26936
27034
  *
26937
27035
  * @param {String} managementUnitId The ID of the management unit, or 'mine' for the management unit of the logged-in user.
26938
27036
  * @param {String} workPlanId The ID of the work plan to update
27037
+ * @param {Object} body body
26939
27038
  * @param {Object} opts Optional parameters
26940
27039
  * @param {Object} opts.validationMode Allows to update work plan even if validation result is invalid
26941
- * @param {Object} opts.body body
26942
- */},{key:"patchWorkforcemanagementManagementunitWorkplan",value:function patchWorkforcemanagementManagementunitWorkplan(managementUnitId,workPlanId,opts){opts=opts||{};// verify the required parameter 'managementUnitId' is set
27040
+ */},{key:"patchWorkforcemanagementManagementunitWorkplan",value:function patchWorkforcemanagementManagementunitWorkplan(managementUnitId,workPlanId,body,opts){opts=opts||{};// verify the required parameter 'managementUnitId' is set
26943
27041
  if(managementUnitId===undefined||managementUnitId===null){throw'Missing the required parameter "managementUnitId" when calling patchWorkforcemanagementManagementunitWorkplan';}// verify the required parameter 'workPlanId' is set
26944
- if(workPlanId===undefined||workPlanId===null){throw'Missing the required parameter "workPlanId" when calling patchWorkforcemanagementManagementunitWorkplan';}return this.apiClient.callApi('/api/v2/workforcemanagement/managementunits/{managementUnitId}/workplans/{workPlanId}','PATCH',{'managementUnitId':managementUnitId,'workPlanId':workPlanId},{'validationMode':opts['validationMode']},{},{},opts['body'],['PureCloud OAuth'],['application/json'],['application/json']);}/**
27042
+ if(workPlanId===undefined||workPlanId===null){throw'Missing the required parameter "workPlanId" when calling patchWorkforcemanagementManagementunitWorkplan';}// verify the required parameter 'body' is set
27043
+ 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']);}/**
26945
27044
  * Update a work plan rotation
26946
27045
  *
26947
27046
  * @param {String} managementUnitId The ID of the management unit, or 'mine' for the management unit of the logged-in user.
26948
27047
  * @param {String} workPlanRotationId The ID of the work plan rotation to update
26949
- * @param {Object} opts Optional parameters
26950
- * @param {Object} opts.body body
26951
- */},{key:"patchWorkforcemanagementManagementunitWorkplanrotation",value:function patchWorkforcemanagementManagementunitWorkplanrotation(managementUnitId,workPlanRotationId,opts){opts=opts||{};// verify the required parameter 'managementUnitId' is set
27048
+ * @param {Object} body body
27049
+ */},{key:"patchWorkforcemanagementManagementunitWorkplanrotation",value:function patchWorkforcemanagementManagementunitWorkplanrotation(managementUnitId,workPlanRotationId,body){// verify the required parameter 'managementUnitId' is set
26952
27050
  if(managementUnitId===undefined||managementUnitId===null){throw'Missing the required parameter "managementUnitId" when calling patchWorkforcemanagementManagementunitWorkplanrotation';}// verify the required parameter 'workPlanRotationId' is set
26953
- if(workPlanRotationId===undefined||workPlanRotationId===null){throw'Missing the required parameter "workPlanRotationId" when calling patchWorkforcemanagementManagementunitWorkplanrotation';}return this.apiClient.callApi('/api/v2/workforcemanagement/managementunits/{managementUnitId}/workplanrotations/{workPlanRotationId}','PATCH',{'managementUnitId':managementUnitId,'workPlanRotationId':workPlanRotationId},{},{},{},opts['body'],['PureCloud OAuth'],['application/json'],['application/json']);}/**
27051
+ if(workPlanRotationId===undefined||workPlanRotationId===null){throw'Missing the required parameter "workPlanRotationId" when calling patchWorkforcemanagementManagementunitWorkplanrotation';}// verify the required parameter 'body' is set
27052
+ 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']);}/**
26954
27053
  * Update a time off request for the current user
26955
27054
  *
26956
27055
  * @param {String} timeOffRequestId The ID of the time off request
26957
- * @param {Object} opts Optional parameters
26958
- * @param {Object} opts.body body
26959
- */},{key:"patchWorkforcemanagementTimeoffrequest",value:function patchWorkforcemanagementTimeoffrequest(timeOffRequestId,opts){opts=opts||{};// verify the required parameter 'timeOffRequestId' is set
26960
- if(timeOffRequestId===undefined||timeOffRequestId===null){throw'Missing the required parameter "timeOffRequestId" when calling patchWorkforcemanagementTimeoffrequest';}return this.apiClient.callApi('/api/v2/workforcemanagement/timeoffrequests/{timeOffRequestId}','PATCH',{'timeOffRequestId':timeOffRequestId},{},{},{},opts['body'],['PureCloud OAuth'],['application/json'],['application/json']);}/**
27056
+ * @param {Object} body body
27057
+ */},{key:"patchWorkforcemanagementTimeoffrequest",value:function patchWorkforcemanagementTimeoffrequest(timeOffRequestId,body){// verify the required parameter 'timeOffRequestId' is set
27058
+ if(timeOffRequestId===undefined||timeOffRequestId===null){throw'Missing the required parameter "timeOffRequestId" when calling patchWorkforcemanagementTimeoffrequest';}// verify the required parameter 'body' is set
27059
+ 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']);}/**
26961
27060
  * Update work plan bid ranks for a user
26962
27061
  *
26963
27062
  * @param {String} userId The userId to whom the work plan bid ranks apply.
26964
- * @param {Object} opts Optional parameters
26965
- * @param {Object} opts.body body
26966
- */},{key:"patchWorkforcemanagementUserWorkplanbidranks",value:function patchWorkforcemanagementUserWorkplanbidranks(userId,opts){opts=opts||{};// verify the required parameter 'userId' is set
26967
- if(userId===undefined||userId===null){throw'Missing the required parameter "userId" when calling patchWorkforcemanagementUserWorkplanbidranks';}return this.apiClient.callApi('/api/v2/workforcemanagement/users/{userId}/workplanbidranks','PATCH',{'userId':userId},{},{},{},opts['body'],['PureCloud OAuth'],['application/json'],['application/json']);}/**
27063
+ * @param {Object} body body
27064
+ */},{key:"patchWorkforcemanagementUserWorkplanbidranks",value:function patchWorkforcemanagementUserWorkplanbidranks(userId,body){// verify the required parameter 'userId' is set
27065
+ if(userId===undefined||userId===null){throw'Missing the required parameter "userId" when calling patchWorkforcemanagementUserWorkplanbidranks';}// verify the required parameter 'body' is set
27066
+ 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']);}/**
26968
27067
  * Update bulk work plan bid ranks on users. Max 50 users can be updated at a time.
26969
27068
  *
26970
27069
  * @param {Array.<Object>} body Users
@@ -26973,10 +27072,10 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
26973
27072
  * Update an agent's work plan bidding preference
26974
27073
  *
26975
27074
  * @param {String} bidId The ID of the work plan bid
26976
- * @param {Object} opts Optional parameters
26977
- * @param {Object} opts.body body
26978
- */},{key:"patchWorkforcemanagementWorkplanbidPreferences",value:function patchWorkforcemanagementWorkplanbidPreferences(bidId,opts){opts=opts||{};// verify the required parameter 'bidId' is set
26979
- if(bidId===undefined||bidId===null){throw'Missing the required parameter "bidId" when calling patchWorkforcemanagementWorkplanbidPreferences';}return this.apiClient.callApi('/api/v2/workforcemanagement/workplanbids/{bidId}/preferences','PATCH',{'bidId':bidId},{},{},{},opts['body'],['PureCloud OAuth'],['application/json'],['application/json']);}/**
27075
+ * @param {Object} body body
27076
+ */},{key:"patchWorkforcemanagementWorkplanbidPreferences",value:function patchWorkforcemanagementWorkplanbidPreferences(bidId,body){// verify the required parameter 'bidId' is set
27077
+ if(bidId===undefined||bidId===null){throw'Missing the required parameter "bidId" when calling patchWorkforcemanagementWorkplanbidPreferences';}// verify the required parameter 'body' is set
27078
+ 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']);}/**
26980
27079
  * Submit an adherence explanation for the current user
26981
27080
  *
26982
27081
  * @param {Object} body The request body
@@ -26998,9 +27097,9 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
26998
27097
  */},{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']);}/**
26999
27098
  * Request a historical adherence report in bulk
27000
27099
  *
27001
- * @param {Object} opts Optional parameters
27002
- * @param {Object} opts.body body
27003
- */},{key:"postWorkforcemanagementAdherenceHistoricalBulk",value:function postWorkforcemanagementAdherenceHistoricalBulk(opts){opts=opts||{};return this.apiClient.callApi('/api/v2/workforcemanagement/adherence/historical/bulk','POST',{},{},{},{},opts['body'],['PureCloud OAuth'],['application/json'],['application/json']);}/**
27100
+ * @param {Object} body body
27101
+ */},{key:"postWorkforcemanagementAdherenceHistoricalBulk",value:function postWorkforcemanagementAdherenceHistoricalBulk(body){// verify the required parameter 'body' is set
27102
+ 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']);}/**
27004
27103
  * Add an adherence explanation for the requested user
27005
27104
  *
27006
27105
  * @param {String} agentId The ID of the agent to query
@@ -27020,14 +27119,14 @@ if(agentId===undefined||agentId===null){throw'Missing the required parameter "ag
27020
27119
  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']);}/**
27021
27120
  * Move agents in and out of management unit
27022
27121
  *
27023
- * @param {Object} opts Optional parameters
27024
- * @param {Object} opts.body body
27025
- */},{key:"postWorkforcemanagementAgents",value:function postWorkforcemanagementAgents(opts){opts=opts||{};return this.apiClient.callApi('/api/v2/workforcemanagement/agents','POST',{},{},{},{},opts['body'],['PureCloud OAuth'],['application/json'],['application/json']);}/**
27122
+ * @param {Object} body body
27123
+ */},{key:"postWorkforcemanagementAgents",value:function postWorkforcemanagementAgents(body){// verify the required parameter 'body' is set
27124
+ 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']);}/**
27026
27125
  * Query integrations for agents
27027
27126
  *
27028
- * @param {Object} opts Optional parameters
27029
- * @param {Object} opts.body body
27030
- */},{key:"postWorkforcemanagementAgentsIntegrationsHrisQuery",value:function postWorkforcemanagementAgentsIntegrationsHrisQuery(opts){opts=opts||{};return this.apiClient.callApi('/api/v2/workforcemanagement/agents/integrations/hris/query','POST',{},{},{},{},opts['body'],['PureCloud OAuth'],['application/json'],['application/json']);}/**
27127
+ * @param {Object} body body
27128
+ */},{key:"postWorkforcemanagementAgentsIntegrationsHrisQuery",value:function postWorkforcemanagementAgentsIntegrationsHrisQuery(body){// verify the required parameter 'body' is set
27129
+ 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']);}/**
27031
27130
  * Get agent possible work shifts for requested time frame
27032
27131
  *
27033
27132
  * @param {Object} body body
@@ -27035,9 +27134,9 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
27035
27134
  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']);}/**
27036
27135
  * Get published schedule for the current user
27037
27136
  *
27038
- * @param {Object} opts Optional parameters
27039
- * @param {Object} opts.body body
27040
- */},{key:"postWorkforcemanagementAgentschedulesMine",value:function postWorkforcemanagementAgentschedulesMine(opts){opts=opts||{};return this.apiClient.callApi('/api/v2/workforcemanagement/agentschedules/mine','POST',{},{},{},{},opts['body'],['PureCloud OAuth'],['application/json'],['application/json']);}/**
27137
+ * @param {Object} body body
27138
+ */},{key:"postWorkforcemanagementAgentschedulesMine",value:function postWorkforcemanagementAgentschedulesMine(body){// verify the required parameter 'body' is set
27139
+ 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']);}/**
27041
27140
  * Request a list of alternative shift offers for a given schedule
27042
27141
  *
27043
27142
  * @param {Object} body The request body
@@ -27056,10 +27155,10 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
27056
27155
  * Create a new activity code
27057
27156
  *
27058
27157
  * @param {String} businessUnitId The ID of the business unit, or 'mine' for the business unit of the logged-in user.
27059
- * @param {Object} opts Optional parameters
27060
- * @param {Object} opts.body body
27061
- */},{key:"postWorkforcemanagementBusinessunitActivitycodes",value:function postWorkforcemanagementBusinessunitActivitycodes(businessUnitId,opts){opts=opts||{};// verify the required parameter 'businessUnitId' is set
27062
- if(businessUnitId===undefined||businessUnitId===null){throw'Missing the required parameter "businessUnitId" when calling postWorkforcemanagementBusinessunitActivitycodes';}return this.apiClient.callApi('/api/v2/workforcemanagement/businessunits/{businessUnitId}/activitycodes','POST',{'businessUnitId':businessUnitId},{},{},{},opts['body'],['PureCloud OAuth'],['application/json'],['application/json']);}/**
27158
+ * @param {Object} body body
27159
+ */},{key:"postWorkforcemanagementBusinessunitActivitycodes",value:function postWorkforcemanagementBusinessunitActivitycodes(businessUnitId,body){// verify the required parameter 'businessUnitId' is set
27160
+ if(businessUnitId===undefined||businessUnitId===null){throw'Missing the required parameter "businessUnitId" when calling postWorkforcemanagementBusinessunitActivitycodes';}// verify the required parameter 'body' is set
27161
+ 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']);}/**
27063
27162
  * Run an activity plan manually
27064
27163
  * Triggers a job running the activity plan. The activity plan cannot be updated until the job completes
27065
27164
  * @param {String} businessUnitId The ID of the business unit
@@ -27087,12 +27186,13 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
27087
27186
  * Search published schedules
27088
27187
  *
27089
27188
  * @param {String} businessUnitId The ID of the business unit
27189
+ * @param {Object} body body
27090
27190
  * @param {Object} opts Optional parameters
27091
27191
  * @param {Boolean} opts.forceAsync Force the result of this operation to be sent asynchronously via notification. For testing/app development purposes
27092
27192
  * @param {Boolean} opts.forceDownloadService Force the result of this operation to be sent via download service. For testing/app development purposes
27093
- * @param {Object} opts.body body
27094
- */},{key:"postWorkforcemanagementBusinessunitAgentschedulesSearch",value:function postWorkforcemanagementBusinessunitAgentschedulesSearch(businessUnitId,opts){opts=opts||{};// verify the required parameter 'businessUnitId' is set
27095
- if(businessUnitId===undefined||businessUnitId===null){throw'Missing the required parameter "businessUnitId" when calling postWorkforcemanagementBusinessunitAgentschedulesSearch';}return this.apiClient.callApi('/api/v2/workforcemanagement/businessunits/{businessUnitId}/agentschedules/search','POST',{'businessUnitId':businessUnitId},{'forceAsync':opts['forceAsync'],'forceDownloadService':opts['forceDownloadService']},{},{},opts['body'],['PureCloud OAuth'],['application/json'],['application/json']);}/**
27193
+ */},{key:"postWorkforcemanagementBusinessunitAgentschedulesSearch",value:function postWorkforcemanagementBusinessunitAgentschedulesSearch(businessUnitId,body,opts){opts=opts||{};// verify the required parameter 'businessUnitId' is set
27194
+ if(businessUnitId===undefined||businessUnitId===null){throw'Missing the required parameter "businessUnitId" when calling postWorkforcemanagementBusinessunitAgentschedulesSearch';}// verify the required parameter 'body' is set
27195
+ 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']);}/**
27096
27196
  * List alternative shifts trades for a given management unit or agent
27097
27197
  *
27098
27198
  * @param {String} businessUnitId The ID of the business unit
@@ -27105,60 +27205,61 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
27105
27205
  * Get intraday data for the given date for the requested planningGroupIds
27106
27206
  *
27107
27207
  * @param {String} businessUnitId The ID of the business unit
27208
+ * @param {Object} body body
27108
27209
  * @param {Object} opts Optional parameters
27109
27210
  * @param {Boolean} opts.forceAsync Force the result of this operation to be sent asynchronously via notification. For testing/app development purposes
27110
- * @param {Object} opts.body body
27111
- */},{key:"postWorkforcemanagementBusinessunitIntraday",value:function postWorkforcemanagementBusinessunitIntraday(businessUnitId,opts){opts=opts||{};// verify the required parameter 'businessUnitId' is set
27112
- if(businessUnitId===undefined||businessUnitId===null){throw'Missing the required parameter "businessUnitId" when calling postWorkforcemanagementBusinessunitIntraday';}return this.apiClient.callApi('/api/v2/workforcemanagement/businessunits/{businessUnitId}/intraday','POST',{'businessUnitId':businessUnitId},{'forceAsync':opts['forceAsync']},{},{},opts['body'],['PureCloud OAuth'],['application/json'],['application/json']);}/**
27211
+ */},{key:"postWorkforcemanagementBusinessunitIntraday",value:function postWorkforcemanagementBusinessunitIntraday(businessUnitId,body,opts){opts=opts||{};// verify the required parameter 'businessUnitId' is set
27212
+ if(businessUnitId===undefined||businessUnitId===null){throw'Missing the required parameter "businessUnitId" when calling postWorkforcemanagementBusinessunitIntraday';}// verify the required parameter 'body' is set
27213
+ 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']);}/**
27113
27214
  * Adds a new planning group
27114
27215
  *
27115
27216
  * @param {String} businessUnitId The ID of the business unit.
27116
- * @param {Object} opts Optional parameters
27117
- * @param {Object} opts.body body
27118
- */},{key:"postWorkforcemanagementBusinessunitPlanninggroups",value:function postWorkforcemanagementBusinessunitPlanninggroups(businessUnitId,opts){opts=opts||{};// verify the required parameter 'businessUnitId' is set
27119
- if(businessUnitId===undefined||businessUnitId===null){throw'Missing the required parameter "businessUnitId" when calling postWorkforcemanagementBusinessunitPlanninggroups';}return this.apiClient.callApi('/api/v2/workforcemanagement/businessunits/{businessUnitId}/planninggroups','POST',{'businessUnitId':businessUnitId},{},{},{},opts['body'],['PureCloud OAuth'],['application/json'],['application/json']);}/**
27217
+ * @param {Object} body body
27218
+ */},{key:"postWorkforcemanagementBusinessunitPlanninggroups",value:function postWorkforcemanagementBusinessunitPlanninggroups(businessUnitId,body){// verify the required parameter 'businessUnitId' is set
27219
+ if(businessUnitId===undefined||businessUnitId===null){throw'Missing the required parameter "businessUnitId" when calling postWorkforcemanagementBusinessunitPlanninggroups';}// verify the required parameter 'body' is set
27220
+ 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']);}/**
27120
27221
  * Adds a new service goal template
27121
27222
  *
27122
27223
  * @param {String} businessUnitId The ID of the business unit.
27123
- * @param {Object} opts Optional parameters
27124
- * @param {Object} opts.body body
27125
- */},{key:"postWorkforcemanagementBusinessunitServicegoaltemplates",value:function postWorkforcemanagementBusinessunitServicegoaltemplates(businessUnitId,opts){opts=opts||{};// verify the required parameter 'businessUnitId' is set
27126
- if(businessUnitId===undefined||businessUnitId===null){throw'Missing the required parameter "businessUnitId" when calling postWorkforcemanagementBusinessunitServicegoaltemplates';}return this.apiClient.callApi('/api/v2/workforcemanagement/businessunits/{businessUnitId}/servicegoaltemplates','POST',{'businessUnitId':businessUnitId},{},{},{},opts['body'],['PureCloud OAuth'],['application/json'],['application/json']);}/**
27224
+ * @param {Object} body body
27225
+ */},{key:"postWorkforcemanagementBusinessunitServicegoaltemplates",value:function postWorkforcemanagementBusinessunitServicegoaltemplates(businessUnitId,body){// verify the required parameter 'businessUnitId' is set
27226
+ if(businessUnitId===undefined||businessUnitId===null){throw'Missing the required parameter "businessUnitId" when calling postWorkforcemanagementBusinessunitServicegoaltemplates';}// verify the required parameter 'body' is set
27227
+ 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']);}/**
27127
27228
  * Creates a new staffing group
27128
27229
  *
27129
27230
  * @param {String} businessUnitId The ID of the business unit
27130
- * @param {Object} opts Optional parameters
27131
- * @param {Object} opts.body body
27132
- */},{key:"postWorkforcemanagementBusinessunitStaffinggroups",value:function postWorkforcemanagementBusinessunitStaffinggroups(businessUnitId,opts){opts=opts||{};// verify the required parameter 'businessUnitId' is set
27133
- if(businessUnitId===undefined||businessUnitId===null){throw'Missing the required parameter "businessUnitId" when calling postWorkforcemanagementBusinessunitStaffinggroups';}return this.apiClient.callApi('/api/v2/workforcemanagement/businessunits/{businessUnitId}/staffinggroups','POST',{'businessUnitId':businessUnitId},{},{},{},opts['body'],['PureCloud OAuth'],['application/json'],['application/json']);}/**
27231
+ * @param {Object} body body
27232
+ */},{key:"postWorkforcemanagementBusinessunitStaffinggroups",value:function postWorkforcemanagementBusinessunitStaffinggroups(businessUnitId,body){// verify the required parameter 'businessUnitId' is set
27233
+ if(businessUnitId===undefined||businessUnitId===null){throw'Missing the required parameter "businessUnitId" when calling postWorkforcemanagementBusinessunitStaffinggroups';}// verify the required parameter 'body' is set
27234
+ 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']);}/**
27134
27235
  * Gets staffing group associations for a list of user IDs
27135
27236
  *
27136
27237
  * @param {String} businessUnitId The ID of the business unit
27137
- * @param {Object} opts Optional parameters
27138
- * @param {Object} opts.body body
27139
- */},{key:"postWorkforcemanagementBusinessunitStaffinggroupsQuery",value:function postWorkforcemanagementBusinessunitStaffinggroupsQuery(businessUnitId,opts){opts=opts||{};// verify the required parameter 'businessUnitId' is set
27140
- if(businessUnitId===undefined||businessUnitId===null){throw'Missing the required parameter "businessUnitId" when calling postWorkforcemanagementBusinessunitStaffinggroupsQuery';}return this.apiClient.callApi('/api/v2/workforcemanagement/businessunits/{businessUnitId}/staffinggroups/query','POST',{'businessUnitId':businessUnitId},{},{},{},opts['body'],['PureCloud OAuth'],['application/json'],['application/json']);}/**
27238
+ * @param {Object} body body
27239
+ */},{key:"postWorkforcemanagementBusinessunitStaffinggroupsQuery",value:function postWorkforcemanagementBusinessunitStaffinggroupsQuery(businessUnitId,body){// verify the required parameter 'businessUnitId' is set
27240
+ if(businessUnitId===undefined||businessUnitId===null){throw'Missing the required parameter "businessUnitId" when calling postWorkforcemanagementBusinessunitStaffinggroupsQuery';}// verify the required parameter 'body' is set
27241
+ if(body===undefined||body===null){throw'Missing the required parameter "body" when calling postWorkforcemanagementBusinessunitStaffinggroupsQuery';}return this.apiClient.callApi('/api/v2/workforcemanagement/businessunits/{businessUnitId}/staffinggroups/query','POST',{'businessUnitId':businessUnitId},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}/**
27141
27242
  * Creates a new time-off limit object
27142
27243
  *
27143
27244
  * @param {String} businessUnitId The ID of the business unit
27144
- * @param {Object} opts Optional parameters
27145
- * @param {Object} opts.body body
27146
- */},{key:"postWorkforcemanagementBusinessunitTimeofflimits",value:function postWorkforcemanagementBusinessunitTimeofflimits(businessUnitId,opts){opts=opts||{};// verify the required parameter 'businessUnitId' is set
27147
- if(businessUnitId===undefined||businessUnitId===null){throw'Missing the required parameter "businessUnitId" when calling postWorkforcemanagementBusinessunitTimeofflimits';}return this.apiClient.callApi('/api/v2/workforcemanagement/businessunits/{businessUnitId}/timeofflimits','POST',{'businessUnitId':businessUnitId},{},{},{},opts['body'],['PureCloud OAuth'],['application/json'],['application/json']);}/**
27245
+ * @param {Object} body body
27246
+ */},{key:"postWorkforcemanagementBusinessunitTimeofflimits",value:function postWorkforcemanagementBusinessunitTimeofflimits(businessUnitId,body){// verify the required parameter 'businessUnitId' is set
27247
+ if(businessUnitId===undefined||businessUnitId===null){throw'Missing the required parameter "businessUnitId" when calling postWorkforcemanagementBusinessunitTimeofflimits';}// verify the required parameter 'body' is set
27248
+ 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']);}/**
27148
27249
  * Retrieves time-off limit related values based on a given set of filters.
27149
27250
  *
27150
27251
  * @param {String} businessUnitId The ID of the business unit
27151
- * @param {Object} opts Optional parameters
27152
- * @param {Object} opts.body body
27153
- */},{key:"postWorkforcemanagementBusinessunitTimeofflimitsValuesQuery",value:function postWorkforcemanagementBusinessunitTimeofflimitsValuesQuery(businessUnitId,opts){opts=opts||{};// verify the required parameter 'businessUnitId' is set
27154
- if(businessUnitId===undefined||businessUnitId===null){throw'Missing the required parameter "businessUnitId" when calling postWorkforcemanagementBusinessunitTimeofflimitsValuesQuery';}return this.apiClient.callApi('/api/v2/workforcemanagement/businessunits/{businessUnitId}/timeofflimits/values/query','POST',{'businessUnitId':businessUnitId},{},{},{},opts['body'],['PureCloud OAuth'],['application/json'],['application/json']);}/**
27252
+ * @param {Object} body body
27253
+ */},{key:"postWorkforcemanagementBusinessunitTimeofflimitsValuesQuery",value:function postWorkforcemanagementBusinessunitTimeofflimitsValuesQuery(businessUnitId,body){// verify the required parameter 'businessUnitId' is set
27254
+ if(businessUnitId===undefined||businessUnitId===null){throw'Missing the required parameter "businessUnitId" when calling postWorkforcemanagementBusinessunitTimeofflimitsValuesQuery';}// verify the required parameter 'body' is set
27255
+ 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']);}/**
27155
27256
  * Creates a new time-off plan
27156
27257
  *
27157
27258
  * @param {String} businessUnitId The ID of the business unit
27158
- * @param {Object} opts Optional parameters
27159
- * @param {Object} opts.body body
27160
- */},{key:"postWorkforcemanagementBusinessunitTimeoffplans",value:function postWorkforcemanagementBusinessunitTimeoffplans(businessUnitId,opts){opts=opts||{};// verify the required parameter 'businessUnitId' is set
27161
- if(businessUnitId===undefined||businessUnitId===null){throw'Missing the required parameter "businessUnitId" when calling postWorkforcemanagementBusinessunitTimeoffplans';}return this.apiClient.callApi('/api/v2/workforcemanagement/businessunits/{businessUnitId}/timeoffplans','POST',{'businessUnitId':businessUnitId},{},{},{},opts['body'],['PureCloud OAuth'],['application/json'],['application/json']);}/**
27259
+ * @param {Object} body body
27260
+ */},{key:"postWorkforcemanagementBusinessunitTimeoffplans",value:function postWorkforcemanagementBusinessunitTimeoffplans(businessUnitId,body){// verify the required parameter 'businessUnitId' is set
27261
+ if(businessUnitId===undefined||businessUnitId===null){throw'Missing the required parameter "businessUnitId" when calling postWorkforcemanagementBusinessunitTimeoffplans';}// verify the required parameter 'body' is set
27262
+ 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']);}/**
27162
27263
  * Loads agent schedule data from the schedule. Used in combination with the metadata route
27163
27264
  *
27164
27265
  * @param {String} businessUnitId The ID of the business unit
@@ -27189,23 +27290,23 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
27189
27290
  * @param {String} businessUnitId The ID of the business unit to which the performance prediction belongs
27190
27291
  * @param {String} weekId First day of schedule week in yyyy-MM-dd format
27191
27292
  * @param {String} scheduleId The ID of the schedule the performance prediction belongs to
27192
- * @param {Object} opts Optional parameters
27193
- * @param {Object} opts.body body
27194
- */},{key:"postWorkforcemanagementBusinessunitWeekSchedulePerformancepredictionsRecalculations",value:function postWorkforcemanagementBusinessunitWeekSchedulePerformancepredictionsRecalculations(businessUnitId,weekId,scheduleId,opts){opts=opts||{};// verify the required parameter 'businessUnitId' is set
27293
+ * @param {Object} body body
27294
+ */},{key:"postWorkforcemanagementBusinessunitWeekSchedulePerformancepredictionsRecalculations",value:function postWorkforcemanagementBusinessunitWeekSchedulePerformancepredictionsRecalculations(businessUnitId,weekId,scheduleId,body){// verify the required parameter 'businessUnitId' is set
27195
27295
  if(businessUnitId===undefined||businessUnitId===null){throw'Missing the required parameter "businessUnitId" when calling postWorkforcemanagementBusinessunitWeekSchedulePerformancepredictionsRecalculations';}// verify the required parameter 'weekId' is set
27196
27296
  if(weekId===undefined||weekId===null){throw'Missing the required parameter "weekId" when calling postWorkforcemanagementBusinessunitWeekSchedulePerformancepredictionsRecalculations';}// verify the required parameter 'scheduleId' is set
27197
- if(scheduleId===undefined||scheduleId===null){throw'Missing the required parameter "scheduleId" 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},{},{},{},opts['body'],['PureCloud OAuth'],['application/json'],['application/json']);}/**
27297
+ if(scheduleId===undefined||scheduleId===null){throw'Missing the required parameter "scheduleId" when calling postWorkforcemanagementBusinessunitWeekSchedulePerformancepredictionsRecalculations';}// verify the required parameter 'body' is set
27298
+ 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']);}/**
27198
27299
  * Upload daily activity changes to be able to request a performance prediction recalculation
27199
27300
  *
27200
27301
  * @param {String} businessUnitId The ID of the business unit to which the performance prediction belongs
27201
27302
  * @param {String} weekId First day of schedule week in yyyy-MM-dd format
27202
27303
  * @param {String} scheduleId The ID of the schedule the performance prediction belongs to
27203
- * @param {Object} opts Optional parameters
27204
- * @param {Object} opts.body body
27205
- */},{key:"postWorkforcemanagementBusinessunitWeekSchedulePerformancepredictionsRecalculationsUploadurl",value:function postWorkforcemanagementBusinessunitWeekSchedulePerformancepredictionsRecalculationsUploadurl(businessUnitId,weekId,scheduleId,opts){opts=opts||{};// verify the required parameter 'businessUnitId' is set
27304
+ * @param {Object} body body
27305
+ */},{key:"postWorkforcemanagementBusinessunitWeekSchedulePerformancepredictionsRecalculationsUploadurl",value:function postWorkforcemanagementBusinessunitWeekSchedulePerformancepredictionsRecalculationsUploadurl(businessUnitId,weekId,scheduleId,body){// verify the required parameter 'businessUnitId' is set
27206
27306
  if(businessUnitId===undefined||businessUnitId===null){throw'Missing the required parameter "businessUnitId" when calling postWorkforcemanagementBusinessunitWeekSchedulePerformancepredictionsRecalculationsUploadurl';}// verify the required parameter 'weekId' is set
27207
27307
  if(weekId===undefined||weekId===null){throw'Missing the required parameter "weekId" when calling postWorkforcemanagementBusinessunitWeekSchedulePerformancepredictionsRecalculationsUploadurl';}// verify the required parameter 'scheduleId' is set
27208
- if(scheduleId===undefined||scheduleId===null){throw'Missing the required parameter "scheduleId" 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},{},{},{},opts['body'],['PureCloud OAuth'],['application/json'],['application/json']);}/**
27308
+ if(scheduleId===undefined||scheduleId===null){throw'Missing the required parameter "scheduleId" when calling postWorkforcemanagementBusinessunitWeekSchedulePerformancepredictionsRecalculationsUploadurl';}// verify the required parameter 'body' is set
27309
+ 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']);}/**
27209
27310
  * Start a rescheduling run
27210
27311
  *
27211
27312
  * @param {String} businessUnitId The ID of the business unit
@@ -27330,23 +27431,23 @@ if(bidId===undefined||bidId===null){throw'Missing the required parameter "bidId"
27330
27431
  *
27331
27432
  * @param {String} businessUnitId The ID of the business unit
27332
27433
  * @param {String} bidId The work plan bid id of the bid groups
27333
- * @param {Object} opts Optional parameters
27334
- * @param {Object} opts.body body
27335
- */},{key:"postWorkforcemanagementBusinessunitWorkplanbidGroups",value:function postWorkforcemanagementBusinessunitWorkplanbidGroups(businessUnitId,bidId,opts){opts=opts||{};// verify the required parameter 'businessUnitId' is set
27434
+ * @param {Object} body body
27435
+ */},{key:"postWorkforcemanagementBusinessunitWorkplanbidGroups",value:function postWorkforcemanagementBusinessunitWorkplanbidGroups(businessUnitId,bidId,body){// verify the required parameter 'businessUnitId' is set
27336
27436
  if(businessUnitId===undefined||businessUnitId===null){throw'Missing the required parameter "businessUnitId" when calling postWorkforcemanagementBusinessunitWorkplanbidGroups';}// verify the required parameter 'bidId' is set
27337
- if(bidId===undefined||bidId===null){throw'Missing the required parameter "bidId" when calling postWorkforcemanagementBusinessunitWorkplanbidGroups';}return this.apiClient.callApi('/api/v2/workforcemanagement/businessunits/{businessUnitId}/workplanbids/{bidId}/groups','POST',{'businessUnitId':businessUnitId,'bidId':bidId},{},{},{},opts['body'],['PureCloud OAuth'],['application/json'],['application/json']);}/**
27437
+ if(bidId===undefined||bidId===null){throw'Missing the required parameter "bidId" when calling postWorkforcemanagementBusinessunitWorkplanbidGroups';}// verify the required parameter 'body' is set
27438
+ 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']);}/**
27338
27439
  * Create a new work plan bid
27339
27440
  *
27340
27441
  * @param {String} businessUnitId The ID of the business unit
27341
- * @param {Object} opts Optional parameters
27342
- * @param {Object} opts.body The work plan bid to be created
27343
- */},{key:"postWorkforcemanagementBusinessunitWorkplanbids",value:function postWorkforcemanagementBusinessunitWorkplanbids(businessUnitId,opts){opts=opts||{};// verify the required parameter 'businessUnitId' is set
27344
- if(businessUnitId===undefined||businessUnitId===null){throw'Missing the required parameter "businessUnitId" when calling postWorkforcemanagementBusinessunitWorkplanbids';}return this.apiClient.callApi('/api/v2/workforcemanagement/businessunits/{businessUnitId}/workplanbids','POST',{'businessUnitId':businessUnitId},{},{},{},opts['body'],['PureCloud OAuth'],['application/json'],['application/json']);}/**
27442
+ * @param {Object} body The work plan bid to be created
27443
+ */},{key:"postWorkforcemanagementBusinessunitWorkplanbids",value:function postWorkforcemanagementBusinessunitWorkplanbids(businessUnitId,body){// verify the required parameter 'businessUnitId' is set
27444
+ if(businessUnitId===undefined||businessUnitId===null){throw'Missing the required parameter "businessUnitId" when calling postWorkforcemanagementBusinessunitWorkplanbids';}// verify the required parameter 'body' is set
27445
+ 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']);}/**
27345
27446
  * Add a new business unit
27346
27447
  * It may take a minute or two for a new business unit to be available for api operations
27347
- * @param {Object} opts Optional parameters
27348
- * @param {Object} opts.body body
27349
- */},{key:"postWorkforcemanagementBusinessunits",value:function postWorkforcemanagementBusinessunits(opts){opts=opts||{};return this.apiClient.callApi('/api/v2/workforcemanagement/businessunits','POST',{},{},{},{},opts['body'],['PureCloud OAuth'],['application/json'],['application/json']);}/**
27448
+ * @param {Object} body body
27449
+ */},{key:"postWorkforcemanagementBusinessunits",value:function postWorkforcemanagementBusinessunits(body){// verify the required parameter 'body' is set
27450
+ 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']);}/**
27350
27451
  * Create a newly generated calendar link for the current user; if the current user has previously generated one, the generated link will be returned
27351
27452
  *
27352
27453
  * @param {Object} opts Optional parameters
@@ -27354,18 +27455,18 @@ if(businessUnitId===undefined||businessUnitId===null){throw'Missing the required
27354
27455
  */},{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']);}/**
27355
27456
  * Delete the list of the historical data import entries
27356
27457
  *
27357
- * @param {Object} opts Optional parameters
27358
- * @param {Object} opts.body body
27359
- */},{key:"postWorkforcemanagementHistoricaldataBulkRemoveJobs",value:function postWorkforcemanagementHistoricaldataBulkRemoveJobs(opts){opts=opts||{};return this.apiClient.callApi('/api/v2/workforcemanagement/historicaldata/bulk/remove/jobs','POST',{},{},{},{},opts['body'],['PureCloud OAuth'],['application/json'],['application/json']);}/**
27458
+ * @param {Object} body body
27459
+ */},{key:"postWorkforcemanagementHistoricaldataBulkRemoveJobs",value:function postWorkforcemanagementHistoricaldataBulkRemoveJobs(body){// verify the required parameter 'body' is set
27460
+ 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']);}/**
27360
27461
  * Delete the entries of the historical data imports in the organization.
27361
27462
  * Deprecated: Please use POST /workforcemanagement/historicaldata/bulk/remove/jobs instead.
27362
27463
  * @deprecated
27363
27464
  */},{key:"postWorkforcemanagementHistoricaldataDeletejob",value:function postWorkforcemanagementHistoricaldataDeletejob(){return this.apiClient.callApi('/api/v2/workforcemanagement/historicaldata/deletejob','POST',{},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
27364
27465
  * Trigger validation process for historical import
27365
27466
  *
27366
- * @param {Object} opts Optional parameters
27367
- * @param {Object} opts.body body
27368
- */},{key:"postWorkforcemanagementHistoricaldataValidate",value:function postWorkforcemanagementHistoricaldataValidate(opts){opts=opts||{};return this.apiClient.callApi('/api/v2/workforcemanagement/historicaldata/validate','POST',{},{},{},{},opts['body'],['PureCloud OAuth'],['application/json'],['application/json']);}/**
27467
+ * @param {Object} body body
27468
+ */},{key:"postWorkforcemanagementHistoricaldataValidate",value:function postWorkforcemanagementHistoricaldataValidate(body){// verify the required parameter 'body' is set
27469
+ 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']);}/**
27369
27470
  * Get list of time off types configured in integration
27370
27471
  *
27371
27472
  * @param {String} hrisIntegrationId The ID of the HRIS integration for which time off types are queried.
@@ -27374,99 +27475,102 @@ if(hrisIntegrationId===undefined||hrisIntegrationId===null){throw'Missing the re
27374
27475
  * Get agents work plans configuration
27375
27476
  *
27376
27477
  * @param {String} managementUnitId The ID of the management unit, or 'mine' for the management unit of the logged-in user.
27478
+ * @param {Object} body body
27377
27479
  * @param {Object} opts Optional parameters
27378
27480
  * @param {Boolean} opts.forceDownloadService Force the result of this operation to be sent via download service. For testing/app development purposes
27379
- * @param {Object} opts.body body
27380
- */},{key:"postWorkforcemanagementManagementunitAgentsWorkplansQuery",value:function postWorkforcemanagementManagementunitAgentsWorkplansQuery(managementUnitId,opts){opts=opts||{};// verify the required parameter 'managementUnitId' is set
27381
- if(managementUnitId===undefined||managementUnitId===null){throw'Missing the required parameter "managementUnitId" when calling postWorkforcemanagementManagementunitAgentsWorkplansQuery';}return this.apiClient.callApi('/api/v2/workforcemanagement/managementunits/{managementUnitId}/agents/workplans/query','POST',{'managementUnitId':managementUnitId},{'forceDownloadService':opts['forceDownloadService']},{},{},opts['body'],['PureCloud OAuth'],['application/json'],['application/json']);}/**
27481
+ */},{key:"postWorkforcemanagementManagementunitAgentsWorkplansQuery",value:function postWorkforcemanagementManagementunitAgentsWorkplansQuery(managementUnitId,body,opts){opts=opts||{};// verify the required parameter 'managementUnitId' is set
27482
+ if(managementUnitId===undefined||managementUnitId===null){throw'Missing the required parameter "managementUnitId" when calling postWorkforcemanagementManagementunitAgentsWorkplansQuery';}// verify the required parameter 'body' is set
27483
+ 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']);}/**
27382
27484
  * Query published schedules for given given time range for set of users
27383
27485
  *
27384
27486
  * @param {String} managementUnitId The ID of the management unit, or 'mine' for the management unit of the logged-in user.
27487
+ * @param {Object} body body
27385
27488
  * @param {Object} opts Optional parameters
27386
27489
  * @param {Boolean} opts.forceAsync Force the result of this operation to be sent asynchronously via notification. For testing/app development purposes
27387
27490
  * @param {Boolean} opts.forceDownloadService Force the result of this operation to be sent via download service. For testing/app development purposes
27388
- * @param {Object} opts.body body
27389
- */},{key:"postWorkforcemanagementManagementunitAgentschedulesSearch",value:function postWorkforcemanagementManagementunitAgentschedulesSearch(managementUnitId,opts){opts=opts||{};// verify the required parameter 'managementUnitId' is set
27390
- if(managementUnitId===undefined||managementUnitId===null){throw'Missing the required parameter "managementUnitId" when calling postWorkforcemanagementManagementunitAgentschedulesSearch';}return this.apiClient.callApi('/api/v2/workforcemanagement/managementunits/{managementUnitId}/agentschedules/search','POST',{'managementUnitId':managementUnitId},{'forceAsync':opts['forceAsync'],'forceDownloadService':opts['forceDownloadService']},{},{},opts['body'],['PureCloud OAuth'],['application/json'],['application/json']);}/**
27491
+ */},{key:"postWorkforcemanagementManagementunitAgentschedulesSearch",value:function postWorkforcemanagementManagementunitAgentschedulesSearch(managementUnitId,body,opts){opts=opts||{};// verify the required parameter 'managementUnitId' is set
27492
+ if(managementUnitId===undefined||managementUnitId===null){throw'Missing the required parameter "managementUnitId" when calling postWorkforcemanagementManagementunitAgentschedulesSearch';}// verify the required parameter 'body' is set
27493
+ 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']);}/**
27391
27494
  * Request a historical adherence report
27392
27495
  * The maximum supported range for historical adherence queries is 31 days, or 7 days with includeExceptions = true
27393
27496
  * @param {String} managementUnitId The ID of the management unit
27394
- * @param {Object} opts Optional parameters
27395
- * @param {Object} opts.body body
27396
- */},{key:"postWorkforcemanagementManagementunitHistoricaladherencequery",value:function postWorkforcemanagementManagementunitHistoricaladherencequery(managementUnitId,opts){opts=opts||{};// verify the required parameter 'managementUnitId' is set
27397
- if(managementUnitId===undefined||managementUnitId===null){throw'Missing the required parameter "managementUnitId" when calling postWorkforcemanagementManagementunitHistoricaladherencequery';}return this.apiClient.callApi('/api/v2/workforcemanagement/managementunits/{managementUnitId}/historicaladherencequery','POST',{'managementUnitId':managementUnitId},{},{},{},opts['body'],['PureCloud OAuth'],['application/json'],['application/json']);}/**
27497
+ * @param {Object} body body
27498
+ */},{key:"postWorkforcemanagementManagementunitHistoricaladherencequery",value:function postWorkforcemanagementManagementunitHistoricaladherencequery(managementUnitId,body){// verify the required parameter 'managementUnitId' is set
27499
+ if(managementUnitId===undefined||managementUnitId===null){throw'Missing the required parameter "managementUnitId" when calling postWorkforcemanagementManagementunitHistoricaladherencequery';}// verify the required parameter 'body' is set
27500
+ 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']);}/**
27398
27501
  * Move the requested management unit to a new business unit
27399
27502
  * Returns status 200 if the management unit is already in the requested business unit
27400
27503
  * @param {String} managementUnitId The ID of the management unit, or 'mine' for the management unit of the logged-in user.
27401
- * @param {Object} opts Optional parameters
27402
- * @param {Object} opts.body body
27403
- */},{key:"postWorkforcemanagementManagementunitMove",value:function postWorkforcemanagementManagementunitMove(managementUnitId,opts){opts=opts||{};// verify the required parameter 'managementUnitId' is set
27404
- if(managementUnitId===undefined||managementUnitId===null){throw'Missing the required parameter "managementUnitId" when calling postWorkforcemanagementManagementunitMove';}return this.apiClient.callApi('/api/v2/workforcemanagement/managementunits/{managementUnitId}/move','POST',{'managementUnitId':managementUnitId},{},{},{},opts['body'],['PureCloud OAuth'],['application/json'],['application/json']);}/**
27504
+ * @param {Object} body body
27505
+ */},{key:"postWorkforcemanagementManagementunitMove",value:function postWorkforcemanagementManagementunitMove(managementUnitId,body){// verify the required parameter 'managementUnitId' is set
27506
+ if(managementUnitId===undefined||managementUnitId===null){throw'Missing the required parameter "managementUnitId" when calling postWorkforcemanagementManagementunitMove';}// verify the required parameter 'body' is set
27507
+ 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']);}/**
27405
27508
  * Query published schedules for given given time range for set of users
27406
27509
  *
27407
27510
  * @param {String} managementUnitId The ID of the management unit, or 'mine' for the management unit of the logged-in user.
27408
- * @param {Object} opts Optional parameters
27409
- * @param {Object} opts.body body
27511
+ * @param {Object} body body
27410
27512
  * @deprecated
27411
- */},{key:"postWorkforcemanagementManagementunitSchedulesSearch",value:function postWorkforcemanagementManagementunitSchedulesSearch(managementUnitId,opts){opts=opts||{};// verify the required parameter 'managementUnitId' is set
27412
- if(managementUnitId===undefined||managementUnitId===null){throw'Missing the required parameter "managementUnitId" when calling postWorkforcemanagementManagementunitSchedulesSearch';}return this.apiClient.callApi('/api/v2/workforcemanagement/managementunits/{managementUnitId}/schedules/search','POST',{'managementUnitId':managementUnitId},{},{},{},opts['body'],['PureCloud OAuth'],['application/json'],['application/json']);}/**
27513
+ */},{key:"postWorkforcemanagementManagementunitSchedulesSearch",value:function postWorkforcemanagementManagementunitSchedulesSearch(managementUnitId,body){// verify the required parameter 'managementUnitId' is set
27514
+ if(managementUnitId===undefined||managementUnitId===null){throw'Missing the required parameter "managementUnitId" when calling postWorkforcemanagementManagementunitSchedulesSearch';}// verify the required parameter 'body' is set
27515
+ 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']);}/**
27413
27516
  * Request a historical shrinkage report
27414
27517
  * 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.
27415
27518
  * @param {String} managementUnitId The ID of the management unit
27416
- * @param {Object} opts Optional parameters
27417
- * @param {Object} opts.body body
27418
- */},{key:"postWorkforcemanagementManagementunitShrinkageJobs",value:function postWorkforcemanagementManagementunitShrinkageJobs(managementUnitId,opts){opts=opts||{};// verify the required parameter 'managementUnitId' is set
27419
- if(managementUnitId===undefined||managementUnitId===null){throw'Missing the required parameter "managementUnitId" when calling postWorkforcemanagementManagementunitShrinkageJobs';}return this.apiClient.callApi('/api/v2/workforcemanagement/managementunits/{managementUnitId}/shrinkage/jobs','POST',{'managementUnitId':managementUnitId},{},{},{},opts['body'],['PureCloud OAuth'],['application/json'],['application/json']);}/**
27519
+ * @param {Object} body body
27520
+ */},{key:"postWorkforcemanagementManagementunitShrinkageJobs",value:function postWorkforcemanagementManagementunitShrinkageJobs(managementUnitId,body){// verify the required parameter 'managementUnitId' is set
27521
+ if(managementUnitId===undefined||managementUnitId===null){throw'Missing the required parameter "managementUnitId" when calling postWorkforcemanagementManagementunitShrinkageJobs';}// verify the required parameter 'body' is set
27522
+ 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']);}/**
27420
27523
  * Creates a new time off limit object under management unit.
27421
27524
  * Only one limit object is allowed under management unit, so an attempt to create second object will fail.
27422
27525
  * @param {String} managementUnitId The ID of the management unit.
27423
- * @param {Object} opts Optional parameters
27424
- * @param {Object} opts.body body
27425
- */},{key:"postWorkforcemanagementManagementunitTimeofflimits",value:function postWorkforcemanagementManagementunitTimeofflimits(managementUnitId,opts){opts=opts||{};// verify the required parameter 'managementUnitId' is set
27426
- if(managementUnitId===undefined||managementUnitId===null){throw'Missing the required parameter "managementUnitId" when calling postWorkforcemanagementManagementunitTimeofflimits';}return this.apiClient.callApi('/api/v2/workforcemanagement/managementunits/{managementUnitId}/timeofflimits','POST',{'managementUnitId':managementUnitId},{},{},{},opts['body'],['PureCloud OAuth'],['application/json'],['application/json']);}/**
27526
+ * @param {Object} body body
27527
+ */},{key:"postWorkforcemanagementManagementunitTimeofflimits",value:function postWorkforcemanagementManagementunitTimeofflimits(managementUnitId,body){// verify the required parameter 'managementUnitId' is set
27528
+ if(managementUnitId===undefined||managementUnitId===null){throw'Missing the required parameter "managementUnitId" when calling postWorkforcemanagementManagementunitTimeofflimits';}// verify the required parameter 'body' is set
27529
+ 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']);}/**
27427
27530
  * Retrieves time off limit related values based on a given set of filters.
27428
27531
  *
27429
27532
  * @param {String} managementUnitId The ID of the management unit.
27430
- * @param {Object} opts Optional parameters
27431
- * @param {Object} opts.body body
27432
- */},{key:"postWorkforcemanagementManagementunitTimeofflimitsValuesQuery",value:function postWorkforcemanagementManagementunitTimeofflimitsValuesQuery(managementUnitId,opts){opts=opts||{};// verify the required parameter 'managementUnitId' is set
27433
- if(managementUnitId===undefined||managementUnitId===null){throw'Missing the required parameter "managementUnitId" when calling postWorkforcemanagementManagementunitTimeofflimitsValuesQuery';}return this.apiClient.callApi('/api/v2/workforcemanagement/managementunits/{managementUnitId}/timeofflimits/values/query','POST',{'managementUnitId':managementUnitId},{},{},{},opts['body'],['PureCloud OAuth'],['application/json'],['application/json']);}/**
27533
+ * @param {Object} body body
27534
+ */},{key:"postWorkforcemanagementManagementunitTimeofflimitsValuesQuery",value:function postWorkforcemanagementManagementunitTimeofflimitsValuesQuery(managementUnitId,body){// verify the required parameter 'managementUnitId' is set
27535
+ if(managementUnitId===undefined||managementUnitId===null){throw'Missing the required parameter "managementUnitId" when calling postWorkforcemanagementManagementunitTimeofflimitsValuesQuery';}// verify the required parameter 'body' is set
27536
+ 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']);}/**
27434
27537
  * Creates a new time off plan
27435
27538
  *
27436
27539
  * @param {String} managementUnitId The ID of the management unit
27437
- * @param {Object} opts Optional parameters
27438
- * @param {Object} opts.body body
27439
- */},{key:"postWorkforcemanagementManagementunitTimeoffplans",value:function postWorkforcemanagementManagementunitTimeoffplans(managementUnitId,opts){opts=opts||{};// verify the required parameter 'managementUnitId' is set
27440
- if(managementUnitId===undefined||managementUnitId===null){throw'Missing the required parameter "managementUnitId" when calling postWorkforcemanagementManagementunitTimeoffplans';}return this.apiClient.callApi('/api/v2/workforcemanagement/managementunits/{managementUnitId}/timeoffplans','POST',{'managementUnitId':managementUnitId},{},{},{},opts['body'],['PureCloud OAuth'],['application/json'],['application/json']);}/**
27540
+ * @param {Object} body body
27541
+ */},{key:"postWorkforcemanagementManagementunitTimeoffplans",value:function postWorkforcemanagementManagementunitTimeoffplans(managementUnitId,body){// verify the required parameter 'managementUnitId' is set
27542
+ if(managementUnitId===undefined||managementUnitId===null){throw'Missing the required parameter "managementUnitId" when calling postWorkforcemanagementManagementunitTimeoffplans';}// verify the required parameter 'body' is set
27543
+ 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']);}/**
27441
27544
  * Create a new time off request
27442
27545
  *
27443
27546
  * @param {String} managementUnitId The ID of the management unit, or 'mine' for the management unit of the logged-in user.
27444
- * @param {Object} opts Optional parameters
27445
- * @param {Object} opts.body body
27446
- */},{key:"postWorkforcemanagementManagementunitTimeoffrequests",value:function postWorkforcemanagementManagementunitTimeoffrequests(managementUnitId,opts){opts=opts||{};// verify the required parameter 'managementUnitId' is set
27447
- if(managementUnitId===undefined||managementUnitId===null){throw'Missing the required parameter "managementUnitId" when calling postWorkforcemanagementManagementunitTimeoffrequests';}return this.apiClient.callApi('/api/v2/workforcemanagement/managementunits/{managementUnitId}/timeoffrequests','POST',{'managementUnitId':managementUnitId},{},{},{},opts['body'],['PureCloud OAuth'],['application/json'],['application/json']);}/**
27547
+ * @param {Object} body body
27548
+ */},{key:"postWorkforcemanagementManagementunitTimeoffrequests",value:function postWorkforcemanagementManagementunitTimeoffrequests(managementUnitId,body){// verify the required parameter 'managementUnitId' is set
27549
+ if(managementUnitId===undefined||managementUnitId===null){throw'Missing the required parameter "managementUnitId" when calling postWorkforcemanagementManagementunitTimeoffrequests';}// verify the required parameter 'body' is set
27550
+ 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']);}/**
27448
27551
  * Retrieves integration statuses for a list of time off requests
27449
27552
  *
27450
27553
  * @param {String} managementUnitId The ID of the management unit.
27451
- * @param {Object} opts Optional parameters
27452
- * @param {Object} opts.body body
27453
- */},{key:"postWorkforcemanagementManagementunitTimeoffrequestsIntegrationstatusQuery",value:function postWorkforcemanagementManagementunitTimeoffrequestsIntegrationstatusQuery(managementUnitId,opts){opts=opts||{};// verify the required parameter 'managementUnitId' is set
27454
- if(managementUnitId===undefined||managementUnitId===null){throw'Missing the required parameter "managementUnitId" when calling postWorkforcemanagementManagementunitTimeoffrequestsIntegrationstatusQuery';}return this.apiClient.callApi('/api/v2/workforcemanagement/managementunits/{managementUnitId}/timeoffrequests/integrationstatus/query','POST',{'managementUnitId':managementUnitId},{},{},{},opts['body'],['PureCloud OAuth'],['application/json'],['application/json']);}/**
27554
+ * @param {Object} body body
27555
+ */},{key:"postWorkforcemanagementManagementunitTimeoffrequestsIntegrationstatusQuery",value:function postWorkforcemanagementManagementunitTimeoffrequestsIntegrationstatusQuery(managementUnitId,body){// verify the required parameter 'managementUnitId' is set
27556
+ if(managementUnitId===undefined||managementUnitId===null){throw'Missing the required parameter "managementUnitId" when calling postWorkforcemanagementManagementunitTimeoffrequestsIntegrationstatusQuery';}// verify the required parameter 'body' is set
27557
+ 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']);}/**
27455
27558
  * Fetches time off requests matching the conditions specified in the request body
27456
27559
  * 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
27457
27560
  * @param {String} managementUnitId The ID of the management unit, or 'mine' for the management unit of the logged-in user.
27561
+ * @param {Object} body body
27458
27562
  * @param {Object} opts Optional parameters
27459
27563
  * @param {Boolean} opts.forceDownloadService Force the result of this operation to be sent via download service. For testing/app development purposes
27460
- * @param {Object} opts.body body
27461
- */},{key:"postWorkforcemanagementManagementunitTimeoffrequestsQuery",value:function postWorkforcemanagementManagementunitTimeoffrequestsQuery(managementUnitId,opts){opts=opts||{};// verify the required parameter 'managementUnitId' is set
27462
- if(managementUnitId===undefined||managementUnitId===null){throw'Missing the required parameter "managementUnitId" when calling postWorkforcemanagementManagementunitTimeoffrequestsQuery';}return this.apiClient.callApi('/api/v2/workforcemanagement/managementunits/{managementUnitId}/timeoffrequests/query','POST',{'managementUnitId':managementUnitId},{'forceDownloadService':opts['forceDownloadService']},{},{},opts['body'],['PureCloud OAuth'],['application/json'],['application/json']);}/**
27564
+ */},{key:"postWorkforcemanagementManagementunitTimeoffrequestsQuery",value:function postWorkforcemanagementManagementunitTimeoffrequestsQuery(managementUnitId,body,opts){opts=opts||{};// verify the required parameter 'managementUnitId' is set
27565
+ if(managementUnitId===undefined||managementUnitId===null){throw'Missing the required parameter "managementUnitId" when calling postWorkforcemanagementManagementunitTimeoffrequestsQuery';}// verify the required parameter 'body' is set
27566
+ 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']);}/**
27463
27567
  * Retrieves daily waitlist position for a list of time off requests
27464
27568
  *
27465
27569
  * @param {String} managementUnitId The ID of the management unit.
27466
- * @param {Object} opts Optional parameters
27467
- * @param {Object} opts.body body
27468
- */},{key:"postWorkforcemanagementManagementunitTimeoffrequestsWaitlistpositionsQuery",value:function postWorkforcemanagementManagementunitTimeoffrequestsWaitlistpositionsQuery(managementUnitId,opts){opts=opts||{};// verify the required parameter 'managementUnitId' is set
27469
- if(managementUnitId===undefined||managementUnitId===null){throw'Missing the required parameter "managementUnitId" when calling postWorkforcemanagementManagementunitTimeoffrequestsWaitlistpositionsQuery';}return this.apiClient.callApi('/api/v2/workforcemanagement/managementunits/{managementUnitId}/timeoffrequests/waitlistpositions/query','POST',{'managementUnitId':managementUnitId},{},{},{},opts['body'],['PureCloud OAuth'],['application/json'],['application/json']);}/**
27570
+ * @param {Object} body body
27571
+ */},{key:"postWorkforcemanagementManagementunitTimeoffrequestsWaitlistpositionsQuery",value:function postWorkforcemanagementManagementunitTimeoffrequestsWaitlistpositionsQuery(managementUnitId,body){// verify the required parameter 'managementUnitId' is set
27572
+ if(managementUnitId===undefined||managementUnitId===null){throw'Missing the required parameter "managementUnitId" when calling postWorkforcemanagementManagementunitTimeoffrequestsWaitlistpositionsQuery';}// verify the required parameter 'body' is set
27573
+ 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']);}/**
27470
27574
  * Query time off balances for a given user for specified activity code and dates
27471
27575
  *
27472
27576
  * @param {String} managementUnitId The ID of the management unit
@@ -27489,11 +27593,11 @@ if(timeOffRequestId===undefined||timeOffRequestId===null){throw'Missing the requ
27489
27593
  *
27490
27594
  * @param {String} managementUnitId The ID of the management unit
27491
27595
  * @param {String} userId The id of the user for whom the time off request estimate is requested
27492
- * @param {Object} opts Optional parameters
27493
- * @param {Object} opts.body body
27494
- */},{key:"postWorkforcemanagementManagementunitUserTimeoffrequestsEstimate",value:function postWorkforcemanagementManagementunitUserTimeoffrequestsEstimate(managementUnitId,userId,opts){opts=opts||{};// verify the required parameter 'managementUnitId' is set
27596
+ * @param {Object} body body
27597
+ */},{key:"postWorkforcemanagementManagementunitUserTimeoffrequestsEstimate",value:function postWorkforcemanagementManagementunitUserTimeoffrequestsEstimate(managementUnitId,userId,body){// verify the required parameter 'managementUnitId' is set
27495
27598
  if(managementUnitId===undefined||managementUnitId===null){throw'Missing the required parameter "managementUnitId" when calling postWorkforcemanagementManagementunitUserTimeoffrequestsEstimate';}// verify the required parameter 'userId' is set
27496
- if(userId===undefined||userId===null){throw'Missing the required parameter "userId" when calling postWorkforcemanagementManagementunitUserTimeoffrequestsEstimate';}return this.apiClient.callApi('/api/v2/workforcemanagement/managementunits/{managementUnitId}/users/{userId}/timeoffrequests/estimate','POST',{'managementUnitId':managementUnitId,'userId':userId},{},{},{},opts['body'],['PureCloud OAuth'],['application/json'],['application/json']);}/**
27599
+ if(userId===undefined||userId===null){throw'Missing the required parameter "userId" when calling postWorkforcemanagementManagementunitUserTimeoffrequestsEstimate';}// verify the required parameter 'body' is set
27600
+ 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']);}/**
27497
27601
  * Matches a shift trade. This route can only be called by the receiving agent
27498
27602
  *
27499
27603
  * @param {String} managementUnitId The ID of the management unit, or 'mine' for the management unit of the logged-in user.
@@ -27540,55 +27644,57 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
27540
27644
  *
27541
27645
  * @param {String} managementUnitId The ID of the management unit, or 'mine' for the management unit of the logged-in user.
27542
27646
  * @param {String} workPlanId The ID of the work plan to create a copy
27543
- * @param {Object} opts Optional parameters
27544
- * @param {Object} opts.body body
27545
- */},{key:"postWorkforcemanagementManagementunitWorkplanCopy",value:function postWorkforcemanagementManagementunitWorkplanCopy(managementUnitId,workPlanId,opts){opts=opts||{};// verify the required parameter 'managementUnitId' is set
27647
+ * @param {Object} body body
27648
+ */},{key:"postWorkforcemanagementManagementunitWorkplanCopy",value:function postWorkforcemanagementManagementunitWorkplanCopy(managementUnitId,workPlanId,body){// verify the required parameter 'managementUnitId' is set
27546
27649
  if(managementUnitId===undefined||managementUnitId===null){throw'Missing the required parameter "managementUnitId" when calling postWorkforcemanagementManagementunitWorkplanCopy';}// verify the required parameter 'workPlanId' is set
27547
- if(workPlanId===undefined||workPlanId===null){throw'Missing the required parameter "workPlanId" when calling postWorkforcemanagementManagementunitWorkplanCopy';}return this.apiClient.callApi('/api/v2/workforcemanagement/managementunits/{managementUnitId}/workplans/{workPlanId}/copy','POST',{'managementUnitId':managementUnitId,'workPlanId':workPlanId},{},{},{},opts['body'],['PureCloud OAuth'],['application/json'],['application/json']);}/**
27650
+ if(workPlanId===undefined||workPlanId===null){throw'Missing the required parameter "workPlanId" when calling postWorkforcemanagementManagementunitWorkplanCopy';}// verify the required parameter 'body' is set
27651
+ 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']);}/**
27548
27652
  * Validate Work Plan
27549
27653
  *
27550
27654
  * @param {String} managementUnitId The ID of the management unit, or 'mine' for the management unit of the logged-in user.
27551
27655
  * @param {String} workPlanId The ID of the work plan to validate. For new work plan, use the word 'new' for the ID.
27656
+ * @param {Object} body body
27552
27657
  * @param {Object} opts Optional parameters
27553
27658
  * @param {Array.<String>} opts.expand
27554
- * @param {Object} opts.body body
27555
- */},{key:"postWorkforcemanagementManagementunitWorkplanValidate",value:function postWorkforcemanagementManagementunitWorkplanValidate(managementUnitId,workPlanId,opts){opts=opts||{};// verify the required parameter 'managementUnitId' is set
27659
+ */},{key:"postWorkforcemanagementManagementunitWorkplanValidate",value:function postWorkforcemanagementManagementunitWorkplanValidate(managementUnitId,workPlanId,body,opts){opts=opts||{};// verify the required parameter 'managementUnitId' is set
27556
27660
  if(managementUnitId===undefined||managementUnitId===null){throw'Missing the required parameter "managementUnitId" when calling postWorkforcemanagementManagementunitWorkplanValidate';}// verify the required parameter 'workPlanId' is set
27557
- if(workPlanId===undefined||workPlanId===null){throw'Missing the required parameter "workPlanId" 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')},{},{},opts['body'],['PureCloud OAuth'],['application/json'],['application/json']);}/**
27661
+ if(workPlanId===undefined||workPlanId===null){throw'Missing the required parameter "workPlanId" when calling postWorkforcemanagementManagementunitWorkplanValidate';}// verify the required parameter 'body' is set
27662
+ 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']);}/**
27558
27663
  * Create a copy of work plan rotation
27559
27664
  *
27560
27665
  * @param {String} managementUnitId The ID of the management unit, or 'mine' for the management unit of the logged-in user.
27561
27666
  * @param {String} workPlanRotationId The ID of the work plan rotation to create a copy
27562
- * @param {Object} opts Optional parameters
27563
- * @param {Object} opts.body body
27564
- */},{key:"postWorkforcemanagementManagementunitWorkplanrotationCopy",value:function postWorkforcemanagementManagementunitWorkplanrotationCopy(managementUnitId,workPlanRotationId,opts){opts=opts||{};// verify the required parameter 'managementUnitId' is set
27667
+ * @param {Object} body body
27668
+ */},{key:"postWorkforcemanagementManagementunitWorkplanrotationCopy",value:function postWorkforcemanagementManagementunitWorkplanrotationCopy(managementUnitId,workPlanRotationId,body){// verify the required parameter 'managementUnitId' is set
27565
27669
  if(managementUnitId===undefined||managementUnitId===null){throw'Missing the required parameter "managementUnitId" when calling postWorkforcemanagementManagementunitWorkplanrotationCopy';}// verify the required parameter 'workPlanRotationId' is set
27566
- if(workPlanRotationId===undefined||workPlanRotationId===null){throw'Missing the required parameter "workPlanRotationId" when calling postWorkforcemanagementManagementunitWorkplanrotationCopy';}return this.apiClient.callApi('/api/v2/workforcemanagement/managementunits/{managementUnitId}/workplanrotations/{workPlanRotationId}/copy','POST',{'managementUnitId':managementUnitId,'workPlanRotationId':workPlanRotationId},{},{},{},opts['body'],['PureCloud OAuth'],['application/json'],['application/json']);}/**
27670
+ if(workPlanRotationId===undefined||workPlanRotationId===null){throw'Missing the required parameter "workPlanRotationId" when calling postWorkforcemanagementManagementunitWorkplanrotationCopy';}// verify the required parameter 'body' is set
27671
+ 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']);}/**
27567
27672
  * Create a new work plan rotation
27568
27673
  *
27569
27674
  * @param {String} managementUnitId The ID of the management unit, or 'mine' for the management unit of the logged-in user.
27570
- * @param {Object} opts Optional parameters
27571
- * @param {Object} opts.body body
27572
- */},{key:"postWorkforcemanagementManagementunitWorkplanrotations",value:function postWorkforcemanagementManagementunitWorkplanrotations(managementUnitId,opts){opts=opts||{};// verify the required parameter 'managementUnitId' is set
27573
- if(managementUnitId===undefined||managementUnitId===null){throw'Missing the required parameter "managementUnitId" when calling postWorkforcemanagementManagementunitWorkplanrotations';}return this.apiClient.callApi('/api/v2/workforcemanagement/managementunits/{managementUnitId}/workplanrotations','POST',{'managementUnitId':managementUnitId},{},{},{},opts['body'],['PureCloud OAuth'],['application/json'],['application/json']);}/**
27675
+ * @param {Object} body body
27676
+ */},{key:"postWorkforcemanagementManagementunitWorkplanrotations",value:function postWorkforcemanagementManagementunitWorkplanrotations(managementUnitId,body){// verify the required parameter 'managementUnitId' is set
27677
+ if(managementUnitId===undefined||managementUnitId===null){throw'Missing the required parameter "managementUnitId" when calling postWorkforcemanagementManagementunitWorkplanrotations';}// verify the required parameter 'body' is set
27678
+ 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']);}/**
27574
27679
  * Create a new work plan
27575
27680
  *
27576
27681
  * @param {String} managementUnitId The ID of the management unit, or 'mine' for the management unit of the logged-in user.
27682
+ * @param {Object} body body
27577
27683
  * @param {Object} opts Optional parameters
27578
27684
  * @param {Object} opts.validationMode Allows to create work plan even if the validation result is invalid
27579
- * @param {Object} opts.body body
27580
- */},{key:"postWorkforcemanagementManagementunitWorkplans",value:function postWorkforcemanagementManagementunitWorkplans(managementUnitId,opts){opts=opts||{};// verify the required parameter 'managementUnitId' is set
27581
- if(managementUnitId===undefined||managementUnitId===null){throw'Missing the required parameter "managementUnitId" when calling postWorkforcemanagementManagementunitWorkplans';}return this.apiClient.callApi('/api/v2/workforcemanagement/managementunits/{managementUnitId}/workplans','POST',{'managementUnitId':managementUnitId},{'validationMode':opts['validationMode']},{},{},opts['body'],['PureCloud OAuth'],['application/json'],['application/json']);}/**
27685
+ */},{key:"postWorkforcemanagementManagementunitWorkplans",value:function postWorkforcemanagementManagementunitWorkplans(managementUnitId,body,opts){opts=opts||{};// verify the required parameter 'managementUnitId' is set
27686
+ if(managementUnitId===undefined||managementUnitId===null){throw'Missing the required parameter "managementUnitId" when calling postWorkforcemanagementManagementunitWorkplans';}// verify the required parameter 'body' is set
27687
+ 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']);}/**
27582
27688
  * Add a management unit
27583
27689
  * It may take a minute or two for a new management unit to be available for api operations
27584
- * @param {Object} opts Optional parameters
27585
- * @param {Object} opts.body body
27586
- */},{key:"postWorkforcemanagementManagementunits",value:function postWorkforcemanagementManagementunits(opts){opts=opts||{};return this.apiClient.callApi('/api/v2/workforcemanagement/managementunits','POST',{},{},{},{},opts['body'],['PureCloud OAuth'],['application/json'],['application/json']);}/**
27690
+ * @param {Object} body body
27691
+ */},{key:"postWorkforcemanagementManagementunits",value:function postWorkforcemanagementManagementunits(body){// verify the required parameter 'body' is set
27692
+ 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']);}/**
27587
27693
  * Mark a list of notifications as read or unread
27588
27694
  *
27589
- * @param {Object} opts Optional parameters
27590
- * @param {Object} opts.body body
27591
- */},{key:"postWorkforcemanagementNotificationsUpdate",value:function postWorkforcemanagementNotificationsUpdate(opts){opts=opts||{};return this.apiClient.callApi('/api/v2/workforcemanagement/notifications/update','POST',{},{},{},{},opts['body'],['PureCloud OAuth'],['application/json'],['application/json']);}/**
27695
+ * @param {Object} body body
27696
+ */},{key:"postWorkforcemanagementNotificationsUpdate",value:function postWorkforcemanagementNotificationsUpdate(body){// verify the required parameter 'body' is set
27697
+ 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']);}/**
27592
27698
  * Get published schedule for the current user
27593
27699
  *
27594
27700
  * @param {Object} opts Optional parameters
@@ -27598,17 +27704,17 @@ if(managementUnitId===undefined||managementUnitId===null){throw'Missing the requ
27598
27704
  * Request a teams historical adherence report
27599
27705
  * The maximum supported range for historical adherence queries is 31 days, or 7 days with includeExceptions = true
27600
27706
  * @param {String} teamId The ID of the team
27601
- * @param {Object} opts Optional parameters
27602
- * @param {Object} opts.body body
27603
- */},{key:"postWorkforcemanagementTeamAdherenceHistorical",value:function postWorkforcemanagementTeamAdherenceHistorical(teamId,opts){opts=opts||{};// verify the required parameter 'teamId' is set
27604
- if(teamId===undefined||teamId===null){throw'Missing the required parameter "teamId" when calling postWorkforcemanagementTeamAdherenceHistorical';}return this.apiClient.callApi('/api/v2/workforcemanagement/teams/{teamId}/adherence/historical','POST',{'teamId':teamId},{},{},{},opts['body'],['PureCloud OAuth'],['application/json'],['application/json']);}/**
27707
+ * @param {Object} body body
27708
+ */},{key:"postWorkforcemanagementTeamAdherenceHistorical",value:function postWorkforcemanagementTeamAdherenceHistorical(teamId,body){// verify the required parameter 'teamId' is set
27709
+ if(teamId===undefined||teamId===null){throw'Missing the required parameter "teamId" when calling postWorkforcemanagementTeamAdherenceHistorical';}// verify the required parameter 'body' is set
27710
+ 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']);}/**
27605
27711
  * Request a historical shrinkage report
27606
27712
  * The maximum supported range for historical shrinkage queries is up to 32 days
27607
27713
  * @param {String} teamId The ID of the team
27608
- * @param {Object} opts Optional parameters
27609
- * @param {Object} opts.body body
27610
- */},{key:"postWorkforcemanagementTeamShrinkageJobs",value:function postWorkforcemanagementTeamShrinkageJobs(teamId,opts){opts=opts||{};// verify the required parameter 'teamId' is set
27611
- if(teamId===undefined||teamId===null){throw'Missing the required parameter "teamId" when calling postWorkforcemanagementTeamShrinkageJobs';}return this.apiClient.callApi('/api/v2/workforcemanagement/teams/{teamId}/shrinkage/jobs','POST',{'teamId':teamId},{},{},{},opts['body'],['PureCloud OAuth'],['application/json'],['application/json']);}/**
27714
+ * @param {Object} body body
27715
+ */},{key:"postWorkforcemanagementTeamShrinkageJobs",value:function postWorkforcemanagementTeamShrinkageJobs(teamId,body){// verify the required parameter 'teamId' is set
27716
+ if(teamId===undefined||teamId===null){throw'Missing the required parameter "teamId" when calling postWorkforcemanagementTeamShrinkageJobs';}// verify the required parameter 'body' is set
27717
+ 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']);}/**
27612
27718
  * Query time off balances for the current user for specified activity code and dates
27613
27719
  *
27614
27720
  * @param {Object} body The request body
@@ -27616,24 +27722,24 @@ if(teamId===undefined||teamId===null){throw'Missing the required parameter "team
27616
27722
  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']);}/**
27617
27723
  * Queries available time off for the current user
27618
27724
  *
27619
- * @param {Object} opts Optional parameters
27620
- * @param {Object} opts.body body
27621
- */},{key:"postWorkforcemanagementTimeofflimitsAvailableQuery",value:function postWorkforcemanagementTimeofflimitsAvailableQuery(opts){opts=opts||{};return this.apiClient.callApi('/api/v2/workforcemanagement/timeofflimits/available/query','POST',{},{},{},{},opts['body'],['PureCloud OAuth'],['application/json'],['application/json']);}/**
27725
+ * @param {Object} body body
27726
+ */},{key:"postWorkforcemanagementTimeofflimitsAvailableQuery",value:function postWorkforcemanagementTimeofflimitsAvailableQuery(body){// verify the required parameter 'body' is set
27727
+ 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']);}/**
27622
27728
  * Create a time off request for the current user
27623
27729
  *
27624
- * @param {Object} opts Optional parameters
27625
- * @param {Object} opts.body body
27626
- */},{key:"postWorkforcemanagementTimeoffrequests",value:function postWorkforcemanagementTimeoffrequests(opts){opts=opts||{};return this.apiClient.callApi('/api/v2/workforcemanagement/timeoffrequests','POST',{},{},{},{},opts['body'],['PureCloud OAuth'],['application/json'],['application/json']);}/**
27730
+ * @param {Object} body body
27731
+ */},{key:"postWorkforcemanagementTimeoffrequests",value:function postWorkforcemanagementTimeoffrequests(body){// verify the required parameter 'body' is set
27732
+ 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']);}/**
27627
27733
  * Estimates available time off for current user
27628
27734
  *
27629
- * @param {Object} opts Optional parameters
27630
- * @param {Object} opts.body body
27631
- */},{key:"postWorkforcemanagementTimeoffrequestsEstimate",value:function postWorkforcemanagementTimeoffrequestsEstimate(opts){opts=opts||{};return this.apiClient.callApi('/api/v2/workforcemanagement/timeoffrequests/estimate','POST',{},{},{},{},opts['body'],['PureCloud OAuth'],['application/json'],['application/json']);}/**
27735
+ * @param {Object} body body
27736
+ */},{key:"postWorkforcemanagementTimeoffrequestsEstimate",value:function postWorkforcemanagementTimeoffrequestsEstimate(body){// verify the required parameter 'body' is set
27737
+ 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']);}/**
27632
27738
  * Retrieves integration statuses for a list of current user time off requests
27633
27739
  *
27634
- * @param {Object} opts Optional parameters
27635
- * @param {Object} opts.body body
27636
- */},{key:"postWorkforcemanagementTimeoffrequestsIntegrationstatusQuery",value:function postWorkforcemanagementTimeoffrequestsIntegrationstatusQuery(opts){opts=opts||{};return this.apiClient.callApi('/api/v2/workforcemanagement/timeoffrequests/integrationstatus/query','POST',{},{},{},{},opts['body'],['PureCloud OAuth'],['application/json'],['application/json']);}/**
27740
+ * @param {Object} body body
27741
+ */},{key:"postWorkforcemanagementTimeoffrequestsIntegrationstatusQuery",value:function postWorkforcemanagementTimeoffrequestsIntegrationstatusQuery(body){// verify the required parameter 'body' is set
27742
+ 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']);}/**
27637
27743
  * Update integrations for agent
27638
27744
  *
27639
27745
  * @param {String} agentId The ID of the agent
@@ -27645,20 +27751,20 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
27645
27751
  * Note that only limit daily values can be set through API, allocated and waitlisted values are read-only for time-off limit API
27646
27752
  * @param {String} businessUnitId The ID of the business unit
27647
27753
  * @param {String} timeOffLimitId The ID of the time-off limit object to set values for
27648
- * @param {Object} opts Optional parameters
27649
- * @param {Object} opts.body body
27650
- */},{key:"putWorkforcemanagementBusinessunitTimeofflimitValues",value:function putWorkforcemanagementBusinessunitTimeofflimitValues(businessUnitId,timeOffLimitId,opts){opts=opts||{};// verify the required parameter 'businessUnitId' is set
27754
+ * @param {Object} body body
27755
+ */},{key:"putWorkforcemanagementBusinessunitTimeofflimitValues",value:function putWorkforcemanagementBusinessunitTimeofflimitValues(businessUnitId,timeOffLimitId,body){// verify the required parameter 'businessUnitId' is set
27651
27756
  if(businessUnitId===undefined||businessUnitId===null){throw'Missing the required parameter "businessUnitId" when calling putWorkforcemanagementBusinessunitTimeofflimitValues';}// verify the required parameter 'timeOffLimitId' is set
27652
- if(timeOffLimitId===undefined||timeOffLimitId===null){throw'Missing the required parameter "timeOffLimitId" when calling putWorkforcemanagementBusinessunitTimeofflimitValues';}return this.apiClient.callApi('/api/v2/workforcemanagement/businessunits/{businessUnitId}/timeofflimits/{timeOffLimitId}/values','PUT',{'businessUnitId':businessUnitId,'timeOffLimitId':timeOffLimitId},{},{},{},opts['body'],['PureCloud OAuth'],['application/json'],['application/json']);}/**
27757
+ if(timeOffLimitId===undefined||timeOffLimitId===null){throw'Missing the required parameter "timeOffLimitId" when calling putWorkforcemanagementBusinessunitTimeofflimitValues';}// verify the required parameter 'body' is set
27758
+ 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']);}/**
27653
27759
  * Sets daily values for a date range of time off limit object
27654
27760
  * Note that only limit daily values can be set through API, allocated and waitlisted values are read-only for time off limit API
27655
27761
  * @param {String} managementUnitId The ID of the management unit.
27656
27762
  * @param {String} timeOffLimitId The ID of the time off limit object to set values for
27657
- * @param {Object} opts Optional parameters
27658
- * @param {Object} opts.body body
27659
- */},{key:"putWorkforcemanagementManagementunitTimeofflimitValues",value:function putWorkforcemanagementManagementunitTimeofflimitValues(managementUnitId,timeOffLimitId,opts){opts=opts||{};// verify the required parameter 'managementUnitId' is set
27763
+ * @param {Object} body body
27764
+ */},{key:"putWorkforcemanagementManagementunitTimeofflimitValues",value:function putWorkforcemanagementManagementunitTimeofflimitValues(managementUnitId,timeOffLimitId,body){// verify the required parameter 'managementUnitId' is set
27660
27765
  if(managementUnitId===undefined||managementUnitId===null){throw'Missing the required parameter "managementUnitId" when calling putWorkforcemanagementManagementunitTimeofflimitValues';}// verify the required parameter 'timeOffLimitId' is set
27661
- if(timeOffLimitId===undefined||timeOffLimitId===null){throw'Missing the required parameter "timeOffLimitId" when calling putWorkforcemanagementManagementunitTimeofflimitValues';}return this.apiClient.callApi('/api/v2/workforcemanagement/managementunits/{managementUnitId}/timeofflimits/{timeOffLimitId}/values','PUT',{'managementUnitId':managementUnitId,'timeOffLimitId':timeOffLimitId},{},{},{},opts['body'],['PureCloud OAuth'],['application/json'],['application/json']);}}]);}();/**
27766
+ if(timeOffLimitId===undefined||timeOffLimitId===null){throw'Missing the required parameter "timeOffLimitId" when calling putWorkforcemanagementManagementunitTimeofflimitValues';}// verify the required parameter 'body' is set
27767
+ 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']);}}]);}();/**
27662
27768
  * A JavaScript library to interface with the PureCloud Platform API.<br>
27663
27769
  * The <code>index</code> module provides access to constructors for all the classes which comprise the public API.
27664
27770
  * <p>
@@ -27687,7 +27793,7 @@ if(timeOffLimitId===undefined||timeOffLimitId===null){throw'Missing the required
27687
27793
  * </pre>
27688
27794
  * </p>
27689
27795
  * @module purecloud-platform-client-v2/index
27690
- * @version 221.0.0
27796
+ * @version 223.0.0
27691
27797
  */var platformClient=/*#__PURE__*/_createClass(function platformClient(){_classCallCheck(this,platformClient);/**
27692
27798
  * The ApiClient constructor.
27693
27799
  * @property {module:purecloud-platform-client-v2/ApiClient}