purecloud-platform-client-v2 227.0.0 → 228.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +3 -3
- package/dist/node/purecloud-platform-client-v2.js +1841 -237
- package/dist/web-amd/purecloud-platform-client-v2.js +1841 -237
- package/dist/web-amd/purecloud-platform-client-v2.min.js +1 -1
- package/dist/web-cjs/bundle.js +583 -188
- package/dist/web-cjs/purecloud-platform-client-v2.js +583 -188
- package/dist/web-cjs/purecloud-platform-client-v2.min.js +1 -1
- package/index.d.ts +1320 -290
- package/package.json +4 -4
- package/src/purecloud-platform-client-v2/ApiClient.js +1 -1
- package/src/purecloud-platform-client-v2/api/AIStudioApi.js +32 -1
- package/src/purecloud-platform-client-v2/api/AgentAssistantsApi.js +1 -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 +391 -26
- 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 +4 -46
- package/src/purecloud-platform-client-v2/api/CarrierServicesApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/ChatApi.js +7 -4
- 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 +61 -35
- 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 +60 -1
- package/src/purecloud-platform-client-v2/api/FaxApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/FlowsApi.js +27 -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 +86 -1
- package/src/purecloud-platform-client-v2/api/KnowledgeApi.js +30 -1
- package/src/purecloud-platform-client-v2/api/LanguageUnderstandingApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/LanguagesApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/LearningApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/LicenseApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/LocationsApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/LogCaptureApi.js +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 +101 -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 +53 -1
- package/src/purecloud-platform-client-v2/api/RecordingApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/ResponseManagementApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/RoutingApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/SCIMApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/ScreenRecordingApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/ScriptsApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/SearchApi.js +1 -26
- package/src/purecloud-platform-client-v2/api/SettingsApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/SocialMediaApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/SpeechTextAnalyticsApi.js +158 -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 +105 -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 +121 -1
- package/src/purecloud-platform-client-v2/api/UserRecordingsApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/UsersApi.js +27 -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 +12 -12
- package/src/purecloud-platform-client-v2/api/WebDeploymentsApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/WebMessagingApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/WidgetsApi.js +6 -6
- package/src/purecloud-platform-client-v2/api/WorkforceManagementApi.js +494 -6
- 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){if(r)i?i(e,r,{value:n,enumerable:!t,configurable:!t,writable:!t}):e[r]=n;else{var o=function o(r,n){_regeneratorDefine2(e,r,function(e){return this._invoke(r,n,e);});};o("next",0),o("throw",1),o("return",2);}},_regeneratorDefine2(e,r,n,t);}function _toArray(r){return _arrayWithHoles(r)||_iterableToArray(r)||_unsupportedIterableToArray(r)||_nonIterableRest();}function _toConsumableArray(r){return _arrayWithoutHoles(r)||_iterableToArray(r)||_unsupportedIterableToArray(r)||_nonIterableSpread();}function _nonIterableSpread(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");}function _iterableToArray(r){if("undefined"!=typeof Symbol&&null!=r[Symbol.iterator]||null!=r["@@iterator"])return Array.from(r);}function _arrayWithoutHoles(r){if(Array.isArray(r))return _arrayLikeToArray(r);}function _createForOfIteratorHelper(r,e){var t="undefined"!=typeof Symbol&&r[Symbol.iterator]||r["@@iterator"];if(!t){if(Array.isArray(r)||(t=_unsupportedIterableToArray(r))||e&&r&&"number"==typeof r.length){t&&(r=t);var _n=0,F=function F(){};return{s:F,n:function n(){return _n>=r.length?{done:!0}:{done:!1,value:r[_n++]};},e:function e(r){throw r;},f:F};}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");}var o,a=!0,u=!1;return{s:function s(){t=t.call(r);},n:function n(){var r=t.next();return a=r.done,r;},e:function e(r){u=!0,o=r;},f:function f(){try{a||null==t["return"]||t["return"]();}finally{if(u)throw o;}}};}function ownKeys(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);r&&(o=o.filter(function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable;})),t.push.apply(t,o);}return t;}function _objectSpread(e){for(var r=1;r<arguments.length;r++){var t=null!=arguments[r]?arguments[r]:{};r%2?ownKeys(Object(t),!0).forEach(function(r){_defineProperty(e,r,t[r]);}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):ownKeys(Object(t)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r));});}return e;}function _defineProperty(e,r,t){return(r=_toPropertyKey(r))in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e;}function _classCallCheck(a,n){if(!(a instanceof n))throw new TypeError("Cannot call a class as a function");}function _defineProperties(e,r){for(var t=0;t<r.length;t++){var o=r[t];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,_toPropertyKey(o.key),o);}}function _createClass(e,r,t){return r&&_defineProperties(e.prototype,r),t&&_defineProperties(e,t),Object.defineProperty(e,"prototype",{writable:!1}),e;}function _toPropertyKey(t){var i=_toPrimitive(t,"string");return"symbol"==_typeof(i)?i:i+"";}function _toPrimitive(t,r){if("object"!=_typeof(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var i=e.call(t,r||"default");if("object"!=_typeof(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.");}return("string"===r?String:Number)(t);}function _slicedToArray(r,e){return _arrayWithHoles(r)||_iterableToArrayLimit(r,e)||_unsupportedIterableToArray(r,e)||_nonIterableRest();}function _nonIterableRest(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");}function _unsupportedIterableToArray(r,a){if(r){if("string"==typeof r)return _arrayLikeToArray(r,a);var t={}.toString.call(r).slice(8,-1);return"Object"===t&&r.constructor&&(t=r.constructor.name),"Map"===t||"Set"===t?Array.from(r):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?_arrayLikeToArray(r,a):void 0;}}function _arrayLikeToArray(r,a){(null==a||a>r.length)&&(a=r.length);for(var e=0,n=Array(a);e<a;e++)n[e]=r[e];return n;}function _iterableToArrayLimit(r,l){var t=null==r?null:"undefined"!=typeof Symbol&&r[Symbol.iterator]||r["@@iterator"];if(null!=t){var e,n,i,u,a=[],f=!0,o=!1;try{if(i=(t=t.call(r)).next,0===l){if(Object(t)!==t)return;f=!1;}else for(;!(f=(e=i.call(t)).done)&&(a.push(e.value),a.length!==l);f=!0);}catch(r){o=!0,n=r;}finally{try{if(!f&&null!=t["return"]&&(u=t["return"](),Object(u)!==u))return;}finally{if(o)throw n;}}return a;}}function _arrayWithHoles(r){if(Array.isArray(r))return r;}function _typeof(o){"@babel/helpers - typeof";return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(o){return typeof o;}:function(o){return o&&"function"==typeof Symbol&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o;},_typeof(o);}function _wrapAsyncGenerator(e){return function(){return new AsyncGenerator(e.apply(this,arguments));};}function AsyncGenerator(e){var r,t;function resume(r,t){try{var n=e[r](t),o=n.value,u=o instanceof _OverloadYield;Promise.resolve(u?o.v:o).then(function(t){if(u){var i="return"===r?"return":"next";if(!o.k||t.done)return resume(i,t);t=e[i](t).value;}settle(n.done?"return":"normal",t);},function(e){resume("throw",e);});}catch(e){settle("throw",e);}}function settle(e,n){switch(e){case"return":r.resolve({value:n,done:!0});break;case"throw":r.reject(n);break;default:r.resolve({value:n,done:!1});}(r=r.next)?resume(r.key,r.arg):t=null;}this._invoke=function(e,n){return new Promise(function(o,u){var i={key:e,arg:n,resolve:o,reject:u,next:null};t?t=t.next=i:(r=t=i,resume(e,n));});},"function"!=typeof e["return"]&&(this["return"]=void 0);}AsyncGenerator.prototype["function"==typeof Symbol&&Symbol.asyncIterator||"@@asyncIterator"]=function(){return this;},AsyncGenerator.prototype.next=function(e){return this._invoke("next",e);},AsyncGenerator.prototype["throw"]=function(e){return this._invoke("throw",e);},AsyncGenerator.prototype["return"]=function(e){return this._invoke("return",e);};function _awaitAsyncGenerator(e){return new _OverloadYield(e,0);}function _asyncGeneratorDelegate(t){var e={},n=!1;function pump(e,r){return n=!0,r=new Promise(function(n){n(t[e](r));}),{done:!1,value:new _OverloadYield(r,1)};}return e["undefined"!=typeof Symbol&&Symbol.iterator||"@@iterator"]=function(){return this;},e.next=function(t){return n?(n=!1,t):pump("next",t);},"function"==typeof t["throw"]&&(e["throw"]=function(t){if(n)throw n=!1,t;return pump("throw",t);}),"function"==typeof t["return"]&&(e["return"]=function(t){return n?(n=!1,t):pump("return",t);}),e;}function _OverloadYield(e,d){this.v=e,this.k=d;}function _asyncIterator(r){var n,t,o,e=2;for("undefined"!=typeof Symbol&&(t=Symbol.asyncIterator,o=Symbol.iterator);e--;){if(t&&null!=(n=r[t]))return n.call(r);if(o&&null!=(n=r[o]))return new AsyncFromSyncIterator(n.call(r));t="@@asyncIterator",o="@@iterator";}throw new TypeError("Object is not async iterable");}function AsyncFromSyncIterator(r){function AsyncFromSyncIteratorContinuation(r){if(Object(r)!==r)return Promise.reject(new TypeError(r+" is not an object."));var n=r.done;return Promise.resolve(r.value).then(function(r){return{value:r,done:n};});}return AsyncFromSyncIterator=function AsyncFromSyncIterator(r){this.s=r,this.n=r.next;},AsyncFromSyncIterator.prototype={s:null,n:null,next:function next(){return AsyncFromSyncIteratorContinuation(this.n.apply(this.s,arguments));},"return":function _return(r){var n=this.s["return"];return void 0===n?Promise.resolve({value:r,done:!0}):AsyncFromSyncIteratorContinuation(n.apply(this.s,arguments));},"throw":function _throw(r){var n=this.s["return"];return void 0===n?Promise.reject(r):AsyncFromSyncIteratorContinuation(n.apply(this.s,arguments));}},new AsyncFromSyncIterator(r);}var qs=require('qs');function _interopDefaultLegacy(e){return e&&_typeof(e)==='object'&&'default'in e?e:{'default':e};}var qs__default=/*#__PURE__*/_interopDefaultLegacy(qs);var PureCloudRegionHosts={us_east_1:'mypurecloud.com',eu_west_1:'mypurecloud.ie',ap_southeast_2:'mypurecloud.com.au',ap_northeast_1:'mypurecloud.jp',eu_central_1:'mypurecloud.de',us_west_2:'usw2.pure.cloud',ca_central_1:'cac1.pure.cloud',ap_northeast_2:'apne2.pure.cloud',eu_west_2:'euw2.pure.cloud',ap_south_1:'aps1.pure.cloud',us_east_2:'use2.us-gov-pure.cloud',sa_east_1:'sae1.pure.cloud',me_central_1:'mec1.pure.cloud',ap_northeast_3:'apne3.pure.cloud',eu_central_2:'euc2.pure.cloud'};var global$1=typeof global!=="undefined"?global:typeof self!=="undefined"?self:typeof window!=="undefined"?window:{};// shim for using process in browser
|
|
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
|
|
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
|
|
@@ -5648,6 +5648,14 @@ var toString$1=Object.prototype.toString;var getPrototypeOf=Object.getPrototypeO
|
|
|
5648
5648
|
*
|
|
5649
5649
|
* @returns {boolean} True if value is a plain Object, otherwise false
|
|
5650
5650
|
*/var isPlainObject=function isPlainObject(val){if(kindOf(val)!=='object'){return false;}var prototype=getPrototypeOf(val);return(prototype===null||prototype===Object.prototype||Object.getPrototypeOf(prototype)===null)&&!(toStringTag in val)&&!(iterator in val);};/**
|
|
5651
|
+
* Determine if a value is an empty object (safely handles Buffers)
|
|
5652
|
+
*
|
|
5653
|
+
* @param {*} val The value to test
|
|
5654
|
+
*
|
|
5655
|
+
* @returns {boolean} True if value is an empty object, otherwise false
|
|
5656
|
+
*/var isEmptyObject=function isEmptyObject(val){// Early return for non-objects or Buffers to prevent RangeError
|
|
5657
|
+
if(!isObject(val)||isBuffer$1(val)){return false;}try{return Object.keys(val).length===0&&Object.getPrototypeOf(val)===Object.prototype;}catch(e){// Fallback for any other objects that might cause RangeError with Object.keys()
|
|
5658
|
+
return false;}};/**
|
|
5651
5659
|
* Determine if a value is a Date
|
|
5652
5660
|
*
|
|
5653
5661
|
* @param {*} val The value to test
|
|
@@ -5713,8 +5721,9 @@ kind==='object'&&isFunction(thing.toString)&&thing.toString()==='[object FormDat
|
|
|
5713
5721
|
*/function forEach(obj,fn){var _ref3=arguments.length>2&&arguments[2]!==undefined?arguments[2]:{},_ref3$allOwnKeys=_ref3.allOwnKeys,allOwnKeys=_ref3$allOwnKeys===void 0?false:_ref3$allOwnKeys;// Don't bother if no value provided
|
|
5714
5722
|
if(obj===null||typeof obj==='undefined'){return;}var i;var l;// Force an array if not already something iterable
|
|
5715
5723
|
if(_typeof(obj)!=='object'){/*eslint no-param-reassign:0*/obj=[obj];}if(isArray$1(obj)){// Iterate over array values
|
|
5716
|
-
for(i=0,l=obj.length;i<l;i++){fn.call(null,obj[i],i,obj);}}else{//
|
|
5717
|
-
|
|
5724
|
+
for(i=0,l=obj.length;i<l;i++){fn.call(null,obj[i],i,obj);}}else{// Buffer check
|
|
5725
|
+
if(isBuffer$1(obj)){return;}// Iterate over object keys
|
|
5726
|
+
var keys=allOwnKeys?Object.getOwnPropertyNames(obj):Object.keys(obj);var len=keys.length;var key;for(i=0;i<len;i++){key=keys[i];fn.call(null,obj[key],key,obj);}}}function findKey(obj,key){if(isBuffer$1(obj)){return null;}key=key.toLowerCase();var keys=Object.keys(obj);var i=keys.length;var _key;while(i-->0){_key=keys[i];if(key===_key.toLowerCase()){return _key;}}return null;}var _global=function(){/*eslint no-undef:0*/if(typeof globalThis!=="undefined")return globalThis;return typeof self!=="undefined"?self:typeof window!=='undefined'?window:global$1;}();var isContextDefined=function isContextDefined(context){return!isUndefined(context)&&context!==_global;};/**
|
|
5718
5727
|
* Accepts varargs expecting each argument to be an object, then
|
|
5719
5728
|
* immutably merges the properties of each object and returns result.
|
|
5720
5729
|
*
|
|
@@ -5816,10 +5825,11 @@ if(isFunction(obj)&&['arguments','caller','callee'].indexOf(name)!==-1){return f
|
|
|
5816
5825
|
* @param {unknown} thing - The thing to check.
|
|
5817
5826
|
*
|
|
5818
5827
|
* @returns {boolean}
|
|
5819
|
-
*/function isSpecCompliantForm(thing){return!!(thing&&isFunction(thing.append)&&thing[toStringTag]==='FormData'&&thing[iterator]);}var toJSONObject=function toJSONObject(obj){var stack=new Array(10);var _visit=function visit(source,i){if(isObject(source)){if(stack.indexOf(source)>=0){return;}
|
|
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
|
|
5820
5830
|
// https://github.com/DigitalBrainJS/AxiosPromise/blob/16deab13710ec09779922131f3fa5954320f83ab/lib/utils.js#L11-L34
|
|
5821
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;// *********************
|
|
5822
|
-
var isIterable=function isIterable(thing){return thing!=null&&isFunction(thing[iterator]);};var utils$1={isArray:isArray$1,isArrayBuffer:isArrayBuffer,isBuffer:isBuffer$1,isFormData:isFormData,isArrayBufferView:isArrayBufferView,isString:isString,isNumber:isNumber,isBoolean:isBoolean,isObject:isObject,isPlainObject:isPlainObject,isReadableStream:isReadableStream,isRequest:isRequest,isResponse:isResponse,isHeaders:isHeaders,isUndefined:isUndefined,isDate:isDate,isFile:isFile,isBlob:isBlob,isRegExp:isRegExp,isFunction:isFunction,isStream:isStream,isURLSearchParams:isURLSearchParams,isTypedArray:isTypedArray,isFileList:isFileList,forEach:forEach,merge:merge,extend:extend,trim:trim,stripBOM:stripBOM,inherits:inherits,toFlatObject:toFlatObject,kindOf:kindOf,kindOfTest:kindOfTest,endsWith:endsWith,toArray:toArray,forEachEntry:forEachEntry,matchAll:matchAll,isHTMLForm:isHTMLForm,hasOwnProperty:hasOwnProperty,hasOwnProp:hasOwnProperty,// an alias to avoid ESLint no-prototype-builtins detection
|
|
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
|
|
5823
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)
|
|
5824
5834
|
// if there are two placeholders, than the two characters before it
|
|
5825
5835
|
// represent one byte
|
|
@@ -6135,7 +6145,7 @@ indexes===true?renderKey([key],index,dots):indexes===null?key:key+'[]',convertVa
|
|
|
6135
6145
|
* `typeof window !== 'undefined' && typeof document !== 'undefined'`.
|
|
6136
6146
|
* This leads to a problem when axios post `FormData` in webWorker
|
|
6137
6147
|
*/var hasStandardBrowserWebWorkerEnv=function(){return typeof WorkerGlobalScope!=='undefined'&&// eslint-disable-next-line no-undef
|
|
6138
|
-
self instanceof WorkerGlobalScope&&typeof self.importScripts==='function';}();var origin=hasBrowserEnv&&window.location.href||'http://localhost';var utils=/*#__PURE__*/Object.freeze({__proto__:null,hasBrowserEnv:hasBrowserEnv,hasStandardBrowserWebWorkerEnv:hasStandardBrowserWebWorkerEnv,hasStandardBrowserEnv:hasStandardBrowserEnv,navigator:_navigator,origin:origin});var platform=_objectSpread(_objectSpread({},utils),platform$1);function toURLEncodedForm(data,options){return toFormData(data,new platform.classes.URLSearchParams(),
|
|
6148
|
+
self instanceof WorkerGlobalScope&&typeof self.importScripts==='function';}();var origin=hasBrowserEnv&&window.location.href||'http://localhost';var utils=/*#__PURE__*/Object.freeze({__proto__:null,hasBrowserEnv:hasBrowserEnv,hasStandardBrowserWebWorkerEnv:hasStandardBrowserWebWorkerEnv,hasStandardBrowserEnv:hasStandardBrowserEnv,navigator:_navigator,origin:origin});var platform=_objectSpread(_objectSpread({},utils),platform$1);function toURLEncodedForm(data,options){return toFormData(data,new platform.classes.URLSearchParams(),_objectSpread({visitor:function visitor(value,key,path,helpers){if(platform.isNode&&utils$1.isBuffer(value)){this.append(key,value.toString('base64'));return false;}return helpers.defaultVisitor.apply(this,arguments);}},options));}/**
|
|
6139
6149
|
* It takes a string like `foo[x][y][z]` and returns an array like `['foo', 'x', 'y', 'z']
|
|
6140
6150
|
*
|
|
6141
6151
|
* @param {string} name - The name of the property to get.
|
|
@@ -6220,7 +6230,7 @@ AxiosError.call(this,message==null?'canceled':message,AxiosError.ERR_CANCELED,co
|
|
|
6220
6230
|
* @param {Function} fn
|
|
6221
6231
|
* @param {Number} freq
|
|
6222
6232
|
* @return {Function}
|
|
6223
|
-
*/function throttle(fn,freq){var timestamp=0;var threshold=1000/freq;var lastArgs;var timer;var invoke=function invoke(args){var now=arguments.length>1&&arguments[1]!==undefined?arguments[1]:Date.now();timestamp=now;lastArgs=null;if(timer){clearTimeout(timer);timer=null;}fn.apply(
|
|
6233
|
+
*/function throttle(fn,freq){var timestamp=0;var threshold=1000/freq;var lastArgs;var timer;var invoke=function invoke(args){var now=arguments.length>1&&arguments[1]!==undefined?arguments[1]:Date.now();timestamp=now;lastArgs=null;if(timer){clearTimeout(timer);timer=null;}fn.apply(void 0,_toConsumableArray(args));};var throttled=function throttled(){var now=Date.now();var passed=now-timestamp;for(var _len3=arguments.length,args=new Array(_len3),_key4=0;_key4<_len3;_key4++){args[_key4]=arguments[_key4];}if(passed>=threshold){invoke(args,now);}else{lastArgs=args;if(!timer){timer=setTimeout(function(){timer=null;invoke(lastArgs);},threshold-passed);}}};var flush=function flush(){return lastArgs&&invoke(lastArgs);};return[throttled,flush];}var progressEventReducer=function progressEventReducer(listener,isDownloadStream){var freq=arguments.length>2&&arguments[2]!==undefined?arguments[2]:3;var bytesNotified=0;var _speedometer=speedometer(50,250);return throttle(function(e){var loaded=e.loaded;var total=e.lengthComputable?e.total:undefined;var progressBytes=loaded-bytesNotified;var rate=_speedometer(progressBytes);var inRange=loaded<=total;bytesNotified=loaded;var data=_defineProperty({loaded:loaded,total:total,progress:total?loaded/total:undefined,bytes:progressBytes,rate:rate?rate:undefined,estimated:rate&&total&&inRange?(total-loaded)/rate:undefined,event:e,lengthComputable:total!=null},isDownloadStream?'download':'upload',true);listener(data);},freq);};var progressEventDecorator=function progressEventDecorator(total,throttled){var lengthComputable=total!=null;return[function(loaded){return throttled[0]({lengthComputable:lengthComputable,total:total,loaded:loaded});},throttled[1]];};var asyncDecorator=function asyncDecorator(fn){return function(){for(var _len4=arguments.length,args=new Array(_len4),_key5=0;_key5<_len4;_key5++){args[_key5]=arguments[_key5];}return utils$1.asap(function(){return fn.apply(void 0,args);});};};var isURLSameOrigin=platform.hasStandardBrowserEnv?function(origin,isMSIE){return function(url){url=new URL(url,platform.origin);return origin.protocol===url.protocol&&origin.host===url.host&&(isMSIE||origin.port===url.port);};}(new URL(platform.origin),platform.navigator&&/(msie|trident)/i.test(platform.navigator.userAgent)):function(){return true;};var cookies=platform.hasStandardBrowserEnv?// Standard browser envs support document.cookie
|
|
6224
6234
|
{write:function write(name,value,expires,path,domain,secure){var cookie=[name+'='+encodeURIComponent(value)];utils$1.isNumber(expires)&&cookie.push('expires='+new Date(expires).toGMTString());utils$1.isString(path)&&cookie.push('path='+path);utils$1.isString(domain)&&cookie.push('domain='+domain);secure===true&&cookie.push('secure');document.cookie=cookie.join('; ');},read:function read(name){var match=document.cookie.match(new RegExp('(^|;\\s*)('+name+')=([^;]*)'));return match?decodeURIComponent(match[3]):null;},remove:function remove(name){this.write(name,'',Date.now()-86400000);}}:// Non-standard browser env (web workers, react-native) lack needed support.
|
|
6225
6235
|
{write:function write(){},read:function read(){return null;},remove:function remove(){}};/**
|
|
6226
6236
|
* Determines whether the specified URL is absolute
|
|
@@ -6260,7 +6270,7 @@ config2=config2||{};var config={};function getMergedValue(target,source,prop,cas
|
|
|
6260
6270
|
function mergeDeepProperties(a,b,prop,caseless){if(!utils$1.isUndefined(b)){return getMergedValue(a,b,prop,caseless);}else if(!utils$1.isUndefined(a)){return getMergedValue(undefined,a,prop,caseless);}}// eslint-disable-next-line consistent-return
|
|
6261
6271
|
function valueFromConfig2(a,b){if(!utils$1.isUndefined(b)){return getMergedValue(undefined,b);}}// eslint-disable-next-line consistent-return
|
|
6262
6272
|
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
|
|
6263
|
-
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(
|
|
6273
|
+
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
|
|
6264
6274
|
if(auth){headers.set('Authorization','Basic '+btoa((auth.username||'')+':'+(auth.password?unescape(encodeURIComponent(auth.password)):'')));}var contentType;if(utils$1.isFormData(data)){if(platform.hasStandardBrowserEnv||platform.hasStandardBrowserWebWorkerEnv){headers.setContentType(undefined);// Let the browser set it
|
|
6265
6275
|
}else if((contentType=headers.getContentType())!==false){// fix semicolon duplication issue for ReactNative FormData implementation
|
|
6266
6276
|
var _ref1=contentType?contentType.split(';').map(function(token){return token.trim();}).filter(Boolean):[],_ref10=_toArray(_ref1),type=_ref10[0],tokens=_ref10.slice(1);headers.setContentType([type||'multipart/form-data'].concat(_toConsumableArray(tokens)).join('; '));}}// Add xsrf header
|
|
@@ -6297,8 +6307,8 @@ if(onDownloadProgress){var _progressEventReducer=progressEventReducer(onDownload
|
|
|
6297
6307
|
if(onUploadProgress&&request.upload){var _progressEventReducer3=progressEventReducer(onUploadProgress);var _progressEventReducer4=_slicedToArray(_progressEventReducer3,2);uploadThrottled=_progressEventReducer4[0];flushUpload=_progressEventReducer4[1];request.upload.addEventListener('progress',uploadThrottled);request.upload.addEventListener('loadend',flushUpload);}if(_config.cancelToken||_config.signal){// Handle cancellation
|
|
6298
6308
|
// eslint-disable-next-line func-names
|
|
6299
6309
|
onCanceled=function onCanceled(cancel){if(!request){return;}reject(!cancel||cancel.type?new CanceledError(null,config,request):cancel);request.abort();request=null;};_config.cancelToken&&_config.cancelToken.subscribe(onCanceled);if(_config.signal){_config.signal.aborted?onCanceled():_config.signal.addEventListener('abort',onCanceled);}}var protocol=parseProtocol(_config.url);if(protocol&&platform.protocols.indexOf(protocol)===-1){reject(new AxiosError('Unsupported protocol '+protocol+':',AxiosError.ERR_BAD_REQUEST,config));return;}// Send the request
|
|
6300
|
-
request.send(requestData||null);});};var composeSignals=function composeSignals(signals,timeout){var _signals=signals=signals?signals.filter(Boolean):[],length=_signals.length;if(timeout||length){var controller=new AbortController();var aborted;var onabort=function onabort(reason){if(!aborted){aborted=true;unsubscribe();var err=reason instanceof Error?reason:this.reason;controller.abort(err instanceof AxiosError?err:new CanceledError(err instanceof Error?err.message:err));}};var timer=timeout&&setTimeout(function(){timer=null;onabort(new AxiosError("timeout ".concat(timeout," of ms exceeded"),AxiosError.ETIMEDOUT));},timeout);var unsubscribe=function unsubscribe(){if(signals){timer&&clearTimeout(timer);timer=null;signals.forEach(function(signal){signal.unsubscribe?signal.unsubscribe(onabort):signal.removeEventListener('abort',onabort);});signals=null;}};signals.forEach(function(signal){return signal.addEventListener('abort',onabort);});var signal=controller.signal;signal.unsubscribe=function(){return utils$1.asap(unsubscribe);};return signal;}};var composeSignals$1=composeSignals;var streamChunk=/*#__PURE__*/_regenerator().m(function streamChunk(chunk,chunkSize){var len,pos,end;return _regenerator().w(function(_context){while(1)switch(_context.n){case 0:len=chunk.byteLength;if(!(!chunkSize||len<chunkSize)){_context.n=2;break;}_context.n=1;return chunk;case 1:return _context.a(2);case 2:pos=0;case 3:if(!(pos<len)){_context.n=5;break;}end=pos+chunkSize;_context.n=4;return chunk.slice(pos,end);case 4:pos=end;_context.n=3;break;case 5:return _context.a(2);}},streamChunk);});var readBytes=/*#__PURE__*/function(){var _ref=_wrapAsyncGenerator(/*#__PURE__*/_regenerator().m(function _callee(iterable,chunkSize){var _iteratorAbruptCompletion,_didIteratorError,_iteratorError,_iterator2,_step,chunk,_t;return _regenerator().w(function(_context2){while(1)switch(_context2.n){case 0:_iteratorAbruptCompletion=false;_didIteratorError=false;_context2.p=1;_iterator2=_asyncIterator(readStream(iterable));case 2:_context2.n=3;return _awaitAsyncGenerator(_iterator2.next());case 3:if(!(_iteratorAbruptCompletion=!(_step=_context2.v).done)){_context2.n=5;break;}chunk=_step.value;return _context2.d(_regeneratorValues(_asyncGeneratorDelegate(_asyncIterator(streamChunk(chunk,chunkSize)),_awaitAsyncGenerator)),4);case 4:_iteratorAbruptCompletion=false;_context2.n=2;break;case 5:_context2.n=7;break;case 6:_context2.p=6;_t=_context2.v;_didIteratorError=true;_iteratorError=_t;case 7:_context2.p=7;_context2.p=8;if(!(_iteratorAbruptCompletion&&_iterator2["return"]!=null)){_context2.n=9;break;}_context2.n=9;return _awaitAsyncGenerator(_iterator2["return"]());case 9:_context2.p=9;if(!_didIteratorError){_context2.n=10;break;}throw _iteratorError;case 10:return _context2.f(9);case 11:return _context2.f(7);case 12:return _context2.a(2);}},_callee,null,[[8,,9,11],[1,6,7,12]]);}));return function readBytes(_x,_x2){return _ref.apply(this,arguments);};}();var readStream=/*#__PURE__*/function(){var _ref2=_wrapAsyncGenerator(/*#__PURE__*/_regenerator().m(function _callee2(stream){var reader,_yield$_awaitAsyncGen,done,value;return _regenerator().w(function(_context3){while(1)switch(_context3.n){case 0:if(!stream[Symbol.asyncIterator]){_context3.n=2;break;}return _context3.d(_regeneratorValues(_asyncGeneratorDelegate(_asyncIterator(stream),_awaitAsyncGenerator)),1);case 1:return _context3.a(2);case 2:reader=stream.getReader();_context3.p=3;case 4:_context3.n=5;return _awaitAsyncGenerator(reader.read());case 5:_yield$_awaitAsyncGen=_context3.v;done=_yield$_awaitAsyncGen.done;value=_yield$_awaitAsyncGen.value;if(!done){_context3.n=6;break;}return _context3.a(3,8);case 6:_context3.n=7;return value;case 7:_context3.n=4;break;case 8:_context3.p=8;_context3.n=9;return _awaitAsyncGenerator(reader.cancel());case 9:return _context3.f(8);case 10:return _context3.a(2);}},_callee2,null,[[3,,8,10]]);}));return function readStream(_x3){return _ref2.apply(this,arguments);};}();var trackStream=function trackStream(stream,chunkSize,onProgress,onFinish){var iterator=readBytes(stream,chunkSize);var bytes=0;var done;var _onFinish=function _onFinish(e){if(!done){done=true;onFinish&&onFinish(e);}};return new ReadableStream({pull:function pull(controller){return _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee3(){var _yield$iterator$next,_done,value,len,loadedBytes,_t2;return _regenerator().w(function(_context4){while(1)switch(_context4.n){case 0:_context4.p=0;_context4.n=1;return iterator.next();case 1:_yield$iterator$next=_context4.v;_done=_yield$iterator$next.done;value=_yield$iterator$next.value;if(!_done){_context4.n=2;break;}_onFinish();controller.close();return _context4.a(2);case 2:len=value.byteLength;if(onProgress){loadedBytes=bytes+=len;onProgress(loadedBytes);}controller.enqueue(new Uint8Array(value));_context4.n=4;break;case 3:_context4.p=3;_t2=_context4.v;_onFinish(_t2);throw _t2;case 4:return _context4.a(2);}},_callee3,null,[[0,3]]);}))();},cancel:function cancel(reason){_onFinish(reason);return iterator["return"]();}},{highWaterMark:2});};var isFetchSupported=typeof fetch==='function'&&typeof Request==='function'&&typeof Response==='function';var isReadableStreamSupported=isFetchSupported&&typeof ReadableStream==='function';// used only inside the fetch adapter
|
|
6301
|
-
var encodeText=isFetchSupported&&(typeof TextEncoder==='function'?function(encoder){return function(str){return encoder.encode(str);};}(new TextEncoder()):(/*#__PURE__*/function(){var _ref11=_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee4(str){var _t3,_t4;return _regenerator().w(function(_context5){while(1)switch(_context5.n){case 0:_t3=Uint8Array;_context5.n=1;return new Response(str).arrayBuffer();case 1:_t4=_context5.v;return _context5.a(2,new _t3(_t4));}},_callee4);}));return function(_x4){return _ref11.apply(this,arguments);};}()));var test=function test(fn){try{for(var _len5=arguments.length,args=new Array(_len5>1?_len5-1:0),_key6=1;_key6<_len5;_key6++){args[_key6-1]=arguments[_key6];}return!!fn.apply(void 0,args);}catch(e){return false;}};var supportsRequestStream=isReadableStreamSupported&&test(function(){var duplexAccessed=false;var hasContentType=new Request(platform.origin,{body:new ReadableStream(),method:'POST',get duplex(){duplexAccessed=true;return'half';}}).headers.has('Content-Type');return duplexAccessed&&!hasContentType;});var DEFAULT_CHUNK_SIZE=64*1024;var supportsResponseStream=isReadableStreamSupported&&test(function(){return utils$1.isReadableStream(new Response('').body);});var resolvers={stream:supportsResponseStream&&function(res){return res.body;}};isFetchSupported&&function(res){['text','arrayBuffer','blob','formData','stream'].forEach(function(type){!resolvers[type]&&(resolvers[type]=utils$1.isFunction(res[type])?function(res){return res[type]();}:function(_,config){throw new AxiosError("Response type '".concat(type,"' is not supported"),AxiosError.ERR_NOT_SUPPORT,config);});});}(new Response());var getBodyLength=/*#__PURE__*/function(){var _ref12=_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee5(body){var _request;return _regenerator().w(function(_context6){while(1)switch(_context6.n){case 0:if(!(body==null)){_context6.n=1;break;}return _context6.a(2,0);case 1:if(!utils$1.isBlob(body)){_context6.n=2;break;}return _context6.a(2,body.size);case 2:if(!utils$1.isSpecCompliantForm(body)){_context6.n=4;break;}_request=new Request(platform.origin,{method:'POST',body:body});_context6.n=3;return _request.arrayBuffer();case 3:return _context6.a(2,_context6.v.byteLength);case 4:if(!(utils$1.isArrayBufferView(body)||utils$1.isArrayBuffer(body))){_context6.n=5;break;}return _context6.a(2,body.byteLength);case 5:if(utils$1.isURLSearchParams(body)){body=body+'';}if(!utils$1.isString(body)){_context6.n=7;break;}_context6.n=6;return encodeText(body);case 6:return _context6.a(2,_context6.v.byteLength);case 7:return _context6.a(2);}},_callee5);}));return function getBodyLength(_x5){return _ref12.apply(this,arguments);};}();var resolveBodyLength=/*#__PURE__*/function(){var _ref13=_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee6(headers,body){var length;return _regenerator().w(function(_context7){while(1)switch(_context7.n){case 0:length=utils$1.toFiniteNumber(headers.getContentLength());return _context7.a(2,length==null?getBodyLength(body):length);}},_callee6);}));return function resolveBodyLength(_x6,_x7){return _ref13.apply(this,arguments);};}();var fetchAdapter=isFetchSupported&&(/*#__PURE__*/function(){var _ref14=_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee7(config){var _resolveConfig,url,method,data,signal,cancelToken,timeout,onDownloadProgress,onUploadProgress,responseType,headers,_resolveConfig$withCr,withCredentials,fetchOptions,composedSignal,request,unsubscribe,requestContentLength,_request,contentTypeHeader,_progressEventDecorat,_progressEventDecorat2,onProgress,flush,isCredentialsSupported,response,isStreamResponse,options,responseContentLength,_ref15,_ref16,_onProgress,_flush,responseData,_t5,_t6,_t7;return _regenerator().w(function(_context8){while(1)switch(_context8.n){case 0:_resolveConfig=resolveConfig(config),url=_resolveConfig.url,method=_resolveConfig.method,data=_resolveConfig.data,signal=_resolveConfig.signal,cancelToken=_resolveConfig.cancelToken,timeout=_resolveConfig.timeout,onDownloadProgress=_resolveConfig.onDownloadProgress,onUploadProgress=_resolveConfig.onUploadProgress,responseType=_resolveConfig.responseType,headers=_resolveConfig.headers,_resolveConfig$withCr=_resolveConfig.withCredentials,withCredentials=_resolveConfig$withCr===void 0?'same-origin':_resolveConfig$withCr,fetchOptions=_resolveConfig.fetchOptions;responseType=responseType?(responseType+'').toLowerCase():'text';composedSignal=composeSignals$1([signal,cancelToken&&cancelToken.toAbortSignal()],timeout);unsubscribe=composedSignal&&composedSignal.unsubscribe&&function(){composedSignal.unsubscribe();};_context8.p=1;_t5=onUploadProgress&&supportsRequestStream&&method!=='get'&&method!=='head';if(!_t5){_context8.n=3;break;}_context8.n=2;return resolveBodyLength(headers,data);case 2:_t6=requestContentLength=_context8.v;_t5=_t6!==0;case 3:if(!_t5){_context8.n=4;break;}_request=new Request(url,{method:'POST',body:data,duplex:"half"});if(utils$1.isFormData(data)&&(contentTypeHeader=_request.headers.get('content-type'))){headers.setContentType(contentTypeHeader);}if(_request.body){_progressEventDecorat=progressEventDecorator(requestContentLength,progressEventReducer(asyncDecorator(onUploadProgress))),_progressEventDecorat2=_slicedToArray(_progressEventDecorat,2),onProgress=_progressEventDecorat2[0],flush=_progressEventDecorat2[1];data=trackStream(_request.body,DEFAULT_CHUNK_SIZE,onProgress,flush);}case 4:if(!utils$1.isString(withCredentials)){withCredentials=withCredentials?'include':'omit';}// Cloudflare Workers throws when credentials are defined
|
|
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
|
|
6302
6312
|
// see https://github.com/cloudflare/workerd/issues/902
|
|
6303
6313
|
isCredentialsSupported="credentials"in Request.prototype;request=new Request(url,_objectSpread(_objectSpread({},fetchOptions),{},{signal:composedSignal,method:method.toUpperCase(),headers:headers.normalize().toJSON(),body:data,duplex:"half",credentials:isCredentialsSupported?withCredentials:undefined}));_context8.n=5;return fetch(request,fetchOptions);case 5:response=_context8.v;isStreamResponse=supportsResponseStream&&(responseType==='stream'||responseType==='response');if(supportsResponseStream&&(onDownloadProgress||isStreamResponse&&unsubscribe)){options={};['status','statusText','headers'].forEach(function(prop){options[prop]=response[prop];});responseContentLength=utils$1.toFiniteNumber(response.headers.get('content-length'));_ref15=onDownloadProgress&&progressEventDecorator(responseContentLength,progressEventReducer(asyncDecorator(onDownloadProgress),true))||[],_ref16=_slicedToArray(_ref15,2),_onProgress=_ref16[0],_flush=_ref16[1];response=new Response(trackStream(response.body,DEFAULT_CHUNK_SIZE,_onProgress,function(){_flush&&_flush();unsubscribe&&unsubscribe();}),options);}responseType=responseType||'text';_context8.n=6;return resolvers[utils$1.findKey(resolvers,responseType)||'text'](response,config);case 6:responseData=_context8.v;!isStreamResponse&&unsubscribe&&unsubscribe();_context8.n=7;return new Promise(function(resolve,reject){settle(resolve,reject,{data:responseData,headers:AxiosHeaders$1.from(response.headers),status:response.status,statusText:response.statusText,config:config,request:request});});case 7:return _context8.a(2,_context8.v);case 8:_context8.p=8;_t7=_context8.v;unsubscribe&&unsubscribe();if(!(_t7&&_t7.name==='TypeError'&&/Load failed|fetch/i.test(_t7.message))){_context8.n=9;break;}throw Object.assign(new AxiosError('Network Error',AxiosError.ERR_NETWORK,config,request),{cause:_t7.cause||_t7});case 9:throw AxiosError.from(_t7,_t7&&_t7.code,config,request);case 10:return _context8.a(2);}},_callee7,null,[[1,8]]);}));return function(_x8){return _ref14.apply(this,arguments);};}());var knownAdapters={http:httpAdapter,xhr:xhrAdapter,fetch:fetchAdapter};utils$1.forEach(knownAdapters,function(fn,value){if(fn){try{Object.defineProperty(fn,'name',{value:value});}catch(e){// eslint-disable-next-line no-empty
|
|
6304
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(_ref17){var _ref18=_slicedToArray(_ref17,2),id=_ref18[0],state=_ref18[1];return"adapter ".concat(id," ")+(state===false?'is not supported by the environment':'is not available in the build');});var s=length?reasons.length>1?'since :\n'+reasons.map(renderReason).join('\n'):' '+renderReason(reasons[0]):'as no adapter specified';throw new AxiosError("There is no suitable adapter to dispatch the request "+s,'ERR_NOT_SUPPORT');}return adapter;},adapters:knownAdapters};/**
|
|
@@ -6316,7 +6326,7 @@ isCredentialsSupported="credentials"in Request.prototype;request=new Request(url
|
|
|
6316
6326
|
*/function dispatchRequest(config){throwIfCancellationRequested(config);config.headers=AxiosHeaders$1.from(config.headers);// Transform request data
|
|
6317
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
|
|
6318
6328
|
response.data=transformData.call(config,config.transformResponse,response);response.headers=AxiosHeaders$1.from(response.headers);return response;},function onAdapterRejection(reason){if(!isCancel(reason)){throwIfCancellationRequested(config);// Transform response data
|
|
6319
|
-
if(reason&&reason.response){reason.response.data=transformData.call(config,config.transformResponse,reason.response);reason.response.headers=AxiosHeaders$1.from(reason.response.headers);}}return Promise.reject(reason);});}var VERSION="1.
|
|
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.11.0";var validators$1={};// eslint-disable-next-line func-names
|
|
6320
6330
|
['object','boolean','number','function','string','symbol'].forEach(function(type,i){validators$1[type]=function validator(thing){return _typeof(thing)===type||'a'+(i<1?'n ':' ')+type;};});var deprecatedWarnings={};/**
|
|
6321
6331
|
* Transitional option validator
|
|
6322
6332
|
*
|
|
@@ -6349,7 +6359,7 @@ console.warn("".concat(opt," is likely a misspelling of ").concat(correctSpellin
|
|
|
6349
6359
|
* @param {?Object} config
|
|
6350
6360
|
*
|
|
6351
6361
|
* @returns {Promise} The Promise to be fulfilled
|
|
6352
|
-
*/return _createClass(Axios,[{key:"request",value:(function(){var _request2=_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee8(configOrUrl,config){var dummy,stack,_t8;return _regenerator().w(function(_context9){while(1)switch(_context9.n){case 0:_context9.p=0;_context9.n=1;return this._request(configOrUrl,config);case 1:return _context9.a(2,_context9.v);case 2:_context9.p=2;_t8=_context9.v;if(_t8 instanceof Error){dummy={};Error.captureStackTrace?Error.captureStackTrace(dummy):dummy=new Error();// slice off the Error: ... line
|
|
6362
|
+
*/return _createClass(Axios,[{key:"request",value:(function(){var _request2=_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee8(configOrUrl,config){var dummy,stack,_t8;return _regenerator().w(function(_context9){while(1)switch(_context9.p=_context9.n){case 0:_context9.p=0;_context9.n=1;return this._request(configOrUrl,config);case 1:return _context9.a(2,_context9.v);case 2:_context9.p=2;_t8=_context9.v;if(_t8 instanceof Error){dummy={};Error.captureStackTrace?Error.captureStackTrace(dummy):dummy=new Error();// slice off the Error: ... line
|
|
6353
6363
|
stack=dummy.stack?dummy.stack.replace(/^.+\n/,''):'';try{if(!_t8.stack){_t8.stack=stack;// match without the 2 top stack lines
|
|
6354
6364
|
}else if(stack&&!String(_t8.stack).endsWith(stack.replace(/^.+\n.+\n/,''))){_t8.stack+='\n'+stack;}}catch(e){// ignore the case where "stack" is an un-writable property
|
|
6355
6365
|
}}throw _t8;case 3:return _context9.a(2);}},_callee8,this,[[0,2]]);}));function request(_x9,_x0){return _request2.apply(this,arguments);}return request;}())},{key:"_request",value:function _request(configOrUrl,config){/*eslint no-param-reassign:0*/// Allow for axios('example/url'[, config]) a la fetch API
|
|
@@ -6464,7 +6474,7 @@ if(env)this.environment=env;else this.environment=this.host?this.host:'mypureclo
|
|
|
6464
6474
|
this.environment=this.environment.replace(/\/+$/,'');// Strip protocol and subdomain
|
|
6465
6475
|
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];}}}]);}();/**
|
|
6466
6476
|
* @module purecloud-platform-client-v2/ApiClient
|
|
6467
|
-
* @version
|
|
6477
|
+
* @version 228.0.0
|
|
6468
6478
|
*/var ApiClient=/*#__PURE__*/function(){/**
|
|
6469
6479
|
* Manages low level client-server communications, parameter marshalling, etc. There should not be any need for an
|
|
6470
6480
|
* application to use this class directly - the *Api and model classes provide the public API for the service. The
|
|
@@ -6807,7 +6817,7 @@ resolve(data);})["catch"](function(error){var data=error;if(error.response&&erro
|
|
|
6807
6817
|
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(){/**
|
|
6808
6818
|
* AIStudio service.
|
|
6809
6819
|
* @module purecloud-platform-client-v2/api/AIStudioApi
|
|
6810
|
-
* @version
|
|
6820
|
+
* @version 228.0.0
|
|
6811
6821
|
*//**
|
|
6812
6822
|
* Constructs a new AIStudioApi.
|
|
6813
6823
|
* @alias module:purecloud-platform-client-v2/api/AIStudioApi
|
|
@@ -6871,6 +6881,14 @@ if(jobId===undefined||jobId===null||jobId===''){throw'Missing the required param
|
|
|
6871
6881
|
* getGuidesJob is a preview method and is subject to both breaking and non-breaking changes at any time without notice
|
|
6872
6882
|
*/},{key:"getGuidesJob",value:function getGuidesJob(jobId){// verify the required parameter 'jobId' is set
|
|
6873
6883
|
if(jobId===undefined||jobId===null||jobId===''){throw'Missing the required parameter "jobId" when calling getGuidesJob';}return this.apiClient.callApi('/api/v2/guides/jobs/{jobId}','GET',{'jobId':jobId},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
6884
|
+
* Update a guide.
|
|
6885
|
+
*
|
|
6886
|
+
* @param {String} guideId Guide ID
|
|
6887
|
+
* @param {Object} body
|
|
6888
|
+
* patchGuide is a preview method and is subject to both breaking and non-breaking changes at any time without notice
|
|
6889
|
+
*/},{key:"patchGuide",value:function patchGuide(guideId,body){// verify the required parameter 'guideId' is set
|
|
6890
|
+
if(guideId===undefined||guideId===null||guideId===''){throw'Missing the required parameter "guideId" when calling patchGuide';}// verify the required parameter 'body' is set
|
|
6891
|
+
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling patchGuide';}return this.apiClient.callApi('/api/v2/guides/{guideId}','PATCH',{'guideId':guideId},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
6874
6892
|
* Update a guide version.
|
|
6875
6893
|
*
|
|
6876
6894
|
* @param {String} guideId Guide ID
|
|
@@ -6913,7 +6931,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
6913
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']);}}]);}();var AgentAssistantsApi=/*#__PURE__*/function(){/**
|
|
6914
6932
|
* AgentAssistants service.
|
|
6915
6933
|
* @module purecloud-platform-client-v2/api/AgentAssistantsApi
|
|
6916
|
-
* @version
|
|
6934
|
+
* @version 228.0.0
|
|
6917
6935
|
*//**
|
|
6918
6936
|
* Constructs a new AgentAssistantsApi.
|
|
6919
6937
|
* @alias module:purecloud-platform-client-v2/api/AgentAssistantsApi
|
|
@@ -7015,7 +7033,7 @@ if(queueId===undefined||queueId===null||queueId===''){throw'Missing the required
|
|
|
7015
7033
|
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(){/**
|
|
7016
7034
|
* AgentCopilot service.
|
|
7017
7035
|
* @module purecloud-platform-client-v2/api/AgentCopilotApi
|
|
7018
|
-
* @version
|
|
7036
|
+
* @version 228.0.0
|
|
7019
7037
|
*//**
|
|
7020
7038
|
* Constructs a new AgentCopilotApi.
|
|
7021
7039
|
* @alias module:purecloud-platform-client-v2/api/AgentCopilotApi
|
|
@@ -7037,7 +7055,7 @@ if(assistantId===undefined||assistantId===null||assistantId===''){throw'Missing
|
|
|
7037
7055
|
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(){/**
|
|
7038
7056
|
* AgentUI service.
|
|
7039
7057
|
* @module purecloud-platform-client-v2/api/AgentUIApi
|
|
7040
|
-
* @version
|
|
7058
|
+
* @version 228.0.0
|
|
7041
7059
|
*//**
|
|
7042
7060
|
* Constructs a new AgentUIApi.
|
|
7043
7061
|
* @alias module:purecloud-platform-client-v2/api/AgentUIApi
|
|
@@ -7071,7 +7089,7 @@ if(agentId===undefined||agentId===null||agentId===''){throw'Missing the required
|
|
|
7071
7089
|
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(){/**
|
|
7072
7090
|
* Alerting service.
|
|
7073
7091
|
* @module purecloud-platform-client-v2/api/AlertingApi
|
|
7074
|
-
* @version
|
|
7092
|
+
* @version 228.0.0
|
|
7075
7093
|
*//**
|
|
7076
7094
|
* Constructs a new AlertingApi.
|
|
7077
7095
|
* @alias module:purecloud-platform-client-v2/api/AlertingApi
|
|
@@ -7160,7 +7178,7 @@ if(ruleId===undefined||ruleId===null||ruleId===''){throw'Missing the required pa
|
|
|
7160
7178
|
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(){/**
|
|
7161
7179
|
* Analytics service.
|
|
7162
7180
|
* @module purecloud-platform-client-v2/api/AnalyticsApi
|
|
7163
|
-
* @version
|
|
7181
|
+
* @version 228.0.0
|
|
7164
7182
|
*//**
|
|
7165
7183
|
* Constructs a new AnalyticsApi.
|
|
7166
7184
|
* @alias module:purecloud-platform-client-v2/api/AnalyticsApi
|
|
@@ -7168,11 +7186,101 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
7168
7186
|
* @param {module:purecloud-platform-client-v2/ApiClient} apiClient Optional API client implementation to use,
|
|
7169
7187
|
* default to {@link module:purecloud-platform-client-v2/ApiClient#instance} if unspecified.
|
|
7170
7188
|
*/function AnalyticsApi(apiClient){_classCallCheck(this,AnalyticsApi);this.apiClient=apiClient||ApiClient.instance;}/**
|
|
7189
|
+
* Delete/cancel an async request for action aggregates
|
|
7190
|
+
*
|
|
7191
|
+
* @param {String} jobId jobId
|
|
7192
|
+
* deleteAnalyticsActionsAggregatesJob is a preview method and is subject to both breaking and non-breaking changes at any time without notice
|
|
7193
|
+
*/return _createClass(AnalyticsApi,[{key:"deleteAnalyticsActionsAggregatesJob",value:function deleteAnalyticsActionsAggregatesJob(jobId){// verify the required parameter 'jobId' is set
|
|
7194
|
+
if(jobId===undefined||jobId===null||jobId===''){throw'Missing the required parameter "jobId" when calling deleteAnalyticsActionsAggregatesJob';}return this.apiClient.callApi('/api/v2/analytics/actions/aggregates/jobs/{jobId}','DELETE',{'jobId':jobId},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
7195
|
+
* Delete/cancel an async request for agent copilot aggregates
|
|
7196
|
+
*
|
|
7197
|
+
* @param {String} jobId jobId
|
|
7198
|
+
* deleteAnalyticsAgentcopilotsAggregatesJob is a preview method and is subject to both breaking and non-breaking changes at any time without notice
|
|
7199
|
+
*/},{key:"deleteAnalyticsAgentcopilotsAggregatesJob",value:function deleteAnalyticsAgentcopilotsAggregatesJob(jobId){// verify the required parameter 'jobId' is set
|
|
7200
|
+
if(jobId===undefined||jobId===null||jobId===''){throw'Missing the required parameter "jobId" when calling deleteAnalyticsAgentcopilotsAggregatesJob';}return this.apiClient.callApi('/api/v2/analytics/agentcopilots/aggregates/jobs/{jobId}','DELETE',{'jobId':jobId},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
7201
|
+
* Delete/cancel an async request for bot aggregates
|
|
7202
|
+
*
|
|
7203
|
+
* @param {String} jobId jobId
|
|
7204
|
+
* deleteAnalyticsBotsAggregatesJob is a preview method and is subject to both breaking and non-breaking changes at any time without notice
|
|
7205
|
+
*/},{key:"deleteAnalyticsBotsAggregatesJob",value:function deleteAnalyticsBotsAggregatesJob(jobId){// verify the required parameter 'jobId' is set
|
|
7206
|
+
if(jobId===undefined||jobId===null||jobId===''){throw'Missing the required parameter "jobId" when calling deleteAnalyticsBotsAggregatesJob';}return this.apiClient.callApi('/api/v2/analytics/bots/aggregates/jobs/{jobId}','DELETE',{'jobId':jobId},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
7207
|
+
* Delete/cancel an async request for conversation aggregates
|
|
7208
|
+
*
|
|
7209
|
+
* @param {String} jobId jobId
|
|
7210
|
+
* deleteAnalyticsConversationsAggregatesJob is a preview method and is subject to both breaking and non-breaking changes at any time without notice
|
|
7211
|
+
*/},{key:"deleteAnalyticsConversationsAggregatesJob",value:function deleteAnalyticsConversationsAggregatesJob(jobId){// verify the required parameter 'jobId' is set
|
|
7212
|
+
if(jobId===undefined||jobId===null||jobId===''){throw'Missing the required parameter "jobId" when calling deleteAnalyticsConversationsAggregatesJob';}return this.apiClient.callApi('/api/v2/analytics/conversations/aggregates/jobs/{jobId}','DELETE',{'jobId':jobId},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
7171
7213
|
* Delete/cancel an async details job
|
|
7172
7214
|
*
|
|
7173
7215
|
* @param {String} jobId jobId
|
|
7174
|
-
*/
|
|
7216
|
+
*/},{key:"deleteAnalyticsConversationsDetailsJob",value:function deleteAnalyticsConversationsDetailsJob(jobId){// verify the required parameter 'jobId' is set
|
|
7175
7217
|
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']);}/**
|
|
7218
|
+
* Delete/cancel an async request for evaluation aggregates
|
|
7219
|
+
*
|
|
7220
|
+
* @param {String} jobId jobId
|
|
7221
|
+
* deleteAnalyticsEvaluationsAggregatesJob is a preview method and is subject to both breaking and non-breaking changes at any time without notice
|
|
7222
|
+
*/},{key:"deleteAnalyticsEvaluationsAggregatesJob",value:function deleteAnalyticsEvaluationsAggregatesJob(jobId){// verify the required parameter 'jobId' is set
|
|
7223
|
+
if(jobId===undefined||jobId===null||jobId===''){throw'Missing the required parameter "jobId" when calling deleteAnalyticsEvaluationsAggregatesJob';}return this.apiClient.callApi('/api/v2/analytics/evaluations/aggregates/jobs/{jobId}','DELETE',{'jobId':jobId},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
7224
|
+
* Delete/cancel an async request for flow execution aggregates
|
|
7225
|
+
*
|
|
7226
|
+
* @param {String} jobId jobId
|
|
7227
|
+
* deleteAnalyticsFlowexecutionsAggregatesJob is a preview method and is subject to both breaking and non-breaking changes at any time without notice
|
|
7228
|
+
*/},{key:"deleteAnalyticsFlowexecutionsAggregatesJob",value:function deleteAnalyticsFlowexecutionsAggregatesJob(jobId){// verify the required parameter 'jobId' is set
|
|
7229
|
+
if(jobId===undefined||jobId===null||jobId===''){throw'Missing the required parameter "jobId" when calling deleteAnalyticsFlowexecutionsAggregatesJob';}return this.apiClient.callApi('/api/v2/analytics/flowexecutions/aggregates/jobs/{jobId}','DELETE',{'jobId':jobId},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
7230
|
+
* Delete/cancel an async request for flow aggregates
|
|
7231
|
+
*
|
|
7232
|
+
* @param {String} jobId jobId
|
|
7233
|
+
* deleteAnalyticsFlowsAggregatesJob is a preview method and is subject to both breaking and non-breaking changes at any time without notice
|
|
7234
|
+
*/},{key:"deleteAnalyticsFlowsAggregatesJob",value:function deleteAnalyticsFlowsAggregatesJob(jobId){// verify the required parameter 'jobId' is set
|
|
7235
|
+
if(jobId===undefined||jobId===null||jobId===''){throw'Missing the required parameter "jobId" when calling deleteAnalyticsFlowsAggregatesJob';}return this.apiClient.callApi('/api/v2/analytics/flows/aggregates/jobs/{jobId}','DELETE',{'jobId':jobId},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
7236
|
+
* Delete/cancel an async request for journey aggregates
|
|
7237
|
+
*
|
|
7238
|
+
* @param {String} jobId jobId
|
|
7239
|
+
* deleteAnalyticsJourneysAggregatesJob is a preview method and is subject to both breaking and non-breaking changes at any time without notice
|
|
7240
|
+
*/},{key:"deleteAnalyticsJourneysAggregatesJob",value:function deleteAnalyticsJourneysAggregatesJob(jobId){// verify the required parameter 'jobId' is set
|
|
7241
|
+
if(jobId===undefined||jobId===null||jobId===''){throw'Missing the required parameter "jobId" when calling deleteAnalyticsJourneysAggregatesJob';}return this.apiClient.callApi('/api/v2/analytics/journeys/aggregates/jobs/{jobId}','DELETE',{'jobId':jobId},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
7242
|
+
* Delete/cancel an async request for knowledge aggregates
|
|
7243
|
+
*
|
|
7244
|
+
* @param {String} jobId jobId
|
|
7245
|
+
* deleteAnalyticsKnowledgeAggregatesJob is a preview method and is subject to both breaking and non-breaking changes at any time without notice
|
|
7246
|
+
*/},{key:"deleteAnalyticsKnowledgeAggregatesJob",value:function deleteAnalyticsKnowledgeAggregatesJob(jobId){// verify the required parameter 'jobId' is set
|
|
7247
|
+
if(jobId===undefined||jobId===null||jobId===''){throw'Missing the required parameter "jobId" when calling deleteAnalyticsKnowledgeAggregatesJob';}return this.apiClient.callApi('/api/v2/analytics/knowledge/aggregates/jobs/{jobId}','DELETE',{'jobId':jobId},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
7248
|
+
* Delete/cancel an async request for resolution aggregates
|
|
7249
|
+
*
|
|
7250
|
+
* @param {String} jobId jobId
|
|
7251
|
+
* deleteAnalyticsResolutionsAggregatesJob is a preview method and is subject to both breaking and non-breaking changes at any time without notice
|
|
7252
|
+
*/},{key:"deleteAnalyticsResolutionsAggregatesJob",value:function deleteAnalyticsResolutionsAggregatesJob(jobId){// verify the required parameter 'jobId' is set
|
|
7253
|
+
if(jobId===undefined||jobId===null||jobId===''){throw'Missing the required parameter "jobId" when calling deleteAnalyticsResolutionsAggregatesJob';}return this.apiClient.callApi('/api/v2/analytics/resolutions/aggregates/jobs/{jobId}','DELETE',{'jobId':jobId},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
7254
|
+
* Delete/cancel an async request for summary aggregates
|
|
7255
|
+
*
|
|
7256
|
+
* @param {String} jobId jobId
|
|
7257
|
+
* deleteAnalyticsSummariesAggregatesJob is a preview method and is subject to both breaking and non-breaking changes at any time without notice
|
|
7258
|
+
*/},{key:"deleteAnalyticsSummariesAggregatesJob",value:function deleteAnalyticsSummariesAggregatesJob(jobId){// verify the required parameter 'jobId' is set
|
|
7259
|
+
if(jobId===undefined||jobId===null||jobId===''){throw'Missing the required parameter "jobId" when calling deleteAnalyticsSummariesAggregatesJob';}return this.apiClient.callApi('/api/v2/analytics/summaries/aggregates/jobs/{jobId}','DELETE',{'jobId':jobId},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
7260
|
+
* Delete/cancel an async request for survey aggregates
|
|
7261
|
+
*
|
|
7262
|
+
* @param {String} jobId jobId
|
|
7263
|
+
* deleteAnalyticsSurveysAggregatesJob is a preview method and is subject to both breaking and non-breaking changes at any time without notice
|
|
7264
|
+
*/},{key:"deleteAnalyticsSurveysAggregatesJob",value:function deleteAnalyticsSurveysAggregatesJob(jobId){// verify the required parameter 'jobId' is set
|
|
7265
|
+
if(jobId===undefined||jobId===null||jobId===''){throw'Missing the required parameter "jobId" when calling deleteAnalyticsSurveysAggregatesJob';}return this.apiClient.callApi('/api/v2/analytics/surveys/aggregates/jobs/{jobId}','DELETE',{'jobId':jobId},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
7266
|
+
* Delete/cancel an async request for task management aggregates
|
|
7267
|
+
*
|
|
7268
|
+
* @param {String} jobId jobId
|
|
7269
|
+
* deleteAnalyticsTaskmanagementAggregatesJob is a preview method and is subject to both breaking and non-breaking changes at any time without notice
|
|
7270
|
+
*/},{key:"deleteAnalyticsTaskmanagementAggregatesJob",value:function deleteAnalyticsTaskmanagementAggregatesJob(jobId){// verify the required parameter 'jobId' is set
|
|
7271
|
+
if(jobId===undefined||jobId===null||jobId===''){throw'Missing the required parameter "jobId" when calling deleteAnalyticsTaskmanagementAggregatesJob';}return this.apiClient.callApi('/api/v2/analytics/taskmanagement/aggregates/jobs/{jobId}','DELETE',{'jobId':jobId},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
7272
|
+
* Delete/cancel an async request for transcript aggregates
|
|
7273
|
+
*
|
|
7274
|
+
* @param {String} jobId jobId
|
|
7275
|
+
* deleteAnalyticsTranscriptsAggregatesJob is a preview method and is subject to both breaking and non-breaking changes at any time without notice
|
|
7276
|
+
*/},{key:"deleteAnalyticsTranscriptsAggregatesJob",value:function deleteAnalyticsTranscriptsAggregatesJob(jobId){// verify the required parameter 'jobId' is set
|
|
7277
|
+
if(jobId===undefined||jobId===null||jobId===''){throw'Missing the required parameter "jobId" when calling deleteAnalyticsTranscriptsAggregatesJob';}return this.apiClient.callApi('/api/v2/analytics/transcripts/aggregates/jobs/{jobId}','DELETE',{'jobId':jobId},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
7278
|
+
* Delete/cancel an async request for user aggregates
|
|
7279
|
+
*
|
|
7280
|
+
* @param {String} jobId jobId
|
|
7281
|
+
* deleteAnalyticsUsersAggregatesJob is a preview method and is subject to both breaking and non-breaking changes at any time without notice
|
|
7282
|
+
*/},{key:"deleteAnalyticsUsersAggregatesJob",value:function deleteAnalyticsUsersAggregatesJob(jobId){// verify the required parameter 'jobId' is set
|
|
7283
|
+
if(jobId===undefined||jobId===null||jobId===''){throw'Missing the required parameter "jobId" when calling deleteAnalyticsUsersAggregatesJob';}return this.apiClient.callApi('/api/v2/analytics/users/aggregates/jobs/{jobId}','DELETE',{'jobId':jobId},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
7176
7284
|
* Delete/cancel an async request
|
|
7177
7285
|
*
|
|
7178
7286
|
* @param {String} jobId jobId
|
|
@@ -7613,11 +7721,6 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
7613
7721
|
* @param {Object} body query
|
|
7614
7722
|
*/},{key:"postAnalyticsConversationsDetailsQuery",value:function postAnalyticsConversationsDetailsQuery(body){// verify the required parameter 'body' is set
|
|
7615
7723
|
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']);}/**
|
|
7616
|
-
* Search resources.
|
|
7617
|
-
*
|
|
7618
|
-
* @param {Object} body Search request options
|
|
7619
|
-
*/},{key:"postAnalyticsConversationsTranscriptsQuery",value:function postAnalyticsConversationsTranscriptsQuery(body){// verify the required parameter 'body' is set
|
|
7620
|
-
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling postAnalyticsConversationsTranscriptsQuery';}return this.apiClient.callApi('/api/v2/analytics/conversations/transcripts/query','POST',{},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
7621
7724
|
* Query for evaluation aggregates asynchronously
|
|
7622
7725
|
*
|
|
7623
7726
|
* @param {Object} body query
|
|
@@ -7828,7 +7931,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
7828
7931
|
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(){/**
|
|
7829
7932
|
* Architect service.
|
|
7830
7933
|
* @module purecloud-platform-client-v2/api/ArchitectApi
|
|
7831
|
-
* @version
|
|
7934
|
+
* @version 228.0.0
|
|
7832
7935
|
*//**
|
|
7833
7936
|
* Constructs a new ArchitectApi.
|
|
7834
7937
|
* @alias module:purecloud-platform-client-v2/api/ArchitectApi
|
|
@@ -8962,7 +9065,7 @@ if(milestoneId===undefined||milestoneId===null||milestoneId===''){throw'Missing
|
|
|
8962
9065
|
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(){/**
|
|
8963
9066
|
* Audit service.
|
|
8964
9067
|
* @module purecloud-platform-client-v2/api/AuditApi
|
|
8965
|
-
* @version
|
|
9068
|
+
* @version 228.0.0
|
|
8966
9069
|
*//**
|
|
8967
9070
|
* Constructs a new AuditApi.
|
|
8968
9071
|
* @alias module:purecloud-platform-client-v2/api/AuditApi
|
|
@@ -9012,7 +9115,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
9012
9115
|
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(){/**
|
|
9013
9116
|
* Authorization service.
|
|
9014
9117
|
* @module purecloud-platform-client-v2/api/AuthorizationApi
|
|
9015
|
-
* @version
|
|
9118
|
+
* @version 228.0.0
|
|
9016
9119
|
*//**
|
|
9017
9120
|
* Constructs a new AuthorizationApi.
|
|
9018
9121
|
* @alias module:purecloud-platform-client-v2/api/AuthorizationApi
|
|
@@ -9447,7 +9550,7 @@ if(subjectId===undefined||subjectId===null||subjectId===''){throw'Missing the re
|
|
|
9447
9550
|
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(){/**
|
|
9448
9551
|
* Billing service.
|
|
9449
9552
|
* @module purecloud-platform-client-v2/api/BillingApi
|
|
9450
|
-
* @version
|
|
9553
|
+
* @version 228.0.0
|
|
9451
9554
|
*//**
|
|
9452
9555
|
* Constructs a new BillingApi.
|
|
9453
9556
|
* @alias module:purecloud-platform-client-v2/api/BillingApi
|
|
@@ -9524,7 +9627,7 @@ if(endDate===undefined||endDate===null){throw'Missing the required parameter "en
|
|
|
9524
9627
|
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(){/**
|
|
9525
9628
|
* BusinessRules service.
|
|
9526
9629
|
* @module purecloud-platform-client-v2/api/BusinessRulesApi
|
|
9527
|
-
* @version
|
|
9630
|
+
* @version 228.0.0
|
|
9528
9631
|
*//**
|
|
9529
9632
|
* Constructs a new BusinessRulesApi.
|
|
9530
9633
|
* @alias module:purecloud-platform-client-v2/api/BusinessRulesApi
|
|
@@ -9605,18 +9708,18 @@ if(tableVersion===undefined||tableVersion===null){throw'Missing the required par
|
|
|
9605
9708
|
* @param {Object} opts Optional parameters
|
|
9606
9709
|
* @param {String} opts.after The cursor that points to the end of the set of entities that has been returned.
|
|
9607
9710
|
* @param {String} opts.pageSize Number of entities to return. Maximum of 100.
|
|
9608
|
-
* @param {Array.<String>} opts.divisionIds One or more comma separated divisions to filters decision tables by. If nothing is provided, the decision tables associated with the list of divisions that the user has access to will be returned.
|
|
9609
9711
|
* getBusinessrulesDecisiontableVersions is a preview method and is subject to both breaking and non-breaking changes at any time without notice
|
|
9610
9712
|
*/},{key:"getBusinessrulesDecisiontableVersions",value:function getBusinessrulesDecisiontableVersions(tableId,opts){opts=opts||{};// verify the required parameter 'tableId' is set
|
|
9611
|
-
if(tableId===undefined||tableId===null||tableId===''){throw'Missing the required parameter "tableId" when calling getBusinessrulesDecisiontableVersions';}return this.apiClient.callApi('/api/v2/businessrules/decisiontables/{tableId}/versions','GET',{'tableId':tableId},{'after':opts['after'],'pageSize':opts['pageSize']
|
|
9713
|
+
if(tableId===undefined||tableId===null||tableId===''){throw'Missing the required parameter "tableId" when calling getBusinessrulesDecisiontableVersions';}return this.apiClient.callApi('/api/v2/businessrules/decisiontables/{tableId}/versions','GET',{'tableId':tableId},{'after':opts['after'],'pageSize':opts['pageSize']},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
9612
9714
|
* Get a list of decision tables.
|
|
9613
9715
|
*
|
|
9614
9716
|
* @param {Object} opts Optional parameters
|
|
9615
9717
|
* @param {String} opts.after The cursor that points to the end of the set of entities that has been returned.
|
|
9616
9718
|
* @param {String} opts.pageSize Number of entities to return. Maximum of 100.
|
|
9617
9719
|
* @param {Array.<String>} opts.divisionIds One or more comma separated divisions to filters decision tables by. If nothing is provided, the decision tables associated with the list of divisions that the user has access to will be returned.
|
|
9720
|
+
* @param {String} opts.name Search for decision tables with a name that contains the given search string. Search is case insensitive and will match any table that contains this string in any part of the name.
|
|
9618
9721
|
* getBusinessrulesDecisiontables is a preview method and is subject to both breaking and non-breaking changes at any time without notice
|
|
9619
|
-
*/},{key:"getBusinessrulesDecisiontables",value:function getBusinessrulesDecisiontables(opts){opts=opts||{};return this.apiClient.callApi('/api/v2/businessrules/decisiontables','GET',{},{'after':opts['after'],'pageSize':opts['pageSize'],'divisionIds':this.apiClient.buildCollectionParam(opts['divisionIds'],'multi')},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
9722
|
+
*/},{key:"getBusinessrulesDecisiontables",value:function getBusinessrulesDecisiontables(opts){opts=opts||{};return this.apiClient.callApi('/api/v2/businessrules/decisiontables','GET',{},{'after':opts['after'],'pageSize':opts['pageSize'],'divisionIds':this.apiClient.buildCollectionParam(opts['divisionIds'],'multi'),'name':opts['name']},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
9620
9723
|
* Search for decision tables.
|
|
9621
9724
|
*
|
|
9622
9725
|
* @param {Object} opts Optional parameters
|
|
@@ -9667,19 +9770,6 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
9667
9770
|
if(tableId===undefined||tableId===null||tableId===''){throw'Missing the required parameter "tableId" when calling patchBusinessrulesDecisiontableVersion';}// verify the required parameter 'tableVersion' is set
|
|
9668
9771
|
if(tableVersion===undefined||tableVersion===null){throw'Missing the required parameter "tableVersion" when calling patchBusinessrulesDecisiontableVersion';}// verify the required parameter 'body' is set
|
|
9669
9772
|
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling patchBusinessrulesDecisiontableVersion';}return this.apiClient.callApi('/api/v2/businessrules/decisiontables/{tableId}/versions/{tableVersion}','PATCH',{'tableId':tableId,'tableVersion':tableVersion},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
9670
|
-
* Partially update a decision table row. Will be deprecated, we should use PUT request.
|
|
9671
|
-
*
|
|
9672
|
-
* @param {String} tableId Table ID
|
|
9673
|
-
* @param {Number} tableVersion Table Version
|
|
9674
|
-
* @param {String} rowId Row ID
|
|
9675
|
-
* @param {Object} body Partially update decision table row request
|
|
9676
|
-
* @deprecated
|
|
9677
|
-
* patchBusinessrulesDecisiontableVersionRow is a preview method and is subject to both breaking and non-breaking changes at any time without notice
|
|
9678
|
-
*/},{key:"patchBusinessrulesDecisiontableVersionRow",value:function patchBusinessrulesDecisiontableVersionRow(tableId,tableVersion,rowId,body){// verify the required parameter 'tableId' is set
|
|
9679
|
-
if(tableId===undefined||tableId===null||tableId===''){throw'Missing the required parameter "tableId" when calling patchBusinessrulesDecisiontableVersionRow';}// verify the required parameter 'tableVersion' is set
|
|
9680
|
-
if(tableVersion===undefined||tableVersion===null){throw'Missing the required parameter "tableVersion" when calling patchBusinessrulesDecisiontableVersionRow';}// verify the required parameter 'rowId' is set
|
|
9681
|
-
if(rowId===undefined||rowId===null||rowId===''){throw'Missing the required parameter "rowId" when calling patchBusinessrulesDecisiontableVersionRow';}// verify the required parameter 'body' is set
|
|
9682
|
-
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling patchBusinessrulesDecisiontableVersionRow';}return this.apiClient.callApi('/api/v2/businessrules/decisiontables/{tableId}/versions/{tableVersion}/rows/{rowId}','PATCH',{'tableId':tableId,'tableVersion':tableVersion,'rowId':rowId},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
9683
9773
|
* Execute a published decision table
|
|
9684
9774
|
*
|
|
9685
9775
|
* @param {String} tableId Table ID
|
|
@@ -9787,7 +9877,7 @@ if(schemaId===undefined||schemaId===null||schemaId===''){throw'Missing the requi
|
|
|
9787
9877
|
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(){/**
|
|
9788
9878
|
* CarrierServices service.
|
|
9789
9879
|
* @module purecloud-platform-client-v2/api/CarrierServicesApi
|
|
9790
|
-
* @version
|
|
9880
|
+
* @version 228.0.0
|
|
9791
9881
|
*//**
|
|
9792
9882
|
* Constructs a new CarrierServicesApi.
|
|
9793
9883
|
* @alias module:purecloud-platform-client-v2/api/CarrierServicesApi
|
|
@@ -9807,7 +9897,7 @@ if(phoneNumber===undefined||phoneNumber===null){throw'Missing the required param
|
|
|
9807
9897
|
*/},{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(){/**
|
|
9808
9898
|
* Chat service.
|
|
9809
9899
|
* @module purecloud-platform-client-v2/api/ChatApi
|
|
9810
|
-
* @version
|
|
9900
|
+
* @version 228.0.0
|
|
9811
9901
|
*//**
|
|
9812
9902
|
* Constructs a new ChatApi.
|
|
9813
9903
|
* @alias module:purecloud-platform-client-v2/api/ChatApi
|
|
@@ -9877,8 +9967,9 @@ if(messageIds===undefined||messageIds===null||messageIds===''){throw'Missing the
|
|
|
9877
9967
|
* @param {String} opts.limit The maximum number of messages to retrieve
|
|
9878
9968
|
* @param {String} opts.before The cutoff date for messages to retrieve
|
|
9879
9969
|
* @param {String} opts.after The beginning date for messages to retrieve
|
|
9970
|
+
* @param {Boolean} opts.excludeMetadata Whether to exclude metadata for messages
|
|
9880
9971
|
*/},{key:"getChatsRoomMessages",value:function getChatsRoomMessages(roomJid,opts){opts=opts||{};// verify the required parameter 'roomJid' is set
|
|
9881
|
-
if(roomJid===undefined||roomJid===null||roomJid===''){throw'Missing the required parameter "roomJid" when calling getChatsRoomMessages';}return this.apiClient.callApi('/api/v2/chats/rooms/{roomJid}/messages','GET',{'roomJid':roomJid},{'limit':opts['limit'],'before':opts['before'],'after':opts['after']},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
9972
|
+
if(roomJid===undefined||roomJid===null||roomJid===''){throw'Missing the required parameter "roomJid" when calling getChatsRoomMessages';}return this.apiClient.callApi('/api/v2/chats/rooms/{roomJid}/messages','GET',{'roomJid':roomJid},{'limit':opts['limit'],'before':opts['before'],'after':opts['after'],'excludeMetadata':opts['excludeMetadata']},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
9882
9973
|
* Get a room participant
|
|
9883
9974
|
*
|
|
9884
9975
|
* @param {String} roomJid roomJid
|
|
@@ -9903,8 +9994,9 @@ if(roomJid===undefined||roomJid===null||roomJid===''){throw'Missing the required
|
|
|
9903
9994
|
* @param {String} opts.limit The maximum number of messages to retrieve
|
|
9904
9995
|
* @param {String} opts.before The cutoff date for messages to retrieve
|
|
9905
9996
|
* @param {String} opts.after The beginning date for messages to retrieve
|
|
9997
|
+
* @param {Boolean} opts.excludeMetadata Whether to exclude metadata for messages
|
|
9906
9998
|
*/},{key:"getChatsThreadMessages",value:function getChatsThreadMessages(threadId,opts){opts=opts||{};// verify the required parameter 'threadId' is set
|
|
9907
|
-
if(threadId===undefined||threadId===null||threadId===''){throw'Missing the required parameter "threadId" when calling getChatsThreadMessages';}return this.apiClient.callApi('/api/v2/chats/threads/{threadId}/messages','GET',{'threadId':threadId},{'limit':opts['limit'],'before':opts['before'],'after':opts['after']},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
9999
|
+
if(threadId===undefined||threadId===null||threadId===''){throw'Missing the required parameter "threadId" when calling getChatsThreadMessages';}return this.apiClient.callApi('/api/v2/chats/threads/{threadId}/messages','GET',{'threadId':threadId},{'limit':opts['limit'],'before':opts['before'],'after':opts['after'],'excludeMetadata':opts['excludeMetadata']},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
9908
10000
|
* Get information for a 1on1
|
|
9909
10001
|
*
|
|
9910
10002
|
* @param {String} userId userId
|
|
@@ -9924,8 +10016,9 @@ if(messageIds===undefined||messageIds===null||messageIds===''){throw'Missing the
|
|
|
9924
10016
|
* @param {String} opts.limit The maximum number of messages to retrieve
|
|
9925
10017
|
* @param {String} opts.before The cutoff date for messages to retrieve
|
|
9926
10018
|
* @param {String} opts.after The beginning date for messages to retrieve
|
|
10019
|
+
* @param {Boolean} opts.excludeMetadata Whether to exclude metadata for messages
|
|
9927
10020
|
*/},{key:"getChatsUserMessages",value:function getChatsUserMessages(userId,opts){opts=opts||{};// verify the required parameter 'userId' is set
|
|
9928
|
-
if(userId===undefined||userId===null||userId===''){throw'Missing the required parameter "userId" when calling getChatsUserMessages';}return this.apiClient.callApi('/api/v2/chats/users/{userId}/messages','GET',{'userId':userId},{'limit':opts['limit'],'before':opts['before'],'after':opts['after']},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
10021
|
+
if(userId===undefined||userId===null||userId===''){throw'Missing the required parameter "userId" when calling getChatsUserMessages';}return this.apiClient.callApi('/api/v2/chats/users/{userId}/messages','GET',{'userId':userId},{'limit':opts['limit'],'before':opts['before'],'after':opts['after'],'excludeMetadata':opts['excludeMetadata']},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
9929
10022
|
* Get a user's chat settings
|
|
9930
10023
|
*
|
|
9931
10024
|
* @param {String} userId User ID
|
|
@@ -10035,7 +10128,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
10035
10128
|
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(){/**
|
|
10036
10129
|
* Coaching service.
|
|
10037
10130
|
* @module purecloud-platform-client-v2/api/CoachingApi
|
|
10038
|
-
* @version
|
|
10131
|
+
* @version 228.0.0
|
|
10039
10132
|
*//**
|
|
10040
10133
|
* Constructs a new CoachingApi.
|
|
10041
10134
|
* @alias module:purecloud-platform-client-v2/api/CoachingApi
|
|
@@ -10188,7 +10281,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
10188
10281
|
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(){/**
|
|
10189
10282
|
* ContentManagement service.
|
|
10190
10283
|
* @module purecloud-platform-client-v2/api/ContentManagementApi
|
|
10191
|
-
* @version
|
|
10284
|
+
* @version 228.0.0
|
|
10192
10285
|
*//**
|
|
10193
10286
|
* Constructs a new ContentManagementApi.
|
|
10194
10287
|
* @alias module:purecloud-platform-client-v2/api/ContentManagementApi
|
|
@@ -10470,7 +10563,7 @@ if(tagId===undefined||tagId===null||tagId===''){throw'Missing the required param
|
|
|
10470
10563
|
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(){/**
|
|
10471
10564
|
* Conversations service.
|
|
10472
10565
|
* @module purecloud-platform-client-v2/api/ConversationsApi
|
|
10473
|
-
* @version
|
|
10566
|
+
* @version 228.0.0
|
|
10474
10567
|
*//**
|
|
10475
10568
|
* Constructs a new ConversationsApi.
|
|
10476
10569
|
* @alias module:purecloud-platform-client-v2/api/ConversationsApi
|
|
@@ -10478,10 +10571,16 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
10478
10571
|
* @param {module:purecloud-platform-client-v2/ApiClient} apiClient Optional API client implementation to use,
|
|
10479
10572
|
* default to {@link module:purecloud-platform-client-v2/ApiClient#instance} if unspecified.
|
|
10480
10573
|
*/function ConversationsApi(apiClient){_classCallCheck(this,ConversationsApi);this.apiClient=apiClient||ApiClient.instance;}/**
|
|
10574
|
+
* Delete/cancel an async request for conversation aggregates
|
|
10575
|
+
*
|
|
10576
|
+
* @param {String} jobId jobId
|
|
10577
|
+
* deleteAnalyticsConversationsAggregatesJob is a preview method and is subject to both breaking and non-breaking changes at any time without notice
|
|
10578
|
+
*/return _createClass(ConversationsApi,[{key:"deleteAnalyticsConversationsAggregatesJob",value:function deleteAnalyticsConversationsAggregatesJob(jobId){// verify the required parameter 'jobId' is set
|
|
10579
|
+
if(jobId===undefined||jobId===null||jobId===''){throw'Missing the required parameter "jobId" when calling deleteAnalyticsConversationsAggregatesJob';}return this.apiClient.callApi('/api/v2/analytics/conversations/aggregates/jobs/{jobId}','DELETE',{'jobId':jobId},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
10481
10580
|
* Delete/cancel an async details job
|
|
10482
10581
|
*
|
|
10483
10582
|
* @param {String} jobId jobId
|
|
10484
|
-
*/
|
|
10583
|
+
*/},{key:"deleteAnalyticsConversationsDetailsJob",value:function deleteAnalyticsConversationsDetailsJob(jobId){// verify the required parameter 'jobId' is set
|
|
10485
10584
|
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']);}/**
|
|
10486
10585
|
* Delete a code used to add a communication to this participant
|
|
10487
10586
|
*
|
|
@@ -10769,13 +10868,13 @@ if(participantId===undefined||participantId===null||participantId===''){throw'Mi
|
|
|
10769
10868
|
*
|
|
10770
10869
|
*/},{key:"getConversationsCallsMaximumconferenceparties",value:function getConversationsCallsMaximumconferenceparties(){return this.apiClient.callApi('/api/v2/conversations/calls/maximumconferenceparties','GET',{},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
10771
10870
|
* Get chat conversation
|
|
10772
|
-
* This endpoint is deprecated. Please see the article https://help.
|
|
10871
|
+
* This endpoint is deprecated. Please see the article https://help.genesys.cloud/articles/deprecation-removal-of-acd-web-chat-version-2/.
|
|
10773
10872
|
* @param {String} conversationId conversationId
|
|
10774
10873
|
* @deprecated
|
|
10775
10874
|
*/},{key:"getConversationsChat",value:function getConversationsChat(conversationId){// verify the required parameter 'conversationId' is set
|
|
10776
10875
|
if(conversationId===undefined||conversationId===null||conversationId===''){throw'Missing the required parameter "conversationId" when calling getConversationsChat';}return this.apiClient.callApi('/api/v2/conversations/chats/{conversationId}','GET',{'conversationId':conversationId},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
10777
10876
|
* Get a web chat conversation message
|
|
10778
|
-
* This endpoint is deprecated. Please see the article https://help.
|
|
10877
|
+
* This endpoint is deprecated. Please see the article https://help.genesys.cloud/articles/deprecation-removal-of-acd-web-chat-version-2/. The current user must be involved with the conversation to get its messages.
|
|
10779
10878
|
* @param {String} conversationId conversationId
|
|
10780
10879
|
* @param {String} messageId messageId
|
|
10781
10880
|
* @deprecated
|
|
@@ -10783,7 +10882,7 @@ if(conversationId===undefined||conversationId===null||conversationId===''){throw
|
|
|
10783
10882
|
if(conversationId===undefined||conversationId===null||conversationId===''){throw'Missing the required parameter "conversationId" when calling getConversationsChatMessage';}// verify the required parameter 'messageId' is set
|
|
10784
10883
|
if(messageId===undefined||messageId===null||messageId===''){throw'Missing the required parameter "messageId" when calling getConversationsChatMessage';}return this.apiClient.callApi('/api/v2/conversations/chats/{conversationId}/messages/{messageId}','GET',{'conversationId':conversationId,'messageId':messageId},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
10785
10884
|
* Get the messages of a chat conversation.
|
|
10786
|
-
* This endpoint is deprecated. Please see the article https://help.
|
|
10885
|
+
* This endpoint is deprecated. Please see the article https://help.genesys.cloud/articles/deprecation-removal-of-acd-web-chat-version-2/. The current user must be involved with the conversation to get its messages.
|
|
10787
10886
|
* @param {String} conversationId conversationId
|
|
10788
10887
|
* @param {Object} opts Optional parameters
|
|
10789
10888
|
* @param {String} opts.after If specified, get the messages chronologically after the id of this message
|
|
@@ -10794,7 +10893,7 @@ if(messageId===undefined||messageId===null||messageId===''){throw'Missing the re
|
|
|
10794
10893
|
*/},{key:"getConversationsChatMessages",value:function getConversationsChatMessages(conversationId,opts){opts=opts||{};// verify the required parameter 'conversationId' is set
|
|
10795
10894
|
if(conversationId===undefined||conversationId===null||conversationId===''){throw'Missing the required parameter "conversationId" when calling getConversationsChatMessages';}return this.apiClient.callApi('/api/v2/conversations/chats/{conversationId}/messages','GET',{'conversationId':conversationId},{'after':opts['after'],'before':opts['before'],'sortOrder':opts['sortOrder'],'maxResults':opts['maxResults']},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
10796
10895
|
* Get the wrap-up for this conversation communication.
|
|
10797
|
-
* This endpoint is deprecated. Please see the article https://help.
|
|
10896
|
+
* This endpoint is deprecated. Please see the article https://help.genesys.cloud/articles/deprecation-removal-of-acd-web-chat-version-2/.
|
|
10798
10897
|
* @param {String} conversationId conversationId
|
|
10799
10898
|
* @param {String} participantId participantId
|
|
10800
10899
|
* @param {String} communicationId communicationId
|
|
@@ -10806,7 +10905,7 @@ if(conversationId===undefined||conversationId===null||conversationId===''){throw
|
|
|
10806
10905
|
if(participantId===undefined||participantId===null||participantId===''){throw'Missing the required parameter "participantId" when calling getConversationsChatParticipantCommunicationWrapup';}// verify the required parameter 'communicationId' is set
|
|
10807
10906
|
if(communicationId===undefined||communicationId===null||communicationId===''){throw'Missing the required parameter "communicationId" when calling getConversationsChatParticipantCommunicationWrapup';}return this.apiClient.callApi('/api/v2/conversations/chats/{conversationId}/participants/{participantId}/communications/{communicationId}/wrapup','GET',{'conversationId':conversationId,'participantId':participantId,'communicationId':communicationId},{'provisional':opts['provisional']},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
10808
10907
|
* Get the wrap-up for this conversation participant.
|
|
10809
|
-
* This endpoint is deprecated. Please see the article https://help.
|
|
10908
|
+
* This endpoint is deprecated. Please see the article https://help.genesys.cloud/articles/deprecation-removal-of-acd-web-chat-version-2/.
|
|
10810
10909
|
* @param {String} conversationId conversationId
|
|
10811
10910
|
* @param {String} participantId participantId
|
|
10812
10911
|
* @param {Object} opts Optional parameters
|
|
@@ -10816,7 +10915,7 @@ if(communicationId===undefined||communicationId===null||communicationId===''){th
|
|
|
10816
10915
|
if(conversationId===undefined||conversationId===null||conversationId===''){throw'Missing the required parameter "conversationId" when calling getConversationsChatParticipantWrapup';}// verify the required parameter 'participantId' is set
|
|
10817
10916
|
if(participantId===undefined||participantId===null||participantId===''){throw'Missing the required parameter "participantId" when calling getConversationsChatParticipantWrapup';}return this.apiClient.callApi('/api/v2/conversations/chats/{conversationId}/participants/{participantId}/wrapup','GET',{'conversationId':conversationId,'participantId':participantId},{'provisional':opts['provisional']},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
10818
10917
|
* Get list of wrapup codes for this conversation participant
|
|
10819
|
-
* This endpoint is deprecated. Please see the article https://help.
|
|
10918
|
+
* This endpoint is deprecated. Please see the article https://help.genesys.cloud/articles/deprecation-removal-of-acd-web-chat-version-2/.
|
|
10820
10919
|
* @param {String} conversationId conversationId
|
|
10821
10920
|
* @param {String} participantId participantId
|
|
10822
10921
|
* @deprecated
|
|
@@ -10824,7 +10923,7 @@ if(participantId===undefined||participantId===null||participantId===''){throw'Mi
|
|
|
10824
10923
|
if(conversationId===undefined||conversationId===null||conversationId===''){throw'Missing the required parameter "conversationId" when calling getConversationsChatParticipantWrapupcodes';}// verify the required parameter 'participantId' is set
|
|
10825
10924
|
if(participantId===undefined||participantId===null||participantId===''){throw'Missing the required parameter "participantId" when calling getConversationsChatParticipantWrapupcodes';}return this.apiClient.callApi('/api/v2/conversations/chats/{conversationId}/participants/{participantId}/wrapupcodes','GET',{'conversationId':conversationId,'participantId':participantId},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
10826
10925
|
* Get active chat conversations for the logged in user
|
|
10827
|
-
* This endpoint is deprecated. Please see the article https://help.
|
|
10926
|
+
* This endpoint is deprecated. Please see the article https://help.genesys.cloud/articles/deprecation-removal-of-acd-web-chat-version-2/.
|
|
10828
10927
|
* @deprecated
|
|
10829
10928
|
*/},{key:"getConversationsChats",value:function getConversationsChats(){return this.apiClient.callApi('/api/v2/conversations/chats','GET',{},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
10830
10929
|
* Get cobrowse conversation
|
|
@@ -10833,7 +10932,7 @@ if(participantId===undefined||participantId===null||participantId===''){throw'Mi
|
|
|
10833
10932
|
*/},{key:"getConversationsCobrowsesession",value:function getConversationsCobrowsesession(conversationId){// verify the required parameter 'conversationId' is set
|
|
10834
10933
|
if(conversationId===undefined||conversationId===null||conversationId===''){throw'Missing the required parameter "conversationId" when calling getConversationsCobrowsesession';}return this.apiClient.callApi('/api/v2/conversations/cobrowsesessions/{conversationId}','GET',{'conversationId':conversationId},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
10835
10934
|
* Get the wrap-up for this conversation communication.
|
|
10836
|
-
* This endpoint is deprecated. Please see the article https://help.
|
|
10935
|
+
* This endpoint is deprecated. Please see the article https://help.genesys.cloud/articles/deprecation-legacy-co-browse-and-screenshare/
|
|
10837
10936
|
* @param {String} conversationId conversationId
|
|
10838
10937
|
* @param {String} participantId participantId
|
|
10839
10938
|
* @param {String} communicationId communicationId
|
|
@@ -10845,7 +10944,7 @@ if(conversationId===undefined||conversationId===null||conversationId===''){throw
|
|
|
10845
10944
|
if(participantId===undefined||participantId===null||participantId===''){throw'Missing the required parameter "participantId" when calling getConversationsCobrowsesessionParticipantCommunicationWrapup';}// verify the required parameter 'communicationId' is set
|
|
10846
10945
|
if(communicationId===undefined||communicationId===null||communicationId===''){throw'Missing the required parameter "communicationId" when calling getConversationsCobrowsesessionParticipantCommunicationWrapup';}return this.apiClient.callApi('/api/v2/conversations/cobrowsesessions/{conversationId}/participants/{participantId}/communications/{communicationId}/wrapup','GET',{'conversationId':conversationId,'participantId':participantId,'communicationId':communicationId},{'provisional':opts['provisional']},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
10847
10946
|
* Get the wrap-up for this conversation participant.
|
|
10848
|
-
* This endpoint is deprecated. Please see the article https://help.
|
|
10947
|
+
* This endpoint is deprecated. Please see the article https://help.genesys.cloud/articles/deprecation-legacy-co-browse-and-screenshare/
|
|
10849
10948
|
* @param {String} conversationId conversationId
|
|
10850
10949
|
* @param {String} participantId participantId
|
|
10851
10950
|
* @param {Object} opts Optional parameters
|
|
@@ -10855,7 +10954,7 @@ if(communicationId===undefined||communicationId===null||communicationId===''){th
|
|
|
10855
10954
|
if(conversationId===undefined||conversationId===null||conversationId===''){throw'Missing the required parameter "conversationId" when calling getConversationsCobrowsesessionParticipantWrapup';}// verify the required parameter 'participantId' is set
|
|
10856
10955
|
if(participantId===undefined||participantId===null||participantId===''){throw'Missing the required parameter "participantId" when calling getConversationsCobrowsesessionParticipantWrapup';}return this.apiClient.callApi('/api/v2/conversations/cobrowsesessions/{conversationId}/participants/{participantId}/wrapup','GET',{'conversationId':conversationId,'participantId':participantId},{'provisional':opts['provisional']},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
10857
10956
|
* Get list of wrapup codes for this conversation participant
|
|
10858
|
-
* This endpoint is deprecated. Please see the article https://help.
|
|
10957
|
+
* This endpoint is deprecated. Please see the article https://help.genesys.cloud/articles/deprecation-legacy-co-browse-and-screenshare/
|
|
10859
10958
|
* @param {String} conversationId conversationId
|
|
10860
10959
|
* @param {String} participantId participantId
|
|
10861
10960
|
* @deprecated
|
|
@@ -11178,7 +11277,7 @@ if(supportedContentId===undefined||supportedContentId===null||supportedContentId
|
|
|
11178
11277
|
* Conversation messaging threading timeline is a setting defined for each messenger type in your organization. This setting will dictate whether a new message is added to the most recent existing conversation, or creates a new Conversation. If the existing Conversation is still in a connected state the threading timeline setting will never play a role. After the conversation is disconnected, if an inbound message is received or an outbound message is sent after the setting for threading timeline expires, a new conversation is created.
|
|
11179
11278
|
*/},{key:"getConversationsMessagingThreadingtimeline",value:function getConversationsMessagingThreadingtimeline(){return this.apiClient.callApi('/api/v2/conversations/messaging/threadingtimeline','GET',{},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
11180
11279
|
* Get the wrap-up for this conversation communication.
|
|
11181
|
-
* This endpoint is deprecated. Please see the article https://help.
|
|
11280
|
+
* This endpoint is deprecated. Please see the article https://help.genesys.cloud/articles/deprecation-legacy-co-browse-and-screenshare/
|
|
11182
11281
|
* @param {String} conversationId conversationId
|
|
11183
11282
|
* @param {String} participantId participantId
|
|
11184
11283
|
* @param {String} communicationId communicationId
|
|
@@ -11312,7 +11411,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
11312
11411
|
if(conversationId===undefined||conversationId===null||conversationId===''){throw'Missing the required parameter "conversationId" when calling patchConversationsCallParticipantAttributes';}// verify the required parameter 'participantId' is set
|
|
11313
11412
|
if(participantId===undefined||participantId===null||participantId===''){throw'Missing the required parameter "participantId" when calling patchConversationsCallParticipantAttributes';}// verify the required parameter 'body' is set
|
|
11314
11413
|
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling patchConversationsCallParticipantAttributes';}return this.apiClient.callApi('/api/v2/conversations/calls/{conversationId}/participants/{participantId}/attributes','PATCH',{'conversationId':conversationId,'participantId':participantId},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
11315
|
-
* Update conversation participant's communication by disconnecting it.
|
|
11414
|
+
* Update conversation participant's communication by disconnecting it. This endpoint does not update wrapup.
|
|
11316
11415
|
*
|
|
11317
11416
|
* @param {String} conversationId conversationId
|
|
11318
11417
|
* @param {String} participantId participantId
|
|
@@ -11374,7 +11473,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
11374
11473
|
*/},{key:"patchConversationsCallbacks",value:function patchConversationsCallbacks(body){// verify the required parameter 'body' is set
|
|
11375
11474
|
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling patchConversationsCallbacks';}return this.apiClient.callApi('/api/v2/conversations/callbacks','PATCH',{},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
11376
11475
|
* Update a conversation by disconnecting all of the participants
|
|
11377
|
-
* This endpoint is deprecated. Please see the article https://help.
|
|
11476
|
+
* This endpoint is deprecated. Please see the article https://help.genesys.cloud/articles/deprecation-removal-of-acd-web-chat-version-2/.
|
|
11378
11477
|
* @param {String} conversationId conversationId
|
|
11379
11478
|
* @param {Object} body Conversation
|
|
11380
11479
|
* @deprecated
|
|
@@ -11382,7 +11481,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
11382
11481
|
if(conversationId===undefined||conversationId===null||conversationId===''){throw'Missing the required parameter "conversationId" when calling patchConversationsChat';}// verify the required parameter 'body' is set
|
|
11383
11482
|
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling patchConversationsChat';}return this.apiClient.callApi('/api/v2/conversations/chats/{conversationId}','PATCH',{'conversationId':conversationId},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
11384
11483
|
* Update conversation participant
|
|
11385
|
-
* This endpoint is deprecated. Please see the article https://help.
|
|
11484
|
+
* This endpoint is deprecated. Please see the article https://help.genesys.cloud/articles/deprecation-removal-of-acd-web-chat-version-2/.
|
|
11386
11485
|
* @param {String} conversationId conversationId
|
|
11387
11486
|
* @param {String} participantId participantId
|
|
11388
11487
|
* @param {Object} body Update request
|
|
@@ -11392,7 +11491,7 @@ if(conversationId===undefined||conversationId===null||conversationId===''){throw
|
|
|
11392
11491
|
if(participantId===undefined||participantId===null||participantId===''){throw'Missing the required parameter "participantId" when calling patchConversationsChatParticipant';}// verify the required parameter 'body' is set
|
|
11393
11492
|
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling patchConversationsChatParticipant';}return this.apiClient.callApi('/api/v2/conversations/chats/{conversationId}/participants/{participantId}','PATCH',{'conversationId':conversationId,'participantId':participantId},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
11394
11493
|
* Update the attributes on a conversation participant.
|
|
11395
|
-
* This endpoint is deprecated. Please see the article https://help.
|
|
11494
|
+
* This endpoint is deprecated. Please see the article https://help.genesys.cloud/articles/deprecation-removal-of-acd-web-chat-version-2/.
|
|
11396
11495
|
* @param {String} conversationId conversationId
|
|
11397
11496
|
* @param {String} participantId participantId
|
|
11398
11497
|
* @param {Object} body Participant attributes
|
|
@@ -11401,8 +11500,8 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
11401
11500
|
if(conversationId===undefined||conversationId===null||conversationId===''){throw'Missing the required parameter "conversationId" when calling patchConversationsChatParticipantAttributes';}// verify the required parameter 'participantId' is set
|
|
11402
11501
|
if(participantId===undefined||participantId===null||participantId===''){throw'Missing the required parameter "participantId" when calling patchConversationsChatParticipantAttributes';}// verify the required parameter 'body' is set
|
|
11403
11502
|
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling patchConversationsChatParticipantAttributes';}return this.apiClient.callApi('/api/v2/conversations/chats/{conversationId}/participants/{participantId}/attributes','PATCH',{'conversationId':conversationId,'participantId':participantId},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
11404
|
-
* Update conversation participant's communication by disconnecting it.
|
|
11405
|
-
* This endpoint is deprecated. Please see the article https://help.
|
|
11503
|
+
* Update conversation participant's communication by disconnecting it. This endpoint does not update wrapup.
|
|
11504
|
+
* This endpoint is deprecated. Please see the article https://help.genesys.cloud/articles/deprecation-removal-of-acd-web-chat-version-2/.
|
|
11406
11505
|
* @param {String} conversationId conversationId
|
|
11407
11506
|
* @param {String} participantId participantId
|
|
11408
11507
|
* @param {String} communicationId communicationId
|
|
@@ -11414,7 +11513,7 @@ if(participantId===undefined||participantId===null||participantId===''){throw'Mi
|
|
|
11414
11513
|
if(communicationId===undefined||communicationId===null||communicationId===''){throw'Missing the required parameter "communicationId" when calling patchConversationsChatParticipantCommunication';}// verify the required parameter 'body' is set
|
|
11415
11514
|
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling patchConversationsChatParticipantCommunication';}return this.apiClient.callApi('/api/v2/conversations/chats/{conversationId}/participants/{participantId}/communications/{communicationId}','PATCH',{'conversationId':conversationId,'participantId':participantId,'communicationId':communicationId},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
11416
11515
|
* Update a conversation by disconnecting all of the participants
|
|
11417
|
-
* This endpoint is deprecated. Please see the article https://help.
|
|
11516
|
+
* This endpoint is deprecated. Please see the article https://help.genesys.cloud/articles/deprecation-legacy-co-browse-and-screenshare/
|
|
11418
11517
|
* @param {String} conversationId conversationId
|
|
11419
11518
|
* @param {Object} body Conversation
|
|
11420
11519
|
* @deprecated
|
|
@@ -11422,7 +11521,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
11422
11521
|
if(conversationId===undefined||conversationId===null||conversationId===''){throw'Missing the required parameter "conversationId" when calling patchConversationsCobrowsesession';}// verify the required parameter 'body' is set
|
|
11423
11522
|
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling patchConversationsCobrowsesession';}return this.apiClient.callApi('/api/v2/conversations/cobrowsesessions/{conversationId}','PATCH',{'conversationId':conversationId},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
11424
11523
|
* Update conversation participant
|
|
11425
|
-
* This endpoint is deprecated. Please see the article https://help.
|
|
11524
|
+
* This endpoint is deprecated. Please see the article https://help.genesys.cloud/articles/deprecation-legacy-co-browse-and-screenshare/
|
|
11426
11525
|
* @param {String} conversationId conversationId
|
|
11427
11526
|
* @param {String} participantId participantId
|
|
11428
11527
|
* @param {Object} opts Optional parameters
|
|
@@ -11432,7 +11531,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
11432
11531
|
if(conversationId===undefined||conversationId===null||conversationId===''){throw'Missing the required parameter "conversationId" when calling patchConversationsCobrowsesessionParticipant';}// verify the required parameter 'participantId' is set
|
|
11433
11532
|
if(participantId===undefined||participantId===null||participantId===''){throw'Missing the required parameter "participantId" when calling patchConversationsCobrowsesessionParticipant';}return this.apiClient.callApi('/api/v2/conversations/cobrowsesessions/{conversationId}/participants/{participantId}','PATCH',{'conversationId':conversationId,'participantId':participantId},{},{},{},opts['body'],['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
11434
11533
|
* Update the attributes on a conversation participant.
|
|
11435
|
-
* This endpoint is deprecated. Please see the article https://help.
|
|
11534
|
+
* This endpoint is deprecated. Please see the article https://help.genesys.cloud/articles/deprecation-legacy-co-browse-and-screenshare/
|
|
11436
11535
|
* @param {String} conversationId conversationId
|
|
11437
11536
|
* @param {String} participantId participantId
|
|
11438
11537
|
* @param {Object} opts Optional parameters
|
|
@@ -11442,7 +11541,7 @@ if(participantId===undefined||participantId===null||participantId===''){throw'Mi
|
|
|
11442
11541
|
if(conversationId===undefined||conversationId===null||conversationId===''){throw'Missing the required parameter "conversationId" when calling patchConversationsCobrowsesessionParticipantAttributes';}// verify the required parameter 'participantId' is set
|
|
11443
11542
|
if(participantId===undefined||participantId===null||participantId===''){throw'Missing the required parameter "participantId" when calling patchConversationsCobrowsesessionParticipantAttributes';}return this.apiClient.callApi('/api/v2/conversations/cobrowsesessions/{conversationId}/participants/{participantId}/attributes','PATCH',{'conversationId':conversationId,'participantId':participantId},{},{},{},opts['body'],['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
11444
11543
|
* Update conversation participant's communication by disconnecting it.
|
|
11445
|
-
* This endpoint is deprecated. Please see the article https://help.
|
|
11544
|
+
* This endpoint is deprecated. Please see the article https://help.genesys.cloud/articles/deprecation-legacy-co-browse-and-screenshare/
|
|
11446
11545
|
* @param {String} conversationId conversationId
|
|
11447
11546
|
* @param {String} participantId participantId
|
|
11448
11547
|
* @param {String} communicationId communicationId
|
|
@@ -11487,7 +11586,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
11487
11586
|
if(conversationId===undefined||conversationId===null||conversationId===''){throw'Missing the required parameter "conversationId" when calling patchConversationsEmailParticipantAttributes';}// verify the required parameter 'participantId' is set
|
|
11488
11587
|
if(participantId===undefined||participantId===null||participantId===''){throw'Missing the required parameter "participantId" when calling patchConversationsEmailParticipantAttributes';}// verify the required parameter 'body' is set
|
|
11489
11588
|
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling patchConversationsEmailParticipantAttributes';}return this.apiClient.callApi('/api/v2/conversations/emails/{conversationId}/participants/{participantId}/attributes','PATCH',{'conversationId':conversationId,'participantId':participantId},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
11490
|
-
* Update conversation participant's communication by disconnecting it.
|
|
11589
|
+
* Update conversation participant's communication by disconnecting it. This endpoint does not update wrapup.
|
|
11491
11590
|
*
|
|
11492
11591
|
* @param {String} conversationId conversationId
|
|
11493
11592
|
* @param {String} participantId participantId
|
|
@@ -11532,7 +11631,7 @@ if(participantId===undefined||participantId===null||participantId===''){throw'Mi
|
|
|
11532
11631
|
*/},{key:"patchConversationsMessageParticipantAttributes",value:function patchConversationsMessageParticipantAttributes(conversationId,participantId,opts){opts=opts||{};// verify the required parameter 'conversationId' is set
|
|
11533
11632
|
if(conversationId===undefined||conversationId===null||conversationId===''){throw'Missing the required parameter "conversationId" when calling patchConversationsMessageParticipantAttributes';}// verify the required parameter 'participantId' is set
|
|
11534
11633
|
if(participantId===undefined||participantId===null||participantId===''){throw'Missing the required parameter "participantId" when calling patchConversationsMessageParticipantAttributes';}return this.apiClient.callApi('/api/v2/conversations/messages/{conversationId}/participants/{participantId}/attributes','PATCH',{'conversationId':conversationId,'participantId':participantId},{},{},{},opts['body'],['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
11535
|
-
* Update conversation participant's communication by disconnecting it.
|
|
11634
|
+
* Update conversation participant's communication by disconnecting it. This endpoint does not update wrapup.
|
|
11536
11635
|
*
|
|
11537
11636
|
* @param {String} conversationId conversationId
|
|
11538
11637
|
* @param {String} participantId participantId
|
|
@@ -11943,7 +12042,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
11943
12042
|
*/},{key:"postConversationsCalls",value:function postConversationsCalls(body){// verify the required parameter 'body' is set
|
|
11944
12043
|
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']);}/**
|
|
11945
12044
|
* Send a message on behalf of a communication in a chat conversation.
|
|
11946
|
-
* This endpoint is deprecated. Please see the article https://help.
|
|
12045
|
+
* This endpoint is deprecated. Please see the article https://help.genesys.cloud/articles/deprecation-removal-of-acd-web-chat-version-2/.
|
|
11947
12046
|
* @param {String} conversationId conversationId
|
|
11948
12047
|
* @param {String} communicationId communicationId
|
|
11949
12048
|
* @param {Object} body Message
|
|
@@ -11953,7 +12052,7 @@ if(conversationId===undefined||conversationId===null||conversationId===''){throw
|
|
|
11953
12052
|
if(communicationId===undefined||communicationId===null||communicationId===''){throw'Missing the required parameter "communicationId" when calling postConversationsChatCommunicationMessages';}// verify the required parameter 'body' is set
|
|
11954
12053
|
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling postConversationsChatCommunicationMessages';}return this.apiClient.callApi('/api/v2/conversations/chats/{conversationId}/communications/{communicationId}/messages','POST',{'conversationId':conversationId,'communicationId':communicationId},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
11955
12054
|
* Send a typing-indicator on behalf of a communication in a chat conversation.
|
|
11956
|
-
* This endpoint is deprecated. Please see the article https://help.
|
|
12055
|
+
* This endpoint is deprecated. Please see the article https://help.genesys.cloud/articles/deprecation-removal-of-acd-web-chat-version-2/.
|
|
11957
12056
|
* @param {String} conversationId conversationId
|
|
11958
12057
|
* @param {String} communicationId communicationId
|
|
11959
12058
|
* @deprecated
|
|
@@ -11961,7 +12060,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
11961
12060
|
if(conversationId===undefined||conversationId===null||conversationId===''){throw'Missing the required parameter "conversationId" when calling postConversationsChatCommunicationTyping';}// verify the required parameter 'communicationId' is set
|
|
11962
12061
|
if(communicationId===undefined||communicationId===null||communicationId===''){throw'Missing the required parameter "communicationId" when calling postConversationsChatCommunicationTyping';}return this.apiClient.callApi('/api/v2/conversations/chats/{conversationId}/communications/{communicationId}/typing','POST',{'conversationId':conversationId,'communicationId':communicationId},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
11963
12062
|
* Apply wrap-up for this conversation communication
|
|
11964
|
-
* This endpoint is deprecated. Please see the article https://help.
|
|
12063
|
+
* This endpoint is deprecated. Please see the article https://help.genesys.cloud/articles/deprecation-removal-of-acd-web-chat-version-2/.
|
|
11965
12064
|
* @param {String} conversationId conversationId
|
|
11966
12065
|
* @param {String} participantId participantId
|
|
11967
12066
|
* @param {String} communicationId communicationId
|
|
@@ -11973,7 +12072,7 @@ if(conversationId===undefined||conversationId===null||conversationId===''){throw
|
|
|
11973
12072
|
if(participantId===undefined||participantId===null||participantId===''){throw'Missing the required parameter "participantId" when calling postConversationsChatParticipantCommunicationWrapup';}// verify the required parameter 'communicationId' is set
|
|
11974
12073
|
if(communicationId===undefined||communicationId===null||communicationId===''){throw'Missing the required parameter "communicationId" when calling postConversationsChatParticipantCommunicationWrapup';}return this.apiClient.callApi('/api/v2/conversations/chats/{conversationId}/participants/{participantId}/communications/{communicationId}/wrapup','POST',{'conversationId':conversationId,'participantId':participantId,'communicationId':communicationId},{},{},{},opts['body'],['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
11975
12074
|
* Replace this participant with the specified user and/or address
|
|
11976
|
-
* This endpoint is deprecated. Please see the article https://help.
|
|
12075
|
+
* This endpoint is deprecated. Please see the article https://help.genesys.cloud/articles/deprecation-removal-of-acd-web-chat-version-2/.
|
|
11977
12076
|
* @param {String} conversationId conversationId
|
|
11978
12077
|
* @param {String} participantId participantId
|
|
11979
12078
|
* @param {Object} body Transfer request
|
|
@@ -11983,13 +12082,13 @@ if(conversationId===undefined||conversationId===null||conversationId===''){throw
|
|
|
11983
12082
|
if(participantId===undefined||participantId===null||participantId===''){throw'Missing the required parameter "participantId" when calling postConversationsChatParticipantReplace';}// verify the required parameter 'body' is set
|
|
11984
12083
|
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling postConversationsChatParticipantReplace';}return this.apiClient.callApi('/api/v2/conversations/chats/{conversationId}/participants/{participantId}/replace','POST',{'conversationId':conversationId,'participantId':participantId},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
11985
12084
|
* Create a web chat conversation
|
|
11986
|
-
* This endpoint is deprecated. Please see the article https://help.
|
|
12085
|
+
* This endpoint is deprecated. Please see the article https://help.genesys.cloud/articles/deprecation-removal-of-acd-web-chat-version-2/.
|
|
11987
12086
|
* @param {Object} body Create web chat request
|
|
11988
12087
|
* @deprecated
|
|
11989
12088
|
*/},{key:"postConversationsChats",value:function postConversationsChats(body){// verify the required parameter 'body' is set
|
|
11990
12089
|
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling postConversationsChats';}return this.apiClient.callApi('/api/v2/conversations/chats','POST',{},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
11991
12090
|
* Apply wrap-up for this conversation communication
|
|
11992
|
-
* This endpoint is deprecated. Please see the article https://help.
|
|
12091
|
+
* This endpoint is deprecated. Please see the article https://help.genesys.cloud/articles/deprecation-legacy-co-browse-and-screenshare/
|
|
11993
12092
|
* @param {String} conversationId conversationId
|
|
11994
12093
|
* @param {String} participantId participantId
|
|
11995
12094
|
* @param {String} communicationId communicationId
|
|
@@ -12001,7 +12100,7 @@ if(conversationId===undefined||conversationId===null||conversationId===''){throw
|
|
|
12001
12100
|
if(participantId===undefined||participantId===null||participantId===''){throw'Missing the required parameter "participantId" when calling postConversationsCobrowsesessionParticipantCommunicationWrapup';}// verify the required parameter 'communicationId' is set
|
|
12002
12101
|
if(communicationId===undefined||communicationId===null||communicationId===''){throw'Missing the required parameter "communicationId" when calling postConversationsCobrowsesessionParticipantCommunicationWrapup';}return this.apiClient.callApi('/api/v2/conversations/cobrowsesessions/{conversationId}/participants/{participantId}/communications/{communicationId}/wrapup','POST',{'conversationId':conversationId,'participantId':participantId,'communicationId':communicationId},{},{},{},opts['body'],['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
12003
12102
|
* Replace this participant with the specified user and/or address
|
|
12004
|
-
* This endpoint is deprecated. Please see the article https://help.
|
|
12103
|
+
* This endpoint is deprecated. Please see the article https://help.genesys.cloud/articles/deprecation-legacy-co-browse-and-screenshare/
|
|
12005
12104
|
* @param {String} conversationId conversationId
|
|
12006
12105
|
* @param {String} participantId participantId
|
|
12007
12106
|
* @param {Object} opts Optional parameters
|
|
@@ -12257,7 +12356,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
12257
12356
|
*/},{key:"postConversationsParticipantsAttributesSearch",value:function postConversationsParticipantsAttributesSearch(body){// verify the required parameter 'body' is set
|
|
12258
12357
|
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling postConversationsParticipantsAttributesSearch';}return this.apiClient.callApi('/api/v2/conversations/participants/attributes/search','POST',{},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
12259
12358
|
* Apply wrap-up for this conversation communication
|
|
12260
|
-
* This endpoint is deprecated. Please see the article https://help.
|
|
12359
|
+
* This endpoint is deprecated. Please see the article https://help.genesys.cloud/articles/deprecation-legacy-co-browse-and-screenshare/
|
|
12261
12360
|
* @param {String} conversationId conversationId
|
|
12262
12361
|
* @param {String} participantId participantId
|
|
12263
12362
|
* @param {String} communicationId communicationId
|
|
@@ -12351,7 +12450,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
12351
12450
|
if(conversationId===undefined||conversationId===null||conversationId===''){throw'Missing the required parameter "conversationId" when calling putConversationsCallbackRecordingstate';}// verify the required parameter 'body' is set
|
|
12352
12451
|
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling putConversationsCallbackRecordingstate';}return this.apiClient.callApi('/api/v2/conversations/callbacks/{conversationId}/recordingstate','PUT',{'conversationId':conversationId},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
12353
12452
|
* Update a conversation by setting its recording state
|
|
12354
|
-
* This endpoint is deprecated. Please see the article https://help.
|
|
12453
|
+
* This endpoint is deprecated. Please see the article https://help.genesys.cloud/articles/deprecation-removal-of-acd-web-chat-version-2/.
|
|
12355
12454
|
* @param {String} conversationId conversationId
|
|
12356
12455
|
* @param {Object} body SetRecordingState
|
|
12357
12456
|
* @deprecated
|
|
@@ -12359,7 +12458,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
12359
12458
|
if(conversationId===undefined||conversationId===null||conversationId===''){throw'Missing the required parameter "conversationId" when calling putConversationsChatRecordingstate';}// verify the required parameter 'body' is set
|
|
12360
12459
|
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling putConversationsChatRecordingstate';}return this.apiClient.callApi('/api/v2/conversations/chats/{conversationId}/recordingstate','PUT',{'conversationId':conversationId},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
12361
12460
|
* Update a conversation by setting its recording state
|
|
12362
|
-
* This endpoint is deprecated. Please see the article https://help.
|
|
12461
|
+
* This endpoint is deprecated. Please see the article https://help.genesys.cloud/articles/deprecation-legacy-co-browse-and-screenshare/
|
|
12363
12462
|
* @param {String} conversationId conversationId
|
|
12364
12463
|
* @param {Object} body SetRecordingState
|
|
12365
12464
|
* @deprecated
|
|
@@ -12453,7 +12552,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
12453
12552
|
*/},{key:"putConversationsMessagingThreadingtimeline",value:function putConversationsMessagingThreadingtimeline(body){// verify the required parameter 'body' is set
|
|
12454
12553
|
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling putConversationsMessagingThreadingtimeline';}return this.apiClient.callApi('/api/v2/conversations/messaging/threadingtimeline','PUT',{},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
12455
12554
|
* Update a conversation by setting its recording state
|
|
12456
|
-
* This endpoint is deprecated. Please see the article https://help.
|
|
12555
|
+
* This endpoint is deprecated. Please see the article https://help.genesys.cloud/articles/deprecation-legacy-co-browse-and-screenshare/
|
|
12457
12556
|
* @param {String} conversationId conversationId
|
|
12458
12557
|
* @param {Object} body SetRecordingState
|
|
12459
12558
|
* @deprecated
|
|
@@ -12476,7 +12575,7 @@ if(conversationId===undefined||conversationId===null||conversationId===''){throw
|
|
|
12476
12575
|
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(){/**
|
|
12477
12576
|
* DataExtensions service.
|
|
12478
12577
|
* @module purecloud-platform-client-v2/api/DataExtensionsApi
|
|
12479
|
-
* @version
|
|
12578
|
+
* @version 228.0.0
|
|
12480
12579
|
*//**
|
|
12481
12580
|
* Constructs a new DataExtensionsApi.
|
|
12482
12581
|
* @alias module:purecloud-platform-client-v2/api/DataExtensionsApi
|
|
@@ -12497,7 +12596,7 @@ if(coretypeName===undefined||coretypeName===null||coretypeName===''){throw'Missi
|
|
|
12497
12596
|
*/},{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(){/**
|
|
12498
12597
|
* DataPrivacy service.
|
|
12499
12598
|
* @module purecloud-platform-client-v2/api/DataPrivacyApi
|
|
12500
|
-
* @version
|
|
12599
|
+
* @version 228.0.0
|
|
12501
12600
|
*//**
|
|
12502
12601
|
* Constructs a new DataPrivacyApi.
|
|
12503
12602
|
* @alias module:purecloud-platform-client-v2/api/DataPrivacyApi
|
|
@@ -12537,7 +12636,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
12537
12636
|
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(){/**
|
|
12538
12637
|
* Downloads service.
|
|
12539
12638
|
* @module purecloud-platform-client-v2/api/DownloadsApi
|
|
12540
|
-
* @version
|
|
12639
|
+
* @version 228.0.0
|
|
12541
12640
|
*//**
|
|
12542
12641
|
* Constructs a new DownloadsApi.
|
|
12543
12642
|
* @alias module:purecloud-platform-client-v2/api/DownloadsApi
|
|
@@ -12556,7 +12655,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
12556
12655
|
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(){/**
|
|
12557
12656
|
* Emails service.
|
|
12558
12657
|
* @module purecloud-platform-client-v2/api/EmailsApi
|
|
12559
|
-
* @version
|
|
12658
|
+
* @version 228.0.0
|
|
12560
12659
|
*//**
|
|
12561
12660
|
* Constructs a new EmailsApi.
|
|
12562
12661
|
* @alias module:purecloud-platform-client-v2/api/EmailsApi
|
|
@@ -12585,7 +12684,7 @@ if(downloadId===undefined||downloadId===null||downloadId===''){throw'Missing the
|
|
|
12585
12684
|
*/},{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(){/**
|
|
12586
12685
|
* EmployeeEngagement service.
|
|
12587
12686
|
* @module purecloud-platform-client-v2/api/EmployeeEngagementApi
|
|
12588
|
-
* @version
|
|
12687
|
+
* @version 228.0.0
|
|
12589
12688
|
*//**
|
|
12590
12689
|
* Constructs a new EmployeeEngagementApi.
|
|
12591
12690
|
* @alias module:purecloud-platform-client-v2/api/EmployeeEngagementApi
|
|
@@ -12623,7 +12722,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
12623
12722
|
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(){/**
|
|
12624
12723
|
* Events service.
|
|
12625
12724
|
* @module purecloud-platform-client-v2/api/EventsApi
|
|
12626
|
-
* @version
|
|
12725
|
+
* @version 228.0.0
|
|
12627
12726
|
*//**
|
|
12628
12727
|
* Constructs a new EventsApi.
|
|
12629
12728
|
* @alias module:purecloud-platform-client-v2/api/EventsApi
|
|
@@ -12648,7 +12747,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
12648
12747
|
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(){/**
|
|
12649
12748
|
* ExternalContacts service.
|
|
12650
12749
|
* @module purecloud-platform-client-v2/api/ExternalContactsApi
|
|
12651
|
-
* @version
|
|
12750
|
+
* @version 228.0.0
|
|
12652
12751
|
*//**
|
|
12653
12752
|
* Constructs a new ExternalContactsApi.
|
|
12654
12753
|
* @alias module:purecloud-platform-client-v2/api/ExternalContactsApi
|
|
@@ -12722,6 +12821,14 @@ if(contactId===undefined||contactId===null||contactId===''){throw'Missing the re
|
|
|
12722
12821
|
* @param {String} contactId ExternalContact ID
|
|
12723
12822
|
*/},{key:"getExternalcontactsContactIdentifiers",value:function getExternalcontactsContactIdentifiers(contactId){// verify the required parameter 'contactId' is set
|
|
12724
12823
|
if(contactId===undefined||contactId===null||contactId===''){throw'Missing the required parameter "contactId" when calling getExternalcontactsContactIdentifiers';}return this.apiClient.callApi('/api/v2/externalcontacts/contacts/{contactId}/identifiers','GET',{'contactId':contactId},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
12824
|
+
* Retrieve segment assignments by external contact ID.
|
|
12825
|
+
*
|
|
12826
|
+
* @param {String} contactId ExternalContact ID
|
|
12827
|
+
* @param {Object} opts Optional parameters
|
|
12828
|
+
* @param {Boolean} opts.includeMerged Indicates whether to return segment assignments from all external contacts in the merge-set of the given one.
|
|
12829
|
+
* @param {Number} opts.limit Number of entities to return. Default of 25, maximum of 500.
|
|
12830
|
+
*/},{key:"getExternalcontactsContactJourneySegments",value:function getExternalcontactsContactJourneySegments(contactId,opts){opts=opts||{};// verify the required parameter 'contactId' is set
|
|
12831
|
+
if(contactId===undefined||contactId===null||contactId===''){throw'Missing the required parameter "contactId" when calling getExternalcontactsContactJourneySegments';}return this.apiClient.callApi('/api/v2/externalcontacts/contacts/{contactId}/journey/segments','GET',{'contactId':contactId},{'includeMerged':opts['includeMerged'],'limit':opts['limit']},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
12725
12832
|
* Retrieve all sessions for a given external contact.
|
|
12726
12833
|
*
|
|
12727
12834
|
* @param {String} contactId ExternalContact ID
|
|
@@ -13160,6 +13267,13 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
13160
13267
|
* @param {Object} body Relationships
|
|
13161
13268
|
*/},{key:"postExternalcontactsBulkRelationshipsUpdate",value:function postExternalcontactsBulkRelationshipsUpdate(body){// verify the required parameter 'body' is set
|
|
13162
13269
|
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling postExternalcontactsBulkRelationshipsUpdate';}return this.apiClient.callApi('/api/v2/externalcontacts/bulk/relationships/update','POST',{},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
13270
|
+
* Assign/Unassign up to 10 segments to/from an external contact or, if a segment is already assigned, update the expiry date of the segment assignment. Any unprocessed segment assignments are returned in the body for the client to retry, in the event of a partial success.
|
|
13271
|
+
*
|
|
13272
|
+
* @param {String} contactId ExternalContact ID
|
|
13273
|
+
* @param {Object} opts Optional parameters
|
|
13274
|
+
* @param {Object} opts.body
|
|
13275
|
+
*/},{key:"postExternalcontactsContactJourneySegments",value:function postExternalcontactsContactJourneySegments(contactId,opts){opts=opts||{};// verify the required parameter 'contactId' is set
|
|
13276
|
+
if(contactId===undefined||contactId===null||contactId===''){throw'Missing the required parameter "contactId" when calling postExternalcontactsContactJourneySegments';}return this.apiClient.callApi('/api/v2/externalcontacts/contacts/{contactId}/journey/segments','POST',{'contactId':contactId},{},{},{},opts['body'],['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
13163
13277
|
* Create a note for an external contact
|
|
13164
13278
|
*
|
|
13165
13279
|
* @param {String} contactId ExternalContact Id
|
|
@@ -13383,7 +13497,7 @@ if(relationshipId===undefined||relationshipId===null||relationshipId===''){throw
|
|
|
13383
13497
|
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(){/**
|
|
13384
13498
|
* Fax service.
|
|
13385
13499
|
* @module purecloud-platform-client-v2/api/FaxApi
|
|
13386
|
-
* @version
|
|
13500
|
+
* @version 228.0.0
|
|
13387
13501
|
*//**
|
|
13388
13502
|
* Constructs a new FaxApi.
|
|
13389
13503
|
* @alias module:purecloud-platform-client-v2/api/FaxApi
|
|
@@ -13432,7 +13546,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
13432
13546
|
*/},{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(){/**
|
|
13433
13547
|
* Flows service.
|
|
13434
13548
|
* @module purecloud-platform-client-v2/api/FlowsApi
|
|
13435
|
-
* @version
|
|
13549
|
+
* @version 228.0.0
|
|
13436
13550
|
*//**
|
|
13437
13551
|
* Constructs a new FlowsApi.
|
|
13438
13552
|
* @alias module:purecloud-platform-client-v2/api/FlowsApi
|
|
@@ -13440,11 +13554,17 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
13440
13554
|
* @param {module:purecloud-platform-client-v2/ApiClient} apiClient Optional API client implementation to use,
|
|
13441
13555
|
* default to {@link module:purecloud-platform-client-v2/ApiClient#instance} if unspecified.
|
|
13442
13556
|
*/function FlowsApi(apiClient){_classCallCheck(this,FlowsApi);this.apiClient=apiClient||ApiClient.instance;}/**
|
|
13557
|
+
* Delete/cancel an async request for flow aggregates
|
|
13558
|
+
*
|
|
13559
|
+
* @param {String} jobId jobId
|
|
13560
|
+
* deleteAnalyticsFlowsAggregatesJob is a preview method and is subject to both breaking and non-breaking changes at any time without notice
|
|
13561
|
+
*/return _createClass(FlowsApi,[{key:"deleteAnalyticsFlowsAggregatesJob",value:function deleteAnalyticsFlowsAggregatesJob(jobId){// verify the required parameter 'jobId' is set
|
|
13562
|
+
if(jobId===undefined||jobId===null||jobId===''){throw'Missing the required parameter "jobId" when calling deleteAnalyticsFlowsAggregatesJob';}return this.apiClient.callApi('/api/v2/analytics/flows/aggregates/jobs/{jobId}','DELETE',{'jobId':jobId},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
13443
13563
|
* Get status for async query for Flow aggregates
|
|
13444
13564
|
*
|
|
13445
13565
|
* @param {String} jobId jobId
|
|
13446
13566
|
* getAnalyticsFlowsAggregatesJob is a preview method and is subject to both breaking and non-breaking changes at any time without notice
|
|
13447
|
-
*/
|
|
13567
|
+
*/},{key:"getAnalyticsFlowsAggregatesJob",value:function getAnalyticsFlowsAggregatesJob(jobId){// verify the required parameter 'jobId' is set
|
|
13448
13568
|
if(jobId===undefined||jobId===null||jobId===''){throw'Missing the required parameter "jobId" when calling getAnalyticsFlowsAggregatesJob';}return this.apiClient.callApi('/api/v2/analytics/flows/aggregates/jobs/{jobId}','GET',{'jobId':jobId},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
13449
13569
|
* Fetch a page of results for an async aggregates query
|
|
13450
13570
|
*
|
|
@@ -13480,7 +13600,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
13480
13600
|
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(){/**
|
|
13481
13601
|
* Gamification service.
|
|
13482
13602
|
* @module purecloud-platform-client-v2/api/GamificationApi
|
|
13483
|
-
* @version
|
|
13603
|
+
* @version 228.0.0
|
|
13484
13604
|
*//**
|
|
13485
13605
|
* Constructs a new GamificationApi.
|
|
13486
13606
|
* @alias module:purecloud-platform-client-v2/api/GamificationApi
|
|
@@ -14133,7 +14253,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
14133
14253
|
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(){/**
|
|
14134
14254
|
* GeneralDataProtectionRegulation service.
|
|
14135
14255
|
* @module purecloud-platform-client-v2/api/GeneralDataProtectionRegulationApi
|
|
14136
|
-
* @version
|
|
14256
|
+
* @version 228.0.0
|
|
14137
14257
|
*//**
|
|
14138
14258
|
* Constructs a new GeneralDataProtectionRegulationApi.
|
|
14139
14259
|
* @alias module:purecloud-platform-client-v2/api/GeneralDataProtectionRegulationApi
|
|
@@ -14168,7 +14288,7 @@ if(searchValue===undefined||searchValue===null){throw'Missing the required param
|
|
|
14168
14288
|
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(){/**
|
|
14169
14289
|
* Geolocation service.
|
|
14170
14290
|
* @module purecloud-platform-client-v2/api/GeolocationApi
|
|
14171
|
-
* @version
|
|
14291
|
+
* @version 228.0.0
|
|
14172
14292
|
*//**
|
|
14173
14293
|
* Constructs a new GeolocationApi.
|
|
14174
14294
|
* @alias module:purecloud-platform-client-v2/api/GeolocationApi
|
|
@@ -14202,7 +14322,7 @@ if(clientId===undefined||clientId===null||clientId===''){throw'Missing the requi
|
|
|
14202
14322
|
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(){/**
|
|
14203
14323
|
* Greetings service.
|
|
14204
14324
|
* @module purecloud-platform-client-v2/api/GreetingsApi
|
|
14205
|
-
* @version
|
|
14325
|
+
* @version 228.0.0
|
|
14206
14326
|
*//**
|
|
14207
14327
|
* Constructs a new GreetingsApi.
|
|
14208
14328
|
* @alias module:purecloud-platform-client-v2/api/GreetingsApi
|
|
@@ -14330,7 +14450,7 @@ if(userId===undefined||userId===null||userId===''){throw'Missing the required pa
|
|
|
14330
14450
|
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(){/**
|
|
14331
14451
|
* Groups service.
|
|
14332
14452
|
* @module purecloud-platform-client-v2/api/GroupsApi
|
|
14333
|
-
* @version
|
|
14453
|
+
* @version 228.0.0
|
|
14334
14454
|
*//**
|
|
14335
14455
|
* Constructs a new GroupsApi.
|
|
14336
14456
|
* @alias module:purecloud-platform-client-v2/api/GroupsApi
|
|
@@ -14463,7 +14583,7 @@ if(groupId===undefined||groupId===null||groupId===''){throw'Missing the required
|
|
|
14463
14583
|
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(){/**
|
|
14464
14584
|
* IdentityProvider service.
|
|
14465
14585
|
* @module purecloud-platform-client-v2/api/IdentityProviderApi
|
|
14466
|
-
* @version
|
|
14586
|
+
* @version 228.0.0
|
|
14467
14587
|
*//**
|
|
14468
14588
|
* Constructs a new IdentityProviderApi.
|
|
14469
14589
|
* @alias module:purecloud-platform-client-v2/api/IdentityProviderApi
|
|
@@ -14619,7 +14739,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
14619
14739
|
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(){/**
|
|
14620
14740
|
* InfrastructureAsCode service.
|
|
14621
14741
|
* @module purecloud-platform-client-v2/api/InfrastructureAsCodeApi
|
|
14622
|
-
* @version
|
|
14742
|
+
* @version 228.0.0
|
|
14623
14743
|
*//**
|
|
14624
14744
|
* Constructs a new InfrastructureAsCodeApi.
|
|
14625
14745
|
* @alias module:purecloud-platform-client-v2/api/InfrastructureAsCodeApi
|
|
@@ -14673,7 +14793,7 @@ if(jobId===undefined||jobId===null||jobId===''){throw'Missing the required param
|
|
|
14673
14793
|
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(){/**
|
|
14674
14794
|
* Integrations service.
|
|
14675
14795
|
* @module purecloud-platform-client-v2/api/IntegrationsApi
|
|
14676
|
-
* @version
|
|
14796
|
+
* @version 228.0.0
|
|
14677
14797
|
*//**
|
|
14678
14798
|
* Constructs a new IntegrationsApi.
|
|
14679
14799
|
* @alias module:purecloud-platform-client-v2/api/IntegrationsApi
|
|
@@ -15360,7 +15480,7 @@ if(ucIntegrationId===undefined||ucIntegrationId===null||ucIntegrationId===''){th
|
|
|
15360
15480
|
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(){/**
|
|
15361
15481
|
* Journey service.
|
|
15362
15482
|
* @module purecloud-platform-client-v2/api/JourneyApi
|
|
15363
|
-
* @version
|
|
15483
|
+
* @version 228.0.0
|
|
15364
15484
|
*//**
|
|
15365
15485
|
* Constructs a new JourneyApi.
|
|
15366
15486
|
* @alias module:purecloud-platform-client-v2/api/JourneyApi
|
|
@@ -15368,10 +15488,16 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
15368
15488
|
* @param {module:purecloud-platform-client-v2/ApiClient} apiClient Optional API client implementation to use,
|
|
15369
15489
|
* default to {@link module:purecloud-platform-client-v2/ApiClient#instance} if unspecified.
|
|
15370
15490
|
*/function JourneyApi(apiClient){_classCallCheck(this,JourneyApi);this.apiClient=apiClient||ApiClient.instance;}/**
|
|
15491
|
+
* Delete/cancel an async request for journey aggregates
|
|
15492
|
+
*
|
|
15493
|
+
* @param {String} jobId jobId
|
|
15494
|
+
* deleteAnalyticsJourneysAggregatesJob is a preview method and is subject to both breaking and non-breaking changes at any time without notice
|
|
15495
|
+
*/return _createClass(JourneyApi,[{key:"deleteAnalyticsJourneysAggregatesJob",value:function deleteAnalyticsJourneysAggregatesJob(jobId){// verify the required parameter 'jobId' is set
|
|
15496
|
+
if(jobId===undefined||jobId===null||jobId===''){throw'Missing the required parameter "jobId" when calling deleteAnalyticsJourneysAggregatesJob';}return this.apiClient.callApi('/api/v2/analytics/journeys/aggregates/jobs/{jobId}','DELETE',{'jobId':jobId},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
15371
15497
|
* Delete single action map.
|
|
15372
15498
|
*
|
|
15373
15499
|
* @param {String} actionMapId ID of the action map.
|
|
15374
|
-
*/
|
|
15500
|
+
*/},{key:"deleteJourneyActionmap",value:function deleteJourneyActionmap(actionMapId){// verify the required parameter 'actionMapId' is set
|
|
15375
15501
|
if(actionMapId===undefined||actionMapId===null||actionMapId===''){throw'Missing the required parameter "actionMapId" when calling deleteJourneyActionmap';}return this.apiClient.callApi('/api/v2/journey/actionmaps/{actionMapId}','DELETE',{'actionMapId':actionMapId},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
15376
15502
|
* Delete a single action template.
|
|
15377
15503
|
*
|
|
@@ -15419,6 +15545,14 @@ if(jobId===undefined||jobId===null||jobId===''){throw'Missing the required param
|
|
|
15419
15545
|
* getAnalyticsJourneysAggregatesJobResults is a preview method and is subject to both breaking and non-breaking changes at any time without notice
|
|
15420
15546
|
*/},{key:"getAnalyticsJourneysAggregatesJobResults",value:function getAnalyticsJourneysAggregatesJobResults(jobId,opts){opts=opts||{};// verify the required parameter 'jobId' is set
|
|
15421
15547
|
if(jobId===undefined||jobId===null||jobId===''){throw'Missing the required parameter "jobId" when calling getAnalyticsJourneysAggregatesJobResults';}return this.apiClient.callApi('/api/v2/analytics/journeys/aggregates/jobs/{jobId}/results','GET',{'jobId':jobId},{'cursor':opts['cursor']},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
15548
|
+
* Retrieve segment assignments by external contact ID.
|
|
15549
|
+
*
|
|
15550
|
+
* @param {String} contactId ExternalContact ID
|
|
15551
|
+
* @param {Object} opts Optional parameters
|
|
15552
|
+
* @param {Boolean} opts.includeMerged Indicates whether to return segment assignments from all external contacts in the merge-set of the given one.
|
|
15553
|
+
* @param {Number} opts.limit Number of entities to return. Default of 25, maximum of 500.
|
|
15554
|
+
*/},{key:"getExternalcontactsContactJourneySegments",value:function getExternalcontactsContactJourneySegments(contactId,opts){opts=opts||{};// verify the required parameter 'contactId' is set
|
|
15555
|
+
if(contactId===undefined||contactId===null||contactId===''){throw'Missing the required parameter "contactId" when calling getExternalcontactsContactJourneySegments';}return this.apiClient.callApi('/api/v2/externalcontacts/contacts/{contactId}/journey/segments','GET',{'contactId':contactId},{'includeMerged':opts['includeMerged'],'limit':opts['limit']},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
15422
15556
|
* Retrieve all sessions for a given external contact.
|
|
15423
15557
|
*
|
|
15424
15558
|
* @param {String} contactId ExternalContact ID
|
|
@@ -15729,6 +15863,13 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
15729
15863
|
* @param {Object} body query
|
|
15730
15864
|
*/},{key:"postAnalyticsJourneysAggregatesQuery",value:function postAnalyticsJourneysAggregatesQuery(body){// verify the required parameter 'body' is set
|
|
15731
15865
|
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling postAnalyticsJourneysAggregatesQuery';}return this.apiClient.callApi('/api/v2/analytics/journeys/aggregates/query','POST',{},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
15866
|
+
* Assign/Unassign up to 10 segments to/from an external contact or, if a segment is already assigned, update the expiry date of the segment assignment. Any unprocessed segment assignments are returned in the body for the client to retry, in the event of a partial success.
|
|
15867
|
+
*
|
|
15868
|
+
* @param {String} contactId ExternalContact ID
|
|
15869
|
+
* @param {Object} opts Optional parameters
|
|
15870
|
+
* @param {Object} opts.body
|
|
15871
|
+
*/},{key:"postExternalcontactsContactJourneySegments",value:function postExternalcontactsContactJourneySegments(contactId,opts){opts=opts||{};// verify the required parameter 'contactId' is set
|
|
15872
|
+
if(contactId===undefined||contactId===null||contactId===''){throw'Missing the required parameter "contactId" when calling postExternalcontactsContactJourneySegments';}return this.apiClient.callApi('/api/v2/externalcontacts/contacts/{contactId}/journey/segments','POST',{'contactId':contactId},{},{},{},opts['body'],['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
15732
15873
|
* Create an action map.
|
|
15733
15874
|
*
|
|
15734
15875
|
* @param {Object} opts Optional parameters
|
|
@@ -15840,7 +15981,7 @@ if(versionId===undefined||versionId===null||versionId===''){throw'Missing the re
|
|
|
15840
15981
|
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(){/**
|
|
15841
15982
|
* Knowledge service.
|
|
15842
15983
|
* @module purecloud-platform-client-v2/api/KnowledgeApi
|
|
15843
|
-
* @version
|
|
15984
|
+
* @version 228.0.0
|
|
15844
15985
|
*//**
|
|
15845
15986
|
* Constructs a new KnowledgeApi.
|
|
15846
15987
|
* @alias module:purecloud-platform-client-v2/api/KnowledgeApi
|
|
@@ -16617,6 +16758,13 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
16617
16758
|
*/},{key:"postKnowledgeKnowledgebaseCategories",value:function postKnowledgeKnowledgebaseCategories(knowledgeBaseId,body){// verify the required parameter 'knowledgeBaseId' is set
|
|
16618
16759
|
if(knowledgeBaseId===undefined||knowledgeBaseId===null||knowledgeBaseId===''){throw'Missing the required parameter "knowledgeBaseId" when calling postKnowledgeKnowledgebaseCategories';}// verify the required parameter 'body' is set
|
|
16619
16760
|
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling postKnowledgeKnowledgebaseCategories';}return this.apiClient.callApi('/api/v2/knowledge/knowledgebases/{knowledgeBaseId}/categories','POST',{'knowledgeBaseId':knowledgeBaseId},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
16761
|
+
* Search for chunks in a knowledge base
|
|
16762
|
+
*
|
|
16763
|
+
* @param {String} knowledgeBaseId Knowledge Base ID
|
|
16764
|
+
* @param {Object} opts Optional parameters
|
|
16765
|
+
* @param {Object} opts.body
|
|
16766
|
+
*/},{key:"postKnowledgeKnowledgebaseChunksSearch",value:function postKnowledgeKnowledgebaseChunksSearch(knowledgeBaseId,opts){opts=opts||{};// verify the required parameter 'knowledgeBaseId' is set
|
|
16767
|
+
if(knowledgeBaseId===undefined||knowledgeBaseId===null||knowledgeBaseId===''){throw'Missing the required parameter "knowledgeBaseId" when calling postKnowledgeKnowledgebaseChunksSearch';}return this.apiClient.callApi('/api/v2/knowledge/knowledgebases/{knowledgeBaseId}/chunks/search','POST',{'knowledgeBaseId':knowledgeBaseId},{},{},{},opts['body'],['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
16620
16768
|
* Indicate that the document was copied by the user.
|
|
16621
16769
|
*
|
|
16622
16770
|
* @param {String} knowledgeBaseId Knowledge base ID.
|
|
@@ -16903,7 +17051,7 @@ if(sourceId===undefined||sourceId===null||sourceId===''){throw'Missing the requi
|
|
|
16903
17051
|
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(){/**
|
|
16904
17052
|
* LanguageUnderstanding service.
|
|
16905
17053
|
* @module purecloud-platform-client-v2/api/LanguageUnderstandingApi
|
|
16906
|
-
* @version
|
|
17054
|
+
* @version 228.0.0
|
|
16907
17055
|
*//**
|
|
16908
17056
|
* Constructs a new LanguageUnderstandingApi.
|
|
16909
17057
|
* @alias module:purecloud-platform-client-v2/api/LanguageUnderstandingApi
|
|
@@ -17162,7 +17310,7 @@ if(domainVersionId===undefined||domainVersionId===null||domainVersionId===''){th
|
|
|
17162
17310
|
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(){/**
|
|
17163
17311
|
* Languages service.
|
|
17164
17312
|
* @module purecloud-platform-client-v2/api/LanguagesApi
|
|
17165
|
-
* @version
|
|
17313
|
+
* @version 228.0.0
|
|
17166
17314
|
*//**
|
|
17167
17315
|
* Constructs a new LanguagesApi.
|
|
17168
17316
|
* @alias module:purecloud-platform-client-v2/api/LanguagesApi
|
|
@@ -17217,7 +17365,7 @@ if(userId===undefined||userId===null||userId===''){throw'Missing the required pa
|
|
|
17217
17365
|
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(){/**
|
|
17218
17366
|
* Learning service.
|
|
17219
17367
|
* @module purecloud-platform-client-v2/api/LearningApi
|
|
17220
|
-
* @version
|
|
17368
|
+
* @version 228.0.0
|
|
17221
17369
|
*//**
|
|
17222
17370
|
* Constructs a new LearningApi.
|
|
17223
17371
|
* @alias module:purecloud-platform-client-v2/api/LearningApi
|
|
@@ -17488,7 +17636,7 @@ if(moduleId===undefined||moduleId===null||moduleId===''){throw'Missing the requi
|
|
|
17488
17636
|
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(){/**
|
|
17489
17637
|
* License service.
|
|
17490
17638
|
* @module purecloud-platform-client-v2/api/LicenseApi
|
|
17491
|
-
* @version
|
|
17639
|
+
* @version 228.0.0
|
|
17492
17640
|
*//**
|
|
17493
17641
|
* Constructs a new LicenseApi.
|
|
17494
17642
|
* @alias module:purecloud-platform-client-v2/api/LicenseApi
|
|
@@ -17542,7 +17690,7 @@ if(featureName===undefined||featureName===null||featureName===''){throw'Missing
|
|
|
17542
17690
|
*/},{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(){/**
|
|
17543
17691
|
* Locations service.
|
|
17544
17692
|
* @module purecloud-platform-client-v2/api/LocationsApi
|
|
17545
|
-
* @version
|
|
17693
|
+
* @version 228.0.0
|
|
17546
17694
|
*//**
|
|
17547
17695
|
* Constructs a new LocationsApi.
|
|
17548
17696
|
* @alias module:purecloud-platform-client-v2/api/LocationsApi
|
|
@@ -17601,7 +17749,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
17601
17749
|
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(){/**
|
|
17602
17750
|
* LogCapture service.
|
|
17603
17751
|
* @module purecloud-platform-client-v2/api/LogCaptureApi
|
|
17604
|
-
* @version
|
|
17752
|
+
* @version 228.0.0
|
|
17605
17753
|
*//**
|
|
17606
17754
|
* Constructs a new LogCaptureApi.
|
|
17607
17755
|
* @alias module:purecloud-platform-client-v2/api/LogCaptureApi
|
|
@@ -17650,7 +17798,7 @@ if(userId===undefined||userId===null||userId===''){throw'Missing the required pa
|
|
|
17650
17798
|
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(){/**
|
|
17651
17799
|
* Messaging service.
|
|
17652
17800
|
* @module purecloud-platform-client-v2/api/MessagingApi
|
|
17653
|
-
* @version
|
|
17801
|
+
* @version 228.0.0
|
|
17654
17802
|
*//**
|
|
17655
17803
|
* Constructs a new MessagingApi.
|
|
17656
17804
|
* @alias module:purecloud-platform-client-v2/api/MessagingApi
|
|
@@ -17740,7 +17888,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
17740
17888
|
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(){/**
|
|
17741
17889
|
* MobileDevices service.
|
|
17742
17890
|
* @module purecloud-platform-client-v2/api/MobileDevicesApi
|
|
17743
|
-
* @version
|
|
17891
|
+
* @version 228.0.0
|
|
17744
17892
|
*//**
|
|
17745
17893
|
* Constructs a new MobileDevicesApi.
|
|
17746
17894
|
* @alias module:purecloud-platform-client-v2/api/MobileDevicesApi
|
|
@@ -17779,7 +17927,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
17779
17927
|
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(){/**
|
|
17780
17928
|
* Notifications service.
|
|
17781
17929
|
* @module purecloud-platform-client-v2/api/NotificationsApi
|
|
17782
|
-
* @version
|
|
17930
|
+
* @version 228.0.0
|
|
17783
17931
|
*//**
|
|
17784
17932
|
* Constructs a new NotificationsApi.
|
|
17785
17933
|
* @alias module:purecloud-platform-client-v2/api/NotificationsApi
|
|
@@ -17836,7 +17984,7 @@ if(channelId===undefined||channelId===null||channelId===''){throw'Missing the re
|
|
|
17836
17984
|
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(){/**
|
|
17837
17985
|
* OAuth service.
|
|
17838
17986
|
* @module purecloud-platform-client-v2/api/OAuthApi
|
|
17839
|
-
* @version
|
|
17987
|
+
* @version 228.0.0
|
|
17840
17988
|
*//**
|
|
17841
17989
|
* Constructs a new OAuthApi.
|
|
17842
17990
|
* @alias module:purecloud-platform-client-v2/api/OAuthApi
|
|
@@ -17921,7 +18069,7 @@ if(clientId===undefined||clientId===null||clientId===''){throw'Missing the requi
|
|
|
17921
18069
|
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(){/**
|
|
17922
18070
|
* Objects service.
|
|
17923
18071
|
* @module purecloud-platform-client-v2/api/ObjectsApi
|
|
17924
|
-
* @version
|
|
18072
|
+
* @version 228.0.0
|
|
17925
18073
|
*//**
|
|
17926
18074
|
* Constructs a new ObjectsApi.
|
|
17927
18075
|
* @alias module:purecloud-platform-client-v2/api/ObjectsApi
|
|
@@ -18007,7 +18155,7 @@ if(divisionId===undefined||divisionId===null||divisionId===''){throw'Missing the
|
|
|
18007
18155
|
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(){/**
|
|
18008
18156
|
* OperationalEvents service.
|
|
18009
18157
|
* @module purecloud-platform-client-v2/api/OperationalEventsApi
|
|
18010
|
-
* @version
|
|
18158
|
+
* @version 228.0.0
|
|
18011
18159
|
*//**
|
|
18012
18160
|
* Constructs a new OperationalEventsApi.
|
|
18013
18161
|
* @alias module:purecloud-platform-client-v2/api/OperationalEventsApi
|
|
@@ -18038,7 +18186,7 @@ if(eventDefinitionId===undefined||eventDefinitionId===null||eventDefinitionId===
|
|
|
18038
18186
|
*/},{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(){/**
|
|
18039
18187
|
* Organization service.
|
|
18040
18188
|
* @module purecloud-platform-client-v2/api/OrganizationApi
|
|
18041
|
-
* @version
|
|
18189
|
+
* @version 228.0.0
|
|
18042
18190
|
*//**
|
|
18043
18191
|
* Constructs a new OrganizationApi.
|
|
18044
18192
|
* @alias module:purecloud-platform-client-v2/api/OrganizationApi
|
|
@@ -18143,7 +18291,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
18143
18291
|
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(){/**
|
|
18144
18292
|
* OrganizationAuthorization service.
|
|
18145
18293
|
* @module purecloud-platform-client-v2/api/OrganizationAuthorizationApi
|
|
18146
|
-
* @version
|
|
18294
|
+
* @version 228.0.0
|
|
18147
18295
|
*//**
|
|
18148
18296
|
* Constructs a new OrganizationAuthorizationApi.
|
|
18149
18297
|
* @alias module:purecloud-platform-client-v2/api/OrganizationAuthorizationApi
|
|
@@ -18477,7 +18625,7 @@ if(trustorOrgId===undefined||trustorOrgId===null||trustorOrgId===''){throw'Missi
|
|
|
18477
18625
|
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(){/**
|
|
18478
18626
|
* Outbound service.
|
|
18479
18627
|
* @module purecloud-platform-client-v2/api/OutboundApi
|
|
18480
|
-
* @version
|
|
18628
|
+
* @version 228.0.0
|
|
18481
18629
|
*//**
|
|
18482
18630
|
* Constructs a new OutboundApi.
|
|
18483
18631
|
* @alias module:purecloud-platform-client-v2/api/OutboundApi
|
|
@@ -18647,6 +18795,11 @@ if(messagingCampaignId===undefined||messagingCampaignId===null||messagingCampaig
|
|
|
18647
18795
|
* @param {String} sequenceId Sequence ID
|
|
18648
18796
|
*/},{key:"deleteOutboundSchedulesSequence",value:function deleteOutboundSchedulesSequence(sequenceId){// verify the required parameter 'sequenceId' is set
|
|
18649
18797
|
if(sequenceId===undefined||sequenceId===null||sequenceId===''){throw'Missing the required parameter "sequenceId" when calling deleteOutboundSchedulesSequence';}return this.apiClient.callApi('/api/v2/outbound/schedules/sequences/{sequenceId}','DELETE',{'sequenceId':sequenceId},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
18798
|
+
* Delete a WhatsApp campaign schedule.
|
|
18799
|
+
*
|
|
18800
|
+
* @param {String} whatsAppCampaignId WhatsApp Campaign ID
|
|
18801
|
+
*/},{key:"deleteOutboundSchedulesWhatsappcampaign",value:function deleteOutboundSchedulesWhatsappcampaign(whatsAppCampaignId){// verify the required parameter 'whatsAppCampaignId' is set
|
|
18802
|
+
if(whatsAppCampaignId===undefined||whatsAppCampaignId===null||whatsAppCampaignId===''){throw'Missing the required parameter "whatsAppCampaignId" when calling deleteOutboundSchedulesWhatsappcampaign';}return this.apiClient.callApi('/api/v2/outbound/schedules/whatsappcampaigns/{whatsAppCampaignId}','DELETE',{'whatsAppCampaignId':whatsAppCampaignId},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
18650
18803
|
* Delete a dialer campaign sequence.
|
|
18651
18804
|
*
|
|
18652
18805
|
* @param {String} sequenceId Campaign Sequence ID
|
|
@@ -19162,6 +19315,14 @@ if(sequenceId===undefined||sequenceId===null||sequenceId===''){throw'Missing the
|
|
|
19162
19315
|
* Query for a list of dialer sequence schedules.
|
|
19163
19316
|
*
|
|
19164
19317
|
*/},{key:"getOutboundSchedulesSequences",value:function getOutboundSchedulesSequences(){return this.apiClient.callApi('/api/v2/outbound/schedules/sequences','GET',{},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
19318
|
+
* Get a WhatsApp campaign schedule.
|
|
19319
|
+
*
|
|
19320
|
+
* @param {String} whatsAppCampaignId WhatsApp Campaign ID
|
|
19321
|
+
*/},{key:"getOutboundSchedulesWhatsappcampaign",value:function getOutboundSchedulesWhatsappcampaign(whatsAppCampaignId){// verify the required parameter 'whatsAppCampaignId' is set
|
|
19322
|
+
if(whatsAppCampaignId===undefined||whatsAppCampaignId===null||whatsAppCampaignId===''){throw'Missing the required parameter "whatsAppCampaignId" when calling getOutboundSchedulesWhatsappcampaign';}return this.apiClient.callApi('/api/v2/outbound/schedules/whatsappcampaigns/{whatsAppCampaignId}','GET',{'whatsAppCampaignId':whatsAppCampaignId},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
19323
|
+
* Query for a list of WhatsApp campaign schedules.
|
|
19324
|
+
*
|
|
19325
|
+
*/},{key:"getOutboundSchedulesWhatsappcampaigns",value:function getOutboundSchedulesWhatsappcampaigns(){return this.apiClient.callApi('/api/v2/outbound/schedules/whatsappcampaigns','GET',{},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
19165
19326
|
* Get a dialer campaign sequence.
|
|
19166
19327
|
*
|
|
19167
19328
|
* @param {String} sequenceId Campaign Sequence ID
|
|
@@ -19594,6 +19755,13 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
19594
19755
|
*/},{key:"putOutboundSchedulesSequence",value:function putOutboundSchedulesSequence(sequenceId,body){// verify the required parameter 'sequenceId' is set
|
|
19595
19756
|
if(sequenceId===undefined||sequenceId===null||sequenceId===''){throw'Missing the required parameter "sequenceId" when calling putOutboundSchedulesSequence';}// verify the required parameter 'body' is set
|
|
19596
19757
|
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling putOutboundSchedulesSequence';}return this.apiClient.callApi('/api/v2/outbound/schedules/sequences/{sequenceId}','PUT',{'sequenceId':sequenceId},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
19758
|
+
* Update a WhatsApp campaign schedule.
|
|
19759
|
+
*
|
|
19760
|
+
* @param {String} whatsAppCampaignId WhatsApp Campaign ID
|
|
19761
|
+
* @param {Object} body WhatsAppCampaignSchedule
|
|
19762
|
+
*/},{key:"putOutboundSchedulesWhatsappcampaign",value:function putOutboundSchedulesWhatsappcampaign(whatsAppCampaignId,body){// verify the required parameter 'whatsAppCampaignId' is set
|
|
19763
|
+
if(whatsAppCampaignId===undefined||whatsAppCampaignId===null||whatsAppCampaignId===''){throw'Missing the required parameter "whatsAppCampaignId" when calling putOutboundSchedulesWhatsappcampaign';}// verify the required parameter 'body' is set
|
|
19764
|
+
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling putOutboundSchedulesWhatsappcampaign';}return this.apiClient.callApi('/api/v2/outbound/schedules/whatsappcampaigns/{whatsAppCampaignId}','PUT',{'whatsAppCampaignId':whatsAppCampaignId},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
19597
19765
|
* Update a new campaign sequence.
|
|
19598
19766
|
*
|
|
19599
19767
|
* @param {String} sequenceId Campaign Sequence ID
|
|
@@ -19608,7 +19776,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
19608
19776
|
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(){/**
|
|
19609
19777
|
* Presence service.
|
|
19610
19778
|
* @module purecloud-platform-client-v2/api/PresenceApi
|
|
19611
|
-
* @version
|
|
19779
|
+
* @version 228.0.0
|
|
19612
19780
|
*//**
|
|
19613
19781
|
* Constructs a new PresenceApi.
|
|
19614
19782
|
* @alias module:purecloud-platform-client-v2/api/PresenceApi
|
|
@@ -19781,7 +19949,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
19781
19949
|
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(){/**
|
|
19782
19950
|
* ProcessAutomation service.
|
|
19783
19951
|
* @module purecloud-platform-client-v2/api/ProcessAutomationApi
|
|
19784
|
-
* @version
|
|
19952
|
+
* @version 228.0.0
|
|
19785
19953
|
*//**
|
|
19786
19954
|
* Constructs a new ProcessAutomationApi.
|
|
19787
19955
|
* @alias module:purecloud-platform-client-v2/api/ProcessAutomationApi
|
|
@@ -19844,7 +20012,7 @@ if(triggerId===undefined||triggerId===null||triggerId===''){throw'Missing the re
|
|
|
19844
20012
|
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(){/**
|
|
19845
20013
|
* Quality service.
|
|
19846
20014
|
* @module purecloud-platform-client-v2/api/QualityApi
|
|
19847
|
-
* @version
|
|
20015
|
+
* @version 228.0.0
|
|
19848
20016
|
*//**
|
|
19849
20017
|
* Constructs a new QualityApi.
|
|
19850
20018
|
* @alias module:purecloud-platform-client-v2/api/QualityApi
|
|
@@ -19852,11 +20020,23 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
19852
20020
|
* @param {module:purecloud-platform-client-v2/ApiClient} apiClient Optional API client implementation to use,
|
|
19853
20021
|
* default to {@link module:purecloud-platform-client-v2/ApiClient#instance} if unspecified.
|
|
19854
20022
|
*/function QualityApi(apiClient){_classCallCheck(this,QualityApi);this.apiClient=apiClient||ApiClient.instance;}/**
|
|
20023
|
+
* Delete/cancel an async request for evaluation aggregates
|
|
20024
|
+
*
|
|
20025
|
+
* @param {String} jobId jobId
|
|
20026
|
+
* deleteAnalyticsEvaluationsAggregatesJob is a preview method and is subject to both breaking and non-breaking changes at any time without notice
|
|
20027
|
+
*/return _createClass(QualityApi,[{key:"deleteAnalyticsEvaluationsAggregatesJob",value:function deleteAnalyticsEvaluationsAggregatesJob(jobId){// verify the required parameter 'jobId' is set
|
|
20028
|
+
if(jobId===undefined||jobId===null||jobId===''){throw'Missing the required parameter "jobId" when calling deleteAnalyticsEvaluationsAggregatesJob';}return this.apiClient.callApi('/api/v2/analytics/evaluations/aggregates/jobs/{jobId}','DELETE',{'jobId':jobId},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
20029
|
+
* Delete/cancel an async request for survey aggregates
|
|
20030
|
+
*
|
|
20031
|
+
* @param {String} jobId jobId
|
|
20032
|
+
* deleteAnalyticsSurveysAggregatesJob is a preview method and is subject to both breaking and non-breaking changes at any time without notice
|
|
20033
|
+
*/},{key:"deleteAnalyticsSurveysAggregatesJob",value:function deleteAnalyticsSurveysAggregatesJob(jobId){// verify the required parameter 'jobId' is set
|
|
20034
|
+
if(jobId===undefined||jobId===null||jobId===''){throw'Missing the required parameter "jobId" when calling deleteAnalyticsSurveysAggregatesJob';}return this.apiClient.callApi('/api/v2/analytics/surveys/aggregates/jobs/{jobId}','DELETE',{'jobId':jobId},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
19855
20035
|
* Delete a calibration by id.
|
|
19856
20036
|
*
|
|
19857
20037
|
* @param {String} calibrationId Calibration ID
|
|
19858
20038
|
* @param {String} calibratorId calibratorId
|
|
19859
|
-
*/
|
|
20039
|
+
*/},{key:"deleteQualityCalibration",value:function deleteQualityCalibration(calibrationId,calibratorId){// verify the required parameter 'calibrationId' is set
|
|
19860
20040
|
if(calibrationId===undefined||calibrationId===null||calibrationId===''){throw'Missing the required parameter "calibrationId" when calling deleteQualityCalibration';}// verify the required parameter 'calibratorId' is set
|
|
19861
20041
|
if(calibratorId===undefined||calibratorId===null){throw'Missing the required parameter "calibratorId" when calling deleteQualityCalibration';}return this.apiClient.callApi('/api/v2/quality/calibrations/{calibrationId}','DELETE',{'calibrationId':calibrationId},{'calibratorId':calibratorId},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
19862
20042
|
* Delete an evaluation
|
|
@@ -20322,7 +20502,7 @@ if(customerSurveyUrl===undefined||customerSurveyUrl===null){throw'Missing the re
|
|
|
20322
20502
|
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(){/**
|
|
20323
20503
|
* Recording service.
|
|
20324
20504
|
* @module purecloud-platform-client-v2/api/RecordingApi
|
|
20325
|
-
* @version
|
|
20505
|
+
* @version 228.0.0
|
|
20326
20506
|
*//**
|
|
20327
20507
|
* Constructs a new RecordingApi.
|
|
20328
20508
|
* @alias module:purecloud-platform-client-v2/api/RecordingApi
|
|
@@ -20721,7 +20901,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
20721
20901
|
*/},{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(){/**
|
|
20722
20902
|
* ResponseManagement service.
|
|
20723
20903
|
* @module purecloud-platform-client-v2/api/ResponseManagementApi
|
|
20724
|
-
* @version
|
|
20904
|
+
* @version 228.0.0
|
|
20725
20905
|
*//**
|
|
20726
20906
|
* Constructs a new ResponseManagementApi.
|
|
20727
20907
|
* @alias module:purecloud-platform-client-v2/api/ResponseManagementApi
|
|
@@ -20842,7 +21022,7 @@ if(responseAssetId===undefined||responseAssetId===null||responseAssetId===''){th
|
|
|
20842
21022
|
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(){/**
|
|
20843
21023
|
* Routing service.
|
|
20844
21024
|
* @module purecloud-platform-client-v2/api/RoutingApi
|
|
20845
|
-
* @version
|
|
21025
|
+
* @version 228.0.0
|
|
20846
21026
|
*//**
|
|
20847
21027
|
* Constructs a new RoutingApi.
|
|
20848
21028
|
* @alias module:purecloud-platform-client-v2/api/RoutingApi
|
|
@@ -21898,7 +22078,7 @@ if(userId===undefined||userId===null||userId===''){throw'Missing the required pa
|
|
|
21898
22078
|
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(){/**
|
|
21899
22079
|
* SCIM service.
|
|
21900
22080
|
* @module purecloud-platform-client-v2/api/SCIMApi
|
|
21901
|
-
* @version
|
|
22081
|
+
* @version 228.0.0
|
|
21902
22082
|
*//**
|
|
21903
22083
|
* Constructs a new SCIMApi.
|
|
21904
22084
|
* @alias module:purecloud-platform-client-v2/api/SCIMApi
|
|
@@ -22123,7 +22303,7 @@ if(userId===undefined||userId===null||userId===''){throw'Missing the required pa
|
|
|
22123
22303
|
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(){/**
|
|
22124
22304
|
* ScreenRecording service.
|
|
22125
22305
|
* @module purecloud-platform-client-v2/api/ScreenRecordingApi
|
|
22126
|
-
* @version
|
|
22306
|
+
* @version 228.0.0
|
|
22127
22307
|
*//**
|
|
22128
22308
|
* Constructs a new ScreenRecordingApi.
|
|
22129
22309
|
* @alias module:purecloud-platform-client-v2/api/ScreenRecordingApi
|
|
@@ -22138,7 +22318,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
22138
22318
|
*/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(){/**
|
|
22139
22319
|
* Scripts service.
|
|
22140
22320
|
* @module purecloud-platform-client-v2/api/ScriptsApi
|
|
22141
|
-
* @version
|
|
22321
|
+
* @version 228.0.0
|
|
22142
22322
|
*//**
|
|
22143
22323
|
* Constructs a new ScriptsApi.
|
|
22144
22324
|
* @alias module:purecloud-platform-client-v2/api/ScriptsApi
|
|
@@ -22284,7 +22464,7 @@ if(scriptId===undefined||scriptId===null||scriptId===''){throw'Missing the requi
|
|
|
22284
22464
|
*/},{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(){/**
|
|
22285
22465
|
* Search service.
|
|
22286
22466
|
* @module purecloud-platform-client-v2/api/SearchApi
|
|
22287
|
-
* @version
|
|
22467
|
+
* @version 228.0.0
|
|
22288
22468
|
*//**
|
|
22289
22469
|
* Constructs a new SearchApi.
|
|
22290
22470
|
* @alias module:purecloud-platform-client-v2/api/SearchApi
|
|
@@ -22354,11 +22534,6 @@ if(q64===undefined||q64===null){throw'Missing the required parameter "q64" when
|
|
|
22354
22534
|
* @param {Array.<String>} opts.expand expand
|
|
22355
22535
|
*/},{key:"getVoicemailSearch",value:function getVoicemailSearch(q64,opts){opts=opts||{};// verify the required parameter 'q64' is set
|
|
22356
22536
|
if(q64===undefined||q64===null){throw'Missing the required parameter "q64" when calling getVoicemailSearch';}return this.apiClient.callApi('/api/v2/voicemail/search','GET',{},{'q64':q64,'expand':this.apiClient.buildCollectionParam(opts['expand'],'multi')},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
22357
|
-
* Search resources.
|
|
22358
|
-
*
|
|
22359
|
-
* @param {Object} body Search request options
|
|
22360
|
-
*/},{key:"postAnalyticsConversationsTranscriptsQuery",value:function postAnalyticsConversationsTranscriptsQuery(body){// verify the required parameter 'body' is set
|
|
22361
|
-
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling postAnalyticsConversationsTranscriptsQuery';}return this.apiClient.callApi('/api/v2/analytics/conversations/transcripts/query','POST',{},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
22362
22537
|
* Search conversations
|
|
22363
22538
|
*
|
|
22364
22539
|
* @param {Object} body Search request options
|
|
@@ -22456,7 +22631,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
22456
22631
|
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(){/**
|
|
22457
22632
|
* Settings service.
|
|
22458
22633
|
* @module purecloud-platform-client-v2/api/SettingsApi
|
|
22459
|
-
* @version
|
|
22634
|
+
* @version 228.0.0
|
|
22460
22635
|
*//**
|
|
22461
22636
|
* Constructs a new SettingsApi.
|
|
22462
22637
|
* @alias module:purecloud-platform-client-v2/api/SettingsApi
|
|
@@ -22528,7 +22703,7 @@ if(agentId===undefined||agentId===null||agentId===''){throw'Missing the required
|
|
|
22528
22703
|
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(){/**
|
|
22529
22704
|
* SocialMedia service.
|
|
22530
22705
|
* @module purecloud-platform-client-v2/api/SocialMediaApi
|
|
22531
|
-
* @version
|
|
22706
|
+
* @version 228.0.0
|
|
22532
22707
|
*//**
|
|
22533
22708
|
* Constructs a new SocialMediaApi.
|
|
22534
22709
|
* @alias module:purecloud-platform-client-v2/api/SocialMediaApi
|
|
@@ -22876,7 +23051,7 @@ if(topicId===undefined||topicId===null||topicId===''){throw'Missing the required
|
|
|
22876
23051
|
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(){/**
|
|
22877
23052
|
* SpeechTextAnalytics service.
|
|
22878
23053
|
* @module purecloud-platform-client-v2/api/SpeechTextAnalyticsApi
|
|
22879
|
-
* @version
|
|
23054
|
+
* @version 228.0.0
|
|
22880
23055
|
*//**
|
|
22881
23056
|
* Constructs a new SpeechTextAnalyticsApi.
|
|
22882
23057
|
* @alias module:purecloud-platform-client-v2/api/SpeechTextAnalyticsApi
|
|
@@ -22901,6 +23076,12 @@ if(dictionaryFeedbackId===undefined||dictionaryFeedbackId===null||dictionaryFeed
|
|
|
22901
23076
|
* @param {Object} opts.forceDelete Indicates whether the program is forced to be deleted or not. Required when the program to delete is the default program. (default to false)
|
|
22902
23077
|
*/},{key:"deleteSpeechandtextanalyticsProgram",value:function deleteSpeechandtextanalyticsProgram(programId,opts){opts=opts||{};// verify the required parameter 'programId' is set
|
|
22903
23078
|
if(programId===undefined||programId===null||programId===''){throw'Missing the required parameter "programId" when calling deleteSpeechandtextanalyticsProgram';}return this.apiClient.callApi('/api/v2/speechandtextanalytics/programs/{programId}','DELETE',{'programId':programId},{'forceDelete':opts['forceDelete']},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
23079
|
+
* Delete a Speech and Text Analytics Reprocessing job by Id
|
|
23080
|
+
*
|
|
23081
|
+
* @param {String} jobId The Id of the Reprocessing job
|
|
23082
|
+
* deleteSpeechandtextanalyticsReprocessingJob is a preview method and is subject to both breaking and non-breaking changes at any time without notice
|
|
23083
|
+
*/},{key:"deleteSpeechandtextanalyticsReprocessingJob",value:function deleteSpeechandtextanalyticsReprocessingJob(jobId){// verify the required parameter 'jobId' is set
|
|
23084
|
+
if(jobId===undefined||jobId===null||jobId===''){throw'Missing the required parameter "jobId" when calling deleteSpeechandtextanalyticsReprocessingJob';}return this.apiClient.callApi('/api/v2/speechandtextanalytics/reprocessing/jobs/{jobId}','DELETE',{'jobId':jobId},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
22904
23085
|
* Delete All Speech and Text Analytics SentimentFeedback
|
|
22905
23086
|
*
|
|
22906
23087
|
*/},{key:"deleteSpeechandtextanalyticsSentimentfeedback",value:function deleteSpeechandtextanalyticsSentimentfeedback(){return this.apiClient.callApi('/api/v2/speechandtextanalytics/sentimentfeedback','DELETE',{},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
@@ -22956,6 +23137,11 @@ if(communicationId===undefined||communicationId===null||communicationId===''){th
|
|
|
22956
23137
|
*/},{key:"getSpeechandtextanalyticsConversationCommunicationTranscripturls",value:function getSpeechandtextanalyticsConversationCommunicationTranscripturls(conversationId,communicationId){// verify the required parameter 'conversationId' is set
|
|
22957
23138
|
if(conversationId===undefined||conversationId===null||conversationId===''){throw'Missing the required parameter "conversationId" when calling getSpeechandtextanalyticsConversationCommunicationTranscripturls';}// verify the required parameter 'communicationId' is set
|
|
22958
23139
|
if(communicationId===undefined||communicationId===null||communicationId===''){throw'Missing the required parameter "communicationId" when calling getSpeechandtextanalyticsConversationCommunicationTranscripturls';}return this.apiClient.callApi('/api/v2/speechandtextanalytics/conversations/{conversationId}/communications/{communicationId}/transcripturls','GET',{'conversationId':conversationId,'communicationId':communicationId},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
23140
|
+
* Get sentiment data
|
|
23141
|
+
*
|
|
23142
|
+
* @param {String} conversationId The conversation ID of the sentiment data
|
|
23143
|
+
*/},{key:"getSpeechandtextanalyticsConversationSentiments",value:function getSpeechandtextanalyticsConversationSentiments(conversationId){// verify the required parameter 'conversationId' is set
|
|
23144
|
+
if(conversationId===undefined||conversationId===null||conversationId===''){throw'Missing the required parameter "conversationId" when calling getSpeechandtextanalyticsConversationSentiments';}return this.apiClient.callApi('/api/v2/speechandtextanalytics/conversations/{conversationId}/sentiments','GET',{'conversationId':conversationId},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
22959
23145
|
* Get conversation summaries by conversation id.
|
|
22960
23146
|
*
|
|
22961
23147
|
* @param {String} conversationId The conversation ID of the summaries
|
|
@@ -23032,6 +23218,27 @@ if(jobId===undefined||jobId===null||jobId===''){throw'Missing the required param
|
|
|
23032
23218
|
* @param {String} opts.nextPage The key for listing the next page
|
|
23033
23219
|
* @param {Number} opts.pageSize The page size for the listing (default to 20)
|
|
23034
23220
|
*/},{key:"getSpeechandtextanalyticsProgramsUnpublished",value:function getSpeechandtextanalyticsProgramsUnpublished(opts){opts=opts||{};return this.apiClient.callApi('/api/v2/speechandtextanalytics/programs/unpublished','GET',{},{'nextPage':opts['nextPage'],'pageSize':opts['pageSize']},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
23221
|
+
* Get a Speech and Text Analytics reprocess job by id
|
|
23222
|
+
*
|
|
23223
|
+
* @param {String} jobId The Id of the Reprocessing job
|
|
23224
|
+
* getSpeechandtextanalyticsReprocessingJob is a preview method and is subject to both breaking and non-breaking changes at any time without notice
|
|
23225
|
+
*/},{key:"getSpeechandtextanalyticsReprocessingJob",value:function getSpeechandtextanalyticsReprocessingJob(jobId){// verify the required parameter 'jobId' is set
|
|
23226
|
+
if(jobId===undefined||jobId===null||jobId===''){throw'Missing the required parameter "jobId" when calling getSpeechandtextanalyticsReprocessingJob';}return this.apiClient.callApi('/api/v2/speechandtextanalytics/reprocessing/jobs/{jobId}','GET',{'jobId':jobId},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
23227
|
+
* Get a Speech and Text Analytics Reprocessing interactions statuses by job id
|
|
23228
|
+
*
|
|
23229
|
+
* @param {String} jobId The Id of the Reprocessing job
|
|
23230
|
+
* getSpeechandtextanalyticsReprocessingJobInteractions is a preview method and is subject to both breaking and non-breaking changes at any time without notice
|
|
23231
|
+
*/},{key:"getSpeechandtextanalyticsReprocessingJobInteractions",value:function getSpeechandtextanalyticsReprocessingJobInteractions(jobId){// verify the required parameter 'jobId' is set
|
|
23232
|
+
if(jobId===undefined||jobId===null||jobId===''){throw'Missing the required parameter "jobId" when calling getSpeechandtextanalyticsReprocessingJobInteractions';}return this.apiClient.callApi('/api/v2/speechandtextanalytics/reprocessing/jobs/{jobId}/interactions','GET',{'jobId':jobId},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
23233
|
+
* Get the list of Speech and Text Analytics reprocess jobs
|
|
23234
|
+
*
|
|
23235
|
+
* @param {Object} opts Optional parameters
|
|
23236
|
+
* @param {Number} opts.pageSize The page size for the listing. The max that will be returned is 100. Default is 25.
|
|
23237
|
+
* @param {Number} opts.pageNumber The page number for the listing. Defaults to 1.
|
|
23238
|
+
* @param {Object} opts.sortOrder Results are sorted by dateCreated. Please choose the sort order. The default is descending (desc).
|
|
23239
|
+
* @param {String} opts.name Case insensitive partial name to filter by.
|
|
23240
|
+
* getSpeechandtextanalyticsReprocessingJobs is a preview method and is subject to both breaking and non-breaking changes at any time without notice
|
|
23241
|
+
*/},{key:"getSpeechandtextanalyticsReprocessingJobs",value:function getSpeechandtextanalyticsReprocessingJobs(opts){opts=opts||{};return this.apiClient.callApi('/api/v2/speechandtextanalytics/reprocessing/jobs','GET',{},{'pageSize':opts['pageSize'],'pageNumber':opts['pageNumber'],'sortOrder':opts['sortOrder'],'name':opts['name']},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
23035
23242
|
* Get the list of Speech and Text Analytics sentiment supported dialects
|
|
23036
23243
|
*
|
|
23037
23244
|
*/},{key:"getSpeechandtextanalyticsSentimentDialects",value:function getSpeechandtextanalyticsSentimentDialects(){return this.apiClient.callApi('/api/v2/speechandtextanalytics/sentiment/dialects','GET',{},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
@@ -23126,6 +23333,12 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
23126
23333
|
* @param {Object} body The publish programs job to create
|
|
23127
23334
|
*/},{key:"postSpeechandtextanalyticsProgramsPublishjobs",value:function postSpeechandtextanalyticsProgramsPublishjobs(body){// verify the required parameter 'body' is set
|
|
23128
23335
|
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling postSpeechandtextanalyticsProgramsPublishjobs';}return this.apiClient.callApi('/api/v2/speechandtextanalytics/programs/publishjobs','POST',{},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
23336
|
+
* Create a Speech and Text Analytics reprocess job.
|
|
23337
|
+
*
|
|
23338
|
+
* @param {Object} body The ReprocessJob to create
|
|
23339
|
+
* postSpeechandtextanalyticsReprocessingJobs is a preview method and is subject to both breaking and non-breaking changes at any time without notice
|
|
23340
|
+
*/},{key:"postSpeechandtextanalyticsReprocessingJobs",value:function postSpeechandtextanalyticsReprocessingJobs(body){// verify the required parameter 'body' is set
|
|
23341
|
+
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling postSpeechandtextanalyticsReprocessingJobs';}return this.apiClient.callApi('/api/v2/speechandtextanalytics/reprocessing/jobs','POST',{},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
23129
23342
|
* Create a Speech and Text Analytics SentimentFeedback
|
|
23130
23343
|
*
|
|
23131
23344
|
* @param {Object} body The SentimentFeedback to create
|
|
@@ -23207,7 +23420,7 @@ if(topicId===undefined||topicId===null||topicId===''){throw'Missing the required
|
|
|
23207
23420
|
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(){/**
|
|
23208
23421
|
* Stations service.
|
|
23209
23422
|
* @module purecloud-platform-client-v2/api/StationsApi
|
|
23210
|
-
* @version
|
|
23423
|
+
* @version 228.0.0
|
|
23211
23424
|
*//**
|
|
23212
23425
|
* Constructs a new StationsApi.
|
|
23213
23426
|
* @alias module:purecloud-platform-client-v2/api/StationsApi
|
|
@@ -23239,7 +23452,7 @@ if(stationId===undefined||stationId===null||stationId===''){throw'Missing the re
|
|
|
23239
23452
|
*/},{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(){/**
|
|
23240
23453
|
* Suggest service.
|
|
23241
23454
|
* @module purecloud-platform-client-v2/api/SuggestApi
|
|
23242
|
-
* @version
|
|
23455
|
+
* @version 228.0.0
|
|
23243
23456
|
*//**
|
|
23244
23457
|
* Constructs a new SuggestApi.
|
|
23245
23458
|
* @alias module:purecloud-platform-client-v2/api/SuggestApi
|
|
@@ -23279,7 +23492,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
23279
23492
|
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(){/**
|
|
23280
23493
|
* TaskManagement service.
|
|
23281
23494
|
* @module purecloud-platform-client-v2/api/TaskManagementApi
|
|
23282
|
-
* @version
|
|
23495
|
+
* @version 228.0.0
|
|
23283
23496
|
*//**
|
|
23284
23497
|
* Constructs a new TaskManagementApi.
|
|
23285
23498
|
* @alias module:purecloud-platform-client-v2/api/TaskManagementApi
|
|
@@ -23787,7 +24000,7 @@ if(schemaId===undefined||schemaId===null||schemaId===''){throw'Missing the requi
|
|
|
23787
24000
|
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(){/**
|
|
23788
24001
|
* Teams service.
|
|
23789
24002
|
* @module purecloud-platform-client-v2/api/TeamsApi
|
|
23790
|
-
* @version
|
|
24003
|
+
* @version 228.0.0
|
|
23791
24004
|
*//**
|
|
23792
24005
|
* Constructs a new TeamsApi.
|
|
23793
24006
|
* @alias module:purecloud-platform-client-v2/api/TeamsApi
|
|
@@ -23867,7 +24080,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
23867
24080
|
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(){/**
|
|
23868
24081
|
* Telephony service.
|
|
23869
24082
|
* @module purecloud-platform-client-v2/api/TelephonyApi
|
|
23870
|
-
* @version
|
|
24083
|
+
* @version 228.0.0
|
|
23871
24084
|
*//**
|
|
23872
24085
|
* Constructs a new TelephonyApi.
|
|
23873
24086
|
* @alias module:purecloud-platform-client-v2/api/TelephonyApi
|
|
@@ -23875,9 +24088,19 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
23875
24088
|
* @param {module:purecloud-platform-client-v2/ApiClient} apiClient Optional API client implementation to use,
|
|
23876
24089
|
* default to {@link module:purecloud-platform-client-v2/ApiClient#instance} if unspecified.
|
|
23877
24090
|
*/function TelephonyApi(apiClient){_classCallCheck(this,TelephonyApi);this.apiClient=apiClient||ApiClient.instance;}/**
|
|
24091
|
+
* Get an agent's greetings.
|
|
24092
|
+
*
|
|
24093
|
+
* @param {String} agentId User ID
|
|
24094
|
+
* getTelephonyAgentGreetings is a preview method and is subject to both breaking and non-breaking changes at any time without notice
|
|
24095
|
+
*/return _createClass(TelephonyApi,[{key:"getTelephonyAgentGreetings",value:function getTelephonyAgentGreetings(agentId){// verify the required parameter 'agentId' is set
|
|
24096
|
+
if(agentId===undefined||agentId===null||agentId===''){throw'Missing the required parameter "agentId" when calling getTelephonyAgentGreetings';}return this.apiClient.callApi('/api/v2/telephony/agents/{agentId}/greetings','GET',{'agentId':agentId},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
24097
|
+
* Get the agent's own greetings.
|
|
24098
|
+
*
|
|
24099
|
+
* getTelephonyAgentsGreetingsMe is a preview method and is subject to both breaking and non-breaking changes at any time without notice
|
|
24100
|
+
*/},{key:"getTelephonyAgentsGreetingsMe",value:function getTelephonyAgentsGreetingsMe(){return this.apiClient.callApi('/api/v2/telephony/agents/greetings/me','GET',{},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
23878
24101
|
* Retrieve the list of AWS regions media can stream through.
|
|
23879
24102
|
*
|
|
23880
|
-
*/
|
|
24103
|
+
*/},{key:"getTelephonyMediaregions",value:function getTelephonyMediaregions(){return this.apiClient.callApi('/api/v2/telephony/mediaregions','GET',{},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
23881
24104
|
* Get a SIP message.
|
|
23882
24105
|
* Get the raw form of the SIP message
|
|
23883
24106
|
* @param {String} conversationId Conversation id
|
|
@@ -23911,10 +24134,24 @@ if(downloadId===undefined||downloadId===null||downloadId===''){throw'Missing the
|
|
|
23911
24134
|
*
|
|
23912
24135
|
* @param {Object} sIPSearchPublicRequest
|
|
23913
24136
|
*/},{key:"postTelephonySiptracesDownload",value:function postTelephonySiptracesDownload(sIPSearchPublicRequest){// verify the required parameter 'sIPSearchPublicRequest' is set
|
|
23914
|
-
if(sIPSearchPublicRequest===undefined||sIPSearchPublicRequest===null){throw'Missing the required parameter "sIPSearchPublicRequest" when calling postTelephonySiptracesDownload';}return this.apiClient.callApi('/api/v2/telephony/siptraces/download','POST',{},{},{},{},sIPSearchPublicRequest,['PureCloud OAuth'],['application/json'],['application/json']);}
|
|
24137
|
+
if(sIPSearchPublicRequest===undefined||sIPSearchPublicRequest===null){throw'Missing the required parameter "sIPSearchPublicRequest" when calling postTelephonySiptracesDownload';}return this.apiClient.callApi('/api/v2/telephony/siptraces/download','POST',{},{},{},{},sIPSearchPublicRequest,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
24138
|
+
* Updates an agent's greetings.
|
|
24139
|
+
*
|
|
24140
|
+
* @param {String} agentId User ID
|
|
24141
|
+
* @param {Object} body Agent Greeting
|
|
24142
|
+
* putTelephonyAgentGreetings is a preview method and is subject to both breaking and non-breaking changes at any time without notice
|
|
24143
|
+
*/},{key:"putTelephonyAgentGreetings",value:function putTelephonyAgentGreetings(agentId,body){// verify the required parameter 'agentId' is set
|
|
24144
|
+
if(agentId===undefined||agentId===null||agentId===''){throw'Missing the required parameter "agentId" when calling putTelephonyAgentGreetings';}// verify the required parameter 'body' is set
|
|
24145
|
+
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling putTelephonyAgentGreetings';}return this.apiClient.callApi('/api/v2/telephony/agents/{agentId}/greetings','PUT',{'agentId':agentId},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
24146
|
+
* Updates the agent's own greetings.
|
|
24147
|
+
*
|
|
24148
|
+
* @param {Object} body Agent Greeting
|
|
24149
|
+
* putTelephonyAgentsGreetingsMe is a preview method and is subject to both breaking and non-breaking changes at any time without notice
|
|
24150
|
+
*/},{key:"putTelephonyAgentsGreetingsMe",value:function putTelephonyAgentsGreetingsMe(body){// verify the required parameter 'body' is set
|
|
24151
|
+
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(){/**
|
|
23915
24152
|
* TelephonyProvidersEdge service.
|
|
23916
24153
|
* @module purecloud-platform-client-v2/api/TelephonyProvidersEdgeApi
|
|
23917
|
-
* @version
|
|
24154
|
+
* @version 228.0.0
|
|
23918
24155
|
*//**
|
|
23919
24156
|
* Constructs a new TelephonyProvidersEdgeApi.
|
|
23920
24157
|
* @alias module:purecloud-platform-client-v2/api/TelephonyProvidersEdgeApi
|
|
@@ -24762,7 +24999,7 @@ if(trunkBaseSettingsId===undefined||trunkBaseSettingsId===null||trunkBaseSetting
|
|
|
24762
24999
|
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(){/**
|
|
24763
25000
|
* Textbots service.
|
|
24764
25001
|
* @module purecloud-platform-client-v2/api/TextbotsApi
|
|
24765
|
-
* @version
|
|
25002
|
+
* @version 228.0.0
|
|
24766
25003
|
*//**
|
|
24767
25004
|
* Constructs a new TextbotsApi.
|
|
24768
25005
|
* @alias module:purecloud-platform-client-v2/api/TextbotsApi
|
|
@@ -24798,7 +25035,7 @@ if(launchRequest===undefined||launchRequest===null){throw'Missing the required p
|
|
|
24798
25035
|
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(){/**
|
|
24799
25036
|
* Tokens service.
|
|
24800
25037
|
* @module purecloud-platform-client-v2/api/TokensApi
|
|
24801
|
-
* @version
|
|
25038
|
+
* @version 228.0.0
|
|
24802
25039
|
*//**
|
|
24803
25040
|
* Constructs a new TokensApi.
|
|
24804
25041
|
* @alias module:purecloud-platform-client-v2/api/TokensApi
|
|
@@ -24832,7 +25069,7 @@ if(userId===undefined||userId===null||userId===''){throw'Missing the required pa
|
|
|
24832
25069
|
*/},{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(){/**
|
|
24833
25070
|
* Uploads service.
|
|
24834
25071
|
* @module purecloud-platform-client-v2/api/UploadsApi
|
|
24835
|
-
* @version
|
|
25072
|
+
* @version 228.0.0
|
|
24836
25073
|
*//**
|
|
24837
25074
|
* Constructs a new UploadsApi.
|
|
24838
25075
|
* @alias module:purecloud-platform-client-v2/api/UploadsApi
|
|
@@ -24900,7 +25137,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
24900
25137
|
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(){/**
|
|
24901
25138
|
* Usage service.
|
|
24902
25139
|
* @module purecloud-platform-client-v2/api/UsageApi
|
|
24903
|
-
* @version
|
|
25140
|
+
* @version 228.0.0
|
|
24904
25141
|
*//**
|
|
24905
25142
|
* Constructs a new UsageApi.
|
|
24906
25143
|
* @alias module:purecloud-platform-client-v2/api/UsageApi
|
|
@@ -24922,6 +25159,24 @@ if(clientId===undefined||clientId===null||clientId===''){throw'Missing the requi
|
|
|
24922
25159
|
* @param {String} opts.days Previous number of days to query (default to 7)
|
|
24923
25160
|
*/},{key:"getOauthClientUsageSummary",value:function getOauthClientUsageSummary(clientId,opts){opts=opts||{};// verify the required parameter 'clientId' is set
|
|
24924
25161
|
if(clientId===undefined||clientId===null||clientId===''){throw'Missing the required parameter "clientId" when calling getOauthClientUsageSummary';}return this.apiClient.callApi('/api/v2/oauth/clients/{clientId}/usage/summary','GET',{'clientId':clientId},{'days':opts['days']},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
25162
|
+
* Get the status and results of the usage query
|
|
25163
|
+
*
|
|
25164
|
+
* @param {String} jobId jobId
|
|
25165
|
+
* @param {Object} opts Optional parameters
|
|
25166
|
+
* @param {Number} opts.pageSize Page size of the results. Max is 1000. (default to 100)
|
|
25167
|
+
* @param {String} opts.after The cursor that points to the end of the set of entities that has been returned.
|
|
25168
|
+
*/},{key:"getUsageAggregatesQueryJob",value:function getUsageAggregatesQueryJob(jobId,opts){opts=opts||{};// verify the required parameter 'jobId' is set
|
|
25169
|
+
if(jobId===undefined||jobId===null||jobId===''){throw'Missing the required parameter "jobId" when calling getUsageAggregatesQueryJob';}return this.apiClient.callApi('/api/v2/usage/aggregates/query/jobs/{jobId}','GET',{'jobId':jobId},{'pageSize':opts['pageSize'],'after':opts['after']},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
25170
|
+
* Get the status and results of the usage query
|
|
25171
|
+
*
|
|
25172
|
+
* @param {String} clientId clientId
|
|
25173
|
+
* @param {String} jobId jobId
|
|
25174
|
+
* @param {Object} opts Optional parameters
|
|
25175
|
+
* @param {Number} opts.pageSize Page size of the results. Max is 1000. (default to 100)
|
|
25176
|
+
* @param {String} opts.after The cursor that points to the end of the set of entities that has been returned.
|
|
25177
|
+
*/},{key:"getUsageClientClientIdAggregatesQueryJob",value:function getUsageClientClientIdAggregatesQueryJob(clientId,jobId,opts){opts=opts||{};// verify the required parameter 'clientId' is set
|
|
25178
|
+
if(clientId===undefined||clientId===null||clientId===''){throw'Missing the required parameter "clientId" when calling getUsageClientClientIdAggregatesQueryJob';}// verify the required parameter 'jobId' is set
|
|
25179
|
+
if(jobId===undefined||jobId===null||jobId===''){throw'Missing the required parameter "jobId" when calling getUsageClientClientIdAggregatesQueryJob';}return this.apiClient.callApi('/api/v2/usage/client/{clientId}/aggregates/query/jobs/{jobId}','GET',{'clientId':clientId,'jobId':jobId},{'pageSize':opts['pageSize'],'after':opts['after']},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
24925
25180
|
* Get the results of a usage query
|
|
24926
25181
|
*
|
|
24927
25182
|
* @param {String} executionId ID of the query execution
|
|
@@ -24942,6 +25197,18 @@ if(executionId===undefined||executionId===null||executionId===''){throw'Missing
|
|
|
24942
25197
|
*/},{key:"postOauthClientUsageQuery",value:function postOauthClientUsageQuery(clientId,body){// verify the required parameter 'clientId' is set
|
|
24943
25198
|
if(clientId===undefined||clientId===null||clientId===''){throw'Missing the required parameter "clientId" when calling postOauthClientUsageQuery';}// verify the required parameter 'body' is set
|
|
24944
25199
|
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling postOauthClientUsageQuery';}return this.apiClient.callApi('/api/v2/oauth/clients/{clientId}/usage/query','POST',{'clientId':clientId},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
25200
|
+
* Query your organization's public api usage.
|
|
25201
|
+
* After calling this method, you will need to save the queryExecutionId from the response and use it in a call to the results endpoint to get the results
|
|
25202
|
+
* @param {Object} body Query
|
|
25203
|
+
*/},{key:"postUsageAggregatesQueryJobs",value:function postUsageAggregatesQueryJobs(body){// verify the required parameter 'body' is set
|
|
25204
|
+
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling postUsageAggregatesQueryJobs';}return this.apiClient.callApi('/api/v2/usage/aggregates/query/jobs','POST',{},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
25205
|
+
* Query your client's public api usage.
|
|
25206
|
+
* After calling this method, you will need to save the queryExecutionId from the response and use it in a call to the results endpoint to get the results
|
|
25207
|
+
* @param {String} clientId clientId
|
|
25208
|
+
* @param {Object} body Query
|
|
25209
|
+
*/},{key:"postUsageClientClientIdAggregatesQueryJobs",value:function postUsageClientClientIdAggregatesQueryJobs(clientId,body){// verify the required parameter 'clientId' is set
|
|
25210
|
+
if(clientId===undefined||clientId===null||clientId===''){throw'Missing the required parameter "clientId" when calling postUsageClientClientIdAggregatesQueryJobs';}// verify the required parameter 'body' is set
|
|
25211
|
+
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling postUsageClientClientIdAggregatesQueryJobs';}return this.apiClient.callApi('/api/v2/usage/client/{clientId}/aggregates/query/jobs','POST',{'clientId':clientId},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
24945
25212
|
* Query organization API Usage -
|
|
24946
25213
|
* After calling this method, you will then need to poll for the query results based on the returned execution Id
|
|
24947
25214
|
* @param {Object} body Query
|
|
@@ -24954,7 +25221,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
24954
25221
|
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(){/**
|
|
24955
25222
|
* UserRecordings service.
|
|
24956
25223
|
* @module purecloud-platform-client-v2/api/UserRecordingsApi
|
|
24957
|
-
* @version
|
|
25224
|
+
* @version 228.0.0
|
|
24958
25225
|
*//**
|
|
24959
25226
|
* Constructs a new UserRecordingsApi.
|
|
24960
25227
|
* @alias module:purecloud-platform-client-v2/api/UserRecordingsApi
|
|
@@ -25011,7 +25278,7 @@ if(recordingId===undefined||recordingId===null||recordingId===''){throw'Missing
|
|
|
25011
25278
|
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(){/**
|
|
25012
25279
|
* Users service.
|
|
25013
25280
|
* @module purecloud-platform-client-v2/api/UsersApi
|
|
25014
|
-
* @version
|
|
25281
|
+
* @version 228.0.0
|
|
25015
25282
|
*//**
|
|
25016
25283
|
* Constructs a new UsersApi.
|
|
25017
25284
|
* @alias module:purecloud-platform-client-v2/api/UsersApi
|
|
@@ -25019,10 +25286,16 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
25019
25286
|
* @param {module:purecloud-platform-client-v2/ApiClient} apiClient Optional API client implementation to use,
|
|
25020
25287
|
* default to {@link module:purecloud-platform-client-v2/ApiClient#instance} if unspecified.
|
|
25021
25288
|
*/function UsersApi(apiClient){_classCallCheck(this,UsersApi);this.apiClient=apiClient||ApiClient.instance;}/**
|
|
25289
|
+
* Delete/cancel an async request for user aggregates
|
|
25290
|
+
*
|
|
25291
|
+
* @param {String} jobId jobId
|
|
25292
|
+
* deleteAnalyticsUsersAggregatesJob is a preview method and is subject to both breaking and non-breaking changes at any time without notice
|
|
25293
|
+
*/return _createClass(UsersApi,[{key:"deleteAnalyticsUsersAggregatesJob",value:function deleteAnalyticsUsersAggregatesJob(jobId){// verify the required parameter 'jobId' is set
|
|
25294
|
+
if(jobId===undefined||jobId===null||jobId===''){throw'Missing the required parameter "jobId" when calling deleteAnalyticsUsersAggregatesJob';}return this.apiClient.callApi('/api/v2/analytics/users/aggregates/jobs/{jobId}','DELETE',{'jobId':jobId},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
25022
25295
|
* Delete/cancel an async request
|
|
25023
25296
|
*
|
|
25024
25297
|
* @param {String} jobId jobId
|
|
25025
|
-
*/
|
|
25298
|
+
*/},{key:"deleteAnalyticsUsersDetailsJob",value:function deleteAnalyticsUsersDetailsJob(jobId){// verify the required parameter 'jobId' is set
|
|
25026
25299
|
if(jobId===undefined||jobId===null||jobId===''){throw'Missing the required parameter "jobId" when calling deleteAnalyticsUsersDetailsJob';}return this.apiClient.callApi('/api/v2/analytics/users/details/jobs/{jobId}','DELETE',{'jobId':jobId},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
25027
25300
|
* Delete a grant of a role in a division
|
|
25028
25301
|
*
|
|
@@ -25749,7 +26022,7 @@ if(verifierId===undefined||verifierId===null||verifierId===''){throw'Missing the
|
|
|
25749
26022
|
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(){/**
|
|
25750
26023
|
* Utilities service.
|
|
25751
26024
|
* @module purecloud-platform-client-v2/api/UtilitiesApi
|
|
25752
|
-
* @version
|
|
26025
|
+
* @version 228.0.0
|
|
25753
26026
|
*//**
|
|
25754
26027
|
* Constructs a new UtilitiesApi.
|
|
25755
26028
|
* @alias module:purecloud-platform-client-v2/api/UtilitiesApi
|
|
@@ -25776,7 +26049,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
25776
26049
|
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(){/**
|
|
25777
26050
|
* Voicemail service.
|
|
25778
26051
|
* @module purecloud-platform-client-v2/api/VoicemailApi
|
|
25779
|
-
* @version
|
|
26052
|
+
* @version 228.0.0
|
|
25780
26053
|
*//**
|
|
25781
26054
|
* Constructs a new VoicemailApi.
|
|
25782
26055
|
* @alias module:purecloud-platform-client-v2/api/VoicemailApi
|
|
@@ -25938,7 +26211,7 @@ if(userId===undefined||userId===null||userId===''){throw'Missing the required pa
|
|
|
25938
26211
|
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(){/**
|
|
25939
26212
|
* WebChat service.
|
|
25940
26213
|
* @module purecloud-platform-client-v2/api/WebChatApi
|
|
25941
|
-
* @version
|
|
26214
|
+
* @version 228.0.0
|
|
25942
26215
|
*//**
|
|
25943
26216
|
* Constructs a new WebChatApi.
|
|
25944
26217
|
* @alias module:purecloud-platform-client-v2/api/WebChatApi
|
|
@@ -25953,7 +26226,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
25953
26226
|
*/return _createClass(WebChatApi,[{key:"deleteWebchatDeployment",value:function deleteWebchatDeployment(deploymentId){// verify the required parameter 'deploymentId' is set
|
|
25954
26227
|
if(deploymentId===undefined||deploymentId===null||deploymentId===''){throw'Missing the required parameter "deploymentId" when calling deleteWebchatDeployment';}return this.apiClient.callApi('/api/v2/webchat/deployments/{deploymentId}','DELETE',{'deploymentId':deploymentId},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
25955
26228
|
* Remove a member from a chat conversation
|
|
25956
|
-
* This endpoint is deprecated. Please see the article https://help.
|
|
26229
|
+
* This endpoint is deprecated. Please see the article https://help.genesys.cloud/articles/deprecation-removal-of-acd-web-chat-version-2/
|
|
25957
26230
|
* @param {String} conversationId conversationId
|
|
25958
26231
|
* @param {String} memberId memberId
|
|
25959
26232
|
* @deprecated
|
|
@@ -25974,7 +26247,7 @@ if(deploymentId===undefined||deploymentId===null||deploymentId===''){throw'Missi
|
|
|
25974
26247
|
* @deprecated
|
|
25975
26248
|
*/},{key:"getWebchatDeployments",value:function getWebchatDeployments(){return this.apiClient.callApi('/api/v2/webchat/deployments','GET',{},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
25976
26249
|
* Get a media request in the conversation
|
|
25977
|
-
* This endpoint is deprecated. Please see the article https://help.
|
|
26250
|
+
* This endpoint is deprecated. Please see the article https://help.genesys.cloud/articles/deprecation-legacy-co-browse-and-screenshare/
|
|
25978
26251
|
* @param {String} conversationId conversationId
|
|
25979
26252
|
* @param {String} mediaRequestId mediaRequestId
|
|
25980
26253
|
* @deprecated
|
|
@@ -25982,13 +26255,13 @@ if(deploymentId===undefined||deploymentId===null||deploymentId===''){throw'Missi
|
|
|
25982
26255
|
if(conversationId===undefined||conversationId===null||conversationId===''){throw'Missing the required parameter "conversationId" when calling getWebchatGuestConversationMediarequest';}// verify the required parameter 'mediaRequestId' is set
|
|
25983
26256
|
if(mediaRequestId===undefined||mediaRequestId===null||mediaRequestId===''){throw'Missing the required parameter "mediaRequestId" when calling getWebchatGuestConversationMediarequest';}return this.apiClient.callApi('/api/v2/webchat/guest/conversations/{conversationId}/mediarequests/{mediaRequestId}','GET',{'conversationId':conversationId,'mediaRequestId':mediaRequestId},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
25984
26257
|
* Get all media requests to the guest in the conversation
|
|
25985
|
-
* This endpoint is deprecated. Please see the article https://help.
|
|
26258
|
+
* This endpoint is deprecated. Please see the article https://help.genesys.cloud/articles/deprecation-removal-of-acd-web-chat-version-2/
|
|
25986
26259
|
* @param {String} conversationId conversationId
|
|
25987
26260
|
* @deprecated
|
|
25988
26261
|
*/},{key:"getWebchatGuestConversationMediarequests",value:function getWebchatGuestConversationMediarequests(conversationId){// verify the required parameter 'conversationId' is set
|
|
25989
26262
|
if(conversationId===undefined||conversationId===null||conversationId===''){throw'Missing the required parameter "conversationId" when calling getWebchatGuestConversationMediarequests';}return this.apiClient.callApi('/api/v2/webchat/guest/conversations/{conversationId}/mediarequests','GET',{'conversationId':conversationId},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
25990
26263
|
* Get a web chat conversation member
|
|
25991
|
-
* This endpoint is deprecated. Please see the article https://help.
|
|
26264
|
+
* This endpoint is deprecated. Please see the article https://help.genesys.cloud/articles/deprecation-removal-of-acd-web-chat-version-2/
|
|
25992
26265
|
* @param {String} conversationId conversationId
|
|
25993
26266
|
* @param {String} memberId memberId
|
|
25994
26267
|
* @deprecated
|
|
@@ -25996,7 +26269,7 @@ if(conversationId===undefined||conversationId===null||conversationId===''){throw
|
|
|
25996
26269
|
if(conversationId===undefined||conversationId===null||conversationId===''){throw'Missing the required parameter "conversationId" when calling getWebchatGuestConversationMember';}// verify the required parameter 'memberId' is set
|
|
25997
26270
|
if(memberId===undefined||memberId===null||memberId===''){throw'Missing the required parameter "memberId" when calling getWebchatGuestConversationMember';}return this.apiClient.callApi('/api/v2/webchat/guest/conversations/{conversationId}/members/{memberId}','GET',{'conversationId':conversationId,'memberId':memberId},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
25998
26271
|
* Get the members of a chat conversation.
|
|
25999
|
-
* This endpoint is deprecated. Please see the article https://help.
|
|
26272
|
+
* This endpoint is deprecated. Please see the article https://help.genesys.cloud/articles/deprecation-removal-of-acd-web-chat-version-2/
|
|
26000
26273
|
* @param {String} conversationId conversationId
|
|
26001
26274
|
* @param {Object} opts Optional parameters
|
|
26002
26275
|
* @param {Number} opts.pageSize The number of entries to return per page, or omitted for the default. (default to 25)
|
|
@@ -26006,7 +26279,7 @@ if(memberId===undefined||memberId===null||memberId===''){throw'Missing the requi
|
|
|
26006
26279
|
*/},{key:"getWebchatGuestConversationMembers",value:function getWebchatGuestConversationMembers(conversationId,opts){opts=opts||{};// verify the required parameter 'conversationId' is set
|
|
26007
26280
|
if(conversationId===undefined||conversationId===null||conversationId===''){throw'Missing the required parameter "conversationId" when calling getWebchatGuestConversationMembers';}return this.apiClient.callApi('/api/v2/webchat/guest/conversations/{conversationId}/members','GET',{'conversationId':conversationId},{'pageSize':opts['pageSize'],'pageNumber':opts['pageNumber'],'excludeDisconnectedMembers':opts['excludeDisconnectedMembers']},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
26008
26281
|
* Get a web chat conversation message
|
|
26009
|
-
* This endpoint is deprecated. Please see the article https://help.
|
|
26282
|
+
* This endpoint is deprecated. Please see the article https://help.genesys.cloud/articles/deprecation-removal-of-acd-web-chat-version-2/
|
|
26010
26283
|
* @param {String} conversationId conversationId
|
|
26011
26284
|
* @param {String} messageId messageId
|
|
26012
26285
|
* @deprecated
|
|
@@ -26014,7 +26287,7 @@ if(conversationId===undefined||conversationId===null||conversationId===''){throw
|
|
|
26014
26287
|
if(conversationId===undefined||conversationId===null||conversationId===''){throw'Missing the required parameter "conversationId" when calling getWebchatGuestConversationMessage';}// verify the required parameter 'messageId' is set
|
|
26015
26288
|
if(messageId===undefined||messageId===null||messageId===''){throw'Missing the required parameter "messageId" when calling getWebchatGuestConversationMessage';}return this.apiClient.callApi('/api/v2/webchat/guest/conversations/{conversationId}/messages/{messageId}','GET',{'conversationId':conversationId,'messageId':messageId},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
26016
26289
|
* Get the messages of a chat conversation.
|
|
26017
|
-
* This endpoint is deprecated. Please see the article https://help.
|
|
26290
|
+
* This endpoint is deprecated. Please see the article https://help.genesys.cloud/articles/deprecation-removal-of-acd-web-chat-version-2/
|
|
26018
26291
|
* @param {String} conversationId conversationId
|
|
26019
26292
|
* @param {Object} opts Optional parameters
|
|
26020
26293
|
* @param {String} opts.after If available, get the messages chronologically after the id of this message
|
|
@@ -26028,7 +26301,7 @@ if(conversationId===undefined||conversationId===null||conversationId===''){throw
|
|
|
26028
26301
|
*
|
|
26029
26302
|
*/},{key:"getWebchatSettings",value:function getWebchatSettings(){return this.apiClient.callApi('/api/v2/webchat/settings','GET',{},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
26030
26303
|
* Update a media request in the conversation, setting the state to ACCEPTED/DECLINED/ERRORED
|
|
26031
|
-
* This endpoint is deprecated. Please see the article https://help.
|
|
26304
|
+
* This endpoint is deprecated. Please see the article https://help.genesys.cloud/articles/deprecation-legacy-co-browse-and-screenshare/
|
|
26032
26305
|
* @param {String} conversationId conversationId
|
|
26033
26306
|
* @param {String} mediaRequestId mediaRequestId
|
|
26034
26307
|
* @param {Object} body Request
|
|
@@ -26044,7 +26317,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
26044
26317
|
*/},{key:"postWebchatDeployments",value:function postWebchatDeployments(body){// verify the required parameter 'body' is set
|
|
26045
26318
|
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling postWebchatDeployments';}return this.apiClient.callApi('/api/v2/webchat/deployments','POST',{},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
26046
26319
|
* Send a message in a chat conversation.
|
|
26047
|
-
* This endpoint is deprecated. Please see the article https://help.
|
|
26320
|
+
* This endpoint is deprecated. Please see the article https://help.genesys.cloud/articles/deprecation-removal-of-acd-web-chat-version-2/
|
|
26048
26321
|
* @param {String} conversationId conversationId
|
|
26049
26322
|
* @param {String} memberId memberId
|
|
26050
26323
|
* @param {Object} body Message
|
|
@@ -26054,7 +26327,7 @@ if(conversationId===undefined||conversationId===null||conversationId===''){throw
|
|
|
26054
26327
|
if(memberId===undefined||memberId===null||memberId===''){throw'Missing the required parameter "memberId" when calling postWebchatGuestConversationMemberMessages';}// verify the required parameter 'body' is set
|
|
26055
26328
|
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling postWebchatGuestConversationMemberMessages';}return this.apiClient.callApi('/api/v2/webchat/guest/conversations/{conversationId}/members/{memberId}/messages','POST',{'conversationId':conversationId,'memberId':memberId},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
26056
26329
|
* Send a typing-indicator in a chat conversation.
|
|
26057
|
-
* This endpoint is deprecated. Please see the article https://help.
|
|
26330
|
+
* This endpoint is deprecated. Please see the article https://help.genesys.cloud/articles/deprecation-removal-of-acd-web-chat-version-2/
|
|
26058
26331
|
* @param {String} conversationId conversationId
|
|
26059
26332
|
* @param {String} memberId memberId
|
|
26060
26333
|
* @deprecated
|
|
@@ -26062,7 +26335,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
26062
26335
|
if(conversationId===undefined||conversationId===null||conversationId===''){throw'Missing the required parameter "conversationId" when calling postWebchatGuestConversationMemberTyping';}// verify the required parameter 'memberId' is set
|
|
26063
26336
|
if(memberId===undefined||memberId===null||memberId===''){throw'Missing the required parameter "memberId" when calling postWebchatGuestConversationMemberTyping';}return this.apiClient.callApi('/api/v2/webchat/guest/conversations/{conversationId}/members/{memberId}/typing','POST',{'conversationId':conversationId,'memberId':memberId},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
26064
26337
|
* Create an ACD chat conversation from an external customer.
|
|
26065
|
-
* This endpoint is deprecated. Please see the article https://help.
|
|
26338
|
+
* This endpoint is deprecated. Please see the article https://help.genesys.cloud/articles/deprecation-removal-of-acd-web-chat-version-2/. This endpoint will create a new ACD Chat conversation under the specified Chat Deployment. The conversation will begin with a guest member in it (with a role=CUSTOMER) according to the customer information that is supplied. If the guest member is authenticated, the memberAuthToken field should include his JWT as generated by the POST /api/v2/signeddata resource; if the guest member is anonymous (and the Deployment permits it) this field can be omitted. The returned data includes the IDs of the conversation created, along with a newly-create JWT token that you can supply to all future endpoints as authentication to perform operations against that conversation. After successfully creating a conversation, you should connect a websocket to the event stream named in the eventStreamUri field of the response; the conversation is not routed until the event stream is attached.
|
|
26066
26339
|
* @param {Object} body CreateConversationRequest
|
|
26067
26340
|
* @deprecated
|
|
26068
26341
|
*/},{key:"postWebchatGuestConversations",value:function postWebchatGuestConversations(body){// verify the required parameter 'body' is set
|
|
@@ -26082,7 +26355,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
26082
26355
|
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(){/**
|
|
26083
26356
|
* WebDeployments service.
|
|
26084
26357
|
* @module purecloud-platform-client-v2/api/WebDeploymentsApi
|
|
26085
|
-
* @version
|
|
26358
|
+
* @version 228.0.0
|
|
26086
26359
|
*//**
|
|
26087
26360
|
* Constructs a new WebDeploymentsApi.
|
|
26088
26361
|
* @alias module:purecloud-platform-client-v2/api/WebDeploymentsApi
|
|
@@ -26215,7 +26488,7 @@ if(deploymentId===undefined||deploymentId===null||deploymentId===''){throw'Missi
|
|
|
26215
26488
|
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(){/**
|
|
26216
26489
|
* WebMessaging service.
|
|
26217
26490
|
* @module purecloud-platform-client-v2/api/WebMessagingApi
|
|
26218
|
-
* @version
|
|
26491
|
+
* @version 228.0.0
|
|
26219
26492
|
*//**
|
|
26220
26493
|
* Constructs a new WebMessagingApi.
|
|
26221
26494
|
* @alias module:purecloud-platform-client-v2/api/WebMessagingApi
|
|
@@ -26231,7 +26504,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
26231
26504
|
*/return _createClass(WebMessagingApi,[{key:"getWebmessagingMessages",value:function getWebmessagingMessages(opts){opts=opts||{};return this.apiClient.callApi('/api/v2/webmessaging/messages','GET',{},{'pageSize':opts['pageSize'],'pageNumber':opts['pageNumber']},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}}]);}();var WidgetsApi=/*#__PURE__*/function(){/**
|
|
26232
26505
|
* Widgets service.
|
|
26233
26506
|
* @module purecloud-platform-client-v2/api/WidgetsApi
|
|
26234
|
-
* @version
|
|
26507
|
+
* @version 228.0.0
|
|
26235
26508
|
*//**
|
|
26236
26509
|
* Constructs a new WidgetsApi.
|
|
26237
26510
|
* @alias module:purecloud-platform-client-v2/api/WidgetsApi
|
|
@@ -26240,29 +26513,29 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
26240
26513
|
* default to {@link module:purecloud-platform-client-v2/ApiClient#instance} if unspecified.
|
|
26241
26514
|
*/function WidgetsApi(apiClient){_classCallCheck(this,WidgetsApi);this.apiClient=apiClient||ApiClient.instance;}/**
|
|
26242
26515
|
* Delete a Widget deployment
|
|
26243
|
-
* This endpoint is deprecated. Please see the article https://help.
|
|
26516
|
+
* This endpoint is deprecated. Please see the article https://help.genesys.cloud/articles/deprecation-removal-of-acd-web-chat-version-2/.
|
|
26244
26517
|
* @param {String} deploymentId Widget Config Id
|
|
26245
26518
|
* @deprecated
|
|
26246
26519
|
*/return _createClass(WidgetsApi,[{key:"deleteWidgetsDeployment",value:function deleteWidgetsDeployment(deploymentId){// verify the required parameter 'deploymentId' is set
|
|
26247
26520
|
if(deploymentId===undefined||deploymentId===null||deploymentId===''){throw'Missing the required parameter "deploymentId" when calling deleteWidgetsDeployment';}return this.apiClient.callApi('/api/v2/widgets/deployments/{deploymentId}','DELETE',{'deploymentId':deploymentId},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
26248
26521
|
* Get a Widget deployment
|
|
26249
|
-
* This endpoint is deprecated. Please see the article https://help.
|
|
26522
|
+
* This endpoint is deprecated. Please see the article https://help.genesys.cloud/articles/deprecation-removal-of-acd-web-chat-version-2/.
|
|
26250
26523
|
* @param {String} deploymentId Widget Config Id
|
|
26251
26524
|
* @deprecated
|
|
26252
26525
|
*/},{key:"getWidgetsDeployment",value:function getWidgetsDeployment(deploymentId){// verify the required parameter 'deploymentId' is set
|
|
26253
26526
|
if(deploymentId===undefined||deploymentId===null||deploymentId===''){throw'Missing the required parameter "deploymentId" when calling getWidgetsDeployment';}return this.apiClient.callApi('/api/v2/widgets/deployments/{deploymentId}','GET',{'deploymentId':deploymentId},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
26254
26527
|
* List Widget deployments
|
|
26255
|
-
* This endpoint is deprecated. Please see the article https://help.
|
|
26528
|
+
* This endpoint is deprecated. Please see the article https://help.genesys.cloud/articles/deprecation-removal-of-acd-web-chat-version-2/.
|
|
26256
26529
|
* @deprecated
|
|
26257
26530
|
*/},{key:"getWidgetsDeployments",value:function getWidgetsDeployments(){return this.apiClient.callApi('/api/v2/widgets/deployments','GET',{},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
26258
26531
|
* Create Widget deployment
|
|
26259
|
-
* This endpoint is deprecated. Please see the article https://help.
|
|
26532
|
+
* This endpoint is deprecated. Please see the article https://help.genesys.cloud/articles/deprecation-removal-of-acd-web-chat-version-2/.
|
|
26260
26533
|
* @param {Object} body Deployment
|
|
26261
26534
|
* @deprecated
|
|
26262
26535
|
*/},{key:"postWidgetsDeployments",value:function postWidgetsDeployments(body){// verify the required parameter 'body' is set
|
|
26263
26536
|
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling postWidgetsDeployments';}return this.apiClient.callApi('/api/v2/widgets/deployments','POST',{},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
26264
26537
|
* Update a Widget deployment
|
|
26265
|
-
* This endpoint is deprecated. Please see the article https://help.
|
|
26538
|
+
* This endpoint is deprecated. Please see the article https://help.genesys.cloud/articles/deprecation-removal-of-acd-web-chat-version-2/.
|
|
26266
26539
|
* @param {String} deploymentId Widget Config Id
|
|
26267
26540
|
* @param {Object} body Deployment
|
|
26268
26541
|
* @deprecated
|
|
@@ -26271,7 +26544,7 @@ if(deploymentId===undefined||deploymentId===null||deploymentId===''){throw'Missi
|
|
|
26271
26544
|
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(){/**
|
|
26272
26545
|
* WorkforceManagement service.
|
|
26273
26546
|
* @module purecloud-platform-client-v2/api/WorkforceManagementApi
|
|
26274
|
-
* @version
|
|
26547
|
+
* @version 228.0.0
|
|
26275
26548
|
*//**
|
|
26276
26549
|
* Constructs a new WorkforceManagementApi.
|
|
26277
26550
|
* @alias module:purecloud-platform-client-v2/api/WorkforceManagementApi
|
|
@@ -26291,6 +26564,15 @@ if(businessUnitId===undefined||businessUnitId===null||businessUnitId===''){throw
|
|
|
26291
26564
|
*/},{key:"deleteWorkforcemanagementBusinessunitActivitycode",value:function deleteWorkforcemanagementBusinessunitActivitycode(businessUnitId,activityCodeId){// verify the required parameter 'businessUnitId' is set
|
|
26292
26565
|
if(businessUnitId===undefined||businessUnitId===null||businessUnitId===''){throw'Missing the required parameter "businessUnitId" when calling deleteWorkforcemanagementBusinessunitActivitycode';}// verify the required parameter 'activityCodeId' is set
|
|
26293
26566
|
if(activityCodeId===undefined||activityCodeId===null||activityCodeId===''){throw'Missing the required parameter "activityCodeId" when calling deleteWorkforcemanagementBusinessunitActivitycode';}return this.apiClient.callApi('/api/v2/workforcemanagement/businessunits/{businessUnitId}/activitycodes/{activityCodeId}','DELETE',{'businessUnitId':businessUnitId,'activityCodeId':activityCodeId},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
26567
|
+
* Delete staffing group allocations history created for a capacity plan before the given date
|
|
26568
|
+
*
|
|
26569
|
+
* @param {String} businessUnitId The ID of the business unit
|
|
26570
|
+
* @param {String} capacityPlanId The ID of the capacity plan
|
|
26571
|
+
* @param {Object} opts Optional parameters
|
|
26572
|
+
* @param {String} opts.beforeDateId The date to delete records that are created on or before this date in yyyy-MM-dd format. Dates are represented as an ISO-8601 string. For example: yyyy-MM-dd
|
|
26573
|
+
*/},{key:"deleteWorkforcemanagementBusinessunitCapacityplanStaffinggroupallocationshistory",value:function deleteWorkforcemanagementBusinessunitCapacityplanStaffinggroupallocationshistory(businessUnitId,capacityPlanId,opts){opts=opts||{};// verify the required parameter 'businessUnitId' is set
|
|
26574
|
+
if(businessUnitId===undefined||businessUnitId===null||businessUnitId===''){throw'Missing the required parameter "businessUnitId" when calling deleteWorkforcemanagementBusinessunitCapacityplanStaffinggroupallocationshistory';}// verify the required parameter 'capacityPlanId' is set
|
|
26575
|
+
if(capacityPlanId===undefined||capacityPlanId===null||capacityPlanId===''){throw'Missing the required parameter "capacityPlanId" when calling deleteWorkforcemanagementBusinessunitCapacityplanStaffinggroupallocationshistory';}return this.apiClient.callApi('/api/v2/workforcemanagement/businessunits/{businessUnitId}/capacityplans/{capacityPlanId}/staffinggroupallocationshistory','DELETE',{'businessUnitId':businessUnitId,'capacityPlanId':capacityPlanId},{'beforeDateId':opts['beforeDateId']},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
26294
26576
|
* Deletes the planning group
|
|
26295
26577
|
*
|
|
26296
26578
|
* @param {String} businessUnitId The ID of the business unit.
|
|
@@ -26481,8 +26763,9 @@ if(jobId===undefined||jobId===null||jobId===''){throw'Missing the required param
|
|
|
26481
26763
|
* @param {String} businessUnitId The ID of the business unit, or 'mine' for the business unit of the logged-in user.
|
|
26482
26764
|
* @param {Object} opts Optional parameters
|
|
26483
26765
|
* @param {Array.<String>} opts.expand Include to access additional data on the business unit
|
|
26766
|
+
* @param {Boolean} opts.includeSchedulingDefaultMessageSeverities Whether to include scheduling default message severities
|
|
26484
26767
|
*/},{key:"getWorkforcemanagementBusinessunit",value:function getWorkforcemanagementBusinessunit(businessUnitId,opts){opts=opts||{};// verify the required parameter 'businessUnitId' is set
|
|
26485
|
-
if(businessUnitId===undefined||businessUnitId===null||businessUnitId===''){throw'Missing the required parameter "businessUnitId" when calling getWorkforcemanagementBusinessunit';}return this.apiClient.callApi('/api/v2/workforcemanagement/businessunits/{businessUnitId}','GET',{'businessUnitId':businessUnitId},{'expand':this.apiClient.buildCollectionParam(opts['expand'],'multi')},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
26768
|
+
if(businessUnitId===undefined||businessUnitId===null||businessUnitId===''){throw'Missing the required parameter "businessUnitId" when calling getWorkforcemanagementBusinessunit';}return this.apiClient.callApi('/api/v2/workforcemanagement/businessunits/{businessUnitId}','GET',{'businessUnitId':businessUnitId},{'expand':this.apiClient.buildCollectionParam(opts['expand'],'multi'),'includeSchedulingDefaultMessageSeverities':opts['includeSchedulingDefaultMessageSeverities']},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
26486
26769
|
* Get an activity code
|
|
26487
26770
|
*
|
|
26488
26771
|
* @param {String} businessUnitId The ID of the business unit, or 'mine' for the business unit of the logged-in user.
|
|
@@ -26544,6 +26827,41 @@ if(tradeId===undefined||tradeId===null||tradeId===''){throw'Missing the required
|
|
|
26544
26827
|
*/},{key:"getWorkforcemanagementBusinessunitAlternativeshiftsTradesSearchJob",value:function getWorkforcemanagementBusinessunitAlternativeshiftsTradesSearchJob(businessUnitId,jobId){// verify the required parameter 'businessUnitId' is set
|
|
26545
26828
|
if(businessUnitId===undefined||businessUnitId===null||businessUnitId===''){throw'Missing the required parameter "businessUnitId" when calling getWorkforcemanagementBusinessunitAlternativeshiftsTradesSearchJob';}// verify the required parameter 'jobId' is set
|
|
26546
26829
|
if(jobId===undefined||jobId===null||jobId===''){throw'Missing the required parameter "jobId" when calling getWorkforcemanagementBusinessunitAlternativeshiftsTradesSearchJob';}return this.apiClient.callApi('/api/v2/workforcemanagement/businessunits/{businessUnitId}/alternativeshifts/trades/search/jobs/{jobId}','GET',{'businessUnitId':businessUnitId,'jobId':jobId},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
26830
|
+
* Get a capacity plan
|
|
26831
|
+
*
|
|
26832
|
+
* @param {String} businessUnitId The ID of the business unit
|
|
26833
|
+
* @param {String} capacityPlanId The ID of the capacity plan
|
|
26834
|
+
*/},{key:"getWorkforcemanagementBusinessunitCapacityplan",value:function getWorkforcemanagementBusinessunitCapacityplan(businessUnitId,capacityPlanId){// verify the required parameter 'businessUnitId' is set
|
|
26835
|
+
if(businessUnitId===undefined||businessUnitId===null||businessUnitId===''){throw'Missing the required parameter "businessUnitId" when calling getWorkforcemanagementBusinessunitCapacityplan';}// verify the required parameter 'capacityPlanId' is set
|
|
26836
|
+
if(capacityPlanId===undefined||capacityPlanId===null||capacityPlanId===''){throw'Missing the required parameter "capacityPlanId" when calling getWorkforcemanagementBusinessunitCapacityplan';}return this.apiClient.callApi('/api/v2/workforcemanagement/businessunits/{businessUnitId}/capacityplans/{capacityPlanId}','GET',{'businessUnitId':businessUnitId,'capacityPlanId':capacityPlanId},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
26837
|
+
* Get a capacity plan's staffing group allocations
|
|
26838
|
+
*
|
|
26839
|
+
* @param {String} businessUnitId The ID of the business unit
|
|
26840
|
+
* @param {String} capacityPlanId The ID of the capacity plan
|
|
26841
|
+
*/},{key:"getWorkforcemanagementBusinessunitCapacityplanStaffinggroupallocations",value:function getWorkforcemanagementBusinessunitCapacityplanStaffinggroupallocations(businessUnitId,capacityPlanId){// verify the required parameter 'businessUnitId' is set
|
|
26842
|
+
if(businessUnitId===undefined||businessUnitId===null||businessUnitId===''){throw'Missing the required parameter "businessUnitId" when calling getWorkforcemanagementBusinessunitCapacityplanStaffinggroupallocations';}// verify the required parameter 'capacityPlanId' is set
|
|
26843
|
+
if(capacityPlanId===undefined||capacityPlanId===null||capacityPlanId===''){throw'Missing the required parameter "capacityPlanId" when calling getWorkforcemanagementBusinessunitCapacityplanStaffinggroupallocations';}return this.apiClient.callApi('/api/v2/workforcemanagement/businessunits/{businessUnitId}/capacityplans/{capacityPlanId}/staffinggroupallocations','GET',{'businessUnitId':businessUnitId,'capacityPlanId':capacityPlanId},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
26844
|
+
* Get a capacity plan's staffing requirements
|
|
26845
|
+
*
|
|
26846
|
+
* @param {String} businessUnitId The ID of the business unit
|
|
26847
|
+
* @param {String} capacityPlanId The ID of the capacity plan
|
|
26848
|
+
*/},{key:"getWorkforcemanagementBusinessunitCapacityplanStaffingrequirements",value:function getWorkforcemanagementBusinessunitCapacityplanStaffingrequirements(businessUnitId,capacityPlanId){// verify the required parameter 'businessUnitId' is set
|
|
26849
|
+
if(businessUnitId===undefined||businessUnitId===null||businessUnitId===''){throw'Missing the required parameter "businessUnitId" when calling getWorkforcemanagementBusinessunitCapacityplanStaffingrequirements';}// verify the required parameter 'capacityPlanId' is set
|
|
26850
|
+
if(capacityPlanId===undefined||capacityPlanId===null||capacityPlanId===''){throw'Missing the required parameter "capacityPlanId" when calling getWorkforcemanagementBusinessunitCapacityplanStaffingrequirements';}return this.apiClient.callApi('/api/v2/workforcemanagement/businessunits/{businessUnitId}/capacityplans/{capacityPlanId}/staffingrequirements','GET',{'businessUnitId':businessUnitId,'capacityPlanId':capacityPlanId},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
26851
|
+
* Get the latest long term staffing requirements for a business unit
|
|
26852
|
+
*
|
|
26853
|
+
* @param {String} businessUnitId
|
|
26854
|
+
* @param {String} weekDateId weekDateId of forecast, format yyyy-MM-dd. Dates are represented as an ISO-8601 string. For example: yyyy-MM-dd
|
|
26855
|
+
* @param {String} forecastId forecastId of forecast
|
|
26856
|
+
*/},{key:"getWorkforcemanagementBusinessunitCapacityplanningLongtermrequirementsAutomaticbestmethodWeekForecast",value:function getWorkforcemanagementBusinessunitCapacityplanningLongtermrequirementsAutomaticbestmethodWeekForecast(businessUnitId,weekDateId,forecastId){// verify the required parameter 'businessUnitId' is set
|
|
26857
|
+
if(businessUnitId===undefined||businessUnitId===null||businessUnitId===''){throw'Missing the required parameter "businessUnitId" when calling getWorkforcemanagementBusinessunitCapacityplanningLongtermrequirementsAutomaticbestmethodWeekForecast';}// verify the required parameter 'weekDateId' is set
|
|
26858
|
+
if(weekDateId===undefined||weekDateId===null){throw'Missing the required parameter "weekDateId" when calling getWorkforcemanagementBusinessunitCapacityplanningLongtermrequirementsAutomaticbestmethodWeekForecast';}// verify the required parameter 'forecastId' is set
|
|
26859
|
+
if(forecastId===undefined||forecastId===null||forecastId===''){throw'Missing the required parameter "forecastId" when calling getWorkforcemanagementBusinessunitCapacityplanningLongtermrequirementsAutomaticbestmethodWeekForecast';}return this.apiClient.callApi('/api/v2/workforcemanagement/businessunits/{businessUnitId}/capacityplanning/longtermrequirements/automaticbestmethod/weeks/{weekDateId}/forecasts/{forecastId}','GET',{'businessUnitId':businessUnitId,'weekDateId':weekDateId,'forecastId':forecastId},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
26860
|
+
* Get list of capacity plans for a business unit
|
|
26861
|
+
*
|
|
26862
|
+
* @param {String} businessUnitId The ID of the business unit
|
|
26863
|
+
*/},{key:"getWorkforcemanagementBusinessunitCapacityplans",value:function getWorkforcemanagementBusinessunitCapacityplans(businessUnitId){// verify the required parameter 'businessUnitId' is set
|
|
26864
|
+
if(businessUnitId===undefined||businessUnitId===null||businessUnitId===''){throw'Missing the required parameter "businessUnitId" when calling getWorkforcemanagementBusinessunitCapacityplans';}return this.apiClient.callApi('/api/v2/workforcemanagement/businessunits/{businessUnitId}/capacityplans','GET',{'businessUnitId':businessUnitId},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
26547
26865
|
* Get intraday planning groups for the given date
|
|
26548
26866
|
*
|
|
26549
26867
|
* @param {String} businessUnitId The ID of the business unit
|
|
@@ -27164,9 +27482,11 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
27164
27482
|
*
|
|
27165
27483
|
* @param {String} businessUnitId The ID of the business unit, or 'mine' for the business unit of the logged-in user.
|
|
27166
27484
|
* @param {Object} body body
|
|
27167
|
-
|
|
27485
|
+
* @param {Object} opts Optional parameters
|
|
27486
|
+
* @param {Boolean} opts.includeSchedulingDefaultMessageSeverities Whether to include scheduling default message severities
|
|
27487
|
+
*/},{key:"patchWorkforcemanagementBusinessunit",value:function patchWorkforcemanagementBusinessunit(businessUnitId,body,opts){opts=opts||{};// verify the required parameter 'businessUnitId' is set
|
|
27168
27488
|
if(businessUnitId===undefined||businessUnitId===null||businessUnitId===''){throw'Missing the required parameter "businessUnitId" when calling patchWorkforcemanagementBusinessunit';}// verify the required parameter 'body' is set
|
|
27169
|
-
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling patchWorkforcemanagementBusinessunit';}return this.apiClient.callApi('/api/v2/workforcemanagement/businessunits/{businessUnitId}','PATCH',{'businessUnitId':businessUnitId},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
27489
|
+
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling patchWorkforcemanagementBusinessunit';}return this.apiClient.callApi('/api/v2/workforcemanagement/businessunits/{businessUnitId}','PATCH',{'businessUnitId':businessUnitId},{'includeSchedulingDefaultMessageSeverities':opts['includeSchedulingDefaultMessageSeverities']},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
27170
27490
|
* Update an activity code
|
|
27171
27491
|
*
|
|
27172
27492
|
* @param {String} businessUnitId The ID of the business unit, or 'mine' for the business unit of the logged-in user.
|
|
@@ -27192,6 +27512,15 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
27192
27512
|
*/},{key:"patchWorkforcemanagementBusinessunitAlternativeshiftsSettings",value:function patchWorkforcemanagementBusinessunitAlternativeshiftsSettings(businessUnitId,body){// verify the required parameter 'businessUnitId' is set
|
|
27193
27513
|
if(businessUnitId===undefined||businessUnitId===null||businessUnitId===''){throw'Missing the required parameter "businessUnitId" when calling patchWorkforcemanagementBusinessunitAlternativeshiftsSettings';}// verify the required parameter 'body' is set
|
|
27194
27514
|
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling patchWorkforcemanagementBusinessunitAlternativeshiftsSettings';}return this.apiClient.callApi('/api/v2/workforcemanagement/businessunits/{businessUnitId}/alternativeshifts/settings','PATCH',{'businessUnitId':businessUnitId},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
27515
|
+
* Update a capacity plan configuration
|
|
27516
|
+
*
|
|
27517
|
+
* @param {String} businessUnitId The ID of the business unit
|
|
27518
|
+
* @param {String} capacityPlanId The ID of the capacity plan
|
|
27519
|
+
* @param {Object} body body
|
|
27520
|
+
*/},{key:"patchWorkforcemanagementBusinessunitCapacityplan",value:function patchWorkforcemanagementBusinessunitCapacityplan(businessUnitId,capacityPlanId,body){// verify the required parameter 'businessUnitId' is set
|
|
27521
|
+
if(businessUnitId===undefined||businessUnitId===null||businessUnitId===''){throw'Missing the required parameter "businessUnitId" when calling patchWorkforcemanagementBusinessunitCapacityplan';}// verify the required parameter 'capacityPlanId' is set
|
|
27522
|
+
if(capacityPlanId===undefined||capacityPlanId===null||capacityPlanId===''){throw'Missing the required parameter "capacityPlanId" when calling patchWorkforcemanagementBusinessunitCapacityplan';}// verify the required parameter 'body' is set
|
|
27523
|
+
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling patchWorkforcemanagementBusinessunitCapacityplan';}return this.apiClient.callApi('/api/v2/workforcemanagement/businessunits/{businessUnitId}/capacityplans/{capacityPlanId}','PATCH',{'businessUnitId':businessUnitId,'capacityPlanId':capacityPlanId},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
27195
27524
|
* Updates the planning group
|
|
27196
27525
|
*
|
|
27197
27526
|
* @param {String} businessUnitId The ID of the business unit.
|
|
@@ -27512,6 +27841,63 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
27512
27841
|
*/},{key:"postWorkforcemanagementBusinessunitAlternativeshiftsTradesSearch",value:function postWorkforcemanagementBusinessunitAlternativeshiftsTradesSearch(businessUnitId,body,opts){opts=opts||{};// verify the required parameter 'businessUnitId' is set
|
|
27513
27842
|
if(businessUnitId===undefined||businessUnitId===null||businessUnitId===''){throw'Missing the required parameter "businessUnitId" when calling postWorkforcemanagementBusinessunitAlternativeshiftsTradesSearch';}// verify the required parameter 'body' is set
|
|
27514
27843
|
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling postWorkforcemanagementBusinessunitAlternativeshiftsTradesSearch';}return this.apiClient.callApi('/api/v2/workforcemanagement/businessunits/{businessUnitId}/alternativeshifts/trades/search','POST',{'businessUnitId':businessUnitId},{'forceAsync':opts['forceAsync']},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
27844
|
+
* Copy a capacity plan
|
|
27845
|
+
*
|
|
27846
|
+
* @param {String} businessUnitId The ID of the business unit
|
|
27847
|
+
* @param {String} capacityPlanId The ID of the capacity plan
|
|
27848
|
+
* @param {Object} body body
|
|
27849
|
+
*/},{key:"postWorkforcemanagementBusinessunitCapacityplanCopy",value:function postWorkforcemanagementBusinessunitCapacityplanCopy(businessUnitId,capacityPlanId,body){// verify the required parameter 'businessUnitId' is set
|
|
27850
|
+
if(businessUnitId===undefined||businessUnitId===null||businessUnitId===''){throw'Missing the required parameter "businessUnitId" when calling postWorkforcemanagementBusinessunitCapacityplanCopy';}// verify the required parameter 'capacityPlanId' is set
|
|
27851
|
+
if(capacityPlanId===undefined||capacityPlanId===null||capacityPlanId===''){throw'Missing the required parameter "capacityPlanId" when calling postWorkforcemanagementBusinessunitCapacityplanCopy';}// verify the required parameter 'body' is set
|
|
27852
|
+
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling postWorkforcemanagementBusinessunitCapacityplanCopy';}return this.apiClient.callApi('/api/v2/workforcemanagement/businessunits/{businessUnitId}/capacityplans/{capacityPlanId}/copy','POST',{'businessUnitId':businessUnitId,'capacityPlanId':capacityPlanId},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
27853
|
+
* Regenerate requirements for capacity plan
|
|
27854
|
+
*
|
|
27855
|
+
* @param {String} businessUnitId The ID of the business unit
|
|
27856
|
+
* @param {String} capacityPlanId The ID of the capacity plan
|
|
27857
|
+
*/},{key:"postWorkforcemanagementBusinessunitCapacityplanRequirementGenerate",value:function postWorkforcemanagementBusinessunitCapacityplanRequirementGenerate(businessUnitId,capacityPlanId){// verify the required parameter 'businessUnitId' is set
|
|
27858
|
+
if(businessUnitId===undefined||businessUnitId===null||businessUnitId===''){throw'Missing the required parameter "businessUnitId" when calling postWorkforcemanagementBusinessunitCapacityplanRequirementGenerate';}// verify the required parameter 'capacityPlanId' is set
|
|
27859
|
+
if(capacityPlanId===undefined||capacityPlanId===null||capacityPlanId===''){throw'Missing the required parameter "capacityPlanId" when calling postWorkforcemanagementBusinessunitCapacityplanRequirementGenerate';}return this.apiClient.callApi('/api/v2/workforcemanagement/businessunits/{businessUnitId}/capacityplans/{capacityPlanId}/requirement/generate','POST',{'businessUnitId':businessUnitId,'capacityPlanId':capacityPlanId},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
27860
|
+
* Create staffing group allocations for a capacity plan
|
|
27861
|
+
*
|
|
27862
|
+
* @param {String} businessUnitId The ID of the business unit
|
|
27863
|
+
* @param {String} capacityPlanId The ID of the capacity plan
|
|
27864
|
+
* @param {Object} body
|
|
27865
|
+
*/},{key:"postWorkforcemanagementBusinessunitCapacityplanStaffinggroupallocations",value:function postWorkforcemanagementBusinessunitCapacityplanStaffinggroupallocations(businessUnitId,capacityPlanId,body){// verify the required parameter 'businessUnitId' is set
|
|
27866
|
+
if(businessUnitId===undefined||businessUnitId===null||businessUnitId===''){throw'Missing the required parameter "businessUnitId" when calling postWorkforcemanagementBusinessunitCapacityplanStaffinggroupallocations';}// verify the required parameter 'capacityPlanId' is set
|
|
27867
|
+
if(capacityPlanId===undefined||capacityPlanId===null||capacityPlanId===''){throw'Missing the required parameter "capacityPlanId" when calling postWorkforcemanagementBusinessunitCapacityplanStaffinggroupallocations';}// verify the required parameter 'body' is set
|
|
27868
|
+
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling postWorkforcemanagementBusinessunitCapacityplanStaffinggroupallocations';}return this.apiClient.callApi('/api/v2/workforcemanagement/businessunits/{businessUnitId}/capacityplans/{capacityPlanId}/staffinggroupallocations','POST',{'businessUnitId':businessUnitId,'capacityPlanId':capacityPlanId},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
27869
|
+
* Query staffing groups allocations history for a capacity plan
|
|
27870
|
+
*
|
|
27871
|
+
* @param {String} businessUnitId The ID of the business unit
|
|
27872
|
+
* @param {String} capacityPlanId The ID of the capacity plan
|
|
27873
|
+
* @param {Object} body
|
|
27874
|
+
*/},{key:"postWorkforcemanagementBusinessunitCapacityplanStaffinggroupallocationshistoryQuery",value:function postWorkforcemanagementBusinessunitCapacityplanStaffinggroupallocationshistoryQuery(businessUnitId,capacityPlanId,body){// verify the required parameter 'businessUnitId' is set
|
|
27875
|
+
if(businessUnitId===undefined||businessUnitId===null||businessUnitId===''){throw'Missing the required parameter "businessUnitId" when calling postWorkforcemanagementBusinessunitCapacityplanStaffinggroupallocationshistoryQuery';}// verify the required parameter 'capacityPlanId' is set
|
|
27876
|
+
if(capacityPlanId===undefined||capacityPlanId===null||capacityPlanId===''){throw'Missing the required parameter "capacityPlanId" when calling postWorkforcemanagementBusinessunitCapacityplanStaffinggroupallocationshistoryQuery';}// verify the required parameter 'body' is set
|
|
27877
|
+
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling postWorkforcemanagementBusinessunitCapacityplanStaffinggroupallocationshistoryQuery';}return this.apiClient.callApi('/api/v2/workforcemanagement/businessunits/{businessUnitId}/capacityplans/{capacityPlanId}/staffinggroupallocationshistory/query','POST',{'businessUnitId':businessUnitId,'capacityPlanId':capacityPlanId},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
27878
|
+
* Force regenerate the latest long term staffing requirements for a business unit
|
|
27879
|
+
*
|
|
27880
|
+
* @param {String} businessUnitId
|
|
27881
|
+
* @param {String} weekDateId weekDateId of forecast, format yyyy-MM-dd. Dates are represented as an ISO-8601 string. For example: yyyy-MM-dd
|
|
27882
|
+
* @param {String} forecastId forecastId of forecast
|
|
27883
|
+
*/},{key:"postWorkforcemanagementBusinessunitCapacityplanningLongtermrequirementsAutomaticbestmethodWeekForecastForceregenerate",value:function postWorkforcemanagementBusinessunitCapacityplanningLongtermrequirementsAutomaticbestmethodWeekForecastForceregenerate(businessUnitId,weekDateId,forecastId){// verify the required parameter 'businessUnitId' is set
|
|
27884
|
+
if(businessUnitId===undefined||businessUnitId===null||businessUnitId===''){throw'Missing the required parameter "businessUnitId" when calling postWorkforcemanagementBusinessunitCapacityplanningLongtermrequirementsAutomaticbestmethodWeekForecastForceregenerate';}// verify the required parameter 'weekDateId' is set
|
|
27885
|
+
if(weekDateId===undefined||weekDateId===null){throw'Missing the required parameter "weekDateId" when calling postWorkforcemanagementBusinessunitCapacityplanningLongtermrequirementsAutomaticbestmethodWeekForecastForceregenerate';}// verify the required parameter 'forecastId' is set
|
|
27886
|
+
if(forecastId===undefined||forecastId===null||forecastId===''){throw'Missing the required parameter "forecastId" when calling postWorkforcemanagementBusinessunitCapacityplanningLongtermrequirementsAutomaticbestmethodWeekForecastForceregenerate';}return this.apiClient.callApi('/api/v2/workforcemanagement/businessunits/{businessUnitId}/capacityplanning/longtermrequirements/automaticbestmethod/weeks/{weekDateId}/forecasts/{forecastId}/forceregenerate','POST',{'businessUnitId':businessUnitId,'weekDateId':weekDateId,'forecastId':forecastId},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
27887
|
+
* Create a new capacity plan
|
|
27888
|
+
*
|
|
27889
|
+
* @param {String} businessUnitId The ID of the business unit
|
|
27890
|
+
* @param {Object} body body
|
|
27891
|
+
*/},{key:"postWorkforcemanagementBusinessunitCapacityplans",value:function postWorkforcemanagementBusinessunitCapacityplans(businessUnitId,body){// verify the required parameter 'businessUnitId' is set
|
|
27892
|
+
if(businessUnitId===undefined||businessUnitId===null||businessUnitId===''){throw'Missing the required parameter "businessUnitId" when calling postWorkforcemanagementBusinessunitCapacityplans';}// verify the required parameter 'body' is set
|
|
27893
|
+
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling postWorkforcemanagementBusinessunitCapacityplans';}return this.apiClient.callApi('/api/v2/workforcemanagement/businessunits/{businessUnitId}/capacityplans','POST',{'businessUnitId':businessUnitId},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
27894
|
+
* Delete capacity plans in a business unit
|
|
27895
|
+
*
|
|
27896
|
+
* @param {String} businessUnitId The ID of the business unit
|
|
27897
|
+
* @param {Object} body body
|
|
27898
|
+
*/},{key:"postWorkforcemanagementBusinessunitCapacityplansBulkRemove",value:function postWorkforcemanagementBusinessunitCapacityplansBulkRemove(businessUnitId,body){// verify the required parameter 'businessUnitId' is set
|
|
27899
|
+
if(businessUnitId===undefined||businessUnitId===null||businessUnitId===''){throw'Missing the required parameter "businessUnitId" when calling postWorkforcemanagementBusinessunitCapacityplansBulkRemove';}// verify the required parameter 'body' is set
|
|
27900
|
+
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling postWorkforcemanagementBusinessunitCapacityplansBulkRemove';}return this.apiClient.callApi('/api/v2/workforcemanagement/businessunits/{businessUnitId}/capacityplans/bulk/remove','POST',{'businessUnitId':businessUnitId},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
27515
27901
|
* Get intraday data for the given date for the requested planningGroupIds
|
|
27516
27902
|
*
|
|
27517
27903
|
* @param {String} businessUnitId The ID of the business unit
|
|
@@ -27542,6 +27928,13 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
27542
27928
|
*/},{key:"postWorkforcemanagementBusinessunitStaffinggroups",value:function postWorkforcemanagementBusinessunitStaffinggroups(businessUnitId,body){// verify the required parameter 'businessUnitId' is set
|
|
27543
27929
|
if(businessUnitId===undefined||businessUnitId===null||businessUnitId===''){throw'Missing the required parameter "businessUnitId" when calling postWorkforcemanagementBusinessunitStaffinggroups';}// verify the required parameter 'body' is set
|
|
27544
27930
|
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling postWorkforcemanagementBusinessunitStaffinggroups';}return this.apiClient.callApi('/api/v2/workforcemanagement/businessunits/{businessUnitId}/staffinggroups','POST',{'businessUnitId':businessUnitId},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
27931
|
+
* Gets a list of planning group to staffing groups list association
|
|
27932
|
+
*
|
|
27933
|
+
* @param {String} businessUnitId The ID of the business unit
|
|
27934
|
+
* @param {Object} body body
|
|
27935
|
+
*/},{key:"postWorkforcemanagementBusinessunitStaffinggroupsPlanninggroupsQuery",value:function postWorkforcemanagementBusinessunitStaffinggroupsPlanninggroupsQuery(businessUnitId,body){// verify the required parameter 'businessUnitId' is set
|
|
27936
|
+
if(businessUnitId===undefined||businessUnitId===null||businessUnitId===''){throw'Missing the required parameter "businessUnitId" when calling postWorkforcemanagementBusinessunitStaffinggroupsPlanninggroupsQuery';}// verify the required parameter 'body' is set
|
|
27937
|
+
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling postWorkforcemanagementBusinessunitStaffinggroupsPlanninggroupsQuery';}return this.apiClient.callApi('/api/v2/workforcemanagement/businessunits/{businessUnitId}/staffinggroups/planninggroups/query','POST',{'businessUnitId':businessUnitId},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
27545
27938
|
* Gets staffing group associations for a list of user IDs
|
|
27546
27939
|
*
|
|
27547
27940
|
* @param {String} businessUnitId The ID of the business unit
|
|
@@ -27758,8 +28151,10 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
27758
28151
|
* Add a new business unit
|
|
27759
28152
|
* It may take a minute or two for a new business unit to be available for api operations
|
|
27760
28153
|
* @param {Object} body body
|
|
27761
|
-
|
|
27762
|
-
|
|
28154
|
+
* @param {Object} opts Optional parameters
|
|
28155
|
+
* @param {Boolean} opts.includeSchedulingDefaultMessageSeverities Whether to include scheduling default message severities
|
|
28156
|
+
*/},{key:"postWorkforcemanagementBusinessunits",value:function postWorkforcemanagementBusinessunits(body,opts){opts=opts||{};// verify the required parameter 'body' is set
|
|
28157
|
+
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling postWorkforcemanagementBusinessunits';}return this.apiClient.callApi('/api/v2/workforcemanagement/businessunits','POST',{},{'includeSchedulingDefaultMessageSeverities':opts['includeSchedulingDefaultMessageSeverities']},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
27763
28158
|
* Create a newly generated calendar link for the current user; if the current user has previously generated one, the generated link will be returned
|
|
27764
28159
|
*
|
|
27765
28160
|
* @param {Object} opts Optional parameters
|
|
@@ -28101,7 +28496,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
28101
28496
|
* </pre>
|
|
28102
28497
|
* </p>
|
|
28103
28498
|
* @module purecloud-platform-client-v2/index
|
|
28104
|
-
* @version
|
|
28499
|
+
* @version 228.0.0
|
|
28105
28500
|
*/var platformClient=/*#__PURE__*/_createClass(function platformClient(){_classCallCheck(this,platformClient);/**
|
|
28106
28501
|
* The ApiClient constructor.
|
|
28107
28502
|
* @property {module:purecloud-platform-client-v2/ApiClient}
|