purecloud-platform-client-v2 226.0.0 → 228.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 (93) hide show
  1. package/README.md +3 -3
  2. package/dist/node/purecloud-platform-client-v2.js +1911 -237
  3. package/dist/web-amd/purecloud-platform-client-v2.js +1911 -237
  4. package/dist/web-amd/purecloud-platform-client-v2.min.js +1 -1
  5. package/dist/web-cjs/bundle.js +596 -188
  6. package/dist/web-cjs/purecloud-platform-client-v2.js +596 -188
  7. package/dist/web-cjs/purecloud-platform-client-v2.min.js +1 -1
  8. package/index.d.ts +1833 -774
  9. package/package.json +4 -4
  10. package/src/purecloud-platform-client-v2/ApiClient.js +1 -1
  11. package/src/purecloud-platform-client-v2/api/AIStudioApi.js +32 -1
  12. package/src/purecloud-platform-client-v2/api/AgentAssistantsApi.js +1 -1
  13. package/src/purecloud-platform-client-v2/api/AgentCopilotApi.js +1 -1
  14. package/src/purecloud-platform-client-v2/api/AgentUIApi.js +1 -1
  15. package/src/purecloud-platform-client-v2/api/AlertingApi.js +1 -1
  16. package/src/purecloud-platform-client-v2/api/AnalyticsApi.js +391 -26
  17. package/src/purecloud-platform-client-v2/api/ArchitectApi.js +1 -1
  18. package/src/purecloud-platform-client-v2/api/AuditApi.js +1 -1
  19. package/src/purecloud-platform-client-v2/api/AuthorizationApi.js +1 -1
  20. package/src/purecloud-platform-client-v2/api/BillingApi.js +1 -1
  21. package/src/purecloud-platform-client-v2/api/BusinessRulesApi.js +4 -46
  22. package/src/purecloud-platform-client-v2/api/CarrierServicesApi.js +1 -1
  23. package/src/purecloud-platform-client-v2/api/ChatApi.js +52 -4
  24. package/src/purecloud-platform-client-v2/api/CoachingApi.js +1 -1
  25. package/src/purecloud-platform-client-v2/api/ContentManagementApi.js +1 -1
  26. package/src/purecloud-platform-client-v2/api/ConversationsApi.js +61 -35
  27. package/src/purecloud-platform-client-v2/api/DataExtensionsApi.js +1 -1
  28. package/src/purecloud-platform-client-v2/api/DataPrivacyApi.js +1 -1
  29. package/src/purecloud-platform-client-v2/api/DownloadsApi.js +1 -1
  30. package/src/purecloud-platform-client-v2/api/EmailsApi.js +1 -1
  31. package/src/purecloud-platform-client-v2/api/EmployeeEngagementApi.js +1 -1
  32. package/src/purecloud-platform-client-v2/api/EventsApi.js +1 -1
  33. package/src/purecloud-platform-client-v2/api/ExternalContactsApi.js +60 -1
  34. package/src/purecloud-platform-client-v2/api/FaxApi.js +1 -1
  35. package/src/purecloud-platform-client-v2/api/FlowsApi.js +27 -1
  36. package/src/purecloud-platform-client-v2/api/GamificationApi.js +1 -1
  37. package/src/purecloud-platform-client-v2/api/GeneralDataProtectionRegulationApi.js +1 -1
  38. package/src/purecloud-platform-client-v2/api/GeolocationApi.js +1 -1
  39. package/src/purecloud-platform-client-v2/api/GreetingsApi.js +1 -1
  40. package/src/purecloud-platform-client-v2/api/GroupsApi.js +1 -1
  41. package/src/purecloud-platform-client-v2/api/IdentityProviderApi.js +1 -1
  42. package/src/purecloud-platform-client-v2/api/InfrastructureAsCodeApi.js +1 -1
  43. package/src/purecloud-platform-client-v2/api/IntegrationsApi.js +1 -1
  44. package/src/purecloud-platform-client-v2/api/JourneyApi.js +86 -1
  45. package/src/purecloud-platform-client-v2/api/KnowledgeApi.js +30 -1
  46. package/src/purecloud-platform-client-v2/api/LanguageUnderstandingApi.js +1 -1
  47. package/src/purecloud-platform-client-v2/api/LanguagesApi.js +1 -1
  48. package/src/purecloud-platform-client-v2/api/LearningApi.js +1 -1
  49. package/src/purecloud-platform-client-v2/api/LicenseApi.js +1 -1
  50. package/src/purecloud-platform-client-v2/api/LocationsApi.js +1 -1
  51. package/src/purecloud-platform-client-v2/api/LogCaptureApi.js +1 -1
  52. package/src/purecloud-platform-client-v2/api/MessagingApi.js +1 -1
  53. package/src/purecloud-platform-client-v2/api/MobileDevicesApi.js +1 -1
  54. package/src/purecloud-platform-client-v2/api/NotificationsApi.js +1 -1
  55. package/src/purecloud-platform-client-v2/api/OAuthApi.js +1 -1
  56. package/src/purecloud-platform-client-v2/api/ObjectsApi.js +1 -1
  57. package/src/purecloud-platform-client-v2/api/OperationalEventsApi.js +1 -1
  58. package/src/purecloud-platform-client-v2/api/OrganizationApi.js +1 -1
  59. package/src/purecloud-platform-client-v2/api/OrganizationAuthorizationApi.js +1 -1
  60. package/src/purecloud-platform-client-v2/api/OutboundApi.js +101 -1
  61. package/src/purecloud-platform-client-v2/api/PresenceApi.js +1 -1
  62. package/src/purecloud-platform-client-v2/api/ProcessAutomationApi.js +1 -1
  63. package/src/purecloud-platform-client-v2/api/QualityApi.js +53 -1
  64. package/src/purecloud-platform-client-v2/api/RecordingApi.js +1 -1
  65. package/src/purecloud-platform-client-v2/api/ResponseManagementApi.js +1 -1
  66. package/src/purecloud-platform-client-v2/api/RoutingApi.js +1 -1
  67. package/src/purecloud-platform-client-v2/api/SCIMApi.js +1 -1
  68. package/src/purecloud-platform-client-v2/api/ScreenRecordingApi.js +1 -1
  69. package/src/purecloud-platform-client-v2/api/ScriptsApi.js +1 -1
  70. package/src/purecloud-platform-client-v2/api/SearchApi.js +1 -26
  71. package/src/purecloud-platform-client-v2/api/SettingsApi.js +1 -1
  72. package/src/purecloud-platform-client-v2/api/SocialMediaApi.js +1 -1
  73. package/src/purecloud-platform-client-v2/api/SpeechTextAnalyticsApi.js +158 -1
  74. package/src/purecloud-platform-client-v2/api/StationsApi.js +1 -1
  75. package/src/purecloud-platform-client-v2/api/SuggestApi.js +1 -1
  76. package/src/purecloud-platform-client-v2/api/TaskManagementApi.js +1 -1
  77. package/src/purecloud-platform-client-v2/api/TeamsApi.js +1 -1
  78. package/src/purecloud-platform-client-v2/api/TelephonyApi.js +105 -1
  79. package/src/purecloud-platform-client-v2/api/TelephonyProvidersEdgeApi.js +1 -1
  80. package/src/purecloud-platform-client-v2/api/TextbotsApi.js +1 -1
  81. package/src/purecloud-platform-client-v2/api/TokensApi.js +1 -1
  82. package/src/purecloud-platform-client-v2/api/UploadsApi.js +1 -1
  83. package/src/purecloud-platform-client-v2/api/UsageApi.js +121 -1
  84. package/src/purecloud-platform-client-v2/api/UserRecordingsApi.js +1 -1
  85. package/src/purecloud-platform-client-v2/api/UsersApi.js +27 -1
  86. package/src/purecloud-platform-client-v2/api/UtilitiesApi.js +1 -1
  87. package/src/purecloud-platform-client-v2/api/VoicemailApi.js +1 -1
  88. package/src/purecloud-platform-client-v2/api/WebChatApi.js +12 -12
  89. package/src/purecloud-platform-client-v2/api/WebDeploymentsApi.js +1 -1
  90. package/src/purecloud-platform-client-v2/api/WebMessagingApi.js +1 -1
  91. package/src/purecloud-platform-client-v2/api/WidgetsApi.js +6 -6
  92. package/src/purecloud-platform-client-v2/api/WorkforceManagementApi.js +519 -6
  93. package/src/purecloud-platform-client-v2/index.js +1 -1
@@ -1,4 +1,4 @@
1
- 'use strict';function _callSuper(t,o,e){return o=_getPrototypeOf(o),_possibleConstructorReturn(t,_isNativeReflectConstruct()?Reflect.construct(o,e||[],_getPrototypeOf(t).constructor):o.apply(t,e));}function _possibleConstructorReturn(t,e){if(e&&("object"==_typeof(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return _assertThisInitialized(t);}function _assertThisInitialized(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e;}function _isNativeReflectConstruct(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}));}catch(t){}return(_isNativeReflectConstruct=function _isNativeReflectConstruct(){return!!t;})();}function _getPrototypeOf(t){return _getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t);},_getPrototypeOf(t);}function _inherits(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&_setPrototypeOf(t,e);}function _setPrototypeOf(t,e){return _setPrototypeOf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t;},_setPrototypeOf(t,e);}function asyncGeneratorStep(n,t,e,r,o,a,c){try{var i=n[a](c),u=i.value;}catch(n){return void e(n);}i.done?t(u):Promise.resolve(u).then(r,o);}function _asyncToGenerator(n){return function(){var t=this,e=arguments;return new Promise(function(r,o){var a=n.apply(t,e);function _next(n){asyncGeneratorStep(a,r,o,_next,_throw,"next",n);}function _throw(n){asyncGeneratorStep(a,r,o,_next,_throw,"throw",n);}_next(void 0);});};}function _regeneratorValues(e){if(null!=e){var t=e["function"==typeof Symbol&&Symbol.iterator||"@@iterator"],r=0;if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length))return{next:function next(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e};}};}throw new TypeError(_typeof(e)+" is not iterable");}function _regenerator(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */var e,t,r="function"==typeof Symbol?Symbol:{},n=r.iterator||"@@iterator",o=r.toStringTag||"@@toStringTag";function i(r,n,o,i){var c=n&&n.prototype instanceof Generator?n:Generator,u=Object.create(c.prototype);return _regeneratorDefine2(u,"_invoke",function(r,n,o){var i,c,u,f=0,p=o||[],y=!1,G={p:0,n:0,v:e,a:d,f:d.bind(e,4),d:function d(t,r){return i=t,c=0,u=e,G.n=r,a;}};function d(r,n){for(c=r,u=n,t=0;!y&&f&&!o&&t<p.length;t++){var o,i=p[t],d=G.p,l=i[2];r>3?(o=l===n)&&(u=i[(c=i[4])?5:(c=3,3)],i[4]=i[5]=e):i[0]<=d&&((o=r<2&&d<i[1])?(c=0,G.v=n,G.n=i[1]):d<l&&(o=r<3||i[0]>n||n>l)&&(i[4]=r,i[5]=n,G.n=l,c=0));}if(o||r>1)return a;throw y=!0,n;}return function(o,p,l){if(f>1)throw TypeError("Generator is already running");for(y&&1===p&&d(p,l),c=p,u=l;(t=c<2?e:u)||!y;){i||(c?c<3?(c>1&&(G.n=-1),d(c,u)):G.n=u:G.v=u);try{if(f=2,i){if(c||(o="next"),t=i[o]){if(!(t=t.call(i,u)))throw TypeError("iterator result is not an object");if(!t.done)return t;u=t.value,c<2&&(c=0);}else 1===c&&(t=i["return"])&&t.call(i),c<2&&(u=TypeError("The iterator does not provide a '"+o+"' method"),c=1);i=e;}else if((t=(y=G.n<0)?u:r.call(n,G))!==a)break;}catch(t){i=e,c=1,u=t;}finally{f=1;}}return{value:t,done:y};};}(r,o,i),!0),u;}var a={};function Generator(){}function GeneratorFunction(){}function GeneratorFunctionPrototype(){}t=Object.getPrototypeOf;var c=[][n]?t(t([][n]())):(_regeneratorDefine2(t={},n,function(){return this;}),t),u=GeneratorFunctionPrototype.prototype=Generator.prototype=Object.create(c);function f(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,GeneratorFunctionPrototype):(e.__proto__=GeneratorFunctionPrototype,_regeneratorDefine2(e,o,"GeneratorFunction")),e.prototype=Object.create(u),e;}return GeneratorFunction.prototype=GeneratorFunctionPrototype,_regeneratorDefine2(u,"constructor",GeneratorFunctionPrototype),_regeneratorDefine2(GeneratorFunctionPrototype,"constructor",GeneratorFunction),GeneratorFunction.displayName="GeneratorFunction",_regeneratorDefine2(GeneratorFunctionPrototype,o,"GeneratorFunction"),_regeneratorDefine2(u),_regeneratorDefine2(u,o,"Generator"),_regeneratorDefine2(u,n,function(){return this;}),_regeneratorDefine2(u,"toString",function(){return"[object Generator]";}),(_regenerator=function _regenerator(){return{w:i,m:f};})();}function _regeneratorDefine2(e,r,n,t){var i=Object.defineProperty;try{i({},"",{});}catch(e){i=0;}_regeneratorDefine2=function _regeneratorDefine(e,r,n,t){if(r)i?i(e,r,{value:n,enumerable:!t,configurable:!t,writable:!t}):e[r]=n;else{var o=function o(r,n){_regeneratorDefine2(e,r,function(e){return this._invoke(r,n,e);});};o("next",0),o("throw",1),o("return",2);}},_regeneratorDefine2(e,r,n,t);}function _toArray(r){return _arrayWithHoles(r)||_iterableToArray(r)||_unsupportedIterableToArray(r)||_nonIterableRest();}function _toConsumableArray(r){return _arrayWithoutHoles(r)||_iterableToArray(r)||_unsupportedIterableToArray(r)||_nonIterableSpread();}function _nonIterableSpread(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");}function _iterableToArray(r){if("undefined"!=typeof Symbol&&null!=r[Symbol.iterator]||null!=r["@@iterator"])return Array.from(r);}function _arrayWithoutHoles(r){if(Array.isArray(r))return _arrayLikeToArray(r);}function _createForOfIteratorHelper(r,e){var t="undefined"!=typeof Symbol&&r[Symbol.iterator]||r["@@iterator"];if(!t){if(Array.isArray(r)||(t=_unsupportedIterableToArray(r))||e&&r&&"number"==typeof r.length){t&&(r=t);var _n=0,F=function F(){};return{s:F,n:function n(){return _n>=r.length?{done:!0}:{done:!1,value:r[_n++]};},e:function e(r){throw r;},f:F};}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");}var o,a=!0,u=!1;return{s:function s(){t=t.call(r);},n:function n(){var r=t.next();return a=r.done,r;},e:function e(r){u=!0,o=r;},f:function f(){try{a||null==t["return"]||t["return"]();}finally{if(u)throw o;}}};}function ownKeys(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);r&&(o=o.filter(function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable;})),t.push.apply(t,o);}return t;}function _objectSpread(e){for(var r=1;r<arguments.length;r++){var t=null!=arguments[r]?arguments[r]:{};r%2?ownKeys(Object(t),!0).forEach(function(r){_defineProperty(e,r,t[r]);}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):ownKeys(Object(t)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r));});}return e;}function _defineProperty(e,r,t){return(r=_toPropertyKey(r))in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e;}function _classCallCheck(a,n){if(!(a instanceof n))throw new TypeError("Cannot call a class as a function");}function _defineProperties(e,r){for(var t=0;t<r.length;t++){var o=r[t];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,_toPropertyKey(o.key),o);}}function _createClass(e,r,t){return r&&_defineProperties(e.prototype,r),t&&_defineProperties(e,t),Object.defineProperty(e,"prototype",{writable:!1}),e;}function _toPropertyKey(t){var i=_toPrimitive(t,"string");return"symbol"==_typeof(i)?i:i+"";}function _toPrimitive(t,r){if("object"!=_typeof(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var i=e.call(t,r||"default");if("object"!=_typeof(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.");}return("string"===r?String:Number)(t);}function _slicedToArray(r,e){return _arrayWithHoles(r)||_iterableToArrayLimit(r,e)||_unsupportedIterableToArray(r,e)||_nonIterableRest();}function _nonIterableRest(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");}function _unsupportedIterableToArray(r,a){if(r){if("string"==typeof r)return _arrayLikeToArray(r,a);var t={}.toString.call(r).slice(8,-1);return"Object"===t&&r.constructor&&(t=r.constructor.name),"Map"===t||"Set"===t?Array.from(r):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?_arrayLikeToArray(r,a):void 0;}}function _arrayLikeToArray(r,a){(null==a||a>r.length)&&(a=r.length);for(var e=0,n=Array(a);e<a;e++)n[e]=r[e];return n;}function _iterableToArrayLimit(r,l){var t=null==r?null:"undefined"!=typeof Symbol&&r[Symbol.iterator]||r["@@iterator"];if(null!=t){var e,n,i,u,a=[],f=!0,o=!1;try{if(i=(t=t.call(r)).next,0===l){if(Object(t)!==t)return;f=!1;}else for(;!(f=(e=i.call(t)).done)&&(a.push(e.value),a.length!==l);f=!0);}catch(r){o=!0,n=r;}finally{try{if(!f&&null!=t["return"]&&(u=t["return"](),Object(u)!==u))return;}finally{if(o)throw n;}}return a;}}function _arrayWithHoles(r){if(Array.isArray(r))return r;}function _typeof(o){"@babel/helpers - typeof";return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(o){return typeof o;}:function(o){return o&&"function"==typeof Symbol&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o;},_typeof(o);}function _wrapAsyncGenerator(e){return function(){return new AsyncGenerator(e.apply(this,arguments));};}function AsyncGenerator(e){var r,t;function resume(r,t){try{var n=e[r](t),o=n.value,u=o instanceof _OverloadYield;Promise.resolve(u?o.v:o).then(function(t){if(u){var i="return"===r?"return":"next";if(!o.k||t.done)return resume(i,t);t=e[i](t).value;}settle(n.done?"return":"normal",t);},function(e){resume("throw",e);});}catch(e){settle("throw",e);}}function settle(e,n){switch(e){case"return":r.resolve({value:n,done:!0});break;case"throw":r.reject(n);break;default:r.resolve({value:n,done:!1});}(r=r.next)?resume(r.key,r.arg):t=null;}this._invoke=function(e,n){return new Promise(function(o,u){var i={key:e,arg:n,resolve:o,reject:u,next:null};t?t=t.next=i:(r=t=i,resume(e,n));});},"function"!=typeof e["return"]&&(this["return"]=void 0);}AsyncGenerator.prototype["function"==typeof Symbol&&Symbol.asyncIterator||"@@asyncIterator"]=function(){return this;},AsyncGenerator.prototype.next=function(e){return this._invoke("next",e);},AsyncGenerator.prototype["throw"]=function(e){return this._invoke("throw",e);},AsyncGenerator.prototype["return"]=function(e){return this._invoke("return",e);};function _awaitAsyncGenerator(e){return new _OverloadYield(e,0);}function _asyncGeneratorDelegate(t){var e={},n=!1;function pump(e,r){return n=!0,r=new Promise(function(n){n(t[e](r));}),{done:!1,value:new _OverloadYield(r,1)};}return e["undefined"!=typeof Symbol&&Symbol.iterator||"@@iterator"]=function(){return this;},e.next=function(t){return n?(n=!1,t):pump("next",t);},"function"==typeof t["throw"]&&(e["throw"]=function(t){if(n)throw n=!1,t;return pump("throw",t);}),"function"==typeof t["return"]&&(e["return"]=function(t){return n?(n=!1,t):pump("return",t);}),e;}function _OverloadYield(e,d){this.v=e,this.k=d;}function _asyncIterator(r){var n,t,o,e=2;for("undefined"!=typeof Symbol&&(t=Symbol.asyncIterator,o=Symbol.iterator);e--;){if(t&&null!=(n=r[t]))return n.call(r);if(o&&null!=(n=r[o]))return new AsyncFromSyncIterator(n.call(r));t="@@asyncIterator",o="@@iterator";}throw new TypeError("Object is not async iterable");}function AsyncFromSyncIterator(r){function AsyncFromSyncIteratorContinuation(r){if(Object(r)!==r)return Promise.reject(new TypeError(r+" is not an object."));var n=r.done;return Promise.resolve(r.value).then(function(r){return{value:r,done:n};});}return AsyncFromSyncIterator=function AsyncFromSyncIterator(r){this.s=r,this.n=r.next;},AsyncFromSyncIterator.prototype={s:null,n:null,next:function next(){return AsyncFromSyncIteratorContinuation(this.n.apply(this.s,arguments));},"return":function _return(r){var n=this.s["return"];return void 0===n?Promise.resolve({value:r,done:!0}):AsyncFromSyncIteratorContinuation(n.apply(this.s,arguments));},"throw":function _throw(r){var n=this.s["return"];return void 0===n?Promise.reject(r):AsyncFromSyncIteratorContinuation(n.apply(this.s,arguments));}},new AsyncFromSyncIterator(r);}var qs=require('qs');function _interopDefaultLegacy(e){return e&&_typeof(e)==='object'&&'default'in e?e:{'default':e};}var qs__default=/*#__PURE__*/_interopDefaultLegacy(qs);var PureCloudRegionHosts={us_east_1:'mypurecloud.com',eu_west_1:'mypurecloud.ie',ap_southeast_2:'mypurecloud.com.au',ap_northeast_1:'mypurecloud.jp',eu_central_1:'mypurecloud.de',us_west_2:'usw2.pure.cloud',ca_central_1:'cac1.pure.cloud',ap_northeast_2:'apne2.pure.cloud',eu_west_2:'euw2.pure.cloud',ap_south_1:'aps1.pure.cloud',us_east_2:'use2.us-gov-pure.cloud',sa_east_1:'sae1.pure.cloud',me_central_1:'mec1.pure.cloud',ap_northeast_3:'apne3.pure.cloud',eu_central_2:'euc2.pure.cloud'};var global$1=typeof global!=="undefined"?global:typeof self!=="undefined"?self:typeof window!=="undefined"?window:{};// shim for using process in browser
1
+ 'use strict';function _callSuper(t,o,e){return o=_getPrototypeOf(o),_possibleConstructorReturn(t,_isNativeReflectConstruct()?Reflect.construct(o,e||[],_getPrototypeOf(t).constructor):o.apply(t,e));}function _possibleConstructorReturn(t,e){if(e&&("object"==_typeof(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return _assertThisInitialized(t);}function _assertThisInitialized(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e;}function _isNativeReflectConstruct(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}));}catch(t){}return(_isNativeReflectConstruct=function _isNativeReflectConstruct(){return!!t;})();}function _getPrototypeOf(t){return _getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t);},_getPrototypeOf(t);}function _inherits(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&_setPrototypeOf(t,e);}function _setPrototypeOf(t,e){return _setPrototypeOf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t;},_setPrototypeOf(t,e);}function asyncGeneratorStep(n,t,e,r,o,a,c){try{var i=n[a](c),u=i.value;}catch(n){return void e(n);}i.done?t(u):Promise.resolve(u).then(r,o);}function _asyncToGenerator(n){return function(){var t=this,e=arguments;return new Promise(function(r,o){var a=n.apply(t,e);function _next(n){asyncGeneratorStep(a,r,o,_next,_throw,"next",n);}function _throw(n){asyncGeneratorStep(a,r,o,_next,_throw,"throw",n);}_next(void 0);});};}function _regeneratorValues(e){if(null!=e){var t=e["function"==typeof Symbol&&Symbol.iterator||"@@iterator"],r=0;if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length))return{next:function next(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e};}};}throw new TypeError(_typeof(e)+" is not iterable");}function _regenerator(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */var e,t,r="function"==typeof Symbol?Symbol:{},n=r.iterator||"@@iterator",o=r.toStringTag||"@@toStringTag";function i(r,n,o,i){var c=n&&n.prototype instanceof Generator?n:Generator,u=Object.create(c.prototype);return _regeneratorDefine2(u,"_invoke",function(r,n,o){var i,c,u,f=0,p=o||[],y=!1,G={p:0,n:0,v:e,a:d,f:d.bind(e,4),d:function d(t,r){return i=t,c=0,u=e,G.n=r,a;}};function d(r,n){for(c=r,u=n,t=0;!y&&f&&!o&&t<p.length;t++){var o,i=p[t],d=G.p,l=i[2];r>3?(o=l===n)&&(u=i[(c=i[4])?5:(c=3,3)],i[4]=i[5]=e):i[0]<=d&&((o=r<2&&d<i[1])?(c=0,G.v=n,G.n=i[1]):d<l&&(o=r<3||i[0]>n||n>l)&&(i[4]=r,i[5]=n,G.n=l,c=0));}if(o||r>1)return a;throw y=!0,n;}return function(o,p,l){if(f>1)throw TypeError("Generator is already running");for(y&&1===p&&d(p,l),c=p,u=l;(t=c<2?e:u)||!y;){i||(c?c<3?(c>1&&(G.n=-1),d(c,u)):G.n=u:G.v=u);try{if(f=2,i){if(c||(o="next"),t=i[o]){if(!(t=t.call(i,u)))throw TypeError("iterator result is not an object");if(!t.done)return t;u=t.value,c<2&&(c=0);}else 1===c&&(t=i["return"])&&t.call(i),c<2&&(u=TypeError("The iterator does not provide a '"+o+"' method"),c=1);i=e;}else if((t=(y=G.n<0)?u:r.call(n,G))!==a)break;}catch(t){i=e,c=1,u=t;}finally{f=1;}}return{value:t,done:y};};}(r,o,i),!0),u;}var a={};function Generator(){}function GeneratorFunction(){}function GeneratorFunctionPrototype(){}t=Object.getPrototypeOf;var c=[][n]?t(t([][n]())):(_regeneratorDefine2(t={},n,function(){return this;}),t),u=GeneratorFunctionPrototype.prototype=Generator.prototype=Object.create(c);function f(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,GeneratorFunctionPrototype):(e.__proto__=GeneratorFunctionPrototype,_regeneratorDefine2(e,o,"GeneratorFunction")),e.prototype=Object.create(u),e;}return GeneratorFunction.prototype=GeneratorFunctionPrototype,_regeneratorDefine2(u,"constructor",GeneratorFunctionPrototype),_regeneratorDefine2(GeneratorFunctionPrototype,"constructor",GeneratorFunction),GeneratorFunction.displayName="GeneratorFunction",_regeneratorDefine2(GeneratorFunctionPrototype,o,"GeneratorFunction"),_regeneratorDefine2(u),_regeneratorDefine2(u,o,"Generator"),_regeneratorDefine2(u,n,function(){return this;}),_regeneratorDefine2(u,"toString",function(){return"[object Generator]";}),(_regenerator=function _regenerator(){return{w:i,m:f};})();}function _regeneratorDefine2(e,r,n,t){var i=Object.defineProperty;try{i({},"",{});}catch(e){i=0;}_regeneratorDefine2=function _regeneratorDefine(e,r,n,t){function o(r,n){_regeneratorDefine2(e,r,function(e){return this._invoke(r,n,e);});}r?i?i(e,r,{value:n,enumerable:!t,configurable:!t,writable:!t}):e[r]=n:(o("next",0),o("throw",1),o("return",2));},_regeneratorDefine2(e,r,n,t);}function _toArray(r){return _arrayWithHoles(r)||_iterableToArray(r)||_unsupportedIterableToArray(r)||_nonIterableRest();}function _toConsumableArray(r){return _arrayWithoutHoles(r)||_iterableToArray(r)||_unsupportedIterableToArray(r)||_nonIterableSpread();}function _nonIterableSpread(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");}function _iterableToArray(r){if("undefined"!=typeof Symbol&&null!=r[Symbol.iterator]||null!=r["@@iterator"])return Array.from(r);}function _arrayWithoutHoles(r){if(Array.isArray(r))return _arrayLikeToArray(r);}function _createForOfIteratorHelper(r,e){var t="undefined"!=typeof Symbol&&r[Symbol.iterator]||r["@@iterator"];if(!t){if(Array.isArray(r)||(t=_unsupportedIterableToArray(r))||e&&r&&"number"==typeof r.length){t&&(r=t);var _n=0,F=function F(){};return{s:F,n:function n(){return _n>=r.length?{done:!0}:{done:!1,value:r[_n++]};},e:function e(r){throw r;},f:F};}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");}var o,a=!0,u=!1;return{s:function s(){t=t.call(r);},n:function n(){var r=t.next();return a=r.done,r;},e:function e(r){u=!0,o=r;},f:function f(){try{a||null==t["return"]||t["return"]();}finally{if(u)throw o;}}};}function ownKeys(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);r&&(o=o.filter(function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable;})),t.push.apply(t,o);}return t;}function _objectSpread(e){for(var r=1;r<arguments.length;r++){var t=null!=arguments[r]?arguments[r]:{};r%2?ownKeys(Object(t),!0).forEach(function(r){_defineProperty(e,r,t[r]);}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):ownKeys(Object(t)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r));});}return e;}function _defineProperty(e,r,t){return(r=_toPropertyKey(r))in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e;}function _classCallCheck(a,n){if(!(a instanceof n))throw new TypeError("Cannot call a class as a function");}function _defineProperties(e,r){for(var t=0;t<r.length;t++){var o=r[t];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,_toPropertyKey(o.key),o);}}function _createClass(e,r,t){return r&&_defineProperties(e.prototype,r),t&&_defineProperties(e,t),Object.defineProperty(e,"prototype",{writable:!1}),e;}function _toPropertyKey(t){var i=_toPrimitive(t,"string");return"symbol"==_typeof(i)?i:i+"";}function _toPrimitive(t,r){if("object"!=_typeof(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var i=e.call(t,r||"default");if("object"!=_typeof(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.");}return("string"===r?String:Number)(t);}function _slicedToArray(r,e){return _arrayWithHoles(r)||_iterableToArrayLimit(r,e)||_unsupportedIterableToArray(r,e)||_nonIterableRest();}function _nonIterableRest(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");}function _unsupportedIterableToArray(r,a){if(r){if("string"==typeof r)return _arrayLikeToArray(r,a);var t={}.toString.call(r).slice(8,-1);return"Object"===t&&r.constructor&&(t=r.constructor.name),"Map"===t||"Set"===t?Array.from(r):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?_arrayLikeToArray(r,a):void 0;}}function _arrayLikeToArray(r,a){(null==a||a>r.length)&&(a=r.length);for(var e=0,n=Array(a);e<a;e++)n[e]=r[e];return n;}function _iterableToArrayLimit(r,l){var t=null==r?null:"undefined"!=typeof Symbol&&r[Symbol.iterator]||r["@@iterator"];if(null!=t){var e,n,i,u,a=[],f=!0,o=!1;try{if(i=(t=t.call(r)).next,0===l){if(Object(t)!==t)return;f=!1;}else for(;!(f=(e=i.call(t)).done)&&(a.push(e.value),a.length!==l);f=!0);}catch(r){o=!0,n=r;}finally{try{if(!f&&null!=t["return"]&&(u=t["return"](),Object(u)!==u))return;}finally{if(o)throw n;}}return a;}}function _arrayWithHoles(r){if(Array.isArray(r))return r;}function _typeof(o){"@babel/helpers - typeof";return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(o){return typeof o;}:function(o){return o&&"function"==typeof Symbol&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o;},_typeof(o);}function _wrapAsyncGenerator(e){return function(){return new AsyncGenerator(e.apply(this,arguments));};}function AsyncGenerator(e){var r,t;function resume(r,t){try{var n=e[r](t),o=n.value,u=o instanceof _OverloadYield;Promise.resolve(u?o.v:o).then(function(t){if(u){var i="return"===r?"return":"next";if(!o.k||t.done)return resume(i,t);t=e[i](t).value;}settle(n.done?"return":"normal",t);},function(e){resume("throw",e);});}catch(e){settle("throw",e);}}function settle(e,n){switch(e){case"return":r.resolve({value:n,done:!0});break;case"throw":r.reject(n);break;default:r.resolve({value:n,done:!1});}(r=r.next)?resume(r.key,r.arg):t=null;}this._invoke=function(e,n){return new Promise(function(o,u){var i={key:e,arg:n,resolve:o,reject:u,next:null};t?t=t.next=i:(r=t=i,resume(e,n));});},"function"!=typeof e["return"]&&(this["return"]=void 0);}AsyncGenerator.prototype["function"==typeof Symbol&&Symbol.asyncIterator||"@@asyncIterator"]=function(){return this;},AsyncGenerator.prototype.next=function(e){return this._invoke("next",e);},AsyncGenerator.prototype["throw"]=function(e){return this._invoke("throw",e);},AsyncGenerator.prototype["return"]=function(e){return this._invoke("return",e);};function _awaitAsyncGenerator(e){return new _OverloadYield(e,0);}function _asyncGeneratorDelegate(t){var e={},n=!1;function pump(e,r){return n=!0,r=new Promise(function(n){n(t[e](r));}),{done:!1,value:new _OverloadYield(r,1)};}return e["undefined"!=typeof Symbol&&Symbol.iterator||"@@iterator"]=function(){return this;},e.next=function(t){return n?(n=!1,t):pump("next",t);},"function"==typeof t["throw"]&&(e["throw"]=function(t){if(n)throw n=!1,t;return pump("throw",t);}),"function"==typeof t["return"]&&(e["return"]=function(t){return n?(n=!1,t):pump("return",t);}),e;}function _OverloadYield(e,d){this.v=e,this.k=d;}function _asyncIterator(r){var n,t,o,e=2;for("undefined"!=typeof Symbol&&(t=Symbol.asyncIterator,o=Symbol.iterator);e--;){if(t&&null!=(n=r[t]))return n.call(r);if(o&&null!=(n=r[o]))return new AsyncFromSyncIterator(n.call(r));t="@@asyncIterator",o="@@iterator";}throw new TypeError("Object is not async iterable");}function AsyncFromSyncIterator(r){function AsyncFromSyncIteratorContinuation(r){if(Object(r)!==r)return Promise.reject(new TypeError(r+" is not an object."));var n=r.done;return Promise.resolve(r.value).then(function(r){return{value:r,done:n};});}return AsyncFromSyncIterator=function AsyncFromSyncIterator(r){this.s=r,this.n=r.next;},AsyncFromSyncIterator.prototype={s:null,n:null,next:function next(){return AsyncFromSyncIteratorContinuation(this.n.apply(this.s,arguments));},"return":function _return(r){var n=this.s["return"];return void 0===n?Promise.resolve({value:r,done:!0}):AsyncFromSyncIteratorContinuation(n.apply(this.s,arguments));},"throw":function _throw(r){var n=this.s["return"];return void 0===n?Promise.reject(r):AsyncFromSyncIteratorContinuation(n.apply(this.s,arguments));}},new AsyncFromSyncIterator(r);}var qs=require('qs');function _interopDefaultLegacy(e){return e&&_typeof(e)==='object'&&'default'in e?e:{'default':e};}var qs__default=/*#__PURE__*/_interopDefaultLegacy(qs);var PureCloudRegionHosts={us_east_1:'mypurecloud.com',eu_west_1:'mypurecloud.ie',ap_southeast_2:'mypurecloud.com.au',ap_northeast_1:'mypurecloud.jp',eu_central_1:'mypurecloud.de',us_west_2:'usw2.pure.cloud',ca_central_1:'cac1.pure.cloud',ap_northeast_2:'apne2.pure.cloud',eu_west_2:'euw2.pure.cloud',ap_south_1:'aps1.pure.cloud',us_east_2:'use2.us-gov-pure.cloud',sa_east_1:'sae1.pure.cloud',me_central_1:'mec1.pure.cloud',ap_northeast_3:'apne3.pure.cloud',eu_central_2:'euc2.pure.cloud'};var global$1=typeof global!=="undefined"?global:typeof self!=="undefined"?self:typeof window!=="undefined"?window:{};// shim for using process in browser
2
2
  // based off https://github.com/defunctzombie/node-process/blob/master/browser.js
3
3
  function defaultSetTimout(){throw new Error('setTimeout has not been defined');}function defaultClearTimeout(){throw new Error('clearTimeout has not been defined');}var cachedSetTimeout=defaultSetTimout;var cachedClearTimeout=defaultClearTimeout;if(typeof global$1.setTimeout==='function'){cachedSetTimeout=setTimeout;}if(typeof global$1.clearTimeout==='function'){cachedClearTimeout=clearTimeout;}function runTimeout(fun){if(cachedSetTimeout===setTimeout){//normal enviroments in sane situations
4
4
  return setTimeout(fun,0);}// if setTimeout wasn't available but was latter defined
@@ -82,6 +82,14 @@ var toString$1=Object.prototype.toString;var getPrototypeOf=Object.getPrototypeO
82
82
  *
83
83
  * @returns {boolean} True if value is a plain Object, otherwise false
84
84
  */var isPlainObject=function isPlainObject(val){if(kindOf(val)!=='object'){return false;}var prototype=getPrototypeOf(val);return(prototype===null||prototype===Object.prototype||Object.getPrototypeOf(prototype)===null)&&!(toStringTag in val)&&!(iterator in val);};/**
85
+ * Determine if a value is an empty object (safely handles Buffers)
86
+ *
87
+ * @param {*} val The value to test
88
+ *
89
+ * @returns {boolean} True if value is an empty object, otherwise false
90
+ */var isEmptyObject=function isEmptyObject(val){// Early return for non-objects or Buffers to prevent RangeError
91
+ if(!isObject(val)||isBuffer$1(val)){return false;}try{return Object.keys(val).length===0&&Object.getPrototypeOf(val)===Object.prototype;}catch(e){// Fallback for any other objects that might cause RangeError with Object.keys()
92
+ return false;}};/**
85
93
  * Determine if a value is a Date
86
94
  *
87
95
  * @param {*} val The value to test
@@ -147,8 +155,9 @@ kind==='object'&&isFunction(thing.toString)&&thing.toString()==='[object FormDat
147
155
  */function forEach(obj,fn){var _ref3=arguments.length>2&&arguments[2]!==undefined?arguments[2]:{},_ref3$allOwnKeys=_ref3.allOwnKeys,allOwnKeys=_ref3$allOwnKeys===void 0?false:_ref3$allOwnKeys;// Don't bother if no value provided
148
156
  if(obj===null||typeof obj==='undefined'){return;}var i;var l;// Force an array if not already something iterable
149
157
  if(_typeof(obj)!=='object'){/*eslint no-param-reassign:0*/obj=[obj];}if(isArray$1(obj)){// Iterate over array values
150
- for(i=0,l=obj.length;i<l;i++){fn.call(null,obj[i],i,obj);}}else{// Iterate over object keys
151
- var keys=allOwnKeys?Object.getOwnPropertyNames(obj):Object.keys(obj);var len=keys.length;var key;for(i=0;i<len;i++){key=keys[i];fn.call(null,obj[key],key,obj);}}}function findKey(obj,key){key=key.toLowerCase();var keys=Object.keys(obj);var i=keys.length;var _key;while(i-->0){_key=keys[i];if(key===_key.toLowerCase()){return _key;}}return null;}var _global=function(){/*eslint no-undef:0*/if(typeof globalThis!=="undefined")return globalThis;return typeof self!=="undefined"?self:typeof window!=='undefined'?window:global$1;}();var isContextDefined=function isContextDefined(context){return!isUndefined(context)&&context!==_global;};/**
158
+ for(i=0,l=obj.length;i<l;i++){fn.call(null,obj[i],i,obj);}}else{// Buffer check
159
+ if(isBuffer$1(obj)){return;}// Iterate over object keys
160
+ var keys=allOwnKeys?Object.getOwnPropertyNames(obj):Object.keys(obj);var len=keys.length;var key;for(i=0;i<len;i++){key=keys[i];fn.call(null,obj[key],key,obj);}}}function findKey(obj,key){if(isBuffer$1(obj)){return null;}key=key.toLowerCase();var keys=Object.keys(obj);var i=keys.length;var _key;while(i-->0){_key=keys[i];if(key===_key.toLowerCase()){return _key;}}return null;}var _global=function(){/*eslint no-undef:0*/if(typeof globalThis!=="undefined")return globalThis;return typeof self!=="undefined"?self:typeof window!=='undefined'?window:global$1;}();var isContextDefined=function isContextDefined(context){return!isUndefined(context)&&context!==_global;};/**
152
161
  * Accepts varargs expecting each argument to be an object, then
153
162
  * immutably merges the properties of each object and returns result.
154
163
  *
@@ -250,10 +259,11 @@ if(isFunction(obj)&&['arguments','caller','callee'].indexOf(name)!==-1){return f
250
259
  * @param {unknown} thing - The thing to check.
251
260
  *
252
261
  * @returns {boolean}
253
- */function isSpecCompliantForm(thing){return!!(thing&&isFunction(thing.append)&&thing[toStringTag]==='FormData'&&thing[iterator]);}var toJSONObject=function toJSONObject(obj){var stack=new Array(10);var _visit=function visit(source,i){if(isObject(source)){if(stack.indexOf(source)>=0){return;}if(!('toJSON'in source)){stack[i]=source;var target=isArray$1(source)?[]:{};forEach(source,function(value,key){var reducedValue=_visit(value,i+1);!isUndefined(reducedValue)&&(target[key]=reducedValue);});stack[i]=undefined;return target;}}return source;};return _visit(obj,0);};var isAsyncFn=kindOfTest('AsyncFunction');var isThenable=function isThenable(thing){return thing&&(isObject(thing)||isFunction(thing))&&isFunction(thing.then)&&isFunction(thing["catch"]);};// original code
262
+ */function isSpecCompliantForm(thing){return!!(thing&&isFunction(thing.append)&&thing[toStringTag]==='FormData'&&thing[iterator]);}var toJSONObject=function toJSONObject(obj){var stack=new Array(10);var _visit=function visit(source,i){if(isObject(source)){if(stack.indexOf(source)>=0){return;}//Buffer check
263
+ if(isBuffer$1(source)){return source;}if(!('toJSON'in source)){stack[i]=source;var target=isArray$1(source)?[]:{};forEach(source,function(value,key){var reducedValue=_visit(value,i+1);!isUndefined(reducedValue)&&(target[key]=reducedValue);});stack[i]=undefined;return target;}}return source;};return _visit(obj,0);};var isAsyncFn=kindOfTest('AsyncFunction');var isThenable=function isThenable(thing){return thing&&(isObject(thing)||isFunction(thing))&&isFunction(thing.then)&&isFunction(thing["catch"]);};// original code
254
264
  // https://github.com/DigitalBrainJS/AxiosPromise/blob/16deab13710ec09779922131f3fa5954320f83ab/lib/utils.js#L11-L34
255
265
  var _setImmediate=function(setImmediateSupported,postMessageSupported){if(setImmediateSupported){return setImmediate;}return postMessageSupported?function(token,callbacks){_global.addEventListener("message",function(_ref7){var source=_ref7.source,data=_ref7.data;if(source===_global&&data===token){callbacks.length&&callbacks.shift()();}},false);return function(cb){callbacks.push(cb);_global.postMessage(token,"*");};}("axios@".concat(Math.random()),[]):function(cb){return setTimeout(cb);};}(typeof setImmediate==='function',isFunction(_global.postMessage));var asap=typeof queueMicrotask!=='undefined'?queueMicrotask.bind(_global):typeof process!=='undefined'&&nextTick||_setImmediate;// *********************
256
- var isIterable=function isIterable(thing){return thing!=null&&isFunction(thing[iterator]);};var utils$1={isArray:isArray$1,isArrayBuffer:isArrayBuffer,isBuffer:isBuffer$1,isFormData:isFormData,isArrayBufferView:isArrayBufferView,isString:isString,isNumber:isNumber,isBoolean:isBoolean,isObject:isObject,isPlainObject:isPlainObject,isReadableStream:isReadableStream,isRequest:isRequest,isResponse:isResponse,isHeaders:isHeaders,isUndefined:isUndefined,isDate:isDate,isFile:isFile,isBlob:isBlob,isRegExp:isRegExp,isFunction:isFunction,isStream:isStream,isURLSearchParams:isURLSearchParams,isTypedArray:isTypedArray,isFileList:isFileList,forEach:forEach,merge:merge,extend:extend,trim:trim,stripBOM:stripBOM,inherits:inherits,toFlatObject:toFlatObject,kindOf:kindOf,kindOfTest:kindOfTest,endsWith:endsWith,toArray:toArray,forEachEntry:forEachEntry,matchAll:matchAll,isHTMLForm:isHTMLForm,hasOwnProperty:hasOwnProperty,hasOwnProp:hasOwnProperty,// an alias to avoid ESLint no-prototype-builtins detection
266
+ var isIterable=function isIterable(thing){return thing!=null&&isFunction(thing[iterator]);};var utils$1={isArray:isArray$1,isArrayBuffer:isArrayBuffer,isBuffer:isBuffer$1,isFormData:isFormData,isArrayBufferView:isArrayBufferView,isString:isString,isNumber:isNumber,isBoolean:isBoolean,isObject:isObject,isPlainObject:isPlainObject,isEmptyObject:isEmptyObject,isReadableStream:isReadableStream,isRequest:isRequest,isResponse:isResponse,isHeaders:isHeaders,isUndefined:isUndefined,isDate:isDate,isFile:isFile,isBlob:isBlob,isRegExp:isRegExp,isFunction:isFunction,isStream:isStream,isURLSearchParams:isURLSearchParams,isTypedArray:isTypedArray,isFileList:isFileList,forEach:forEach,merge:merge,extend:extend,trim:trim,stripBOM:stripBOM,inherits:inherits,toFlatObject:toFlatObject,kindOf:kindOf,kindOfTest:kindOfTest,endsWith:endsWith,toArray:toArray,forEachEntry:forEachEntry,matchAll:matchAll,isHTMLForm:isHTMLForm,hasOwnProperty:hasOwnProperty,hasOwnProp:hasOwnProperty,// an alias to avoid ESLint no-prototype-builtins detection
257
267
  reduceDescriptors:reduceDescriptors,freezeMethods:freezeMethods,toObjectSet:toObjectSet,toCamelCase:toCamelCase,noop:noop,toFiniteNumber:toFiniteNumber,findKey:findKey,global:_global,isContextDefined:isContextDefined,isSpecCompliantForm:isSpecCompliantForm,toJSONObject:toJSONObject,isAsyncFn:isAsyncFn,isThenable:isThenable,setImmediate:_setImmediate,asap:asap,isIterable:isIterable};var lookup=[];var revLookup=[];var Arr=typeof Uint8Array!=='undefined'?Uint8Array:Array;var inited=false;function init(){inited=true;var code='ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/';for(var i=0,len=code.length;i<len;++i){lookup[i]=code[i];revLookup[code.charCodeAt(i)]=i;}revLookup['-'.charCodeAt(0)]=62;revLookup['_'.charCodeAt(0)]=63;}function toByteArray(b64){if(!inited){init();}var i,j,l,tmp,placeHolders,arr;var len=b64.length;if(len%4>0){throw new Error('Invalid string. Length must be a multiple of 4');}// the number of equal signs (place holders)
258
268
  // if there are two placeholders, than the two characters before it
259
269
  // represent one byte
@@ -569,7 +579,7 @@ indexes===true?renderKey([key],index,dots):indexes===null?key:key+'[]',convertVa
569
579
  * `typeof window !== 'undefined' && typeof document !== 'undefined'`.
570
580
  * This leads to a problem when axios post `FormData` in webWorker
571
581
  */var hasStandardBrowserWebWorkerEnv=function(){return typeof WorkerGlobalScope!=='undefined'&&// eslint-disable-next-line no-undef
572
- self instanceof WorkerGlobalScope&&typeof self.importScripts==='function';}();var origin=hasBrowserEnv&&window.location.href||'http://localhost';var utils=/*#__PURE__*/Object.freeze({__proto__:null,hasBrowserEnv:hasBrowserEnv,hasStandardBrowserWebWorkerEnv:hasStandardBrowserWebWorkerEnv,hasStandardBrowserEnv:hasStandardBrowserEnv,navigator:_navigator,origin:origin});var platform=_objectSpread(_objectSpread({},utils),platform$1);function toURLEncodedForm(data,options){return toFormData(data,new platform.classes.URLSearchParams(),Object.assign({visitor:function visitor(value,key,path,helpers){if(platform.isNode&&utils$1.isBuffer(value)){this.append(key,value.toString('base64'));return false;}return helpers.defaultVisitor.apply(this,arguments);}},options));}/**
582
+ self instanceof WorkerGlobalScope&&typeof self.importScripts==='function';}();var origin=hasBrowserEnv&&window.location.href||'http://localhost';var utils=/*#__PURE__*/Object.freeze({__proto__:null,hasBrowserEnv:hasBrowserEnv,hasStandardBrowserWebWorkerEnv:hasStandardBrowserWebWorkerEnv,hasStandardBrowserEnv:hasStandardBrowserEnv,navigator:_navigator,origin:origin});var platform=_objectSpread(_objectSpread({},utils),platform$1);function toURLEncodedForm(data,options){return toFormData(data,new platform.classes.URLSearchParams(),_objectSpread({visitor:function visitor(value,key,path,helpers){if(platform.isNode&&utils$1.isBuffer(value)){this.append(key,value.toString('base64'));return false;}return helpers.defaultVisitor.apply(this,arguments);}},options));}/**
573
583
  * It takes a string like `foo[x][y][z]` and returns an array like `['foo', 'x', 'y', 'z']
574
584
  *
575
585
  * @param {string} name - The name of the property to get.
@@ -654,7 +664,7 @@ AxiosError.call(this,message==null?'canceled':message,AxiosError.ERR_CANCELED,co
654
664
  * @param {Function} fn
655
665
  * @param {Number} freq
656
666
  * @return {Function}
657
- */function throttle(fn,freq){var timestamp=0;var threshold=1000/freq;var lastArgs;var timer;var invoke=function invoke(args){var now=arguments.length>1&&arguments[1]!==undefined?arguments[1]:Date.now();timestamp=now;lastArgs=null;if(timer){clearTimeout(timer);timer=null;}fn.apply(null,args);};var throttled=function throttled(){var now=Date.now();var passed=now-timestamp;for(var _len3=arguments.length,args=new Array(_len3),_key4=0;_key4<_len3;_key4++){args[_key4]=arguments[_key4];}if(passed>=threshold){invoke(args,now);}else{lastArgs=args;if(!timer){timer=setTimeout(function(){timer=null;invoke(lastArgs);},threshold-passed);}}};var flush=function flush(){return lastArgs&&invoke(lastArgs);};return[throttled,flush];}var progressEventReducer=function progressEventReducer(listener,isDownloadStream){var freq=arguments.length>2&&arguments[2]!==undefined?arguments[2]:3;var bytesNotified=0;var _speedometer=speedometer(50,250);return throttle(function(e){var loaded=e.loaded;var total=e.lengthComputable?e.total:undefined;var progressBytes=loaded-bytesNotified;var rate=_speedometer(progressBytes);var inRange=loaded<=total;bytesNotified=loaded;var data=_defineProperty({loaded:loaded,total:total,progress:total?loaded/total:undefined,bytes:progressBytes,rate:rate?rate:undefined,estimated:rate&&total&&inRange?(total-loaded)/rate:undefined,event:e,lengthComputable:total!=null},isDownloadStream?'download':'upload',true);listener(data);},freq);};var progressEventDecorator=function progressEventDecorator(total,throttled){var lengthComputable=total!=null;return[function(loaded){return throttled[0]({lengthComputable:lengthComputable,total:total,loaded:loaded});},throttled[1]];};var asyncDecorator=function asyncDecorator(fn){return function(){for(var _len4=arguments.length,args=new Array(_len4),_key5=0;_key5<_len4;_key5++){args[_key5]=arguments[_key5];}return utils$1.asap(function(){return fn.apply(void 0,args);});};};var isURLSameOrigin=platform.hasStandardBrowserEnv?function(origin,isMSIE){return function(url){url=new URL(url,platform.origin);return origin.protocol===url.protocol&&origin.host===url.host&&(isMSIE||origin.port===url.port);};}(new URL(platform.origin),platform.navigator&&/(msie|trident)/i.test(platform.navigator.userAgent)):function(){return true;};var cookies=platform.hasStandardBrowserEnv?// Standard browser envs support document.cookie
667
+ */function throttle(fn,freq){var timestamp=0;var threshold=1000/freq;var lastArgs;var timer;var invoke=function invoke(args){var now=arguments.length>1&&arguments[1]!==undefined?arguments[1]:Date.now();timestamp=now;lastArgs=null;if(timer){clearTimeout(timer);timer=null;}fn.apply(void 0,_toConsumableArray(args));};var throttled=function throttled(){var now=Date.now();var passed=now-timestamp;for(var _len3=arguments.length,args=new Array(_len3),_key4=0;_key4<_len3;_key4++){args[_key4]=arguments[_key4];}if(passed>=threshold){invoke(args,now);}else{lastArgs=args;if(!timer){timer=setTimeout(function(){timer=null;invoke(lastArgs);},threshold-passed);}}};var flush=function flush(){return lastArgs&&invoke(lastArgs);};return[throttled,flush];}var progressEventReducer=function progressEventReducer(listener,isDownloadStream){var freq=arguments.length>2&&arguments[2]!==undefined?arguments[2]:3;var bytesNotified=0;var _speedometer=speedometer(50,250);return throttle(function(e){var loaded=e.loaded;var total=e.lengthComputable?e.total:undefined;var progressBytes=loaded-bytesNotified;var rate=_speedometer(progressBytes);var inRange=loaded<=total;bytesNotified=loaded;var data=_defineProperty({loaded:loaded,total:total,progress:total?loaded/total:undefined,bytes:progressBytes,rate:rate?rate:undefined,estimated:rate&&total&&inRange?(total-loaded)/rate:undefined,event:e,lengthComputable:total!=null},isDownloadStream?'download':'upload',true);listener(data);},freq);};var progressEventDecorator=function progressEventDecorator(total,throttled){var lengthComputable=total!=null;return[function(loaded){return throttled[0]({lengthComputable:lengthComputable,total:total,loaded:loaded});},throttled[1]];};var asyncDecorator=function asyncDecorator(fn){return function(){for(var _len4=arguments.length,args=new Array(_len4),_key5=0;_key5<_len4;_key5++){args[_key5]=arguments[_key5];}return utils$1.asap(function(){return fn.apply(void 0,args);});};};var isURLSameOrigin=platform.hasStandardBrowserEnv?function(origin,isMSIE){return function(url){url=new URL(url,platform.origin);return origin.protocol===url.protocol&&origin.host===url.host&&(isMSIE||origin.port===url.port);};}(new URL(platform.origin),platform.navigator&&/(msie|trident)/i.test(platform.navigator.userAgent)):function(){return true;};var cookies=platform.hasStandardBrowserEnv?// Standard browser envs support document.cookie
658
668
  {write:function write(name,value,expires,path,domain,secure){var cookie=[name+'='+encodeURIComponent(value)];utils$1.isNumber(expires)&&cookie.push('expires='+new Date(expires).toGMTString());utils$1.isString(path)&&cookie.push('path='+path);utils$1.isString(domain)&&cookie.push('domain='+domain);secure===true&&cookie.push('secure');document.cookie=cookie.join('; ');},read:function read(name){var match=document.cookie.match(new RegExp('(^|;\\s*)('+name+')=([^;]*)'));return match?decodeURIComponent(match[3]):null;},remove:function remove(name){this.write(name,'',Date.now()-86400000);}}:// Non-standard browser env (web workers, react-native) lack needed support.
659
669
  {write:function write(){},read:function read(){return null;},remove:function remove(){}};/**
660
670
  * Determines whether the specified URL is absolute
@@ -694,7 +704,7 @@ config2=config2||{};var config={};function getMergedValue(target,source,prop,cas
694
704
  function mergeDeepProperties(a,b,prop,caseless){if(!utils$1.isUndefined(b)){return getMergedValue(a,b,prop,caseless);}else if(!utils$1.isUndefined(a)){return getMergedValue(undefined,a,prop,caseless);}}// eslint-disable-next-line consistent-return
695
705
  function valueFromConfig2(a,b){if(!utils$1.isUndefined(b)){return getMergedValue(undefined,b);}}// eslint-disable-next-line consistent-return
696
706
  function defaultToConfig2(a,b){if(!utils$1.isUndefined(b)){return getMergedValue(undefined,b);}else if(!utils$1.isUndefined(a)){return getMergedValue(undefined,a);}}// eslint-disable-next-line consistent-return
697
- function mergeDirectKeys(a,b,prop){if(prop in config2){return getMergedValue(a,b);}else if(prop in config1){return getMergedValue(undefined,a);}}var mergeMap={url:valueFromConfig2,method:valueFromConfig2,data:valueFromConfig2,baseURL:defaultToConfig2,transformRequest:defaultToConfig2,transformResponse:defaultToConfig2,paramsSerializer:defaultToConfig2,timeout:defaultToConfig2,timeoutMessage:defaultToConfig2,withCredentials:defaultToConfig2,withXSRFToken:defaultToConfig2,adapter:defaultToConfig2,responseType:defaultToConfig2,xsrfCookieName:defaultToConfig2,xsrfHeaderName:defaultToConfig2,onUploadProgress:defaultToConfig2,onDownloadProgress:defaultToConfig2,decompress:defaultToConfig2,maxContentLength:defaultToConfig2,maxBodyLength:defaultToConfig2,beforeRedirect:defaultToConfig2,transport:defaultToConfig2,httpAgent:defaultToConfig2,httpsAgent:defaultToConfig2,cancelToken:defaultToConfig2,socketPath:defaultToConfig2,responseEncoding:defaultToConfig2,validateStatus:mergeDirectKeys,headers:function headers(a,b,prop){return mergeDeepProperties(headersToObject(a),headersToObject(b),prop,true);}};utils$1.forEach(Object.keys(Object.assign({},config1,config2)),function computeConfigValue(prop){var merge=mergeMap[prop]||mergeDeepProperties;var configValue=merge(config1[prop],config2[prop],prop);utils$1.isUndefined(configValue)&&merge!==mergeDirectKeys||(config[prop]=configValue);});return config;}var resolveConfig=function resolveConfig(config){var newConfig=mergeConfig({},config);var data=newConfig.data,withXSRFToken=newConfig.withXSRFToken,xsrfHeaderName=newConfig.xsrfHeaderName,xsrfCookieName=newConfig.xsrfCookieName,headers=newConfig.headers,auth=newConfig.auth;newConfig.headers=headers=AxiosHeaders$1.from(headers);newConfig.url=buildURL(buildFullPath(newConfig.baseURL,newConfig.url,newConfig.allowAbsoluteUrls),config.params,config.paramsSerializer);// HTTP basic authentication
707
+ function mergeDirectKeys(a,b,prop){if(prop in config2){return getMergedValue(a,b);}else if(prop in config1){return getMergedValue(undefined,a);}}var mergeMap={url:valueFromConfig2,method:valueFromConfig2,data:valueFromConfig2,baseURL:defaultToConfig2,transformRequest:defaultToConfig2,transformResponse:defaultToConfig2,paramsSerializer:defaultToConfig2,timeout:defaultToConfig2,timeoutMessage:defaultToConfig2,withCredentials:defaultToConfig2,withXSRFToken:defaultToConfig2,adapter:defaultToConfig2,responseType:defaultToConfig2,xsrfCookieName:defaultToConfig2,xsrfHeaderName:defaultToConfig2,onUploadProgress:defaultToConfig2,onDownloadProgress:defaultToConfig2,decompress:defaultToConfig2,maxContentLength:defaultToConfig2,maxBodyLength:defaultToConfig2,beforeRedirect:defaultToConfig2,transport:defaultToConfig2,httpAgent:defaultToConfig2,httpsAgent:defaultToConfig2,cancelToken:defaultToConfig2,socketPath:defaultToConfig2,responseEncoding:defaultToConfig2,validateStatus:mergeDirectKeys,headers:function headers(a,b,prop){return mergeDeepProperties(headersToObject(a),headersToObject(b),prop,true);}};utils$1.forEach(Object.keys(_objectSpread(_objectSpread({},config1),config2)),function computeConfigValue(prop){var merge=mergeMap[prop]||mergeDeepProperties;var configValue=merge(config1[prop],config2[prop],prop);utils$1.isUndefined(configValue)&&merge!==mergeDirectKeys||(config[prop]=configValue);});return config;}var resolveConfig=function resolveConfig(config){var newConfig=mergeConfig({},config);var data=newConfig.data,withXSRFToken=newConfig.withXSRFToken,xsrfHeaderName=newConfig.xsrfHeaderName,xsrfCookieName=newConfig.xsrfCookieName,headers=newConfig.headers,auth=newConfig.auth;newConfig.headers=headers=AxiosHeaders$1.from(headers);newConfig.url=buildURL(buildFullPath(newConfig.baseURL,newConfig.url,newConfig.allowAbsoluteUrls),config.params,config.paramsSerializer);// HTTP basic authentication
698
708
  if(auth){headers.set('Authorization','Basic '+btoa((auth.username||'')+':'+(auth.password?unescape(encodeURIComponent(auth.password)):'')));}var contentType;if(utils$1.isFormData(data)){if(platform.hasStandardBrowserEnv||platform.hasStandardBrowserWebWorkerEnv){headers.setContentType(undefined);// Let the browser set it
699
709
  }else if((contentType=headers.getContentType())!==false){// fix semicolon duplication issue for ReactNative FormData implementation
700
710
  var _ref1=contentType?contentType.split(';').map(function(token){return token.trim();}).filter(Boolean):[],_ref10=_toArray(_ref1),type=_ref10[0],tokens=_ref10.slice(1);headers.setContentType([type||'multipart/form-data'].concat(_toConsumableArray(tokens)).join('; '));}}// Add xsrf header
@@ -731,8 +741,8 @@ if(onDownloadProgress){var _progressEventReducer=progressEventReducer(onDownload
731
741
  if(onUploadProgress&&request.upload){var _progressEventReducer3=progressEventReducer(onUploadProgress);var _progressEventReducer4=_slicedToArray(_progressEventReducer3,2);uploadThrottled=_progressEventReducer4[0];flushUpload=_progressEventReducer4[1];request.upload.addEventListener('progress',uploadThrottled);request.upload.addEventListener('loadend',flushUpload);}if(_config.cancelToken||_config.signal){// Handle cancellation
732
742
  // eslint-disable-next-line func-names
733
743
  onCanceled=function onCanceled(cancel){if(!request){return;}reject(!cancel||cancel.type?new CanceledError(null,config,request):cancel);request.abort();request=null;};_config.cancelToken&&_config.cancelToken.subscribe(onCanceled);if(_config.signal){_config.signal.aborted?onCanceled():_config.signal.addEventListener('abort',onCanceled);}}var protocol=parseProtocol(_config.url);if(protocol&&platform.protocols.indexOf(protocol)===-1){reject(new AxiosError('Unsupported protocol '+protocol+':',AxiosError.ERR_BAD_REQUEST,config));return;}// Send the request
734
- request.send(requestData||null);});};var composeSignals=function composeSignals(signals,timeout){var _signals=signals=signals?signals.filter(Boolean):[],length=_signals.length;if(timeout||length){var controller=new AbortController();var aborted;var onabort=function onabort(reason){if(!aborted){aborted=true;unsubscribe();var err=reason instanceof Error?reason:this.reason;controller.abort(err instanceof AxiosError?err:new CanceledError(err instanceof Error?err.message:err));}};var timer=timeout&&setTimeout(function(){timer=null;onabort(new AxiosError("timeout ".concat(timeout," of ms exceeded"),AxiosError.ETIMEDOUT));},timeout);var unsubscribe=function unsubscribe(){if(signals){timer&&clearTimeout(timer);timer=null;signals.forEach(function(signal){signal.unsubscribe?signal.unsubscribe(onabort):signal.removeEventListener('abort',onabort);});signals=null;}};signals.forEach(function(signal){return signal.addEventListener('abort',onabort);});var signal=controller.signal;signal.unsubscribe=function(){return utils$1.asap(unsubscribe);};return signal;}};var composeSignals$1=composeSignals;var streamChunk=/*#__PURE__*/_regenerator().m(function streamChunk(chunk,chunkSize){var len,pos,end;return _regenerator().w(function(_context){while(1)switch(_context.n){case 0:len=chunk.byteLength;if(!(!chunkSize||len<chunkSize)){_context.n=2;break;}_context.n=1;return chunk;case 1:return _context.a(2);case 2:pos=0;case 3:if(!(pos<len)){_context.n=5;break;}end=pos+chunkSize;_context.n=4;return chunk.slice(pos,end);case 4:pos=end;_context.n=3;break;case 5:return _context.a(2);}},streamChunk);});var readBytes=/*#__PURE__*/function(){var _ref=_wrapAsyncGenerator(/*#__PURE__*/_regenerator().m(function _callee(iterable,chunkSize){var _iteratorAbruptCompletion,_didIteratorError,_iteratorError,_iterator2,_step,chunk,_t;return _regenerator().w(function(_context2){while(1)switch(_context2.n){case 0:_iteratorAbruptCompletion=false;_didIteratorError=false;_context2.p=1;_iterator2=_asyncIterator(readStream(iterable));case 2:_context2.n=3;return _awaitAsyncGenerator(_iterator2.next());case 3:if(!(_iteratorAbruptCompletion=!(_step=_context2.v).done)){_context2.n=5;break;}chunk=_step.value;return _context2.d(_regeneratorValues(_asyncGeneratorDelegate(_asyncIterator(streamChunk(chunk,chunkSize)),_awaitAsyncGenerator)),4);case 4:_iteratorAbruptCompletion=false;_context2.n=2;break;case 5:_context2.n=7;break;case 6:_context2.p=6;_t=_context2.v;_didIteratorError=true;_iteratorError=_t;case 7:_context2.p=7;_context2.p=8;if(!(_iteratorAbruptCompletion&&_iterator2["return"]!=null)){_context2.n=9;break;}_context2.n=9;return _awaitAsyncGenerator(_iterator2["return"]());case 9:_context2.p=9;if(!_didIteratorError){_context2.n=10;break;}throw _iteratorError;case 10:return _context2.f(9);case 11:return _context2.f(7);case 12:return _context2.a(2);}},_callee,null,[[8,,9,11],[1,6,7,12]]);}));return function readBytes(_x,_x2){return _ref.apply(this,arguments);};}();var readStream=/*#__PURE__*/function(){var _ref2=_wrapAsyncGenerator(/*#__PURE__*/_regenerator().m(function _callee2(stream){var reader,_yield$_awaitAsyncGen,done,value;return _regenerator().w(function(_context3){while(1)switch(_context3.n){case 0:if(!stream[Symbol.asyncIterator]){_context3.n=2;break;}return _context3.d(_regeneratorValues(_asyncGeneratorDelegate(_asyncIterator(stream),_awaitAsyncGenerator)),1);case 1:return _context3.a(2);case 2:reader=stream.getReader();_context3.p=3;case 4:_context3.n=5;return _awaitAsyncGenerator(reader.read());case 5:_yield$_awaitAsyncGen=_context3.v;done=_yield$_awaitAsyncGen.done;value=_yield$_awaitAsyncGen.value;if(!done){_context3.n=6;break;}return _context3.a(3,8);case 6:_context3.n=7;return value;case 7:_context3.n=4;break;case 8:_context3.p=8;_context3.n=9;return _awaitAsyncGenerator(reader.cancel());case 9:return _context3.f(8);case 10:return _context3.a(2);}},_callee2,null,[[3,,8,10]]);}));return function readStream(_x3){return _ref2.apply(this,arguments);};}();var trackStream=function trackStream(stream,chunkSize,onProgress,onFinish){var iterator=readBytes(stream,chunkSize);var bytes=0;var done;var _onFinish=function _onFinish(e){if(!done){done=true;onFinish&&onFinish(e);}};return new ReadableStream({pull:function pull(controller){return _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee3(){var _yield$iterator$next,_done,value,len,loadedBytes,_t2;return _regenerator().w(function(_context4){while(1)switch(_context4.n){case 0:_context4.p=0;_context4.n=1;return iterator.next();case 1:_yield$iterator$next=_context4.v;_done=_yield$iterator$next.done;value=_yield$iterator$next.value;if(!_done){_context4.n=2;break;}_onFinish();controller.close();return _context4.a(2);case 2:len=value.byteLength;if(onProgress){loadedBytes=bytes+=len;onProgress(loadedBytes);}controller.enqueue(new Uint8Array(value));_context4.n=4;break;case 3:_context4.p=3;_t2=_context4.v;_onFinish(_t2);throw _t2;case 4:return _context4.a(2);}},_callee3,null,[[0,3]]);}))();},cancel:function cancel(reason){_onFinish(reason);return iterator["return"]();}},{highWaterMark:2});};var isFetchSupported=typeof fetch==='function'&&typeof Request==='function'&&typeof Response==='function';var isReadableStreamSupported=isFetchSupported&&typeof ReadableStream==='function';// used only inside the fetch adapter
735
- var encodeText=isFetchSupported&&(typeof TextEncoder==='function'?function(encoder){return function(str){return encoder.encode(str);};}(new TextEncoder()):(/*#__PURE__*/function(){var _ref11=_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee4(str){var _t3,_t4;return _regenerator().w(function(_context5){while(1)switch(_context5.n){case 0:_t3=Uint8Array;_context5.n=1;return new Response(str).arrayBuffer();case 1:_t4=_context5.v;return _context5.a(2,new _t3(_t4));}},_callee4);}));return function(_x4){return _ref11.apply(this,arguments);};}()));var test=function test(fn){try{for(var _len5=arguments.length,args=new Array(_len5>1?_len5-1:0),_key6=1;_key6<_len5;_key6++){args[_key6-1]=arguments[_key6];}return!!fn.apply(void 0,args);}catch(e){return false;}};var supportsRequestStream=isReadableStreamSupported&&test(function(){var duplexAccessed=false;var hasContentType=new Request(platform.origin,{body:new ReadableStream(),method:'POST',get duplex(){duplexAccessed=true;return'half';}}).headers.has('Content-Type');return duplexAccessed&&!hasContentType;});var DEFAULT_CHUNK_SIZE=64*1024;var supportsResponseStream=isReadableStreamSupported&&test(function(){return utils$1.isReadableStream(new Response('').body);});var resolvers={stream:supportsResponseStream&&function(res){return res.body;}};isFetchSupported&&function(res){['text','arrayBuffer','blob','formData','stream'].forEach(function(type){!resolvers[type]&&(resolvers[type]=utils$1.isFunction(res[type])?function(res){return res[type]();}:function(_,config){throw new AxiosError("Response type '".concat(type,"' is not supported"),AxiosError.ERR_NOT_SUPPORT,config);});});}(new Response());var getBodyLength=/*#__PURE__*/function(){var _ref12=_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee5(body){var _request;return _regenerator().w(function(_context6){while(1)switch(_context6.n){case 0:if(!(body==null)){_context6.n=1;break;}return _context6.a(2,0);case 1:if(!utils$1.isBlob(body)){_context6.n=2;break;}return _context6.a(2,body.size);case 2:if(!utils$1.isSpecCompliantForm(body)){_context6.n=4;break;}_request=new Request(platform.origin,{method:'POST',body:body});_context6.n=3;return _request.arrayBuffer();case 3:return _context6.a(2,_context6.v.byteLength);case 4:if(!(utils$1.isArrayBufferView(body)||utils$1.isArrayBuffer(body))){_context6.n=5;break;}return _context6.a(2,body.byteLength);case 5:if(utils$1.isURLSearchParams(body)){body=body+'';}if(!utils$1.isString(body)){_context6.n=7;break;}_context6.n=6;return encodeText(body);case 6:return _context6.a(2,_context6.v.byteLength);case 7:return _context6.a(2);}},_callee5);}));return function getBodyLength(_x5){return _ref12.apply(this,arguments);};}();var resolveBodyLength=/*#__PURE__*/function(){var _ref13=_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee6(headers,body){var length;return _regenerator().w(function(_context7){while(1)switch(_context7.n){case 0:length=utils$1.toFiniteNumber(headers.getContentLength());return _context7.a(2,length==null?getBodyLength(body):length);}},_callee6);}));return function resolveBodyLength(_x6,_x7){return _ref13.apply(this,arguments);};}();var fetchAdapter=isFetchSupported&&(/*#__PURE__*/function(){var _ref14=_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee7(config){var _resolveConfig,url,method,data,signal,cancelToken,timeout,onDownloadProgress,onUploadProgress,responseType,headers,_resolveConfig$withCr,withCredentials,fetchOptions,composedSignal,request,unsubscribe,requestContentLength,_request,contentTypeHeader,_progressEventDecorat,_progressEventDecorat2,onProgress,flush,isCredentialsSupported,response,isStreamResponse,options,responseContentLength,_ref15,_ref16,_onProgress,_flush,responseData,_t5,_t6,_t7;return _regenerator().w(function(_context8){while(1)switch(_context8.n){case 0:_resolveConfig=resolveConfig(config),url=_resolveConfig.url,method=_resolveConfig.method,data=_resolveConfig.data,signal=_resolveConfig.signal,cancelToken=_resolveConfig.cancelToken,timeout=_resolveConfig.timeout,onDownloadProgress=_resolveConfig.onDownloadProgress,onUploadProgress=_resolveConfig.onUploadProgress,responseType=_resolveConfig.responseType,headers=_resolveConfig.headers,_resolveConfig$withCr=_resolveConfig.withCredentials,withCredentials=_resolveConfig$withCr===void 0?'same-origin':_resolveConfig$withCr,fetchOptions=_resolveConfig.fetchOptions;responseType=responseType?(responseType+'').toLowerCase():'text';composedSignal=composeSignals$1([signal,cancelToken&&cancelToken.toAbortSignal()],timeout);unsubscribe=composedSignal&&composedSignal.unsubscribe&&function(){composedSignal.unsubscribe();};_context8.p=1;_t5=onUploadProgress&&supportsRequestStream&&method!=='get'&&method!=='head';if(!_t5){_context8.n=3;break;}_context8.n=2;return resolveBodyLength(headers,data);case 2:_t6=requestContentLength=_context8.v;_t5=_t6!==0;case 3:if(!_t5){_context8.n=4;break;}_request=new Request(url,{method:'POST',body:data,duplex:"half"});if(utils$1.isFormData(data)&&(contentTypeHeader=_request.headers.get('content-type'))){headers.setContentType(contentTypeHeader);}if(_request.body){_progressEventDecorat=progressEventDecorator(requestContentLength,progressEventReducer(asyncDecorator(onUploadProgress))),_progressEventDecorat2=_slicedToArray(_progressEventDecorat,2),onProgress=_progressEventDecorat2[0],flush=_progressEventDecorat2[1];data=trackStream(_request.body,DEFAULT_CHUNK_SIZE,onProgress,flush);}case 4:if(!utils$1.isString(withCredentials)){withCredentials=withCredentials?'include':'omit';}// Cloudflare Workers throws when credentials are defined
744
+ 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.p=_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.p=_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.p=_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
745
+ var encodeText=isFetchSupported&&(typeof TextEncoder==='function'?function(encoder){return function(str){return encoder.encode(str);};}(new TextEncoder()):(/*#__PURE__*/function(){var _ref11=_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee4(str){var _t3,_t4;return _regenerator().w(function(_context5){while(1)switch(_context5.n){case 0:_t3=Uint8Array;_context5.n=1;return new Response(str).arrayBuffer();case 1:_t4=_context5.v;return _context5.a(2,new _t3(_t4));}},_callee4);}));return function(_x4){return _ref11.apply(this,arguments);};}()));var test=function test(fn){try{for(var _len5=arguments.length,args=new Array(_len5>1?_len5-1:0),_key6=1;_key6<_len5;_key6++){args[_key6-1]=arguments[_key6];}return!!fn.apply(void 0,args);}catch(e){return false;}};var supportsRequestStream=isReadableStreamSupported&&test(function(){var duplexAccessed=false;var hasContentType=new Request(platform.origin,{body:new ReadableStream(),method:'POST',get duplex(){duplexAccessed=true;return'half';}}).headers.has('Content-Type');return duplexAccessed&&!hasContentType;});var DEFAULT_CHUNK_SIZE=64*1024;var supportsResponseStream=isReadableStreamSupported&&test(function(){return utils$1.isReadableStream(new Response('').body);});var resolvers={stream:supportsResponseStream&&function(res){return res.body;}};isFetchSupported&&function(res){['text','arrayBuffer','blob','formData','stream'].forEach(function(type){!resolvers[type]&&(resolvers[type]=utils$1.isFunction(res[type])?function(res){return res[type]();}:function(_,config){throw new AxiosError("Response type '".concat(type,"' is not supported"),AxiosError.ERR_NOT_SUPPORT,config);});});}(new Response());var getBodyLength=/*#__PURE__*/function(){var _ref12=_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee5(body){var _request;return _regenerator().w(function(_context6){while(1)switch(_context6.n){case 0:if(!(body==null)){_context6.n=1;break;}return _context6.a(2,0);case 1:if(!utils$1.isBlob(body)){_context6.n=2;break;}return _context6.a(2,body.size);case 2:if(!utils$1.isSpecCompliantForm(body)){_context6.n=4;break;}_request=new Request(platform.origin,{method:'POST',body:body});_context6.n=3;return _request.arrayBuffer();case 3:return _context6.a(2,_context6.v.byteLength);case 4:if(!(utils$1.isArrayBufferView(body)||utils$1.isArrayBuffer(body))){_context6.n=5;break;}return _context6.a(2,body.byteLength);case 5:if(utils$1.isURLSearchParams(body)){body=body+'';}if(!utils$1.isString(body)){_context6.n=7;break;}_context6.n=6;return encodeText(body);case 6:return _context6.a(2,_context6.v.byteLength);case 7:return _context6.a(2);}},_callee5);}));return function getBodyLength(_x5){return _ref12.apply(this,arguments);};}();var resolveBodyLength=/*#__PURE__*/function(){var _ref13=_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee6(headers,body){var length;return _regenerator().w(function(_context7){while(1)switch(_context7.n){case 0:length=utils$1.toFiniteNumber(headers.getContentLength());return _context7.a(2,length==null?getBodyLength(body):length);}},_callee6);}));return function resolveBodyLength(_x6,_x7){return _ref13.apply(this,arguments);};}();var fetchAdapter=isFetchSupported&&(/*#__PURE__*/function(){var _ref14=_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee7(config){var _resolveConfig,url,method,data,signal,cancelToken,timeout,onDownloadProgress,onUploadProgress,responseType,headers,_resolveConfig$withCr,withCredentials,fetchOptions,composedSignal,request,unsubscribe,requestContentLength,_request,contentTypeHeader,_progressEventDecorat,_progressEventDecorat2,onProgress,flush,isCredentialsSupported,response,isStreamResponse,options,responseContentLength,_ref15,_ref16,_onProgress,_flush,responseData,_t5,_t6,_t7;return _regenerator().w(function(_context8){while(1)switch(_context8.p=_context8.n){case 0:_resolveConfig=resolveConfig(config),url=_resolveConfig.url,method=_resolveConfig.method,data=_resolveConfig.data,signal=_resolveConfig.signal,cancelToken=_resolveConfig.cancelToken,timeout=_resolveConfig.timeout,onDownloadProgress=_resolveConfig.onDownloadProgress,onUploadProgress=_resolveConfig.onUploadProgress,responseType=_resolveConfig.responseType,headers=_resolveConfig.headers,_resolveConfig$withCr=_resolveConfig.withCredentials,withCredentials=_resolveConfig$withCr===void 0?'same-origin':_resolveConfig$withCr,fetchOptions=_resolveConfig.fetchOptions;responseType=responseType?(responseType+'').toLowerCase():'text';composedSignal=composeSignals$1([signal,cancelToken&&cancelToken.toAbortSignal()],timeout);unsubscribe=composedSignal&&composedSignal.unsubscribe&&function(){composedSignal.unsubscribe();};_context8.p=1;_t5=onUploadProgress&&supportsRequestStream&&method!=='get'&&method!=='head';if(!_t5){_context8.n=3;break;}_context8.n=2;return resolveBodyLength(headers,data);case 2:_t6=requestContentLength=_context8.v;_t5=_t6!==0;case 3:if(!_t5){_context8.n=4;break;}_request=new Request(url,{method:'POST',body:data,duplex:"half"});if(utils$1.isFormData(data)&&(contentTypeHeader=_request.headers.get('content-type'))){headers.setContentType(contentTypeHeader);}if(_request.body){_progressEventDecorat=progressEventDecorator(requestContentLength,progressEventReducer(asyncDecorator(onUploadProgress))),_progressEventDecorat2=_slicedToArray(_progressEventDecorat,2),onProgress=_progressEventDecorat2[0],flush=_progressEventDecorat2[1];data=trackStream(_request.body,DEFAULT_CHUNK_SIZE,onProgress,flush);}case 4:if(!utils$1.isString(withCredentials)){withCredentials=withCredentials?'include':'omit';}// Cloudflare Workers throws when credentials are defined
736
746
  // see https://github.com/cloudflare/workerd/issues/902
737
747
  isCredentialsSupported="credentials"in Request.prototype;request=new Request(url,_objectSpread(_objectSpread({},fetchOptions),{},{signal:composedSignal,method:method.toUpperCase(),headers:headers.normalize().toJSON(),body:data,duplex:"half",credentials:isCredentialsSupported?withCredentials:undefined}));_context8.n=5;return fetch(request,fetchOptions);case 5:response=_context8.v;isStreamResponse=supportsResponseStream&&(responseType==='stream'||responseType==='response');if(supportsResponseStream&&(onDownloadProgress||isStreamResponse&&unsubscribe)){options={};['status','statusText','headers'].forEach(function(prop){options[prop]=response[prop];});responseContentLength=utils$1.toFiniteNumber(response.headers.get('content-length'));_ref15=onDownloadProgress&&progressEventDecorator(responseContentLength,progressEventReducer(asyncDecorator(onDownloadProgress),true))||[],_ref16=_slicedToArray(_ref15,2),_onProgress=_ref16[0],_flush=_ref16[1];response=new Response(trackStream(response.body,DEFAULT_CHUNK_SIZE,_onProgress,function(){_flush&&_flush();unsubscribe&&unsubscribe();}),options);}responseType=responseType||'text';_context8.n=6;return resolvers[utils$1.findKey(resolvers,responseType)||'text'](response,config);case 6:responseData=_context8.v;!isStreamResponse&&unsubscribe&&unsubscribe();_context8.n=7;return new Promise(function(resolve,reject){settle(resolve,reject,{data:responseData,headers:AxiosHeaders$1.from(response.headers),status:response.status,statusText:response.statusText,config:config,request:request});});case 7:return _context8.a(2,_context8.v);case 8:_context8.p=8;_t7=_context8.v;unsubscribe&&unsubscribe();if(!(_t7&&_t7.name==='TypeError'&&/Load failed|fetch/i.test(_t7.message))){_context8.n=9;break;}throw Object.assign(new AxiosError('Network Error',AxiosError.ERR_NETWORK,config,request),{cause:_t7.cause||_t7});case 9:throw AxiosError.from(_t7,_t7&&_t7.code,config,request);case 10:return _context8.a(2);}},_callee7,null,[[1,8]]);}));return function(_x8){return _ref14.apply(this,arguments);};}());var knownAdapters={http:httpAdapter,xhr:xhrAdapter,fetch:fetchAdapter};utils$1.forEach(knownAdapters,function(fn,value){if(fn){try{Object.defineProperty(fn,'name',{value:value});}catch(e){// eslint-disable-next-line no-empty
738
748
  }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};/**
@@ -750,7 +760,7 @@ isCredentialsSupported="credentials"in Request.prototype;request=new Request(url
750
760
  */function dispatchRequest(config){throwIfCancellationRequested(config);config.headers=AxiosHeaders$1.from(config.headers);// Transform request data
751
761
  config.data=transformData.call(config,config.transformRequest);if(['post','put','patch'].indexOf(config.method)!==-1){config.headers.setContentType('application/x-www-form-urlencoded',false);}var adapter=adapters.getAdapter(config.adapter||defaults$1.adapter);return adapter(config).then(function onAdapterResolution(response){throwIfCancellationRequested(config);// Transform response data
752
762
  response.data=transformData.call(config,config.transformResponse,response);response.headers=AxiosHeaders$1.from(response.headers);return response;},function onAdapterRejection(reason){if(!isCancel(reason)){throwIfCancellationRequested(config);// Transform response data
753
- if(reason&&reason.response){reason.response.data=transformData.call(config,config.transformResponse,reason.response);reason.response.headers=AxiosHeaders$1.from(reason.response.headers);}}return Promise.reject(reason);});}var VERSION="1.10.0";var validators$1={};// eslint-disable-next-line func-names
763
+ if(reason&&reason.response){reason.response.data=transformData.call(config,config.transformResponse,reason.response);reason.response.headers=AxiosHeaders$1.from(reason.response.headers);}}return Promise.reject(reason);});}var VERSION="1.11.0";var validators$1={};// eslint-disable-next-line func-names
754
764
  ['object','boolean','number','function','string','symbol'].forEach(function(type,i){validators$1[type]=function validator(thing){return _typeof(thing)===type||'a'+(i<1?'n ':' ')+type;};});var deprecatedWarnings={};/**
755
765
  * Transitional option validator
756
766
  *
@@ -783,7 +793,7 @@ console.warn("".concat(opt," is likely a misspelling of ").concat(correctSpellin
783
793
  * @param {?Object} config
784
794
  *
785
795
  * @returns {Promise} The Promise to be fulfilled
786
- */return _createClass(Axios,[{key:"request",value:(function(){var _request2=_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee8(configOrUrl,config){var dummy,stack,_t8;return _regenerator().w(function(_context9){while(1)switch(_context9.n){case 0:_context9.p=0;_context9.n=1;return this._request(configOrUrl,config);case 1:return _context9.a(2,_context9.v);case 2:_context9.p=2;_t8=_context9.v;if(_t8 instanceof Error){dummy={};Error.captureStackTrace?Error.captureStackTrace(dummy):dummy=new Error();// slice off the Error: ... line
796
+ */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.p=_context9.n){case 0:_context9.p=0;_context9.n=1;return this._request(configOrUrl,config);case 1:return _context9.a(2,_context9.v);case 2:_context9.p=2;_t8=_context9.v;if(_t8 instanceof Error){dummy={};Error.captureStackTrace?Error.captureStackTrace(dummy):dummy=new Error();// slice off the Error: ... line
787
797
  stack=dummy.stack?dummy.stack.replace(/^.+\n/,''):'';try{if(!_t8.stack){_t8.stack=stack;// match without the 2 top stack lines
788
798
  }else if(stack&&!String(_t8.stack).endsWith(stack.replace(/^.+\n.+\n/,''))){_t8.stack+='\n'+stack;}}catch(e){// ignore the case where "stack" is an un-writable property
789
799
  }}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
@@ -898,7 +908,7 @@ if(env)this.environment=env;else this.environment=this.host?this.host:'mypureclo
898
908
  this.environment=this.environment.replace(/\/+$/,'');// Strip protocol and subdomain
899
909
  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];}}}]);}();/**
900
910
  * @module purecloud-platform-client-v2/ApiClient
901
- * @version 226.0.0
911
+ * @version 228.0.0
902
912
  */var ApiClient=/*#__PURE__*/function(){/**
903
913
  * Manages low level client-server communications, parameter marshalling, etc. There should not be any need for an
904
914
  * application to use this class directly - the *Api and model classes provide the public API for the service. The
@@ -1241,7 +1251,7 @@ resolve(data);})["catch"](function(error){var data=error;if(error.response&&erro
1241
1251
  that.config.logger.log('error',error.response.status,httpMethod,url,request.headers,error.response.headers,bodyParam,error.response.data);data=that.returnExtended===true?{status:error.response.status,statusText:error.response.statusText,headers:error.response.headers,body:error.response.data,text:error.response.text,error:error}:error.response.data?error.response.data:error.response.text;}reject(data);});}});}}]);}();var AIStudioApi=/*#__PURE__*/function(){/**
1242
1252
  * AIStudio service.
1243
1253
  * @module purecloud-platform-client-v2/api/AIStudioApi
1244
- * @version 226.0.0
1254
+ * @version 228.0.0
1245
1255
  *//**
1246
1256
  * Constructs a new AIStudioApi.
1247
1257
  * @alias module:purecloud-platform-client-v2/api/AIStudioApi
@@ -1305,6 +1315,14 @@ if(jobId===undefined||jobId===null||jobId===''){throw'Missing the required param
1305
1315
  * getGuidesJob is a preview method and is subject to both breaking and non-breaking changes at any time without notice
1306
1316
  */},{key:"getGuidesJob",value:function getGuidesJob(jobId){// verify the required parameter 'jobId' is set
1307
1317
  if(jobId===undefined||jobId===null||jobId===''){throw'Missing the required parameter "jobId" when calling getGuidesJob';}return this.apiClient.callApi('/api/v2/guides/jobs/{jobId}','GET',{'jobId':jobId},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
1318
+ * Update a guide.
1319
+ *
1320
+ * @param {String} guideId Guide ID
1321
+ * @param {Object} body
1322
+ * patchGuide is a preview method and is subject to both breaking and non-breaking changes at any time without notice
1323
+ */},{key:"patchGuide",value:function patchGuide(guideId,body){// verify the required parameter 'guideId' is set
1324
+ if(guideId===undefined||guideId===null||guideId===''){throw'Missing the required parameter "guideId" when calling patchGuide';}// verify the required parameter 'body' is set
1325
+ if(body===undefined||body===null){throw'Missing the required parameter "body" when calling patchGuide';}return this.apiClient.callApi('/api/v2/guides/{guideId}','PATCH',{'guideId':guideId},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}/**
1308
1326
  * Update a guide version.
1309
1327
  *
1310
1328
  * @param {String} guideId Guide ID
@@ -1347,7 +1365,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
1347
1365
  if(body===undefined||body===null){throw'Missing the required parameter "body" when calling postGuidesJobs';}return this.apiClient.callApi('/api/v2/guides/jobs','POST',{},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}}]);}();var AgentAssistantsApi=/*#__PURE__*/function(){/**
1348
1366
  * AgentAssistants service.
1349
1367
  * @module purecloud-platform-client-v2/api/AgentAssistantsApi
1350
- * @version 226.0.0
1368
+ * @version 228.0.0
1351
1369
  *//**
1352
1370
  * Constructs a new AgentAssistantsApi.
1353
1371
  * @alias module:purecloud-platform-client-v2/api/AgentAssistantsApi
@@ -1449,7 +1467,7 @@ if(queueId===undefined||queueId===null||queueId===''){throw'Missing the required
1449
1467
  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(){/**
1450
1468
  * AgentCopilot service.
1451
1469
  * @module purecloud-platform-client-v2/api/AgentCopilotApi
1452
- * @version 226.0.0
1470
+ * @version 228.0.0
1453
1471
  *//**
1454
1472
  * Constructs a new AgentCopilotApi.
1455
1473
  * @alias module:purecloud-platform-client-v2/api/AgentCopilotApi
@@ -1471,7 +1489,7 @@ if(assistantId===undefined||assistantId===null||assistantId===''){throw'Missing
1471
1489
  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(){/**
1472
1490
  * AgentUI service.
1473
1491
  * @module purecloud-platform-client-v2/api/AgentUIApi
1474
- * @version 226.0.0
1492
+ * @version 228.0.0
1475
1493
  *//**
1476
1494
  * Constructs a new AgentUIApi.
1477
1495
  * @alias module:purecloud-platform-client-v2/api/AgentUIApi
@@ -1505,7 +1523,7 @@ if(agentId===undefined||agentId===null||agentId===''){throw'Missing the required
1505
1523
  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(){/**
1506
1524
  * Alerting service.
1507
1525
  * @module purecloud-platform-client-v2/api/AlertingApi
1508
- * @version 226.0.0
1526
+ * @version 228.0.0
1509
1527
  *//**
1510
1528
  * Constructs a new AlertingApi.
1511
1529
  * @alias module:purecloud-platform-client-v2/api/AlertingApi
@@ -1594,7 +1612,7 @@ if(ruleId===undefined||ruleId===null||ruleId===''){throw'Missing the required pa
1594
1612
  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(){/**
1595
1613
  * Analytics service.
1596
1614
  * @module purecloud-platform-client-v2/api/AnalyticsApi
1597
- * @version 226.0.0
1615
+ * @version 228.0.0
1598
1616
  *//**
1599
1617
  * Constructs a new AnalyticsApi.
1600
1618
  * @alias module:purecloud-platform-client-v2/api/AnalyticsApi
@@ -1602,11 +1620,101 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
1602
1620
  * @param {module:purecloud-platform-client-v2/ApiClient} apiClient Optional API client implementation to use,
1603
1621
  * default to {@link module:purecloud-platform-client-v2/ApiClient#instance} if unspecified.
1604
1622
  */function AnalyticsApi(apiClient){_classCallCheck(this,AnalyticsApi);this.apiClient=apiClient||ApiClient.instance;}/**
1623
+ * Delete/cancel an async request for action aggregates
1624
+ *
1625
+ * @param {String} jobId jobId
1626
+ * deleteAnalyticsActionsAggregatesJob is a preview method and is subject to both breaking and non-breaking changes at any time without notice
1627
+ */return _createClass(AnalyticsApi,[{key:"deleteAnalyticsActionsAggregatesJob",value:function deleteAnalyticsActionsAggregatesJob(jobId){// verify the required parameter 'jobId' is set
1628
+ if(jobId===undefined||jobId===null||jobId===''){throw'Missing the required parameter "jobId" when calling deleteAnalyticsActionsAggregatesJob';}return this.apiClient.callApi('/api/v2/analytics/actions/aggregates/jobs/{jobId}','DELETE',{'jobId':jobId},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
1629
+ * Delete/cancel an async request for agent copilot aggregates
1630
+ *
1631
+ * @param {String} jobId jobId
1632
+ * deleteAnalyticsAgentcopilotsAggregatesJob is a preview method and is subject to both breaking and non-breaking changes at any time without notice
1633
+ */},{key:"deleteAnalyticsAgentcopilotsAggregatesJob",value:function deleteAnalyticsAgentcopilotsAggregatesJob(jobId){// verify the required parameter 'jobId' is set
1634
+ if(jobId===undefined||jobId===null||jobId===''){throw'Missing the required parameter "jobId" when calling deleteAnalyticsAgentcopilotsAggregatesJob';}return this.apiClient.callApi('/api/v2/analytics/agentcopilots/aggregates/jobs/{jobId}','DELETE',{'jobId':jobId},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
1635
+ * Delete/cancel an async request for bot aggregates
1636
+ *
1637
+ * @param {String} jobId jobId
1638
+ * deleteAnalyticsBotsAggregatesJob is a preview method and is subject to both breaking and non-breaking changes at any time without notice
1639
+ */},{key:"deleteAnalyticsBotsAggregatesJob",value:function deleteAnalyticsBotsAggregatesJob(jobId){// verify the required parameter 'jobId' is set
1640
+ if(jobId===undefined||jobId===null||jobId===''){throw'Missing the required parameter "jobId" when calling deleteAnalyticsBotsAggregatesJob';}return this.apiClient.callApi('/api/v2/analytics/bots/aggregates/jobs/{jobId}','DELETE',{'jobId':jobId},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
1641
+ * Delete/cancel an async request for conversation aggregates
1642
+ *
1643
+ * @param {String} jobId jobId
1644
+ * deleteAnalyticsConversationsAggregatesJob is a preview method and is subject to both breaking and non-breaking changes at any time without notice
1645
+ */},{key:"deleteAnalyticsConversationsAggregatesJob",value:function deleteAnalyticsConversationsAggregatesJob(jobId){// verify the required parameter 'jobId' is set
1646
+ if(jobId===undefined||jobId===null||jobId===''){throw'Missing the required parameter "jobId" when calling deleteAnalyticsConversationsAggregatesJob';}return this.apiClient.callApi('/api/v2/analytics/conversations/aggregates/jobs/{jobId}','DELETE',{'jobId':jobId},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
1605
1647
  * Delete/cancel an async details job
1606
1648
  *
1607
1649
  * @param {String} jobId jobId
1608
- */return _createClass(AnalyticsApi,[{key:"deleteAnalyticsConversationsDetailsJob",value:function deleteAnalyticsConversationsDetailsJob(jobId){// verify the required parameter 'jobId' is set
1650
+ */},{key:"deleteAnalyticsConversationsDetailsJob",value:function deleteAnalyticsConversationsDetailsJob(jobId){// verify the required parameter 'jobId' is set
1609
1651
  if(jobId===undefined||jobId===null||jobId===''){throw'Missing the required parameter "jobId" when calling deleteAnalyticsConversationsDetailsJob';}return this.apiClient.callApi('/api/v2/analytics/conversations/details/jobs/{jobId}','DELETE',{'jobId':jobId},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
1652
+ * Delete/cancel an async request for evaluation aggregates
1653
+ *
1654
+ * @param {String} jobId jobId
1655
+ * deleteAnalyticsEvaluationsAggregatesJob is a preview method and is subject to both breaking and non-breaking changes at any time without notice
1656
+ */},{key:"deleteAnalyticsEvaluationsAggregatesJob",value:function deleteAnalyticsEvaluationsAggregatesJob(jobId){// verify the required parameter 'jobId' is set
1657
+ if(jobId===undefined||jobId===null||jobId===''){throw'Missing the required parameter "jobId" when calling deleteAnalyticsEvaluationsAggregatesJob';}return this.apiClient.callApi('/api/v2/analytics/evaluations/aggregates/jobs/{jobId}','DELETE',{'jobId':jobId},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
1658
+ * Delete/cancel an async request for flow execution aggregates
1659
+ *
1660
+ * @param {String} jobId jobId
1661
+ * deleteAnalyticsFlowexecutionsAggregatesJob is a preview method and is subject to both breaking and non-breaking changes at any time without notice
1662
+ */},{key:"deleteAnalyticsFlowexecutionsAggregatesJob",value:function deleteAnalyticsFlowexecutionsAggregatesJob(jobId){// verify the required parameter 'jobId' is set
1663
+ if(jobId===undefined||jobId===null||jobId===''){throw'Missing the required parameter "jobId" when calling deleteAnalyticsFlowexecutionsAggregatesJob';}return this.apiClient.callApi('/api/v2/analytics/flowexecutions/aggregates/jobs/{jobId}','DELETE',{'jobId':jobId},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
1664
+ * Delete/cancel an async request for flow aggregates
1665
+ *
1666
+ * @param {String} jobId jobId
1667
+ * deleteAnalyticsFlowsAggregatesJob is a preview method and is subject to both breaking and non-breaking changes at any time without notice
1668
+ */},{key:"deleteAnalyticsFlowsAggregatesJob",value:function deleteAnalyticsFlowsAggregatesJob(jobId){// verify the required parameter 'jobId' is set
1669
+ if(jobId===undefined||jobId===null||jobId===''){throw'Missing the required parameter "jobId" when calling deleteAnalyticsFlowsAggregatesJob';}return this.apiClient.callApi('/api/v2/analytics/flows/aggregates/jobs/{jobId}','DELETE',{'jobId':jobId},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
1670
+ * Delete/cancel an async request for journey aggregates
1671
+ *
1672
+ * @param {String} jobId jobId
1673
+ * deleteAnalyticsJourneysAggregatesJob is a preview method and is subject to both breaking and non-breaking changes at any time without notice
1674
+ */},{key:"deleteAnalyticsJourneysAggregatesJob",value:function deleteAnalyticsJourneysAggregatesJob(jobId){// verify the required parameter 'jobId' is set
1675
+ if(jobId===undefined||jobId===null||jobId===''){throw'Missing the required parameter "jobId" when calling deleteAnalyticsJourneysAggregatesJob';}return this.apiClient.callApi('/api/v2/analytics/journeys/aggregates/jobs/{jobId}','DELETE',{'jobId':jobId},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
1676
+ * Delete/cancel an async request for knowledge aggregates
1677
+ *
1678
+ * @param {String} jobId jobId
1679
+ * deleteAnalyticsKnowledgeAggregatesJob is a preview method and is subject to both breaking and non-breaking changes at any time without notice
1680
+ */},{key:"deleteAnalyticsKnowledgeAggregatesJob",value:function deleteAnalyticsKnowledgeAggregatesJob(jobId){// verify the required parameter 'jobId' is set
1681
+ if(jobId===undefined||jobId===null||jobId===''){throw'Missing the required parameter "jobId" when calling deleteAnalyticsKnowledgeAggregatesJob';}return this.apiClient.callApi('/api/v2/analytics/knowledge/aggregates/jobs/{jobId}','DELETE',{'jobId':jobId},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
1682
+ * Delete/cancel an async request for resolution aggregates
1683
+ *
1684
+ * @param {String} jobId jobId
1685
+ * deleteAnalyticsResolutionsAggregatesJob is a preview method and is subject to both breaking and non-breaking changes at any time without notice
1686
+ */},{key:"deleteAnalyticsResolutionsAggregatesJob",value:function deleteAnalyticsResolutionsAggregatesJob(jobId){// verify the required parameter 'jobId' is set
1687
+ if(jobId===undefined||jobId===null||jobId===''){throw'Missing the required parameter "jobId" when calling deleteAnalyticsResolutionsAggregatesJob';}return this.apiClient.callApi('/api/v2/analytics/resolutions/aggregates/jobs/{jobId}','DELETE',{'jobId':jobId},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
1688
+ * Delete/cancel an async request for summary aggregates
1689
+ *
1690
+ * @param {String} jobId jobId
1691
+ * deleteAnalyticsSummariesAggregatesJob is a preview method and is subject to both breaking and non-breaking changes at any time without notice
1692
+ */},{key:"deleteAnalyticsSummariesAggregatesJob",value:function deleteAnalyticsSummariesAggregatesJob(jobId){// verify the required parameter 'jobId' is set
1693
+ if(jobId===undefined||jobId===null||jobId===''){throw'Missing the required parameter "jobId" when calling deleteAnalyticsSummariesAggregatesJob';}return this.apiClient.callApi('/api/v2/analytics/summaries/aggregates/jobs/{jobId}','DELETE',{'jobId':jobId},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
1694
+ * Delete/cancel an async request for survey aggregates
1695
+ *
1696
+ * @param {String} jobId jobId
1697
+ * deleteAnalyticsSurveysAggregatesJob is a preview method and is subject to both breaking and non-breaking changes at any time without notice
1698
+ */},{key:"deleteAnalyticsSurveysAggregatesJob",value:function deleteAnalyticsSurveysAggregatesJob(jobId){// verify the required parameter 'jobId' is set
1699
+ if(jobId===undefined||jobId===null||jobId===''){throw'Missing the required parameter "jobId" when calling deleteAnalyticsSurveysAggregatesJob';}return this.apiClient.callApi('/api/v2/analytics/surveys/aggregates/jobs/{jobId}','DELETE',{'jobId':jobId},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
1700
+ * Delete/cancel an async request for task management aggregates
1701
+ *
1702
+ * @param {String} jobId jobId
1703
+ * deleteAnalyticsTaskmanagementAggregatesJob is a preview method and is subject to both breaking and non-breaking changes at any time without notice
1704
+ */},{key:"deleteAnalyticsTaskmanagementAggregatesJob",value:function deleteAnalyticsTaskmanagementAggregatesJob(jobId){// verify the required parameter 'jobId' is set
1705
+ if(jobId===undefined||jobId===null||jobId===''){throw'Missing the required parameter "jobId" when calling deleteAnalyticsTaskmanagementAggregatesJob';}return this.apiClient.callApi('/api/v2/analytics/taskmanagement/aggregates/jobs/{jobId}','DELETE',{'jobId':jobId},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
1706
+ * Delete/cancel an async request for transcript aggregates
1707
+ *
1708
+ * @param {String} jobId jobId
1709
+ * deleteAnalyticsTranscriptsAggregatesJob is a preview method and is subject to both breaking and non-breaking changes at any time without notice
1710
+ */},{key:"deleteAnalyticsTranscriptsAggregatesJob",value:function deleteAnalyticsTranscriptsAggregatesJob(jobId){// verify the required parameter 'jobId' is set
1711
+ if(jobId===undefined||jobId===null||jobId===''){throw'Missing the required parameter "jobId" when calling deleteAnalyticsTranscriptsAggregatesJob';}return this.apiClient.callApi('/api/v2/analytics/transcripts/aggregates/jobs/{jobId}','DELETE',{'jobId':jobId},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
1712
+ * Delete/cancel an async request for user aggregates
1713
+ *
1714
+ * @param {String} jobId jobId
1715
+ * deleteAnalyticsUsersAggregatesJob is a preview method and is subject to both breaking and non-breaking changes at any time without notice
1716
+ */},{key:"deleteAnalyticsUsersAggregatesJob",value:function deleteAnalyticsUsersAggregatesJob(jobId){// verify the required parameter 'jobId' is set
1717
+ if(jobId===undefined||jobId===null||jobId===''){throw'Missing the required parameter "jobId" when calling deleteAnalyticsUsersAggregatesJob';}return this.apiClient.callApi('/api/v2/analytics/users/aggregates/jobs/{jobId}','DELETE',{'jobId':jobId},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
1610
1718
  * Delete/cancel an async request
1611
1719
  *
1612
1720
  * @param {String} jobId jobId
@@ -2047,11 +2155,6 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
2047
2155
  * @param {Object} body query
2048
2156
  */},{key:"postAnalyticsConversationsDetailsQuery",value:function postAnalyticsConversationsDetailsQuery(body){// verify the required parameter 'body' is set
2049
2157
  if(body===undefined||body===null){throw'Missing the required parameter "body" when calling postAnalyticsConversationsDetailsQuery';}return this.apiClient.callApi('/api/v2/analytics/conversations/details/query','POST',{},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}/**
2050
- * Search resources.
2051
- *
2052
- * @param {Object} body Search request options
2053
- */},{key:"postAnalyticsConversationsTranscriptsQuery",value:function postAnalyticsConversationsTranscriptsQuery(body){// verify the required parameter 'body' is set
2054
- if(body===undefined||body===null){throw'Missing the required parameter "body" when calling postAnalyticsConversationsTranscriptsQuery';}return this.apiClient.callApi('/api/v2/analytics/conversations/transcripts/query','POST',{},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}/**
2055
2158
  * Query for evaluation aggregates asynchronously
2056
2159
  *
2057
2160
  * @param {Object} body query
@@ -2262,7 +2365,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
2262
2365
  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(){/**
2263
2366
  * Architect service.
2264
2367
  * @module purecloud-platform-client-v2/api/ArchitectApi
2265
- * @version 226.0.0
2368
+ * @version 228.0.0
2266
2369
  *//**
2267
2370
  * Constructs a new ArchitectApi.
2268
2371
  * @alias module:purecloud-platform-client-v2/api/ArchitectApi
@@ -3396,7 +3499,7 @@ if(milestoneId===undefined||milestoneId===null||milestoneId===''){throw'Missing
3396
3499
  if(flowOutcomeId===undefined||flowOutcomeId===null||flowOutcomeId===''){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(){/**
3397
3500
  * Audit service.
3398
3501
  * @module purecloud-platform-client-v2/api/AuditApi
3399
- * @version 226.0.0
3502
+ * @version 228.0.0
3400
3503
  *//**
3401
3504
  * Constructs a new AuditApi.
3402
3505
  * @alias module:purecloud-platform-client-v2/api/AuditApi
@@ -3446,7 +3549,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
3446
3549
  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(){/**
3447
3550
  * Authorization service.
3448
3551
  * @module purecloud-platform-client-v2/api/AuthorizationApi
3449
- * @version 226.0.0
3552
+ * @version 228.0.0
3450
3553
  *//**
3451
3554
  * Constructs a new AuthorizationApi.
3452
3555
  * @alias module:purecloud-platform-client-v2/api/AuthorizationApi
@@ -3881,7 +3984,7 @@ if(subjectId===undefined||subjectId===null||subjectId===''){throw'Missing the re
3881
3984
  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(){/**
3882
3985
  * Billing service.
3883
3986
  * @module purecloud-platform-client-v2/api/BillingApi
3884
- * @version 226.0.0
3987
+ * @version 228.0.0
3885
3988
  *//**
3886
3989
  * Constructs a new BillingApi.
3887
3990
  * @alias module:purecloud-platform-client-v2/api/BillingApi
@@ -3958,7 +4061,7 @@ if(endDate===undefined||endDate===null){throw'Missing the required parameter "en
3958
4061
  if(trustorOrgId===undefined||trustorOrgId===null||trustorOrgId===''){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(){/**
3959
4062
  * BusinessRules service.
3960
4063
  * @module purecloud-platform-client-v2/api/BusinessRulesApi
3961
- * @version 226.0.0
4064
+ * @version 228.0.0
3962
4065
  *//**
3963
4066
  * Constructs a new BusinessRulesApi.
3964
4067
  * @alias module:purecloud-platform-client-v2/api/BusinessRulesApi
@@ -4039,18 +4142,18 @@ if(tableVersion===undefined||tableVersion===null){throw'Missing the required par
4039
4142
  * @param {Object} opts Optional parameters
4040
4143
  * @param {String} opts.after The cursor that points to the end of the set of entities that has been returned.
4041
4144
  * @param {String} opts.pageSize Number of entities to return. Maximum of 100.
4042
- * @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.
4043
4145
  * getBusinessrulesDecisiontableVersions is a preview method and is subject to both breaking and non-breaking changes at any time without notice
4044
4146
  */},{key:"getBusinessrulesDecisiontableVersions",value:function getBusinessrulesDecisiontableVersions(tableId,opts){opts=opts||{};// verify the required parameter 'tableId' is set
4045
- if(tableId===undefined||tableId===null||tableId===''){throw'Missing the required parameter "tableId" when calling getBusinessrulesDecisiontableVersions';}return this.apiClient.callApi('/api/v2/businessrules/decisiontables/{tableId}/versions','GET',{'tableId':tableId},{'after':opts['after'],'pageSize':opts['pageSize'],'divisionIds':this.apiClient.buildCollectionParam(opts['divisionIds'],'multi')},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
4147
+ if(tableId===undefined||tableId===null||tableId===''){throw'Missing the required parameter "tableId" when calling getBusinessrulesDecisiontableVersions';}return this.apiClient.callApi('/api/v2/businessrules/decisiontables/{tableId}/versions','GET',{'tableId':tableId},{'after':opts['after'],'pageSize':opts['pageSize']},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
4046
4148
  * Get a list of decision tables.
4047
4149
  *
4048
4150
  * @param {Object} opts Optional parameters
4049
4151
  * @param {String} opts.after The cursor that points to the end of the set of entities that has been returned.
4050
4152
  * @param {String} opts.pageSize Number of entities to return. Maximum of 100.
4051
4153
  * @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.
4154
+ * @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.
4052
4155
  * getBusinessrulesDecisiontables is a preview method and is subject to both breaking and non-breaking changes at any time without notice
4053
- */},{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']);}/**
4156
+ */},{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'),'name':opts['name']},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
4054
4157
  * Search for decision tables.
4055
4158
  *
4056
4159
  * @param {Object} opts Optional parameters
@@ -4101,19 +4204,6 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
4101
4204
  if(tableId===undefined||tableId===null||tableId===''){throw'Missing the required parameter "tableId" when calling patchBusinessrulesDecisiontableVersion';}// verify the required parameter 'tableVersion' is set
4102
4205
  if(tableVersion===undefined||tableVersion===null){throw'Missing the required parameter "tableVersion" when calling patchBusinessrulesDecisiontableVersion';}// verify the required parameter 'body' is set
4103
4206
  if(body===undefined||body===null){throw'Missing the required parameter "body" when calling patchBusinessrulesDecisiontableVersion';}return this.apiClient.callApi('/api/v2/businessrules/decisiontables/{tableId}/versions/{tableVersion}','PATCH',{'tableId':tableId,'tableVersion':tableVersion},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}/**
4104
- * Partially update a decision table row. Will be deprecated, we should use PUT request.
4105
- *
4106
- * @param {String} tableId Table ID
4107
- * @param {Number} tableVersion Table Version
4108
- * @param {String} rowId Row ID
4109
- * @param {Object} body Partially update decision table row request
4110
- * @deprecated
4111
- * patchBusinessrulesDecisiontableVersionRow is a preview method and is subject to both breaking and non-breaking changes at any time without notice
4112
- */},{key:"patchBusinessrulesDecisiontableVersionRow",value:function patchBusinessrulesDecisiontableVersionRow(tableId,tableVersion,rowId,body){// verify the required parameter 'tableId' is set
4113
- if(tableId===undefined||tableId===null||tableId===''){throw'Missing the required parameter "tableId" when calling patchBusinessrulesDecisiontableVersionRow';}// verify the required parameter 'tableVersion' is set
4114
- if(tableVersion===undefined||tableVersion===null){throw'Missing the required parameter "tableVersion" when calling patchBusinessrulesDecisiontableVersionRow';}// verify the required parameter 'rowId' is set
4115
- if(rowId===undefined||rowId===null||rowId===''){throw'Missing the required parameter "rowId" when calling patchBusinessrulesDecisiontableVersionRow';}// verify the required parameter 'body' is set
4116
- if(body===undefined||body===null){throw'Missing the required parameter "body" when calling patchBusinessrulesDecisiontableVersionRow';}return this.apiClient.callApi('/api/v2/businessrules/decisiontables/{tableId}/versions/{tableVersion}/rows/{rowId}','PATCH',{'tableId':tableId,'tableVersion':tableVersion,'rowId':rowId},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}/**
4117
4207
  * Execute a published decision table
4118
4208
  *
4119
4209
  * @param {String} tableId Table ID
@@ -4221,7 +4311,7 @@ if(schemaId===undefined||schemaId===null||schemaId===''){throw'Missing the requi
4221
4311
  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(){/**
4222
4312
  * CarrierServices service.
4223
4313
  * @module purecloud-platform-client-v2/api/CarrierServicesApi
4224
- * @version 226.0.0
4314
+ * @version 228.0.0
4225
4315
  *//**
4226
4316
  * Constructs a new CarrierServicesApi.
4227
4317
  * @alias module:purecloud-platform-client-v2/api/CarrierServicesApi
@@ -4241,7 +4331,7 @@ if(phoneNumber===undefined||phoneNumber===null){throw'Missing the required param
4241
4331
  */},{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(){/**
4242
4332
  * Chat service.
4243
4333
  * @module purecloud-platform-client-v2/api/ChatApi
4244
- * @version 226.0.0
4334
+ * @version 228.0.0
4245
4335
  *//**
4246
4336
  * Constructs a new ChatApi.
4247
4337
  * @alias module:purecloud-platform-client-v2/api/ChatApi
@@ -4284,6 +4374,9 @@ if(messageId===undefined||messageId===null||messageId===''){throw'Missing the re
4284
4374
  */},{key:"deleteChatsUserMessagesPin",value:function deleteChatsUserMessagesPin(userId,pinnedMessageId){// verify the required parameter 'userId' is set
4285
4375
  if(userId===undefined||userId===null||userId===''){throw'Missing the required parameter "userId" when calling deleteChatsUserMessagesPin';}// verify the required parameter 'pinnedMessageId' is set
4286
4376
  if(pinnedMessageId===undefined||pinnedMessageId===null||pinnedMessageId===''){throw'Missing the required parameter "pinnedMessageId" when calling deleteChatsUserMessagesPin';}return this.apiClient.callApi('/api/v2/chats/users/{userId}/messages/pins/{pinnedMessageId}','DELETE',{'userId':userId,'pinnedMessageId':pinnedMessageId},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
4377
+ * Delete a user's chat settings
4378
+ *
4379
+ */},{key:"deleteChatsUsersMeSettings",value:function deleteChatsUsersMeSettings(){return this.apiClient.callApi('/api/v2/chats/users/me/settings','DELETE',{},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
4287
4380
  * Get a message
4288
4381
  *
4289
4382
  * @param {String} messageId messageId
@@ -4308,8 +4401,9 @@ if(messageIds===undefined||messageIds===null||messageIds===''){throw'Missing the
4308
4401
  * @param {String} opts.limit The maximum number of messages to retrieve
4309
4402
  * @param {String} opts.before The cutoff date for messages to retrieve
4310
4403
  * @param {String} opts.after The beginning date for messages to retrieve
4404
+ * @param {Boolean} opts.excludeMetadata Whether to exclude metadata for messages
4311
4405
  */},{key:"getChatsRoomMessages",value:function getChatsRoomMessages(roomJid,opts){opts=opts||{};// verify the required parameter 'roomJid' is set
4312
- if(roomJid===undefined||roomJid===null||roomJid===''){throw'Missing the required parameter "roomJid" when calling getChatsRoomMessages';}return this.apiClient.callApi('/api/v2/chats/rooms/{roomJid}/messages','GET',{'roomJid':roomJid},{'limit':opts['limit'],'before':opts['before'],'after':opts['after']},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
4406
+ if(roomJid===undefined||roomJid===null||roomJid===''){throw'Missing the required parameter "roomJid" when calling getChatsRoomMessages';}return this.apiClient.callApi('/api/v2/chats/rooms/{roomJid}/messages','GET',{'roomJid':roomJid},{'limit':opts['limit'],'before':opts['before'],'after':opts['after'],'excludeMetadata':opts['excludeMetadata']},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
4313
4407
  * Get a room participant
4314
4408
  *
4315
4409
  * @param {String} roomJid roomJid
@@ -4334,8 +4428,9 @@ if(roomJid===undefined||roomJid===null||roomJid===''){throw'Missing the required
4334
4428
  * @param {String} opts.limit The maximum number of messages to retrieve
4335
4429
  * @param {String} opts.before The cutoff date for messages to retrieve
4336
4430
  * @param {String} opts.after The beginning date for messages to retrieve
4431
+ * @param {Boolean} opts.excludeMetadata Whether to exclude metadata for messages
4337
4432
  */},{key:"getChatsThreadMessages",value:function getChatsThreadMessages(threadId,opts){opts=opts||{};// verify the required parameter 'threadId' is set
4338
- if(threadId===undefined||threadId===null||threadId===''){throw'Missing the required parameter "threadId" when calling getChatsThreadMessages';}return this.apiClient.callApi('/api/v2/chats/threads/{threadId}/messages','GET',{'threadId':threadId},{'limit':opts['limit'],'before':opts['before'],'after':opts['after']},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
4433
+ if(threadId===undefined||threadId===null||threadId===''){throw'Missing the required parameter "threadId" when calling getChatsThreadMessages';}return this.apiClient.callApi('/api/v2/chats/threads/{threadId}/messages','GET',{'threadId':threadId},{'limit':opts['limit'],'before':opts['before'],'after':opts['after'],'excludeMetadata':opts['excludeMetadata']},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
4339
4434
  * Get information for a 1on1
4340
4435
  *
4341
4436
  * @param {String} userId userId
@@ -4355,8 +4450,9 @@ if(messageIds===undefined||messageIds===null||messageIds===''){throw'Missing the
4355
4450
  * @param {String} opts.limit The maximum number of messages to retrieve
4356
4451
  * @param {String} opts.before The cutoff date for messages to retrieve
4357
4452
  * @param {String} opts.after The beginning date for messages to retrieve
4453
+ * @param {Boolean} opts.excludeMetadata Whether to exclude metadata for messages
4358
4454
  */},{key:"getChatsUserMessages",value:function getChatsUserMessages(userId,opts){opts=opts||{};// verify the required parameter 'userId' is set
4359
- if(userId===undefined||userId===null||userId===''){throw'Missing the required parameter "userId" when calling getChatsUserMessages';}return this.apiClient.callApi('/api/v2/chats/users/{userId}/messages','GET',{'userId':userId},{'limit':opts['limit'],'before':opts['before'],'after':opts['after']},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
4455
+ if(userId===undefined||userId===null||userId===''){throw'Missing the required parameter "userId" when calling getChatsUserMessages';}return this.apiClient.callApi('/api/v2/chats/users/{userId}/messages','GET',{'userId':userId},{'limit':opts['limit'],'before':opts['before'],'after':opts['after'],'excludeMetadata':opts['excludeMetadata']},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
4360
4456
  * Get a user's chat settings
4361
4457
  *
4362
4458
  * @param {String} userId User ID
@@ -4447,6 +4543,11 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
4447
4543
  */},{key:"postChatsUserMessagesPins",value:function postChatsUserMessagesPins(userId,body){// verify the required parameter 'userId' is set
4448
4544
  if(userId===undefined||userId===null||userId===''){throw'Missing the required parameter "userId" when calling postChatsUserMessagesPins';}// verify the required parameter 'body' is set
4449
4545
  if(body===undefined||body===null){throw'Missing the required parameter "body" when calling postChatsUserMessagesPins';}return this.apiClient.callApi('/api/v2/chats/users/{userId}/messages/pins','POST',{'userId':userId},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}/**
4546
+ * Create a user's chat settings
4547
+ *
4548
+ * @param {Object} body
4549
+ */},{key:"postChatsUsersMeSettings",value:function postChatsUsersMeSettings(body){// verify the required parameter 'body' is set
4550
+ if(body===undefined||body===null){throw'Missing the required parameter "body" when calling postChatsUsersMeSettings';}return this.apiClient.callApi('/api/v2/chats/users/me/settings','POST',{},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}/**
4450
4551
  * Update reactions to a message
4451
4552
  *
4452
4553
  * @param {String} messageId messageId
@@ -4461,7 +4562,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
4461
4562
  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(){/**
4462
4563
  * Coaching service.
4463
4564
  * @module purecloud-platform-client-v2/api/CoachingApi
4464
- * @version 226.0.0
4565
+ * @version 228.0.0
4465
4566
  *//**
4466
4567
  * Constructs a new CoachingApi.
4467
4568
  * @alias module:purecloud-platform-client-v2/api/CoachingApi
@@ -4614,7 +4715,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
4614
4715
  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(){/**
4615
4716
  * ContentManagement service.
4616
4717
  * @module purecloud-platform-client-v2/api/ContentManagementApi
4617
- * @version 226.0.0
4718
+ * @version 228.0.0
4618
4719
  *//**
4619
4720
  * Constructs a new ContentManagementApi.
4620
4721
  * @alias module:purecloud-platform-client-v2/api/ContentManagementApi
@@ -4896,7 +4997,7 @@ if(tagId===undefined||tagId===null||tagId===''){throw'Missing the required param
4896
4997
  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(){/**
4897
4998
  * Conversations service.
4898
4999
  * @module purecloud-platform-client-v2/api/ConversationsApi
4899
- * @version 226.0.0
5000
+ * @version 228.0.0
4900
5001
  *//**
4901
5002
  * Constructs a new ConversationsApi.
4902
5003
  * @alias module:purecloud-platform-client-v2/api/ConversationsApi
@@ -4904,10 +5005,16 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
4904
5005
  * @param {module:purecloud-platform-client-v2/ApiClient} apiClient Optional API client implementation to use,
4905
5006
  * default to {@link module:purecloud-platform-client-v2/ApiClient#instance} if unspecified.
4906
5007
  */function ConversationsApi(apiClient){_classCallCheck(this,ConversationsApi);this.apiClient=apiClient||ApiClient.instance;}/**
5008
+ * Delete/cancel an async request for conversation aggregates
5009
+ *
5010
+ * @param {String} jobId jobId
5011
+ * deleteAnalyticsConversationsAggregatesJob is a preview method and is subject to both breaking and non-breaking changes at any time without notice
5012
+ */return _createClass(ConversationsApi,[{key:"deleteAnalyticsConversationsAggregatesJob",value:function deleteAnalyticsConversationsAggregatesJob(jobId){// verify the required parameter 'jobId' is set
5013
+ if(jobId===undefined||jobId===null||jobId===''){throw'Missing the required parameter "jobId" when calling deleteAnalyticsConversationsAggregatesJob';}return this.apiClient.callApi('/api/v2/analytics/conversations/aggregates/jobs/{jobId}','DELETE',{'jobId':jobId},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
4907
5014
  * Delete/cancel an async details job
4908
5015
  *
4909
5016
  * @param {String} jobId jobId
4910
- */return _createClass(ConversationsApi,[{key:"deleteAnalyticsConversationsDetailsJob",value:function deleteAnalyticsConversationsDetailsJob(jobId){// verify the required parameter 'jobId' is set
5017
+ */},{key:"deleteAnalyticsConversationsDetailsJob",value:function deleteAnalyticsConversationsDetailsJob(jobId){// verify the required parameter 'jobId' is set
4911
5018
  if(jobId===undefined||jobId===null||jobId===''){throw'Missing the required parameter "jobId" when calling deleteAnalyticsConversationsDetailsJob';}return this.apiClient.callApi('/api/v2/analytics/conversations/details/jobs/{jobId}','DELETE',{'jobId':jobId},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
4912
5019
  * Delete a code used to add a communication to this participant
4913
5020
  *
@@ -5195,13 +5302,13 @@ if(participantId===undefined||participantId===null||participantId===''){throw'Mi
5195
5302
  *
5196
5303
  */},{key:"getConversationsCallsMaximumconferenceparties",value:function getConversationsCallsMaximumconferenceparties(){return this.apiClient.callApi('/api/v2/conversations/calls/maximumconferenceparties','GET',{},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
5197
5304
  * Get chat conversation
5198
- * This endpoint is deprecated. Please see the article https://help.mypurecloud.com/articles/deprecation-removal-of-acd-web-chat-version-2/.
5305
+ * This endpoint is deprecated. Please see the article https://help.genesys.cloud/articles/deprecation-removal-of-acd-web-chat-version-2/.
5199
5306
  * @param {String} conversationId conversationId
5200
5307
  * @deprecated
5201
5308
  */},{key:"getConversationsChat",value:function getConversationsChat(conversationId){// verify the required parameter 'conversationId' is set
5202
5309
  if(conversationId===undefined||conversationId===null||conversationId===''){throw'Missing the required parameter "conversationId" when calling getConversationsChat';}return this.apiClient.callApi('/api/v2/conversations/chats/{conversationId}','GET',{'conversationId':conversationId},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
5203
5310
  * Get a web chat conversation message
5204
- * This endpoint is deprecated. Please see the article https://help.mypurecloud.com/articles/deprecation-removal-of-acd-web-chat-version-2/. The current user must be involved with the conversation to get its messages.
5311
+ * This endpoint is deprecated. Please see the article https://help.genesys.cloud/articles/deprecation-removal-of-acd-web-chat-version-2/. The current user must be involved with the conversation to get its messages.
5205
5312
  * @param {String} conversationId conversationId
5206
5313
  * @param {String} messageId messageId
5207
5314
  * @deprecated
@@ -5209,7 +5316,7 @@ if(conversationId===undefined||conversationId===null||conversationId===''){throw
5209
5316
  if(conversationId===undefined||conversationId===null||conversationId===''){throw'Missing the required parameter "conversationId" when calling getConversationsChatMessage';}// verify the required parameter 'messageId' is set
5210
5317
  if(messageId===undefined||messageId===null||messageId===''){throw'Missing the required parameter "messageId" when calling getConversationsChatMessage';}return this.apiClient.callApi('/api/v2/conversations/chats/{conversationId}/messages/{messageId}','GET',{'conversationId':conversationId,'messageId':messageId},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
5211
5318
  * Get the messages of a chat conversation.
5212
- * This endpoint is deprecated. Please see the article https://help.mypurecloud.com/articles/deprecation-removal-of-acd-web-chat-version-2/. The current user must be involved with the conversation to get its messages.
5319
+ * This endpoint is deprecated. Please see the article https://help.genesys.cloud/articles/deprecation-removal-of-acd-web-chat-version-2/. The current user must be involved with the conversation to get its messages.
5213
5320
  * @param {String} conversationId conversationId
5214
5321
  * @param {Object} opts Optional parameters
5215
5322
  * @param {String} opts.after If specified, get the messages chronologically after the id of this message
@@ -5220,7 +5327,7 @@ if(messageId===undefined||messageId===null||messageId===''){throw'Missing the re
5220
5327
  */},{key:"getConversationsChatMessages",value:function getConversationsChatMessages(conversationId,opts){opts=opts||{};// verify the required parameter 'conversationId' is set
5221
5328
  if(conversationId===undefined||conversationId===null||conversationId===''){throw'Missing the required parameter "conversationId" when calling getConversationsChatMessages';}return this.apiClient.callApi('/api/v2/conversations/chats/{conversationId}/messages','GET',{'conversationId':conversationId},{'after':opts['after'],'before':opts['before'],'sortOrder':opts['sortOrder'],'maxResults':opts['maxResults']},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
5222
5329
  * Get the wrap-up for this conversation communication.
5223
- * This endpoint is deprecated. Please see the article https://help.mypurecloud.com/articles/deprecation-removal-of-acd-web-chat-version-2/.
5330
+ * This endpoint is deprecated. Please see the article https://help.genesys.cloud/articles/deprecation-removal-of-acd-web-chat-version-2/.
5224
5331
  * @param {String} conversationId conversationId
5225
5332
  * @param {String} participantId participantId
5226
5333
  * @param {String} communicationId communicationId
@@ -5232,7 +5339,7 @@ if(conversationId===undefined||conversationId===null||conversationId===''){throw
5232
5339
  if(participantId===undefined||participantId===null||participantId===''){throw'Missing the required parameter "participantId" when calling getConversationsChatParticipantCommunicationWrapup';}// verify the required parameter 'communicationId' is set
5233
5340
  if(communicationId===undefined||communicationId===null||communicationId===''){throw'Missing the required parameter "communicationId" when calling getConversationsChatParticipantCommunicationWrapup';}return this.apiClient.callApi('/api/v2/conversations/chats/{conversationId}/participants/{participantId}/communications/{communicationId}/wrapup','GET',{'conversationId':conversationId,'participantId':participantId,'communicationId':communicationId},{'provisional':opts['provisional']},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
5234
5341
  * Get the wrap-up for this conversation participant.
5235
- * This endpoint is deprecated. Please see the article https://help.mypurecloud.com/articles/deprecation-removal-of-acd-web-chat-version-2/.
5342
+ * This endpoint is deprecated. Please see the article https://help.genesys.cloud/articles/deprecation-removal-of-acd-web-chat-version-2/.
5236
5343
  * @param {String} conversationId conversationId
5237
5344
  * @param {String} participantId participantId
5238
5345
  * @param {Object} opts Optional parameters
@@ -5242,7 +5349,7 @@ if(communicationId===undefined||communicationId===null||communicationId===''){th
5242
5349
  if(conversationId===undefined||conversationId===null||conversationId===''){throw'Missing the required parameter "conversationId" when calling getConversationsChatParticipantWrapup';}// verify the required parameter 'participantId' is set
5243
5350
  if(participantId===undefined||participantId===null||participantId===''){throw'Missing the required parameter "participantId" when calling getConversationsChatParticipantWrapup';}return this.apiClient.callApi('/api/v2/conversations/chats/{conversationId}/participants/{participantId}/wrapup','GET',{'conversationId':conversationId,'participantId':participantId},{'provisional':opts['provisional']},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
5244
5351
  * Get list of wrapup codes for this conversation participant
5245
- * This endpoint is deprecated. Please see the article https://help.mypurecloud.com/articles/deprecation-removal-of-acd-web-chat-version-2/.
5352
+ * This endpoint is deprecated. Please see the article https://help.genesys.cloud/articles/deprecation-removal-of-acd-web-chat-version-2/.
5246
5353
  * @param {String} conversationId conversationId
5247
5354
  * @param {String} participantId participantId
5248
5355
  * @deprecated
@@ -5250,7 +5357,7 @@ if(participantId===undefined||participantId===null||participantId===''){throw'Mi
5250
5357
  if(conversationId===undefined||conversationId===null||conversationId===''){throw'Missing the required parameter "conversationId" when calling getConversationsChatParticipantWrapupcodes';}// verify the required parameter 'participantId' is set
5251
5358
  if(participantId===undefined||participantId===null||participantId===''){throw'Missing the required parameter "participantId" when calling getConversationsChatParticipantWrapupcodes';}return this.apiClient.callApi('/api/v2/conversations/chats/{conversationId}/participants/{participantId}/wrapupcodes','GET',{'conversationId':conversationId,'participantId':participantId},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
5252
5359
  * Get active chat conversations for the logged in user
5253
- * This endpoint is deprecated. Please see the article https://help.mypurecloud.com/articles/deprecation-removal-of-acd-web-chat-version-2/.
5360
+ * This endpoint is deprecated. Please see the article https://help.genesys.cloud/articles/deprecation-removal-of-acd-web-chat-version-2/.
5254
5361
  * @deprecated
5255
5362
  */},{key:"getConversationsChats",value:function getConversationsChats(){return this.apiClient.callApi('/api/v2/conversations/chats','GET',{},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
5256
5363
  * Get cobrowse conversation
@@ -5259,7 +5366,7 @@ if(participantId===undefined||participantId===null||participantId===''){throw'Mi
5259
5366
  */},{key:"getConversationsCobrowsesession",value:function getConversationsCobrowsesession(conversationId){// verify the required parameter 'conversationId' is set
5260
5367
  if(conversationId===undefined||conversationId===null||conversationId===''){throw'Missing the required parameter "conversationId" when calling getConversationsCobrowsesession';}return this.apiClient.callApi('/api/v2/conversations/cobrowsesessions/{conversationId}','GET',{'conversationId':conversationId},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
5261
5368
  * Get the wrap-up for this conversation communication.
5262
- * This endpoint is deprecated. Please see the article https://help.mypurecloud.com/articles/deprecation-legacy-co-browse-and-screenshare/
5369
+ * This endpoint is deprecated. Please see the article https://help.genesys.cloud/articles/deprecation-legacy-co-browse-and-screenshare/
5263
5370
  * @param {String} conversationId conversationId
5264
5371
  * @param {String} participantId participantId
5265
5372
  * @param {String} communicationId communicationId
@@ -5271,7 +5378,7 @@ if(conversationId===undefined||conversationId===null||conversationId===''){throw
5271
5378
  if(participantId===undefined||participantId===null||participantId===''){throw'Missing the required parameter "participantId" when calling getConversationsCobrowsesessionParticipantCommunicationWrapup';}// verify the required parameter 'communicationId' is set
5272
5379
  if(communicationId===undefined||communicationId===null||communicationId===''){throw'Missing the required parameter "communicationId" when calling getConversationsCobrowsesessionParticipantCommunicationWrapup';}return this.apiClient.callApi('/api/v2/conversations/cobrowsesessions/{conversationId}/participants/{participantId}/communications/{communicationId}/wrapup','GET',{'conversationId':conversationId,'participantId':participantId,'communicationId':communicationId},{'provisional':opts['provisional']},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
5273
5380
  * Get the wrap-up for this conversation participant.
5274
- * This endpoint is deprecated. Please see the article https://help.mypurecloud.com/articles/deprecation-legacy-co-browse-and-screenshare/
5381
+ * This endpoint is deprecated. Please see the article https://help.genesys.cloud/articles/deprecation-legacy-co-browse-and-screenshare/
5275
5382
  * @param {String} conversationId conversationId
5276
5383
  * @param {String} participantId participantId
5277
5384
  * @param {Object} opts Optional parameters
@@ -5281,7 +5388,7 @@ if(communicationId===undefined||communicationId===null||communicationId===''){th
5281
5388
  if(conversationId===undefined||conversationId===null||conversationId===''){throw'Missing the required parameter "conversationId" when calling getConversationsCobrowsesessionParticipantWrapup';}// verify the required parameter 'participantId' is set
5282
5389
  if(participantId===undefined||participantId===null||participantId===''){throw'Missing the required parameter "participantId" when calling getConversationsCobrowsesessionParticipantWrapup';}return this.apiClient.callApi('/api/v2/conversations/cobrowsesessions/{conversationId}/participants/{participantId}/wrapup','GET',{'conversationId':conversationId,'participantId':participantId},{'provisional':opts['provisional']},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
5283
5390
  * Get list of wrapup codes for this conversation participant
5284
- * This endpoint is deprecated. Please see the article https://help.mypurecloud.com/articles/deprecation-legacy-co-browse-and-screenshare/
5391
+ * This endpoint is deprecated. Please see the article https://help.genesys.cloud/articles/deprecation-legacy-co-browse-and-screenshare/
5285
5392
  * @param {String} conversationId conversationId
5286
5393
  * @param {String} participantId participantId
5287
5394
  * @deprecated
@@ -5604,7 +5711,7 @@ if(supportedContentId===undefined||supportedContentId===null||supportedContentId
5604
5711
  * Conversation messaging threading timeline is a setting defined for each messenger type in your organization. This setting will dictate whether a new message is added to the most recent existing conversation, or creates a new Conversation. If the existing Conversation is still in a connected state the threading timeline setting will never play a role. After the conversation is disconnected, if an inbound message is received or an outbound message is sent after the setting for threading timeline expires, a new conversation is created.
5605
5712
  */},{key:"getConversationsMessagingThreadingtimeline",value:function getConversationsMessagingThreadingtimeline(){return this.apiClient.callApi('/api/v2/conversations/messaging/threadingtimeline','GET',{},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
5606
5713
  * Get the wrap-up for this conversation communication.
5607
- * This endpoint is deprecated. Please see the article https://help.mypurecloud.com/articles/deprecation-legacy-co-browse-and-screenshare/
5714
+ * This endpoint is deprecated. Please see the article https://help.genesys.cloud/articles/deprecation-legacy-co-browse-and-screenshare/
5608
5715
  * @param {String} conversationId conversationId
5609
5716
  * @param {String} participantId participantId
5610
5717
  * @param {String} communicationId communicationId
@@ -5738,7 +5845,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
5738
5845
  if(conversationId===undefined||conversationId===null||conversationId===''){throw'Missing the required parameter "conversationId" when calling patchConversationsCallParticipantAttributes';}// verify the required parameter 'participantId' is set
5739
5846
  if(participantId===undefined||participantId===null||participantId===''){throw'Missing the required parameter "participantId" when calling patchConversationsCallParticipantAttributes';}// verify the required parameter 'body' is set
5740
5847
  if(body===undefined||body===null){throw'Missing the required parameter "body" when calling patchConversationsCallParticipantAttributes';}return this.apiClient.callApi('/api/v2/conversations/calls/{conversationId}/participants/{participantId}/attributes','PATCH',{'conversationId':conversationId,'participantId':participantId},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}/**
5741
- * Update conversation participant's communication by disconnecting it.
5848
+ * Update conversation participant's communication by disconnecting it. This endpoint does not update wrapup.
5742
5849
  *
5743
5850
  * @param {String} conversationId conversationId
5744
5851
  * @param {String} participantId participantId
@@ -5800,7 +5907,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
5800
5907
  */},{key:"patchConversationsCallbacks",value:function patchConversationsCallbacks(body){// verify the required parameter 'body' is set
5801
5908
  if(body===undefined||body===null){throw'Missing the required parameter "body" when calling patchConversationsCallbacks';}return this.apiClient.callApi('/api/v2/conversations/callbacks','PATCH',{},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}/**
5802
5909
  * Update a conversation by disconnecting all of the participants
5803
- * This endpoint is deprecated. Please see the article https://help.mypurecloud.com/articles/deprecation-removal-of-acd-web-chat-version-2/.
5910
+ * This endpoint is deprecated. Please see the article https://help.genesys.cloud/articles/deprecation-removal-of-acd-web-chat-version-2/.
5804
5911
  * @param {String} conversationId conversationId
5805
5912
  * @param {Object} body Conversation
5806
5913
  * @deprecated
@@ -5808,7 +5915,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
5808
5915
  if(conversationId===undefined||conversationId===null||conversationId===''){throw'Missing the required parameter "conversationId" when calling patchConversationsChat';}// verify the required parameter 'body' is set
5809
5916
  if(body===undefined||body===null){throw'Missing the required parameter "body" when calling patchConversationsChat';}return this.apiClient.callApi('/api/v2/conversations/chats/{conversationId}','PATCH',{'conversationId':conversationId},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}/**
5810
5917
  * Update conversation participant
5811
- * This endpoint is deprecated. Please see the article https://help.mypurecloud.com/articles/deprecation-removal-of-acd-web-chat-version-2/.
5918
+ * This endpoint is deprecated. Please see the article https://help.genesys.cloud/articles/deprecation-removal-of-acd-web-chat-version-2/.
5812
5919
  * @param {String} conversationId conversationId
5813
5920
  * @param {String} participantId participantId
5814
5921
  * @param {Object} body Update request
@@ -5818,7 +5925,7 @@ if(conversationId===undefined||conversationId===null||conversationId===''){throw
5818
5925
  if(participantId===undefined||participantId===null||participantId===''){throw'Missing the required parameter "participantId" when calling patchConversationsChatParticipant';}// verify the required parameter 'body' is set
5819
5926
  if(body===undefined||body===null){throw'Missing the required parameter "body" when calling patchConversationsChatParticipant';}return this.apiClient.callApi('/api/v2/conversations/chats/{conversationId}/participants/{participantId}','PATCH',{'conversationId':conversationId,'participantId':participantId},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}/**
5820
5927
  * Update the attributes on a conversation participant.
5821
- * This endpoint is deprecated. Please see the article https://help.mypurecloud.com/articles/deprecation-removal-of-acd-web-chat-version-2/.
5928
+ * This endpoint is deprecated. Please see the article https://help.genesys.cloud/articles/deprecation-removal-of-acd-web-chat-version-2/.
5822
5929
  * @param {String} conversationId conversationId
5823
5930
  * @param {String} participantId participantId
5824
5931
  * @param {Object} body Participant attributes
@@ -5827,8 +5934,8 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
5827
5934
  if(conversationId===undefined||conversationId===null||conversationId===''){throw'Missing the required parameter "conversationId" when calling patchConversationsChatParticipantAttributes';}// verify the required parameter 'participantId' is set
5828
5935
  if(participantId===undefined||participantId===null||participantId===''){throw'Missing the required parameter "participantId" when calling patchConversationsChatParticipantAttributes';}// verify the required parameter 'body' is set
5829
5936
  if(body===undefined||body===null){throw'Missing the required parameter "body" when calling patchConversationsChatParticipantAttributes';}return this.apiClient.callApi('/api/v2/conversations/chats/{conversationId}/participants/{participantId}/attributes','PATCH',{'conversationId':conversationId,'participantId':participantId},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}/**
5830
- * Update conversation participant's communication by disconnecting it.
5831
- * This endpoint is deprecated. Please see the article https://help.mypurecloud.com/articles/deprecation-removal-of-acd-web-chat-version-2/.
5937
+ * Update conversation participant's communication by disconnecting it. This endpoint does not update wrapup.
5938
+ * This endpoint is deprecated. Please see the article https://help.genesys.cloud/articles/deprecation-removal-of-acd-web-chat-version-2/.
5832
5939
  * @param {String} conversationId conversationId
5833
5940
  * @param {String} participantId participantId
5834
5941
  * @param {String} communicationId communicationId
@@ -5840,7 +5947,7 @@ if(participantId===undefined||participantId===null||participantId===''){throw'Mi
5840
5947
  if(communicationId===undefined||communicationId===null||communicationId===''){throw'Missing the required parameter "communicationId" when calling patchConversationsChatParticipantCommunication';}// verify the required parameter 'body' is set
5841
5948
  if(body===undefined||body===null){throw'Missing the required parameter "body" when calling patchConversationsChatParticipantCommunication';}return this.apiClient.callApi('/api/v2/conversations/chats/{conversationId}/participants/{participantId}/communications/{communicationId}','PATCH',{'conversationId':conversationId,'participantId':participantId,'communicationId':communicationId},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}/**
5842
5949
  * Update a conversation by disconnecting all of the participants
5843
- * This endpoint is deprecated. Please see the article https://help.mypurecloud.com/articles/deprecation-legacy-co-browse-and-screenshare/
5950
+ * This endpoint is deprecated. Please see the article https://help.genesys.cloud/articles/deprecation-legacy-co-browse-and-screenshare/
5844
5951
  * @param {String} conversationId conversationId
5845
5952
  * @param {Object} body Conversation
5846
5953
  * @deprecated
@@ -5848,7 +5955,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
5848
5955
  if(conversationId===undefined||conversationId===null||conversationId===''){throw'Missing the required parameter "conversationId" when calling patchConversationsCobrowsesession';}// verify the required parameter 'body' is set
5849
5956
  if(body===undefined||body===null){throw'Missing the required parameter "body" when calling patchConversationsCobrowsesession';}return this.apiClient.callApi('/api/v2/conversations/cobrowsesessions/{conversationId}','PATCH',{'conversationId':conversationId},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}/**
5850
5957
  * Update conversation participant
5851
- * This endpoint is deprecated. Please see the article https://help.mypurecloud.com/articles/deprecation-legacy-co-browse-and-screenshare/
5958
+ * This endpoint is deprecated. Please see the article https://help.genesys.cloud/articles/deprecation-legacy-co-browse-and-screenshare/
5852
5959
  * @param {String} conversationId conversationId
5853
5960
  * @param {String} participantId participantId
5854
5961
  * @param {Object} opts Optional parameters
@@ -5858,7 +5965,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
5858
5965
  if(conversationId===undefined||conversationId===null||conversationId===''){throw'Missing the required parameter "conversationId" when calling patchConversationsCobrowsesessionParticipant';}// verify the required parameter 'participantId' is set
5859
5966
  if(participantId===undefined||participantId===null||participantId===''){throw'Missing the required parameter "participantId" when calling patchConversationsCobrowsesessionParticipant';}return this.apiClient.callApi('/api/v2/conversations/cobrowsesessions/{conversationId}/participants/{participantId}','PATCH',{'conversationId':conversationId,'participantId':participantId},{},{},{},opts['body'],['PureCloud OAuth'],['application/json'],['application/json']);}/**
5860
5967
  * Update the attributes on a conversation participant.
5861
- * This endpoint is deprecated. Please see the article https://help.mypurecloud.com/articles/deprecation-legacy-co-browse-and-screenshare/
5968
+ * This endpoint is deprecated. Please see the article https://help.genesys.cloud/articles/deprecation-legacy-co-browse-and-screenshare/
5862
5969
  * @param {String} conversationId conversationId
5863
5970
  * @param {String} participantId participantId
5864
5971
  * @param {Object} opts Optional parameters
@@ -5868,7 +5975,7 @@ if(participantId===undefined||participantId===null||participantId===''){throw'Mi
5868
5975
  if(conversationId===undefined||conversationId===null||conversationId===''){throw'Missing the required parameter "conversationId" when calling patchConversationsCobrowsesessionParticipantAttributes';}// verify the required parameter 'participantId' is set
5869
5976
  if(participantId===undefined||participantId===null||participantId===''){throw'Missing the required parameter "participantId" when calling patchConversationsCobrowsesessionParticipantAttributes';}return this.apiClient.callApi('/api/v2/conversations/cobrowsesessions/{conversationId}/participants/{participantId}/attributes','PATCH',{'conversationId':conversationId,'participantId':participantId},{},{},{},opts['body'],['PureCloud OAuth'],['application/json'],['application/json']);}/**
5870
5977
  * Update conversation participant's communication by disconnecting it.
5871
- * This endpoint is deprecated. Please see the article https://help.mypurecloud.com/articles/deprecation-legacy-co-browse-and-screenshare/
5978
+ * This endpoint is deprecated. Please see the article https://help.genesys.cloud/articles/deprecation-legacy-co-browse-and-screenshare/
5872
5979
  * @param {String} conversationId conversationId
5873
5980
  * @param {String} participantId participantId
5874
5981
  * @param {String} communicationId communicationId
@@ -5913,7 +6020,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
5913
6020
  if(conversationId===undefined||conversationId===null||conversationId===''){throw'Missing the required parameter "conversationId" when calling patchConversationsEmailParticipantAttributes';}// verify the required parameter 'participantId' is set
5914
6021
  if(participantId===undefined||participantId===null||participantId===''){throw'Missing the required parameter "participantId" when calling patchConversationsEmailParticipantAttributes';}// verify the required parameter 'body' is set
5915
6022
  if(body===undefined||body===null){throw'Missing the required parameter "body" when calling patchConversationsEmailParticipantAttributes';}return this.apiClient.callApi('/api/v2/conversations/emails/{conversationId}/participants/{participantId}/attributes','PATCH',{'conversationId':conversationId,'participantId':participantId},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}/**
5916
- * Update conversation participant's communication by disconnecting it.
6023
+ * Update conversation participant's communication by disconnecting it. This endpoint does not update wrapup.
5917
6024
  *
5918
6025
  * @param {String} conversationId conversationId
5919
6026
  * @param {String} participantId participantId
@@ -5958,7 +6065,7 @@ if(participantId===undefined||participantId===null||participantId===''){throw'Mi
5958
6065
  */},{key:"patchConversationsMessageParticipantAttributes",value:function patchConversationsMessageParticipantAttributes(conversationId,participantId,opts){opts=opts||{};// verify the required parameter 'conversationId' is set
5959
6066
  if(conversationId===undefined||conversationId===null||conversationId===''){throw'Missing the required parameter "conversationId" when calling patchConversationsMessageParticipantAttributes';}// verify the required parameter 'participantId' is set
5960
6067
  if(participantId===undefined||participantId===null||participantId===''){throw'Missing the required parameter "participantId" when calling patchConversationsMessageParticipantAttributes';}return this.apiClient.callApi('/api/v2/conversations/messages/{conversationId}/participants/{participantId}/attributes','PATCH',{'conversationId':conversationId,'participantId':participantId},{},{},{},opts['body'],['PureCloud OAuth'],['application/json'],['application/json']);}/**
5961
- * Update conversation participant's communication by disconnecting it.
6068
+ * Update conversation participant's communication by disconnecting it. This endpoint does not update wrapup.
5962
6069
  *
5963
6070
  * @param {String} conversationId conversationId
5964
6071
  * @param {String} participantId participantId
@@ -6369,7 +6476,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
6369
6476
  */},{key:"postConversationsCalls",value:function postConversationsCalls(body){// verify the required parameter 'body' is set
6370
6477
  if(body===undefined||body===null){throw'Missing the required parameter "body" when calling postConversationsCalls';}return this.apiClient.callApi('/api/v2/conversations/calls','POST',{},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}/**
6371
6478
  * Send a message on behalf of a communication in a chat conversation.
6372
- * This endpoint is deprecated. Please see the article https://help.mypurecloud.com/articles/deprecation-removal-of-acd-web-chat-version-2/.
6479
+ * This endpoint is deprecated. Please see the article https://help.genesys.cloud/articles/deprecation-removal-of-acd-web-chat-version-2/.
6373
6480
  * @param {String} conversationId conversationId
6374
6481
  * @param {String} communicationId communicationId
6375
6482
  * @param {Object} body Message
@@ -6379,7 +6486,7 @@ if(conversationId===undefined||conversationId===null||conversationId===''){throw
6379
6486
  if(communicationId===undefined||communicationId===null||communicationId===''){throw'Missing the required parameter "communicationId" when calling postConversationsChatCommunicationMessages';}// verify the required parameter 'body' is set
6380
6487
  if(body===undefined||body===null){throw'Missing the required parameter "body" when calling postConversationsChatCommunicationMessages';}return this.apiClient.callApi('/api/v2/conversations/chats/{conversationId}/communications/{communicationId}/messages','POST',{'conversationId':conversationId,'communicationId':communicationId},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}/**
6381
6488
  * Send a typing-indicator on behalf of a communication in a chat conversation.
6382
- * This endpoint is deprecated. Please see the article https://help.mypurecloud.com/articles/deprecation-removal-of-acd-web-chat-version-2/.
6489
+ * This endpoint is deprecated. Please see the article https://help.genesys.cloud/articles/deprecation-removal-of-acd-web-chat-version-2/.
6383
6490
  * @param {String} conversationId conversationId
6384
6491
  * @param {String} communicationId communicationId
6385
6492
  * @deprecated
@@ -6387,7 +6494,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
6387
6494
  if(conversationId===undefined||conversationId===null||conversationId===''){throw'Missing the required parameter "conversationId" when calling postConversationsChatCommunicationTyping';}// verify the required parameter 'communicationId' is set
6388
6495
  if(communicationId===undefined||communicationId===null||communicationId===''){throw'Missing the required parameter "communicationId" when calling postConversationsChatCommunicationTyping';}return this.apiClient.callApi('/api/v2/conversations/chats/{conversationId}/communications/{communicationId}/typing','POST',{'conversationId':conversationId,'communicationId':communicationId},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
6389
6496
  * Apply wrap-up for this conversation communication
6390
- * This endpoint is deprecated. Please see the article https://help.mypurecloud.com/articles/deprecation-removal-of-acd-web-chat-version-2/.
6497
+ * This endpoint is deprecated. Please see the article https://help.genesys.cloud/articles/deprecation-removal-of-acd-web-chat-version-2/.
6391
6498
  * @param {String} conversationId conversationId
6392
6499
  * @param {String} participantId participantId
6393
6500
  * @param {String} communicationId communicationId
@@ -6399,7 +6506,7 @@ if(conversationId===undefined||conversationId===null||conversationId===''){throw
6399
6506
  if(participantId===undefined||participantId===null||participantId===''){throw'Missing the required parameter "participantId" when calling postConversationsChatParticipantCommunicationWrapup';}// verify the required parameter 'communicationId' is set
6400
6507
  if(communicationId===undefined||communicationId===null||communicationId===''){throw'Missing the required parameter "communicationId" when calling postConversationsChatParticipantCommunicationWrapup';}return this.apiClient.callApi('/api/v2/conversations/chats/{conversationId}/participants/{participantId}/communications/{communicationId}/wrapup','POST',{'conversationId':conversationId,'participantId':participantId,'communicationId':communicationId},{},{},{},opts['body'],['PureCloud OAuth'],['application/json'],['application/json']);}/**
6401
6508
  * Replace this participant with the specified user and/or address
6402
- * This endpoint is deprecated. Please see the article https://help.mypurecloud.com/articles/deprecation-removal-of-acd-web-chat-version-2/.
6509
+ * This endpoint is deprecated. Please see the article https://help.genesys.cloud/articles/deprecation-removal-of-acd-web-chat-version-2/.
6403
6510
  * @param {String} conversationId conversationId
6404
6511
  * @param {String} participantId participantId
6405
6512
  * @param {Object} body Transfer request
@@ -6409,13 +6516,13 @@ if(conversationId===undefined||conversationId===null||conversationId===''){throw
6409
6516
  if(participantId===undefined||participantId===null||participantId===''){throw'Missing the required parameter "participantId" when calling postConversationsChatParticipantReplace';}// verify the required parameter 'body' is set
6410
6517
  if(body===undefined||body===null){throw'Missing the required parameter "body" when calling postConversationsChatParticipantReplace';}return this.apiClient.callApi('/api/v2/conversations/chats/{conversationId}/participants/{participantId}/replace','POST',{'conversationId':conversationId,'participantId':participantId},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}/**
6411
6518
  * Create a web chat conversation
6412
- * This endpoint is deprecated. Please see the article https://help.mypurecloud.com/articles/deprecation-removal-of-acd-web-chat-version-2/.
6519
+ * This endpoint is deprecated. Please see the article https://help.genesys.cloud/articles/deprecation-removal-of-acd-web-chat-version-2/.
6413
6520
  * @param {Object} body Create web chat request
6414
6521
  * @deprecated
6415
6522
  */},{key:"postConversationsChats",value:function postConversationsChats(body){// verify the required parameter 'body' is set
6416
6523
  if(body===undefined||body===null){throw'Missing the required parameter "body" when calling postConversationsChats';}return this.apiClient.callApi('/api/v2/conversations/chats','POST',{},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}/**
6417
6524
  * Apply wrap-up for this conversation communication
6418
- * This endpoint is deprecated. Please see the article https://help.mypurecloud.com/articles/deprecation-legacy-co-browse-and-screenshare/
6525
+ * This endpoint is deprecated. Please see the article https://help.genesys.cloud/articles/deprecation-legacy-co-browse-and-screenshare/
6419
6526
  * @param {String} conversationId conversationId
6420
6527
  * @param {String} participantId participantId
6421
6528
  * @param {String} communicationId communicationId
@@ -6427,7 +6534,7 @@ if(conversationId===undefined||conversationId===null||conversationId===''){throw
6427
6534
  if(participantId===undefined||participantId===null||participantId===''){throw'Missing the required parameter "participantId" when calling postConversationsCobrowsesessionParticipantCommunicationWrapup';}// verify the required parameter 'communicationId' is set
6428
6535
  if(communicationId===undefined||communicationId===null||communicationId===''){throw'Missing the required parameter "communicationId" when calling postConversationsCobrowsesessionParticipantCommunicationWrapup';}return this.apiClient.callApi('/api/v2/conversations/cobrowsesessions/{conversationId}/participants/{participantId}/communications/{communicationId}/wrapup','POST',{'conversationId':conversationId,'participantId':participantId,'communicationId':communicationId},{},{},{},opts['body'],['PureCloud OAuth'],['application/json'],['application/json']);}/**
6429
6536
  * Replace this participant with the specified user and/or address
6430
- * This endpoint is deprecated. Please see the article https://help.mypurecloud.com/articles/deprecation-legacy-co-browse-and-screenshare/
6537
+ * This endpoint is deprecated. Please see the article https://help.genesys.cloud/articles/deprecation-legacy-co-browse-and-screenshare/
6431
6538
  * @param {String} conversationId conversationId
6432
6539
  * @param {String} participantId participantId
6433
6540
  * @param {Object} opts Optional parameters
@@ -6683,7 +6790,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
6683
6790
  */},{key:"postConversationsParticipantsAttributesSearch",value:function postConversationsParticipantsAttributesSearch(body){// verify the required parameter 'body' is set
6684
6791
  if(body===undefined||body===null){throw'Missing the required parameter "body" when calling postConversationsParticipantsAttributesSearch';}return this.apiClient.callApi('/api/v2/conversations/participants/attributes/search','POST',{},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}/**
6685
6792
  * Apply wrap-up for this conversation communication
6686
- * This endpoint is deprecated. Please see the article https://help.mypurecloud.com/articles/deprecation-legacy-co-browse-and-screenshare/
6793
+ * This endpoint is deprecated. Please see the article https://help.genesys.cloud/articles/deprecation-legacy-co-browse-and-screenshare/
6687
6794
  * @param {String} conversationId conversationId
6688
6795
  * @param {String} participantId participantId
6689
6796
  * @param {String} communicationId communicationId
@@ -6777,7 +6884,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
6777
6884
  if(conversationId===undefined||conversationId===null||conversationId===''){throw'Missing the required parameter "conversationId" when calling putConversationsCallbackRecordingstate';}// verify the required parameter 'body' is set
6778
6885
  if(body===undefined||body===null){throw'Missing the required parameter "body" when calling putConversationsCallbackRecordingstate';}return this.apiClient.callApi('/api/v2/conversations/callbacks/{conversationId}/recordingstate','PUT',{'conversationId':conversationId},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}/**
6779
6886
  * Update a conversation by setting its recording state
6780
- * This endpoint is deprecated. Please see the article https://help.mypurecloud.com/articles/deprecation-removal-of-acd-web-chat-version-2/.
6887
+ * This endpoint is deprecated. Please see the article https://help.genesys.cloud/articles/deprecation-removal-of-acd-web-chat-version-2/.
6781
6888
  * @param {String} conversationId conversationId
6782
6889
  * @param {Object} body SetRecordingState
6783
6890
  * @deprecated
@@ -6785,7 +6892,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
6785
6892
  if(conversationId===undefined||conversationId===null||conversationId===''){throw'Missing the required parameter "conversationId" when calling putConversationsChatRecordingstate';}// verify the required parameter 'body' is set
6786
6893
  if(body===undefined||body===null){throw'Missing the required parameter "body" when calling putConversationsChatRecordingstate';}return this.apiClient.callApi('/api/v2/conversations/chats/{conversationId}/recordingstate','PUT',{'conversationId':conversationId},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}/**
6787
6894
  * Update a conversation by setting its recording state
6788
- * This endpoint is deprecated. Please see the article https://help.mypurecloud.com/articles/deprecation-legacy-co-browse-and-screenshare/
6895
+ * This endpoint is deprecated. Please see the article https://help.genesys.cloud/articles/deprecation-legacy-co-browse-and-screenshare/
6789
6896
  * @param {String} conversationId conversationId
6790
6897
  * @param {Object} body SetRecordingState
6791
6898
  * @deprecated
@@ -6879,7 +6986,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
6879
6986
  */},{key:"putConversationsMessagingThreadingtimeline",value:function putConversationsMessagingThreadingtimeline(body){// verify the required parameter 'body' is set
6880
6987
  if(body===undefined||body===null){throw'Missing the required parameter "body" when calling putConversationsMessagingThreadingtimeline';}return this.apiClient.callApi('/api/v2/conversations/messaging/threadingtimeline','PUT',{},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}/**
6881
6988
  * Update a conversation by setting its recording state
6882
- * This endpoint is deprecated. Please see the article https://help.mypurecloud.com/articles/deprecation-legacy-co-browse-and-screenshare/
6989
+ * This endpoint is deprecated. Please see the article https://help.genesys.cloud/articles/deprecation-legacy-co-browse-and-screenshare/
6883
6990
  * @param {String} conversationId conversationId
6884
6991
  * @param {Object} body SetRecordingState
6885
6992
  * @deprecated
@@ -6902,7 +7009,7 @@ if(conversationId===undefined||conversationId===null||conversationId===''){throw
6902
7009
  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(){/**
6903
7010
  * DataExtensions service.
6904
7011
  * @module purecloud-platform-client-v2/api/DataExtensionsApi
6905
- * @version 226.0.0
7012
+ * @version 228.0.0
6906
7013
  *//**
6907
7014
  * Constructs a new DataExtensionsApi.
6908
7015
  * @alias module:purecloud-platform-client-v2/api/DataExtensionsApi
@@ -6923,7 +7030,7 @@ if(coretypeName===undefined||coretypeName===null||coretypeName===''){throw'Missi
6923
7030
  */},{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(){/**
6924
7031
  * DataPrivacy service.
6925
7032
  * @module purecloud-platform-client-v2/api/DataPrivacyApi
6926
- * @version 226.0.0
7033
+ * @version 228.0.0
6927
7034
  *//**
6928
7035
  * Constructs a new DataPrivacyApi.
6929
7036
  * @alias module:purecloud-platform-client-v2/api/DataPrivacyApi
@@ -6963,7 +7070,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
6963
7070
  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(){/**
6964
7071
  * Downloads service.
6965
7072
  * @module purecloud-platform-client-v2/api/DownloadsApi
6966
- * @version 226.0.0
7073
+ * @version 228.0.0
6967
7074
  *//**
6968
7075
  * Constructs a new DownloadsApi.
6969
7076
  * @alias module:purecloud-platform-client-v2/api/DownloadsApi
@@ -6982,7 +7089,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
6982
7089
  if(downloadId===undefined||downloadId===null||downloadId===''){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(){/**
6983
7090
  * Emails service.
6984
7091
  * @module purecloud-platform-client-v2/api/EmailsApi
6985
- * @version 226.0.0
7092
+ * @version 228.0.0
6986
7093
  *//**
6987
7094
  * Constructs a new EmailsApi.
6988
7095
  * @alias module:purecloud-platform-client-v2/api/EmailsApi
@@ -7011,7 +7118,7 @@ if(downloadId===undefined||downloadId===null||downloadId===''){throw'Missing the
7011
7118
  */},{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(){/**
7012
7119
  * EmployeeEngagement service.
7013
7120
  * @module purecloud-platform-client-v2/api/EmployeeEngagementApi
7014
- * @version 226.0.0
7121
+ * @version 228.0.0
7015
7122
  *//**
7016
7123
  * Constructs a new EmployeeEngagementApi.
7017
7124
  * @alias module:purecloud-platform-client-v2/api/EmployeeEngagementApi
@@ -7049,7 +7156,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
7049
7156
  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(){/**
7050
7157
  * Events service.
7051
7158
  * @module purecloud-platform-client-v2/api/EventsApi
7052
- * @version 226.0.0
7159
+ * @version 228.0.0
7053
7160
  *//**
7054
7161
  * Constructs a new EventsApi.
7055
7162
  * @alias module:purecloud-platform-client-v2/api/EventsApi
@@ -7074,7 +7181,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
7074
7181
  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(){/**
7075
7182
  * ExternalContacts service.
7076
7183
  * @module purecloud-platform-client-v2/api/ExternalContactsApi
7077
- * @version 226.0.0
7184
+ * @version 228.0.0
7078
7185
  *//**
7079
7186
  * Constructs a new ExternalContactsApi.
7080
7187
  * @alias module:purecloud-platform-client-v2/api/ExternalContactsApi
@@ -7148,6 +7255,14 @@ if(contactId===undefined||contactId===null||contactId===''){throw'Missing the re
7148
7255
  * @param {String} contactId ExternalContact ID
7149
7256
  */},{key:"getExternalcontactsContactIdentifiers",value:function getExternalcontactsContactIdentifiers(contactId){// verify the required parameter 'contactId' is set
7150
7257
  if(contactId===undefined||contactId===null||contactId===''){throw'Missing the required parameter "contactId" when calling getExternalcontactsContactIdentifiers';}return this.apiClient.callApi('/api/v2/externalcontacts/contacts/{contactId}/identifiers','GET',{'contactId':contactId},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
7258
+ * Retrieve segment assignments by external contact ID.
7259
+ *
7260
+ * @param {String} contactId ExternalContact ID
7261
+ * @param {Object} opts Optional parameters
7262
+ * @param {Boolean} opts.includeMerged Indicates whether to return segment assignments from all external contacts in the merge-set of the given one.
7263
+ * @param {Number} opts.limit Number of entities to return. Default of 25, maximum of 500.
7264
+ */},{key:"getExternalcontactsContactJourneySegments",value:function getExternalcontactsContactJourneySegments(contactId,opts){opts=opts||{};// verify the required parameter 'contactId' is set
7265
+ if(contactId===undefined||contactId===null||contactId===''){throw'Missing the required parameter "contactId" when calling getExternalcontactsContactJourneySegments';}return this.apiClient.callApi('/api/v2/externalcontacts/contacts/{contactId}/journey/segments','GET',{'contactId':contactId},{'includeMerged':opts['includeMerged'],'limit':opts['limit']},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
7151
7266
  * Retrieve all sessions for a given external contact.
7152
7267
  *
7153
7268
  * @param {String} contactId ExternalContact ID
@@ -7586,6 +7701,13 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
7586
7701
  * @param {Object} body Relationships
7587
7702
  */},{key:"postExternalcontactsBulkRelationshipsUpdate",value:function postExternalcontactsBulkRelationshipsUpdate(body){// verify the required parameter 'body' is set
7588
7703
  if(body===undefined||body===null){throw'Missing the required parameter "body" when calling postExternalcontactsBulkRelationshipsUpdate';}return this.apiClient.callApi('/api/v2/externalcontacts/bulk/relationships/update','POST',{},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}/**
7704
+ * Assign/Unassign up to 10 segments to/from an external contact or, if a segment is already assigned, update the expiry date of the segment assignment. Any unprocessed segment assignments are returned in the body for the client to retry, in the event of a partial success.
7705
+ *
7706
+ * @param {String} contactId ExternalContact ID
7707
+ * @param {Object} opts Optional parameters
7708
+ * @param {Object} opts.body
7709
+ */},{key:"postExternalcontactsContactJourneySegments",value:function postExternalcontactsContactJourneySegments(contactId,opts){opts=opts||{};// verify the required parameter 'contactId' is set
7710
+ if(contactId===undefined||contactId===null||contactId===''){throw'Missing the required parameter "contactId" when calling postExternalcontactsContactJourneySegments';}return this.apiClient.callApi('/api/v2/externalcontacts/contacts/{contactId}/journey/segments','POST',{'contactId':contactId},{},{},{},opts['body'],['PureCloud OAuth'],['application/json'],['application/json']);}/**
7589
7711
  * Create a note for an external contact
7590
7712
  *
7591
7713
  * @param {String} contactId ExternalContact Id
@@ -7809,7 +7931,7 @@ if(relationshipId===undefined||relationshipId===null||relationshipId===''){throw
7809
7931
  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(){/**
7810
7932
  * Fax service.
7811
7933
  * @module purecloud-platform-client-v2/api/FaxApi
7812
- * @version 226.0.0
7934
+ * @version 228.0.0
7813
7935
  *//**
7814
7936
  * Constructs a new FaxApi.
7815
7937
  * @alias module:purecloud-platform-client-v2/api/FaxApi
@@ -7858,7 +7980,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
7858
7980
  */},{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(){/**
7859
7981
  * Flows service.
7860
7982
  * @module purecloud-platform-client-v2/api/FlowsApi
7861
- * @version 226.0.0
7983
+ * @version 228.0.0
7862
7984
  *//**
7863
7985
  * Constructs a new FlowsApi.
7864
7986
  * @alias module:purecloud-platform-client-v2/api/FlowsApi
@@ -7866,11 +7988,17 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
7866
7988
  * @param {module:purecloud-platform-client-v2/ApiClient} apiClient Optional API client implementation to use,
7867
7989
  * default to {@link module:purecloud-platform-client-v2/ApiClient#instance} if unspecified.
7868
7990
  */function FlowsApi(apiClient){_classCallCheck(this,FlowsApi);this.apiClient=apiClient||ApiClient.instance;}/**
7991
+ * Delete/cancel an async request for flow aggregates
7992
+ *
7993
+ * @param {String} jobId jobId
7994
+ * deleteAnalyticsFlowsAggregatesJob is a preview method and is subject to both breaking and non-breaking changes at any time without notice
7995
+ */return _createClass(FlowsApi,[{key:"deleteAnalyticsFlowsAggregatesJob",value:function deleteAnalyticsFlowsAggregatesJob(jobId){// verify the required parameter 'jobId' is set
7996
+ if(jobId===undefined||jobId===null||jobId===''){throw'Missing the required parameter "jobId" when calling deleteAnalyticsFlowsAggregatesJob';}return this.apiClient.callApi('/api/v2/analytics/flows/aggregates/jobs/{jobId}','DELETE',{'jobId':jobId},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
7869
7997
  * Get status for async query for Flow aggregates
7870
7998
  *
7871
7999
  * @param {String} jobId jobId
7872
8000
  * getAnalyticsFlowsAggregatesJob is a preview method and is subject to both breaking and non-breaking changes at any time without notice
7873
- */return _createClass(FlowsApi,[{key:"getAnalyticsFlowsAggregatesJob",value:function getAnalyticsFlowsAggregatesJob(jobId){// verify the required parameter 'jobId' is set
8001
+ */},{key:"getAnalyticsFlowsAggregatesJob",value:function getAnalyticsFlowsAggregatesJob(jobId){// verify the required parameter 'jobId' is set
7874
8002
  if(jobId===undefined||jobId===null||jobId===''){throw'Missing the required parameter "jobId" when calling getAnalyticsFlowsAggregatesJob';}return this.apiClient.callApi('/api/v2/analytics/flows/aggregates/jobs/{jobId}','GET',{'jobId':jobId},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
7875
8003
  * Fetch a page of results for an async aggregates query
7876
8004
  *
@@ -7906,7 +8034,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
7906
8034
  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(){/**
7907
8035
  * Gamification service.
7908
8036
  * @module purecloud-platform-client-v2/api/GamificationApi
7909
- * @version 226.0.0
8037
+ * @version 228.0.0
7910
8038
  *//**
7911
8039
  * Constructs a new GamificationApi.
7912
8040
  * @alias module:purecloud-platform-client-v2/api/GamificationApi
@@ -8559,7 +8687,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
8559
8687
  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(){/**
8560
8688
  * GeneralDataProtectionRegulation service.
8561
8689
  * @module purecloud-platform-client-v2/api/GeneralDataProtectionRegulationApi
8562
- * @version 226.0.0
8690
+ * @version 228.0.0
8563
8691
  *//**
8564
8692
  * Constructs a new GeneralDataProtectionRegulationApi.
8565
8693
  * @alias module:purecloud-platform-client-v2/api/GeneralDataProtectionRegulationApi
@@ -8594,7 +8722,7 @@ if(searchValue===undefined||searchValue===null){throw'Missing the required param
8594
8722
  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(){/**
8595
8723
  * Geolocation service.
8596
8724
  * @module purecloud-platform-client-v2/api/GeolocationApi
8597
- * @version 226.0.0
8725
+ * @version 228.0.0
8598
8726
  *//**
8599
8727
  * Constructs a new GeolocationApi.
8600
8728
  * @alias module:purecloud-platform-client-v2/api/GeolocationApi
@@ -8628,7 +8756,7 @@ if(clientId===undefined||clientId===null||clientId===''){throw'Missing the requi
8628
8756
  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(){/**
8629
8757
  * Greetings service.
8630
8758
  * @module purecloud-platform-client-v2/api/GreetingsApi
8631
- * @version 226.0.0
8759
+ * @version 228.0.0
8632
8760
  *//**
8633
8761
  * Constructs a new GreetingsApi.
8634
8762
  * @alias module:purecloud-platform-client-v2/api/GreetingsApi
@@ -8756,7 +8884,7 @@ if(userId===undefined||userId===null||userId===''){throw'Missing the required pa
8756
8884
  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(){/**
8757
8885
  * Groups service.
8758
8886
  * @module purecloud-platform-client-v2/api/GroupsApi
8759
- * @version 226.0.0
8887
+ * @version 228.0.0
8760
8888
  *//**
8761
8889
  * Constructs a new GroupsApi.
8762
8890
  * @alias module:purecloud-platform-client-v2/api/GroupsApi
@@ -8889,7 +9017,7 @@ if(groupId===undefined||groupId===null||groupId===''){throw'Missing the required
8889
9017
  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(){/**
8890
9018
  * IdentityProvider service.
8891
9019
  * @module purecloud-platform-client-v2/api/IdentityProviderApi
8892
- * @version 226.0.0
9020
+ * @version 228.0.0
8893
9021
  *//**
8894
9022
  * Constructs a new IdentityProviderApi.
8895
9023
  * @alias module:purecloud-platform-client-v2/api/IdentityProviderApi
@@ -9045,7 +9173,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
9045
9173
  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(){/**
9046
9174
  * InfrastructureAsCode service.
9047
9175
  * @module purecloud-platform-client-v2/api/InfrastructureAsCodeApi
9048
- * @version 226.0.0
9176
+ * @version 228.0.0
9049
9177
  *//**
9050
9178
  * Constructs a new InfrastructureAsCodeApi.
9051
9179
  * @alias module:purecloud-platform-client-v2/api/InfrastructureAsCodeApi
@@ -9099,7 +9227,7 @@ if(jobId===undefined||jobId===null||jobId===''){throw'Missing the required param
9099
9227
  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(){/**
9100
9228
  * Integrations service.
9101
9229
  * @module purecloud-platform-client-v2/api/IntegrationsApi
9102
- * @version 226.0.0
9230
+ * @version 228.0.0
9103
9231
  *//**
9104
9232
  * Constructs a new IntegrationsApi.
9105
9233
  * @alias module:purecloud-platform-client-v2/api/IntegrationsApi
@@ -9786,7 +9914,7 @@ if(ucIntegrationId===undefined||ucIntegrationId===null||ucIntegrationId===''){th
9786
9914
  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(){/**
9787
9915
  * Journey service.
9788
9916
  * @module purecloud-platform-client-v2/api/JourneyApi
9789
- * @version 226.0.0
9917
+ * @version 228.0.0
9790
9918
  *//**
9791
9919
  * Constructs a new JourneyApi.
9792
9920
  * @alias module:purecloud-platform-client-v2/api/JourneyApi
@@ -9794,10 +9922,16 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
9794
9922
  * @param {module:purecloud-platform-client-v2/ApiClient} apiClient Optional API client implementation to use,
9795
9923
  * default to {@link module:purecloud-platform-client-v2/ApiClient#instance} if unspecified.
9796
9924
  */function JourneyApi(apiClient){_classCallCheck(this,JourneyApi);this.apiClient=apiClient||ApiClient.instance;}/**
9925
+ * Delete/cancel an async request for journey aggregates
9926
+ *
9927
+ * @param {String} jobId jobId
9928
+ * deleteAnalyticsJourneysAggregatesJob is a preview method and is subject to both breaking and non-breaking changes at any time without notice
9929
+ */return _createClass(JourneyApi,[{key:"deleteAnalyticsJourneysAggregatesJob",value:function deleteAnalyticsJourneysAggregatesJob(jobId){// verify the required parameter 'jobId' is set
9930
+ if(jobId===undefined||jobId===null||jobId===''){throw'Missing the required parameter "jobId" when calling deleteAnalyticsJourneysAggregatesJob';}return this.apiClient.callApi('/api/v2/analytics/journeys/aggregates/jobs/{jobId}','DELETE',{'jobId':jobId},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
9797
9931
  * Delete single action map.
9798
9932
  *
9799
9933
  * @param {String} actionMapId ID of the action map.
9800
- */return _createClass(JourneyApi,[{key:"deleteJourneyActionmap",value:function deleteJourneyActionmap(actionMapId){// verify the required parameter 'actionMapId' is set
9934
+ */},{key:"deleteJourneyActionmap",value:function deleteJourneyActionmap(actionMapId){// verify the required parameter 'actionMapId' is set
9801
9935
  if(actionMapId===undefined||actionMapId===null||actionMapId===''){throw'Missing the required parameter "actionMapId" when calling deleteJourneyActionmap';}return this.apiClient.callApi('/api/v2/journey/actionmaps/{actionMapId}','DELETE',{'actionMapId':actionMapId},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
9802
9936
  * Delete a single action template.
9803
9937
  *
@@ -9845,6 +9979,14 @@ if(jobId===undefined||jobId===null||jobId===''){throw'Missing the required param
9845
9979
  * getAnalyticsJourneysAggregatesJobResults is a preview method and is subject to both breaking and non-breaking changes at any time without notice
9846
9980
  */},{key:"getAnalyticsJourneysAggregatesJobResults",value:function getAnalyticsJourneysAggregatesJobResults(jobId,opts){opts=opts||{};// verify the required parameter 'jobId' is set
9847
9981
  if(jobId===undefined||jobId===null||jobId===''){throw'Missing the required parameter "jobId" when calling getAnalyticsJourneysAggregatesJobResults';}return this.apiClient.callApi('/api/v2/analytics/journeys/aggregates/jobs/{jobId}/results','GET',{'jobId':jobId},{'cursor':opts['cursor']},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
9982
+ * Retrieve segment assignments by external contact ID.
9983
+ *
9984
+ * @param {String} contactId ExternalContact ID
9985
+ * @param {Object} opts Optional parameters
9986
+ * @param {Boolean} opts.includeMerged Indicates whether to return segment assignments from all external contacts in the merge-set of the given one.
9987
+ * @param {Number} opts.limit Number of entities to return. Default of 25, maximum of 500.
9988
+ */},{key:"getExternalcontactsContactJourneySegments",value:function getExternalcontactsContactJourneySegments(contactId,opts){opts=opts||{};// verify the required parameter 'contactId' is set
9989
+ if(contactId===undefined||contactId===null||contactId===''){throw'Missing the required parameter "contactId" when calling getExternalcontactsContactJourneySegments';}return this.apiClient.callApi('/api/v2/externalcontacts/contacts/{contactId}/journey/segments','GET',{'contactId':contactId},{'includeMerged':opts['includeMerged'],'limit':opts['limit']},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
9848
9990
  * Retrieve all sessions for a given external contact.
9849
9991
  *
9850
9992
  * @param {String} contactId ExternalContact ID
@@ -10155,6 +10297,13 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
10155
10297
  * @param {Object} body query
10156
10298
  */},{key:"postAnalyticsJourneysAggregatesQuery",value:function postAnalyticsJourneysAggregatesQuery(body){// verify the required parameter 'body' is set
10157
10299
  if(body===undefined||body===null){throw'Missing the required parameter "body" when calling postAnalyticsJourneysAggregatesQuery';}return this.apiClient.callApi('/api/v2/analytics/journeys/aggregates/query','POST',{},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}/**
10300
+ * Assign/Unassign up to 10 segments to/from an external contact or, if a segment is already assigned, update the expiry date of the segment assignment. Any unprocessed segment assignments are returned in the body for the client to retry, in the event of a partial success.
10301
+ *
10302
+ * @param {String} contactId ExternalContact ID
10303
+ * @param {Object} opts Optional parameters
10304
+ * @param {Object} opts.body
10305
+ */},{key:"postExternalcontactsContactJourneySegments",value:function postExternalcontactsContactJourneySegments(contactId,opts){opts=opts||{};// verify the required parameter 'contactId' is set
10306
+ if(contactId===undefined||contactId===null||contactId===''){throw'Missing the required parameter "contactId" when calling postExternalcontactsContactJourneySegments';}return this.apiClient.callApi('/api/v2/externalcontacts/contacts/{contactId}/journey/segments','POST',{'contactId':contactId},{},{},{},opts['body'],['PureCloud OAuth'],['application/json'],['application/json']);}/**
10158
10307
  * Create an action map.
10159
10308
  *
10160
10309
  * @param {Object} opts Optional parameters
@@ -10266,7 +10415,7 @@ if(versionId===undefined||versionId===null||versionId===''){throw'Missing the re
10266
10415
  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(){/**
10267
10416
  * Knowledge service.
10268
10417
  * @module purecloud-platform-client-v2/api/KnowledgeApi
10269
- * @version 226.0.0
10418
+ * @version 228.0.0
10270
10419
  *//**
10271
10420
  * Constructs a new KnowledgeApi.
10272
10421
  * @alias module:purecloud-platform-client-v2/api/KnowledgeApi
@@ -11043,6 +11192,13 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
11043
11192
  */},{key:"postKnowledgeKnowledgebaseCategories",value:function postKnowledgeKnowledgebaseCategories(knowledgeBaseId,body){// verify the required parameter 'knowledgeBaseId' is set
11044
11193
  if(knowledgeBaseId===undefined||knowledgeBaseId===null||knowledgeBaseId===''){throw'Missing the required parameter "knowledgeBaseId" when calling postKnowledgeKnowledgebaseCategories';}// verify the required parameter 'body' is set
11045
11194
  if(body===undefined||body===null){throw'Missing the required parameter "body" when calling postKnowledgeKnowledgebaseCategories';}return this.apiClient.callApi('/api/v2/knowledge/knowledgebases/{knowledgeBaseId}/categories','POST',{'knowledgeBaseId':knowledgeBaseId},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}/**
11195
+ * Search for chunks in a knowledge base
11196
+ *
11197
+ * @param {String} knowledgeBaseId Knowledge Base ID
11198
+ * @param {Object} opts Optional parameters
11199
+ * @param {Object} opts.body
11200
+ */},{key:"postKnowledgeKnowledgebaseChunksSearch",value:function postKnowledgeKnowledgebaseChunksSearch(knowledgeBaseId,opts){opts=opts||{};// verify the required parameter 'knowledgeBaseId' is set
11201
+ if(knowledgeBaseId===undefined||knowledgeBaseId===null||knowledgeBaseId===''){throw'Missing the required parameter "knowledgeBaseId" when calling postKnowledgeKnowledgebaseChunksSearch';}return this.apiClient.callApi('/api/v2/knowledge/knowledgebases/{knowledgeBaseId}/chunks/search','POST',{'knowledgeBaseId':knowledgeBaseId},{},{},{},opts['body'],['PureCloud OAuth'],['application/json'],['application/json']);}/**
11046
11202
  * Indicate that the document was copied by the user.
11047
11203
  *
11048
11204
  * @param {String} knowledgeBaseId Knowledge base ID.
@@ -11329,7 +11485,7 @@ if(sourceId===undefined||sourceId===null||sourceId===''){throw'Missing the requi
11329
11485
  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(){/**
11330
11486
  * LanguageUnderstanding service.
11331
11487
  * @module purecloud-platform-client-v2/api/LanguageUnderstandingApi
11332
- * @version 226.0.0
11488
+ * @version 228.0.0
11333
11489
  *//**
11334
11490
  * Constructs a new LanguageUnderstandingApi.
11335
11491
  * @alias module:purecloud-platform-client-v2/api/LanguageUnderstandingApi
@@ -11588,7 +11744,7 @@ if(domainVersionId===undefined||domainVersionId===null||domainVersionId===''){th
11588
11744
  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(){/**
11589
11745
  * Languages service.
11590
11746
  * @module purecloud-platform-client-v2/api/LanguagesApi
11591
- * @version 226.0.0
11747
+ * @version 228.0.0
11592
11748
  *//**
11593
11749
  * Constructs a new LanguagesApi.
11594
11750
  * @alias module:purecloud-platform-client-v2/api/LanguagesApi
@@ -11643,7 +11799,7 @@ if(userId===undefined||userId===null||userId===''){throw'Missing the required pa
11643
11799
  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(){/**
11644
11800
  * Learning service.
11645
11801
  * @module purecloud-platform-client-v2/api/LearningApi
11646
- * @version 226.0.0
11802
+ * @version 228.0.0
11647
11803
  *//**
11648
11804
  * Constructs a new LearningApi.
11649
11805
  * @alias module:purecloud-platform-client-v2/api/LearningApi
@@ -11914,7 +12070,7 @@ if(moduleId===undefined||moduleId===null||moduleId===''){throw'Missing the requi
11914
12070
  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(){/**
11915
12071
  * License service.
11916
12072
  * @module purecloud-platform-client-v2/api/LicenseApi
11917
- * @version 226.0.0
12073
+ * @version 228.0.0
11918
12074
  *//**
11919
12075
  * Constructs a new LicenseApi.
11920
12076
  * @alias module:purecloud-platform-client-v2/api/LicenseApi
@@ -11968,7 +12124,7 @@ if(featureName===undefined||featureName===null||featureName===''){throw'Missing
11968
12124
  */},{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(){/**
11969
12125
  * Locations service.
11970
12126
  * @module purecloud-platform-client-v2/api/LocationsApi
11971
- * @version 226.0.0
12127
+ * @version 228.0.0
11972
12128
  *//**
11973
12129
  * Constructs a new LocationsApi.
11974
12130
  * @alias module:purecloud-platform-client-v2/api/LocationsApi
@@ -12027,7 +12183,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
12027
12183
  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(){/**
12028
12184
  * LogCapture service.
12029
12185
  * @module purecloud-platform-client-v2/api/LogCaptureApi
12030
- * @version 226.0.0
12186
+ * @version 228.0.0
12031
12187
  *//**
12032
12188
  * Constructs a new LogCaptureApi.
12033
12189
  * @alias module:purecloud-platform-client-v2/api/LogCaptureApi
@@ -12076,7 +12232,7 @@ if(userId===undefined||userId===null||userId===''){throw'Missing the required pa
12076
12232
  if(userId===undefined||userId===null||userId===''){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(){/**
12077
12233
  * Messaging service.
12078
12234
  * @module purecloud-platform-client-v2/api/MessagingApi
12079
- * @version 226.0.0
12235
+ * @version 228.0.0
12080
12236
  *//**
12081
12237
  * Constructs a new MessagingApi.
12082
12238
  * @alias module:purecloud-platform-client-v2/api/MessagingApi
@@ -12166,7 +12322,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
12166
12322
  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(){/**
12167
12323
  * MobileDevices service.
12168
12324
  * @module purecloud-platform-client-v2/api/MobileDevicesApi
12169
- * @version 226.0.0
12325
+ * @version 228.0.0
12170
12326
  *//**
12171
12327
  * Constructs a new MobileDevicesApi.
12172
12328
  * @alias module:purecloud-platform-client-v2/api/MobileDevicesApi
@@ -12205,7 +12361,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
12205
12361
  if(deviceId===undefined||deviceId===null||deviceId===''){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(){/**
12206
12362
  * Notifications service.
12207
12363
  * @module purecloud-platform-client-v2/api/NotificationsApi
12208
- * @version 226.0.0
12364
+ * @version 228.0.0
12209
12365
  *//**
12210
12366
  * Constructs a new NotificationsApi.
12211
12367
  * @alias module:purecloud-platform-client-v2/api/NotificationsApi
@@ -12262,7 +12418,7 @@ if(channelId===undefined||channelId===null||channelId===''){throw'Missing the re
12262
12418
  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(){/**
12263
12419
  * OAuth service.
12264
12420
  * @module purecloud-platform-client-v2/api/OAuthApi
12265
- * @version 226.0.0
12421
+ * @version 228.0.0
12266
12422
  *//**
12267
12423
  * Constructs a new OAuthApi.
12268
12424
  * @alias module:purecloud-platform-client-v2/api/OAuthApi
@@ -12347,7 +12503,7 @@ if(clientId===undefined||clientId===null||clientId===''){throw'Missing the requi
12347
12503
  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(){/**
12348
12504
  * Objects service.
12349
12505
  * @module purecloud-platform-client-v2/api/ObjectsApi
12350
- * @version 226.0.0
12506
+ * @version 228.0.0
12351
12507
  *//**
12352
12508
  * Constructs a new ObjectsApi.
12353
12509
  * @alias module:purecloud-platform-client-v2/api/ObjectsApi
@@ -12433,7 +12589,7 @@ if(divisionId===undefined||divisionId===null||divisionId===''){throw'Missing the
12433
12589
  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(){/**
12434
12590
  * OperationalEvents service.
12435
12591
  * @module purecloud-platform-client-v2/api/OperationalEventsApi
12436
- * @version 226.0.0
12592
+ * @version 228.0.0
12437
12593
  *//**
12438
12594
  * Constructs a new OperationalEventsApi.
12439
12595
  * @alias module:purecloud-platform-client-v2/api/OperationalEventsApi
@@ -12464,7 +12620,7 @@ if(eventDefinitionId===undefined||eventDefinitionId===null||eventDefinitionId===
12464
12620
  */},{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(){/**
12465
12621
  * Organization service.
12466
12622
  * @module purecloud-platform-client-v2/api/OrganizationApi
12467
- * @version 226.0.0
12623
+ * @version 228.0.0
12468
12624
  *//**
12469
12625
  * Constructs a new OrganizationApi.
12470
12626
  * @alias module:purecloud-platform-client-v2/api/OrganizationApi
@@ -12569,7 +12725,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
12569
12725
  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(){/**
12570
12726
  * OrganizationAuthorization service.
12571
12727
  * @module purecloud-platform-client-v2/api/OrganizationAuthorizationApi
12572
- * @version 226.0.0
12728
+ * @version 228.0.0
12573
12729
  *//**
12574
12730
  * Constructs a new OrganizationAuthorizationApi.
12575
12731
  * @alias module:purecloud-platform-client-v2/api/OrganizationAuthorizationApi
@@ -12903,7 +13059,7 @@ if(trustorOrgId===undefined||trustorOrgId===null||trustorOrgId===''){throw'Missi
12903
13059
  if(trusteeUserId===undefined||trusteeUserId===null||trusteeUserId===''){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(){/**
12904
13060
  * Outbound service.
12905
13061
  * @module purecloud-platform-client-v2/api/OutboundApi
12906
- * @version 226.0.0
13062
+ * @version 228.0.0
12907
13063
  *//**
12908
13064
  * Constructs a new OutboundApi.
12909
13065
  * @alias module:purecloud-platform-client-v2/api/OutboundApi
@@ -13073,6 +13229,11 @@ if(messagingCampaignId===undefined||messagingCampaignId===null||messagingCampaig
13073
13229
  * @param {String} sequenceId Sequence ID
13074
13230
  */},{key:"deleteOutboundSchedulesSequence",value:function deleteOutboundSchedulesSequence(sequenceId){// verify the required parameter 'sequenceId' is set
13075
13231
  if(sequenceId===undefined||sequenceId===null||sequenceId===''){throw'Missing the required parameter "sequenceId" when calling deleteOutboundSchedulesSequence';}return this.apiClient.callApi('/api/v2/outbound/schedules/sequences/{sequenceId}','DELETE',{'sequenceId':sequenceId},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
13232
+ * Delete a WhatsApp campaign schedule.
13233
+ *
13234
+ * @param {String} whatsAppCampaignId WhatsApp Campaign ID
13235
+ */},{key:"deleteOutboundSchedulesWhatsappcampaign",value:function deleteOutboundSchedulesWhatsappcampaign(whatsAppCampaignId){// verify the required parameter 'whatsAppCampaignId' is set
13236
+ if(whatsAppCampaignId===undefined||whatsAppCampaignId===null||whatsAppCampaignId===''){throw'Missing the required parameter "whatsAppCampaignId" when calling deleteOutboundSchedulesWhatsappcampaign';}return this.apiClient.callApi('/api/v2/outbound/schedules/whatsappcampaigns/{whatsAppCampaignId}','DELETE',{'whatsAppCampaignId':whatsAppCampaignId},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
13076
13237
  * Delete a dialer campaign sequence.
13077
13238
  *
13078
13239
  * @param {String} sequenceId Campaign Sequence ID
@@ -13588,6 +13749,14 @@ if(sequenceId===undefined||sequenceId===null||sequenceId===''){throw'Missing the
13588
13749
  * Query for a list of dialer sequence schedules.
13589
13750
  *
13590
13751
  */},{key:"getOutboundSchedulesSequences",value:function getOutboundSchedulesSequences(){return this.apiClient.callApi('/api/v2/outbound/schedules/sequences','GET',{},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
13752
+ * Get a WhatsApp campaign schedule.
13753
+ *
13754
+ * @param {String} whatsAppCampaignId WhatsApp Campaign ID
13755
+ */},{key:"getOutboundSchedulesWhatsappcampaign",value:function getOutboundSchedulesWhatsappcampaign(whatsAppCampaignId){// verify the required parameter 'whatsAppCampaignId' is set
13756
+ if(whatsAppCampaignId===undefined||whatsAppCampaignId===null||whatsAppCampaignId===''){throw'Missing the required parameter "whatsAppCampaignId" when calling getOutboundSchedulesWhatsappcampaign';}return this.apiClient.callApi('/api/v2/outbound/schedules/whatsappcampaigns/{whatsAppCampaignId}','GET',{'whatsAppCampaignId':whatsAppCampaignId},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
13757
+ * Query for a list of WhatsApp campaign schedules.
13758
+ *
13759
+ */},{key:"getOutboundSchedulesWhatsappcampaigns",value:function getOutboundSchedulesWhatsappcampaigns(){return this.apiClient.callApi('/api/v2/outbound/schedules/whatsappcampaigns','GET',{},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
13591
13760
  * Get a dialer campaign sequence.
13592
13761
  *
13593
13762
  * @param {String} sequenceId Campaign Sequence ID
@@ -14020,6 +14189,13 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
14020
14189
  */},{key:"putOutboundSchedulesSequence",value:function putOutboundSchedulesSequence(sequenceId,body){// verify the required parameter 'sequenceId' is set
14021
14190
  if(sequenceId===undefined||sequenceId===null||sequenceId===''){throw'Missing the required parameter "sequenceId" when calling putOutboundSchedulesSequence';}// verify the required parameter 'body' is set
14022
14191
  if(body===undefined||body===null){throw'Missing the required parameter "body" when calling putOutboundSchedulesSequence';}return this.apiClient.callApi('/api/v2/outbound/schedules/sequences/{sequenceId}','PUT',{'sequenceId':sequenceId},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}/**
14192
+ * Update a WhatsApp campaign schedule.
14193
+ *
14194
+ * @param {String} whatsAppCampaignId WhatsApp Campaign ID
14195
+ * @param {Object} body WhatsAppCampaignSchedule
14196
+ */},{key:"putOutboundSchedulesWhatsappcampaign",value:function putOutboundSchedulesWhatsappcampaign(whatsAppCampaignId,body){// verify the required parameter 'whatsAppCampaignId' is set
14197
+ if(whatsAppCampaignId===undefined||whatsAppCampaignId===null||whatsAppCampaignId===''){throw'Missing the required parameter "whatsAppCampaignId" when calling putOutboundSchedulesWhatsappcampaign';}// verify the required parameter 'body' is set
14198
+ if(body===undefined||body===null){throw'Missing the required parameter "body" when calling putOutboundSchedulesWhatsappcampaign';}return this.apiClient.callApi('/api/v2/outbound/schedules/whatsappcampaigns/{whatsAppCampaignId}','PUT',{'whatsAppCampaignId':whatsAppCampaignId},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}/**
14023
14199
  * Update a new campaign sequence.
14024
14200
  *
14025
14201
  * @param {String} sequenceId Campaign Sequence ID
@@ -14034,7 +14210,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
14034
14210
  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(){/**
14035
14211
  * Presence service.
14036
14212
  * @module purecloud-platform-client-v2/api/PresenceApi
14037
- * @version 226.0.0
14213
+ * @version 228.0.0
14038
14214
  *//**
14039
14215
  * Constructs a new PresenceApi.
14040
14216
  * @alias module:purecloud-platform-client-v2/api/PresenceApi
@@ -14207,7 +14383,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
14207
14383
  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(){/**
14208
14384
  * ProcessAutomation service.
14209
14385
  * @module purecloud-platform-client-v2/api/ProcessAutomationApi
14210
- * @version 226.0.0
14386
+ * @version 228.0.0
14211
14387
  *//**
14212
14388
  * Constructs a new ProcessAutomationApi.
14213
14389
  * @alias module:purecloud-platform-client-v2/api/ProcessAutomationApi
@@ -14270,7 +14446,7 @@ if(triggerId===undefined||triggerId===null||triggerId===''){throw'Missing the re
14270
14446
  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(){/**
14271
14447
  * Quality service.
14272
14448
  * @module purecloud-platform-client-v2/api/QualityApi
14273
- * @version 226.0.0
14449
+ * @version 228.0.0
14274
14450
  *//**
14275
14451
  * Constructs a new QualityApi.
14276
14452
  * @alias module:purecloud-platform-client-v2/api/QualityApi
@@ -14278,11 +14454,23 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
14278
14454
  * @param {module:purecloud-platform-client-v2/ApiClient} apiClient Optional API client implementation to use,
14279
14455
  * default to {@link module:purecloud-platform-client-v2/ApiClient#instance} if unspecified.
14280
14456
  */function QualityApi(apiClient){_classCallCheck(this,QualityApi);this.apiClient=apiClient||ApiClient.instance;}/**
14457
+ * Delete/cancel an async request for evaluation aggregates
14458
+ *
14459
+ * @param {String} jobId jobId
14460
+ * deleteAnalyticsEvaluationsAggregatesJob is a preview method and is subject to both breaking and non-breaking changes at any time without notice
14461
+ */return _createClass(QualityApi,[{key:"deleteAnalyticsEvaluationsAggregatesJob",value:function deleteAnalyticsEvaluationsAggregatesJob(jobId){// verify the required parameter 'jobId' is set
14462
+ if(jobId===undefined||jobId===null||jobId===''){throw'Missing the required parameter "jobId" when calling deleteAnalyticsEvaluationsAggregatesJob';}return this.apiClient.callApi('/api/v2/analytics/evaluations/aggregates/jobs/{jobId}','DELETE',{'jobId':jobId},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
14463
+ * Delete/cancel an async request for survey aggregates
14464
+ *
14465
+ * @param {String} jobId jobId
14466
+ * deleteAnalyticsSurveysAggregatesJob is a preview method and is subject to both breaking and non-breaking changes at any time without notice
14467
+ */},{key:"deleteAnalyticsSurveysAggregatesJob",value:function deleteAnalyticsSurveysAggregatesJob(jobId){// verify the required parameter 'jobId' is set
14468
+ if(jobId===undefined||jobId===null||jobId===''){throw'Missing the required parameter "jobId" when calling deleteAnalyticsSurveysAggregatesJob';}return this.apiClient.callApi('/api/v2/analytics/surveys/aggregates/jobs/{jobId}','DELETE',{'jobId':jobId},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
14281
14469
  * Delete a calibration by id.
14282
14470
  *
14283
14471
  * @param {String} calibrationId Calibration ID
14284
14472
  * @param {String} calibratorId calibratorId
14285
- */return _createClass(QualityApi,[{key:"deleteQualityCalibration",value:function deleteQualityCalibration(calibrationId,calibratorId){// verify the required parameter 'calibrationId' is set
14473
+ */},{key:"deleteQualityCalibration",value:function deleteQualityCalibration(calibrationId,calibratorId){// verify the required parameter 'calibrationId' is set
14286
14474
  if(calibrationId===undefined||calibrationId===null||calibrationId===''){throw'Missing the required parameter "calibrationId" when calling deleteQualityCalibration';}// verify the required parameter 'calibratorId' is set
14287
14475
  if(calibratorId===undefined||calibratorId===null){throw'Missing the required parameter "calibratorId" when calling deleteQualityCalibration';}return this.apiClient.callApi('/api/v2/quality/calibrations/{calibrationId}','DELETE',{'calibrationId':calibrationId},{'calibratorId':calibratorId},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
14288
14476
  * Delete an evaluation
@@ -14748,7 +14936,7 @@ if(customerSurveyUrl===undefined||customerSurveyUrl===null){throw'Missing the re
14748
14936
  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(){/**
14749
14937
  * Recording service.
14750
14938
  * @module purecloud-platform-client-v2/api/RecordingApi
14751
- * @version 226.0.0
14939
+ * @version 228.0.0
14752
14940
  *//**
14753
14941
  * Constructs a new RecordingApi.
14754
14942
  * @alias module:purecloud-platform-client-v2/api/RecordingApi
@@ -15147,7 +15335,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
15147
15335
  */},{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(){/**
15148
15336
  * ResponseManagement service.
15149
15337
  * @module purecloud-platform-client-v2/api/ResponseManagementApi
15150
- * @version 226.0.0
15338
+ * @version 228.0.0
15151
15339
  *//**
15152
15340
  * Constructs a new ResponseManagementApi.
15153
15341
  * @alias module:purecloud-platform-client-v2/api/ResponseManagementApi
@@ -15268,7 +15456,7 @@ if(responseAssetId===undefined||responseAssetId===null||responseAssetId===''){th
15268
15456
  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(){/**
15269
15457
  * Routing service.
15270
15458
  * @module purecloud-platform-client-v2/api/RoutingApi
15271
- * @version 226.0.0
15459
+ * @version 228.0.0
15272
15460
  *//**
15273
15461
  * Constructs a new RoutingApi.
15274
15462
  * @alias module:purecloud-platform-client-v2/api/RoutingApi
@@ -16324,7 +16512,7 @@ if(userId===undefined||userId===null||userId===''){throw'Missing the required pa
16324
16512
  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(){/**
16325
16513
  * SCIM service.
16326
16514
  * @module purecloud-platform-client-v2/api/SCIMApi
16327
- * @version 226.0.0
16515
+ * @version 228.0.0
16328
16516
  *//**
16329
16517
  * Constructs a new SCIMApi.
16330
16518
  * @alias module:purecloud-platform-client-v2/api/SCIMApi
@@ -16549,7 +16737,7 @@ if(userId===undefined||userId===null||userId===''){throw'Missing the required pa
16549
16737
  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(){/**
16550
16738
  * ScreenRecording service.
16551
16739
  * @module purecloud-platform-client-v2/api/ScreenRecordingApi
16552
- * @version 226.0.0
16740
+ * @version 228.0.0
16553
16741
  *//**
16554
16742
  * Constructs a new ScreenRecordingApi.
16555
16743
  * @alias module:purecloud-platform-client-v2/api/ScreenRecordingApi
@@ -16564,7 +16752,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
16564
16752
  */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(){/**
16565
16753
  * Scripts service.
16566
16754
  * @module purecloud-platform-client-v2/api/ScriptsApi
16567
- * @version 226.0.0
16755
+ * @version 228.0.0
16568
16756
  *//**
16569
16757
  * Constructs a new ScriptsApi.
16570
16758
  * @alias module:purecloud-platform-client-v2/api/ScriptsApi
@@ -16710,7 +16898,7 @@ if(scriptId===undefined||scriptId===null||scriptId===''){throw'Missing the requi
16710
16898
  */},{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(){/**
16711
16899
  * Search service.
16712
16900
  * @module purecloud-platform-client-v2/api/SearchApi
16713
- * @version 226.0.0
16901
+ * @version 228.0.0
16714
16902
  *//**
16715
16903
  * Constructs a new SearchApi.
16716
16904
  * @alias module:purecloud-platform-client-v2/api/SearchApi
@@ -16780,11 +16968,6 @@ if(q64===undefined||q64===null){throw'Missing the required parameter "q64" when
16780
16968
  * @param {Array.<String>} opts.expand expand
16781
16969
  */},{key:"getVoicemailSearch",value:function getVoicemailSearch(q64,opts){opts=opts||{};// verify the required parameter 'q64' is set
16782
16970
  if(q64===undefined||q64===null){throw'Missing the required parameter "q64" when calling getVoicemailSearch';}return this.apiClient.callApi('/api/v2/voicemail/search','GET',{},{'q64':q64,'expand':this.apiClient.buildCollectionParam(opts['expand'],'multi')},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
16783
- * Search resources.
16784
- *
16785
- * @param {Object} body Search request options
16786
- */},{key:"postAnalyticsConversationsTranscriptsQuery",value:function postAnalyticsConversationsTranscriptsQuery(body){// verify the required parameter 'body' is set
16787
- if(body===undefined||body===null){throw'Missing the required parameter "body" when calling postAnalyticsConversationsTranscriptsQuery';}return this.apiClient.callApi('/api/v2/analytics/conversations/transcripts/query','POST',{},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}/**
16788
16971
  * Search conversations
16789
16972
  *
16790
16973
  * @param {Object} body Search request options
@@ -16882,7 +17065,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
16882
17065
  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(){/**
16883
17066
  * Settings service.
16884
17067
  * @module purecloud-platform-client-v2/api/SettingsApi
16885
- * @version 226.0.0
17068
+ * @version 228.0.0
16886
17069
  *//**
16887
17070
  * Constructs a new SettingsApi.
16888
17071
  * @alias module:purecloud-platform-client-v2/api/SettingsApi
@@ -16954,7 +17137,7 @@ if(agentId===undefined||agentId===null||agentId===''){throw'Missing the required
16954
17137
  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(){/**
16955
17138
  * SocialMedia service.
16956
17139
  * @module purecloud-platform-client-v2/api/SocialMediaApi
16957
- * @version 226.0.0
17140
+ * @version 228.0.0
16958
17141
  *//**
16959
17142
  * Constructs a new SocialMediaApi.
16960
17143
  * @alias module:purecloud-platform-client-v2/api/SocialMediaApi
@@ -17302,7 +17485,7 @@ if(topicId===undefined||topicId===null||topicId===''){throw'Missing the required
17302
17485
  if(twitterIngestionRuleId===undefined||twitterIngestionRuleId===null||twitterIngestionRuleId===''){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(){/**
17303
17486
  * SpeechTextAnalytics service.
17304
17487
  * @module purecloud-platform-client-v2/api/SpeechTextAnalyticsApi
17305
- * @version 226.0.0
17488
+ * @version 228.0.0
17306
17489
  *//**
17307
17490
  * Constructs a new SpeechTextAnalyticsApi.
17308
17491
  * @alias module:purecloud-platform-client-v2/api/SpeechTextAnalyticsApi
@@ -17327,6 +17510,12 @@ if(dictionaryFeedbackId===undefined||dictionaryFeedbackId===null||dictionaryFeed
17327
17510
  * @param {Object} opts.forceDelete Indicates whether the program is forced to be deleted or not. Required when the program to delete is the default program. (default to false)
17328
17511
  */},{key:"deleteSpeechandtextanalyticsProgram",value:function deleteSpeechandtextanalyticsProgram(programId,opts){opts=opts||{};// verify the required parameter 'programId' is set
17329
17512
  if(programId===undefined||programId===null||programId===''){throw'Missing the required parameter "programId" when calling deleteSpeechandtextanalyticsProgram';}return this.apiClient.callApi('/api/v2/speechandtextanalytics/programs/{programId}','DELETE',{'programId':programId},{'forceDelete':opts['forceDelete']},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
17513
+ * Delete a Speech and Text Analytics Reprocessing job by Id
17514
+ *
17515
+ * @param {String} jobId The Id of the Reprocessing job
17516
+ * deleteSpeechandtextanalyticsReprocessingJob is a preview method and is subject to both breaking and non-breaking changes at any time without notice
17517
+ */},{key:"deleteSpeechandtextanalyticsReprocessingJob",value:function deleteSpeechandtextanalyticsReprocessingJob(jobId){// verify the required parameter 'jobId' is set
17518
+ if(jobId===undefined||jobId===null||jobId===''){throw'Missing the required parameter "jobId" when calling deleteSpeechandtextanalyticsReprocessingJob';}return this.apiClient.callApi('/api/v2/speechandtextanalytics/reprocessing/jobs/{jobId}','DELETE',{'jobId':jobId},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
17330
17519
  * Delete All Speech and Text Analytics SentimentFeedback
17331
17520
  *
17332
17521
  */},{key:"deleteSpeechandtextanalyticsSentimentfeedback",value:function deleteSpeechandtextanalyticsSentimentfeedback(){return this.apiClient.callApi('/api/v2/speechandtextanalytics/sentimentfeedback','DELETE',{},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
@@ -17382,6 +17571,11 @@ if(communicationId===undefined||communicationId===null||communicationId===''){th
17382
17571
  */},{key:"getSpeechandtextanalyticsConversationCommunicationTranscripturls",value:function getSpeechandtextanalyticsConversationCommunicationTranscripturls(conversationId,communicationId){// verify the required parameter 'conversationId' is set
17383
17572
  if(conversationId===undefined||conversationId===null||conversationId===''){throw'Missing the required parameter "conversationId" when calling getSpeechandtextanalyticsConversationCommunicationTranscripturls';}// verify the required parameter 'communicationId' is set
17384
17573
  if(communicationId===undefined||communicationId===null||communicationId===''){throw'Missing the required parameter "communicationId" when calling getSpeechandtextanalyticsConversationCommunicationTranscripturls';}return this.apiClient.callApi('/api/v2/speechandtextanalytics/conversations/{conversationId}/communications/{communicationId}/transcripturls','GET',{'conversationId':conversationId,'communicationId':communicationId},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
17574
+ * Get sentiment data
17575
+ *
17576
+ * @param {String} conversationId The conversation ID of the sentiment data
17577
+ */},{key:"getSpeechandtextanalyticsConversationSentiments",value:function getSpeechandtextanalyticsConversationSentiments(conversationId){// verify the required parameter 'conversationId' is set
17578
+ if(conversationId===undefined||conversationId===null||conversationId===''){throw'Missing the required parameter "conversationId" when calling getSpeechandtextanalyticsConversationSentiments';}return this.apiClient.callApi('/api/v2/speechandtextanalytics/conversations/{conversationId}/sentiments','GET',{'conversationId':conversationId},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
17385
17579
  * Get conversation summaries by conversation id.
17386
17580
  *
17387
17581
  * @param {String} conversationId The conversation ID of the summaries
@@ -17458,6 +17652,27 @@ if(jobId===undefined||jobId===null||jobId===''){throw'Missing the required param
17458
17652
  * @param {String} opts.nextPage The key for listing the next page
17459
17653
  * @param {Number} opts.pageSize The page size for the listing (default to 20)
17460
17654
  */},{key:"getSpeechandtextanalyticsProgramsUnpublished",value:function getSpeechandtextanalyticsProgramsUnpublished(opts){opts=opts||{};return this.apiClient.callApi('/api/v2/speechandtextanalytics/programs/unpublished','GET',{},{'nextPage':opts['nextPage'],'pageSize':opts['pageSize']},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
17655
+ * Get a Speech and Text Analytics reprocess job by id
17656
+ *
17657
+ * @param {String} jobId The Id of the Reprocessing job
17658
+ * getSpeechandtextanalyticsReprocessingJob is a preview method and is subject to both breaking and non-breaking changes at any time without notice
17659
+ */},{key:"getSpeechandtextanalyticsReprocessingJob",value:function getSpeechandtextanalyticsReprocessingJob(jobId){// verify the required parameter 'jobId' is set
17660
+ if(jobId===undefined||jobId===null||jobId===''){throw'Missing the required parameter "jobId" when calling getSpeechandtextanalyticsReprocessingJob';}return this.apiClient.callApi('/api/v2/speechandtextanalytics/reprocessing/jobs/{jobId}','GET',{'jobId':jobId},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
17661
+ * Get a Speech and Text Analytics Reprocessing interactions statuses by job id
17662
+ *
17663
+ * @param {String} jobId The Id of the Reprocessing job
17664
+ * getSpeechandtextanalyticsReprocessingJobInteractions is a preview method and is subject to both breaking and non-breaking changes at any time without notice
17665
+ */},{key:"getSpeechandtextanalyticsReprocessingJobInteractions",value:function getSpeechandtextanalyticsReprocessingJobInteractions(jobId){// verify the required parameter 'jobId' is set
17666
+ if(jobId===undefined||jobId===null||jobId===''){throw'Missing the required parameter "jobId" when calling getSpeechandtextanalyticsReprocessingJobInteractions';}return this.apiClient.callApi('/api/v2/speechandtextanalytics/reprocessing/jobs/{jobId}/interactions','GET',{'jobId':jobId},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
17667
+ * Get the list of Speech and Text Analytics reprocess jobs
17668
+ *
17669
+ * @param {Object} opts Optional parameters
17670
+ * @param {Number} opts.pageSize The page size for the listing. The max that will be returned is 100. Default is 25.
17671
+ * @param {Number} opts.pageNumber The page number for the listing. Defaults to 1.
17672
+ * @param {Object} opts.sortOrder Results are sorted by dateCreated. Please choose the sort order. The default is descending (desc).
17673
+ * @param {String} opts.name Case insensitive partial name to filter by.
17674
+ * getSpeechandtextanalyticsReprocessingJobs is a preview method and is subject to both breaking and non-breaking changes at any time without notice
17675
+ */},{key:"getSpeechandtextanalyticsReprocessingJobs",value:function getSpeechandtextanalyticsReprocessingJobs(opts){opts=opts||{};return this.apiClient.callApi('/api/v2/speechandtextanalytics/reprocessing/jobs','GET',{},{'pageSize':opts['pageSize'],'pageNumber':opts['pageNumber'],'sortOrder':opts['sortOrder'],'name':opts['name']},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
17461
17676
  * Get the list of Speech and Text Analytics sentiment supported dialects
17462
17677
  *
17463
17678
  */},{key:"getSpeechandtextanalyticsSentimentDialects",value:function getSpeechandtextanalyticsSentimentDialects(){return this.apiClient.callApi('/api/v2/speechandtextanalytics/sentiment/dialects','GET',{},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
@@ -17552,6 +17767,12 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
17552
17767
  * @param {Object} body The publish programs job to create
17553
17768
  */},{key:"postSpeechandtextanalyticsProgramsPublishjobs",value:function postSpeechandtextanalyticsProgramsPublishjobs(body){// verify the required parameter 'body' is set
17554
17769
  if(body===undefined||body===null){throw'Missing the required parameter "body" when calling postSpeechandtextanalyticsProgramsPublishjobs';}return this.apiClient.callApi('/api/v2/speechandtextanalytics/programs/publishjobs','POST',{},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}/**
17770
+ * Create a Speech and Text Analytics reprocess job.
17771
+ *
17772
+ * @param {Object} body The ReprocessJob to create
17773
+ * postSpeechandtextanalyticsReprocessingJobs is a preview method and is subject to both breaking and non-breaking changes at any time without notice
17774
+ */},{key:"postSpeechandtextanalyticsReprocessingJobs",value:function postSpeechandtextanalyticsReprocessingJobs(body){// verify the required parameter 'body' is set
17775
+ if(body===undefined||body===null){throw'Missing the required parameter "body" when calling postSpeechandtextanalyticsReprocessingJobs';}return this.apiClient.callApi('/api/v2/speechandtextanalytics/reprocessing/jobs','POST',{},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}/**
17555
17776
  * Create a Speech and Text Analytics SentimentFeedback
17556
17777
  *
17557
17778
  * @param {Object} body The SentimentFeedback to create
@@ -17633,7 +17854,7 @@ if(topicId===undefined||topicId===null||topicId===''){throw'Missing the required
17633
17854
  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(){/**
17634
17855
  * Stations service.
17635
17856
  * @module purecloud-platform-client-v2/api/StationsApi
17636
- * @version 226.0.0
17857
+ * @version 228.0.0
17637
17858
  *//**
17638
17859
  * Constructs a new StationsApi.
17639
17860
  * @alias module:purecloud-platform-client-v2/api/StationsApi
@@ -17665,7 +17886,7 @@ if(stationId===undefined||stationId===null||stationId===''){throw'Missing the re
17665
17886
  */},{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(){/**
17666
17887
  * Suggest service.
17667
17888
  * @module purecloud-platform-client-v2/api/SuggestApi
17668
- * @version 226.0.0
17889
+ * @version 228.0.0
17669
17890
  *//**
17670
17891
  * Constructs a new SuggestApi.
17671
17892
  * @alias module:purecloud-platform-client-v2/api/SuggestApi
@@ -17705,7 +17926,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
17705
17926
  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(){/**
17706
17927
  * TaskManagement service.
17707
17928
  * @module purecloud-platform-client-v2/api/TaskManagementApi
17708
- * @version 226.0.0
17929
+ * @version 228.0.0
17709
17930
  *//**
17710
17931
  * Constructs a new TaskManagementApi.
17711
17932
  * @alias module:purecloud-platform-client-v2/api/TaskManagementApi
@@ -18213,7 +18434,7 @@ if(schemaId===undefined||schemaId===null||schemaId===''){throw'Missing the requi
18213
18434
  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(){/**
18214
18435
  * Teams service.
18215
18436
  * @module purecloud-platform-client-v2/api/TeamsApi
18216
- * @version 226.0.0
18437
+ * @version 228.0.0
18217
18438
  *//**
18218
18439
  * Constructs a new TeamsApi.
18219
18440
  * @alias module:purecloud-platform-client-v2/api/TeamsApi
@@ -18293,7 +18514,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
18293
18514
  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(){/**
18294
18515
  * Telephony service.
18295
18516
  * @module purecloud-platform-client-v2/api/TelephonyApi
18296
- * @version 226.0.0
18517
+ * @version 228.0.0
18297
18518
  *//**
18298
18519
  * Constructs a new TelephonyApi.
18299
18520
  * @alias module:purecloud-platform-client-v2/api/TelephonyApi
@@ -18301,9 +18522,19 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
18301
18522
  * @param {module:purecloud-platform-client-v2/ApiClient} apiClient Optional API client implementation to use,
18302
18523
  * default to {@link module:purecloud-platform-client-v2/ApiClient#instance} if unspecified.
18303
18524
  */function TelephonyApi(apiClient){_classCallCheck(this,TelephonyApi);this.apiClient=apiClient||ApiClient.instance;}/**
18525
+ * Get an agent's greetings.
18526
+ *
18527
+ * @param {String} agentId User ID
18528
+ * getTelephonyAgentGreetings is a preview method and is subject to both breaking and non-breaking changes at any time without notice
18529
+ */return _createClass(TelephonyApi,[{key:"getTelephonyAgentGreetings",value:function getTelephonyAgentGreetings(agentId){// verify the required parameter 'agentId' is set
18530
+ if(agentId===undefined||agentId===null||agentId===''){throw'Missing the required parameter "agentId" when calling getTelephonyAgentGreetings';}return this.apiClient.callApi('/api/v2/telephony/agents/{agentId}/greetings','GET',{'agentId':agentId},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
18531
+ * Get the agent's own greetings.
18532
+ *
18533
+ * getTelephonyAgentsGreetingsMe is a preview method and is subject to both breaking and non-breaking changes at any time without notice
18534
+ */},{key:"getTelephonyAgentsGreetingsMe",value:function getTelephonyAgentsGreetingsMe(){return this.apiClient.callApi('/api/v2/telephony/agents/greetings/me','GET',{},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
18304
18535
  * Retrieve the list of AWS regions media can stream through.
18305
18536
  *
18306
- */return _createClass(TelephonyApi,[{key:"getTelephonyMediaregions",value:function getTelephonyMediaregions(){return this.apiClient.callApi('/api/v2/telephony/mediaregions','GET',{},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
18537
+ */},{key:"getTelephonyMediaregions",value:function getTelephonyMediaregions(){return this.apiClient.callApi('/api/v2/telephony/mediaregions','GET',{},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
18307
18538
  * Get a SIP message.
18308
18539
  * Get the raw form of the SIP message
18309
18540
  * @param {String} conversationId Conversation id
@@ -18337,10 +18568,24 @@ if(downloadId===undefined||downloadId===null||downloadId===''){throw'Missing the
18337
18568
  *
18338
18569
  * @param {Object} sIPSearchPublicRequest
18339
18570
  */},{key:"postTelephonySiptracesDownload",value:function postTelephonySiptracesDownload(sIPSearchPublicRequest){// verify the required parameter 'sIPSearchPublicRequest' is set
18340
- 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(){/**
18571
+ 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']);}/**
18572
+ * Updates an agent's greetings.
18573
+ *
18574
+ * @param {String} agentId User ID
18575
+ * @param {Object} body Agent Greeting
18576
+ * putTelephonyAgentGreetings is a preview method and is subject to both breaking and non-breaking changes at any time without notice
18577
+ */},{key:"putTelephonyAgentGreetings",value:function putTelephonyAgentGreetings(agentId,body){// verify the required parameter 'agentId' is set
18578
+ if(agentId===undefined||agentId===null||agentId===''){throw'Missing the required parameter "agentId" when calling putTelephonyAgentGreetings';}// verify the required parameter 'body' is set
18579
+ if(body===undefined||body===null){throw'Missing the required parameter "body" when calling putTelephonyAgentGreetings';}return this.apiClient.callApi('/api/v2/telephony/agents/{agentId}/greetings','PUT',{'agentId':agentId},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}/**
18580
+ * Updates the agent's own greetings.
18581
+ *
18582
+ * @param {Object} body Agent Greeting
18583
+ * putTelephonyAgentsGreetingsMe is a preview method and is subject to both breaking and non-breaking changes at any time without notice
18584
+ */},{key:"putTelephonyAgentsGreetingsMe",value:function putTelephonyAgentsGreetingsMe(body){// verify the required parameter 'body' is set
18585
+ if(body===undefined||body===null){throw'Missing the required parameter "body" when calling putTelephonyAgentsGreetingsMe';}return this.apiClient.callApi('/api/v2/telephony/agents/greetings/me','PUT',{},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}}]);}();var TelephonyProvidersEdgeApi=/*#__PURE__*/function(){/**
18341
18586
  * TelephonyProvidersEdge service.
18342
18587
  * @module purecloud-platform-client-v2/api/TelephonyProvidersEdgeApi
18343
- * @version 226.0.0
18588
+ * @version 228.0.0
18344
18589
  *//**
18345
18590
  * Constructs a new TelephonyProvidersEdgeApi.
18346
18591
  * @alias module:purecloud-platform-client-v2/api/TelephonyProvidersEdgeApi
@@ -19188,7 +19433,7 @@ if(trunkBaseSettingsId===undefined||trunkBaseSettingsId===null||trunkBaseSetting
19188
19433
  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(){/**
19189
19434
  * Textbots service.
19190
19435
  * @module purecloud-platform-client-v2/api/TextbotsApi
19191
- * @version 226.0.0
19436
+ * @version 228.0.0
19192
19437
  *//**
19193
19438
  * Constructs a new TextbotsApi.
19194
19439
  * @alias module:purecloud-platform-client-v2/api/TextbotsApi
@@ -19224,7 +19469,7 @@ if(launchRequest===undefined||launchRequest===null){throw'Missing the required p
19224
19469
  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(){/**
19225
19470
  * Tokens service.
19226
19471
  * @module purecloud-platform-client-v2/api/TokensApi
19227
- * @version 226.0.0
19472
+ * @version 228.0.0
19228
19473
  *//**
19229
19474
  * Constructs a new TokensApi.
19230
19475
  * @alias module:purecloud-platform-client-v2/api/TokensApi
@@ -19258,7 +19503,7 @@ if(userId===undefined||userId===null||userId===''){throw'Missing the required pa
19258
19503
  */},{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(){/**
19259
19504
  * Uploads service.
19260
19505
  * @module purecloud-platform-client-v2/api/UploadsApi
19261
- * @version 226.0.0
19506
+ * @version 228.0.0
19262
19507
  *//**
19263
19508
  * Constructs a new UploadsApi.
19264
19509
  * @alias module:purecloud-platform-client-v2/api/UploadsApi
@@ -19326,7 +19571,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
19326
19571
  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(){/**
19327
19572
  * Usage service.
19328
19573
  * @module purecloud-platform-client-v2/api/UsageApi
19329
- * @version 226.0.0
19574
+ * @version 228.0.0
19330
19575
  *//**
19331
19576
  * Constructs a new UsageApi.
19332
19577
  * @alias module:purecloud-platform-client-v2/api/UsageApi
@@ -19348,6 +19593,24 @@ if(clientId===undefined||clientId===null||clientId===''){throw'Missing the requi
19348
19593
  * @param {String} opts.days Previous number of days to query (default to 7)
19349
19594
  */},{key:"getOauthClientUsageSummary",value:function getOauthClientUsageSummary(clientId,opts){opts=opts||{};// verify the required parameter 'clientId' is set
19350
19595
  if(clientId===undefined||clientId===null||clientId===''){throw'Missing the required parameter "clientId" when calling getOauthClientUsageSummary';}return this.apiClient.callApi('/api/v2/oauth/clients/{clientId}/usage/summary','GET',{'clientId':clientId},{'days':opts['days']},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
19596
+ * Get the status and results of the usage query
19597
+ *
19598
+ * @param {String} jobId jobId
19599
+ * @param {Object} opts Optional parameters
19600
+ * @param {Number} opts.pageSize Page size of the results. Max is 1000. (default to 100)
19601
+ * @param {String} opts.after The cursor that points to the end of the set of entities that has been returned.
19602
+ */},{key:"getUsageAggregatesQueryJob",value:function getUsageAggregatesQueryJob(jobId,opts){opts=opts||{};// verify the required parameter 'jobId' is set
19603
+ if(jobId===undefined||jobId===null||jobId===''){throw'Missing the required parameter "jobId" when calling getUsageAggregatesQueryJob';}return this.apiClient.callApi('/api/v2/usage/aggregates/query/jobs/{jobId}','GET',{'jobId':jobId},{'pageSize':opts['pageSize'],'after':opts['after']},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
19604
+ * Get the status and results of the usage query
19605
+ *
19606
+ * @param {String} clientId clientId
19607
+ * @param {String} jobId jobId
19608
+ * @param {Object} opts Optional parameters
19609
+ * @param {Number} opts.pageSize Page size of the results. Max is 1000. (default to 100)
19610
+ * @param {String} opts.after The cursor that points to the end of the set of entities that has been returned.
19611
+ */},{key:"getUsageClientClientIdAggregatesQueryJob",value:function getUsageClientClientIdAggregatesQueryJob(clientId,jobId,opts){opts=opts||{};// verify the required parameter 'clientId' is set
19612
+ if(clientId===undefined||clientId===null||clientId===''){throw'Missing the required parameter "clientId" when calling getUsageClientClientIdAggregatesQueryJob';}// verify the required parameter 'jobId' is set
19613
+ if(jobId===undefined||jobId===null||jobId===''){throw'Missing the required parameter "jobId" when calling getUsageClientClientIdAggregatesQueryJob';}return this.apiClient.callApi('/api/v2/usage/client/{clientId}/aggregates/query/jobs/{jobId}','GET',{'clientId':clientId,'jobId':jobId},{'pageSize':opts['pageSize'],'after':opts['after']},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
19351
19614
  * Get the results of a usage query
19352
19615
  *
19353
19616
  * @param {String} executionId ID of the query execution
@@ -19368,6 +19631,18 @@ if(executionId===undefined||executionId===null||executionId===''){throw'Missing
19368
19631
  */},{key:"postOauthClientUsageQuery",value:function postOauthClientUsageQuery(clientId,body){// verify the required parameter 'clientId' is set
19369
19632
  if(clientId===undefined||clientId===null||clientId===''){throw'Missing the required parameter "clientId" when calling postOauthClientUsageQuery';}// verify the required parameter 'body' is set
19370
19633
  if(body===undefined||body===null){throw'Missing the required parameter "body" when calling postOauthClientUsageQuery';}return this.apiClient.callApi('/api/v2/oauth/clients/{clientId}/usage/query','POST',{'clientId':clientId},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}/**
19634
+ * Query your organization's public api usage.
19635
+ * After calling this method, you will need to save the queryExecutionId from the response and use it in a call to the results endpoint to get the results
19636
+ * @param {Object} body Query
19637
+ */},{key:"postUsageAggregatesQueryJobs",value:function postUsageAggregatesQueryJobs(body){// verify the required parameter 'body' is set
19638
+ if(body===undefined||body===null){throw'Missing the required parameter "body" when calling postUsageAggregatesQueryJobs';}return this.apiClient.callApi('/api/v2/usage/aggregates/query/jobs','POST',{},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}/**
19639
+ * Query your client's public api usage.
19640
+ * After calling this method, you will need to save the queryExecutionId from the response and use it in a call to the results endpoint to get the results
19641
+ * @param {String} clientId clientId
19642
+ * @param {Object} body Query
19643
+ */},{key:"postUsageClientClientIdAggregatesQueryJobs",value:function postUsageClientClientIdAggregatesQueryJobs(clientId,body){// verify the required parameter 'clientId' is set
19644
+ if(clientId===undefined||clientId===null||clientId===''){throw'Missing the required parameter "clientId" when calling postUsageClientClientIdAggregatesQueryJobs';}// verify the required parameter 'body' is set
19645
+ if(body===undefined||body===null){throw'Missing the required parameter "body" when calling postUsageClientClientIdAggregatesQueryJobs';}return this.apiClient.callApi('/api/v2/usage/client/{clientId}/aggregates/query/jobs','POST',{'clientId':clientId},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}/**
19371
19646
  * Query organization API Usage -
19372
19647
  * After calling this method, you will then need to poll for the query results based on the returned execution Id
19373
19648
  * @param {Object} body Query
@@ -19380,7 +19655,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
19380
19655
  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(){/**
19381
19656
  * UserRecordings service.
19382
19657
  * @module purecloud-platform-client-v2/api/UserRecordingsApi
19383
- * @version 226.0.0
19658
+ * @version 228.0.0
19384
19659
  *//**
19385
19660
  * Constructs a new UserRecordingsApi.
19386
19661
  * @alias module:purecloud-platform-client-v2/api/UserRecordingsApi
@@ -19437,7 +19712,7 @@ if(recordingId===undefined||recordingId===null||recordingId===''){throw'Missing
19437
19712
  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(){/**
19438
19713
  * Users service.
19439
19714
  * @module purecloud-platform-client-v2/api/UsersApi
19440
- * @version 226.0.0
19715
+ * @version 228.0.0
19441
19716
  *//**
19442
19717
  * Constructs a new UsersApi.
19443
19718
  * @alias module:purecloud-platform-client-v2/api/UsersApi
@@ -19445,10 +19720,16 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
19445
19720
  * @param {module:purecloud-platform-client-v2/ApiClient} apiClient Optional API client implementation to use,
19446
19721
  * default to {@link module:purecloud-platform-client-v2/ApiClient#instance} if unspecified.
19447
19722
  */function UsersApi(apiClient){_classCallCheck(this,UsersApi);this.apiClient=apiClient||ApiClient.instance;}/**
19723
+ * Delete/cancel an async request for user aggregates
19724
+ *
19725
+ * @param {String} jobId jobId
19726
+ * deleteAnalyticsUsersAggregatesJob is a preview method and is subject to both breaking and non-breaking changes at any time without notice
19727
+ */return _createClass(UsersApi,[{key:"deleteAnalyticsUsersAggregatesJob",value:function deleteAnalyticsUsersAggregatesJob(jobId){// verify the required parameter 'jobId' is set
19728
+ if(jobId===undefined||jobId===null||jobId===''){throw'Missing the required parameter "jobId" when calling deleteAnalyticsUsersAggregatesJob';}return this.apiClient.callApi('/api/v2/analytics/users/aggregates/jobs/{jobId}','DELETE',{'jobId':jobId},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
19448
19729
  * Delete/cancel an async request
19449
19730
  *
19450
19731
  * @param {String} jobId jobId
19451
- */return _createClass(UsersApi,[{key:"deleteAnalyticsUsersDetailsJob",value:function deleteAnalyticsUsersDetailsJob(jobId){// verify the required parameter 'jobId' is set
19732
+ */},{key:"deleteAnalyticsUsersDetailsJob",value:function deleteAnalyticsUsersDetailsJob(jobId){// verify the required parameter 'jobId' is set
19452
19733
  if(jobId===undefined||jobId===null||jobId===''){throw'Missing the required parameter "jobId" when calling deleteAnalyticsUsersDetailsJob';}return this.apiClient.callApi('/api/v2/analytics/users/details/jobs/{jobId}','DELETE',{'jobId':jobId},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
19453
19734
  * Delete a grant of a role in a division
19454
19735
  *
@@ -20175,7 +20456,7 @@ if(verifierId===undefined||verifierId===null||verifierId===''){throw'Missing the
20175
20456
  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(){/**
20176
20457
  * Utilities service.
20177
20458
  * @module purecloud-platform-client-v2/api/UtilitiesApi
20178
- * @version 226.0.0
20459
+ * @version 228.0.0
20179
20460
  *//**
20180
20461
  * Constructs a new UtilitiesApi.
20181
20462
  * @alias module:purecloud-platform-client-v2/api/UtilitiesApi
@@ -20202,7 +20483,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
20202
20483
  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(){/**
20203
20484
  * Voicemail service.
20204
20485
  * @module purecloud-platform-client-v2/api/VoicemailApi
20205
- * @version 226.0.0
20486
+ * @version 228.0.0
20206
20487
  *//**
20207
20488
  * Constructs a new VoicemailApi.
20208
20489
  * @alias module:purecloud-platform-client-v2/api/VoicemailApi
@@ -20364,7 +20645,7 @@ if(userId===undefined||userId===null||userId===''){throw'Missing the required pa
20364
20645
  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(){/**
20365
20646
  * WebChat service.
20366
20647
  * @module purecloud-platform-client-v2/api/WebChatApi
20367
- * @version 226.0.0
20648
+ * @version 228.0.0
20368
20649
  *//**
20369
20650
  * Constructs a new WebChatApi.
20370
20651
  * @alias module:purecloud-platform-client-v2/api/WebChatApi
@@ -20379,7 +20660,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
20379
20660
  */return _createClass(WebChatApi,[{key:"deleteWebchatDeployment",value:function deleteWebchatDeployment(deploymentId){// verify the required parameter 'deploymentId' is set
20380
20661
  if(deploymentId===undefined||deploymentId===null||deploymentId===''){throw'Missing the required parameter "deploymentId" when calling deleteWebchatDeployment';}return this.apiClient.callApi('/api/v2/webchat/deployments/{deploymentId}','DELETE',{'deploymentId':deploymentId},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
20381
20662
  * Remove a member from a chat conversation
20382
- * This endpoint is deprecated. Please see the article https://help.mypurecloud.com/articles/deprecation-removal-of-acd-web-chat-version-2/
20663
+ * This endpoint is deprecated. Please see the article https://help.genesys.cloud/articles/deprecation-removal-of-acd-web-chat-version-2/
20383
20664
  * @param {String} conversationId conversationId
20384
20665
  * @param {String} memberId memberId
20385
20666
  * @deprecated
@@ -20400,7 +20681,7 @@ if(deploymentId===undefined||deploymentId===null||deploymentId===''){throw'Missi
20400
20681
  * @deprecated
20401
20682
  */},{key:"getWebchatDeployments",value:function getWebchatDeployments(){return this.apiClient.callApi('/api/v2/webchat/deployments','GET',{},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
20402
20683
  * Get a media request in the conversation
20403
- * This endpoint is deprecated. Please see the article https://help.mypurecloud.com/articles/deprecation-legacy-co-browse-and-screenshare/
20684
+ * This endpoint is deprecated. Please see the article https://help.genesys.cloud/articles/deprecation-legacy-co-browse-and-screenshare/
20404
20685
  * @param {String} conversationId conversationId
20405
20686
  * @param {String} mediaRequestId mediaRequestId
20406
20687
  * @deprecated
@@ -20408,13 +20689,13 @@ if(deploymentId===undefined||deploymentId===null||deploymentId===''){throw'Missi
20408
20689
  if(conversationId===undefined||conversationId===null||conversationId===''){throw'Missing the required parameter "conversationId" when calling getWebchatGuestConversationMediarequest';}// verify the required parameter 'mediaRequestId' is set
20409
20690
  if(mediaRequestId===undefined||mediaRequestId===null||mediaRequestId===''){throw'Missing the required parameter "mediaRequestId" when calling getWebchatGuestConversationMediarequest';}return this.apiClient.callApi('/api/v2/webchat/guest/conversations/{conversationId}/mediarequests/{mediaRequestId}','GET',{'conversationId':conversationId,'mediaRequestId':mediaRequestId},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
20410
20691
  * Get all media requests to the guest in the conversation
20411
- * This endpoint is deprecated. Please see the article https://help.mypurecloud.com/articles/deprecation-removal-of-acd-web-chat-version-2/
20692
+ * This endpoint is deprecated. Please see the article https://help.genesys.cloud/articles/deprecation-removal-of-acd-web-chat-version-2/
20412
20693
  * @param {String} conversationId conversationId
20413
20694
  * @deprecated
20414
20695
  */},{key:"getWebchatGuestConversationMediarequests",value:function getWebchatGuestConversationMediarequests(conversationId){// verify the required parameter 'conversationId' is set
20415
20696
  if(conversationId===undefined||conversationId===null||conversationId===''){throw'Missing the required parameter "conversationId" when calling getWebchatGuestConversationMediarequests';}return this.apiClient.callApi('/api/v2/webchat/guest/conversations/{conversationId}/mediarequests','GET',{'conversationId':conversationId},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
20416
20697
  * Get a web chat conversation member
20417
- * This endpoint is deprecated. Please see the article https://help.mypurecloud.com/articles/deprecation-removal-of-acd-web-chat-version-2/
20698
+ * This endpoint is deprecated. Please see the article https://help.genesys.cloud/articles/deprecation-removal-of-acd-web-chat-version-2/
20418
20699
  * @param {String} conversationId conversationId
20419
20700
  * @param {String} memberId memberId
20420
20701
  * @deprecated
@@ -20422,7 +20703,7 @@ if(conversationId===undefined||conversationId===null||conversationId===''){throw
20422
20703
  if(conversationId===undefined||conversationId===null||conversationId===''){throw'Missing the required parameter "conversationId" when calling getWebchatGuestConversationMember';}// verify the required parameter 'memberId' is set
20423
20704
  if(memberId===undefined||memberId===null||memberId===''){throw'Missing the required parameter "memberId" when calling getWebchatGuestConversationMember';}return this.apiClient.callApi('/api/v2/webchat/guest/conversations/{conversationId}/members/{memberId}','GET',{'conversationId':conversationId,'memberId':memberId},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
20424
20705
  * Get the members of a chat conversation.
20425
- * This endpoint is deprecated. Please see the article https://help.mypurecloud.com/articles/deprecation-removal-of-acd-web-chat-version-2/
20706
+ * This endpoint is deprecated. Please see the article https://help.genesys.cloud/articles/deprecation-removal-of-acd-web-chat-version-2/
20426
20707
  * @param {String} conversationId conversationId
20427
20708
  * @param {Object} opts Optional parameters
20428
20709
  * @param {Number} opts.pageSize The number of entries to return per page, or omitted for the default. (default to 25)
@@ -20432,7 +20713,7 @@ if(memberId===undefined||memberId===null||memberId===''){throw'Missing the requi
20432
20713
  */},{key:"getWebchatGuestConversationMembers",value:function getWebchatGuestConversationMembers(conversationId,opts){opts=opts||{};// verify the required parameter 'conversationId' is set
20433
20714
  if(conversationId===undefined||conversationId===null||conversationId===''){throw'Missing the required parameter "conversationId" when calling getWebchatGuestConversationMembers';}return this.apiClient.callApi('/api/v2/webchat/guest/conversations/{conversationId}/members','GET',{'conversationId':conversationId},{'pageSize':opts['pageSize'],'pageNumber':opts['pageNumber'],'excludeDisconnectedMembers':opts['excludeDisconnectedMembers']},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
20434
20715
  * Get a web chat conversation message
20435
- * This endpoint is deprecated. Please see the article https://help.mypurecloud.com/articles/deprecation-removal-of-acd-web-chat-version-2/
20716
+ * This endpoint is deprecated. Please see the article https://help.genesys.cloud/articles/deprecation-removal-of-acd-web-chat-version-2/
20436
20717
  * @param {String} conversationId conversationId
20437
20718
  * @param {String} messageId messageId
20438
20719
  * @deprecated
@@ -20440,7 +20721,7 @@ if(conversationId===undefined||conversationId===null||conversationId===''){throw
20440
20721
  if(conversationId===undefined||conversationId===null||conversationId===''){throw'Missing the required parameter "conversationId" when calling getWebchatGuestConversationMessage';}// verify the required parameter 'messageId' is set
20441
20722
  if(messageId===undefined||messageId===null||messageId===''){throw'Missing the required parameter "messageId" when calling getWebchatGuestConversationMessage';}return this.apiClient.callApi('/api/v2/webchat/guest/conversations/{conversationId}/messages/{messageId}','GET',{'conversationId':conversationId,'messageId':messageId},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
20442
20723
  * Get the messages of a chat conversation.
20443
- * This endpoint is deprecated. Please see the article https://help.mypurecloud.com/articles/deprecation-removal-of-acd-web-chat-version-2/
20724
+ * This endpoint is deprecated. Please see the article https://help.genesys.cloud/articles/deprecation-removal-of-acd-web-chat-version-2/
20444
20725
  * @param {String} conversationId conversationId
20445
20726
  * @param {Object} opts Optional parameters
20446
20727
  * @param {String} opts.after If available, get the messages chronologically after the id of this message
@@ -20454,7 +20735,7 @@ if(conversationId===undefined||conversationId===null||conversationId===''){throw
20454
20735
  *
20455
20736
  */},{key:"getWebchatSettings",value:function getWebchatSettings(){return this.apiClient.callApi('/api/v2/webchat/settings','GET',{},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
20456
20737
  * Update a media request in the conversation, setting the state to ACCEPTED/DECLINED/ERRORED
20457
- * This endpoint is deprecated. Please see the article https://help.mypurecloud.com/articles/deprecation-legacy-co-browse-and-screenshare/
20738
+ * This endpoint is deprecated. Please see the article https://help.genesys.cloud/articles/deprecation-legacy-co-browse-and-screenshare/
20458
20739
  * @param {String} conversationId conversationId
20459
20740
  * @param {String} mediaRequestId mediaRequestId
20460
20741
  * @param {Object} body Request
@@ -20470,7 +20751,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
20470
20751
  */},{key:"postWebchatDeployments",value:function postWebchatDeployments(body){// verify the required parameter 'body' is set
20471
20752
  if(body===undefined||body===null){throw'Missing the required parameter "body" when calling postWebchatDeployments';}return this.apiClient.callApi('/api/v2/webchat/deployments','POST',{},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}/**
20472
20753
  * Send a message in a chat conversation.
20473
- * This endpoint is deprecated. Please see the article https://help.mypurecloud.com/articles/deprecation-removal-of-acd-web-chat-version-2/
20754
+ * This endpoint is deprecated. Please see the article https://help.genesys.cloud/articles/deprecation-removal-of-acd-web-chat-version-2/
20474
20755
  * @param {String} conversationId conversationId
20475
20756
  * @param {String} memberId memberId
20476
20757
  * @param {Object} body Message
@@ -20480,7 +20761,7 @@ if(conversationId===undefined||conversationId===null||conversationId===''){throw
20480
20761
  if(memberId===undefined||memberId===null||memberId===''){throw'Missing the required parameter "memberId" when calling postWebchatGuestConversationMemberMessages';}// verify the required parameter 'body' is set
20481
20762
  if(body===undefined||body===null){throw'Missing the required parameter "body" when calling postWebchatGuestConversationMemberMessages';}return this.apiClient.callApi('/api/v2/webchat/guest/conversations/{conversationId}/members/{memberId}/messages','POST',{'conversationId':conversationId,'memberId':memberId},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}/**
20482
20763
  * Send a typing-indicator in a chat conversation.
20483
- * This endpoint is deprecated. Please see the article https://help.mypurecloud.com/articles/deprecation-removal-of-acd-web-chat-version-2/
20764
+ * This endpoint is deprecated. Please see the article https://help.genesys.cloud/articles/deprecation-removal-of-acd-web-chat-version-2/
20484
20765
  * @param {String} conversationId conversationId
20485
20766
  * @param {String} memberId memberId
20486
20767
  * @deprecated
@@ -20488,7 +20769,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
20488
20769
  if(conversationId===undefined||conversationId===null||conversationId===''){throw'Missing the required parameter "conversationId" when calling postWebchatGuestConversationMemberTyping';}// verify the required parameter 'memberId' is set
20489
20770
  if(memberId===undefined||memberId===null||memberId===''){throw'Missing the required parameter "memberId" when calling postWebchatGuestConversationMemberTyping';}return this.apiClient.callApi('/api/v2/webchat/guest/conversations/{conversationId}/members/{memberId}/typing','POST',{'conversationId':conversationId,'memberId':memberId},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
20490
20771
  * Create an ACD chat conversation from an external customer.
20491
- * This endpoint is deprecated. Please see the article https://help.mypurecloud.com/articles/deprecation-removal-of-acd-web-chat-version-2/. This endpoint will create a new ACD Chat conversation under the specified Chat Deployment. The conversation will begin with a guest member in it (with a role=CUSTOMER) according to the customer information that is supplied. If the guest member is authenticated, the memberAuthToken field should include his JWT as generated by the POST /api/v2/signeddata resource; if the guest member is anonymous (and the Deployment permits it) this field can be omitted. The returned data includes the IDs of the conversation created, along with a newly-create JWT token that you can supply to all future endpoints as authentication to perform operations against that conversation. After successfully creating a conversation, you should connect a websocket to the event stream named in the eventStreamUri field of the response; the conversation is not routed until the event stream is attached.
20772
+ * This endpoint is deprecated. Please see the article https://help.genesys.cloud/articles/deprecation-removal-of-acd-web-chat-version-2/. This endpoint will create a new ACD Chat conversation under the specified Chat Deployment. The conversation will begin with a guest member in it (with a role=CUSTOMER) according to the customer information that is supplied. If the guest member is authenticated, the memberAuthToken field should include his JWT as generated by the POST /api/v2/signeddata resource; if the guest member is anonymous (and the Deployment permits it) this field can be omitted. The returned data includes the IDs of the conversation created, along with a newly-create JWT token that you can supply to all future endpoints as authentication to perform operations against that conversation. After successfully creating a conversation, you should connect a websocket to the event stream named in the eventStreamUri field of the response; the conversation is not routed until the event stream is attached.
20492
20773
  * @param {Object} body CreateConversationRequest
20493
20774
  * @deprecated
20494
20775
  */},{key:"postWebchatGuestConversations",value:function postWebchatGuestConversations(body){// verify the required parameter 'body' is set
@@ -20508,7 +20789,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
20508
20789
  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(){/**
20509
20790
  * WebDeployments service.
20510
20791
  * @module purecloud-platform-client-v2/api/WebDeploymentsApi
20511
- * @version 226.0.0
20792
+ * @version 228.0.0
20512
20793
  *//**
20513
20794
  * Constructs a new WebDeploymentsApi.
20514
20795
  * @alias module:purecloud-platform-client-v2/api/WebDeploymentsApi
@@ -20641,7 +20922,7 @@ if(deploymentId===undefined||deploymentId===null||deploymentId===''){throw'Missi
20641
20922
  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(){/**
20642
20923
  * WebMessaging service.
20643
20924
  * @module purecloud-platform-client-v2/api/WebMessagingApi
20644
- * @version 226.0.0
20925
+ * @version 228.0.0
20645
20926
  *//**
20646
20927
  * Constructs a new WebMessagingApi.
20647
20928
  * @alias module:purecloud-platform-client-v2/api/WebMessagingApi
@@ -20657,7 +20938,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
20657
20938
  */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(){/**
20658
20939
  * Widgets service.
20659
20940
  * @module purecloud-platform-client-v2/api/WidgetsApi
20660
- * @version 226.0.0
20941
+ * @version 228.0.0
20661
20942
  *//**
20662
20943
  * Constructs a new WidgetsApi.
20663
20944
  * @alias module:purecloud-platform-client-v2/api/WidgetsApi
@@ -20666,29 +20947,29 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
20666
20947
  * default to {@link module:purecloud-platform-client-v2/ApiClient#instance} if unspecified.
20667
20948
  */function WidgetsApi(apiClient){_classCallCheck(this,WidgetsApi);this.apiClient=apiClient||ApiClient.instance;}/**
20668
20949
  * Delete a Widget deployment
20669
- * This endpoint is deprecated. Please see the article https://help.mypurecloud.com/articles/deprecation-removal-of-acd-web-chat-version-2/.
20950
+ * This endpoint is deprecated. Please see the article https://help.genesys.cloud/articles/deprecation-removal-of-acd-web-chat-version-2/.
20670
20951
  * @param {String} deploymentId Widget Config Id
20671
20952
  * @deprecated
20672
20953
  */return _createClass(WidgetsApi,[{key:"deleteWidgetsDeployment",value:function deleteWidgetsDeployment(deploymentId){// verify the required parameter 'deploymentId' is set
20673
20954
  if(deploymentId===undefined||deploymentId===null||deploymentId===''){throw'Missing the required parameter "deploymentId" when calling deleteWidgetsDeployment';}return this.apiClient.callApi('/api/v2/widgets/deployments/{deploymentId}','DELETE',{'deploymentId':deploymentId},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
20674
20955
  * Get a Widget deployment
20675
- * This endpoint is deprecated. Please see the article https://help.mypurecloud.com/articles/deprecation-removal-of-acd-web-chat-version-2/.
20956
+ * This endpoint is deprecated. Please see the article https://help.genesys.cloud/articles/deprecation-removal-of-acd-web-chat-version-2/.
20676
20957
  * @param {String} deploymentId Widget Config Id
20677
20958
  * @deprecated
20678
20959
  */},{key:"getWidgetsDeployment",value:function getWidgetsDeployment(deploymentId){// verify the required parameter 'deploymentId' is set
20679
20960
  if(deploymentId===undefined||deploymentId===null||deploymentId===''){throw'Missing the required parameter "deploymentId" when calling getWidgetsDeployment';}return this.apiClient.callApi('/api/v2/widgets/deployments/{deploymentId}','GET',{'deploymentId':deploymentId},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
20680
20961
  * List Widget deployments
20681
- * This endpoint is deprecated. Please see the article https://help.mypurecloud.com/articles/deprecation-removal-of-acd-web-chat-version-2/.
20962
+ * This endpoint is deprecated. Please see the article https://help.genesys.cloud/articles/deprecation-removal-of-acd-web-chat-version-2/.
20682
20963
  * @deprecated
20683
20964
  */},{key:"getWidgetsDeployments",value:function getWidgetsDeployments(){return this.apiClient.callApi('/api/v2/widgets/deployments','GET',{},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
20684
20965
  * Create Widget deployment
20685
- * This endpoint is deprecated. Please see the article https://help.mypurecloud.com/articles/deprecation-removal-of-acd-web-chat-version-2/.
20966
+ * This endpoint is deprecated. Please see the article https://help.genesys.cloud/articles/deprecation-removal-of-acd-web-chat-version-2/.
20686
20967
  * @param {Object} body Deployment
20687
20968
  * @deprecated
20688
20969
  */},{key:"postWidgetsDeployments",value:function postWidgetsDeployments(body){// verify the required parameter 'body' is set
20689
20970
  if(body===undefined||body===null){throw'Missing the required parameter "body" when calling postWidgetsDeployments';}return this.apiClient.callApi('/api/v2/widgets/deployments','POST',{},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}/**
20690
20971
  * Update a Widget deployment
20691
- * This endpoint is deprecated. Please see the article https://help.mypurecloud.com/articles/deprecation-removal-of-acd-web-chat-version-2/.
20972
+ * This endpoint is deprecated. Please see the article https://help.genesys.cloud/articles/deprecation-removal-of-acd-web-chat-version-2/.
20692
20973
  * @param {String} deploymentId Widget Config Id
20693
20974
  * @param {Object} body Deployment
20694
20975
  * @deprecated
@@ -20697,7 +20978,7 @@ if(deploymentId===undefined||deploymentId===null||deploymentId===''){throw'Missi
20697
20978
  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(){/**
20698
20979
  * WorkforceManagement service.
20699
20980
  * @module purecloud-platform-client-v2/api/WorkforceManagementApi
20700
- * @version 226.0.0
20981
+ * @version 228.0.0
20701
20982
  *//**
20702
20983
  * Constructs a new WorkforceManagementApi.
20703
20984
  * @alias module:purecloud-platform-client-v2/api/WorkforceManagementApi
@@ -20717,6 +20998,15 @@ if(businessUnitId===undefined||businessUnitId===null||businessUnitId===''){throw
20717
20998
  */},{key:"deleteWorkforcemanagementBusinessunitActivitycode",value:function deleteWorkforcemanagementBusinessunitActivitycode(businessUnitId,activityCodeId){// verify the required parameter 'businessUnitId' is set
20718
20999
  if(businessUnitId===undefined||businessUnitId===null||businessUnitId===''){throw'Missing the required parameter "businessUnitId" when calling deleteWorkforcemanagementBusinessunitActivitycode';}// verify the required parameter 'activityCodeId' is set
20719
21000
  if(activityCodeId===undefined||activityCodeId===null||activityCodeId===''){throw'Missing the required parameter "activityCodeId" when calling deleteWorkforcemanagementBusinessunitActivitycode';}return this.apiClient.callApi('/api/v2/workforcemanagement/businessunits/{businessUnitId}/activitycodes/{activityCodeId}','DELETE',{'businessUnitId':businessUnitId,'activityCodeId':activityCodeId},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
21001
+ * Delete staffing group allocations history created for a capacity plan before the given date
21002
+ *
21003
+ * @param {String} businessUnitId The ID of the business unit
21004
+ * @param {String} capacityPlanId The ID of the capacity plan
21005
+ * @param {Object} opts Optional parameters
21006
+ * @param {String} opts.beforeDateId The date to delete records that are created on or before this date in yyyy-MM-dd format. Dates are represented as an ISO-8601 string. For example: yyyy-MM-dd
21007
+ */},{key:"deleteWorkforcemanagementBusinessunitCapacityplanStaffinggroupallocationshistory",value:function deleteWorkforcemanagementBusinessunitCapacityplanStaffinggroupallocationshistory(businessUnitId,capacityPlanId,opts){opts=opts||{};// verify the required parameter 'businessUnitId' is set
21008
+ if(businessUnitId===undefined||businessUnitId===null||businessUnitId===''){throw'Missing the required parameter "businessUnitId" when calling deleteWorkforcemanagementBusinessunitCapacityplanStaffinggroupallocationshistory';}// verify the required parameter 'capacityPlanId' is set
21009
+ if(capacityPlanId===undefined||capacityPlanId===null||capacityPlanId===''){throw'Missing the required parameter "capacityPlanId" when calling deleteWorkforcemanagementBusinessunitCapacityplanStaffinggroupallocationshistory';}return this.apiClient.callApi('/api/v2/workforcemanagement/businessunits/{businessUnitId}/capacityplans/{capacityPlanId}/staffinggroupallocationshistory','DELETE',{'businessUnitId':businessUnitId,'capacityPlanId':capacityPlanId},{'beforeDateId':opts['beforeDateId']},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
20720
21010
  * Deletes the planning group
20721
21011
  *
20722
21012
  * @param {String} businessUnitId The ID of the business unit.
@@ -20907,8 +21197,9 @@ if(jobId===undefined||jobId===null||jobId===''){throw'Missing the required param
20907
21197
  * @param {String} businessUnitId The ID of the business unit, or 'mine' for the business unit of the logged-in user.
20908
21198
  * @param {Object} opts Optional parameters
20909
21199
  * @param {Array.<String>} opts.expand Include to access additional data on the business unit
21200
+ * @param {Boolean} opts.includeSchedulingDefaultMessageSeverities Whether to include scheduling default message severities
20910
21201
  */},{key:"getWorkforcemanagementBusinessunit",value:function getWorkforcemanagementBusinessunit(businessUnitId,opts){opts=opts||{};// verify the required parameter 'businessUnitId' is set
20911
- if(businessUnitId===undefined||businessUnitId===null||businessUnitId===''){throw'Missing the required parameter "businessUnitId" when calling getWorkforcemanagementBusinessunit';}return this.apiClient.callApi('/api/v2/workforcemanagement/businessunits/{businessUnitId}','GET',{'businessUnitId':businessUnitId},{'expand':this.apiClient.buildCollectionParam(opts['expand'],'multi')},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
21202
+ if(businessUnitId===undefined||businessUnitId===null||businessUnitId===''){throw'Missing the required parameter "businessUnitId" when calling getWorkforcemanagementBusinessunit';}return this.apiClient.callApi('/api/v2/workforcemanagement/businessunits/{businessUnitId}','GET',{'businessUnitId':businessUnitId},{'expand':this.apiClient.buildCollectionParam(opts['expand'],'multi'),'includeSchedulingDefaultMessageSeverities':opts['includeSchedulingDefaultMessageSeverities']},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
20912
21203
  * Get an activity code
20913
21204
  *
20914
21205
  * @param {String} businessUnitId The ID of the business unit, or 'mine' for the business unit of the logged-in user.
@@ -20970,6 +21261,41 @@ if(tradeId===undefined||tradeId===null||tradeId===''){throw'Missing the required
20970
21261
  */},{key:"getWorkforcemanagementBusinessunitAlternativeshiftsTradesSearchJob",value:function getWorkforcemanagementBusinessunitAlternativeshiftsTradesSearchJob(businessUnitId,jobId){// verify the required parameter 'businessUnitId' is set
20971
21262
  if(businessUnitId===undefined||businessUnitId===null||businessUnitId===''){throw'Missing the required parameter "businessUnitId" when calling getWorkforcemanagementBusinessunitAlternativeshiftsTradesSearchJob';}// verify the required parameter 'jobId' is set
20972
21263
  if(jobId===undefined||jobId===null||jobId===''){throw'Missing the required parameter "jobId" when calling getWorkforcemanagementBusinessunitAlternativeshiftsTradesSearchJob';}return this.apiClient.callApi('/api/v2/workforcemanagement/businessunits/{businessUnitId}/alternativeshifts/trades/search/jobs/{jobId}','GET',{'businessUnitId':businessUnitId,'jobId':jobId},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
21264
+ * Get a capacity plan
21265
+ *
21266
+ * @param {String} businessUnitId The ID of the business unit
21267
+ * @param {String} capacityPlanId The ID of the capacity plan
21268
+ */},{key:"getWorkforcemanagementBusinessunitCapacityplan",value:function getWorkforcemanagementBusinessunitCapacityplan(businessUnitId,capacityPlanId){// verify the required parameter 'businessUnitId' is set
21269
+ if(businessUnitId===undefined||businessUnitId===null||businessUnitId===''){throw'Missing the required parameter "businessUnitId" when calling getWorkforcemanagementBusinessunitCapacityplan';}// verify the required parameter 'capacityPlanId' is set
21270
+ if(capacityPlanId===undefined||capacityPlanId===null||capacityPlanId===''){throw'Missing the required parameter "capacityPlanId" when calling getWorkforcemanagementBusinessunitCapacityplan';}return this.apiClient.callApi('/api/v2/workforcemanagement/businessunits/{businessUnitId}/capacityplans/{capacityPlanId}','GET',{'businessUnitId':businessUnitId,'capacityPlanId':capacityPlanId},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
21271
+ * Get a capacity plan's staffing group allocations
21272
+ *
21273
+ * @param {String} businessUnitId The ID of the business unit
21274
+ * @param {String} capacityPlanId The ID of the capacity plan
21275
+ */},{key:"getWorkforcemanagementBusinessunitCapacityplanStaffinggroupallocations",value:function getWorkforcemanagementBusinessunitCapacityplanStaffinggroupallocations(businessUnitId,capacityPlanId){// verify the required parameter 'businessUnitId' is set
21276
+ if(businessUnitId===undefined||businessUnitId===null||businessUnitId===''){throw'Missing the required parameter "businessUnitId" when calling getWorkforcemanagementBusinessunitCapacityplanStaffinggroupallocations';}// verify the required parameter 'capacityPlanId' is set
21277
+ if(capacityPlanId===undefined||capacityPlanId===null||capacityPlanId===''){throw'Missing the required parameter "capacityPlanId" when calling getWorkforcemanagementBusinessunitCapacityplanStaffinggroupallocations';}return this.apiClient.callApi('/api/v2/workforcemanagement/businessunits/{businessUnitId}/capacityplans/{capacityPlanId}/staffinggroupallocations','GET',{'businessUnitId':businessUnitId,'capacityPlanId':capacityPlanId},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
21278
+ * Get a capacity plan's staffing requirements
21279
+ *
21280
+ * @param {String} businessUnitId The ID of the business unit
21281
+ * @param {String} capacityPlanId The ID of the capacity plan
21282
+ */},{key:"getWorkforcemanagementBusinessunitCapacityplanStaffingrequirements",value:function getWorkforcemanagementBusinessunitCapacityplanStaffingrequirements(businessUnitId,capacityPlanId){// verify the required parameter 'businessUnitId' is set
21283
+ if(businessUnitId===undefined||businessUnitId===null||businessUnitId===''){throw'Missing the required parameter "businessUnitId" when calling getWorkforcemanagementBusinessunitCapacityplanStaffingrequirements';}// verify the required parameter 'capacityPlanId' is set
21284
+ if(capacityPlanId===undefined||capacityPlanId===null||capacityPlanId===''){throw'Missing the required parameter "capacityPlanId" when calling getWorkforcemanagementBusinessunitCapacityplanStaffingrequirements';}return this.apiClient.callApi('/api/v2/workforcemanagement/businessunits/{businessUnitId}/capacityplans/{capacityPlanId}/staffingrequirements','GET',{'businessUnitId':businessUnitId,'capacityPlanId':capacityPlanId},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
21285
+ * Get the latest long term staffing requirements for a business unit
21286
+ *
21287
+ * @param {String} businessUnitId
21288
+ * @param {String} weekDateId weekDateId of forecast, format yyyy-MM-dd. Dates are represented as an ISO-8601 string. For example: yyyy-MM-dd
21289
+ * @param {String} forecastId forecastId of forecast
21290
+ */},{key:"getWorkforcemanagementBusinessunitCapacityplanningLongtermrequirementsAutomaticbestmethodWeekForecast",value:function getWorkforcemanagementBusinessunitCapacityplanningLongtermrequirementsAutomaticbestmethodWeekForecast(businessUnitId,weekDateId,forecastId){// verify the required parameter 'businessUnitId' is set
21291
+ if(businessUnitId===undefined||businessUnitId===null||businessUnitId===''){throw'Missing the required parameter "businessUnitId" when calling getWorkforcemanagementBusinessunitCapacityplanningLongtermrequirementsAutomaticbestmethodWeekForecast';}// verify the required parameter 'weekDateId' is set
21292
+ if(weekDateId===undefined||weekDateId===null){throw'Missing the required parameter "weekDateId" when calling getWorkforcemanagementBusinessunitCapacityplanningLongtermrequirementsAutomaticbestmethodWeekForecast';}// verify the required parameter 'forecastId' is set
21293
+ if(forecastId===undefined||forecastId===null||forecastId===''){throw'Missing the required parameter "forecastId" when calling getWorkforcemanagementBusinessunitCapacityplanningLongtermrequirementsAutomaticbestmethodWeekForecast';}return this.apiClient.callApi('/api/v2/workforcemanagement/businessunits/{businessUnitId}/capacityplanning/longtermrequirements/automaticbestmethod/weeks/{weekDateId}/forecasts/{forecastId}','GET',{'businessUnitId':businessUnitId,'weekDateId':weekDateId,'forecastId':forecastId},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
21294
+ * Get list of capacity plans for a business unit
21295
+ *
21296
+ * @param {String} businessUnitId The ID of the business unit
21297
+ */},{key:"getWorkforcemanagementBusinessunitCapacityplans",value:function getWorkforcemanagementBusinessunitCapacityplans(businessUnitId){// verify the required parameter 'businessUnitId' is set
21298
+ if(businessUnitId===undefined||businessUnitId===null||businessUnitId===''){throw'Missing the required parameter "businessUnitId" when calling getWorkforcemanagementBusinessunitCapacityplans';}return this.apiClient.callApi('/api/v2/workforcemanagement/businessunits/{businessUnitId}/capacityplans','GET',{'businessUnitId':businessUnitId},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
20973
21299
  * Get intraday planning groups for the given date
20974
21300
  *
20975
21301
  * @param {String} businessUnitId The ID of the business unit
@@ -21524,6 +21850,11 @@ if(jobId===undefined||jobId===null||jobId===''){throw'Missing the required param
21524
21850
  * @param {String} jobId jobId
21525
21851
  */},{key:"getWorkforcemanagementShrinkageJob",value:function getWorkforcemanagementShrinkageJob(jobId){// verify the required parameter 'jobId' is set
21526
21852
  if(jobId===undefined||jobId===null||jobId===''){throw'Missing the required parameter "jobId" when calling getWorkforcemanagementShrinkageJob';}return this.apiClient.callApi('/api/v2/workforcemanagement/shrinkage/jobs/{jobId}','GET',{'jobId':jobId},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
21853
+ * Get a list of user schedule adherence records for the requested team
21854
+ *
21855
+ * @param {String} teamId The ID of the team
21856
+ */},{key:"getWorkforcemanagementTeamAdherence",value:function getWorkforcemanagementTeamAdherence(teamId){// verify the required parameter 'teamId' is set
21857
+ if(teamId===undefined||teamId===null||teamId===''){throw'Missing the required parameter "teamId" when calling getWorkforcemanagementTeamAdherence';}return this.apiClient.callApi('/api/v2/workforcemanagement/teams/{teamId}/adherence','GET',{'teamId':teamId},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
21527
21858
  * Query the results of time off types job
21528
21859
  *
21529
21860
  * @param {String} jobId The ID of the job.
@@ -21585,9 +21916,11 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
21585
21916
  *
21586
21917
  * @param {String} businessUnitId The ID of the business unit, or 'mine' for the business unit of the logged-in user.
21587
21918
  * @param {Object} body body
21588
- */},{key:"patchWorkforcemanagementBusinessunit",value:function patchWorkforcemanagementBusinessunit(businessUnitId,body){// verify the required parameter 'businessUnitId' is set
21919
+ * @param {Object} opts Optional parameters
21920
+ * @param {Boolean} opts.includeSchedulingDefaultMessageSeverities Whether to include scheduling default message severities
21921
+ */},{key:"patchWorkforcemanagementBusinessunit",value:function patchWorkforcemanagementBusinessunit(businessUnitId,body,opts){opts=opts||{};// verify the required parameter 'businessUnitId' is set
21589
21922
  if(businessUnitId===undefined||businessUnitId===null||businessUnitId===''){throw'Missing the required parameter "businessUnitId" when calling patchWorkforcemanagementBusinessunit';}// verify the required parameter 'body' is set
21590
- 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']);}/**
21923
+ 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},{'includeSchedulingDefaultMessageSeverities':opts['includeSchedulingDefaultMessageSeverities']},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}/**
21591
21924
  * Update an activity code
21592
21925
  *
21593
21926
  * @param {String} businessUnitId The ID of the business unit, or 'mine' for the business unit of the logged-in user.
@@ -21613,6 +21946,15 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
21613
21946
  */},{key:"patchWorkforcemanagementBusinessunitAlternativeshiftsSettings",value:function patchWorkforcemanagementBusinessunitAlternativeshiftsSettings(businessUnitId,body){// verify the required parameter 'businessUnitId' is set
21614
21947
  if(businessUnitId===undefined||businessUnitId===null||businessUnitId===''){throw'Missing the required parameter "businessUnitId" when calling patchWorkforcemanagementBusinessunitAlternativeshiftsSettings';}// verify the required parameter 'body' is set
21615
21948
  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']);}/**
21949
+ * Update a capacity plan configuration
21950
+ *
21951
+ * @param {String} businessUnitId The ID of the business unit
21952
+ * @param {String} capacityPlanId The ID of the capacity plan
21953
+ * @param {Object} body body
21954
+ */},{key:"patchWorkforcemanagementBusinessunitCapacityplan",value:function patchWorkforcemanagementBusinessunitCapacityplan(businessUnitId,capacityPlanId,body){// verify the required parameter 'businessUnitId' is set
21955
+ if(businessUnitId===undefined||businessUnitId===null||businessUnitId===''){throw'Missing the required parameter "businessUnitId" when calling patchWorkforcemanagementBusinessunitCapacityplan';}// verify the required parameter 'capacityPlanId' is set
21956
+ if(capacityPlanId===undefined||capacityPlanId===null||capacityPlanId===''){throw'Missing the required parameter "capacityPlanId" when calling patchWorkforcemanagementBusinessunitCapacityplan';}// verify the required parameter 'body' is set
21957
+ if(body===undefined||body===null){throw'Missing the required parameter "body" when calling patchWorkforcemanagementBusinessunitCapacityplan';}return this.apiClient.callApi('/api/v2/workforcemanagement/businessunits/{businessUnitId}/capacityplans/{capacityPlanId}','PATCH',{'businessUnitId':businessUnitId,'capacityPlanId':capacityPlanId},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}/**
21616
21958
  * Updates the planning group
21617
21959
  *
21618
21960
  * @param {String} businessUnitId The ID of the business unit.
@@ -21933,6 +22275,63 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
21933
22275
  */},{key:"postWorkforcemanagementBusinessunitAlternativeshiftsTradesSearch",value:function postWorkforcemanagementBusinessunitAlternativeshiftsTradesSearch(businessUnitId,body,opts){opts=opts||{};// verify the required parameter 'businessUnitId' is set
21934
22276
  if(businessUnitId===undefined||businessUnitId===null||businessUnitId===''){throw'Missing the required parameter "businessUnitId" when calling postWorkforcemanagementBusinessunitAlternativeshiftsTradesSearch';}// verify the required parameter 'body' is set
21935
22277
  if(body===undefined||body===null){throw'Missing the required parameter "body" when calling postWorkforcemanagementBusinessunitAlternativeshiftsTradesSearch';}return this.apiClient.callApi('/api/v2/workforcemanagement/businessunits/{businessUnitId}/alternativeshifts/trades/search','POST',{'businessUnitId':businessUnitId},{'forceAsync':opts['forceAsync']},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}/**
22278
+ * Copy a capacity plan
22279
+ *
22280
+ * @param {String} businessUnitId The ID of the business unit
22281
+ * @param {String} capacityPlanId The ID of the capacity plan
22282
+ * @param {Object} body body
22283
+ */},{key:"postWorkforcemanagementBusinessunitCapacityplanCopy",value:function postWorkforcemanagementBusinessunitCapacityplanCopy(businessUnitId,capacityPlanId,body){// verify the required parameter 'businessUnitId' is set
22284
+ if(businessUnitId===undefined||businessUnitId===null||businessUnitId===''){throw'Missing the required parameter "businessUnitId" when calling postWorkforcemanagementBusinessunitCapacityplanCopy';}// verify the required parameter 'capacityPlanId' is set
22285
+ if(capacityPlanId===undefined||capacityPlanId===null||capacityPlanId===''){throw'Missing the required parameter "capacityPlanId" when calling postWorkforcemanagementBusinessunitCapacityplanCopy';}// verify the required parameter 'body' is set
22286
+ if(body===undefined||body===null){throw'Missing the required parameter "body" when calling postWorkforcemanagementBusinessunitCapacityplanCopy';}return this.apiClient.callApi('/api/v2/workforcemanagement/businessunits/{businessUnitId}/capacityplans/{capacityPlanId}/copy','POST',{'businessUnitId':businessUnitId,'capacityPlanId':capacityPlanId},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}/**
22287
+ * Regenerate requirements for capacity plan
22288
+ *
22289
+ * @param {String} businessUnitId The ID of the business unit
22290
+ * @param {String} capacityPlanId The ID of the capacity plan
22291
+ */},{key:"postWorkforcemanagementBusinessunitCapacityplanRequirementGenerate",value:function postWorkforcemanagementBusinessunitCapacityplanRequirementGenerate(businessUnitId,capacityPlanId){// verify the required parameter 'businessUnitId' is set
22292
+ if(businessUnitId===undefined||businessUnitId===null||businessUnitId===''){throw'Missing the required parameter "businessUnitId" when calling postWorkforcemanagementBusinessunitCapacityplanRequirementGenerate';}// verify the required parameter 'capacityPlanId' is set
22293
+ if(capacityPlanId===undefined||capacityPlanId===null||capacityPlanId===''){throw'Missing the required parameter "capacityPlanId" when calling postWorkforcemanagementBusinessunitCapacityplanRequirementGenerate';}return this.apiClient.callApi('/api/v2/workforcemanagement/businessunits/{businessUnitId}/capacityplans/{capacityPlanId}/requirement/generate','POST',{'businessUnitId':businessUnitId,'capacityPlanId':capacityPlanId},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
22294
+ * Create staffing group allocations for a capacity plan
22295
+ *
22296
+ * @param {String} businessUnitId The ID of the business unit
22297
+ * @param {String} capacityPlanId The ID of the capacity plan
22298
+ * @param {Object} body
22299
+ */},{key:"postWorkforcemanagementBusinessunitCapacityplanStaffinggroupallocations",value:function postWorkforcemanagementBusinessunitCapacityplanStaffinggroupallocations(businessUnitId,capacityPlanId,body){// verify the required parameter 'businessUnitId' is set
22300
+ if(businessUnitId===undefined||businessUnitId===null||businessUnitId===''){throw'Missing the required parameter "businessUnitId" when calling postWorkforcemanagementBusinessunitCapacityplanStaffinggroupallocations';}// verify the required parameter 'capacityPlanId' is set
22301
+ if(capacityPlanId===undefined||capacityPlanId===null||capacityPlanId===''){throw'Missing the required parameter "capacityPlanId" when calling postWorkforcemanagementBusinessunitCapacityplanStaffinggroupallocations';}// verify the required parameter 'body' is set
22302
+ if(body===undefined||body===null){throw'Missing the required parameter "body" when calling postWorkforcemanagementBusinessunitCapacityplanStaffinggroupallocations';}return this.apiClient.callApi('/api/v2/workforcemanagement/businessunits/{businessUnitId}/capacityplans/{capacityPlanId}/staffinggroupallocations','POST',{'businessUnitId':businessUnitId,'capacityPlanId':capacityPlanId},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}/**
22303
+ * Query staffing groups allocations history for a capacity plan
22304
+ *
22305
+ * @param {String} businessUnitId The ID of the business unit
22306
+ * @param {String} capacityPlanId The ID of the capacity plan
22307
+ * @param {Object} body
22308
+ */},{key:"postWorkforcemanagementBusinessunitCapacityplanStaffinggroupallocationshistoryQuery",value:function postWorkforcemanagementBusinessunitCapacityplanStaffinggroupallocationshistoryQuery(businessUnitId,capacityPlanId,body){// verify the required parameter 'businessUnitId' is set
22309
+ if(businessUnitId===undefined||businessUnitId===null||businessUnitId===''){throw'Missing the required parameter "businessUnitId" when calling postWorkforcemanagementBusinessunitCapacityplanStaffinggroupallocationshistoryQuery';}// verify the required parameter 'capacityPlanId' is set
22310
+ if(capacityPlanId===undefined||capacityPlanId===null||capacityPlanId===''){throw'Missing the required parameter "capacityPlanId" when calling postWorkforcemanagementBusinessunitCapacityplanStaffinggroupallocationshistoryQuery';}// verify the required parameter 'body' is set
22311
+ if(body===undefined||body===null){throw'Missing the required parameter "body" when calling postWorkforcemanagementBusinessunitCapacityplanStaffinggroupallocationshistoryQuery';}return this.apiClient.callApi('/api/v2/workforcemanagement/businessunits/{businessUnitId}/capacityplans/{capacityPlanId}/staffinggroupallocationshistory/query','POST',{'businessUnitId':businessUnitId,'capacityPlanId':capacityPlanId},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}/**
22312
+ * Force regenerate the latest long term staffing requirements for a business unit
22313
+ *
22314
+ * @param {String} businessUnitId
22315
+ * @param {String} weekDateId weekDateId of forecast, format yyyy-MM-dd. Dates are represented as an ISO-8601 string. For example: yyyy-MM-dd
22316
+ * @param {String} forecastId forecastId of forecast
22317
+ */},{key:"postWorkforcemanagementBusinessunitCapacityplanningLongtermrequirementsAutomaticbestmethodWeekForecastForceregenerate",value:function postWorkforcemanagementBusinessunitCapacityplanningLongtermrequirementsAutomaticbestmethodWeekForecastForceregenerate(businessUnitId,weekDateId,forecastId){// verify the required parameter 'businessUnitId' is set
22318
+ if(businessUnitId===undefined||businessUnitId===null||businessUnitId===''){throw'Missing the required parameter "businessUnitId" when calling postWorkforcemanagementBusinessunitCapacityplanningLongtermrequirementsAutomaticbestmethodWeekForecastForceregenerate';}// verify the required parameter 'weekDateId' is set
22319
+ if(weekDateId===undefined||weekDateId===null){throw'Missing the required parameter "weekDateId" when calling postWorkforcemanagementBusinessunitCapacityplanningLongtermrequirementsAutomaticbestmethodWeekForecastForceregenerate';}// verify the required parameter 'forecastId' is set
22320
+ if(forecastId===undefined||forecastId===null||forecastId===''){throw'Missing the required parameter "forecastId" when calling postWorkforcemanagementBusinessunitCapacityplanningLongtermrequirementsAutomaticbestmethodWeekForecastForceregenerate';}return this.apiClient.callApi('/api/v2/workforcemanagement/businessunits/{businessUnitId}/capacityplanning/longtermrequirements/automaticbestmethod/weeks/{weekDateId}/forecasts/{forecastId}/forceregenerate','POST',{'businessUnitId':businessUnitId,'weekDateId':weekDateId,'forecastId':forecastId},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
22321
+ * Create a new capacity plan
22322
+ *
22323
+ * @param {String} businessUnitId The ID of the business unit
22324
+ * @param {Object} body body
22325
+ */},{key:"postWorkforcemanagementBusinessunitCapacityplans",value:function postWorkforcemanagementBusinessunitCapacityplans(businessUnitId,body){// verify the required parameter 'businessUnitId' is set
22326
+ if(businessUnitId===undefined||businessUnitId===null||businessUnitId===''){throw'Missing the required parameter "businessUnitId" when calling postWorkforcemanagementBusinessunitCapacityplans';}// verify the required parameter 'body' is set
22327
+ if(body===undefined||body===null){throw'Missing the required parameter "body" when calling postWorkforcemanagementBusinessunitCapacityplans';}return this.apiClient.callApi('/api/v2/workforcemanagement/businessunits/{businessUnitId}/capacityplans','POST',{'businessUnitId':businessUnitId},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}/**
22328
+ * Delete capacity plans in a business unit
22329
+ *
22330
+ * @param {String} businessUnitId The ID of the business unit
22331
+ * @param {Object} body body
22332
+ */},{key:"postWorkforcemanagementBusinessunitCapacityplansBulkRemove",value:function postWorkforcemanagementBusinessunitCapacityplansBulkRemove(businessUnitId,body){// verify the required parameter 'businessUnitId' is set
22333
+ if(businessUnitId===undefined||businessUnitId===null||businessUnitId===''){throw'Missing the required parameter "businessUnitId" when calling postWorkforcemanagementBusinessunitCapacityplansBulkRemove';}// verify the required parameter 'body' is set
22334
+ if(body===undefined||body===null){throw'Missing the required parameter "body" when calling postWorkforcemanagementBusinessunitCapacityplansBulkRemove';}return this.apiClient.callApi('/api/v2/workforcemanagement/businessunits/{businessUnitId}/capacityplans/bulk/remove','POST',{'businessUnitId':businessUnitId},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}/**
21936
22335
  * Get intraday data for the given date for the requested planningGroupIds
21937
22336
  *
21938
22337
  * @param {String} businessUnitId The ID of the business unit
@@ -21963,6 +22362,13 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
21963
22362
  */},{key:"postWorkforcemanagementBusinessunitStaffinggroups",value:function postWorkforcemanagementBusinessunitStaffinggroups(businessUnitId,body){// verify the required parameter 'businessUnitId' is set
21964
22363
  if(businessUnitId===undefined||businessUnitId===null||businessUnitId===''){throw'Missing the required parameter "businessUnitId" when calling postWorkforcemanagementBusinessunitStaffinggroups';}// verify the required parameter 'body' is set
21965
22364
  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']);}/**
22365
+ * Gets a list of planning group to staffing groups list association
22366
+ *
22367
+ * @param {String} businessUnitId The ID of the business unit
22368
+ * @param {Object} body body
22369
+ */},{key:"postWorkforcemanagementBusinessunitStaffinggroupsPlanninggroupsQuery",value:function postWorkforcemanagementBusinessunitStaffinggroupsPlanninggroupsQuery(businessUnitId,body){// verify the required parameter 'businessUnitId' is set
22370
+ if(businessUnitId===undefined||businessUnitId===null||businessUnitId===''){throw'Missing the required parameter "businessUnitId" when calling postWorkforcemanagementBusinessunitStaffinggroupsPlanninggroupsQuery';}// verify the required parameter 'body' is set
22371
+ if(body===undefined||body===null){throw'Missing the required parameter "body" when calling postWorkforcemanagementBusinessunitStaffinggroupsPlanninggroupsQuery';}return this.apiClient.callApi('/api/v2/workforcemanagement/businessunits/{businessUnitId}/staffinggroups/planninggroups/query','POST',{'businessUnitId':businessUnitId},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}/**
21966
22372
  * Gets staffing group associations for a list of user IDs
21967
22373
  *
21968
22374
  * @param {String} businessUnitId The ID of the business unit
@@ -22179,8 +22585,10 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
22179
22585
  * Add a new business unit
22180
22586
  * It may take a minute or two for a new business unit to be available for api operations
22181
22587
  * @param {Object} body body
22182
- */},{key:"postWorkforcemanagementBusinessunits",value:function postWorkforcemanagementBusinessunits(body){// verify the required parameter 'body' is set
22183
- 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']);}/**
22588
+ * @param {Object} opts Optional parameters
22589
+ * @param {Boolean} opts.includeSchedulingDefaultMessageSeverities Whether to include scheduling default message severities
22590
+ */},{key:"postWorkforcemanagementBusinessunits",value:function postWorkforcemanagementBusinessunits(body,opts){opts=opts||{};// verify the required parameter 'body' is set
22591
+ if(body===undefined||body===null){throw'Missing the required parameter "body" when calling postWorkforcemanagementBusinessunits';}return this.apiClient.callApi('/api/v2/workforcemanagement/businessunits','POST',{},{'includeSchedulingDefaultMessageSeverities':opts['includeSchedulingDefaultMessageSeverities']},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}/**
22184
22592
  * Create a newly generated calendar link for the current user; if the current user has previously generated one, the generated link will be returned
22185
22593
  *
22186
22594
  * @param {Object} opts Optional parameters
@@ -22522,7 +22930,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
22522
22930
  * </pre>
22523
22931
  * </p>
22524
22932
  * @module purecloud-platform-client-v2/index
22525
- * @version 226.0.0
22933
+ * @version 228.0.0
22526
22934
  */var platformClient=/*#__PURE__*/_createClass(function platformClient(){_classCallCheck(this,platformClient);/**
22527
22935
  * The ApiClient constructor.
22528
22936
  * @property {module:purecloud-platform-client-v2/ApiClient}