purecloud-platform-client-v2 229.2.0 → 231.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +3 -3
- package/dist/node/purecloud-platform-client-v2.js +1267 -152
- package/dist/web-amd/purecloud-platform-client-v2.js +1267 -152
- package/dist/web-amd/purecloud-platform-client-v2.min.js +1 -1
- package/dist/web-cjs/bundle.js +442 -147
- package/dist/web-cjs/purecloud-platform-client-v2.js +442 -147
- package/dist/web-cjs/purecloud-platform-client-v2.min.js +1 -1
- package/index.d.ts +1382 -550
- package/package.json +1 -1
- package/src/purecloud-platform-client-v2/ApiClient.js +1 -1
- package/src/purecloud-platform-client-v2/PureCloudRegionHosts.js +2 -0
- package/src/purecloud-platform-client-v2/api/AIStudioApi.js +160 -1
- package/src/purecloud-platform-client-v2/api/AgentAssistantsApi.js +110 -1
- package/src/purecloud-platform-client-v2/api/AgentCopilotApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/AgentUIApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/AlertingApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/AnalyticsApi.js +83 -1
- package/src/purecloud-platform-client-v2/api/ArchitectApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/AuditApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/AuthorizationApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/BillingApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/BusinessRulesApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/CarrierServicesApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/ChatApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/CoachingApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/ContentManagementApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/ConversationsApi.js +152 -2
- package/src/purecloud-platform-client-v2/api/DataExtensionsApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/DataPrivacyApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/DownloadsApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/EmailsApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/EmployeeEngagementApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/EventsApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/ExternalContactsApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/FaxApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/FlowsApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/GamificationApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/GeneralDataProtectionRegulationApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/GeolocationApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/GreetingsApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/GroupsApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/IdentityProviderApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/InfrastructureAsCodeApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/IntegrationsApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/JourneyApi.js +28 -1
- package/src/purecloud-platform-client-v2/api/KnowledgeApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/LanguageUnderstandingApi.js +187 -1
- package/src/purecloud-platform-client-v2/api/LanguagesApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/LearningApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/LicenseApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/LocationsApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/LogCaptureApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/MessagingApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/MobileDevicesApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/NotificationsApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/OAuthApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/ObjectsApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/OperationalEventsApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/OrganizationApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/OrganizationAuthorizationApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/OutboundApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/PresenceApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/ProcessAutomationApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/QualityApi.js +107 -1
- package/src/purecloud-platform-client-v2/api/RecordingApi.js +4 -4
- package/src/purecloud-platform-client-v2/api/ResponseManagementApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/RoutingApi.js +19 -34
- package/src/purecloud-platform-client-v2/api/SCIMApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/ScreenRecordingApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/ScriptsApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/SearchApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/SettingsApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/SocialMediaApi.js +241 -1
- package/src/purecloud-platform-client-v2/api/SpeechTextAnalyticsApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/StationsApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/SuggestApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/TaskManagementApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/TeamsApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/TelephonyApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/TelephonyProvidersEdgeApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/TextbotsApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/TokensApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/UploadsApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/UsageApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/UserRecordingsApi.js +1 -32
- package/src/purecloud-platform-client-v2/api/UsersApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/UtilitiesApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/VoicemailApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/WebChatApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/WebDeploymentsApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/WebMessagingApi.js +101 -1
- package/src/purecloud-platform-client-v2/api/WidgetsApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/WorkforceManagementApi.js +1 -1
- 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 _regeneratorValues(e){if(null!=e){var t=e["function"==typeof Symbol&&Symbol.iterator||"@@iterator"],r=0;if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length))return{next:function next(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e};}};}throw new TypeError(_typeof(e)+" is not iterable");}function _regenerator(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */var e,t,r="function"==typeof Symbol?Symbol:{},n=r.iterator||"@@iterator",o=r.toStringTag||"@@toStringTag";function i(r,n,o,i){var c=n&&n.prototype instanceof Generator?n:Generator,u=Object.create(c.prototype);return _regeneratorDefine2(u,"_invoke",function(r,n,o){var i,c,u,f=0,p=o||[],y=!1,G={p:0,n:0,v:e,a:d,f:d.bind(e,4),d:function d(t,r){return i=t,c=0,u=e,G.n=r,a;}};function d(r,n){for(c=r,u=n,t=0;!y&&f&&!o&&t<p.length;t++){var o,i=p[t],d=G.p,l=i[2];r>3?(o=l===n)&&(u=i[(c=i[4])?5:(c=3,3)],i[4]=i[5]=e):i[0]<=d&&((o=r<2&&d<i[1])?(c=0,G.v=n,G.n=i[1]):d<l&&(o=r<3||i[0]>n||n>l)&&(i[4]=r,i[5]=n,G.n=l,c=0));}if(o||r>1)return a;throw y=!0,n;}return function(o,p,l){if(f>1)throw TypeError("Generator is already running");for(y&&1===p&&d(p,l),c=p,u=l;(t=c<2?e:u)||!y;){i||(c?c<3?(c>1&&(G.n=-1),d(c,u)):G.n=u:G.v=u);try{if(f=2,i){if(c||(o="next"),t=i[o]){if(!(t=t.call(i,u)))throw TypeError("iterator result is not an object");if(!t.done)return t;u=t.value,c<2&&(c=0);}else 1===c&&(t=i["return"])&&t.call(i),c<2&&(u=TypeError("The iterator does not provide a '"+o+"' method"),c=1);i=e;}else if((t=(y=G.n<0)?u:r.call(n,G))!==a)break;}catch(t){i=e,c=1,u=t;}finally{f=1;}}return{value:t,done:y};};}(r,o,i),!0),u;}var a={};function Generator(){}function GeneratorFunction(){}function GeneratorFunctionPrototype(){}t=Object.getPrototypeOf;var c=[][n]?t(t([][n]())):(_regeneratorDefine2(t={},n,function(){return this;}),t),u=GeneratorFunctionPrototype.prototype=Generator.prototype=Object.create(c);function f(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,GeneratorFunctionPrototype):(e.__proto__=GeneratorFunctionPrototype,_regeneratorDefine2(e,o,"GeneratorFunction")),e.prototype=Object.create(u),e;}return GeneratorFunction.prototype=GeneratorFunctionPrototype,_regeneratorDefine2(u,"constructor",GeneratorFunctionPrototype),_regeneratorDefine2(GeneratorFunctionPrototype,"constructor",GeneratorFunction),GeneratorFunction.displayName="GeneratorFunction",_regeneratorDefine2(GeneratorFunctionPrototype,o,"GeneratorFunction"),_regeneratorDefine2(u),_regeneratorDefine2(u,o,"Generator"),_regeneratorDefine2(u,n,function(){return this;}),_regeneratorDefine2(u,"toString",function(){return"[object Generator]";}),(_regenerator=function _regenerator(){return{w:i,m:f};})();}function _regeneratorDefine2(e,r,n,t){var i=Object.defineProperty;try{i({},"",{});}catch(e){i=0;}_regeneratorDefine2=function _regeneratorDefine(e,r,n,t){function o(r,n){_regeneratorDefine2(e,r,function(e){return this._invoke(r,n,e);});}r?i?i(e,r,{value:n,enumerable:!t,configurable:!t,writable:!t}):e[r]=n:(o("next",0),o("throw",1),o("return",2));},_regeneratorDefine2(e,r,n,t);}function _toArray(r){return _arrayWithHoles(r)||_iterableToArray(r)||_unsupportedIterableToArray(r)||_nonIterableRest();}function _toConsumableArray(r){return _arrayWithoutHoles(r)||_iterableToArray(r)||_unsupportedIterableToArray(r)||_nonIterableSpread();}function _nonIterableSpread(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");}function _iterableToArray(r){if("undefined"!=typeof Symbol&&null!=r[Symbol.iterator]||null!=r["@@iterator"])return Array.from(r);}function _arrayWithoutHoles(r){if(Array.isArray(r))return _arrayLikeToArray(r);}function _createForOfIteratorHelper(r,e){var t="undefined"!=typeof Symbol&&r[Symbol.iterator]||r["@@iterator"];if(!t){if(Array.isArray(r)||(t=_unsupportedIterableToArray(r))||e&&r&&"number"==typeof r.length){t&&(r=t);var _n=0,F=function F(){};return{s:F,n:function n(){return _n>=r.length?{done:!0}:{done:!1,value:r[_n++]};},e:function e(r){throw r;},f:F};}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");}var o,a=!0,u=!1;return{s:function s(){t=t.call(r);},n:function n(){var r=t.next();return a=r.done,r;},e:function e(r){u=!0,o=r;},f:function f(){try{a||null==t["return"]||t["return"]();}finally{if(u)throw o;}}};}function ownKeys(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);r&&(o=o.filter(function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable;})),t.push.apply(t,o);}return t;}function _objectSpread(e){for(var r=1;r<arguments.length;r++){var t=null!=arguments[r]?arguments[r]:{};r%2?ownKeys(Object(t),!0).forEach(function(r){_defineProperty(e,r,t[r]);}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):ownKeys(Object(t)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r));});}return e;}function _defineProperty(e,r,t){return(r=_toPropertyKey(r))in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e;}function _classCallCheck(a,n){if(!(a instanceof n))throw new TypeError("Cannot call a class as a function");}function _defineProperties(e,r){for(var t=0;t<r.length;t++){var o=r[t];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,_toPropertyKey(o.key),o);}}function _createClass(e,r,t){return r&&_defineProperties(e.prototype,r),t&&_defineProperties(e,t),Object.defineProperty(e,"prototype",{writable:!1}),e;}function _toPropertyKey(t){var i=_toPrimitive(t,"string");return"symbol"==_typeof(i)?i:i+"";}function _toPrimitive(t,r){if("object"!=_typeof(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var i=e.call(t,r||"default");if("object"!=_typeof(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.");}return("string"===r?String:Number)(t);}function _slicedToArray(r,e){return _arrayWithHoles(r)||_iterableToArrayLimit(r,e)||_unsupportedIterableToArray(r,e)||_nonIterableRest();}function _nonIterableRest(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");}function _unsupportedIterableToArray(r,a){if(r){if("string"==typeof r)return _arrayLikeToArray(r,a);var t={}.toString.call(r).slice(8,-1);return"Object"===t&&r.constructor&&(t=r.constructor.name),"Map"===t||"Set"===t?Array.from(r):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?_arrayLikeToArray(r,a):void 0;}}function _arrayLikeToArray(r,a){(null==a||a>r.length)&&(a=r.length);for(var e=0,n=Array(a);e<a;e++)n[e]=r[e];return n;}function _iterableToArrayLimit(r,l){var t=null==r?null:"undefined"!=typeof Symbol&&r[Symbol.iterator]||r["@@iterator"];if(null!=t){var e,n,i,u,a=[],f=!0,o=!1;try{if(i=(t=t.call(r)).next,0===l){if(Object(t)!==t)return;f=!1;}else for(;!(f=(e=i.call(t)).done)&&(a.push(e.value),a.length!==l);f=!0);}catch(r){o=!0,n=r;}finally{try{if(!f&&null!=t["return"]&&(u=t["return"](),Object(u)!==u))return;}finally{if(o)throw n;}}return a;}}function _arrayWithHoles(r){if(Array.isArray(r))return r;}function _typeof(o){"@babel/helpers - typeof";return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(o){return typeof o;}:function(o){return o&&"function"==typeof Symbol&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o;},_typeof(o);}function _wrapAsyncGenerator(e){return function(){return new AsyncGenerator(e.apply(this,arguments));};}function AsyncGenerator(e){var r,t;function resume(r,t){try{var n=e[r](t),o=n.value,u=o instanceof _OverloadYield;Promise.resolve(u?o.v:o).then(function(t){if(u){var i="return"===r?"return":"next";if(!o.k||t.done)return resume(i,t);t=e[i](t).value;}settle(n.done?"return":"normal",t);},function(e){resume("throw",e);});}catch(e){settle("throw",e);}}function settle(e,n){switch(e){case"return":r.resolve({value:n,done:!0});break;case"throw":r.reject(n);break;default:r.resolve({value:n,done:!1});}(r=r.next)?resume(r.key,r.arg):t=null;}this._invoke=function(e,n){return new Promise(function(o,u){var i={key:e,arg:n,resolve:o,reject:u,next:null};t?t=t.next=i:(r=t=i,resume(e,n));});},"function"!=typeof e["return"]&&(this["return"]=void 0);}AsyncGenerator.prototype["function"==typeof Symbol&&Symbol.asyncIterator||"@@asyncIterator"]=function(){return this;},AsyncGenerator.prototype.next=function(e){return this._invoke("next",e);},AsyncGenerator.prototype["throw"]=function(e){return this._invoke("throw",e);},AsyncGenerator.prototype["return"]=function(e){return this._invoke("return",e);};function _awaitAsyncGenerator(e){return new _OverloadYield(e,0);}function _asyncGeneratorDelegate(t){var e={},n=!1;function pump(e,r){return n=!0,r=new Promise(function(n){n(t[e](r));}),{done:!1,value:new _OverloadYield(r,1)};}return e["undefined"!=typeof Symbol&&Symbol.iterator||"@@iterator"]=function(){return this;},e.next=function(t){return n?(n=!1,t):pump("next",t);},"function"==typeof t["throw"]&&(e["throw"]=function(t){if(n)throw n=!1,t;return pump("throw",t);}),"function"==typeof t["return"]&&(e["return"]=function(t){return n?(n=!1,t):pump("return",t);}),e;}function _OverloadYield(e,d){this.v=e,this.k=d;}function _asyncIterator(r){var n,t,o,e=2;for("undefined"!=typeof Symbol&&(t=Symbol.asyncIterator,o=Symbol.iterator);e--;){if(t&&null!=(n=r[t]))return n.call(r);if(o&&null!=(n=r[o]))return new AsyncFromSyncIterator(n.call(r));t="@@asyncIterator",o="@@iterator";}throw new TypeError("Object is not async iterable");}function AsyncFromSyncIterator(r){function AsyncFromSyncIteratorContinuation(r){if(Object(r)!==r)return Promise.reject(new TypeError(r+" is not an object."));var n=r.done;return Promise.resolve(r.value).then(function(r){return{value:r,done:n};});}return AsyncFromSyncIterator=function AsyncFromSyncIterator(r){this.s=r,this.n=r.next;},AsyncFromSyncIterator.prototype={s:null,n:null,next:function next(){return AsyncFromSyncIteratorContinuation(this.n.apply(this.s,arguments));},"return":function _return(r){var n=this.s["return"];return void 0===n?Promise.resolve({value:r,done:!0}):AsyncFromSyncIteratorContinuation(n.apply(this.s,arguments));},"throw":function _throw(r){var n=this.s["return"];return void 0===n?Promise.reject(r):AsyncFromSyncIteratorContinuation(n.apply(this.s,arguments));}},new AsyncFromSyncIterator(r);}var qs=require('qs');function _interopDefaultLegacy(e){return e&&_typeof(e)==='object'&&'default'in e?e:{'default':e};}var qs__default=/*#__PURE__*/_interopDefaultLegacy(qs);var PureCloudRegionHosts={us_east_1:'mypurecloud.com',eu_west_1:'mypurecloud.ie',ap_southeast_2:'mypurecloud.com.au',ap_northeast_1:'mypurecloud.jp',eu_central_1:'mypurecloud.de',us_west_2:'usw2.pure.cloud',ca_central_1:'cac1.pure.cloud',ap_northeast_2:'apne2.pure.cloud',eu_west_2:'euw2.pure.cloud',ap_south_1:'aps1.pure.cloud',us_east_2:'use2.us-gov-pure.cloud',sa_east_1:'sae1.pure.cloud',me_central_1:'mec1.pure.cloud',ap_northeast_3:'apne3.pure.cloud',eu_central_2:'euc2.pure.cloud'};var global$1=typeof global!=="undefined"?global:typeof self!=="undefined"?self:typeof window!=="undefined"?window:{};// shim for using process in browser
|
|
5567
|
+
'use strict';function _callSuper(t,o,e){return o=_getPrototypeOf(o),_possibleConstructorReturn(t,_isNativeReflectConstruct()?Reflect.construct(o,e||[],_getPrototypeOf(t).constructor):o.apply(t,e));}function _possibleConstructorReturn(t,e){if(e&&("object"==_typeof(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return _assertThisInitialized(t);}function _assertThisInitialized(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e;}function _isNativeReflectConstruct(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}));}catch(t){}return(_isNativeReflectConstruct=function _isNativeReflectConstruct(){return!!t;})();}function _getPrototypeOf(t){return _getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t);},_getPrototypeOf(t);}function _inherits(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&_setPrototypeOf(t,e);}function _setPrototypeOf(t,e){return _setPrototypeOf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t;},_setPrototypeOf(t,e);}function asyncGeneratorStep(n,t,e,r,o,a,c){try{var i=n[a](c),u=i.value;}catch(n){return void e(n);}i.done?t(u):Promise.resolve(u).then(r,o);}function _asyncToGenerator(n){return function(){var t=this,e=arguments;return new Promise(function(r,o){var a=n.apply(t,e);function _next(n){asyncGeneratorStep(a,r,o,_next,_throw,"next",n);}function _throw(n){asyncGeneratorStep(a,r,o,_next,_throw,"throw",n);}_next(void 0);});};}function _regeneratorValues(e){if(null!=e){var t=e["function"==typeof Symbol&&Symbol.iterator||"@@iterator"],r=0;if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length))return{next:function next(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e};}};}throw new TypeError(_typeof(e)+" is not iterable");}function _regenerator(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */var e,t,r="function"==typeof Symbol?Symbol:{},n=r.iterator||"@@iterator",o=r.toStringTag||"@@toStringTag";function i(r,n,o,i){var c=n&&n.prototype instanceof Generator?n:Generator,u=Object.create(c.prototype);return _regeneratorDefine2(u,"_invoke",function(r,n,o){var i,c,u,f=0,p=o||[],y=!1,G={p:0,n:0,v:e,a:d,f:d.bind(e,4),d:function d(t,r){return i=t,c=0,u=e,G.n=r,a;}};function d(r,n){for(c=r,u=n,t=0;!y&&f&&!o&&t<p.length;t++){var o,i=p[t],d=G.p,l=i[2];r>3?(o=l===n)&&(u=i[(c=i[4])?5:(c=3,3)],i[4]=i[5]=e):i[0]<=d&&((o=r<2&&d<i[1])?(c=0,G.v=n,G.n=i[1]):d<l&&(o=r<3||i[0]>n||n>l)&&(i[4]=r,i[5]=n,G.n=l,c=0));}if(o||r>1)return a;throw y=!0,n;}return function(o,p,l){if(f>1)throw TypeError("Generator is already running");for(y&&1===p&&d(p,l),c=p,u=l;(t=c<2?e:u)||!y;){i||(c?c<3?(c>1&&(G.n=-1),d(c,u)):G.n=u:G.v=u);try{if(f=2,i){if(c||(o="next"),t=i[o]){if(!(t=t.call(i,u)))throw TypeError("iterator result is not an object");if(!t.done)return t;u=t.value,c<2&&(c=0);}else 1===c&&(t=i["return"])&&t.call(i),c<2&&(u=TypeError("The iterator does not provide a '"+o+"' method"),c=1);i=e;}else if((t=(y=G.n<0)?u:r.call(n,G))!==a)break;}catch(t){i=e,c=1,u=t;}finally{f=1;}}return{value:t,done:y};};}(r,o,i),!0),u;}var a={};function Generator(){}function GeneratorFunction(){}function GeneratorFunctionPrototype(){}t=Object.getPrototypeOf;var c=[][n]?t(t([][n]())):(_regeneratorDefine2(t={},n,function(){return this;}),t),u=GeneratorFunctionPrototype.prototype=Generator.prototype=Object.create(c);function f(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,GeneratorFunctionPrototype):(e.__proto__=GeneratorFunctionPrototype,_regeneratorDefine2(e,o,"GeneratorFunction")),e.prototype=Object.create(u),e;}return GeneratorFunction.prototype=GeneratorFunctionPrototype,_regeneratorDefine2(u,"constructor",GeneratorFunctionPrototype),_regeneratorDefine2(GeneratorFunctionPrototype,"constructor",GeneratorFunction),GeneratorFunction.displayName="GeneratorFunction",_regeneratorDefine2(GeneratorFunctionPrototype,o,"GeneratorFunction"),_regeneratorDefine2(u),_regeneratorDefine2(u,o,"Generator"),_regeneratorDefine2(u,n,function(){return this;}),_regeneratorDefine2(u,"toString",function(){return"[object Generator]";}),(_regenerator=function _regenerator(){return{w:i,m:f};})();}function _regeneratorDefine2(e,r,n,t){var i=Object.defineProperty;try{i({},"",{});}catch(e){i=0;}_regeneratorDefine2=function _regeneratorDefine(e,r,n,t){function o(r,n){_regeneratorDefine2(e,r,function(e){return this._invoke(r,n,e);});}r?i?i(e,r,{value:n,enumerable:!t,configurable:!t,writable:!t}):e[r]=n:(o("next",0),o("throw",1),o("return",2));},_regeneratorDefine2(e,r,n,t);}function _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',mx_central_1:'mxc1.pure.cloud',ap_southeast_1:'apse1.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
|
|
@@ -5601,7 +5601,7 @@ var toString$1=Object.prototype.toString;var getPrototypeOf=Object.getPrototypeO
|
|
|
5601
5601
|
* @param {*} val The value to test
|
|
5602
5602
|
*
|
|
5603
5603
|
* @returns {boolean} True if value is a Buffer, otherwise false
|
|
5604
|
-
*/function isBuffer$1(val){return val!==null&&!isUndefined(val)&&val.constructor!==null&&!isUndefined(val.constructor)&&isFunction(val.constructor.isBuffer)&&val.constructor.isBuffer(val);}/**
|
|
5604
|
+
*/function isBuffer$1(val){return val!==null&&!isUndefined(val)&&val.constructor!==null&&!isUndefined(val.constructor)&&isFunction$1(val.constructor.isBuffer)&&val.constructor.isBuffer(val);}/**
|
|
5605
5605
|
* Determine if a value is an ArrayBuffer
|
|
5606
5606
|
*
|
|
5607
5607
|
* @param {*} val The value to test
|
|
@@ -5624,7 +5624,7 @@ var toString$1=Object.prototype.toString;var getPrototypeOf=Object.getPrototypeO
|
|
|
5624
5624
|
*
|
|
5625
5625
|
* @param {*} val The value to test
|
|
5626
5626
|
* @returns {boolean} True if value is a Function, otherwise false
|
|
5627
|
-
*/var isFunction=typeOfTest('function');/**
|
|
5627
|
+
*/var isFunction$1=typeOfTest('function');/**
|
|
5628
5628
|
* Determine if a value is a Number
|
|
5629
5629
|
*
|
|
5630
5630
|
* @param {*} val The value to test
|
|
@@ -5685,14 +5685,14 @@ return false;}};/**
|
|
|
5685
5685
|
* @param {*} val The value to test
|
|
5686
5686
|
*
|
|
5687
5687
|
* @returns {boolean} True if value is a Stream, otherwise false
|
|
5688
|
-
*/var isStream=function isStream(val){return isObject(val)&&isFunction(val.pipe);};/**
|
|
5688
|
+
*/var isStream=function isStream(val){return isObject(val)&&isFunction$1(val.pipe);};/**
|
|
5689
5689
|
* Determine if a value is a FormData
|
|
5690
5690
|
*
|
|
5691
5691
|
* @param {*} thing The value to test
|
|
5692
5692
|
*
|
|
5693
5693
|
* @returns {boolean} True if value is an FormData, otherwise false
|
|
5694
|
-
*/var isFormData=function isFormData(thing){var kind;return thing&&(typeof FormData==='function'&&thing instanceof FormData||isFunction(thing.append)&&((kind=kindOf(thing))==='formdata'||// detect form-data instance
|
|
5695
|
-
kind==='object'&&isFunction(thing.toString)&&thing.toString()==='[object FormData]'));};/**
|
|
5694
|
+
*/var isFormData=function isFormData(thing){var kind;return thing&&(typeof FormData==='function'&&thing instanceof FormData||isFunction$1(thing.append)&&((kind=kindOf(thing))==='formdata'||// detect form-data instance
|
|
5695
|
+
kind==='object'&&isFunction$1(thing.toString)&&thing.toString()==='[object FormData]'));};/**
|
|
5696
5696
|
* Determine if a value is a URLSearchParams object
|
|
5697
5697
|
*
|
|
5698
5698
|
* @param {*} val The value to test
|
|
@@ -5740,7 +5740,7 @@ var keys=allOwnKeys?Object.getOwnPropertyNames(obj):Object.keys(obj);var len=key
|
|
|
5740
5740
|
* @param {Object} obj1 Object to merge
|
|
5741
5741
|
*
|
|
5742
5742
|
* @returns {Object} Result of all merge properties
|
|
5743
|
-
*/function merge(/* obj1, obj2, obj3, ... */){var _ref4=isContextDefined(this)&&this||{},caseless=_ref4.caseless;var result={};var assignValue=function assignValue(val,key){var targetKey=caseless&&findKey(result,key)||key;if(isPlainObject(result[targetKey])&&isPlainObject(val)){result[targetKey]=merge(result[targetKey],val);}else if(isPlainObject(val)){result[targetKey]=merge({},val);}else if(isArray$1(val)){result[targetKey]=val.slice();}else{result[targetKey]=val;}};for(var i=0,l=arguments.length;i<l;i++){arguments[i]&&forEach(arguments[i],assignValue);}return result;}/**
|
|
5743
|
+
*/function merge(/* obj1, obj2, obj3, ... */){var _ref4=isContextDefined(this)&&this||{},caseless=_ref4.caseless,skipUndefined=_ref4.skipUndefined;var result={};var assignValue=function assignValue(val,key){var targetKey=caseless&&findKey(result,key)||key;if(isPlainObject(result[targetKey])&&isPlainObject(val)){result[targetKey]=merge(result[targetKey],val);}else if(isPlainObject(val)){result[targetKey]=merge({},val);}else if(isArray$1(val)){result[targetKey]=val.slice();}else if(!skipUndefined||!isUndefined(val)){result[targetKey]=val;}};for(var i=0,l=arguments.length;i<l;i++){arguments[i]&&forEach(arguments[i],assignValue);}return result;}/**
|
|
5744
5744
|
* Extends object a by mutably adding to it the properties of object b.
|
|
5745
5745
|
*
|
|
5746
5746
|
* @param {Object} a The object to be extended
|
|
@@ -5749,7 +5749,7 @@ var keys=allOwnKeys?Object.getOwnPropertyNames(obj):Object.keys(obj);var len=key
|
|
|
5749
5749
|
*
|
|
5750
5750
|
* @param {Boolean} [allOwnKeys]
|
|
5751
5751
|
* @returns {Object} The resulting value of object a
|
|
5752
|
-
*/var extend=function extend(a,b,thisArg){var _ref5=arguments.length>3&&arguments[3]!==undefined?arguments[3]:{},allOwnKeys=_ref5.allOwnKeys;forEach(b,function(val,key){if(thisArg&&isFunction(val)){a[key]=bind(val,thisArg);}else{a[key]=val;}},{allOwnKeys:allOwnKeys});return a;};/**
|
|
5752
|
+
*/var extend=function extend(a,b,thisArg){var _ref5=arguments.length>3&&arguments[3]!==undefined?arguments[3]:{},allOwnKeys=_ref5.allOwnKeys;forEach(b,function(val,key){if(thisArg&&isFunction$1(val)){a[key]=bind(val,thisArg);}else{a[key]=val;}},{allOwnKeys:allOwnKeys});return a;};/**
|
|
5753
5753
|
* Remove byte order marker. This catches EF BB BF (the UTF-8 BOM)
|
|
5754
5754
|
*
|
|
5755
5755
|
* @param {string} content with BOM
|
|
@@ -5819,17 +5819,17 @@ return function(thing){return TypedArray&&thing instanceof TypedArray;};}(typeof
|
|
|
5819
5819
|
* Makes all methods read-only
|
|
5820
5820
|
* @param {Object} obj
|
|
5821
5821
|
*/var freezeMethods=function freezeMethods(obj){reduceDescriptors(obj,function(descriptor,name){// skip restricted props in strict mode
|
|
5822
|
-
if(isFunction(obj)&&['arguments','caller','callee'].indexOf(name)!==-1){return false;}var value=obj[name];if(!isFunction(value))return;descriptor.enumerable=false;if('writable'in descriptor){descriptor.writable=false;return;}if(!descriptor.set){descriptor.set=function(){throw Error('Can not rewrite read-only method \''+name+'\'');};}});};var toObjectSet=function toObjectSet(arrayOrString,delimiter){var obj={};var define=function define(arr){arr.forEach(function(value){obj[value]=true;});};isArray$1(arrayOrString)?define(arrayOrString):define(String(arrayOrString).split(delimiter));return obj;};var noop=function noop(){};var toFiniteNumber=function toFiniteNumber(value,defaultValue){return value!=null&&Number.isFinite(value=+value)?value:defaultValue;};/**
|
|
5822
|
+
if(isFunction$1(obj)&&['arguments','caller','callee'].indexOf(name)!==-1){return false;}var value=obj[name];if(!isFunction$1(value))return;descriptor.enumerable=false;if('writable'in descriptor){descriptor.writable=false;return;}if(!descriptor.set){descriptor.set=function(){throw Error('Can not rewrite read-only method \''+name+'\'');};}});};var toObjectSet=function toObjectSet(arrayOrString,delimiter){var obj={};var define=function define(arr){arr.forEach(function(value){obj[value]=true;});};isArray$1(arrayOrString)?define(arrayOrString):define(String(arrayOrString).split(delimiter));return obj;};var noop=function noop(){};var toFiniteNumber=function toFiniteNumber(value,defaultValue){return value!=null&&Number.isFinite(value=+value)?value:defaultValue;};/**
|
|
5823
5823
|
* If the thing is a FormData object, return true, otherwise return false.
|
|
5824
5824
|
*
|
|
5825
5825
|
* @param {unknown} thing - The thing to check.
|
|
5826
5826
|
*
|
|
5827
5827
|
* @returns {boolean}
|
|
5828
|
-
*/function isSpecCompliantForm(thing){return!!(thing&&isFunction(thing.append)&&thing[toStringTag]==='FormData'&&thing[iterator]);}var toJSONObject=function toJSONObject(obj){var stack=new Array(10);var _visit=function visit(source,i){if(isObject(source)){if(stack.indexOf(source)>=0){return;}//Buffer check
|
|
5829
|
-
if(isBuffer$1(source)){return source;}if(!('toJSON'in source)){stack[i]=source;var target=isArray$1(source)?[]:{};forEach(source,function(value,key){var reducedValue=_visit(value,i+1);!isUndefined(reducedValue)&&(target[key]=reducedValue);});stack[i]=undefined;return target;}}return source;};return _visit(obj,0);};var isAsyncFn=kindOfTest('AsyncFunction');var isThenable=function isThenable(thing){return thing&&(isObject(thing)||isFunction(thing))&&isFunction(thing.then)&&isFunction(thing["catch"]);};// original code
|
|
5828
|
+
*/function isSpecCompliantForm(thing){return!!(thing&&isFunction$1(thing.append)&&thing[toStringTag]==='FormData'&&thing[iterator]);}var toJSONObject=function toJSONObject(obj){var stack=new Array(10);var _visit=function visit(source,i){if(isObject(source)){if(stack.indexOf(source)>=0){return;}//Buffer check
|
|
5829
|
+
if(isBuffer$1(source)){return source;}if(!('toJSON'in source)){stack[i]=source;var target=isArray$1(source)?[]:{};forEach(source,function(value,key){var reducedValue=_visit(value,i+1);!isUndefined(reducedValue)&&(target[key]=reducedValue);});stack[i]=undefined;return target;}}return source;};return _visit(obj,0);};var isAsyncFn=kindOfTest('AsyncFunction');var isThenable=function isThenable(thing){return thing&&(isObject(thing)||isFunction$1(thing))&&isFunction$1(thing.then)&&isFunction$1(thing["catch"]);};// original code
|
|
5830
5830
|
// https://github.com/DigitalBrainJS/AxiosPromise/blob/16deab13710ec09779922131f3fa5954320f83ab/lib/utils.js#L11-L34
|
|
5831
|
-
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;// *********************
|
|
5832
|
-
var isIterable=function isIterable(thing){return thing!=null&&isFunction(thing[iterator]);};var utils$1={isArray:isArray$1,isArrayBuffer:isArrayBuffer,isBuffer:isBuffer$1,isFormData:isFormData,isArrayBufferView:isArrayBufferView,isString:isString,isNumber:isNumber,isBoolean:isBoolean,isObject:isObject,isPlainObject:isPlainObject,isEmptyObject:isEmptyObject,isReadableStream:isReadableStream,isRequest:isRequest,isResponse:isResponse,isHeaders:isHeaders,isUndefined:isUndefined,isDate:isDate,isFile:isFile,isBlob:isBlob,isRegExp:isRegExp,isFunction:isFunction,isStream:isStream,isURLSearchParams:isURLSearchParams,isTypedArray:isTypedArray,isFileList:isFileList,forEach:forEach,merge:merge,extend:extend,trim:trim,stripBOM:stripBOM,inherits:inherits,toFlatObject:toFlatObject,kindOf:kindOf,kindOfTest:kindOfTest,endsWith:endsWith,toArray:toArray,forEachEntry:forEachEntry,matchAll:matchAll,isHTMLForm:isHTMLForm,hasOwnProperty:hasOwnProperty,hasOwnProp:hasOwnProperty,// an alias to avoid ESLint no-prototype-builtins detection
|
|
5831
|
+
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$1(_global.postMessage));var asap=typeof queueMicrotask!=='undefined'?queueMicrotask.bind(_global):typeof process!=='undefined'&&nextTick||_setImmediate;// *********************
|
|
5832
|
+
var isIterable=function isIterable(thing){return thing!=null&&isFunction$1(thing[iterator]);};var utils$1={isArray:isArray$1,isArrayBuffer:isArrayBuffer,isBuffer:isBuffer$1,isFormData:isFormData,isArrayBufferView:isArrayBufferView,isString:isString,isNumber:isNumber,isBoolean:isBoolean,isObject:isObject,isPlainObject:isPlainObject,isEmptyObject:isEmptyObject,isReadableStream:isReadableStream,isRequest:isRequest,isResponse:isResponse,isHeaders:isHeaders,isUndefined:isUndefined,isDate:isDate,isFile:isFile,isBlob:isBlob,isRegExp:isRegExp,isFunction:isFunction$1,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
|
|
5833
5833
|
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)
|
|
5834
5834
|
// if there are two placeholders, than the two characters before it
|
|
5835
5835
|
// represent one byte
|
|
@@ -6000,7 +6000,9 @@ description:this.description,number:this.number,// Mozilla
|
|
|
6000
6000
|
fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,// Axios
|
|
6001
6001
|
config:utils$1.toJSONObject(this.config),code:this.code,status:this.status};}});var prototype$1=AxiosError.prototype;var descriptors={};['ERR_BAD_OPTION_VALUE','ERR_BAD_OPTION','ECONNABORTED','ETIMEDOUT','ERR_NETWORK','ERR_FR_TOO_MANY_REDIRECTS','ERR_DEPRECATED','ERR_BAD_RESPONSE','ERR_BAD_REQUEST','ERR_CANCELED','ERR_NOT_SUPPORT','ERR_INVALID_URL'// eslint-disable-next-line func-names
|
|
6002
6002
|
].forEach(function(code){descriptors[code]={value:code};});Object.defineProperties(AxiosError,descriptors);Object.defineProperty(prototype$1,'isAxiosError',{value:true});// eslint-disable-next-line func-names
|
|
6003
|
-
AxiosError.from=function(error,code,config,request,response,customProps){var axiosError=Object.create(prototype$1);utils$1.toFlatObject(error,axiosError,function filter(obj){return obj!==Error.prototype;},function(prop){return prop!=='isAxiosError';});
|
|
6003
|
+
AxiosError.from=function(error,code,config,request,response,customProps){var axiosError=Object.create(prototype$1);utils$1.toFlatObject(error,axiosError,function filter(obj){return obj!==Error.prototype;},function(prop){return prop!=='isAxiosError';});var msg=error&&error.message?error.message:'Error';// Prefer explicit code; otherwise copy the low-level error's code (e.g. ECONNREFUSED)
|
|
6004
|
+
var errCode=code==null&&error?error.code:code;AxiosError.call(axiosError,msg,errCode,config,request,response);// Chain the original error on the standard field; non-enumerable to avoid JSON noise
|
|
6005
|
+
if(error&&axiosError.cause==null){Object.defineProperty(axiosError,'cause',{value:error,configurable:true});}axiosError.name=error&&error.name||'Error';customProps&&Object.assign(axiosError,customProps);return axiosError;};// eslint-disable-next-line strict
|
|
6004
6006
|
var httpAdapter=null;/**
|
|
6005
6007
|
* Determines if the given thing is a array or js object.
|
|
6006
6008
|
*
|
|
@@ -6086,7 +6088,7 @@ indexes===true?renderKey([key],index,dots):indexes===null?key:key+'[]',convertVa
|
|
|
6086
6088
|
* @param {string} val The value to be encoded.
|
|
6087
6089
|
*
|
|
6088
6090
|
* @returns {string} The encoded value.
|
|
6089
|
-
*/function encode(val){return encodeURIComponent(val).replace(/%3A/gi,':').replace(/%24/g,'$').replace(/%2C/gi,',').replace(/%20/g,'+')
|
|
6091
|
+
*/function encode(val){return encodeURIComponent(val).replace(/%3A/gi,':').replace(/%24/g,'$').replace(/%2C/gi,',').replace(/%20/g,'+');}/**
|
|
6090
6092
|
* Build a URL by appending params to the end
|
|
6091
6093
|
*
|
|
6092
6094
|
* @param {string} url The base of the url (e.g., http://www.google.com)
|
|
@@ -6176,7 +6178,7 @@ return utils$1.matchAll(/\w+|\[(\w*)]/g,name).map(function(match){return match[0
|
|
|
6176
6178
|
* @param {Function} encoder - A function that takes a value and returns a string.
|
|
6177
6179
|
*
|
|
6178
6180
|
* @returns {string} A stringified version of the rawValue.
|
|
6179
|
-
*/function stringifySafely(rawValue,parser,encoder){if(utils$1.isString(rawValue)){try{(parser||JSON.parse)(rawValue);return utils$1.trim(rawValue);}catch(e){if(e.name!=='SyntaxError'){throw e;}}}return(encoder||JSON.stringify)(rawValue);}var defaults={transitional:transitionalDefaults,adapter:['xhr','http','fetch'],transformRequest:[function transformRequest(data,headers){var contentType=headers.getContentType()||'';var hasJSONContentType=contentType.indexOf('application/json')>-1;var isObjectPayload=utils$1.isObject(data);if(isObjectPayload&&utils$1.isHTMLForm(data)){data=new FormData(data);}var isFormData=utils$1.isFormData(data);if(isFormData){return hasJSONContentType?JSON.stringify(formDataToJSON(data)):data;}if(utils$1.isArrayBuffer(data)||utils$1.isBuffer(data)||utils$1.isStream(data)||utils$1.isFile(data)||utils$1.isBlob(data)||utils$1.isReadableStream(data)){return data;}if(utils$1.isArrayBufferView(data)){return data.buffer;}if(utils$1.isURLSearchParams(data)){headers.setContentType('application/x-www-form-urlencoded;charset=utf-8',false);return data.toString();}var isFileList;if(isObjectPayload){if(contentType.indexOf('application/x-www-form-urlencoded')>-1){return toURLEncodedForm(data,this.formSerializer).toString();}if((isFileList=utils$1.isFileList(data))||contentType.indexOf('multipart/form-data')>-1){var _FormData=this.env&&this.env.FormData;return toFormData(isFileList?{'files[]':data}:data,_FormData&&new _FormData(),this.formSerializer);}}if(isObjectPayload||hasJSONContentType){headers.setContentType('application/json',false);return stringifySafely(data);}return data;}],transformResponse:[function transformResponse(data){var transitional=this.transitional||defaults.transitional;var forcedJSONParsing=transitional&&transitional.forcedJSONParsing;var JSONRequested=this.responseType==='json';if(utils$1.isResponse(data)||utils$1.isReadableStream(data)){return data;}if(data&&utils$1.isString(data)&&(forcedJSONParsing&&!this.responseType||JSONRequested)){var silentJSONParsing=transitional&&transitional.silentJSONParsing;var strictJSONParsing=!silentJSONParsing&&JSONRequested;try{return JSON.parse(data);}catch(e){if(strictJSONParsing){if(e.name==='SyntaxError'){throw AxiosError.from(e,AxiosError.ERR_BAD_RESPONSE,this,null,this.response);}throw e;}}}return data;}],/**
|
|
6181
|
+
*/function stringifySafely(rawValue,parser,encoder){if(utils$1.isString(rawValue)){try{(parser||JSON.parse)(rawValue);return utils$1.trim(rawValue);}catch(e){if(e.name!=='SyntaxError'){throw e;}}}return(encoder||JSON.stringify)(rawValue);}var defaults={transitional:transitionalDefaults,adapter:['xhr','http','fetch'],transformRequest:[function transformRequest(data,headers){var contentType=headers.getContentType()||'';var hasJSONContentType=contentType.indexOf('application/json')>-1;var isObjectPayload=utils$1.isObject(data);if(isObjectPayload&&utils$1.isHTMLForm(data)){data=new FormData(data);}var isFormData=utils$1.isFormData(data);if(isFormData){return hasJSONContentType?JSON.stringify(formDataToJSON(data)):data;}if(utils$1.isArrayBuffer(data)||utils$1.isBuffer(data)||utils$1.isStream(data)||utils$1.isFile(data)||utils$1.isBlob(data)||utils$1.isReadableStream(data)){return data;}if(utils$1.isArrayBufferView(data)){return data.buffer;}if(utils$1.isURLSearchParams(data)){headers.setContentType('application/x-www-form-urlencoded;charset=utf-8',false);return data.toString();}var isFileList;if(isObjectPayload){if(contentType.indexOf('application/x-www-form-urlencoded')>-1){return toURLEncodedForm(data,this.formSerializer).toString();}if((isFileList=utils$1.isFileList(data))||contentType.indexOf('multipart/form-data')>-1){var _FormData=this.env&&this.env.FormData;return toFormData(isFileList?{'files[]':data}:data,_FormData&&new _FormData(),this.formSerializer);}}if(isObjectPayload||hasJSONContentType){headers.setContentType('application/json',false);return stringifySafely(data);}return data;}],transformResponse:[function transformResponse(data){var transitional=this.transitional||defaults.transitional;var forcedJSONParsing=transitional&&transitional.forcedJSONParsing;var JSONRequested=this.responseType==='json';if(utils$1.isResponse(data)||utils$1.isReadableStream(data)){return data;}if(data&&utils$1.isString(data)&&(forcedJSONParsing&&!this.responseType||JSONRequested)){var silentJSONParsing=transitional&&transitional.silentJSONParsing;var strictJSONParsing=!silentJSONParsing&&JSONRequested;try{return JSON.parse(data,this.parseReviver);}catch(e){if(strictJSONParsing){if(e.name==='SyntaxError'){throw AxiosError.from(e,AxiosError.ERR_BAD_RESPONSE,this,null,this.response);}throw e;}}}return data;}],/**
|
|
6180
6182
|
* A timeout in milliseconds to abort a request. If set to 0 (default) a
|
|
6181
6183
|
* timeout is not created.
|
|
6182
6184
|
*/timeout:0,xsrfCookieName:'XSRF-TOKEN',xsrfHeaderName:'X-XSRF-TOKEN',maxContentLength:-1,maxBodyLength:-1,env:{FormData:platform.classes.FormData,Blob:platform.classes.Blob},validateStatus:function validateStatus(status){return status>=200&&status<300;},headers:{common:{'Accept':'application/json, text/plain, */*','Content-Type':undefined}}};utils$1.forEach(['delete','get','head','post','put','patch'],function(method){defaults.headers[method]={};});var defaults$1=defaults;// RawAxiosHeaders whose duplicates are ignored by node
|
|
@@ -6271,9 +6273,10 @@ function mergeDeepProperties(a,b,prop,caseless){if(!utils$1.isUndefined(b)){retu
|
|
|
6271
6273
|
function valueFromConfig2(a,b){if(!utils$1.isUndefined(b)){return getMergedValue(undefined,b);}}// eslint-disable-next-line consistent-return
|
|
6272
6274
|
function defaultToConfig2(a,b){if(!utils$1.isUndefined(b)){return getMergedValue(undefined,b);}else if(!utils$1.isUndefined(a)){return getMergedValue(undefined,a);}}// eslint-disable-next-line consistent-return
|
|
6273
6275
|
function mergeDirectKeys(a,b,prop){if(prop in config2){return getMergedValue(a,b);}else if(prop in config1){return getMergedValue(undefined,a);}}var mergeMap={url:valueFromConfig2,method:valueFromConfig2,data:valueFromConfig2,baseURL:defaultToConfig2,transformRequest:defaultToConfig2,transformResponse:defaultToConfig2,paramsSerializer:defaultToConfig2,timeout:defaultToConfig2,timeoutMessage:defaultToConfig2,withCredentials:defaultToConfig2,withXSRFToken:defaultToConfig2,adapter:defaultToConfig2,responseType:defaultToConfig2,xsrfCookieName:defaultToConfig2,xsrfHeaderName:defaultToConfig2,onUploadProgress:defaultToConfig2,onDownloadProgress:defaultToConfig2,decompress:defaultToConfig2,maxContentLength:defaultToConfig2,maxBodyLength:defaultToConfig2,beforeRedirect:defaultToConfig2,transport:defaultToConfig2,httpAgent:defaultToConfig2,httpsAgent:defaultToConfig2,cancelToken:defaultToConfig2,socketPath:defaultToConfig2,responseEncoding:defaultToConfig2,validateStatus:mergeDirectKeys,headers:function headers(a,b,prop){return mergeDeepProperties(headersToObject(a),headersToObject(b),prop,true);}};utils$1.forEach(Object.keys(_objectSpread(_objectSpread({},config1),config2)),function computeConfigValue(prop){var merge=mergeMap[prop]||mergeDeepProperties;var configValue=merge(config1[prop],config2[prop],prop);utils$1.isUndefined(configValue)&&merge!==mergeDirectKeys||(config[prop]=configValue);});return config;}var resolveConfig=function resolveConfig(config){var newConfig=mergeConfig({},config);var data=newConfig.data,withXSRFToken=newConfig.withXSRFToken,xsrfHeaderName=newConfig.xsrfHeaderName,xsrfCookieName=newConfig.xsrfCookieName,headers=newConfig.headers,auth=newConfig.auth;newConfig.headers=headers=AxiosHeaders$1.from(headers);newConfig.url=buildURL(buildFullPath(newConfig.baseURL,newConfig.url,newConfig.allowAbsoluteUrls),config.params,config.paramsSerializer);// HTTP basic authentication
|
|
6274
|
-
if(auth){headers.set('Authorization','Basic '+btoa((auth.username||'')+':'+(auth.password?unescape(encodeURIComponent(auth.password)):'')));}
|
|
6275
|
-
}else if((
|
|
6276
|
-
var
|
|
6276
|
+
if(auth){headers.set('Authorization','Basic '+btoa((auth.username||'')+':'+(auth.password?unescape(encodeURIComponent(auth.password)):'')));}if(utils$1.isFormData(data)){if(platform.hasStandardBrowserEnv||platform.hasStandardBrowserWebWorkerEnv){headers.setContentType(undefined);// browser handles it
|
|
6277
|
+
}else if(utils$1.isFunction(data.getHeaders)){// Node.js FormData (like form-data package)
|
|
6278
|
+
var formHeaders=data.getHeaders();// Only set safe headers to avoid overwriting security headers
|
|
6279
|
+
var allowedHeaders=['content-type','content-length'];Object.entries(formHeaders).forEach(function(_ref1){var _ref10=_slicedToArray(_ref1,2),key=_ref10[0],val=_ref10[1];if(allowedHeaders.includes(key.toLowerCase())){headers.set(key,val);}});}}// Add xsrf header
|
|
6277
6280
|
// This is only done if running in a standard browser environment.
|
|
6278
6281
|
// Specifically not if we're in a web worker, or react-native.
|
|
6279
6282
|
if(platform.hasStandardBrowserEnv){withXSRFToken&&utils$1.isFunction(withXSRFToken)&&(withXSRFToken=withXSRFToken(newConfig));if(withXSRFToken||withXSRFToken!==false&&isURLSameOrigin(newConfig.url)){// Add xsrf header
|
|
@@ -6293,10 +6296,11 @@ if(request.status===0&&!(request.responseURL&&request.responseURL.indexOf('file:
|
|
|
6293
6296
|
setTimeout(onloadend);};}// Handle browser request cancellation (as opposed to a manual cancellation)
|
|
6294
6297
|
request.onabort=function handleAbort(){if(!request){return;}reject(new AxiosError('Request aborted',AxiosError.ECONNABORTED,config,request));// Clean up request
|
|
6295
6298
|
request=null;};// Handle low level network errors
|
|
6296
|
-
request.onerror=function handleError(){//
|
|
6297
|
-
//
|
|
6298
|
-
|
|
6299
|
-
|
|
6299
|
+
request.onerror=function handleError(event){// Browsers deliver a ProgressEvent in XHR onerror
|
|
6300
|
+
// (message may be empty; when present, surface it)
|
|
6301
|
+
// See https://developer.mozilla.org/docs/Web/API/XMLHttpRequest/error_event
|
|
6302
|
+
var msg=event&&event.message?event.message:'Network Error';var err=new AxiosError(msg,AxiosError.ERR_NETWORK,config,request);// attach the underlying event for consumers who want details
|
|
6303
|
+
err.event=event||null;reject(err);request=null;};// Handle timeout
|
|
6300
6304
|
request.ontimeout=function handleTimeout(){var timeoutErrorMessage=_config.timeout?'timeout of '+_config.timeout+'ms exceeded':'timeout exceeded';var transitional=_config.transitional||transitionalDefaults;if(_config.timeoutErrorMessage){timeoutErrorMessage=_config.timeoutErrorMessage;}reject(new AxiosError(timeoutErrorMessage,transitional.clarifyTimeoutError?AxiosError.ETIMEDOUT:AxiosError.ECONNABORTED,config,request));// Clean up request
|
|
6301
6305
|
request=null;};// Remove Content-Type if data is undefined
|
|
6302
6306
|
requestData===undefined&&requestHeaders.setContentType(null);// Add headers to the request
|
|
@@ -6307,11 +6311,10 @@ if(onDownloadProgress){var _progressEventReducer=progressEventReducer(onDownload
|
|
|
6307
6311
|
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
|
|
6308
6312
|
// eslint-disable-next-line func-names
|
|
6309
6313
|
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
|
|
6310
|
-
request.send(requestData||null);});};var composeSignals=function composeSignals(signals,timeout){var _signals=signals=signals?signals.filter(Boolean):[],length=_signals.length;if(timeout||length){var controller=new AbortController();var aborted;var onabort=function onabort(reason){if(!aborted){aborted=true;unsubscribe();var err=reason instanceof Error?reason:this.reason;controller.abort(err instanceof AxiosError?err:new CanceledError(err instanceof Error?err.message:err));}};var timer=timeout&&setTimeout(function(){timer=null;onabort(new AxiosError("timeout ".concat(timeout," of ms exceeded"),AxiosError.ETIMEDOUT));},timeout);var unsubscribe=function unsubscribe(){if(signals){timer&&clearTimeout(timer);timer=null;signals.forEach(function(signal){signal.unsubscribe?signal.unsubscribe(onabort):signal.removeEventListener('abort',onabort);});signals=null;}};signals.forEach(function(signal){return signal.addEventListener('abort',onabort);});var signal=controller.signal;signal.unsubscribe=function(){return utils$1.asap(unsubscribe);};return signal;}};var composeSignals$1=composeSignals;var streamChunk=/*#__PURE__*/_regenerator().m(function streamChunk(chunk,chunkSize){var len,pos,end;return _regenerator().w(function(_context){while(1)switch(_context.n){case 0:len=chunk.byteLength;if(!(!chunkSize||len<chunkSize)){_context.n=2;break;}_context.n=1;return chunk;case 1:return _context.a(2);case 2:pos=0;case 3:if(!(pos<len)){_context.n=5;break;}end=pos+chunkSize;_context.n=4;return chunk.slice(pos,end);case 4:pos=end;_context.n=3;break;case 5:return _context.a(2);}},streamChunk);});var readBytes=/*#__PURE__*/function(){var _ref=_wrapAsyncGenerator(/*#__PURE__*/_regenerator().m(function _callee(iterable,chunkSize){var _iteratorAbruptCompletion,_didIteratorError,_iteratorError,_iterator2,_step,chunk,_t;return _regenerator().w(function(_context2){while(1)switch(_context2.p=_context2.n){case 0:_iteratorAbruptCompletion=false;_didIteratorError=false;_context2.p=1;_iterator2=_asyncIterator(readStream(iterable));case 2:_context2.n=3;return _awaitAsyncGenerator(_iterator2.next());case 3:if(!(_iteratorAbruptCompletion=!(_step=_context2.v).done)){_context2.n=5;break;}chunk=_step.value;return _context2.d(_regeneratorValues(_asyncGeneratorDelegate(_asyncIterator(streamChunk(chunk,chunkSize)),_awaitAsyncGenerator)),4);case 4:_iteratorAbruptCompletion=false;_context2.n=2;break;case 5:_context2.n=7;break;case 6:_context2.p=6;_t=_context2.v;_didIteratorError=true;_iteratorError=_t;case 7:_context2.p=7;_context2.p=8;if(!(_iteratorAbruptCompletion&&_iterator2["return"]!=null)){_context2.n=9;break;}_context2.n=9;return _awaitAsyncGenerator(_iterator2["return"]());case 9:_context2.p=9;if(!_didIteratorError){_context2.n=10;break;}throw _iteratorError;case 10:return _context2.f(9);case 11:return _context2.f(7);case 12:return _context2.a(2);}},_callee,null,[[8,,9,11],[1,6,7,12]]);}));return function readBytes(_x,_x2){return _ref.apply(this,arguments);};}();var readStream=/*#__PURE__*/function(){var _ref2=_wrapAsyncGenerator(/*#__PURE__*/_regenerator().m(function _callee2(stream){var reader,_yield$_awaitAsyncGen,done,value;return _regenerator().w(function(_context3){while(1)switch(_context3.p=_context3.n){case 0:if(!stream[Symbol.asyncIterator]){_context3.n=2;break;}return _context3.d(_regeneratorValues(_asyncGeneratorDelegate(_asyncIterator(stream),_awaitAsyncGenerator)),1);case 1:return _context3.a(2);case 2:reader=stream.getReader();_context3.p=3;case 4:_context3.n=5;return _awaitAsyncGenerator(reader.read());case 5:_yield$_awaitAsyncGen=_context3.v;done=_yield$_awaitAsyncGen.done;value=_yield$_awaitAsyncGen.value;if(!done){_context3.n=6;break;}return _context3.a(3,8);case 6:_context3.n=7;return value;case 7:_context3.n=4;break;case 8:_context3.p=8;_context3.n=9;return _awaitAsyncGenerator(reader.cancel());case 9:return _context3.f(8);case 10:return _context3.a(2);}},_callee2,null,[[3,,8,10]]);}));return function readStream(_x3){return _ref2.apply(this,arguments);};}();var trackStream=function trackStream(stream,chunkSize,onProgress,onFinish){var iterator=readBytes(stream,chunkSize);var bytes=0;var done;var _onFinish=function _onFinish(e){if(!done){done=true;onFinish&&onFinish(e);}};return new ReadableStream({pull:function pull(controller){return _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee3(){var _yield$iterator$next,_done,value,len,loadedBytes,_t2;return _regenerator().w(function(_context4){while(1)switch(_context4.p=_context4.n){case 0:_context4.p=0;_context4.n=1;return iterator.next();case 1:_yield$iterator$next=_context4.v;_done=_yield$iterator$next.done;value=_yield$iterator$next.value;if(!_done){_context4.n=2;break;}_onFinish();controller.close();return _context4.a(2);case 2:len=value.byteLength;if(onProgress){loadedBytes=bytes+=len;onProgress(loadedBytes);}controller.enqueue(new Uint8Array(value));_context4.n=4;break;case 3:_context4.p=3;_t2=_context4.v;_onFinish(_t2);throw _t2;case 4:return _context4.a(2);}},_callee3,null,[[0,3]]);}))();},cancel:function cancel(reason){_onFinish(reason);return iterator["return"]();}},{highWaterMark:2});};var isFetchSupported=typeof fetch==='function'&&typeof Request==='function'&&typeof Response==='function';var isReadableStreamSupported=isFetchSupported&&typeof ReadableStream==='function';// used only inside the fetch adapter
|
|
6311
|
-
var encodeText=isFetchSupported&&(typeof TextEncoder==='function'?function(encoder){return function(str){return encoder.encode(str);};}(new TextEncoder()):(/*#__PURE__*/function(){var _ref11=_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee4(str){var _t3,_t4;return _regenerator().w(function(_context5){while(1)switch(_context5.n){case 0:_t3=Uint8Array;_context5.n=1;return new Response(str).arrayBuffer();case 1:_t4=_context5.v;return _context5.a(2,new _t3(_t4));}},_callee4);}));return function(_x4){return _ref11.apply(this,arguments);};}()));var test=function test(fn){try{for(var _len5=arguments.length,args=new Array(_len5>1?_len5-1:0),_key6=1;_key6<_len5;_key6++){args[_key6-1]=arguments[_key6];}return!!fn.apply(void 0,args);}catch(e){return false;}};var supportsRequestStream=isReadableStreamSupported&&test(function(){var duplexAccessed=false;var hasContentType=new Request(platform.origin,{body:new ReadableStream(),method:'POST',get duplex(){duplexAccessed=true;return'half';}}).headers.has('Content-Type');return duplexAccessed&&!hasContentType;});var DEFAULT_CHUNK_SIZE=64*1024;var supportsResponseStream=isReadableStreamSupported&&test(function(){return utils$1.isReadableStream(new Response('').body);});var resolvers={stream:supportsResponseStream&&function(res){return res.body;}};isFetchSupported&&function(res){['text','arrayBuffer','blob','formData','stream'].forEach(function(type){!resolvers[type]&&(resolvers[type]=utils$1.isFunction(res[type])?function(res){return res[type]();}:function(_,config){throw new AxiosError("Response type '".concat(type,"' is not supported"),AxiosError.ERR_NOT_SUPPORT,config);});});}(new Response());var getBodyLength=/*#__PURE__*/function(){var _ref12=_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee5(body){var _request;return _regenerator().w(function(_context6){while(1)switch(_context6.n){case 0:if(!(body==null)){_context6.n=1;break;}return _context6.a(2,0);case 1:if(!utils$1.isBlob(body)){_context6.n=2;break;}return _context6.a(2,body.size);case 2:if(!utils$1.isSpecCompliantForm(body)){_context6.n=4;break;}_request=new Request(platform.origin,{method:'POST',body:body});_context6.n=3;return _request.arrayBuffer();case 3:return _context6.a(2,_context6.v.byteLength);case 4:if(!(utils$1.isArrayBufferView(body)||utils$1.isArrayBuffer(body))){_context6.n=5;break;}return _context6.a(2,body.byteLength);case 5:if(utils$1.isURLSearchParams(body)){body=body+'';}if(!utils$1.isString(body)){_context6.n=7;break;}_context6.n=6;return encodeText(body);case 6:return _context6.a(2,_context6.v.byteLength);case 7:return _context6.a(2);}},_callee5);}));return function getBodyLength(_x5){return _ref12.apply(this,arguments);};}();var resolveBodyLength=/*#__PURE__*/function(){var _ref13=_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee6(headers,body){var length;return _regenerator().w(function(_context7){while(1)switch(_context7.n){case 0:length=utils$1.toFiniteNumber(headers.getContentLength());return _context7.a(2,length==null?getBodyLength(body):length);}},_callee6);}));return function resolveBodyLength(_x6,_x7){return _ref13.apply(this,arguments);};}();var fetchAdapter=isFetchSupported&&(/*#__PURE__*/function(){var _ref14=_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee7(config){var _resolveConfig,url,method,data,signal,cancelToken,timeout,onDownloadProgress,onUploadProgress,responseType,headers,_resolveConfig$withCr,withCredentials,fetchOptions,composedSignal,request,unsubscribe,requestContentLength,_request,contentTypeHeader,_progressEventDecorat,_progressEventDecorat2,onProgress,flush,isCredentialsSupported,response,isStreamResponse,options,responseContentLength,_ref15,_ref16,_onProgress,_flush,responseData,_t5,_t6,_t7;return _regenerator().w(function(_context8){while(1)switch(_context8.p=_context8.n){case 0:_resolveConfig=resolveConfig(config),url=_resolveConfig.url,method=_resolveConfig.method,data=_resolveConfig.data,signal=_resolveConfig.signal,cancelToken=_resolveConfig.cancelToken,timeout=_resolveConfig.timeout,onDownloadProgress=_resolveConfig.onDownloadProgress,onUploadProgress=_resolveConfig.onUploadProgress,responseType=_resolveConfig.responseType,headers=_resolveConfig.headers,_resolveConfig$withCr=_resolveConfig.withCredentials,withCredentials=_resolveConfig$withCr===void 0?'same-origin':_resolveConfig$withCr,fetchOptions=_resolveConfig.fetchOptions;responseType=responseType?(responseType+'').toLowerCase():'text';composedSignal=composeSignals$1([signal,cancelToken&&cancelToken.toAbortSignal()],timeout);unsubscribe=composedSignal&&composedSignal.unsubscribe&&function(){composedSignal.unsubscribe();};_context8.p=1;_t5=onUploadProgress&&supportsRequestStream&&method!=='get'&&method!=='head';if(!_t5){_context8.n=3;break;}_context8.n=2;return resolveBodyLength(headers,data);case 2:_t6=requestContentLength=_context8.v;_t5=_t6!==0;case 3:if(!_t5){_context8.n=4;break;}_request=new Request(url,{method:'POST',body:data,duplex:"half"});if(utils$1.isFormData(data)&&(contentTypeHeader=_request.headers.get('content-type'))){headers.setContentType(contentTypeHeader);}if(_request.body){_progressEventDecorat=progressEventDecorator(requestContentLength,progressEventReducer(asyncDecorator(onUploadProgress))),_progressEventDecorat2=_slicedToArray(_progressEventDecorat,2),onProgress=_progressEventDecorat2[0],flush=_progressEventDecorat2[1];data=trackStream(_request.body,DEFAULT_CHUNK_SIZE,onProgress,flush);}case 4:if(!utils$1.isString(withCredentials)){withCredentials=withCredentials?'include':'omit';}// Cloudflare Workers throws when credentials are defined
|
|
6314
|
+
request.send(requestData||null);});};var composeSignals=function composeSignals(signals,timeout){var _signals=signals=signals?signals.filter(Boolean):[],length=_signals.length;if(timeout||length){var controller=new AbortController();var aborted;var onabort=function onabort(reason){if(!aborted){aborted=true;unsubscribe();var err=reason instanceof Error?reason:this.reason;controller.abort(err instanceof AxiosError?err:new CanceledError(err instanceof Error?err.message:err));}};var timer=timeout&&setTimeout(function(){timer=null;onabort(new AxiosError("timeout ".concat(timeout," of ms exceeded"),AxiosError.ETIMEDOUT));},timeout);var unsubscribe=function unsubscribe(){if(signals){timer&&clearTimeout(timer);timer=null;signals.forEach(function(signal){signal.unsubscribe?signal.unsubscribe(onabort):signal.removeEventListener('abort',onabort);});signals=null;}};signals.forEach(function(signal){return signal.addEventListener('abort',onabort);});var signal=controller.signal;signal.unsubscribe=function(){return utils$1.asap(unsubscribe);};return signal;}};var composeSignals$1=composeSignals;var streamChunk=/*#__PURE__*/_regenerator().m(function streamChunk(chunk,chunkSize){var len,pos,end;return _regenerator().w(function(_context){while(1)switch(_context.n){case 0:len=chunk.byteLength;if(!(!chunkSize||len<chunkSize)){_context.n=2;break;}_context.n=1;return chunk;case 1:return _context.a(2);case 2:pos=0;case 3:if(!(pos<len)){_context.n=5;break;}end=pos+chunkSize;_context.n=4;return chunk.slice(pos,end);case 4:pos=end;_context.n=3;break;case 5:return _context.a(2);}},streamChunk);});var readBytes=/*#__PURE__*/function(){var _ref=_wrapAsyncGenerator(/*#__PURE__*/_regenerator().m(function _callee(iterable,chunkSize){var _iteratorAbruptCompletion,_didIteratorError,_iteratorError,_iterator2,_step,chunk,_t;return _regenerator().w(function(_context2){while(1)switch(_context2.p=_context2.n){case 0:_iteratorAbruptCompletion=false;_didIteratorError=false;_context2.p=1;_iterator2=_asyncIterator(readStream(iterable));case 2:_context2.n=3;return _awaitAsyncGenerator(_iterator2.next());case 3:if(!(_iteratorAbruptCompletion=!(_step=_context2.v).done)){_context2.n=5;break;}chunk=_step.value;return _context2.d(_regeneratorValues(_asyncGeneratorDelegate(_asyncIterator(streamChunk(chunk,chunkSize)),_awaitAsyncGenerator)),4);case 4:_iteratorAbruptCompletion=false;_context2.n=2;break;case 5:_context2.n=7;break;case 6:_context2.p=6;_t=_context2.v;_didIteratorError=true;_iteratorError=_t;case 7:_context2.p=7;_context2.p=8;if(!(_iteratorAbruptCompletion&&_iterator2["return"]!=null)){_context2.n=9;break;}_context2.n=9;return _awaitAsyncGenerator(_iterator2["return"]());case 9:_context2.p=9;if(!_didIteratorError){_context2.n=10;break;}throw _iteratorError;case 10:return _context2.f(9);case 11:return _context2.f(7);case 12:return _context2.a(2);}},_callee,null,[[8,,9,11],[1,6,7,12]]);}));return function readBytes(_x,_x2){return _ref.apply(this,arguments);};}();var readStream=/*#__PURE__*/function(){var _ref2=_wrapAsyncGenerator(/*#__PURE__*/_regenerator().m(function _callee2(stream){var reader,_yield$_awaitAsyncGen,done,value;return _regenerator().w(function(_context3){while(1)switch(_context3.p=_context3.n){case 0:if(!stream[Symbol.asyncIterator]){_context3.n=2;break;}return _context3.d(_regeneratorValues(_asyncGeneratorDelegate(_asyncIterator(stream),_awaitAsyncGenerator)),1);case 1:return _context3.a(2);case 2:reader=stream.getReader();_context3.p=3;case 4:_context3.n=5;return _awaitAsyncGenerator(reader.read());case 5:_yield$_awaitAsyncGen=_context3.v;done=_yield$_awaitAsyncGen.done;value=_yield$_awaitAsyncGen.value;if(!done){_context3.n=6;break;}return _context3.a(3,8);case 6:_context3.n=7;return value;case 7:_context3.n=4;break;case 8:_context3.p=8;_context3.n=9;return _awaitAsyncGenerator(reader.cancel());case 9:return _context3.f(8);case 10:return _context3.a(2);}},_callee2,null,[[3,,8,10]]);}));return function readStream(_x3){return _ref2.apply(this,arguments);};}();var trackStream=function trackStream(stream,chunkSize,onProgress,onFinish){var iterator=readBytes(stream,chunkSize);var bytes=0;var done;var _onFinish=function _onFinish(e){if(!done){done=true;onFinish&&onFinish(e);}};return new ReadableStream({pull:function pull(controller){return _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee3(){var _yield$iterator$next,_done,value,len,loadedBytes,_t2;return _regenerator().w(function(_context4){while(1)switch(_context4.p=_context4.n){case 0:_context4.p=0;_context4.n=1;return iterator.next();case 1:_yield$iterator$next=_context4.v;_done=_yield$iterator$next.done;value=_yield$iterator$next.value;if(!_done){_context4.n=2;break;}_onFinish();controller.close();return _context4.a(2);case 2:len=value.byteLength;if(onProgress){loadedBytes=bytes+=len;onProgress(loadedBytes);}controller.enqueue(new Uint8Array(value));_context4.n=4;break;case 3:_context4.p=3;_t2=_context4.v;_onFinish(_t2);throw _t2;case 4:return _context4.a(2);}},_callee3,null,[[0,3]]);}))();},cancel:function cancel(reason){_onFinish(reason);return iterator["return"]();}},{highWaterMark:2});};var DEFAULT_CHUNK_SIZE=64*1024;var isFunction=utils$1.isFunction;var globalFetchAPI=function(_ref11){var Request=_ref11.Request,Response=_ref11.Response;return{Request:Request,Response:Response};}(utils$1.global);var _utils$1$global=utils$1.global,ReadableStream$1=_utils$1$global.ReadableStream,TextEncoder$1=_utils$1$global.TextEncoder;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 factory=function factory(env){env=utils$1.merge.call({skipUndefined:true},globalFetchAPI,env);var _env=env,envFetch=_env.fetch,Request=_env.Request,Response=_env.Response;var isFetchSupported=envFetch?isFunction(envFetch):typeof fetch==='function';var isRequestSupported=isFunction(Request);var isResponseSupported=isFunction(Response);if(!isFetchSupported){return false;}var isReadableStreamSupported=isFetchSupported&&isFunction(ReadableStream$1);var encodeText=isFetchSupported&&(typeof TextEncoder$1==='function'?function(encoder){return function(str){return encoder.encode(str);};}(new TextEncoder$1()):(/*#__PURE__*/function(){var _ref12=_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee4(str){var _t3,_t4;return _regenerator().w(function(_context5){while(1)switch(_context5.n){case 0:_t3=Uint8Array;_context5.n=1;return new Request(str).arrayBuffer();case 1:_t4=_context5.v;return _context5.a(2,new _t3(_t4));}},_callee4);}));return function(_x4){return _ref12.apply(this,arguments);};}()));var supportsRequestStream=isRequestSupported&&isReadableStreamSupported&&test(function(){var duplexAccessed=false;var hasContentType=new Request(platform.origin,{body:new ReadableStream$1(),method:'POST',get duplex(){duplexAccessed=true;return'half';}}).headers.has('Content-Type');return duplexAccessed&&!hasContentType;});var supportsResponseStream=isResponseSupported&&isReadableStreamSupported&&test(function(){return utils$1.isReadableStream(new Response('').body);});var resolvers={stream:supportsResponseStream&&function(res){return res.body;}};isFetchSupported&&function(){['text','arrayBuffer','blob','formData','stream'].forEach(function(type){!resolvers[type]&&(resolvers[type]=function(res,config){var method=res&&res[type];if(method){return method.call(res);}throw new AxiosError("Response type '".concat(type,"' is not supported"),AxiosError.ERR_NOT_SUPPORT,config);});});}();var getBodyLength=/*#__PURE__*/function(){var _ref13=_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee5(body){var _request;return _regenerator().w(function(_context6){while(1)switch(_context6.n){case 0:if(!(body==null)){_context6.n=1;break;}return _context6.a(2,0);case 1:if(!utils$1.isBlob(body)){_context6.n=2;break;}return _context6.a(2,body.size);case 2:if(!utils$1.isSpecCompliantForm(body)){_context6.n=4;break;}_request=new Request(platform.origin,{method:'POST',body:body});_context6.n=3;return _request.arrayBuffer();case 3:return _context6.a(2,_context6.v.byteLength);case 4:if(!(utils$1.isArrayBufferView(body)||utils$1.isArrayBuffer(body))){_context6.n=5;break;}return _context6.a(2,body.byteLength);case 5:if(utils$1.isURLSearchParams(body)){body=body+'';}if(!utils$1.isString(body)){_context6.n=7;break;}_context6.n=6;return encodeText(body);case 6:return _context6.a(2,_context6.v.byteLength);case 7:return _context6.a(2);}},_callee5);}));return function getBodyLength(_x5){return _ref13.apply(this,arguments);};}();var resolveBodyLength=/*#__PURE__*/function(){var _ref14=_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee6(headers,body){var length;return _regenerator().w(function(_context7){while(1)switch(_context7.n){case 0:length=utils$1.toFiniteNumber(headers.getContentLength());return _context7.a(2,length==null?getBodyLength(body):length);}},_callee6);}));return function resolveBodyLength(_x6,_x7){return _ref14.apply(this,arguments);};}();return/*#__PURE__*/function(){var _ref15=_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee7(config){var _resolveConfig,url,method,data,signal,cancelToken,timeout,onDownloadProgress,onUploadProgress,responseType,headers,_resolveConfig$withCr,withCredentials,fetchOptions,_fetch,composedSignal,request,unsubscribe,requestContentLength,_request,contentTypeHeader,_progressEventDecorat,_progressEventDecorat2,onProgress,flush,isCredentialsSupported,resolvedOptions,response,isStreamResponse,options,responseContentLength,_ref16,_ref17,_onProgress,_flush,responseData,_t5,_t6,_t7;return _regenerator().w(function(_context8){while(1)switch(_context8.p=_context8.n){case 0:_resolveConfig=resolveConfig(config),url=_resolveConfig.url,method=_resolveConfig.method,data=_resolveConfig.data,signal=_resolveConfig.signal,cancelToken=_resolveConfig.cancelToken,timeout=_resolveConfig.timeout,onDownloadProgress=_resolveConfig.onDownloadProgress,onUploadProgress=_resolveConfig.onUploadProgress,responseType=_resolveConfig.responseType,headers=_resolveConfig.headers,_resolveConfig$withCr=_resolveConfig.withCredentials,withCredentials=_resolveConfig$withCr===void 0?'same-origin':_resolveConfig$withCr,fetchOptions=_resolveConfig.fetchOptions;_fetch=envFetch||fetch;responseType=responseType?(responseType+'').toLowerCase():'text';composedSignal=composeSignals$1([signal,cancelToken&&cancelToken.toAbortSignal()],timeout);request=null;unsubscribe=composedSignal&&composedSignal.unsubscribe&&function(){composedSignal.unsubscribe();};_context8.p=1;_t5=onUploadProgress&&supportsRequestStream&&method!=='get'&&method!=='head';if(!_t5){_context8.n=3;break;}_context8.n=2;return resolveBodyLength(headers,data);case 2:_t6=requestContentLength=_context8.v;_t5=_t6!==0;case 3:if(!_t5){_context8.n=4;break;}_request=new Request(url,{method:'POST',body:data,duplex:"half"});if(utils$1.isFormData(data)&&(contentTypeHeader=_request.headers.get('content-type'))){headers.setContentType(contentTypeHeader);}if(_request.body){_progressEventDecorat=progressEventDecorator(requestContentLength,progressEventReducer(asyncDecorator(onUploadProgress))),_progressEventDecorat2=_slicedToArray(_progressEventDecorat,2),onProgress=_progressEventDecorat2[0],flush=_progressEventDecorat2[1];data=trackStream(_request.body,DEFAULT_CHUNK_SIZE,onProgress,flush);}case 4:if(!utils$1.isString(withCredentials)){withCredentials=withCredentials?'include':'omit';}// Cloudflare Workers throws when credentials are defined
|
|
6312
6315
|
// see https://github.com/cloudflare/workerd/issues/902
|
|
6313
|
-
isCredentialsSupported="credentials"in Request.prototype;
|
|
6314
|
-
}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(
|
|
6316
|
+
isCredentialsSupported=isRequestSupported&&"credentials"in Request.prototype;resolvedOptions=_objectSpread(_objectSpread({},fetchOptions),{},{signal:composedSignal,method:method.toUpperCase(),headers:headers.normalize().toJSON(),body:data,duplex:"half",credentials:isCredentialsSupported?withCredentials:undefined});request=isRequestSupported&&new Request(url,resolvedOptions);_context8.n=5;return isRequestSupported?_fetch(request,fetchOptions):_fetch(url,resolvedOptions);case 5:response=_context8.v;isStreamResponse=supportsResponseStream&&(responseType==='stream'||responseType==='response');if(supportsResponseStream&&(onDownloadProgress||isStreamResponse&&unsubscribe)){options={};['status','statusText','headers'].forEach(function(prop){options[prop]=response[prop];});responseContentLength=utils$1.toFiniteNumber(response.headers.get('content-length'));_ref16=onDownloadProgress&&progressEventDecorator(responseContentLength,progressEventReducer(asyncDecorator(onDownloadProgress),true))||[],_ref17=_slicedToArray(_ref16,2),_onProgress=_ref17[0],_flush=_ref17[1];response=new Response(trackStream(response.body,DEFAULT_CHUNK_SIZE,_onProgress,function(){_flush&&_flush();unsubscribe&&unsubscribe();}),options);}responseType=responseType||'text';_context8.n=6;return resolvers[utils$1.findKey(resolvers,responseType)||'text'](response,config);case 6:responseData=_context8.v;!isStreamResponse&&unsubscribe&&unsubscribe();_context8.n=7;return new Promise(function(resolve,reject){settle(resolve,reject,{data:responseData,headers:AxiosHeaders$1.from(response.headers),status:response.status,statusText:response.statusText,config:config,request:request});});case 7:return _context8.a(2,_context8.v);case 8:_context8.p=8;_t7=_context8.v;unsubscribe&&unsubscribe();if(!(_t7&&_t7.name==='TypeError'&&/Load failed|fetch/i.test(_t7.message))){_context8.n=9;break;}throw Object.assign(new AxiosError('Network Error',AxiosError.ERR_NETWORK,config,request),{cause:_t7.cause||_t7});case 9:throw AxiosError.from(_t7,_t7&&_t7.code,config,request);case 10:return _context8.a(2);}},_callee7,null,[[1,8]]);}));return function(_x8){return _ref15.apply(this,arguments);};}();};var seedCache=new Map();var getFetch=function getFetch(config){var env=config?config.env:{};var fetch=env.fetch,Request=env.Request,Response=env.Response;var seeds=[Request,Response,fetch];var len=seeds.length,i=len,seed,target,map=seedCache;while(i--){seed=seeds[i];target=map.get(seed);target===undefined&&map.set(seed,target=i?new Map():factory(env));map=target;}return target;};getFetch();var knownAdapters={http:httpAdapter,xhr:xhrAdapter,fetch:{get:getFetch}};utils$1.forEach(knownAdapters,function(fn,value){if(fn){try{Object.defineProperty(fn,'name',{value:value});}catch(e){// eslint-disable-next-line no-empty
|
|
6317
|
+
}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,config){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&&(utils$1.isFunction(adapter)||(adapter=adapter.get(config)))){break;}rejectedReasons[id||'#'+i]=adapter;}if(!adapter){var reasons=Object.entries(rejectedReasons).map(function(_ref18){var _ref19=_slicedToArray(_ref18,2),id=_ref19[0],state=_ref19[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};/**
|
|
6315
6318
|
* Throws a `CanceledError` if cancellation has been requested.
|
|
6316
6319
|
*
|
|
6317
6320
|
* @param {Object} config The config that is to be used for the request
|
|
@@ -6324,9 +6327,9 @@ isCredentialsSupported="credentials"in Request.prototype;request=new Request(url
|
|
|
6324
6327
|
*
|
|
6325
6328
|
* @returns {Promise} The Promise to be fulfilled
|
|
6326
6329
|
*/function dispatchRequest(config){throwIfCancellationRequested(config);config.headers=AxiosHeaders$1.from(config.headers);// Transform request data
|
|
6327
|
-
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
|
|
6330
|
+
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,config);return adapter(config).then(function onAdapterResolution(response){throwIfCancellationRequested(config);// Transform response data
|
|
6328
6331
|
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
|
|
6329
|
-
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.
|
|
6332
|
+
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.12.2";var validators$1={};// eslint-disable-next-line func-names
|
|
6330
6333
|
['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={};/**
|
|
6331
6334
|
* Transitional option validator
|
|
6332
6335
|
*
|
|
@@ -6367,7 +6370,7 @@ if(typeof configOrUrl==='string'){config=config||{};config.url=configOrUrl;}else
|
|
|
6367
6370
|
if(config.allowAbsoluteUrls!==undefined);else if(this.defaults.allowAbsoluteUrls!==undefined){config.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls;}else{config.allowAbsoluteUrls=true;}validator.assertOptions(config,{baseUrl:validators.spelling('baseURL'),withXsrfToken:validators.spelling('withXSRFToken')},true);// Set config.method
|
|
6368
6371
|
config.method=(config.method||this.defaults.method||'get').toLowerCase();// Flatten headers
|
|
6369
6372
|
var contextHeaders=headers&&utils$1.merge(headers.common,headers[config.method]);headers&&utils$1.forEach(['delete','get','head','post','put','patch','common'],function(method){delete headers[method];});config.headers=AxiosHeaders$1.concat(contextHeaders,headers);// filter out skipped interceptors
|
|
6370
|
-
var requestInterceptorChain=[];var synchronousRequestInterceptors=true;this.interceptors.request.forEach(function unshiftRequestInterceptors(interceptor){if(typeof interceptor.runWhen==='function'&&interceptor.runWhen(config)===false){return;}synchronousRequestInterceptors=synchronousRequestInterceptors&&interceptor.synchronous;requestInterceptorChain.unshift(interceptor.fulfilled,interceptor.rejected);});var responseInterceptorChain=[];this.interceptors.response.forEach(function pushResponseInterceptors(interceptor){responseInterceptorChain.push(interceptor.fulfilled,interceptor.rejected);});var promise;var i=0;var len;if(!synchronousRequestInterceptors){var chain=[dispatchRequest.bind(this),undefined];chain.unshift.apply(chain,requestInterceptorChain);chain.push.apply(chain,responseInterceptorChain);len=chain.length;promise=Promise.resolve(config);while(i<len){promise=promise.then(chain[i++],chain[i++]);}return promise;}len=requestInterceptorChain.length;var newConfig=config;
|
|
6373
|
+
var requestInterceptorChain=[];var synchronousRequestInterceptors=true;this.interceptors.request.forEach(function unshiftRequestInterceptors(interceptor){if(typeof interceptor.runWhen==='function'&&interceptor.runWhen(config)===false){return;}synchronousRequestInterceptors=synchronousRequestInterceptors&&interceptor.synchronous;requestInterceptorChain.unshift(interceptor.fulfilled,interceptor.rejected);});var responseInterceptorChain=[];this.interceptors.response.forEach(function pushResponseInterceptors(interceptor){responseInterceptorChain.push(interceptor.fulfilled,interceptor.rejected);});var promise;var i=0;var len;if(!synchronousRequestInterceptors){var chain=[dispatchRequest.bind(this),undefined];chain.unshift.apply(chain,requestInterceptorChain);chain.push.apply(chain,responseInterceptorChain);len=chain.length;promise=Promise.resolve(config);while(i<len){promise=promise.then(chain[i++],chain[i++]);}return promise;}len=requestInterceptorChain.length;var newConfig=config;while(i<len){var onFulfilled=requestInterceptorChain[i++];var onRejected=requestInterceptorChain[i++];try{newConfig=onFulfilled(newConfig);}catch(error){onRejected.call(this,error);break;}}try{promise=dispatchRequest.call(this,newConfig);}catch(error){return Promise.reject(error);}i=0;len=responseInterceptorChain.length;while(i<len){promise=promise.then(responseInterceptorChain[i++],responseInterceptorChain[i++]);}return promise;}},{key:"getUri",value:function getUri(config){config=mergeConfig(this.defaults,config);var fullPath=buildFullPath(config.baseURL,config.url,config.allowAbsoluteUrls);return buildURL(fullPath,config.params,config.paramsSerializer);}}]);}();// Provide aliases for supported request methods
|
|
6371
6374
|
utils$1.forEach(['delete','get','head','options'],function forEachMethodNoData(method){/*eslint func-names:0*/Axios.prototype[method]=function(url,config){return this.request(mergeConfig(config||{},{method:method,url:url,data:(config||{}).data}));};});utils$1.forEach(['post','put','patch'],function forEachMethodWithData(method){/*eslint func-names:0*/function generateHTTPMethod(isForm){return function httpMethod(url,data,config){return this.request(mergeConfig(config||{},{method:method,headers:isForm?{'Content-Type':'multipart/form-data'}:{},url:url,data:data}));};}Axios.prototype[method]=generateHTTPMethod();Axios.prototype[method+'Form']=generateHTTPMethod(true);});var Axios$1=Axios;/**
|
|
6372
6375
|
* A `CancelToken` is an object that can be used to request cancellation of an operation.
|
|
6373
6376
|
*
|
|
@@ -6413,7 +6416,7 @@ return;}token.reason=new CanceledError(message,config,request);resolvePromise(to
|
|
|
6413
6416
|
* @param {*} payload The value to test
|
|
6414
6417
|
*
|
|
6415
6418
|
* @returns {boolean} True if the payload is an error thrown by Axios, otherwise false
|
|
6416
|
-
*/function isAxiosError(payload){return utils$1.isObject(payload)&&payload.isAxiosError===true;}var HttpStatusCode={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(HttpStatusCode).forEach(function(
|
|
6419
|
+
*/function isAxiosError(payload){return utils$1.isObject(payload)&&payload.isAxiosError===true;}var HttpStatusCode={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(HttpStatusCode).forEach(function(_ref20){var _ref21=_slicedToArray(_ref20,2),key=_ref21[0],value=_ref21[1];HttpStatusCode[value]=key;});var HttpStatusCode$1=HttpStatusCode;/**
|
|
6417
6420
|
* Create an instance of Axios
|
|
6418
6421
|
*
|
|
6419
6422
|
* @param {Object} defaultConfig The default config for the instance
|
|
@@ -6441,10 +6444,10 @@ var axios$1=axios;var AbstractHttpClient=/*#__PURE__*/function(){function Abstra
|
|
|
6441
6444
|
return _createClass(HttpRequestOptions,[{key:"setUrl",value:function setUrl(url){if(!url)throw new Error("The 'url' property is required");this.url=url;}},{key:"setMethod",value:function setMethod(method){var validMethods=['GET','POST','PUT','DELETE','PATCH','OPTIONS','HEAD'];if(!method||!validMethods.includes(method.toUpperCase())){throw new Error("The 'method' property is invalid or missing");}this.method=method.toUpperCase();}},{key:"setData",value:function setData(data){if(data===undefined||data===null){throw new Error("The 'data' property is required");}this.data=data;}// Optional fields
|
|
6442
6445
|
},{key:"setParams",value:function setParams(params){if(params&&_typeof(params)!=='object'){throw new Error("The 'params' property must be an object");}this.params=params;}// Optional fields
|
|
6443
6446
|
},{key:"setHeaders",value:function setHeaders(headers){if(headers&&_typeof(headers)!=='object'){throw new Error("The 'headers' property must be an object");}this.headers=headers;}},{key:"setTimeout",value:function setTimeout(timeout){if(timeout===undefined||timeout===null||typeof timeout!=='number'){throw new Error("The 'timeout' property must be a number");}this.timeout=timeout;}}]);}();// Default client is Axios
|
|
6444
|
-
var DefaultHttpClient=/*#__PURE__*/function(_AbstractHttpClient){function DefaultHttpClient(timeout,httpsAgent){var _this2;_classCallCheck(this,DefaultHttpClient);_this2=_callSuper(this,DefaultHttpClient);if(timeout!==null&&timeout!==undefined)_this2.setTimeout(timeout);else _this2.timeout=16000;if(httpsAgent!==null&&httpsAgent!==undefined)_this2.setHttpsAgent(httpsAgent);else _this2.httpsAgent;_this2._axiosInstance=axios$1.create({});return _this2;}_inherits(DefaultHttpClient,_AbstractHttpClient);return _createClass(DefaultHttpClient,[{key:"enableHooks",value:function enableHooks(){var _this3=this;if(this.preHook&&typeof this.preHook==='function'){if(this.requestInterceptorId!==undefined){axios$1.interceptors.request.eject(this.requestInterceptorId);}this.requestInterceptorId=this._axiosInstance.interceptors.request.use(/*#__PURE__*/function(){var
|
|
6447
|
+
var DefaultHttpClient=/*#__PURE__*/function(_AbstractHttpClient){function DefaultHttpClient(timeout,httpsAgent){var _this2;_classCallCheck(this,DefaultHttpClient);_this2=_callSuper(this,DefaultHttpClient);if(timeout!==null&&timeout!==undefined)_this2.setTimeout(timeout);else _this2.timeout=16000;if(httpsAgent!==null&&httpsAgent!==undefined)_this2.setHttpsAgent(httpsAgent);else _this2.httpsAgent;_this2._axiosInstance=axios$1.create({});return _this2;}_inherits(DefaultHttpClient,_AbstractHttpClient);return _createClass(DefaultHttpClient,[{key:"enableHooks",value:function enableHooks(){var _this3=this;if(this.preHook&&typeof this.preHook==='function'){if(this.requestInterceptorId!==undefined){axios$1.interceptors.request.eject(this.requestInterceptorId);}this.requestInterceptorId=this._axiosInstance.interceptors.request.use(/*#__PURE__*/function(){var _ref22=_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee9(config){return _regenerator().w(function(_context0){while(1)switch(_context0.n){case 0:_context0.n=1;return _this3.preHook(config);case 1:config=_context0.v;return _context0.a(2,config);}},_callee9);}));return function(_x1){return _ref22.apply(this,arguments);};}(),function(error){// Handle errors before the request is sent
|
|
6445
6448
|
console.error('Request Pre-Hook Error:',error.message);return Promise.reject(error);});}if(this.postHook&&typeof this.postHook==='function'){// Response interceptor (for post-hooks)
|
|
6446
|
-
if(this.responseInterceptorId!==undefined){axios$1.interceptors.response.eject(this.responseInterceptorId);}this.responseInterceptorId=this._axiosInstance.interceptors.response.use(/*#__PURE__*/function(){var
|
|
6447
|
-
return _context10.a(2,Promise.reject(error));}},_callee1);}));return function(_x11){return
|
|
6449
|
+
if(this.responseInterceptorId!==undefined){axios$1.interceptors.response.eject(this.responseInterceptorId);}this.responseInterceptorId=this._axiosInstance.interceptors.response.use(/*#__PURE__*/function(){var _ref23=_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee0(response){return _regenerator().w(function(_context1){while(1)switch(_context1.n){case 0:_context1.n=1;return _this3.postHook(response);case 1:response=_context1.v;return _context1.a(2,response);}},_callee0);}));return function(_x10){return _ref23.apply(this,arguments);};}(),/*#__PURE__*/function(){var _ref24=_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee1(error){return _regenerator().w(function(_context10){while(1)switch(_context10.n){case 0:console.error('Post-Hook: Response Error',error.message);// Optionally call post-hook in case of errors
|
|
6450
|
+
return _context10.a(2,Promise.reject(error));}},_callee1);}));return function(_x11){return _ref24.apply(this,arguments);};}());}}},{key:"request",value:function request(httpRequestOptions){if(!(httpRequestOptions instanceof HttpRequestOptions)){throw new Error("httpRequestOptions must be instance of HttpRequestOptions ");}var config=this.toAxiosConfig(httpRequestOptions);return this._axiosInstance.request(config);}// Method to generate Axios-compatible config
|
|
6448
6451
|
},{key:"toAxiosConfig",value:function toAxiosConfig(httpRequestOptions){if(!httpRequestOptions.url||!httpRequestOptions.method){throw new Error("Mandatory fields 'url' and 'method' must be set before making a request");}var config={url:httpRequestOptions.url,method:httpRequestOptions.method};if(httpRequestOptions.params)config.params=httpRequestOptions.params;if(httpRequestOptions.headers)config.headers=httpRequestOptions.headers;if(httpRequestOptions.data)config.data=httpRequestOptions.data;if(this.timeout!=null&&this.timeout!=undefined)config.timeout=this.timeout;if(this.httpsAgent)config.httpsAgent=this.httpsAgent;return config;}}]);}(AbstractHttpClient);var logLevelEnum={level:{LNone:'none',LError:'error',LDebug:'debug',LTrace:'trace'}};var logFormatEnum={formats:{JSON:'json',TEXT:'text'}};var Logger=/*#__PURE__*/function(){function Logger(){_classCallCheck(this,Logger);this.log_level=logLevelEnum.level.LNone;this.log_format=logFormatEnum.formats.TEXT;this.log_to_console=true;this.log_file_path;this.log_response_body=false;this.log_request_body=false;this.setLogger();}return _createClass(Logger,[{key:"logLevelEnum",get:function get(){return logLevelEnum;}},{key:"logFormatEnum",get:function get(){return logFormatEnum;}},{key:"setLogger",value:function setLogger(){}},{key:"log",value:function log(level,statusCode,method,url,requestHeaders,responseHeaders,requestBody,responseBody){var content=this.formatLog(level,statusCode,method,url,requestHeaders,responseHeaders,requestBody,responseBody);if(typeof window!=='undefined'){var shouldLog=this.calculateLogLevel(level);if(shouldLog>0&&this.log_to_console===true){if(this.log_format===this.logFormatEnum.formats.JSON){console.log(content);}else{console.log("".concat(level.toUpperCase(),": ").concat(content));}}}else{if(this.logger.transports.length>0)this.logger.log(level,content);}}},{key:"calculateLogLevel",value:function calculateLogLevel(level){switch(this.log_level){case this.logLevelEnum.level.LError:if(level!==this.logLevelEnum.level.LError){return-1;}return 1;case this.logLevelEnum.level.LDebug:if(level===this.logLevelEnum.level.LTrace){return-1;}return 1;case this.logLevelEnum.level.LTrace:return 1;default:return-1;}}},{key:"formatLog",value:function formatLog(level,statusCode,method,url,requestHeaders,responseHeaders,requestBody,responseBody){var result;var localRequestHeaders=requestHeaders?JSON.parse(JSON.stringify(requestHeaders)):null;var localResponseHeaders=responseHeaders?JSON.parse(JSON.stringify(responseHeaders)):null;var localRequestBody=requestBody?JSON.parse(JSON.stringify(requestBody)):null;var localResponseBody=responseBody?JSON.parse(JSON.stringify(responseBody)):null;if(requestHeaders)localRequestHeaders['Authorization']='[REDACTED]';if(!this.log_request_body)localRequestBody=undefined;if(!this.log_response_body)localResponseBody=undefined;if(this.log_format&&this.log_format===logFormatEnum.formats.JSON){result={level:level,date:new Date().toISOString(),method:method,url:decodeURIComponent(url),correlationId:localResponseHeaders?localResponseHeaders['inin-correlation-id']?localResponseHeaders['inin-correlation-id']:'':'',statusCode:statusCode};if(localRequestHeaders)result.requestHeaders=localRequestHeaders;if(localResponseHeaders)result.responseHeaders=localResponseHeaders;if(localRequestBody)result.requestBody=localRequestBody;if(localResponseBody)result.responseBody=localResponseBody;}else{result="".concat(new Date().toISOString(),"\n=== REQUEST === \n").concat(this.formatValue('URL',decodeURIComponent(url))).concat(this.formatValue('Method',method)).concat(this.formatValue('Headers',this.formatHeaderString(localRequestHeaders))).concat(this.formatValue('Body',localRequestBody?JSON.stringify(localRequestBody,null,2):''),"\n=== RESPONSE ===\n").concat(this.formatValue('Status',statusCode)).concat(this.formatValue('Headers',this.formatHeaderString(localResponseHeaders))).concat(this.formatValue('CorrelationId',localResponseHeaders?localResponseHeaders['inin-correlation-id']?localResponseHeaders['inin-correlation-id']:'':'')).concat(this.formatValue('Body',localResponseBody?JSON.stringify(localResponseBody,null,2):''));}return result;}},{key:"formatHeaderString",value:function formatHeaderString(headers){var headerString='';if(!headers)return headerString;for(var _i=0,_Object$entries=Object.entries(headers);_i<_Object$entries.length;_i++){var _Object$entries$_i=_slicedToArray(_Object$entries[_i],2),key=_Object$entries$_i[0],value=_Object$entries$_i[1];headerString+="\n\t".concat(key,": ").concat(value);}return headerString;}},{key:"formatValue",value:function formatValue(key,value){if(!value||value===''||value==='{}')return'';return"".concat(key,": ").concat(value,"\n");}},{key:"getLogLevel",value:function getLogLevel(level){switch(level){case'error':return logLevelEnum.level.LError;case'debug':return logLevelEnum.level.LDebug;case'trace':return logLevelEnum.level.LTrace;default:return logLevelEnum.level.LNone;}}},{key:"getLogFormat",value:function getLogFormat(format){switch(format){case'json':return logFormatEnum.formats.JSON;default:return logFormatEnum.formats.TEXT;}}}]);}();var Configuration=/*#__PURE__*/function(){function Configuration(){_classCallCheck(this,Configuration);if(!Configuration.instance){Configuration.instance=this;}if(typeof window!=='undefined'){this.configPath='';}else{var os=require('os');var path=require('path');this.configPath=path.join(os.homedir(),'.genesyscloudjavascript','config');}this.watchedConfigPath;this.refresh_access_token=true;this.refresh_token_wait_max=10;this._live_reload_config=true;this.host;this.environment;this.basePath;this.authUrl;this.config;this.gateway=undefined;this.logger=new Logger();this.setEnvironment();this.liveLoadConfig();}/**
|
|
6449
6452
|
* live_reload_config getter
|
|
6450
6453
|
*/return _createClass(Configuration,[{key:"instance",get:/**
|
|
@@ -6474,7 +6477,7 @@ if(env)this.environment=env;else this.environment=this.host?this.host:'mypureclo
|
|
|
6474
6477
|
this.environment=this.environment.replace(/\/+$/,'');// Strip protocol and subdomain
|
|
6475
6478
|
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];}}}]);}();/**
|
|
6476
6479
|
* @module purecloud-platform-client-v2/ApiClient
|
|
6477
|
-
* @version
|
|
6480
|
+
* @version 231.0.0
|
|
6478
6481
|
*/var ApiClient=/*#__PURE__*/function(){/**
|
|
6479
6482
|
* Manages low level client-server communications, parameter marshalling, etc. There should not be any need for an
|
|
6480
6483
|
* application to use this class directly - the *Api and model classes provide the public API for the service. The
|
|
@@ -6817,7 +6820,7 @@ resolve(data);})["catch"](function(error){var data=error;if(error.response&&erro
|
|
|
6817
6820
|
that.config.logger.log('error',error.response.status,httpMethod,url,request.headers,error.response.headers,bodyParam,error.response.data);data=that.returnExtended===true?{status:error.response.status,statusText:error.response.statusText,headers:error.response.headers,body:error.response.data,text:error.response.text,error:error}:error.response.data?error.response.data:error.response.text;}reject(data);});}});}}]);}();var AIStudioApi=/*#__PURE__*/function(){/**
|
|
6818
6821
|
* AIStudio service.
|
|
6819
6822
|
* @module purecloud-platform-client-v2/api/AIStudioApi
|
|
6820
|
-
* @version
|
|
6823
|
+
* @version 231.0.0
|
|
6821
6824
|
*//**
|
|
6822
6825
|
* Constructs a new AIStudioApi.
|
|
6823
6826
|
* @alias module:purecloud-platform-client-v2/api/AIStudioApi
|
|
@@ -6825,12 +6828,32 @@ that.config.logger.log('error',error.response.status,httpMethod,url,request.head
|
|
|
6825
6828
|
* @param {module:purecloud-platform-client-v2/ApiClient} apiClient Optional API client implementation to use,
|
|
6826
6829
|
* default to {@link module:purecloud-platform-client-v2/ApiClient#instance} if unspecified.
|
|
6827
6830
|
*/function AIStudioApi(apiClient){_classCallCheck(this,AIStudioApi);this.apiClient=apiClient||ApiClient.instance;}/**
|
|
6831
|
+
* Delete a summary setting.
|
|
6832
|
+
*
|
|
6833
|
+
* @param {String} summarySettingId Summary setting id
|
|
6834
|
+
*/return _createClass(AIStudioApi,[{key:"deleteConversationsSummariesSetting",value:function deleteConversationsSummariesSetting(summarySettingId){// verify the required parameter 'summarySettingId' is set
|
|
6835
|
+
if(summarySettingId===undefined||summarySettingId===null||summarySettingId===''){throw'Missing the required parameter "summarySettingId" when calling deleteConversationsSummariesSetting';}return this.apiClient.callApi('/api/v2/conversations/summaries/settings/{summarySettingId}','DELETE',{'summarySettingId':summarySettingId},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
6828
6836
|
* Start the deletion of a guide.
|
|
6829
6837
|
*
|
|
6830
6838
|
* @param {String} guideId Guide ID
|
|
6831
6839
|
* deleteGuideJobs is a preview method and is subject to both breaking and non-breaking changes at any time without notice
|
|
6832
|
-
*/
|
|
6840
|
+
*/},{key:"deleteGuideJobs",value:function deleteGuideJobs(guideId){// verify the required parameter 'guideId' is set
|
|
6833
6841
|
if(guideId===undefined||guideId===null||guideId===''){throw'Missing the required parameter "guideId" when calling deleteGuideJobs';}return this.apiClient.callApi('/api/v2/guides/{guideId}/jobs','DELETE',{'guideId':guideId},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
6842
|
+
* Receive a summary setting.
|
|
6843
|
+
*
|
|
6844
|
+
* @param {String} summarySettingId Summary setting id
|
|
6845
|
+
*/},{key:"getConversationsSummariesSetting",value:function getConversationsSummariesSetting(summarySettingId){// verify the required parameter 'summarySettingId' is set
|
|
6846
|
+
if(summarySettingId===undefined||summarySettingId===null||summarySettingId===''){throw'Missing the required parameter "summarySettingId" when calling getConversationsSummariesSetting';}return this.apiClient.callApi('/api/v2/conversations/summaries/settings/{summarySettingId}','GET',{'summarySettingId':summarySettingId},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
6847
|
+
* Get all summary settings.
|
|
6848
|
+
*
|
|
6849
|
+
* @param {Object} opts Optional parameters
|
|
6850
|
+
* @param {String} opts.language Filter by matching language - case insensitive.
|
|
6851
|
+
* @param {String} opts.name Filter by partially matching name - case insensitive.
|
|
6852
|
+
* @param {Object} opts.sortBy Sort by. Default value dateModified. (default to dateModified)
|
|
6853
|
+
* @param {Object} opts.sortOrder Sort Order. Default value desc. (default to desc)
|
|
6854
|
+
* @param {Number} opts.pageNumber Page number. (default to 1)
|
|
6855
|
+
* @param {Number} opts.pageSize Page size. The maximum page size is 100. (default to 25)
|
|
6856
|
+
*/},{key:"getConversationsSummariesSettings",value:function getConversationsSummariesSettings(opts){opts=opts||{};return this.apiClient.callApi('/api/v2/conversations/summaries/settings','GET',{},{'language':opts['language'],'name':opts['name'],'sortBy':opts['sortBy'],'sortOrder':opts['sortOrder'],'pageNumber':opts['pageNumber'],'pageSize':opts['pageSize']},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
6834
6857
|
* Get guide.
|
|
6835
6858
|
*
|
|
6836
6859
|
* @param {String} guideId Guide ID
|
|
@@ -6899,6 +6922,16 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
6899
6922
|
if(guideId===undefined||guideId===null||guideId===''){throw'Missing the required parameter "guideId" when calling patchGuideVersion';}// verify the required parameter 'versionId' is set
|
|
6900
6923
|
if(versionId===undefined||versionId===null||versionId===''){throw'Missing the required parameter "versionId" when calling patchGuideVersion';}// verify the required parameter 'body' is set
|
|
6901
6924
|
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling patchGuideVersion';}return this.apiClient.callApi('/api/v2/guides/{guideId}/versions/{versionId}','PATCH',{'guideId':guideId,'versionId':versionId},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
6925
|
+
* Trigger summary preview event generation.
|
|
6926
|
+
*
|
|
6927
|
+
* @param {Object} body
|
|
6928
|
+
*/},{key:"postConversationsSummariesPreview",value:function postConversationsSummariesPreview(body){// verify the required parameter 'body' is set
|
|
6929
|
+
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling postConversationsSummariesPreview';}return this.apiClient.callApi('/api/v2/conversations/summaries/preview','POST',{},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
6930
|
+
* Create a summary setting.
|
|
6931
|
+
*
|
|
6932
|
+
* @param {Object} body
|
|
6933
|
+
*/},{key:"postConversationsSummariesSettings",value:function postConversationsSummariesSettings(body){// verify the required parameter 'body' is set
|
|
6934
|
+
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling postConversationsSummariesSettings';}return this.apiClient.callApi('/api/v2/conversations/summaries/settings','POST',{},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
6902
6935
|
* Start the publishing of a guide version.
|
|
6903
6936
|
*
|
|
6904
6937
|
* @param {String} guideId Guide ID
|
|
@@ -6928,10 +6961,17 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
6928
6961
|
* @param {Object} body
|
|
6929
6962
|
* postGuidesJobs is a preview method and is subject to both breaking and non-breaking changes at any time without notice
|
|
6930
6963
|
*/},{key:"postGuidesJobs",value:function postGuidesJobs(body){// verify the required parameter 'body' is set
|
|
6931
|
-
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling postGuidesJobs';}return this.apiClient.callApi('/api/v2/guides/jobs','POST',{},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}
|
|
6964
|
+
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling postGuidesJobs';}return this.apiClient.callApi('/api/v2/guides/jobs','POST',{},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
6965
|
+
* Update a summary setting.
|
|
6966
|
+
*
|
|
6967
|
+
* @param {String} summarySettingId Summary setting id
|
|
6968
|
+
* @param {Object} body
|
|
6969
|
+
*/},{key:"putConversationsSummariesSetting",value:function putConversationsSummariesSetting(summarySettingId,body){// verify the required parameter 'summarySettingId' is set
|
|
6970
|
+
if(summarySettingId===undefined||summarySettingId===null||summarySettingId===''){throw'Missing the required parameter "summarySettingId" when calling putConversationsSummariesSetting';}// verify the required parameter 'body' is set
|
|
6971
|
+
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling putConversationsSummariesSetting';}return this.apiClient.callApi('/api/v2/conversations/summaries/settings/{summarySettingId}','PUT',{'summarySettingId':summarySettingId},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}}]);}();var AgentAssistantsApi=/*#__PURE__*/function(){/**
|
|
6932
6972
|
* AgentAssistants service.
|
|
6933
6973
|
* @module purecloud-platform-client-v2/api/AgentAssistantsApi
|
|
6934
|
-
* @version
|
|
6974
|
+
* @version 231.0.0
|
|
6935
6975
|
*//**
|
|
6936
6976
|
* Constructs a new AgentAssistantsApi.
|
|
6937
6977
|
* @alias module:purecloud-platform-client-v2/api/AgentAssistantsApi
|
|
@@ -7017,6 +7057,35 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
7017
7057
|
*/},{key:"patchAssistantQueues",value:function patchAssistantQueues(assistantId,body){// verify the required parameter 'assistantId' is set
|
|
7018
7058
|
if(assistantId===undefined||assistantId===null||assistantId===''){throw'Missing the required parameter "assistantId" when calling patchAssistantQueues';}// verify the required parameter 'body' is set
|
|
7019
7059
|
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling patchAssistantQueues';}return this.apiClient.callApi('/api/v2/assistants/{assistantId}/queues','PATCH',{'assistantId':assistantId},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
7060
|
+
* Bulk add users to assistant-queue (requires manual assignment mode).
|
|
7061
|
+
*
|
|
7062
|
+
* @param {String} assistantId Assistant ID
|
|
7063
|
+
* @param {String} queueId Queue ID
|
|
7064
|
+
* @param {Object} body
|
|
7065
|
+
*/},{key:"postAssistantQueueUsersBulkAdd",value:function postAssistantQueueUsersBulkAdd(assistantId,queueId,body){// verify the required parameter 'assistantId' is set
|
|
7066
|
+
if(assistantId===undefined||assistantId===null||assistantId===''){throw'Missing the required parameter "assistantId" when calling postAssistantQueueUsersBulkAdd';}// verify the required parameter 'queueId' is set
|
|
7067
|
+
if(queueId===undefined||queueId===null||queueId===''){throw'Missing the required parameter "queueId" when calling postAssistantQueueUsersBulkAdd';}// verify the required parameter 'body' is set
|
|
7068
|
+
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling postAssistantQueueUsersBulkAdd';}return this.apiClient.callApi('/api/v2/assistants/{assistantId}/queues/{queueId}/users/bulk/add','POST',{'assistantId':assistantId,'queueId':queueId},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
7069
|
+
* Bulk remove users from assistant-queue (requires manual assignment mode).
|
|
7070
|
+
*
|
|
7071
|
+
* @param {String} assistantId Assistant ID
|
|
7072
|
+
* @param {String} queueId Queue ID
|
|
7073
|
+
* @param {Object} body
|
|
7074
|
+
*/},{key:"postAssistantQueueUsersBulkRemove",value:function postAssistantQueueUsersBulkRemove(assistantId,queueId,body){// verify the required parameter 'assistantId' is set
|
|
7075
|
+
if(assistantId===undefined||assistantId===null||assistantId===''){throw'Missing the required parameter "assistantId" when calling postAssistantQueueUsersBulkRemove';}// verify the required parameter 'queueId' is set
|
|
7076
|
+
if(queueId===undefined||queueId===null||queueId===''){throw'Missing the required parameter "queueId" when calling postAssistantQueueUsersBulkRemove';}// verify the required parameter 'body' is set
|
|
7077
|
+
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling postAssistantQueueUsersBulkRemove';}return this.apiClient.callApi('/api/v2/assistants/{assistantId}/queues/{queueId}/users/bulk/remove','POST',{'assistantId':assistantId,'queueId':queueId},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
7078
|
+
* Query for users in the assistant-queue (requires manual assignment mode).
|
|
7079
|
+
*
|
|
7080
|
+
* @param {String} assistantId Assistant ID
|
|
7081
|
+
* @param {String} queueId Queue ID
|
|
7082
|
+
* @param {Object} body
|
|
7083
|
+
* @param {Object} opts Optional parameters
|
|
7084
|
+
* @param {Array.<String>} opts.expand Which fields, if any, to expand with.
|
|
7085
|
+
*/},{key:"postAssistantQueueUsersQuery",value:function postAssistantQueueUsersQuery(assistantId,queueId,body,opts){opts=opts||{};// verify the required parameter 'assistantId' is set
|
|
7086
|
+
if(assistantId===undefined||assistantId===null||assistantId===''){throw'Missing the required parameter "assistantId" when calling postAssistantQueueUsersQuery';}// verify the required parameter 'queueId' is set
|
|
7087
|
+
if(queueId===undefined||queueId===null||queueId===''){throw'Missing the required parameter "queueId" when calling postAssistantQueueUsersQuery';}// verify the required parameter 'body' is set
|
|
7088
|
+
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling postAssistantQueueUsersQuery';}return this.apiClient.callApi('/api/v2/assistants/{assistantId}/queues/{queueId}/users/query','POST',{'assistantId':assistantId,'queueId':queueId},{'expand':this.apiClient.buildCollectionParam(opts['expand'],'multi')},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
7020
7089
|
* Create an Assistant.
|
|
7021
7090
|
*
|
|
7022
7091
|
* @param {Object} body
|
|
@@ -7033,7 +7102,7 @@ if(queueId===undefined||queueId===null||queueId===''){throw'Missing the required
|
|
|
7033
7102
|
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(){/**
|
|
7034
7103
|
* AgentCopilot service.
|
|
7035
7104
|
* @module purecloud-platform-client-v2/api/AgentCopilotApi
|
|
7036
|
-
* @version
|
|
7105
|
+
* @version 231.0.0
|
|
7037
7106
|
*//**
|
|
7038
7107
|
* Constructs a new AgentCopilotApi.
|
|
7039
7108
|
* @alias module:purecloud-platform-client-v2/api/AgentCopilotApi
|
|
@@ -7055,7 +7124,7 @@ if(assistantId===undefined||assistantId===null||assistantId===''){throw'Missing
|
|
|
7055
7124
|
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(){/**
|
|
7056
7125
|
* AgentUI service.
|
|
7057
7126
|
* @module purecloud-platform-client-v2/api/AgentUIApi
|
|
7058
|
-
* @version
|
|
7127
|
+
* @version 231.0.0
|
|
7059
7128
|
*//**
|
|
7060
7129
|
* Constructs a new AgentUIApi.
|
|
7061
7130
|
* @alias module:purecloud-platform-client-v2/api/AgentUIApi
|
|
@@ -7089,7 +7158,7 @@ if(agentId===undefined||agentId===null||agentId===''){throw'Missing the required
|
|
|
7089
7158
|
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(){/**
|
|
7090
7159
|
* Alerting service.
|
|
7091
7160
|
* @module purecloud-platform-client-v2/api/AlertingApi
|
|
7092
|
-
* @version
|
|
7161
|
+
* @version 231.0.0
|
|
7093
7162
|
*//**
|
|
7094
7163
|
* Constructs a new AlertingApi.
|
|
7095
7164
|
* @alias module:purecloud-platform-client-v2/api/AlertingApi
|
|
@@ -7178,7 +7247,7 @@ if(ruleId===undefined||ruleId===null||ruleId===''){throw'Missing the required pa
|
|
|
7178
7247
|
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(){/**
|
|
7179
7248
|
* Analytics service.
|
|
7180
7249
|
* @module purecloud-platform-client-v2/api/AnalyticsApi
|
|
7181
|
-
* @version
|
|
7250
|
+
* @version 231.0.0
|
|
7182
7251
|
*//**
|
|
7183
7252
|
* Constructs a new AnalyticsApi.
|
|
7184
7253
|
* @alias module:purecloud-platform-client-v2/api/AnalyticsApi
|
|
@@ -7411,6 +7480,23 @@ if(jobId===undefined||jobId===null||jobId===''){throw'Missing the required param
|
|
|
7411
7480
|
* Lookup the datalake availability date and time
|
|
7412
7481
|
*
|
|
7413
7482
|
*/},{key:"getAnalyticsConversationsDetailsJobsAvailability",value:function getAnalyticsConversationsDetailsJobsAvailability(){return this.apiClient.callApi('/api/v2/analytics/conversations/details/jobs/availability','GET',{},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
7483
|
+
* Get analytics data warehouse file download
|
|
7484
|
+
*
|
|
7485
|
+
* @param {String} downloadId Unique file Id to download
|
|
7486
|
+
* getAnalyticsDataextractionDownload is a preview method and is subject to both breaking and non-breaking changes at any time without notice
|
|
7487
|
+
*/},{key:"getAnalyticsDataextractionDownload",value:function getAnalyticsDataextractionDownload(downloadId){// verify the required parameter 'downloadId' is set
|
|
7488
|
+
if(downloadId===undefined||downloadId===null||downloadId===''){throw'Missing the required parameter "downloadId" when calling getAnalyticsDataextractionDownload';}return this.apiClient.callApi('/api/v2/analytics/dataextraction/downloads/{downloadId}','GET',{'downloadId':downloadId},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
7489
|
+
* Get metadata on files available for extraction
|
|
7490
|
+
*
|
|
7491
|
+
* @param {Object} opts Optional parameters
|
|
7492
|
+
* @param {String} opts.before The cursor that points to the start of the set of entities that has been returned.
|
|
7493
|
+
* @param {String} opts.after The cursor that points to the end of the set of entities that has been returned.
|
|
7494
|
+
* @param {String} opts.pageSize Number of entities to return. Maximum of 200.
|
|
7495
|
+
* @param {String} opts.dataSchema Data schema like conversations
|
|
7496
|
+
* @param {Date} opts.dateStart Start DateTime filter. Date time is represented as an ISO-8601 string. For example: yyyy-MM-ddTHH:mm:ss[.mmm]Z
|
|
7497
|
+
* @param {Date} opts.dateEnd End DateTime filter. Date time is represented as an ISO-8601 string. For example: yyyy-MM-ddTHH:mm:ss[.mmm]Z
|
|
7498
|
+
* getAnalyticsDataextractionDownloadsMetadata is a preview method and is subject to both breaking and non-breaking changes at any time without notice
|
|
7499
|
+
*/},{key:"getAnalyticsDataextractionDownloadsMetadata",value:function getAnalyticsDataextractionDownloadsMetadata(opts){opts=opts||{};return this.apiClient.callApi('/api/v2/analytics/dataextraction/downloads/metadata','GET',{},{'before':opts['before'],'after':opts['after'],'pageSize':opts['pageSize'],'dataSchema':opts['dataSchema'],'dateStart':opts['dateStart'],'dateEnd':opts['dateEnd']},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
7414
7500
|
* Get analytics data retention setting
|
|
7415
7501
|
*
|
|
7416
7502
|
*/},{key:"getAnalyticsDataretentionSettings",value:function getAnalyticsDataretentionSettings(){return this.apiClient.callApi('/api/v2/analytics/dataretention/settings','GET',{},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
@@ -7721,6 +7807,12 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
7721
7807
|
* @param {Object} body query
|
|
7722
7808
|
*/},{key:"postAnalyticsConversationsDetailsQuery",value:function postAnalyticsConversationsDetailsQuery(body){// verify the required parameter 'body' is set
|
|
7723
7809
|
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling postAnalyticsConversationsDetailsQuery';}return this.apiClient.callApi('/api/v2/analytics/conversations/details/query','POST',{},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
7810
|
+
* Get download URLs for analytics data warehouse files
|
|
7811
|
+
*
|
|
7812
|
+
* @param {Object} body request
|
|
7813
|
+
* postAnalyticsDataextractionDownloadsBulk is a preview method and is subject to both breaking and non-breaking changes at any time without notice
|
|
7814
|
+
*/},{key:"postAnalyticsDataextractionDownloadsBulk",value:function postAnalyticsDataextractionDownloadsBulk(body){// verify the required parameter 'body' is set
|
|
7815
|
+
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling postAnalyticsDataextractionDownloadsBulk';}return this.apiClient.callApi('/api/v2/analytics/dataextraction/downloads/bulk','POST',{},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
7724
7816
|
* Query for evaluation aggregates asynchronously
|
|
7725
7817
|
*
|
|
7726
7818
|
* @param {Object} body query
|
|
@@ -7931,7 +8023,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
7931
8023
|
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(){/**
|
|
7932
8024
|
* Architect service.
|
|
7933
8025
|
* @module purecloud-platform-client-v2/api/ArchitectApi
|
|
7934
|
-
* @version
|
|
8026
|
+
* @version 231.0.0
|
|
7935
8027
|
*//**
|
|
7936
8028
|
* Constructs a new ArchitectApi.
|
|
7937
8029
|
* @alias module:purecloud-platform-client-v2/api/ArchitectApi
|
|
@@ -9065,7 +9157,7 @@ if(milestoneId===undefined||milestoneId===null||milestoneId===''){throw'Missing
|
|
|
9065
9157
|
if(flowOutcomeId===undefined||flowOutcomeId===null||flowOutcomeId===''){throw'Missing the required parameter "flowOutcomeId" when calling putFlowsOutcome';}return this.apiClient.callApi('/api/v2/flows/outcomes/{flowOutcomeId}','PUT',{'flowOutcomeId':flowOutcomeId},{},{},{},opts['body'],['PureCloud OAuth'],['application/json'],['application/json']);}}]);}();var AuditApi=/*#__PURE__*/function(){/**
|
|
9066
9158
|
* Audit service.
|
|
9067
9159
|
* @module purecloud-platform-client-v2/api/AuditApi
|
|
9068
|
-
* @version
|
|
9160
|
+
* @version 231.0.0
|
|
9069
9161
|
*//**
|
|
9070
9162
|
* Constructs a new AuditApi.
|
|
9071
9163
|
* @alias module:purecloud-platform-client-v2/api/AuditApi
|
|
@@ -9115,7 +9207,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
9115
9207
|
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(){/**
|
|
9116
9208
|
* Authorization service.
|
|
9117
9209
|
* @module purecloud-platform-client-v2/api/AuthorizationApi
|
|
9118
|
-
* @version
|
|
9210
|
+
* @version 231.0.0
|
|
9119
9211
|
*//**
|
|
9120
9212
|
* Constructs a new AuthorizationApi.
|
|
9121
9213
|
* @alias module:purecloud-platform-client-v2/api/AuthorizationApi
|
|
@@ -9550,7 +9642,7 @@ if(subjectId===undefined||subjectId===null||subjectId===''){throw'Missing the re
|
|
|
9550
9642
|
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(){/**
|
|
9551
9643
|
* Billing service.
|
|
9552
9644
|
* @module purecloud-platform-client-v2/api/BillingApi
|
|
9553
|
-
* @version
|
|
9645
|
+
* @version 231.0.0
|
|
9554
9646
|
*//**
|
|
9555
9647
|
* Constructs a new BillingApi.
|
|
9556
9648
|
* @alias module:purecloud-platform-client-v2/api/BillingApi
|
|
@@ -9627,7 +9719,7 @@ if(endDate===undefined||endDate===null){throw'Missing the required parameter "en
|
|
|
9627
9719
|
if(trustorOrgId===undefined||trustorOrgId===null||trustorOrgId===''){throw'Missing the required parameter "trustorOrgId" when calling getBillingTrusteebillingoverviewTrustorOrgId';}return this.apiClient.callApi('/api/v2/billing/trusteebillingoverview/{trustorOrgId}','GET',{'trustorOrgId':trustorOrgId},{'billingPeriodIndex':opts['billingPeriodIndex']},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}}]);}();var BusinessRulesApi=/*#__PURE__*/function(){/**
|
|
9628
9720
|
* BusinessRules service.
|
|
9629
9721
|
* @module purecloud-platform-client-v2/api/BusinessRulesApi
|
|
9630
|
-
* @version
|
|
9722
|
+
* @version 231.0.0
|
|
9631
9723
|
*//**
|
|
9632
9724
|
* Constructs a new BusinessRulesApi.
|
|
9633
9725
|
* @alias module:purecloud-platform-client-v2/api/BusinessRulesApi
|
|
@@ -9877,7 +9969,7 @@ if(schemaId===undefined||schemaId===null||schemaId===''){throw'Missing the requi
|
|
|
9877
9969
|
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling putBusinessrulesSchema';}return this.apiClient.callApi('/api/v2/businessrules/schemas/{schemaId}','PUT',{'schemaId':schemaId},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}}]);}();var CarrierServicesApi=/*#__PURE__*/function(){/**
|
|
9878
9970
|
* CarrierServices service.
|
|
9879
9971
|
* @module purecloud-platform-client-v2/api/CarrierServicesApi
|
|
9880
|
-
* @version
|
|
9972
|
+
* @version 231.0.0
|
|
9881
9973
|
*//**
|
|
9882
9974
|
* Constructs a new CarrierServicesApi.
|
|
9883
9975
|
* @alias module:purecloud-platform-client-v2/api/CarrierServicesApi
|
|
@@ -9897,7 +9989,7 @@ if(phoneNumber===undefined||phoneNumber===null){throw'Missing the required param
|
|
|
9897
9989
|
*/},{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(){/**
|
|
9898
9990
|
* Chat service.
|
|
9899
9991
|
* @module purecloud-platform-client-v2/api/ChatApi
|
|
9900
|
-
* @version
|
|
9992
|
+
* @version 231.0.0
|
|
9901
9993
|
*//**
|
|
9902
9994
|
* Constructs a new ChatApi.
|
|
9903
9995
|
* @alias module:purecloud-platform-client-v2/api/ChatApi
|
|
@@ -10128,7 +10220,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
10128
10220
|
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(){/**
|
|
10129
10221
|
* Coaching service.
|
|
10130
10222
|
* @module purecloud-platform-client-v2/api/CoachingApi
|
|
10131
|
-
* @version
|
|
10223
|
+
* @version 231.0.0
|
|
10132
10224
|
*//**
|
|
10133
10225
|
* Constructs a new CoachingApi.
|
|
10134
10226
|
* @alias module:purecloud-platform-client-v2/api/CoachingApi
|
|
@@ -10281,7 +10373,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
10281
10373
|
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(){/**
|
|
10282
10374
|
* ContentManagement service.
|
|
10283
10375
|
* @module purecloud-platform-client-v2/api/ContentManagementApi
|
|
10284
|
-
* @version
|
|
10376
|
+
* @version 231.0.0
|
|
10285
10377
|
*//**
|
|
10286
10378
|
* Constructs a new ContentManagementApi.
|
|
10287
10379
|
* @alias module:purecloud-platform-client-v2/api/ContentManagementApi
|
|
@@ -10563,7 +10655,7 @@ if(tagId===undefined||tagId===null||tagId===''){throw'Missing the required param
|
|
|
10563
10655
|
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(){/**
|
|
10564
10656
|
* Conversations service.
|
|
10565
10657
|
* @module purecloud-platform-client-v2/api/ConversationsApi
|
|
10566
|
-
* @version
|
|
10658
|
+
* @version 231.0.0
|
|
10567
10659
|
*//**
|
|
10568
10660
|
* Constructs a new ConversationsApi.
|
|
10569
10661
|
* @alias module:purecloud-platform-client-v2/api/ConversationsApi
|
|
@@ -10582,6 +10674,11 @@ if(jobId===undefined||jobId===null||jobId===''){throw'Missing the required param
|
|
|
10582
10674
|
* @param {String} jobId jobId
|
|
10583
10675
|
*/},{key:"deleteAnalyticsConversationsDetailsJob",value:function deleteAnalyticsConversationsDetailsJob(jobId){// verify the required parameter 'jobId' is set
|
|
10584
10676
|
if(jobId===undefined||jobId===null||jobId===''){throw'Missing the required parameter "jobId" when calling deleteAnalyticsConversationsDetailsJob';}return this.apiClient.callApi('/api/v2/analytics/conversations/details/jobs/{jobId}','DELETE',{'jobId':jobId},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
10677
|
+
* Update a conversation by disconnecting all of the participants
|
|
10678
|
+
*
|
|
10679
|
+
* @param {String} conversationId conversation ID
|
|
10680
|
+
*/},{key:"deleteConversation",value:function deleteConversation(conversationId){// verify the required parameter 'conversationId' is set
|
|
10681
|
+
if(conversationId===undefined||conversationId===null||conversationId===''){throw'Missing the required parameter "conversationId" when calling deleteConversation';}return this.apiClient.callApi('/api/v2/conversations/{conversationId}','DELETE',{'conversationId':conversationId},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
10585
10682
|
* Delete a code used to add a communication to this participant
|
|
10586
10683
|
*
|
|
10587
10684
|
* @param {String} conversationId conversation ID
|
|
@@ -11343,6 +11440,13 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
11343
11440
|
if(conversationId===undefined||conversationId===null||conversationId===''){throw'Missing the required parameter "conversationId" when calling patchConversationParticipantAttributes';}// verify the required parameter 'participantId' is set
|
|
11344
11441
|
if(participantId===undefined||participantId===null||participantId===''){throw'Missing the required parameter "participantId" when calling patchConversationParticipantAttributes';}// verify the required parameter 'body' is set
|
|
11345
11442
|
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling patchConversationParticipantAttributes';}return this.apiClient.callApi('/api/v2/conversations/{conversationId}/participants/{participantId}/attributes','PATCH',{'conversationId':conversationId,'participantId':participantId},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
11443
|
+
* Update a conversation by setting its recording state
|
|
11444
|
+
*
|
|
11445
|
+
* @param {String} conversationId conversation ID
|
|
11446
|
+
* @param {Object} body SetRecordingState
|
|
11447
|
+
*/},{key:"patchConversationRecordingstate",value:function patchConversationRecordingstate(conversationId,body){// verify the required parameter 'conversationId' is set
|
|
11448
|
+
if(conversationId===undefined||conversationId===null||conversationId===''){throw'Missing the required parameter "conversationId" when calling patchConversationRecordingstate';}// verify the required parameter 'body' is set
|
|
11449
|
+
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling patchConversationRecordingstate';}return this.apiClient.callApi('/api/v2/conversations/{conversationId}/recordingstate','PATCH',{'conversationId':conversationId},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
11346
11450
|
* Update the secure attributes on a conversation.
|
|
11347
11451
|
*
|
|
11348
11452
|
* @param {String} conversationId conversation ID
|
|
@@ -11393,6 +11497,13 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
11393
11497
|
*/},{key:"patchConversationsCall",value:function patchConversationsCall(conversationId,body){// verify the required parameter 'conversationId' is set
|
|
11394
11498
|
if(conversationId===undefined||conversationId===null||conversationId===''){throw'Missing the required parameter "conversationId" when calling patchConversationsCall';}// verify the required parameter 'body' is set
|
|
11395
11499
|
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling patchConversationsCall';}return this.apiClient.callApi('/api/v2/conversations/calls/{conversationId}','PATCH',{'conversationId':conversationId},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
11500
|
+
* Update a conversation by merging in other conversations to create a conference
|
|
11501
|
+
*
|
|
11502
|
+
* @param {String} conversationId conversationId
|
|
11503
|
+
* @param {Object} body UpdateConferenceRequest
|
|
11504
|
+
*/},{key:"patchConversationsCallConference",value:function patchConversationsCallConference(conversationId,body){// verify the required parameter 'conversationId' is set
|
|
11505
|
+
if(conversationId===undefined||conversationId===null||conversationId===''){throw'Missing the required parameter "conversationId" when calling patchConversationsCallConference';}// verify the required parameter 'body' is set
|
|
11506
|
+
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling patchConversationsCallConference';}return this.apiClient.callApi('/api/v2/conversations/calls/{conversationId}/conference','PATCH',{'conversationId':conversationId},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
11396
11507
|
* Update conversation participant
|
|
11397
11508
|
*
|
|
11398
11509
|
* @param {String} conversationId conversationId
|
|
@@ -12001,6 +12112,15 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
12001
12112
|
*/},{key:"postConversationsCallParticipants",value:function postConversationsCallParticipants(conversationId,body){// verify the required parameter 'conversationId' is set
|
|
12002
12113
|
if(conversationId===undefined||conversationId===null||conversationId===''){throw'Missing the required parameter "conversationId" when calling postConversationsCallParticipants';}// verify the required parameter 'body' is set
|
|
12003
12114
|
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling postConversationsCallParticipants';}return this.apiClient.callApi('/api/v2/conversations/calls/{conversationId}/participants','POST',{'conversationId':conversationId},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
12115
|
+
* Add participants to a conversation without a user context
|
|
12116
|
+
*
|
|
12117
|
+
* @param {String} conversationId conversationId
|
|
12118
|
+
* @param {String} userId userId
|
|
12119
|
+
* @param {Object} body Conversation
|
|
12120
|
+
*/},{key:"postConversationsCallParticipantsUserUserId",value:function postConversationsCallParticipantsUserUserId(conversationId,userId,body){// verify the required parameter 'conversationId' is set
|
|
12121
|
+
if(conversationId===undefined||conversationId===null||conversationId===''){throw'Missing the required parameter "conversationId" when calling postConversationsCallParticipantsUserUserId';}// verify the required parameter 'userId' is set
|
|
12122
|
+
if(userId===undefined||userId===null||userId===''){throw'Missing the required parameter "userId" when calling postConversationsCallParticipantsUserUserId';}// verify the required parameter 'body' is set
|
|
12123
|
+
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling postConversationsCallParticipantsUserUserId';}return this.apiClient.callApi('/api/v2/conversations/calls/{conversationId}/participants/user/{userId}','POST',{'conversationId':conversationId,'userId':userId},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
12004
12124
|
* Apply wrap-up for this conversation communication
|
|
12005
12125
|
*
|
|
12006
12126
|
* @param {String} conversationId conversationId
|
|
@@ -12041,6 +12161,13 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
12041
12161
|
* @param {Object} body Call request
|
|
12042
12162
|
*/},{key:"postConversationsCalls",value:function postConversationsCalls(body){// verify the required parameter 'body' is set
|
|
12043
12163
|
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling postConversationsCalls';}return this.apiClient.callApi('/api/v2/conversations/calls','POST',{},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
12164
|
+
* Create a call conversation on behalf of a user
|
|
12165
|
+
*
|
|
12166
|
+
* @param {String} userId userId
|
|
12167
|
+
* @param {Object} body Call request
|
|
12168
|
+
*/},{key:"postConversationsCallsUserUserId",value:function postConversationsCallsUserUserId(userId,body){// verify the required parameter 'userId' is set
|
|
12169
|
+
if(userId===undefined||userId===null||userId===''){throw'Missing the required parameter "userId" when calling postConversationsCallsUserUserId';}// verify the required parameter 'body' is set
|
|
12170
|
+
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling postConversationsCallsUserUserId';}return this.apiClient.callApi('/api/v2/conversations/calls/user/{userId}','POST',{'userId':userId},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
12044
12171
|
* Send a message on behalf of a communication in a chat conversation.
|
|
12045
12172
|
* This endpoint is deprecated. Please see the article https://help.genesys.cloud/articles/deprecation-removal-of-acd-web-chat-version-2/.
|
|
12046
12173
|
* @param {String} conversationId conversationId
|
|
@@ -12151,7 +12278,7 @@ if(conversationId===undefined||conversationId===null||conversationId===''){throw
|
|
|
12151
12278
|
if(participantId===undefined||participantId===null||participantId===''){throw'Missing the required parameter "participantId" when calling postConversationsEmailParticipantReplace';}// verify the required parameter 'body' is set
|
|
12152
12279
|
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling postConversationsEmailParticipantReplace';}return this.apiClient.callApi('/api/v2/conversations/emails/{conversationId}/participants/{participantId}/replace','POST',{'conversationId':conversationId,'participantId':participantId},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
12153
12280
|
* Reconnect the user to the most recently disconnected customer on a fully disconnected email conversation
|
|
12154
|
-
*
|
|
12281
|
+
* This request is not valid when using the Client Credentials OAuth grant.
|
|
12155
12282
|
* @param {String} conversationId conversationId
|
|
12156
12283
|
*/},{key:"postConversationsEmailReconnect",value:function postConversationsEmailReconnect(conversationId){// verify the required parameter 'conversationId' is set
|
|
12157
12284
|
if(conversationId===undefined||conversationId===null||conversationId===''){throw'Missing the required parameter "conversationId" when calling postConversationsEmailReconnect';}return this.apiClient.callApi('/api/v2/conversations/emails/{conversationId}/reconnect','POST',{'conversationId':conversationId},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
@@ -12575,7 +12702,7 @@ if(conversationId===undefined||conversationId===null||conversationId===''){throw
|
|
|
12575
12702
|
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(){/**
|
|
12576
12703
|
* DataExtensions service.
|
|
12577
12704
|
* @module purecloud-platform-client-v2/api/DataExtensionsApi
|
|
12578
|
-
* @version
|
|
12705
|
+
* @version 231.0.0
|
|
12579
12706
|
*//**
|
|
12580
12707
|
* Constructs a new DataExtensionsApi.
|
|
12581
12708
|
* @alias module:purecloud-platform-client-v2/api/DataExtensionsApi
|
|
@@ -12596,7 +12723,7 @@ if(coretypeName===undefined||coretypeName===null||coretypeName===''){throw'Missi
|
|
|
12596
12723
|
*/},{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(){/**
|
|
12597
12724
|
* DataPrivacy service.
|
|
12598
12725
|
* @module purecloud-platform-client-v2/api/DataPrivacyApi
|
|
12599
|
-
* @version
|
|
12726
|
+
* @version 231.0.0
|
|
12600
12727
|
*//**
|
|
12601
12728
|
* Constructs a new DataPrivacyApi.
|
|
12602
12729
|
* @alias module:purecloud-platform-client-v2/api/DataPrivacyApi
|
|
@@ -12636,7 +12763,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
12636
12763
|
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(){/**
|
|
12637
12764
|
* Downloads service.
|
|
12638
12765
|
* @module purecloud-platform-client-v2/api/DownloadsApi
|
|
12639
|
-
* @version
|
|
12766
|
+
* @version 231.0.0
|
|
12640
12767
|
*//**
|
|
12641
12768
|
* Constructs a new DownloadsApi.
|
|
12642
12769
|
* @alias module:purecloud-platform-client-v2/api/DownloadsApi
|
|
@@ -12655,7 +12782,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
12655
12782
|
if(downloadId===undefined||downloadId===null||downloadId===''){throw'Missing the required parameter "downloadId" when calling getDownload';}return this.apiClient.callApi('/api/v2/downloads/{downloadId}','GET',{'downloadId':downloadId},{'contentDisposition':opts['contentDisposition'],'issueRedirect':opts['issueRedirect'],'redirectToAuth':opts['redirectToAuth']},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}}]);}();var EmailsApi=/*#__PURE__*/function(){/**
|
|
12656
12783
|
* Emails service.
|
|
12657
12784
|
* @module purecloud-platform-client-v2/api/EmailsApi
|
|
12658
|
-
* @version
|
|
12785
|
+
* @version 231.0.0
|
|
12659
12786
|
*//**
|
|
12660
12787
|
* Constructs a new EmailsApi.
|
|
12661
12788
|
* @alias module:purecloud-platform-client-v2/api/EmailsApi
|
|
@@ -12684,7 +12811,7 @@ if(downloadId===undefined||downloadId===null||downloadId===''){throw'Missing the
|
|
|
12684
12811
|
*/},{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(){/**
|
|
12685
12812
|
* EmployeeEngagement service.
|
|
12686
12813
|
* @module purecloud-platform-client-v2/api/EmployeeEngagementApi
|
|
12687
|
-
* @version
|
|
12814
|
+
* @version 231.0.0
|
|
12688
12815
|
*//**
|
|
12689
12816
|
* Constructs a new EmployeeEngagementApi.
|
|
12690
12817
|
* @alias module:purecloud-platform-client-v2/api/EmployeeEngagementApi
|
|
@@ -12722,7 +12849,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
12722
12849
|
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(){/**
|
|
12723
12850
|
* Events service.
|
|
12724
12851
|
* @module purecloud-platform-client-v2/api/EventsApi
|
|
12725
|
-
* @version
|
|
12852
|
+
* @version 231.0.0
|
|
12726
12853
|
*//**
|
|
12727
12854
|
* Constructs a new EventsApi.
|
|
12728
12855
|
* @alias module:purecloud-platform-client-v2/api/EventsApi
|
|
@@ -12747,7 +12874,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
12747
12874
|
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(){/**
|
|
12748
12875
|
* ExternalContacts service.
|
|
12749
12876
|
* @module purecloud-platform-client-v2/api/ExternalContactsApi
|
|
12750
|
-
* @version
|
|
12877
|
+
* @version 231.0.0
|
|
12751
12878
|
*//**
|
|
12752
12879
|
* Constructs a new ExternalContactsApi.
|
|
12753
12880
|
* @alias module:purecloud-platform-client-v2/api/ExternalContactsApi
|
|
@@ -13497,7 +13624,7 @@ if(relationshipId===undefined||relationshipId===null||relationshipId===''){throw
|
|
|
13497
13624
|
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(){/**
|
|
13498
13625
|
* Fax service.
|
|
13499
13626
|
* @module purecloud-platform-client-v2/api/FaxApi
|
|
13500
|
-
* @version
|
|
13627
|
+
* @version 231.0.0
|
|
13501
13628
|
*//**
|
|
13502
13629
|
* Constructs a new FaxApi.
|
|
13503
13630
|
* @alias module:purecloud-platform-client-v2/api/FaxApi
|
|
@@ -13546,7 +13673,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
13546
13673
|
*/},{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(){/**
|
|
13547
13674
|
* Flows service.
|
|
13548
13675
|
* @module purecloud-platform-client-v2/api/FlowsApi
|
|
13549
|
-
* @version
|
|
13676
|
+
* @version 231.0.0
|
|
13550
13677
|
*//**
|
|
13551
13678
|
* Constructs a new FlowsApi.
|
|
13552
13679
|
* @alias module:purecloud-platform-client-v2/api/FlowsApi
|
|
@@ -13600,7 +13727,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
13600
13727
|
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(){/**
|
|
13601
13728
|
* Gamification service.
|
|
13602
13729
|
* @module purecloud-platform-client-v2/api/GamificationApi
|
|
13603
|
-
* @version
|
|
13730
|
+
* @version 231.0.0
|
|
13604
13731
|
*//**
|
|
13605
13732
|
* Constructs a new GamificationApi.
|
|
13606
13733
|
* @alias module:purecloud-platform-client-v2/api/GamificationApi
|
|
@@ -14253,7 +14380,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
14253
14380
|
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(){/**
|
|
14254
14381
|
* GeneralDataProtectionRegulation service.
|
|
14255
14382
|
* @module purecloud-platform-client-v2/api/GeneralDataProtectionRegulationApi
|
|
14256
|
-
* @version
|
|
14383
|
+
* @version 231.0.0
|
|
14257
14384
|
*//**
|
|
14258
14385
|
* Constructs a new GeneralDataProtectionRegulationApi.
|
|
14259
14386
|
* @alias module:purecloud-platform-client-v2/api/GeneralDataProtectionRegulationApi
|
|
@@ -14288,7 +14415,7 @@ if(searchValue===undefined||searchValue===null){throw'Missing the required param
|
|
|
14288
14415
|
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(){/**
|
|
14289
14416
|
* Geolocation service.
|
|
14290
14417
|
* @module purecloud-platform-client-v2/api/GeolocationApi
|
|
14291
|
-
* @version
|
|
14418
|
+
* @version 231.0.0
|
|
14292
14419
|
*//**
|
|
14293
14420
|
* Constructs a new GeolocationApi.
|
|
14294
14421
|
* @alias module:purecloud-platform-client-v2/api/GeolocationApi
|
|
@@ -14322,7 +14449,7 @@ if(clientId===undefined||clientId===null||clientId===''){throw'Missing the requi
|
|
|
14322
14449
|
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(){/**
|
|
14323
14450
|
* Greetings service.
|
|
14324
14451
|
* @module purecloud-platform-client-v2/api/GreetingsApi
|
|
14325
|
-
* @version
|
|
14452
|
+
* @version 231.0.0
|
|
14326
14453
|
*//**
|
|
14327
14454
|
* Constructs a new GreetingsApi.
|
|
14328
14455
|
* @alias module:purecloud-platform-client-v2/api/GreetingsApi
|
|
@@ -14450,7 +14577,7 @@ if(userId===undefined||userId===null||userId===''){throw'Missing the required pa
|
|
|
14450
14577
|
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(){/**
|
|
14451
14578
|
* Groups service.
|
|
14452
14579
|
* @module purecloud-platform-client-v2/api/GroupsApi
|
|
14453
|
-
* @version
|
|
14580
|
+
* @version 231.0.0
|
|
14454
14581
|
*//**
|
|
14455
14582
|
* Constructs a new GroupsApi.
|
|
14456
14583
|
* @alias module:purecloud-platform-client-v2/api/GroupsApi
|
|
@@ -14583,7 +14710,7 @@ if(groupId===undefined||groupId===null||groupId===''){throw'Missing the required
|
|
|
14583
14710
|
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(){/**
|
|
14584
14711
|
* IdentityProvider service.
|
|
14585
14712
|
* @module purecloud-platform-client-v2/api/IdentityProviderApi
|
|
14586
|
-
* @version
|
|
14713
|
+
* @version 231.0.0
|
|
14587
14714
|
*//**
|
|
14588
14715
|
* Constructs a new IdentityProviderApi.
|
|
14589
14716
|
* @alias module:purecloud-platform-client-v2/api/IdentityProviderApi
|
|
@@ -14739,7 +14866,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
14739
14866
|
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(){/**
|
|
14740
14867
|
* InfrastructureAsCode service.
|
|
14741
14868
|
* @module purecloud-platform-client-v2/api/InfrastructureAsCodeApi
|
|
14742
|
-
* @version
|
|
14869
|
+
* @version 231.0.0
|
|
14743
14870
|
*//**
|
|
14744
14871
|
* Constructs a new InfrastructureAsCodeApi.
|
|
14745
14872
|
* @alias module:purecloud-platform-client-v2/api/InfrastructureAsCodeApi
|
|
@@ -14793,7 +14920,7 @@ if(jobId===undefined||jobId===null||jobId===''){throw'Missing the required param
|
|
|
14793
14920
|
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(){/**
|
|
14794
14921
|
* Integrations service.
|
|
14795
14922
|
* @module purecloud-platform-client-v2/api/IntegrationsApi
|
|
14796
|
-
* @version
|
|
14923
|
+
* @version 231.0.0
|
|
14797
14924
|
*//**
|
|
14798
14925
|
* Constructs a new IntegrationsApi.
|
|
14799
14926
|
* @alias module:purecloud-platform-client-v2/api/IntegrationsApi
|
|
@@ -15480,7 +15607,7 @@ if(ucIntegrationId===undefined||ucIntegrationId===null||ucIntegrationId===''){th
|
|
|
15480
15607
|
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(){/**
|
|
15481
15608
|
* Journey service.
|
|
15482
15609
|
* @module purecloud-platform-client-v2/api/JourneyApi
|
|
15483
|
-
* @version
|
|
15610
|
+
* @version 231.0.0
|
|
15484
15611
|
*//**
|
|
15485
15612
|
* Constructs a new JourneyApi.
|
|
15486
15613
|
* @alias module:purecloud-platform-client-v2/api/JourneyApi
|
|
@@ -15800,6 +15927,14 @@ if(eventDefinitionId===undefined||eventDefinitionId===null||eventDefinitionId===
|
|
|
15800
15927
|
* @param {String} opts.interval An absolute timeframe for filtering the jobs, expressed as an ISO 8601 interval.
|
|
15801
15928
|
* @param {String} opts.statuses Job statuses to filter for
|
|
15802
15929
|
*/},{key:"getJourneyViewsJobs",value:function getJourneyViewsJobs(opts){opts=opts||{};return this.apiClient.callApi('/api/v2/journey/views/jobs','GET',{},{'pageNumber':opts['pageNumber'],'pageSize':opts['pageSize'],'interval':opts['interval'],'statuses':opts['statuses']},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
15930
|
+
* Get my jobs
|
|
15931
|
+
*
|
|
15932
|
+
* @param {Object} opts Optional parameters
|
|
15933
|
+
* @param {Number} opts.pageNumber The number of the page to return (default to 1)
|
|
15934
|
+
* @param {Number} opts.pageSize Max number of entities to return (default to 25)
|
|
15935
|
+
* @param {String} opts.interval An absolute timeframe for filtering the jobs, expressed as an ISO 8601 interval.
|
|
15936
|
+
* @param {String} opts.statuses Job statuses to filter for
|
|
15937
|
+
*/},{key:"getJourneyViewsJobsMe",value:function getJourneyViewsJobsMe(opts){opts=opts||{};return this.apiClient.callApi('/api/v2/journey/views/jobs/me','GET',{},{'pageNumber':opts['pageNumber'],'pageSize':opts['pageSize'],'interval':opts['interval'],'statuses':opts['statuses']},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
15803
15938
|
* Get the journey schedules for an organization.
|
|
15804
15939
|
*
|
|
15805
15940
|
* @param {Object} opts Optional parameters
|
|
@@ -15981,7 +16116,7 @@ if(versionId===undefined||versionId===null||versionId===''){throw'Missing the re
|
|
|
15981
16116
|
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(){/**
|
|
15982
16117
|
* Knowledge service.
|
|
15983
16118
|
* @module purecloud-platform-client-v2/api/KnowledgeApi
|
|
15984
|
-
* @version
|
|
16119
|
+
* @version 231.0.0
|
|
15985
16120
|
*//**
|
|
15986
16121
|
* Constructs a new KnowledgeApi.
|
|
15987
16122
|
* @alias module:purecloud-platform-client-v2/api/KnowledgeApi
|
|
@@ -17051,7 +17186,7 @@ if(sourceId===undefined||sourceId===null||sourceId===''){throw'Missing the requi
|
|
|
17051
17186
|
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(){/**
|
|
17052
17187
|
* LanguageUnderstanding service.
|
|
17053
17188
|
* @module purecloud-platform-client-v2/api/LanguageUnderstandingApi
|
|
17054
|
-
* @version
|
|
17189
|
+
* @version 231.0.0
|
|
17055
17190
|
*//**
|
|
17056
17191
|
* Constructs a new LanguageUnderstandingApi.
|
|
17057
17192
|
* @alias module:purecloud-platform-client-v2/api/LanguageUnderstandingApi
|
|
@@ -17153,6 +17288,28 @@ if(domainId===undefined||domainId===null||domainId===''){throw'Missing the requi
|
|
|
17153
17288
|
* @param {Number} opts.pageNumber Page number (default to 1)
|
|
17154
17289
|
* @param {Number} opts.pageSize Page size (default to 25)
|
|
17155
17290
|
*/},{key:"getLanguageunderstandingDomains",value:function getLanguageunderstandingDomains(opts){opts=opts||{};return this.apiClient.callApi('/api/v2/languageunderstanding/domains','GET',{},{'pageNumber':opts['pageNumber'],'pageSize':opts['pageSize']},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
17291
|
+
* Get list of all ignored phrases of the specified language code
|
|
17292
|
+
*
|
|
17293
|
+
* @param {String} languageCode Language Code
|
|
17294
|
+
* @param {Object} opts Optional parameters
|
|
17295
|
+
* @param {Number} opts.pageSize The page size for the listing. The max that will be returned is 200. (default to 25)
|
|
17296
|
+
* @param {Number} opts.pageNumber The page number for the listing (default to 1)
|
|
17297
|
+
* @param {String} opts.text The phrase text filter applied to the listing
|
|
17298
|
+
* @param {Object} opts.sortOrder The sort order for the listing (default to desc)
|
|
17299
|
+
* @param {Object} opts.sortBy The field to sort by for the listing (default to dateModified)
|
|
17300
|
+
*/},{key:"getLanguageunderstandingIgnorephrase",value:function getLanguageunderstandingIgnorephrase(languageCode,opts){opts=opts||{};// verify the required parameter 'languageCode' is set
|
|
17301
|
+
if(languageCode===undefined||languageCode===null||languageCode===''){throw'Missing the required parameter "languageCode" when calling getLanguageunderstandingIgnorephrase';}return this.apiClient.callApi('/api/v2/languageunderstanding/ignorephrases/{languageCode}','GET',{'languageCode':languageCode},{'pageSize':opts['pageSize'],'pageNumber':opts['pageNumber'],'text':opts['text'],'sortOrder':opts['sortOrder'],'sortBy':opts['sortBy']},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
17302
|
+
* Get list of all ignored topics of the specified language code
|
|
17303
|
+
*
|
|
17304
|
+
* @param {String} languageCode Language Code
|
|
17305
|
+
* @param {Object} opts Optional parameters
|
|
17306
|
+
* @param {Number} opts.pageSize The page size for the listing. The max that will be returned is 200. (default to 25)
|
|
17307
|
+
* @param {Number} opts.pageNumber The page number for the listing (default to 1)
|
|
17308
|
+
* @param {String} opts.text The topic text filter applied to the listing
|
|
17309
|
+
* @param {Object} opts.sortOrder The sort order for the listing (default to desc)
|
|
17310
|
+
* @param {Object} opts.sortBy The field to sort by for the listing (default to dateModified)
|
|
17311
|
+
*/},{key:"getLanguageunderstandingIgnoretopic",value:function getLanguageunderstandingIgnoretopic(languageCode,opts){opts=opts||{};// verify the required parameter 'languageCode' is set
|
|
17312
|
+
if(languageCode===undefined||languageCode===null||languageCode===''){throw'Missing the required parameter "languageCode" when calling getLanguageunderstandingIgnoretopic';}return this.apiClient.callApi('/api/v2/languageunderstanding/ignoretopics/{languageCode}','GET',{'languageCode':languageCode},{'pageSize':opts['pageSize'],'pageNumber':opts['pageNumber'],'text':opts['text'],'sortOrder':opts['sortOrder'],'sortBy':opts['sortBy']},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
17156
17313
|
* Get information about a miner.
|
|
17157
17314
|
*
|
|
17158
17315
|
* @param {String} minerId Miner ID
|
|
@@ -17280,6 +17437,34 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
17280
17437
|
* @param {Object} body The NLU Domain to create.
|
|
17281
17438
|
*/},{key:"postLanguageunderstandingDomains",value:function postLanguageunderstandingDomains(body){// verify the required parameter 'body' is set
|
|
17282
17439
|
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling postLanguageunderstandingDomains';}return this.apiClient.callApi('/api/v2/languageunderstanding/domains','POST',{},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
17440
|
+
* Add phrases to the ignored phrases list
|
|
17441
|
+
*
|
|
17442
|
+
* @param {String} languageCode Language Code
|
|
17443
|
+
* @param {Object} body Request body containing phrases to be ignored
|
|
17444
|
+
*/},{key:"postLanguageunderstandingIgnorephrase",value:function postLanguageunderstandingIgnorephrase(languageCode,body){// verify the required parameter 'languageCode' is set
|
|
17445
|
+
if(languageCode===undefined||languageCode===null||languageCode===''){throw'Missing the required parameter "languageCode" when calling postLanguageunderstandingIgnorephrase';}// verify the required parameter 'body' is set
|
|
17446
|
+
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling postLanguageunderstandingIgnorephrase';}return this.apiClient.callApi('/api/v2/languageunderstanding/ignorephrases/{languageCode}','POST',{'languageCode':languageCode},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
17447
|
+
* Delete ignored phrases
|
|
17448
|
+
*
|
|
17449
|
+
* @param {String} languageCode Language Code
|
|
17450
|
+
* @param {Object} body Request body containing entities to be removed
|
|
17451
|
+
*/},{key:"postLanguageunderstandingIgnorephraseRemove",value:function postLanguageunderstandingIgnorephraseRemove(languageCode,body){// verify the required parameter 'languageCode' is set
|
|
17452
|
+
if(languageCode===undefined||languageCode===null||languageCode===''){throw'Missing the required parameter "languageCode" when calling postLanguageunderstandingIgnorephraseRemove';}// verify the required parameter 'body' is set
|
|
17453
|
+
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling postLanguageunderstandingIgnorephraseRemove';}return this.apiClient.callApi('/api/v2/languageunderstanding/ignorephrases/{languageCode}/remove','POST',{'languageCode':languageCode},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
17454
|
+
* Add topics to the ignored topics list
|
|
17455
|
+
*
|
|
17456
|
+
* @param {String} languageCode Language Code
|
|
17457
|
+
* @param {Object} body Request body containing topics to be ignored
|
|
17458
|
+
*/},{key:"postLanguageunderstandingIgnoretopic",value:function postLanguageunderstandingIgnoretopic(languageCode,body){// verify the required parameter 'languageCode' is set
|
|
17459
|
+
if(languageCode===undefined||languageCode===null||languageCode===''){throw'Missing the required parameter "languageCode" when calling postLanguageunderstandingIgnoretopic';}// verify the required parameter 'body' is set
|
|
17460
|
+
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling postLanguageunderstandingIgnoretopic';}return this.apiClient.callApi('/api/v2/languageunderstanding/ignoretopics/{languageCode}','POST',{'languageCode':languageCode},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
17461
|
+
* Delete ignored topics
|
|
17462
|
+
*
|
|
17463
|
+
* @param {String} languageCode Language Code
|
|
17464
|
+
* @param {Object} body Request body containing entities to be removed
|
|
17465
|
+
*/},{key:"postLanguageunderstandingIgnoretopicRemove",value:function postLanguageunderstandingIgnoretopicRemove(languageCode,body){// verify the required parameter 'languageCode' is set
|
|
17466
|
+
if(languageCode===undefined||languageCode===null||languageCode===''){throw'Missing the required parameter "languageCode" when calling postLanguageunderstandingIgnoretopicRemove';}// verify the required parameter 'body' is set
|
|
17467
|
+
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling postLanguageunderstandingIgnoretopicRemove';}return this.apiClient.callApi('/api/v2/languageunderstanding/ignoretopics/{languageCode}/remove','POST',{'languageCode':languageCode},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
17283
17468
|
* Create a new draft resource.
|
|
17284
17469
|
*
|
|
17285
17470
|
* @param {String} minerId Miner ID
|
|
@@ -17310,7 +17495,7 @@ if(domainVersionId===undefined||domainVersionId===null||domainVersionId===''){th
|
|
|
17310
17495
|
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(){/**
|
|
17311
17496
|
* Languages service.
|
|
17312
17497
|
* @module purecloud-platform-client-v2/api/LanguagesApi
|
|
17313
|
-
* @version
|
|
17498
|
+
* @version 231.0.0
|
|
17314
17499
|
*//**
|
|
17315
17500
|
* Constructs a new LanguagesApi.
|
|
17316
17501
|
* @alias module:purecloud-platform-client-v2/api/LanguagesApi
|
|
@@ -17365,7 +17550,7 @@ if(userId===undefined||userId===null||userId===''){throw'Missing the required pa
|
|
|
17365
17550
|
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(){/**
|
|
17366
17551
|
* Learning service.
|
|
17367
17552
|
* @module purecloud-platform-client-v2/api/LearningApi
|
|
17368
|
-
* @version
|
|
17553
|
+
* @version 231.0.0
|
|
17369
17554
|
*//**
|
|
17370
17555
|
* Constructs a new LearningApi.
|
|
17371
17556
|
* @alias module:purecloud-platform-client-v2/api/LearningApi
|
|
@@ -17636,7 +17821,7 @@ if(moduleId===undefined||moduleId===null||moduleId===''){throw'Missing the requi
|
|
|
17636
17821
|
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(){/**
|
|
17637
17822
|
* License service.
|
|
17638
17823
|
* @module purecloud-platform-client-v2/api/LicenseApi
|
|
17639
|
-
* @version
|
|
17824
|
+
* @version 231.0.0
|
|
17640
17825
|
*//**
|
|
17641
17826
|
* Constructs a new LicenseApi.
|
|
17642
17827
|
* @alias module:purecloud-platform-client-v2/api/LicenseApi
|
|
@@ -17690,7 +17875,7 @@ if(featureName===undefined||featureName===null||featureName===''){throw'Missing
|
|
|
17690
17875
|
*/},{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(){/**
|
|
17691
17876
|
* Locations service.
|
|
17692
17877
|
* @module purecloud-platform-client-v2/api/LocationsApi
|
|
17693
|
-
* @version
|
|
17878
|
+
* @version 231.0.0
|
|
17694
17879
|
*//**
|
|
17695
17880
|
* Constructs a new LocationsApi.
|
|
17696
17881
|
* @alias module:purecloud-platform-client-v2/api/LocationsApi
|
|
@@ -17749,7 +17934,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
17749
17934
|
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(){/**
|
|
17750
17935
|
* LogCapture service.
|
|
17751
17936
|
* @module purecloud-platform-client-v2/api/LogCaptureApi
|
|
17752
|
-
* @version
|
|
17937
|
+
* @version 231.0.0
|
|
17753
17938
|
*//**
|
|
17754
17939
|
* Constructs a new LogCaptureApi.
|
|
17755
17940
|
* @alias module:purecloud-platform-client-v2/api/LogCaptureApi
|
|
@@ -17798,7 +17983,7 @@ if(userId===undefined||userId===null||userId===''){throw'Missing the required pa
|
|
|
17798
17983
|
if(userId===undefined||userId===null||userId===''){throw'Missing the required parameter "userId" when calling postDiagnosticsLogcaptureBrowserUser';}return this.apiClient.callApi('/api/v2/diagnostics/logcapture/browser/users/{userId}','POST',{'userId':userId},{},{},{},opts['body'],['PureCloud OAuth'],['application/json'],['application/json']);}}]);}();var MessagingApi=/*#__PURE__*/function(){/**
|
|
17799
17984
|
* Messaging service.
|
|
17800
17985
|
* @module purecloud-platform-client-v2/api/MessagingApi
|
|
17801
|
-
* @version
|
|
17986
|
+
* @version 231.0.0
|
|
17802
17987
|
*//**
|
|
17803
17988
|
* Constructs a new MessagingApi.
|
|
17804
17989
|
* @alias module:purecloud-platform-client-v2/api/MessagingApi
|
|
@@ -17888,7 +18073,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
17888
18073
|
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(){/**
|
|
17889
18074
|
* MobileDevices service.
|
|
17890
18075
|
* @module purecloud-platform-client-v2/api/MobileDevicesApi
|
|
17891
|
-
* @version
|
|
18076
|
+
* @version 231.0.0
|
|
17892
18077
|
*//**
|
|
17893
18078
|
* Constructs a new MobileDevicesApi.
|
|
17894
18079
|
* @alias module:purecloud-platform-client-v2/api/MobileDevicesApi
|
|
@@ -17927,7 +18112,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
17927
18112
|
if(deviceId===undefined||deviceId===null||deviceId===''){throw'Missing the required parameter "deviceId" when calling putMobiledevice';}return this.apiClient.callApi('/api/v2/mobiledevices/{deviceId}','PUT',{'deviceId':deviceId},{},{},{},opts['body'],['PureCloud OAuth'],['application/json'],['application/json']);}}]);}();var NotificationsApi=/*#__PURE__*/function(){/**
|
|
17928
18113
|
* Notifications service.
|
|
17929
18114
|
* @module purecloud-platform-client-v2/api/NotificationsApi
|
|
17930
|
-
* @version
|
|
18115
|
+
* @version 231.0.0
|
|
17931
18116
|
*//**
|
|
17932
18117
|
* Constructs a new NotificationsApi.
|
|
17933
18118
|
* @alias module:purecloud-platform-client-v2/api/NotificationsApi
|
|
@@ -17984,7 +18169,7 @@ if(channelId===undefined||channelId===null||channelId===''){throw'Missing the re
|
|
|
17984
18169
|
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(){/**
|
|
17985
18170
|
* OAuth service.
|
|
17986
18171
|
* @module purecloud-platform-client-v2/api/OAuthApi
|
|
17987
|
-
* @version
|
|
18172
|
+
* @version 231.0.0
|
|
17988
18173
|
*//**
|
|
17989
18174
|
* Constructs a new OAuthApi.
|
|
17990
18175
|
* @alias module:purecloud-platform-client-v2/api/OAuthApi
|
|
@@ -18069,7 +18254,7 @@ if(clientId===undefined||clientId===null||clientId===''){throw'Missing the requi
|
|
|
18069
18254
|
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(){/**
|
|
18070
18255
|
* Objects service.
|
|
18071
18256
|
* @module purecloud-platform-client-v2/api/ObjectsApi
|
|
18072
|
-
* @version
|
|
18257
|
+
* @version 231.0.0
|
|
18073
18258
|
*//**
|
|
18074
18259
|
* Constructs a new ObjectsApi.
|
|
18075
18260
|
* @alias module:purecloud-platform-client-v2/api/ObjectsApi
|
|
@@ -18155,7 +18340,7 @@ if(divisionId===undefined||divisionId===null||divisionId===''){throw'Missing the
|
|
|
18155
18340
|
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(){/**
|
|
18156
18341
|
* OperationalEvents service.
|
|
18157
18342
|
* @module purecloud-platform-client-v2/api/OperationalEventsApi
|
|
18158
|
-
* @version
|
|
18343
|
+
* @version 231.0.0
|
|
18159
18344
|
*//**
|
|
18160
18345
|
* Constructs a new OperationalEventsApi.
|
|
18161
18346
|
* @alias module:purecloud-platform-client-v2/api/OperationalEventsApi
|
|
@@ -18186,7 +18371,7 @@ if(eventDefinitionId===undefined||eventDefinitionId===null||eventDefinitionId===
|
|
|
18186
18371
|
*/},{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(){/**
|
|
18187
18372
|
* Organization service.
|
|
18188
18373
|
* @module purecloud-platform-client-v2/api/OrganizationApi
|
|
18189
|
-
* @version
|
|
18374
|
+
* @version 231.0.0
|
|
18190
18375
|
*//**
|
|
18191
18376
|
* Constructs a new OrganizationApi.
|
|
18192
18377
|
* @alias module:purecloud-platform-client-v2/api/OrganizationApi
|
|
@@ -18291,7 +18476,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
18291
18476
|
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(){/**
|
|
18292
18477
|
* OrganizationAuthorization service.
|
|
18293
18478
|
* @module purecloud-platform-client-v2/api/OrganizationAuthorizationApi
|
|
18294
|
-
* @version
|
|
18479
|
+
* @version 231.0.0
|
|
18295
18480
|
*//**
|
|
18296
18481
|
* Constructs a new OrganizationAuthorizationApi.
|
|
18297
18482
|
* @alias module:purecloud-platform-client-v2/api/OrganizationAuthorizationApi
|
|
@@ -18625,7 +18810,7 @@ if(trustorOrgId===undefined||trustorOrgId===null||trustorOrgId===''){throw'Missi
|
|
|
18625
18810
|
if(trusteeUserId===undefined||trusteeUserId===null||trusteeUserId===''){throw'Missing the required parameter "trusteeUserId" when calling putOrgauthorizationTrustorUser';}return this.apiClient.callApi('/api/v2/orgauthorization/trustors/{trustorOrgId}/users/{trusteeUserId}','PUT',{'trustorOrgId':trustorOrgId,'trusteeUserId':trusteeUserId},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}}]);}();var OutboundApi=/*#__PURE__*/function(){/**
|
|
18626
18811
|
* Outbound service.
|
|
18627
18812
|
* @module purecloud-platform-client-v2/api/OutboundApi
|
|
18628
|
-
* @version
|
|
18813
|
+
* @version 231.0.0
|
|
18629
18814
|
*//**
|
|
18630
18815
|
* Constructs a new OutboundApi.
|
|
18631
18816
|
* @alias module:purecloud-platform-client-v2/api/OutboundApi
|
|
@@ -19776,7 +19961,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
19776
19961
|
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(){/**
|
|
19777
19962
|
* Presence service.
|
|
19778
19963
|
* @module purecloud-platform-client-v2/api/PresenceApi
|
|
19779
|
-
* @version
|
|
19964
|
+
* @version 231.0.0
|
|
19780
19965
|
*//**
|
|
19781
19966
|
* Constructs a new PresenceApi.
|
|
19782
19967
|
* @alias module:purecloud-platform-client-v2/api/PresenceApi
|
|
@@ -19949,7 +20134,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
19949
20134
|
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(){/**
|
|
19950
20135
|
* ProcessAutomation service.
|
|
19951
20136
|
* @module purecloud-platform-client-v2/api/ProcessAutomationApi
|
|
19952
|
-
* @version
|
|
20137
|
+
* @version 231.0.0
|
|
19953
20138
|
*//**
|
|
19954
20139
|
* Constructs a new ProcessAutomationApi.
|
|
19955
20140
|
* @alias module:purecloud-platform-client-v2/api/ProcessAutomationApi
|
|
@@ -20012,7 +20197,7 @@ if(triggerId===undefined||triggerId===null||triggerId===''){throw'Missing the re
|
|
|
20012
20197
|
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(){/**
|
|
20013
20198
|
* Quality service.
|
|
20014
20199
|
* @module purecloud-platform-client-v2/api/QualityApi
|
|
20015
|
-
* @version
|
|
20200
|
+
* @version 231.0.0
|
|
20016
20201
|
*//**
|
|
20017
20202
|
* Constructs a new QualityApi.
|
|
20018
20203
|
* @alias module:purecloud-platform-client-v2/api/QualityApi
|
|
@@ -20326,6 +20511,20 @@ if(formId===undefined||formId===null||formId===''){throw'Missing the required pa
|
|
|
20326
20511
|
* @param {String} opts.name Name
|
|
20327
20512
|
* @param {Boolean} opts.onlyLatestPerContext onlyLatestPerContext (default to false)
|
|
20328
20513
|
*/},{key:"getQualityPublishedformsEvaluations",value:function getQualityPublishedformsEvaluations(opts){opts=opts||{};return this.apiClient.callApi('/api/v2/quality/publishedforms/evaluations','GET',{},{'pageSize':opts['pageSize'],'pageNumber':opts['pageNumber'],'name':opts['name'],'onlyLatestPerContext':opts['onlyLatestPerContext']},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
20514
|
+
* Get the most recent published version of an evaluation form across any division.
|
|
20515
|
+
*
|
|
20516
|
+
* @param {String} evaluationFormId Evaluation Form ID
|
|
20517
|
+
* getQualityPublishedformsEvaluationsDivisionview is a preview method and is subject to both breaking and non-breaking changes at any time without notice
|
|
20518
|
+
*/},{key:"getQualityPublishedformsEvaluationsDivisionview",value:function getQualityPublishedformsEvaluationsDivisionview(evaluationFormId){// verify the required parameter 'evaluationFormId' is set
|
|
20519
|
+
if(evaluationFormId===undefined||evaluationFormId===null||evaluationFormId===''){throw'Missing the required parameter "evaluationFormId" when calling getQualityPublishedformsEvaluationsDivisionview';}return this.apiClient.callApi('/api/v2/quality/publishedforms/evaluations/divisionviews/{evaluationFormId}','GET',{'evaluationFormId':evaluationFormId},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
20520
|
+
* Get the published evaluation forms across any division.
|
|
20521
|
+
*
|
|
20522
|
+
* @param {Object} opts Optional parameters
|
|
20523
|
+
* @param {Number} opts.pageSize Page size (default to 25)
|
|
20524
|
+
* @param {Number} opts.pageNumber Page number (default to 1)
|
|
20525
|
+
* @param {String} opts.name Name
|
|
20526
|
+
* getQualityPublishedformsEvaluationsDivisionviews is a preview method and is subject to both breaking and non-breaking changes at any time without notice
|
|
20527
|
+
*/},{key:"getQualityPublishedformsEvaluationsDivisionviews",value:function getQualityPublishedformsEvaluationsDivisionviews(opts){opts=opts||{};return this.apiClient.callApi('/api/v2/quality/publishedforms/evaluations/divisionviews','GET',{},{'pageSize':opts['pageSize'],'pageNumber':opts['pageNumber'],'name':opts['name']},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
20329
20528
|
* Get the most recent published version of a survey form.
|
|
20330
20529
|
*
|
|
20331
20530
|
* @param {String} formId Form ID
|
|
@@ -20339,6 +20538,20 @@ if(formId===undefined||formId===null||formId===''){throw'Missing the required pa
|
|
|
20339
20538
|
* @param {String} opts.name Name
|
|
20340
20539
|
* @param {Boolean} opts.onlyLatestEnabledPerContext onlyLatestEnabledPerContext (default to false)
|
|
20341
20540
|
*/},{key:"getQualityPublishedformsSurveys",value:function getQualityPublishedformsSurveys(opts){opts=opts||{};return this.apiClient.callApi('/api/v2/quality/publishedforms/surveys','GET',{},{'pageSize':opts['pageSize'],'pageNumber':opts['pageNumber'],'name':opts['name'],'onlyLatestEnabledPerContext':opts['onlyLatestEnabledPerContext']},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
20541
|
+
* Get the most recent published version of an enabled survey form across any division.
|
|
20542
|
+
*
|
|
20543
|
+
* @param {String} surveyFormId Survey Form ID
|
|
20544
|
+
* getQualityPublishedformsSurveysDivisionview is a preview method and is subject to both breaking and non-breaking changes at any time without notice
|
|
20545
|
+
*/},{key:"getQualityPublishedformsSurveysDivisionview",value:function getQualityPublishedformsSurveysDivisionview(surveyFormId){// verify the required parameter 'surveyFormId' is set
|
|
20546
|
+
if(surveyFormId===undefined||surveyFormId===null||surveyFormId===''){throw'Missing the required parameter "surveyFormId" when calling getQualityPublishedformsSurveysDivisionview';}return this.apiClient.callApi('/api/v2/quality/publishedforms/surveys/divisionviews/{surveyFormId}','GET',{'surveyFormId':surveyFormId},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
20547
|
+
* Get the published and enabled survey forms across any division.
|
|
20548
|
+
*
|
|
20549
|
+
* @param {Object} opts Optional parameters
|
|
20550
|
+
* @param {Number} opts.pageSize Page size (default to 25)
|
|
20551
|
+
* @param {Number} opts.pageNumber Page number (default to 1)
|
|
20552
|
+
* @param {String} opts.name Name
|
|
20553
|
+
* getQualityPublishedformsSurveysDivisionviews is a preview method and is subject to both breaking and non-breaking changes at any time without notice
|
|
20554
|
+
*/},{key:"getQualityPublishedformsSurveysDivisionviews",value:function getQualityPublishedformsSurveysDivisionviews(opts){opts=opts||{};return this.apiClient.callApi('/api/v2/quality/publishedforms/surveys/divisionviews','GET',{},{'pageSize':opts['pageSize'],'pageNumber':opts['pageNumber'],'name':opts['name']},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
20342
20555
|
* Get a survey for a conversation
|
|
20343
20556
|
*
|
|
20344
20557
|
* @param {String} surveyId surveyId
|
|
@@ -20502,7 +20715,7 @@ if(customerSurveyUrl===undefined||customerSurveyUrl===null){throw'Missing the re
|
|
|
20502
20715
|
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(){/**
|
|
20503
20716
|
* Recording service.
|
|
20504
20717
|
* @module purecloud-platform-client-v2/api/RecordingApi
|
|
20505
|
-
* @version
|
|
20718
|
+
* @version 231.0.0
|
|
20506
20719
|
*//**
|
|
20507
20720
|
* Constructs a new RecordingApi.
|
|
20508
20721
|
* @alias module:purecloud-platform-client-v2/api/RecordingApi
|
|
@@ -20779,7 +20992,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
20779
20992
|
*/},{key:"postRecordingCrossplatformMediaretentionpolicies",value:function postRecordingCrossplatformMediaretentionpolicies(body){// verify the required parameter 'body' is set
|
|
20780
20993
|
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling postRecordingCrossplatformMediaretentionpolicies';}return this.apiClient.callApi('/api/v2/recording/crossplatform/mediaretentionpolicies','POST',{},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
20781
20994
|
* Create a recording bulk job.
|
|
20782
|
-
* Each organization can run up to a maximum of two concurrent jobs that are either in pending or processing state. Furthermore, the recording:recording:viewSensitiveData permission is required to access recordings with PCI DSS and/or PII data when redaction is enabled for their organization. If the requester does not have that permission and includeRecordingsWithSensitiveData is set to true, then their request will be rejected.
|
|
20995
|
+
* Each organization can run up to a maximum of two concurrent jobs that are either in pending or processing state. Furthermore, the recording:recording:viewSensitiveData permission is required to access recordings with PCI DSS and/or PII data when redaction is enabled for their organization. If the requester does not have that permission and includeRecordingsWithSensitiveData is set to true, then their request will be rejected. It is recommended to query over smaller time periods so your request does not time out.
|
|
20783
20996
|
* @param {Object} body query
|
|
20784
20997
|
*/},{key:"postRecordingJobs",value:function postRecordingJobs(body){// verify the required parameter 'body' is set
|
|
20785
20998
|
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling postRecordingJobs';}return this.apiClient.callApi('/api/v2/recording/jobs','POST',{},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
@@ -20863,7 +21076,7 @@ if(orphanId===undefined||orphanId===null||orphanId===''){throw'Missing the requi
|
|
|
20863
21076
|
if(policyId===undefined||policyId===null||policyId===''){throw'Missing the required parameter "policyId" when calling putRecordingCrossplatformMediaretentionpolicy';}// verify the required parameter 'body' is set
|
|
20864
21077
|
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling putRecordingCrossplatformMediaretentionpolicy';}return this.apiClient.callApi('/api/v2/recording/crossplatform/mediaretentionpolicies/{policyId}','PUT',{'policyId':policyId},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
20865
21078
|
* Execute the recording bulk job.
|
|
20866
|
-
* A job must be executed by the same user whom originally created the job. In addition, the user must have permission to update the recordings retention.
|
|
21079
|
+
* Each organization can run up to a maximum of two concurrent jobs that are either in pending or processing state. A job must be executed by the same user whom originally created the job. In addition, the user must have permission to update the recordings retention.
|
|
20867
21080
|
* @param {String} jobId jobId
|
|
20868
21081
|
* @param {Object} body query
|
|
20869
21082
|
*/},{key:"putRecordingJob",value:function putRecordingJob(jobId,body){// verify the required parameter 'jobId' is set
|
|
@@ -20877,7 +21090,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
20877
21090
|
if(keyConfigurationId===undefined||keyConfigurationId===null||keyConfigurationId===''){throw'Missing the required parameter "keyConfigurationId" when calling putRecordingKeyconfiguration';}// verify the required parameter 'body' is set
|
|
20878
21091
|
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling putRecordingKeyconfiguration';}return this.apiClient.callApi('/api/v2/recording/keyconfigurations/{keyConfigurationId}','PUT',{'keyConfigurationId':keyConfigurationId},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
20879
21092
|
* Update a media retention policy
|
|
20880
|
-
* Policy does not work retroactively
|
|
21093
|
+
* Policy does not work retroactively. In the conditions.forUsers section, each user object can include the id field containing the users unique identifier. Example: [{"id":"<userId>"}].
|
|
20881
21094
|
* @param {String} policyId Policy ID
|
|
20882
21095
|
* @param {Object} body Policy
|
|
20883
21096
|
*/},{key:"putRecordingMediaretentionpolicy",value:function putRecordingMediaretentionpolicy(policyId,body){// verify the required parameter 'policyId' is set
|
|
@@ -20901,7 +21114,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
20901
21114
|
*/},{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(){/**
|
|
20902
21115
|
* ResponseManagement service.
|
|
20903
21116
|
* @module purecloud-platform-client-v2/api/ResponseManagementApi
|
|
20904
|
-
* @version
|
|
21117
|
+
* @version 231.0.0
|
|
20905
21118
|
*//**
|
|
20906
21119
|
* Constructs a new ResponseManagementApi.
|
|
20907
21120
|
* @alias module:purecloud-platform-client-v2/api/ResponseManagementApi
|
|
@@ -21022,7 +21235,7 @@ if(responseAssetId===undefined||responseAssetId===null||responseAssetId===''){th
|
|
|
21022
21235
|
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(){/**
|
|
21023
21236
|
* Routing service.
|
|
21024
21237
|
* @module purecloud-platform-client-v2/api/RoutingApi
|
|
21025
|
-
* @version
|
|
21238
|
+
* @version 231.0.0
|
|
21026
21239
|
*//**
|
|
21027
21240
|
* Constructs a new RoutingApi.
|
|
21028
21241
|
* @alias module:purecloud-platform-client-v2/api/RoutingApi
|
|
@@ -21197,8 +21410,10 @@ if(jobId===undefined||jobId===null||jobId===''){throw'Missing the required param
|
|
|
21197
21410
|
* Get domain
|
|
21198
21411
|
*
|
|
21199
21412
|
* @param {String} domainId domain ID
|
|
21200
|
-
|
|
21201
|
-
|
|
21413
|
+
* @param {Object} opts Optional parameters
|
|
21414
|
+
* @param {Object} opts.expand Expand options. Valid values: settings
|
|
21415
|
+
*/},{key:"getRoutingEmailDomain",value:function getRoutingEmailDomain(domainId,opts){opts=opts||{};// verify the required parameter 'domainId' is set
|
|
21416
|
+
if(domainId===undefined||domainId===null||domainId===''){throw'Missing the required parameter "domainId" when calling getRoutingEmailDomain';}return this.apiClient.callApi('/api/v2/routing/email/domains/{domainId}','GET',{'domainId':domainId},{'expand':opts['expand']},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
21202
21417
|
* Get a route
|
|
21203
21418
|
*
|
|
21204
21419
|
* @param {String} domainName email domain
|
|
@@ -21232,29 +21447,28 @@ if(domainName===undefined||domainName===null||domainName===''){throw'Missing the
|
|
|
21232
21447
|
* @param {Number} opts.pageNumber Page number (default to 1)
|
|
21233
21448
|
* @param {Boolean} opts.excludeStatus Exclude MX record data (default to false)
|
|
21234
21449
|
* @param {String} opts.filter Optional search filter that, if defined, use the **filter** syntax, eg: **mySearchedPattern**. Note that **** is considered no filter.
|
|
21235
|
-
|
|
21450
|
+
* @param {Object} opts.expand Expand options. Valid values: settings
|
|
21451
|
+
*/},{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'],'expand':opts['expand']},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
21236
21452
|
* Get domain
|
|
21237
21453
|
*
|
|
21238
21454
|
* @param {String} domainId domain ID
|
|
21239
|
-
|
|
21240
|
-
|
|
21455
|
+
* @param {Object} opts Optional parameters
|
|
21456
|
+
* @param {Object} opts.expand Expand options. Valid values: settings
|
|
21457
|
+
*/},{key:"getRoutingEmailOutboundDomain",value:function getRoutingEmailOutboundDomain(domainId,opts){opts=opts||{};// verify the required parameter 'domainId' is set
|
|
21458
|
+
if(domainId===undefined||domainId===null||domainId===''){throw'Missing the required parameter "domainId" when calling getRoutingEmailOutboundDomain';}return this.apiClient.callApi('/api/v2/routing/email/outbound/domains/{domainId}','GET',{'domainId':domainId},{'expand':opts['expand']},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
21241
21459
|
* Get activation status (cname + dkim) of an outbound domain
|
|
21242
21460
|
*
|
|
21243
21461
|
* @param {String} domainId domain ID
|
|
21244
21462
|
*/},{key:"getRoutingEmailOutboundDomainActivation",value:function getRoutingEmailOutboundDomainActivation(domainId){// verify the required parameter 'domainId' is set
|
|
21245
21463
|
if(domainId===undefined||domainId===null||domainId===''){throw'Missing the required parameter "domainId" when calling getRoutingEmailOutboundDomainActivation';}return this.apiClient.callApi('/api/v2/routing/email/outbound/domains/{domainId}/activation','GET',{'domainId':domainId},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
21246
|
-
* Search a domain across organizations
|
|
21247
|
-
*
|
|
21248
|
-
* @param {String} domainId domain ID
|
|
21249
|
-
*/},{key:"getRoutingEmailOutboundDomainSearch",value:function getRoutingEmailOutboundDomainSearch(domainId){// verify the required parameter 'domainId' is set
|
|
21250
|
-
if(domainId===undefined||domainId===null||domainId===''){throw'Missing the required parameter "domainId" when calling getRoutingEmailOutboundDomainSearch';}return this.apiClient.callApi('/api/v2/routing/email/outbound/domains/{domainId}/search','GET',{'domainId':domainId},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
21251
21464
|
* Get outbound domains
|
|
21252
21465
|
*
|
|
21253
21466
|
* @param {Object} opts Optional parameters
|
|
21254
21467
|
* @param {Number} opts.pageSize Page size (default to 25)
|
|
21255
21468
|
* @param {Number} opts.pageNumber Page number (default to 1)
|
|
21256
21469
|
* @param {String} opts.filter Optional search filter that, if defined, use the **filter** syntax, eg: **mySearchedPattern**. Note that **** is considered no filter.
|
|
21257
|
-
|
|
21470
|
+
* @param {Object} opts.expand Expand options. Valid values: settings
|
|
21471
|
+
*/},{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'],'expand':opts['expand']},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
21258
21472
|
* Get email setup
|
|
21259
21473
|
*
|
|
21260
21474
|
*/},{key:"getRoutingEmailSetup",value:function getRoutingEmailSetup(){return this.apiClient.callApi('/api/v2/routing/email/setup','GET',{},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
@@ -21830,8 +22044,8 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
21830
22044
|
*/},{key:"postRoutingEmailDomainRoutes",value:function postRoutingEmailDomainRoutes(domainName,body){// verify the required parameter 'domainName' is set
|
|
21831
22045
|
if(domainName===undefined||domainName===null||domainName===''){throw'Missing the required parameter "domainName" when calling postRoutingEmailDomainRoutes';}// verify the required parameter 'body' is set
|
|
21832
22046
|
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling postRoutingEmailDomainRoutes';}return this.apiClient.callApi('/api/v2/routing/email/domains/{domainName}/routes','POST',{'domainName':domainName},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
21833
|
-
* Tests the custom SMTP server integration connection set on this domain
|
|
21834
|
-
* The request body is optional. If omitted, this endpoint will just test the connection of the Custom SMTP Server. If the body is specified, there will be an attempt to send an email message to the server.
|
|
22047
|
+
* Tests the custom SMTP server integration connection set on this ACD domain
|
|
22048
|
+
* The request body is optional. If omitted, this endpoint will just test the connection of the Custom SMTP Server used by the ACD domain. If the body is specified, there will be an attempt to send an email message to the server.
|
|
21835
22049
|
* @param {String} domainId domain ID
|
|
21836
22050
|
* @param {Object} opts Optional parameters
|
|
21837
22051
|
* @param {Object} opts.body TestMessage
|
|
@@ -22078,7 +22292,7 @@ if(userId===undefined||userId===null||userId===''){throw'Missing the required pa
|
|
|
22078
22292
|
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(){/**
|
|
22079
22293
|
* SCIM service.
|
|
22080
22294
|
* @module purecloud-platform-client-v2/api/SCIMApi
|
|
22081
|
-
* @version
|
|
22295
|
+
* @version 231.0.0
|
|
22082
22296
|
*//**
|
|
22083
22297
|
* Constructs a new SCIMApi.
|
|
22084
22298
|
* @alias module:purecloud-platform-client-v2/api/SCIMApi
|
|
@@ -22303,7 +22517,7 @@ if(userId===undefined||userId===null||userId===''){throw'Missing the required pa
|
|
|
22303
22517
|
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(){/**
|
|
22304
22518
|
* ScreenRecording service.
|
|
22305
22519
|
* @module purecloud-platform-client-v2/api/ScreenRecordingApi
|
|
22306
|
-
* @version
|
|
22520
|
+
* @version 231.0.0
|
|
22307
22521
|
*//**
|
|
22308
22522
|
* Constructs a new ScreenRecordingApi.
|
|
22309
22523
|
* @alias module:purecloud-platform-client-v2/api/ScreenRecordingApi
|
|
@@ -22318,7 +22532,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
22318
22532
|
*/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(){/**
|
|
22319
22533
|
* Scripts service.
|
|
22320
22534
|
* @module purecloud-platform-client-v2/api/ScriptsApi
|
|
22321
|
-
* @version
|
|
22535
|
+
* @version 231.0.0
|
|
22322
22536
|
*//**
|
|
22323
22537
|
* Constructs a new ScriptsApi.
|
|
22324
22538
|
* @alias module:purecloud-platform-client-v2/api/ScriptsApi
|
|
@@ -22464,7 +22678,7 @@ if(scriptId===undefined||scriptId===null||scriptId===''){throw'Missing the requi
|
|
|
22464
22678
|
*/},{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(){/**
|
|
22465
22679
|
* Search service.
|
|
22466
22680
|
* @module purecloud-platform-client-v2/api/SearchApi
|
|
22467
|
-
* @version
|
|
22681
|
+
* @version 231.0.0
|
|
22468
22682
|
*//**
|
|
22469
22683
|
* Constructs a new SearchApi.
|
|
22470
22684
|
* @alias module:purecloud-platform-client-v2/api/SearchApi
|
|
@@ -22631,7 +22845,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
22631
22845
|
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(){/**
|
|
22632
22846
|
* Settings service.
|
|
22633
22847
|
* @module purecloud-platform-client-v2/api/SettingsApi
|
|
22634
|
-
* @version
|
|
22848
|
+
* @version 231.0.0
|
|
22635
22849
|
*//**
|
|
22636
22850
|
* Constructs a new SettingsApi.
|
|
22637
22851
|
* @alias module:purecloud-platform-client-v2/api/SettingsApi
|
|
@@ -22703,7 +22917,7 @@ if(agentId===undefined||agentId===null||agentId===''){throw'Missing the required
|
|
|
22703
22917
|
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(){/**
|
|
22704
22918
|
* SocialMedia service.
|
|
22705
22919
|
* @module purecloud-platform-client-v2/api/SocialMediaApi
|
|
22706
|
-
* @version
|
|
22920
|
+
* @version 231.0.0
|
|
22707
22921
|
*//**
|
|
22708
22922
|
* Constructs a new SocialMediaApi.
|
|
22709
22923
|
* @alias module:purecloud-platform-client-v2/api/SocialMediaApi
|
|
@@ -22738,6 +22952,15 @@ if(topicId===undefined||topicId===null||topicId===''){throw'Missing the required
|
|
|
22738
22952
|
*/},{key:"deleteSocialmediaTopicDataingestionrulesFacebookFacebookIngestionRuleId",value:function deleteSocialmediaTopicDataingestionrulesFacebookFacebookIngestionRuleId(topicId,facebookIngestionRuleId,opts){opts=opts||{};// verify the required parameter 'topicId' is set
|
|
22739
22953
|
if(topicId===undefined||topicId===null||topicId===''){throw'Missing the required parameter "topicId" when calling deleteSocialmediaTopicDataingestionrulesFacebookFacebookIngestionRuleId';}// verify the required parameter 'facebookIngestionRuleId' is set
|
|
22740
22954
|
if(facebookIngestionRuleId===undefined||facebookIngestionRuleId===null||facebookIngestionRuleId===''){throw'Missing the required parameter "facebookIngestionRuleId" when calling deleteSocialmediaTopicDataingestionrulesFacebookFacebookIngestionRuleId';}return this.apiClient.callApi('/api/v2/socialmedia/topics/{topicId}/dataingestionrules/facebook/{facebookIngestionRuleId}','DELETE',{'topicId':topicId,'facebookIngestionRuleId':facebookIngestionRuleId},{'hardDelete':opts['hardDelete']},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
22955
|
+
* Delete a Instagram data ingestion rule.
|
|
22956
|
+
*
|
|
22957
|
+
* @param {String} topicId topicId
|
|
22958
|
+
* @param {String} instagramIngestionRuleId instagramIngestionRuleId
|
|
22959
|
+
* @param {Object} opts Optional parameters
|
|
22960
|
+
* @param {Boolean} opts.hardDelete Determines whether a Instagram data ingestion rule should be soft-deleted (have it's state set to deleted) or hard-deleted (permanently removed). Set to false (soft-delete) by default. (default to false)
|
|
22961
|
+
*/},{key:"deleteSocialmediaTopicDataingestionrulesInstagramInstagramIngestionRuleId",value:function deleteSocialmediaTopicDataingestionrulesInstagramInstagramIngestionRuleId(topicId,instagramIngestionRuleId,opts){opts=opts||{};// verify the required parameter 'topicId' is set
|
|
22962
|
+
if(topicId===undefined||topicId===null||topicId===''){throw'Missing the required parameter "topicId" when calling deleteSocialmediaTopicDataingestionrulesInstagramInstagramIngestionRuleId';}// verify the required parameter 'instagramIngestionRuleId' is set
|
|
22963
|
+
if(instagramIngestionRuleId===undefined||instagramIngestionRuleId===null||instagramIngestionRuleId===''){throw'Missing the required parameter "instagramIngestionRuleId" when calling deleteSocialmediaTopicDataingestionrulesInstagramInstagramIngestionRuleId';}return this.apiClient.callApi('/api/v2/socialmedia/topics/{topicId}/dataingestionrules/instagram/{instagramIngestionRuleId}','DELETE',{'topicId':topicId,'instagramIngestionRuleId':instagramIngestionRuleId},{'hardDelete':opts['hardDelete']},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
22741
22964
|
* Delete a open data ingestion rule.
|
|
22742
22965
|
*
|
|
22743
22966
|
* @param {String} topicId topicId
|
|
@@ -22840,6 +23063,37 @@ if(dataIngestionRuleVersion===undefined||dataIngestionRuleVersion===null||dataIn
|
|
|
22840
23063
|
*/},{key:"getSocialmediaTopicDataingestionrulesFacebookFacebookIngestionRuleIdVersions",value:function getSocialmediaTopicDataingestionrulesFacebookFacebookIngestionRuleIdVersions(topicId,facebookIngestionRuleId,opts){opts=opts||{};// verify the required parameter 'topicId' is set
|
|
22841
23064
|
if(topicId===undefined||topicId===null||topicId===''){throw'Missing the required parameter "topicId" when calling getSocialmediaTopicDataingestionrulesFacebookFacebookIngestionRuleIdVersions';}// verify the required parameter 'facebookIngestionRuleId' is set
|
|
22842
23065
|
if(facebookIngestionRuleId===undefined||facebookIngestionRuleId===null||facebookIngestionRuleId===''){throw'Missing the required parameter "facebookIngestionRuleId" when calling getSocialmediaTopicDataingestionrulesFacebookFacebookIngestionRuleIdVersions';}return this.apiClient.callApi('/api/v2/socialmedia/topics/{topicId}/dataingestionrules/facebook/{facebookIngestionRuleId}/versions','GET',{'topicId':topicId,'facebookIngestionRuleId':facebookIngestionRuleId},{'pageNumber':opts['pageNumber'],'pageSize':opts['pageSize'],'includeDeleted':opts['includeDeleted']},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
23066
|
+
* Get a single Instagram data ingestion rule.
|
|
23067
|
+
*
|
|
23068
|
+
* @param {String} topicId topicId
|
|
23069
|
+
* @param {String} instagramIngestionRuleId instagramIngestionRuleId
|
|
23070
|
+
* @param {Object} opts Optional parameters
|
|
23071
|
+
* @param {Boolean} opts.includeDeleted Determines whether to include soft-deleted items in the result.
|
|
23072
|
+
*/},{key:"getSocialmediaTopicDataingestionrulesInstagramInstagramIngestionRuleId",value:function getSocialmediaTopicDataingestionrulesInstagramInstagramIngestionRuleId(topicId,instagramIngestionRuleId,opts){opts=opts||{};// verify the required parameter 'topicId' is set
|
|
23073
|
+
if(topicId===undefined||topicId===null||topicId===''){throw'Missing the required parameter "topicId" when calling getSocialmediaTopicDataingestionrulesInstagramInstagramIngestionRuleId';}// verify the required parameter 'instagramIngestionRuleId' is set
|
|
23074
|
+
if(instagramIngestionRuleId===undefined||instagramIngestionRuleId===null||instagramIngestionRuleId===''){throw'Missing the required parameter "instagramIngestionRuleId" when calling getSocialmediaTopicDataingestionrulesInstagramInstagramIngestionRuleId';}return this.apiClient.callApi('/api/v2/socialmedia/topics/{topicId}/dataingestionrules/instagram/{instagramIngestionRuleId}','GET',{'topicId':topicId,'instagramIngestionRuleId':instagramIngestionRuleId},{'includeDeleted':opts['includeDeleted']},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
23075
|
+
* Get a single Instagram data ingestion rule version.
|
|
23076
|
+
*
|
|
23077
|
+
* @param {String} topicId topicId
|
|
23078
|
+
* @param {String} instagramIngestionRuleId instagramIngestionRuleId
|
|
23079
|
+
* @param {String} dataIngestionRuleVersion version
|
|
23080
|
+
* @param {Object} opts Optional parameters
|
|
23081
|
+
* @param {Boolean} opts.includeDeleted Determines whether to include soft-deleted item in the result.
|
|
23082
|
+
*/},{key:"getSocialmediaTopicDataingestionrulesInstagramInstagramIngestionRuleIdVersion",value:function getSocialmediaTopicDataingestionrulesInstagramInstagramIngestionRuleIdVersion(topicId,instagramIngestionRuleId,dataIngestionRuleVersion,opts){opts=opts||{};// verify the required parameter 'topicId' is set
|
|
23083
|
+
if(topicId===undefined||topicId===null||topicId===''){throw'Missing the required parameter "topicId" when calling getSocialmediaTopicDataingestionrulesInstagramInstagramIngestionRuleIdVersion';}// verify the required parameter 'instagramIngestionRuleId' is set
|
|
23084
|
+
if(instagramIngestionRuleId===undefined||instagramIngestionRuleId===null||instagramIngestionRuleId===''){throw'Missing the required parameter "instagramIngestionRuleId" when calling getSocialmediaTopicDataingestionrulesInstagramInstagramIngestionRuleIdVersion';}// verify the required parameter 'dataIngestionRuleVersion' is set
|
|
23085
|
+
if(dataIngestionRuleVersion===undefined||dataIngestionRuleVersion===null||dataIngestionRuleVersion===''){throw'Missing the required parameter "dataIngestionRuleVersion" when calling getSocialmediaTopicDataingestionrulesInstagramInstagramIngestionRuleIdVersion';}return this.apiClient.callApi('/api/v2/socialmedia/topics/{topicId}/dataingestionrules/instagram/{instagramIngestionRuleId}/versions/{dataIngestionRuleVersion}','GET',{'topicId':topicId,'instagramIngestionRuleId':instagramIngestionRuleId,'dataIngestionRuleVersion':dataIngestionRuleVersion},{'includeDeleted':opts['includeDeleted']},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
23086
|
+
* Get the Instagram data ingestion rule versions.
|
|
23087
|
+
*
|
|
23088
|
+
* @param {String} topicId topicId
|
|
23089
|
+
* @param {String} instagramIngestionRuleId instagramIngestionRuleId
|
|
23090
|
+
* @param {Object} opts Optional parameters
|
|
23091
|
+
* @param {Number} opts.pageNumber Page number (default to 1)
|
|
23092
|
+
* @param {Number} opts.pageSize Page size (default to 25)
|
|
23093
|
+
* @param {Boolean} opts.includeDeleted Determines whether to include soft-deleted items in the result.
|
|
23094
|
+
*/},{key:"getSocialmediaTopicDataingestionrulesInstagramInstagramIngestionRuleIdVersions",value:function getSocialmediaTopicDataingestionrulesInstagramInstagramIngestionRuleIdVersions(topicId,instagramIngestionRuleId,opts){opts=opts||{};// verify the required parameter 'topicId' is set
|
|
23095
|
+
if(topicId===undefined||topicId===null||topicId===''){throw'Missing the required parameter "topicId" when calling getSocialmediaTopicDataingestionrulesInstagramInstagramIngestionRuleIdVersions';}// verify the required parameter 'instagramIngestionRuleId' is set
|
|
23096
|
+
if(instagramIngestionRuleId===undefined||instagramIngestionRuleId===null||instagramIngestionRuleId===''){throw'Missing the required parameter "instagramIngestionRuleId" when calling getSocialmediaTopicDataingestionrulesInstagramInstagramIngestionRuleIdVersions';}return this.apiClient.callApi('/api/v2/socialmedia/topics/{topicId}/dataingestionrules/instagram/{instagramIngestionRuleId}/versions','GET',{'topicId':topicId,'instagramIngestionRuleId':instagramIngestionRuleId},{'pageNumber':opts['pageNumber'],'pageSize':opts['pageSize'],'includeDeleted':opts['includeDeleted']},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
22843
23097
|
* Get a single open data ingestion rule.
|
|
22844
23098
|
*
|
|
22845
23099
|
* @param {String} topicId topicId
|
|
@@ -22926,6 +23180,15 @@ if(topicId===undefined||topicId===null||topicId===''){throw'Missing the required
|
|
|
22926
23180
|
*/},{key:"patchSocialmediaTopicDataingestionrulesFacebookFacebookIngestionRuleId",value:function patchSocialmediaTopicDataingestionrulesFacebookFacebookIngestionRuleId(topicId,facebookIngestionRuleId,opts){opts=opts||{};// verify the required parameter 'topicId' is set
|
|
22927
23181
|
if(topicId===undefined||topicId===null||topicId===''){throw'Missing the required parameter "topicId" when calling patchSocialmediaTopicDataingestionrulesFacebookFacebookIngestionRuleId';}// verify the required parameter 'facebookIngestionRuleId' is set
|
|
22928
23182
|
if(facebookIngestionRuleId===undefined||facebookIngestionRuleId===null||facebookIngestionRuleId===''){throw'Missing the required parameter "facebookIngestionRuleId" when calling patchSocialmediaTopicDataingestionrulesFacebookFacebookIngestionRuleId';}return this.apiClient.callApi('/api/v2/socialmedia/topics/{topicId}/dataingestionrules/facebook/{facebookIngestionRuleId}','PATCH',{'topicId':topicId,'facebookIngestionRuleId':facebookIngestionRuleId},{},{},{},opts['body'],['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
23183
|
+
* Update the status of a Instagram data ingestion rule.
|
|
23184
|
+
*
|
|
23185
|
+
* @param {String} topicId topicId
|
|
23186
|
+
* @param {String} instagramIngestionRuleId instagramIngestionRuleId
|
|
23187
|
+
* @param {Object} opts Optional parameters
|
|
23188
|
+
* @param {Object} opts.body
|
|
23189
|
+
*/},{key:"patchSocialmediaTopicDataingestionrulesInstagramInstagramIngestionRuleId",value:function patchSocialmediaTopicDataingestionrulesInstagramInstagramIngestionRuleId(topicId,instagramIngestionRuleId,opts){opts=opts||{};// verify the required parameter 'topicId' is set
|
|
23190
|
+
if(topicId===undefined||topicId===null||topicId===''){throw'Missing the required parameter "topicId" when calling patchSocialmediaTopicDataingestionrulesInstagramInstagramIngestionRuleId';}// verify the required parameter 'instagramIngestionRuleId' is set
|
|
23191
|
+
if(instagramIngestionRuleId===undefined||instagramIngestionRuleId===null||instagramIngestionRuleId===''){throw'Missing the required parameter "instagramIngestionRuleId" when calling patchSocialmediaTopicDataingestionrulesInstagramInstagramIngestionRuleId';}return this.apiClient.callApi('/api/v2/socialmedia/topics/{topicId}/dataingestionrules/instagram/{instagramIngestionRuleId}','PATCH',{'topicId':topicId,'instagramIngestionRuleId':instagramIngestionRuleId},{},{},{},opts['body'],['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
22929
23192
|
* Update the status of a open data ingestion rule.
|
|
22930
23193
|
*
|
|
22931
23194
|
* @param {String} topicId topicId
|
|
@@ -22973,6 +23236,13 @@ if(divisionId===undefined||divisionId===null){throw'Missing the required paramet
|
|
|
22973
23236
|
* @param {Object} opts.body
|
|
22974
23237
|
*/},{key:"postSocialmediaTopicDataingestionrulesFacebook",value:function postSocialmediaTopicDataingestionrulesFacebook(topicId,opts){opts=opts||{};// verify the required parameter 'topicId' is set
|
|
22975
23238
|
if(topicId===undefined||topicId===null||topicId===''){throw'Missing the required parameter "topicId" when calling postSocialmediaTopicDataingestionrulesFacebook';}return this.apiClient.callApi('/api/v2/socialmedia/topics/{topicId}/dataingestionrules/facebook','POST',{'topicId':topicId},{},{},{},opts['body'],['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
23239
|
+
* Create an Instagram data ingestion rule.
|
|
23240
|
+
*
|
|
23241
|
+
* @param {String} topicId topicId
|
|
23242
|
+
* @param {Object} opts Optional parameters
|
|
23243
|
+
* @param {Object} opts.body
|
|
23244
|
+
*/},{key:"postSocialmediaTopicDataingestionrulesInstagram",value:function postSocialmediaTopicDataingestionrulesInstagram(topicId,opts){opts=opts||{};// verify the required parameter 'topicId' is set
|
|
23245
|
+
if(topicId===undefined||topicId===null||topicId===''){throw'Missing the required parameter "topicId" when calling postSocialmediaTopicDataingestionrulesInstagram';}return this.apiClient.callApi('/api/v2/socialmedia/topics/{topicId}/dataingestionrules/instagram','POST',{'topicId':topicId},{},{},{},opts['body'],['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
22976
23246
|
* Create an open data ingestion rule.
|
|
22977
23247
|
*
|
|
22978
23248
|
* @param {String} topicId topicId
|
|
@@ -23031,6 +23301,15 @@ if(escalationRuleId===undefined||escalationRuleId===null||escalationRuleId==='')
|
|
|
23031
23301
|
*/},{key:"putSocialmediaTopicDataingestionrulesFacebookFacebookIngestionRuleId",value:function putSocialmediaTopicDataingestionrulesFacebookFacebookIngestionRuleId(topicId,facebookIngestionRuleId,opts){opts=opts||{};// verify the required parameter 'topicId' is set
|
|
23032
23302
|
if(topicId===undefined||topicId===null||topicId===''){throw'Missing the required parameter "topicId" when calling putSocialmediaTopicDataingestionrulesFacebookFacebookIngestionRuleId';}// verify the required parameter 'facebookIngestionRuleId' is set
|
|
23033
23303
|
if(facebookIngestionRuleId===undefined||facebookIngestionRuleId===null||facebookIngestionRuleId===''){throw'Missing the required parameter "facebookIngestionRuleId" when calling putSocialmediaTopicDataingestionrulesFacebookFacebookIngestionRuleId';}return this.apiClient.callApi('/api/v2/socialmedia/topics/{topicId}/dataingestionrules/facebook/{facebookIngestionRuleId}','PUT',{'topicId':topicId,'facebookIngestionRuleId':facebookIngestionRuleId},{},{},{},opts['body'],['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
23304
|
+
* Update the Instagram data ingestion rule.
|
|
23305
|
+
*
|
|
23306
|
+
* @param {String} topicId topicId
|
|
23307
|
+
* @param {String} instagramIngestionRuleId instagramIngestionRuleId
|
|
23308
|
+
* @param {Object} opts Optional parameters
|
|
23309
|
+
* @param {Object} opts.body
|
|
23310
|
+
*/},{key:"putSocialmediaTopicDataingestionrulesInstagramInstagramIngestionRuleId",value:function putSocialmediaTopicDataingestionrulesInstagramInstagramIngestionRuleId(topicId,instagramIngestionRuleId,opts){opts=opts||{};// verify the required parameter 'topicId' is set
|
|
23311
|
+
if(topicId===undefined||topicId===null||topicId===''){throw'Missing the required parameter "topicId" when calling putSocialmediaTopicDataingestionrulesInstagramInstagramIngestionRuleId';}// verify the required parameter 'instagramIngestionRuleId' is set
|
|
23312
|
+
if(instagramIngestionRuleId===undefined||instagramIngestionRuleId===null||instagramIngestionRuleId===''){throw'Missing the required parameter "instagramIngestionRuleId" when calling putSocialmediaTopicDataingestionrulesInstagramInstagramIngestionRuleId';}return this.apiClient.callApi('/api/v2/socialmedia/topics/{topicId}/dataingestionrules/instagram/{instagramIngestionRuleId}','PUT',{'topicId':topicId,'instagramIngestionRuleId':instagramIngestionRuleId},{},{},{},opts['body'],['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
23034
23313
|
* Update the open data ingestion rule.
|
|
23035
23314
|
*
|
|
23036
23315
|
* @param {String} topicId topicId
|
|
@@ -23051,7 +23330,7 @@ if(topicId===undefined||topicId===null||topicId===''){throw'Missing the required
|
|
|
23051
23330
|
if(twitterIngestionRuleId===undefined||twitterIngestionRuleId===null||twitterIngestionRuleId===''){throw'Missing the required parameter "twitterIngestionRuleId" when calling putSocialmediaTopicDataingestionrulesTwitterTwitterIngestionRuleId';}return this.apiClient.callApi('/api/v2/socialmedia/topics/{topicId}/dataingestionrules/twitter/{twitterIngestionRuleId}','PUT',{'topicId':topicId,'twitterIngestionRuleId':twitterIngestionRuleId},{},{},{},opts['body'],['PureCloud OAuth'],['application/json'],['application/json']);}}]);}();var SpeechTextAnalyticsApi=/*#__PURE__*/function(){/**
|
|
23052
23331
|
* SpeechTextAnalytics service.
|
|
23053
23332
|
* @module purecloud-platform-client-v2/api/SpeechTextAnalyticsApi
|
|
23054
|
-
* @version
|
|
23333
|
+
* @version 231.0.0
|
|
23055
23334
|
*//**
|
|
23056
23335
|
* Constructs a new SpeechTextAnalyticsApi.
|
|
23057
23336
|
* @alias module:purecloud-platform-client-v2/api/SpeechTextAnalyticsApi
|
|
@@ -23420,7 +23699,7 @@ if(topicId===undefined||topicId===null||topicId===''){throw'Missing the required
|
|
|
23420
23699
|
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(){/**
|
|
23421
23700
|
* Stations service.
|
|
23422
23701
|
* @module purecloud-platform-client-v2/api/StationsApi
|
|
23423
|
-
* @version
|
|
23702
|
+
* @version 231.0.0
|
|
23424
23703
|
*//**
|
|
23425
23704
|
* Constructs a new StationsApi.
|
|
23426
23705
|
* @alias module:purecloud-platform-client-v2/api/StationsApi
|
|
@@ -23452,7 +23731,7 @@ if(stationId===undefined||stationId===null||stationId===''){throw'Missing the re
|
|
|
23452
23731
|
*/},{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(){/**
|
|
23453
23732
|
* Suggest service.
|
|
23454
23733
|
* @module purecloud-platform-client-v2/api/SuggestApi
|
|
23455
|
-
* @version
|
|
23734
|
+
* @version 231.0.0
|
|
23456
23735
|
*//**
|
|
23457
23736
|
* Constructs a new SuggestApi.
|
|
23458
23737
|
* @alias module:purecloud-platform-client-v2/api/SuggestApi
|
|
@@ -23492,7 +23771,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
23492
23771
|
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(){/**
|
|
23493
23772
|
* TaskManagement service.
|
|
23494
23773
|
* @module purecloud-platform-client-v2/api/TaskManagementApi
|
|
23495
|
-
* @version
|
|
23774
|
+
* @version 231.0.0
|
|
23496
23775
|
*//**
|
|
23497
23776
|
* Constructs a new TaskManagementApi.
|
|
23498
23777
|
* @alias module:purecloud-platform-client-v2/api/TaskManagementApi
|
|
@@ -24000,7 +24279,7 @@ if(schemaId===undefined||schemaId===null||schemaId===''){throw'Missing the requi
|
|
|
24000
24279
|
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(){/**
|
|
24001
24280
|
* Teams service.
|
|
24002
24281
|
* @module purecloud-platform-client-v2/api/TeamsApi
|
|
24003
|
-
* @version
|
|
24282
|
+
* @version 231.0.0
|
|
24004
24283
|
*//**
|
|
24005
24284
|
* Constructs a new TeamsApi.
|
|
24006
24285
|
* @alias module:purecloud-platform-client-v2/api/TeamsApi
|
|
@@ -24080,7 +24359,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
24080
24359
|
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(){/**
|
|
24081
24360
|
* Telephony service.
|
|
24082
24361
|
* @module purecloud-platform-client-v2/api/TelephonyApi
|
|
24083
|
-
* @version
|
|
24362
|
+
* @version 231.0.0
|
|
24084
24363
|
*//**
|
|
24085
24364
|
* Constructs a new TelephonyApi.
|
|
24086
24365
|
* @alias module:purecloud-platform-client-v2/api/TelephonyApi
|
|
@@ -24151,7 +24430,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
24151
24430
|
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling putTelephonyAgentsGreetingsMe';}return this.apiClient.callApi('/api/v2/telephony/agents/greetings/me','PUT',{},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}}]);}();var TelephonyProvidersEdgeApi=/*#__PURE__*/function(){/**
|
|
24152
24431
|
* TelephonyProvidersEdge service.
|
|
24153
24432
|
* @module purecloud-platform-client-v2/api/TelephonyProvidersEdgeApi
|
|
24154
|
-
* @version
|
|
24433
|
+
* @version 231.0.0
|
|
24155
24434
|
*//**
|
|
24156
24435
|
* Constructs a new TelephonyProvidersEdgeApi.
|
|
24157
24436
|
* @alias module:purecloud-platform-client-v2/api/TelephonyProvidersEdgeApi
|
|
@@ -24999,7 +25278,7 @@ if(trunkBaseSettingsId===undefined||trunkBaseSettingsId===null||trunkBaseSetting
|
|
|
24999
25278
|
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(){/**
|
|
25000
25279
|
* Textbots service.
|
|
25001
25280
|
* @module purecloud-platform-client-v2/api/TextbotsApi
|
|
25002
|
-
* @version
|
|
25281
|
+
* @version 231.0.0
|
|
25003
25282
|
*//**
|
|
25004
25283
|
* Constructs a new TextbotsApi.
|
|
25005
25284
|
* @alias module:purecloud-platform-client-v2/api/TextbotsApi
|
|
@@ -25035,7 +25314,7 @@ if(launchRequest===undefined||launchRequest===null){throw'Missing the required p
|
|
|
25035
25314
|
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(){/**
|
|
25036
25315
|
* Tokens service.
|
|
25037
25316
|
* @module purecloud-platform-client-v2/api/TokensApi
|
|
25038
|
-
* @version
|
|
25317
|
+
* @version 231.0.0
|
|
25039
25318
|
*//**
|
|
25040
25319
|
* Constructs a new TokensApi.
|
|
25041
25320
|
* @alias module:purecloud-platform-client-v2/api/TokensApi
|
|
@@ -25069,7 +25348,7 @@ if(userId===undefined||userId===null||userId===''){throw'Missing the required pa
|
|
|
25069
25348
|
*/},{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(){/**
|
|
25070
25349
|
* Uploads service.
|
|
25071
25350
|
* @module purecloud-platform-client-v2/api/UploadsApi
|
|
25072
|
-
* @version
|
|
25351
|
+
* @version 231.0.0
|
|
25073
25352
|
*//**
|
|
25074
25353
|
* Constructs a new UploadsApi.
|
|
25075
25354
|
* @alias module:purecloud-platform-client-v2/api/UploadsApi
|
|
@@ -25137,7 +25416,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
25137
25416
|
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(){/**
|
|
25138
25417
|
* Usage service.
|
|
25139
25418
|
* @module purecloud-platform-client-v2/api/UsageApi
|
|
25140
|
-
* @version
|
|
25419
|
+
* @version 231.0.0
|
|
25141
25420
|
*//**
|
|
25142
25421
|
* Constructs a new UsageApi.
|
|
25143
25422
|
* @alias module:purecloud-platform-client-v2/api/UsageApi
|
|
@@ -25221,7 +25500,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
25221
25500
|
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(){/**
|
|
25222
25501
|
* UserRecordings service.
|
|
25223
25502
|
* @module purecloud-platform-client-v2/api/UserRecordingsApi
|
|
25224
|
-
* @version
|
|
25503
|
+
* @version 231.0.0
|
|
25225
25504
|
*//**
|
|
25226
25505
|
* Constructs a new UserRecordingsApi.
|
|
25227
25506
|
* @alias module:purecloud-platform-client-v2/api/UserRecordingsApi
|
|
@@ -25241,15 +25520,6 @@ if(recordingId===undefined||recordingId===null||recordingId===''){throw'Missing
|
|
|
25241
25520
|
* @param {Array.<String>} opts.expand Which fields, if any, to expand.
|
|
25242
25521
|
*/},{key:"getUserrecording",value:function getUserrecording(recordingId,opts){opts=opts||{};// verify the required parameter 'recordingId' is set
|
|
25243
25522
|
if(recordingId===undefined||recordingId===null||recordingId===''){throw'Missing the required parameter "recordingId" when calling getUserrecording';}return this.apiClient.callApi('/api/v2/userrecordings/{recordingId}','GET',{'recordingId':recordingId},{'expand':this.apiClient.buildCollectionParam(opts['expand'],'multi')},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
25244
|
-
* Download a user recording.
|
|
25245
|
-
* API should migrate to use GET api/v2/userrecordings/{recordingId}/transcoding
|
|
25246
|
-
* @param {String} recordingId User Recording ID
|
|
25247
|
-
* @param {Object} opts Optional parameters
|
|
25248
|
-
* @param {Object} opts.formatId The desired media format. (default to WEBM)
|
|
25249
|
-
* @param {Boolean} opts.async When set to true, api will return 202 response until the recording is ready for download
|
|
25250
|
-
* @deprecated
|
|
25251
|
-
*/},{key:"getUserrecordingMedia",value:function getUserrecordingMedia(recordingId,opts){opts=opts||{};// verify the required parameter 'recordingId' is set
|
|
25252
|
-
if(recordingId===undefined||recordingId===null||recordingId===''){throw'Missing the required parameter "recordingId" when calling getUserrecordingMedia';}return this.apiClient.callApi('/api/v2/userrecordings/{recordingId}/media','GET',{'recordingId':recordingId},{'formatId':opts['formatId'],'async':opts['async']},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
25253
25523
|
* Download a user recording.
|
|
25254
25524
|
*
|
|
25255
25525
|
* @param {String} recordingId User Recording ID
|
|
@@ -25278,7 +25548,7 @@ if(recordingId===undefined||recordingId===null||recordingId===''){throw'Missing
|
|
|
25278
25548
|
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(){/**
|
|
25279
25549
|
* Users service.
|
|
25280
25550
|
* @module purecloud-platform-client-v2/api/UsersApi
|
|
25281
|
-
* @version
|
|
25551
|
+
* @version 231.0.0
|
|
25282
25552
|
*//**
|
|
25283
25553
|
* Constructs a new UsersApi.
|
|
25284
25554
|
* @alias module:purecloud-platform-client-v2/api/UsersApi
|
|
@@ -26022,7 +26292,7 @@ if(verifierId===undefined||verifierId===null||verifierId===''){throw'Missing the
|
|
|
26022
26292
|
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(){/**
|
|
26023
26293
|
* Utilities service.
|
|
26024
26294
|
* @module purecloud-platform-client-v2/api/UtilitiesApi
|
|
26025
|
-
* @version
|
|
26295
|
+
* @version 231.0.0
|
|
26026
26296
|
*//**
|
|
26027
26297
|
* Constructs a new UtilitiesApi.
|
|
26028
26298
|
* @alias module:purecloud-platform-client-v2/api/UtilitiesApi
|
|
@@ -26049,7 +26319,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
26049
26319
|
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(){/**
|
|
26050
26320
|
* Voicemail service.
|
|
26051
26321
|
* @module purecloud-platform-client-v2/api/VoicemailApi
|
|
26052
|
-
* @version
|
|
26322
|
+
* @version 231.0.0
|
|
26053
26323
|
*//**
|
|
26054
26324
|
* Constructs a new VoicemailApi.
|
|
26055
26325
|
* @alias module:purecloud-platform-client-v2/api/VoicemailApi
|
|
@@ -26211,7 +26481,7 @@ if(userId===undefined||userId===null||userId===''){throw'Missing the required pa
|
|
|
26211
26481
|
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(){/**
|
|
26212
26482
|
* WebChat service.
|
|
26213
26483
|
* @module purecloud-platform-client-v2/api/WebChatApi
|
|
26214
|
-
* @version
|
|
26484
|
+
* @version 231.0.0
|
|
26215
26485
|
*//**
|
|
26216
26486
|
* Constructs a new WebChatApi.
|
|
26217
26487
|
* @alias module:purecloud-platform-client-v2/api/WebChatApi
|
|
@@ -26355,7 +26625,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
26355
26625
|
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(){/**
|
|
26356
26626
|
* WebDeployments service.
|
|
26357
26627
|
* @module purecloud-platform-client-v2/api/WebDeploymentsApi
|
|
26358
|
-
* @version
|
|
26628
|
+
* @version 231.0.0
|
|
26359
26629
|
*//**
|
|
26360
26630
|
* Constructs a new WebDeploymentsApi.
|
|
26361
26631
|
* @alias module:purecloud-platform-client-v2/api/WebDeploymentsApi
|
|
@@ -26488,7 +26758,7 @@ if(deploymentId===undefined||deploymentId===null||deploymentId===''){throw'Missi
|
|
|
26488
26758
|
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(){/**
|
|
26489
26759
|
* WebMessaging service.
|
|
26490
26760
|
* @module purecloud-platform-client-v2/api/WebMessagingApi
|
|
26491
|
-
* @version
|
|
26761
|
+
* @version 231.0.0
|
|
26492
26762
|
*//**
|
|
26493
26763
|
* Constructs a new WebMessagingApi.
|
|
26494
26764
|
* @alias module:purecloud-platform-client-v2/api/WebMessagingApi
|
|
@@ -26496,15 +26766,40 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
26496
26766
|
* @param {module:purecloud-platform-client-v2/ApiClient} apiClient Optional API client implementation to use,
|
|
26497
26767
|
* default to {@link module:purecloud-platform-client-v2/ApiClient#instance} if unspecified.
|
|
26498
26768
|
*/function WebMessagingApi(apiClient){_classCallCheck(this,WebMessagingApi);this.apiClient=apiClient||ApiClient.instance;}/**
|
|
26769
|
+
* Delete device information
|
|
26770
|
+
*
|
|
26771
|
+
* @param {String} deploymentId WebMessaging deployment id
|
|
26772
|
+
* @param {String} tokenId Device token id or cookie id
|
|
26773
|
+
*/return _createClass(WebMessagingApi,[{key:"deleteWebmessagingDeploymentPushdevice",value:function deleteWebmessagingDeploymentPushdevice(deploymentId,tokenId){// verify the required parameter 'deploymentId' is set
|
|
26774
|
+
if(deploymentId===undefined||deploymentId===null||deploymentId===''){throw'Missing the required parameter "deploymentId" when calling deleteWebmessagingDeploymentPushdevice';}// verify the required parameter 'tokenId' is set
|
|
26775
|
+
if(tokenId===undefined||tokenId===null||tokenId===''){throw'Missing the required parameter "tokenId" when calling deleteWebmessagingDeploymentPushdevice';}return this.apiClient.callApi('/api/v2/webmessaging/deployments/{deploymentId}/pushdevices/{tokenId}','DELETE',{'deploymentId':deploymentId,'tokenId':tokenId},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
26499
26776
|
* Get the messages for a web messaging session.
|
|
26500
26777
|
*
|
|
26501
26778
|
* @param {Object} opts Optional parameters
|
|
26502
26779
|
* @param {Number} opts.pageSize Page size (default to 25)
|
|
26503
26780
|
* @param {Number} opts.pageNumber Page number (default to 1)
|
|
26504
|
-
*/
|
|
26781
|
+
*/},{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']);}/**
|
|
26782
|
+
* Edit device information
|
|
26783
|
+
*
|
|
26784
|
+
* @param {String} deploymentId WebMessaging deployment id
|
|
26785
|
+
* @param {String} tokenId Device token id or cookie id
|
|
26786
|
+
* @param {Object} body Request body
|
|
26787
|
+
*/},{key:"patchWebmessagingDeploymentPushdevice",value:function patchWebmessagingDeploymentPushdevice(deploymentId,tokenId,body){// verify the required parameter 'deploymentId' is set
|
|
26788
|
+
if(deploymentId===undefined||deploymentId===null||deploymentId===''){throw'Missing the required parameter "deploymentId" when calling patchWebmessagingDeploymentPushdevice';}// verify the required parameter 'tokenId' is set
|
|
26789
|
+
if(tokenId===undefined||tokenId===null||tokenId===''){throw'Missing the required parameter "tokenId" when calling patchWebmessagingDeploymentPushdevice';}// verify the required parameter 'body' is set
|
|
26790
|
+
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling patchWebmessagingDeploymentPushdevice';}return this.apiClient.callApi('/api/v2/webmessaging/deployments/{deploymentId}/pushdevices/{tokenId}','PATCH',{'deploymentId':deploymentId,'tokenId':tokenId},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
26791
|
+
* Add a new device information
|
|
26792
|
+
*
|
|
26793
|
+
* @param {String} deploymentId WebMessaging deployment id
|
|
26794
|
+
* @param {String} tokenId Device token id or cookie id
|
|
26795
|
+
* @param {Object} body Request body
|
|
26796
|
+
*/},{key:"postWebmessagingDeploymentPushdevice",value:function postWebmessagingDeploymentPushdevice(deploymentId,tokenId,body){// verify the required parameter 'deploymentId' is set
|
|
26797
|
+
if(deploymentId===undefined||deploymentId===null||deploymentId===''){throw'Missing the required parameter "deploymentId" when calling postWebmessagingDeploymentPushdevice';}// verify the required parameter 'tokenId' is set
|
|
26798
|
+
if(tokenId===undefined||tokenId===null||tokenId===''){throw'Missing the required parameter "tokenId" when calling postWebmessagingDeploymentPushdevice';}// verify the required parameter 'body' is set
|
|
26799
|
+
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling postWebmessagingDeploymentPushdevice';}return this.apiClient.callApi('/api/v2/webmessaging/deployments/{deploymentId}/pushdevices/{tokenId}','POST',{'deploymentId':deploymentId,'tokenId':tokenId},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}}]);}();var WidgetsApi=/*#__PURE__*/function(){/**
|
|
26505
26800
|
* Widgets service.
|
|
26506
26801
|
* @module purecloud-platform-client-v2/api/WidgetsApi
|
|
26507
|
-
* @version
|
|
26802
|
+
* @version 231.0.0
|
|
26508
26803
|
*//**
|
|
26509
26804
|
* Constructs a new WidgetsApi.
|
|
26510
26805
|
* @alias module:purecloud-platform-client-v2/api/WidgetsApi
|
|
@@ -26544,7 +26839,7 @@ if(deploymentId===undefined||deploymentId===null||deploymentId===''){throw'Missi
|
|
|
26544
26839
|
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(){/**
|
|
26545
26840
|
* WorkforceManagement service.
|
|
26546
26841
|
* @module purecloud-platform-client-v2/api/WorkforceManagementApi
|
|
26547
|
-
* @version
|
|
26842
|
+
* @version 231.0.0
|
|
26548
26843
|
*//**
|
|
26549
26844
|
* Constructs a new WorkforceManagementApi.
|
|
26550
26845
|
* @alias module:purecloud-platform-client-v2/api/WorkforceManagementApi
|
|
@@ -28496,7 +28791,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
28496
28791
|
* </pre>
|
|
28497
28792
|
* </p>
|
|
28498
28793
|
* @module purecloud-platform-client-v2/index
|
|
28499
|
-
* @version
|
|
28794
|
+
* @version 231.0.0
|
|
28500
28795
|
*/var platformClient=/*#__PURE__*/_createClass(function platformClient(){_classCallCheck(this,platformClient);/**
|
|
28501
28796
|
* The ApiClient constructor.
|
|
28502
28797
|
* @property {module:purecloud-platform-client-v2/ApiClient}
|