purecloud-platform-client-v2 226.0.0 → 228.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +3 -3
- package/dist/node/purecloud-platform-client-v2.js +1911 -237
- package/dist/web-amd/purecloud-platform-client-v2.js +1911 -237
- package/dist/web-amd/purecloud-platform-client-v2.min.js +1 -1
- package/dist/web-cjs/bundle.js +596 -188
- package/dist/web-cjs/purecloud-platform-client-v2.js +596 -188
- package/dist/web-cjs/purecloud-platform-client-v2.min.js +1 -1
- package/index.d.ts +1833 -774
- 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 +52 -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 +519 -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
|
|
@@ -9850,6 +9940,9 @@ if(messageId===undefined||messageId===null||messageId===''){throw'Missing the re
|
|
|
9850
9940
|
*/},{key:"deleteChatsUserMessagesPin",value:function deleteChatsUserMessagesPin(userId,pinnedMessageId){// verify the required parameter 'userId' is set
|
|
9851
9941
|
if(userId===undefined||userId===null||userId===''){throw'Missing the required parameter "userId" when calling deleteChatsUserMessagesPin';}// verify the required parameter 'pinnedMessageId' is set
|
|
9852
9942
|
if(pinnedMessageId===undefined||pinnedMessageId===null||pinnedMessageId===''){throw'Missing the required parameter "pinnedMessageId" when calling deleteChatsUserMessagesPin';}return this.apiClient.callApi('/api/v2/chats/users/{userId}/messages/pins/{pinnedMessageId}','DELETE',{'userId':userId,'pinnedMessageId':pinnedMessageId},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
9943
|
+
* Delete a user's chat settings
|
|
9944
|
+
*
|
|
9945
|
+
*/},{key:"deleteChatsUsersMeSettings",value:function deleteChatsUsersMeSettings(){return this.apiClient.callApi('/api/v2/chats/users/me/settings','DELETE',{},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
9853
9946
|
* Get a message
|
|
9854
9947
|
*
|
|
9855
9948
|
* @param {String} messageId messageId
|
|
@@ -9874,8 +9967,9 @@ if(messageIds===undefined||messageIds===null||messageIds===''){throw'Missing the
|
|
|
9874
9967
|
* @param {String} opts.limit The maximum number of messages to retrieve
|
|
9875
9968
|
* @param {String} opts.before The cutoff date for messages to retrieve
|
|
9876
9969
|
* @param {String} opts.after The beginning date for messages to retrieve
|
|
9970
|
+
* @param {Boolean} opts.excludeMetadata Whether to exclude metadata for messages
|
|
9877
9971
|
*/},{key:"getChatsRoomMessages",value:function getChatsRoomMessages(roomJid,opts){opts=opts||{};// verify the required parameter 'roomJid' is set
|
|
9878
|
-
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']);}/**
|
|
9879
9973
|
* Get a room participant
|
|
9880
9974
|
*
|
|
9881
9975
|
* @param {String} roomJid roomJid
|
|
@@ -9900,8 +9994,9 @@ if(roomJid===undefined||roomJid===null||roomJid===''){throw'Missing the required
|
|
|
9900
9994
|
* @param {String} opts.limit The maximum number of messages to retrieve
|
|
9901
9995
|
* @param {String} opts.before The cutoff date for messages to retrieve
|
|
9902
9996
|
* @param {String} opts.after The beginning date for messages to retrieve
|
|
9997
|
+
* @param {Boolean} opts.excludeMetadata Whether to exclude metadata for messages
|
|
9903
9998
|
*/},{key:"getChatsThreadMessages",value:function getChatsThreadMessages(threadId,opts){opts=opts||{};// verify the required parameter 'threadId' is set
|
|
9904
|
-
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']);}/**
|
|
9905
10000
|
* Get information for a 1on1
|
|
9906
10001
|
*
|
|
9907
10002
|
* @param {String} userId userId
|
|
@@ -9921,8 +10016,9 @@ if(messageIds===undefined||messageIds===null||messageIds===''){throw'Missing the
|
|
|
9921
10016
|
* @param {String} opts.limit The maximum number of messages to retrieve
|
|
9922
10017
|
* @param {String} opts.before The cutoff date for messages to retrieve
|
|
9923
10018
|
* @param {String} opts.after The beginning date for messages to retrieve
|
|
10019
|
+
* @param {Boolean} opts.excludeMetadata Whether to exclude metadata for messages
|
|
9924
10020
|
*/},{key:"getChatsUserMessages",value:function getChatsUserMessages(userId,opts){opts=opts||{};// verify the required parameter 'userId' is set
|
|
9925
|
-
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']);}/**
|
|
9926
10022
|
* Get a user's chat settings
|
|
9927
10023
|
*
|
|
9928
10024
|
* @param {String} userId User ID
|
|
@@ -10013,6 +10109,11 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
10013
10109
|
*/},{key:"postChatsUserMessagesPins",value:function postChatsUserMessagesPins(userId,body){// verify the required parameter 'userId' is set
|
|
10014
10110
|
if(userId===undefined||userId===null||userId===''){throw'Missing the required parameter "userId" when calling postChatsUserMessagesPins';}// verify the required parameter 'body' is set
|
|
10015
10111
|
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling postChatsUserMessagesPins';}return this.apiClient.callApi('/api/v2/chats/users/{userId}/messages/pins','POST',{'userId':userId},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
10112
|
+
* Create a user's chat settings
|
|
10113
|
+
*
|
|
10114
|
+
* @param {Object} body
|
|
10115
|
+
*/},{key:"postChatsUsersMeSettings",value:function postChatsUsersMeSettings(body){// verify the required parameter 'body' is set
|
|
10116
|
+
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling postChatsUsersMeSettings';}return this.apiClient.callApi('/api/v2/chats/users/me/settings','POST',{},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
10016
10117
|
* Update reactions to a message
|
|
10017
10118
|
*
|
|
10018
10119
|
* @param {String} messageId messageId
|
|
@@ -10027,7 +10128,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
10027
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(){/**
|
|
10028
10129
|
* Coaching service.
|
|
10029
10130
|
* @module purecloud-platform-client-v2/api/CoachingApi
|
|
10030
|
-
* @version
|
|
10131
|
+
* @version 228.0.0
|
|
10031
10132
|
*//**
|
|
10032
10133
|
* Constructs a new CoachingApi.
|
|
10033
10134
|
* @alias module:purecloud-platform-client-v2/api/CoachingApi
|
|
@@ -10180,7 +10281,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
10180
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(){/**
|
|
10181
10282
|
* ContentManagement service.
|
|
10182
10283
|
* @module purecloud-platform-client-v2/api/ContentManagementApi
|
|
10183
|
-
* @version
|
|
10284
|
+
* @version 228.0.0
|
|
10184
10285
|
*//**
|
|
10185
10286
|
* Constructs a new ContentManagementApi.
|
|
10186
10287
|
* @alias module:purecloud-platform-client-v2/api/ContentManagementApi
|
|
@@ -10462,7 +10563,7 @@ if(tagId===undefined||tagId===null||tagId===''){throw'Missing the required param
|
|
|
10462
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(){/**
|
|
10463
10564
|
* Conversations service.
|
|
10464
10565
|
* @module purecloud-platform-client-v2/api/ConversationsApi
|
|
10465
|
-
* @version
|
|
10566
|
+
* @version 228.0.0
|
|
10466
10567
|
*//**
|
|
10467
10568
|
* Constructs a new ConversationsApi.
|
|
10468
10569
|
* @alias module:purecloud-platform-client-v2/api/ConversationsApi
|
|
@@ -10470,10 +10571,16 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
10470
10571
|
* @param {module:purecloud-platform-client-v2/ApiClient} apiClient Optional API client implementation to use,
|
|
10471
10572
|
* default to {@link module:purecloud-platform-client-v2/ApiClient#instance} if unspecified.
|
|
10472
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']);}/**
|
|
10473
10580
|
* Delete/cancel an async details job
|
|
10474
10581
|
*
|
|
10475
10582
|
* @param {String} jobId jobId
|
|
10476
|
-
*/
|
|
10583
|
+
*/},{key:"deleteAnalyticsConversationsDetailsJob",value:function deleteAnalyticsConversationsDetailsJob(jobId){// verify the required parameter 'jobId' is set
|
|
10477
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']);}/**
|
|
10478
10585
|
* Delete a code used to add a communication to this participant
|
|
10479
10586
|
*
|
|
@@ -10761,13 +10868,13 @@ if(participantId===undefined||participantId===null||participantId===''){throw'Mi
|
|
|
10761
10868
|
*
|
|
10762
10869
|
*/},{key:"getConversationsCallsMaximumconferenceparties",value:function getConversationsCallsMaximumconferenceparties(){return this.apiClient.callApi('/api/v2/conversations/calls/maximumconferenceparties','GET',{},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
10763
10870
|
* Get chat conversation
|
|
10764
|
-
* 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/.
|
|
10765
10872
|
* @param {String} conversationId conversationId
|
|
10766
10873
|
* @deprecated
|
|
10767
10874
|
*/},{key:"getConversationsChat",value:function getConversationsChat(conversationId){// verify the required parameter 'conversationId' is set
|
|
10768
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']);}/**
|
|
10769
10876
|
* Get a web chat conversation message
|
|
10770
|
-
* 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.
|
|
10771
10878
|
* @param {String} conversationId conversationId
|
|
10772
10879
|
* @param {String} messageId messageId
|
|
10773
10880
|
* @deprecated
|
|
@@ -10775,7 +10882,7 @@ if(conversationId===undefined||conversationId===null||conversationId===''){throw
|
|
|
10775
10882
|
if(conversationId===undefined||conversationId===null||conversationId===''){throw'Missing the required parameter "conversationId" when calling getConversationsChatMessage';}// verify the required parameter 'messageId' is set
|
|
10776
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']);}/**
|
|
10777
10884
|
* Get the messages of a chat conversation.
|
|
10778
|
-
* 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.
|
|
10779
10886
|
* @param {String} conversationId conversationId
|
|
10780
10887
|
* @param {Object} opts Optional parameters
|
|
10781
10888
|
* @param {String} opts.after If specified, get the messages chronologically after the id of this message
|
|
@@ -10786,7 +10893,7 @@ if(messageId===undefined||messageId===null||messageId===''){throw'Missing the re
|
|
|
10786
10893
|
*/},{key:"getConversationsChatMessages",value:function getConversationsChatMessages(conversationId,opts){opts=opts||{};// verify the required parameter 'conversationId' is set
|
|
10787
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']);}/**
|
|
10788
10895
|
* Get the wrap-up for this conversation communication.
|
|
10789
|
-
* 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/.
|
|
10790
10897
|
* @param {String} conversationId conversationId
|
|
10791
10898
|
* @param {String} participantId participantId
|
|
10792
10899
|
* @param {String} communicationId communicationId
|
|
@@ -10798,7 +10905,7 @@ if(conversationId===undefined||conversationId===null||conversationId===''){throw
|
|
|
10798
10905
|
if(participantId===undefined||participantId===null||participantId===''){throw'Missing the required parameter "participantId" when calling getConversationsChatParticipantCommunicationWrapup';}// verify the required parameter 'communicationId' is set
|
|
10799
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']);}/**
|
|
10800
10907
|
* Get the wrap-up for this conversation participant.
|
|
10801
|
-
* 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/.
|
|
10802
10909
|
* @param {String} conversationId conversationId
|
|
10803
10910
|
* @param {String} participantId participantId
|
|
10804
10911
|
* @param {Object} opts Optional parameters
|
|
@@ -10808,7 +10915,7 @@ if(communicationId===undefined||communicationId===null||communicationId===''){th
|
|
|
10808
10915
|
if(conversationId===undefined||conversationId===null||conversationId===''){throw'Missing the required parameter "conversationId" when calling getConversationsChatParticipantWrapup';}// verify the required parameter 'participantId' is set
|
|
10809
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']);}/**
|
|
10810
10917
|
* Get list of wrapup codes for this conversation participant
|
|
10811
|
-
* 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/.
|
|
10812
10919
|
* @param {String} conversationId conversationId
|
|
10813
10920
|
* @param {String} participantId participantId
|
|
10814
10921
|
* @deprecated
|
|
@@ -10816,7 +10923,7 @@ if(participantId===undefined||participantId===null||participantId===''){throw'Mi
|
|
|
10816
10923
|
if(conversationId===undefined||conversationId===null||conversationId===''){throw'Missing the required parameter "conversationId" when calling getConversationsChatParticipantWrapupcodes';}// verify the required parameter 'participantId' is set
|
|
10817
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']);}/**
|
|
10818
10925
|
* Get active chat conversations for the logged in user
|
|
10819
|
-
* 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/.
|
|
10820
10927
|
* @deprecated
|
|
10821
10928
|
*/},{key:"getConversationsChats",value:function getConversationsChats(){return this.apiClient.callApi('/api/v2/conversations/chats','GET',{},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
10822
10929
|
* Get cobrowse conversation
|
|
@@ -10825,7 +10932,7 @@ if(participantId===undefined||participantId===null||participantId===''){throw'Mi
|
|
|
10825
10932
|
*/},{key:"getConversationsCobrowsesession",value:function getConversationsCobrowsesession(conversationId){// verify the required parameter 'conversationId' is set
|
|
10826
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']);}/**
|
|
10827
10934
|
* Get the wrap-up for this conversation communication.
|
|
10828
|
-
* 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/
|
|
10829
10936
|
* @param {String} conversationId conversationId
|
|
10830
10937
|
* @param {String} participantId participantId
|
|
10831
10938
|
* @param {String} communicationId communicationId
|
|
@@ -10837,7 +10944,7 @@ if(conversationId===undefined||conversationId===null||conversationId===''){throw
|
|
|
10837
10944
|
if(participantId===undefined||participantId===null||participantId===''){throw'Missing the required parameter "participantId" when calling getConversationsCobrowsesessionParticipantCommunicationWrapup';}// verify the required parameter 'communicationId' is set
|
|
10838
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']);}/**
|
|
10839
10946
|
* Get the wrap-up for this conversation participant.
|
|
10840
|
-
* 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/
|
|
10841
10948
|
* @param {String} conversationId conversationId
|
|
10842
10949
|
* @param {String} participantId participantId
|
|
10843
10950
|
* @param {Object} opts Optional parameters
|
|
@@ -10847,7 +10954,7 @@ if(communicationId===undefined||communicationId===null||communicationId===''){th
|
|
|
10847
10954
|
if(conversationId===undefined||conversationId===null||conversationId===''){throw'Missing the required parameter "conversationId" when calling getConversationsCobrowsesessionParticipantWrapup';}// verify the required parameter 'participantId' is set
|
|
10848
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']);}/**
|
|
10849
10956
|
* Get list of wrapup codes for this conversation participant
|
|
10850
|
-
* 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/
|
|
10851
10958
|
* @param {String} conversationId conversationId
|
|
10852
10959
|
* @param {String} participantId participantId
|
|
10853
10960
|
* @deprecated
|
|
@@ -11170,7 +11277,7 @@ if(supportedContentId===undefined||supportedContentId===null||supportedContentId
|
|
|
11170
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.
|
|
11171
11278
|
*/},{key:"getConversationsMessagingThreadingtimeline",value:function getConversationsMessagingThreadingtimeline(){return this.apiClient.callApi('/api/v2/conversations/messaging/threadingtimeline','GET',{},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
11172
11279
|
* Get the wrap-up for this conversation communication.
|
|
11173
|
-
* 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/
|
|
11174
11281
|
* @param {String} conversationId conversationId
|
|
11175
11282
|
* @param {String} participantId participantId
|
|
11176
11283
|
* @param {String} communicationId communicationId
|
|
@@ -11304,7 +11411,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
11304
11411
|
if(conversationId===undefined||conversationId===null||conversationId===''){throw'Missing the required parameter "conversationId" when calling patchConversationsCallParticipantAttributes';}// verify the required parameter 'participantId' is set
|
|
11305
11412
|
if(participantId===undefined||participantId===null||participantId===''){throw'Missing the required parameter "participantId" when calling patchConversationsCallParticipantAttributes';}// verify the required parameter 'body' is set
|
|
11306
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']);}/**
|
|
11307
|
-
* Update conversation participant's communication by disconnecting it.
|
|
11414
|
+
* Update conversation participant's communication by disconnecting it. This endpoint does not update wrapup.
|
|
11308
11415
|
*
|
|
11309
11416
|
* @param {String} conversationId conversationId
|
|
11310
11417
|
* @param {String} participantId participantId
|
|
@@ -11366,7 +11473,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
11366
11473
|
*/},{key:"patchConversationsCallbacks",value:function patchConversationsCallbacks(body){// verify the required parameter 'body' is set
|
|
11367
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']);}/**
|
|
11368
11475
|
* Update a conversation by disconnecting all of the participants
|
|
11369
|
-
* 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/.
|
|
11370
11477
|
* @param {String} conversationId conversationId
|
|
11371
11478
|
* @param {Object} body Conversation
|
|
11372
11479
|
* @deprecated
|
|
@@ -11374,7 +11481,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
11374
11481
|
if(conversationId===undefined||conversationId===null||conversationId===''){throw'Missing the required parameter "conversationId" when calling patchConversationsChat';}// verify the required parameter 'body' is set
|
|
11375
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']);}/**
|
|
11376
11483
|
* Update conversation participant
|
|
11377
|
-
* 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/.
|
|
11378
11485
|
* @param {String} conversationId conversationId
|
|
11379
11486
|
* @param {String} participantId participantId
|
|
11380
11487
|
* @param {Object} body Update request
|
|
@@ -11384,7 +11491,7 @@ if(conversationId===undefined||conversationId===null||conversationId===''){throw
|
|
|
11384
11491
|
if(participantId===undefined||participantId===null||participantId===''){throw'Missing the required parameter "participantId" when calling patchConversationsChatParticipant';}// verify the required parameter 'body' is set
|
|
11385
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']);}/**
|
|
11386
11493
|
* Update the attributes on a conversation participant.
|
|
11387
|
-
* 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/.
|
|
11388
11495
|
* @param {String} conversationId conversationId
|
|
11389
11496
|
* @param {String} participantId participantId
|
|
11390
11497
|
* @param {Object} body Participant attributes
|
|
@@ -11393,8 +11500,8 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
11393
11500
|
if(conversationId===undefined||conversationId===null||conversationId===''){throw'Missing the required parameter "conversationId" when calling patchConversationsChatParticipantAttributes';}// verify the required parameter 'participantId' is set
|
|
11394
11501
|
if(participantId===undefined||participantId===null||participantId===''){throw'Missing the required parameter "participantId" when calling patchConversationsChatParticipantAttributes';}// verify the required parameter 'body' is set
|
|
11395
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']);}/**
|
|
11396
|
-
* Update conversation participant's communication by disconnecting it.
|
|
11397
|
-
* 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/.
|
|
11398
11505
|
* @param {String} conversationId conversationId
|
|
11399
11506
|
* @param {String} participantId participantId
|
|
11400
11507
|
* @param {String} communicationId communicationId
|
|
@@ -11406,7 +11513,7 @@ if(participantId===undefined||participantId===null||participantId===''){throw'Mi
|
|
|
11406
11513
|
if(communicationId===undefined||communicationId===null||communicationId===''){throw'Missing the required parameter "communicationId" when calling patchConversationsChatParticipantCommunication';}// verify the required parameter 'body' is set
|
|
11407
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']);}/**
|
|
11408
11515
|
* Update a conversation by disconnecting all of the participants
|
|
11409
|
-
* 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/
|
|
11410
11517
|
* @param {String} conversationId conversationId
|
|
11411
11518
|
* @param {Object} body Conversation
|
|
11412
11519
|
* @deprecated
|
|
@@ -11414,7 +11521,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
11414
11521
|
if(conversationId===undefined||conversationId===null||conversationId===''){throw'Missing the required parameter "conversationId" when calling patchConversationsCobrowsesession';}// verify the required parameter 'body' is set
|
|
11415
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']);}/**
|
|
11416
11523
|
* Update conversation participant
|
|
11417
|
-
* 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/
|
|
11418
11525
|
* @param {String} conversationId conversationId
|
|
11419
11526
|
* @param {String} participantId participantId
|
|
11420
11527
|
* @param {Object} opts Optional parameters
|
|
@@ -11424,7 +11531,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
11424
11531
|
if(conversationId===undefined||conversationId===null||conversationId===''){throw'Missing the required parameter "conversationId" when calling patchConversationsCobrowsesessionParticipant';}// verify the required parameter 'participantId' is set
|
|
11425
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']);}/**
|
|
11426
11533
|
* Update the attributes on a conversation participant.
|
|
11427
|
-
* 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/
|
|
11428
11535
|
* @param {String} conversationId conversationId
|
|
11429
11536
|
* @param {String} participantId participantId
|
|
11430
11537
|
* @param {Object} opts Optional parameters
|
|
@@ -11434,7 +11541,7 @@ if(participantId===undefined||participantId===null||participantId===''){throw'Mi
|
|
|
11434
11541
|
if(conversationId===undefined||conversationId===null||conversationId===''){throw'Missing the required parameter "conversationId" when calling patchConversationsCobrowsesessionParticipantAttributes';}// verify the required parameter 'participantId' is set
|
|
11435
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']);}/**
|
|
11436
11543
|
* Update conversation participant's communication by disconnecting it.
|
|
11437
|
-
* 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/
|
|
11438
11545
|
* @param {String} conversationId conversationId
|
|
11439
11546
|
* @param {String} participantId participantId
|
|
11440
11547
|
* @param {String} communicationId communicationId
|
|
@@ -11479,7 +11586,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
11479
11586
|
if(conversationId===undefined||conversationId===null||conversationId===''){throw'Missing the required parameter "conversationId" when calling patchConversationsEmailParticipantAttributes';}// verify the required parameter 'participantId' is set
|
|
11480
11587
|
if(participantId===undefined||participantId===null||participantId===''){throw'Missing the required parameter "participantId" when calling patchConversationsEmailParticipantAttributes';}// verify the required parameter 'body' is set
|
|
11481
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']);}/**
|
|
11482
|
-
* Update conversation participant's communication by disconnecting it.
|
|
11589
|
+
* Update conversation participant's communication by disconnecting it. This endpoint does not update wrapup.
|
|
11483
11590
|
*
|
|
11484
11591
|
* @param {String} conversationId conversationId
|
|
11485
11592
|
* @param {String} participantId participantId
|
|
@@ -11524,7 +11631,7 @@ if(participantId===undefined||participantId===null||participantId===''){throw'Mi
|
|
|
11524
11631
|
*/},{key:"patchConversationsMessageParticipantAttributes",value:function patchConversationsMessageParticipantAttributes(conversationId,participantId,opts){opts=opts||{};// verify the required parameter 'conversationId' is set
|
|
11525
11632
|
if(conversationId===undefined||conversationId===null||conversationId===''){throw'Missing the required parameter "conversationId" when calling patchConversationsMessageParticipantAttributes';}// verify the required parameter 'participantId' is set
|
|
11526
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']);}/**
|
|
11527
|
-
* Update conversation participant's communication by disconnecting it.
|
|
11634
|
+
* Update conversation participant's communication by disconnecting it. This endpoint does not update wrapup.
|
|
11528
11635
|
*
|
|
11529
11636
|
* @param {String} conversationId conversationId
|
|
11530
11637
|
* @param {String} participantId participantId
|
|
@@ -11935,7 +12042,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
11935
12042
|
*/},{key:"postConversationsCalls",value:function postConversationsCalls(body){// verify the required parameter 'body' is set
|
|
11936
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']);}/**
|
|
11937
12044
|
* Send a message on behalf of a communication in a chat conversation.
|
|
11938
|
-
* 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/.
|
|
11939
12046
|
* @param {String} conversationId conversationId
|
|
11940
12047
|
* @param {String} communicationId communicationId
|
|
11941
12048
|
* @param {Object} body Message
|
|
@@ -11945,7 +12052,7 @@ if(conversationId===undefined||conversationId===null||conversationId===''){throw
|
|
|
11945
12052
|
if(communicationId===undefined||communicationId===null||communicationId===''){throw'Missing the required parameter "communicationId" when calling postConversationsChatCommunicationMessages';}// verify the required parameter 'body' is set
|
|
11946
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']);}/**
|
|
11947
12054
|
* Send a typing-indicator on behalf of a communication in a chat conversation.
|
|
11948
|
-
* 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/.
|
|
11949
12056
|
* @param {String} conversationId conversationId
|
|
11950
12057
|
* @param {String} communicationId communicationId
|
|
11951
12058
|
* @deprecated
|
|
@@ -11953,7 +12060,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
11953
12060
|
if(conversationId===undefined||conversationId===null||conversationId===''){throw'Missing the required parameter "conversationId" when calling postConversationsChatCommunicationTyping';}// verify the required parameter 'communicationId' is set
|
|
11954
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']);}/**
|
|
11955
12062
|
* Apply wrap-up for this conversation communication
|
|
11956
|
-
* 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/.
|
|
11957
12064
|
* @param {String} conversationId conversationId
|
|
11958
12065
|
* @param {String} participantId participantId
|
|
11959
12066
|
* @param {String} communicationId communicationId
|
|
@@ -11965,7 +12072,7 @@ if(conversationId===undefined||conversationId===null||conversationId===''){throw
|
|
|
11965
12072
|
if(participantId===undefined||participantId===null||participantId===''){throw'Missing the required parameter "participantId" when calling postConversationsChatParticipantCommunicationWrapup';}// verify the required parameter 'communicationId' is set
|
|
11966
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']);}/**
|
|
11967
12074
|
* Replace this participant with the specified user and/or address
|
|
11968
|
-
* 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/.
|
|
11969
12076
|
* @param {String} conversationId conversationId
|
|
11970
12077
|
* @param {String} participantId participantId
|
|
11971
12078
|
* @param {Object} body Transfer request
|
|
@@ -11975,13 +12082,13 @@ if(conversationId===undefined||conversationId===null||conversationId===''){throw
|
|
|
11975
12082
|
if(participantId===undefined||participantId===null||participantId===''){throw'Missing the required parameter "participantId" when calling postConversationsChatParticipantReplace';}// verify the required parameter 'body' is set
|
|
11976
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']);}/**
|
|
11977
12084
|
* Create a web chat conversation
|
|
11978
|
-
* 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/.
|
|
11979
12086
|
* @param {Object} body Create web chat request
|
|
11980
12087
|
* @deprecated
|
|
11981
12088
|
*/},{key:"postConversationsChats",value:function postConversationsChats(body){// verify the required parameter 'body' is set
|
|
11982
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']);}/**
|
|
11983
12090
|
* Apply wrap-up for this conversation communication
|
|
11984
|
-
* 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/
|
|
11985
12092
|
* @param {String} conversationId conversationId
|
|
11986
12093
|
* @param {String} participantId participantId
|
|
11987
12094
|
* @param {String} communicationId communicationId
|
|
@@ -11993,7 +12100,7 @@ if(conversationId===undefined||conversationId===null||conversationId===''){throw
|
|
|
11993
12100
|
if(participantId===undefined||participantId===null||participantId===''){throw'Missing the required parameter "participantId" when calling postConversationsCobrowsesessionParticipantCommunicationWrapup';}// verify the required parameter 'communicationId' is set
|
|
11994
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']);}/**
|
|
11995
12102
|
* Replace this participant with the specified user and/or address
|
|
11996
|
-
* 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/
|
|
11997
12104
|
* @param {String} conversationId conversationId
|
|
11998
12105
|
* @param {String} participantId participantId
|
|
11999
12106
|
* @param {Object} opts Optional parameters
|
|
@@ -12249,7 +12356,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
12249
12356
|
*/},{key:"postConversationsParticipantsAttributesSearch",value:function postConversationsParticipantsAttributesSearch(body){// verify the required parameter 'body' is set
|
|
12250
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']);}/**
|
|
12251
12358
|
* Apply wrap-up for this conversation communication
|
|
12252
|
-
* 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/
|
|
12253
12360
|
* @param {String} conversationId conversationId
|
|
12254
12361
|
* @param {String} participantId participantId
|
|
12255
12362
|
* @param {String} communicationId communicationId
|
|
@@ -12343,7 +12450,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
12343
12450
|
if(conversationId===undefined||conversationId===null||conversationId===''){throw'Missing the required parameter "conversationId" when calling putConversationsCallbackRecordingstate';}// verify the required parameter 'body' is set
|
|
12344
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']);}/**
|
|
12345
12452
|
* Update a conversation by setting its recording state
|
|
12346
|
-
* 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/.
|
|
12347
12454
|
* @param {String} conversationId conversationId
|
|
12348
12455
|
* @param {Object} body SetRecordingState
|
|
12349
12456
|
* @deprecated
|
|
@@ -12351,7 +12458,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
12351
12458
|
if(conversationId===undefined||conversationId===null||conversationId===''){throw'Missing the required parameter "conversationId" when calling putConversationsChatRecordingstate';}// verify the required parameter 'body' is set
|
|
12352
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']);}/**
|
|
12353
12460
|
* Update a conversation by setting its recording state
|
|
12354
|
-
* 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/
|
|
12355
12462
|
* @param {String} conversationId conversationId
|
|
12356
12463
|
* @param {Object} body SetRecordingState
|
|
12357
12464
|
* @deprecated
|
|
@@ -12445,7 +12552,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
12445
12552
|
*/},{key:"putConversationsMessagingThreadingtimeline",value:function putConversationsMessagingThreadingtimeline(body){// verify the required parameter 'body' is set
|
|
12446
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']);}/**
|
|
12447
12554
|
* Update a conversation by setting its recording state
|
|
12448
|
-
* 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/
|
|
12449
12556
|
* @param {String} conversationId conversationId
|
|
12450
12557
|
* @param {Object} body SetRecordingState
|
|
12451
12558
|
* @deprecated
|
|
@@ -12468,7 +12575,7 @@ if(conversationId===undefined||conversationId===null||conversationId===''){throw
|
|
|
12468
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(){/**
|
|
12469
12576
|
* DataExtensions service.
|
|
12470
12577
|
* @module purecloud-platform-client-v2/api/DataExtensionsApi
|
|
12471
|
-
* @version
|
|
12578
|
+
* @version 228.0.0
|
|
12472
12579
|
*//**
|
|
12473
12580
|
* Constructs a new DataExtensionsApi.
|
|
12474
12581
|
* @alias module:purecloud-platform-client-v2/api/DataExtensionsApi
|
|
@@ -12489,7 +12596,7 @@ if(coretypeName===undefined||coretypeName===null||coretypeName===''){throw'Missi
|
|
|
12489
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(){/**
|
|
12490
12597
|
* DataPrivacy service.
|
|
12491
12598
|
* @module purecloud-platform-client-v2/api/DataPrivacyApi
|
|
12492
|
-
* @version
|
|
12599
|
+
* @version 228.0.0
|
|
12493
12600
|
*//**
|
|
12494
12601
|
* Constructs a new DataPrivacyApi.
|
|
12495
12602
|
* @alias module:purecloud-platform-client-v2/api/DataPrivacyApi
|
|
@@ -12529,7 +12636,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
12529
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(){/**
|
|
12530
12637
|
* Downloads service.
|
|
12531
12638
|
* @module purecloud-platform-client-v2/api/DownloadsApi
|
|
12532
|
-
* @version
|
|
12639
|
+
* @version 228.0.0
|
|
12533
12640
|
*//**
|
|
12534
12641
|
* Constructs a new DownloadsApi.
|
|
12535
12642
|
* @alias module:purecloud-platform-client-v2/api/DownloadsApi
|
|
@@ -12548,7 +12655,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
12548
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(){/**
|
|
12549
12656
|
* Emails service.
|
|
12550
12657
|
* @module purecloud-platform-client-v2/api/EmailsApi
|
|
12551
|
-
* @version
|
|
12658
|
+
* @version 228.0.0
|
|
12552
12659
|
*//**
|
|
12553
12660
|
* Constructs a new EmailsApi.
|
|
12554
12661
|
* @alias module:purecloud-platform-client-v2/api/EmailsApi
|
|
@@ -12577,7 +12684,7 @@ if(downloadId===undefined||downloadId===null||downloadId===''){throw'Missing the
|
|
|
12577
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(){/**
|
|
12578
12685
|
* EmployeeEngagement service.
|
|
12579
12686
|
* @module purecloud-platform-client-v2/api/EmployeeEngagementApi
|
|
12580
|
-
* @version
|
|
12687
|
+
* @version 228.0.0
|
|
12581
12688
|
*//**
|
|
12582
12689
|
* Constructs a new EmployeeEngagementApi.
|
|
12583
12690
|
* @alias module:purecloud-platform-client-v2/api/EmployeeEngagementApi
|
|
@@ -12615,7 +12722,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
12615
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(){/**
|
|
12616
12723
|
* Events service.
|
|
12617
12724
|
* @module purecloud-platform-client-v2/api/EventsApi
|
|
12618
|
-
* @version
|
|
12725
|
+
* @version 228.0.0
|
|
12619
12726
|
*//**
|
|
12620
12727
|
* Constructs a new EventsApi.
|
|
12621
12728
|
* @alias module:purecloud-platform-client-v2/api/EventsApi
|
|
@@ -12640,7 +12747,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
12640
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(){/**
|
|
12641
12748
|
* ExternalContacts service.
|
|
12642
12749
|
* @module purecloud-platform-client-v2/api/ExternalContactsApi
|
|
12643
|
-
* @version
|
|
12750
|
+
* @version 228.0.0
|
|
12644
12751
|
*//**
|
|
12645
12752
|
* Constructs a new ExternalContactsApi.
|
|
12646
12753
|
* @alias module:purecloud-platform-client-v2/api/ExternalContactsApi
|
|
@@ -12714,6 +12821,14 @@ if(contactId===undefined||contactId===null||contactId===''){throw'Missing the re
|
|
|
12714
12821
|
* @param {String} contactId ExternalContact ID
|
|
12715
12822
|
*/},{key:"getExternalcontactsContactIdentifiers",value:function getExternalcontactsContactIdentifiers(contactId){// verify the required parameter 'contactId' is set
|
|
12716
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']);}/**
|
|
12717
12832
|
* Retrieve all sessions for a given external contact.
|
|
12718
12833
|
*
|
|
12719
12834
|
* @param {String} contactId ExternalContact ID
|
|
@@ -13152,6 +13267,13 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
13152
13267
|
* @param {Object} body Relationships
|
|
13153
13268
|
*/},{key:"postExternalcontactsBulkRelationshipsUpdate",value:function postExternalcontactsBulkRelationshipsUpdate(body){// verify the required parameter 'body' is set
|
|
13154
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']);}/**
|
|
13155
13277
|
* Create a note for an external contact
|
|
13156
13278
|
*
|
|
13157
13279
|
* @param {String} contactId ExternalContact Id
|
|
@@ -13375,7 +13497,7 @@ if(relationshipId===undefined||relationshipId===null||relationshipId===''){throw
|
|
|
13375
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(){/**
|
|
13376
13498
|
* Fax service.
|
|
13377
13499
|
* @module purecloud-platform-client-v2/api/FaxApi
|
|
13378
|
-
* @version
|
|
13500
|
+
* @version 228.0.0
|
|
13379
13501
|
*//**
|
|
13380
13502
|
* Constructs a new FaxApi.
|
|
13381
13503
|
* @alias module:purecloud-platform-client-v2/api/FaxApi
|
|
@@ -13424,7 +13546,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
13424
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(){/**
|
|
13425
13547
|
* Flows service.
|
|
13426
13548
|
* @module purecloud-platform-client-v2/api/FlowsApi
|
|
13427
|
-
* @version
|
|
13549
|
+
* @version 228.0.0
|
|
13428
13550
|
*//**
|
|
13429
13551
|
* Constructs a new FlowsApi.
|
|
13430
13552
|
* @alias module:purecloud-platform-client-v2/api/FlowsApi
|
|
@@ -13432,11 +13554,17 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
13432
13554
|
* @param {module:purecloud-platform-client-v2/ApiClient} apiClient Optional API client implementation to use,
|
|
13433
13555
|
* default to {@link module:purecloud-platform-client-v2/ApiClient#instance} if unspecified.
|
|
13434
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']);}/**
|
|
13435
13563
|
* Get status for async query for Flow aggregates
|
|
13436
13564
|
*
|
|
13437
13565
|
* @param {String} jobId jobId
|
|
13438
13566
|
* getAnalyticsFlowsAggregatesJob is a preview method and is subject to both breaking and non-breaking changes at any time without notice
|
|
13439
|
-
*/
|
|
13567
|
+
*/},{key:"getAnalyticsFlowsAggregatesJob",value:function getAnalyticsFlowsAggregatesJob(jobId){// verify the required parameter 'jobId' is set
|
|
13440
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']);}/**
|
|
13441
13569
|
* Fetch a page of results for an async aggregates query
|
|
13442
13570
|
*
|
|
@@ -13472,7 +13600,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
13472
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(){/**
|
|
13473
13601
|
* Gamification service.
|
|
13474
13602
|
* @module purecloud-platform-client-v2/api/GamificationApi
|
|
13475
|
-
* @version
|
|
13603
|
+
* @version 228.0.0
|
|
13476
13604
|
*//**
|
|
13477
13605
|
* Constructs a new GamificationApi.
|
|
13478
13606
|
* @alias module:purecloud-platform-client-v2/api/GamificationApi
|
|
@@ -14125,7 +14253,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
14125
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(){/**
|
|
14126
14254
|
* GeneralDataProtectionRegulation service.
|
|
14127
14255
|
* @module purecloud-platform-client-v2/api/GeneralDataProtectionRegulationApi
|
|
14128
|
-
* @version
|
|
14256
|
+
* @version 228.0.0
|
|
14129
14257
|
*//**
|
|
14130
14258
|
* Constructs a new GeneralDataProtectionRegulationApi.
|
|
14131
14259
|
* @alias module:purecloud-platform-client-v2/api/GeneralDataProtectionRegulationApi
|
|
@@ -14160,7 +14288,7 @@ if(searchValue===undefined||searchValue===null){throw'Missing the required param
|
|
|
14160
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(){/**
|
|
14161
14289
|
* Geolocation service.
|
|
14162
14290
|
* @module purecloud-platform-client-v2/api/GeolocationApi
|
|
14163
|
-
* @version
|
|
14291
|
+
* @version 228.0.0
|
|
14164
14292
|
*//**
|
|
14165
14293
|
* Constructs a new GeolocationApi.
|
|
14166
14294
|
* @alias module:purecloud-platform-client-v2/api/GeolocationApi
|
|
@@ -14194,7 +14322,7 @@ if(clientId===undefined||clientId===null||clientId===''){throw'Missing the requi
|
|
|
14194
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(){/**
|
|
14195
14323
|
* Greetings service.
|
|
14196
14324
|
* @module purecloud-platform-client-v2/api/GreetingsApi
|
|
14197
|
-
* @version
|
|
14325
|
+
* @version 228.0.0
|
|
14198
14326
|
*//**
|
|
14199
14327
|
* Constructs a new GreetingsApi.
|
|
14200
14328
|
* @alias module:purecloud-platform-client-v2/api/GreetingsApi
|
|
@@ -14322,7 +14450,7 @@ if(userId===undefined||userId===null||userId===''){throw'Missing the required pa
|
|
|
14322
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(){/**
|
|
14323
14451
|
* Groups service.
|
|
14324
14452
|
* @module purecloud-platform-client-v2/api/GroupsApi
|
|
14325
|
-
* @version
|
|
14453
|
+
* @version 228.0.0
|
|
14326
14454
|
*//**
|
|
14327
14455
|
* Constructs a new GroupsApi.
|
|
14328
14456
|
* @alias module:purecloud-platform-client-v2/api/GroupsApi
|
|
@@ -14455,7 +14583,7 @@ if(groupId===undefined||groupId===null||groupId===''){throw'Missing the required
|
|
|
14455
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(){/**
|
|
14456
14584
|
* IdentityProvider service.
|
|
14457
14585
|
* @module purecloud-platform-client-v2/api/IdentityProviderApi
|
|
14458
|
-
* @version
|
|
14586
|
+
* @version 228.0.0
|
|
14459
14587
|
*//**
|
|
14460
14588
|
* Constructs a new IdentityProviderApi.
|
|
14461
14589
|
* @alias module:purecloud-platform-client-v2/api/IdentityProviderApi
|
|
@@ -14611,7 +14739,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
14611
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(){/**
|
|
14612
14740
|
* InfrastructureAsCode service.
|
|
14613
14741
|
* @module purecloud-platform-client-v2/api/InfrastructureAsCodeApi
|
|
14614
|
-
* @version
|
|
14742
|
+
* @version 228.0.0
|
|
14615
14743
|
*//**
|
|
14616
14744
|
* Constructs a new InfrastructureAsCodeApi.
|
|
14617
14745
|
* @alias module:purecloud-platform-client-v2/api/InfrastructureAsCodeApi
|
|
@@ -14665,7 +14793,7 @@ if(jobId===undefined||jobId===null||jobId===''){throw'Missing the required param
|
|
|
14665
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(){/**
|
|
14666
14794
|
* Integrations service.
|
|
14667
14795
|
* @module purecloud-platform-client-v2/api/IntegrationsApi
|
|
14668
|
-
* @version
|
|
14796
|
+
* @version 228.0.0
|
|
14669
14797
|
*//**
|
|
14670
14798
|
* Constructs a new IntegrationsApi.
|
|
14671
14799
|
* @alias module:purecloud-platform-client-v2/api/IntegrationsApi
|
|
@@ -15352,7 +15480,7 @@ if(ucIntegrationId===undefined||ucIntegrationId===null||ucIntegrationId===''){th
|
|
|
15352
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(){/**
|
|
15353
15481
|
* Journey service.
|
|
15354
15482
|
* @module purecloud-platform-client-v2/api/JourneyApi
|
|
15355
|
-
* @version
|
|
15483
|
+
* @version 228.0.0
|
|
15356
15484
|
*//**
|
|
15357
15485
|
* Constructs a new JourneyApi.
|
|
15358
15486
|
* @alias module:purecloud-platform-client-v2/api/JourneyApi
|
|
@@ -15360,10 +15488,16 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
15360
15488
|
* @param {module:purecloud-platform-client-v2/ApiClient} apiClient Optional API client implementation to use,
|
|
15361
15489
|
* default to {@link module:purecloud-platform-client-v2/ApiClient#instance} if unspecified.
|
|
15362
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']);}/**
|
|
15363
15497
|
* Delete single action map.
|
|
15364
15498
|
*
|
|
15365
15499
|
* @param {String} actionMapId ID of the action map.
|
|
15366
|
-
*/
|
|
15500
|
+
*/},{key:"deleteJourneyActionmap",value:function deleteJourneyActionmap(actionMapId){// verify the required parameter 'actionMapId' is set
|
|
15367
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']);}/**
|
|
15368
15502
|
* Delete a single action template.
|
|
15369
15503
|
*
|
|
@@ -15411,6 +15545,14 @@ if(jobId===undefined||jobId===null||jobId===''){throw'Missing the required param
|
|
|
15411
15545
|
* getAnalyticsJourneysAggregatesJobResults is a preview method and is subject to both breaking and non-breaking changes at any time without notice
|
|
15412
15546
|
*/},{key:"getAnalyticsJourneysAggregatesJobResults",value:function getAnalyticsJourneysAggregatesJobResults(jobId,opts){opts=opts||{};// verify the required parameter 'jobId' is set
|
|
15413
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']);}/**
|
|
15414
15556
|
* Retrieve all sessions for a given external contact.
|
|
15415
15557
|
*
|
|
15416
15558
|
* @param {String} contactId ExternalContact ID
|
|
@@ -15721,6 +15863,13 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
15721
15863
|
* @param {Object} body query
|
|
15722
15864
|
*/},{key:"postAnalyticsJourneysAggregatesQuery",value:function postAnalyticsJourneysAggregatesQuery(body){// verify the required parameter 'body' is set
|
|
15723
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']);}/**
|
|
15724
15873
|
* Create an action map.
|
|
15725
15874
|
*
|
|
15726
15875
|
* @param {Object} opts Optional parameters
|
|
@@ -15832,7 +15981,7 @@ if(versionId===undefined||versionId===null||versionId===''){throw'Missing the re
|
|
|
15832
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(){/**
|
|
15833
15982
|
* Knowledge service.
|
|
15834
15983
|
* @module purecloud-platform-client-v2/api/KnowledgeApi
|
|
15835
|
-
* @version
|
|
15984
|
+
* @version 228.0.0
|
|
15836
15985
|
*//**
|
|
15837
15986
|
* Constructs a new KnowledgeApi.
|
|
15838
15987
|
* @alias module:purecloud-platform-client-v2/api/KnowledgeApi
|
|
@@ -16609,6 +16758,13 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
16609
16758
|
*/},{key:"postKnowledgeKnowledgebaseCategories",value:function postKnowledgeKnowledgebaseCategories(knowledgeBaseId,body){// verify the required parameter 'knowledgeBaseId' is set
|
|
16610
16759
|
if(knowledgeBaseId===undefined||knowledgeBaseId===null||knowledgeBaseId===''){throw'Missing the required parameter "knowledgeBaseId" when calling postKnowledgeKnowledgebaseCategories';}// verify the required parameter 'body' is set
|
|
16611
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']);}/**
|
|
16612
16768
|
* Indicate that the document was copied by the user.
|
|
16613
16769
|
*
|
|
16614
16770
|
* @param {String} knowledgeBaseId Knowledge base ID.
|
|
@@ -16895,7 +17051,7 @@ if(sourceId===undefined||sourceId===null||sourceId===''){throw'Missing the requi
|
|
|
16895
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(){/**
|
|
16896
17052
|
* LanguageUnderstanding service.
|
|
16897
17053
|
* @module purecloud-platform-client-v2/api/LanguageUnderstandingApi
|
|
16898
|
-
* @version
|
|
17054
|
+
* @version 228.0.0
|
|
16899
17055
|
*//**
|
|
16900
17056
|
* Constructs a new LanguageUnderstandingApi.
|
|
16901
17057
|
* @alias module:purecloud-platform-client-v2/api/LanguageUnderstandingApi
|
|
@@ -17154,7 +17310,7 @@ if(domainVersionId===undefined||domainVersionId===null||domainVersionId===''){th
|
|
|
17154
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(){/**
|
|
17155
17311
|
* Languages service.
|
|
17156
17312
|
* @module purecloud-platform-client-v2/api/LanguagesApi
|
|
17157
|
-
* @version
|
|
17313
|
+
* @version 228.0.0
|
|
17158
17314
|
*//**
|
|
17159
17315
|
* Constructs a new LanguagesApi.
|
|
17160
17316
|
* @alias module:purecloud-platform-client-v2/api/LanguagesApi
|
|
@@ -17209,7 +17365,7 @@ if(userId===undefined||userId===null||userId===''){throw'Missing the required pa
|
|
|
17209
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(){/**
|
|
17210
17366
|
* Learning service.
|
|
17211
17367
|
* @module purecloud-platform-client-v2/api/LearningApi
|
|
17212
|
-
* @version
|
|
17368
|
+
* @version 228.0.0
|
|
17213
17369
|
*//**
|
|
17214
17370
|
* Constructs a new LearningApi.
|
|
17215
17371
|
* @alias module:purecloud-platform-client-v2/api/LearningApi
|
|
@@ -17480,7 +17636,7 @@ if(moduleId===undefined||moduleId===null||moduleId===''){throw'Missing the requi
|
|
|
17480
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(){/**
|
|
17481
17637
|
* License service.
|
|
17482
17638
|
* @module purecloud-platform-client-v2/api/LicenseApi
|
|
17483
|
-
* @version
|
|
17639
|
+
* @version 228.0.0
|
|
17484
17640
|
*//**
|
|
17485
17641
|
* Constructs a new LicenseApi.
|
|
17486
17642
|
* @alias module:purecloud-platform-client-v2/api/LicenseApi
|
|
@@ -17534,7 +17690,7 @@ if(featureName===undefined||featureName===null||featureName===''){throw'Missing
|
|
|
17534
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(){/**
|
|
17535
17691
|
* Locations service.
|
|
17536
17692
|
* @module purecloud-platform-client-v2/api/LocationsApi
|
|
17537
|
-
* @version
|
|
17693
|
+
* @version 228.0.0
|
|
17538
17694
|
*//**
|
|
17539
17695
|
* Constructs a new LocationsApi.
|
|
17540
17696
|
* @alias module:purecloud-platform-client-v2/api/LocationsApi
|
|
@@ -17593,7 +17749,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
17593
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(){/**
|
|
17594
17750
|
* LogCapture service.
|
|
17595
17751
|
* @module purecloud-platform-client-v2/api/LogCaptureApi
|
|
17596
|
-
* @version
|
|
17752
|
+
* @version 228.0.0
|
|
17597
17753
|
*//**
|
|
17598
17754
|
* Constructs a new LogCaptureApi.
|
|
17599
17755
|
* @alias module:purecloud-platform-client-v2/api/LogCaptureApi
|
|
@@ -17642,7 +17798,7 @@ if(userId===undefined||userId===null||userId===''){throw'Missing the required pa
|
|
|
17642
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(){/**
|
|
17643
17799
|
* Messaging service.
|
|
17644
17800
|
* @module purecloud-platform-client-v2/api/MessagingApi
|
|
17645
|
-
* @version
|
|
17801
|
+
* @version 228.0.0
|
|
17646
17802
|
*//**
|
|
17647
17803
|
* Constructs a new MessagingApi.
|
|
17648
17804
|
* @alias module:purecloud-platform-client-v2/api/MessagingApi
|
|
@@ -17732,7 +17888,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
17732
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(){/**
|
|
17733
17889
|
* MobileDevices service.
|
|
17734
17890
|
* @module purecloud-platform-client-v2/api/MobileDevicesApi
|
|
17735
|
-
* @version
|
|
17891
|
+
* @version 228.0.0
|
|
17736
17892
|
*//**
|
|
17737
17893
|
* Constructs a new MobileDevicesApi.
|
|
17738
17894
|
* @alias module:purecloud-platform-client-v2/api/MobileDevicesApi
|
|
@@ -17771,7 +17927,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
17771
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(){/**
|
|
17772
17928
|
* Notifications service.
|
|
17773
17929
|
* @module purecloud-platform-client-v2/api/NotificationsApi
|
|
17774
|
-
* @version
|
|
17930
|
+
* @version 228.0.0
|
|
17775
17931
|
*//**
|
|
17776
17932
|
* Constructs a new NotificationsApi.
|
|
17777
17933
|
* @alias module:purecloud-platform-client-v2/api/NotificationsApi
|
|
@@ -17828,7 +17984,7 @@ if(channelId===undefined||channelId===null||channelId===''){throw'Missing the re
|
|
|
17828
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(){/**
|
|
17829
17985
|
* OAuth service.
|
|
17830
17986
|
* @module purecloud-platform-client-v2/api/OAuthApi
|
|
17831
|
-
* @version
|
|
17987
|
+
* @version 228.0.0
|
|
17832
17988
|
*//**
|
|
17833
17989
|
* Constructs a new OAuthApi.
|
|
17834
17990
|
* @alias module:purecloud-platform-client-v2/api/OAuthApi
|
|
@@ -17913,7 +18069,7 @@ if(clientId===undefined||clientId===null||clientId===''){throw'Missing the requi
|
|
|
17913
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(){/**
|
|
17914
18070
|
* Objects service.
|
|
17915
18071
|
* @module purecloud-platform-client-v2/api/ObjectsApi
|
|
17916
|
-
* @version
|
|
18072
|
+
* @version 228.0.0
|
|
17917
18073
|
*//**
|
|
17918
18074
|
* Constructs a new ObjectsApi.
|
|
17919
18075
|
* @alias module:purecloud-platform-client-v2/api/ObjectsApi
|
|
@@ -17999,7 +18155,7 @@ if(divisionId===undefined||divisionId===null||divisionId===''){throw'Missing the
|
|
|
17999
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(){/**
|
|
18000
18156
|
* OperationalEvents service.
|
|
18001
18157
|
* @module purecloud-platform-client-v2/api/OperationalEventsApi
|
|
18002
|
-
* @version
|
|
18158
|
+
* @version 228.0.0
|
|
18003
18159
|
*//**
|
|
18004
18160
|
* Constructs a new OperationalEventsApi.
|
|
18005
18161
|
* @alias module:purecloud-platform-client-v2/api/OperationalEventsApi
|
|
@@ -18030,7 +18186,7 @@ if(eventDefinitionId===undefined||eventDefinitionId===null||eventDefinitionId===
|
|
|
18030
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(){/**
|
|
18031
18187
|
* Organization service.
|
|
18032
18188
|
* @module purecloud-platform-client-v2/api/OrganizationApi
|
|
18033
|
-
* @version
|
|
18189
|
+
* @version 228.0.0
|
|
18034
18190
|
*//**
|
|
18035
18191
|
* Constructs a new OrganizationApi.
|
|
18036
18192
|
* @alias module:purecloud-platform-client-v2/api/OrganizationApi
|
|
@@ -18135,7 +18291,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
18135
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(){/**
|
|
18136
18292
|
* OrganizationAuthorization service.
|
|
18137
18293
|
* @module purecloud-platform-client-v2/api/OrganizationAuthorizationApi
|
|
18138
|
-
* @version
|
|
18294
|
+
* @version 228.0.0
|
|
18139
18295
|
*//**
|
|
18140
18296
|
* Constructs a new OrganizationAuthorizationApi.
|
|
18141
18297
|
* @alias module:purecloud-platform-client-v2/api/OrganizationAuthorizationApi
|
|
@@ -18469,7 +18625,7 @@ if(trustorOrgId===undefined||trustorOrgId===null||trustorOrgId===''){throw'Missi
|
|
|
18469
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(){/**
|
|
18470
18626
|
* Outbound service.
|
|
18471
18627
|
* @module purecloud-platform-client-v2/api/OutboundApi
|
|
18472
|
-
* @version
|
|
18628
|
+
* @version 228.0.0
|
|
18473
18629
|
*//**
|
|
18474
18630
|
* Constructs a new OutboundApi.
|
|
18475
18631
|
* @alias module:purecloud-platform-client-v2/api/OutboundApi
|
|
@@ -18639,6 +18795,11 @@ if(messagingCampaignId===undefined||messagingCampaignId===null||messagingCampaig
|
|
|
18639
18795
|
* @param {String} sequenceId Sequence ID
|
|
18640
18796
|
*/},{key:"deleteOutboundSchedulesSequence",value:function deleteOutboundSchedulesSequence(sequenceId){// verify the required parameter 'sequenceId' is set
|
|
18641
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']);}/**
|
|
18642
18803
|
* Delete a dialer campaign sequence.
|
|
18643
18804
|
*
|
|
18644
18805
|
* @param {String} sequenceId Campaign Sequence ID
|
|
@@ -19154,6 +19315,14 @@ if(sequenceId===undefined||sequenceId===null||sequenceId===''){throw'Missing the
|
|
|
19154
19315
|
* Query for a list of dialer sequence schedules.
|
|
19155
19316
|
*
|
|
19156
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']);}/**
|
|
19157
19326
|
* Get a dialer campaign sequence.
|
|
19158
19327
|
*
|
|
19159
19328
|
* @param {String} sequenceId Campaign Sequence ID
|
|
@@ -19586,6 +19755,13 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
19586
19755
|
*/},{key:"putOutboundSchedulesSequence",value:function putOutboundSchedulesSequence(sequenceId,body){// verify the required parameter 'sequenceId' is set
|
|
19587
19756
|
if(sequenceId===undefined||sequenceId===null||sequenceId===''){throw'Missing the required parameter "sequenceId" when calling putOutboundSchedulesSequence';}// verify the required parameter 'body' is set
|
|
19588
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']);}/**
|
|
19589
19765
|
* Update a new campaign sequence.
|
|
19590
19766
|
*
|
|
19591
19767
|
* @param {String} sequenceId Campaign Sequence ID
|
|
@@ -19600,7 +19776,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
19600
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(){/**
|
|
19601
19777
|
* Presence service.
|
|
19602
19778
|
* @module purecloud-platform-client-v2/api/PresenceApi
|
|
19603
|
-
* @version
|
|
19779
|
+
* @version 228.0.0
|
|
19604
19780
|
*//**
|
|
19605
19781
|
* Constructs a new PresenceApi.
|
|
19606
19782
|
* @alias module:purecloud-platform-client-v2/api/PresenceApi
|
|
@@ -19773,7 +19949,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
19773
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(){/**
|
|
19774
19950
|
* ProcessAutomation service.
|
|
19775
19951
|
* @module purecloud-platform-client-v2/api/ProcessAutomationApi
|
|
19776
|
-
* @version
|
|
19952
|
+
* @version 228.0.0
|
|
19777
19953
|
*//**
|
|
19778
19954
|
* Constructs a new ProcessAutomationApi.
|
|
19779
19955
|
* @alias module:purecloud-platform-client-v2/api/ProcessAutomationApi
|
|
@@ -19836,7 +20012,7 @@ if(triggerId===undefined||triggerId===null||triggerId===''){throw'Missing the re
|
|
|
19836
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(){/**
|
|
19837
20013
|
* Quality service.
|
|
19838
20014
|
* @module purecloud-platform-client-v2/api/QualityApi
|
|
19839
|
-
* @version
|
|
20015
|
+
* @version 228.0.0
|
|
19840
20016
|
*//**
|
|
19841
20017
|
* Constructs a new QualityApi.
|
|
19842
20018
|
* @alias module:purecloud-platform-client-v2/api/QualityApi
|
|
@@ -19844,11 +20020,23 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
19844
20020
|
* @param {module:purecloud-platform-client-v2/ApiClient} apiClient Optional API client implementation to use,
|
|
19845
20021
|
* default to {@link module:purecloud-platform-client-v2/ApiClient#instance} if unspecified.
|
|
19846
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']);}/**
|
|
19847
20035
|
* Delete a calibration by id.
|
|
19848
20036
|
*
|
|
19849
20037
|
* @param {String} calibrationId Calibration ID
|
|
19850
20038
|
* @param {String} calibratorId calibratorId
|
|
19851
|
-
*/
|
|
20039
|
+
*/},{key:"deleteQualityCalibration",value:function deleteQualityCalibration(calibrationId,calibratorId){// verify the required parameter 'calibrationId' is set
|
|
19852
20040
|
if(calibrationId===undefined||calibrationId===null||calibrationId===''){throw'Missing the required parameter "calibrationId" when calling deleteQualityCalibration';}// verify the required parameter 'calibratorId' is set
|
|
19853
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']);}/**
|
|
19854
20042
|
* Delete an evaluation
|
|
@@ -20314,7 +20502,7 @@ if(customerSurveyUrl===undefined||customerSurveyUrl===null){throw'Missing the re
|
|
|
20314
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(){/**
|
|
20315
20503
|
* Recording service.
|
|
20316
20504
|
* @module purecloud-platform-client-v2/api/RecordingApi
|
|
20317
|
-
* @version
|
|
20505
|
+
* @version 228.0.0
|
|
20318
20506
|
*//**
|
|
20319
20507
|
* Constructs a new RecordingApi.
|
|
20320
20508
|
* @alias module:purecloud-platform-client-v2/api/RecordingApi
|
|
@@ -20713,7 +20901,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
20713
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(){/**
|
|
20714
20902
|
* ResponseManagement service.
|
|
20715
20903
|
* @module purecloud-platform-client-v2/api/ResponseManagementApi
|
|
20716
|
-
* @version
|
|
20904
|
+
* @version 228.0.0
|
|
20717
20905
|
*//**
|
|
20718
20906
|
* Constructs a new ResponseManagementApi.
|
|
20719
20907
|
* @alias module:purecloud-platform-client-v2/api/ResponseManagementApi
|
|
@@ -20834,7 +21022,7 @@ if(responseAssetId===undefined||responseAssetId===null||responseAssetId===''){th
|
|
|
20834
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(){/**
|
|
20835
21023
|
* Routing service.
|
|
20836
21024
|
* @module purecloud-platform-client-v2/api/RoutingApi
|
|
20837
|
-
* @version
|
|
21025
|
+
* @version 228.0.0
|
|
20838
21026
|
*//**
|
|
20839
21027
|
* Constructs a new RoutingApi.
|
|
20840
21028
|
* @alias module:purecloud-platform-client-v2/api/RoutingApi
|
|
@@ -21890,7 +22078,7 @@ if(userId===undefined||userId===null||userId===''){throw'Missing the required pa
|
|
|
21890
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(){/**
|
|
21891
22079
|
* SCIM service.
|
|
21892
22080
|
* @module purecloud-platform-client-v2/api/SCIMApi
|
|
21893
|
-
* @version
|
|
22081
|
+
* @version 228.0.0
|
|
21894
22082
|
*//**
|
|
21895
22083
|
* Constructs a new SCIMApi.
|
|
21896
22084
|
* @alias module:purecloud-platform-client-v2/api/SCIMApi
|
|
@@ -22115,7 +22303,7 @@ if(userId===undefined||userId===null||userId===''){throw'Missing the required pa
|
|
|
22115
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(){/**
|
|
22116
22304
|
* ScreenRecording service.
|
|
22117
22305
|
* @module purecloud-platform-client-v2/api/ScreenRecordingApi
|
|
22118
|
-
* @version
|
|
22306
|
+
* @version 228.0.0
|
|
22119
22307
|
*//**
|
|
22120
22308
|
* Constructs a new ScreenRecordingApi.
|
|
22121
22309
|
* @alias module:purecloud-platform-client-v2/api/ScreenRecordingApi
|
|
@@ -22130,7 +22318,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
22130
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(){/**
|
|
22131
22319
|
* Scripts service.
|
|
22132
22320
|
* @module purecloud-platform-client-v2/api/ScriptsApi
|
|
22133
|
-
* @version
|
|
22321
|
+
* @version 228.0.0
|
|
22134
22322
|
*//**
|
|
22135
22323
|
* Constructs a new ScriptsApi.
|
|
22136
22324
|
* @alias module:purecloud-platform-client-v2/api/ScriptsApi
|
|
@@ -22276,7 +22464,7 @@ if(scriptId===undefined||scriptId===null||scriptId===''){throw'Missing the requi
|
|
|
22276
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(){/**
|
|
22277
22465
|
* Search service.
|
|
22278
22466
|
* @module purecloud-platform-client-v2/api/SearchApi
|
|
22279
|
-
* @version
|
|
22467
|
+
* @version 228.0.0
|
|
22280
22468
|
*//**
|
|
22281
22469
|
* Constructs a new SearchApi.
|
|
22282
22470
|
* @alias module:purecloud-platform-client-v2/api/SearchApi
|
|
@@ -22346,11 +22534,6 @@ if(q64===undefined||q64===null){throw'Missing the required parameter "q64" when
|
|
|
22346
22534
|
* @param {Array.<String>} opts.expand expand
|
|
22347
22535
|
*/},{key:"getVoicemailSearch",value:function getVoicemailSearch(q64,opts){opts=opts||{};// verify the required parameter 'q64' is set
|
|
22348
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']);}/**
|
|
22349
|
-
* Search resources.
|
|
22350
|
-
*
|
|
22351
|
-
* @param {Object} body Search request options
|
|
22352
|
-
*/},{key:"postAnalyticsConversationsTranscriptsQuery",value:function postAnalyticsConversationsTranscriptsQuery(body){// verify the required parameter 'body' is set
|
|
22353
|
-
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']);}/**
|
|
22354
22537
|
* Search conversations
|
|
22355
22538
|
*
|
|
22356
22539
|
* @param {Object} body Search request options
|
|
@@ -22448,7 +22631,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
22448
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(){/**
|
|
22449
22632
|
* Settings service.
|
|
22450
22633
|
* @module purecloud-platform-client-v2/api/SettingsApi
|
|
22451
|
-
* @version
|
|
22634
|
+
* @version 228.0.0
|
|
22452
22635
|
*//**
|
|
22453
22636
|
* Constructs a new SettingsApi.
|
|
22454
22637
|
* @alias module:purecloud-platform-client-v2/api/SettingsApi
|
|
@@ -22520,7 +22703,7 @@ if(agentId===undefined||agentId===null||agentId===''){throw'Missing the required
|
|
|
22520
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(){/**
|
|
22521
22704
|
* SocialMedia service.
|
|
22522
22705
|
* @module purecloud-platform-client-v2/api/SocialMediaApi
|
|
22523
|
-
* @version
|
|
22706
|
+
* @version 228.0.0
|
|
22524
22707
|
*//**
|
|
22525
22708
|
* Constructs a new SocialMediaApi.
|
|
22526
22709
|
* @alias module:purecloud-platform-client-v2/api/SocialMediaApi
|
|
@@ -22868,7 +23051,7 @@ if(topicId===undefined||topicId===null||topicId===''){throw'Missing the required
|
|
|
22868
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(){/**
|
|
22869
23052
|
* SpeechTextAnalytics service.
|
|
22870
23053
|
* @module purecloud-platform-client-v2/api/SpeechTextAnalyticsApi
|
|
22871
|
-
* @version
|
|
23054
|
+
* @version 228.0.0
|
|
22872
23055
|
*//**
|
|
22873
23056
|
* Constructs a new SpeechTextAnalyticsApi.
|
|
22874
23057
|
* @alias module:purecloud-platform-client-v2/api/SpeechTextAnalyticsApi
|
|
@@ -22893,6 +23076,12 @@ if(dictionaryFeedbackId===undefined||dictionaryFeedbackId===null||dictionaryFeed
|
|
|
22893
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)
|
|
22894
23077
|
*/},{key:"deleteSpeechandtextanalyticsProgram",value:function deleteSpeechandtextanalyticsProgram(programId,opts){opts=opts||{};// verify the required parameter 'programId' is set
|
|
22895
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']);}/**
|
|
22896
23085
|
* Delete All Speech and Text Analytics SentimentFeedback
|
|
22897
23086
|
*
|
|
22898
23087
|
*/},{key:"deleteSpeechandtextanalyticsSentimentfeedback",value:function deleteSpeechandtextanalyticsSentimentfeedback(){return this.apiClient.callApi('/api/v2/speechandtextanalytics/sentimentfeedback','DELETE',{},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
@@ -22948,6 +23137,11 @@ if(communicationId===undefined||communicationId===null||communicationId===''){th
|
|
|
22948
23137
|
*/},{key:"getSpeechandtextanalyticsConversationCommunicationTranscripturls",value:function getSpeechandtextanalyticsConversationCommunicationTranscripturls(conversationId,communicationId){// verify the required parameter 'conversationId' is set
|
|
22949
23138
|
if(conversationId===undefined||conversationId===null||conversationId===''){throw'Missing the required parameter "conversationId" when calling getSpeechandtextanalyticsConversationCommunicationTranscripturls';}// verify the required parameter 'communicationId' is set
|
|
22950
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']);}/**
|
|
22951
23145
|
* Get conversation summaries by conversation id.
|
|
22952
23146
|
*
|
|
22953
23147
|
* @param {String} conversationId The conversation ID of the summaries
|
|
@@ -23024,6 +23218,27 @@ if(jobId===undefined||jobId===null||jobId===''){throw'Missing the required param
|
|
|
23024
23218
|
* @param {String} opts.nextPage The key for listing the next page
|
|
23025
23219
|
* @param {Number} opts.pageSize The page size for the listing (default to 20)
|
|
23026
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']);}/**
|
|
23027
23242
|
* Get the list of Speech and Text Analytics sentiment supported dialects
|
|
23028
23243
|
*
|
|
23029
23244
|
*/},{key:"getSpeechandtextanalyticsSentimentDialects",value:function getSpeechandtextanalyticsSentimentDialects(){return this.apiClient.callApi('/api/v2/speechandtextanalytics/sentiment/dialects','GET',{},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
@@ -23118,6 +23333,12 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
23118
23333
|
* @param {Object} body The publish programs job to create
|
|
23119
23334
|
*/},{key:"postSpeechandtextanalyticsProgramsPublishjobs",value:function postSpeechandtextanalyticsProgramsPublishjobs(body){// verify the required parameter 'body' is set
|
|
23120
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']);}/**
|
|
23121
23342
|
* Create a Speech and Text Analytics SentimentFeedback
|
|
23122
23343
|
*
|
|
23123
23344
|
* @param {Object} body The SentimentFeedback to create
|
|
@@ -23199,7 +23420,7 @@ if(topicId===undefined||topicId===null||topicId===''){throw'Missing the required
|
|
|
23199
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(){/**
|
|
23200
23421
|
* Stations service.
|
|
23201
23422
|
* @module purecloud-platform-client-v2/api/StationsApi
|
|
23202
|
-
* @version
|
|
23423
|
+
* @version 228.0.0
|
|
23203
23424
|
*//**
|
|
23204
23425
|
* Constructs a new StationsApi.
|
|
23205
23426
|
* @alias module:purecloud-platform-client-v2/api/StationsApi
|
|
@@ -23231,7 +23452,7 @@ if(stationId===undefined||stationId===null||stationId===''){throw'Missing the re
|
|
|
23231
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(){/**
|
|
23232
23453
|
* Suggest service.
|
|
23233
23454
|
* @module purecloud-platform-client-v2/api/SuggestApi
|
|
23234
|
-
* @version
|
|
23455
|
+
* @version 228.0.0
|
|
23235
23456
|
*//**
|
|
23236
23457
|
* Constructs a new SuggestApi.
|
|
23237
23458
|
* @alias module:purecloud-platform-client-v2/api/SuggestApi
|
|
@@ -23271,7 +23492,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
23271
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(){/**
|
|
23272
23493
|
* TaskManagement service.
|
|
23273
23494
|
* @module purecloud-platform-client-v2/api/TaskManagementApi
|
|
23274
|
-
* @version
|
|
23495
|
+
* @version 228.0.0
|
|
23275
23496
|
*//**
|
|
23276
23497
|
* Constructs a new TaskManagementApi.
|
|
23277
23498
|
* @alias module:purecloud-platform-client-v2/api/TaskManagementApi
|
|
@@ -23779,7 +24000,7 @@ if(schemaId===undefined||schemaId===null||schemaId===''){throw'Missing the requi
|
|
|
23779
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(){/**
|
|
23780
24001
|
* Teams service.
|
|
23781
24002
|
* @module purecloud-platform-client-v2/api/TeamsApi
|
|
23782
|
-
* @version
|
|
24003
|
+
* @version 228.0.0
|
|
23783
24004
|
*//**
|
|
23784
24005
|
* Constructs a new TeamsApi.
|
|
23785
24006
|
* @alias module:purecloud-platform-client-v2/api/TeamsApi
|
|
@@ -23859,7 +24080,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
23859
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(){/**
|
|
23860
24081
|
* Telephony service.
|
|
23861
24082
|
* @module purecloud-platform-client-v2/api/TelephonyApi
|
|
23862
|
-
* @version
|
|
24083
|
+
* @version 228.0.0
|
|
23863
24084
|
*//**
|
|
23864
24085
|
* Constructs a new TelephonyApi.
|
|
23865
24086
|
* @alias module:purecloud-platform-client-v2/api/TelephonyApi
|
|
@@ -23867,9 +24088,19 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
23867
24088
|
* @param {module:purecloud-platform-client-v2/ApiClient} apiClient Optional API client implementation to use,
|
|
23868
24089
|
* default to {@link module:purecloud-platform-client-v2/ApiClient#instance} if unspecified.
|
|
23869
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']);}/**
|
|
23870
24101
|
* Retrieve the list of AWS regions media can stream through.
|
|
23871
24102
|
*
|
|
23872
|
-
*/
|
|
24103
|
+
*/},{key:"getTelephonyMediaregions",value:function getTelephonyMediaregions(){return this.apiClient.callApi('/api/v2/telephony/mediaregions','GET',{},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
23873
24104
|
* Get a SIP message.
|
|
23874
24105
|
* Get the raw form of the SIP message
|
|
23875
24106
|
* @param {String} conversationId Conversation id
|
|
@@ -23903,10 +24134,24 @@ if(downloadId===undefined||downloadId===null||downloadId===''){throw'Missing the
|
|
|
23903
24134
|
*
|
|
23904
24135
|
* @param {Object} sIPSearchPublicRequest
|
|
23905
24136
|
*/},{key:"postTelephonySiptracesDownload",value:function postTelephonySiptracesDownload(sIPSearchPublicRequest){// verify the required parameter 'sIPSearchPublicRequest' is set
|
|
23906
|
-
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(){/**
|
|
23907
24152
|
* TelephonyProvidersEdge service.
|
|
23908
24153
|
* @module purecloud-platform-client-v2/api/TelephonyProvidersEdgeApi
|
|
23909
|
-
* @version
|
|
24154
|
+
* @version 228.0.0
|
|
23910
24155
|
*//**
|
|
23911
24156
|
* Constructs a new TelephonyProvidersEdgeApi.
|
|
23912
24157
|
* @alias module:purecloud-platform-client-v2/api/TelephonyProvidersEdgeApi
|
|
@@ -24754,7 +24999,7 @@ if(trunkBaseSettingsId===undefined||trunkBaseSettingsId===null||trunkBaseSetting
|
|
|
24754
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(){/**
|
|
24755
25000
|
* Textbots service.
|
|
24756
25001
|
* @module purecloud-platform-client-v2/api/TextbotsApi
|
|
24757
|
-
* @version
|
|
25002
|
+
* @version 228.0.0
|
|
24758
25003
|
*//**
|
|
24759
25004
|
* Constructs a new TextbotsApi.
|
|
24760
25005
|
* @alias module:purecloud-platform-client-v2/api/TextbotsApi
|
|
@@ -24790,7 +25035,7 @@ if(launchRequest===undefined||launchRequest===null){throw'Missing the required p
|
|
|
24790
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(){/**
|
|
24791
25036
|
* Tokens service.
|
|
24792
25037
|
* @module purecloud-platform-client-v2/api/TokensApi
|
|
24793
|
-
* @version
|
|
25038
|
+
* @version 228.0.0
|
|
24794
25039
|
*//**
|
|
24795
25040
|
* Constructs a new TokensApi.
|
|
24796
25041
|
* @alias module:purecloud-platform-client-v2/api/TokensApi
|
|
@@ -24824,7 +25069,7 @@ if(userId===undefined||userId===null||userId===''){throw'Missing the required pa
|
|
|
24824
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(){/**
|
|
24825
25070
|
* Uploads service.
|
|
24826
25071
|
* @module purecloud-platform-client-v2/api/UploadsApi
|
|
24827
|
-
* @version
|
|
25072
|
+
* @version 228.0.0
|
|
24828
25073
|
*//**
|
|
24829
25074
|
* Constructs a new UploadsApi.
|
|
24830
25075
|
* @alias module:purecloud-platform-client-v2/api/UploadsApi
|
|
@@ -24892,7 +25137,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
24892
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(){/**
|
|
24893
25138
|
* Usage service.
|
|
24894
25139
|
* @module purecloud-platform-client-v2/api/UsageApi
|
|
24895
|
-
* @version
|
|
25140
|
+
* @version 228.0.0
|
|
24896
25141
|
*//**
|
|
24897
25142
|
* Constructs a new UsageApi.
|
|
24898
25143
|
* @alias module:purecloud-platform-client-v2/api/UsageApi
|
|
@@ -24914,6 +25159,24 @@ if(clientId===undefined||clientId===null||clientId===''){throw'Missing the requi
|
|
|
24914
25159
|
* @param {String} opts.days Previous number of days to query (default to 7)
|
|
24915
25160
|
*/},{key:"getOauthClientUsageSummary",value:function getOauthClientUsageSummary(clientId,opts){opts=opts||{};// verify the required parameter 'clientId' is set
|
|
24916
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']);}/**
|
|
24917
25180
|
* Get the results of a usage query
|
|
24918
25181
|
*
|
|
24919
25182
|
* @param {String} executionId ID of the query execution
|
|
@@ -24934,6 +25197,18 @@ if(executionId===undefined||executionId===null||executionId===''){throw'Missing
|
|
|
24934
25197
|
*/},{key:"postOauthClientUsageQuery",value:function postOauthClientUsageQuery(clientId,body){// verify the required parameter 'clientId' is set
|
|
24935
25198
|
if(clientId===undefined||clientId===null||clientId===''){throw'Missing the required parameter "clientId" when calling postOauthClientUsageQuery';}// verify the required parameter 'body' is set
|
|
24936
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']);}/**
|
|
24937
25212
|
* Query organization API Usage -
|
|
24938
25213
|
* After calling this method, you will then need to poll for the query results based on the returned execution Id
|
|
24939
25214
|
* @param {Object} body Query
|
|
@@ -24946,7 +25221,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
24946
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(){/**
|
|
24947
25222
|
* UserRecordings service.
|
|
24948
25223
|
* @module purecloud-platform-client-v2/api/UserRecordingsApi
|
|
24949
|
-
* @version
|
|
25224
|
+
* @version 228.0.0
|
|
24950
25225
|
*//**
|
|
24951
25226
|
* Constructs a new UserRecordingsApi.
|
|
24952
25227
|
* @alias module:purecloud-platform-client-v2/api/UserRecordingsApi
|
|
@@ -25003,7 +25278,7 @@ if(recordingId===undefined||recordingId===null||recordingId===''){throw'Missing
|
|
|
25003
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(){/**
|
|
25004
25279
|
* Users service.
|
|
25005
25280
|
* @module purecloud-platform-client-v2/api/UsersApi
|
|
25006
|
-
* @version
|
|
25281
|
+
* @version 228.0.0
|
|
25007
25282
|
*//**
|
|
25008
25283
|
* Constructs a new UsersApi.
|
|
25009
25284
|
* @alias module:purecloud-platform-client-v2/api/UsersApi
|
|
@@ -25011,10 +25286,16 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
25011
25286
|
* @param {module:purecloud-platform-client-v2/ApiClient} apiClient Optional API client implementation to use,
|
|
25012
25287
|
* default to {@link module:purecloud-platform-client-v2/ApiClient#instance} if unspecified.
|
|
25013
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']);}/**
|
|
25014
25295
|
* Delete/cancel an async request
|
|
25015
25296
|
*
|
|
25016
25297
|
* @param {String} jobId jobId
|
|
25017
|
-
*/
|
|
25298
|
+
*/},{key:"deleteAnalyticsUsersDetailsJob",value:function deleteAnalyticsUsersDetailsJob(jobId){// verify the required parameter 'jobId' is set
|
|
25018
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']);}/**
|
|
25019
25300
|
* Delete a grant of a role in a division
|
|
25020
25301
|
*
|
|
@@ -25741,7 +26022,7 @@ if(verifierId===undefined||verifierId===null||verifierId===''){throw'Missing the
|
|
|
25741
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(){/**
|
|
25742
26023
|
* Utilities service.
|
|
25743
26024
|
* @module purecloud-platform-client-v2/api/UtilitiesApi
|
|
25744
|
-
* @version
|
|
26025
|
+
* @version 228.0.0
|
|
25745
26026
|
*//**
|
|
25746
26027
|
* Constructs a new UtilitiesApi.
|
|
25747
26028
|
* @alias module:purecloud-platform-client-v2/api/UtilitiesApi
|
|
@@ -25768,7 +26049,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
25768
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(){/**
|
|
25769
26050
|
* Voicemail service.
|
|
25770
26051
|
* @module purecloud-platform-client-v2/api/VoicemailApi
|
|
25771
|
-
* @version
|
|
26052
|
+
* @version 228.0.0
|
|
25772
26053
|
*//**
|
|
25773
26054
|
* Constructs a new VoicemailApi.
|
|
25774
26055
|
* @alias module:purecloud-platform-client-v2/api/VoicemailApi
|
|
@@ -25930,7 +26211,7 @@ if(userId===undefined||userId===null||userId===''){throw'Missing the required pa
|
|
|
25930
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(){/**
|
|
25931
26212
|
* WebChat service.
|
|
25932
26213
|
* @module purecloud-platform-client-v2/api/WebChatApi
|
|
25933
|
-
* @version
|
|
26214
|
+
* @version 228.0.0
|
|
25934
26215
|
*//**
|
|
25935
26216
|
* Constructs a new WebChatApi.
|
|
25936
26217
|
* @alias module:purecloud-platform-client-v2/api/WebChatApi
|
|
@@ -25945,7 +26226,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
25945
26226
|
*/return _createClass(WebChatApi,[{key:"deleteWebchatDeployment",value:function deleteWebchatDeployment(deploymentId){// verify the required parameter 'deploymentId' is set
|
|
25946
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']);}/**
|
|
25947
26228
|
* Remove a member from a chat conversation
|
|
25948
|
-
* 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/
|
|
25949
26230
|
* @param {String} conversationId conversationId
|
|
25950
26231
|
* @param {String} memberId memberId
|
|
25951
26232
|
* @deprecated
|
|
@@ -25966,7 +26247,7 @@ if(deploymentId===undefined||deploymentId===null||deploymentId===''){throw'Missi
|
|
|
25966
26247
|
* @deprecated
|
|
25967
26248
|
*/},{key:"getWebchatDeployments",value:function getWebchatDeployments(){return this.apiClient.callApi('/api/v2/webchat/deployments','GET',{},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
25968
26249
|
* Get a media request in the conversation
|
|
25969
|
-
* 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/
|
|
25970
26251
|
* @param {String} conversationId conversationId
|
|
25971
26252
|
* @param {String} mediaRequestId mediaRequestId
|
|
25972
26253
|
* @deprecated
|
|
@@ -25974,13 +26255,13 @@ if(deploymentId===undefined||deploymentId===null||deploymentId===''){throw'Missi
|
|
|
25974
26255
|
if(conversationId===undefined||conversationId===null||conversationId===''){throw'Missing the required parameter "conversationId" when calling getWebchatGuestConversationMediarequest';}// verify the required parameter 'mediaRequestId' is set
|
|
25975
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']);}/**
|
|
25976
26257
|
* Get all media requests to the guest in the conversation
|
|
25977
|
-
* 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/
|
|
25978
26259
|
* @param {String} conversationId conversationId
|
|
25979
26260
|
* @deprecated
|
|
25980
26261
|
*/},{key:"getWebchatGuestConversationMediarequests",value:function getWebchatGuestConversationMediarequests(conversationId){// verify the required parameter 'conversationId' is set
|
|
25981
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']);}/**
|
|
25982
26263
|
* Get a web chat conversation member
|
|
25983
|
-
* 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/
|
|
25984
26265
|
* @param {String} conversationId conversationId
|
|
25985
26266
|
* @param {String} memberId memberId
|
|
25986
26267
|
* @deprecated
|
|
@@ -25988,7 +26269,7 @@ if(conversationId===undefined||conversationId===null||conversationId===''){throw
|
|
|
25988
26269
|
if(conversationId===undefined||conversationId===null||conversationId===''){throw'Missing the required parameter "conversationId" when calling getWebchatGuestConversationMember';}// verify the required parameter 'memberId' is set
|
|
25989
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']);}/**
|
|
25990
26271
|
* Get the members of a chat conversation.
|
|
25991
|
-
* 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/
|
|
25992
26273
|
* @param {String} conversationId conversationId
|
|
25993
26274
|
* @param {Object} opts Optional parameters
|
|
25994
26275
|
* @param {Number} opts.pageSize The number of entries to return per page, or omitted for the default. (default to 25)
|
|
@@ -25998,7 +26279,7 @@ if(memberId===undefined||memberId===null||memberId===''){throw'Missing the requi
|
|
|
25998
26279
|
*/},{key:"getWebchatGuestConversationMembers",value:function getWebchatGuestConversationMembers(conversationId,opts){opts=opts||{};// verify the required parameter 'conversationId' is set
|
|
25999
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']);}/**
|
|
26000
26281
|
* Get a web chat conversation message
|
|
26001
|
-
* 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/
|
|
26002
26283
|
* @param {String} conversationId conversationId
|
|
26003
26284
|
* @param {String} messageId messageId
|
|
26004
26285
|
* @deprecated
|
|
@@ -26006,7 +26287,7 @@ if(conversationId===undefined||conversationId===null||conversationId===''){throw
|
|
|
26006
26287
|
if(conversationId===undefined||conversationId===null||conversationId===''){throw'Missing the required parameter "conversationId" when calling getWebchatGuestConversationMessage';}// verify the required parameter 'messageId' is set
|
|
26007
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']);}/**
|
|
26008
26289
|
* Get the messages of a chat conversation.
|
|
26009
|
-
* 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/
|
|
26010
26291
|
* @param {String} conversationId conversationId
|
|
26011
26292
|
* @param {Object} opts Optional parameters
|
|
26012
26293
|
* @param {String} opts.after If available, get the messages chronologically after the id of this message
|
|
@@ -26020,7 +26301,7 @@ if(conversationId===undefined||conversationId===null||conversationId===''){throw
|
|
|
26020
26301
|
*
|
|
26021
26302
|
*/},{key:"getWebchatSettings",value:function getWebchatSettings(){return this.apiClient.callApi('/api/v2/webchat/settings','GET',{},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
26022
26303
|
* Update a media request in the conversation, setting the state to ACCEPTED/DECLINED/ERRORED
|
|
26023
|
-
* 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/
|
|
26024
26305
|
* @param {String} conversationId conversationId
|
|
26025
26306
|
* @param {String} mediaRequestId mediaRequestId
|
|
26026
26307
|
* @param {Object} body Request
|
|
@@ -26036,7 +26317,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
26036
26317
|
*/},{key:"postWebchatDeployments",value:function postWebchatDeployments(body){// verify the required parameter 'body' is set
|
|
26037
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']);}/**
|
|
26038
26319
|
* Send a message in a chat conversation.
|
|
26039
|
-
* 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/
|
|
26040
26321
|
* @param {String} conversationId conversationId
|
|
26041
26322
|
* @param {String} memberId memberId
|
|
26042
26323
|
* @param {Object} body Message
|
|
@@ -26046,7 +26327,7 @@ if(conversationId===undefined||conversationId===null||conversationId===''){throw
|
|
|
26046
26327
|
if(memberId===undefined||memberId===null||memberId===''){throw'Missing the required parameter "memberId" when calling postWebchatGuestConversationMemberMessages';}// verify the required parameter 'body' is set
|
|
26047
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']);}/**
|
|
26048
26329
|
* Send a typing-indicator in a chat conversation.
|
|
26049
|
-
* 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/
|
|
26050
26331
|
* @param {String} conversationId conversationId
|
|
26051
26332
|
* @param {String} memberId memberId
|
|
26052
26333
|
* @deprecated
|
|
@@ -26054,7 +26335,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
26054
26335
|
if(conversationId===undefined||conversationId===null||conversationId===''){throw'Missing the required parameter "conversationId" when calling postWebchatGuestConversationMemberTyping';}// verify the required parameter 'memberId' is set
|
|
26055
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']);}/**
|
|
26056
26337
|
* Create an ACD chat conversation from an external customer.
|
|
26057
|
-
* 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.
|
|
26058
26339
|
* @param {Object} body CreateConversationRequest
|
|
26059
26340
|
* @deprecated
|
|
26060
26341
|
*/},{key:"postWebchatGuestConversations",value:function postWebchatGuestConversations(body){// verify the required parameter 'body' is set
|
|
@@ -26074,7 +26355,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
26074
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(){/**
|
|
26075
26356
|
* WebDeployments service.
|
|
26076
26357
|
* @module purecloud-platform-client-v2/api/WebDeploymentsApi
|
|
26077
|
-
* @version
|
|
26358
|
+
* @version 228.0.0
|
|
26078
26359
|
*//**
|
|
26079
26360
|
* Constructs a new WebDeploymentsApi.
|
|
26080
26361
|
* @alias module:purecloud-platform-client-v2/api/WebDeploymentsApi
|
|
@@ -26207,7 +26488,7 @@ if(deploymentId===undefined||deploymentId===null||deploymentId===''){throw'Missi
|
|
|
26207
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(){/**
|
|
26208
26489
|
* WebMessaging service.
|
|
26209
26490
|
* @module purecloud-platform-client-v2/api/WebMessagingApi
|
|
26210
|
-
* @version
|
|
26491
|
+
* @version 228.0.0
|
|
26211
26492
|
*//**
|
|
26212
26493
|
* Constructs a new WebMessagingApi.
|
|
26213
26494
|
* @alias module:purecloud-platform-client-v2/api/WebMessagingApi
|
|
@@ -26223,7 +26504,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
26223
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(){/**
|
|
26224
26505
|
* Widgets service.
|
|
26225
26506
|
* @module purecloud-platform-client-v2/api/WidgetsApi
|
|
26226
|
-
* @version
|
|
26507
|
+
* @version 228.0.0
|
|
26227
26508
|
*//**
|
|
26228
26509
|
* Constructs a new WidgetsApi.
|
|
26229
26510
|
* @alias module:purecloud-platform-client-v2/api/WidgetsApi
|
|
@@ -26232,29 +26513,29 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
26232
26513
|
* default to {@link module:purecloud-platform-client-v2/ApiClient#instance} if unspecified.
|
|
26233
26514
|
*/function WidgetsApi(apiClient){_classCallCheck(this,WidgetsApi);this.apiClient=apiClient||ApiClient.instance;}/**
|
|
26234
26515
|
* Delete a Widget deployment
|
|
26235
|
-
* 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/.
|
|
26236
26517
|
* @param {String} deploymentId Widget Config Id
|
|
26237
26518
|
* @deprecated
|
|
26238
26519
|
*/return _createClass(WidgetsApi,[{key:"deleteWidgetsDeployment",value:function deleteWidgetsDeployment(deploymentId){// verify the required parameter 'deploymentId' is set
|
|
26239
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']);}/**
|
|
26240
26521
|
* Get a Widget deployment
|
|
26241
|
-
* 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/.
|
|
26242
26523
|
* @param {String} deploymentId Widget Config Id
|
|
26243
26524
|
* @deprecated
|
|
26244
26525
|
*/},{key:"getWidgetsDeployment",value:function getWidgetsDeployment(deploymentId){// verify the required parameter 'deploymentId' is set
|
|
26245
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']);}/**
|
|
26246
26527
|
* List Widget deployments
|
|
26247
|
-
* 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/.
|
|
26248
26529
|
* @deprecated
|
|
26249
26530
|
*/},{key:"getWidgetsDeployments",value:function getWidgetsDeployments(){return this.apiClient.callApi('/api/v2/widgets/deployments','GET',{},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
26250
26531
|
* Create Widget deployment
|
|
26251
|
-
* 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/.
|
|
26252
26533
|
* @param {Object} body Deployment
|
|
26253
26534
|
* @deprecated
|
|
26254
26535
|
*/},{key:"postWidgetsDeployments",value:function postWidgetsDeployments(body){// verify the required parameter 'body' is set
|
|
26255
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']);}/**
|
|
26256
26537
|
* Update a Widget deployment
|
|
26257
|
-
* 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/.
|
|
26258
26539
|
* @param {String} deploymentId Widget Config Id
|
|
26259
26540
|
* @param {Object} body Deployment
|
|
26260
26541
|
* @deprecated
|
|
@@ -26263,7 +26544,7 @@ if(deploymentId===undefined||deploymentId===null||deploymentId===''){throw'Missi
|
|
|
26263
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(){/**
|
|
26264
26545
|
* WorkforceManagement service.
|
|
26265
26546
|
* @module purecloud-platform-client-v2/api/WorkforceManagementApi
|
|
26266
|
-
* @version
|
|
26547
|
+
* @version 228.0.0
|
|
26267
26548
|
*//**
|
|
26268
26549
|
* Constructs a new WorkforceManagementApi.
|
|
26269
26550
|
* @alias module:purecloud-platform-client-v2/api/WorkforceManagementApi
|
|
@@ -26283,6 +26564,15 @@ if(businessUnitId===undefined||businessUnitId===null||businessUnitId===''){throw
|
|
|
26283
26564
|
*/},{key:"deleteWorkforcemanagementBusinessunitActivitycode",value:function deleteWorkforcemanagementBusinessunitActivitycode(businessUnitId,activityCodeId){// verify the required parameter 'businessUnitId' is set
|
|
26284
26565
|
if(businessUnitId===undefined||businessUnitId===null||businessUnitId===''){throw'Missing the required parameter "businessUnitId" when calling deleteWorkforcemanagementBusinessunitActivitycode';}// verify the required parameter 'activityCodeId' is set
|
|
26285
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']);}/**
|
|
26286
26576
|
* Deletes the planning group
|
|
26287
26577
|
*
|
|
26288
26578
|
* @param {String} businessUnitId The ID of the business unit.
|
|
@@ -26473,8 +26763,9 @@ if(jobId===undefined||jobId===null||jobId===''){throw'Missing the required param
|
|
|
26473
26763
|
* @param {String} businessUnitId The ID of the business unit, or 'mine' for the business unit of the logged-in user.
|
|
26474
26764
|
* @param {Object} opts Optional parameters
|
|
26475
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
|
|
26476
26767
|
*/},{key:"getWorkforcemanagementBusinessunit",value:function getWorkforcemanagementBusinessunit(businessUnitId,opts){opts=opts||{};// verify the required parameter 'businessUnitId' is set
|
|
26477
|
-
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']);}/**
|
|
26478
26769
|
* Get an activity code
|
|
26479
26770
|
*
|
|
26480
26771
|
* @param {String} businessUnitId The ID of the business unit, or 'mine' for the business unit of the logged-in user.
|
|
@@ -26536,6 +26827,41 @@ if(tradeId===undefined||tradeId===null||tradeId===''){throw'Missing the required
|
|
|
26536
26827
|
*/},{key:"getWorkforcemanagementBusinessunitAlternativeshiftsTradesSearchJob",value:function getWorkforcemanagementBusinessunitAlternativeshiftsTradesSearchJob(businessUnitId,jobId){// verify the required parameter 'businessUnitId' is set
|
|
26537
26828
|
if(businessUnitId===undefined||businessUnitId===null||businessUnitId===''){throw'Missing the required parameter "businessUnitId" when calling getWorkforcemanagementBusinessunitAlternativeshiftsTradesSearchJob';}// verify the required parameter 'jobId' is set
|
|
26538
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']);}/**
|
|
26539
26865
|
* Get intraday planning groups for the given date
|
|
26540
26866
|
*
|
|
26541
26867
|
* @param {String} businessUnitId The ID of the business unit
|
|
@@ -27090,6 +27416,11 @@ if(jobId===undefined||jobId===null||jobId===''){throw'Missing the required param
|
|
|
27090
27416
|
* @param {String} jobId jobId
|
|
27091
27417
|
*/},{key:"getWorkforcemanagementShrinkageJob",value:function getWorkforcemanagementShrinkageJob(jobId){// verify the required parameter 'jobId' is set
|
|
27092
27418
|
if(jobId===undefined||jobId===null||jobId===''){throw'Missing the required parameter "jobId" when calling getWorkforcemanagementShrinkageJob';}return this.apiClient.callApi('/api/v2/workforcemanagement/shrinkage/jobs/{jobId}','GET',{'jobId':jobId},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
27419
|
+
* Get a list of user schedule adherence records for the requested team
|
|
27420
|
+
*
|
|
27421
|
+
* @param {String} teamId The ID of the team
|
|
27422
|
+
*/},{key:"getWorkforcemanagementTeamAdherence",value:function getWorkforcemanagementTeamAdherence(teamId){// verify the required parameter 'teamId' is set
|
|
27423
|
+
if(teamId===undefined||teamId===null||teamId===''){throw'Missing the required parameter "teamId" when calling getWorkforcemanagementTeamAdherence';}return this.apiClient.callApi('/api/v2/workforcemanagement/teams/{teamId}/adherence','GET',{'teamId':teamId},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
27093
27424
|
* Query the results of time off types job
|
|
27094
27425
|
*
|
|
27095
27426
|
* @param {String} jobId The ID of the job.
|
|
@@ -27151,9 +27482,11 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
27151
27482
|
*
|
|
27152
27483
|
* @param {String} businessUnitId The ID of the business unit, or 'mine' for the business unit of the logged-in user.
|
|
27153
27484
|
* @param {Object} body body
|
|
27154
|
-
|
|
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
|
|
27155
27488
|
if(businessUnitId===undefined||businessUnitId===null||businessUnitId===''){throw'Missing the required parameter "businessUnitId" when calling patchWorkforcemanagementBusinessunit';}// verify the required parameter 'body' is set
|
|
27156
|
-
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']);}/**
|
|
27157
27490
|
* Update an activity code
|
|
27158
27491
|
*
|
|
27159
27492
|
* @param {String} businessUnitId The ID of the business unit, or 'mine' for the business unit of the logged-in user.
|
|
@@ -27179,6 +27512,15 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
27179
27512
|
*/},{key:"patchWorkforcemanagementBusinessunitAlternativeshiftsSettings",value:function patchWorkforcemanagementBusinessunitAlternativeshiftsSettings(businessUnitId,body){// verify the required parameter 'businessUnitId' is set
|
|
27180
27513
|
if(businessUnitId===undefined||businessUnitId===null||businessUnitId===''){throw'Missing the required parameter "businessUnitId" when calling patchWorkforcemanagementBusinessunitAlternativeshiftsSettings';}// verify the required parameter 'body' is set
|
|
27181
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']);}/**
|
|
27182
27524
|
* Updates the planning group
|
|
27183
27525
|
*
|
|
27184
27526
|
* @param {String} businessUnitId The ID of the business unit.
|
|
@@ -27499,6 +27841,63 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
27499
27841
|
*/},{key:"postWorkforcemanagementBusinessunitAlternativeshiftsTradesSearch",value:function postWorkforcemanagementBusinessunitAlternativeshiftsTradesSearch(businessUnitId,body,opts){opts=opts||{};// verify the required parameter 'businessUnitId' is set
|
|
27500
27842
|
if(businessUnitId===undefined||businessUnitId===null||businessUnitId===''){throw'Missing the required parameter "businessUnitId" when calling postWorkforcemanagementBusinessunitAlternativeshiftsTradesSearch';}// verify the required parameter 'body' is set
|
|
27501
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']);}/**
|
|
27502
27901
|
* Get intraday data for the given date for the requested planningGroupIds
|
|
27503
27902
|
*
|
|
27504
27903
|
* @param {String} businessUnitId The ID of the business unit
|
|
@@ -27529,6 +27928,13 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
27529
27928
|
*/},{key:"postWorkforcemanagementBusinessunitStaffinggroups",value:function postWorkforcemanagementBusinessunitStaffinggroups(businessUnitId,body){// verify the required parameter 'businessUnitId' is set
|
|
27530
27929
|
if(businessUnitId===undefined||businessUnitId===null||businessUnitId===''){throw'Missing the required parameter "businessUnitId" when calling postWorkforcemanagementBusinessunitStaffinggroups';}// verify the required parameter 'body' is set
|
|
27531
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']);}/**
|
|
27532
27938
|
* Gets staffing group associations for a list of user IDs
|
|
27533
27939
|
*
|
|
27534
27940
|
* @param {String} businessUnitId The ID of the business unit
|
|
@@ -27745,8 +28151,10 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
27745
28151
|
* Add a new business unit
|
|
27746
28152
|
* It may take a minute or two for a new business unit to be available for api operations
|
|
27747
28153
|
* @param {Object} body body
|
|
27748
|
-
|
|
27749
|
-
|
|
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']);}/**
|
|
27750
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
|
|
27751
28159
|
*
|
|
27752
28160
|
* @param {Object} opts Optional parameters
|
|
@@ -28088,7 +28496,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
28088
28496
|
* </pre>
|
|
28089
28497
|
* </p>
|
|
28090
28498
|
* @module purecloud-platform-client-v2/index
|
|
28091
|
-
* @version
|
|
28499
|
+
* @version 228.0.0
|
|
28092
28500
|
*/var platformClient=/*#__PURE__*/_createClass(function platformClient(){_classCallCheck(this,platformClient);/**
|
|
28093
28501
|
* The ApiClient constructor.
|
|
28094
28502
|
* @property {module:purecloud-platform-client-v2/ApiClient}
|