purecloud-platform-client-v2 254.0.0 → 255.1.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 +815 -95
- package/dist/web-amd/purecloud-platform-client-v2.js +816 -95
- package/dist/web-amd/purecloud-platform-client-v2.min.js +1 -1
- package/dist/web-cjs/bundle.js +285 -94
- package/dist/web-cjs/purecloud-platform-client-v2.js +292 -2913
- package/dist/web-cjs/purecloud-platform-client-v2.min.js +1 -1
- package/index.d.ts +568 -50
- package/package.json +1 -2
- package/src/purecloud-platform-client-v2/ApiClient.js +5 -5
- package/src/purecloud-platform-client-v2/PureCloudRegionHosts.js +1 -0
- package/src/purecloud-platform-client-v2/api/AIStudioApi.js +1 -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 +1 -1
- package/src/purecloud-platform-client-v2/api/ArchitectApi.js +64 -1
- package/src/purecloud-platform-client-v2/api/AssistantCopilotVariationsApi.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/BackgroundAssistantApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/BillingApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/BusinessRulesApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/CarrierServicesApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/CaseManagementApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/ChatApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/CoachingApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/ContentManagementApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/ConversationsApi.js +1 -1
- 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 +2 -2
- package/src/purecloud-platform-client-v2/api/FaxApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/FlowsApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/GamificationApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/GeneralDataProtectionRegulationApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/GeolocationApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/GreetingsApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/GroupsApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/IdentityProviderApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/InfrastructureAsCodeApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/IntegrationsApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/IntentsApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/JourneyApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/KnowledgeApi.js +1 -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 +1 -1
- package/src/purecloud-platform-client-v2/api/PresenceApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/ProcessAutomationApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/QualityApi.js +1 -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/ScriptsApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/SearchApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/SettingsApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/SocialMediaApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/SpeechTextAnalyticsApi.js +2 -2
- package/src/purecloud-platform-client-v2/api/StationsApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/SuggestApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/TaskManagementApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/TeamsApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/TelephonyApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/TelephonyProvidersEdgeApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/TextbotsApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/TokensApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/UploadsApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/UsageApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/UserRecordingsApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/UsersApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/UsersRulesApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/UtilitiesApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/VoicemailApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/WebChatApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/WebDeploymentsApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/WebMessagingApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/WidgetsApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/WorkforceManagementApi.js +710 -53
- package/src/purecloud-platform-client-v2/index.js +1 -1
package/dist/web-cjs/bundle.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
'use strict';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 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 _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 _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 _wrapNativeSuper(t){var r="function"==typeof Map?new Map():void 0;return _wrapNativeSuper=function _wrapNativeSuper(t){if(null===t||!_isNativeFunction(t))return t;if("function"!=typeof t)throw new TypeError("Super expression must either be null or a function");if(void 0!==r){if(r.has(t))return r.get(t);r.set(t,Wrapper);}function Wrapper(){return _construct(t,arguments,_getPrototypeOf(this).constructor);}return Wrapper.prototype=Object.create(t.prototype,{constructor:{value:Wrapper,enumerable:!1,writable:!0,configurable:!0}}),_setPrototypeOf(Wrapper,t);},_wrapNativeSuper(t);}function _construct(t,e,r){if(_isNativeReflectConstruct())return Reflect.construct.apply(null,arguments);var o=[null];o.push.apply(o,e);var p=new(t.bind.apply(t,o))();return r&&_setPrototypeOf(p,r.prototype),p;}function _isNativeReflectConstruct(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}));}catch(t){}return(_isNativeReflectConstruct=function _isNativeReflectConstruct(){return!!t;})();}function _isNativeFunction(t){try{return-1!==Function.toString.call(t).indexOf("[native code]");}catch(n){return"function"==typeof t;}}function _setPrototypeOf(t,e){return _setPrototypeOf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t;},_setPrototypeOf(t,e);}function _getPrototypeOf(t){return _getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t);},_getPrototypeOf(t);}function _toConsumableArray(r){return _arrayWithoutHoles(r)||_iterableToArray(r)||_unsupportedIterableToArray(r)||_nonIterableSpread();}function _nonIterableSpread(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");}function _iterableToArray(r){if("undefined"!=typeof Symbol&&null!=r[Symbol.iterator]||null!=r["@@iterator"])return Array.from(r);}function _arrayWithoutHoles(r){if(Array.isArray(r))return _arrayLikeToArray(r);}function _createForOfIteratorHelper(r,e){var t="undefined"!=typeof Symbol&&r[Symbol.iterator]||r["@@iterator"];if(!t){if(Array.isArray(r)||(t=_unsupportedIterableToArray(r))||e&&r&&"number"==typeof r.length){t&&(r=t);var _n=0,F=function F(){};return{s:F,n:function n(){return _n>=r.length?{done:!0}:{done:!1,value:r[_n++]};},e:function e(r){throw r;},f:F};}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");}var o,a=!0,u=!1;return{s:function s(){t=t.call(r);},n:function n(){var r=t.next();return a=r.done,r;},e:function e(r){u=!0,o=r;},f:function f(){try{a||null==t["return"]||t["return"]();}finally{if(u)throw o;}}};}function _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 t,n;function resume(t,n){try{var r=e[t](n),o=r.value,u=o instanceof _OverloadYield;Promise.resolve(u?o.v:o).then(function(n){if(u){var i="return"===t&&o.k?t:"next";if(!o.k||n.done)return resume(i,n);n=e[i](n).value;}settle(!!r.done,n);},function(e){resume("throw",e);});}catch(e){settle(2,e);}}function settle(e,r){2===e?t.reject(r):t.resolve({value:r,done:e}),(t=t.next)?resume(t.key,t.arg):n=null;}this._invoke=function(e,r){return new Promise(function(o,u){var i={key:e,arg:r,resolve:o,reject:u,next:null};n?n=n.next=i:(t=n=i,resume(e,r));});},"function"!=typeof e["return"]&&(this["return"]=void 0);}AsyncGenerator.prototype["function"==typeof Symbol&&Symbol.asyncIterator||"@@asyncIterator"]=function(){return this;},AsyncGenerator.prototype.next=function(e){return this._invoke("next",e);},AsyncGenerator.prototype["throw"]=function(e){return this._invoke("throw",e);},AsyncGenerator.prototype["return"]=function(e){return this._invoke("return",e);};function _awaitAsyncGenerator(e){return new _OverloadYield(e,0);}function _asyncGeneratorDelegate(t){var e={},n=!1;function pump(e,r){return n=!0,r=new Promise(function(n){n(t[e](r));}),{done:!1,value:new _OverloadYield(r,1)};}return e["undefined"!=typeof Symbol&&Symbol.iterator||"@@iterator"]=function(){return this;},e.next=function(t){return n?(n=!1,t):pump("next",t);},"function"==typeof t["throw"]&&(e["throw"]=function(t){if(n)throw n=!1,t;return pump("throw",t);}),"function"==typeof t["return"]&&(e["return"]=function(t){return n?(n=!1,t):pump("return",t);}),e;}function _OverloadYield(e,d){this.v=e,this.k=d;}function _asyncIterator(r){var n,t,o,e=2;for("undefined"!=typeof Symbol&&(t=Symbol.asyncIterator,o=Symbol.iterator);e--;){if(t&&null!=(n=r[t]))return n.call(r);if(o&&null!=(n=r[o]))return new AsyncFromSyncIterator(n.call(r));t="@@asyncIterator",o="@@iterator";}throw new TypeError("Object is not async iterable");}function AsyncFromSyncIterator(r){function AsyncFromSyncIteratorContinuation(r){if(Object(r)!==r)return Promise.reject(new TypeError(r+" is not an object."));var n=r.done;return Promise.resolve(r.value).then(function(r){return{value:r,done:n};});}return AsyncFromSyncIterator=function AsyncFromSyncIterator(r){this.s=r,this.n=r.next;},AsyncFromSyncIterator.prototype={s:null,n:null,next:function next(){return AsyncFromSyncIteratorContinuation(this.n.apply(this.s,arguments));},"return":function _return(r){var n=this.s["return"];return void 0===n?Promise.resolve({value:r,done:!0}):AsyncFromSyncIteratorContinuation(n.apply(this.s,arguments));},"throw":function _throw(r){var n=this.s["return"];return void 0===n?Promise.reject(r):AsyncFromSyncIteratorContinuation(n.apply(this.s,arguments));}},new AsyncFromSyncIterator(r);}var qs=require('qs');function _interopDefaultLegacy(e){return e&&_typeof(e)==='object'&&'default'in e?e:{'default':e};}var qs__default=/*#__PURE__*/_interopDefaultLegacy(qs);var PureCloudRegionHosts={us_east_1:'mypurecloud.com',eu_west_1:'mypurecloud.ie',ap_southeast_2:'mypurecloud.com.au',ap_northeast_1:'mypurecloud.jp',eu_central_1:'mypurecloud.de',us_west_2:'usw2.pure.cloud',ca_central_1:'cac1.pure.cloud',ap_northeast_2:'apne2.pure.cloud',eu_west_2:'euw2.pure.cloud',ap_south_1:'aps1.pure.cloud',us_east_2:'use2.us-gov-pure.cloud',sa_east_1:'sae1.pure.cloud',me_central_1:'mec1.pure.cloud',ap_northeast_3:'apne3.pure.cloud',eu_central_2:'euc2.pure.cloud',mx_central_1:'mxc1.pure.cloud',ap_southeast_1:'apse1.pure.cloud'};var global$1=typeof global!=="undefined"?global:typeof self!=="undefined"?self:typeof window!=="undefined"?window:{};// shim for using process in browser
|
|
1
|
+
'use strict';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 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 _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 _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 _wrapNativeSuper(t){var r="function"==typeof Map?new Map():void 0;return _wrapNativeSuper=function _wrapNativeSuper(t){if(null===t||!_isNativeFunction(t))return t;if("function"!=typeof t)throw new TypeError("Super expression must either be null or a function");if(void 0!==r){if(r.has(t))return r.get(t);r.set(t,Wrapper);}function Wrapper(){return _construct(t,arguments,_getPrototypeOf(this).constructor);}return Wrapper.prototype=Object.create(t.prototype,{constructor:{value:Wrapper,enumerable:!1,writable:!0,configurable:!0}}),_setPrototypeOf(Wrapper,t);},_wrapNativeSuper(t);}function _construct(t,e,r){if(_isNativeReflectConstruct())return Reflect.construct.apply(null,arguments);var o=[null];o.push.apply(o,e);var p=new(t.bind.apply(t,o))();return r&&_setPrototypeOf(p,r.prototype),p;}function _isNativeReflectConstruct(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}));}catch(t){}return(_isNativeReflectConstruct=function _isNativeReflectConstruct(){return!!t;})();}function _isNativeFunction(t){try{return-1!==Function.toString.call(t).indexOf("[native code]");}catch(n){return"function"==typeof t;}}function _setPrototypeOf(t,e){return _setPrototypeOf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t;},_setPrototypeOf(t,e);}function _getPrototypeOf(t){return _getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t);},_getPrototypeOf(t);}function _toConsumableArray(r){return _arrayWithoutHoles(r)||_iterableToArray(r)||_unsupportedIterableToArray(r)||_nonIterableSpread();}function _nonIterableSpread(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");}function _iterableToArray(r){if("undefined"!=typeof Symbol&&null!=r[Symbol.iterator]||null!=r["@@iterator"])return Array.from(r);}function _arrayWithoutHoles(r){if(Array.isArray(r))return _arrayLikeToArray(r);}function _createForOfIteratorHelper(r,e){var t="undefined"!=typeof Symbol&&r[Symbol.iterator]||r["@@iterator"];if(!t){if(Array.isArray(r)||(t=_unsupportedIterableToArray(r))||e&&r&&"number"==typeof r.length){t&&(r=t);var _n=0,F=function F(){};return{s:F,n:function n(){return _n>=r.length?{done:!0}:{done:!1,value:r[_n++]};},e:function e(r){throw r;},f:F};}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");}var o,a=!0,u=!1;return{s:function s(){t=t.call(r);},n:function n(){var r=t.next();return a=r.done,r;},e:function e(r){u=!0,o=r;},f:function f(){try{a||null==t["return"]||t["return"]();}finally{if(u)throw o;}}};}function _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 t,n;function resume(t,n){try{var r=e[t](n),o=r.value,u=o instanceof _OverloadYield;Promise.resolve(u?o.v:o).then(function(n){if(u){var i="return"===t&&o.k?t:"next";if(!o.k||n.done)return resume(i,n);n=e[i](n).value;}settle(!!r.done,n);},function(e){resume("throw",e);});}catch(e){settle(2,e);}}function settle(e,r){2===e?t.reject(r):t.resolve({value:r,done:e}),(t=t.next)?resume(t.key,t.arg):n=null;}this._invoke=function(e,r){return new Promise(function(o,u){var i={key:e,arg:r,resolve:o,reject:u,next:null};n?n=n.next=i:(t=n=i,resume(e,r));});},"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 PureCloudRegionHosts={us_east_1:'mypurecloud.com',eu_west_1:'mypurecloud.ie',ap_southeast_2:'mypurecloud.com.au',ap_northeast_1:'mypurecloud.jp',eu_central_1:'mypurecloud.de',us_west_2:'usw2.pure.cloud',ca_central_1:'cac1.pure.cloud',ap_northeast_2:'apne2.pure.cloud',eu_west_2:'euw2.pure.cloud',ap_south_1:'aps1.pure.cloud',us_east_2:'use2.us-gov-pure.cloud',sa_east_1:'sae1.pure.cloud',me_central_1:'mec1.pure.cloud',ap_northeast_3:'apne3.pure.cloud',eu_central_2:'euc2.pure.cloud',mx_central_1:'mxc1.pure.cloud',ap_southeast_1:'apse1.pure.cloud',eusc_de_east_1:'edee1.eusc-pure.cloud'};var global$1=typeof global!=="undefined"?global:typeof self!=="undefined"?self:typeof window!=="undefined"?window:{};// shim for using process in browser
|
|
2
2
|
// based off https://github.com/defunctzombie/node-process/blob/master/browser.js
|
|
3
3
|
function defaultSetTimout(){throw new Error('setTimeout has not been defined');}function defaultClearTimeout(){throw new Error('clearTimeout has not been defined');}var cachedSetTimeout=defaultSetTimout;var cachedClearTimeout=defaultClearTimeout;if(typeof global$1.setTimeout==='function'){cachedSetTimeout=setTimeout;}if(typeof global$1.clearTimeout==='function'){cachedClearTimeout=clearTimeout;}function runTimeout(fun){if(cachedSetTimeout===setTimeout){//normal enviroments in sane situations
|
|
4
4
|
return setTimeout(fun,0);}// if setTimeout wasn't available but was latter defined
|
|
@@ -1082,7 +1082,7 @@ if(env)this.environment=env;else this.environment=this.host?this.host:'mypureclo
|
|
|
1082
1082
|
this.environment=this.environment.replace(/\/+$/,'');// Strip protocol and subdomain
|
|
1083
1083
|
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];}}}]);}();/**
|
|
1084
1084
|
* @module purecloud-platform-client-v2/ApiClient
|
|
1085
|
-
* @version
|
|
1085
|
+
* @version 255.1.0
|
|
1086
1086
|
*/var ApiClient=/*#__PURE__*/function(){/**
|
|
1087
1087
|
* Manages low level client-server communications, parameter marshalling, etc. There should not be any need for an
|
|
1088
1088
|
* application to use this class directly - the *Api and model classes provide the public API for the service. The
|
|
@@ -1237,7 +1237,7 @@ if(error.response){_this8.config.logger.log('error',error.response.status,'POST'
|
|
|
1237
1237
|
* @param {string} codeVerifier - code verifier used to generate the code challenge
|
|
1238
1238
|
* @param {string} authCode - Authorization code
|
|
1239
1239
|
* @param {string} redirectUri - Authorized redirect URI for your Code Authorization client
|
|
1240
|
-
*/},{key:"authorizePKCEGrant",value:function authorizePKCEGrant(clientId,codeVerifier,authCode,redirectUri){var _this9=this;this.clientId=clientId;var loginBasePath=this.config.getConfUrl('login',"https://login.".concat(this.config.environment));return new Promise(function(resolve,reject){var headers={'Content-Type':'application/x-www-form-urlencoded'};var data=
|
|
1240
|
+
*/},{key:"authorizePKCEGrant",value:function authorizePKCEGrant(clientId,codeVerifier,authCode,redirectUri){var _this9=this;this.clientId=clientId;var loginBasePath=this.config.getConfUrl('login',"https://login.".concat(this.config.environment));return new Promise(function(resolve,reject){var headers={'Content-Type':'application/x-www-form-urlencoded'};var data=new URLSearchParams({grant_type:'authorization_code',code:authCode,code_verifier:codeVerifier,client_id:clientId,redirect_uri:redirectUri}).toString();var requestOptions=new HttpRequestOptions("".concat(loginBasePath,"/oauth/token"),"POST",headers,null,data,_this9.timeout);var httpClient=_this9.getHttpClient();var bodyParam={grant_type:'authorization_code',code:authCode,code_verifier:codeVerifier,client_id:clientId,redirect_uri:redirectUri};// Handle response
|
|
1241
1241
|
httpClient.request(requestOptions).then(function(response){// Logging
|
|
1242
1242
|
_this9.config.logger.log('trace',response.status,'POST',"".concat(loginBasePath,"/oauth/token"),requestOptions.headers,response.headers,bodyParam,undefined);_this9.config.logger.log('debug',response.status,'POST',"".concat(loginBasePath,"/oauth/token"),requestOptions.headers,undefined,bodyParam,undefined);// Get access token from response
|
|
1243
1243
|
var access_token=response.data.access_token;var optsSettings={accessToken:access_token};if(response.data['expires_in']!==null&&response.data['expires_in']!==undefined){optsSettings.tokenExpiryTime=new Date().getTime()+response.data['expires_in']*1000;optsSettings.tokenExpiryTimeString=new Date(optsSettings.tokenExpiryTime).toUTCString();}_this9._saveSettings(optsSettings);// Return auth data
|
|
@@ -1317,7 +1317,7 @@ if(error.response){_this11.config.logger.log('error',error.response.status,'POST
|
|
|
1317
1317
|
* @description Utility function to create the request for auth requests
|
|
1318
1318
|
* @param {string} encodedData - Base64 encoded client and clientSecret pair
|
|
1319
1319
|
* @param {object} data - data to url form encode
|
|
1320
|
-
*/},{key:"_formAuthRequest",value:function _formAuthRequest(encodedData,data){var loginBasePath=this.config.getConfUrl('login',"https://login.".concat(this.config.environment));var headers={'Authorization':'Basic '+encodedData,'Content-Type':'application/x-www-form-urlencoded'};var requestOptions=new HttpRequestOptions("".concat(loginBasePath,"/oauth/token"),"POST",headers,null,
|
|
1320
|
+
*/},{key:"_formAuthRequest",value:function _formAuthRequest(encodedData,data){var loginBasePath=this.config.getConfUrl('login',"https://login.".concat(this.config.environment));var headers={'Authorization':'Basic '+encodedData,'Content-Type':'application/x-www-form-urlencoded'};var queryData=new URLSearchParams(data).toString();var requestOptions=new HttpRequestOptions("".concat(loginBasePath,"/oauth/token"),"POST",headers,null,queryData,this.timeout);var httpClient=this.getHttpClient();return httpClient.request(requestOptions);}/**
|
|
1321
1321
|
* @description Handles an expired access token. Only available in node apps.
|
|
1322
1322
|
* @param {string} statusCode - The status code of a request
|
|
1323
1323
|
*/},{key:"_handleExpiredAccessToken",value:function _handleExpiredAccessToken(){var _this12=this;return new Promise(function(resolve,reject){if(typeof window!=='undefined'){reject(new Error('This method is not supported in a browser.'));return;}if(!_this12.refreshInProgress){_this12.refreshInProgress=true;_this12.refreshCodeAuthorizationGrant(_this12.clientId,_this12.clientSecret,_this12.authData.refreshToken).then(function(){_this12.refreshInProgress=false;resolve();})["catch"](function(err){// Handle failure response
|
|
@@ -1451,7 +1451,7 @@ resolve(data);})["catch"](function(error){var data=error;if(error.response&&erro
|
|
|
1451
1451
|
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(){/**
|
|
1452
1452
|
* AIStudio service.
|
|
1453
1453
|
* @module purecloud-platform-client-v2/api/AIStudioApi
|
|
1454
|
-
* @version
|
|
1454
|
+
* @version 255.1.0
|
|
1455
1455
|
*//**
|
|
1456
1456
|
* Constructs a new AIStudioApi.
|
|
1457
1457
|
* @alias module:purecloud-platform-client-v2/api/AIStudioApi
|
|
@@ -1642,7 +1642,7 @@ if(summarySettingId===undefined||summarySettingId===null||summarySettingId==='')
|
|
|
1642
1642
|
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling putConversationsSummariesSetting';}return this.apiClient.callApi('/api/v2/conversations/summaries/settings/{summarySettingId}','PUT',{'summarySettingId':summarySettingId},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json'],opts['customHeaders']);}}]);}();var AgentAssistantsApi=/*#__PURE__*/function(){/**
|
|
1643
1643
|
* AgentAssistants service.
|
|
1644
1644
|
* @module purecloud-platform-client-v2/api/AgentAssistantsApi
|
|
1645
|
-
* @version
|
|
1645
|
+
* @version 255.1.0
|
|
1646
1646
|
*//**
|
|
1647
1647
|
* Constructs a new AgentAssistantsApi.
|
|
1648
1648
|
* @alias module:purecloud-platform-client-v2/api/AgentAssistantsApi
|
|
@@ -1868,7 +1868,7 @@ if(agentChecklistId===undefined||agentChecklistId===null||agentChecklistId==='')
|
|
|
1868
1868
|
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling putAssistantsAgentchecklist';}return this.apiClient.callApi('/api/v2/assistants/agentchecklists/{agentChecklistId}','PUT',{'agentChecklistId':agentChecklistId},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json'],opts['customHeaders']);}}]);}();var AgentCopilotApi=/*#__PURE__*/function(){/**
|
|
1869
1869
|
* AgentCopilot service.
|
|
1870
1870
|
* @module purecloud-platform-client-v2/api/AgentCopilotApi
|
|
1871
|
-
* @version
|
|
1871
|
+
* @version 255.1.0
|
|
1872
1872
|
*//**
|
|
1873
1873
|
* Constructs a new AgentCopilotApi.
|
|
1874
1874
|
* @alias module:purecloud-platform-client-v2/api/AgentCopilotApi
|
|
@@ -1900,7 +1900,7 @@ if(assistantId===undefined||assistantId===null||assistantId===''){throw'Missing
|
|
|
1900
1900
|
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'],opts['customHeaders']);}}]);}();var AgentUIApi=/*#__PURE__*/function(){/**
|
|
1901
1901
|
* AgentUI service.
|
|
1902
1902
|
* @module purecloud-platform-client-v2/api/AgentUIApi
|
|
1903
|
-
* @version
|
|
1903
|
+
* @version 255.1.0
|
|
1904
1904
|
*//**
|
|
1905
1905
|
* Constructs a new AgentUIApi.
|
|
1906
1906
|
* @alias module:purecloud-platform-client-v2/api/AgentUIApi
|
|
@@ -1942,7 +1942,7 @@ if(agentId===undefined||agentId===null||agentId===''){throw'Missing the required
|
|
|
1942
1942
|
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'],opts['customHeaders']);}}]);}();var AlertingApi=/*#__PURE__*/function(){/**
|
|
1943
1943
|
* Alerting service.
|
|
1944
1944
|
* @module purecloud-platform-client-v2/api/AlertingApi
|
|
1945
|
-
* @version
|
|
1945
|
+
* @version 255.1.0
|
|
1946
1946
|
*//**
|
|
1947
1947
|
* Constructs a new AlertingApi.
|
|
1948
1948
|
* @alias module:purecloud-platform-client-v2/api/AlertingApi
|
|
@@ -2056,7 +2056,7 @@ if(ruleId===undefined||ruleId===null||ruleId===''){throw'Missing the required pa
|
|
|
2056
2056
|
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'],opts['customHeaders']);}}]);}();var AnalyticsApi=/*#__PURE__*/function(){/**
|
|
2057
2057
|
* Analytics service.
|
|
2058
2058
|
* @module purecloud-platform-client-v2/api/AnalyticsApi
|
|
2059
|
-
* @version
|
|
2059
|
+
* @version 255.1.0
|
|
2060
2060
|
*//**
|
|
2061
2061
|
* Constructs a new AnalyticsApi.
|
|
2062
2062
|
* @alias module:purecloud-platform-client-v2/api/AnalyticsApi
|
|
@@ -3117,7 +3117,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
3117
3117
|
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'],opts['customHeaders']);}}]);}();var ArchitectApi=/*#__PURE__*/function(){/**
|
|
3118
3118
|
* Architect service.
|
|
3119
3119
|
* @module purecloud-platform-client-v2/api/ArchitectApi
|
|
3120
|
-
* @version
|
|
3120
|
+
* @version 255.1.0
|
|
3121
3121
|
*//**
|
|
3122
3122
|
* Constructs a new ArchitectApi.
|
|
3123
3123
|
* @alias module:purecloud-platform-client-v2/api/ArchitectApi
|
|
@@ -4023,6 +4023,15 @@ if(flowOutcomeId===undefined||flowOutcomeId===null||flowOutcomeId===''){throw'Mi
|
|
|
4023
4023
|
* @param {Array.<String>} opts.divisionId division ID(s)
|
|
4024
4024
|
* @param {Object.<string, string>} opts.customHeaders Per-request HTTP headers
|
|
4025
4025
|
*/},{key:"getFlowsOutcomesDivisionviews",value:function getFlowsOutcomesDivisionviews(opts){opts=opts||{};return this.apiClient.callApi('/api/v2/flows/outcomes/divisionviews','GET',{},{'pageNumber':opts['pageNumber'],'pageSize':opts['pageSize'],'sortBy':opts['sortBy'],'sortOrder':opts['sortOrder'],'id':this.apiClient.buildCollectionParam(opts['id'],'multi'),'name':opts['name'],'divisionId':this.apiClient.buildCollectionParam(opts['divisionId'],'multi')},{},{},null,['PureCloud OAuth'],['application/json'],['application/json'],opts['customHeaders']);}/**
|
|
4026
|
+
* Fetch Architect Validate Job Status
|
|
4027
|
+
*
|
|
4028
|
+
* @param {String} jobId Job ID
|
|
4029
|
+
* @param {Object} opts Optional parameters
|
|
4030
|
+
* @param {Array.<String>} opts.expand Which fields, if any, to expand.
|
|
4031
|
+
* @param {Object.<string, string>} opts.customHeaders Per-request HTTP headers
|
|
4032
|
+
* getFlowsValidateJob is a preview method and is subject to both breaking and non-breaking changes at any time without notice
|
|
4033
|
+
*/},{key:"getFlowsValidateJob",value:function getFlowsValidateJob(jobId,opts){opts=opts||{};// verify the required parameter 'jobId' is set
|
|
4034
|
+
if(jobId===undefined||jobId===null||jobId===''){throw'Missing the required parameter "jobId" when calling getFlowsValidateJob';}return this.apiClient.callApi('/api/v2/flows/validate/jobs/{jobId}','GET',{'jobId':jobId},{'expand':this.apiClient.buildCollectionParam(opts['expand'],'multi')},{},{},null,['PureCloud OAuth'],['application/json'],['application/json'],opts['customHeaders']);}/**
|
|
4026
4035
|
* Updates a grammar
|
|
4027
4036
|
*
|
|
4028
4037
|
* @param {String} grammarId grammar ID
|
|
@@ -4346,6 +4355,14 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
4346
4355
|
* @param {Object} opts.body
|
|
4347
4356
|
* @param {Object.<string, string>} opts.customHeaders Per-request HTTP headers
|
|
4348
4357
|
*/},{key:"postFlowsOutcomes",value:function postFlowsOutcomes(opts){opts=opts||{};return this.apiClient.callApi('/api/v2/flows/outcomes','POST',{},{},{},{},opts['body'],['PureCloud OAuth'],['application/json'],['application/json'],opts['customHeaders']);}/**
|
|
4358
|
+
* Register Architect Validate Job
|
|
4359
|
+
*
|
|
4360
|
+
* @param {Object} body
|
|
4361
|
+
* @param {Object} opts Optional parameters
|
|
4362
|
+
* @param {Object.<string, string>} opts.customHeaders Per-request HTTP headers
|
|
4363
|
+
* postFlowsValidateJobs is a preview method and is subject to both breaking and non-breaking changes at any time without notice
|
|
4364
|
+
*/},{key:"postFlowsValidateJobs",value:function postFlowsValidateJobs(body,opts){opts=opts||{};// verify the required parameter 'body' is set
|
|
4365
|
+
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling postFlowsValidateJobs';}return this.apiClient.callApi('/api/v2/flows/validate/jobs','POST',{},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json'],opts['customHeaders']);}/**
|
|
4349
4366
|
* Updates a emergency group by ID
|
|
4350
4367
|
*
|
|
4351
4368
|
* @param {String} emergencyGroupId Emergency group ID
|
|
@@ -4487,7 +4504,7 @@ if(milestoneId===undefined||milestoneId===null||milestoneId===''){throw'Missing
|
|
|
4487
4504
|
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'],opts['customHeaders']);}}]);}();var AssistantCopilotVariationsApi=/*#__PURE__*/function(){/**
|
|
4488
4505
|
* AssistantCopilotVariations service.
|
|
4489
4506
|
* @module purecloud-platform-client-v2/api/AssistantCopilotVariationsApi
|
|
4490
|
-
* @version
|
|
4507
|
+
* @version 255.1.0
|
|
4491
4508
|
*//**
|
|
4492
4509
|
* Constructs a new AssistantCopilotVariationsApi.
|
|
4493
4510
|
* @alias module:purecloud-platform-client-v2/api/AssistantCopilotVariationsApi
|
|
@@ -4542,7 +4559,7 @@ if(variationId===undefined||variationId===null||variationId===''){throw'Missing
|
|
|
4542
4559
|
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling putAssistantVariation';}return this.apiClient.callApi('/api/v2/assistants/{assistantId}/variations/{variationId}','PUT',{'assistantId':assistantId,'variationId':variationId},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json'],opts['customHeaders']);}}]);}();var AuditApi=/*#__PURE__*/function(){/**
|
|
4543
4560
|
* Audit service.
|
|
4544
4561
|
* @module purecloud-platform-client-v2/api/AuditApi
|
|
4545
|
-
* @version
|
|
4562
|
+
* @version 255.1.0
|
|
4546
4563
|
*//**
|
|
4547
4564
|
* Constructs a new AuditApi.
|
|
4548
4565
|
* @alias module:purecloud-platform-client-v2/api/AuditApi
|
|
@@ -4603,7 +4620,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
4603
4620
|
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'],opts['customHeaders']);}}]);}();var AuthorizationApi=/*#__PURE__*/function(){/**
|
|
4604
4621
|
* Authorization service.
|
|
4605
4622
|
* @module purecloud-platform-client-v2/api/AuthorizationApi
|
|
4606
|
-
* @version
|
|
4623
|
+
* @version 255.1.0
|
|
4607
4624
|
*//**
|
|
4608
4625
|
* Constructs a new AuthorizationApi.
|
|
4609
4626
|
* @alias module:purecloud-platform-client-v2/api/AuthorizationApi
|
|
@@ -5121,7 +5138,7 @@ if(subjectId===undefined||subjectId===null||subjectId===''){throw'Missing the re
|
|
|
5121
5138
|
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'],opts['customHeaders']);}}]);}();var BackgroundAssistantApi=/*#__PURE__*/function(){/**
|
|
5122
5139
|
* BackgroundAssistant service.
|
|
5123
5140
|
* @module purecloud-platform-client-v2/api/BackgroundAssistantApi
|
|
5124
|
-
* @version
|
|
5141
|
+
* @version 255.1.0
|
|
5125
5142
|
*//**
|
|
5126
5143
|
* Constructs a new BackgroundAssistantApi.
|
|
5127
5144
|
* @alias module:purecloud-platform-client-v2/api/BackgroundAssistantApi
|
|
@@ -5144,7 +5161,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
5144
5161
|
*/},{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'],opts['customHeaders']);}}]);}();var BillingApi=/*#__PURE__*/function(){/**
|
|
5145
5162
|
* Billing service.
|
|
5146
5163
|
* @module purecloud-platform-client-v2/api/BillingApi
|
|
5147
|
-
* @version
|
|
5164
|
+
* @version 255.1.0
|
|
5148
5165
|
*//**
|
|
5149
5166
|
* Constructs a new BillingApi.
|
|
5150
5167
|
* @alias module:purecloud-platform-client-v2/api/BillingApi
|
|
@@ -5233,7 +5250,7 @@ if(endDate===undefined||endDate===null){throw'Missing the required parameter "en
|
|
|
5233
5250
|
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'],opts['customHeaders']);}}]);}();var BusinessRulesApi=/*#__PURE__*/function(){/**
|
|
5234
5251
|
* BusinessRules service.
|
|
5235
5252
|
* @module purecloud-platform-client-v2/api/BusinessRulesApi
|
|
5236
|
-
* @version
|
|
5253
|
+
* @version 255.1.0
|
|
5237
5254
|
*//**
|
|
5238
5255
|
* Constructs a new BusinessRulesApi.
|
|
5239
5256
|
* @alias module:purecloud-platform-client-v2/api/BusinessRulesApi
|
|
@@ -5622,7 +5639,7 @@ if(schemaId===undefined||schemaId===null||schemaId===''){throw'Missing the requi
|
|
|
5622
5639
|
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'],opts['customHeaders']);}}]);}();var CarrierServicesApi=/*#__PURE__*/function(){/**
|
|
5623
5640
|
* CarrierServices service.
|
|
5624
5641
|
* @module purecloud-platform-client-v2/api/CarrierServicesApi
|
|
5625
|
-
* @version
|
|
5642
|
+
* @version 255.1.0
|
|
5626
5643
|
*//**
|
|
5627
5644
|
* Constructs a new CarrierServicesApi.
|
|
5628
5645
|
* @alias module:purecloud-platform-client-v2/api/CarrierServicesApi
|
|
@@ -5645,7 +5662,7 @@ if(phoneNumber===undefined||phoneNumber===null){throw'Missing the required param
|
|
|
5645
5662
|
*/},{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'],opts['customHeaders']);}}]);}();var CaseManagementApi=/*#__PURE__*/function(){/**
|
|
5646
5663
|
* CaseManagement service.
|
|
5647
5664
|
* @module purecloud-platform-client-v2/api/CaseManagementApi
|
|
5648
|
-
* @version
|
|
5665
|
+
* @version 255.1.0
|
|
5649
5666
|
*//**
|
|
5650
5667
|
* Constructs a new CaseManagementApi.
|
|
5651
5668
|
* @alias module:purecloud-platform-client-v2/api/CaseManagementApi
|
|
@@ -6019,7 +6036,7 @@ if(caseplanId===undefined||caseplanId===null||caseplanId===''){throw'Missing the
|
|
|
6019
6036
|
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling putCasemanagementCaseplanIntakesettings';}return this.apiClient.callApi('/api/v2/casemanagement/caseplans/{caseplanId}/intakesettings','PUT',{'caseplanId':caseplanId},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json'],opts['customHeaders']);}}]);}();var ChatApi=/*#__PURE__*/function(){/**
|
|
6020
6037
|
* Chat service.
|
|
6021
6038
|
* @module purecloud-platform-client-v2/api/ChatApi
|
|
6022
|
-
* @version
|
|
6039
|
+
* @version 255.1.0
|
|
6023
6040
|
*//**
|
|
6024
6041
|
* Constructs a new ChatApi.
|
|
6025
6042
|
* @alias module:purecloud-platform-client-v2/api/ChatApi
|
|
@@ -6314,7 +6331,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
6314
6331
|
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'],opts['customHeaders']);}}]);}();var CoachingApi=/*#__PURE__*/function(){/**
|
|
6315
6332
|
* Coaching service.
|
|
6316
6333
|
* @module purecloud-platform-client-v2/api/CoachingApi
|
|
6317
|
-
* @version
|
|
6334
|
+
* @version 255.1.0
|
|
6318
6335
|
*//**
|
|
6319
6336
|
* Constructs a new CoachingApi.
|
|
6320
6337
|
* @alias module:purecloud-platform-client-v2/api/CoachingApi
|
|
@@ -6513,7 +6530,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
6513
6530
|
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'],opts['customHeaders']);}}]);}();var ContentManagementApi=/*#__PURE__*/function(){/**
|
|
6514
6531
|
* ContentManagement service.
|
|
6515
6532
|
* @module purecloud-platform-client-v2/api/ContentManagementApi
|
|
6516
|
-
* @version
|
|
6533
|
+
* @version 255.1.0
|
|
6517
6534
|
*//**
|
|
6518
6535
|
* Constructs a new ContentManagementApi.
|
|
6519
6536
|
* @alias module:purecloud-platform-client-v2/api/ContentManagementApi
|
|
@@ -6845,7 +6862,7 @@ if(tagId===undefined||tagId===null||tagId===''){throw'Missing the required param
|
|
|
6845
6862
|
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'],opts['customHeaders']);}}]);}();var ConversationsApi=/*#__PURE__*/function(){/**
|
|
6846
6863
|
* Conversations service.
|
|
6847
6864
|
* @module purecloud-platform-client-v2/api/ConversationsApi
|
|
6848
|
-
* @version
|
|
6865
|
+
* @version 255.1.0
|
|
6849
6866
|
*//**
|
|
6850
6867
|
* Constructs a new ConversationsApi.
|
|
6851
6868
|
* @alias module:purecloud-platform-client-v2/api/ConversationsApi
|
|
@@ -9773,7 +9790,7 @@ if(conversationId===undefined||conversationId===null||conversationId===''){throw
|
|
|
9773
9790
|
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'],opts['customHeaders']);}}]);}();var DataExtensionsApi=/*#__PURE__*/function(){/**
|
|
9774
9791
|
* DataExtensions service.
|
|
9775
9792
|
* @module purecloud-platform-client-v2/api/DataExtensionsApi
|
|
9776
|
-
* @version
|
|
9793
|
+
* @version 255.1.0
|
|
9777
9794
|
*//**
|
|
9778
9795
|
* Constructs a new DataExtensionsApi.
|
|
9779
9796
|
* @alias module:purecloud-platform-client-v2/api/DataExtensionsApi
|
|
@@ -9800,7 +9817,7 @@ if(coretypeName===undefined||coretypeName===null||coretypeName===''){throw'Missi
|
|
|
9800
9817
|
*/},{key:"getDataextensionsLimits",value:function getDataextensionsLimits(opts){opts=opts||{};return this.apiClient.callApi('/api/v2/dataextensions/limits','GET',{},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json'],opts['customHeaders']);}}]);}();var DataPrivacyApi=/*#__PURE__*/function(){/**
|
|
9801
9818
|
* DataPrivacy service.
|
|
9802
9819
|
* @module purecloud-platform-client-v2/api/DataPrivacyApi
|
|
9803
|
-
* @version
|
|
9820
|
+
* @version 255.1.0
|
|
9804
9821
|
*//**
|
|
9805
9822
|
* Constructs a new DataPrivacyApi.
|
|
9806
9823
|
* @alias module:purecloud-platform-client-v2/api/DataPrivacyApi
|
|
@@ -9851,7 +9868,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
9851
9868
|
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'],opts['customHeaders']);}}]);}();var DownloadsApi=/*#__PURE__*/function(){/**
|
|
9852
9869
|
* Downloads service.
|
|
9853
9870
|
* @module purecloud-platform-client-v2/api/DownloadsApi
|
|
9854
|
-
* @version
|
|
9871
|
+
* @version 255.1.0
|
|
9855
9872
|
*//**
|
|
9856
9873
|
* Constructs a new DownloadsApi.
|
|
9857
9874
|
* @alias module:purecloud-platform-client-v2/api/DownloadsApi
|
|
@@ -9871,7 +9888,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
9871
9888
|
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'],opts['customHeaders']);}}]);}();var EmailsApi=/*#__PURE__*/function(){/**
|
|
9872
9889
|
* Emails service.
|
|
9873
9890
|
* @module purecloud-platform-client-v2/api/EmailsApi
|
|
9874
|
-
* @version
|
|
9891
|
+
* @version 255.1.0
|
|
9875
9892
|
*//**
|
|
9876
9893
|
* Constructs a new EmailsApi.
|
|
9877
9894
|
* @alias module:purecloud-platform-client-v2/api/EmailsApi
|
|
@@ -9908,7 +9925,7 @@ if(downloadId===undefined||downloadId===null||downloadId===''){throw'Missing the
|
|
|
9908
9925
|
*/},{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'],opts['customHeaders']);}}]);}();var EmployeeEngagementApi=/*#__PURE__*/function(){/**
|
|
9909
9926
|
* EmployeeEngagement service.
|
|
9910
9927
|
* @module purecloud-platform-client-v2/api/EmployeeEngagementApi
|
|
9911
|
-
* @version
|
|
9928
|
+
* @version 255.1.0
|
|
9912
9929
|
*//**
|
|
9913
9930
|
* Constructs a new EmployeeEngagementApi.
|
|
9914
9931
|
* @alias module:purecloud-platform-client-v2/api/EmployeeEngagementApi
|
|
@@ -9966,7 +9983,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
9966
9983
|
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'],opts['customHeaders']);}}]);}();var EventsApi=/*#__PURE__*/function(){/**
|
|
9967
9984
|
* Events service.
|
|
9968
9985
|
* @module purecloud-platform-client-v2/api/EventsApi
|
|
9969
|
-
* @version
|
|
9986
|
+
* @version 255.1.0
|
|
9970
9987
|
*//**
|
|
9971
9988
|
* Constructs a new EventsApi.
|
|
9972
9989
|
* @alias module:purecloud-platform-client-v2/api/EventsApi
|
|
@@ -10005,7 +10022,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
10005
10022
|
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'],opts['customHeaders']);}}]);}();var ExternalContactsApi=/*#__PURE__*/function(){/**
|
|
10006
10023
|
* ExternalContacts service.
|
|
10007
10024
|
* @module purecloud-platform-client-v2/api/ExternalContactsApi
|
|
10008
|
-
* @version
|
|
10025
|
+
* @version 255.1.0
|
|
10009
10026
|
*//**
|
|
10010
10027
|
* Constructs a new ExternalContactsApi.
|
|
10011
10028
|
* @alias module:purecloud-platform-client-v2/api/ExternalContactsApi
|
|
@@ -10168,7 +10185,7 @@ if(contactId===undefined||contactId===null||contactId===''){throw'Missing the re
|
|
|
10168
10185
|
* @param {Object.<string, string>} opts.customHeaders Per-request HTTP headers
|
|
10169
10186
|
*/},{key:"getExternalcontactsContactsExport",value:function getExternalcontactsContactsExport(exportId,opts){opts=opts||{};// verify the required parameter 'exportId' is set
|
|
10170
10187
|
if(exportId===undefined||exportId===null||exportId===''){throw'Missing the required parameter "exportId" when calling getExternalcontactsContactsExport';}return this.apiClient.callApi('/api/v2/externalcontacts/contacts/exports/{exportId}','GET',{'exportId':exportId},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json'],opts['customHeaders']);}/**
|
|
10171
|
-
* List exports for organization
|
|
10188
|
+
* List contact exports for organization
|
|
10172
10189
|
*
|
|
10173
10190
|
* @param {Object} opts Optional parameters
|
|
10174
10191
|
* @param {Array.<String>} opts.divisionIds Division IDs of entities
|
|
@@ -10967,7 +10984,7 @@ if(relationshipId===undefined||relationshipId===null||relationshipId===''){throw
|
|
|
10967
10984
|
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'],opts['customHeaders']);}}]);}();var FaxApi=/*#__PURE__*/function(){/**
|
|
10968
10985
|
* Fax service.
|
|
10969
10986
|
* @module purecloud-platform-client-v2/api/FaxApi
|
|
10970
|
-
* @version
|
|
10987
|
+
* @version 255.1.0
|
|
10971
10988
|
*//**
|
|
10972
10989
|
* Constructs a new FaxApi.
|
|
10973
10990
|
* @alias module:purecloud-platform-client-v2/api/FaxApi
|
|
@@ -11030,7 +11047,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
11030
11047
|
*/},{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'],opts['customHeaders']);}}]);}();var FlowsApi=/*#__PURE__*/function(){/**
|
|
11031
11048
|
* Flows service.
|
|
11032
11049
|
* @module purecloud-platform-client-v2/api/FlowsApi
|
|
11033
|
-
* @version
|
|
11050
|
+
* @version 255.1.0
|
|
11034
11051
|
*//**
|
|
11035
11052
|
* Constructs a new FlowsApi.
|
|
11036
11053
|
* @alias module:purecloud-platform-client-v2/api/FlowsApi
|
|
@@ -11092,7 +11109,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
11092
11109
|
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'],opts['customHeaders']);}}]);}();var GamificationApi=/*#__PURE__*/function(){/**
|
|
11093
11110
|
* Gamification service.
|
|
11094
11111
|
* @module purecloud-platform-client-v2/api/GamificationApi
|
|
11095
|
-
* @version
|
|
11112
|
+
* @version 255.1.0
|
|
11096
11113
|
*//**
|
|
11097
11114
|
* Constructs a new GamificationApi.
|
|
11098
11115
|
* @alias module:purecloud-platform-client-v2/api/GamificationApi
|
|
@@ -11887,7 +11904,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
11887
11904
|
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'],opts['customHeaders']);}}]);}();var GeneralDataProtectionRegulationApi=/*#__PURE__*/function(){/**
|
|
11888
11905
|
* GeneralDataProtectionRegulation service.
|
|
11889
11906
|
* @module purecloud-platform-client-v2/api/GeneralDataProtectionRegulationApi
|
|
11890
|
-
* @version
|
|
11907
|
+
* @version 255.1.0
|
|
11891
11908
|
*//**
|
|
11892
11909
|
* Constructs a new GeneralDataProtectionRegulationApi.
|
|
11893
11910
|
* @alias module:purecloud-platform-client-v2/api/GeneralDataProtectionRegulationApi
|
|
@@ -11928,7 +11945,7 @@ if(searchValue===undefined||searchValue===null){throw'Missing the required param
|
|
|
11928
11945
|
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'],opts['customHeaders']);}}]);}();var GeolocationApi=/*#__PURE__*/function(){/**
|
|
11929
11946
|
* Geolocation service.
|
|
11930
11947
|
* @module purecloud-platform-client-v2/api/GeolocationApi
|
|
11931
|
-
* @version
|
|
11948
|
+
* @version 255.1.0
|
|
11932
11949
|
*//**
|
|
11933
11950
|
* Constructs a new GeolocationApi.
|
|
11934
11951
|
* @alias module:purecloud-platform-client-v2/api/GeolocationApi
|
|
@@ -11970,7 +11987,7 @@ if(clientId===undefined||clientId===null||clientId===''){throw'Missing the requi
|
|
|
11970
11987
|
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'],opts['customHeaders']);}}]);}();var GreetingsApi=/*#__PURE__*/function(){/**
|
|
11971
11988
|
* Greetings service.
|
|
11972
11989
|
* @module purecloud-platform-client-v2/api/GreetingsApi
|
|
11973
|
-
* @version
|
|
11990
|
+
* @version 255.1.0
|
|
11974
11991
|
*//**
|
|
11975
11992
|
* Constructs a new GreetingsApi.
|
|
11976
11993
|
* @alias module:purecloud-platform-client-v2/api/GreetingsApi
|
|
@@ -12129,7 +12146,7 @@ if(userId===undefined||userId===null||userId===''){throw'Missing the required pa
|
|
|
12129
12146
|
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'],opts['customHeaders']);}}]);}();var GroupsApi=/*#__PURE__*/function(){/**
|
|
12130
12147
|
* Groups service.
|
|
12131
12148
|
* @module purecloud-platform-client-v2/api/GroupsApi
|
|
12132
|
-
* @version
|
|
12149
|
+
* @version 255.1.0
|
|
12133
12150
|
*//**
|
|
12134
12151
|
* Constructs a new GroupsApi.
|
|
12135
12152
|
* @alias module:purecloud-platform-client-v2/api/GroupsApi
|
|
@@ -12292,7 +12309,7 @@ if(groupId===undefined||groupId===null||groupId===''){throw'Missing the required
|
|
|
12292
12309
|
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'],opts['customHeaders']);}}]);}();var IdentityProviderApi=/*#__PURE__*/function(){/**
|
|
12293
12310
|
* IdentityProvider service.
|
|
12294
12311
|
* @module purecloud-platform-client-v2/api/IdentityProviderApi
|
|
12295
|
-
* @version
|
|
12312
|
+
* @version 255.1.0
|
|
12296
12313
|
*//**
|
|
12297
12314
|
* Constructs a new IdentityProviderApi.
|
|
12298
12315
|
* @alias module:purecloud-platform-client-v2/api/IdentityProviderApi
|
|
@@ -12524,7 +12541,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
12524
12541
|
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'],opts['customHeaders']);}}]);}();var InfrastructureAsCodeApi=/*#__PURE__*/function(){/**
|
|
12525
12542
|
* InfrastructureAsCode service.
|
|
12526
12543
|
* @module purecloud-platform-client-v2/api/InfrastructureAsCodeApi
|
|
12527
|
-
* @version
|
|
12544
|
+
* @version 255.1.0
|
|
12528
12545
|
*//**
|
|
12529
12546
|
* Constructs a new InfrastructureAsCodeApi.
|
|
12530
12547
|
* @alias module:purecloud-platform-client-v2/api/InfrastructureAsCodeApi
|
|
@@ -12584,7 +12601,7 @@ if(jobId===undefined||jobId===null||jobId===''){throw'Missing the required param
|
|
|
12584
12601
|
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'],opts['customHeaders']);}}]);}();var IntegrationsApi=/*#__PURE__*/function(){/**
|
|
12585
12602
|
* Integrations service.
|
|
12586
12603
|
* @module purecloud-platform-client-v2/api/IntegrationsApi
|
|
12587
|
-
* @version
|
|
12604
|
+
* @version 255.1.0
|
|
12588
12605
|
*//**
|
|
12589
12606
|
* Constructs a new IntegrationsApi.
|
|
12590
12607
|
* @alias module:purecloud-platform-client-v2/api/IntegrationsApi
|
|
@@ -13414,7 +13431,7 @@ if(ucIntegrationId===undefined||ucIntegrationId===null||ucIntegrationId===''){th
|
|
|
13414
13431
|
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'],opts['customHeaders']);}}]);}();var IntentsApi=/*#__PURE__*/function(){/**
|
|
13415
13432
|
* Intents service.
|
|
13416
13433
|
* @module purecloud-platform-client-v2/api/IntentsApi
|
|
13417
|
-
* @version
|
|
13434
|
+
* @version 255.1.0
|
|
13418
13435
|
*//**
|
|
13419
13436
|
* Constructs a new IntentsApi.
|
|
13420
13437
|
* @alias module:purecloud-platform-client-v2/api/IntentsApi
|
|
@@ -13558,7 +13575,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
13558
13575
|
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling postIntentsCustomerintents';}return this.apiClient.callApi('/api/v2/intents/customerintents','POST',{},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json'],opts['customHeaders']);}}]);}();var JourneyApi=/*#__PURE__*/function(){/**
|
|
13559
13576
|
* Journey service.
|
|
13560
13577
|
* @module purecloud-platform-client-v2/api/JourneyApi
|
|
13561
|
-
* @version
|
|
13578
|
+
* @version 255.1.0
|
|
13562
13579
|
*//**
|
|
13563
13580
|
* Constructs a new JourneyApi.
|
|
13564
13581
|
* @alias module:purecloud-platform-client-v2/api/JourneyApi
|
|
@@ -14338,7 +14355,7 @@ if(eventDefinitionId===undefined||eventDefinitionId===null||eventDefinitionId===
|
|
|
14338
14355
|
if(eventDefinitionId===undefined||eventDefinitionId===null||eventDefinitionId===''){throw'Missing the required parameter "eventDefinitionId" when calling putJourneyViewsEventdefinitionActivate';}return this.apiClient.callApi('/api/v2/journey/views/eventdefinitions/{eventDefinitionId}/activate','PUT',{'eventDefinitionId':eventDefinitionId},{},{},{},opts['body'],['PureCloud OAuth'],['application/json'],['application/json'],opts['customHeaders']);}}]);}();var KnowledgeApi=/*#__PURE__*/function(){/**
|
|
14339
14356
|
* Knowledge service.
|
|
14340
14357
|
* @module purecloud-platform-client-v2/api/KnowledgeApi
|
|
14341
|
-
* @version
|
|
14358
|
+
* @version 255.1.0
|
|
14342
14359
|
*//**
|
|
14343
14360
|
* Constructs a new KnowledgeApi.
|
|
14344
14361
|
* @alias module:purecloud-platform-client-v2/api/KnowledgeApi
|
|
@@ -15533,7 +15550,7 @@ if(sourceId===undefined||sourceId===null||sourceId===''){throw'Missing the requi
|
|
|
15533
15550
|
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling putKnowledgeSource';}return this.apiClient.callApi('/api/v2/knowledge/sources/{sourceId}','PUT',{'sourceId':sourceId},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json'],opts['customHeaders']);}}]);}();var LanguageUnderstandingApi=/*#__PURE__*/function(){/**
|
|
15534
15551
|
* LanguageUnderstanding service.
|
|
15535
15552
|
* @module purecloud-platform-client-v2/api/LanguageUnderstandingApi
|
|
15536
|
-
* @version
|
|
15553
|
+
* @version 255.1.0
|
|
15537
15554
|
*//**
|
|
15538
15555
|
* Constructs a new LanguageUnderstandingApi.
|
|
15539
15556
|
* @alias module:purecloud-platform-client-v2/api/LanguageUnderstandingApi
|
|
@@ -15907,7 +15924,7 @@ if(domainVersionId===undefined||domainVersionId===null||domainVersionId===''){th
|
|
|
15907
15924
|
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'],opts['customHeaders']);}}]);}();var LanguagesApi=/*#__PURE__*/function(){/**
|
|
15908
15925
|
* Languages service.
|
|
15909
15926
|
* @module purecloud-platform-client-v2/api/LanguagesApi
|
|
15910
|
-
* @version
|
|
15927
|
+
* @version 255.1.0
|
|
15911
15928
|
*//**
|
|
15912
15929
|
* Constructs a new LanguagesApi.
|
|
15913
15930
|
* @alias module:purecloud-platform-client-v2/api/LanguagesApi
|
|
@@ -15977,7 +15994,7 @@ if(userId===undefined||userId===null||userId===''){throw'Missing the required pa
|
|
|
15977
15994
|
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'],opts['customHeaders']);}}]);}();var LearningApi=/*#__PURE__*/function(){/**
|
|
15978
15995
|
* Learning service.
|
|
15979
15996
|
* @module purecloud-platform-client-v2/api/LearningApi
|
|
15980
|
-
* @version
|
|
15997
|
+
* @version 255.1.0
|
|
15981
15998
|
*//**
|
|
15982
15999
|
* Constructs a new LearningApi.
|
|
15983
16000
|
* @alias module:purecloud-platform-client-v2/api/LearningApi
|
|
@@ -16325,7 +16342,7 @@ if(moduleId===undefined||moduleId===null||moduleId===''){throw'Missing the requi
|
|
|
16325
16342
|
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},{'assign':opts['assign']},{},{},body,['PureCloud OAuth'],['application/json'],['application/json'],opts['customHeaders']);}}]);}();var LicenseApi=/*#__PURE__*/function(){/**
|
|
16326
16343
|
* License service.
|
|
16327
16344
|
* @module purecloud-platform-client-v2/api/LicenseApi
|
|
16328
|
-
* @version
|
|
16345
|
+
* @version 255.1.0
|
|
16329
16346
|
*//**
|
|
16330
16347
|
* Constructs a new LicenseApi.
|
|
16331
16348
|
* @alias module:purecloud-platform-client-v2/api/LicenseApi
|
|
@@ -16400,7 +16417,7 @@ if(featureName===undefined||featureName===null||featureName===''){throw'Missing
|
|
|
16400
16417
|
*/},{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'],opts['customHeaders']);}}]);}();var LocationsApi=/*#__PURE__*/function(){/**
|
|
16401
16418
|
* Locations service.
|
|
16402
16419
|
* @module purecloud-platform-client-v2/api/LocationsApi
|
|
16403
|
-
* @version
|
|
16420
|
+
* @version 255.1.0
|
|
16404
16421
|
*//**
|
|
16405
16422
|
* Constructs a new LocationsApi.
|
|
16406
16423
|
* @alias module:purecloud-platform-client-v2/api/LocationsApi
|
|
@@ -16472,7 +16489,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
16472
16489
|
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'],opts['customHeaders']);}}]);}();var LogCaptureApi=/*#__PURE__*/function(){/**
|
|
16473
16490
|
* LogCapture service.
|
|
16474
16491
|
* @module purecloud-platform-client-v2/api/LogCaptureApi
|
|
16475
|
-
* @version
|
|
16492
|
+
* @version 255.1.0
|
|
16476
16493
|
*//**
|
|
16477
16494
|
* Constructs a new LogCaptureApi.
|
|
16478
16495
|
* @alias module:purecloud-platform-client-v2/api/LogCaptureApi
|
|
@@ -16531,7 +16548,7 @@ if(userId===undefined||userId===null||userId===''){throw'Missing the required pa
|
|
|
16531
16548
|
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'],opts['customHeaders']);}}]);}();var MessagingApi=/*#__PURE__*/function(){/**
|
|
16532
16549
|
* Messaging service.
|
|
16533
16550
|
* @module purecloud-platform-client-v2/api/MessagingApi
|
|
16534
|
-
* @version
|
|
16551
|
+
* @version 255.1.0
|
|
16535
16552
|
*//**
|
|
16536
16553
|
* Constructs a new MessagingApi.
|
|
16537
16554
|
* @alias module:purecloud-platform-client-v2/api/MessagingApi
|
|
@@ -16645,7 +16662,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
16645
16662
|
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'],opts['customHeaders']);}}]);}();var MobileDevicesApi=/*#__PURE__*/function(){/**
|
|
16646
16663
|
* MobileDevices service.
|
|
16647
16664
|
* @module purecloud-platform-client-v2/api/MobileDevicesApi
|
|
16648
|
-
* @version
|
|
16665
|
+
* @version 255.1.0
|
|
16649
16666
|
*//**
|
|
16650
16667
|
* Constructs a new MobileDevicesApi.
|
|
16651
16668
|
* @alias module:purecloud-platform-client-v2/api/MobileDevicesApi
|
|
@@ -16692,7 +16709,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
16692
16709
|
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'],opts['customHeaders']);}}]);}();var NotificationsApi=/*#__PURE__*/function(){/**
|
|
16693
16710
|
* Notifications service.
|
|
16694
16711
|
* @module purecloud-platform-client-v2/api/NotificationsApi
|
|
16695
|
-
* @version
|
|
16712
|
+
* @version 255.1.0
|
|
16696
16713
|
*//**
|
|
16697
16714
|
* Constructs a new NotificationsApi.
|
|
16698
16715
|
* @alias module:purecloud-platform-client-v2/api/NotificationsApi
|
|
@@ -16761,7 +16778,7 @@ if(channelId===undefined||channelId===null||channelId===''){throw'Missing the re
|
|
|
16761
16778
|
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'],opts['customHeaders']);}}]);}();var OAuthApi=/*#__PURE__*/function(){/**
|
|
16762
16779
|
* OAuth service.
|
|
16763
16780
|
* @module purecloud-platform-client-v2/api/OAuthApi
|
|
16764
|
-
* @version
|
|
16781
|
+
* @version 255.1.0
|
|
16765
16782
|
*//**
|
|
16766
16783
|
* Constructs a new OAuthApi.
|
|
16767
16784
|
* @alias module:purecloud-platform-client-v2/api/OAuthApi
|
|
@@ -16867,7 +16884,7 @@ if(clientId===undefined||clientId===null||clientId===''){throw'Missing the requi
|
|
|
16867
16884
|
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'],opts['customHeaders']);}}]);}();var ObjectsApi=/*#__PURE__*/function(){/**
|
|
16868
16885
|
* Objects service.
|
|
16869
16886
|
* @module purecloud-platform-client-v2/api/ObjectsApi
|
|
16870
|
-
* @version
|
|
16887
|
+
* @version 255.1.0
|
|
16871
16888
|
*//**
|
|
16872
16889
|
* Constructs a new ObjectsApi.
|
|
16873
16890
|
* @alias module:purecloud-platform-client-v2/api/ObjectsApi
|
|
@@ -16970,7 +16987,7 @@ if(divisionId===undefined||divisionId===null||divisionId===''){throw'Missing the
|
|
|
16970
16987
|
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'],opts['customHeaders']);}}]);}();var OperationalEventsApi=/*#__PURE__*/function(){/**
|
|
16971
16988
|
* OperationalEvents service.
|
|
16972
16989
|
* @module purecloud-platform-client-v2/api/OperationalEventsApi
|
|
16973
|
-
* @version
|
|
16990
|
+
* @version 255.1.0
|
|
16974
16991
|
*//**
|
|
16975
16992
|
* Constructs a new OperationalEventsApi.
|
|
16976
16993
|
* @alias module:purecloud-platform-client-v2/api/OperationalEventsApi
|
|
@@ -17007,7 +17024,7 @@ if(eventDefinitionId===undefined||eventDefinitionId===null||eventDefinitionId===
|
|
|
17007
17024
|
*/},{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'],opts['customHeaders']);}}]);}();var OrganizationApi=/*#__PURE__*/function(){/**
|
|
17008
17025
|
* Organization service.
|
|
17009
17026
|
* @module purecloud-platform-client-v2/api/OrganizationApi
|
|
17010
|
-
* @version
|
|
17027
|
+
* @version 255.1.0
|
|
17011
17028
|
*//**
|
|
17012
17029
|
* Constructs a new OrganizationApi.
|
|
17013
17030
|
* @alias module:purecloud-platform-client-v2/api/OrganizationApi
|
|
@@ -17147,7 +17164,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
17147
17164
|
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'],opts['customHeaders']);}}]);}();var OrganizationAuthorizationApi=/*#__PURE__*/function(){/**
|
|
17148
17165
|
* OrganizationAuthorization service.
|
|
17149
17166
|
* @module purecloud-platform-client-v2/api/OrganizationAuthorizationApi
|
|
17150
|
-
* @version
|
|
17167
|
+
* @version 255.1.0
|
|
17151
17168
|
*//**
|
|
17152
17169
|
* Constructs a new OrganizationAuthorizationApi.
|
|
17153
17170
|
* @alias module:purecloud-platform-client-v2/api/OrganizationAuthorizationApi
|
|
@@ -17567,7 +17584,7 @@ if(trustorOrgId===undefined||trustorOrgId===null||trustorOrgId===''){throw'Missi
|
|
|
17567
17584
|
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'],opts['customHeaders']);}}]);}();var OutboundApi=/*#__PURE__*/function(){/**
|
|
17568
17585
|
* Outbound service.
|
|
17569
17586
|
* @module purecloud-platform-client-v2/api/OutboundApi
|
|
17570
|
-
* @version
|
|
17587
|
+
* @version 255.1.0
|
|
17571
17588
|
*//**
|
|
17572
17589
|
* Constructs a new OutboundApi.
|
|
17573
17590
|
* @alias module:purecloud-platform-client-v2/api/OutboundApi
|
|
@@ -19053,7 +19070,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
19053
19070
|
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'],opts['customHeaders']);}}]);}();var PresenceApi=/*#__PURE__*/function(){/**
|
|
19054
19071
|
* Presence service.
|
|
19055
19072
|
* @module purecloud-platform-client-v2/api/PresenceApi
|
|
19056
|
-
* @version
|
|
19073
|
+
* @version 255.1.0
|
|
19057
19074
|
*//**
|
|
19058
19075
|
* Constructs a new PresenceApi.
|
|
19059
19076
|
* @alias module:purecloud-platform-client-v2/api/PresenceApi
|
|
@@ -19273,7 +19290,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
19273
19290
|
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'],opts['customHeaders']);}}]);}();var ProcessAutomationApi=/*#__PURE__*/function(){/**
|
|
19274
19291
|
* ProcessAutomation service.
|
|
19275
19292
|
* @module purecloud-platform-client-v2/api/ProcessAutomationApi
|
|
19276
|
-
* @version
|
|
19293
|
+
* @version 255.1.0
|
|
19277
19294
|
*//**
|
|
19278
19295
|
* Constructs a new ProcessAutomationApi.
|
|
19279
19296
|
* @alias module:purecloud-platform-client-v2/api/ProcessAutomationApi
|
|
@@ -19387,7 +19404,7 @@ if(triggerId===undefined||triggerId===null||triggerId===''){throw'Missing the re
|
|
|
19387
19404
|
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'],opts['customHeaders']);}}]);}();var QualityApi=/*#__PURE__*/function(){/**
|
|
19388
19405
|
* Quality service.
|
|
19389
19406
|
* @module purecloud-platform-client-v2/api/QualityApi
|
|
19390
|
-
* @version
|
|
19407
|
+
* @version 255.1.0
|
|
19391
19408
|
*//**
|
|
19392
19409
|
* Constructs a new QualityApi.
|
|
19393
19410
|
* @alias module:purecloud-platform-client-v2/api/QualityApi
|
|
@@ -20043,7 +20060,7 @@ if(customerSurveyUrl===undefined||customerSurveyUrl===null){throw'Missing the re
|
|
|
20043
20060
|
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'],opts['customHeaders']);}}]);}();var RecordingApi=/*#__PURE__*/function(){/**
|
|
20044
20061
|
* Recording service.
|
|
20045
20062
|
* @module purecloud-platform-client-v2/api/RecordingApi
|
|
20046
|
-
* @version
|
|
20063
|
+
* @version 255.1.0
|
|
20047
20064
|
*//**
|
|
20048
20065
|
* Constructs a new RecordingApi.
|
|
20049
20066
|
* @alias module:purecloud-platform-client-v2/api/RecordingApi
|
|
@@ -20542,7 +20559,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
20542
20559
|
*/},{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'],opts['customHeaders']);}}]);}();var ResponseManagementApi=/*#__PURE__*/function(){/**
|
|
20543
20560
|
* ResponseManagement service.
|
|
20544
20561
|
* @module purecloud-platform-client-v2/api/ResponseManagementApi
|
|
20545
|
-
* @version
|
|
20562
|
+
* @version 255.1.0
|
|
20546
20563
|
*//**
|
|
20547
20564
|
* Constructs a new ResponseManagementApi.
|
|
20548
20565
|
* @alias module:purecloud-platform-client-v2/api/ResponseManagementApi
|
|
@@ -20709,7 +20726,7 @@ if(responseAssetId===undefined||responseAssetId===null||responseAssetId===''){th
|
|
|
20709
20726
|
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'],opts['customHeaders']);}}]);}();var RoutingApi=/*#__PURE__*/function(){/**
|
|
20710
20727
|
* Routing service.
|
|
20711
20728
|
* @module purecloud-platform-client-v2/api/RoutingApi
|
|
20712
|
-
* @version
|
|
20729
|
+
* @version 255.1.0
|
|
20713
20730
|
*//**
|
|
20714
20731
|
* Constructs a new RoutingApi.
|
|
20715
20732
|
* @alias module:purecloud-platform-client-v2/api/RoutingApi
|
|
@@ -22178,7 +22195,7 @@ if(userId===undefined||userId===null||userId===''){throw'Missing the required pa
|
|
|
22178
22195
|
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'],opts['customHeaders']);}}]);}();var SCIMApi=/*#__PURE__*/function(){/**
|
|
22179
22196
|
* SCIM service.
|
|
22180
22197
|
* @module purecloud-platform-client-v2/api/SCIMApi
|
|
22181
|
-
* @version
|
|
22198
|
+
* @version 255.1.0
|
|
22182
22199
|
*//**
|
|
22183
22200
|
* Constructs a new SCIMApi.
|
|
22184
22201
|
* @alias module:purecloud-platform-client-v2/api/SCIMApi
|
|
@@ -22441,7 +22458,7 @@ if(userId===undefined||userId===null||userId===''){throw'Missing the required pa
|
|
|
22441
22458
|
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'],opts['customHeaders']);}}]);}();var ScriptsApi=/*#__PURE__*/function(){/**
|
|
22442
22459
|
* Scripts service.
|
|
22443
22460
|
* @module purecloud-platform-client-v2/api/ScriptsApi
|
|
22444
|
-
* @version
|
|
22461
|
+
* @version 255.1.0
|
|
22445
22462
|
*//**
|
|
22446
22463
|
* Constructs a new ScriptsApi.
|
|
22447
22464
|
* @alias module:purecloud-platform-client-v2/api/ScriptsApi
|
|
@@ -22603,7 +22620,7 @@ if(scriptId===undefined||scriptId===null||scriptId===''){throw'Missing the requi
|
|
|
22603
22620
|
*/},{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'],opts['customHeaders']);}}]);}();var SearchApi=/*#__PURE__*/function(){/**
|
|
22604
22621
|
* Search service.
|
|
22605
22622
|
* @module purecloud-platform-client-v2/api/SearchApi
|
|
22606
|
-
* @version
|
|
22623
|
+
* @version 255.1.0
|
|
22607
22624
|
*//**
|
|
22608
22625
|
* Constructs a new SearchApi.
|
|
22609
22626
|
* @alias module:purecloud-platform-client-v2/api/SearchApi
|
|
@@ -22810,7 +22827,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
22810
22827
|
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'],opts['customHeaders']);}}]);}();var SettingsApi=/*#__PURE__*/function(){/**
|
|
22811
22828
|
* Settings service.
|
|
22812
22829
|
* @module purecloud-platform-client-v2/api/SettingsApi
|
|
22813
|
-
* @version
|
|
22830
|
+
* @version 255.1.0
|
|
22814
22831
|
*//**
|
|
22815
22832
|
* Constructs a new SettingsApi.
|
|
22816
22833
|
* @alias module:purecloud-platform-client-v2/api/SettingsApi
|
|
@@ -22907,7 +22924,7 @@ if(agentId===undefined||agentId===null||agentId===''){throw'Missing the required
|
|
|
22907
22924
|
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'],opts['customHeaders']);}}]);}();var SocialMediaApi=/*#__PURE__*/function(){/**
|
|
22908
22925
|
* SocialMedia service.
|
|
22909
22926
|
* @module purecloud-platform-client-v2/api/SocialMediaApi
|
|
22910
|
-
* @version
|
|
22927
|
+
* @version 255.1.0
|
|
22911
22928
|
*//**
|
|
22912
22929
|
* Constructs a new SocialMediaApi.
|
|
22913
22930
|
* @alias module:purecloud-platform-client-v2/api/SocialMediaApi
|
|
@@ -23462,7 +23479,7 @@ if(topicId===undefined||topicId===null||topicId===''){throw'Missing the required
|
|
|
23462
23479
|
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'],opts['customHeaders']);}}]);}();var SpeechTextAnalyticsApi=/*#__PURE__*/function(){/**
|
|
23463
23480
|
* SpeechTextAnalytics service.
|
|
23464
23481
|
* @module purecloud-platform-client-v2/api/SpeechTextAnalyticsApi
|
|
23465
|
-
* @version
|
|
23482
|
+
* @version 255.1.0
|
|
23466
23483
|
*//**
|
|
23467
23484
|
* Constructs a new SpeechTextAnalyticsApi.
|
|
23468
23485
|
* @alias module:purecloud-platform-client-v2/api/SpeechTextAnalyticsApi
|
|
@@ -23591,7 +23608,7 @@ if(conversationId===undefined||conversationId===null||conversationId===''){throw
|
|
|
23591
23608
|
* @param {String} opts.dialect The key for filter the listing by dialect, dialect format is {language}-{country} where language follows ISO 639-1 standard and country follows ISO 3166-1 alpha 2 standard
|
|
23592
23609
|
* @param {Object} opts.transcriptionEngine Filter by transcription engine, If not provided, all transcription engines will be considered
|
|
23593
23610
|
* @param {String} opts.nextPage The key for listing the next page
|
|
23594
|
-
* @param {Number} opts.pageSize The page size for the listing (default to 500)
|
|
23611
|
+
* @param {Number} opts.pageSize The page size for the listing. Default is 500 per page. Note: organizations may store up to 1000 dictionary terms per dialect; use nextPage to paginate beyond the first page when listing a full dialect vocabulary. (default to 500)
|
|
23595
23612
|
* @param {Object.<string, string>} opts.customHeaders Per-request HTTP headers
|
|
23596
23613
|
*/},{key:"getSpeechandtextanalyticsDictionaryfeedback",value:function getSpeechandtextanalyticsDictionaryfeedback(opts){opts=opts||{};return this.apiClient.callApi('/api/v2/speechandtextanalytics/dictionaryfeedback','GET',{},{'dialect':opts['dialect'],'transcriptionEngine':opts['transcriptionEngine'],'nextPage':opts['nextPage'],'pageSize':opts['pageSize']},{},{},null,['PureCloud OAuth'],['application/json'],['application/json'],opts['customHeaders']);}/**
|
|
23597
23614
|
* Get a Speech and Text Analytics dictionary feedback by id
|
|
@@ -23955,7 +23972,7 @@ if(topicId===undefined||topicId===null||topicId===''){throw'Missing the required
|
|
|
23955
23972
|
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'],opts['customHeaders']);}}]);}();var StationsApi=/*#__PURE__*/function(){/**
|
|
23956
23973
|
* Stations service.
|
|
23957
23974
|
* @module purecloud-platform-client-v2/api/StationsApi
|
|
23958
|
-
* @version
|
|
23975
|
+
* @version 255.1.0
|
|
23959
23976
|
*//**
|
|
23960
23977
|
* Constructs a new StationsApi.
|
|
23961
23978
|
* @alias module:purecloud-platform-client-v2/api/StationsApi
|
|
@@ -23992,7 +24009,7 @@ if(stationId===undefined||stationId===null||stationId===''){throw'Missing the re
|
|
|
23992
24009
|
*/},{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'],opts['customHeaders']);}}]);}();var SuggestApi=/*#__PURE__*/function(){/**
|
|
23993
24010
|
* Suggest service.
|
|
23994
24011
|
* @module purecloud-platform-client-v2/api/SuggestApi
|
|
23995
|
-
* @version
|
|
24012
|
+
* @version 255.1.0
|
|
23996
24013
|
*//**
|
|
23997
24014
|
* Constructs a new SuggestApi.
|
|
23998
24015
|
* @alias module:purecloud-platform-client-v2/api/SuggestApi
|
|
@@ -24036,7 +24053,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
24036
24053
|
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'],opts['customHeaders']);}}]);}();var TaskManagementApi=/*#__PURE__*/function(){/**
|
|
24037
24054
|
* TaskManagement service.
|
|
24038
24055
|
* @module purecloud-platform-client-v2/api/TaskManagementApi
|
|
24039
|
-
* @version
|
|
24056
|
+
* @version 255.1.0
|
|
24040
24057
|
*//**
|
|
24041
24058
|
* Constructs a new TaskManagementApi.
|
|
24042
24059
|
* @alias module:purecloud-platform-client-v2/api/TaskManagementApi
|
|
@@ -24680,7 +24697,7 @@ if(schemaId===undefined||schemaId===null||schemaId===''){throw'Missing the requi
|
|
|
24680
24697
|
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'],opts['customHeaders']);}}]);}();var TeamsApi=/*#__PURE__*/function(){/**
|
|
24681
24698
|
* Teams service.
|
|
24682
24699
|
* @module purecloud-platform-client-v2/api/TeamsApi
|
|
24683
|
-
* @version
|
|
24700
|
+
* @version 255.1.0
|
|
24684
24701
|
*//**
|
|
24685
24702
|
* Constructs a new TeamsApi.
|
|
24686
24703
|
* @alias module:purecloud-platform-client-v2/api/TeamsApi
|
|
@@ -24776,7 +24793,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
24776
24793
|
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'],opts['customHeaders']);}}]);}();var TelephonyApi=/*#__PURE__*/function(){/**
|
|
24777
24794
|
* Telephony service.
|
|
24778
24795
|
* @module purecloud-platform-client-v2/api/TelephonyApi
|
|
24779
|
-
* @version
|
|
24796
|
+
* @version 255.1.0
|
|
24780
24797
|
*//**
|
|
24781
24798
|
* Constructs a new TelephonyApi.
|
|
24782
24799
|
* @alias module:purecloud-platform-client-v2/api/TelephonyApi
|
|
@@ -24945,7 +24962,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
24945
24962
|
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling putTelephonySettings';}return this.apiClient.callApi('/api/v2/telephony/settings','PUT',{},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json'],opts['customHeaders']);}}]);}();var TelephonyProvidersEdgeApi=/*#__PURE__*/function(){/**
|
|
24946
24963
|
* TelephonyProvidersEdge service.
|
|
24947
24964
|
* @module purecloud-platform-client-v2/api/TelephonyProvidersEdgeApi
|
|
24948
|
-
* @version
|
|
24965
|
+
* @version 255.1.0
|
|
24949
24966
|
*//**
|
|
24950
24967
|
* Constructs a new TelephonyProvidersEdgeApi.
|
|
24951
24968
|
* @alias module:purecloud-platform-client-v2/api/TelephonyProvidersEdgeApi
|
|
@@ -25998,7 +26015,7 @@ if(trunkBaseSettingsId===undefined||trunkBaseSettingsId===null||trunkBaseSetting
|
|
|
25998
26015
|
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'],opts['customHeaders']);}}]);}();var TextbotsApi=/*#__PURE__*/function(){/**
|
|
25999
26016
|
* Textbots service.
|
|
26000
26017
|
* @module purecloud-platform-client-v2/api/TextbotsApi
|
|
26001
|
-
* @version
|
|
26018
|
+
* @version 255.1.0
|
|
26002
26019
|
*//**
|
|
26003
26020
|
* Constructs a new TextbotsApi.
|
|
26004
26021
|
* @alias module:purecloud-platform-client-v2/api/TextbotsApi
|
|
@@ -26041,7 +26058,7 @@ if(launchRequest===undefined||launchRequest===null){throw'Missing the required p
|
|
|
26041
26058
|
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'],opts['customHeaders']);}}]);}();var TokensApi=/*#__PURE__*/function(){/**
|
|
26042
26059
|
* Tokens service.
|
|
26043
26060
|
* @module purecloud-platform-client-v2/api/TokensApi
|
|
26044
|
-
* @version
|
|
26061
|
+
* @version 255.1.0
|
|
26045
26062
|
*//**
|
|
26046
26063
|
* Constructs a new TokensApi.
|
|
26047
26064
|
* @alias module:purecloud-platform-client-v2/api/TokensApi
|
|
@@ -26085,7 +26102,7 @@ if(userId===undefined||userId===null||userId===''){throw'Missing the required pa
|
|
|
26085
26102
|
*/},{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'],opts['customHeaders']);}}]);}();var UploadsApi=/*#__PURE__*/function(){/**
|
|
26086
26103
|
* Uploads service.
|
|
26087
26104
|
* @module purecloud-platform-client-v2/api/UploadsApi
|
|
26088
|
-
* @version
|
|
26105
|
+
* @version 255.1.0
|
|
26089
26106
|
*//**
|
|
26090
26107
|
* Constructs a new UploadsApi.
|
|
26091
26108
|
* @alias module:purecloud-platform-client-v2/api/UploadsApi
|
|
@@ -26180,7 +26197,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
26180
26197
|
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'],opts['customHeaders']);}}]);}();var UsageApi=/*#__PURE__*/function(){/**
|
|
26181
26198
|
* Usage service.
|
|
26182
26199
|
* @module purecloud-platform-client-v2/api/UsageApi
|
|
26183
|
-
* @version
|
|
26200
|
+
* @version 255.1.0
|
|
26184
26201
|
*//**
|
|
26185
26202
|
* Constructs a new UsageApi.
|
|
26186
26203
|
* @alias module:purecloud-platform-client-v2/api/UsageApi
|
|
@@ -26282,7 +26299,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
26282
26299
|
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'],opts['customHeaders']);}}]);}();var UserRecordingsApi=/*#__PURE__*/function(){/**
|
|
26283
26300
|
* UserRecordings service.
|
|
26284
26301
|
* @module purecloud-platform-client-v2/api/UserRecordingsApi
|
|
26285
|
-
* @version
|
|
26302
|
+
* @version 255.1.0
|
|
26286
26303
|
*//**
|
|
26287
26304
|
* Constructs a new UserRecordingsApi.
|
|
26288
26305
|
* @alias module:purecloud-platform-client-v2/api/UserRecordingsApi
|
|
@@ -26338,7 +26355,7 @@ if(recordingId===undefined||recordingId===null||recordingId===''){throw'Missing
|
|
|
26338
26355
|
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'],opts['customHeaders']);}}]);}();var UsersApi=/*#__PURE__*/function(){/**
|
|
26339
26356
|
* Users service.
|
|
26340
26357
|
* @module purecloud-platform-client-v2/api/UsersApi
|
|
26341
|
-
* @version
|
|
26358
|
+
* @version 255.1.0
|
|
26342
26359
|
*//**
|
|
26343
26360
|
* Constructs a new UsersApi.
|
|
26344
26361
|
* @alias module:purecloud-platform-client-v2/api/UsersApi
|
|
@@ -27396,7 +27413,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
27396
27413
|
if(stationId===undefined||stationId===null||stationId===''){throw'Missing the required parameter "stationId" when calling putUsersStationsMeAssociatedstationStationId';}return this.apiClient.callApi('/api/v2/users/stations/me/associatedstation/{stationId}','PUT',{'stationId':stationId},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json'],opts['customHeaders']);}}]);}();var UsersRulesApi=/*#__PURE__*/function(){/**
|
|
27397
27414
|
* UsersRules service.
|
|
27398
27415
|
* @module purecloud-platform-client-v2/api/UsersRulesApi
|
|
27399
|
-
* @version
|
|
27416
|
+
* @version 255.1.0
|
|
27400
27417
|
*//**
|
|
27401
27418
|
* Constructs a new UsersRulesApi.
|
|
27402
27419
|
* @alias module:purecloud-platform-client-v2/api/UsersRulesApi
|
|
@@ -27486,7 +27503,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
27486
27503
|
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling postUsersRulesQuery';}return this.apiClient.callApi('/api/v2/users/rules/query','POST',{},{'pageNumber':opts['pageNumber'],'pageSize':opts['pageSize']},{},{},body,['PureCloud OAuth'],['application/json'],['application/json'],opts['customHeaders']);}}]);}();var UtilitiesApi=/*#__PURE__*/function(){/**
|
|
27487
27504
|
* Utilities service.
|
|
27488
27505
|
* @module purecloud-platform-client-v2/api/UtilitiesApi
|
|
27489
|
-
* @version
|
|
27506
|
+
* @version 255.1.0
|
|
27490
27507
|
*//**
|
|
27491
27508
|
* Constructs a new UtilitiesApi.
|
|
27492
27509
|
* @alias module:purecloud-platform-client-v2/api/UtilitiesApi
|
|
@@ -27520,7 +27537,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
27520
27537
|
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'],opts['customHeaders']);}}]);}();var VoicemailApi=/*#__PURE__*/function(){/**
|
|
27521
27538
|
* Voicemail service.
|
|
27522
27539
|
* @module purecloud-platform-client-v2/api/VoicemailApi
|
|
27523
|
-
* @version
|
|
27540
|
+
* @version 255.1.0
|
|
27524
27541
|
*//**
|
|
27525
27542
|
* Constructs a new VoicemailApi.
|
|
27526
27543
|
* @alias module:purecloud-platform-client-v2/api/VoicemailApi
|
|
@@ -27727,7 +27744,7 @@ if(userId===undefined||userId===null||userId===''){throw'Missing the required pa
|
|
|
27727
27744
|
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'],opts['customHeaders']);}}]);}();var WebChatApi=/*#__PURE__*/function(){/**
|
|
27728
27745
|
* WebChat service.
|
|
27729
27746
|
* @module purecloud-platform-client-v2/api/WebChatApi
|
|
27730
|
-
* @version
|
|
27747
|
+
* @version 255.1.0
|
|
27731
27748
|
*//**
|
|
27732
27749
|
* Constructs a new WebChatApi.
|
|
27733
27750
|
* @alias module:purecloud-platform-client-v2/api/WebChatApi
|
|
@@ -27910,7 +27927,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
27910
27927
|
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'],opts['customHeaders']);}}]);}();var WebDeploymentsApi=/*#__PURE__*/function(){/**
|
|
27911
27928
|
* WebDeployments service.
|
|
27912
27929
|
* @module purecloud-platform-client-v2/api/WebDeploymentsApi
|
|
27913
|
-
* @version
|
|
27930
|
+
* @version 255.1.0
|
|
27914
27931
|
*//**
|
|
27915
27932
|
* Constructs a new WebDeploymentsApi.
|
|
27916
27933
|
* @alias module:purecloud-platform-client-v2/api/WebDeploymentsApi
|
|
@@ -28088,7 +28105,7 @@ if(deploymentId===undefined||deploymentId===null||deploymentId===''){throw'Missi
|
|
|
28088
28105
|
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'],opts['customHeaders']);}}]);}();var WebMessagingApi=/*#__PURE__*/function(){/**
|
|
28089
28106
|
* WebMessaging service.
|
|
28090
28107
|
* @module purecloud-platform-client-v2/api/WebMessagingApi
|
|
28091
|
-
* @version
|
|
28108
|
+
* @version 255.1.0
|
|
28092
28109
|
*//**
|
|
28093
28110
|
* Constructs a new WebMessagingApi.
|
|
28094
28111
|
* @alias module:purecloud-platform-client-v2/api/WebMessagingApi
|
|
@@ -28136,7 +28153,7 @@ if(tokenId===undefined||tokenId===null||tokenId===''){throw'Missing the required
|
|
|
28136
28153
|
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling postWebmessagingDeploymentPushdevice';}return this.apiClient.callApi('/api/v2/webmessaging/deployments/{deploymentId}/pushdevices/{tokenId}','POST',{'deploymentId':deploymentId,'tokenId':tokenId},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json'],opts['customHeaders']);}}]);}();var WidgetsApi=/*#__PURE__*/function(){/**
|
|
28137
28154
|
* Widgets service.
|
|
28138
28155
|
* @module purecloud-platform-client-v2/api/WidgetsApi
|
|
28139
|
-
* @version
|
|
28156
|
+
* @version 255.1.0
|
|
28140
28157
|
*//**
|
|
28141
28158
|
* Constructs a new WidgetsApi.
|
|
28142
28159
|
* @alias module:purecloud-platform-client-v2/api/WidgetsApi
|
|
@@ -28186,7 +28203,7 @@ if(deploymentId===undefined||deploymentId===null||deploymentId===''){throw'Missi
|
|
|
28186
28203
|
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'],opts['customHeaders']);}}]);}();var WorkforceManagementApi=/*#__PURE__*/function(){/**
|
|
28187
28204
|
* WorkforceManagement service.
|
|
28188
28205
|
* @module purecloud-platform-client-v2/api/WorkforceManagementApi
|
|
28189
|
-
* @version
|
|
28206
|
+
* @version 255.1.0
|
|
28190
28207
|
*//**
|
|
28191
28208
|
* Constructs a new WorkforceManagementApi.
|
|
28192
28209
|
* @alias module:purecloud-platform-client-v2/api/WorkforceManagementApi
|
|
@@ -28229,6 +28246,26 @@ if(capacityPlanId===undefined||capacityPlanId===null||capacityPlanId===''){throw
|
|
|
28229
28246
|
*/},{key:"deleteWorkforcemanagementBusinessunitPlanninggroup",value:function deleteWorkforcemanagementBusinessunitPlanninggroup(businessUnitId,planningGroupId,opts){opts=opts||{};// verify the required parameter 'businessUnitId' is set
|
|
28230
28247
|
if(businessUnitId===undefined||businessUnitId===null||businessUnitId===''){throw'Missing the required parameter "businessUnitId" when calling deleteWorkforcemanagementBusinessunitPlanninggroup';}// verify the required parameter 'planningGroupId' is set
|
|
28231
28248
|
if(planningGroupId===undefined||planningGroupId===null||planningGroupId===''){throw'Missing the required parameter "planningGroupId" when calling deleteWorkforcemanagementBusinessunitPlanninggroup';}return this.apiClient.callApi('/api/v2/workforcemanagement/businessunits/{businessUnitId}/planninggroups/{planningGroupId}','DELETE',{'businessUnitId':businessUnitId,'planningGroupId':planningGroupId},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json'],opts['customHeaders']);}/**
|
|
28249
|
+
* Delete a schedule bid
|
|
28250
|
+
*
|
|
28251
|
+
* @param {String} businessUnitId The ID of the business unit
|
|
28252
|
+
* @param {String} bidId The ID of the schedule bid
|
|
28253
|
+
* @param {Object} opts Optional parameters
|
|
28254
|
+
* @param {Object.<string, string>} opts.customHeaders Per-request HTTP headers
|
|
28255
|
+
*/},{key:"deleteWorkforcemanagementBusinessunitSchedulebid",value:function deleteWorkforcemanagementBusinessunitSchedulebid(businessUnitId,bidId,opts){opts=opts||{};// verify the required parameter 'businessUnitId' is set
|
|
28256
|
+
if(businessUnitId===undefined||businessUnitId===null||businessUnitId===''){throw'Missing the required parameter "businessUnitId" when calling deleteWorkforcemanagementBusinessunitSchedulebid';}// verify the required parameter 'bidId' is set
|
|
28257
|
+
if(bidId===undefined||bidId===null||bidId===''){throw'Missing the required parameter "bidId" when calling deleteWorkforcemanagementBusinessunitSchedulebid';}return this.apiClient.callApi('/api/v2/workforcemanagement/businessunits/{businessUnitId}/schedulebids/{bidId}','DELETE',{'businessUnitId':businessUnitId,'bidId':bidId},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json'],opts['customHeaders']);}/**
|
|
28258
|
+
* Delete a schedule bid group by bid group Id
|
|
28259
|
+
*
|
|
28260
|
+
* @param {String} businessUnitId The ID of the business unit
|
|
28261
|
+
* @param {String} bidId The ID of the schedule bid associated with the bid groups
|
|
28262
|
+
* @param {String} bidGroupId Schedule Bid Group id
|
|
28263
|
+
* @param {Object} opts Optional parameters
|
|
28264
|
+
* @param {Object.<string, string>} opts.customHeaders Per-request HTTP headers
|
|
28265
|
+
*/},{key:"deleteWorkforcemanagementBusinessunitSchedulebidGroup",value:function deleteWorkforcemanagementBusinessunitSchedulebidGroup(businessUnitId,bidId,bidGroupId,opts){opts=opts||{};// verify the required parameter 'businessUnitId' is set
|
|
28266
|
+
if(businessUnitId===undefined||businessUnitId===null||businessUnitId===''){throw'Missing the required parameter "businessUnitId" when calling deleteWorkforcemanagementBusinessunitSchedulebidGroup';}// verify the required parameter 'bidId' is set
|
|
28267
|
+
if(bidId===undefined||bidId===null||bidId===''){throw'Missing the required parameter "bidId" when calling deleteWorkforcemanagementBusinessunitSchedulebidGroup';}// verify the required parameter 'bidGroupId' is set
|
|
28268
|
+
if(bidGroupId===undefined||bidGroupId===null||bidGroupId===''){throw'Missing the required parameter "bidGroupId" when calling deleteWorkforcemanagementBusinessunitSchedulebidGroup';}return this.apiClient.callApi('/api/v2/workforcemanagement/businessunits/{businessUnitId}/schedulebids/{bidId}/groups/{bidGroupId}','DELETE',{'businessUnitId':businessUnitId,'bidId':bidId,'bidGroupId':bidGroupId},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json'],opts['customHeaders']);}/**
|
|
28232
28269
|
* Cancel a scheduling run
|
|
28233
28270
|
*
|
|
28234
28271
|
* @param {String} businessUnitId The ID of the business unit
|
|
@@ -28687,6 +28724,55 @@ if(planningGroupId===undefined||planningGroupId===null||planningGroupId===''){th
|
|
|
28687
28724
|
* @param {Object.<string, string>} opts.customHeaders Per-request HTTP headers
|
|
28688
28725
|
*/},{key:"getWorkforcemanagementBusinessunitPlanninggroups",value:function getWorkforcemanagementBusinessunitPlanninggroups(businessUnitId,opts){opts=opts||{};// verify the required parameter 'businessUnitId' is set
|
|
28689
28726
|
if(businessUnitId===undefined||businessUnitId===null||businessUnitId===''){throw'Missing the required parameter "businessUnitId" when calling getWorkforcemanagementBusinessunitPlanninggroups';}return this.apiClient.callApi('/api/v2/workforcemanagement/businessunits/{businessUnitId}/planninggroups','GET',{'businessUnitId':businessUnitId},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json'],opts['customHeaders']);}/**
|
|
28727
|
+
* Get a schedule bid
|
|
28728
|
+
*
|
|
28729
|
+
* @param {String} businessUnitId The ID of the business unit
|
|
28730
|
+
* @param {String} bidId The ID of the schedule bid
|
|
28731
|
+
* @param {Object} opts Optional parameters
|
|
28732
|
+
* @param {Object.<string, string>} opts.customHeaders Per-request HTTP headers
|
|
28733
|
+
*/},{key:"getWorkforcemanagementBusinessunitSchedulebid",value:function getWorkforcemanagementBusinessunitSchedulebid(businessUnitId,bidId,opts){opts=opts||{};// verify the required parameter 'businessUnitId' is set
|
|
28734
|
+
if(businessUnitId===undefined||businessUnitId===null||businessUnitId===''){throw'Missing the required parameter "businessUnitId" when calling getWorkforcemanagementBusinessunitSchedulebid';}// verify the required parameter 'bidId' is set
|
|
28735
|
+
if(bidId===undefined||bidId===null||bidId===''){throw'Missing the required parameter "bidId" when calling getWorkforcemanagementBusinessunitSchedulebid';}return this.apiClient.callApi('/api/v2/workforcemanagement/businessunits/{businessUnitId}/schedulebids/{bidId}','GET',{'businessUnitId':businessUnitId,'bidId':bidId},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json'],opts['customHeaders']);}/**
|
|
28736
|
+
* Get a schedule bid group
|
|
28737
|
+
*
|
|
28738
|
+
* @param {String} businessUnitId The ID of the business unit
|
|
28739
|
+
* @param {String} bidId The ID of the schedule bid associated with the bid groups
|
|
28740
|
+
* @param {String} bidGroupId Schedule Bid Group id
|
|
28741
|
+
* @param {Object} opts Optional parameters
|
|
28742
|
+
* @param {Object.<string, string>} opts.customHeaders Per-request HTTP headers
|
|
28743
|
+
*/},{key:"getWorkforcemanagementBusinessunitSchedulebidGroup",value:function getWorkforcemanagementBusinessunitSchedulebidGroup(businessUnitId,bidId,bidGroupId,opts){opts=opts||{};// verify the required parameter 'businessUnitId' is set
|
|
28744
|
+
if(businessUnitId===undefined||businessUnitId===null||businessUnitId===''){throw'Missing the required parameter "businessUnitId" when calling getWorkforcemanagementBusinessunitSchedulebidGroup';}// verify the required parameter 'bidId' is set
|
|
28745
|
+
if(bidId===undefined||bidId===null||bidId===''){throw'Missing the required parameter "bidId" when calling getWorkforcemanagementBusinessunitSchedulebidGroup';}// verify the required parameter 'bidGroupId' is set
|
|
28746
|
+
if(bidGroupId===undefined||bidGroupId===null||bidGroupId===''){throw'Missing the required parameter "bidGroupId" when calling getWorkforcemanagementBusinessunitSchedulebidGroup';}return this.apiClient.callApi('/api/v2/workforcemanagement/businessunits/{businessUnitId}/schedulebids/{bidId}/groups/{bidGroupId}','GET',{'businessUnitId':businessUnitId,'bidId':bidId,'bidGroupId':bidGroupId},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json'],opts['customHeaders']);}/**
|
|
28747
|
+
* Get agents schedule bid preferences for a bid group
|
|
28748
|
+
*
|
|
28749
|
+
* @param {String} businessUnitId The ID of the business unit
|
|
28750
|
+
* @param {String} bidId The ID of the schedule bid associated with the bid groups
|
|
28751
|
+
* @param {String} bidGroupId The ID of the schedule bid group
|
|
28752
|
+
* @param {Object} opts Optional parameters
|
|
28753
|
+
* @param {Boolean} opts.forceDownloadService Force the result of this operation to be sent via download service. For testing/app development purposes
|
|
28754
|
+
* @param {Array.<String>} opts.expand Include to fetch agents' preferences with priorities
|
|
28755
|
+
* @param {Object.<string, string>} opts.customHeaders Per-request HTTP headers
|
|
28756
|
+
*/},{key:"getWorkforcemanagementBusinessunitSchedulebidGroupPreferences",value:function getWorkforcemanagementBusinessunitSchedulebidGroupPreferences(businessUnitId,bidId,bidGroupId,opts){opts=opts||{};// verify the required parameter 'businessUnitId' is set
|
|
28757
|
+
if(businessUnitId===undefined||businessUnitId===null||businessUnitId===''){throw'Missing the required parameter "businessUnitId" when calling getWorkforcemanagementBusinessunitSchedulebidGroupPreferences';}// verify the required parameter 'bidId' is set
|
|
28758
|
+
if(bidId===undefined||bidId===null||bidId===''){throw'Missing the required parameter "bidId" when calling getWorkforcemanagementBusinessunitSchedulebidGroupPreferences';}// verify the required parameter 'bidGroupId' is set
|
|
28759
|
+
if(bidGroupId===undefined||bidGroupId===null||bidGroupId===''){throw'Missing the required parameter "bidGroupId" when calling getWorkforcemanagementBusinessunitSchedulebidGroupPreferences';}return this.apiClient.callApi('/api/v2/workforcemanagement/businessunits/{businessUnitId}/schedulebids/{bidId}/groups/{bidGroupId}/preferences','GET',{'businessUnitId':businessUnitId,'bidId':bidId,'bidGroupId':bidGroupId},{'forceDownloadService':opts['forceDownloadService'],'expand':this.apiClient.buildCollectionParam(opts['expand'],'multi')},{},{},null,['PureCloud OAuth'],['application/json'],['application/json'],opts['customHeaders']);}/**
|
|
28760
|
+
* Get summary of bid groups that belong to a schedule bid
|
|
28761
|
+
*
|
|
28762
|
+
* @param {String} businessUnitId The ID of the business unit
|
|
28763
|
+
* @param {String} bidId The ID of the schedule bid associated with the bid groups
|
|
28764
|
+
* @param {Object} opts Optional parameters
|
|
28765
|
+
* @param {Object.<string, string>} opts.customHeaders Per-request HTTP headers
|
|
28766
|
+
*/},{key:"getWorkforcemanagementBusinessunitSchedulebidGroupsSummary",value:function getWorkforcemanagementBusinessunitSchedulebidGroupsSummary(businessUnitId,bidId,opts){opts=opts||{};// verify the required parameter 'businessUnitId' is set
|
|
28767
|
+
if(businessUnitId===undefined||businessUnitId===null||businessUnitId===''){throw'Missing the required parameter "businessUnitId" when calling getWorkforcemanagementBusinessunitSchedulebidGroupsSummary';}// verify the required parameter 'bidId' is set
|
|
28768
|
+
if(bidId===undefined||bidId===null||bidId===''){throw'Missing the required parameter "bidId" when calling getWorkforcemanagementBusinessunitSchedulebidGroupsSummary';}return this.apiClient.callApi('/api/v2/workforcemanagement/businessunits/{businessUnitId}/schedulebids/{bidId}/groups/summary','GET',{'businessUnitId':businessUnitId,'bidId':bidId},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json'],opts['customHeaders']);}/**
|
|
28769
|
+
* Get list of schedule bids
|
|
28770
|
+
*
|
|
28771
|
+
* @param {String} businessUnitId The ID of the business unit
|
|
28772
|
+
* @param {Object} opts Optional parameters
|
|
28773
|
+
* @param {Object.<string, string>} opts.customHeaders Per-request HTTP headers
|
|
28774
|
+
*/},{key:"getWorkforcemanagementBusinessunitSchedulebids",value:function getWorkforcemanagementBusinessunitSchedulebids(businessUnitId,opts){opts=opts||{};// verify the required parameter 'businessUnitId' is set
|
|
28775
|
+
if(businessUnitId===undefined||businessUnitId===null||businessUnitId===''){throw'Missing the required parameter "businessUnitId" when calling getWorkforcemanagementBusinessunitSchedulebids';}return this.apiClient.callApi('/api/v2/workforcemanagement/businessunits/{businessUnitId}/schedulebids','GET',{'businessUnitId':businessUnitId},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json'],opts['customHeaders']);}/**
|
|
28690
28776
|
* Get scheduler settings for a business unit
|
|
28691
28777
|
*
|
|
28692
28778
|
* @param {String} businessUnitId The ID of the business unit
|
|
@@ -29349,6 +29435,25 @@ if(managementUnitId===undefined||managementUnitId===null||managementUnitId==='')
|
|
|
29349
29435
|
* @param {Object} opts Optional parameters
|
|
29350
29436
|
* @param {Object.<string, string>} opts.customHeaders Per-request HTTP headers
|
|
29351
29437
|
*/},{key:"getWorkforcemanagementNotifications",value:function getWorkforcemanagementNotifications(opts){opts=opts||{};return this.apiClient.callApi('/api/v2/workforcemanagement/notifications','GET',{},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json'],opts['customHeaders']);}/**
|
|
29438
|
+
* Gets an agent's schedule bidding preference
|
|
29439
|
+
*
|
|
29440
|
+
* @param {String} bidId The ID of the schedule bid
|
|
29441
|
+
* @param {Object} opts Optional parameters
|
|
29442
|
+
* @param {Object.<string, string>} opts.customHeaders Per-request HTTP headers
|
|
29443
|
+
*/},{key:"getWorkforcemanagementSchedulebidPreference",value:function getWorkforcemanagementSchedulebidPreference(bidId,opts){opts=opts||{};// verify the required parameter 'bidId' is set
|
|
29444
|
+
if(bidId===undefined||bidId===null||bidId===''){throw'Missing the required parameter "bidId" when calling getWorkforcemanagementSchedulebidPreference';}return this.apiClient.callApi('/api/v2/workforcemanagement/schedulebids/{bidId}/preference','GET',{'bidId':bidId},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json'],opts['customHeaders']);}/**
|
|
29445
|
+
* Gets an agent's schedule sets for a bid
|
|
29446
|
+
*
|
|
29447
|
+
* @param {String} bidId The ID of the schedule bid
|
|
29448
|
+
* @param {Object} opts Optional parameters
|
|
29449
|
+
* @param {Object.<string, string>} opts.customHeaders Per-request HTTP headers
|
|
29450
|
+
*/},{key:"getWorkforcemanagementSchedulebidSchedulesets",value:function getWorkforcemanagementSchedulebidSchedulesets(bidId,opts){opts=opts||{};// verify the required parameter 'bidId' is set
|
|
29451
|
+
if(bidId===undefined||bidId===null||bidId===''){throw'Missing the required parameter "bidId" when calling getWorkforcemanagementSchedulebidSchedulesets';}return this.apiClient.callApi('/api/v2/workforcemanagement/schedulebids/{bidId}/schedulesets','GET',{'bidId':bidId},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json'],opts['customHeaders']);}/**
|
|
29452
|
+
* Gets the list of schedule bids that belong to an agent. It will fetch an open bid or upcoming bid or a bid that is closed recently
|
|
29453
|
+
*
|
|
29454
|
+
* @param {Object} opts Optional parameters
|
|
29455
|
+
* @param {Object.<string, string>} opts.customHeaders Per-request HTTP headers
|
|
29456
|
+
*/},{key:"getWorkforcemanagementSchedulebids",value:function getWorkforcemanagementSchedulebids(opts){opts=opts||{};return this.apiClient.callApi('/api/v2/workforcemanagement/schedulebids','GET',{},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json'],opts['customHeaders']);}/**
|
|
29352
29457
|
* Get status of the scheduling job
|
|
29353
29458
|
*
|
|
29354
29459
|
* @param {String} jobId The id of the scheduling job
|
|
@@ -29591,6 +29696,43 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
29591
29696
|
if(businessUnitId===undefined||businessUnitId===null||businessUnitId===''){throw'Missing the required parameter "businessUnitId" when calling patchWorkforcemanagementBusinessunitPlanninggroup';}// verify the required parameter 'planningGroupId' is set
|
|
29592
29697
|
if(planningGroupId===undefined||planningGroupId===null||planningGroupId===''){throw'Missing the required parameter "planningGroupId" when calling patchWorkforcemanagementBusinessunitPlanninggroup';}// verify the required parameter 'body' is set
|
|
29593
29698
|
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling patchWorkforcemanagementBusinessunitPlanninggroup';}return this.apiClient.callApi('/api/v2/workforcemanagement/businessunits/{businessUnitId}/planninggroups/{planningGroupId}','PATCH',{'businessUnitId':businessUnitId,'planningGroupId':planningGroupId},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json'],opts['customHeaders']);}/**
|
|
29699
|
+
* Update a schedule bid
|
|
29700
|
+
*
|
|
29701
|
+
* @param {String} businessUnitId The ID of the business unit
|
|
29702
|
+
* @param {String} bidId The ID of the schedule bid
|
|
29703
|
+
* @param {Object} body The schedule bid to be updated
|
|
29704
|
+
* @param {Object} opts Optional parameters
|
|
29705
|
+
* @param {Object.<string, string>} opts.customHeaders Per-request HTTP headers
|
|
29706
|
+
*/},{key:"patchWorkforcemanagementBusinessunitSchedulebid",value:function patchWorkforcemanagementBusinessunitSchedulebid(businessUnitId,bidId,body,opts){opts=opts||{};// verify the required parameter 'businessUnitId' is set
|
|
29707
|
+
if(businessUnitId===undefined||businessUnitId===null||businessUnitId===''){throw'Missing the required parameter "businessUnitId" when calling patchWorkforcemanagementBusinessunitSchedulebid';}// verify the required parameter 'bidId' is set
|
|
29708
|
+
if(bidId===undefined||bidId===null||bidId===''){throw'Missing the required parameter "bidId" when calling patchWorkforcemanagementBusinessunitSchedulebid';}// verify the required parameter 'body' is set
|
|
29709
|
+
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling patchWorkforcemanagementBusinessunitSchedulebid';}return this.apiClient.callApi('/api/v2/workforcemanagement/businessunits/{businessUnitId}/schedulebids/{bidId}','PATCH',{'businessUnitId':businessUnitId,'bidId':bidId},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json'],opts['customHeaders']);}/**
|
|
29710
|
+
* Update a schedule bid group by bid group Id
|
|
29711
|
+
*
|
|
29712
|
+
* @param {String} businessUnitId The ID of the business unit
|
|
29713
|
+
* @param {String} bidId The ID of the schedule bid associated with the bid groups
|
|
29714
|
+
* @param {String} bidGroupId Schedule Bid Group id
|
|
29715
|
+
* @param {Object} body body
|
|
29716
|
+
* @param {Object} opts Optional parameters
|
|
29717
|
+
* @param {Object.<string, string>} opts.customHeaders Per-request HTTP headers
|
|
29718
|
+
*/},{key:"patchWorkforcemanagementBusinessunitSchedulebidGroup",value:function patchWorkforcemanagementBusinessunitSchedulebidGroup(businessUnitId,bidId,bidGroupId,body,opts){opts=opts||{};// verify the required parameter 'businessUnitId' is set
|
|
29719
|
+
if(businessUnitId===undefined||businessUnitId===null||businessUnitId===''){throw'Missing the required parameter "businessUnitId" when calling patchWorkforcemanagementBusinessunitSchedulebidGroup';}// verify the required parameter 'bidId' is set
|
|
29720
|
+
if(bidId===undefined||bidId===null||bidId===''){throw'Missing the required parameter "bidId" when calling patchWorkforcemanagementBusinessunitSchedulebidGroup';}// verify the required parameter 'bidGroupId' is set
|
|
29721
|
+
if(bidGroupId===undefined||bidGroupId===null||bidGroupId===''){throw'Missing the required parameter "bidGroupId" when calling patchWorkforcemanagementBusinessunitSchedulebidGroup';}// verify the required parameter 'body' is set
|
|
29722
|
+
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling patchWorkforcemanagementBusinessunitSchedulebidGroup';}return this.apiClient.callApi('/api/v2/workforcemanagement/businessunits/{businessUnitId}/schedulebids/{bidId}/groups/{bidGroupId}','PATCH',{'businessUnitId':businessUnitId,'bidId':bidId,'bidGroupId':bidGroupId},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json'],opts['customHeaders']);}/**
|
|
29723
|
+
* Overrides the assigned schedule bid for the specified agents
|
|
29724
|
+
*
|
|
29725
|
+
* @param {String} businessUnitId The ID of the business unit
|
|
29726
|
+
* @param {String} bidId The ID of the schedule bid associated with the bid groups
|
|
29727
|
+
* @param {String} bidGroupId The ID of the schedule bid group
|
|
29728
|
+
* @param {Object} body body
|
|
29729
|
+
* @param {Object} opts Optional parameters
|
|
29730
|
+
* @param {Object.<string, string>} opts.customHeaders Per-request HTTP headers
|
|
29731
|
+
*/},{key:"patchWorkforcemanagementBusinessunitSchedulebidGroupPreferences",value:function patchWorkforcemanagementBusinessunitSchedulebidGroupPreferences(businessUnitId,bidId,bidGroupId,body,opts){opts=opts||{};// verify the required parameter 'businessUnitId' is set
|
|
29732
|
+
if(businessUnitId===undefined||businessUnitId===null||businessUnitId===''){throw'Missing the required parameter "businessUnitId" when calling patchWorkforcemanagementBusinessunitSchedulebidGroupPreferences';}// verify the required parameter 'bidId' is set
|
|
29733
|
+
if(bidId===undefined||bidId===null||bidId===''){throw'Missing the required parameter "bidId" when calling patchWorkforcemanagementBusinessunitSchedulebidGroupPreferences';}// verify the required parameter 'bidGroupId' is set
|
|
29734
|
+
if(bidGroupId===undefined||bidGroupId===null||bidGroupId===''){throw'Missing the required parameter "bidGroupId" when calling patchWorkforcemanagementBusinessunitSchedulebidGroupPreferences';}// verify the required parameter 'body' is set
|
|
29735
|
+
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling patchWorkforcemanagementBusinessunitSchedulebidGroupPreferences';}return this.apiClient.callApi('/api/v2/workforcemanagement/businessunits/{businessUnitId}/schedulebids/{bidId}/groups/{bidGroupId}/preferences','PATCH',{'businessUnitId':businessUnitId,'bidId':bidId,'bidGroupId':bidGroupId},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json'],opts['customHeaders']);}/**
|
|
29594
29736
|
* Update scheduler settings for a business unit
|
|
29595
29737
|
*
|
|
29596
29738
|
* @param {String} businessUnitId The ID of the business unit
|
|
@@ -30207,6 +30349,46 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
30207
30349
|
*/},{key:"postWorkforcemanagementBusinessunitPlanninggroups",value:function postWorkforcemanagementBusinessunitPlanninggroups(businessUnitId,body,opts){opts=opts||{};// verify the required parameter 'businessUnitId' is set
|
|
30208
30350
|
if(businessUnitId===undefined||businessUnitId===null||businessUnitId===''){throw'Missing the required parameter "businessUnitId" when calling postWorkforcemanagementBusinessunitPlanninggroups';}// verify the required parameter 'body' is set
|
|
30209
30351
|
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling postWorkforcemanagementBusinessunitPlanninggroups';}return this.apiClient.callApi('/api/v2/workforcemanagement/businessunits/{businessUnitId}/planninggroups','POST',{'businessUnitId':businessUnitId},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json'],opts['customHeaders']);}/**
|
|
30352
|
+
* Copy a schedule bid
|
|
30353
|
+
*
|
|
30354
|
+
* @param {String} businessUnitId The ID of the business unit
|
|
30355
|
+
* @param {String} bidId The ID of the schedule bid to copy
|
|
30356
|
+
* @param {Object} body body
|
|
30357
|
+
* @param {Object} opts Optional parameters
|
|
30358
|
+
* @param {Object.<string, string>} opts.customHeaders Per-request HTTP headers
|
|
30359
|
+
*/},{key:"postWorkforcemanagementBusinessunitSchedulebidCopy",value:function postWorkforcemanagementBusinessunitSchedulebidCopy(businessUnitId,bidId,body,opts){opts=opts||{};// verify the required parameter 'businessUnitId' is set
|
|
30360
|
+
if(businessUnitId===undefined||businessUnitId===null||businessUnitId===''){throw'Missing the required parameter "businessUnitId" when calling postWorkforcemanagementBusinessunitSchedulebidCopy';}// verify the required parameter 'bidId' is set
|
|
30361
|
+
if(bidId===undefined||bidId===null||bidId===''){throw'Missing the required parameter "bidId" when calling postWorkforcemanagementBusinessunitSchedulebidCopy';}// verify the required parameter 'body' is set
|
|
30362
|
+
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling postWorkforcemanagementBusinessunitSchedulebidCopy';}return this.apiClient.callApi('/api/v2/workforcemanagement/businessunits/{businessUnitId}/schedulebids/{bidId}/copy','POST',{'businessUnitId':businessUnitId,'bidId':bidId},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json'],opts['customHeaders']);}/**
|
|
30363
|
+
* Add a bid group in a given schedule bid
|
|
30364
|
+
*
|
|
30365
|
+
* @param {String} businessUnitId The ID of the business unit
|
|
30366
|
+
* @param {String} bidId The ID of the schedule bid associated with the bid groups
|
|
30367
|
+
* @param {Object} body body
|
|
30368
|
+
* @param {Object} opts Optional parameters
|
|
30369
|
+
* @param {Object.<string, string>} opts.customHeaders Per-request HTTP headers
|
|
30370
|
+
*/},{key:"postWorkforcemanagementBusinessunitSchedulebidGroups",value:function postWorkforcemanagementBusinessunitSchedulebidGroups(businessUnitId,bidId,body,opts){opts=opts||{};// verify the required parameter 'businessUnitId' is set
|
|
30371
|
+
if(businessUnitId===undefined||businessUnitId===null||businessUnitId===''){throw'Missing the required parameter "businessUnitId" when calling postWorkforcemanagementBusinessunitSchedulebidGroups';}// verify the required parameter 'bidId' is set
|
|
30372
|
+
if(bidId===undefined||bidId===null||bidId===''){throw'Missing the required parameter "bidId" when calling postWorkforcemanagementBusinessunitSchedulebidGroups';}// verify the required parameter 'body' is set
|
|
30373
|
+
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling postWorkforcemanagementBusinessunitSchedulebidGroups';}return this.apiClient.callApi('/api/v2/workforcemanagement/businessunits/{businessUnitId}/schedulebids/{bidId}/groups','POST',{'businessUnitId':businessUnitId,'bidId':bidId},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json'],opts['customHeaders']);}/**
|
|
30374
|
+
* Create a new schedule bid
|
|
30375
|
+
*
|
|
30376
|
+
* @param {String} businessUnitId The ID of the business unit
|
|
30377
|
+
* @param {Object} body The schedule bid to be created
|
|
30378
|
+
* @param {Object} opts Optional parameters
|
|
30379
|
+
* @param {Object.<string, string>} opts.customHeaders Per-request HTTP headers
|
|
30380
|
+
*/},{key:"postWorkforcemanagementBusinessunitSchedulebids",value:function postWorkforcemanagementBusinessunitSchedulebids(businessUnitId,body,opts){opts=opts||{};// verify the required parameter 'businessUnitId' is set
|
|
30381
|
+
if(businessUnitId===undefined||businessUnitId===null||businessUnitId===''){throw'Missing the required parameter "businessUnitId" when calling postWorkforcemanagementBusinessunitSchedulebids';}// verify the required parameter 'body' is set
|
|
30382
|
+
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling postWorkforcemanagementBusinessunitSchedulebids';}return this.apiClient.callApi('/api/v2/workforcemanagement/businessunits/{businessUnitId}/schedulebids','POST',{'businessUnitId':businessUnitId},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json'],opts['customHeaders']);}/**
|
|
30383
|
+
* Fetch all the agents with effective schedule set for the given BU
|
|
30384
|
+
*
|
|
30385
|
+
* @param {String} businessUnitId The ID of the business unit
|
|
30386
|
+
* @param {Object} body body
|
|
30387
|
+
* @param {Object} opts Optional parameters
|
|
30388
|
+
* @param {Object.<string, string>} opts.customHeaders Per-request HTTP headers
|
|
30389
|
+
*/},{key:"postWorkforcemanagementBusinessunitSchedulebidsEffectiveschedulesets",value:function postWorkforcemanagementBusinessunitSchedulebidsEffectiveschedulesets(businessUnitId,body,opts){opts=opts||{};// verify the required parameter 'businessUnitId' is set
|
|
30390
|
+
if(businessUnitId===undefined||businessUnitId===null||businessUnitId===''){throw'Missing the required parameter "businessUnitId" when calling postWorkforcemanagementBusinessunitSchedulebidsEffectiveschedulesets';}// verify the required parameter 'body' is set
|
|
30391
|
+
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling postWorkforcemanagementBusinessunitSchedulebidsEffectiveschedulesets';}return this.apiClient.callApi('/api/v2/workforcemanagement/businessunits/{businessUnitId}/schedulebids/effectiveschedulesets','POST',{'businessUnitId':businessUnitId},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json'],opts['customHeaders']);}/**
|
|
30210
30392
|
* Adds a new service goal template
|
|
30211
30393
|
*
|
|
30212
30394
|
* @param {String} businessUnitId The ID of the business unit.
|
|
@@ -31021,7 +31203,16 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
31021
31203
|
*/},{key:"putWorkforcemanagementManagementunitTimeofflimitValues",value:function putWorkforcemanagementManagementunitTimeofflimitValues(managementUnitId,timeOffLimitId,body,opts){opts=opts||{};// verify the required parameter 'managementUnitId' is set
|
|
31022
31204
|
if(managementUnitId===undefined||managementUnitId===null||managementUnitId===''){throw'Missing the required parameter "managementUnitId" when calling putWorkforcemanagementManagementunitTimeofflimitValues';}// verify the required parameter 'timeOffLimitId' is set
|
|
31023
31205
|
if(timeOffLimitId===undefined||timeOffLimitId===null||timeOffLimitId===''){throw'Missing the required parameter "timeOffLimitId" when calling putWorkforcemanagementManagementunitTimeofflimitValues';}// verify the required parameter 'body' is set
|
|
31024
|
-
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling putWorkforcemanagementManagementunitTimeofflimitValues';}return this.apiClient.callApi('/api/v2/workforcemanagement/managementunits/{managementUnitId}/timeofflimits/{timeOffLimitId}/values','PUT',{'managementUnitId':managementUnitId,'timeOffLimitId':timeOffLimitId},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json'],opts['customHeaders']);}
|
|
31206
|
+
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling putWorkforcemanagementManagementunitTimeofflimitValues';}return this.apiClient.callApi('/api/v2/workforcemanagement/managementunits/{managementUnitId}/timeofflimits/{timeOffLimitId}/values','PUT',{'managementUnitId':managementUnitId,'timeOffLimitId':timeOffLimitId},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json'],opts['customHeaders']);}/**
|
|
31207
|
+
* Update an agent's schedule set preference
|
|
31208
|
+
*
|
|
31209
|
+
* @param {String} bidId The ID of the schedule bid
|
|
31210
|
+
* @param {Object} body body
|
|
31211
|
+
* @param {Object} opts Optional parameters
|
|
31212
|
+
* @param {Object.<string, string>} opts.customHeaders Per-request HTTP headers
|
|
31213
|
+
*/},{key:"putWorkforcemanagementSchedulebidPreference",value:function putWorkforcemanagementSchedulebidPreference(bidId,body,opts){opts=opts||{};// verify the required parameter 'bidId' is set
|
|
31214
|
+
if(bidId===undefined||bidId===null||bidId===''){throw'Missing the required parameter "bidId" when calling putWorkforcemanagementSchedulebidPreference';}// verify the required parameter 'body' is set
|
|
31215
|
+
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling putWorkforcemanagementSchedulebidPreference';}return this.apiClient.callApi('/api/v2/workforcemanagement/schedulebids/{bidId}/preference','PUT',{'bidId':bidId},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json'],opts['customHeaders']);}}]);}();/**
|
|
31025
31216
|
* A JavaScript library to interface with the PureCloud Platform API.<br>
|
|
31026
31217
|
* The <code>index</code> module provides access to constructors for all the classes which comprise the public API.
|
|
31027
31218
|
* <p>
|
|
@@ -31050,7 +31241,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
31050
31241
|
* </pre>
|
|
31051
31242
|
* </p>
|
|
31052
31243
|
* @module purecloud-platform-client-v2/index
|
|
31053
|
-
* @version
|
|
31244
|
+
* @version 255.1.0
|
|
31054
31245
|
*/var platformClient=/*#__PURE__*/_createClass(function platformClient(){_classCallCheck(this,platformClient);/**
|
|
31055
31246
|
* The ApiClient constructor.
|
|
31056
31247
|
* @property {module:purecloud-platform-client-v2/ApiClient}
|