purecloud-platform-client-v2 218.1.0 → 220.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 (91) hide show
  1. package/README.md +4 -4
  2. package/dist/node/purecloud-platform-client-v2.js +1195 -118
  3. package/dist/web-amd/purecloud-platform-client-v2.js +1195 -118
  4. package/dist/web-amd/purecloud-platform-client-v2.min.js +1 -1
  5. package/dist/web-cjs/bundle.js +390 -130
  6. package/dist/web-cjs/purecloud-platform-client-v2.js +390 -130
  7. package/dist/web-cjs/purecloud-platform-client-v2.min.js +1 -1
  8. package/index.d.ts +1494 -763
  9. package/package.json +2 -2
  10. package/src/purecloud-platform-client-v2/ApiClient.js +2 -2
  11. package/src/purecloud-platform-client-v2/api/AgentAssistantsApi.js +1 -1
  12. package/src/purecloud-platform-client-v2/api/AgentCopilotApi.js +1 -1
  13. package/src/purecloud-platform-client-v2/api/AgentUIApi.js +1 -1
  14. package/src/purecloud-platform-client-v2/api/AlertingApi.js +1 -1
  15. package/src/purecloud-platform-client-v2/api/AnalyticsApi.js +1 -1
  16. package/src/purecloud-platform-client-v2/api/ArchitectApi.js +2 -2
  17. package/src/purecloud-platform-client-v2/api/AuditApi.js +1 -1
  18. package/src/purecloud-platform-client-v2/api/AuthorizationApi.js +54 -1
  19. package/src/purecloud-platform-client-v2/api/BillingApi.js +1 -1
  20. package/src/purecloud-platform-client-v2/api/CarrierServicesApi.js +1 -1
  21. package/src/purecloud-platform-client-v2/api/ChatApi.js +1 -1
  22. package/src/purecloud-platform-client-v2/api/CoachingApi.js +1 -1
  23. package/src/purecloud-platform-client-v2/api/ContentManagementApi.js +1 -1
  24. package/src/purecloud-platform-client-v2/api/ConversationsApi.js +37 -1
  25. package/src/purecloud-platform-client-v2/api/DataExtensionsApi.js +1 -1
  26. package/src/purecloud-platform-client-v2/api/DataPrivacyApi.js +1 -1
  27. package/src/purecloud-platform-client-v2/api/DownloadsApi.js +1 -1
  28. package/src/purecloud-platform-client-v2/api/EmailsApi.js +1 -1
  29. package/src/purecloud-platform-client-v2/api/EmployeeEngagementApi.js +1 -1
  30. package/src/purecloud-platform-client-v2/api/EventsApi.js +1 -1
  31. package/src/purecloud-platform-client-v2/api/ExternalContactsApi.js +399 -5
  32. package/src/purecloud-platform-client-v2/api/FaxApi.js +1 -1
  33. package/src/purecloud-platform-client-v2/api/FlowsApi.js +1 -1
  34. package/src/purecloud-platform-client-v2/api/GamificationApi.js +366 -1
  35. package/src/purecloud-platform-client-v2/api/GeneralDataProtectionRegulationApi.js +1 -1
  36. package/src/purecloud-platform-client-v2/api/GeolocationApi.js +1 -1
  37. package/src/purecloud-platform-client-v2/api/GreetingsApi.js +1 -1
  38. package/src/purecloud-platform-client-v2/api/GroupsApi.js +1 -1
  39. package/src/purecloud-platform-client-v2/api/IdentityProviderApi.js +1 -1
  40. package/src/purecloud-platform-client-v2/api/InfrastructureAsCodeApi.js +1 -1
  41. package/src/purecloud-platform-client-v2/api/IntegrationsApi.js +1 -1
  42. package/src/purecloud-platform-client-v2/api/JourneyApi.js +1 -1
  43. package/src/purecloud-platform-client-v2/api/KnowledgeApi.js +1 -1
  44. package/src/purecloud-platform-client-v2/api/LanguageUnderstandingApi.js +1 -1
  45. package/src/purecloud-platform-client-v2/api/LanguagesApi.js +1 -1
  46. package/src/purecloud-platform-client-v2/api/LearningApi.js +1 -1
  47. package/src/purecloud-platform-client-v2/api/LicenseApi.js +1 -1
  48. package/src/purecloud-platform-client-v2/api/LocationsApi.js +1 -1
  49. package/src/purecloud-platform-client-v2/api/LogCaptureApi.js +1 -1
  50. package/src/purecloud-platform-client-v2/api/MessagingApi.js +1 -1
  51. package/src/purecloud-platform-client-v2/api/MobileDevicesApi.js +1 -1
  52. package/src/purecloud-platform-client-v2/api/NotificationsApi.js +1 -1
  53. package/src/purecloud-platform-client-v2/api/OAuthApi.js +1 -1
  54. package/src/purecloud-platform-client-v2/api/ObjectsApi.js +54 -1
  55. package/src/purecloud-platform-client-v2/api/OperationalEventsApi.js +1 -1
  56. package/src/purecloud-platform-client-v2/api/OrganizationApi.js +1 -1
  57. package/src/purecloud-platform-client-v2/api/OrganizationAuthorizationApi.js +1 -1
  58. package/src/purecloud-platform-client-v2/api/OutboundApi.js +60 -1
  59. package/src/purecloud-platform-client-v2/api/PresenceApi.js +11 -11
  60. package/src/purecloud-platform-client-v2/api/ProcessAutomationApi.js +1 -1
  61. package/src/purecloud-platform-client-v2/api/QualityApi.js +1 -1
  62. package/src/purecloud-platform-client-v2/api/RecordingApi.js +3 -3
  63. package/src/purecloud-platform-client-v2/api/ResponseManagementApi.js +1 -1
  64. package/src/purecloud-platform-client-v2/api/RoutingApi.js +6 -4
  65. package/src/purecloud-platform-client-v2/api/SCIMApi.js +1 -1
  66. package/src/purecloud-platform-client-v2/api/ScreenRecordingApi.js +1 -1
  67. package/src/purecloud-platform-client-v2/api/ScriptsApi.js +33 -1
  68. package/src/purecloud-platform-client-v2/api/SearchApi.js +1 -1
  69. package/src/purecloud-platform-client-v2/api/SettingsApi.js +1 -1
  70. package/src/purecloud-platform-client-v2/api/SocialMediaApi.js +1 -1
  71. package/src/purecloud-platform-client-v2/api/SpeechTextAnalyticsApi.js +1 -1
  72. package/src/purecloud-platform-client-v2/api/StationsApi.js +1 -1
  73. package/src/purecloud-platform-client-v2/api/SuggestApi.js +1 -1
  74. package/src/purecloud-platform-client-v2/api/TaskManagementApi.js +66 -10
  75. package/src/purecloud-platform-client-v2/api/TeamsApi.js +1 -1
  76. package/src/purecloud-platform-client-v2/api/TelephonyApi.js +1 -1
  77. package/src/purecloud-platform-client-v2/api/TelephonyProvidersEdgeApi.js +1 -1
  78. package/src/purecloud-platform-client-v2/api/TextbotsApi.js +3 -3
  79. package/src/purecloud-platform-client-v2/api/TokensApi.js +1 -1
  80. package/src/purecloud-platform-client-v2/api/UploadsApi.js +26 -1
  81. package/src/purecloud-platform-client-v2/api/UsageApi.js +1 -1
  82. package/src/purecloud-platform-client-v2/api/UserRecordingsApi.js +1 -1
  83. package/src/purecloud-platform-client-v2/api/UsersApi.js +1 -1
  84. package/src/purecloud-platform-client-v2/api/UtilitiesApi.js +1 -1
  85. package/src/purecloud-platform-client-v2/api/VoicemailApi.js +1 -1
  86. package/src/purecloud-platform-client-v2/api/WebChatApi.js +1 -1
  87. package/src/purecloud-platform-client-v2/api/WebDeploymentsApi.js +1 -1
  88. package/src/purecloud-platform-client-v2/api/WebMessagingApi.js +1 -1
  89. package/src/purecloud-platform-client-v2/api/WidgetsApi.js +1 -1
  90. package/src/purecloud-platform-client-v2/api/WorkforceManagementApi.js +7 -5
  91. package/src/purecloud-platform-client-v2/index.js +1 -1
@@ -5564,7 +5564,7 @@ exports.clearImmediate = typeof clearImmediate === "function" ? clearImmediate :
5564
5564
  }).call(this)}).call(this,require("timers").setImmediate,require("timers").clearImmediate)
5565
5565
  },{"process/browser.js":43,"timers":53}],"platformClient":[function(require,module,exports){
5566
5566
  (function (global,Buffer,setImmediate){(function (){
5567
- 'use strict';function _callSuper(t,o,e){return o=_getPrototypeOf(o),_possibleConstructorReturn(t,_isNativeReflectConstruct()?Reflect.construct(o,e||[],_getPrototypeOf(t).constructor):o.apply(t,e));}function _possibleConstructorReturn(t,e){if(e&&("object"==_typeof(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return _assertThisInitialized(t);}function _assertThisInitialized(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e;}function _isNativeReflectConstruct(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}));}catch(t){}return(_isNativeReflectConstruct=function _isNativeReflectConstruct(){return!!t;})();}function _getPrototypeOf(t){return _getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t);},_getPrototypeOf(t);}function _inherits(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&_setPrototypeOf(t,e);}function _setPrototypeOf(t,e){return _setPrototypeOf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t;},_setPrototypeOf(t,e);}function asyncGeneratorStep(n,t,e,r,o,a,c){try{var i=n[a](c),u=i.value;}catch(n){return void e(n);}i.done?t(u):Promise.resolve(u).then(r,o);}function _asyncToGenerator(n){return function(){var t=this,e=arguments;return new Promise(function(r,o){var a=n.apply(t,e);function _next(n){asyncGeneratorStep(a,r,o,_next,_throw,"next",n);}function _throw(n){asyncGeneratorStep(a,r,o,_next,_throw,"throw",n);}_next(void 0);});};}function _regeneratorRuntime(){"use strict";/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */_regeneratorRuntime=function _regeneratorRuntime(){return e;};var t,e={},r=Object.prototype,n=r.hasOwnProperty,o=Object.defineProperty||function(t,e,r){t[e]=r.value;},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",c=i.asyncIterator||"@@asyncIterator",u=i.toStringTag||"@@toStringTag";function define(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e];}try{define({},"");}catch(t){define=function define(t,e,r){return t[e]=r;};}function wrap(t,e,r,n){var i=e&&e.prototype instanceof Generator?e:Generator,a=Object.create(i.prototype),c=new Context(n||[]);return o(a,"_invoke",{value:makeInvokeMethod(t,r,c)}),a;}function tryCatch(t,e,r){try{return{type:"normal",arg:t.call(e,r)};}catch(t){return{type:"throw",arg:t};}}e.wrap=wrap;var h="suspendedStart",l="suspendedYield",f="executing",s="completed",y={};function Generator(){}function GeneratorFunction(){}function GeneratorFunctionPrototype(){}var p={};define(p,a,function(){return this;});var d=Object.getPrototypeOf,v=d&&d(d(values([])));v&&v!==r&&n.call(v,a)&&(p=v);var g=GeneratorFunctionPrototype.prototype=Generator.prototype=Object.create(p);function defineIteratorMethods(t){["next","throw","return"].forEach(function(e){define(t,e,function(t){return this._invoke(e,t);});});}function AsyncIterator(t,e){function invoke(r,o,i,a){var c=tryCatch(t[r],t,o);if("throw"!==c.type){var u=c.arg,h=u.value;return h&&"object"==_typeof(h)&&n.call(h,"__await")?e.resolve(h.__await).then(function(t){invoke("next",t,i,a);},function(t){invoke("throw",t,i,a);}):e.resolve(h).then(function(t){u.value=t,i(u);},function(t){return invoke("throw",t,i,a);});}a(c.arg);}var r;o(this,"_invoke",{value:function value(t,n){function callInvokeWithMethodAndArg(){return new e(function(e,r){invoke(t,n,e,r);});}return r=r?r.then(callInvokeWithMethodAndArg,callInvokeWithMethodAndArg):callInvokeWithMethodAndArg();}});}function makeInvokeMethod(e,r,n){var o=h;return function(i,a){if(o===f)throw Error("Generator is already running");if(o===s){if("throw"===i)throw a;return{value:t,done:!0};}for(n.method=i,n.arg=a;;){var c=n.delegate;if(c){var u=maybeInvokeDelegate(c,n);if(u){if(u===y)continue;return u;}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===h)throw o=s,n.arg;n.dispatchException(n.arg);}else"return"===n.method&&n.abrupt("return",n.arg);o=f;var p=tryCatch(e,r,n);if("normal"===p.type){if(o=n.done?s:l,p.arg===y)continue;return{value:p.arg,done:n.done};}"throw"===p.type&&(o=s,n.method="throw",n.arg=p.arg);}};}function maybeInvokeDelegate(e,r){var n=r.method,o=e.iterator[n];if(o===t)return r.delegate=null,"throw"===n&&e.iterator["return"]&&(r.method="return",r.arg=t,maybeInvokeDelegate(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),y;var i=tryCatch(o,e.iterator,r.arg);if("throw"===i.type)return r.method="throw",r.arg=i.arg,r.delegate=null,y;var a=i.arg;return a?a.done?(r[e.resultName]=a.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,y):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,y);}function pushTryEntry(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e);}function resetTryEntry(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e;}function Context(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(pushTryEntry,this),this.reset(!0);}function values(e){if(e||""===e){var r=e[a];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,i=function next(){for(;++o<e.length;)if(n.call(e,o))return next.value=e[o],next.done=!1,next;return next.value=t,next.done=!0,next;};return i.next=i;}}throw new TypeError(_typeof(e)+" is not iterable");}return GeneratorFunction.prototype=GeneratorFunctionPrototype,o(g,"constructor",{value:GeneratorFunctionPrototype,configurable:!0}),o(GeneratorFunctionPrototype,"constructor",{value:GeneratorFunction,configurable:!0}),GeneratorFunction.displayName=define(GeneratorFunctionPrototype,u,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===GeneratorFunction||"GeneratorFunction"===(e.displayName||e.name));},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,GeneratorFunctionPrototype):(t.__proto__=GeneratorFunctionPrototype,define(t,u,"GeneratorFunction")),t.prototype=Object.create(g),t;},e.awrap=function(t){return{__await:t};},defineIteratorMethods(AsyncIterator.prototype),define(AsyncIterator.prototype,c,function(){return this;}),e.AsyncIterator=AsyncIterator,e.async=function(t,r,n,o,i){void 0===i&&(i=Promise);var a=new AsyncIterator(wrap(t,r,n,o),i);return e.isGeneratorFunction(r)?a:a.next().then(function(t){return t.done?t.value:a.next();});},defineIteratorMethods(g),define(g,u,"Generator"),define(g,a,function(){return this;}),define(g,"toString",function(){return"[object Generator]";}),e.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function next(){for(;r.length;){var t=r.pop();if(t in e)return next.value=t,next.done=!1,next;}return next.done=!0,next;};},e.values=values,Context.prototype={constructor:Context,reset:function reset(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(resetTryEntry),!e)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=t);},stop:function stop(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval;},dispatchException:function dispatchException(e){if(this.done)throw e;var r=this;function handle(n,o){return a.type="throw",a.arg=e,r.next=n,o&&(r.method="next",r.arg=t),!!o;}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return handle("end");if(i.tryLoc<=this.prev){var c=n.call(i,"catchLoc"),u=n.call(i,"finallyLoc");if(c&&u){if(this.prev<i.catchLoc)return handle(i.catchLoc,!0);if(this.prev<i.finallyLoc)return handle(i.finallyLoc);}else if(c){if(this.prev<i.catchLoc)return handle(i.catchLoc,!0);}else{if(!u)throw Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return handle(i.finallyLoc);}}}},abrupt:function abrupt(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break;}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,y):this.complete(a);},complete:function complete(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),y;},finish:function finish(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),resetTryEntry(r),y;}},"catch":function _catch(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;resetTryEntry(r);}return o;}}throw Error("illegal catch attempt");},delegateYield:function delegateYield(e,r,n){return this.delegate={iterator:values(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),y;}},e;}function _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 _arrayWithoutHoles(r){if(Array.isArray(r))return _arrayLikeToArray(r);}function _toArray(r){return _arrayWithHoles(r)||_iterableToArray(r)||_unsupportedIterableToArray(r)||_nonIterableRest();}function _iterableToArray(r){if("undefined"!=typeof Symbol&&null!=r[Symbol.iterator]||null!=r["@@iterator"])return Array.from(r);}function _createForOfIteratorHelper(r,e){var t="undefined"!=typeof Symbol&&r[Symbol.iterator]||r["@@iterator"];if(!t){if(Array.isArray(r)||(t=_unsupportedIterableToArray(r))||e&&r&&"number"==typeof r.length){t&&(r=t);var _n=0,F=function F(){};return{s:F,n:function n(){return _n>=r.length?{done:!0}:{done:!1,value:r[_n++]};},e:function e(r){throw r;},f:F};}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");}var o,a=!0,u=!1;return{s:function s(){t=t.call(r);},n:function n(){var r=t.next();return a=r.done,r;},e:function e(r){u=!0,o=r;},f:function f(){try{a||null==t["return"]||t["return"]();}finally{if(u)throw o;}}};}function ownKeys(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);r&&(o=o.filter(function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable;})),t.push.apply(t,o);}return t;}function _objectSpread(e){for(var r=1;r<arguments.length;r++){var t=null!=arguments[r]?arguments[r]:{};r%2?ownKeys(Object(t),!0).forEach(function(r){_defineProperty(e,r,t[r]);}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):ownKeys(Object(t)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r));});}return e;}function _defineProperty(e,r,t){return(r=_toPropertyKey(r))in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e;}function _classCallCheck(a,n){if(!(a instanceof n))throw new TypeError("Cannot call a class as a function");}function _defineProperties(e,r){for(var t=0;t<r.length;t++){var o=r[t];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,_toPropertyKey(o.key),o);}}function _createClass(e,r,t){return r&&_defineProperties(e.prototype,r),t&&_defineProperties(e,t),Object.defineProperty(e,"prototype",{writable:!1}),e;}function _toPropertyKey(t){var i=_toPrimitive(t,"string");return"symbol"==_typeof(i)?i:i+"";}function _toPrimitive(t,r){if("object"!=_typeof(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var i=e.call(t,r||"default");if("object"!=_typeof(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.");}return("string"===r?String:Number)(t);}function _slicedToArray(r,e){return _arrayWithHoles(r)||_iterableToArrayLimit(r,e)||_unsupportedIterableToArray(r,e)||_nonIterableRest();}function _nonIterableRest(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");}function _unsupportedIterableToArray(r,a){if(r){if("string"==typeof r)return _arrayLikeToArray(r,a);var t={}.toString.call(r).slice(8,-1);return"Object"===t&&r.constructor&&(t=r.constructor.name),"Map"===t||"Set"===t?Array.from(r):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?_arrayLikeToArray(r,a):void 0;}}function _arrayLikeToArray(r,a){(null==a||a>r.length)&&(a=r.length);for(var e=0,n=Array(a);e<a;e++)n[e]=r[e];return n;}function _iterableToArrayLimit(r,l){var t=null==r?null:"undefined"!=typeof Symbol&&r[Symbol.iterator]||r["@@iterator"];if(null!=t){var e,n,i,u,a=[],f=!0,o=!1;try{if(i=(t=t.call(r)).next,0===l){if(Object(t)!==t)return;f=!1;}else for(;!(f=(e=i.call(t)).done)&&(a.push(e.value),a.length!==l);f=!0);}catch(r){o=!0,n=r;}finally{try{if(!f&&null!=t["return"]&&(u=t["return"](),Object(u)!==u))return;}finally{if(o)throw n;}}return a;}}function _arrayWithHoles(r){if(Array.isArray(r))return r;}function _typeof(o){"@babel/helpers - typeof";return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(o){return typeof o;}:function(o){return o&&"function"==typeof Symbol&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o;},_typeof(o);}function _wrapAsyncGenerator(e){return function(){return new AsyncGenerator(e.apply(this,arguments));};}function AsyncGenerator(e){var r,t;function resume(r,t){try{var n=e[r](t),o=n.value,u=o instanceof _OverloadYield;Promise.resolve(u?o.v:o).then(function(t){if(u){var i="return"===r?"return":"next";if(!o.k||t.done)return resume(i,t);t=e[i](t).value;}settle(n.done?"return":"normal",t);},function(e){resume("throw",e);});}catch(e){settle("throw",e);}}function settle(e,n){switch(e){case"return":r.resolve({value:n,done:!0});break;case"throw":r.reject(n);break;default:r.resolve({value:n,done:!1});}(r=r.next)?resume(r.key,r.arg):t=null;}this._invoke=function(e,n){return new Promise(function(o,u){var i={key:e,arg:n,resolve:o,reject:u,next:null};t?t=t.next=i:(r=t=i,resume(e,n));});},"function"!=typeof e["return"]&&(this["return"]=void 0);}AsyncGenerator.prototype["function"==typeof Symbol&&Symbol.asyncIterator||"@@asyncIterator"]=function(){return this;},AsyncGenerator.prototype.next=function(e){return this._invoke("next",e);},AsyncGenerator.prototype["throw"]=function(e){return this._invoke("throw",e);},AsyncGenerator.prototype["return"]=function(e){return this._invoke("return",e);};function _awaitAsyncGenerator(e){return new _OverloadYield(e,0);}function _asyncGeneratorDelegate(t){var e={},n=!1;function pump(e,r){return n=!0,r=new Promise(function(n){n(t[e](r));}),{done:!1,value:new _OverloadYield(r,1)};}return e["undefined"!=typeof Symbol&&Symbol.iterator||"@@iterator"]=function(){return this;},e.next=function(t){return n?(n=!1,t):pump("next",t);},"function"==typeof t["throw"]&&(e["throw"]=function(t){if(n)throw n=!1,t;return pump("throw",t);}),"function"==typeof t["return"]&&(e["return"]=function(t){return n?(n=!1,t):pump("return",t);}),e;}function _OverloadYield(e,d){this.v=e,this.k=d;}function _asyncIterator(r){var n,t,o,e=2;for("undefined"!=typeof Symbol&&(t=Symbol.asyncIterator,o=Symbol.iterator);e--;){if(t&&null!=(n=r[t]))return n.call(r);if(o&&null!=(n=r[o]))return new AsyncFromSyncIterator(n.call(r));t="@@asyncIterator",o="@@iterator";}throw new TypeError("Object is not async iterable");}function AsyncFromSyncIterator(r){function AsyncFromSyncIteratorContinuation(r){if(Object(r)!==r)return Promise.reject(new TypeError(r+" is not an object."));var n=r.done;return Promise.resolve(r.value).then(function(r){return{value:r,done:n};});}return AsyncFromSyncIterator=function AsyncFromSyncIterator(r){this.s=r,this.n=r.next;},AsyncFromSyncIterator.prototype={s:null,n:null,next:function next(){return AsyncFromSyncIteratorContinuation(this.n.apply(this.s,arguments));},"return":function _return(r){var n=this.s["return"];return void 0===n?Promise.resolve({value:r,done:!0}):AsyncFromSyncIteratorContinuation(n.apply(this.s,arguments));},"throw":function _throw(r){var n=this.s["return"];return void 0===n?Promise.reject(r):AsyncFromSyncIteratorContinuation(n.apply(this.s,arguments));}},new AsyncFromSyncIterator(r);}var qs=require('qs');function _interopDefaultLegacy(e){return e&&_typeof(e)==='object'&&'default'in e?e:{'default':e};}var qs__default=/*#__PURE__*/_interopDefaultLegacy(qs);var PureCloudRegionHosts={us_east_1:'mypurecloud.com',eu_west_1:'mypurecloud.ie',ap_southeast_2:'mypurecloud.com.au',ap_northeast_1:'mypurecloud.jp',eu_central_1:'mypurecloud.de',us_west_2:'usw2.pure.cloud',ca_central_1:'cac1.pure.cloud',ap_northeast_2:'apne2.pure.cloud',eu_west_2:'euw2.pure.cloud',ap_south_1:'aps1.pure.cloud',us_east_2:'use2.us-gov-pure.cloud',sa_east_1:'sae1.pure.cloud',me_central_1:'mec1.pure.cloud',ap_northeast_3:'apne3.pure.cloud',eu_central_2:'euc2.pure.cloud'};var global$1=typeof global!=="undefined"?global:typeof self!=="undefined"?self:typeof window!=="undefined"?window:{};// shim for using process in browser
5567
+ 'use strict';function _callSuper(t,o,e){return o=_getPrototypeOf(o),_possibleConstructorReturn(t,_isNativeReflectConstruct()?Reflect.construct(o,e||[],_getPrototypeOf(t).constructor):o.apply(t,e));}function _possibleConstructorReturn(t,e){if(e&&("object"==_typeof(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return _assertThisInitialized(t);}function _assertThisInitialized(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e;}function _isNativeReflectConstruct(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}));}catch(t){}return(_isNativeReflectConstruct=function _isNativeReflectConstruct(){return!!t;})();}function _getPrototypeOf(t){return _getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t);},_getPrototypeOf(t);}function _inherits(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&_setPrototypeOf(t,e);}function _setPrototypeOf(t,e){return _setPrototypeOf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t;},_setPrototypeOf(t,e);}function asyncGeneratorStep(n,t,e,r,o,a,c){try{var i=n[a](c),u=i.value;}catch(n){return void e(n);}i.done?t(u):Promise.resolve(u).then(r,o);}function _asyncToGenerator(n){return function(){var t=this,e=arguments;return new Promise(function(r,o){var a=n.apply(t,e);function _next(n){asyncGeneratorStep(a,r,o,_next,_throw,"next",n);}function _throw(n){asyncGeneratorStep(a,r,o,_next,_throw,"throw",n);}_next(void 0);});};}function _regeneratorRuntime(){"use strict";/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */_regeneratorRuntime=function _regeneratorRuntime(){return e;};var t,e={},r=Object.prototype,n=r.hasOwnProperty,o=Object.defineProperty||function(t,e,r){t[e]=r.value;},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",c=i.asyncIterator||"@@asyncIterator",u=i.toStringTag||"@@toStringTag";function define(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e];}try{define({},"");}catch(t){define=function define(t,e,r){return t[e]=r;};}function wrap(t,e,r,n){var i=e&&e.prototype instanceof Generator?e:Generator,a=Object.create(i.prototype),c=new Context(n||[]);return o(a,"_invoke",{value:makeInvokeMethod(t,r,c)}),a;}function tryCatch(t,e,r){try{return{type:"normal",arg:t.call(e,r)};}catch(t){return{type:"throw",arg:t};}}e.wrap=wrap;var h="suspendedStart",l="suspendedYield",f="executing",s="completed",y={};function Generator(){}function GeneratorFunction(){}function GeneratorFunctionPrototype(){}var p={};define(p,a,function(){return this;});var d=Object.getPrototypeOf,v=d&&d(d(values([])));v&&v!==r&&n.call(v,a)&&(p=v);var g=GeneratorFunctionPrototype.prototype=Generator.prototype=Object.create(p);function defineIteratorMethods(t){["next","throw","return"].forEach(function(e){define(t,e,function(t){return this._invoke(e,t);});});}function AsyncIterator(t,e){function invoke(r,o,i,a){var c=tryCatch(t[r],t,o);if("throw"!==c.type){var u=c.arg,h=u.value;return h&&"object"==_typeof(h)&&n.call(h,"__await")?e.resolve(h.__await).then(function(t){invoke("next",t,i,a);},function(t){invoke("throw",t,i,a);}):e.resolve(h).then(function(t){u.value=t,i(u);},function(t){return invoke("throw",t,i,a);});}a(c.arg);}var r;o(this,"_invoke",{value:function value(t,n){function callInvokeWithMethodAndArg(){return new e(function(e,r){invoke(t,n,e,r);});}return r=r?r.then(callInvokeWithMethodAndArg,callInvokeWithMethodAndArg):callInvokeWithMethodAndArg();}});}function makeInvokeMethod(e,r,n){var o=h;return function(i,a){if(o===f)throw Error("Generator is already running");if(o===s){if("throw"===i)throw a;return{value:t,done:!0};}for(n.method=i,n.arg=a;;){var c=n.delegate;if(c){var u=maybeInvokeDelegate(c,n);if(u){if(u===y)continue;return u;}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===h)throw o=s,n.arg;n.dispatchException(n.arg);}else"return"===n.method&&n.abrupt("return",n.arg);o=f;var p=tryCatch(e,r,n);if("normal"===p.type){if(o=n.done?s:l,p.arg===y)continue;return{value:p.arg,done:n.done};}"throw"===p.type&&(o=s,n.method="throw",n.arg=p.arg);}};}function maybeInvokeDelegate(e,r){var n=r.method,o=e.iterator[n];if(o===t)return r.delegate=null,"throw"===n&&e.iterator["return"]&&(r.method="return",r.arg=t,maybeInvokeDelegate(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),y;var i=tryCatch(o,e.iterator,r.arg);if("throw"===i.type)return r.method="throw",r.arg=i.arg,r.delegate=null,y;var a=i.arg;return a?a.done?(r[e.resultName]=a.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,y):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,y);}function pushTryEntry(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e);}function resetTryEntry(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e;}function Context(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(pushTryEntry,this),this.reset(!0);}function values(e){if(e||""===e){var r=e[a];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,i=function next(){for(;++o<e.length;)if(n.call(e,o))return next.value=e[o],next.done=!1,next;return next.value=t,next.done=!0,next;};return i.next=i;}}throw new TypeError(_typeof(e)+" is not iterable");}return GeneratorFunction.prototype=GeneratorFunctionPrototype,o(g,"constructor",{value:GeneratorFunctionPrototype,configurable:!0}),o(GeneratorFunctionPrototype,"constructor",{value:GeneratorFunction,configurable:!0}),GeneratorFunction.displayName=define(GeneratorFunctionPrototype,u,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===GeneratorFunction||"GeneratorFunction"===(e.displayName||e.name));},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,GeneratorFunctionPrototype):(t.__proto__=GeneratorFunctionPrototype,define(t,u,"GeneratorFunction")),t.prototype=Object.create(g),t;},e.awrap=function(t){return{__await:t};},defineIteratorMethods(AsyncIterator.prototype),define(AsyncIterator.prototype,c,function(){return this;}),e.AsyncIterator=AsyncIterator,e.async=function(t,r,n,o,i){void 0===i&&(i=Promise);var a=new AsyncIterator(wrap(t,r,n,o),i);return e.isGeneratorFunction(r)?a:a.next().then(function(t){return t.done?t.value:a.next();});},defineIteratorMethods(g),define(g,u,"Generator"),define(g,a,function(){return this;}),define(g,"toString",function(){return"[object Generator]";}),e.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function next(){for(;r.length;){var t=r.pop();if(t in e)return next.value=t,next.done=!1,next;}return next.done=!0,next;};},e.values=values,Context.prototype={constructor:Context,reset:function reset(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(resetTryEntry),!e)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=t);},stop:function stop(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval;},dispatchException:function dispatchException(e){if(this.done)throw e;var r=this;function handle(n,o){return a.type="throw",a.arg=e,r.next=n,o&&(r.method="next",r.arg=t),!!o;}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return handle("end");if(i.tryLoc<=this.prev){var c=n.call(i,"catchLoc"),u=n.call(i,"finallyLoc");if(c&&u){if(this.prev<i.catchLoc)return handle(i.catchLoc,!0);if(this.prev<i.finallyLoc)return handle(i.finallyLoc);}else if(c){if(this.prev<i.catchLoc)return handle(i.catchLoc,!0);}else{if(!u)throw Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return handle(i.finallyLoc);}}}},abrupt:function abrupt(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break;}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,y):this.complete(a);},complete:function complete(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),y;},finish:function finish(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),resetTryEntry(r),y;}},"catch":function _catch(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;resetTryEntry(r);}return o;}}throw Error("illegal catch attempt");},delegateYield:function delegateYield(e,r,n){return this.delegate={iterator:values(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),y;}},e;}function _toArray(r){return _arrayWithHoles(r)||_iterableToArray(r)||_unsupportedIterableToArray(r)||_nonIterableRest();}function _toConsumableArray(r){return _arrayWithoutHoles(r)||_iterableToArray(r)||_unsupportedIterableToArray(r)||_nonIterableSpread();}function _nonIterableSpread(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");}function _iterableToArray(r){if("undefined"!=typeof Symbol&&null!=r[Symbol.iterator]||null!=r["@@iterator"])return Array.from(r);}function _arrayWithoutHoles(r){if(Array.isArray(r))return _arrayLikeToArray(r);}function _createForOfIteratorHelper(r,e){var t="undefined"!=typeof Symbol&&r[Symbol.iterator]||r["@@iterator"];if(!t){if(Array.isArray(r)||(t=_unsupportedIterableToArray(r))||e&&r&&"number"==typeof r.length){t&&(r=t);var _n=0,F=function F(){};return{s:F,n:function n(){return _n>=r.length?{done:!0}:{done:!1,value:r[_n++]};},e:function e(r){throw r;},f:F};}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");}var o,a=!0,u=!1;return{s:function s(){t=t.call(r);},n:function n(){var r=t.next();return a=r.done,r;},e:function e(r){u=!0,o=r;},f:function f(){try{a||null==t["return"]||t["return"]();}finally{if(u)throw o;}}};}function ownKeys(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);r&&(o=o.filter(function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable;})),t.push.apply(t,o);}return t;}function _objectSpread(e){for(var r=1;r<arguments.length;r++){var t=null!=arguments[r]?arguments[r]:{};r%2?ownKeys(Object(t),!0).forEach(function(r){_defineProperty(e,r,t[r]);}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):ownKeys(Object(t)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r));});}return e;}function _defineProperty(e,r,t){return(r=_toPropertyKey(r))in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e;}function _classCallCheck(a,n){if(!(a instanceof n))throw new TypeError("Cannot call a class as a function");}function _defineProperties(e,r){for(var t=0;t<r.length;t++){var o=r[t];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,_toPropertyKey(o.key),o);}}function _createClass(e,r,t){return r&&_defineProperties(e.prototype,r),t&&_defineProperties(e,t),Object.defineProperty(e,"prototype",{writable:!1}),e;}function _toPropertyKey(t){var i=_toPrimitive(t,"string");return"symbol"==_typeof(i)?i:i+"";}function _toPrimitive(t,r){if("object"!=_typeof(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var i=e.call(t,r||"default");if("object"!=_typeof(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.");}return("string"===r?String:Number)(t);}function _slicedToArray(r,e){return _arrayWithHoles(r)||_iterableToArrayLimit(r,e)||_unsupportedIterableToArray(r,e)||_nonIterableRest();}function _nonIterableRest(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");}function _unsupportedIterableToArray(r,a){if(r){if("string"==typeof r)return _arrayLikeToArray(r,a);var t={}.toString.call(r).slice(8,-1);return"Object"===t&&r.constructor&&(t=r.constructor.name),"Map"===t||"Set"===t?Array.from(r):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?_arrayLikeToArray(r,a):void 0;}}function _arrayLikeToArray(r,a){(null==a||a>r.length)&&(a=r.length);for(var e=0,n=Array(a);e<a;e++)n[e]=r[e];return n;}function _iterableToArrayLimit(r,l){var t=null==r?null:"undefined"!=typeof Symbol&&r[Symbol.iterator]||r["@@iterator"];if(null!=t){var e,n,i,u,a=[],f=!0,o=!1;try{if(i=(t=t.call(r)).next,0===l){if(Object(t)!==t)return;f=!1;}else for(;!(f=(e=i.call(t)).done)&&(a.push(e.value),a.length!==l);f=!0);}catch(r){o=!0,n=r;}finally{try{if(!f&&null!=t["return"]&&(u=t["return"](),Object(u)!==u))return;}finally{if(o)throw n;}}return a;}}function _arrayWithHoles(r){if(Array.isArray(r))return r;}function _typeof(o){"@babel/helpers - typeof";return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(o){return typeof o;}:function(o){return o&&"function"==typeof Symbol&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o;},_typeof(o);}function _wrapAsyncGenerator(e){return function(){return new AsyncGenerator(e.apply(this,arguments));};}function AsyncGenerator(e){var r,t;function resume(r,t){try{var n=e[r](t),o=n.value,u=o instanceof _OverloadYield;Promise.resolve(u?o.v:o).then(function(t){if(u){var i="return"===r?"return":"next";if(!o.k||t.done)return resume(i,t);t=e[i](t).value;}settle(n.done?"return":"normal",t);},function(e){resume("throw",e);});}catch(e){settle("throw",e);}}function settle(e,n){switch(e){case"return":r.resolve({value:n,done:!0});break;case"throw":r.reject(n);break;default:r.resolve({value:n,done:!1});}(r=r.next)?resume(r.key,r.arg):t=null;}this._invoke=function(e,n){return new Promise(function(o,u){var i={key:e,arg:n,resolve:o,reject:u,next:null};t?t=t.next=i:(r=t=i,resume(e,n));});},"function"!=typeof e["return"]&&(this["return"]=void 0);}AsyncGenerator.prototype["function"==typeof Symbol&&Symbol.asyncIterator||"@@asyncIterator"]=function(){return this;},AsyncGenerator.prototype.next=function(e){return this._invoke("next",e);},AsyncGenerator.prototype["throw"]=function(e){return this._invoke("throw",e);},AsyncGenerator.prototype["return"]=function(e){return this._invoke("return",e);};function _awaitAsyncGenerator(e){return new _OverloadYield(e,0);}function _asyncGeneratorDelegate(t){var e={},n=!1;function pump(e,r){return n=!0,r=new Promise(function(n){n(t[e](r));}),{done:!1,value:new _OverloadYield(r,1)};}return e["undefined"!=typeof Symbol&&Symbol.iterator||"@@iterator"]=function(){return this;},e.next=function(t){return n?(n=!1,t):pump("next",t);},"function"==typeof t["throw"]&&(e["throw"]=function(t){if(n)throw n=!1,t;return pump("throw",t);}),"function"==typeof t["return"]&&(e["return"]=function(t){return n?(n=!1,t):pump("return",t);}),e;}function _OverloadYield(e,d){this.v=e,this.k=d;}function _asyncIterator(r){var n,t,o,e=2;for("undefined"!=typeof Symbol&&(t=Symbol.asyncIterator,o=Symbol.iterator);e--;){if(t&&null!=(n=r[t]))return n.call(r);if(o&&null!=(n=r[o]))return new AsyncFromSyncIterator(n.call(r));t="@@asyncIterator",o="@@iterator";}throw new TypeError("Object is not async iterable");}function AsyncFromSyncIterator(r){function AsyncFromSyncIteratorContinuation(r){if(Object(r)!==r)return Promise.reject(new TypeError(r+" is not an object."));var n=r.done;return Promise.resolve(r.value).then(function(r){return{value:r,done:n};});}return AsyncFromSyncIterator=function AsyncFromSyncIterator(r){this.s=r,this.n=r.next;},AsyncFromSyncIterator.prototype={s:null,n:null,next:function next(){return AsyncFromSyncIteratorContinuation(this.n.apply(this.s,arguments));},"return":function _return(r){var n=this.s["return"];return void 0===n?Promise.resolve({value:r,done:!0}):AsyncFromSyncIteratorContinuation(n.apply(this.s,arguments));},"throw":function _throw(r){var n=this.s["return"];return void 0===n?Promise.reject(r):AsyncFromSyncIteratorContinuation(n.apply(this.s,arguments));}},new AsyncFromSyncIterator(r);}var qs=require('qs');function _interopDefaultLegacy(e){return e&&_typeof(e)==='object'&&'default'in e?e:{'default':e};}var qs__default=/*#__PURE__*/_interopDefaultLegacy(qs);var PureCloudRegionHosts={us_east_1:'mypurecloud.com',eu_west_1:'mypurecloud.ie',ap_southeast_2:'mypurecloud.com.au',ap_northeast_1:'mypurecloud.jp',eu_central_1:'mypurecloud.de',us_west_2:'usw2.pure.cloud',ca_central_1:'cac1.pure.cloud',ap_northeast_2:'apne2.pure.cloud',eu_west_2:'euw2.pure.cloud',ap_south_1:'aps1.pure.cloud',us_east_2:'use2.us-gov-pure.cloud',sa_east_1:'sae1.pure.cloud',me_central_1:'mec1.pure.cloud',ap_northeast_3:'apne3.pure.cloud',eu_central_2:'euc2.pure.cloud'};var global$1=typeof global!=="undefined"?global:typeof self!=="undefined"?self:typeof window!=="undefined"?window:{};// shim for using process in browser
5568
5568
  // based off https://github.com/defunctzombie/node-process/blob/master/browser.js
5569
5569
  function defaultSetTimout(){throw new Error('setTimeout has not been defined');}function defaultClearTimeout(){throw new Error('clearTimeout has not been defined');}var cachedSetTimeout=defaultSetTimout;var cachedClearTimeout=defaultClearTimeout;if(typeof global$1.setTimeout==='function'){cachedSetTimeout=setTimeout;}if(typeof global$1.clearTimeout==='function'){cachedClearTimeout=clearTimeout;}function runTimeout(fun){if(cachedSetTimeout===setTimeout){//normal enviroments in sane situations
5570
5570
  return setTimeout(fun,0);}// if setTimeout wasn't available but was latter defined
@@ -5583,7 +5583,7 @@ var versions={};var release={};var config={};function noop$1(){}var on=noop$1;va
5583
5583
  var performance=global$1.performance||{};var performanceNow=performance.now||performance.mozNow||performance.msNow||performance.oNow||performance.webkitNow||function(){return new Date().getTime();};// generate timestamp or delta
5584
5584
  // see http://nodejs.org/api/process.html#process_process_hrtime
5585
5585
  function hrtime(previousTimestamp){var clocktime=performanceNow.call(performance)*1e-3;var seconds=Math.floor(clocktime);var nanoseconds=Math.floor(clocktime%1*1e9);if(previousTimestamp){seconds=seconds-previousTimestamp[0];nanoseconds=nanoseconds-previousTimestamp[1];if(nanoseconds<0){seconds--;nanoseconds+=1e9;}}return[seconds,nanoseconds];}var startTime=new Date();function uptime(){var currentTime=new Date();var dif=currentTime-startTime;return dif/1000;}var process={nextTick:nextTick,title:title,browser:browser,env:env,argv:argv,version:version,versions:versions,on:on,addListener:addListener,once:once,off:off,removeListener:removeListener,removeAllListeners:removeAllListeners,emit:emit,binding:binding,cwd:cwd,chdir:chdir,umask:umask,hrtime:hrtime,platform:platform$2,release:release,config:config,uptime:uptime};function bind(fn,thisArg){return function wrap(){return fn.apply(thisArg,arguments);};}// utils is a library of generic helper functions non-specific to axios
5586
- var toString$1=Object.prototype.toString;var getPrototypeOf=Object.getPrototypeOf;var kindOf=function(cache){return function(thing){var str=toString$1.call(thing);return cache[str]||(cache[str]=str.slice(8,-1).toLowerCase());};}(Object.create(null));var kindOfTest=function kindOfTest(type){type=type.toLowerCase();return function(thing){return kindOf(thing)===type;};};var typeOfTest=function typeOfTest(type){return function(thing){return _typeof(thing)===type;};};/**
5586
+ var toString$1=Object.prototype.toString;var getPrototypeOf=Object.getPrototypeOf;var iterator=Symbol.iterator,toStringTag=Symbol.toStringTag;var kindOf=function(cache){return function(thing){var str=toString$1.call(thing);return cache[str]||(cache[str]=str.slice(8,-1).toLowerCase());};}(Object.create(null));var kindOfTest=function kindOfTest(type){type=type.toLowerCase();return function(thing){return kindOf(thing)===type;};};var typeOfTest=function typeOfTest(type){return function(thing){return _typeof(thing)===type;};};/**
5587
5587
  * Determine if a value is an Array
5588
5588
  *
5589
5589
  * @param {Object} val The value to test
@@ -5647,7 +5647,7 @@ var toString$1=Object.prototype.toString;var getPrototypeOf=Object.getPrototypeO
5647
5647
  * @param {*} val The value to test
5648
5648
  *
5649
5649
  * @returns {boolean} True if value is a plain Object, otherwise false
5650
- */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)&&!(Symbol.toStringTag in val)&&!(Symbol.iterator in val);};/**
5650
+ */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);};/**
5651
5651
  * Determine if a value is a Date
5652
5652
  *
5653
5653
  * @param {*} val The value to test
@@ -5793,7 +5793,7 @@ return function(thing){return TypedArray&&thing instanceof TypedArray;};}(typeof
5793
5793
  * @param {Function} fn - The function to call for each entry.
5794
5794
  *
5795
5795
  * @returns {void}
5796
- */var forEachEntry=function forEachEntry(obj,fn){var generator=obj&&obj[Symbol.iterator];var iterator=generator.call(obj);var result;while((result=iterator.next())&&!result.done){var pair=result.value;fn.call(obj,pair[0],pair[1]);}};/**
5796
+ */var forEachEntry=function forEachEntry(obj,fn){var generator=obj&&obj[iterator];var _iterator=generator.call(obj);var result;while((result=_iterator.next())&&!result.done){var pair=result.value;fn.call(obj,pair[0],pair[1]);}};/**
5797
5797
  * It takes a regular expression and a string, and returns an array of all the matches
5798
5798
  *
5799
5799
  * @param {string} regExp - The regular expression to match against.
@@ -5816,11 +5816,11 @@ if(isFunction(obj)&&['arguments','caller','callee'].indexOf(name)!==-1){return f
5816
5816
  * @param {unknown} thing - The thing to check.
5817
5817
  *
5818
5818
  * @returns {boolean}
5819
- */function isSpecCompliantForm(thing){return!!(thing&&isFunction(thing.append)&&thing[Symbol.toStringTag]==='FormData'&&thing[Symbol.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
5819
+ */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
5820
5820
  // https://github.com/DigitalBrainJS/AxiosPromise/blob/16deab13710ec09779922131f3fa5954320f83ab/lib/utils.js#L11-L34
5821
5821
  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;// *********************
5822
- 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
5823
- 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};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)
5822
+ 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
5823
+ 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)
5824
5824
  // if there are two placeholders, than the two characters before it
5825
5825
  // represent one byte
5826
5826
  // if there is only one, then the three characters before it represent 2 bytes
@@ -6184,7 +6184,7 @@ var ignoreDuplicateOf=utils$1.toObjectSet(['age','authorization','content-length
6184
6184
  * @param {String} rawHeaders Headers needing to be parsed
6185
6185
  *
6186
6186
  * @returns {Object} Headers parsed into an object
6187
- */var parseHeaders=function parseHeaders(rawHeaders){var parsed={};var key;var val;var i;rawHeaders&&rawHeaders.split('\n').forEach(function parser(line){i=line.indexOf(':');key=line.substring(0,i).trim().toLowerCase();val=line.substring(i+1).trim();if(!key||parsed[key]&&ignoreDuplicateOf[key]){return;}if(key==='set-cookie'){if(parsed[key]){parsed[key].push(val);}else{parsed[key]=[val];}}else{parsed[key]=parsed[key]?parsed[key]+', '+val:val;}});return parsed;};var $internals=Symbol('internals');function normalizeHeader(header){return header&&String(header).trim().toLowerCase();}function normalizeValue(value){if(value===false||value==null){return value;}return utils$1.isArray(value)?value.map(normalizeValue):String(value);}function parseTokens(str){var tokens=Object.create(null);var tokensRE=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;var match;while(match=tokensRE.exec(str)){tokens[match[1]]=match[2];}return tokens;}var isValidHeaderName=function isValidHeaderName(str){return /^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(str.trim());};function matchHeaderValue(context,value,header,filter,isHeaderNameFilter){if(utils$1.isFunction(filter)){return filter.call(this,value,header);}if(isHeaderNameFilter){value=header;}if(!utils$1.isString(value))return;if(utils$1.isString(filter)){return value.indexOf(filter)!==-1;}if(utils$1.isRegExp(filter)){return filter.test(value);}}function formatHeader(header){return header.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,function(w,_char,str){return _char.toUpperCase()+str;});}function buildAccessors(obj,header){var accessorName=utils$1.toCamelCase(' '+header);['get','set','has'].forEach(function(methodName){Object.defineProperty(obj,methodName+accessorName,{value:function value(arg1,arg2,arg3){return this[methodName].call(this,header,arg1,arg2,arg3);},configurable:true});});}var AxiosHeaders=/*#__PURE__*/function(){function AxiosHeaders(headers){_classCallCheck(this,AxiosHeaders);headers&&this.set(headers);}return _createClass(AxiosHeaders,[{key:"set",value:function set(header,valueOrRewrite,rewrite){var self=this;function setHeader(_value,_header,_rewrite){var lHeader=normalizeHeader(_header);if(!lHeader){throw new Error('header name must be a non-empty string');}var key=utils$1.findKey(self,lHeader);if(!key||self[key]===undefined||_rewrite===true||_rewrite===undefined&&self[key]!==false){self[key||_header]=normalizeValue(_value);}}var setHeaders=function setHeaders(headers,_rewrite){return utils$1.forEach(headers,function(_value,_header){return setHeader(_value,_header,_rewrite);});};if(utils$1.isPlainObject(header)||header instanceof this.constructor){setHeaders(header,valueOrRewrite);}else if(utils$1.isString(header)&&(header=header.trim())&&!isValidHeaderName(header)){setHeaders(parseHeaders(header),valueOrRewrite);}else if(utils$1.isHeaders(header)){var _iterator2=_createForOfIteratorHelper(header.entries()),_step2;try{for(_iterator2.s();!(_step2=_iterator2.n()).done;){var _step2$value=_slicedToArray(_step2.value,2),key=_step2$value[0],value=_step2$value[1];setHeader(value,key,rewrite);}}catch(err){_iterator2.e(err);}finally{_iterator2.f();}}else{header!=null&&setHeader(valueOrRewrite,header,rewrite);}return this;}},{key:"get",value:function get(header,parser){header=normalizeHeader(header);if(header){var key=utils$1.findKey(this,header);if(key){var value=this[key];if(!parser){return value;}if(parser===true){return parseTokens(value);}if(utils$1.isFunction(parser)){return parser.call(this,value,key);}if(utils$1.isRegExp(parser)){return parser.exec(value);}throw new TypeError('parser must be boolean|regexp|function');}}}},{key:"has",value:function has(header,matcher){header=normalizeHeader(header);if(header){var key=utils$1.findKey(this,header);return!!(key&&this[key]!==undefined&&(!matcher||matchHeaderValue(this,this[key],key,matcher)));}return false;}},{key:"delete",value:function _delete(header,matcher){var self=this;var deleted=false;function deleteHeader(_header){_header=normalizeHeader(_header);if(_header){var key=utils$1.findKey(self,_header);if(key&&(!matcher||matchHeaderValue(self,self[key],key,matcher))){delete self[key];deleted=true;}}}if(utils$1.isArray(header)){header.forEach(deleteHeader);}else{deleteHeader(header);}return deleted;}},{key:"clear",value:function clear(matcher){var keys=Object.keys(this);var i=keys.length;var deleted=false;while(i--){var key=keys[i];if(!matcher||matchHeaderValue(this,this[key],key,matcher,true)){delete this[key];deleted=true;}}return deleted;}},{key:"normalize",value:function normalize(format){var self=this;var headers={};utils$1.forEach(this,function(value,header){var key=utils$1.findKey(headers,header);if(key){self[key]=normalizeValue(value);delete self[header];return;}var normalized=format?formatHeader(header):String(header).trim();if(normalized!==header){delete self[header];}self[normalized]=normalizeValue(value);headers[normalized]=true;});return this;}},{key:"concat",value:function concat(){var _this$constructor;for(var _len=arguments.length,targets=new Array(_len),_key2=0;_key2<_len;_key2++){targets[_key2]=arguments[_key2];}return(_this$constructor=this.constructor).concat.apply(_this$constructor,[this].concat(targets));}},{key:"toJSON",value:function toJSON(asStrings){var obj=Object.create(null);utils$1.forEach(this,function(value,header){value!=null&&value!==false&&(obj[header]=asStrings&&utils$1.isArray(value)?value.join(', '):value);});return obj;}},{key:Symbol.iterator,value:function value(){return Object.entries(this.toJSON())[Symbol.iterator]();}},{key:"toString",value:function toString(){return Object.entries(this.toJSON()).map(function(_ref8){var _ref9=_slicedToArray(_ref8,2),header=_ref9[0],value=_ref9[1];return header+': '+value;}).join('\n');}},{key:Symbol.toStringTag,get:function get(){return'AxiosHeaders';}}],[{key:"from",value:function from(thing){return thing instanceof this?thing:new this(thing);}},{key:"concat",value:function concat(first){var computed=new this(first);for(var _len2=arguments.length,targets=new Array(_len2>1?_len2-1:0),_key3=1;_key3<_len2;_key3++){targets[_key3-1]=arguments[_key3];}targets.forEach(function(target){return computed.set(target);});return computed;}},{key:"accessor",value:function accessor(header){var internals=this[$internals]=this[$internals]={accessors:{}};var accessors=internals.accessors;var prototype=this.prototype;function defineAccessor(_header){var lHeader=normalizeHeader(_header);if(!accessors[lHeader]){buildAccessors(prototype,_header);accessors[lHeader]=true;}}utils$1.isArray(header)?header.forEach(defineAccessor):defineAccessor(header);return this;}}]);}();AxiosHeaders.accessor(['Content-Type','Content-Length','Accept','Accept-Encoding','User-Agent','Authorization']);// reserved names hotfix
6187
+ */var parseHeaders=function parseHeaders(rawHeaders){var parsed={};var key;var val;var i;rawHeaders&&rawHeaders.split('\n').forEach(function parser(line){i=line.indexOf(':');key=line.substring(0,i).trim().toLowerCase();val=line.substring(i+1).trim();if(!key||parsed[key]&&ignoreDuplicateOf[key]){return;}if(key==='set-cookie'){if(parsed[key]){parsed[key].push(val);}else{parsed[key]=[val];}}else{parsed[key]=parsed[key]?parsed[key]+', '+val:val;}});return parsed;};var $internals=Symbol('internals');function normalizeHeader(header){return header&&String(header).trim().toLowerCase();}function normalizeValue(value){if(value===false||value==null){return value;}return utils$1.isArray(value)?value.map(normalizeValue):String(value);}function parseTokens(str){var tokens=Object.create(null);var tokensRE=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;var match;while(match=tokensRE.exec(str)){tokens[match[1]]=match[2];}return tokens;}var isValidHeaderName=function isValidHeaderName(str){return /^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(str.trim());};function matchHeaderValue(context,value,header,filter,isHeaderNameFilter){if(utils$1.isFunction(filter)){return filter.call(this,value,header);}if(isHeaderNameFilter){value=header;}if(!utils$1.isString(value))return;if(utils$1.isString(filter)){return value.indexOf(filter)!==-1;}if(utils$1.isRegExp(filter)){return filter.test(value);}}function formatHeader(header){return header.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,function(w,_char,str){return _char.toUpperCase()+str;});}function buildAccessors(obj,header){var accessorName=utils$1.toCamelCase(' '+header);['get','set','has'].forEach(function(methodName){Object.defineProperty(obj,methodName+accessorName,{value:function value(arg1,arg2,arg3){return this[methodName].call(this,header,arg1,arg2,arg3);},configurable:true});});}var AxiosHeaders=/*#__PURE__*/function(){function AxiosHeaders(headers){_classCallCheck(this,AxiosHeaders);headers&&this.set(headers);}return _createClass(AxiosHeaders,[{key:"set",value:function set(header,valueOrRewrite,rewrite){var self=this;function setHeader(_value,_header,_rewrite){var lHeader=normalizeHeader(_header);if(!lHeader){throw new Error('header name must be a non-empty string');}var key=utils$1.findKey(self,lHeader);if(!key||self[key]===undefined||_rewrite===true||_rewrite===undefined&&self[key]!==false){self[key||_header]=normalizeValue(_value);}}var setHeaders=function setHeaders(headers,_rewrite){return utils$1.forEach(headers,function(_value,_header){return setHeader(_value,_header,_rewrite);});};if(utils$1.isPlainObject(header)||header instanceof this.constructor){setHeaders(header,valueOrRewrite);}else if(utils$1.isString(header)&&(header=header.trim())&&!isValidHeaderName(header)){setHeaders(parseHeaders(header),valueOrRewrite);}else if(utils$1.isObject(header)&&utils$1.isIterable(header)){var obj={},dest,key;var _iterator3=_createForOfIteratorHelper(header),_step2;try{for(_iterator3.s();!(_step2=_iterator3.n()).done;){var entry=_step2.value;if(!utils$1.isArray(entry)){throw TypeError('Object iterator must return a key-value pair');}obj[key=entry[0]]=(dest=obj[key])?utils$1.isArray(dest)?[].concat(_toConsumableArray(dest),[entry[1]]):[dest,entry[1]]:entry[1];}}catch(err){_iterator3.e(err);}finally{_iterator3.f();}setHeaders(obj,valueOrRewrite);}else{header!=null&&setHeader(valueOrRewrite,header,rewrite);}return this;}},{key:"get",value:function get(header,parser){header=normalizeHeader(header);if(header){var key=utils$1.findKey(this,header);if(key){var value=this[key];if(!parser){return value;}if(parser===true){return parseTokens(value);}if(utils$1.isFunction(parser)){return parser.call(this,value,key);}if(utils$1.isRegExp(parser)){return parser.exec(value);}throw new TypeError('parser must be boolean|regexp|function');}}}},{key:"has",value:function has(header,matcher){header=normalizeHeader(header);if(header){var key=utils$1.findKey(this,header);return!!(key&&this[key]!==undefined&&(!matcher||matchHeaderValue(this,this[key],key,matcher)));}return false;}},{key:"delete",value:function _delete(header,matcher){var self=this;var deleted=false;function deleteHeader(_header){_header=normalizeHeader(_header);if(_header){var key=utils$1.findKey(self,_header);if(key&&(!matcher||matchHeaderValue(self,self[key],key,matcher))){delete self[key];deleted=true;}}}if(utils$1.isArray(header)){header.forEach(deleteHeader);}else{deleteHeader(header);}return deleted;}},{key:"clear",value:function clear(matcher){var keys=Object.keys(this);var i=keys.length;var deleted=false;while(i--){var key=keys[i];if(!matcher||matchHeaderValue(this,this[key],key,matcher,true)){delete this[key];deleted=true;}}return deleted;}},{key:"normalize",value:function normalize(format){var self=this;var headers={};utils$1.forEach(this,function(value,header){var key=utils$1.findKey(headers,header);if(key){self[key]=normalizeValue(value);delete self[header];return;}var normalized=format?formatHeader(header):String(header).trim();if(normalized!==header){delete self[header];}self[normalized]=normalizeValue(value);headers[normalized]=true;});return this;}},{key:"concat",value:function concat(){var _this$constructor;for(var _len=arguments.length,targets=new Array(_len),_key2=0;_key2<_len;_key2++){targets[_key2]=arguments[_key2];}return(_this$constructor=this.constructor).concat.apply(_this$constructor,[this].concat(targets));}},{key:"toJSON",value:function toJSON(asStrings){var obj=Object.create(null);utils$1.forEach(this,function(value,header){value!=null&&value!==false&&(obj[header]=asStrings&&utils$1.isArray(value)?value.join(', '):value);});return obj;}},{key:Symbol.iterator,value:function value(){return Object.entries(this.toJSON())[Symbol.iterator]();}},{key:"toString",value:function toString(){return Object.entries(this.toJSON()).map(function(_ref8){var _ref9=_slicedToArray(_ref8,2),header=_ref9[0],value=_ref9[1];return header+': '+value;}).join('\n');}},{key:"getSetCookie",value:function getSetCookie(){return this.get("set-cookie")||[];}},{key:Symbol.toStringTag,get:function get(){return'AxiosHeaders';}}],[{key:"from",value:function from(thing){return thing instanceof this?thing:new this(thing);}},{key:"concat",value:function concat(first){var computed=new this(first);for(var _len2=arguments.length,targets=new Array(_len2>1?_len2-1:0),_key3=1;_key3<_len2;_key3++){targets[_key3-1]=arguments[_key3];}targets.forEach(function(target){return computed.set(target);});return computed;}},{key:"accessor",value:function accessor(header){var internals=this[$internals]=this[$internals]={accessors:{}};var accessors=internals.accessors;var prototype=this.prototype;function defineAccessor(_header){var lHeader=normalizeHeader(_header);if(!accessors[lHeader]){buildAccessors(prototype,_header);accessors[lHeader]=true;}}utils$1.isArray(header)?header.forEach(defineAccessor):defineAccessor(header);return this;}}]);}();AxiosHeaders.accessor(['Content-Type','Content-Length','Accept','Accept-Encoding','User-Agent','Authorization']);// reserved names hotfix
6188
6188
  utils$1.reduceDescriptors(AxiosHeaders.prototype,function(_ref10,key){var value=_ref10.value;var mapped=key[0].toUpperCase()+key.slice(1);// map `set` => `Set`
6189
6189
  return{get:function get(){return value;},set:function set(headerValue){this[mapped]=headerValue;}};});utils$1.freezeMethods(AxiosHeaders);var AxiosHeaders$1=AxiosHeaders;/**
6190
6190
  * Transform the data for a request or a response
@@ -6297,10 +6297,10 @@ if(onDownloadProgress){var _progressEventReducer=progressEventReducer(onDownload
6297
6297
  if(onUploadProgress&&request.upload){var _progressEventReducer3=progressEventReducer(onUploadProgress);var _progressEventReducer4=_slicedToArray(_progressEventReducer3,2);uploadThrottled=_progressEventReducer4[0];flushUpload=_progressEventReducer4[1];request.upload.addEventListener('progress',uploadThrottled);request.upload.addEventListener('loadend',flushUpload);}if(_config.cancelToken||_config.signal){// Handle cancellation
6298
6298
  // eslint-disable-next-line func-names
6299
6299
  onCanceled=function onCanceled(cancel){if(!request){return;}reject(!cancel||cancel.type?new CanceledError(null,config,request):cancel);request.abort();request=null;};_config.cancelToken&&_config.cancelToken.subscribe(onCanceled);if(_config.signal){_config.signal.aborted?onCanceled():_config.signal.addEventListener('abort',onCanceled);}}var protocol=parseProtocol(_config.url);if(protocol&&platform.protocols.indexOf(protocol)===-1){reject(new AxiosError('Unsupported protocol '+protocol+':',AxiosError.ERR_BAD_REQUEST,config));return;}// Send the request
6300
- request.send(requestData||null);});};var composeSignals=function composeSignals(signals,timeout){var _signals=signals=signals?signals.filter(Boolean):[],length=_signals.length;if(timeout||length){var controller=new AbortController();var aborted;var onabort=function onabort(reason){if(!aborted){aborted=true;unsubscribe();var err=reason instanceof Error?reason:this.reason;controller.abort(err instanceof AxiosError?err:new CanceledError(err instanceof Error?err.message:err));}};var timer=timeout&&setTimeout(function(){timer=null;onabort(new AxiosError("timeout ".concat(timeout," of ms exceeded"),AxiosError.ETIMEDOUT));},timeout);var unsubscribe=function unsubscribe(){if(signals){timer&&clearTimeout(timer);timer=null;signals.forEach(function(signal){signal.unsubscribe?signal.unsubscribe(onabort):signal.removeEventListener('abort',onabort);});signals=null;}};signals.forEach(function(signal){return signal.addEventListener('abort',onabort);});var signal=controller.signal;signal.unsubscribe=function(){return utils$1.asap(unsubscribe);};return signal;}};var composeSignals$1=composeSignals;var streamChunk=/*#__PURE__*/_regeneratorRuntime().mark(function streamChunk(chunk,chunkSize){var len,pos,end;return _regeneratorRuntime().wrap(function streamChunk$(_context){while(1)switch(_context.prev=_context.next){case 0:len=chunk.byteLength;if(!(!chunkSize||len<chunkSize)){_context.next=5;break;}_context.next=4;return chunk;case 4:return _context.abrupt("return");case 5:pos=0;case 6:if(!(pos<len)){_context.next=13;break;}end=pos+chunkSize;_context.next=10;return chunk.slice(pos,end);case 10:pos=end;_context.next=6;break;case 13:case"end":return _context.stop();}},streamChunk);});var readBytes=/*#__PURE__*/function(){var _ref=_wrapAsyncGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(iterable,chunkSize){var _iteratorAbruptCompletion,_didIteratorError,_iteratorError,_iterator,_step,chunk;return _regeneratorRuntime().wrap(function _callee$(_context2){while(1)switch(_context2.prev=_context2.next){case 0:_iteratorAbruptCompletion=false;_didIteratorError=false;_context2.prev=2;_iterator=_asyncIterator(readStream(iterable));case 4:_context2.next=6;return _awaitAsyncGenerator(_iterator.next());case 6:if(!(_iteratorAbruptCompletion=!(_step=_context2.sent).done)){_context2.next=12;break;}chunk=_step.value;return _context2.delegateYield(_asyncGeneratorDelegate(_asyncIterator(streamChunk(chunk,chunkSize)),_awaitAsyncGenerator),"t0",9);case 9:_iteratorAbruptCompletion=false;_context2.next=4;break;case 12:_context2.next=18;break;case 14:_context2.prev=14;_context2.t1=_context2["catch"](2);_didIteratorError=true;_iteratorError=_context2.t1;case 18:_context2.prev=18;_context2.prev=19;if(!(_iteratorAbruptCompletion&&_iterator["return"]!=null)){_context2.next=23;break;}_context2.next=23;return _awaitAsyncGenerator(_iterator["return"]());case 23:_context2.prev=23;if(!_didIteratorError){_context2.next=26;break;}throw _iteratorError;case 26:return _context2.finish(23);case 27:return _context2.finish(18);case 28:case"end":return _context2.stop();}},_callee,null,[[2,14,18,28],[19,,23,27]]);}));return function readBytes(_x,_x2){return _ref.apply(this,arguments);};}();var readStream=/*#__PURE__*/function(){var _ref2=_wrapAsyncGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee2(stream){var reader,_yield$_awaitAsyncGen,done,value;return _regeneratorRuntime().wrap(function _callee2$(_context3){while(1)switch(_context3.prev=_context3.next){case 0:if(!stream[Symbol.asyncIterator]){_context3.next=3;break;}return _context3.delegateYield(_asyncGeneratorDelegate(_asyncIterator(stream),_awaitAsyncGenerator),"t0",2);case 2:return _context3.abrupt("return");case 3:reader=stream.getReader();_context3.prev=4;case 5:_context3.next=7;return _awaitAsyncGenerator(reader.read());case 7:_yield$_awaitAsyncGen=_context3.sent;done=_yield$_awaitAsyncGen.done;value=_yield$_awaitAsyncGen.value;if(!done){_context3.next=12;break;}return _context3.abrupt("break",16);case 12:_context3.next=14;return value;case 14:_context3.next=5;break;case 16:_context3.prev=16;_context3.next=19;return _awaitAsyncGenerator(reader.cancel());case 19:return _context3.finish(16);case 20:case"end":return _context3.stop();}},_callee2,null,[[4,,16,20]]);}));return function readStream(_x3){return _ref2.apply(this,arguments);};}();var trackStream=function trackStream(stream,chunkSize,onProgress,onFinish){var iterator=readBytes(stream,chunkSize);var bytes=0;var done;var _onFinish=function _onFinish(e){if(!done){done=true;onFinish&&onFinish(e);}};return new ReadableStream({pull:function pull(controller){return _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee3(){var _yield$iterator$next,_done,value,len,loadedBytes;return _regeneratorRuntime().wrap(function _callee3$(_context4){while(1)switch(_context4.prev=_context4.next){case 0:_context4.prev=0;_context4.next=3;return iterator.next();case 3:_yield$iterator$next=_context4.sent;_done=_yield$iterator$next.done;value=_yield$iterator$next.value;if(!_done){_context4.next=10;break;}_onFinish();controller.close();return _context4.abrupt("return");case 10:len=value.byteLength;if(onProgress){loadedBytes=bytes+=len;onProgress(loadedBytes);}controller.enqueue(new Uint8Array(value));_context4.next=19;break;case 15:_context4.prev=15;_context4.t0=_context4["catch"](0);_onFinish(_context4.t0);throw _context4.t0;case 19:case"end":return _context4.stop();}},_callee3,null,[[0,15]]);}))();},cancel:function cancel(reason){_onFinish(reason);return iterator["return"]();}},{highWaterMark:2});};var isFetchSupported=typeof fetch==='function'&&typeof Request==='function'&&typeof Response==='function';var isReadableStreamSupported=isFetchSupported&&typeof ReadableStream==='function';// used only inside the fetch adapter
6300
+ request.send(requestData||null);});};var composeSignals=function composeSignals(signals,timeout){var _signals=signals=signals?signals.filter(Boolean):[],length=_signals.length;if(timeout||length){var controller=new AbortController();var aborted;var onabort=function onabort(reason){if(!aborted){aborted=true;unsubscribe();var err=reason instanceof Error?reason:this.reason;controller.abort(err instanceof AxiosError?err:new CanceledError(err instanceof Error?err.message:err));}};var timer=timeout&&setTimeout(function(){timer=null;onabort(new AxiosError("timeout ".concat(timeout," of ms exceeded"),AxiosError.ETIMEDOUT));},timeout);var unsubscribe=function unsubscribe(){if(signals){timer&&clearTimeout(timer);timer=null;signals.forEach(function(signal){signal.unsubscribe?signal.unsubscribe(onabort):signal.removeEventListener('abort',onabort);});signals=null;}};signals.forEach(function(signal){return signal.addEventListener('abort',onabort);});var signal=controller.signal;signal.unsubscribe=function(){return utils$1.asap(unsubscribe);};return signal;}};var composeSignals$1=composeSignals;var streamChunk=/*#__PURE__*/_regeneratorRuntime().mark(function streamChunk(chunk,chunkSize){var len,pos,end;return _regeneratorRuntime().wrap(function streamChunk$(_context){while(1)switch(_context.prev=_context.next){case 0:len=chunk.byteLength;if(!(!chunkSize||len<chunkSize)){_context.next=5;break;}_context.next=4;return chunk;case 4:return _context.abrupt("return");case 5:pos=0;case 6:if(!(pos<len)){_context.next=13;break;}end=pos+chunkSize;_context.next=10;return chunk.slice(pos,end);case 10:pos=end;_context.next=6;break;case 13:case"end":return _context.stop();}},streamChunk);});var readBytes=/*#__PURE__*/function(){var _ref=_wrapAsyncGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(iterable,chunkSize){var _iteratorAbruptCompletion,_didIteratorError,_iteratorError,_iterator2,_step,chunk;return _regeneratorRuntime().wrap(function _callee$(_context2){while(1)switch(_context2.prev=_context2.next){case 0:_iteratorAbruptCompletion=false;_didIteratorError=false;_context2.prev=2;_iterator2=_asyncIterator(readStream(iterable));case 4:_context2.next=6;return _awaitAsyncGenerator(_iterator2.next());case 6:if(!(_iteratorAbruptCompletion=!(_step=_context2.sent).done)){_context2.next=12;break;}chunk=_step.value;return _context2.delegateYield(_asyncGeneratorDelegate(_asyncIterator(streamChunk(chunk,chunkSize)),_awaitAsyncGenerator),"t0",9);case 9:_iteratorAbruptCompletion=false;_context2.next=4;break;case 12:_context2.next=18;break;case 14:_context2.prev=14;_context2.t1=_context2["catch"](2);_didIteratorError=true;_iteratorError=_context2.t1;case 18:_context2.prev=18;_context2.prev=19;if(!(_iteratorAbruptCompletion&&_iterator2["return"]!=null)){_context2.next=23;break;}_context2.next=23;return _awaitAsyncGenerator(_iterator2["return"]());case 23:_context2.prev=23;if(!_didIteratorError){_context2.next=26;break;}throw _iteratorError;case 26:return _context2.finish(23);case 27:return _context2.finish(18);case 28:case"end":return _context2.stop();}},_callee,null,[[2,14,18,28],[19,,23,27]]);}));return function readBytes(_x,_x2){return _ref.apply(this,arguments);};}();var readStream=/*#__PURE__*/function(){var _ref2=_wrapAsyncGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee2(stream){var reader,_yield$_awaitAsyncGen,done,value;return _regeneratorRuntime().wrap(function _callee2$(_context3){while(1)switch(_context3.prev=_context3.next){case 0:if(!stream[Symbol.asyncIterator]){_context3.next=3;break;}return _context3.delegateYield(_asyncGeneratorDelegate(_asyncIterator(stream),_awaitAsyncGenerator),"t0",2);case 2:return _context3.abrupt("return");case 3:reader=stream.getReader();_context3.prev=4;case 5:_context3.next=7;return _awaitAsyncGenerator(reader.read());case 7:_yield$_awaitAsyncGen=_context3.sent;done=_yield$_awaitAsyncGen.done;value=_yield$_awaitAsyncGen.value;if(!done){_context3.next=12;break;}return _context3.abrupt("break",16);case 12:_context3.next=14;return value;case 14:_context3.next=5;break;case 16:_context3.prev=16;_context3.next=19;return _awaitAsyncGenerator(reader.cancel());case 19:return _context3.finish(16);case 20:case"end":return _context3.stop();}},_callee2,null,[[4,,16,20]]);}));return function readStream(_x3){return _ref2.apply(this,arguments);};}();var trackStream=function trackStream(stream,chunkSize,onProgress,onFinish){var iterator=readBytes(stream,chunkSize);var bytes=0;var done;var _onFinish=function _onFinish(e){if(!done){done=true;onFinish&&onFinish(e);}};return new ReadableStream({pull:function pull(controller){return _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee3(){var _yield$iterator$next,_done,value,len,loadedBytes;return _regeneratorRuntime().wrap(function _callee3$(_context4){while(1)switch(_context4.prev=_context4.next){case 0:_context4.prev=0;_context4.next=3;return iterator.next();case 3:_yield$iterator$next=_context4.sent;_done=_yield$iterator$next.done;value=_yield$iterator$next.value;if(!_done){_context4.next=10;break;}_onFinish();controller.close();return _context4.abrupt("return");case 10:len=value.byteLength;if(onProgress){loadedBytes=bytes+=len;onProgress(loadedBytes);}controller.enqueue(new Uint8Array(value));_context4.next=19;break;case 15:_context4.prev=15;_context4.t0=_context4["catch"](0);_onFinish(_context4.t0);throw _context4.t0;case 19:case"end":return _context4.stop();}},_callee3,null,[[0,15]]);}))();},cancel:function cancel(reason){_onFinish(reason);return iterator["return"]();}},{highWaterMark:2});};var isFetchSupported=typeof fetch==='function'&&typeof Request==='function'&&typeof Response==='function';var isReadableStreamSupported=isFetchSupported&&typeof ReadableStream==='function';// used only inside the fetch adapter
6301
6301
  var encodeText=isFetchSupported&&(typeof TextEncoder==='function'?function(encoder){return function(str){return encoder.encode(str);};}(new TextEncoder()):(/*#__PURE__*/function(){var _ref13=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee4(str){return _regeneratorRuntime().wrap(function _callee4$(_context5){while(1)switch(_context5.prev=_context5.next){case 0:_context5.t0=Uint8Array;_context5.next=3;return new Response(str).arrayBuffer();case 3:_context5.t1=_context5.sent;return _context5.abrupt("return",new _context5.t0(_context5.t1));case 5:case"end":return _context5.stop();}},_callee4);}));return function(_x4){return _ref13.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 _ref14=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee5(body){var _request;return _regeneratorRuntime().wrap(function _callee5$(_context6){while(1)switch(_context6.prev=_context6.next){case 0:if(!(body==null)){_context6.next=2;break;}return _context6.abrupt("return",0);case 2:if(!utils$1.isBlob(body)){_context6.next=4;break;}return _context6.abrupt("return",body.size);case 4:if(!utils$1.isSpecCompliantForm(body)){_context6.next=9;break;}_request=new Request(platform.origin,{method:'POST',body:body});_context6.next=8;return _request.arrayBuffer();case 8:return _context6.abrupt("return",_context6.sent.byteLength);case 9:if(!(utils$1.isArrayBufferView(body)||utils$1.isArrayBuffer(body))){_context6.next=11;break;}return _context6.abrupt("return",body.byteLength);case 11:if(utils$1.isURLSearchParams(body)){body=body+'';}if(!utils$1.isString(body)){_context6.next=16;break;}_context6.next=15;return encodeText(body);case 15:return _context6.abrupt("return",_context6.sent.byteLength);case 16:case"end":return _context6.stop();}},_callee5);}));return function getBodyLength(_x5){return _ref14.apply(this,arguments);};}();var resolveBodyLength=/*#__PURE__*/function(){var _ref15=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee6(headers,body){var length;return _regeneratorRuntime().wrap(function _callee6$(_context7){while(1)switch(_context7.prev=_context7.next){case 0:length=utils$1.toFiniteNumber(headers.getContentLength());return _context7.abrupt("return",length==null?getBodyLength(body):length);case 2:case"end":return _context7.stop();}},_callee6);}));return function resolveBodyLength(_x6,_x7){return _ref15.apply(this,arguments);};}();var fetchAdapter=isFetchSupported&&(/*#__PURE__*/function(){var _ref16=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee7(config){var _resolveConfig,url,method,data,signal,cancelToken,timeout,onDownloadProgress,onUploadProgress,responseType,headers,_resolveConfig$withCr,withCredentials,fetchOptions,composedSignal,request,unsubscribe,requestContentLength,_request,contentTypeHeader,_progressEventDecorat,_progressEventDecorat2,onProgress,flush,isCredentialsSupported,response,isStreamResponse,options,responseContentLength,_ref17,_ref18,_onProgress,_flush,responseData;return _regeneratorRuntime().wrap(function _callee7$(_context8){while(1)switch(_context8.prev=_context8.next){case 0:_resolveConfig=resolveConfig(config),url=_resolveConfig.url,method=_resolveConfig.method,data=_resolveConfig.data,signal=_resolveConfig.signal,cancelToken=_resolveConfig.cancelToken,timeout=_resolveConfig.timeout,onDownloadProgress=_resolveConfig.onDownloadProgress,onUploadProgress=_resolveConfig.onUploadProgress,responseType=_resolveConfig.responseType,headers=_resolveConfig.headers,_resolveConfig$withCr=_resolveConfig.withCredentials,withCredentials=_resolveConfig$withCr===void 0?'same-origin':_resolveConfig$withCr,fetchOptions=_resolveConfig.fetchOptions;responseType=responseType?(responseType+'').toLowerCase():'text';composedSignal=composeSignals$1([signal,cancelToken&&cancelToken.toAbortSignal()],timeout);unsubscribe=composedSignal&&composedSignal.unsubscribe&&function(){composedSignal.unsubscribe();};_context8.prev=4;_context8.t0=onUploadProgress&&supportsRequestStream&&method!=='get'&&method!=='head';if(!_context8.t0){_context8.next=11;break;}_context8.next=9;return resolveBodyLength(headers,data);case 9:_context8.t1=requestContentLength=_context8.sent;_context8.t0=_context8.t1!==0;case 11:if(!_context8.t0){_context8.next=15;break;}_request=new Request(url,{method:'POST',body:data,duplex:"half"});if(utils$1.isFormData(data)&&(contentTypeHeader=_request.headers.get('content-type'))){headers.setContentType(contentTypeHeader);}if(_request.body){_progressEventDecorat=progressEventDecorator(requestContentLength,progressEventReducer(asyncDecorator(onUploadProgress))),_progressEventDecorat2=_slicedToArray(_progressEventDecorat,2),onProgress=_progressEventDecorat2[0],flush=_progressEventDecorat2[1];data=trackStream(_request.body,DEFAULT_CHUNK_SIZE,onProgress,flush);}case 15:if(!utils$1.isString(withCredentials)){withCredentials=withCredentials?'include':'omit';}// Cloudflare Workers throws when credentials are defined
6302
6302
  // see https://github.com/cloudflare/workerd/issues/902
6303
- isCredentialsSupported="credentials"in Request.prototype;request=new Request(url,_objectSpread(_objectSpread({},fetchOptions),{},{signal:composedSignal,method:method.toUpperCase(),headers:headers.normalize().toJSON(),body:data,duplex:"half",credentials:isCredentialsSupported?withCredentials:undefined}));_context8.next=20;return fetch(request);case 20:response=_context8.sent;isStreamResponse=supportsResponseStream&&(responseType==='stream'||responseType==='response');if(supportsResponseStream&&(onDownloadProgress||isStreamResponse&&unsubscribe)){options={};['status','statusText','headers'].forEach(function(prop){options[prop]=response[prop];});responseContentLength=utils$1.toFiniteNumber(response.headers.get('content-length'));_ref17=onDownloadProgress&&progressEventDecorator(responseContentLength,progressEventReducer(asyncDecorator(onDownloadProgress),true))||[],_ref18=_slicedToArray(_ref17,2),_onProgress=_ref18[0],_flush=_ref18[1];response=new Response(trackStream(response.body,DEFAULT_CHUNK_SIZE,_onProgress,function(){_flush&&_flush();unsubscribe&&unsubscribe();}),options);}responseType=responseType||'text';_context8.next=26;return resolvers[utils$1.findKey(resolvers,responseType)||'text'](response,config);case 26:responseData=_context8.sent;!isStreamResponse&&unsubscribe&&unsubscribe();_context8.next=30;return new Promise(function(resolve,reject){settle(resolve,reject,{data:responseData,headers:AxiosHeaders$1.from(response.headers),status:response.status,statusText:response.statusText,config:config,request:request});});case 30:return _context8.abrupt("return",_context8.sent);case 33:_context8.prev=33;_context8.t2=_context8["catch"](4);unsubscribe&&unsubscribe();if(!(_context8.t2&&_context8.t2.name==='TypeError'&&/fetch/i.test(_context8.t2.message))){_context8.next=38;break;}throw Object.assign(new AxiosError('Network Error',AxiosError.ERR_NETWORK,config,request),{cause:_context8.t2.cause||_context8.t2});case 38:throw AxiosError.from(_context8.t2,_context8.t2&&_context8.t2.code,config,request);case 39:case"end":return _context8.stop();}},_callee7,null,[[4,33]]);}));return function(_x8){return _ref16.apply(this,arguments);};}());var knownAdapters={http:httpAdapter,xhr:xhrAdapter,fetch:fetchAdapter};utils$1.forEach(knownAdapters,function(fn,value){if(fn){try{Object.defineProperty(fn,'name',{value:value});}catch(e){// eslint-disable-next-line no-empty
6303
+ isCredentialsSupported="credentials"in Request.prototype;request=new Request(url,_objectSpread(_objectSpread({},fetchOptions),{},{signal:composedSignal,method:method.toUpperCase(),headers:headers.normalize().toJSON(),body:data,duplex:"half",credentials:isCredentialsSupported?withCredentials:undefined}));_context8.next=20;return fetch(request);case 20:response=_context8.sent;isStreamResponse=supportsResponseStream&&(responseType==='stream'||responseType==='response');if(supportsResponseStream&&(onDownloadProgress||isStreamResponse&&unsubscribe)){options={};['status','statusText','headers'].forEach(function(prop){options[prop]=response[prop];});responseContentLength=utils$1.toFiniteNumber(response.headers.get('content-length'));_ref17=onDownloadProgress&&progressEventDecorator(responseContentLength,progressEventReducer(asyncDecorator(onDownloadProgress),true))||[],_ref18=_slicedToArray(_ref17,2),_onProgress=_ref18[0],_flush=_ref18[1];response=new Response(trackStream(response.body,DEFAULT_CHUNK_SIZE,_onProgress,function(){_flush&&_flush();unsubscribe&&unsubscribe();}),options);}responseType=responseType||'text';_context8.next=26;return resolvers[utils$1.findKey(resolvers,responseType)||'text'](response,config);case 26:responseData=_context8.sent;!isStreamResponse&&unsubscribe&&unsubscribe();_context8.next=30;return new Promise(function(resolve,reject){settle(resolve,reject,{data:responseData,headers:AxiosHeaders$1.from(response.headers),status:response.status,statusText:response.statusText,config:config,request:request});});case 30:return _context8.abrupt("return",_context8.sent);case 33:_context8.prev=33;_context8.t2=_context8["catch"](4);unsubscribe&&unsubscribe();if(!(_context8.t2&&_context8.t2.name==='TypeError'&&/Load failed|fetch/i.test(_context8.t2.message))){_context8.next=38;break;}throw Object.assign(new AxiosError('Network Error',AxiosError.ERR_NETWORK,config,request),{cause:_context8.t2.cause||_context8.t2});case 38:throw AxiosError.from(_context8.t2,_context8.t2&&_context8.t2.code,config,request);case 39:case"end":return _context8.stop();}},_callee7,null,[[4,33]]);}));return function(_x8){return _ref16.apply(this,arguments);};}());var knownAdapters={http:httpAdapter,xhr:xhrAdapter,fetch:fetchAdapter};utils$1.forEach(knownAdapters,function(fn,value){if(fn){try{Object.defineProperty(fn,'name',{value:value});}catch(e){// eslint-disable-next-line no-empty
6304
6304
  }Object.defineProperty(fn,'adapterName',{value:value});}});var renderReason=function renderReason(reason){return"- ".concat(reason);};var isResolvedHandle=function isResolvedHandle(adapter){return utils$1.isFunction(adapter)||adapter===null||adapter===false;};var adapters={getAdapter:function getAdapter(adapters){adapters=utils$1.isArray(adapters)?adapters:[adapters];var _adapters=adapters,length=_adapters.length;var nameOrAdapter;var adapter;var rejectedReasons={};for(var i=0;i<length;i++){nameOrAdapter=adapters[i];var id=void 0;adapter=nameOrAdapter;if(!isResolvedHandle(nameOrAdapter)){adapter=knownAdapters[(id=String(nameOrAdapter)).toLowerCase()];if(adapter===undefined){throw new AxiosError("Unknown adapter '".concat(id,"'"));}}if(adapter){break;}rejectedReasons[id||'#'+i]=adapter;}if(!adapter){var reasons=Object.entries(rejectedReasons).map(function(_ref19){var _ref20=_slicedToArray(_ref19,2),id=_ref20[0],state=_ref20[1];return"adapter ".concat(id," ")+(state===false?'is not supported by the environment':'is not available in the build');});var s=length?reasons.length>1?'since :\n'+reasons.map(renderReason).join('\n'):' '+renderReason(reasons[0]):'as no adapter specified';throw new AxiosError("There is no suitable adapter to dispatch the request "+s,'ERR_NOT_SUPPORT');}return adapter;},adapters:knownAdapters};/**
6305
6305
  * Throws a `CanceledError` if cancellation has been requested.
6306
6306
  *
@@ -6316,7 +6316,7 @@ isCredentialsSupported="credentials"in Request.prototype;request=new Request(url
6316
6316
  */function dispatchRequest(config){throwIfCancellationRequested(config);config.headers=AxiosHeaders$1.from(config.headers);// Transform request data
6317
6317
  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
6318
6318
  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
6319
- 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.8.4";var validators$1={};// eslint-disable-next-line func-names
6319
+ 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.9.0";var validators$1={};// eslint-disable-next-line func-names
6320
6320
  ['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={};/**
6321
6321
  * Transitional option validator
6322
6322
  *
@@ -6342,7 +6342,7 @@ console.warn("".concat(opt," is likely a misspelling of ").concat(correctSpellin
6342
6342
  * @param {Object} instanceConfig The default config for the instance
6343
6343
  *
6344
6344
  * @return {Axios} A new instance of Axios
6345
- */var Axios=/*#__PURE__*/function(){function Axios(instanceConfig){_classCallCheck(this,Axios);this.defaults=instanceConfig;this.interceptors={request:new InterceptorManager$1(),response:new InterceptorManager$1()};}/**
6345
+ */var Axios=/*#__PURE__*/function(){function Axios(instanceConfig){_classCallCheck(this,Axios);this.defaults=instanceConfig||{};this.interceptors={request:new InterceptorManager$1(),response:new InterceptorManager$1()};}/**
6346
6346
  * Dispatch a request
6347
6347
  *
6348
6348
  * @param {String|Object} configOrUrl The config specific for this request (merged with this.defaults)
@@ -6458,7 +6458,7 @@ if(env)this.environment=env;else this.environment=this.host?this.host:'mypureclo
6458
6458
  this.environment=this.environment.replace(/\/+$/,'');// Strip protocol and subdomain
6459
6459
  if(this.environment.startsWith('https://'))this.environment=this.environment.substring(8);if(this.environment.startsWith('http://'))this.environment=this.environment.substring(7);if(this.environment.startsWith('api.'))this.environment=this.environment.substring(4);this.basePath="https://api.".concat(this.environment);this.authUrl="https://login.".concat(this.environment);}},{key:"getConfUrl",value:function getConfUrl(pathType,regionUrl){if(!this.gateway)return regionUrl;if(!this.gateway.host)return regionUrl;var url=this.gateway.protocol+'://'+this.gateway.host;if(this.gateway.port>-1)url=url+':'+this.gateway.port.toString();if(pathType==='login'){if(this.gateway.path_params_login){if(this.gateway.path_params_login.startsWith('/'))url=url+this.gateway.path_params_login;else url=url+'/'+this.gateway.path_params_login;}}else{if(this.gateway.path_params_api){if(this.gateway.path_params_api.startsWith('/'))url=url+this.gateway.path_params_api;else url=url+'/'+this.gateway.path_params_api;}}return url;}},{key:"getConfigString",value:function getConfigString(section,key){if(this.config._sections[section])return this.config._sections[section][key];}},{key:"getConfigBoolean",value:function getConfigBoolean(section,key){if(this.config._sections[section]&&this.config._sections[section][key]!==undefined){if(typeof this.config._sections[section][key]==='string'){return this.config._sections[section][key]==='true';}else return this.config._sections[section][key];}}},{key:"getConfigInt",value:function getConfigInt(section,key){if(this.config._sections[section]&&this.config._sections[section][key]){if(typeof this.config._sections[section][key]==='string'){return parseInt(this.config._sections[section][key]);}else return this.config._sections[section][key];}}}]);}();/**
6460
6460
  * @module purecloud-platform-client-v2/ApiClient
6461
- * @version 218.1.0
6461
+ * @version 220.0.0
6462
6462
  */var ApiClient=/*#__PURE__*/function(){/**
6463
6463
  * Manages low level client-server communications, parameter marshalling, etc. There should not be any need for an
6464
6464
  * application to use this class directly - the *Api and model classes provide the public API for the service. The
@@ -6499,7 +6499,7 @@ if(this.environment.startsWith('https://'))this.environment=this.environment.sub
6499
6499
  */this.defaultHeaders={};/**
6500
6500
  * The default HTTP timeout for all API calls.
6501
6501
  * @type {Number}
6502
- * @default 60000
6502
+ * @default 16000
6503
6503
  */this.timeout=16000;this.authData={};this.settingsPrefix='purecloud';// Transparently request a new access token when it expires (Code Authorization only)
6504
6504
  this.refreshInProgress=false;this.httpClient;this.proxyAgent;this.config=new Configuration();if(typeof window!=='undefined')window.ApiClient=this;}/**
6505
6505
  * @description If set to `true`, the response object will contain additional information about the HTTP response. When `false` (default) only the body object will be returned.
@@ -6801,7 +6801,7 @@ resolve(data);})["catch"](function(error){var data=error;if(error.response&&erro
6801
6801
  that.config.logger.log('error',error.response.status,httpMethod,url,request.headers,error.response.headers,bodyParam,error.response.data);data=that.returnExtended===true?{status:error.response.status,statusText:error.response.statusText,headers:error.response.headers,body:error.response.data,text:error.response.text,error:error}:error.response.data?error.response.data:error.response.text;}reject(data);});}});}}]);}();var AgentAssistantsApi=/*#__PURE__*/function(){/**
6802
6802
  * AgentAssistants service.
6803
6803
  * @module purecloud-platform-client-v2/api/AgentAssistantsApi
6804
- * @version 218.1.0
6804
+ * @version 220.0.0
6805
6805
  *//**
6806
6806
  * Constructs a new AgentAssistantsApi.
6807
6807
  * @alias module:purecloud-platform-client-v2/api/AgentAssistantsApi
@@ -6902,7 +6902,7 @@ if(queueId===undefined||queueId===null){throw'Missing the required parameter "qu
6902
6902
  if(body===undefined||body===null){throw'Missing the required parameter "body" when calling putAssistantQueue';}return this.apiClient.callApi('/api/v2/assistants/{assistantId}/queues/{queueId}','PUT',{'assistantId':assistantId,'queueId':queueId},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}}]);}();var AgentCopilotApi=/*#__PURE__*/function(){/**
6903
6903
  * AgentCopilot service.
6904
6904
  * @module purecloud-platform-client-v2/api/AgentCopilotApi
6905
- * @version 218.1.0
6905
+ * @version 220.0.0
6906
6906
  *//**
6907
6907
  * Constructs a new AgentCopilotApi.
6908
6908
  * @alias module:purecloud-platform-client-v2/api/AgentCopilotApi
@@ -6924,7 +6924,7 @@ if(assistantId===undefined||assistantId===null){throw'Missing the required param
6924
6924
  if(body===undefined||body===null){throw'Missing the required parameter "body" when calling putAssistantCopilot';}return this.apiClient.callApi('/api/v2/assistants/{assistantId}/copilot','PUT',{'assistantId':assistantId},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}}]);}();var AgentUIApi=/*#__PURE__*/function(){/**
6925
6925
  * AgentUI service.
6926
6926
  * @module purecloud-platform-client-v2/api/AgentUIApi
6927
- * @version 218.1.0
6927
+ * @version 220.0.0
6928
6928
  *//**
6929
6929
  * Constructs a new AgentUIApi.
6930
6930
  * @alias module:purecloud-platform-client-v2/api/AgentUIApi
@@ -6958,7 +6958,7 @@ if(agentId===undefined||agentId===null){throw'Missing the required parameter "ag
6958
6958
  if(body===undefined||body===null){throw'Missing the required parameter "body" when calling putUsersAgentuiAgentsAutoanswerAgentIdSettings';}return this.apiClient.callApi('/api/v2/users/agentui/agents/autoanswer/{agentId}/settings','PUT',{'agentId':agentId},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}}]);}();var AlertingApi=/*#__PURE__*/function(){/**
6959
6959
  * Alerting service.
6960
6960
  * @module purecloud-platform-client-v2/api/AlertingApi
6961
- * @version 218.1.0
6961
+ * @version 220.0.0
6962
6962
  *//**
6963
6963
  * Constructs a new AlertingApi.
6964
6964
  * @alias module:purecloud-platform-client-v2/api/AlertingApi
@@ -7047,7 +7047,7 @@ if(ruleId===undefined||ruleId===null){throw'Missing the required parameter "rule
7047
7047
  if(body===undefined||body===null){throw'Missing the required parameter "body" when calling putAlertingRule';}return this.apiClient.callApi('/api/v2/alerting/rules/{ruleId}','PUT',{'ruleId':ruleId},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}}]);}();var AnalyticsApi=/*#__PURE__*/function(){/**
7048
7048
  * Analytics service.
7049
7049
  * @module purecloud-platform-client-v2/api/AnalyticsApi
7050
- * @version 218.1.0
7050
+ * @version 220.0.0
7051
7051
  *//**
7052
7052
  * Constructs a new AnalyticsApi.
7053
7053
  * @alias module:purecloud-platform-client-v2/api/AnalyticsApi
@@ -7715,7 +7715,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
7715
7715
  if(body===undefined||body===null){throw'Missing the required parameter "body" when calling putAnalyticsDataretentionSettings';}return this.apiClient.callApi('/api/v2/analytics/dataretention/settings','PUT',{},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}}]);}();var ArchitectApi=/*#__PURE__*/function(){/**
7716
7716
  * Architect service.
7717
7717
  * @module purecloud-platform-client-v2/api/ArchitectApi
7718
- * @version 218.1.0
7718
+ * @version 220.0.0
7719
7719
  *//**
7720
7720
  * Constructs a new ArchitectApi.
7721
7721
  * @alias module:purecloud-platform-client-v2/api/ArchitectApi
@@ -8100,7 +8100,7 @@ if(scheduleGroupId===undefined||scheduleGroupId===null){throw'Missing the requir
8100
8100
  * @param {Number} opts.pageNumber Page number (default to 1)
8101
8101
  * @param {Number} opts.pageSize Page size (default to 25)
8102
8102
  * @param {String} opts.sortBy Sort by (default to name)
8103
- * @param {String} opts.sortOrder Sort order (default to ASC)
8103
+ * @param {String} opts.sortOrder Sort order (default to asc)
8104
8104
  * @param {String} opts.name Name of the Schedule to filter by.
8105
8105
  * @param {Array.<String>} opts.divisionId List of divisionIds on which to filter.
8106
8106
  */},{key:"getArchitectSchedules",value:function getArchitectSchedules(opts){opts=opts||{};return this.apiClient.callApi('/api/v2/architect/schedules','GET',{},{'pageNumber':opts['pageNumber'],'pageSize':opts['pageSize'],'sortBy':opts['sortBy'],'sortOrder':opts['sortOrder'],'name':opts['name'],'divisionId':this.apiClient.buildCollectionParam(opts['divisionId'],'multi')},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
@@ -8847,7 +8847,7 @@ if(milestoneId===undefined||milestoneId===null){throw'Missing the required param
8847
8847
  if(flowOutcomeId===undefined||flowOutcomeId===null){throw'Missing the required parameter "flowOutcomeId" when calling putFlowsOutcome';}return this.apiClient.callApi('/api/v2/flows/outcomes/{flowOutcomeId}','PUT',{'flowOutcomeId':flowOutcomeId},{},{},{},opts['body'],['PureCloud OAuth'],['application/json'],['application/json']);}}]);}();var AuditApi=/*#__PURE__*/function(){/**
8848
8848
  * Audit service.
8849
8849
  * @module purecloud-platform-client-v2/api/AuditApi
8850
- * @version 218.1.0
8850
+ * @version 220.0.0
8851
8851
  *//**
8852
8852
  * Constructs a new AuditApi.
8853
8853
  * @alias module:purecloud-platform-client-v2/api/AuditApi
@@ -8897,7 +8897,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
8897
8897
  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(){/**
8898
8898
  * Authorization service.
8899
8899
  * @module purecloud-platform-client-v2/api/AuthorizationApi
8900
- * @version 218.1.0
8900
+ * @version 220.0.0
8901
8901
  *//**
8902
8902
  * Constructs a new AuthorizationApi.
8903
8903
  * @alias module:purecloud-platform-client-v2/api/AuthorizationApi
@@ -8962,12 +8962,27 @@ if(divisionId===undefined||divisionId===null){throw'Missing the required paramet
8962
8962
  * @param {Array.<String>} opts.id Optionally request specific divisions by their IDs
8963
8963
  * @param {String} opts.name Search term to filter by division name
8964
8964
  */},{key:"getAuthorizationDivisions",value:function getAuthorizationDivisions(opts){opts=opts||{};return this.apiClient.callApi('/api/v2/authorization/divisions','GET',{},{'pageSize':opts['pageSize'],'pageNumber':opts['pageNumber'],'sortBy':opts['sortBy'],'expand':this.apiClient.buildCollectionParam(opts['expand'],'multi'),'nextPage':opts['nextPage'],'previousPage':opts['previousPage'],'objectCount':opts['objectCount'],'id':this.apiClient.buildCollectionParam(opts['id'],'multi'),'name':opts['name']},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
8965
+ * Get a list of soft deleted divisions for the org
8966
+ *
8967
+ * @param {Object} opts Optional parameters
8968
+ * @param {Number} opts.pageNumber Page number (default to 1)
8969
+ * @param {Number} opts.pageSize Page size (default to 25)
8970
+ */},{key:"getAuthorizationDivisionsDeleted",value:function getAuthorizationDivisionsDeleted(opts){opts=opts||{};return this.apiClient.callApi('/api/v2/authorization/divisions/deleted','GET',{},{'pageNumber':opts['pageNumber'],'pageSize':opts['pageSize']},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
8965
8971
  * Retrieve the home division for the organization.
8966
8972
  * Will not include object counts.
8967
8973
  */},{key:"getAuthorizationDivisionsHome",value:function getAuthorizationDivisionsHome(){return this.apiClient.callApi('/api/v2/authorization/divisions/home','GET',{},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
8968
8974
  * Returns the maximum allowed number of divisions.
8969
8975
  *
8970
8976
  */},{key:"getAuthorizationDivisionsLimit",value:function getAuthorizationDivisionsLimit(){return this.apiClient.callApi('/api/v2/authorization/divisions/limit','GET',{},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
8977
+ * Retrieve a list of all divisions defined for the organization with cursor
8978
+ * Use "after" and "before" param to fetch next/previous page}
8979
+ * @param {Object} opts Optional parameters
8980
+ * @param {String} opts.before The cursor that points to the start of the set of entities that has been returned.
8981
+ * @param {String} opts.after The cursor that points to the end of the set of entities that has been returned.
8982
+ * @param {String} opts.pageSize Number of entities to return. Maximum of 200.
8983
+ * @param {Array.<String>} opts.id Optionally request specific divisions by their IDs
8984
+ * @param {String} opts.name Optionally request specific divisions by division name
8985
+ */},{key:"getAuthorizationDivisionsQuery",value:function getAuthorizationDivisionsQuery(opts){opts=opts||{};return this.apiClient.callApi('/api/v2/authorization/divisions/query','GET',{},{'before':opts['before'],'after':opts['after'],'pageSize':opts['pageSize'],'id':this.apiClient.buildCollectionParam(opts['id'],'multi'),'name':opts['name']},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
8971
8986
  * Returns which divisions the current user has the given permission in.
8972
8987
  * This route is deprecated, use authorization/divisionspermitted/paged/me instead.
8973
8988
  * @param {String} permission The permission string, including the object to access, e.g. routing:queue:view
@@ -9317,7 +9332,7 @@ if(subjectId===undefined||subjectId===null){throw'Missing the required parameter
9317
9332
  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(){/**
9318
9333
  * Billing service.
9319
9334
  * @module purecloud-platform-client-v2/api/BillingApi
9320
- * @version 218.1.0
9335
+ * @version 220.0.0
9321
9336
  *//**
9322
9337
  * Constructs a new BillingApi.
9323
9338
  * @alias module:purecloud-platform-client-v2/api/BillingApi
@@ -9341,7 +9356,7 @@ if(endDate===undefined||endDate===null){throw'Missing the required parameter "en
9341
9356
  if(trustorOrgId===undefined||trustorOrgId===null){throw'Missing the required parameter "trustorOrgId" when calling getBillingTrusteebillingoverviewTrustorOrgId';}return this.apiClient.callApi('/api/v2/billing/trusteebillingoverview/{trustorOrgId}','GET',{'trustorOrgId':trustorOrgId},{'billingPeriodIndex':opts['billingPeriodIndex']},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}}]);}();var CarrierServicesApi=/*#__PURE__*/function(){/**
9342
9357
  * CarrierServices service.
9343
9358
  * @module purecloud-platform-client-v2/api/CarrierServicesApi
9344
- * @version 218.1.0
9359
+ * @version 220.0.0
9345
9360
  *//**
9346
9361
  * Constructs a new CarrierServicesApi.
9347
9362
  * @alias module:purecloud-platform-client-v2/api/CarrierServicesApi
@@ -9361,7 +9376,7 @@ if(phoneNumber===undefined||phoneNumber===null){throw'Missing the required param
9361
9376
  */},{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(){/**
9362
9377
  * Chat service.
9363
9378
  * @module purecloud-platform-client-v2/api/ChatApi
9364
- * @version 218.1.0
9379
+ * @version 220.0.0
9365
9380
  *//**
9366
9381
  * Constructs a new ChatApi.
9367
9382
  * @alias module:purecloud-platform-client-v2/api/ChatApi
@@ -9579,7 +9594,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
9579
9594
  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(){/**
9580
9595
  * Coaching service.
9581
9596
  * @module purecloud-platform-client-v2/api/CoachingApi
9582
- * @version 218.1.0
9597
+ * @version 220.0.0
9583
9598
  *//**
9584
9599
  * Constructs a new CoachingApi.
9585
9600
  * @alias module:purecloud-platform-client-v2/api/CoachingApi
@@ -9732,7 +9747,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
9732
9747
  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(){/**
9733
9748
  * ContentManagement service.
9734
9749
  * @module purecloud-platform-client-v2/api/ContentManagementApi
9735
- * @version 218.1.0
9750
+ * @version 220.0.0
9736
9751
  *//**
9737
9752
  * Constructs a new ContentManagementApi.
9738
9753
  * @alias module:purecloud-platform-client-v2/api/ContentManagementApi
@@ -10014,7 +10029,7 @@ if(tagId===undefined||tagId===null){throw'Missing the required parameter "tagId"
10014
10029
  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(){/**
10015
10030
  * Conversations service.
10016
10031
  * @module purecloud-platform-client-v2/api/ConversationsApi
10017
- * @version 218.1.0
10032
+ * @version 220.0.0
10018
10033
  *//**
10019
10034
  * Constructs a new ConversationsApi.
10020
10035
  * @alias module:purecloud-platform-client-v2/api/ConversationsApi
@@ -11528,9 +11543,19 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
11528
11543
  * See https://developer.genesys.cloud/api/rest/v2/conversations/messaging-media-upload for example usage.
11529
11544
  * @param {String} conversationId conversationId
11530
11545
  * @param {String} communicationId communicationId
11546
+ * @deprecated
11531
11547
  */},{key:"postConversationsMessageCommunicationMessagesMedia",value:function postConversationsMessageCommunicationMessagesMedia(conversationId,communicationId){// verify the required parameter 'conversationId' is set
11532
11548
  if(conversationId===undefined||conversationId===null){throw'Missing the required parameter "conversationId" when calling postConversationsMessageCommunicationMessagesMedia';}// verify the required parameter 'communicationId' is set
11533
11549
  if(communicationId===undefined||communicationId===null){throw'Missing the required parameter "communicationId" when calling postConversationsMessageCommunicationMessagesMedia';}return this.apiClient.callApi('/api/v2/conversations/messages/{conversationId}/communications/{communicationId}/messages/media','POST',{'conversationId':conversationId,'communicationId':communicationId},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
11550
+ * Create a URL to upload a message media file
11551
+ * See https://developer.genesys.cloud/api/rest/v2/conversations/messaging-media-upload for example usage.
11552
+ * @param {String} conversationId conversationId
11553
+ * @param {String} communicationId communicationId
11554
+ * @param {Object} body request
11555
+ */},{key:"postConversationsMessageCommunicationMessagesMediaUploads",value:function postConversationsMessageCommunicationMessagesMediaUploads(conversationId,communicationId,body){// verify the required parameter 'conversationId' is set
11556
+ if(conversationId===undefined||conversationId===null){throw'Missing the required parameter "conversationId" when calling postConversationsMessageCommunicationMessagesMediaUploads';}// verify the required parameter 'communicationId' is set
11557
+ if(communicationId===undefined||communicationId===null){throw'Missing the required parameter "communicationId" when calling postConversationsMessageCommunicationMessagesMediaUploads';}// verify the required parameter 'body' is set
11558
+ if(body===undefined||body===null){throw'Missing the required parameter "body" when calling postConversationsMessageCommunicationMessagesMediaUploads';}return this.apiClient.callApi('/api/v2/conversations/messages/{conversationId}/communications/{communicationId}/messages/media/uploads','POST',{'conversationId':conversationId,'communicationId':communicationId},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}/**
11534
11559
  * Send message typing event
11535
11560
  * Send message typing event for existing conversation/communication.
11536
11561
  * @param {String} conversationId conversationId
@@ -11863,7 +11888,7 @@ if(conversationId===undefined||conversationId===null){throw'Missing the required
11863
11888
  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(){/**
11864
11889
  * DataExtensions service.
11865
11890
  * @module purecloud-platform-client-v2/api/DataExtensionsApi
11866
- * @version 218.1.0
11891
+ * @version 220.0.0
11867
11892
  *//**
11868
11893
  * Constructs a new DataExtensionsApi.
11869
11894
  * @alias module:purecloud-platform-client-v2/api/DataExtensionsApi
@@ -11884,7 +11909,7 @@ if(coretypeName===undefined||coretypeName===null){throw'Missing the required par
11884
11909
  */},{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(){/**
11885
11910
  * DataPrivacy service.
11886
11911
  * @module purecloud-platform-client-v2/api/DataPrivacyApi
11887
- * @version 218.1.0
11912
+ * @version 220.0.0
11888
11913
  *//**
11889
11914
  * Constructs a new DataPrivacyApi.
11890
11915
  * @alias module:purecloud-platform-client-v2/api/DataPrivacyApi
@@ -11924,7 +11949,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
11924
11949
  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(){/**
11925
11950
  * Downloads service.
11926
11951
  * @module purecloud-platform-client-v2/api/DownloadsApi
11927
- * @version 218.1.0
11952
+ * @version 220.0.0
11928
11953
  *//**
11929
11954
  * Constructs a new DownloadsApi.
11930
11955
  * @alias module:purecloud-platform-client-v2/api/DownloadsApi
@@ -11943,7 +11968,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
11943
11968
  if(downloadId===undefined||downloadId===null){throw'Missing the required parameter "downloadId" when calling getDownload';}return this.apiClient.callApi('/api/v2/downloads/{downloadId}','GET',{'downloadId':downloadId},{'contentDisposition':opts['contentDisposition'],'issueRedirect':opts['issueRedirect'],'redirectToAuth':opts['redirectToAuth']},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}}]);}();var EmailsApi=/*#__PURE__*/function(){/**
11944
11969
  * Emails service.
11945
11970
  * @module purecloud-platform-client-v2/api/EmailsApi
11946
- * @version 218.1.0
11971
+ * @version 220.0.0
11947
11972
  *//**
11948
11973
  * Constructs a new EmailsApi.
11949
11974
  * @alias module:purecloud-platform-client-v2/api/EmailsApi
@@ -11972,7 +11997,7 @@ if(downloadId===undefined||downloadId===null){throw'Missing the required paramet
11972
11997
  */},{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(){/**
11973
11998
  * EmployeeEngagement service.
11974
11999
  * @module purecloud-platform-client-v2/api/EmployeeEngagementApi
11975
- * @version 218.1.0
12000
+ * @version 220.0.0
11976
12001
  *//**
11977
12002
  * Constructs a new EmployeeEngagementApi.
11978
12003
  * @alias module:purecloud-platform-client-v2/api/EmployeeEngagementApi
@@ -12010,7 +12035,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
12010
12035
  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(){/**
12011
12036
  * Events service.
12012
12037
  * @module purecloud-platform-client-v2/api/EventsApi
12013
- * @version 218.1.0
12038
+ * @version 220.0.0
12014
12039
  *//**
12015
12040
  * Constructs a new EventsApi.
12016
12041
  * @alias module:purecloud-platform-client-v2/api/EventsApi
@@ -12035,7 +12060,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
12035
12060
  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(){/**
12036
12061
  * ExternalContacts service.
12037
12062
  * @module purecloud-platform-client-v2/api/ExternalContactsApi
12038
- * @version 218.1.0
12063
+ * @version 220.0.0
12039
12064
  *//**
12040
12065
  * Constructs a new ExternalContactsApi.
12041
12066
  * @alias module:purecloud-platform-client-v2/api/ExternalContactsApi
@@ -12186,6 +12211,17 @@ if(schemaId===undefined||schemaId===null){throw'Missing the required parameter "
12186
12211
  * Get a list of schemas.
12187
12212
  *
12188
12213
  */},{key:"getExternalcontactsContactsSchemas",value:function getExternalcontactsContactsSchemas(){return this.apiClient.callApi('/api/v2/externalcontacts/contacts/schemas','GET',{},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
12214
+ * Get the core types from which all schemas are built.
12215
+ *
12216
+ * @param {String} coreTypeName Name of the core type
12217
+ */},{key:"getExternalcontactsContactsSchemasCoretype",value:function getExternalcontactsContactsSchemasCoretype(coreTypeName){// verify the required parameter 'coreTypeName' is set
12218
+ if(coreTypeName===undefined||coreTypeName===null){throw'Missing the required parameter "coreTypeName" when calling getExternalcontactsContactsSchemasCoretype';}return this.apiClient.callApi('/api/v2/externalcontacts/contacts/schemas/coretypes/{coreTypeName}','GET',{'coreTypeName':coreTypeName},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
12219
+ * Get the core types from which all schemas are built.
12220
+ *
12221
+ */},{key:"getExternalcontactsContactsSchemasCoretypes",value:function getExternalcontactsContactsSchemasCoretypes(){return this.apiClient.callApi('/api/v2/externalcontacts/contacts/schemas/coretypes','GET',{},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
12222
+ * Get quantitative limits on schemas
12223
+ *
12224
+ */},{key:"getExternalcontactsContactsSchemasLimits",value:function getExternalcontactsContactsSchemasLimits(){return this.apiClient.callApi('/api/v2/externalcontacts/contacts/schemas/limits','GET',{},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
12189
12225
  * Fetch an External Source
12190
12226
  *
12191
12227
  * @param {String} externalSourceId External Source ID
@@ -12269,6 +12305,12 @@ if(externalOrganizationId===undefined||externalOrganizationId===null){throw'Miss
12269
12305
  * @param {Array.<String>} opts.expand which fields, if any, to expand
12270
12306
  */},{key:"getExternalcontactsOrganizationContacts",value:function getExternalcontactsOrganizationContacts(externalOrganizationId,opts){opts=opts||{};// verify the required parameter 'externalOrganizationId' is set
12271
12307
  if(externalOrganizationId===undefined||externalOrganizationId===null){throw'Missing the required parameter "externalOrganizationId" when calling getExternalcontactsOrganizationContacts';}return this.apiClient.callApi('/api/v2/externalcontacts/organizations/{externalOrganizationId}/contacts','GET',{'externalOrganizationId':externalOrganizationId},{'pageSize':opts['pageSize'],'pageNumber':opts['pageNumber'],'q':opts['q'],'sortOrder':opts['sortOrder'],'expand':this.apiClient.buildCollectionParam(opts['expand'],'multi')},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
12308
+ * List the identifiers for an external organization
12309
+ *
12310
+ * @param {String} externalOrganizationId External Organization ID
12311
+ * getExternalcontactsOrganizationIdentifiers is a preview method and is subject to both breaking and non-breaking changes at any time without notice
12312
+ */},{key:"getExternalcontactsOrganizationIdentifiers",value:function getExternalcontactsOrganizationIdentifiers(externalOrganizationId){// verify the required parameter 'externalOrganizationId' is set
12313
+ if(externalOrganizationId===undefined||externalOrganizationId===null){throw'Missing the required parameter "externalOrganizationId" when calling getExternalcontactsOrganizationIdentifiers';}return this.apiClient.callApi('/api/v2/externalcontacts/organizations/{externalOrganizationId}/identifiers','GET',{'externalOrganizationId':externalOrganizationId},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
12272
12314
  * Fetch a note for an external organization
12273
12315
  *
12274
12316
  * @param {String} externalOrganizationId External Organization Id
@@ -12330,6 +12372,17 @@ if(schemaId===undefined||schemaId===null){throw'Missing the required parameter "
12330
12372
  * Get a list of schemas.
12331
12373
  *
12332
12374
  */},{key:"getExternalcontactsOrganizationsSchemas",value:function getExternalcontactsOrganizationsSchemas(){return this.apiClient.callApi('/api/v2/externalcontacts/organizations/schemas','GET',{},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
12375
+ * Get the core types from which all schemas are built.
12376
+ *
12377
+ * @param {String} coreTypeName Name of the core type
12378
+ */},{key:"getExternalcontactsOrganizationsSchemasCoretype",value:function getExternalcontactsOrganizationsSchemasCoretype(coreTypeName){// verify the required parameter 'coreTypeName' is set
12379
+ if(coreTypeName===undefined||coreTypeName===null){throw'Missing the required parameter "coreTypeName" when calling getExternalcontactsOrganizationsSchemasCoretype';}return this.apiClient.callApi('/api/v2/externalcontacts/organizations/schemas/coretypes/{coreTypeName}','GET',{'coreTypeName':coreTypeName},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
12380
+ * Get the core types from which all schemas are built.
12381
+ *
12382
+ */},{key:"getExternalcontactsOrganizationsSchemasCoretypes",value:function getExternalcontactsOrganizationsSchemasCoretypes(){return this.apiClient.callApi('/api/v2/externalcontacts/organizations/schemas/coretypes','GET',{},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
12383
+ * Get quantitative limits on schemas
12384
+ *
12385
+ */},{key:"getExternalcontactsOrganizationsSchemasLimits",value:function getExternalcontactsOrganizationsSchemasLimits(){return this.apiClient.callApi('/api/v2/externalcontacts/organizations/schemas/limits','GET',{},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
12333
12386
  * Fetch a relationship
12334
12387
  *
12335
12388
  * @param {String} relationshipId Relationship Id
@@ -12337,12 +12390,12 @@ if(schemaId===undefined||schemaId===null){throw'Missing the required parameter "
12337
12390
  * @param {Array.<String>} opts.expand which fields, if any, to expand
12338
12391
  */},{key:"getExternalcontactsRelationship",value:function getExternalcontactsRelationship(relationshipId,opts){opts=opts||{};// verify the required parameter 'relationshipId' is set
12339
12392
  if(relationshipId===undefined||relationshipId===null){throw'Missing the required parameter "relationshipId" when calling getExternalcontactsRelationship';}return this.apiClient.callApi('/api/v2/externalcontacts/relationships/{relationshipId}','GET',{'relationshipId':relationshipId},{'expand':this.apiClient.buildCollectionParam(opts['expand'],'multi')},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
12340
- * Look up contacts and externalOrganizations based on an attribute. Maximum of 25 values returned.
12393
+ * Look up contacts based on an attribute. Maximum of 25 values returned.
12341
12394
  *
12342
- * @param {String} lookupVal User supplied value to lookup contacts/externalOrganizations (supports email addresses, e164 phone numbers, Twitter screen names)
12395
+ * @param {String} lookupVal User supplied value to lookup contacts (supports email addresses, e164 phone numbers, Twitter screen names)
12343
12396
  * @param {Object} opts Optional parameters
12344
12397
  * @param {Array.<String>} opts.expand which field, if any, to expand
12345
- * @param {String} opts.divisionId Specifies which division to lookup contacts/externalOrganizations in, for the given lookup value (default to *)
12398
+ * @param {String} opts.divisionId Specifies which division to lookup contacts in, for the given lookup value (default to *)
12346
12399
  */},{key:"getExternalcontactsReversewhitepageslookup",value:function getExternalcontactsReversewhitepageslookup(lookupVal,opts){opts=opts||{};// verify the required parameter 'lookupVal' is set
12347
12400
  if(lookupVal===undefined||lookupVal===null){throw'Missing the required parameter "lookupVal" when calling getExternalcontactsReversewhitepageslookup';}return this.apiClient.callApi('/api/v2/externalcontacts/reversewhitepageslookup','GET',{},{'lookupVal':lookupVal,'expand':this.apiClient.buildCollectionParam(opts['expand'],'multi'),'divisionId':opts['divisionId']},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
12348
12401
  * Scan for external contacts using paging
@@ -12408,6 +12461,14 @@ if(lookupVal===undefined||lookupVal===null){throw'Missing the required parameter
12408
12461
  */},{key:"patchExternalcontactsContactIdentifiers",value:function patchExternalcontactsContactIdentifiers(contactId,body){// verify the required parameter 'contactId' is set
12409
12462
  if(contactId===undefined||contactId===null){throw'Missing the required parameter "contactId" when calling patchExternalcontactsContactIdentifiers';}// verify the required parameter 'body' is set
12410
12463
  if(body===undefined||body===null){throw'Missing the required parameter "body" when calling patchExternalcontactsContactIdentifiers';}return this.apiClient.callApi('/api/v2/externalcontacts/contacts/{contactId}/identifiers','PATCH',{'contactId':contactId},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}/**
12464
+ * Claim or release identifiers for an external organization
12465
+ *
12466
+ * @param {String} externalOrganizationId External Organization ID
12467
+ * @param {Object} body ClaimRequest
12468
+ * patchExternalcontactsOrganizationIdentifiers is a preview method and is subject to both breaking and non-breaking changes at any time without notice
12469
+ */},{key:"patchExternalcontactsOrganizationIdentifiers",value:function patchExternalcontactsOrganizationIdentifiers(externalOrganizationId,body){// verify the required parameter 'externalOrganizationId' is set
12470
+ if(externalOrganizationId===undefined||externalOrganizationId===null){throw'Missing the required parameter "externalOrganizationId" when calling patchExternalcontactsOrganizationIdentifiers';}// verify the required parameter 'body' is set
12471
+ if(body===undefined||body===null){throw'Missing the required parameter "body" when calling patchExternalcontactsOrganizationIdentifiers';}return this.apiClient.callApi('/api/v2/externalcontacts/organizations/{externalOrganizationId}/identifiers','PATCH',{'externalOrganizationId':externalOrganizationId},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}/**
12411
12472
  * Bulk fetch contacts
12412
12473
  *
12413
12474
  * @param {Object} body Contact ids
@@ -12424,6 +12485,14 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
12424
12485
  * postExternalcontactsBulkContactsDivisionviews is a preview method and is subject to both breaking and non-breaking changes at any time without notice
12425
12486
  */},{key:"postExternalcontactsBulkContactsDivisionviews",value:function postExternalcontactsBulkContactsDivisionviews(body){// verify the required parameter 'body' is set
12426
12487
  if(body===undefined||body===null){throw'Missing the required parameter "body" when calling postExternalcontactsBulkContactsDivisionviews';}return this.apiClient.callApi('/api/v2/externalcontacts/bulk/contacts/divisionviews','POST',{},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}/**
12488
+ * Bulk Enrich Contacts - Run up to 10 Enrich operations per request
12489
+ * See the API endpoint /externalcontacts/contacts/enrich for docs on individual Enrich operations.
12490
+ * @param {Object} body Contact Enrich Requests
12491
+ * @param {Object} opts Optional parameters
12492
+ * @param {Boolean} opts.dryRun If true, the request will not make any modifications, but will show you what the end result *would* be.
12493
+ * postExternalcontactsBulkContactsEnrich is a preview method and is subject to both breaking and non-breaking changes at any time without notice
12494
+ */},{key:"postExternalcontactsBulkContactsEnrich",value:function postExternalcontactsBulkContactsEnrich(body,opts){opts=opts||{};// verify the required parameter 'body' is set
12495
+ if(body===undefined||body===null){throw'Missing the required parameter "body" when calling postExternalcontactsBulkContactsEnrich';}return this.apiClient.callApi('/api/v2/externalcontacts/bulk/contacts/enrich','POST',{},{'dryRun':opts['dryRun']},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}/**
12427
12496
  * Bulk remove contacts
12428
12497
  *
12429
12498
  * @param {Object} body Contact ids
@@ -12475,6 +12544,14 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
12475
12544
  * postExternalcontactsBulkOrganizationsDivisionviews is a preview method and is subject to both breaking and non-breaking changes at any time without notice
12476
12545
  */},{key:"postExternalcontactsBulkOrganizationsDivisionviews",value:function postExternalcontactsBulkOrganizationsDivisionviews(body){// verify the required parameter 'body' is set
12477
12546
  if(body===undefined||body===null){throw'Missing the required parameter "body" when calling postExternalcontactsBulkOrganizationsDivisionviews';}return this.apiClient.callApi('/api/v2/externalcontacts/bulk/organizations/divisionviews','POST',{},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}/**
12547
+ * Bulk enrich external organizations - Run up to 10 Enrich operations per request
12548
+ * See the API endpoint /externalcontacts/organizations/enrich for docs on individual Enrich operations.
12549
+ * @param {Object} body External Organization Enrich Requests
12550
+ * @param {Object} opts Optional parameters
12551
+ * @param {Boolean} opts.dryRun If true, the request will not make any modifications, but will show you what the end result *would* be.
12552
+ * postExternalcontactsBulkOrganizationsEnrich is a preview method and is subject to both breaking and non-breaking changes at any time without notice
12553
+ */},{key:"postExternalcontactsBulkOrganizationsEnrich",value:function postExternalcontactsBulkOrganizationsEnrich(body,opts){opts=opts||{};// verify the required parameter 'body' is set
12554
+ if(body===undefined||body===null){throw'Missing the required parameter "body" when calling postExternalcontactsBulkOrganizationsEnrich';}return this.apiClient.callApi('/api/v2/externalcontacts/bulk/organizations/enrich','POST',{},{'dryRun':opts['dryRun']},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}/**
12478
12555
  * Bulk remove organizations
12479
12556
  *
12480
12557
  * @param {Object} body Organization ids
@@ -12522,11 +12599,25 @@ if(contactId===undefined||contactId===null){throw'Missing the required parameter
12522
12599
  * @param {Object} body ExternalContact
12523
12600
  */},{key:"postExternalcontactsContacts",value:function postExternalcontactsContacts(body){// verify the required parameter 'body' is set
12524
12601
  if(body===undefined||body===null){throw'Missing the required parameter "body" when calling postExternalcontactsContacts';}return this.apiClient.callApi('/api/v2/externalcontacts/contacts','POST',{},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}/**
12602
+ * Modify or create an External Contact, with powerful behaviors for finding and combining data with pre-existing Contacts.
12603
+ * You may also submit multiple Enrich operations in one request via the Bulk Enrich API at /externalcontacts/bulk/contacts. A 201 response status indicates that a new Contact was created, whereas a 200 status indicates that a Contact was updated or a merge occurred.
12604
+ * @param {Object} body ContactEnrichRequest
12605
+ * @param {Object} opts Optional parameters
12606
+ * @param {Boolean} opts.dryRun If true, the request will not make any modifications, but will show you what the end result *would* be.
12607
+ * postExternalcontactsContactsEnrich is a preview method and is subject to both breaking and non-breaking changes at any time without notice
12608
+ */},{key:"postExternalcontactsContactsEnrich",value:function postExternalcontactsContactsEnrich(body,opts){opts=opts||{};// verify the required parameter 'body' is set
12609
+ if(body===undefined||body===null){throw'Missing the required parameter "body" when calling postExternalcontactsContactsEnrich';}return this.apiClient.callApi('/api/v2/externalcontacts/contacts/enrich','POST',{},{'dryRun':opts['dryRun']},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}/**
12525
12610
  * Create bulk export
12526
12611
  *
12527
12612
  * @param {Object} body Export
12528
12613
  */},{key:"postExternalcontactsContactsExports",value:function postExternalcontactsContactsExports(body){// verify the required parameter 'body' is set
12529
12614
  if(body===undefined||body===null){throw'Missing the required parameter "body" when calling postExternalcontactsContactsExports';}return this.apiClient.callApi('/api/v2/externalcontacts/contacts/exports','POST',{},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}/**
12615
+ * Merge up to 25 contacts into a new contact record
12616
+ * Merge operation may fail if the resulting mergeset exceeds our default limit of 52. The valueOverride field lets you override any of the Contact fields post-merge. If any Contact field is left null in `valueOverride`, it will be taken from the most recently-modified contact in the merge set. Exception for *phone/*email fields: Conflicting data will be moved to any other available phone/email fields in the merged contact.
12617
+ * @param {Object} body MergeRequest
12618
+ * postExternalcontactsContactsMerge is a preview method and is subject to both breaking and non-breaking changes at any time without notice
12619
+ */},{key:"postExternalcontactsContactsMerge",value:function postExternalcontactsContactsMerge(body){// verify the required parameter 'body' is set
12620
+ if(body===undefined||body===null){throw'Missing the required parameter "body" when calling postExternalcontactsContactsMerge';}return this.apiClient.callApi('/api/v2/externalcontacts/contacts/merge','POST',{},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}/**
12530
12621
  * Create a schema
12531
12622
  *
12532
12623
  * @param {Object} body Schema
@@ -12545,6 +12636,22 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
12545
12636
  * @deprecated
12546
12637
  */},{key:"postExternalcontactsIdentifierlookup",value:function postExternalcontactsIdentifierlookup(identifier,opts){opts=opts||{};// verify the required parameter 'identifier' is set
12547
12638
  if(identifier===undefined||identifier===null){throw'Missing the required parameter "identifier" when calling postExternalcontactsIdentifierlookup';}return this.apiClient.callApi('/api/v2/externalcontacts/identifierlookup','POST',{},{'expand':this.apiClient.buildCollectionParam(opts['expand'],'multi')},{},{},identifier,['PureCloud OAuth'],['application/json'],['application/json']);}/**
12639
+ * Fetch a contact using an identifier type and value.
12640
+ * Phone number identifier values must be provided with the country code and a leading + symbol. Example: "+1 704 298 4733"
12641
+ * @param {Object} identifier
12642
+ * @param {Object} opts Optional parameters
12643
+ * @param {Array.<String>} opts.expand which field, if any, to expand
12644
+ * postExternalcontactsIdentifierlookupContacts is a preview method and is subject to both breaking and non-breaking changes at any time without notice
12645
+ */},{key:"postExternalcontactsIdentifierlookupContacts",value:function postExternalcontactsIdentifierlookupContacts(identifier,opts){opts=opts||{};// verify the required parameter 'identifier' is set
12646
+ if(identifier===undefined||identifier===null){throw'Missing the required parameter "identifier" when calling postExternalcontactsIdentifierlookupContacts';}return this.apiClient.callApi('/api/v2/externalcontacts/identifierlookup/contacts','POST',{},{'expand':this.apiClient.buildCollectionParam(opts['expand'],'multi')},{},{},identifier,['PureCloud OAuth'],['application/json'],['application/json']);}/**
12647
+ * Fetch an external organization using an identifier type and value.
12648
+ * This endpoint will only accept ExternalId type identifiers.
12649
+ * @param {Object} identifier
12650
+ * @param {Object} opts Optional parameters
12651
+ * @param {Array.<String>} opts.expand which field, if any, to expand
12652
+ * postExternalcontactsIdentifierlookupOrganizations is a preview method and is subject to both breaking and non-breaking changes at any time without notice
12653
+ */},{key:"postExternalcontactsIdentifierlookupOrganizations",value:function postExternalcontactsIdentifierlookupOrganizations(identifier,opts){opts=opts||{};// verify the required parameter 'identifier' is set
12654
+ if(identifier===undefined||identifier===null){throw'Missing the required parameter "identifier" when calling postExternalcontactsIdentifierlookupOrganizations';}return this.apiClient.callApi('/api/v2/externalcontacts/identifierlookup/organizations','POST',{},{'expand':this.apiClient.buildCollectionParam(opts['expand'],'multi')},{},{},identifier,['PureCloud OAuth'],['application/json'],['application/json']);}/**
12548
12655
  * Create CSV import job
12549
12656
  *
12550
12657
  * @param {Object} body ImportRequest
@@ -12571,8 +12678,9 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
12571
12678
  */},{key:"postExternalcontactsImportSettings",value:function postExternalcontactsImportSettings(body){// verify the required parameter 'body' is set
12572
12679
  if(body===undefined||body===null){throw'Missing the required parameter "body" when calling postExternalcontactsImportSettings';}return this.apiClient.callApi('/api/v2/externalcontacts/import/settings','POST',{},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}/**
12573
12680
  * Merge two contacts into a new contact record
12574
- * Two curated contacts cannot be merged. Refer to the Contact Merging article on the Developer Center for details
12681
+ * Two curated contacts cannot be merged. Refer to the Contact Merging article on the Developer Center for details. Deprecated: This API has been superseded by a new merge API. You are encouraged to instead use /api/v2/externalcontacts/contacts/merge, which supports merging up to 25 Contacts of any type, and overriding specific fields in the resulting Contact.
12575
12682
  * @param {Object} body MergeRequest
12683
+ * @deprecated
12576
12684
  */},{key:"postExternalcontactsMergeContacts",value:function postExternalcontactsMergeContacts(body){// verify the required parameter 'body' is set
12577
12685
  if(body===undefined||body===null){throw'Missing the required parameter "body" when calling postExternalcontactsMergeContacts';}return this.apiClient.callApi('/api/v2/externalcontacts/merge/contacts','POST',{},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}/**
12578
12686
  * Create a note for an external organization
@@ -12587,6 +12695,14 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
12587
12695
  * @param {Object} body ExternalOrganization
12588
12696
  */},{key:"postExternalcontactsOrganizations",value:function postExternalcontactsOrganizations(body){// verify the required parameter 'body' is set
12589
12697
  if(body===undefined||body===null){throw'Missing the required parameter "body" when calling postExternalcontactsOrganizations';}return this.apiClient.callApi('/api/v2/externalcontacts/organizations','POST',{},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}/**
12698
+ * Modify or create an External Org, with powerful behaviors for finding and combining data with pre-existing External Orgs.
12699
+ * You may also submit multiple Enrich operations in one request via the Bulk Enrich API at /externalcontacts/bulk/organizations. A 201 response status indicates that a new External Organization was created, whereas a 200 status indicates that an External Organization was updated
12700
+ * @param {Object} body ExternalOrgEnrichRequest
12701
+ * @param {Object} opts Optional parameters
12702
+ * @param {Boolean} opts.dryRun If true, the request will not make any modifications, but will show you what the end result *would* be.
12703
+ * postExternalcontactsOrganizationsEnrich is a preview method and is subject to both breaking and non-breaking changes at any time without notice
12704
+ */},{key:"postExternalcontactsOrganizationsEnrich",value:function postExternalcontactsOrganizationsEnrich(body,opts){opts=opts||{};// verify the required parameter 'body' is set
12705
+ if(body===undefined||body===null){throw'Missing the required parameter "body" when calling postExternalcontactsOrganizationsEnrich';}return this.apiClient.callApi('/api/v2/externalcontacts/organizations/enrich','POST',{},{'dryRun':opts['dryRun']},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}/**
12590
12706
  * Create a schema
12591
12707
  *
12592
12708
  * @param {Object} body Schema
@@ -12694,7 +12810,7 @@ if(relationshipId===undefined||relationshipId===null){throw'Missing the required
12694
12810
  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(){/**
12695
12811
  * Fax service.
12696
12812
  * @module purecloud-platform-client-v2/api/FaxApi
12697
- * @version 218.1.0
12813
+ * @version 220.0.0
12698
12814
  *//**
12699
12815
  * Constructs a new FaxApi.
12700
12816
  * @alias module:purecloud-platform-client-v2/api/FaxApi
@@ -12743,7 +12859,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
12743
12859
  */},{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(){/**
12744
12860
  * Flows service.
12745
12861
  * @module purecloud-platform-client-v2/api/FlowsApi
12746
- * @version 218.1.0
12862
+ * @version 220.0.0
12747
12863
  *//**
12748
12864
  * Constructs a new FlowsApi.
12749
12865
  * @alias module:purecloud-platform-client-v2/api/FlowsApi
@@ -12791,7 +12907,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
12791
12907
  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(){/**
12792
12908
  * Gamification service.
12793
12909
  * @module purecloud-platform-client-v2/api/GamificationApi
12794
- * @version 218.1.0
12910
+ * @version 220.0.0
12795
12911
  *//**
12796
12912
  * Constructs a new GamificationApi.
12797
12913
  * @alias module:purecloud-platform-client-v2/api/GamificationApi
@@ -12804,6 +12920,11 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
12804
12920
  * @param {String} metricId Specifies the External Metric Definition ID
12805
12921
  */return _createClass(GamificationApi,[{key:"deleteEmployeeperformanceExternalmetricsDefinition",value:function deleteEmployeeperformanceExternalmetricsDefinition(metricId){// verify the required parameter 'metricId' is set
12806
12922
  if(metricId===undefined||metricId===null){throw'Missing the required parameter "metricId" when calling deleteEmployeeperformanceExternalmetricsDefinition';}return this.apiClient.callApi('/api/v2/employeeperformance/externalmetrics/definitions/{metricId}','DELETE',{'metricId':metricId},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
12923
+ * Delete a Contest by Id
12924
+ *
12925
+ * @param {String} contestId The ID of the contest
12926
+ */},{key:"deleteGamificationContest",value:function deleteGamificationContest(contestId){// verify the required parameter 'contestId' is set
12927
+ if(contestId===undefined||contestId===null){throw'Missing the required parameter "contestId" when calling deleteGamificationContest';}return this.apiClient.callApi('/api/v2/gamification/contests/{contestId}','DELETE',{'contestId':contestId},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
12807
12928
  * Get an External Metric Definition
12808
12929
  *
12809
12930
  * @param {String} metricId Specifies the External Metric Definition ID
@@ -12815,6 +12936,71 @@ if(metricId===undefined||metricId===null){throw'Missing the required parameter "
12815
12936
  * @param {Number} opts.pageSize Page size (default to 25)
12816
12937
  * @param {Number} opts.pageNumber Page number (default to 1)
12817
12938
  */},{key:"getEmployeeperformanceExternalmetricsDefinitions",value:function getEmployeeperformanceExternalmetricsDefinitions(opts){opts=opts||{};return this.apiClient.callApi('/api/v2/employeeperformance/externalmetrics/definitions','GET',{},{'pageSize':opts['pageSize'],'pageNumber':opts['pageNumber']},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
12939
+ * Get a Contest by Id
12940
+ *
12941
+ * @param {String} contestId The ID of the contest
12942
+ */},{key:"getGamificationContest",value:function getGamificationContest(contestId){// verify the required parameter 'contestId' is set
12943
+ if(contestId===undefined||contestId===null){throw'Missing the required parameter "contestId" when calling getGamificationContest';}return this.apiClient.callApi('/api/v2/gamification/contests/{contestId}','GET',{'contestId':contestId},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
12944
+ * Get Contest Scores (Admin)
12945
+ *
12946
+ * @param {String} contestId The ID of the contest
12947
+ * @param {Object} opts Optional parameters
12948
+ * @param {Number} opts.pageNumber (default to 1)
12949
+ * @param {Number} opts.pageSize (default to 25)
12950
+ * @param {String} opts.workday Target querying workday. Dates are represented as an ISO-8601 string. For example: yyyy-MM-dd
12951
+ * @param {Object} opts.returnsView Desired response results (default to All)
12952
+ */},{key:"getGamificationContestAgentsScores",value:function getGamificationContestAgentsScores(contestId,opts){opts=opts||{};// verify the required parameter 'contestId' is set
12953
+ if(contestId===undefined||contestId===null){throw'Missing the required parameter "contestId" when calling getGamificationContestAgentsScores';}return this.apiClient.callApi('/api/v2/gamification/contests/{contestId}/agents/scores','GET',{'contestId':contestId},{'pageNumber':opts['pageNumber'],'pageSize':opts['pageSize'],'workday':opts['workday'],'returnsView':opts['returnsView']},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
12954
+ * Get Contest Scores for the requesting Agent/Supervisor
12955
+ *
12956
+ * @param {String} contestId The ID of the contest
12957
+ * @param {Object} opts Optional parameters
12958
+ * @param {Number} opts.pageNumber (default to 1)
12959
+ * @param {Number} opts.pageSize (default to 25)
12960
+ * @param {String} opts.workday Target querying workday. Dates are represented as an ISO-8601 string. For example: yyyy-MM-dd
12961
+ * @param {Object} opts.returnsView Desired response results (Supervisor Only) (default to All)
12962
+ */},{key:"getGamificationContestAgentsScoresMe",value:function getGamificationContestAgentsScoresMe(contestId,opts){opts=opts||{};// verify the required parameter 'contestId' is set
12963
+ if(contestId===undefined||contestId===null){throw'Missing the required parameter "contestId" when calling getGamificationContestAgentsScoresMe';}return this.apiClient.callApi('/api/v2/gamification/contests/{contestId}/agents/scores/me','GET',{'contestId':contestId},{'pageNumber':opts['pageNumber'],'pageSize':opts['pageSize'],'workday':opts['workday'],'returnsView':opts['returnsView']},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
12964
+ * Get a Contest Score Trend (Average Trend)
12965
+ *
12966
+ * @param {String} contestId The ID of the contest
12967
+ */},{key:"getGamificationContestAgentsScoresTrends",value:function getGamificationContestAgentsScoresTrends(contestId){// verify the required parameter 'contestId' is set
12968
+ if(contestId===undefined||contestId===null){throw'Missing the required parameter "contestId" when calling getGamificationContestAgentsScoresTrends';}return this.apiClient.callApi('/api/v2/gamification/contests/{contestId}/agents/scores/trends','GET',{'contestId':contestId},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
12969
+ * Get a Contest Score Trend for the requesting Agent
12970
+ *
12971
+ * @param {String} contestId The ID of the contest
12972
+ */},{key:"getGamificationContestAgentsScoresTrendsMe",value:function getGamificationContestAgentsScoresTrendsMe(contestId){// verify the required parameter 'contestId' is set
12973
+ if(contestId===undefined||contestId===null){throw'Missing the required parameter "contestId" when calling getGamificationContestAgentsScoresTrendsMe';}return this.apiClient.callApi('/api/v2/gamification/contests/{contestId}/agents/scores/trends/me','GET',{'contestId':contestId},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
12974
+ * Get a Contest Prize Image by Id
12975
+ *
12976
+ * @param {String} contestId The ID of the contest
12977
+ * @param {String} prizeImageId The ID of the prize image
12978
+ */},{key:"getGamificationContestPrizeimage",value:function getGamificationContestPrizeimage(contestId,prizeImageId){// verify the required parameter 'contestId' is set
12979
+ if(contestId===undefined||contestId===null){throw'Missing the required parameter "contestId" when calling getGamificationContestPrizeimage';}// verify the required parameter 'prizeImageId' is set
12980
+ if(prizeImageId===undefined||prizeImageId===null){throw'Missing the required parameter "prizeImageId" when calling getGamificationContestPrizeimage';}return this.apiClient.callApi('/api/v2/gamification/contests/{contestId}/prizeimages/{prizeImageId}','GET',{'contestId':contestId,'prizeImageId':prizeImageId},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
12981
+ * Get a List of Contests (Admin)
12982
+ *
12983
+ * @param {Object} opts Optional parameters
12984
+ * @param {Number} opts.pageNumber (default to 1)
12985
+ * @param {Number} opts.pageSize (default to 25)
12986
+ * @param {String} opts.dateStart Start date for the query. Dates are represented as an ISO-8601 string. For example: yyyy-MM-dd
12987
+ * @param {String} opts.dateEnd End date for the query. Dates are represented as an ISO-8601 string. For example: yyyy-MM-dd
12988
+ * @param {Array.<String>} opts.status
12989
+ * @param {Object} opts.sortBy (default to dateStart)
12990
+ * @param {Object} opts.sortOrder (default to desc)
12991
+ */},{key:"getGamificationContests",value:function getGamificationContests(opts){opts=opts||{};return this.apiClient.callApi('/api/v2/gamification/contests','GET',{},{'pageNumber':opts['pageNumber'],'pageSize':opts['pageSize'],'dateStart':opts['dateStart'],'dateEnd':opts['dateEnd'],'status':this.apiClient.buildCollectionParam(opts['status'],'multi'),'sortBy':opts['sortBy'],'sortOrder':opts['sortOrder']},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
12992
+ * Get a List of Contests (Agent/Supervisor)
12993
+ *
12994
+ * @param {Object} opts Optional parameters
12995
+ * @param {Number} opts.pageNumber (default to 1)
12996
+ * @param {Number} opts.pageSize (default to 25)
12997
+ * @param {String} opts.dateStart Start date for the query. Dates are represented as an ISO-8601 string. For example: yyyy-MM-dd
12998
+ * @param {String} opts.dateEnd End date for the query. Dates are represented as an ISO-8601 string. For example: yyyy-MM-dd
12999
+ * @param {Array.<String>} opts.status
13000
+ * @param {Object} opts.sortBy (default to dateStart)
13001
+ * @param {Object} opts.sortOrder (default to desc)
13002
+ * @param {Object} opts.view (default to participant)
13003
+ */},{key:"getGamificationContestsMe",value:function getGamificationContestsMe(opts){opts=opts||{};return this.apiClient.callApi('/api/v2/gamification/contests/me','GET',{},{'pageNumber':opts['pageNumber'],'pageSize':opts['pageSize'],'dateStart':opts['dateStart'],'dateEnd':opts['dateEnd'],'status':this.apiClient.buildCollectionParam(opts['status'],'multi'),'sortBy':opts['sortBy'],'sortOrder':opts['sortOrder'],'view':opts['view']},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
12818
13004
  * Get insights summary
12819
13005
  *
12820
13006
  * @param {Object} filterType Filter type for the query request.
@@ -13258,6 +13444,13 @@ if(templateId===undefined||templateId===null){throw'Missing the required paramet
13258
13444
  */},{key:"patchEmployeeperformanceExternalmetricsDefinition",value:function patchEmployeeperformanceExternalmetricsDefinition(metricId,body){// verify the required parameter 'metricId' is set
13259
13445
  if(metricId===undefined||metricId===null){throw'Missing the required parameter "metricId" when calling patchEmployeeperformanceExternalmetricsDefinition';}// verify the required parameter 'body' is set
13260
13446
  if(body===undefined||body===null){throw'Missing the required parameter "body" when calling patchEmployeeperformanceExternalmetricsDefinition';}return this.apiClient.callApi('/api/v2/employeeperformance/externalmetrics/definitions/{metricId}','PATCH',{'metricId':metricId},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}/**
13447
+ * Finalize a Contest by Id
13448
+ *
13449
+ * @param {String} contestId The ID of the contest
13450
+ * @param {Object} body Finalize Contest
13451
+ */},{key:"patchGamificationContest",value:function patchGamificationContest(contestId,body){// verify the required parameter 'contestId' is set
13452
+ if(contestId===undefined||contestId===null){throw'Missing the required parameter "contestId" when calling patchGamificationContest';}// verify the required parameter 'body' is set
13453
+ if(body===undefined||body===null){throw'Missing the required parameter "body" when calling patchGamificationContest';}return this.apiClient.callApi('/api/v2/gamification/contests/{contestId}','PATCH',{'contestId':contestId},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}/**
13261
13454
  * Write External Metric Data
13262
13455
  *
13263
13456
  * @param {Object} opts Optional parameters
@@ -13268,6 +13461,16 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
13268
13461
  * @param {Object} opts Optional parameters
13269
13462
  * @param {Object} opts.body The External Metric Definition to be created
13270
13463
  */},{key:"postEmployeeperformanceExternalmetricsDefinitions",value:function postEmployeeperformanceExternalmetricsDefinitions(opts){opts=opts||{};return this.apiClient.callApi('/api/v2/employeeperformance/externalmetrics/definitions','POST',{},{},{},{},opts['body'],['PureCloud OAuth'],['application/json'],['application/json']);}/**
13464
+ * Creates a Contest
13465
+ *
13466
+ * @param {Object} body Create Contest
13467
+ */},{key:"postGamificationContests",value:function postGamificationContests(body){// verify the required parameter 'body' is set
13468
+ if(body===undefined||body===null){throw'Missing the required parameter "body" when calling postGamificationContests';}return this.apiClient.callApi('/api/v2/gamification/contests','POST',{},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}/**
13469
+ * Generates pre-signed URL to upload a prize image for gamification contests
13470
+ *
13471
+ * @param {Object} body query
13472
+ */},{key:"postGamificationContestsUploadsPrizeimages",value:function postGamificationContestsUploadsPrizeimages(body){// verify the required parameter 'body' is set
13473
+ if(body===undefined||body===null){throw'Missing the required parameter "body" when calling postGamificationContestsUploadsPrizeimages';}return this.apiClient.callApi('/api/v2/gamification/contests/uploads/prizeimages','POST',{},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}/**
13271
13474
  * Activate a performance profile
13272
13475
  *
13273
13476
  * @param {String} profileId performanceProfileId
@@ -13327,6 +13530,13 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
13327
13530
  * @param {Object} body The date range of work day.
13328
13531
  */},{key:"postGamificationProfilesUsersMeQuery",value:function postGamificationProfilesUsersMeQuery(body){// verify the required parameter 'body' is set
13329
13532
  if(body===undefined||body===null){throw'Missing the required parameter "body" when calling postGamificationProfilesUsersMeQuery';}return this.apiClient.callApi('/api/v2/gamification/profiles/users/me/query','POST',{},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}/**
13533
+ * Update a Contest by Id
13534
+ *
13535
+ * @param {String} contestId The ID of the contest
13536
+ * @param {Object} body Contest
13537
+ */},{key:"putGamificationContest",value:function putGamificationContest(contestId,body){// verify the required parameter 'contestId' is set
13538
+ if(contestId===undefined||contestId===null){throw'Missing the required parameter "contestId" when calling putGamificationContest';}// verify the required parameter 'body' is set
13539
+ if(body===undefined||body===null){throw'Missing the required parameter "body" when calling putGamificationContest';}return this.apiClient.callApi('/api/v2/gamification/contests/{contestId}','PUT',{'contestId':contestId},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}/**
13330
13540
  * Updates a performance profile
13331
13541
  *
13332
13542
  * @param {String} profileId performanceProfileId
@@ -13350,7 +13560,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
13350
13560
  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(){/**
13351
13561
  * GeneralDataProtectionRegulation service.
13352
13562
  * @module purecloud-platform-client-v2/api/GeneralDataProtectionRegulationApi
13353
- * @version 218.1.0
13563
+ * @version 220.0.0
13354
13564
  *//**
13355
13565
  * Constructs a new GeneralDataProtectionRegulationApi.
13356
13566
  * @alias module:purecloud-platform-client-v2/api/GeneralDataProtectionRegulationApi
@@ -13385,7 +13595,7 @@ if(searchValue===undefined||searchValue===null){throw'Missing the required param
13385
13595
  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(){/**
13386
13596
  * Geolocation service.
13387
13597
  * @module purecloud-platform-client-v2/api/GeolocationApi
13388
- * @version 218.1.0
13598
+ * @version 220.0.0
13389
13599
  *//**
13390
13600
  * Constructs a new GeolocationApi.
13391
13601
  * @alias module:purecloud-platform-client-v2/api/GeolocationApi
@@ -13419,7 +13629,7 @@ if(clientId===undefined||clientId===null){throw'Missing the required parameter "
13419
13629
  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(){/**
13420
13630
  * Greetings service.
13421
13631
  * @module purecloud-platform-client-v2/api/GreetingsApi
13422
- * @version 218.1.0
13632
+ * @version 220.0.0
13423
13633
  *//**
13424
13634
  * Constructs a new GreetingsApi.
13425
13635
  * @alias module:purecloud-platform-client-v2/api/GreetingsApi
@@ -13526,7 +13736,7 @@ if(userId===undefined||userId===null){throw'Missing the required parameter "user
13526
13736
  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(){/**
13527
13737
  * Groups service.
13528
13738
  * @module purecloud-platform-client-v2/api/GroupsApi
13529
- * @version 218.1.0
13739
+ * @version 220.0.0
13530
13740
  *//**
13531
13741
  * Constructs a new GroupsApi.
13532
13742
  * @alias module:purecloud-platform-client-v2/api/GroupsApi
@@ -13659,7 +13869,7 @@ if(groupId===undefined||groupId===null){throw'Missing the required parameter "gr
13659
13869
  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(){/**
13660
13870
  * IdentityProvider service.
13661
13871
  * @module purecloud-platform-client-v2/api/IdentityProviderApi
13662
- * @version 218.1.0
13872
+ * @version 220.0.0
13663
13873
  *//**
13664
13874
  * Constructs a new IdentityProviderApi.
13665
13875
  * @alias module:purecloud-platform-client-v2/api/IdentityProviderApi
@@ -13815,7 +14025,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
13815
14025
  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(){/**
13816
14026
  * InfrastructureAsCode service.
13817
14027
  * @module purecloud-platform-client-v2/api/InfrastructureAsCodeApi
13818
- * @version 218.1.0
14028
+ * @version 220.0.0
13819
14029
  *//**
13820
14030
  * Constructs a new InfrastructureAsCodeApi.
13821
14031
  * @alias module:purecloud-platform-client-v2/api/InfrastructureAsCodeApi
@@ -13869,7 +14079,7 @@ if(jobId===undefined||jobId===null){throw'Missing the required parameter "jobId"
13869
14079
  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(){/**
13870
14080
  * Integrations service.
13871
14081
  * @module purecloud-platform-client-v2/api/IntegrationsApi
13872
- * @version 218.1.0
14082
+ * @version 220.0.0
13873
14083
  *//**
13874
14084
  * Constructs a new IntegrationsApi.
13875
14085
  * @alias module:purecloud-platform-client-v2/api/IntegrationsApi
@@ -14508,7 +14718,7 @@ if(ucIntegrationId===undefined||ucIntegrationId===null){throw'Missing the requir
14508
14718
  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(){/**
14509
14719
  * Journey service.
14510
14720
  * @module purecloud-platform-client-v2/api/JourneyApi
14511
- * @version 218.1.0
14721
+ * @version 220.0.0
14512
14722
  *//**
14513
14723
  * Constructs a new JourneyApi.
14514
14724
  * @alias module:purecloud-platform-client-v2/api/JourneyApi
@@ -14988,7 +15198,7 @@ if(versionId===undefined||versionId===null){throw'Missing the required parameter
14988
15198
  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(){/**
14989
15199
  * Knowledge service.
14990
15200
  * @module purecloud-platform-client-v2/api/KnowledgeApi
14991
- * @version 218.1.0
15201
+ * @version 220.0.0
14992
15202
  *//**
14993
15203
  * Constructs a new KnowledgeApi.
14994
15204
  * @alias module:purecloud-platform-client-v2/api/KnowledgeApi
@@ -16051,7 +16261,7 @@ if(sourceId===undefined||sourceId===null){throw'Missing the required parameter "
16051
16261
  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(){/**
16052
16262
  * LanguageUnderstanding service.
16053
16263
  * @module purecloud-platform-client-v2/api/LanguageUnderstandingApi
16054
- * @version 218.1.0
16264
+ * @version 220.0.0
16055
16265
  *//**
16056
16266
  * Constructs a new LanguageUnderstandingApi.
16057
16267
  * @alias module:purecloud-platform-client-v2/api/LanguageUnderstandingApi
@@ -16310,7 +16520,7 @@ if(domainVersionId===undefined||domainVersionId===null){throw'Missing the requir
16310
16520
  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(){/**
16311
16521
  * Languages service.
16312
16522
  * @module purecloud-platform-client-v2/api/LanguagesApi
16313
- * @version 218.1.0
16523
+ * @version 220.0.0
16314
16524
  *//**
16315
16525
  * Constructs a new LanguagesApi.
16316
16526
  * @alias module:purecloud-platform-client-v2/api/LanguagesApi
@@ -16365,7 +16575,7 @@ if(userId===undefined||userId===null){throw'Missing the required parameter "user
16365
16575
  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(){/**
16366
16576
  * Learning service.
16367
16577
  * @module purecloud-platform-client-v2/api/LearningApi
16368
- * @version 218.1.0
16578
+ * @version 220.0.0
16369
16579
  *//**
16370
16580
  * Constructs a new LearningApi.
16371
16581
  * @alias module:purecloud-platform-client-v2/api/LearningApi
@@ -16636,7 +16846,7 @@ if(moduleId===undefined||moduleId===null){throw'Missing the required parameter "
16636
16846
  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(){/**
16637
16847
  * License service.
16638
16848
  * @module purecloud-platform-client-v2/api/LicenseApi
16639
- * @version 218.1.0
16849
+ * @version 220.0.0
16640
16850
  *//**
16641
16851
  * Constructs a new LicenseApi.
16642
16852
  * @alias module:purecloud-platform-client-v2/api/LicenseApi
@@ -16690,7 +16900,7 @@ if(featureName===undefined||featureName===null){throw'Missing the required param
16690
16900
  */},{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(){/**
16691
16901
  * Locations service.
16692
16902
  * @module purecloud-platform-client-v2/api/LocationsApi
16693
- * @version 218.1.0
16903
+ * @version 220.0.0
16694
16904
  *//**
16695
16905
  * Constructs a new LocationsApi.
16696
16906
  * @alias module:purecloud-platform-client-v2/api/LocationsApi
@@ -16749,7 +16959,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
16749
16959
  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(){/**
16750
16960
  * LogCapture service.
16751
16961
  * @module purecloud-platform-client-v2/api/LogCaptureApi
16752
- * @version 218.1.0
16962
+ * @version 220.0.0
16753
16963
  *//**
16754
16964
  * Constructs a new LogCaptureApi.
16755
16965
  * @alias module:purecloud-platform-client-v2/api/LogCaptureApi
@@ -16799,7 +17009,7 @@ if(userId===undefined||userId===null){throw'Missing the required parameter "user
16799
17009
  if(userId===undefined||userId===null){throw'Missing the required parameter "userId" when calling postDiagnosticsLogcaptureBrowserUser';}return this.apiClient.callApi('/api/v2/diagnostics/logcapture/browser/users/{userId}','POST',{'userId':userId},{},{},{},opts['body'],['PureCloud OAuth'],['application/json'],['application/json']);}}]);}();var MessagingApi=/*#__PURE__*/function(){/**
16800
17010
  * Messaging service.
16801
17011
  * @module purecloud-platform-client-v2/api/MessagingApi
16802
- * @version 218.1.0
17012
+ * @version 220.0.0
16803
17013
  *//**
16804
17014
  * Constructs a new MessagingApi.
16805
17015
  * @alias module:purecloud-platform-client-v2/api/MessagingApi
@@ -16889,7 +17099,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
16889
17099
  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(){/**
16890
17100
  * MobileDevices service.
16891
17101
  * @module purecloud-platform-client-v2/api/MobileDevicesApi
16892
- * @version 218.1.0
17102
+ * @version 220.0.0
16893
17103
  *//**
16894
17104
  * Constructs a new MobileDevicesApi.
16895
17105
  * @alias module:purecloud-platform-client-v2/api/MobileDevicesApi
@@ -16928,7 +17138,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
16928
17138
  if(deviceId===undefined||deviceId===null){throw'Missing the required parameter "deviceId" when calling putMobiledevice';}return this.apiClient.callApi('/api/v2/mobiledevices/{deviceId}','PUT',{'deviceId':deviceId},{},{},{},opts['body'],['PureCloud OAuth'],['application/json'],['application/json']);}}]);}();var NotificationsApi=/*#__PURE__*/function(){/**
16929
17139
  * Notifications service.
16930
17140
  * @module purecloud-platform-client-v2/api/NotificationsApi
16931
- * @version 218.1.0
17141
+ * @version 220.0.0
16932
17142
  *//**
16933
17143
  * Constructs a new NotificationsApi.
16934
17144
  * @alias module:purecloud-platform-client-v2/api/NotificationsApi
@@ -16985,7 +17195,7 @@ if(channelId===undefined||channelId===null){throw'Missing the required parameter
16985
17195
  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(){/**
16986
17196
  * OAuth service.
16987
17197
  * @module purecloud-platform-client-v2/api/OAuthApi
16988
- * @version 218.1.0
17198
+ * @version 220.0.0
16989
17199
  *//**
16990
17200
  * Constructs a new OAuthApi.
16991
17201
  * @alias module:purecloud-platform-client-v2/api/OAuthApi
@@ -17070,7 +17280,7 @@ if(clientId===undefined||clientId===null){throw'Missing the required parameter "
17070
17280
  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(){/**
17071
17281
  * Objects service.
17072
17282
  * @module purecloud-platform-client-v2/api/ObjectsApi
17073
- * @version 218.1.0
17283
+ * @version 220.0.0
17074
17284
  *//**
17075
17285
  * Constructs a new ObjectsApi.
17076
17286
  * @alias module:purecloud-platform-client-v2/api/ObjectsApi
@@ -17105,12 +17315,27 @@ if(divisionId===undefined||divisionId===null){throw'Missing the required paramet
17105
17315
  * @param {Array.<String>} opts.id Optionally request specific divisions by their IDs
17106
17316
  * @param {String} opts.name Search term to filter by division name
17107
17317
  */},{key:"getAuthorizationDivisions",value:function getAuthorizationDivisions(opts){opts=opts||{};return this.apiClient.callApi('/api/v2/authorization/divisions','GET',{},{'pageSize':opts['pageSize'],'pageNumber':opts['pageNumber'],'sortBy':opts['sortBy'],'expand':this.apiClient.buildCollectionParam(opts['expand'],'multi'),'nextPage':opts['nextPage'],'previousPage':opts['previousPage'],'objectCount':opts['objectCount'],'id':this.apiClient.buildCollectionParam(opts['id'],'multi'),'name':opts['name']},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
17318
+ * Get a list of soft deleted divisions for the org
17319
+ *
17320
+ * @param {Object} opts Optional parameters
17321
+ * @param {Number} opts.pageNumber Page number (default to 1)
17322
+ * @param {Number} opts.pageSize Page size (default to 25)
17323
+ */},{key:"getAuthorizationDivisionsDeleted",value:function getAuthorizationDivisionsDeleted(opts){opts=opts||{};return this.apiClient.callApi('/api/v2/authorization/divisions/deleted','GET',{},{'pageNumber':opts['pageNumber'],'pageSize':opts['pageSize']},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
17108
17324
  * Retrieve the home division for the organization.
17109
17325
  * Will not include object counts.
17110
17326
  */},{key:"getAuthorizationDivisionsHome",value:function getAuthorizationDivisionsHome(){return this.apiClient.callApi('/api/v2/authorization/divisions/home','GET',{},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
17111
17327
  * Returns the maximum allowed number of divisions.
17112
17328
  *
17113
17329
  */},{key:"getAuthorizationDivisionsLimit",value:function getAuthorizationDivisionsLimit(){return this.apiClient.callApi('/api/v2/authorization/divisions/limit','GET',{},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
17330
+ * Retrieve a list of all divisions defined for the organization with cursor
17331
+ * Use "after" and "before" param to fetch next/previous page}
17332
+ * @param {Object} opts Optional parameters
17333
+ * @param {String} opts.before The cursor that points to the start of the set of entities that has been returned.
17334
+ * @param {String} opts.after The cursor that points to the end of the set of entities that has been returned.
17335
+ * @param {String} opts.pageSize Number of entities to return. Maximum of 200.
17336
+ * @param {Array.<String>} opts.id Optionally request specific divisions by their IDs
17337
+ * @param {String} opts.name Optionally request specific divisions by division name
17338
+ */},{key:"getAuthorizationDivisionsQuery",value:function getAuthorizationDivisionsQuery(opts){opts=opts||{};return this.apiClient.callApi('/api/v2/authorization/divisions/query','GET',{},{'before':opts['before'],'after':opts['after'],'pageSize':opts['pageSize'],'id':this.apiClient.buildCollectionParam(opts['id'],'multi'),'name':opts['name']},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
17114
17339
  * Assign a list of objects to a division
17115
17340
  * Set the division of a specified list of objects. The objects must all be of the same type, one of: CAMPAIGN, MANAGEMENTUNIT, FLOW, QUEUE, DATATABLES or USER. The body of the request is a list of object IDs, which are expected to be GUIDs, e.g. ["206ce31f-61ec-40ed-a8b1-be6f06303998","250a754e-f5e4-4f51-800f-a92f09d3bf8c"]
17116
17341
  * @param {String} divisionId Division ID
@@ -17141,7 +17366,7 @@ if(divisionId===undefined||divisionId===null){throw'Missing the required paramet
17141
17366
  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(){/**
17142
17367
  * OperationalEvents service.
17143
17368
  * @module purecloud-platform-client-v2/api/OperationalEventsApi
17144
- * @version 218.1.0
17369
+ * @version 220.0.0
17145
17370
  *//**
17146
17371
  * Constructs a new OperationalEventsApi.
17147
17372
  * @alias module:purecloud-platform-client-v2/api/OperationalEventsApi
@@ -17172,7 +17397,7 @@ if(eventDefinitionId===undefined||eventDefinitionId===null){throw'Missing the re
17172
17397
  */},{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(){/**
17173
17398
  * Organization service.
17174
17399
  * @module purecloud-platform-client-v2/api/OrganizationApi
17175
- * @version 218.1.0
17400
+ * @version 220.0.0
17176
17401
  *//**
17177
17402
  * Constructs a new OrganizationApi.
17178
17403
  * @alias module:purecloud-platform-client-v2/api/OrganizationApi
@@ -17277,7 +17502,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
17277
17502
  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(){/**
17278
17503
  * OrganizationAuthorization service.
17279
17504
  * @module purecloud-platform-client-v2/api/OrganizationAuthorizationApi
17280
- * @version 218.1.0
17505
+ * @version 220.0.0
17281
17506
  *//**
17282
17507
  * Constructs a new OrganizationAuthorizationApi.
17283
17508
  * @alias module:purecloud-platform-client-v2/api/OrganizationAuthorizationApi
@@ -17611,7 +17836,7 @@ if(trustorOrgId===undefined||trustorOrgId===null){throw'Missing the required par
17611
17836
  if(trusteeUserId===undefined||trusteeUserId===null){throw'Missing the required parameter "trusteeUserId" when calling putOrgauthorizationTrustorUser';}return this.apiClient.callApi('/api/v2/orgauthorization/trustors/{trustorOrgId}/users/{trusteeUserId}','PUT',{'trustorOrgId':trustorOrgId,'trusteeUserId':trusteeUserId},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}}]);}();var OutboundApi=/*#__PURE__*/function(){/**
17612
17837
  * Outbound service.
17613
17838
  * @module purecloud-platform-client-v2/api/OutboundApi
17614
- * @version 218.1.0
17839
+ * @version 220.0.0
17615
17840
  *//**
17616
17841
  * Constructs a new OutboundApi.
17617
17842
  * @alias module:purecloud-platform-client-v2/api/OutboundApi
@@ -17719,6 +17944,13 @@ if(dncListId===undefined||dncListId===null){throw'Missing the required parameter
17719
17944
  * @param {Boolean} opts.expiredOnly Set to true to only remove DNC entries that are expired (default to false)
17720
17945
  */},{key:"deleteOutboundDnclistPhonenumbers",value:function deleteOutboundDnclistPhonenumbers(dncListId,opts){opts=opts||{};// verify the required parameter 'dncListId' is set
17721
17946
  if(dncListId===undefined||dncListId===null){throw'Missing the required parameter "dncListId" when calling deleteOutboundDnclistPhonenumbers';}return this.apiClient.callApi('/api/v2/outbound/dnclists/{dncListId}/phonenumbers','DELETE',{'dncListId':dncListId},{'expiredOnly':opts['expiredOnly']},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
17947
+ * Deletes all or expired whatsApp numbers from a DNC list.
17948
+ * This operation is only for Internal DNC lists of whatsApp numbers
17949
+ * @param {String} dncListId DncList ID
17950
+ * @param {Object} opts Optional parameters
17951
+ * @param {Boolean} opts.expiredOnly Set to true to only remove DNC whatsApp numbers that are expired (default to false)
17952
+ */},{key:"deleteOutboundDnclistWhatsappnumbers",value:function deleteOutboundDnclistWhatsappnumbers(dncListId,opts){opts=opts||{};// verify the required parameter 'dncListId' is set
17953
+ if(dncListId===undefined||dncListId===null){throw'Missing the required parameter "dncListId" when calling deleteOutboundDnclistWhatsappnumbers';}return this.apiClient.callApi('/api/v2/outbound/dnclists/{dncListId}/whatsappnumbers','DELETE',{'dncListId':dncListId},{'expiredOnly':opts['expiredOnly']},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
17722
17954
  * Delete File Specification Template
17723
17955
  *
17724
17956
  * @param {String} fileSpecificationTemplateId File Specification Template ID
@@ -18339,6 +18571,13 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
18339
18571
  */},{key:"patchOutboundDnclistPhonenumbers",value:function patchOutboundDnclistPhonenumbers(dncListId,body){// verify the required parameter 'dncListId' is set
18340
18572
  if(dncListId===undefined||dncListId===null){throw'Missing the required parameter "dncListId" when calling patchOutboundDnclistPhonenumbers';}// verify the required parameter 'body' is set
18341
18573
  if(body===undefined||body===null){throw'Missing the required parameter "body" when calling patchOutboundDnclistPhonenumbers';}return this.apiClient.callApi('/api/v2/outbound/dnclists/{dncListId}/phonenumbers','PATCH',{'dncListId':dncListId},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}/**
18574
+ * Add entries to or delete entries from a DNC list.
18575
+ * Only Internal DNC lists may be deleted from
18576
+ * @param {String} dncListId DncList ID
18577
+ * @param {Object} body DNC whatsApp numbers
18578
+ */},{key:"patchOutboundDnclistWhatsappnumbers",value:function patchOutboundDnclistWhatsappnumbers(dncListId,body){// verify the required parameter 'dncListId' is set
18579
+ if(dncListId===undefined||dncListId===null){throw'Missing the required parameter "dncListId" when calling patchOutboundDnclistWhatsappnumbers';}// verify the required parameter 'body' is set
18580
+ if(body===undefined||body===null){throw'Missing the required parameter "body" when calling patchOutboundDnclistWhatsappnumbers';}return this.apiClient.callApi('/api/v2/outbound/dnclists/{dncListId}/whatsappnumbers','PATCH',{'dncListId':dncListId},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}/**
18342
18581
  * Update the outbound settings for this organization
18343
18582
  *
18344
18583
  * @param {Object} body outboundSettings
@@ -18728,7 +18967,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
18728
18967
  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(){/**
18729
18968
  * Presence service.
18730
18969
  * @module purecloud-platform-client-v2/api/PresenceApi
18731
- * @version 218.1.0
18970
+ * @version 220.0.0
18732
18971
  *//**
18733
18972
  * Constructs a new PresenceApi.
18734
18973
  * @alias module:purecloud-platform-client-v2/api/PresenceApi
@@ -18739,8 +18978,8 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
18739
18978
  * Delete a Presence Definition
18740
18979
  *
18741
18980
  * @param {String} definitionId Presence Definition ID
18742
- */return _createClass(PresenceApi,[{key:"deleteDivisionBasedPresenceDefinition",value:function deleteDivisionBasedPresenceDefinition(definitionId){// verify the required parameter 'definitionId' is set
18743
- if(definitionId===undefined||definitionId===null){throw'Missing the required parameter "definitionId" when calling deleteDivisionBasedPresenceDefinition';}return this.apiClient.callApi('/api/v2/presence/definitions/{definitionId}','DELETE',{'definitionId':definitionId},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
18981
+ */return _createClass(PresenceApi,[{key:"deletePresenceDefinition0",value:function deletePresenceDefinition0(definitionId){// verify the required parameter 'definitionId' is set
18982
+ if(definitionId===undefined||definitionId===null){throw'Missing the required parameter "definitionId" when calling deletePresenceDefinition0';}return this.apiClient.callApi('/api/v2/presence/definitions/{definitionId}','DELETE',{'definitionId':definitionId},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
18744
18983
  * Delete a Presence Source
18745
18984
  *
18746
18985
  * @param {String} sourceId Presence Source ID
@@ -18757,15 +18996,15 @@ if(presenceId===undefined||presenceId===null){throw'Missing the required paramet
18757
18996
  * @param {String} definitionId Presence Definition ID
18758
18997
  * @param {Object} opts Optional parameters
18759
18998
  * @param {Object} opts.localeCode The locale code to fetch for the presence definition. Use ALL to fetch everything.
18760
- */},{key:"getDivisionBasedPresenceDefinition",value:function getDivisionBasedPresenceDefinition(definitionId,opts){opts=opts||{};// verify the required parameter 'definitionId' is set
18761
- if(definitionId===undefined||definitionId===null){throw'Missing the required parameter "definitionId" when calling getDivisionBasedPresenceDefinition';}return this.apiClient.callApi('/api/v2/presence/definitions/{definitionId}','GET',{'definitionId':definitionId},{'localeCode':opts['localeCode']},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
18999
+ */},{key:"getPresenceDefinition0",value:function getPresenceDefinition0(definitionId,opts){opts=opts||{};// verify the required parameter 'definitionId' is set
19000
+ if(definitionId===undefined||definitionId===null){throw'Missing the required parameter "definitionId" when calling getPresenceDefinition0';}return this.apiClient.callApi('/api/v2/presence/definitions/{definitionId}','GET',{'definitionId':definitionId},{'localeCode':opts['localeCode']},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
18762
19001
  * Get a list of Presence Definitions
18763
19002
  *
18764
19003
  * @param {Object} opts Optional parameters
18765
19004
  * @param {String} opts.deactivated Deactivated query can be TRUE or FALSE (default to false)
18766
19005
  * @param {Array.<String>} opts.divisionId One or more division IDs. If nothing is provided, the definitions associated withthe list of divisions that the user has access to will be returned.
18767
19006
  * @param {Object} opts.localeCode The locale code to fetch for the presence definition. Use ALL to fetch everything.
18768
- */},{key:"getDivisionBasedPresenceDefinitions",value:function getDivisionBasedPresenceDefinitions(opts){opts=opts||{};return this.apiClient.callApi('/api/v2/presence/definitions','GET',{},{'deactivated':opts['deactivated'],'divisionId':this.apiClient.buildCollectionParam(opts['divisionId'],'multi'),'localeCode':opts['localeCode']},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
19007
+ */},{key:"getPresenceDefinitions0",value:function getPresenceDefinitions0(opts){opts=opts||{};return this.apiClient.callApi('/api/v2/presence/definitions','GET',{},{'deactivated':opts['deactivated'],'divisionId':this.apiClient.buildCollectionParam(opts['divisionId'],'multi'),'localeCode':opts['localeCode']},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
18769
19008
  * Get the presence settings
18770
19009
  *
18771
19010
  */},{key:"getPresenceSettings",value:function getPresenceSettings(){return this.apiClient.callApi('/api/v2/presence/settings','GET',{},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
@@ -18847,8 +19086,8 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
18847
19086
  * Create a Presence Definition
18848
19087
  *
18849
19088
  * @param {Object} body The Presence Definition to create
18850
- */},{key:"postDivisionBasedPresenceDefinitions",value:function postDivisionBasedPresenceDefinitions(body){// verify the required parameter 'body' is set
18851
- if(body===undefined||body===null){throw'Missing the required parameter "body" when calling postDivisionBasedPresenceDefinitions';}return this.apiClient.callApi('/api/v2/presence/definitions','POST',{},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}/**
19089
+ */},{key:"postPresenceDefinitions0",value:function postPresenceDefinitions0(body){// verify the required parameter 'body' is set
19090
+ if(body===undefined||body===null){throw'Missing the required parameter "body" when calling postPresenceDefinitions0';}return this.apiClient.callApi('/api/v2/presence/definitions','POST',{},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}/**
18852
19091
  * Create a Presence Source
18853
19092
  *
18854
19093
  * @param {Object} body The Presence Source to create
@@ -18864,9 +19103,9 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
18864
19103
  *
18865
19104
  * @param {String} definitionId Presence Definition ID
18866
19105
  * @param {Object} body The updated Presence Definition
18867
- */},{key:"putDivisionBasedPresenceDefinition",value:function putDivisionBasedPresenceDefinition(definitionId,body){// verify the required parameter 'definitionId' is set
18868
- if(definitionId===undefined||definitionId===null){throw'Missing the required parameter "definitionId" when calling putDivisionBasedPresenceDefinition';}// verify the required parameter 'body' is set
18869
- if(body===undefined||body===null){throw'Missing the required parameter "body" when calling putDivisionBasedPresenceDefinition';}return this.apiClient.callApi('/api/v2/presence/definitions/{definitionId}','PUT',{'definitionId':definitionId},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}/**
19106
+ */},{key:"putPresenceDefinition0",value:function putPresenceDefinition0(definitionId,body){// verify the required parameter 'definitionId' is set
19107
+ if(definitionId===undefined||definitionId===null){throw'Missing the required parameter "definitionId" when calling putPresenceDefinition0';}// verify the required parameter 'body' is set
19108
+ if(body===undefined||body===null){throw'Missing the required parameter "body" when calling putPresenceDefinition0';}return this.apiClient.callApi('/api/v2/presence/definitions/{definitionId}','PUT',{'definitionId':definitionId},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}/**
18870
19109
  * Update the presence settings
18871
19110
  *
18872
19111
  * @param {Object} body Presence Settings
@@ -18901,7 +19140,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
18901
19140
  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(){/**
18902
19141
  * ProcessAutomation service.
18903
19142
  * @module purecloud-platform-client-v2/api/ProcessAutomationApi
18904
- * @version 218.1.0
19143
+ * @version 220.0.0
18905
19144
  *//**
18906
19145
  * Constructs a new ProcessAutomationApi.
18907
19146
  * @alias module:purecloud-platform-client-v2/api/ProcessAutomationApi
@@ -18964,7 +19203,7 @@ if(triggerId===undefined||triggerId===null){throw'Missing the required parameter
18964
19203
  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(){/**
18965
19204
  * Quality service.
18966
19205
  * @module purecloud-platform-client-v2/api/QualityApi
18967
- * @version 218.1.0
19206
+ * @version 220.0.0
18968
19207
  *//**
18969
19208
  * Constructs a new QualityApi.
18970
19209
  * @alias module:purecloud-platform-client-v2/api/QualityApi
@@ -19442,7 +19681,7 @@ if(customerSurveyUrl===undefined||customerSurveyUrl===null){throw'Missing the re
19442
19681
  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(){/**
19443
19682
  * Recording service.
19444
19683
  * @module purecloud-platform-client-v2/api/RecordingApi
19445
- * @version 218.1.0
19684
+ * @version 220.0.0
19446
19685
  *//**
19447
19686
  * Constructs a new RecordingApi.
19448
19687
  * @alias module:purecloud-platform-client-v2/api/RecordingApi
@@ -19611,7 +19850,7 @@ if(jobId===undefined||jobId===null){throw'Missing the required parameter "jobId"
19611
19850
  * @param {Object} opts Optional parameters
19612
19851
  * @param {Number} opts.pageSize Page size. Maximum is 100. (default to 25)
19613
19852
  * @param {Number} opts.pageNumber Page number (default to 1)
19614
- * @param {Boolean} opts.includeTotal If false, cursor will be used to locate the page instead of pageNumber.
19853
+ * @param {Boolean} opts.includeTotal If false, cursor will be used to locate the page instead of pageNumber. It is recommended to set it to false for improved performance.
19615
19854
  * @param {String} opts.cursor Indicates where to resume query results (not required for first page)
19616
19855
  */},{key:"getRecordingJobFailedrecordings",value:function getRecordingJobFailedrecordings(jobId,opts){opts=opts||{};// verify the required parameter 'jobId' is set
19617
19856
  if(jobId===undefined||jobId===null){throw'Missing the required parameter "jobId" when calling getRecordingJobFailedrecordings';}return this.apiClient.callApi('/api/v2/recording/jobs/{jobId}/failedrecordings','GET',{'jobId':jobId},{'pageSize':opts['pageSize'],'pageNumber':opts['pageNumber'],'includeTotal':opts['includeTotal'],'cursor':opts['cursor']},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
@@ -19624,7 +19863,7 @@ if(jobId===undefined||jobId===null){throw'Missing the required parameter "jobId"
19624
19863
  * @param {Object} opts.state Filter by state
19625
19864
  * @param {Boolean} opts.showOnlyMyJobs Show only my jobs
19626
19865
  * @param {Object} opts.jobType Job Type (Can be left empty for both)
19627
- * @param {Boolean} opts.includeTotal If false, cursor will be used to locate the page instead of pageNumber.
19866
+ * @param {Boolean} opts.includeTotal If false, cursor will be used to locate the page instead of pageNumber. It is recommended to set it to false for improved performance.
19628
19867
  * @param {String} opts.cursor Indicates where to resume query results (not required for first page)
19629
19868
  */},{key:"getRecordingJobs",value:function getRecordingJobs(opts){opts=opts||{};return this.apiClient.callApi('/api/v2/recording/jobs','GET',{},{'pageSize':opts['pageSize'],'pageNumber':opts['pageNumber'],'sortBy':opts['sortBy'],'state':opts['state'],'showOnlyMyJobs':opts['showOnlyMyJobs'],'jobType':opts['jobType'],'includeTotal':opts['includeTotal'],'cursor':opts['cursor']},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
19630
19869
  * Get the encryption key configurations
@@ -19841,7 +20080,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
19841
20080
  */},{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(){/**
19842
20081
  * ResponseManagement service.
19843
20082
  * @module purecloud-platform-client-v2/api/ResponseManagementApi
19844
- * @version 218.1.0
20083
+ * @version 220.0.0
19845
20084
  *//**
19846
20085
  * Constructs a new ResponseManagementApi.
19847
20086
  * @alias module:purecloud-platform-client-v2/api/ResponseManagementApi
@@ -19962,7 +20201,7 @@ if(responseAssetId===undefined||responseAssetId===null){throw'Missing the requir
19962
20201
  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(){/**
19963
20202
  * Routing service.
19964
20203
  * @module purecloud-platform-client-v2/api/RoutingApi
19965
- * @version 218.1.0
20204
+ * @version 220.0.0
19966
20205
  *//**
19967
20206
  * Constructs a new RoutingApi.
19968
20207
  * @alias module:purecloud-platform-client-v2/api/RoutingApi
@@ -20169,7 +20408,7 @@ if(domainName===undefined||domainName===null){throw'Missing the required paramet
20169
20408
  * @param {Number} opts.pageSize Page size (default to 25)
20170
20409
  * @param {Number} opts.pageNumber Page number (default to 1)
20171
20410
  * @param {Boolean} opts.excludeStatus Exclude MX record data (default to false)
20172
- * @param {String} opts.filter Optional search filter
20411
+ * @param {String} opts.filter Optional search filter that, if defined, use the **filter** syntax, eg: **mySearchedPattern**. Note that **** is considered no filter.
20173
20412
  */},{key:"getRoutingEmailDomains",value:function getRoutingEmailDomains(opts){opts=opts||{};return this.apiClient.callApi('/api/v2/routing/email/domains','GET',{},{'pageSize':opts['pageSize'],'pageNumber':opts['pageNumber'],'excludeStatus':opts['excludeStatus'],'filter':opts['filter']},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
20174
20413
  * Get domain
20175
20414
  *
@@ -20189,8 +20428,10 @@ if(domainId===undefined||domainId===null){throw'Missing the required parameter "
20189
20428
  * Get outbound domains
20190
20429
  *
20191
20430
  * @param {Object} opts Optional parameters
20192
- * @param {String} opts.filter Optional search filter
20193
- */},{key:"getRoutingEmailOutboundDomains",value:function getRoutingEmailOutboundDomains(opts){opts=opts||{};return this.apiClient.callApi('/api/v2/routing/email/outbound/domains','GET',{},{'filter':opts['filter']},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
20431
+ * @param {Number} opts.pageSize Page size (default to 25)
20432
+ * @param {Number} opts.pageNumber Page number (default to 1)
20433
+ * @param {String} opts.filter Optional search filter that, if defined, use the **filter** syntax, eg: **mySearchedPattern**. Note that **** is considered no filter.
20434
+ */},{key:"getRoutingEmailOutboundDomains",value:function getRoutingEmailOutboundDomains(opts){opts=opts||{};return this.apiClient.callApi('/api/v2/routing/email/outbound/domains','GET',{},{'pageSize':opts['pageSize'],'pageNumber':opts['pageNumber'],'filter':opts['filter']},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
20194
20435
  * Get email setup
20195
20436
  *
20196
20437
  */},{key:"getRoutingEmailSetup",value:function getRoutingEmailSetup(){return this.apiClient.callApi('/api/v2/routing/email/setup','GET',{},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
@@ -21007,7 +21248,7 @@ if(userId===undefined||userId===null){throw'Missing the required parameter "user
21007
21248
  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(){/**
21008
21249
  * SCIM service.
21009
21250
  * @module purecloud-platform-client-v2/api/SCIMApi
21010
- * @version 218.1.0
21251
+ * @version 220.0.0
21011
21252
  *//**
21012
21253
  * Constructs a new SCIMApi.
21013
21254
  * @alias module:purecloud-platform-client-v2/api/SCIMApi
@@ -21232,7 +21473,7 @@ if(userId===undefined||userId===null){throw'Missing the required parameter "user
21232
21473
  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(){/**
21233
21474
  * ScreenRecording service.
21234
21475
  * @module purecloud-platform-client-v2/api/ScreenRecordingApi
21235
- * @version 218.1.0
21476
+ * @version 220.0.0
21236
21477
  *//**
21237
21478
  * Constructs a new ScreenRecordingApi.
21238
21479
  * @alias module:purecloud-platform-client-v2/api/ScreenRecordingApi
@@ -21247,7 +21488,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
21247
21488
  */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(){/**
21248
21489
  * Scripts service.
21249
21490
  * @module purecloud-platform-client-v2/api/ScriptsApi
21250
- * @version 218.1.0
21491
+ * @version 220.0.0
21251
21492
  *//**
21252
21493
  * Constructs a new ScriptsApi.
21253
21494
  * @alias module:purecloud-platform-client-v2/api/ScriptsApi
@@ -21316,6 +21557,16 @@ if(scriptId===undefined||scriptId===null){throw'Missing the required parameter "
21316
21557
  * @param {String} opts.scriptDataVersion Advanced usage - controls the data version of the script
21317
21558
  * @param {String} opts.divisionIds Filters scripts to requested divisionIds
21318
21559
  */},{key:"getScriptsPublished",value:function getScriptsPublished(opts){opts=opts||{};return this.apiClient.callApi('/api/v2/scripts/published','GET',{},{'pageSize':opts['pageSize'],'pageNumber':opts['pageNumber'],'expand':opts['expand'],'name':opts['name'],'feature':opts['feature'],'flowId':opts['flowId'],'scriptDataVersion':opts['scriptDataVersion'],'divisionIds':opts['divisionIds']},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
21560
+ * Get the published variables
21561
+ *
21562
+ * @param {String} scriptId Script ID
21563
+ * @param {Object} opts Optional parameters
21564
+ * @param {Object} opts.input input
21565
+ * @param {Object} opts.output output
21566
+ * @param {Object} opts.type type
21567
+ * @param {String} opts.scriptDataVersion Advanced usage - controls the data version of the script
21568
+ */},{key:"getScriptsPublishedDivisionviewVariables",value:function getScriptsPublishedDivisionviewVariables(scriptId,opts){opts=opts||{};// verify the required parameter 'scriptId' is set
21569
+ if(scriptId===undefined||scriptId===null){throw'Missing the required parameter "scriptId" when calling getScriptsPublishedDivisionviewVariables';}return this.apiClient.callApi('/api/v2/scripts/published/divisionviews/{scriptId}/variables','GET',{'scriptId':scriptId},{'input':opts['input'],'output':opts['output'],'type':opts['type'],'scriptDataVersion':opts['scriptDataVersion']},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
21319
21570
  * Get the published scripts metadata.
21320
21571
  *
21321
21572
  * @param {Object} opts Optional parameters
@@ -21383,7 +21634,7 @@ if(scriptId===undefined||scriptId===null){throw'Missing the required parameter "
21383
21634
  */},{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(){/**
21384
21635
  * Search service.
21385
21636
  * @module purecloud-platform-client-v2/api/SearchApi
21386
- * @version 218.1.0
21637
+ * @version 220.0.0
21387
21638
  *//**
21388
21639
  * Constructs a new SearchApi.
21389
21640
  * @alias module:purecloud-platform-client-v2/api/SearchApi
@@ -21555,7 +21806,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
21555
21806
  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(){/**
21556
21807
  * Settings service.
21557
21808
  * @module purecloud-platform-client-v2/api/SettingsApi
21558
- * @version 218.1.0
21809
+ * @version 220.0.0
21559
21810
  *//**
21560
21811
  * Constructs a new SettingsApi.
21561
21812
  * @alias module:purecloud-platform-client-v2/api/SettingsApi
@@ -21616,7 +21867,7 @@ if(agentId===undefined||agentId===null){throw'Missing the required parameter "ag
21616
21867
  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(){/**
21617
21868
  * SocialMedia service.
21618
21869
  * @module purecloud-platform-client-v2/api/SocialMediaApi
21619
- * @version 218.1.0
21870
+ * @version 220.0.0
21620
21871
  *//**
21621
21872
  * Constructs a new SocialMediaApi.
21622
21873
  * @alias module:purecloud-platform-client-v2/api/SocialMediaApi
@@ -21953,7 +22204,7 @@ if(topicId===undefined||topicId===null){throw'Missing the required parameter "to
21953
22204
  if(twitterIngestionRuleId===undefined||twitterIngestionRuleId===null){throw'Missing the required parameter "twitterIngestionRuleId" when calling putSocialmediaTopicDataingestionrulesTwitterTwitterIngestionRuleId';}return this.apiClient.callApi('/api/v2/socialmedia/topics/{topicId}/dataingestionrules/twitter/{twitterIngestionRuleId}','PUT',{'topicId':topicId,'twitterIngestionRuleId':twitterIngestionRuleId},{},{},{},opts['body'],['PureCloud OAuth'],['application/json'],['application/json']);}}]);}();var SpeechTextAnalyticsApi=/*#__PURE__*/function(){/**
21954
22205
  * SpeechTextAnalytics service.
21955
22206
  * @module purecloud-platform-client-v2/api/SpeechTextAnalyticsApi
21956
- * @version 218.1.0
22207
+ * @version 220.0.0
21957
22208
  *//**
21958
22209
  * Constructs a new SpeechTextAnalyticsApi.
21959
22210
  * @alias module:purecloud-platform-client-v2/api/SpeechTextAnalyticsApi
@@ -22276,7 +22527,7 @@ if(topicId===undefined||topicId===null){throw'Missing the required parameter "to
22276
22527
  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(){/**
22277
22528
  * Stations service.
22278
22529
  * @module purecloud-platform-client-v2/api/StationsApi
22279
- * @version 218.1.0
22530
+ * @version 220.0.0
22280
22531
  *//**
22281
22532
  * Constructs a new StationsApi.
22282
22533
  * @alias module:purecloud-platform-client-v2/api/StationsApi
@@ -22308,7 +22559,7 @@ if(stationId===undefined||stationId===null){throw'Missing the required parameter
22308
22559
  */},{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(){/**
22309
22560
  * Suggest service.
22310
22561
  * @module purecloud-platform-client-v2/api/SuggestApi
22311
- * @version 218.1.0
22562
+ * @version 220.0.0
22312
22563
  *//**
22313
22564
  * Constructs a new SuggestApi.
22314
22565
  * @alias module:purecloud-platform-client-v2/api/SuggestApi
@@ -22348,7 +22599,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
22348
22599
  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(){/**
22349
22600
  * TaskManagement service.
22350
22601
  * @module purecloud-platform-client-v2/api/TaskManagementApi
22351
- * @version 218.1.0
22602
+ * @version 220.0.0
22352
22603
  *//**
22353
22604
  * Constructs a new TaskManagementApi.
22354
22605
  * @alias module:purecloud-platform-client-v2/api/TaskManagementApi
@@ -22426,14 +22677,12 @@ if(workbinId===undefined||workbinId===null){throw'Missing the required parameter
22426
22677
  * @param {String} opts.after The cursor that points to the end of the set of entities that has been returned.
22427
22678
  * @param {Number} opts.pageSize Limit the number of entities to return. It is not guaranteed that the requested number of entities will be filled in a single request. If an `after` key is returned as part of the response it is possible that more entities that match the filter criteria exist. Maximum of 200. (default to 25)
22428
22679
  * @param {Object} opts.sortOrder Ascending or descending sort order (default to descending)
22429
- * getTaskmanagementWorkbinHistory is a preview method and is subject to both breaking and non-breaking changes at any time without notice
22430
22680
  */},{key:"getTaskmanagementWorkbinHistory",value:function getTaskmanagementWorkbinHistory(workbinId,opts){opts=opts||{};// verify the required parameter 'workbinId' is set
22431
22681
  if(workbinId===undefined||workbinId===null){throw'Missing the required parameter "workbinId" when calling getTaskmanagementWorkbinHistory';}return this.apiClient.callApi('/api/v2/taskmanagement/workbins/{workbinId}/history','GET',{'workbinId':workbinId},{'after':opts['after'],'pageSize':opts['pageSize'],'sortOrder':opts['sortOrder']},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
22432
22682
  * Get a version of a workbin
22433
22683
  *
22434
22684
  * @param {String} workbinId Workbin ID
22435
22685
  * @param {Number} entityVersion Workbin version
22436
- * getTaskmanagementWorkbinVersion is a preview method and is subject to both breaking and non-breaking changes at any time without notice
22437
22686
  */},{key:"getTaskmanagementWorkbinVersion",value:function getTaskmanagementWorkbinVersion(workbinId,entityVersion){// verify the required parameter 'workbinId' is set
22438
22687
  if(workbinId===undefined||workbinId===null){throw'Missing the required parameter "workbinId" when calling getTaskmanagementWorkbinVersion';}// verify the required parameter 'entityVersion' is set
22439
22688
  if(entityVersion===undefined||entityVersion===null){throw'Missing the required parameter "entityVersion" when calling getTaskmanagementWorkbinVersion';}return this.apiClient.callApi('/api/v2/taskmanagement/workbins/{workbinId}/versions/{entityVersion}','GET',{'workbinId':workbinId,'entityVersion':entityVersion},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
@@ -22444,7 +22693,6 @@ if(entityVersion===undefined||entityVersion===null){throw'Missing the required p
22444
22693
  * @param {String} opts.after The cursor that points to the end of the set of entities that has been returned.
22445
22694
  * @param {Number} opts.pageSize Limit the number of entities to return. It is not guaranteed that the requested number of entities will be filled in a single request. If an `after` key is returned as part of the response it is possible that more entities that match the filter criteria exist. Maximum of 200. (default to 25)
22446
22695
  * @param {Object} opts.sortOrder Ascending or descending sort order (default to descending)
22447
- * getTaskmanagementWorkbinVersions is a preview method and is subject to both breaking and non-breaking changes at any time without notice
22448
22696
  */},{key:"getTaskmanagementWorkbinVersions",value:function getTaskmanagementWorkbinVersions(workbinId,opts){opts=opts||{};// verify the required parameter 'workbinId' is set
22449
22697
  if(workbinId===undefined||workbinId===null){throw'Missing the required parameter "workbinId" when calling getTaskmanagementWorkbinVersions';}return this.apiClient.callApi('/api/v2/taskmanagement/workbins/{workbinId}/versions','GET',{'workbinId':workbinId},{'after':opts['after'],'pageSize':opts['pageSize'],'sortOrder':opts['sortOrder']},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
22450
22698
  * Get a workitem
@@ -22461,7 +22709,6 @@ if(workitemId===undefined||workitemId===null){throw'Missing the required paramet
22461
22709
  * @param {String} opts.after The cursor that points to the end of the set of entities that has been returned.
22462
22710
  * @param {Number} opts.pageSize Limit the number of entities to return. It is not guaranteed that the requested number of entities will be filled in a single request. If an `after` key is returned as part of the response it is possible that more entities that match the filter criteria exist. Maximum of 200. (default to 25)
22463
22711
  * @param {Object} opts.sortOrder Ascending or descending sort order (default to descending)
22464
- * getTaskmanagementWorkitemHistory is a preview method and is subject to both breaking and non-breaking changes at any time without notice
22465
22712
  */},{key:"getTaskmanagementWorkitemHistory",value:function getTaskmanagementWorkitemHistory(workitemId,opts){opts=opts||{};// verify the required parameter 'workitemId' is set
22466
22713
  if(workitemId===undefined||workitemId===null){throw'Missing the required parameter "workitemId" when calling getTaskmanagementWorkitemHistory';}return this.apiClient.callApi('/api/v2/taskmanagement/workitems/{workitemId}/history','GET',{'workitemId':workitemId},{'after':opts['after'],'pageSize':opts['pageSize'],'sortOrder':opts['sortOrder']},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
22467
22714
  * Get all wrapup codes added for the given user for a workitem.
@@ -22480,7 +22727,6 @@ if(userId===undefined||userId===null){throw'Missing the required parameter "user
22480
22727
  *
22481
22728
  * @param {String} workitemId Workitem ID
22482
22729
  * @param {Number} entityVersion Workitem version
22483
- * getTaskmanagementWorkitemVersion is a preview method and is subject to both breaking and non-breaking changes at any time without notice
22484
22730
  */},{key:"getTaskmanagementWorkitemVersion",value:function getTaskmanagementWorkitemVersion(workitemId,entityVersion){// verify the required parameter 'workitemId' is set
22485
22731
  if(workitemId===undefined||workitemId===null){throw'Missing the required parameter "workitemId" when calling getTaskmanagementWorkitemVersion';}// verify the required parameter 'entityVersion' is set
22486
22732
  if(entityVersion===undefined||entityVersion===null){throw'Missing the required parameter "entityVersion" when calling getTaskmanagementWorkitemVersion';}return this.apiClient.callApi('/api/v2/taskmanagement/workitems/{workitemId}/versions/{entityVersion}','GET',{'workitemId':workitemId,'entityVersion':entityVersion},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
@@ -22491,7 +22737,6 @@ if(entityVersion===undefined||entityVersion===null){throw'Missing the required p
22491
22737
  * @param {String} opts.after The cursor that points to the end of the set of entities that has been returned.
22492
22738
  * @param {Number} opts.pageSize Limit the number of entities to return. It is not guaranteed that the requested number of entities will be filled in a single request. If an `after` key is returned as part of the response it is possible that more entities that match the filter criteria exist. Maximum of 200. (default to 25)
22493
22739
  * @param {Object} opts.sortOrder Ascending or descending sort order (default to descending)
22494
- * getTaskmanagementWorkitemVersions is a preview method and is subject to both breaking and non-breaking changes at any time without notice
22495
22740
  */},{key:"getTaskmanagementWorkitemVersions",value:function getTaskmanagementWorkitemVersions(workitemId,opts){opts=opts||{};// verify the required parameter 'workitemId' is set
22496
22741
  if(workitemId===undefined||workitemId===null){throw'Missing the required parameter "workitemId" when calling getTaskmanagementWorkitemVersions';}return this.apiClient.callApi('/api/v2/taskmanagement/workitems/{workitemId}/versions','GET',{'workitemId':workitemId},{'after':opts['after'],'pageSize':opts['pageSize'],'sortOrder':opts['sortOrder']},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
22497
22742
  * Get all wrapup codes added for all users for a workitem.
@@ -22562,6 +22807,17 @@ if(schemaId===undefined||schemaId===null){throw'Missing the required parameter "
22562
22807
  * Get a list of schemas.
22563
22808
  *
22564
22809
  */},{key:"getTaskmanagementWorkitemsSchemas",value:function getTaskmanagementWorkitemsSchemas(){return this.apiClient.callApi('/api/v2/taskmanagement/workitems/schemas','GET',{},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
22810
+ * Get the core types from which all schemas are built.
22811
+ *
22812
+ * @param {String} coreTypeName Name of the core type
22813
+ */},{key:"getTaskmanagementWorkitemsSchemasCoretype",value:function getTaskmanagementWorkitemsSchemasCoretype(coreTypeName){// verify the required parameter 'coreTypeName' is set
22814
+ if(coreTypeName===undefined||coreTypeName===null){throw'Missing the required parameter "coreTypeName" when calling getTaskmanagementWorkitemsSchemasCoretype';}return this.apiClient.callApi('/api/v2/taskmanagement/workitems/schemas/coretypes/{coreTypeName}','GET',{'coreTypeName':coreTypeName},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
22815
+ * Get the core types from which all schemas are built.
22816
+ *
22817
+ */},{key:"getTaskmanagementWorkitemsSchemasCoretypes",value:function getTaskmanagementWorkitemsSchemasCoretypes(){return this.apiClient.callApi('/api/v2/taskmanagement/workitems/schemas/coretypes','GET',{},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
22818
+ * Get quantitative limits on schemas
22819
+ *
22820
+ */},{key:"getTaskmanagementWorkitemsSchemasLimits",value:function getTaskmanagementWorkitemsSchemasLimits(){return this.apiClient.callApi('/api/v2/taskmanagement/workitems/schemas/limits','GET',{},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
22565
22821
  * Get a worktype
22566
22822
  *
22567
22823
  * @param {String} worktypeId Worktype id
@@ -22622,7 +22878,6 @@ if(worktypeId===undefined||worktypeId===null){throw'Missing the required paramet
22622
22878
  * @param {Number} opts.pageSize Limit the number of entities to return. It is not guaranteed that the requested number of entities will be filled in a single request. If an `after` key is returned as part of the response it is possible that more entities that match the filter criteria exist. Maximum of 200. (default to 25)
22623
22879
  * @param {Object} opts.sortOrder Ascending or descending sort order (default to descending)
22624
22880
  * @param {Array.<String>} opts.fields Comma-separated list of fields. The response will contain only versions created as a result of changes to these fields.
22625
- * getTaskmanagementWorktypeHistory is a preview method and is subject to both breaking and non-breaking changes at any time without notice
22626
22881
  */},{key:"getTaskmanagementWorktypeHistory",value:function getTaskmanagementWorktypeHistory(worktypeId,opts){opts=opts||{};// verify the required parameter 'worktypeId' is set
22627
22882
  if(worktypeId===undefined||worktypeId===null){throw'Missing the required parameter "worktypeId" when calling getTaskmanagementWorktypeHistory';}return this.apiClient.callApi('/api/v2/taskmanagement/worktypes/{worktypeId}/history','GET',{'worktypeId':worktypeId},{'after':opts['after'],'pageSize':opts['pageSize'],'sortOrder':opts['sortOrder'],'fields':this.apiClient.buildCollectionParam(opts['fields'],'multi')},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
22628
22883
  * Get a status
@@ -22641,7 +22896,6 @@ if(worktypeId===undefined||worktypeId===null){throw'Missing the required paramet
22641
22896
  *
22642
22897
  * @param {String} worktypeId Worktype id
22643
22898
  * @param {Number} entityVersion Worktype version
22644
- * getTaskmanagementWorktypeVersion is a preview method and is subject to both breaking and non-breaking changes at any time without notice
22645
22899
  */},{key:"getTaskmanagementWorktypeVersion",value:function getTaskmanagementWorktypeVersion(worktypeId,entityVersion){// verify the required parameter 'worktypeId' is set
22646
22900
  if(worktypeId===undefined||worktypeId===null){throw'Missing the required parameter "worktypeId" when calling getTaskmanagementWorktypeVersion';}// verify the required parameter 'entityVersion' is set
22647
22901
  if(entityVersion===undefined||entityVersion===null){throw'Missing the required parameter "entityVersion" when calling getTaskmanagementWorktypeVersion';}return this.apiClient.callApi('/api/v2/taskmanagement/worktypes/{worktypeId}/versions/{entityVersion}','GET',{'worktypeId':worktypeId,'entityVersion':entityVersion},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
@@ -22652,7 +22906,6 @@ if(entityVersion===undefined||entityVersion===null){throw'Missing the required p
22652
22906
  * @param {String} opts.after The cursor that points to the end of the set of entities that has been returned.
22653
22907
  * @param {Number} opts.pageSize Limit the number of entities to return. It is not guaranteed that the requested number of entities will be filled in a single request. If an `after` key is returned as part of the response it is possible that more entities that match the filter criteria exist. Maximum of 200. (default to 25)
22654
22908
  * @param {Object} opts.sortOrder Ascending or descending sort order (default to descending)
22655
- * getTaskmanagementWorktypeVersions is a preview method and is subject to both breaking and non-breaking changes at any time without notice
22656
22909
  */},{key:"getTaskmanagementWorktypeVersions",value:function getTaskmanagementWorktypeVersions(worktypeId,opts){opts=opts||{};// verify the required parameter 'worktypeId' is set
22657
22910
  if(worktypeId===undefined||worktypeId===null){throw'Missing the required parameter "worktypeId" when calling getTaskmanagementWorktypeVersions';}return this.apiClient.callApi('/api/v2/taskmanagement/worktypes/{worktypeId}/versions','GET',{'worktypeId':worktypeId},{'after':opts['after'],'pageSize':opts['pageSize'],'sortOrder':opts['sortOrder']},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
22658
22911
  * Update the attributes of a workbin
@@ -22854,7 +23107,7 @@ if(schemaId===undefined||schemaId===null){throw'Missing the required parameter "
22854
23107
  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(){/**
22855
23108
  * Teams service.
22856
23109
  * @module purecloud-platform-client-v2/api/TeamsApi
22857
- * @version 218.1.0
23110
+ * @version 220.0.0
22858
23111
  *//**
22859
23112
  * Constructs a new TeamsApi.
22860
23113
  * @alias module:purecloud-platform-client-v2/api/TeamsApi
@@ -22934,7 +23187,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
22934
23187
  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(){/**
22935
23188
  * Telephony service.
22936
23189
  * @module purecloud-platform-client-v2/api/TelephonyApi
22937
- * @version 218.1.0
23190
+ * @version 220.0.0
22938
23191
  *//**
22939
23192
  * Constructs a new TelephonyApi.
22940
23193
  * @alias module:purecloud-platform-client-v2/api/TelephonyApi
@@ -22981,7 +23234,7 @@ if(downloadId===undefined||downloadId===null){throw'Missing the required paramet
22981
23234
  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(){/**
22982
23235
  * TelephonyProvidersEdge service.
22983
23236
  * @module purecloud-platform-client-v2/api/TelephonyProvidersEdgeApi
22984
- * @version 218.1.0
23237
+ * @version 220.0.0
22985
23238
  *//**
22986
23239
  * Constructs a new TelephonyProvidersEdgeApi.
22987
23240
  * @alias module:purecloud-platform-client-v2/api/TelephonyProvidersEdgeApi
@@ -23817,7 +24070,7 @@ if(trunkBaseSettingsId===undefined||trunkBaseSettingsId===null){throw'Missing th
23817
24070
  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(){/**
23818
24071
  * Textbots service.
23819
24072
  * @module purecloud-platform-client-v2/api/TextbotsApi
23820
- * @version 218.1.0
24073
+ * @version 220.0.0
23821
24074
  *//**
23822
24075
  * Constructs a new TextbotsApi.
23823
24076
  * @alias module:purecloud-platform-client-v2/api/TextbotsApi
@@ -23830,8 +24083,8 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
23830
24083
  * @param {Object} opts Optional parameters
23831
24084
  * @param {Array.<String>} opts.botType Bot types
23832
24085
  * @param {String} opts.botName Bot name
23833
- * @param {Array.<String>} opts.botId Bot IDs
23834
- * @param {Number} opts.pageSize The maximum results to return (default to 25)
24086
+ * @param {Array.<String>} opts.botId Bot IDs. Maximum of 50
24087
+ * @param {Number} opts.pageSize The maximum results to return. Maximum of 100 (default to 25)
23835
24088
  */return _createClass(TextbotsApi,[{key:"getTextbotsBotsSearch",value:function getTextbotsBotsSearch(opts){opts=opts||{};return this.apiClient.callApi('/api/v2/textbots/bots/search','GET',{},{'botType':this.apiClient.buildCollectionParam(opts['botType'],'multi'),'botName':opts['botName'],'botId':this.apiClient.buildCollectionParam(opts['botId'],'multi'),'pageSize':opts['pageSize']},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
23836
24089
  * Issue a bot flow turn event
23837
24090
  * Send a turn event to an executing bot flow and produce the next action to take.
@@ -23852,7 +24105,7 @@ if(launchRequest===undefined||launchRequest===null){throw'Missing the required p
23852
24105
  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(){/**
23853
24106
  * Tokens service.
23854
24107
  * @module purecloud-platform-client-v2/api/TokensApi
23855
- * @version 218.1.0
24108
+ * @version 220.0.0
23856
24109
  *//**
23857
24110
  * Constructs a new TokensApi.
23858
24111
  * @alias module:purecloud-platform-client-v2/api/TokensApi
@@ -23886,7 +24139,7 @@ if(userId===undefined||userId===null){throw'Missing the required parameter "user
23886
24139
  */},{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(){/**
23887
24140
  * Uploads service.
23888
24141
  * @module purecloud-platform-client-v2/api/UploadsApi
23889
- * @version 218.1.0
24142
+ * @version 220.0.0
23890
24143
  *//**
23891
24144
  * Constructs a new UploadsApi.
23892
24145
  * @alias module:purecloud-platform-client-v2/api/UploadsApi
@@ -23901,6 +24154,11 @@ if(userId===undefined||userId===null){throw'Missing the required parameter "user
23901
24154
  */return _createClass(UploadsApi,[{key:"getKnowledgeKnowledgebaseUploadsUrlsJob",value:function getKnowledgeKnowledgebaseUploadsUrlsJob(knowledgeBaseId,jobId){// verify the required parameter 'knowledgeBaseId' is set
23902
24155
  if(knowledgeBaseId===undefined||knowledgeBaseId===null){throw'Missing the required parameter "knowledgeBaseId" when calling getKnowledgeKnowledgebaseUploadsUrlsJob';}// verify the required parameter 'jobId' is set
23903
24156
  if(jobId===undefined||jobId===null){throw'Missing the required parameter "jobId" when calling getKnowledgeKnowledgebaseUploadsUrlsJob';}return this.apiClient.callApi('/api/v2/knowledge/knowledgebases/{knowledgeBaseId}/uploads/urls/jobs/{jobId}','GET',{'knowledgeBaseId':knowledgeBaseId,'jobId':jobId},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
24157
+ * Generates pre-signed URL to upload a prize image for gamification contests
24158
+ *
24159
+ * @param {Object} body query
24160
+ */},{key:"postGamificationContestsUploadsPrizeimages",value:function postGamificationContestsUploadsPrizeimages(body){// verify the required parameter 'body' is set
24161
+ if(body===undefined||body===null){throw'Missing the required parameter "body" when calling postGamificationContestsUploadsPrizeimages';}return this.apiClient.callApi('/api/v2/gamification/contests/uploads/prizeimages','POST',{},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}/**
23904
24162
  * Create upload presigned URL for draft function package file.
23905
24163
  *
23906
24164
  * @param {String} actionId actionId
@@ -23949,7 +24207,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
23949
24207
  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(){/**
23950
24208
  * Usage service.
23951
24209
  * @module purecloud-platform-client-v2/api/UsageApi
23952
- * @version 218.1.0
24210
+ * @version 220.0.0
23953
24211
  *//**
23954
24212
  * Constructs a new UsageApi.
23955
24213
  * @alias module:purecloud-platform-client-v2/api/UsageApi
@@ -24003,7 +24261,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
24003
24261
  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(){/**
24004
24262
  * UserRecordings service.
24005
24263
  * @module purecloud-platform-client-v2/api/UserRecordingsApi
24006
- * @version 218.1.0
24264
+ * @version 220.0.0
24007
24265
  *//**
24008
24266
  * Constructs a new UserRecordingsApi.
24009
24267
  * @alias module:purecloud-platform-client-v2/api/UserRecordingsApi
@@ -24060,7 +24318,7 @@ if(recordingId===undefined||recordingId===null){throw'Missing the required param
24060
24318
  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(){/**
24061
24319
  * Users service.
24062
24320
  * @module purecloud-platform-client-v2/api/UsersApi
24063
- * @version 218.1.0
24321
+ * @version 220.0.0
24064
24322
  *//**
24065
24323
  * Constructs a new UsersApi.
24066
24324
  * @alias module:purecloud-platform-client-v2/api/UsersApi
@@ -24787,7 +25045,7 @@ if(verifierId===undefined||verifierId===null){throw'Missing the required paramet
24787
25045
  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(){/**
24788
25046
  * Utilities service.
24789
25047
  * @module purecloud-platform-client-v2/api/UtilitiesApi
24790
- * @version 218.1.0
25048
+ * @version 220.0.0
24791
25049
  *//**
24792
25050
  * Constructs a new UtilitiesApi.
24793
25051
  * @alias module:purecloud-platform-client-v2/api/UtilitiesApi
@@ -24814,7 +25072,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
24814
25072
  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(){/**
24815
25073
  * Voicemail service.
24816
25074
  * @module purecloud-platform-client-v2/api/VoicemailApi
24817
- * @version 218.1.0
25075
+ * @version 220.0.0
24818
25076
  *//**
24819
25077
  * Constructs a new VoicemailApi.
24820
25078
  * @alias module:purecloud-platform-client-v2/api/VoicemailApi
@@ -24976,7 +25234,7 @@ if(userId===undefined||userId===null){throw'Missing the required parameter "user
24976
25234
  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(){/**
24977
25235
  * WebChat service.
24978
25236
  * @module purecloud-platform-client-v2/api/WebChatApi
24979
- * @version 218.1.0
25237
+ * @version 220.0.0
24980
25238
  *//**
24981
25239
  * Constructs a new WebChatApi.
24982
25240
  * @alias module:purecloud-platform-client-v2/api/WebChatApi
@@ -25120,7 +25378,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
25120
25378
  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(){/**
25121
25379
  * WebDeployments service.
25122
25380
  * @module purecloud-platform-client-v2/api/WebDeploymentsApi
25123
- * @version 218.1.0
25381
+ * @version 220.0.0
25124
25382
  *//**
25125
25383
  * Constructs a new WebDeploymentsApi.
25126
25384
  * @alias module:purecloud-platform-client-v2/api/WebDeploymentsApi
@@ -25255,7 +25513,7 @@ if(deploymentId===undefined||deploymentId===null){throw'Missing the required par
25255
25513
  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(){/**
25256
25514
  * WebMessaging service.
25257
25515
  * @module purecloud-platform-client-v2/api/WebMessagingApi
25258
- * @version 218.1.0
25516
+ * @version 220.0.0
25259
25517
  *//**
25260
25518
  * Constructs a new WebMessagingApi.
25261
25519
  * @alias module:purecloud-platform-client-v2/api/WebMessagingApi
@@ -25271,7 +25529,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
25271
25529
  */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(){/**
25272
25530
  * Widgets service.
25273
25531
  * @module purecloud-platform-client-v2/api/WidgetsApi
25274
- * @version 218.1.0
25532
+ * @version 220.0.0
25275
25533
  *//**
25276
25534
  * Constructs a new WidgetsApi.
25277
25535
  * @alias module:purecloud-platform-client-v2/api/WidgetsApi
@@ -25311,7 +25569,7 @@ if(deploymentId===undefined||deploymentId===null){throw'Missing the required par
25311
25569
  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(){/**
25312
25570
  * WorkforceManagement service.
25313
25571
  * @module purecloud-platform-client-v2/api/WorkforceManagementApi
25314
- * @version 218.1.0
25572
+ * @version 220.0.0
25315
25573
  *//**
25316
25574
  * Constructs a new WorkforceManagementApi.
25317
25575
  * @alias module:purecloud-platform-client-v2/api/WorkforceManagementApi
@@ -25923,8 +26181,9 @@ if(jobId===undefined||jobId===null){throw'Missing the required parameter "jobId"
25923
26181
  * Retrieves all delete job status for historical data
25924
26182
  *
25925
26183
  */},{key:"getWorkforcemanagementHistoricaldataBulkRemoveJobs",value:function getWorkforcemanagementHistoricaldataBulkRemoveJobs(){return this.apiClient.callApi('/api/v2/workforcemanagement/historicaldata/bulk/remove/jobs','GET',{},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
25926
- * Retrieves delete job status for historical data imports of the organization
25927
- *
26184
+ * Retrieves delete job status for historical data imports of the organization.
26185
+ * Deprecated: Please use GET /workforcemanagement/historicaldata/bulk/remove/jobs instead.
26186
+ * @deprecated
25928
26187
  */},{key:"getWorkforcemanagementHistoricaldataDeletejob",value:function getWorkforcemanagementHistoricaldataDeletejob(){return this.apiClient.callApi('/api/v2/workforcemanagement/historicaldata/deletejob','GET',{},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
25929
26188
  * Retrieves status of the historical data imports of the organization
25930
26189
  *
@@ -26801,8 +27060,9 @@ if(businessUnitId===undefined||businessUnitId===null){throw'Missing the required
26801
27060
  * @param {Object} opts Optional parameters
26802
27061
  * @param {Object} opts.body body
26803
27062
  */},{key:"postWorkforcemanagementHistoricaldataBulkRemoveJobs",value:function postWorkforcemanagementHistoricaldataBulkRemoveJobs(opts){opts=opts||{};return this.apiClient.callApi('/api/v2/workforcemanagement/historicaldata/bulk/remove/jobs','POST',{},{},{},{},opts['body'],['PureCloud OAuth'],['application/json'],['application/json']);}/**
26804
- * Delete the entries of the historical data imports in the organization
26805
- *
27063
+ * Delete the entries of the historical data imports in the organization.
27064
+ * Deprecated: Please use POST /workforcemanagement/historicaldata/bulk/remove/jobs instead.
27065
+ * @deprecated
26806
27066
  */},{key:"postWorkforcemanagementHistoricaldataDeletejob",value:function postWorkforcemanagementHistoricaldataDeletejob(){return this.apiClient.callApi('/api/v2/workforcemanagement/historicaldata/deletejob','POST',{},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
26807
27067
  * Trigger validation process for historical import
26808
27068
  *
@@ -27130,7 +27390,7 @@ if(timeOffLimitId===undefined||timeOffLimitId===null){throw'Missing the required
27130
27390
  * </pre>
27131
27391
  * </p>
27132
27392
  * @module purecloud-platform-client-v2/index
27133
- * @version 218.1.0
27393
+ * @version 220.0.0
27134
27394
  */var platformClient=/*#__PURE__*/_createClass(function platformClient(){_classCallCheck(this,platformClient);/**
27135
27395
  * The ApiClient constructor.
27136
27396
  * @property {module:purecloud-platform-client-v2/ApiClient}