purecloud-platform-client-v2 190.0.0 → 192.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +2 -2
- package/dist/node/purecloud-platform-client-v2.js +654 -173
- package/dist/web-amd/purecloud-platform-client-v2.js +654 -173
- package/dist/web-amd/purecloud-platform-client-v2.min.js +1 -1
- package/dist/web-cjs/bundle.js +419 -288
- package/dist/web-cjs/purecloud-platform-client-v2.js +467 -323
- package/dist/web-cjs/purecloud-platform-client-v2.min.js +1 -1
- package/index.d.ts +846 -290
- package/package.json +1 -1
- package/src/purecloud-platform-client-v2/ApiClient.js +1 -1
- package/src/purecloud-platform-client-v2/api/AlertingApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/AnalyticsApi.js +162 -1
- package/src/purecloud-platform-client-v2/api/ArchitectApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/AuditApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/AuthorizationApi.js +13 -5
- package/src/purecloud-platform-client-v2/api/BillingApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/CarrierServicesApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/ChatApi.js +127 -39
- 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 +50 -16
- package/src/purecloud-platform-client-v2/api/DataExtensionsApi.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/EventsApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/ExternalContactsApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/FaxApi.js +45 -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 +3 -2
- 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 +22 -1
- package/src/purecloud-platform-client-v2/api/LanguagesApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/LearningApi.js +1 -2
- 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 +4 -3
- 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 +3 -3
- package/src/purecloud-platform-client-v2/api/RecordingApi.js +3 -2
- package/src/purecloud-platform-client-v2/api/ResponseManagementApi.js +26 -1
- package/src/purecloud-platform-client-v2/api/RoutingApi.js +27 -1
- package/src/purecloud-platform-client-v2/api/SCIMApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/ScreenRecordingApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/ScriptsApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/SearchApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/SettingsApi.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 +79 -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 -22
- 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 +11 -6
- package/src/purecloud-platform-client-v2/api/UserRecordingsApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/UsersApi.js +13 -5
- 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 +5 -3
- 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 +1 -1
- package/src/purecloud-platform-client-v2/index.js +1 -1
|
@@ -4127,7 +4127,7 @@ var defaults = {
|
|
|
4127
4127
|
charset: 'utf-8',
|
|
4128
4128
|
charsetSentinel: false,
|
|
4129
4129
|
comma: false,
|
|
4130
|
-
decodeDotInKeys:
|
|
4130
|
+
decodeDotInKeys: false,
|
|
4131
4131
|
decoder: utils.decode,
|
|
4132
4132
|
delimiter: '&',
|
|
4133
4133
|
depth: 5,
|
|
@@ -4878,6 +4878,10 @@ var decode = function (str, decoder, charset) {
|
|
|
4878
4878
|
}
|
|
4879
4879
|
};
|
|
4880
4880
|
|
|
4881
|
+
var limit = 1024;
|
|
4882
|
+
|
|
4883
|
+
/* eslint operator-linebreak: [2, "before"] */
|
|
4884
|
+
|
|
4881
4885
|
var encode = function encode(str, defaultEncoder, charset, kind, format) {
|
|
4882
4886
|
// This code was originally written by Brian White (mscdex) for the io.js core querystring library.
|
|
4883
4887
|
// It has been adapted here for stricter adherence to RFC 3986
|
|
@@ -4899,45 +4903,54 @@ var encode = function encode(str, defaultEncoder, charset, kind, format) {
|
|
|
4899
4903
|
}
|
|
4900
4904
|
|
|
4901
4905
|
var out = '';
|
|
4902
|
-
for (var
|
|
4903
|
-
var
|
|
4904
|
-
|
|
4905
|
-
|
|
4906
|
-
|
|
4907
|
-
|
|
4908
|
-
|
|
4909
|
-
|
|
4910
|
-
|
|
4911
|
-
|
|
4912
|
-
|
|
4913
|
-
|
|
4914
|
-
|
|
4915
|
-
|
|
4916
|
-
|
|
4917
|
-
|
|
4906
|
+
for (var j = 0; j < string.length; j += limit) {
|
|
4907
|
+
var segment = string.length >= limit ? string.slice(j, j + limit) : string;
|
|
4908
|
+
var arr = [];
|
|
4909
|
+
|
|
4910
|
+
for (var i = 0; i < segment.length; ++i) {
|
|
4911
|
+
var c = segment.charCodeAt(i);
|
|
4912
|
+
if (
|
|
4913
|
+
c === 0x2D // -
|
|
4914
|
+
|| c === 0x2E // .
|
|
4915
|
+
|| c === 0x5F // _
|
|
4916
|
+
|| c === 0x7E // ~
|
|
4917
|
+
|| (c >= 0x30 && c <= 0x39) // 0-9
|
|
4918
|
+
|| (c >= 0x41 && c <= 0x5A) // a-z
|
|
4919
|
+
|| (c >= 0x61 && c <= 0x7A) // A-Z
|
|
4920
|
+
|| (format === formats.RFC1738 && (c === 0x28 || c === 0x29)) // ( )
|
|
4921
|
+
) {
|
|
4922
|
+
arr[arr.length] = segment.charAt(i);
|
|
4923
|
+
continue;
|
|
4924
|
+
}
|
|
4918
4925
|
|
|
4919
|
-
|
|
4920
|
-
|
|
4921
|
-
|
|
4922
|
-
|
|
4926
|
+
if (c < 0x80) {
|
|
4927
|
+
arr[arr.length] = hexTable[c];
|
|
4928
|
+
continue;
|
|
4929
|
+
}
|
|
4923
4930
|
|
|
4924
|
-
|
|
4925
|
-
|
|
4926
|
-
|
|
4927
|
-
|
|
4931
|
+
if (c < 0x800) {
|
|
4932
|
+
arr[arr.length] = hexTable[0xC0 | (c >> 6)]
|
|
4933
|
+
+ hexTable[0x80 | (c & 0x3F)];
|
|
4934
|
+
continue;
|
|
4935
|
+
}
|
|
4928
4936
|
|
|
4929
|
-
|
|
4930
|
-
|
|
4931
|
-
|
|
4937
|
+
if (c < 0xD800 || c >= 0xE000) {
|
|
4938
|
+
arr[arr.length] = hexTable[0xE0 | (c >> 12)]
|
|
4939
|
+
+ hexTable[0x80 | ((c >> 6) & 0x3F)]
|
|
4940
|
+
+ hexTable[0x80 | (c & 0x3F)];
|
|
4941
|
+
continue;
|
|
4942
|
+
}
|
|
4943
|
+
|
|
4944
|
+
i += 1;
|
|
4945
|
+
c = 0x10000 + (((c & 0x3FF) << 10) | (segment.charCodeAt(i) & 0x3FF));
|
|
4946
|
+
|
|
4947
|
+
arr[arr.length] = hexTable[0xF0 | (c >> 18)]
|
|
4948
|
+
+ hexTable[0x80 | ((c >> 12) & 0x3F)]
|
|
4949
|
+
+ hexTable[0x80 | ((c >> 6) & 0x3F)]
|
|
4950
|
+
+ hexTable[0x80 | (c & 0x3F)];
|
|
4932
4951
|
}
|
|
4933
4952
|
|
|
4934
|
-
|
|
4935
|
-
c = 0x10000 + (((c & 0x3FF) << 10) | (string.charCodeAt(i) & 0x3FF));
|
|
4936
|
-
/* eslint operator-linebreak: [2, "before"] */
|
|
4937
|
-
out += hexTable[0xF0 | (c >> 18)]
|
|
4938
|
-
+ hexTable[0x80 | ((c >> 12) & 0x3F)]
|
|
4939
|
-
+ hexTable[0x80 | ((c >> 6) & 0x3F)]
|
|
4940
|
-
+ hexTable[0x80 | (c & 0x3F)];
|
|
4953
|
+
out += arr.join('');
|
|
4941
4954
|
}
|
|
4942
4955
|
|
|
4943
4956
|
return out;
|
|
@@ -5184,7 +5197,7 @@ module.exports = function getSideChannel() {
|
|
|
5184
5197
|
|
|
5185
5198
|
},{"call-bind/callBound":8,"es-errors/type":17,"get-intrinsic":21,"object-inspect":28}],"platformClient":[function(require,module,exports){
|
|
5186
5199
|
(function (global,Buffer){(function (){
|
|
5187
|
-
'use strict';function _regeneratorRuntime(){"use strict";/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */_regeneratorRuntime=function _regeneratorRuntime(){return e;};var t,e={},r=Object.prototype,n=r.hasOwnProperty,o=Object.defineProperty||function(t,e,r){t[e]=r.value;},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",c=i.asyncIterator||"@@asyncIterator",u=i.toStringTag||"@@toStringTag";function define(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e];}try{define({},"");}catch(t){define=function define(t,e,r){return t[e]=r;};}function wrap(t,e,r,n){var i=e&&e.prototype instanceof Generator?e:Generator,a=Object.create(i.prototype),c=new Context(n||[]);return o(a,"_invoke",{value:makeInvokeMethod(t,r,c)}),a;}function tryCatch(t,e,r){try{return{type:"normal",arg:t.call(e,r)};}catch(t){return{type:"throw",arg:t};}}e.wrap=wrap;var h="suspendedStart",l="suspendedYield",f="executing",s="completed",y={};function Generator(){}function GeneratorFunction(){}function GeneratorFunctionPrototype(){}var p={};define(p,a,function(){return this;});var d=Object.getPrototypeOf,v=d&&d(d(values([])));v&&v!==r&&n.call(v,a)&&(p=v);var g=GeneratorFunctionPrototype.prototype=Generator.prototype=Object.create(p);function defineIteratorMethods(t){["next","throw","return"].forEach(function(e){define(t,e,function(t){return this._invoke(e,t);});});}function AsyncIterator(t,e){function invoke(r,o,i,a){var c=tryCatch(t[r],t,o);if("throw"!==c.type){var u=c.arg,h=u.value;return h&&"object"==_typeof(h)&&n.call(h,"__await")?e.resolve(h.__await).then(function(t){invoke("next",t,i,a);},function(t){invoke("throw",t,i,a);}):e.resolve(h).then(function(t){u.value=t,i(u);},function(t){return invoke("throw",t,i,a);});}a(c.arg);}var r;o(this,"_invoke",{value:function value(t,n){function callInvokeWithMethodAndArg(){return new e(function(e,r){invoke(t,n,e,r);});}return r=r?r.then(callInvokeWithMethodAndArg,callInvokeWithMethodAndArg):callInvokeWithMethodAndArg();}});}function makeInvokeMethod(e,r,n){var o=h;return function(i,a){if(o===f)throw new Error("Generator is already running");if(o===s){if("throw"===i)throw a;return{value:t,done:!0};}for(n.method=i,n.arg=a;;){var c=n.delegate;if(c){var u=maybeInvokeDelegate(c,n);if(u){if(u===y)continue;return u;}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===h)throw o=s,n.arg;n.dispatchException(n.arg);}else"return"===n.method&&n.abrupt("return",n.arg);o=f;var p=tryCatch(e,r,n);if("normal"===p.type){if(o=n.done?s:l,p.arg===y)continue;return{value:p.arg,done:n.done};}"throw"===p.type&&(o=s,n.method="throw",n.arg=p.arg);}};}function maybeInvokeDelegate(e,r){var n=r.method,o=e.iterator[n];if(o===t)return r.delegate=null,"throw"===n&&e.iterator["return"]&&(r.method="return",r.arg=t,maybeInvokeDelegate(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),y;var i=tryCatch(o,e.iterator,r.arg);if("throw"===i.type)return r.method="throw",r.arg=i.arg,r.delegate=null,y;var a=i.arg;return a?a.done?(r[e.resultName]=a.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,y):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,y);}function pushTryEntry(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e);}function resetTryEntry(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e;}function Context(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(pushTryEntry,this),this.reset(!0);}function values(e){if(e||""===e){var r=e[a];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,i=function next(){for(;++o<e.length;)if(n.call(e,o))return next.value=e[o],next.done=!1,next;return next.value=t,next.done=!0,next;};return i.next=i;}}throw new TypeError(_typeof(e)+" is not iterable");}return GeneratorFunction.prototype=GeneratorFunctionPrototype,o(g,"constructor",{value:GeneratorFunctionPrototype,configurable:!0}),o(GeneratorFunctionPrototype,"constructor",{value:GeneratorFunction,configurable:!0}),GeneratorFunction.displayName=define(GeneratorFunctionPrototype,u,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===GeneratorFunction||"GeneratorFunction"===(e.displayName||e.name));},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,GeneratorFunctionPrototype):(t.__proto__=GeneratorFunctionPrototype,define(t,u,"GeneratorFunction")),t.prototype=Object.create(g),t;},e.awrap=function(t){return{__await:t};},defineIteratorMethods(AsyncIterator.prototype),define(AsyncIterator.prototype,c,function(){return this;}),e.AsyncIterator=AsyncIterator,e.async=function(t,r,n,o,i){void 0===i&&(i=Promise);var a=new AsyncIterator(wrap(t,r,n,o),i);return e.isGeneratorFunction(r)?a:a.next().then(function(t){return t.done?t.value:a.next();});},defineIteratorMethods(g),define(g,u,"Generator"),define(g,a,function(){return this;}),define(g,"toString",function(){return"[object Generator]";}),e.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function next(){for(;r.length;){var t=r.pop();if(t in e)return next.value=t,next.done=!1,next;}return next.done=!0,next;};},e.values=values,Context.prototype={constructor:Context,reset:function reset(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(resetTryEntry),!e)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=t);},stop:function stop(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval;},dispatchException:function dispatchException(e){if(this.done)throw e;var r=this;function handle(n,o){return a.type="throw",a.arg=e,r.next=n,o&&(r.method="next",r.arg=t),!!o;}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return handle("end");if(i.tryLoc<=this.prev){var c=n.call(i,"catchLoc"),u=n.call(i,"finallyLoc");if(c&&u){if(this.prev<i.catchLoc)return handle(i.catchLoc,!0);if(this.prev<i.finallyLoc)return handle(i.finallyLoc);}else if(c){if(this.prev<i.catchLoc)return handle(i.catchLoc,!0);}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return handle(i.finallyLoc);}}}},abrupt:function abrupt(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break;}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,y):this.complete(a);},complete:function complete(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),y;},finish:function finish(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),resetTryEntry(r),y;}},"catch":function _catch(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;resetTryEntry(r);}return o;}}throw new Error("illegal catch attempt");},delegateYield:function delegateYield(e,r,n){return this.delegate={iterator:values(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),y;}},e;}function asyncGeneratorStep(gen,resolve,reject,_next,_throw,key,arg){try{var info=gen[key](arg);var value=info.value;}catch(error){reject(error);return;}if(info.done){resolve(value);}else{Promise.resolve(value).then(_next,_throw);}}function _asyncToGenerator(fn){return function(){var self=this,args=arguments;return new Promise(function(resolve,reject){var gen=fn.apply(self,args);function _next(value){asyncGeneratorStep(gen,resolve,reject,_next,_throw,"next",value);}function _throw(err){asyncGeneratorStep(gen,resolve,reject,_next,_throw,"throw",err);}_next(undefined);});};}function _toConsumableArray(arr){return _arrayWithoutHoles(arr)||_iterableToArray(arr)||_unsupportedIterableToArray(arr)||_nonIterableSpread();}function _nonIterableSpread(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");}function _arrayWithoutHoles(arr){if(Array.isArray(arr))return _arrayLikeToArray(arr);}function _toArray(arr){return _arrayWithHoles(arr)||_iterableToArray(arr)||_unsupportedIterableToArray(arr)||_nonIterableRest();}function _iterableToArray(iter){if(typeof Symbol!=="undefined"&&iter[Symbol.iterator]!=null||iter["@@iterator"]!=null)return Array.from(iter);}function _slicedToArray(arr,i){return _arrayWithHoles(arr)||_iterableToArrayLimit(arr,i)||_unsupportedIterableToArray(arr,i)||_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(o,minLen){if(!o)return;if(typeof o==="string")return _arrayLikeToArray(o,minLen);var n=Object.prototype.toString.call(o).slice(8,-1);if(n==="Object"&&o.constructor)n=o.constructor.name;if(n==="Map"||n==="Set")return Array.from(o);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return _arrayLikeToArray(o,minLen);}function _arrayLikeToArray(arr,len){if(len==null||len>arr.length)len=arr.length;for(var i=0,arr2=new Array(len);i<len;i++)arr2[i]=arr[i];return arr2;}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(arr){if(Array.isArray(arr))return arr;}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(obj,key,value){key=_toPropertyKey(key);if(key in obj){Object.defineProperty(obj,key,{value:value,enumerable:true,configurable:true,writable:true});}else{obj[key]=value;}return obj;}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function");}}function _defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||false;descriptor.configurable=true;if("value"in descriptor)descriptor.writable=true;Object.defineProperty(target,_toPropertyKey(descriptor.key),descriptor);}}function _createClass(Constructor,protoProps,staticProps){if(protoProps)_defineProperties(Constructor.prototype,protoProps);if(staticProps)_defineProperties(Constructor,staticProps);Object.defineProperty(Constructor,"prototype",{writable:false});return Constructor;}function _toPropertyKey(t){var i=_toPrimitive(t,"string");return"symbol"==_typeof(i)?i:String(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 _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);}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'};var global$1=typeof global!=="undefined"?global:typeof self!=="undefined"?self:typeof window!=="undefined"?window:{};var lookup=[];var revLookup=[];var Arr=typeof Uint8Array!=='undefined'?Uint8Array:Array;var inited=false;function init(){inited=true;var code='ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/';for(var i=0,len=code.length;i<len;++i){lookup[i]=code[i];revLookup[code.charCodeAt(i)]=i;}revLookup['-'.charCodeAt(0)]=62;revLookup['_'.charCodeAt(0)]=63;}function toByteArray(b64){if(!inited){init();}var i,j,l,tmp,placeHolders,arr;var len=b64.length;if(len%4>0){throw new Error('Invalid string. Length must be a multiple of 4');}// the number of equal signs (place holders)
|
|
5200
|
+
'use strict';function _regeneratorRuntime(){"use strict";/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */_regeneratorRuntime=function _regeneratorRuntime(){return e;};var t,e={},r=Object.prototype,n=r.hasOwnProperty,o=Object.defineProperty||function(t,e,r){t[e]=r.value;},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",c=i.asyncIterator||"@@asyncIterator",u=i.toStringTag||"@@toStringTag";function define(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e];}try{define({},"");}catch(t){define=function define(t,e,r){return t[e]=r;};}function wrap(t,e,r,n){var i=e&&e.prototype instanceof Generator?e:Generator,a=Object.create(i.prototype),c=new Context(n||[]);return o(a,"_invoke",{value:makeInvokeMethod(t,r,c)}),a;}function tryCatch(t,e,r){try{return{type:"normal",arg:t.call(e,r)};}catch(t){return{type:"throw",arg:t};}}e.wrap=wrap;var h="suspendedStart",l="suspendedYield",f="executing",s="completed",y={};function Generator(){}function GeneratorFunction(){}function GeneratorFunctionPrototype(){}var p={};define(p,a,function(){return this;});var d=Object.getPrototypeOf,v=d&&d(d(values([])));v&&v!==r&&n.call(v,a)&&(p=v);var g=GeneratorFunctionPrototype.prototype=Generator.prototype=Object.create(p);function defineIteratorMethods(t){["next","throw","return"].forEach(function(e){define(t,e,function(t){return this._invoke(e,t);});});}function AsyncIterator(t,e){function invoke(r,o,i,a){var c=tryCatch(t[r],t,o);if("throw"!==c.type){var u=c.arg,h=u.value;return h&&"object"==_typeof(h)&&n.call(h,"__await")?e.resolve(h.__await).then(function(t){invoke("next",t,i,a);},function(t){invoke("throw",t,i,a);}):e.resolve(h).then(function(t){u.value=t,i(u);},function(t){return invoke("throw",t,i,a);});}a(c.arg);}var r;o(this,"_invoke",{value:function value(t,n){function callInvokeWithMethodAndArg(){return new e(function(e,r){invoke(t,n,e,r);});}return r=r?r.then(callInvokeWithMethodAndArg,callInvokeWithMethodAndArg):callInvokeWithMethodAndArg();}});}function makeInvokeMethod(e,r,n){var o=h;return function(i,a){if(o===f)throw Error("Generator is already running");if(o===s){if("throw"===i)throw a;return{value:t,done:!0};}for(n.method=i,n.arg=a;;){var c=n.delegate;if(c){var u=maybeInvokeDelegate(c,n);if(u){if(u===y)continue;return u;}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===h)throw o=s,n.arg;n.dispatchException(n.arg);}else"return"===n.method&&n.abrupt("return",n.arg);o=f;var p=tryCatch(e,r,n);if("normal"===p.type){if(o=n.done?s:l,p.arg===y)continue;return{value:p.arg,done:n.done};}"throw"===p.type&&(o=s,n.method="throw",n.arg=p.arg);}};}function maybeInvokeDelegate(e,r){var n=r.method,o=e.iterator[n];if(o===t)return r.delegate=null,"throw"===n&&e.iterator["return"]&&(r.method="return",r.arg=t,maybeInvokeDelegate(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),y;var i=tryCatch(o,e.iterator,r.arg);if("throw"===i.type)return r.method="throw",r.arg=i.arg,r.delegate=null,y;var a=i.arg;return a?a.done?(r[e.resultName]=a.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,y):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,y);}function pushTryEntry(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e);}function resetTryEntry(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e;}function Context(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(pushTryEntry,this),this.reset(!0);}function values(e){if(e||""===e){var r=e[a];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,i=function next(){for(;++o<e.length;)if(n.call(e,o))return next.value=e[o],next.done=!1,next;return next.value=t,next.done=!0,next;};return i.next=i;}}throw new TypeError(_typeof(e)+" is not iterable");}return GeneratorFunction.prototype=GeneratorFunctionPrototype,o(g,"constructor",{value:GeneratorFunctionPrototype,configurable:!0}),o(GeneratorFunctionPrototype,"constructor",{value:GeneratorFunction,configurable:!0}),GeneratorFunction.displayName=define(GeneratorFunctionPrototype,u,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===GeneratorFunction||"GeneratorFunction"===(e.displayName||e.name));},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,GeneratorFunctionPrototype):(t.__proto__=GeneratorFunctionPrototype,define(t,u,"GeneratorFunction")),t.prototype=Object.create(g),t;},e.awrap=function(t){return{__await:t};},defineIteratorMethods(AsyncIterator.prototype),define(AsyncIterator.prototype,c,function(){return this;}),e.AsyncIterator=AsyncIterator,e.async=function(t,r,n,o,i){void 0===i&&(i=Promise);var a=new AsyncIterator(wrap(t,r,n,o),i);return e.isGeneratorFunction(r)?a:a.next().then(function(t){return t.done?t.value:a.next();});},defineIteratorMethods(g),define(g,u,"Generator"),define(g,a,function(){return this;}),define(g,"toString",function(){return"[object Generator]";}),e.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function next(){for(;r.length;){var t=r.pop();if(t in e)return next.value=t,next.done=!1,next;}return next.done=!0,next;};},e.values=values,Context.prototype={constructor:Context,reset:function reset(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(resetTryEntry),!e)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=t);},stop:function stop(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval;},dispatchException:function dispatchException(e){if(this.done)throw e;var r=this;function handle(n,o){return a.type="throw",a.arg=e,r.next=n,o&&(r.method="next",r.arg=t),!!o;}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return handle("end");if(i.tryLoc<=this.prev){var c=n.call(i,"catchLoc"),u=n.call(i,"finallyLoc");if(c&&u){if(this.prev<i.catchLoc)return handle(i.catchLoc,!0);if(this.prev<i.finallyLoc)return handle(i.finallyLoc);}else if(c){if(this.prev<i.catchLoc)return handle(i.catchLoc,!0);}else{if(!u)throw Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return handle(i.finallyLoc);}}}},abrupt:function abrupt(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break;}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,y):this.complete(a);},complete:function complete(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),y;},finish:function finish(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),resetTryEntry(r),y;}},"catch":function _catch(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;resetTryEntry(r);}return o;}}throw Error("illegal catch attempt");},delegateYield:function delegateYield(e,r,n){return this.delegate={iterator:values(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),y;}},e;}function asyncGeneratorStep(gen,resolve,reject,_next,_throw,key,arg){try{var info=gen[key](arg);var value=info.value;}catch(error){reject(error);return;}if(info.done){resolve(value);}else{Promise.resolve(value).then(_next,_throw);}}function _asyncToGenerator(fn){return function(){var self=this,args=arguments;return new Promise(function(resolve,reject){var gen=fn.apply(self,args);function _next(value){asyncGeneratorStep(gen,resolve,reject,_next,_throw,"next",value);}function _throw(err){asyncGeneratorStep(gen,resolve,reject,_next,_throw,"throw",err);}_next(undefined);});};}function _toConsumableArray(arr){return _arrayWithoutHoles(arr)||_iterableToArray(arr)||_unsupportedIterableToArray(arr)||_nonIterableSpread();}function _nonIterableSpread(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");}function _arrayWithoutHoles(arr){if(Array.isArray(arr))return _arrayLikeToArray(arr);}function _toArray(arr){return _arrayWithHoles(arr)||_iterableToArray(arr)||_unsupportedIterableToArray(arr)||_nonIterableRest();}function _iterableToArray(iter){if(typeof Symbol!=="undefined"&&iter[Symbol.iterator]!=null||iter["@@iterator"]!=null)return Array.from(iter);}function _slicedToArray(arr,i){return _arrayWithHoles(arr)||_iterableToArrayLimit(arr,i)||_unsupportedIterableToArray(arr,i)||_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(o,minLen){if(!o)return;if(typeof o==="string")return _arrayLikeToArray(o,minLen);var n=Object.prototype.toString.call(o).slice(8,-1);if(n==="Object"&&o.constructor)n=o.constructor.name;if(n==="Map"||n==="Set")return Array.from(o);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return _arrayLikeToArray(o,minLen);}function _arrayLikeToArray(arr,len){if(len==null||len>arr.length)len=arr.length;for(var i=0,arr2=new Array(len);i<len;i++)arr2[i]=arr[i];return arr2;}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(arr){if(Array.isArray(arr))return arr;}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(obj,key,value){key=_toPropertyKey(key);if(key in obj){Object.defineProperty(obj,key,{value:value,enumerable:true,configurable:true,writable:true});}else{obj[key]=value;}return obj;}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function");}}function _defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||false;descriptor.configurable=true;if("value"in descriptor)descriptor.writable=true;Object.defineProperty(target,_toPropertyKey(descriptor.key),descriptor);}}function _createClass(Constructor,protoProps,staticProps){if(protoProps)_defineProperties(Constructor.prototype,protoProps);if(staticProps)_defineProperties(Constructor,staticProps);Object.defineProperty(Constructor,"prototype",{writable:false});return Constructor;}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 _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);}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'};var global$1=typeof global!=="undefined"?global:typeof self!=="undefined"?self:typeof window!=="undefined"?window:{};var lookup=[];var revLookup=[];var Arr=typeof Uint8Array!=='undefined'?Uint8Array:Array;var inited=false;function init(){inited=true;var code='ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/';for(var i=0,len=code.length;i<len;++i){lookup[i]=code[i];revLookup[code.charCodeAt(i)]=i;}revLookup['-'.charCodeAt(0)]=62;revLookup['_'.charCodeAt(0)]=63;}function toByteArray(b64){if(!inited){init();}var i,j,l,tmp,placeHolders,arr;var len=b64.length;if(len%4>0){throw new Error('Invalid string. Length must be a multiple of 4');}// the number of equal signs (place holders)
|
|
5188
5201
|
// if there are two placeholders, than the two characters before it
|
|
5189
5202
|
// represent one byte
|
|
5190
5203
|
// if there is only one, then the three characters before it represent 2 bytes
|
|
@@ -5690,7 +5703,7 @@ indexes===true?renderKey([key],index,dots):indexes===null?key:key+'[]',convertVa
|
|
|
5690
5703
|
* @param {Function} rejected The function to handle `reject` for a `Promise`
|
|
5691
5704
|
*
|
|
5692
5705
|
* @return {Number} An ID used to remove interceptor later
|
|
5693
|
-
*/_createClass(InterceptorManager,[{key:"use",value:function use(fulfilled,rejected,options){this.handlers.push({fulfilled:fulfilled,rejected:rejected,synchronous:options?options.synchronous:false,runWhen:options?options.runWhen:null});return this.handlers.length-1;}/**
|
|
5706
|
+
*/return _createClass(InterceptorManager,[{key:"use",value:function use(fulfilled,rejected,options){this.handlers.push({fulfilled:fulfilled,rejected:rejected,synchronous:options?options.synchronous:false,runWhen:options?options.runWhen:null});return this.handlers.length-1;}/**
|
|
5694
5707
|
* Remove an interceptor from the stack
|
|
5695
5708
|
*
|
|
5696
5709
|
* @param {Number} id The ID that was returned by `use`
|
|
@@ -5709,7 +5722,7 @@ indexes===true?renderKey([key],index,dots):indexes===null?key:key+'[]',convertVa
|
|
|
5709
5722
|
* @param {Function} fn The function to call for each interceptor
|
|
5710
5723
|
*
|
|
5711
5724
|
* @returns {void}
|
|
5712
|
-
*/},{key:"forEach",value:function forEach(fn){utils$1.forEach(this.handlers,function forEachHandler(h){if(h!==null){fn(h);}});}}]);
|
|
5725
|
+
*/},{key:"forEach",value:function forEach(fn){utils$1.forEach(this.handlers,function forEachHandler(h){if(h!==null){fn(h);}});}}]);}();var InterceptorManager$1=InterceptorManager;var transitionalDefaults={silentJSONParsing:true,forcedJSONParsing:true,clarifyTimeoutError:false};var URLSearchParams$1=typeof URLSearchParams!=='undefined'?URLSearchParams:AxiosURLSearchParams;var FormData$1=typeof FormData!=='undefined'?FormData:null;var Blob$1=typeof Blob!=='undefined'?Blob:null;var platform$1={isBrowser:true,classes:{URLSearchParams:URLSearchParams$1,FormData:FormData$1,Blob:Blob$1},protocols:['http','https','file','blob','url','data']};var hasBrowserEnv=typeof window!=='undefined'&&typeof document!=='undefined';/**
|
|
5713
5726
|
* Determine if we're running in a standard browser environment
|
|
5714
5727
|
*
|
|
5715
5728
|
* This allows axios to run in a web worker, and react-native.
|
|
@@ -5783,7 +5796,7 @@ var ignoreDuplicateOf=utils$1.toObjectSet(['age','authorization','content-length
|
|
|
5783
5796
|
* @param {String} rawHeaders Headers needing to be parsed
|
|
5784
5797
|
*
|
|
5785
5798
|
* @returns {Object} Headers parsed into an object
|
|
5786
|
-
*/var parseHeaders=function parseHeaders(rawHeaders){var parsed={};var key;var val;var i;rawHeaders&&rawHeaders.split('\n').forEach(function parser(line){i=line.indexOf(':');key=line.substring(0,i).trim().toLowerCase();val=line.substring(i+1).trim();if(!key||parsed[key]&&ignoreDuplicateOf[key]){return;}if(key==='set-cookie'){if(parsed[key]){parsed[key].push(val);}else{parsed[key]=[val];}}else{parsed[key]=parsed[key]?parsed[key]+', '+val:val;}});return parsed;};var $internals=Symbol('internals');function normalizeHeader(header){return header&&String(header).trim().toLowerCase();}function normalizeValue(value){if(value===false||value==null){return value;}return utils$1.isArray(value)?value.map(normalizeValue):String(value);}function parseTokens(str){var tokens=Object.create(null);var tokensRE=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;var match;while(match=tokensRE.exec(str)){tokens[match[1]]=match[2];}return tokens;}var isValidHeaderName=function isValidHeaderName(str){return /^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(str.trim());};function matchHeaderValue(context,value,header,filter,isHeaderNameFilter){if(utils$1.isFunction(filter)){return filter.call(this,value,header);}if(isHeaderNameFilter){value=header;}if(!utils$1.isString(value))return;if(utils$1.isString(filter)){return value.indexOf(filter)!==-1;}if(utils$1.isRegExp(filter)){return filter.test(value);}}function formatHeader(header){return header.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,function(w,_char,str){return _char.toUpperCase()+str;});}function buildAccessors(obj,header){var accessorName=utils$1.toCamelCase(' '+header);['get','set','has'].forEach(function(methodName){Object.defineProperty(obj,methodName+accessorName,{value:function value(arg1,arg2,arg3){return this[methodName].call(this,header,arg1,arg2,arg3);},configurable:true});});}var AxiosHeaders=/*#__PURE__*/function(
|
|
5799
|
+
*/var parseHeaders=function parseHeaders(rawHeaders){var parsed={};var key;var val;var i;rawHeaders&&rawHeaders.split('\n').forEach(function parser(line){i=line.indexOf(':');key=line.substring(0,i).trim().toLowerCase();val=line.substring(i+1).trim();if(!key||parsed[key]&&ignoreDuplicateOf[key]){return;}if(key==='set-cookie'){if(parsed[key]){parsed[key].push(val);}else{parsed[key]=[val];}}else{parsed[key]=parsed[key]?parsed[key]+', '+val:val;}});return parsed;};var $internals=Symbol('internals');function normalizeHeader(header){return header&&String(header).trim().toLowerCase();}function normalizeValue(value){if(value===false||value==null){return value;}return utils$1.isArray(value)?value.map(normalizeValue):String(value);}function parseTokens(str){var tokens=Object.create(null);var tokensRE=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;var match;while(match=tokensRE.exec(str)){tokens[match[1]]=match[2];}return tokens;}var isValidHeaderName=function isValidHeaderName(str){return /^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(str.trim());};function matchHeaderValue(context,value,header,filter,isHeaderNameFilter){if(utils$1.isFunction(filter)){return filter.call(this,value,header);}if(isHeaderNameFilter){value=header;}if(!utils$1.isString(value))return;if(utils$1.isString(filter)){return value.indexOf(filter)!==-1;}if(utils$1.isRegExp(filter)){return filter.test(value);}}function formatHeader(header){return header.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,function(w,_char,str){return _char.toUpperCase()+str;});}function buildAccessors(obj,header){var accessorName=utils$1.toCamelCase(' '+header);['get','set','has'].forEach(function(methodName){Object.defineProperty(obj,methodName+accessorName,{value:function value(arg1,arg2,arg3){return this[methodName].call(this,header,arg1,arg2,arg3);},configurable:true});});}var AxiosHeaders=/*#__PURE__*/function(){function AxiosHeaders(headers){_classCallCheck(this,AxiosHeaders);headers&&this.set(headers);}return _createClass(AxiosHeaders,[{key:"set",value:function set(header,valueOrRewrite,rewrite){var self=this;function setHeader(_value,_header,_rewrite){var lHeader=normalizeHeader(_header);if(!lHeader){throw new Error('header name must be a non-empty string');}var key=utils$1.findKey(self,lHeader);if(!key||self[key]===undefined||_rewrite===true||_rewrite===undefined&&self[key]!==false){self[key||_header]=normalizeValue(_value);}}var setHeaders=function setHeaders(headers,_rewrite){return utils$1.forEach(headers,function(_value,_header){return setHeader(_value,_header,_rewrite);});};if(utils$1.isPlainObject(header)||header instanceof this.constructor){setHeaders(header,valueOrRewrite);}else if(utils$1.isString(header)&&(header=header.trim())&&!isValidHeaderName(header)){setHeaders(parseHeaders(header),valueOrRewrite);}else{header!=null&&setHeader(valueOrRewrite,header,rewrite);}return this;}},{key:"get",value:function get(header,parser){header=normalizeHeader(header);if(header){var key=utils$1.findKey(this,header);if(key){var value=this[key];if(!parser){return value;}if(parser===true){return parseTokens(value);}if(utils$1.isFunction(parser)){return parser.call(this,value,key);}if(utils$1.isRegExp(parser)){return parser.exec(value);}throw new TypeError('parser must be boolean|regexp|function');}}}},{key:"has",value:function has(header,matcher){header=normalizeHeader(header);if(header){var key=utils$1.findKey(this,header);return!!(key&&this[key]!==undefined&&(!matcher||matchHeaderValue(this,this[key],key,matcher)));}return false;}},{key:"delete",value:function _delete(header,matcher){var self=this;var deleted=false;function deleteHeader(_header){_header=normalizeHeader(_header);if(_header){var key=utils$1.findKey(self,_header);if(key&&(!matcher||matchHeaderValue(self,self[key],key,matcher))){delete self[key];deleted=true;}}}if(utils$1.isArray(header)){header.forEach(deleteHeader);}else{deleteHeader(header);}return deleted;}},{key:"clear",value:function clear(matcher){var keys=Object.keys(this);var i=keys.length;var deleted=false;while(i--){var key=keys[i];if(!matcher||matchHeaderValue(this,this[key],key,matcher,true)){delete this[key];deleted=true;}}return deleted;}},{key:"normalize",value:function normalize(format){var self=this;var headers={};utils$1.forEach(this,function(value,header){var key=utils$1.findKey(headers,header);if(key){self[key]=normalizeValue(value);delete self[header];return;}var normalized=format?formatHeader(header):String(header).trim();if(normalized!==header){delete self[header];}self[normalized]=normalizeValue(value);headers[normalized]=true;});return this;}},{key:"concat",value:function concat(){var _this$constructor;for(var _len=arguments.length,targets=new Array(_len),_key2=0;_key2<_len;_key2++){targets[_key2]=arguments[_key2];}return(_this$constructor=this.constructor).concat.apply(_this$constructor,[this].concat(targets));}},{key:"toJSON",value:function toJSON(asStrings){var obj=Object.create(null);utils$1.forEach(this,function(value,header){value!=null&&value!==false&&(obj[header]=asStrings&&utils$1.isArray(value)?value.join(', '):value);});return obj;}},{key:Symbol.iterator,value:function value(){return Object.entries(this.toJSON())[Symbol.iterator]();}},{key:"toString",value:function toString(){return Object.entries(this.toJSON()).map(function(_ref5){var _ref6=_slicedToArray(_ref5,2),header=_ref6[0],value=_ref6[1];return header+': '+value;}).join('\n');}},{key:Symbol.toStringTag,get:function get(){return'AxiosHeaders';}}],[{key:"from",value:function from(thing){return thing instanceof this?thing:new this(thing);}},{key:"concat",value:function concat(first){var computed=new this(first);for(var _len2=arguments.length,targets=new Array(_len2>1?_len2-1:0),_key3=1;_key3<_len2;_key3++){targets[_key3-1]=arguments[_key3];}targets.forEach(function(target){return computed.set(target);});return computed;}},{key:"accessor",value:function accessor(header){var internals=this[$internals]=this[$internals]={accessors:{}};var accessors=internals.accessors;var prototype=this.prototype;function defineAccessor(_header){var lHeader=normalizeHeader(_header);if(!accessors[lHeader]){buildAccessors(prototype,_header);accessors[lHeader]=true;}}utils$1.isArray(header)?header.forEach(defineAccessor):defineAccessor(header);return this;}}]);}();AxiosHeaders.accessor(['Content-Type','Content-Length','Accept','Accept-Encoding','User-Agent','Authorization']);// reserved names hotfix
|
|
5787
5800
|
utils$1.reduceDescriptors(AxiosHeaders.prototype,function(_ref7,key){var value=_ref7.value;var mapped=key[0].toUpperCase()+key.slice(1);// map `set` => `Set`
|
|
5788
5801
|
return{get:function get(){return value;},set:function set(headerValue){this[mapped]=headerValue;}};});utils$1.freezeMethods(AxiosHeaders);var AxiosHeaders$1=AxiosHeaders;/**
|
|
5789
5802
|
* Transform the data for a request or a response
|
|
@@ -5952,13 +5965,13 @@ console.warn(formatMessage(opt,' has been deprecated since v'+version+' and will
|
|
|
5952
5965
|
* @param {?Object} config
|
|
5953
5966
|
*
|
|
5954
5967
|
* @returns {Promise} The Promise to be fulfilled
|
|
5955
|
-
*/_createClass(Axios,[{key:"request",value:(function(){var _request2=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(configOrUrl,config){var dummy,stack;return _regeneratorRuntime().wrap(function _callee$(_context){while(1)switch(_context.prev=_context.next){case 0:_context.prev=0;_context.next=3;return this._request(configOrUrl,config);case 3:return _context.abrupt("return",_context.sent);case 6:_context.prev=6;_context.t0=_context["catch"](0);if(_context.t0 instanceof Error){Error.captureStackTrace?Error.captureStackTrace(dummy={}):dummy=new Error();// slice off the Error: ... line
|
|
5968
|
+
*/return _createClass(Axios,[{key:"request",value:(function(){var _request2=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(configOrUrl,config){var dummy,stack;return _regeneratorRuntime().wrap(function _callee$(_context){while(1)switch(_context.prev=_context.next){case 0:_context.prev=0;_context.next=3;return this._request(configOrUrl,config);case 3:return _context.abrupt("return",_context.sent);case 6:_context.prev=6;_context.t0=_context["catch"](0);if(_context.t0 instanceof Error){Error.captureStackTrace?Error.captureStackTrace(dummy={}):dummy=new Error();// slice off the Error: ... line
|
|
5956
5969
|
stack=dummy.stack?dummy.stack.replace(/^.+\n/,''):'';if(!_context.t0.stack){_context.t0.stack=stack;// match without the 2 top stack lines
|
|
5957
5970
|
}else if(stack&&!String(_context.t0.stack).endsWith(stack.replace(/^.+\n.+\n/,''))){_context.t0.stack+='\n'+stack;}}throw _context.t0;case 10:case"end":return _context.stop();}},_callee,this,[[0,6]]);}));function request(_x,_x2){return _request2.apply(this,arguments);}return request;}())},{key:"_request",value:function _request(configOrUrl,config){/*eslint no-param-reassign:0*/ // Allow for axios('example/url'[, config]) a la fetch API
|
|
5958
5971
|
if(typeof configOrUrl==='string'){config=config||{};config.url=configOrUrl;}else{config=configOrUrl||{};}config=mergeConfig(this.defaults,config);var _config=config,transitional=_config.transitional,paramsSerializer=_config.paramsSerializer,headers=_config.headers;if(transitional!==undefined){validator.assertOptions(transitional,{silentJSONParsing:validators.transitional(validators["boolean"]),forcedJSONParsing:validators.transitional(validators["boolean"]),clarifyTimeoutError:validators.transitional(validators["boolean"])},false);}if(paramsSerializer!=null){if(utils$1.isFunction(paramsSerializer)){config.paramsSerializer={serialize:paramsSerializer};}else{validator.assertOptions(paramsSerializer,{encode:validators["function"],serialize:validators["function"]},true);}}// Set config.method
|
|
5959
5972
|
config.method=(config.method||this.defaults.method||'get').toLowerCase();// Flatten headers
|
|
5960
5973
|
var contextHeaders=headers&&utils$1.merge(headers.common,headers[config.method]);headers&&utils$1.forEach(['delete','get','head','post','put','patch','common'],function(method){delete headers[method];});config.headers=AxiosHeaders$1.concat(contextHeaders,headers);// filter out skipped interceptors
|
|
5961
|
-
var requestInterceptorChain=[];var synchronousRequestInterceptors=true;this.interceptors.request.forEach(function unshiftRequestInterceptors(interceptor){if(typeof interceptor.runWhen==='function'&&interceptor.runWhen(config)===false){return;}synchronousRequestInterceptors=synchronousRequestInterceptors&&interceptor.synchronous;requestInterceptorChain.unshift(interceptor.fulfilled,interceptor.rejected);});var responseInterceptorChain=[];this.interceptors.response.forEach(function pushResponseInterceptors(interceptor){responseInterceptorChain.push(interceptor.fulfilled,interceptor.rejected);});var promise;var i=0;var len;if(!synchronousRequestInterceptors){var chain=[dispatchRequest.bind(this),undefined];chain.unshift.apply(chain,requestInterceptorChain);chain.push.apply(chain,responseInterceptorChain);len=chain.length;promise=Promise.resolve(config);while(i<len){promise=promise.then(chain[i++],chain[i++]);}return promise;}len=requestInterceptorChain.length;var newConfig=config;i=0;while(i<len){var onFulfilled=requestInterceptorChain[i++];var onRejected=requestInterceptorChain[i++];try{newConfig=onFulfilled(newConfig);}catch(error){onRejected.call(this,error);break;}}try{promise=dispatchRequest.call(this,newConfig);}catch(error){return Promise.reject(error);}i=0;len=responseInterceptorChain.length;while(i<len){promise=promise.then(responseInterceptorChain[i++],responseInterceptorChain[i++]);}return promise;}},{key:"getUri",value:function getUri(config){config=mergeConfig(this.defaults,config);var fullPath=buildFullPath(config.baseURL,config.url);return buildURL(fullPath,config.params,config.paramsSerializer);}}]);
|
|
5974
|
+
var requestInterceptorChain=[];var synchronousRequestInterceptors=true;this.interceptors.request.forEach(function unshiftRequestInterceptors(interceptor){if(typeof interceptor.runWhen==='function'&&interceptor.runWhen(config)===false){return;}synchronousRequestInterceptors=synchronousRequestInterceptors&&interceptor.synchronous;requestInterceptorChain.unshift(interceptor.fulfilled,interceptor.rejected);});var responseInterceptorChain=[];this.interceptors.response.forEach(function pushResponseInterceptors(interceptor){responseInterceptorChain.push(interceptor.fulfilled,interceptor.rejected);});var promise;var i=0;var len;if(!synchronousRequestInterceptors){var chain=[dispatchRequest.bind(this),undefined];chain.unshift.apply(chain,requestInterceptorChain);chain.push.apply(chain,responseInterceptorChain);len=chain.length;promise=Promise.resolve(config);while(i<len){promise=promise.then(chain[i++],chain[i++]);}return promise;}len=requestInterceptorChain.length;var newConfig=config;i=0;while(i<len){var onFulfilled=requestInterceptorChain[i++];var onRejected=requestInterceptorChain[i++];try{newConfig=onFulfilled(newConfig);}catch(error){onRejected.call(this,error);break;}}try{promise=dispatchRequest.call(this,newConfig);}catch(error){return Promise.reject(error);}i=0;len=responseInterceptorChain.length;while(i<len){promise=promise.then(responseInterceptorChain[i++],responseInterceptorChain[i++]);}return promise;}},{key:"getUri",value:function getUri(config){config=mergeConfig(this.defaults,config);var fullPath=buildFullPath(config.baseURL,config.url);return buildURL(fullPath,config.params,config.paramsSerializer);}}]);}();// Provide aliases for supported request methods
|
|
5962
5975
|
utils$1.forEach(['delete','get','head','options'],function forEachMethodNoData(method){/*eslint func-names:0*/Axios.prototype[method]=function(url,config){return this.request(mergeConfig(config||{},{method:method,url:url,data:(config||{}).data}));};});utils$1.forEach(['post','put','patch'],function forEachMethodWithData(method){/*eslint func-names:0*/function generateHTTPMethod(isForm){return function httpMethod(url,data,config){return this.request(mergeConfig(config||{},{method:method,headers:isForm?{'Content-Type':'multipart/form-data'}:{},url:url,data:data}));};}Axios.prototype[method]=generateHTTPMethod();Axios.prototype[method+'Form']=generateHTTPMethod(true);});var Axios$1=Axios;/**
|
|
5963
5976
|
* A `CancelToken` is an object that can be used to request cancellation of an operation.
|
|
5964
5977
|
*
|
|
@@ -5971,14 +5984,14 @@ this.promise.then=function(onfulfilled){var _resolve;// eslint-disable-next-line
|
|
|
5971
5984
|
var promise=new Promise(function(resolve){token.subscribe(resolve);_resolve=resolve;}).then(onfulfilled);promise.cancel=function reject(){token.unsubscribe(_resolve);};return promise;};executor(function cancel(message,config,request){if(token.reason){// Cancellation has already been requested
|
|
5972
5985
|
return;}token.reason=new CanceledError(message,config,request);resolvePromise(token.reason);});}/**
|
|
5973
5986
|
* Throws a `CanceledError` if cancellation has been requested.
|
|
5974
|
-
*/_createClass(CancelToken,[{key:"throwIfRequested",value:function throwIfRequested(){if(this.reason){throw this.reason;}}/**
|
|
5987
|
+
*/return _createClass(CancelToken,[{key:"throwIfRequested",value:function throwIfRequested(){if(this.reason){throw this.reason;}}/**
|
|
5975
5988
|
* Subscribe to the cancel signal
|
|
5976
5989
|
*/},{key:"subscribe",value:function subscribe(listener){if(this.reason){listener(this.reason);return;}if(this._listeners){this._listeners.push(listener);}else{this._listeners=[listener];}}/**
|
|
5977
5990
|
* Unsubscribe from the cancel signal
|
|
5978
5991
|
*/},{key:"unsubscribe",value:function unsubscribe(listener){if(!this._listeners){return;}var index=this._listeners.indexOf(listener);if(index!==-1){this._listeners.splice(index,1);}}/**
|
|
5979
5992
|
* Returns an object that contains a new `CancelToken` and a function that, when called,
|
|
5980
5993
|
* cancels the `CancelToken`.
|
|
5981
|
-
*/}],[{key:"source",value:function source(){var cancel;var token=new CancelToken(function executor(c){cancel=c;});return{token:token,cancel:cancel};}}]);
|
|
5994
|
+
*/}],[{key:"source",value:function source(){var cancel;var token=new CancelToken(function executor(c){cancel=c;});return{token:token,cancel:cancel};}}]);}();var CancelToken$1=CancelToken;/**
|
|
5982
5995
|
* Syntactic sugar for invoking a function and expanding an array for arguments.
|
|
5983
5996
|
*
|
|
5984
5997
|
* Common use case would be to use `Function.prototype.apply`.
|
|
@@ -6022,7 +6035,7 @@ axios.Cancel=axios.CanceledError;// Expose all/spread
|
|
|
6022
6035
|
axios.all=function all(promises){return Promise.all(promises);};axios.spread=spread;// Expose isAxiosError
|
|
6023
6036
|
axios.isAxiosError=isAxiosError;// Expose mergeConfig
|
|
6024
6037
|
axios.mergeConfig=mergeConfig;axios.AxiosHeaders=AxiosHeaders$1;axios.formToJSON=function(thing){return formDataToJSON(utils$1.isHTMLForm(thing)?new FormData(thing):thing);};axios.getAdapter=adapters.getAdapter;axios.HttpStatusCode=HttpStatusCode$1;axios["default"]=axios;// this module should only have a default export
|
|
6025
|
-
var axios$1=axios;var logLevelEnum={level:{LNone:'none',LError:'error',LDebug:'debug',LTrace:'trace'}};var logFormatEnum={formats:{JSON:'json',TEXT:'text'}};var Logger=/*#__PURE__*/function(){function Logger(){_classCallCheck(this,Logger);this.log_level=logLevelEnum.level.LNone;this.log_format=logFormatEnum.formats.TEXT;this.log_to_console=true;this.log_file_path;this.log_response_body=false;this.log_request_body=false;this.setLogger();}_createClass(Logger,[{key:"logLevelEnum",get:function get(){return logLevelEnum;}},{key:"logFormatEnum",get:function get(){return logFormatEnum;}},{key:"setLogger",value:function setLogger(){}},{key:"log",value:function log(level,statusCode,method,url,requestHeaders,responseHeaders,requestBody,responseBody){var content=this.formatLog(level,statusCode,method,url,requestHeaders,responseHeaders,requestBody,responseBody);if(typeof window!=='undefined'){var shouldLog=this.calculateLogLevel(level);if(shouldLog>0&&this.log_to_console===true){if(this.log_format===this.logFormatEnum.formats.JSON){console.log(content);}else{console.log("".concat(level.toUpperCase(),": ").concat(content));}}}else{if(this.logger.transports.length>0)this.logger.log(level,content);}}},{key:"calculateLogLevel",value:function calculateLogLevel(level){switch(this.log_level){case this.logLevelEnum.level.LError:if(level!==this.logLevelEnum.level.LError){return-1;}return 1;case this.logLevelEnum.level.LDebug:if(level===this.logLevelEnum.level.LTrace){return-1;}return 1;case this.logLevelEnum.level.LTrace:return 1;default:return-1;}}},{key:"formatLog",value:function formatLog(level,statusCode,method,url,requestHeaders,responseHeaders,requestBody,responseBody){var result;var localRequestHeaders=requestHeaders?JSON.parse(JSON.stringify(requestHeaders)):null;var localResponseHeaders=responseHeaders?JSON.parse(JSON.stringify(responseHeaders)):null;var localRequestBody=requestBody?JSON.parse(JSON.stringify(requestBody)):null;var localResponseBody=responseBody?JSON.parse(JSON.stringify(responseBody)):null;if(requestHeaders)localRequestHeaders['Authorization']='[REDACTED]';if(!this.log_request_body)localRequestBody=undefined;if(!this.log_response_body)localResponseBody=undefined;if(this.log_format&&this.log_format===logFormatEnum.formats.JSON){result={level:level,date:new Date().toISOString(),method:method,url:decodeURIComponent(url),correlationId:localResponseHeaders?localResponseHeaders['inin-correlation-id']?localResponseHeaders['inin-correlation-id']:'':'',statusCode:statusCode};if(localRequestHeaders)result.requestHeaders=localRequestHeaders;if(localResponseHeaders)result.responseHeaders=localResponseHeaders;if(localRequestBody)result.requestBody=localRequestBody;if(localResponseBody)result.responseBody=localResponseBody;}else{result="".concat(new Date().toISOString(),"\n=== REQUEST === \n").concat(this.formatValue('URL',decodeURIComponent(url))).concat(this.formatValue('Method',method)).concat(this.formatValue('Headers',this.formatHeaderString(localRequestHeaders))).concat(this.formatValue('Body',localRequestBody?JSON.stringify(localRequestBody,null,2):''),"\n=== RESPONSE ===\n").concat(this.formatValue('Status',statusCode)).concat(this.formatValue('Headers',this.formatHeaderString(localResponseHeaders))).concat(this.formatValue('CorrelationId',localResponseHeaders?localResponseHeaders['inin-correlation-id']?localResponseHeaders['inin-correlation-id']:'':'')).concat(this.formatValue('Body',localResponseBody?JSON.stringify(localResponseBody,null,2):''));}return result;}},{key:"formatHeaderString",value:function formatHeaderString(headers){var headerString='';if(!headers)return headerString;for(var _i=0,_Object$entries=Object.entries(headers);_i<_Object$entries.length;_i++){var _Object$entries$_i=_slicedToArray(_Object$entries[_i],2),key=_Object$entries$_i[0],value=_Object$entries$_i[1];headerString+="\n\t".concat(key,": ").concat(value);}return headerString;}},{key:"formatValue",value:function formatValue(key,value){if(!value||value===''||value==='{}')return'';return"".concat(key,": ").concat(value,"\n");}},{key:"getLogLevel",value:function getLogLevel(level){switch(level){case'error':return logLevelEnum.level.LError;case'debug':return logLevelEnum.level.LDebug;case'trace':return logLevelEnum.level.LTrace;default:return logLevelEnum.level.LNone;}}},{key:"getLogFormat",value:function getLogFormat(format){switch(format){case'json':return logFormatEnum.formats.JSON;default:return logFormatEnum.formats.TEXT;}}}]);
|
|
6038
|
+
var axios$1=axios;var logLevelEnum={level:{LNone:'none',LError:'error',LDebug:'debug',LTrace:'trace'}};var logFormatEnum={formats:{JSON:'json',TEXT:'text'}};var Logger=/*#__PURE__*/function(){function Logger(){_classCallCheck(this,Logger);this.log_level=logLevelEnum.level.LNone;this.log_format=logFormatEnum.formats.TEXT;this.log_to_console=true;this.log_file_path;this.log_response_body=false;this.log_request_body=false;this.setLogger();}return _createClass(Logger,[{key:"logLevelEnum",get:function get(){return logLevelEnum;}},{key:"logFormatEnum",get:function get(){return logFormatEnum;}},{key:"setLogger",value:function setLogger(){}},{key:"log",value:function log(level,statusCode,method,url,requestHeaders,responseHeaders,requestBody,responseBody){var content=this.formatLog(level,statusCode,method,url,requestHeaders,responseHeaders,requestBody,responseBody);if(typeof window!=='undefined'){var shouldLog=this.calculateLogLevel(level);if(shouldLog>0&&this.log_to_console===true){if(this.log_format===this.logFormatEnum.formats.JSON){console.log(content);}else{console.log("".concat(level.toUpperCase(),": ").concat(content));}}}else{if(this.logger.transports.length>0)this.logger.log(level,content);}}},{key:"calculateLogLevel",value:function calculateLogLevel(level){switch(this.log_level){case this.logLevelEnum.level.LError:if(level!==this.logLevelEnum.level.LError){return-1;}return 1;case this.logLevelEnum.level.LDebug:if(level===this.logLevelEnum.level.LTrace){return-1;}return 1;case this.logLevelEnum.level.LTrace:return 1;default:return-1;}}},{key:"formatLog",value:function formatLog(level,statusCode,method,url,requestHeaders,responseHeaders,requestBody,responseBody){var result;var localRequestHeaders=requestHeaders?JSON.parse(JSON.stringify(requestHeaders)):null;var localResponseHeaders=responseHeaders?JSON.parse(JSON.stringify(responseHeaders)):null;var localRequestBody=requestBody?JSON.parse(JSON.stringify(requestBody)):null;var localResponseBody=responseBody?JSON.parse(JSON.stringify(responseBody)):null;if(requestHeaders)localRequestHeaders['Authorization']='[REDACTED]';if(!this.log_request_body)localRequestBody=undefined;if(!this.log_response_body)localResponseBody=undefined;if(this.log_format&&this.log_format===logFormatEnum.formats.JSON){result={level:level,date:new Date().toISOString(),method:method,url:decodeURIComponent(url),correlationId:localResponseHeaders?localResponseHeaders['inin-correlation-id']?localResponseHeaders['inin-correlation-id']:'':'',statusCode:statusCode};if(localRequestHeaders)result.requestHeaders=localRequestHeaders;if(localResponseHeaders)result.responseHeaders=localResponseHeaders;if(localRequestBody)result.requestBody=localRequestBody;if(localResponseBody)result.responseBody=localResponseBody;}else{result="".concat(new Date().toISOString(),"\n=== REQUEST === \n").concat(this.formatValue('URL',decodeURIComponent(url))).concat(this.formatValue('Method',method)).concat(this.formatValue('Headers',this.formatHeaderString(localRequestHeaders))).concat(this.formatValue('Body',localRequestBody?JSON.stringify(localRequestBody,null,2):''),"\n=== RESPONSE ===\n").concat(this.formatValue('Status',statusCode)).concat(this.formatValue('Headers',this.formatHeaderString(localResponseHeaders))).concat(this.formatValue('CorrelationId',localResponseHeaders?localResponseHeaders['inin-correlation-id']?localResponseHeaders['inin-correlation-id']:'':'')).concat(this.formatValue('Body',localResponseBody?JSON.stringify(localResponseBody,null,2):''));}return result;}},{key:"formatHeaderString",value:function formatHeaderString(headers){var headerString='';if(!headers)return headerString;for(var _i=0,_Object$entries=Object.entries(headers);_i<_Object$entries.length;_i++){var _Object$entries$_i=_slicedToArray(_Object$entries[_i],2),key=_Object$entries$_i[0],value=_Object$entries$_i[1];headerString+="\n\t".concat(key,": ").concat(value);}return headerString;}},{key:"formatValue",value:function formatValue(key,value){if(!value||value===''||value==='{}')return'';return"".concat(key,": ").concat(value,"\n");}},{key:"getLogLevel",value:function getLogLevel(level){switch(level){case'error':return logLevelEnum.level.LError;case'debug':return logLevelEnum.level.LDebug;case'trace':return logLevelEnum.level.LTrace;default:return logLevelEnum.level.LNone;}}},{key:"getLogFormat",value:function getLogFormat(format){switch(format){case'json':return logFormatEnum.formats.JSON;default:return logFormatEnum.formats.TEXT;}}}]);}();var Configuration=/*#__PURE__*/function(){function Configuration(){_classCallCheck(this,Configuration);if(!Configuration.instance){Configuration.instance=this;}if(typeof window!=='undefined'){this.configPath='';}else{var os=require('os');var path=require('path');this.configPath=path.join(os.homedir(),'.genesyscloudjavascript','config');}this.refresh_access_token=true;this.refresh_token_wait_max=10;this.live_reload_config=true;this.host;this.environment;this.basePath;this.authUrl;this.config;this.logger=new Logger();this.setEnvironment();this.liveLoadConfig();}return _createClass(Configuration,[{key:"instance",get:/**
|
|
6026
6039
|
* Singleton getter
|
|
6027
6040
|
*/function get(){return Configuration.instance;}/**
|
|
6028
6041
|
* Singleton setter
|
|
@@ -6031,9 +6044,9 @@ this.configPath='';}},{key:"setConfigPath",value:function setConfigPath(path){if
|
|
|
6031
6044
|
this.logger.setLogger();}},{key:"setEnvironment",value:function setEnvironment(env){// Default value
|
|
6032
6045
|
if(env)this.environment=env;else this.environment=this.host?this.host:'mypurecloud.com';// Strip trailing slash
|
|
6033
6046
|
this.environment=this.environment.replace(/\/+$/,'');// Strip protocol and subdomain
|
|
6034
|
-
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:"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];}}}]);
|
|
6047
|
+
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:"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];}}}]);}();/**
|
|
6035
6048
|
* @module purecloud-platform-client-v2/ApiClient
|
|
6036
|
-
* @version
|
|
6049
|
+
* @version 192.0.0
|
|
6037
6050
|
*/var ApiClient=/*#__PURE__*/function(){/**
|
|
6038
6051
|
* Manages low level client-server communications, parameter marshalling, etc. There should not be any need for an
|
|
6039
6052
|
* application to use this class directly - the *Api and model classes provide the public API for the service. The
|
|
@@ -6079,7 +6092,7 @@ if(this.environment.startsWith('https://'))this.environment=this.environment.sub
|
|
|
6079
6092
|
this.refreshInProgress=false;this.config=new Configuration();if(typeof window!=='undefined')window.ApiClient=this;}/**
|
|
6080
6093
|
* @description If set to `true`, the response object will contain additional information about the HTTP response. When `false` (default) only the body object will be returned.
|
|
6081
6094
|
* @param {boolean} returnExtended - `true` to return extended responses
|
|
6082
|
-
*/_createClass(ApiClient,[{key:"instance",get:/**
|
|
6095
|
+
*/return _createClass(ApiClient,[{key:"instance",get:/**
|
|
6083
6096
|
* Singleton getter
|
|
6084
6097
|
*/function get(){return ApiClient.instance;}/**
|
|
6085
6098
|
* Singleton setter
|
|
@@ -6342,10 +6355,10 @@ var formData=new FormData();formData.set(key,_formParams[key]);request.data=form
|
|
|
6342
6355
|
var data=that.returnExtended===true?{status:response.status,statusText:response.statusText,headers:response.headers,body:response.data,text:response.text,error:null}:response.data?response.data:response.text;// Debug logging
|
|
6343
6356
|
that.config.logger.log('trace',response.status,httpMethod,url,request.headers,response.headers,bodyParam,undefined);that.config.logger.log('debug',response.status,httpMethod,url,request.headers,undefined,bodyParam,undefined);// Resolve promise
|
|
6344
6357
|
resolve(data);})["catch"](function(error){var data=error;if(error.response&&error.response.status==401&&that.config.refresh_access_token&&that.authData.refreshToken!==""){that._handleExpiredAccessToken().then(function(){sendRequest(that);})["catch"](function(err){reject(err);});}else if(error.response){// Log error
|
|
6345
|
-
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);});}});}}]);
|
|
6358
|
+
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 AlertingApi=/*#__PURE__*/function(){/**
|
|
6346
6359
|
* Alerting service.
|
|
6347
6360
|
* @module purecloud-platform-client-v2/api/AlertingApi
|
|
6348
|
-
* @version
|
|
6361
|
+
* @version 192.0.0
|
|
6349
6362
|
*/ /**
|
|
6350
6363
|
* Constructs a new AlertingApi.
|
|
6351
6364
|
* @alias module:purecloud-platform-client-v2/api/AlertingApi
|
|
@@ -6356,7 +6369,7 @@ that.config.logger.log('error',error.response.status,httpMethod,url,request.head
|
|
|
6356
6369
|
* Delete an alert
|
|
6357
6370
|
*
|
|
6358
6371
|
* @param {String} alertId Alert ID
|
|
6359
|
-
*/_createClass(AlertingApi,[{key:"deleteAlertingAlert",value:function deleteAlertingAlert(alertId){// verify the required parameter 'alertId' is set
|
|
6372
|
+
*/return _createClass(AlertingApi,[{key:"deleteAlertingAlert",value:function deleteAlertingAlert(alertId){// verify the required parameter 'alertId' is set
|
|
6360
6373
|
if(alertId===undefined||alertId===null){throw'Missing the required parameter "alertId" when calling deleteAlertingAlert';}return this.apiClient.callApi('/api/v2/alerting/alerts/{alertId}','DELETE',{'alertId':alertId},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
6361
6374
|
* Delete an interaction stats alert
|
|
6362
6375
|
* Apps should migrate to use DELETE /api/v2/alerting/alerts/{alertId}.
|
|
@@ -6499,10 +6512,10 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
6499
6512
|
* @param {Object} body rule to be updated
|
|
6500
6513
|
*/},{key:"putAlertingRule",value:function putAlertingRule(ruleId,body){// verify the required parameter 'ruleId' is set
|
|
6501
6514
|
if(ruleId===undefined||ruleId===null){throw'Missing the required parameter "ruleId" when calling putAlertingRule';}// verify the required parameter 'body' is set
|
|
6502
|
-
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']);}}]);
|
|
6515
|
+
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling putAlertingRule';}return this.apiClient.callApi('/api/v2/alerting/rules/{ruleId}','PUT',{'ruleId':ruleId},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}}]);}();var AnalyticsApi=/*#__PURE__*/function(){/**
|
|
6503
6516
|
* Analytics service.
|
|
6504
6517
|
* @module purecloud-platform-client-v2/api/AnalyticsApi
|
|
6505
|
-
* @version
|
|
6518
|
+
* @version 192.0.0
|
|
6506
6519
|
*/ /**
|
|
6507
6520
|
* Constructs a new AnalyticsApi.
|
|
6508
6521
|
* @alias module:purecloud-platform-client-v2/api/AnalyticsApi
|
|
@@ -6513,7 +6526,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
6513
6526
|
* Delete/cancel an async details job
|
|
6514
6527
|
*
|
|
6515
6528
|
* @param {String} jobId jobId
|
|
6516
|
-
*/_createClass(AnalyticsApi,[{key:"deleteAnalyticsConversationsDetailsJob",value:function deleteAnalyticsConversationsDetailsJob(jobId){// verify the required parameter 'jobId' is set
|
|
6529
|
+
*/return _createClass(AnalyticsApi,[{key:"deleteAnalyticsConversationsDetailsJob",value:function deleteAnalyticsConversationsDetailsJob(jobId){// verify the required parameter 'jobId' is set
|
|
6517
6530
|
if(jobId===undefined||jobId===null){throw'Missing the required parameter "jobId" when calling deleteAnalyticsConversationsDetailsJob';}return this.apiClient.callApi('/api/v2/analytics/conversations/details/jobs/{jobId}','DELETE',{'jobId':jobId},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
6518
6531
|
* Delete a scheduled report job.
|
|
6519
6532
|
*
|
|
@@ -6690,6 +6703,20 @@ if(jobId===undefined||jobId===null){throw'Missing the required parameter "jobId"
|
|
|
6690
6703
|
* getAnalyticsKnowledgeAggregatesJobResults is a preview method and is subject to both breaking and non-breaking changes at any time without notice
|
|
6691
6704
|
*/},{key:"getAnalyticsKnowledgeAggregatesJobResults",value:function getAnalyticsKnowledgeAggregatesJobResults(jobId,opts){opts=opts||{};// verify the required parameter 'jobId' is set
|
|
6692
6705
|
if(jobId===undefined||jobId===null){throw'Missing the required parameter "jobId" when calling getAnalyticsKnowledgeAggregatesJobResults';}return this.apiClient.callApi('/api/v2/analytics/knowledge/aggregates/jobs/{jobId}/results','GET',{'jobId':jobId},{'cursor':opts['cursor']},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
6706
|
+
* Get dashboards summary for a user
|
|
6707
|
+
*
|
|
6708
|
+
* @param {String} userId User ID
|
|
6709
|
+
*/},{key:"getAnalyticsReportingDashboardsUser",value:function getAnalyticsReportingDashboardsUser(userId){// verify the required parameter 'userId' is set
|
|
6710
|
+
if(userId===undefined||userId===null){throw'Missing the required parameter "userId" when calling getAnalyticsReportingDashboardsUser';}return this.apiClient.callApi('/api/v2/analytics/reporting/dashboards/users/{userId}','GET',{'userId':userId},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
6711
|
+
* Get dashboards summary for users in a org
|
|
6712
|
+
*
|
|
6713
|
+
* @param {Object} opts Optional parameters
|
|
6714
|
+
* @param {String} opts.sortBy (default to asc)
|
|
6715
|
+
* @param {Number} opts.pageNumber (default to 1)
|
|
6716
|
+
* @param {Number} opts.pageSize (default to 25)
|
|
6717
|
+
* @param {Array.<String>} opts.id A list of user IDs to fetch by bulk
|
|
6718
|
+
* @param {Object} opts.state Only list users of this state
|
|
6719
|
+
*/},{key:"getAnalyticsReportingDashboardsUsers",value:function getAnalyticsReportingDashboardsUsers(opts){opts=opts||{};return this.apiClient.callApi('/api/v2/analytics/reporting/dashboards/users','GET',{},{'sortBy':opts['sortBy'],'pageNumber':opts['pageNumber'],'pageSize':opts['pageSize'],'id':this.apiClient.buildCollectionParam(opts['id'],'multi'),'state':opts['state']},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
6693
6720
|
* Get all view export requests for a user
|
|
6694
6721
|
*
|
|
6695
6722
|
* @param {Object} opts Optional parameters
|
|
@@ -6750,6 +6777,17 @@ if(scheduleId===undefined||scheduleId===null){throw'Missing the required paramet
|
|
|
6750
6777
|
* Get AnalyticsReportingSettings for an organization
|
|
6751
6778
|
*
|
|
6752
6779
|
*/},{key:"getAnalyticsReportingSettings",value:function getAnalyticsReportingSettings(){return this.apiClient.callApi('/api/v2/analytics/reporting/settings','GET',{},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
6780
|
+
* Get list of dashboards for an user
|
|
6781
|
+
*
|
|
6782
|
+
* @param {String} userId User ID
|
|
6783
|
+
* @param {Object} opts Optional parameters
|
|
6784
|
+
* @param {String} opts.sortBy (default to asc)
|
|
6785
|
+
* @param {Number} opts.pageNumber (default to 1)
|
|
6786
|
+
* @param {Number} opts.pageSize (default to 50)
|
|
6787
|
+
* @param {Boolean} opts.publicOnly If true, retrieve only public dashboards
|
|
6788
|
+
* @param {Boolean} opts.favoriteOnly If true, retrieve only favorite dashboards
|
|
6789
|
+
*/},{key:"getAnalyticsReportingSettingsUserDashboards",value:function getAnalyticsReportingSettingsUserDashboards(userId,opts){opts=opts||{};// verify the required parameter 'userId' is set
|
|
6790
|
+
if(userId===undefined||userId===null){throw'Missing the required parameter "userId" when calling getAnalyticsReportingSettingsUserDashboards';}return this.apiClient.callApi('/api/v2/analytics/reporting/settings/users/{userId}/dashboards','GET',{'userId':userId},{'sortBy':opts['sortBy'],'pageNumber':opts['pageNumber'],'pageSize':opts['pageSize'],'publicOnly':opts['publicOnly'],'favoriteOnly':opts['favoriteOnly']},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
6753
6791
|
* Get a list of report time periods.
|
|
6754
6792
|
*
|
|
6755
6793
|
*/},{key:"getAnalyticsReportingTimeperiods",value:function getAnalyticsReportingTimeperiods(){return this.apiClient.callApi('/api/v2/analytics/reporting/timeperiods','GET',{},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
@@ -6987,6 +7025,11 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
6987
7025
|
* @param {Object} body query
|
|
6988
7026
|
*/},{key:"postAnalyticsRatelimitsAggregatesQuery",value:function postAnalyticsRatelimitsAggregatesQuery(body){// verify the required parameter 'body' is set
|
|
6989
7027
|
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling postAnalyticsRatelimitsAggregatesQuery';}return this.apiClient.callApi('/api/v2/analytics/ratelimits/aggregates/query','POST',{},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
7028
|
+
* Bulk delete dashboards owned by other user(s)
|
|
7029
|
+
*
|
|
7030
|
+
* @param {Array.<String>} body List of userIds
|
|
7031
|
+
*/},{key:"postAnalyticsReportingDashboardsUsersBulkRemove",value:function postAnalyticsReportingDashboardsUsersBulkRemove(body){// verify the required parameter 'body' is set
|
|
7032
|
+
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling postAnalyticsReportingDashboardsUsersBulkRemove';}return this.apiClient.callApi('/api/v2/analytics/reporting/dashboards/users/bulk/remove','POST',{},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
6990
7033
|
* Generate a view export request
|
|
6991
7034
|
* This API creates a reporting export but the desired way to export analytics data is to use the analytics query APIs instead
|
|
6992
7035
|
* @param {Object} body ReportingExportJobRequest
|
|
@@ -7004,6 +7047,16 @@ if(scheduleId===undefined||scheduleId===null){throw'Missing the required paramet
|
|
|
7004
7047
|
* @deprecated
|
|
7005
7048
|
*/},{key:"postAnalyticsReportingSchedules",value:function postAnalyticsReportingSchedules(body){// verify the required parameter 'body' is set
|
|
7006
7049
|
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling postAnalyticsReportingSchedules';}return this.apiClient.callApi('/api/v2/analytics/reporting/schedules','POST',{},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
7050
|
+
* Bulk remove dashboard configurations
|
|
7051
|
+
*
|
|
7052
|
+
* @param {Object} body
|
|
7053
|
+
*/},{key:"postAnalyticsReportingSettingsDashboardsBulkRemove",value:function postAnalyticsReportingSettingsDashboardsBulkRemove(body){// verify the required parameter 'body' is set
|
|
7054
|
+
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling postAnalyticsReportingSettingsDashboardsBulkRemove';}return this.apiClient.callApi('/api/v2/analytics/reporting/settings/dashboards/bulk/remove','POST',{},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
7055
|
+
* Query dashboard configurations
|
|
7056
|
+
*
|
|
7057
|
+
* @param {Object} body
|
|
7058
|
+
*/},{key:"postAnalyticsReportingSettingsDashboardsQuery",value:function postAnalyticsReportingSettingsDashboardsQuery(body){// verify the required parameter 'body' is set
|
|
7059
|
+
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling postAnalyticsReportingSettingsDashboardsQuery';}return this.apiClient.callApi('/api/v2/analytics/reporting/settings/dashboards/query','POST',{},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
7007
7060
|
* Query for resolution aggregates asynchronously
|
|
7008
7061
|
*
|
|
7009
7062
|
* @param {Object} body query
|
|
@@ -7109,10 +7162,10 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
7109
7162
|
* @deprecated
|
|
7110
7163
|
*/},{key:"putAnalyticsReportingSchedule",value:function putAnalyticsReportingSchedule(scheduleId,body){// verify the required parameter 'scheduleId' is set
|
|
7111
7164
|
if(scheduleId===undefined||scheduleId===null){throw'Missing the required parameter "scheduleId" when calling putAnalyticsReportingSchedule';}// verify the required parameter 'body' is set
|
|
7112
|
-
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling putAnalyticsReportingSchedule';}return this.apiClient.callApi('/api/v2/analytics/reporting/schedules/{scheduleId}','PUT',{'scheduleId':scheduleId},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}}]);
|
|
7165
|
+
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling putAnalyticsReportingSchedule';}return this.apiClient.callApi('/api/v2/analytics/reporting/schedules/{scheduleId}','PUT',{'scheduleId':scheduleId},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}}]);}();var ArchitectApi=/*#__PURE__*/function(){/**
|
|
7113
7166
|
* Architect service.
|
|
7114
7167
|
* @module purecloud-platform-client-v2/api/ArchitectApi
|
|
7115
|
-
* @version
|
|
7168
|
+
* @version 192.0.0
|
|
7116
7169
|
*/ /**
|
|
7117
7170
|
* Constructs a new ArchitectApi.
|
|
7118
7171
|
* @alias module:purecloud-platform-client-v2/api/ArchitectApi
|
|
@@ -7123,7 +7176,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
7123
7176
|
* Deletes a emergency group by ID
|
|
7124
7177
|
*
|
|
7125
7178
|
* @param {String} emergencyGroupId Emergency group ID
|
|
7126
|
-
*/_createClass(ArchitectApi,[{key:"deleteArchitectEmergencygroup",value:function deleteArchitectEmergencygroup(emergencyGroupId){// verify the required parameter 'emergencyGroupId' is set
|
|
7179
|
+
*/return _createClass(ArchitectApi,[{key:"deleteArchitectEmergencygroup",value:function deleteArchitectEmergencygroup(emergencyGroupId){// verify the required parameter 'emergencyGroupId' is set
|
|
7127
7180
|
if(emergencyGroupId===undefined||emergencyGroupId===null){throw'Missing the required parameter "emergencyGroupId" when calling deleteArchitectEmergencygroup';}return this.apiClient.callApi('/api/v2/architect/emergencygroups/{emergencyGroupId}','DELETE',{'emergencyGroupId':emergencyGroupId},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
7128
7181
|
* Delete a grammar.
|
|
7129
7182
|
*
|
|
@@ -8225,10 +8278,10 @@ if(milestoneId===undefined||milestoneId===null){throw'Missing the required param
|
|
|
8225
8278
|
* @param {Object} opts Optional parameters
|
|
8226
8279
|
* @param {Object} opts.body
|
|
8227
8280
|
*/},{key:"putFlowsOutcome",value:function putFlowsOutcome(flowOutcomeId,opts){opts=opts||{};// verify the required parameter 'flowOutcomeId' is set
|
|
8228
|
-
if(flowOutcomeId===undefined||flowOutcomeId===null){throw'Missing the required parameter "flowOutcomeId" when calling putFlowsOutcome';}return this.apiClient.callApi('/api/v2/flows/outcomes/{flowOutcomeId}','PUT',{'flowOutcomeId':flowOutcomeId},{},{},{},opts['body'],['PureCloud OAuth'],['application/json'],['application/json']);}}]);
|
|
8281
|
+
if(flowOutcomeId===undefined||flowOutcomeId===null){throw'Missing the required parameter "flowOutcomeId" when calling putFlowsOutcome';}return this.apiClient.callApi('/api/v2/flows/outcomes/{flowOutcomeId}','PUT',{'flowOutcomeId':flowOutcomeId},{},{},{},opts['body'],['PureCloud OAuth'],['application/json'],['application/json']);}}]);}();var AuditApi=/*#__PURE__*/function(){/**
|
|
8229
8282
|
* Audit service.
|
|
8230
8283
|
* @module purecloud-platform-client-v2/api/AuditApi
|
|
8231
|
-
* @version
|
|
8284
|
+
* @version 192.0.0
|
|
8232
8285
|
*/ /**
|
|
8233
8286
|
* Constructs a new AuditApi.
|
|
8234
8287
|
* @alias module:purecloud-platform-client-v2/api/AuditApi
|
|
@@ -8238,7 +8291,7 @@ if(flowOutcomeId===undefined||flowOutcomeId===null){throw'Missing the required p
|
|
|
8238
8291
|
*/function AuditApi(apiClient){_classCallCheck(this,AuditApi);this.apiClient=apiClient||ApiClient.instance;}/**
|
|
8239
8292
|
* Get service mapping information used in realtime audits.
|
|
8240
8293
|
*
|
|
8241
|
-
*/_createClass(AuditApi,[{key:"getAuditsQueryRealtimeServicemapping",value:function getAuditsQueryRealtimeServicemapping(){return this.apiClient.callApi('/api/v2/audits/query/realtime/servicemapping','GET',{},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
8294
|
+
*/return _createClass(AuditApi,[{key:"getAuditsQueryRealtimeServicemapping",value:function getAuditsQueryRealtimeServicemapping(){return this.apiClient.callApi('/api/v2/audits/query/realtime/servicemapping','GET',{},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
8242
8295
|
* Get service mapping information used in audits.
|
|
8243
8296
|
*
|
|
8244
8297
|
*/},{key:"getAuditsQueryServicemapping",value:function getAuditsQueryServicemapping(){return this.apiClient.callApi('/api/v2/audits/query/servicemapping','GET',{},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
@@ -8267,10 +8320,10 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
8267
8320
|
* @param {Object} opts Optional parameters
|
|
8268
8321
|
* @param {Array.<String>} opts.expand Which fields, if any, to expand
|
|
8269
8322
|
*/},{key:"postAuditsQueryRealtime",value:function postAuditsQueryRealtime(body,opts){opts=opts||{};// verify the required parameter 'body' is set
|
|
8270
|
-
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling postAuditsQueryRealtime';}return this.apiClient.callApi('/api/v2/audits/query/realtime','POST',{},{'expand':this.apiClient.buildCollectionParam(opts['expand'],'multi')},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}}]);
|
|
8323
|
+
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling postAuditsQueryRealtime';}return this.apiClient.callApi('/api/v2/audits/query/realtime','POST',{},{'expand':this.apiClient.buildCollectionParam(opts['expand'],'multi')},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}}]);}();var AuthorizationApi=/*#__PURE__*/function(){/**
|
|
8271
8324
|
* Authorization service.
|
|
8272
8325
|
* @module purecloud-platform-client-v2/api/AuthorizationApi
|
|
8273
|
-
* @version
|
|
8326
|
+
* @version 192.0.0
|
|
8274
8327
|
*/ /**
|
|
8275
8328
|
* Constructs a new AuthorizationApi.
|
|
8276
8329
|
* @alias module:purecloud-platform-client-v2/api/AuthorizationApi
|
|
@@ -8283,7 +8336,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
8283
8336
|
* @param {String} divisionId Division ID
|
|
8284
8337
|
* @param {Object} opts Optional parameters
|
|
8285
8338
|
* @param {Boolean} opts.force Force delete this division as well as the grants and objects associated with it (default to false)
|
|
8286
|
-
*/_createClass(AuthorizationApi,[{key:"deleteAuthorizationDivision",value:function deleteAuthorizationDivision(divisionId,opts){opts=opts||{};// verify the required parameter 'divisionId' is set
|
|
8339
|
+
*/return _createClass(AuthorizationApi,[{key:"deleteAuthorizationDivision",value:function deleteAuthorizationDivision(divisionId,opts){opts=opts||{};// verify the required parameter 'divisionId' is set
|
|
8287
8340
|
if(divisionId===undefined||divisionId===null){throw'Missing the required parameter "divisionId" when calling deleteAuthorizationDivision';}return this.apiClient.callApi('/api/v2/authorization/divisions/{divisionId}','DELETE',{'divisionId':divisionId},{'force':opts['force']},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
8288
8341
|
* Delete an organization role.
|
|
8289
8342
|
*
|
|
@@ -8427,11 +8480,15 @@ if(roleId===undefined||roleId===null){throw'Missing the required parameter "role
|
|
|
8427
8480
|
* Returns a listing of roles and permissions for a user.
|
|
8428
8481
|
*
|
|
8429
8482
|
* @param {String} subjectId Subject ID (user or group)
|
|
8430
|
-
|
|
8431
|
-
|
|
8483
|
+
* @param {Object} opts Optional parameters
|
|
8484
|
+
* @param {Object} opts.includeDuplicates Include multiple entries with the same role and division but different subjects (default to false)
|
|
8485
|
+
*/},{key:"getAuthorizationSubject",value:function getAuthorizationSubject(subjectId,opts){opts=opts||{};// verify the required parameter 'subjectId' is set
|
|
8486
|
+
if(subjectId===undefined||subjectId===null){throw'Missing the required parameter "subjectId" when calling getAuthorizationSubject';}return this.apiClient.callApi('/api/v2/authorization/subjects/{subjectId}','GET',{'subjectId':subjectId},{'includeDuplicates':opts['includeDuplicates']},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
8432
8487
|
* Returns a listing of roles and permissions for the currently authenticated user.
|
|
8433
8488
|
*
|
|
8434
|
-
|
|
8489
|
+
* @param {Object} opts Optional parameters
|
|
8490
|
+
* @param {Object} opts.includeDuplicates Include multiple entries with the same role and division but different subjects (default to false)
|
|
8491
|
+
*/},{key:"getAuthorizationSubjectsMe",value:function getAuthorizationSubjectsMe(opts){opts=opts||{};return this.apiClient.callApi('/api/v2/authorization/subjects/me','GET',{},{'includeDuplicates':opts['includeDuplicates']},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
8435
8492
|
* Get the count of roles granted to a list of subjects
|
|
8436
8493
|
*
|
|
8437
8494
|
* @param {Object} opts Optional parameters
|
|
@@ -8578,10 +8635,10 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
8578
8635
|
* @param {Array.<String>} body List of roles
|
|
8579
8636
|
*/},{key:"putUserRoles",value:function putUserRoles(subjectId,body){// verify the required parameter 'subjectId' is set
|
|
8580
8637
|
if(subjectId===undefined||subjectId===null){throw'Missing the required parameter "subjectId" when calling putUserRoles';}// verify the required parameter 'body' is set
|
|
8581
|
-
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']);}}]);
|
|
8638
|
+
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling putUserRoles';}return this.apiClient.callApi('/api/v2/users/{subjectId}/roles','PUT',{'subjectId':subjectId},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}}]);}();var BillingApi=/*#__PURE__*/function(){/**
|
|
8582
8639
|
* Billing service.
|
|
8583
8640
|
* @module purecloud-platform-client-v2/api/BillingApi
|
|
8584
|
-
* @version
|
|
8641
|
+
* @version 192.0.0
|
|
8585
8642
|
*/ /**
|
|
8586
8643
|
* Constructs a new BillingApi.
|
|
8587
8644
|
* @alias module:purecloud-platform-client-v2/api/BillingApi
|
|
@@ -8593,7 +8650,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
8593
8650
|
* Report is of the billable usages (e.g. licenses and devices utilized) for a given period. If responses status is InProgress, wait a few seconds, then try the same request again.
|
|
8594
8651
|
* @param {Date} startDate The period start date. Date time is represented as an ISO-8601 string. For example: yyyy-MM-ddTHH:mm:ss[.mmm]Z
|
|
8595
8652
|
* @param {Date} endDate The period end date. Date time is represented as an ISO-8601 string. For example: yyyy-MM-ddTHH:mm:ss[.mmm]Z
|
|
8596
|
-
*/_createClass(BillingApi,[{key:"getBillingReportsBillableusage",value:function getBillingReportsBillableusage(startDate,endDate){// verify the required parameter 'startDate' is set
|
|
8653
|
+
*/return _createClass(BillingApi,[{key:"getBillingReportsBillableusage",value:function getBillingReportsBillableusage(startDate,endDate){// verify the required parameter 'startDate' is set
|
|
8597
8654
|
if(startDate===undefined||startDate===null){throw'Missing the required parameter "startDate" when calling getBillingReportsBillableusage';}// verify the required parameter 'endDate' is set
|
|
8598
8655
|
if(endDate===undefined||endDate===null){throw'Missing the required parameter "endDate" when calling getBillingReportsBillableusage';}return this.apiClient.callApi('/api/v2/billing/reports/billableusage','GET',{},{'startDate':startDate,'endDate':endDate},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
8599
8656
|
* Get the billing overview for an organization that is managed by a partner.
|
|
@@ -8602,10 +8659,10 @@ if(endDate===undefined||endDate===null){throw'Missing the required parameter "en
|
|
|
8602
8659
|
* @param {Object} opts Optional parameters
|
|
8603
8660
|
* @param {Number} opts.billingPeriodIndex 0 for active period (overview data may change until period closes). 1 for prior completed billing period. 2 for two billing cycles prior, and so on. (default to 0)
|
|
8604
8661
|
*/},{key:"getBillingTrusteebillingoverviewTrustorOrgId",value:function getBillingTrusteebillingoverviewTrustorOrgId(trustorOrgId,opts){opts=opts||{};// verify the required parameter 'trustorOrgId' is set
|
|
8605
|
-
if(trustorOrgId===undefined||trustorOrgId===null){throw'Missing the required parameter "trustorOrgId" when calling getBillingTrusteebillingoverviewTrustorOrgId';}return this.apiClient.callApi('/api/v2/billing/trusteebillingoverview/{trustorOrgId}','GET',{'trustorOrgId':trustorOrgId},{'billingPeriodIndex':opts['billingPeriodIndex']},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}}]);
|
|
8662
|
+
if(trustorOrgId===undefined||trustorOrgId===null){throw'Missing the required parameter "trustorOrgId" when calling getBillingTrusteebillingoverviewTrustorOrgId';}return this.apiClient.callApi('/api/v2/billing/trusteebillingoverview/{trustorOrgId}','GET',{'trustorOrgId':trustorOrgId},{'billingPeriodIndex':opts['billingPeriodIndex']},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}}]);}();var CarrierServicesApi=/*#__PURE__*/function(){/**
|
|
8606
8663
|
* CarrierServices service.
|
|
8607
8664
|
* @module purecloud-platform-client-v2/api/CarrierServicesApi
|
|
8608
|
-
* @version
|
|
8665
|
+
* @version 192.0.0
|
|
8609
8666
|
*/ /**
|
|
8610
8667
|
* Constructs a new CarrierServicesApi.
|
|
8611
8668
|
* @alias module:purecloud-platform-client-v2/api/CarrierServicesApi
|
|
@@ -8616,16 +8673,16 @@ if(trustorOrgId===undefined||trustorOrgId===null){throw'Missing the required par
|
|
|
8616
8673
|
* Get location for the logged in user
|
|
8617
8674
|
*
|
|
8618
8675
|
* @param {String} phoneNumber Phone number in E164 format
|
|
8619
|
-
*/_createClass(CarrierServicesApi,[{key:"getCarrierservicesIntegrationsEmergencylocationsMe",value:function getCarrierservicesIntegrationsEmergencylocationsMe(phoneNumber){// verify the required parameter 'phoneNumber' is set
|
|
8676
|
+
*/return _createClass(CarrierServicesApi,[{key:"getCarrierservicesIntegrationsEmergencylocationsMe",value:function getCarrierservicesIntegrationsEmergencylocationsMe(phoneNumber){// verify the required parameter 'phoneNumber' is set
|
|
8620
8677
|
if(phoneNumber===undefined||phoneNumber===null){throw'Missing the required parameter "phoneNumber" when calling getCarrierservicesIntegrationsEmergencylocationsMe';}return this.apiClient.callApi('/api/v2/carrierservices/integrations/emergencylocations/me','GET',{},{'phoneNumber':phoneNumber},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
8621
8678
|
* Set current location for the logged in user
|
|
8622
8679
|
*
|
|
8623
8680
|
* @param {Object} opts Optional parameters
|
|
8624
8681
|
* @param {Object} opts.body
|
|
8625
|
-
*/},{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']);}}]);
|
|
8682
|
+
*/},{key:"postCarrierservicesIntegrationsEmergencylocationsMe",value:function postCarrierservicesIntegrationsEmergencylocationsMe(opts){opts=opts||{};return this.apiClient.callApi('/api/v2/carrierservices/integrations/emergencylocations/me','POST',{},{},{},{},opts['body'],['PureCloud OAuth'],['application/json'],['application/json']);}}]);}();var ChatApi=/*#__PURE__*/function(){/**
|
|
8626
8683
|
* Chat service.
|
|
8627
8684
|
* @module purecloud-platform-client-v2/api/ChatApi
|
|
8628
|
-
* @version
|
|
8685
|
+
* @version 192.0.0
|
|
8629
8686
|
*/ /**
|
|
8630
8687
|
* Constructs a new ChatApi.
|
|
8631
8688
|
* @alias module:purecloud-platform-client-v2/api/ChatApi
|
|
@@ -8637,9 +8694,16 @@ if(phoneNumber===undefined||phoneNumber===null){throw'Missing the required param
|
|
|
8637
8694
|
*
|
|
8638
8695
|
* @param {String} roomJid roomId
|
|
8639
8696
|
* @param {String} messageId messageId
|
|
8640
|
-
*/_createClass(ChatApi,[{key:"deleteChatsRoomMessage",value:function deleteChatsRoomMessage(roomJid,messageId){// verify the required parameter 'roomJid' is set
|
|
8697
|
+
*/return _createClass(ChatApi,[{key:"deleteChatsRoomMessage",value:function deleteChatsRoomMessage(roomJid,messageId){// verify the required parameter 'roomJid' is set
|
|
8641
8698
|
if(roomJid===undefined||roomJid===null){throw'Missing the required parameter "roomJid" when calling deleteChatsRoomMessage';}// verify the required parameter 'messageId' is set
|
|
8642
8699
|
if(messageId===undefined||messageId===null){throw'Missing the required parameter "messageId" when calling deleteChatsRoomMessage';}return this.apiClient.callApi('/api/v2/chats/rooms/{roomJid}/messages/{messageId}','DELETE',{'roomJid':roomJid,'messageId':messageId},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
8700
|
+
* Remove a pinned message from a room
|
|
8701
|
+
*
|
|
8702
|
+
* @param {String} roomJid roomJid
|
|
8703
|
+
* @param {String} pinnedMessageId pinnedMessageId
|
|
8704
|
+
*/},{key:"deleteChatsRoomMessagesPin",value:function deleteChatsRoomMessagesPin(roomJid,pinnedMessageId){// verify the required parameter 'roomJid' is set
|
|
8705
|
+
if(roomJid===undefined||roomJid===null){throw'Missing the required parameter "roomJid" when calling deleteChatsRoomMessagesPin';}// verify the required parameter 'pinnedMessageId' is set
|
|
8706
|
+
if(pinnedMessageId===undefined||pinnedMessageId===null){throw'Missing the required parameter "pinnedMessageId" when calling deleteChatsRoomMessagesPin';}return this.apiClient.callApi('/api/v2/chats/rooms/{roomJid}/messages/pins/{pinnedMessageId}','DELETE',{'roomJid':roomJid,'pinnedMessageId':pinnedMessageId},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
8643
8707
|
* Remove a user from a room.
|
|
8644
8708
|
*
|
|
8645
8709
|
* @param {String} roomJid roomJid
|
|
@@ -8647,13 +8711,6 @@ if(messageId===undefined||messageId===null){throw'Missing the required parameter
|
|
|
8647
8711
|
*/},{key:"deleteChatsRoomParticipant",value:function deleteChatsRoomParticipant(roomJid,userId){// verify the required parameter 'roomJid' is set
|
|
8648
8712
|
if(roomJid===undefined||roomJid===null){throw'Missing the required parameter "roomJid" when calling deleteChatsRoomParticipant';}// verify the required parameter 'userId' is set
|
|
8649
8713
|
if(userId===undefined||userId===null){throw'Missing the required parameter "userId" when calling deleteChatsRoomParticipant';}return this.apiClient.callApi('/api/v2/chats/rooms/{roomJid}/participants/{userId}','DELETE',{'roomJid':roomJid,'userId':userId},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
8650
|
-
* Remove a pinned message from a room
|
|
8651
|
-
*
|
|
8652
|
-
* @param {String} roomJid roomJid
|
|
8653
|
-
* @param {String} pinnedMessageId pinnedMessageId
|
|
8654
|
-
*/},{key:"deleteChatsRoomPinnedmessage",value:function deleteChatsRoomPinnedmessage(roomJid,pinnedMessageId){// verify the required parameter 'roomJid' is set
|
|
8655
|
-
if(roomJid===undefined||roomJid===null){throw'Missing the required parameter "roomJid" when calling deleteChatsRoomPinnedmessage';}// verify the required parameter 'pinnedMessageId' is set
|
|
8656
|
-
if(pinnedMessageId===undefined||pinnedMessageId===null){throw'Missing the required parameter "pinnedMessageId" when calling deleteChatsRoomPinnedmessage';}return this.apiClient.callApi('/api/v2/chats/rooms/{roomJid}/pinnedmessages/{pinnedMessageId}','DELETE',{'roomJid':roomJid,'pinnedMessageId':pinnedMessageId},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
8657
8714
|
* Delete a message to a user
|
|
8658
8715
|
*
|
|
8659
8716
|
* @param {String} userId userId
|
|
@@ -8661,6 +8718,14 @@ if(pinnedMessageId===undefined||pinnedMessageId===null){throw'Missing the requir
|
|
|
8661
8718
|
*/},{key:"deleteChatsUserMessage",value:function deleteChatsUserMessage(userId,messageId){// verify the required parameter 'userId' is set
|
|
8662
8719
|
if(userId===undefined||userId===null){throw'Missing the required parameter "userId" when calling deleteChatsUserMessage';}// verify the required parameter 'messageId' is set
|
|
8663
8720
|
if(messageId===undefined||messageId===null){throw'Missing the required parameter "messageId" when calling deleteChatsUserMessage';}return this.apiClient.callApi('/api/v2/chats/users/{userId}/messages/{messageId}','DELETE',{'userId':userId,'messageId':messageId},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
8721
|
+
* Remove a pinned message from a 1on1
|
|
8722
|
+
*
|
|
8723
|
+
* @param {String} userId userId
|
|
8724
|
+
* @param {String} pinnedMessageId pinnedMessageId
|
|
8725
|
+
* deleteChatsUserMessagesPin is a preview method and is subject to both breaking and non-breaking changes at any time without notice
|
|
8726
|
+
*/},{key:"deleteChatsUserMessagesPin",value:function deleteChatsUserMessagesPin(userId,pinnedMessageId){// verify the required parameter 'userId' is set
|
|
8727
|
+
if(userId===undefined||userId===null){throw'Missing the required parameter "userId" when calling deleteChatsUserMessagesPin';}// verify the required parameter 'pinnedMessageId' is set
|
|
8728
|
+
if(pinnedMessageId===undefined||pinnedMessageId===null){throw'Missing the required parameter "pinnedMessageId" when calling deleteChatsUserMessagesPin';}return this.apiClient.callApi('/api/v2/chats/users/{userId}/messages/pins/{pinnedMessageId}','DELETE',{'userId':userId,'pinnedMessageId':pinnedMessageId},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
8664
8729
|
* Get a message
|
|
8665
8730
|
*
|
|
8666
8731
|
* @param {String} messageId messageId
|
|
@@ -8711,6 +8776,12 @@ if(roomJid===undefined||roomJid===null){throw'Missing the required parameter "ro
|
|
|
8711
8776
|
* @param {String} opts.after The beginning date for messages to retrieve
|
|
8712
8777
|
*/},{key:"getChatsThreadMessages",value:function getChatsThreadMessages(threadId,opts){opts=opts||{};// verify the required parameter 'threadId' is set
|
|
8713
8778
|
if(threadId===undefined||threadId===null){throw'Missing the required parameter "threadId" when calling getChatsThreadMessages';}return this.apiClient.callApi('/api/v2/chats/threads/{threadId}/messages','GET',{'threadId':threadId},{'limit':opts['limit'],'before':opts['before'],'after':opts['after']},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
8779
|
+
* Get information for a 1on1
|
|
8780
|
+
*
|
|
8781
|
+
* @param {String} userId userId
|
|
8782
|
+
* getChatsUser is a preview method and is subject to both breaking and non-breaking changes at any time without notice
|
|
8783
|
+
*/},{key:"getChatsUser",value:function getChatsUser(userId){// verify the required parameter 'userId' is set
|
|
8784
|
+
if(userId===undefined||userId===null){throw'Missing the required parameter "userId" when calling getChatsUser';}return this.apiClient.callApi('/api/v2/chats/users/{userId}','GET',{'userId':userId},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
8714
8785
|
* Get messages by id(s) from a 1on1
|
|
8715
8786
|
*
|
|
8716
8787
|
* @param {String} userId userId
|
|
@@ -8778,6 +8849,13 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
8778
8849
|
*/},{key:"postChatsRoomMessages",value:function postChatsRoomMessages(roomJid,body){// verify the required parameter 'roomJid' is set
|
|
8779
8850
|
if(roomJid===undefined||roomJid===null){throw'Missing the required parameter "roomJid" when calling postChatsRoomMessages';}// verify the required parameter 'body' is set
|
|
8780
8851
|
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling postChatsRoomMessages';}return this.apiClient.callApi('/api/v2/chats/rooms/{roomJid}/messages','POST',{'roomJid':roomJid},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
8852
|
+
* Add pinned messages for a room, up to a maximum of 5 pinned messages
|
|
8853
|
+
*
|
|
8854
|
+
* @param {String} roomJid roomJid
|
|
8855
|
+
* @param {Object} body Pinned Message Ids
|
|
8856
|
+
*/},{key:"postChatsRoomMessagesPins",value:function postChatsRoomMessagesPins(roomJid,body){// verify the required parameter 'roomJid' is set
|
|
8857
|
+
if(roomJid===undefined||roomJid===null){throw'Missing the required parameter "roomJid" when calling postChatsRoomMessagesPins';}// verify the required parameter 'body' is set
|
|
8858
|
+
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling postChatsRoomMessagesPins';}return this.apiClient.callApi('/api/v2/chats/rooms/{roomJid}/messages/pins','POST',{'roomJid':roomJid},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
8781
8859
|
* Join a room
|
|
8782
8860
|
*
|
|
8783
8861
|
* @param {String} roomJid roomJid
|
|
@@ -8785,13 +8863,6 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
8785
8863
|
*/},{key:"postChatsRoomParticipant",value:function postChatsRoomParticipant(roomJid,userId){// verify the required parameter 'roomJid' is set
|
|
8786
8864
|
if(roomJid===undefined||roomJid===null){throw'Missing the required parameter "roomJid" when calling postChatsRoomParticipant';}// verify the required parameter 'userId' is set
|
|
8787
8865
|
if(userId===undefined||userId===null){throw'Missing the required parameter "userId" when calling postChatsRoomParticipant';}return this.apiClient.callApi('/api/v2/chats/rooms/{roomJid}/participants/{userId}','POST',{'roomJid':roomJid,'userId':userId},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
8788
|
-
* Add pinned messages for a room, up to a maximum of 5 pinned messages
|
|
8789
|
-
*
|
|
8790
|
-
* @param {String} roomJid roomJid
|
|
8791
|
-
* @param {Object} body Pinned Message Ids
|
|
8792
|
-
*/},{key:"postChatsRoomPinnedmessages",value:function postChatsRoomPinnedmessages(roomJid,body){// verify the required parameter 'roomJid' is set
|
|
8793
|
-
if(roomJid===undefined||roomJid===null){throw'Missing the required parameter "roomJid" when calling postChatsRoomPinnedmessages';}// verify the required parameter 'body' is set
|
|
8794
|
-
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling postChatsRoomPinnedmessages';}return this.apiClient.callApi('/api/v2/chats/rooms/{roomJid}/pinnedmessages','POST',{'roomJid':roomJid},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
8795
8866
|
* Create an adhoc room
|
|
8796
8867
|
*
|
|
8797
8868
|
* @param {Object} body Room properties
|
|
@@ -8804,6 +8875,14 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
8804
8875
|
*/},{key:"postChatsUserMessages",value:function postChatsUserMessages(userId,body){// verify the required parameter 'userId' is set
|
|
8805
8876
|
if(userId===undefined||userId===null){throw'Missing the required parameter "userId" when calling postChatsUserMessages';}// verify the required parameter 'body' is set
|
|
8806
8877
|
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling postChatsUserMessages';}return this.apiClient.callApi('/api/v2/chats/users/{userId}/messages','POST',{'userId':userId},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
8878
|
+
* Add pinned messages for a 1on1, up to a maximum of 5 pinned messages
|
|
8879
|
+
*
|
|
8880
|
+
* @param {String} userId userId
|
|
8881
|
+
* @param {Object} body Pinned Message Ids
|
|
8882
|
+
* postChatsUserMessagesPins is a preview method and is subject to both breaking and non-breaking changes at any time without notice
|
|
8883
|
+
*/},{key:"postChatsUserMessagesPins",value:function postChatsUserMessagesPins(userId,body){// verify the required parameter 'userId' is set
|
|
8884
|
+
if(userId===undefined||userId===null){throw'Missing the required parameter "userId" when calling postChatsUserMessagesPins';}// verify the required parameter 'body' is set
|
|
8885
|
+
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling postChatsUserMessagesPins';}return this.apiClient.callApi('/api/v2/chats/users/{userId}/messages/pins','POST',{'userId':userId},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
8807
8886
|
* Update reactions to a message
|
|
8808
8887
|
*
|
|
8809
8888
|
* @param {String} messageId messageId
|
|
@@ -8815,10 +8894,10 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
8815
8894
|
*
|
|
8816
8895
|
* @param {Object} body Chat
|
|
8817
8896
|
*/},{key:"putChatsSettings",value:function putChatsSettings(body){// verify the required parameter 'body' is set
|
|
8818
|
-
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']);}}]);
|
|
8897
|
+
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling putChatsSettings';}return this.apiClient.callApi('/api/v2/chats/settings','PUT',{},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}}]);}();var CoachingApi=/*#__PURE__*/function(){/**
|
|
8819
8898
|
* Coaching service.
|
|
8820
8899
|
* @module purecloud-platform-client-v2/api/CoachingApi
|
|
8821
|
-
* @version
|
|
8900
|
+
* @version 192.0.0
|
|
8822
8901
|
*/ /**
|
|
8823
8902
|
* Constructs a new CoachingApi.
|
|
8824
8903
|
* @alias module:purecloud-platform-client-v2/api/CoachingApi
|
|
@@ -8829,7 +8908,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
8829
8908
|
* Delete an existing appointment
|
|
8830
8909
|
* Permission not required if you are the creator of the appointment
|
|
8831
8910
|
* @param {String} appointmentId The ID of the coaching appointment.
|
|
8832
|
-
*/_createClass(CoachingApi,[{key:"deleteCoachingAppointment",value:function deleteCoachingAppointment(appointmentId){// verify the required parameter 'appointmentId' is set
|
|
8911
|
+
*/return _createClass(CoachingApi,[{key:"deleteCoachingAppointment",value:function deleteCoachingAppointment(appointmentId){// verify the required parameter 'appointmentId' is set
|
|
8833
8912
|
if(appointmentId===undefined||appointmentId===null){throw'Missing the required parameter "appointmentId" when calling deleteCoachingAppointment';}return this.apiClient.callApi('/api/v2/coaching/appointments/{appointmentId}','DELETE',{'appointmentId':appointmentId},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
8834
8913
|
* Delete an existing annotation
|
|
8835
8914
|
* You must have the appropriate permission for the type of annotation you are updating. Permission not required if you are the creator or facilitator of the appointment
|
|
@@ -8968,10 +9047,10 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
8968
9047
|
*
|
|
8969
9048
|
* @param {Object} body The slot search request
|
|
8970
9049
|
*/},{key:"postCoachingScheduleslotsQuery",value:function postCoachingScheduleslotsQuery(body){// verify the required parameter 'body' is set
|
|
8971
|
-
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']);}}]);
|
|
9050
|
+
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling postCoachingScheduleslotsQuery';}return this.apiClient.callApi('/api/v2/coaching/scheduleslots/query','POST',{},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}}]);}();var ContentManagementApi=/*#__PURE__*/function(){/**
|
|
8972
9051
|
* ContentManagement service.
|
|
8973
9052
|
* @module purecloud-platform-client-v2/api/ContentManagementApi
|
|
8974
|
-
* @version
|
|
9053
|
+
* @version 192.0.0
|
|
8975
9054
|
*/ /**
|
|
8976
9055
|
* Constructs a new ContentManagementApi.
|
|
8977
9056
|
* @alias module:purecloud-platform-client-v2/api/ContentManagementApi
|
|
@@ -8984,7 +9063,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
8984
9063
|
* @param {String} documentId Document ID
|
|
8985
9064
|
* @param {Object} opts Optional parameters
|
|
8986
9065
|
* @param {Boolean} opts.override Override any lock on the document
|
|
8987
|
-
*/_createClass(ContentManagementApi,[{key:"deleteContentmanagementDocument",value:function deleteContentmanagementDocument(documentId,opts){opts=opts||{};// verify the required parameter 'documentId' is set
|
|
9066
|
+
*/return _createClass(ContentManagementApi,[{key:"deleteContentmanagementDocument",value:function deleteContentmanagementDocument(documentId,opts){opts=opts||{};// verify the required parameter 'documentId' is set
|
|
8988
9067
|
if(documentId===undefined||documentId===null){throw'Missing the required parameter "documentId" when calling deleteContentmanagementDocument';}return this.apiClient.callApi('/api/v2/contentmanagement/documents/{documentId}','DELETE',{'documentId':documentId},{'override':opts['override']},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
8989
9068
|
* Deletes an existing share.
|
|
8990
9069
|
* This revokes sharing rights specified in the share record
|
|
@@ -9251,10 +9330,10 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
9251
9330
|
*/},{key:"putContentmanagementWorkspaceTagvalue",value:function putContentmanagementWorkspaceTagvalue(workspaceId,tagId,body){// verify the required parameter 'workspaceId' is set
|
|
9252
9331
|
if(workspaceId===undefined||workspaceId===null){throw'Missing the required parameter "workspaceId" when calling putContentmanagementWorkspaceTagvalue';}// verify the required parameter 'tagId' is set
|
|
9253
9332
|
if(tagId===undefined||tagId===null){throw'Missing the required parameter "tagId" when calling putContentmanagementWorkspaceTagvalue';}// verify the required parameter 'body' is set
|
|
9254
|
-
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']);}}]);
|
|
9333
|
+
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling putContentmanagementWorkspaceTagvalue';}return this.apiClient.callApi('/api/v2/contentmanagement/workspaces/{workspaceId}/tagvalues/{tagId}','PUT',{'workspaceId':workspaceId,'tagId':tagId},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}}]);}();var ConversationsApi=/*#__PURE__*/function(){/**
|
|
9255
9334
|
* Conversations service.
|
|
9256
9335
|
* @module purecloud-platform-client-v2/api/ConversationsApi
|
|
9257
|
-
* @version
|
|
9336
|
+
* @version 192.0.0
|
|
9258
9337
|
*/ /**
|
|
9259
9338
|
* Constructs a new ConversationsApi.
|
|
9260
9339
|
* @alias module:purecloud-platform-client-v2/api/ConversationsApi
|
|
@@ -9265,7 +9344,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
9265
9344
|
* Delete/cancel an async details job
|
|
9266
9345
|
*
|
|
9267
9346
|
* @param {String} jobId jobId
|
|
9268
|
-
*/_createClass(ConversationsApi,[{key:"deleteAnalyticsConversationsDetailsJob",value:function deleteAnalyticsConversationsDetailsJob(jobId){// verify the required parameter 'jobId' is set
|
|
9347
|
+
*/return _createClass(ConversationsApi,[{key:"deleteAnalyticsConversationsDetailsJob",value:function deleteAnalyticsConversationsDetailsJob(jobId){// verify the required parameter 'jobId' is set
|
|
9269
9348
|
if(jobId===undefined||jobId===null){throw'Missing the required parameter "jobId" when calling deleteAnalyticsConversationsDetailsJob';}return this.apiClient.callApi('/api/v2/analytics/conversations/details/jobs/{jobId}','DELETE',{'jobId':jobId},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
9270
9349
|
* Delete a code used to add a communication to this participant
|
|
9271
9350
|
*
|
|
@@ -9573,29 +9652,32 @@ if(participantId===undefined||participantId===null){throw'Missing the required p
|
|
|
9573
9652
|
*/},{key:"getConversationsCobrowsesession",value:function getConversationsCobrowsesession(conversationId){// verify the required parameter 'conversationId' is set
|
|
9574
9653
|
if(conversationId===undefined||conversationId===null){throw'Missing the required parameter "conversationId" when calling getConversationsCobrowsesession';}return this.apiClient.callApi('/api/v2/conversations/cobrowsesessions/{conversationId}','GET',{'conversationId':conversationId},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
9575
9654
|
* Get the wrap-up for this conversation communication.
|
|
9576
|
-
*
|
|
9655
|
+
* This endpoint is deprecated. Please see the article https://help.mypurecloud.com/articles/deprecation-legacy-co-browse-and-screenshare/
|
|
9577
9656
|
* @param {String} conversationId conversationId
|
|
9578
9657
|
* @param {String} participantId participantId
|
|
9579
9658
|
* @param {String} communicationId communicationId
|
|
9580
9659
|
* @param {Object} opts Optional parameters
|
|
9581
9660
|
* @param {Boolean} opts.provisional Indicates if the wrap-up code is provisional. (default to false)
|
|
9661
|
+
* @deprecated
|
|
9582
9662
|
*/},{key:"getConversationsCobrowsesessionParticipantCommunicationWrapup",value:function getConversationsCobrowsesessionParticipantCommunicationWrapup(conversationId,participantId,communicationId,opts){opts=opts||{};// verify the required parameter 'conversationId' is set
|
|
9583
9663
|
if(conversationId===undefined||conversationId===null){throw'Missing the required parameter "conversationId" when calling getConversationsCobrowsesessionParticipantCommunicationWrapup';}// verify the required parameter 'participantId' is set
|
|
9584
9664
|
if(participantId===undefined||participantId===null){throw'Missing the required parameter "participantId" when calling getConversationsCobrowsesessionParticipantCommunicationWrapup';}// verify the required parameter 'communicationId' is set
|
|
9585
9665
|
if(communicationId===undefined||communicationId===null){throw'Missing the required parameter "communicationId" when calling getConversationsCobrowsesessionParticipantCommunicationWrapup';}return this.apiClient.callApi('/api/v2/conversations/cobrowsesessions/{conversationId}/participants/{participantId}/communications/{communicationId}/wrapup','GET',{'conversationId':conversationId,'participantId':participantId,'communicationId':communicationId},{'provisional':opts['provisional']},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
9586
9666
|
* Get the wrap-up for this conversation participant.
|
|
9587
|
-
*
|
|
9667
|
+
* This endpoint is deprecated. Please see the article https://help.mypurecloud.com/articles/deprecation-legacy-co-browse-and-screenshare/
|
|
9588
9668
|
* @param {String} conversationId conversationId
|
|
9589
9669
|
* @param {String} participantId participantId
|
|
9590
9670
|
* @param {Object} opts Optional parameters
|
|
9591
9671
|
* @param {Boolean} opts.provisional Indicates if the wrap-up code is provisional. (default to false)
|
|
9672
|
+
* @deprecated
|
|
9592
9673
|
*/},{key:"getConversationsCobrowsesessionParticipantWrapup",value:function getConversationsCobrowsesessionParticipantWrapup(conversationId,participantId,opts){opts=opts||{};// verify the required parameter 'conversationId' is set
|
|
9593
9674
|
if(conversationId===undefined||conversationId===null){throw'Missing the required parameter "conversationId" when calling getConversationsCobrowsesessionParticipantWrapup';}// verify the required parameter 'participantId' is set
|
|
9594
9675
|
if(participantId===undefined||participantId===null){throw'Missing the required parameter "participantId" when calling getConversationsCobrowsesessionParticipantWrapup';}return this.apiClient.callApi('/api/v2/conversations/cobrowsesessions/{conversationId}/participants/{participantId}/wrapup','GET',{'conversationId':conversationId,'participantId':participantId},{'provisional':opts['provisional']},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
9595
9676
|
* Get list of wrapup codes for this conversation participant
|
|
9596
|
-
*
|
|
9677
|
+
* This endpoint is deprecated. Please see the article https://help.mypurecloud.com/articles/deprecation-legacy-co-browse-and-screenshare/
|
|
9597
9678
|
* @param {String} conversationId conversationId
|
|
9598
9679
|
* @param {String} participantId participantId
|
|
9680
|
+
* @deprecated
|
|
9599
9681
|
*/},{key:"getConversationsCobrowsesessionParticipantWrapupcodes",value:function getConversationsCobrowsesessionParticipantWrapupcodes(conversationId,participantId){// verify the required parameter 'conversationId' is set
|
|
9600
9682
|
if(conversationId===undefined||conversationId===null){throw'Missing the required parameter "conversationId" when calling getConversationsCobrowsesessionParticipantWrapupcodes';}// verify the required parameter 'participantId' is set
|
|
9601
9683
|
if(participantId===undefined||participantId===null){throw'Missing the required parameter "participantId" when calling getConversationsCobrowsesessionParticipantWrapupcodes';}return this.apiClient.callApi('/api/v2/conversations/cobrowsesessions/{conversationId}/participants/{participantId}/wrapupcodes','GET',{'conversationId':conversationId,'participantId':participantId},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
@@ -9742,6 +9824,9 @@ if(cachedMediaItemId===undefined||cachedMediaItemId===null){throw'Missing the re
|
|
|
9742
9824
|
* Get Genesys Facebook App Id
|
|
9743
9825
|
*
|
|
9744
9826
|
*/},{key:"getConversationsMessagingFacebookApp",value:function getConversationsMessagingFacebookApp(){return this.apiClient.callApi('/api/v2/conversations/messaging/facebook/app','GET',{},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
9827
|
+
* Get a list of Facebook Permissions
|
|
9828
|
+
*
|
|
9829
|
+
*/},{key:"getConversationsMessagingFacebookPermissions",value:function getConversationsMessagingFacebookPermissions(){return this.apiClient.callApi('/api/v2/conversations/messaging/facebook/permissions','GET',{},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
9745
9830
|
* Get a list of Integrations
|
|
9746
9831
|
*
|
|
9747
9832
|
* @param {Object} opts Optional parameters
|
|
@@ -9865,12 +9950,13 @@ if(messageSettingId===undefined||messageSettingId===null){throw'Missing the requ
|
|
|
9865
9950
|
* Get the organization's default settings that will be used as the default when creating an integration.
|
|
9866
9951
|
* When an integration is created a settings ID may be assigned to it. If the settings ID is not supplied, the default settings will be assigned to it.
|
|
9867
9952
|
*/},{key:"getConversationsMessagingSettingsDefault",value:function getConversationsMessagingSettingsDefault(){return this.apiClient.callApi('/api/v2/conversations/messaging/settings/default','GET',{},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
9868
|
-
* Get a list of Messaging Stickers
|
|
9869
|
-
*
|
|
9953
|
+
* Get a list of Messaging Stickers (Deprecated)
|
|
9954
|
+
* This endpoint is deprecated. Please see the article https://help.mypurecloud.com/articles/deprecation-native-line-third-party-messaging-channel/
|
|
9870
9955
|
* @param {Object} messengerType Messenger Type
|
|
9871
9956
|
* @param {Object} opts Optional parameters
|
|
9872
9957
|
* @param {Number} opts.pageSize Page size (default to 25)
|
|
9873
9958
|
* @param {Number} opts.pageNumber Page number (default to 1)
|
|
9959
|
+
* @deprecated
|
|
9874
9960
|
*/},{key:"getConversationsMessagingSticker",value:function getConversationsMessagingSticker(messengerType,opts){opts=opts||{};// verify the required parameter 'messengerType' is set
|
|
9875
9961
|
if(messengerType===undefined||messengerType===null){throw'Missing the required parameter "messengerType" when calling getConversationsMessagingSticker';}return this.apiClient.callApi('/api/v2/conversations/messaging/stickers/{messengerType}','GET',{'messengerType':messengerType},{'pageSize':opts['pageSize'],'pageNumber':opts['pageNumber']},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
9876
9962
|
* Get a list of Supported Content profiles
|
|
@@ -9891,12 +9977,13 @@ if(supportedContentId===undefined||supportedContentId===null){throw'Missing the
|
|
|
9891
9977
|
* Conversation messaging threading timeline is a setting defined for each messenger type in your organization. This setting will dictate whether a new message is added to the most recent existing conversation, or creates a new Conversation. If the existing Conversation is still in a connected state the threading timeline setting will never play a role. After the conversation is disconnected, if an inbound message is received or an outbound message is sent after the setting for threading timeline expires, a new conversation is created.
|
|
9892
9978
|
*/},{key:"getConversationsMessagingThreadingtimeline",value:function getConversationsMessagingThreadingtimeline(){return this.apiClient.callApi('/api/v2/conversations/messaging/threadingtimeline','GET',{},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
9893
9979
|
* Get the wrap-up for this conversation communication.
|
|
9894
|
-
*
|
|
9980
|
+
* This endpoint is deprecated. Please see the article https://help.mypurecloud.com/articles/deprecation-legacy-co-browse-and-screenshare/
|
|
9895
9981
|
* @param {String} conversationId conversationId
|
|
9896
9982
|
* @param {String} participantId participantId
|
|
9897
9983
|
* @param {String} communicationId communicationId
|
|
9898
9984
|
* @param {Object} opts Optional parameters
|
|
9899
9985
|
* @param {Boolean} opts.provisional Indicates if the wrap-up code is provisional. (default to false)
|
|
9986
|
+
* @deprecated
|
|
9900
9987
|
*/},{key:"getConversationsScreenshareParticipantCommunicationWrapup",value:function getConversationsScreenshareParticipantCommunicationWrapup(conversationId,participantId,communicationId,opts){opts=opts||{};// verify the required parameter 'conversationId' is set
|
|
9901
9988
|
if(conversationId===undefined||conversationId===null){throw'Missing the required parameter "conversationId" when calling getConversationsScreenshareParticipantCommunicationWrapup';}// verify the required parameter 'participantId' is set
|
|
9902
9989
|
if(participantId===undefined||participantId===null){throw'Missing the required parameter "participantId" when calling getConversationsScreenshareParticipantCommunicationWrapup';}// verify the required parameter 'communicationId' is set
|
|
@@ -10097,36 +10184,40 @@ if(participantId===undefined||participantId===null){throw'Missing the required p
|
|
|
10097
10184
|
if(communicationId===undefined||communicationId===null){throw'Missing the required parameter "communicationId" when calling patchConversationsChatParticipantCommunication';}// verify the required parameter 'body' is set
|
|
10098
10185
|
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling patchConversationsChatParticipantCommunication';}return this.apiClient.callApi('/api/v2/conversations/chats/{conversationId}/participants/{participantId}/communications/{communicationId}','PATCH',{'conversationId':conversationId,'participantId':participantId,'communicationId':communicationId},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
10099
10186
|
* Update a conversation by disconnecting all of the participants
|
|
10100
|
-
*
|
|
10187
|
+
* This endpoint is deprecated. Please see the article https://help.mypurecloud.com/articles/deprecation-legacy-co-browse-and-screenshare/
|
|
10101
10188
|
* @param {String} conversationId conversationId
|
|
10102
10189
|
* @param {Object} body Conversation
|
|
10190
|
+
* @deprecated
|
|
10103
10191
|
*/},{key:"patchConversationsCobrowsesession",value:function patchConversationsCobrowsesession(conversationId,body){// verify the required parameter 'conversationId' is set
|
|
10104
10192
|
if(conversationId===undefined||conversationId===null){throw'Missing the required parameter "conversationId" when calling patchConversationsCobrowsesession';}// verify the required parameter 'body' is set
|
|
10105
10193
|
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling patchConversationsCobrowsesession';}return this.apiClient.callApi('/api/v2/conversations/cobrowsesessions/{conversationId}','PATCH',{'conversationId':conversationId},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
10106
10194
|
* Update conversation participant
|
|
10107
|
-
*
|
|
10195
|
+
* This endpoint is deprecated. Please see the article https://help.mypurecloud.com/articles/deprecation-legacy-co-browse-and-screenshare/
|
|
10108
10196
|
* @param {String} conversationId conversationId
|
|
10109
10197
|
* @param {String} participantId participantId
|
|
10110
10198
|
* @param {Object} opts Optional parameters
|
|
10111
10199
|
* @param {Object} opts.body
|
|
10200
|
+
* @deprecated
|
|
10112
10201
|
*/},{key:"patchConversationsCobrowsesessionParticipant",value:function patchConversationsCobrowsesessionParticipant(conversationId,participantId,opts){opts=opts||{};// verify the required parameter 'conversationId' is set
|
|
10113
10202
|
if(conversationId===undefined||conversationId===null){throw'Missing the required parameter "conversationId" when calling patchConversationsCobrowsesessionParticipant';}// verify the required parameter 'participantId' is set
|
|
10114
10203
|
if(participantId===undefined||participantId===null){throw'Missing the required parameter "participantId" when calling patchConversationsCobrowsesessionParticipant';}return this.apiClient.callApi('/api/v2/conversations/cobrowsesessions/{conversationId}/participants/{participantId}','PATCH',{'conversationId':conversationId,'participantId':participantId},{},{},{},opts['body'],['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
10115
10204
|
* Update the attributes on a conversation participant.
|
|
10116
|
-
*
|
|
10205
|
+
* This endpoint is deprecated. Please see the article https://help.mypurecloud.com/articles/deprecation-legacy-co-browse-and-screenshare/
|
|
10117
10206
|
* @param {String} conversationId conversationId
|
|
10118
10207
|
* @param {String} participantId participantId
|
|
10119
10208
|
* @param {Object} opts Optional parameters
|
|
10120
10209
|
* @param {Object} opts.body
|
|
10210
|
+
* @deprecated
|
|
10121
10211
|
*/},{key:"patchConversationsCobrowsesessionParticipantAttributes",value:function patchConversationsCobrowsesessionParticipantAttributes(conversationId,participantId,opts){opts=opts||{};// verify the required parameter 'conversationId' is set
|
|
10122
10212
|
if(conversationId===undefined||conversationId===null){throw'Missing the required parameter "conversationId" when calling patchConversationsCobrowsesessionParticipantAttributes';}// verify the required parameter 'participantId' is set
|
|
10123
10213
|
if(participantId===undefined||participantId===null){throw'Missing the required parameter "participantId" when calling patchConversationsCobrowsesessionParticipantAttributes';}return this.apiClient.callApi('/api/v2/conversations/cobrowsesessions/{conversationId}/participants/{participantId}/attributes','PATCH',{'conversationId':conversationId,'participantId':participantId},{},{},{},opts['body'],['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
10124
10214
|
* Update conversation participant's communication by disconnecting it.
|
|
10125
|
-
*
|
|
10215
|
+
* This endpoint is deprecated. Please see the article https://help.mypurecloud.com/articles/deprecation-legacy-co-browse-and-screenshare/
|
|
10126
10216
|
* @param {String} conversationId conversationId
|
|
10127
10217
|
* @param {String} participantId participantId
|
|
10128
10218
|
* @param {String} communicationId communicationId
|
|
10129
10219
|
* @param {Object} body Participant
|
|
10220
|
+
* @deprecated
|
|
10130
10221
|
*/},{key:"patchConversationsCobrowsesessionParticipantCommunication",value:function patchConversationsCobrowsesessionParticipantCommunication(conversationId,participantId,communicationId,body){// verify the required parameter 'conversationId' is set
|
|
10131
10222
|
if(conversationId===undefined||conversationId===null){throw'Missing the required parameter "conversationId" when calling patchConversationsCobrowsesessionParticipantCommunication';}// verify the required parameter 'participantId' is set
|
|
10132
10223
|
if(participantId===undefined||participantId===null){throw'Missing the required parameter "participantId" when calling patchConversationsCobrowsesessionParticipantCommunication';}// verify the required parameter 'communicationId' is set
|
|
@@ -10581,22 +10672,24 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
10581
10672
|
*/},{key:"postConversationsChats",value:function postConversationsChats(body){// verify the required parameter 'body' is set
|
|
10582
10673
|
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling postConversationsChats';}return this.apiClient.callApi('/api/v2/conversations/chats','POST',{},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
10583
10674
|
* Apply wrap-up for this conversation communication
|
|
10584
|
-
*
|
|
10675
|
+
* This endpoint is deprecated. Please see the article https://help.mypurecloud.com/articles/deprecation-legacy-co-browse-and-screenshare/
|
|
10585
10676
|
* @param {String} conversationId conversationId
|
|
10586
10677
|
* @param {String} participantId participantId
|
|
10587
10678
|
* @param {String} communicationId communicationId
|
|
10588
10679
|
* @param {Object} opts Optional parameters
|
|
10589
10680
|
* @param {Object} opts.body Wrap-up
|
|
10681
|
+
* @deprecated
|
|
10590
10682
|
*/},{key:"postConversationsCobrowsesessionParticipantCommunicationWrapup",value:function postConversationsCobrowsesessionParticipantCommunicationWrapup(conversationId,participantId,communicationId,opts){opts=opts||{};// verify the required parameter 'conversationId' is set
|
|
10591
10683
|
if(conversationId===undefined||conversationId===null){throw'Missing the required parameter "conversationId" when calling postConversationsCobrowsesessionParticipantCommunicationWrapup';}// verify the required parameter 'participantId' is set
|
|
10592
10684
|
if(participantId===undefined||participantId===null){throw'Missing the required parameter "participantId" when calling postConversationsCobrowsesessionParticipantCommunicationWrapup';}// verify the required parameter 'communicationId' is set
|
|
10593
10685
|
if(communicationId===undefined||communicationId===null){throw'Missing the required parameter "communicationId" when calling postConversationsCobrowsesessionParticipantCommunicationWrapup';}return this.apiClient.callApi('/api/v2/conversations/cobrowsesessions/{conversationId}/participants/{participantId}/communications/{communicationId}/wrapup','POST',{'conversationId':conversationId,'participantId':participantId,'communicationId':communicationId},{},{},{},opts['body'],['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
10594
10686
|
* Replace this participant with the specified user and/or address
|
|
10595
|
-
*
|
|
10687
|
+
* This endpoint is deprecated. Please see the article https://help.mypurecloud.com/articles/deprecation-legacy-co-browse-and-screenshare/
|
|
10596
10688
|
* @param {String} conversationId conversationId
|
|
10597
10689
|
* @param {String} participantId participantId
|
|
10598
10690
|
* @param {Object} opts Optional parameters
|
|
10599
10691
|
* @param {Object} opts.body
|
|
10692
|
+
* @deprecated
|
|
10600
10693
|
*/},{key:"postConversationsCobrowsesessionParticipantReplace",value:function postConversationsCobrowsesessionParticipantReplace(conversationId,participantId,opts){opts=opts||{};// verify the required parameter 'conversationId' is set
|
|
10601
10694
|
if(conversationId===undefined||conversationId===null){throw'Missing the required parameter "conversationId" when calling postConversationsCobrowsesessionParticipantReplace';}// verify the required parameter 'participantId' is set
|
|
10602
10695
|
if(participantId===undefined||participantId===null){throw'Missing the required parameter "participantId" when calling postConversationsCobrowsesessionParticipantReplace';}return this.apiClient.callApi('/api/v2/conversations/cobrowsesessions/{conversationId}/participants/{participantId}/replace','POST',{'conversationId':conversationId,'participantId':participantId},{},{},{},opts['body'],['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
@@ -10760,8 +10853,9 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
10760
10853
|
*/},{key:"postConversationsMessagesAgentless",value:function postConversationsMessagesAgentless(body){// verify the required parameter 'body' is set
|
|
10761
10854
|
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling postConversationsMessagesAgentless';}return this.apiClient.callApi('/api/v2/conversations/messages/agentless','POST',{},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
10762
10855
|
* Send an inbound Open Message
|
|
10763
|
-
*
|
|
10856
|
+
* [This API is deprecated. Instead, use 1. POST /api/v2/conversations/messages/{integrationId}/inbound/open/event, if you want to send an inbound Open Event Message 2. POST /api/v2/conversations/messages/{integrationId}/inbound/open/message, if you want to send an inbound Open Message 3. POST /api/v2/conversations/messages/{integrationId}/inbound/open/receipt, to send an inbound Open Receipt Message] In order to call this endpoint you will need OAuth token generated using OAuth client credentials authorized with at least messaging scope. This will either generate a new Conversation, or be a part of an existing conversation. See https://developer.genesys.cloud/api/digital/openmessaging/ for example usage.
|
|
10764
10857
|
* @param {Object} body NormalizedMessage
|
|
10858
|
+
* @deprecated
|
|
10765
10859
|
*/},{key:"postConversationsMessagesInboundOpen",value:function postConversationsMessagesInboundOpen(body){// verify the required parameter 'body' is set
|
|
10766
10860
|
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling postConversationsMessagesInboundOpen';}return this.apiClient.callApi('/api/v2/conversations/messages/inbound/open','POST',{},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
10767
10861
|
* Create a Facebook Integration
|
|
@@ -10818,12 +10912,13 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
10818
10912
|
*/},{key:"postConversationsParticipantsAttributesSearch",value:function postConversationsParticipantsAttributesSearch(body){// verify the required parameter 'body' is set
|
|
10819
10913
|
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling postConversationsParticipantsAttributesSearch';}return this.apiClient.callApi('/api/v2/conversations/participants/attributes/search','POST',{},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
10820
10914
|
* Apply wrap-up for this conversation communication
|
|
10821
|
-
*
|
|
10915
|
+
* This endpoint is deprecated. Please see the article https://help.mypurecloud.com/articles/deprecation-legacy-co-browse-and-screenshare/
|
|
10822
10916
|
* @param {String} conversationId conversationId
|
|
10823
10917
|
* @param {String} participantId participantId
|
|
10824
10918
|
* @param {String} communicationId communicationId
|
|
10825
10919
|
* @param {Object} opts Optional parameters
|
|
10826
10920
|
* @param {Object} opts.body Wrap-up
|
|
10921
|
+
* @deprecated
|
|
10827
10922
|
*/},{key:"postConversationsScreenshareParticipantCommunicationWrapup",value:function postConversationsScreenshareParticipantCommunicationWrapup(conversationId,participantId,communicationId,opts){opts=opts||{};// verify the required parameter 'conversationId' is set
|
|
10828
10923
|
if(conversationId===undefined||conversationId===null){throw'Missing the required parameter "conversationId" when calling postConversationsScreenshareParticipantCommunicationWrapup';}// verify the required parameter 'participantId' is set
|
|
10829
10924
|
if(participantId===undefined||participantId===null){throw'Missing the required parameter "participantId" when calling postConversationsScreenshareParticipantCommunicationWrapup';}// verify the required parameter 'communicationId' is set
|
|
@@ -10968,9 +11063,10 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
10968
11063
|
*/},{key:"putConversationsMessagingThreadingtimeline",value:function putConversationsMessagingThreadingtimeline(body){// verify the required parameter 'body' is set
|
|
10969
11064
|
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling putConversationsMessagingThreadingtimeline';}return this.apiClient.callApi('/api/v2/conversations/messaging/threadingtimeline','PUT',{},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
10970
11065
|
* Update a conversation by setting its recording state
|
|
10971
|
-
*
|
|
11066
|
+
* This endpoint is deprecated. Please see the article https://help.mypurecloud.com/articles/deprecation-legacy-co-browse-and-screenshare/
|
|
10972
11067
|
* @param {String} conversationId conversationId
|
|
10973
11068
|
* @param {Object} body SetRecordingState
|
|
11069
|
+
* @deprecated
|
|
10974
11070
|
*/},{key:"putConversationsScreenshareRecordingstate",value:function putConversationsScreenshareRecordingstate(conversationId,body){// verify the required parameter 'conversationId' is set
|
|
10975
11071
|
if(conversationId===undefined||conversationId===null){throw'Missing the required parameter "conversationId" when calling putConversationsScreenshareRecordingstate';}// verify the required parameter 'body' is set
|
|
10976
11072
|
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling putConversationsScreenshareRecordingstate';}return this.apiClient.callApi('/api/v2/conversations/screenshares/{conversationId}/recordingstate','PUT',{'conversationId':conversationId},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
@@ -10987,10 +11083,10 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
10987
11083
|
* @param {Object} body SetRecordingState
|
|
10988
11084
|
*/},{key:"putConversationsVideoRecordingstate",value:function putConversationsVideoRecordingstate(conversationId,body){// verify the required parameter 'conversationId' is set
|
|
10989
11085
|
if(conversationId===undefined||conversationId===null){throw'Missing the required parameter "conversationId" when calling putConversationsVideoRecordingstate';}// verify the required parameter 'body' is set
|
|
10990
|
-
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']);}}]);
|
|
11086
|
+
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling putConversationsVideoRecordingstate';}return this.apiClient.callApi('/api/v2/conversations/videos/{conversationId}/recordingstate','PUT',{'conversationId':conversationId},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}}]);}();var DataExtensionsApi=/*#__PURE__*/function(){/**
|
|
10991
11087
|
* DataExtensions service.
|
|
10992
11088
|
* @module purecloud-platform-client-v2/api/DataExtensionsApi
|
|
10993
|
-
* @version
|
|
11089
|
+
* @version 192.0.0
|
|
10994
11090
|
*/ /**
|
|
10995
11091
|
* Constructs a new DataExtensionsApi.
|
|
10996
11092
|
* @alias module:purecloud-platform-client-v2/api/DataExtensionsApi
|
|
@@ -11001,17 +11097,17 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
11001
11097
|
* Get a specific named core type.
|
|
11002
11098
|
*
|
|
11003
11099
|
* @param {Object} coretypeName The core type's name
|
|
11004
|
-
*/_createClass(DataExtensionsApi,[{key:"getDataextensionsCoretype",value:function getDataextensionsCoretype(coretypeName){// verify the required parameter 'coretypeName' is set
|
|
11100
|
+
*/return _createClass(DataExtensionsApi,[{key:"getDataextensionsCoretype",value:function getDataextensionsCoretype(coretypeName){// verify the required parameter 'coretypeName' is set
|
|
11005
11101
|
if(coretypeName===undefined||coretypeName===null){throw'Missing the required parameter "coretypeName" when calling getDataextensionsCoretype';}return this.apiClient.callApi('/api/v2/dataextensions/coretypes/{coretypeName}','GET',{'coretypeName':coretypeName},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
11006
11102
|
* Get the core types from which all schemas are built.
|
|
11007
11103
|
*
|
|
11008
11104
|
*/},{key:"getDataextensionsCoretypes",value:function getDataextensionsCoretypes(){return this.apiClient.callApi('/api/v2/dataextensions/coretypes','GET',{},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
11009
11105
|
* Get quantitative limits on schemas
|
|
11010
11106
|
*
|
|
11011
|
-
*/},{key:"getDataextensionsLimits",value:function getDataextensionsLimits(){return this.apiClient.callApi('/api/v2/dataextensions/limits','GET',{},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}}]);
|
|
11107
|
+
*/},{key:"getDataextensionsLimits",value:function getDataextensionsLimits(){return this.apiClient.callApi('/api/v2/dataextensions/limits','GET',{},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}}]);}();var DownloadsApi=/*#__PURE__*/function(){/**
|
|
11012
11108
|
* Downloads service.
|
|
11013
11109
|
* @module purecloud-platform-client-v2/api/DownloadsApi
|
|
11014
|
-
* @version
|
|
11110
|
+
* @version 192.0.0
|
|
11015
11111
|
*/ /**
|
|
11016
11112
|
* Constructs a new DownloadsApi.
|
|
11017
11113
|
* @alias module:purecloud-platform-client-v2/api/DownloadsApi
|
|
@@ -11026,11 +11122,11 @@ if(coretypeName===undefined||coretypeName===null){throw'Missing the required par
|
|
|
11026
11122
|
* @param {String} opts.contentDisposition
|
|
11027
11123
|
* @param {Boolean} opts.issueRedirect (default to true)
|
|
11028
11124
|
* @param {Boolean} opts.redirectToAuth (default to true)
|
|
11029
|
-
*/_createClass(DownloadsApi,[{key:"getDownload",value:function getDownload(downloadId,opts){opts=opts||{};// verify the required parameter 'downloadId' is set
|
|
11030
|
-
if(downloadId===undefined||downloadId===null){throw'Missing the required parameter "downloadId" when calling getDownload';}return this.apiClient.callApi('/api/v2/downloads/{downloadId}','GET',{'downloadId':downloadId},{'contentDisposition':opts['contentDisposition'],'issueRedirect':opts['issueRedirect'],'redirectToAuth':opts['redirectToAuth']},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}}]);
|
|
11125
|
+
*/return _createClass(DownloadsApi,[{key:"getDownload",value:function getDownload(downloadId,opts){opts=opts||{};// verify the required parameter 'downloadId' is set
|
|
11126
|
+
if(downloadId===undefined||downloadId===null){throw'Missing the required parameter "downloadId" when calling getDownload';}return this.apiClient.callApi('/api/v2/downloads/{downloadId}','GET',{'downloadId':downloadId},{'contentDisposition':opts['contentDisposition'],'issueRedirect':opts['issueRedirect'],'redirectToAuth':opts['redirectToAuth']},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}}]);}();var EmailsApi=/*#__PURE__*/function(){/**
|
|
11031
11127
|
* Emails service.
|
|
11032
11128
|
* @module purecloud-platform-client-v2/api/EmailsApi
|
|
11033
|
-
* @version
|
|
11129
|
+
* @version 192.0.0
|
|
11034
11130
|
*/ /**
|
|
11035
11131
|
* Constructs a new EmailsApi.
|
|
11036
11132
|
* @alias module:purecloud-platform-client-v2/api/EmailsApi
|
|
@@ -11040,15 +11136,15 @@ if(downloadId===undefined||downloadId===null){throw'Missing the required paramet
|
|
|
11040
11136
|
*/function EmailsApi(apiClient){_classCallCheck(this,EmailsApi);this.apiClient=apiClient||ApiClient.instance;}/**
|
|
11041
11137
|
* Get email Contact Center settings
|
|
11042
11138
|
*
|
|
11043
|
-
*/_createClass(EmailsApi,[{key:"getEmailsSettings",value:function getEmailsSettings(){return this.apiClient.callApi('/api/v2/emails/settings','GET',{},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
11139
|
+
*/return _createClass(EmailsApi,[{key:"getEmailsSettings",value:function getEmailsSettings(){return this.apiClient.callApi('/api/v2/emails/settings','GET',{},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
11044
11140
|
* Patch email Contact Center settings
|
|
11045
11141
|
*
|
|
11046
11142
|
* @param {Object} opts Optional parameters
|
|
11047
11143
|
* @param {Object} opts.body
|
|
11048
|
-
*/},{key:"patchEmailsSettings",value:function patchEmailsSettings(opts){opts=opts||{};return this.apiClient.callApi('/api/v2/emails/settings','PATCH',{},{},{},{},opts['body'],['PureCloud OAuth'],['application/json'],['application/json']);}}]);
|
|
11144
|
+
*/},{key:"patchEmailsSettings",value:function patchEmailsSettings(opts){opts=opts||{};return this.apiClient.callApi('/api/v2/emails/settings','PATCH',{},{},{},{},opts['body'],['PureCloud OAuth'],['application/json'],['application/json']);}}]);}();var EventsApi=/*#__PURE__*/function(){/**
|
|
11049
11145
|
* Events service.
|
|
11050
11146
|
* @module purecloud-platform-client-v2/api/EventsApi
|
|
11051
|
-
* @version
|
|
11147
|
+
* @version 192.0.0
|
|
11052
11148
|
*/ /**
|
|
11053
11149
|
* Constructs a new EventsApi.
|
|
11054
11150
|
* @alias module:purecloud-platform-client-v2/api/EventsApi
|
|
@@ -11059,7 +11155,7 @@ if(downloadId===undefined||downloadId===null){throw'Missing the required paramet
|
|
|
11059
11155
|
* Publish Conversation Batch Events
|
|
11060
11156
|
*
|
|
11061
11157
|
* @param {Object} body batchRequest
|
|
11062
|
-
*/_createClass(EventsApi,[{key:"postEventsConversations",value:function postEventsConversations(body){// verify the required parameter 'body' is set
|
|
11158
|
+
*/return _createClass(EventsApi,[{key:"postEventsConversations",value:function postEventsConversations(body){// verify the required parameter 'body' is set
|
|
11063
11159
|
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling postEventsConversations';}return this.apiClient.callApi('/api/v2/events/conversations','POST',{},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
11064
11160
|
* Publish User Presence Status Batch Events
|
|
11065
11161
|
*
|
|
@@ -11070,10 +11166,10 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
11070
11166
|
*
|
|
11071
11167
|
* @param {Object} body batchRequest
|
|
11072
11168
|
*/},{key:"postEventsUsersRoutingstatus",value:function postEventsUsersRoutingstatus(body){// verify the required parameter 'body' is set
|
|
11073
|
-
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']);}}]);
|
|
11169
|
+
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling postEventsUsersRoutingstatus';}return this.apiClient.callApi('/api/v2/events/users/routingstatus','POST',{},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}}]);}();var ExternalContactsApi=/*#__PURE__*/function(){/**
|
|
11074
11170
|
* ExternalContacts service.
|
|
11075
11171
|
* @module purecloud-platform-client-v2/api/ExternalContactsApi
|
|
11076
|
-
* @version
|
|
11172
|
+
* @version 192.0.0
|
|
11077
11173
|
*/ /**
|
|
11078
11174
|
* Constructs a new ExternalContactsApi.
|
|
11079
11175
|
* @alias module:purecloud-platform-client-v2/api/ExternalContactsApi
|
|
@@ -11084,7 +11180,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
11084
11180
|
* Delete an external contact
|
|
11085
11181
|
*
|
|
11086
11182
|
* @param {String} contactId ExternalContact ID
|
|
11087
|
-
*/_createClass(ExternalContactsApi,[{key:"deleteExternalcontactsContact",value:function deleteExternalcontactsContact(contactId){// verify the required parameter 'contactId' is set
|
|
11183
|
+
*/return _createClass(ExternalContactsApi,[{key:"deleteExternalcontactsContact",value:function deleteExternalcontactsContact(contactId){// verify the required parameter 'contactId' is set
|
|
11088
11184
|
if(contactId===undefined||contactId===null){throw'Missing the required parameter "contactId" when calling deleteExternalcontactsContact';}return this.apiClient.callApi('/api/v2/externalcontacts/contacts/{contactId}','DELETE',{'contactId':contactId},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
11089
11185
|
* Delete a note for an external contact
|
|
11090
11186
|
*
|
|
@@ -11525,10 +11621,10 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
11525
11621
|
* @param {Object} body Relationship
|
|
11526
11622
|
*/},{key:"putExternalcontactsRelationship",value:function putExternalcontactsRelationship(relationshipId,body){// verify the required parameter 'relationshipId' is set
|
|
11527
11623
|
if(relationshipId===undefined||relationshipId===null){throw'Missing the required parameter "relationshipId" when calling putExternalcontactsRelationship';}// verify the required parameter 'body' is set
|
|
11528
|
-
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']);}}]);
|
|
11624
|
+
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling putExternalcontactsRelationship';}return this.apiClient.callApi('/api/v2/externalcontacts/relationships/{relationshipId}','PUT',{'relationshipId':relationshipId},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}}]);}();var FaxApi=/*#__PURE__*/function(){/**
|
|
11529
11625
|
* Fax service.
|
|
11530
11626
|
* @module purecloud-platform-client-v2/api/FaxApi
|
|
11531
|
-
* @version
|
|
11627
|
+
* @version 192.0.0
|
|
11532
11628
|
*/ /**
|
|
11533
11629
|
* Constructs a new FaxApi.
|
|
11534
11630
|
* @alias module:purecloud-platform-client-v2/api/FaxApi
|
|
@@ -11539,7 +11635,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
11539
11635
|
* Delete a fax document.
|
|
11540
11636
|
*
|
|
11541
11637
|
* @param {String} documentId Document ID
|
|
11542
|
-
*/_createClass(FaxApi,[{key:"deleteFaxDocument",value:function deleteFaxDocument(documentId){// verify the required parameter 'documentId' is set
|
|
11638
|
+
*/return _createClass(FaxApi,[{key:"deleteFaxDocument",value:function deleteFaxDocument(documentId){// verify the required parameter 'documentId' is set
|
|
11543
11639
|
if(documentId===undefined||documentId===null){throw'Missing the required parameter "documentId" when calling deleteFaxDocument';}return this.apiClient.callApi('/api/v2/fax/documents/{documentId}','DELETE',{'documentId':documentId},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
11544
11640
|
* Get a document.
|
|
11545
11641
|
*
|
|
@@ -11557,6 +11653,9 @@ if(documentId===undefined||documentId===null){throw'Missing the required paramet
|
|
|
11557
11653
|
* @param {Number} opts.pageSize Page size (default to 25)
|
|
11558
11654
|
* @param {Number} opts.pageNumber Page number (default to 1)
|
|
11559
11655
|
*/},{key:"getFaxDocuments",value:function getFaxDocuments(opts){opts=opts||{};return this.apiClient.callApi('/api/v2/fax/documents','GET',{},{'pageSize':opts['pageSize'],'pageNumber':opts['pageNumber']},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
11656
|
+
* Get organization config for given organization
|
|
11657
|
+
*
|
|
11658
|
+
*/},{key:"getFaxSettings",value:function getFaxSettings(){return this.apiClient.callApi('/api/v2/fax/settings','GET',{},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
11560
11659
|
* Get fax summary
|
|
11561
11660
|
*
|
|
11562
11661
|
*/},{key:"getFaxSummary",value:function getFaxSummary(){return this.apiClient.callApi('/api/v2/fax/summary','GET',{},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
@@ -11566,10 +11665,15 @@ if(documentId===undefined||documentId===null){throw'Missing the required paramet
|
|
|
11566
11665
|
* @param {Object} body Document
|
|
11567
11666
|
*/},{key:"putFaxDocument",value:function putFaxDocument(documentId,body){// verify the required parameter 'documentId' is set
|
|
11568
11667
|
if(documentId===undefined||documentId===null){throw'Missing the required parameter "documentId" when calling putFaxDocument';}// verify the required parameter 'body' is set
|
|
11569
|
-
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling putFaxDocument';}return this.apiClient.callApi('/api/v2/fax/documents/{documentId}','PUT',{'documentId':documentId},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}
|
|
11668
|
+
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling putFaxDocument';}return this.apiClient.callApi('/api/v2/fax/documents/{documentId}','PUT',{'documentId':documentId},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
11669
|
+
* Update/write organization config for given organization
|
|
11670
|
+
*
|
|
11671
|
+
* @param {Object} opts Optional parameters
|
|
11672
|
+
* @param {Object} opts.body
|
|
11673
|
+
*/},{key:"putFaxSettings",value:function putFaxSettings(opts){opts=opts||{};return this.apiClient.callApi('/api/v2/fax/settings','PUT',{},{},{},{},opts['body'],['PureCloud OAuth'],['application/json'],['application/json']);}}]);}();var FlowsApi=/*#__PURE__*/function(){/**
|
|
11570
11674
|
* Flows service.
|
|
11571
11675
|
* @module purecloud-platform-client-v2/api/FlowsApi
|
|
11572
|
-
* @version
|
|
11676
|
+
* @version 192.0.0
|
|
11573
11677
|
*/ /**
|
|
11574
11678
|
* Constructs a new FlowsApi.
|
|
11575
11679
|
* @alias module:purecloud-platform-client-v2/api/FlowsApi
|
|
@@ -11581,7 +11685,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
11581
11685
|
*
|
|
11582
11686
|
* @param {String} jobId jobId
|
|
11583
11687
|
* getAnalyticsFlowsAggregatesJob is a preview method and is subject to both breaking and non-breaking changes at any time without notice
|
|
11584
|
-
*/_createClass(FlowsApi,[{key:"getAnalyticsFlowsAggregatesJob",value:function getAnalyticsFlowsAggregatesJob(jobId){// verify the required parameter 'jobId' is set
|
|
11688
|
+
*/return _createClass(FlowsApi,[{key:"getAnalyticsFlowsAggregatesJob",value:function getAnalyticsFlowsAggregatesJob(jobId){// verify the required parameter 'jobId' is set
|
|
11585
11689
|
if(jobId===undefined||jobId===null){throw'Missing the required parameter "jobId" when calling getAnalyticsFlowsAggregatesJob';}return this.apiClient.callApi('/api/v2/analytics/flows/aggregates/jobs/{jobId}','GET',{'jobId':jobId},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
11586
11690
|
* Fetch a page of results for an async aggregates query
|
|
11587
11691
|
*
|
|
@@ -11615,10 +11719,10 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
11615
11719
|
*
|
|
11616
11720
|
* @param {Object} body query
|
|
11617
11721
|
*/},{key:"postAnalyticsFlowsObservationsQuery",value:function postAnalyticsFlowsObservationsQuery(body){// verify the required parameter 'body' is set
|
|
11618
|
-
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']);}}]);
|
|
11722
|
+
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling postAnalyticsFlowsObservationsQuery';}return this.apiClient.callApi('/api/v2/analytics/flows/observations/query','POST',{},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}}]);}();var GamificationApi=/*#__PURE__*/function(){/**
|
|
11619
11723
|
* Gamification service.
|
|
11620
11724
|
* @module purecloud-platform-client-v2/api/GamificationApi
|
|
11621
|
-
* @version
|
|
11725
|
+
* @version 192.0.0
|
|
11622
11726
|
*/ /**
|
|
11623
11727
|
* Constructs a new GamificationApi.
|
|
11624
11728
|
* @alias module:purecloud-platform-client-v2/api/GamificationApi
|
|
@@ -11629,7 +11733,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
11629
11733
|
* Delete an External Metric Definition
|
|
11630
11734
|
*
|
|
11631
11735
|
* @param {String} metricId Specifies the External Metric Definition ID
|
|
11632
|
-
*/_createClass(GamificationApi,[{key:"deleteEmployeeperformanceExternalmetricsDefinition",value:function deleteEmployeeperformanceExternalmetricsDefinition(metricId){// verify the required parameter 'metricId' is set
|
|
11736
|
+
*/return _createClass(GamificationApi,[{key:"deleteEmployeeperformanceExternalmetricsDefinition",value:function deleteEmployeeperformanceExternalmetricsDefinition(metricId){// verify the required parameter 'metricId' is set
|
|
11633
11737
|
if(metricId===undefined||metricId===null){throw'Missing the required parameter "metricId" when calling deleteEmployeeperformanceExternalmetricsDefinition';}return this.apiClient.callApi('/api/v2/employeeperformance/externalmetrics/definitions/{metricId}','DELETE',{'metricId':metricId},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
11634
11738
|
* Get an External Metric Definition
|
|
11635
11739
|
*
|
|
@@ -12155,10 +12259,10 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
12155
12259
|
*
|
|
12156
12260
|
* @param {Object} status Gamification status
|
|
12157
12261
|
*/},{key:"putGamificationStatus",value:function putGamificationStatus(status){// verify the required parameter 'status' is set
|
|
12158
|
-
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']);}}]);
|
|
12262
|
+
if(status===undefined||status===null){throw'Missing the required parameter "status" when calling putGamificationStatus';}return this.apiClient.callApi('/api/v2/gamification/status','PUT',{},{},{},{},status,['PureCloud OAuth'],['application/json'],['application/json']);}}]);}();var GeneralDataProtectionRegulationApi=/*#__PURE__*/function(){/**
|
|
12159
12263
|
* GeneralDataProtectionRegulation service.
|
|
12160
12264
|
* @module purecloud-platform-client-v2/api/GeneralDataProtectionRegulationApi
|
|
12161
|
-
* @version
|
|
12265
|
+
* @version 192.0.0
|
|
12162
12266
|
*/ /**
|
|
12163
12267
|
* Constructs a new GeneralDataProtectionRegulationApi.
|
|
12164
12268
|
* @alias module:purecloud-platform-client-v2/api/GeneralDataProtectionRegulationApi
|
|
@@ -12169,7 +12273,7 @@ if(status===undefined||status===null){throw'Missing the required parameter "stat
|
|
|
12169
12273
|
* Get an existing GDPR request
|
|
12170
12274
|
*
|
|
12171
12275
|
* @param {String} requestId Request id
|
|
12172
|
-
*/_createClass(GeneralDataProtectionRegulationApi,[{key:"getGdprRequest",value:function getGdprRequest(requestId){// verify the required parameter 'requestId' is set
|
|
12276
|
+
*/return _createClass(GeneralDataProtectionRegulationApi,[{key:"getGdprRequest",value:function getGdprRequest(requestId){// verify the required parameter 'requestId' is set
|
|
12173
12277
|
if(requestId===undefined||requestId===null){throw'Missing the required parameter "requestId" when calling getGdprRequest';}return this.apiClient.callApi('/api/v2/gdpr/requests/{requestId}','GET',{'requestId':requestId},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
12174
12278
|
* Get all GDPR requests
|
|
12175
12279
|
*
|
|
@@ -12190,10 +12294,10 @@ if(searchValue===undefined||searchValue===null){throw'Missing the required param
|
|
|
12190
12294
|
* @param {Object} opts Optional parameters
|
|
12191
12295
|
* @param {Boolean} opts.deleteConfirmed Confirm delete (default to false)
|
|
12192
12296
|
*/},{key:"postGdprRequests",value:function postGdprRequests(body,opts){opts=opts||{};// verify the required parameter 'body' is set
|
|
12193
|
-
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']);}}]);
|
|
12297
|
+
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling postGdprRequests';}return this.apiClient.callApi('/api/v2/gdpr/requests','POST',{},{'deleteConfirmed':opts['deleteConfirmed']},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}}]);}();var GeolocationApi=/*#__PURE__*/function(){/**
|
|
12194
12298
|
* Geolocation service.
|
|
12195
12299
|
* @module purecloud-platform-client-v2/api/GeolocationApi
|
|
12196
|
-
* @version
|
|
12300
|
+
* @version 192.0.0
|
|
12197
12301
|
*/ /**
|
|
12198
12302
|
* Constructs a new GeolocationApi.
|
|
12199
12303
|
* @alias module:purecloud-platform-client-v2/api/GeolocationApi
|
|
@@ -12203,7 +12307,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
12203
12307
|
*/function GeolocationApi(apiClient){_classCallCheck(this,GeolocationApi);this.apiClient=apiClient||ApiClient.instance;}/**
|
|
12204
12308
|
* Get a organization's GeolocationSettings
|
|
12205
12309
|
*
|
|
12206
|
-
*/_createClass(GeolocationApi,[{key:"getGeolocationsSettings",value:function getGeolocationsSettings(){return this.apiClient.callApi('/api/v2/geolocations/settings','GET',{},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
12310
|
+
*/return _createClass(GeolocationApi,[{key:"getGeolocationsSettings",value:function getGeolocationsSettings(){return this.apiClient.callApi('/api/v2/geolocations/settings','GET',{},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
12207
12311
|
* Get a user's Geolocation
|
|
12208
12312
|
*
|
|
12209
12313
|
* @param {String} userId user Id
|
|
@@ -12224,10 +12328,10 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
12224
12328
|
*/},{key:"patchUserGeolocation",value:function patchUserGeolocation(userId,clientId,body){// verify the required parameter 'userId' is set
|
|
12225
12329
|
if(userId===undefined||userId===null){throw'Missing the required parameter "userId" when calling patchUserGeolocation';}// verify the required parameter 'clientId' is set
|
|
12226
12330
|
if(clientId===undefined||clientId===null){throw'Missing the required parameter "clientId" when calling patchUserGeolocation';}// verify the required parameter 'body' is set
|
|
12227
|
-
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']);}}]);
|
|
12331
|
+
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling patchUserGeolocation';}return this.apiClient.callApi('/api/v2/users/{userId}/geolocations/{clientId}','PATCH',{'userId':userId,'clientId':clientId},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}}]);}();var GreetingsApi=/*#__PURE__*/function(){/**
|
|
12228
12332
|
* Greetings service.
|
|
12229
12333
|
* @module purecloud-platform-client-v2/api/GreetingsApi
|
|
12230
|
-
* @version
|
|
12334
|
+
* @version 192.0.0
|
|
12231
12335
|
*/ /**
|
|
12232
12336
|
* Constructs a new GreetingsApi.
|
|
12233
12337
|
* @alias module:purecloud-platform-client-v2/api/GreetingsApi
|
|
@@ -12238,7 +12342,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
12238
12342
|
* Deletes a Greeting with the given GreetingId
|
|
12239
12343
|
*
|
|
12240
12344
|
* @param {String} greetingId Greeting ID
|
|
12241
|
-
*/_createClass(GreetingsApi,[{key:"deleteGreeting",value:function deleteGreeting(greetingId){// verify the required parameter 'greetingId' is set
|
|
12345
|
+
*/return _createClass(GreetingsApi,[{key:"deleteGreeting",value:function deleteGreeting(greetingId){// verify the required parameter 'greetingId' is set
|
|
12242
12346
|
if(greetingId===undefined||greetingId===null){throw'Missing the required parameter "greetingId" when calling deleteGreeting';}return this.apiClient.callApi('/api/v2/greetings/{greetingId}','DELETE',{'greetingId':greetingId},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
12243
12347
|
* Get a Greeting with the given GreetingId
|
|
12244
12348
|
*
|
|
@@ -12331,10 +12435,10 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
12331
12435
|
* @param {Object} body The updated defaultGreetingList
|
|
12332
12436
|
*/},{key:"putUserGreetingsDefaults",value:function putUserGreetingsDefaults(userId,body){// verify the required parameter 'userId' is set
|
|
12333
12437
|
if(userId===undefined||userId===null){throw'Missing the required parameter "userId" when calling putUserGreetingsDefaults';}// verify the required parameter 'body' is set
|
|
12334
|
-
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']);}}]);
|
|
12438
|
+
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling putUserGreetingsDefaults';}return this.apiClient.callApi('/api/v2/users/{userId}/greetings/defaults','PUT',{'userId':userId},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}}]);}();var GroupsApi=/*#__PURE__*/function(){/**
|
|
12335
12439
|
* Groups service.
|
|
12336
12440
|
* @module purecloud-platform-client-v2/api/GroupsApi
|
|
12337
|
-
* @version
|
|
12441
|
+
* @version 192.0.0
|
|
12338
12442
|
*/ /**
|
|
12339
12443
|
* Constructs a new GroupsApi.
|
|
12340
12444
|
* @alias module:purecloud-platform-client-v2/api/GroupsApi
|
|
@@ -12345,7 +12449,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
12345
12449
|
* Delete group
|
|
12346
12450
|
*
|
|
12347
12451
|
* @param {String} groupId Group ID
|
|
12348
|
-
*/_createClass(GroupsApi,[{key:"deleteGroup",value:function deleteGroup(groupId){// verify the required parameter 'groupId' is set
|
|
12452
|
+
*/return _createClass(GroupsApi,[{key:"deleteGroup",value:function deleteGroup(groupId){// verify the required parameter 'groupId' is set
|
|
12349
12453
|
if(groupId===undefined||groupId===null){throw'Missing the required parameter "groupId" when calling deleteGroup';}return this.apiClient.callApi('/api/v2/groups/{groupId}','DELETE',{'groupId':groupId},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
12350
12454
|
* Remove dynamic group definition
|
|
12351
12455
|
*
|
|
@@ -12464,10 +12568,10 @@ if(groupId===undefined||groupId===null){throw'Missing the required parameter "gr
|
|
|
12464
12568
|
* putGroupDynamicsettings is a preview method and is subject to both breaking and non-breaking changes at any time without notice
|
|
12465
12569
|
*/},{key:"putGroupDynamicsettings",value:function putGroupDynamicsettings(groupId,body){// verify the required parameter 'groupId' is set
|
|
12466
12570
|
if(groupId===undefined||groupId===null){throw'Missing the required parameter "groupId" when calling putGroupDynamicsettings';}// verify the required parameter 'body' is set
|
|
12467
|
-
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']);}}]);
|
|
12571
|
+
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling putGroupDynamicsettings';}return this.apiClient.callApi('/api/v2/groups/{groupId}/dynamicsettings','PUT',{'groupId':groupId},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}}]);}();var IdentityProviderApi=/*#__PURE__*/function(){/**
|
|
12468
12572
|
* IdentityProvider service.
|
|
12469
12573
|
* @module purecloud-platform-client-v2/api/IdentityProviderApi
|
|
12470
|
-
* @version
|
|
12574
|
+
* @version 192.0.0
|
|
12471
12575
|
*/ /**
|
|
12472
12576
|
* Constructs a new IdentityProviderApi.
|
|
12473
12577
|
* @alias module:purecloud-platform-client-v2/api/IdentityProviderApi
|
|
@@ -12478,7 +12582,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
12478
12582
|
* Delete Identity Provider
|
|
12479
12583
|
*
|
|
12480
12584
|
* @param {String} providerId Provider ID
|
|
12481
|
-
*/_createClass(IdentityProviderApi,[{key:"deleteIdentityprovider",value:function deleteIdentityprovider(providerId){// verify the required parameter 'providerId' is set
|
|
12585
|
+
*/return _createClass(IdentityProviderApi,[{key:"deleteIdentityprovider",value:function deleteIdentityprovider(providerId){// verify the required parameter 'providerId' is set
|
|
12482
12586
|
if(providerId===undefined||providerId===null){throw'Missing the required parameter "providerId" when calling deleteIdentityprovider';}return this.apiClient.callApi('/api/v2/identityproviders/{providerId}','DELETE',{'providerId':providerId},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
12483
12587
|
* Delete ADFS Identity Provider
|
|
12484
12588
|
*
|
|
@@ -12620,10 +12724,10 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
12620
12724
|
*
|
|
12621
12725
|
* @param {Object} body Provider
|
|
12622
12726
|
*/},{key:"putIdentityprovidersSalesforce",value:function putIdentityprovidersSalesforce(body){// verify the required parameter 'body' is set
|
|
12623
|
-
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']);}}]);
|
|
12727
|
+
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling putIdentityprovidersSalesforce';}return this.apiClient.callApi('/api/v2/identityproviders/salesforce','PUT',{},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}}]);}();var InfrastructureAsCodeApi=/*#__PURE__*/function(){/**
|
|
12624
12728
|
* InfrastructureAsCode service.
|
|
12625
12729
|
* @module purecloud-platform-client-v2/api/InfrastructureAsCodeApi
|
|
12626
|
-
* @version
|
|
12730
|
+
* @version 192.0.0
|
|
12627
12731
|
*/ /**
|
|
12628
12732
|
* Constructs a new InfrastructureAsCodeApi.
|
|
12629
12733
|
* @alias module:purecloud-platform-client-v2/api/InfrastructureAsCodeApi
|
|
@@ -12636,7 +12740,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
12636
12740
|
* @param {String} acceleratorId Accelerator ID
|
|
12637
12741
|
* @param {Object} opts Optional parameters
|
|
12638
12742
|
* @param {Object} opts.preferredLanguage Preferred Language (default to en-US)
|
|
12639
|
-
*/_createClass(InfrastructureAsCodeApi,[{key:"getInfrastructureascodeAccelerator",value:function getInfrastructureascodeAccelerator(acceleratorId,opts){opts=opts||{};// verify the required parameter 'acceleratorId' is set
|
|
12743
|
+
*/return _createClass(InfrastructureAsCodeApi,[{key:"getInfrastructureascodeAccelerator",value:function getInfrastructureascodeAccelerator(acceleratorId,opts){opts=opts||{};// verify the required parameter 'acceleratorId' is set
|
|
12640
12744
|
if(acceleratorId===undefined||acceleratorId===null){throw'Missing the required parameter "acceleratorId" when calling getInfrastructureascodeAccelerator';}return this.apiClient.callApi('/api/v2/infrastructureascode/accelerators/{acceleratorId}','GET',{'acceleratorId':acceleratorId},{'preferredLanguage':opts['preferredLanguage']},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
12641
12745
|
* Get a list of available accelerators
|
|
12642
12746
|
* Search for accelerators that can be run.
|
|
@@ -12674,10 +12778,10 @@ if(jobId===undefined||jobId===null){throw'Missing the required parameter "jobId"
|
|
|
12674
12778
|
* Create and submit a job for remote execution or see job planning results.
|
|
12675
12779
|
* @param {Object} body
|
|
12676
12780
|
*/},{key:"postInfrastructureascodeJobs",value:function postInfrastructureascodeJobs(body){// verify the required parameter 'body' is set
|
|
12677
|
-
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']);}}]);
|
|
12781
|
+
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling postInfrastructureascodeJobs';}return this.apiClient.callApi('/api/v2/infrastructureascode/jobs','POST',{},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}}]);}();var IntegrationsApi=/*#__PURE__*/function(){/**
|
|
12678
12782
|
* Integrations service.
|
|
12679
12783
|
* @module purecloud-platform-client-v2/api/IntegrationsApi
|
|
12680
|
-
* @version
|
|
12784
|
+
* @version 192.0.0
|
|
12681
12785
|
*/ /**
|
|
12682
12786
|
* Constructs a new IntegrationsApi.
|
|
12683
12787
|
* @alias module:purecloud-platform-client-v2/api/IntegrationsApi
|
|
@@ -12688,7 +12792,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
12688
12792
|
* Delete integration.
|
|
12689
12793
|
*
|
|
12690
12794
|
* @param {String} integrationId Integration Id
|
|
12691
|
-
*/_createClass(IntegrationsApi,[{key:"deleteIntegration",value:function deleteIntegration(integrationId){// verify the required parameter 'integrationId' is set
|
|
12795
|
+
*/return _createClass(IntegrationsApi,[{key:"deleteIntegration",value:function deleteIntegration(integrationId){// verify the required parameter 'integrationId' is set
|
|
12692
12796
|
if(integrationId===undefined||integrationId===null){throw'Missing the required parameter "integrationId" when calling deleteIntegration';}return this.apiClient.callApi('/api/v2/integrations/{integrationId}','DELETE',{'integrationId':integrationId},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
12693
12797
|
* Delete an Action
|
|
12694
12798
|
*
|
|
@@ -12887,7 +12991,7 @@ if(integrationId===undefined||integrationId===null){throw'Missing the required p
|
|
|
12887
12991
|
* @param {String} opts.previousPage Previous page token
|
|
12888
12992
|
*/},{key:"getIntegrationsClientapps",value:function getIntegrationsClientapps(opts){opts=opts||{};return this.apiClient.callApi('/api/v2/integrations/clientapps','GET',{},{'pageSize':opts['pageSize'],'pageNumber':opts['pageNumber'],'sortBy':opts['sortBy'],'expand':this.apiClient.buildCollectionParam(opts['expand'],'multi'),'nextPage':opts['nextPage'],'previousPage':opts['previousPage']},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
12889
12993
|
* UC integration client application configuration.
|
|
12890
|
-
* This endpoint returns basic UI configuration data for all Unified Communications integrations client applications enabled for the current organization.
|
|
12994
|
+
* Deprecated: Please use GET /integrations/unifiedcommunications/clientapps instead. This endpoint returns basic UI configuration data for all Unified Communications integrations client applications enabled for the current organization.
|
|
12891
12995
|
* @param {Object} opts Optional parameters
|
|
12892
12996
|
* @param {Number} opts.pageSize The total page size requested (default to 25)
|
|
12893
12997
|
* @param {Number} opts.pageNumber The page number requested (default to 1)
|
|
@@ -12895,6 +12999,7 @@ if(integrationId===undefined||integrationId===null){throw'Missing the required p
|
|
|
12895
12999
|
* @param {Array.<String>} opts.expand variable name requested by expand list
|
|
12896
13000
|
* @param {String} opts.nextPage next page token
|
|
12897
13001
|
* @param {String} opts.previousPage Previous page token
|
|
13002
|
+
* @deprecated
|
|
12898
13003
|
*/},{key:"getIntegrationsClientappsUnifiedcommunications",value:function getIntegrationsClientappsUnifiedcommunications(opts){opts=opts||{};return this.apiClient.callApi('/api/v2/integrations/clientapps/unifiedcommunications','GET',{},{'pageSize':opts['pageSize'],'pageNumber':opts['pageNumber'],'sortBy':opts['sortBy'],'expand':this.apiClient.buildCollectionParam(opts['expand'],'multi'),'nextPage':opts['nextPage'],'previousPage':opts['previousPage']},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
12899
13004
|
* Get a single credential with sensitive fields redacted
|
|
12900
13005
|
*
|
|
@@ -13284,10 +13389,10 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
13284
13389
|
* @param {Array.<Object>} body List of User presences
|
|
13285
13390
|
*/},{key:"putIntegrationsUnifiedcommunicationThirdpartypresences",value:function putIntegrationsUnifiedcommunicationThirdpartypresences(ucIntegrationId,body){// verify the required parameter 'ucIntegrationId' is set
|
|
13286
13391
|
if(ucIntegrationId===undefined||ucIntegrationId===null){throw'Missing the required parameter "ucIntegrationId" when calling putIntegrationsUnifiedcommunicationThirdpartypresences';}// verify the required parameter 'body' is set
|
|
13287
|
-
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']);}}]);
|
|
13392
|
+
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling putIntegrationsUnifiedcommunicationThirdpartypresences';}return this.apiClient.callApi('/api/v2/integrations/unifiedcommunications/{ucIntegrationId}/thirdpartypresences','PUT',{'ucIntegrationId':ucIntegrationId},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}}]);}();var JourneyApi=/*#__PURE__*/function(){/**
|
|
13288
13393
|
* Journey service.
|
|
13289
13394
|
* @module purecloud-platform-client-v2/api/JourneyApi
|
|
13290
|
-
* @version
|
|
13395
|
+
* @version 192.0.0
|
|
13291
13396
|
*/ /**
|
|
13292
13397
|
* Constructs a new JourneyApi.
|
|
13293
13398
|
* @alias module:purecloud-platform-client-v2/api/JourneyApi
|
|
@@ -13298,7 +13403,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
13298
13403
|
* Delete single action map.
|
|
13299
13404
|
*
|
|
13300
13405
|
* @param {String} actionMapId ID of the action map.
|
|
13301
|
-
*/_createClass(JourneyApi,[{key:"deleteJourneyActionmap",value:function deleteJourneyActionmap(actionMapId){// verify the required parameter 'actionMapId' is set
|
|
13406
|
+
*/return _createClass(JourneyApi,[{key:"deleteJourneyActionmap",value:function deleteJourneyActionmap(actionMapId){// verify the required parameter 'actionMapId' is set
|
|
13302
13407
|
if(actionMapId===undefined||actionMapId===null){throw'Missing the required parameter "actionMapId" when calling deleteJourneyActionmap';}return this.apiClient.callApi('/api/v2/journey/actionmaps/{actionMapId}','DELETE',{'actionMapId':actionMapId},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
13303
13408
|
* Delete a single action template.
|
|
13304
13409
|
*
|
|
@@ -13673,10 +13778,10 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
13673
13778
|
* @param {Object} opts Optional parameters
|
|
13674
13779
|
* @param {Array.<Object>} opts.body
|
|
13675
13780
|
* postJourneyViewsEncodingsValidate is a preview method and is subject to both breaking and non-breaking changes at any time without notice
|
|
13676
|
-
*/},{key:"postJourneyViewsEncodingsValidate",value:function postJourneyViewsEncodingsValidate(opts){opts=opts||{};return this.apiClient.callApi('/api/v2/journey/views/encodings/validate','POST',{},{},{},{},opts['body'],['PureCloud OAuth'],['application/json'],['application/json']);}}]);
|
|
13781
|
+
*/},{key:"postJourneyViewsEncodingsValidate",value:function postJourneyViewsEncodingsValidate(opts){opts=opts||{};return this.apiClient.callApi('/api/v2/journey/views/encodings/validate','POST',{},{},{},{},opts['body'],['PureCloud OAuth'],['application/json'],['application/json']);}}]);}();var KnowledgeApi=/*#__PURE__*/function(){/**
|
|
13677
13782
|
* Knowledge service.
|
|
13678
13783
|
* @module purecloud-platform-client-v2/api/KnowledgeApi
|
|
13679
|
-
* @version
|
|
13784
|
+
* @version 192.0.0
|
|
13680
13785
|
*/ /**
|
|
13681
13786
|
* Constructs a new KnowledgeApi.
|
|
13682
13787
|
* @alias module:purecloud-platform-client-v2/api/KnowledgeApi
|
|
@@ -13687,7 +13792,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
13687
13792
|
* Delete knowledge base
|
|
13688
13793
|
*
|
|
13689
13794
|
* @param {String} knowledgeBaseId Knowledge base ID
|
|
13690
|
-
*/_createClass(KnowledgeApi,[{key:"deleteKnowledgeKnowledgebase",value:function deleteKnowledgeKnowledgebase(knowledgeBaseId){// verify the required parameter 'knowledgeBaseId' is set
|
|
13795
|
+
*/return _createClass(KnowledgeApi,[{key:"deleteKnowledgeKnowledgebase",value:function deleteKnowledgeKnowledgebase(knowledgeBaseId){// verify the required parameter 'knowledgeBaseId' is set
|
|
13691
13796
|
if(knowledgeBaseId===undefined||knowledgeBaseId===null){throw'Missing the required parameter "knowledgeBaseId" when calling deleteKnowledgeKnowledgebase';}return this.apiClient.callApi('/api/v2/knowledge/knowledgebases/{knowledgeBaseId}','DELETE',{'knowledgeBaseId':knowledgeBaseId},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
13692
13797
|
* Delete category
|
|
13693
13798
|
*
|
|
@@ -14585,10 +14690,10 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
14585
14690
|
*
|
|
14586
14691
|
* @param {Object} body
|
|
14587
14692
|
*/},{key:"postKnowledgeKnowledgebases",value:function postKnowledgeKnowledgebases(body){// verify the required parameter 'body' is set
|
|
14588
|
-
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling postKnowledgeKnowledgebases';}return this.apiClient.callApi('/api/v2/knowledge/knowledgebases','POST',{},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}}]);
|
|
14693
|
+
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling postKnowledgeKnowledgebases';}return this.apiClient.callApi('/api/v2/knowledge/knowledgebases','POST',{},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}}]);}();var LanguageUnderstandingApi=/*#__PURE__*/function(){/**
|
|
14589
14694
|
* LanguageUnderstanding service.
|
|
14590
14695
|
* @module purecloud-platform-client-v2/api/LanguageUnderstandingApi
|
|
14591
|
-
* @version
|
|
14696
|
+
* @version 192.0.0
|
|
14592
14697
|
*/ /**
|
|
14593
14698
|
* Constructs a new LanguageUnderstandingApi.
|
|
14594
14699
|
* @alias module:purecloud-platform-client-v2/api/LanguageUnderstandingApi
|
|
@@ -14599,7 +14704,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
14599
14704
|
* Delete an NLU Domain.
|
|
14600
14705
|
*
|
|
14601
14706
|
* @param {String} domainId ID of the NLU domain.
|
|
14602
|
-
*/_createClass(LanguageUnderstandingApi,[{key:"deleteLanguageunderstandingDomain",value:function deleteLanguageunderstandingDomain(domainId){// verify the required parameter 'domainId' is set
|
|
14707
|
+
*/return _createClass(LanguageUnderstandingApi,[{key:"deleteLanguageunderstandingDomain",value:function deleteLanguageunderstandingDomain(domainId){// verify the required parameter 'domainId' is set
|
|
14603
14708
|
if(domainId===undefined||domainId===null){throw'Missing the required parameter "domainId" when calling deleteLanguageunderstandingDomain';}return this.apiClient.callApi('/api/v2/languageunderstanding/domains/{domainId}','DELETE',{'domainId':domainId},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
14604
14709
|
* Delete the feedback on the NLU Domain Version.
|
|
14605
14710
|
*
|
|
@@ -14754,6 +14859,10 @@ if(minerId===undefined||minerId===null){throw'Missing the required parameter "mi
|
|
|
14754
14859
|
* @param {Object} opts Optional parameters
|
|
14755
14860
|
* @param {String} opts.minerType Type of miner, either intent or topic
|
|
14756
14861
|
*/},{key:"getLanguageunderstandingMiners",value:function getLanguageunderstandingMiners(opts){opts=opts||{};return this.apiClient.callApi('/api/v2/languageunderstanding/miners','GET',{},{'minerType':opts['minerType']},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
14862
|
+
* Get Organization Configuration
|
|
14863
|
+
*
|
|
14864
|
+
* getLanguageunderstandingSettings is a preview method and is subject to both breaking and non-breaking changes at any time without notice
|
|
14865
|
+
*/},{key:"getLanguageunderstandingSettings",value:function getLanguageunderstandingSettings(){return this.apiClient.callApi('/api/v2/languageunderstanding/settings','GET',{},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
14757
14866
|
* Update an NLU Domain.
|
|
14758
14867
|
*
|
|
14759
14868
|
* @param {String} domainId ID of the NLU domain.
|
|
@@ -14841,10 +14950,10 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
14841
14950
|
*/},{key:"putLanguageunderstandingDomainVersion",value:function putLanguageunderstandingDomainVersion(domainId,domainVersionId,body){// verify the required parameter 'domainId' is set
|
|
14842
14951
|
if(domainId===undefined||domainId===null){throw'Missing the required parameter "domainId" when calling putLanguageunderstandingDomainVersion';}// verify the required parameter 'domainVersionId' is set
|
|
14843
14952
|
if(domainVersionId===undefined||domainVersionId===null){throw'Missing the required parameter "domainVersionId" when calling putLanguageunderstandingDomainVersion';}// verify the required parameter 'body' is set
|
|
14844
|
-
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']);}}]);
|
|
14953
|
+
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling putLanguageunderstandingDomainVersion';}return this.apiClient.callApi('/api/v2/languageunderstanding/domains/{domainId}/versions/{domainVersionId}','PUT',{'domainId':domainId,'domainVersionId':domainVersionId},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}}]);}();var LanguagesApi=/*#__PURE__*/function(){/**
|
|
14845
14954
|
* Languages service.
|
|
14846
14955
|
* @module purecloud-platform-client-v2/api/LanguagesApi
|
|
14847
|
-
* @version
|
|
14956
|
+
* @version 192.0.0
|
|
14848
14957
|
*/ /**
|
|
14849
14958
|
* Constructs a new LanguagesApi.
|
|
14850
14959
|
* @alias module:purecloud-platform-client-v2/api/LanguagesApi
|
|
@@ -14856,7 +14965,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
14856
14965
|
* This endpoint is deprecated. Please see the Routing API (DELETE /api/v2/routing/languages/{languageId})
|
|
14857
14966
|
* @param {String} languageId Language ID
|
|
14858
14967
|
* @deprecated
|
|
14859
|
-
*/_createClass(LanguagesApi,[{key:"deleteLanguage",value:function deleteLanguage(languageId){// verify the required parameter 'languageId' is set
|
|
14968
|
+
*/return _createClass(LanguagesApi,[{key:"deleteLanguage",value:function deleteLanguage(languageId){// verify the required parameter 'languageId' is set
|
|
14860
14969
|
if(languageId===undefined||languageId===null){throw'Missing the required parameter "languageId" when calling deleteLanguage';}return this.apiClient.callApi('/api/v2/languages/{languageId}','DELETE',{'languageId':languageId},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
14861
14970
|
* Get Language (Deprecated)
|
|
14862
14971
|
* This endpoint is deprecated. Please see the Routing API (GET /api/v2/routing/languages/{languageId})
|
|
@@ -14896,10 +15005,10 @@ if(userId===undefined||userId===null){throw'Missing the required parameter "user
|
|
|
14896
15005
|
* @param {Object} body Language
|
|
14897
15006
|
* @deprecated
|
|
14898
15007
|
*/},{key:"postLanguages",value:function postLanguages(body){// verify the required parameter 'body' is set
|
|
14899
|
-
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']);}}]);
|
|
15008
|
+
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling postLanguages';}return this.apiClient.callApi('/api/v2/languages','POST',{},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}}]);}();var LearningApi=/*#__PURE__*/function(){/**
|
|
14900
15009
|
* Learning service.
|
|
14901
15010
|
* @module purecloud-platform-client-v2/api/LearningApi
|
|
14902
|
-
* @version
|
|
15011
|
+
* @version 192.0.0
|
|
14903
15012
|
*/ /**
|
|
14904
15013
|
* Constructs a new LearningApi.
|
|
14905
15014
|
* @alias module:purecloud-platform-client-v2/api/LearningApi
|
|
@@ -14910,7 +15019,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
14910
15019
|
* Delete a learning assignment
|
|
14911
15020
|
*
|
|
14912
15021
|
* @param {String} assignmentId The Learning Assignment ID
|
|
14913
|
-
*/_createClass(LearningApi,[{key:"deleteLearningAssignment",value:function deleteLearningAssignment(assignmentId){// verify the required parameter 'assignmentId' is set
|
|
15022
|
+
*/return _createClass(LearningApi,[{key:"deleteLearningAssignment",value:function deleteLearningAssignment(assignmentId){// verify the required parameter 'assignmentId' is set
|
|
14914
15023
|
if(assignmentId===undefined||assignmentId===null){throw'Missing the required parameter "assignmentId" when calling deleteLearningAssignment';}return this.apiClient.callApi('/api/v2/learning/assignments/{assignmentId}','DELETE',{'assignmentId':assignmentId},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
14915
15024
|
* Delete a learning module
|
|
14916
15025
|
* This will delete a learning module if it is unpublished or it will delete a published and archived learning module
|
|
@@ -15040,7 +15149,6 @@ if(assignmentId===undefined||assignmentId===null){throw'Missing the required par
|
|
|
15040
15149
|
* @param {String} moduleId Key identifier for the module
|
|
15041
15150
|
* @param {String} userId Key identifier for the user
|
|
15042
15151
|
* @param {Object} body The learning request for updating the assignment
|
|
15043
|
-
* patchLearningModuleUserAssignments is a preview method and is subject to both breaking and non-breaking changes at any time without notice
|
|
15044
15152
|
*/},{key:"patchLearningModuleUserAssignments",value:function patchLearningModuleUserAssignments(moduleId,userId,body){// verify the required parameter 'moduleId' is set
|
|
15045
15153
|
if(moduleId===undefined||moduleId===null){throw'Missing the required parameter "moduleId" when calling patchLearningModuleUserAssignments';}// verify the required parameter 'userId' is set
|
|
15046
15154
|
if(userId===undefined||userId===null){throw'Missing the required parameter "userId" when calling patchLearningModuleUserAssignments';}// verify the required parameter 'body' is set
|
|
@@ -15126,10 +15234,10 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
15126
15234
|
* @param {Object} body The learning module rule to be updated
|
|
15127
15235
|
*/},{key:"putLearningModuleRule",value:function putLearningModuleRule(moduleId,body){// verify the required parameter 'moduleId' is set
|
|
15128
15236
|
if(moduleId===undefined||moduleId===null){throw'Missing the required parameter "moduleId" when calling putLearningModuleRule';}// verify the required parameter 'body' is set
|
|
15129
|
-
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling putLearningModuleRule';}return this.apiClient.callApi('/api/v2/learning/modules/{moduleId}/rule','PUT',{'moduleId':moduleId},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}}]);
|
|
15237
|
+
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling putLearningModuleRule';}return this.apiClient.callApi('/api/v2/learning/modules/{moduleId}/rule','PUT',{'moduleId':moduleId},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}}]);}();var LicenseApi=/*#__PURE__*/function(){/**
|
|
15130
15238
|
* License service.
|
|
15131
15239
|
* @module purecloud-platform-client-v2/api/LicenseApi
|
|
15132
|
-
* @version
|
|
15240
|
+
* @version 192.0.0
|
|
15133
15241
|
*/ /**
|
|
15134
15242
|
* Constructs a new LicenseApi.
|
|
15135
15243
|
* @alias module:purecloud-platform-client-v2/api/LicenseApi
|
|
@@ -15140,7 +15248,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
15140
15248
|
* Get PureCloud license definition.
|
|
15141
15249
|
*
|
|
15142
15250
|
* @param {String} licenseId ID
|
|
15143
|
-
*/_createClass(LicenseApi,[{key:"getLicenseDefinition",value:function getLicenseDefinition(licenseId){// verify the required parameter 'licenseId' is set
|
|
15251
|
+
*/return _createClass(LicenseApi,[{key:"getLicenseDefinition",value:function getLicenseDefinition(licenseId){// verify the required parameter 'licenseId' is set
|
|
15144
15252
|
if(licenseId===undefined||licenseId===null){throw'Missing the required parameter "licenseId" when calling getLicenseDefinition';}return this.apiClient.callApi('/api/v2/license/definitions/{licenseId}','GET',{'licenseId':licenseId},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
15145
15253
|
* Get all PureCloud license definitions available for the organization.
|
|
15146
15254
|
*
|
|
@@ -15180,10 +15288,10 @@ if(featureName===undefined||featureName===null){throw'Missing the required param
|
|
|
15180
15288
|
*
|
|
15181
15289
|
* @param {Object} opts Optional parameters
|
|
15182
15290
|
* @param {Array.<String>} opts.body The user IDs to fetch.
|
|
15183
|
-
*/},{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']);}}]);
|
|
15291
|
+
*/},{key:"postLicenseUsers",value:function postLicenseUsers(opts){opts=opts||{};return this.apiClient.callApi('/api/v2/license/users','POST',{},{},{},{},opts['body'],['PureCloud OAuth'],['application/json'],['application/json']);}}]);}();var LocationsApi=/*#__PURE__*/function(){/**
|
|
15184
15292
|
* Locations service.
|
|
15185
15293
|
* @module purecloud-platform-client-v2/api/LocationsApi
|
|
15186
|
-
* @version
|
|
15294
|
+
* @version 192.0.0
|
|
15187
15295
|
*/ /**
|
|
15188
15296
|
* Constructs a new LocationsApi.
|
|
15189
15297
|
* @alias module:purecloud-platform-client-v2/api/LocationsApi
|
|
@@ -15194,7 +15302,7 @@ if(featureName===undefined||featureName===null){throw'Missing the required param
|
|
|
15194
15302
|
* Delete a location
|
|
15195
15303
|
*
|
|
15196
15304
|
* @param {String} locationId Location ID
|
|
15197
|
-
*/_createClass(LocationsApi,[{key:"deleteLocation",value:function deleteLocation(locationId){// verify the required parameter 'locationId' is set
|
|
15305
|
+
*/return _createClass(LocationsApi,[{key:"deleteLocation",value:function deleteLocation(locationId){// verify the required parameter 'locationId' is set
|
|
15198
15306
|
if(locationId===undefined||locationId===null){throw'Missing the required parameter "locationId" when calling deleteLocation';}return this.apiClient.callApi('/api/v2/locations/{locationId}','DELETE',{'locationId':locationId},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
15199
15307
|
* Get Location by ID.
|
|
15200
15308
|
*
|
|
@@ -15239,10 +15347,10 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
15239
15347
|
*
|
|
15240
15348
|
* @param {Object} body Search request options
|
|
15241
15349
|
*/},{key:"postLocationsSearch",value:function postLocationsSearch(body){// verify the required parameter 'body' is set
|
|
15242
|
-
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']);}}]);
|
|
15350
|
+
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling postLocationsSearch';}return this.apiClient.callApi('/api/v2/locations/search','POST',{},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}}]);}();var LogCaptureApi=/*#__PURE__*/function(){/**
|
|
15243
15351
|
* LogCapture service.
|
|
15244
15352
|
* @module purecloud-platform-client-v2/api/LogCaptureApi
|
|
15245
|
-
* @version
|
|
15353
|
+
* @version 192.0.0
|
|
15246
15354
|
*/ /**
|
|
15247
15355
|
* Constructs a new LogCaptureApi.
|
|
15248
15356
|
* @alias module:purecloud-platform-client-v2/api/LogCaptureApi
|
|
@@ -15253,7 +15361,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
15253
15361
|
* Disable browser log capture for the user
|
|
15254
15362
|
*
|
|
15255
15363
|
* @param {String} userId The id of the user to disable browser log capture
|
|
15256
|
-
*/_createClass(LogCaptureApi,[{key:"deleteDiagnosticsLogcaptureBrowserUser",value:function deleteDiagnosticsLogcaptureBrowserUser(userId){// verify the required parameter 'userId' is set
|
|
15364
|
+
*/return _createClass(LogCaptureApi,[{key:"deleteDiagnosticsLogcaptureBrowserUser",value:function deleteDiagnosticsLogcaptureBrowserUser(userId){// verify the required parameter 'userId' is set
|
|
15257
15365
|
if(userId===undefined||userId===null){throw'Missing the required parameter "userId" when calling deleteDiagnosticsLogcaptureBrowserUser';}return this.apiClient.callApi('/api/v2/diagnostics/logcapture/browser/users/{userId}','DELETE',{'userId':userId},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
15258
15366
|
* Gets status of async download execution
|
|
15259
15367
|
*
|
|
@@ -15289,10 +15397,10 @@ if(userId===undefined||userId===null){throw'Missing the required parameter "user
|
|
|
15289
15397
|
* @param {Object} opts Optional parameters
|
|
15290
15398
|
* @param {Object} opts.body
|
|
15291
15399
|
*/},{key:"postDiagnosticsLogcaptureBrowserUser",value:function postDiagnosticsLogcaptureBrowserUser(userId,opts){opts=opts||{};// verify the required parameter 'userId' is set
|
|
15292
|
-
if(userId===undefined||userId===null){throw'Missing the required parameter "userId" when calling postDiagnosticsLogcaptureBrowserUser';}return this.apiClient.callApi('/api/v2/diagnostics/logcapture/browser/users/{userId}','POST',{'userId':userId},{},{},{},opts['body'],['PureCloud OAuth'],['application/json'],['application/json']);}}]);
|
|
15400
|
+
if(userId===undefined||userId===null){throw'Missing the required parameter "userId" when calling postDiagnosticsLogcaptureBrowserUser';}return this.apiClient.callApi('/api/v2/diagnostics/logcapture/browser/users/{userId}','POST',{'userId':userId},{},{},{},opts['body'],['PureCloud OAuth'],['application/json'],['application/json']);}}]);}();var MessagingApi=/*#__PURE__*/function(){/**
|
|
15293
15401
|
* Messaging service.
|
|
15294
15402
|
* @module purecloud-platform-client-v2/api/MessagingApi
|
|
15295
|
-
* @version
|
|
15403
|
+
* @version 192.0.0
|
|
15296
15404
|
*/ /**
|
|
15297
15405
|
* Constructs a new MessagingApi.
|
|
15298
15406
|
* @alias module:purecloud-platform-client-v2/api/MessagingApi
|
|
@@ -15304,7 +15412,7 @@ if(userId===undefined||userId===null){throw'Missing the required parameter "user
|
|
|
15304
15412
|
*
|
|
15305
15413
|
* @param {String} messageSettingId Message Settings ID
|
|
15306
15414
|
* @deprecated
|
|
15307
|
-
*/_createClass(MessagingApi,[{key:"deleteMessagingSetting",value:function deleteMessagingSetting(messageSettingId){// verify the required parameter 'messageSettingId' is set
|
|
15415
|
+
*/return _createClass(MessagingApi,[{key:"deleteMessagingSetting",value:function deleteMessagingSetting(messageSettingId){// verify the required parameter 'messageSettingId' is set
|
|
15308
15416
|
if(messageSettingId===undefined||messageSettingId===null){throw'Missing the required parameter "messageSettingId" when calling deleteMessagingSetting';}return this.apiClient.callApi('/api/v2/messaging/settings/{messageSettingId}','DELETE',{'messageSettingId':messageSettingId},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
15309
15417
|
* Delete the organization's default setting, a global default will be applied to integrations without settings
|
|
15310
15418
|
* When an integration is created a settings ID may be assigned to it. If the settings ID is not supplied, the default settings will be applied to it.
|
|
@@ -15379,10 +15487,10 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
15379
15487
|
* @param {Object} body Messaging Setting ID
|
|
15380
15488
|
* @deprecated
|
|
15381
15489
|
*/},{key:"putMessagingSettingsDefault",value:function putMessagingSettingsDefault(body){// verify the required parameter 'body' is set
|
|
15382
|
-
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']);}}]);
|
|
15490
|
+
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling putMessagingSettingsDefault';}return this.apiClient.callApi('/api/v2/messaging/settings/default','PUT',{},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}}]);}();var MobileDevicesApi=/*#__PURE__*/function(){/**
|
|
15383
15491
|
* MobileDevices service.
|
|
15384
15492
|
* @module purecloud-platform-client-v2/api/MobileDevicesApi
|
|
15385
|
-
* @version
|
|
15493
|
+
* @version 192.0.0
|
|
15386
15494
|
*/ /**
|
|
15387
15495
|
* Constructs a new MobileDevicesApi.
|
|
15388
15496
|
* @alias module:purecloud-platform-client-v2/api/MobileDevicesApi
|
|
@@ -15393,7 +15501,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
15393
15501
|
* Delete device
|
|
15394
15502
|
*
|
|
15395
15503
|
* @param {String} deviceId Device ID
|
|
15396
|
-
*/_createClass(MobileDevicesApi,[{key:"deleteMobiledevice",value:function deleteMobiledevice(deviceId){// verify the required parameter 'deviceId' is set
|
|
15504
|
+
*/return _createClass(MobileDevicesApi,[{key:"deleteMobiledevice",value:function deleteMobiledevice(deviceId){// verify the required parameter 'deviceId' is set
|
|
15397
15505
|
if(deviceId===undefined||deviceId===null){throw'Missing the required parameter "deviceId" when calling deleteMobiledevice';}return this.apiClient.callApi('/api/v2/mobiledevices/{deviceId}','DELETE',{'deviceId':deviceId},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
15398
15506
|
* Get device
|
|
15399
15507
|
*
|
|
@@ -15418,10 +15526,10 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
15418
15526
|
* @param {Object} opts Optional parameters
|
|
15419
15527
|
* @param {Object} opts.body Device
|
|
15420
15528
|
*/},{key:"putMobiledevice",value:function putMobiledevice(deviceId,opts){opts=opts||{};// verify the required parameter 'deviceId' is set
|
|
15421
|
-
if(deviceId===undefined||deviceId===null){throw'Missing the required parameter "deviceId" when calling putMobiledevice';}return this.apiClient.callApi('/api/v2/mobiledevices/{deviceId}','PUT',{'deviceId':deviceId},{},{},{},opts['body'],['PureCloud OAuth'],['application/json'],['application/json']);}}]);
|
|
15529
|
+
if(deviceId===undefined||deviceId===null){throw'Missing the required parameter "deviceId" when calling putMobiledevice';}return this.apiClient.callApi('/api/v2/mobiledevices/{deviceId}','PUT',{'deviceId':deviceId},{},{},{},opts['body'],['PureCloud OAuth'],['application/json'],['application/json']);}}]);}();var NotificationsApi=/*#__PURE__*/function(){/**
|
|
15422
15530
|
* Notifications service.
|
|
15423
15531
|
* @module purecloud-platform-client-v2/api/NotificationsApi
|
|
15424
|
-
* @version
|
|
15532
|
+
* @version 192.0.0
|
|
15425
15533
|
*/ /**
|
|
15426
15534
|
* Constructs a new NotificationsApi.
|
|
15427
15535
|
* @alias module:purecloud-platform-client-v2/api/NotificationsApi
|
|
@@ -15432,7 +15540,7 @@ if(deviceId===undefined||deviceId===null){throw'Missing the required parameter "
|
|
|
15432
15540
|
* Remove all subscriptions
|
|
15433
15541
|
*
|
|
15434
15542
|
* @param {String} channelId Channel ID
|
|
15435
|
-
*/_createClass(NotificationsApi,[{key:"deleteNotificationsChannelSubscriptions",value:function deleteNotificationsChannelSubscriptions(channelId){// verify the required parameter 'channelId' is set
|
|
15543
|
+
*/return _createClass(NotificationsApi,[{key:"deleteNotificationsChannelSubscriptions",value:function deleteNotificationsChannelSubscriptions(channelId){// verify the required parameter 'channelId' is set
|
|
15436
15544
|
if(channelId===undefined||channelId===null){throw'Missing the required parameter "channelId" when calling deleteNotificationsChannelSubscriptions';}return this.apiClient.callApi('/api/v2/notifications/channels/{channelId}/subscriptions','DELETE',{'channelId':channelId},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
15437
15545
|
* Get available notification topics.
|
|
15438
15546
|
*
|
|
@@ -15475,10 +15583,10 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
15475
15583
|
* @param {Boolean} opts.ignoreErrors Optionally prevent throwing of errors for failed permissions checks. (default to false)
|
|
15476
15584
|
*/},{key:"putNotificationsChannelSubscriptions",value:function putNotificationsChannelSubscriptions(channelId,body,opts){opts=opts||{};// verify the required parameter 'channelId' is set
|
|
15477
15585
|
if(channelId===undefined||channelId===null){throw'Missing the required parameter "channelId" when calling putNotificationsChannelSubscriptions';}// verify the required parameter 'body' is set
|
|
15478
|
-
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']);}}]);
|
|
15586
|
+
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling putNotificationsChannelSubscriptions';}return this.apiClient.callApi('/api/v2/notifications/channels/{channelId}/subscriptions','PUT',{'channelId':channelId},{'ignoreErrors':opts['ignoreErrors']},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}}]);}();var OAuthApi=/*#__PURE__*/function(){/**
|
|
15479
15587
|
* OAuth service.
|
|
15480
15588
|
* @module purecloud-platform-client-v2/api/OAuthApi
|
|
15481
|
-
* @version
|
|
15589
|
+
* @version 192.0.0
|
|
15482
15590
|
*/ /**
|
|
15483
15591
|
* Constructs a new OAuthApi.
|
|
15484
15592
|
* @alias module:purecloud-platform-client-v2/api/OAuthApi
|
|
@@ -15489,7 +15597,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
15489
15597
|
* Delete OAuth Client
|
|
15490
15598
|
*
|
|
15491
15599
|
* @param {String} clientId Client ID
|
|
15492
|
-
*/_createClass(OAuthApi,[{key:"deleteOauthClient",value:function deleteOauthClient(clientId){// verify the required parameter 'clientId' is set
|
|
15600
|
+
*/return _createClass(OAuthApi,[{key:"deleteOauthClient",value:function deleteOauthClient(clientId){// verify the required parameter 'clientId' is set
|
|
15493
15601
|
if(clientId===undefined||clientId===null){throw'Missing the required parameter "clientId" when calling deleteOauthClient';}return this.apiClient.callApi('/api/v2/oauth/clients/{clientId}','DELETE',{'clientId':clientId},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
15494
15602
|
* Get a client that is authorized by the resource owner
|
|
15495
15603
|
*
|
|
@@ -15560,10 +15668,10 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
15560
15668
|
* @param {Object} body Client
|
|
15561
15669
|
*/},{key:"putOauthClient",value:function putOauthClient(clientId,body){// verify the required parameter 'clientId' is set
|
|
15562
15670
|
if(clientId===undefined||clientId===null){throw'Missing the required parameter "clientId" when calling putOauthClient';}// verify the required parameter 'body' is set
|
|
15563
|
-
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']);}}]);
|
|
15671
|
+
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling putOauthClient';}return this.apiClient.callApi('/api/v2/oauth/clients/{clientId}','PUT',{'clientId':clientId},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}}]);}();var ObjectsApi=/*#__PURE__*/function(){/**
|
|
15564
15672
|
* Objects service.
|
|
15565
15673
|
* @module purecloud-platform-client-v2/api/ObjectsApi
|
|
15566
|
-
* @version
|
|
15674
|
+
* @version 192.0.0
|
|
15567
15675
|
*/ /**
|
|
15568
15676
|
* Constructs a new ObjectsApi.
|
|
15569
15677
|
* @alias module:purecloud-platform-client-v2/api/ObjectsApi
|
|
@@ -15576,7 +15684,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
15576
15684
|
* @param {String} divisionId Division ID
|
|
15577
15685
|
* @param {Object} opts Optional parameters
|
|
15578
15686
|
* @param {Boolean} opts.force Force delete this division as well as the grants and objects associated with it (default to false)
|
|
15579
|
-
*/_createClass(ObjectsApi,[{key:"deleteAuthorizationDivision",value:function deleteAuthorizationDivision(divisionId,opts){opts=opts||{};// verify the required parameter 'divisionId' is set
|
|
15687
|
+
*/return _createClass(ObjectsApi,[{key:"deleteAuthorizationDivision",value:function deleteAuthorizationDivision(divisionId,opts){opts=opts||{};// verify the required parameter 'divisionId' is set
|
|
15580
15688
|
if(divisionId===undefined||divisionId===null){throw'Missing the required parameter "divisionId" when calling deleteAuthorizationDivision';}return this.apiClient.callApi('/api/v2/authorization/divisions/{divisionId}','DELETE',{'divisionId':divisionId},{'force':opts['force']},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
15581
15689
|
* Returns an authorization division.
|
|
15582
15690
|
*
|
|
@@ -15631,10 +15739,10 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
15631
15739
|
* @param {Object} body Updated division data
|
|
15632
15740
|
*/},{key:"putAuthorizationDivision",value:function putAuthorizationDivision(divisionId,body){// verify the required parameter 'divisionId' is set
|
|
15633
15741
|
if(divisionId===undefined||divisionId===null){throw'Missing the required parameter "divisionId" when calling putAuthorizationDivision';}// verify the required parameter 'body' is set
|
|
15634
|
-
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']);}}]);
|
|
15742
|
+
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling putAuthorizationDivision';}return this.apiClient.callApi('/api/v2/authorization/divisions/{divisionId}','PUT',{'divisionId':divisionId},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}}]);}();var OperationalEventsApi=/*#__PURE__*/function(){/**
|
|
15635
15743
|
* OperationalEvents service.
|
|
15636
15744
|
* @module purecloud-platform-client-v2/api/OperationalEventsApi
|
|
15637
|
-
* @version
|
|
15745
|
+
* @version 192.0.0
|
|
15638
15746
|
*/ /**
|
|
15639
15747
|
* Constructs a new OperationalEventsApi.
|
|
15640
15748
|
* @alias module:purecloud-platform-client-v2/api/OperationalEventsApi
|
|
@@ -15645,14 +15753,14 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
15645
15753
|
* Get an operational event definition by its id
|
|
15646
15754
|
*
|
|
15647
15755
|
* @param {String} eventDefinitionId EventDefinition id
|
|
15648
|
-
*/_createClass(OperationalEventsApi,[{key:"getUsageEventsDefinition",value:function getUsageEventsDefinition(eventDefinitionId){// verify the required parameter 'eventDefinitionId' is set
|
|
15756
|
+
*/return _createClass(OperationalEventsApi,[{key:"getUsageEventsDefinition",value:function getUsageEventsDefinition(eventDefinitionId){// verify the required parameter 'eventDefinitionId' is set
|
|
15649
15757
|
if(eventDefinitionId===undefined||eventDefinitionId===null){throw'Missing the required parameter "eventDefinitionId" when calling getUsageEventsDefinition';}return this.apiClient.callApi('/api/v2/usage/events/definitions/{eventDefinitionId}','GET',{'eventDefinitionId':eventDefinitionId},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
15650
15758
|
* Get all operational event definitions
|
|
15651
15759
|
*
|
|
15652
|
-
*/},{key:"getUsageEventsDefinitions",value:function getUsageEventsDefinitions(){return this.apiClient.callApi('/api/v2/usage/events/definitions','GET',{},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}}]);
|
|
15760
|
+
*/},{key:"getUsageEventsDefinitions",value:function getUsageEventsDefinitions(){return this.apiClient.callApi('/api/v2/usage/events/definitions','GET',{},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}}]);}();var OrganizationApi=/*#__PURE__*/function(){/**
|
|
15653
15761
|
* Organization service.
|
|
15654
15762
|
* @module purecloud-platform-client-v2/api/OrganizationApi
|
|
15655
|
-
* @version
|
|
15763
|
+
* @version 192.0.0
|
|
15656
15764
|
*/ /**
|
|
15657
15765
|
* Constructs a new OrganizationApi.
|
|
15658
15766
|
* @alias module:purecloud-platform-client-v2/api/OrganizationApi
|
|
@@ -15664,7 +15772,7 @@ if(eventDefinitionId===undefined||eventDefinitionId===null){throw'Missing the re
|
|
|
15664
15772
|
*
|
|
15665
15773
|
* @param {Object} type Field type
|
|
15666
15774
|
* @deprecated
|
|
15667
|
-
*/_createClass(OrganizationApi,[{key:"getFieldconfig",value:function getFieldconfig(type){// verify the required parameter 'type' is set
|
|
15775
|
+
*/return _createClass(OrganizationApi,[{key:"getFieldconfig",value:function getFieldconfig(type){// verify the required parameter 'type' is set
|
|
15668
15776
|
if(type===undefined||type===null){throw'Missing the required parameter "type" when calling getFieldconfig';}return this.apiClient.callApi('/api/v2/fieldconfig','GET',{},{'type':type},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
15669
15777
|
* Gets the organization's settings
|
|
15670
15778
|
*
|
|
@@ -15751,10 +15859,10 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
15751
15859
|
* @param {Object} body Whitelist settings
|
|
15752
15860
|
* @deprecated
|
|
15753
15861
|
*/},{key:"putOrganizationsWhitelist",value:function putOrganizationsWhitelist(body){// verify the required parameter 'body' is set
|
|
15754
|
-
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']);}}]);
|
|
15862
|
+
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling putOrganizationsWhitelist';}return this.apiClient.callApi('/api/v2/organizations/whitelist','PUT',{},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}}]);}();var OrganizationAuthorizationApi=/*#__PURE__*/function(){/**
|
|
15755
15863
|
* OrganizationAuthorization service.
|
|
15756
15864
|
* @module purecloud-platform-client-v2/api/OrganizationAuthorizationApi
|
|
15757
|
-
* @version
|
|
15865
|
+
* @version 192.0.0
|
|
15758
15866
|
*/ /**
|
|
15759
15867
|
* Constructs a new OrganizationAuthorizationApi.
|
|
15760
15868
|
* @alias module:purecloud-platform-client-v2/api/OrganizationAuthorizationApi
|
|
@@ -15765,7 +15873,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
15765
15873
|
* Delete Org Trust
|
|
15766
15874
|
*
|
|
15767
15875
|
* @param {String} trusteeOrgId Trustee Organization Id
|
|
15768
|
-
*/_createClass(OrganizationAuthorizationApi,[{key:"deleteOrgauthorizationTrustee",value:function deleteOrgauthorizationTrustee(trusteeOrgId){// verify the required parameter 'trusteeOrgId' is set
|
|
15876
|
+
*/return _createClass(OrganizationAuthorizationApi,[{key:"deleteOrgauthorizationTrustee",value:function deleteOrgauthorizationTrustee(trusteeOrgId){// verify the required parameter 'trusteeOrgId' is set
|
|
15769
15877
|
if(trusteeOrgId===undefined||trusteeOrgId===null){throw'Missing the required parameter "trusteeOrgId" when calling deleteOrgauthorizationTrustee';}return this.apiClient.callApi('/api/v2/orgauthorization/trustees/{trusteeOrgId}','DELETE',{'trusteeOrgId':trusteeOrgId},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
15770
15878
|
* Deletes cloned user
|
|
15771
15879
|
*
|
|
@@ -16074,10 +16182,10 @@ if(trustorGroupId===undefined||trustorGroupId===null){throw'Missing the required
|
|
|
16074
16182
|
* @param {String} trusteeUserId Trustee User Id
|
|
16075
16183
|
*/},{key:"putOrgauthorizationTrustorUser",value:function putOrgauthorizationTrustorUser(trustorOrgId,trusteeUserId){// verify the required parameter 'trustorOrgId' is set
|
|
16076
16184
|
if(trustorOrgId===undefined||trustorOrgId===null){throw'Missing the required parameter "trustorOrgId" when calling putOrgauthorizationTrustorUser';}// verify the required parameter 'trusteeUserId' is set
|
|
16077
|
-
if(trusteeUserId===undefined||trusteeUserId===null){throw'Missing the required parameter "trusteeUserId" when calling putOrgauthorizationTrustorUser';}return this.apiClient.callApi('/api/v2/orgauthorization/trustors/{trustorOrgId}/users/{trusteeUserId}','PUT',{'trustorOrgId':trustorOrgId,'trusteeUserId':trusteeUserId},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}}]);
|
|
16185
|
+
if(trusteeUserId===undefined||trusteeUserId===null){throw'Missing the required parameter "trusteeUserId" when calling putOrgauthorizationTrustorUser';}return this.apiClient.callApi('/api/v2/orgauthorization/trustors/{trustorOrgId}/users/{trusteeUserId}','PUT',{'trustorOrgId':trustorOrgId,'trusteeUserId':trusteeUserId},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}}]);}();var OutboundApi=/*#__PURE__*/function(){/**
|
|
16078
16186
|
* Outbound service.
|
|
16079
16187
|
* @module purecloud-platform-client-v2/api/OutboundApi
|
|
16080
|
-
* @version
|
|
16188
|
+
* @version 192.0.0
|
|
16081
16189
|
*/ /**
|
|
16082
16190
|
* Constructs a new OutboundApi.
|
|
16083
16191
|
* @alias module:purecloud-platform-client-v2/api/OutboundApi
|
|
@@ -16088,7 +16196,7 @@ if(trusteeUserId===undefined||trusteeUserId===null){throw'Missing the required p
|
|
|
16088
16196
|
* Delete attempt limits
|
|
16089
16197
|
*
|
|
16090
16198
|
* @param {String} attemptLimitsId Attempt limits ID
|
|
16091
|
-
*/_createClass(OutboundApi,[{key:"deleteOutboundAttemptlimit",value:function deleteOutboundAttemptlimit(attemptLimitsId){// verify the required parameter 'attemptLimitsId' is set
|
|
16199
|
+
*/return _createClass(OutboundApi,[{key:"deleteOutboundAttemptlimit",value:function deleteOutboundAttemptlimit(attemptLimitsId){// verify the required parameter 'attemptLimitsId' is set
|
|
16092
16200
|
if(attemptLimitsId===undefined||attemptLimitsId===null){throw'Missing the required parameter "attemptLimitsId" when calling deleteOutboundAttemptlimit';}return this.apiClient.callApi('/api/v2/outbound/attemptlimits/{attemptLimitsId}','DELETE',{'attemptLimitsId':attemptLimitsId},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
16093
16201
|
* Delete callable time set
|
|
16094
16202
|
*
|
|
@@ -16772,8 +16880,8 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
16772
16880
|
* @param {Object} body AttemptLimits
|
|
16773
16881
|
*/},{key:"postOutboundAttemptlimits",value:function postOutboundAttemptlimits(body){// verify the required parameter 'body' is set
|
|
16774
16882
|
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling postOutboundAttemptlimits';}return this.apiClient.callApi('/api/v2/outbound/attemptlimits','POST',{},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
16775
|
-
* Retrieves audits for dialer.
|
|
16776
|
-
*
|
|
16883
|
+
* Retrieves audits for dialer. (Deprecated)
|
|
16884
|
+
* This endpoint is deprecated as a result of this functionality being moved to the Audit Service. Please use "/api/v2/audits/query" instead.
|
|
16777
16885
|
* @param {Object} body AuditSearch
|
|
16778
16886
|
* @param {Object} opts Optional parameters
|
|
16779
16887
|
* @param {Number} opts.pageSize Page size (default to 25)
|
|
@@ -16781,6 +16889,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
16781
16889
|
* @param {String} opts.sortBy Sort by (default to entity.name)
|
|
16782
16890
|
* @param {String} opts.sortOrder Sort order (default to ascending)
|
|
16783
16891
|
* @param {Boolean} opts.facetsOnly Facets only (default to false)
|
|
16892
|
+
* @deprecated
|
|
16784
16893
|
*/},{key:"postOutboundAudits",value:function postOutboundAudits(body,opts){opts=opts||{};// verify the required parameter 'body' is set
|
|
16785
16894
|
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling postOutboundAudits';}return this.apiClient.callApi('/api/v2/outbound/audits','POST',{},{'pageSize':opts['pageSize'],'pageNumber':opts['pageNumber'],'sortBy':opts['sortBy'],'sortOrder':opts['sortOrder'],'facetsOnly':opts['facetsOnly']},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
16786
16895
|
* Create callable time set
|
|
@@ -17112,10 +17221,10 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
17112
17221
|
*
|
|
17113
17222
|
* @param {Object} body wrapUpCodeMapping
|
|
17114
17223
|
*/},{key:"putOutboundWrapupcodemappings",value:function putOutboundWrapupcodemappings(body){// verify the required parameter 'body' is set
|
|
17115
|
-
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']);}}]);
|
|
17224
|
+
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling putOutboundWrapupcodemappings';}return this.apiClient.callApi('/api/v2/outbound/wrapupcodemappings','PUT',{},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}}]);}();var PresenceApi=/*#__PURE__*/function(){/**
|
|
17116
17225
|
* Presence service.
|
|
17117
17226
|
* @module purecloud-platform-client-v2/api/PresenceApi
|
|
17118
|
-
* @version
|
|
17227
|
+
* @version 192.0.0
|
|
17119
17228
|
*/ /**
|
|
17120
17229
|
* Constructs a new PresenceApi.
|
|
17121
17230
|
* @alias module:purecloud-platform-client-v2/api/PresenceApi
|
|
@@ -17126,7 +17235,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
17126
17235
|
* Delete a Presence Definition
|
|
17127
17236
|
*
|
|
17128
17237
|
* @param {String} definitionId Presence Definition ID
|
|
17129
|
-
*/_createClass(PresenceApi,[{key:"deletePresenceDefinition0",value:function deletePresenceDefinition0(definitionId){// verify the required parameter 'definitionId' is set
|
|
17238
|
+
*/return _createClass(PresenceApi,[{key:"deletePresenceDefinition0",value:function deletePresenceDefinition0(definitionId){// verify the required parameter 'definitionId' is set
|
|
17130
17239
|
if(definitionId===undefined||definitionId===null){throw'Missing the required parameter "definitionId" when calling deletePresenceDefinition0';}return this.apiClient.callApi('/api/v2/presence/definitions/{definitionId}','DELETE',{'definitionId':definitionId},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
17131
17240
|
* Delete a Presence Source
|
|
17132
17241
|
*
|
|
@@ -17285,10 +17394,10 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
17285
17394
|
*
|
|
17286
17395
|
* @param {Array.<Object>} body List of User presences
|
|
17287
17396
|
*/},{key:"putUsersPresencesBulk",value:function putUsersPresencesBulk(body){// verify the required parameter 'body' is set
|
|
17288
|
-
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']);}}]);
|
|
17397
|
+
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling putUsersPresencesBulk';}return this.apiClient.callApi('/api/v2/users/presences/bulk','PUT',{},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}}]);}();var ProcessAutomationApi=/*#__PURE__*/function(){/**
|
|
17289
17398
|
* ProcessAutomation service.
|
|
17290
17399
|
* @module purecloud-platform-client-v2/api/ProcessAutomationApi
|
|
17291
|
-
* @version
|
|
17400
|
+
* @version 192.0.0
|
|
17292
17401
|
*/ /**
|
|
17293
17402
|
* Constructs a new ProcessAutomationApi.
|
|
17294
17403
|
* @alias module:purecloud-platform-client-v2/api/ProcessAutomationApi
|
|
@@ -17299,7 +17408,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
17299
17408
|
* Delete a Trigger
|
|
17300
17409
|
*
|
|
17301
17410
|
* @param {String} triggerId triggerId
|
|
17302
|
-
*/_createClass(ProcessAutomationApi,[{key:"deleteProcessautomationTrigger",value:function deleteProcessautomationTrigger(triggerId){// verify the required parameter 'triggerId' is set
|
|
17411
|
+
*/return _createClass(ProcessAutomationApi,[{key:"deleteProcessautomationTrigger",value:function deleteProcessautomationTrigger(triggerId){// verify the required parameter 'triggerId' is set
|
|
17303
17412
|
if(triggerId===undefined||triggerId===null){throw'Missing the required parameter "triggerId" when calling deleteProcessautomationTrigger';}return this.apiClient.callApi('/api/v2/processautomation/triggers/{triggerId}','DELETE',{'triggerId':triggerId},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
17304
17413
|
* Retrieve a single Trigger matching id
|
|
17305
17414
|
*
|
|
@@ -17348,10 +17457,10 @@ if(topicName===undefined||topicName===null){throw'Missing the required parameter
|
|
|
17348
17457
|
* @param {Object} body Input to update Trigger. (topicName cannot be updated, a new trigger must be created to use a new topicName)
|
|
17349
17458
|
*/},{key:"putProcessautomationTrigger",value:function putProcessautomationTrigger(triggerId,body){// verify the required parameter 'triggerId' is set
|
|
17350
17459
|
if(triggerId===undefined||triggerId===null){throw'Missing the required parameter "triggerId" when calling putProcessautomationTrigger';}// verify the required parameter 'body' is set
|
|
17351
|
-
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']);}}]);
|
|
17460
|
+
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling putProcessautomationTrigger';}return this.apiClient.callApi('/api/v2/processautomation/triggers/{triggerId}','PUT',{'triggerId':triggerId},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}}]);}();var QualityApi=/*#__PURE__*/function(){/**
|
|
17352
17461
|
* Quality service.
|
|
17353
17462
|
* @module purecloud-platform-client-v2/api/QualityApi
|
|
17354
|
-
* @version
|
|
17463
|
+
* @version 192.0.0
|
|
17355
17464
|
*/ /**
|
|
17356
17465
|
* Constructs a new QualityApi.
|
|
17357
17466
|
* @alias module:purecloud-platform-client-v2/api/QualityApi
|
|
@@ -17363,7 +17472,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
17363
17472
|
*
|
|
17364
17473
|
* @param {String} calibrationId Calibration ID
|
|
17365
17474
|
* @param {String} calibratorId calibratorId
|
|
17366
|
-
*/_createClass(QualityApi,[{key:"deleteQualityCalibration",value:function deleteQualityCalibration(calibrationId,calibratorId){// verify the required parameter 'calibrationId' is set
|
|
17475
|
+
*/return _createClass(QualityApi,[{key:"deleteQualityCalibration",value:function deleteQualityCalibration(calibrationId,calibratorId){// verify the required parameter 'calibrationId' is set
|
|
17367
17476
|
if(calibrationId===undefined||calibrationId===null){throw'Missing the required parameter "calibrationId" when calling deleteQualityCalibration';}// verify the required parameter 'calibratorId' is set
|
|
17368
17477
|
if(calibratorId===undefined||calibratorId===null){throw'Missing the required parameter "calibratorId" when calling deleteQualityCalibration';}return this.apiClient.callApi('/api/v2/quality/calibrations/{calibrationId}','DELETE',{'calibrationId':calibrationId},{'calibratorId':calibratorId},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
17369
17478
|
* Delete an evaluation
|
|
@@ -17446,7 +17555,7 @@ if(jobId===undefined||jobId===null){throw'Missing the required parameter "jobId"
|
|
|
17446
17555
|
*/},{key:"getQualityCalibration",value:function getQualityCalibration(calibrationId,opts){opts=opts||{};// verify the required parameter 'calibrationId' is set
|
|
17447
17556
|
if(calibrationId===undefined||calibrationId===null){throw'Missing the required parameter "calibrationId" when calling getQualityCalibration';}return this.apiClient.callApi('/api/v2/quality/calibrations/{calibrationId}','GET',{'calibrationId':calibrationId},{'calibratorId':opts['calibratorId'],'conversationId':opts['conversationId']},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
17448
17557
|
* Get the list of calibrations
|
|
17449
|
-
*
|
|
17558
|
+
* NOTE: The count for total and pageCount might not be accurate when querying for a large number of calibrations. nextUri, if present, will indicate that there are more calibrations to fetch.
|
|
17450
17559
|
* @param {String} calibratorId user id of calibrator
|
|
17451
17560
|
* @param {Object} opts Optional parameters
|
|
17452
17561
|
* @param {Number} opts.pageSize The total page size requested (default to 25)
|
|
@@ -17489,7 +17598,7 @@ if(transactionId===undefined||transactionId===null){throw'Missing the required p
|
|
|
17489
17598
|
*/},{key:"getQualityConversationsAuditsQueryTransactionIdResults",value:function getQualityConversationsAuditsQueryTransactionIdResults(transactionId,opts){opts=opts||{};// verify the required parameter 'transactionId' is set
|
|
17490
17599
|
if(transactionId===undefined||transactionId===null){throw'Missing the required parameter "transactionId" when calling getQualityConversationsAuditsQueryTransactionIdResults';}return this.apiClient.callApi('/api/v2/quality/conversations/audits/query/{transactionId}/results','GET',{'transactionId':transactionId},{'cursor':opts['cursor'],'pageSize':opts['pageSize'],'expand':this.apiClient.buildCollectionParam(opts['expand'],'multi')},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
17491
17600
|
* Queries Evaluations and returns a paged list
|
|
17492
|
-
* Query params must include one of conversationId, evaluatorUserId, agentUserId or assigneeUserId. When querying by agentUserId (and not conversationId or evaluatorUserId), the results are sorted by release date. Evaluations set to Never Release are omitted in this case. When querying by evaluatorUserId or conversationId (including when combined with agentUserId), the results are sorted by assigned date.
|
|
17601
|
+
* Query params must include one of conversationId, evaluatorUserId, agentUserId or assigneeUserId. When querying by agentUserId (and not conversationId or evaluatorUserId), the results are sorted by release date. Evaluations set to Never Release are omitted in this case. When querying by evaluatorUserId or conversationId (including when combined with agentUserId), the results are sorted by assigned date. NOTE: The count for total and pageCount might not be accurate when querying for a large number of evaluations. nextUri, if present, will indicate that there are more evaluations to fetch.
|
|
17493
17602
|
* @param {Object} opts Optional parameters
|
|
17494
17603
|
* @param {Number} opts.pageSize The total page size requested (default to 25)
|
|
17495
17604
|
* @param {Number} opts.pageNumber The page number requested (default to 1)
|
|
@@ -17819,10 +17928,10 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
17819
17928
|
* @param {Object} body survey
|
|
17820
17929
|
*/},{key:"putQualitySurveysScorable",value:function putQualitySurveysScorable(customerSurveyUrl,body){// verify the required parameter 'customerSurveyUrl' is set
|
|
17821
17930
|
if(customerSurveyUrl===undefined||customerSurveyUrl===null){throw'Missing the required parameter "customerSurveyUrl" when calling putQualitySurveysScorable';}// verify the required parameter 'body' is set
|
|
17822
|
-
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']);}}]);
|
|
17931
|
+
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling putQualitySurveysScorable';}return this.apiClient.callApi('/api/v2/quality/surveys/scorable','PUT',{},{'customerSurveyUrl':customerSurveyUrl},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}}]);}();var RecordingApi=/*#__PURE__*/function(){/**
|
|
17823
17932
|
* Recording service.
|
|
17824
17933
|
* @module purecloud-platform-client-v2/api/RecordingApi
|
|
17825
|
-
* @version
|
|
17934
|
+
* @version 192.0.0
|
|
17826
17935
|
*/ /**
|
|
17827
17936
|
* Constructs a new RecordingApi.
|
|
17828
17937
|
* @alias module:purecloud-platform-client-v2/api/RecordingApi
|
|
@@ -17835,7 +17944,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
17835
17944
|
* @param {String} conversationId Conversation ID
|
|
17836
17945
|
* @param {String} recordingId Recording ID
|
|
17837
17946
|
* @param {String} annotationId Annotation ID
|
|
17838
|
-
*/_createClass(RecordingApi,[{key:"deleteConversationRecordingAnnotation",value:function deleteConversationRecordingAnnotation(conversationId,recordingId,annotationId){// verify the required parameter 'conversationId' is set
|
|
17947
|
+
*/return _createClass(RecordingApi,[{key:"deleteConversationRecordingAnnotation",value:function deleteConversationRecordingAnnotation(conversationId,recordingId,annotationId){// verify the required parameter 'conversationId' is set
|
|
17839
17948
|
if(conversationId===undefined||conversationId===null){throw'Missing the required parameter "conversationId" when calling deleteConversationRecordingAnnotation';}// verify the required parameter 'recordingId' is set
|
|
17840
17949
|
if(recordingId===undefined||recordingId===null){throw'Missing the required parameter "recordingId" when calling deleteConversationRecordingAnnotation';}// verify the required parameter 'annotationId' is set
|
|
17841
17950
|
if(annotationId===undefined||annotationId===null){throw'Missing the required parameter "annotationId" when calling deleteConversationRecordingAnnotation';}return this.apiClient.callApi('/api/v2/conversations/{conversationId}/recordings/{recordingId}/annotations/{annotationId}','DELETE',{'conversationId':conversationId,'recordingId':recordingId,'annotationId':annotationId},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
@@ -18061,10 +18170,11 @@ if(reportId===undefined||reportId===null){throw'Missing the required parameter "
|
|
|
18061
18170
|
*/},{key:"getRecordingsRetentionQuery",value:function getRecordingsRetentionQuery(retentionThresholdDays,opts){opts=opts||{};// verify the required parameter 'retentionThresholdDays' is set
|
|
18062
18171
|
if(retentionThresholdDays===undefined||retentionThresholdDays===null){throw'Missing the required parameter "retentionThresholdDays" when calling getRecordingsRetentionQuery';}return this.apiClient.callApi('/api/v2/recordings/retention/query','GET',{},{'retentionThresholdDays':retentionThresholdDays,'cursor':opts['cursor'],'pageSize':opts['pageSize']},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
18063
18172
|
* Retrieves a paged listing of screen recording sessions
|
|
18064
|
-
*
|
|
18173
|
+
* Coming soon: This API is deprecated and will be replaced by /api/v2/recordings/screensessions/details
|
|
18065
18174
|
* @param {Object} opts Optional parameters
|
|
18066
18175
|
* @param {Number} opts.pageSize Page size (default to 25)
|
|
18067
18176
|
* @param {Number} opts.pageNumber Page number (default to 1)
|
|
18177
|
+
* @deprecated
|
|
18068
18178
|
*/},{key:"getRecordingsScreensessions",value:function getRecordingsScreensessions(opts){opts=opts||{};return this.apiClient.callApi('/api/v2/recordings/screensessions','GET',{},{'pageSize':opts['pageSize'],'pageNumber':opts['pageNumber']},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
18069
18179
|
* Retrieves an object containing the total number of concurrent active screen recordings
|
|
18070
18180
|
*
|
|
@@ -18230,10 +18340,10 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
18230
18340
|
* @param {Object} opts Optional parameters
|
|
18231
18341
|
* @param {Boolean} opts.protect Check for apply, uncheck for revoke (each action requires the respective permission) (default to true)
|
|
18232
18342
|
* @param {Object} opts.body
|
|
18233
|
-
*/},{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']);}}]);
|
|
18343
|
+
*/},{key:"putRecordingsDeletionprotection",value:function putRecordingsDeletionprotection(opts){opts=opts||{};return this.apiClient.callApi('/api/v2/recordings/deletionprotection','PUT',{},{'protect':opts['protect']},{},{},opts['body'],['PureCloud OAuth'],['application/json'],['application/json']);}}]);}();var ResponseManagementApi=/*#__PURE__*/function(){/**
|
|
18234
18344
|
* ResponseManagement service.
|
|
18235
18345
|
* @module purecloud-platform-client-v2/api/ResponseManagementApi
|
|
18236
|
-
* @version
|
|
18346
|
+
* @version 192.0.0
|
|
18237
18347
|
*/ /**
|
|
18238
18348
|
* Constructs a new ResponseManagementApi.
|
|
18239
18349
|
* @alias module:purecloud-platform-client-v2/api/ResponseManagementApi
|
|
@@ -18244,7 +18354,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
18244
18354
|
* Delete an existing response library.
|
|
18245
18355
|
* This will remove any responses associated with the library.
|
|
18246
18356
|
* @param {String} libraryId Library ID
|
|
18247
|
-
*/_createClass(ResponseManagementApi,[{key:"deleteResponsemanagementLibrary",value:function deleteResponsemanagementLibrary(libraryId){// verify the required parameter 'libraryId' is set
|
|
18357
|
+
*/return _createClass(ResponseManagementApi,[{key:"deleteResponsemanagementLibrary",value:function deleteResponsemanagementLibrary(libraryId){// verify the required parameter 'libraryId' is set
|
|
18248
18358
|
if(libraryId===undefined||libraryId===null){throw'Missing the required parameter "libraryId" when calling deleteResponsemanagementLibrary';}return this.apiClient.callApi('/api/v2/responsemanagement/libraries/{libraryId}','DELETE',{'libraryId':libraryId},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
18249
18359
|
* Delete an existing response.
|
|
18250
18360
|
* This will remove the response from any libraries associated with it.
|
|
@@ -18300,6 +18410,11 @@ if(libraryId===undefined||libraryId===null){throw'Missing the required parameter
|
|
|
18300
18410
|
* @param {Object} body Library
|
|
18301
18411
|
*/},{key:"postResponsemanagementLibraries",value:function postResponsemanagementLibraries(body){// verify the required parameter 'body' is set
|
|
18302
18412
|
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling postResponsemanagementLibraries';}return this.apiClient.callApi('/api/v2/responsemanagement/libraries','POST',{},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
18413
|
+
* Get response libraries.
|
|
18414
|
+
*
|
|
18415
|
+
* @param {Object} body LibraryIDs (max allowed 50)
|
|
18416
|
+
*/},{key:"postResponsemanagementLibrariesBulk",value:function postResponsemanagementLibrariesBulk(body){// verify the required parameter 'body' is set
|
|
18417
|
+
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling postResponsemanagementLibrariesBulk';}return this.apiClient.callApi('/api/v2/responsemanagement/libraries/bulk','POST',{},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
18303
18418
|
* Search response assets
|
|
18304
18419
|
*
|
|
18305
18420
|
* @param {Object} body request
|
|
@@ -18346,10 +18461,10 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
18346
18461
|
* @param {Object} body request
|
|
18347
18462
|
*/},{key:"putResponsemanagementResponseasset",value:function putResponsemanagementResponseasset(responseAssetId,body){// verify the required parameter 'responseAssetId' is set
|
|
18348
18463
|
if(responseAssetId===undefined||responseAssetId===null){throw'Missing the required parameter "responseAssetId" when calling putResponsemanagementResponseasset';}// verify the required parameter 'body' is set
|
|
18349
|
-
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']);}}]);
|
|
18464
|
+
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling putResponsemanagementResponseasset';}return this.apiClient.callApi('/api/v2/responsemanagement/responseassets/{responseAssetId}','PUT',{'responseAssetId':responseAssetId},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}}]);}();var RoutingApi=/*#__PURE__*/function(){/**
|
|
18350
18465
|
* Routing service.
|
|
18351
18466
|
* @module purecloud-platform-client-v2/api/RoutingApi
|
|
18352
|
-
* @version
|
|
18467
|
+
* @version 192.0.0
|
|
18353
18468
|
*/ /**
|
|
18354
18469
|
* Constructs a new RoutingApi.
|
|
18355
18470
|
* @alias module:purecloud-platform-client-v2/api/RoutingApi
|
|
@@ -18360,7 +18475,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
18360
18475
|
* Delete single benefit assessment.
|
|
18361
18476
|
*
|
|
18362
18477
|
* @param {String} assessmentId Benefit Assessment ID
|
|
18363
|
-
*/_createClass(RoutingApi,[{key:"deleteRoutingAssessment",value:function deleteRoutingAssessment(assessmentId){// verify the required parameter 'assessmentId' is set
|
|
18478
|
+
*/return _createClass(RoutingApi,[{key:"deleteRoutingAssessment",value:function deleteRoutingAssessment(assessmentId){// verify the required parameter 'assessmentId' is set
|
|
18364
18479
|
if(assessmentId===undefined||assessmentId===null){throw'Missing the required parameter "assessmentId" when calling deleteRoutingAssessment';}return this.apiClient.callApi('/api/v2/routing/assessments/{assessmentId}','DELETE',{'assessmentId':assessmentId},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
18365
18480
|
* Delete a domain
|
|
18366
18481
|
*
|
|
@@ -19192,6 +19307,12 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
19192
19307
|
* @param {Object} body SmsPhoneNumber
|
|
19193
19308
|
*/},{key:"postRoutingSmsPhonenumbers",value:function postRoutingSmsPhonenumbers(body){// verify the required parameter 'body' is set
|
|
19194
19309
|
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling postRoutingSmsPhonenumbers';}return this.apiClient.callApi('/api/v2/routing/sms/phonenumbers','POST',{},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
19310
|
+
* Provision an alphanumeric number for SMS
|
|
19311
|
+
*
|
|
19312
|
+
* @param {Object} body SmsPhoneNumber
|
|
19313
|
+
* postRoutingSmsPhonenumbersAlphanumeric is a preview method and is subject to both breaking and non-breaking changes at any time without notice
|
|
19314
|
+
*/},{key:"postRoutingSmsPhonenumbersAlphanumeric",value:function postRoutingSmsPhonenumbersAlphanumeric(body){// verify the required parameter 'body' is set
|
|
19315
|
+
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling postRoutingSmsPhonenumbersAlphanumeric';}return this.apiClient.callApi('/api/v2/routing/sms/phonenumbers/alphanumeric','POST',{},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
19195
19316
|
* Imports a phone number for SMS
|
|
19196
19317
|
*
|
|
19197
19318
|
* @param {Object} body SmsPhoneNumber
|
|
@@ -19315,10 +19436,10 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
19315
19436
|
* @param {Array.<Object>} body Skill
|
|
19316
19437
|
*/},{key:"putUserRoutingskillsBulk",value:function putUserRoutingskillsBulk(userId,body){// verify the required parameter 'userId' is set
|
|
19317
19438
|
if(userId===undefined||userId===null){throw'Missing the required parameter "userId" when calling putUserRoutingskillsBulk';}// verify the required parameter 'body' is set
|
|
19318
|
-
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']);}}]);
|
|
19439
|
+
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling putUserRoutingskillsBulk';}return this.apiClient.callApi('/api/v2/users/{userId}/routingskills/bulk','PUT',{'userId':userId},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}}]);}();var SCIMApi=/*#__PURE__*/function(){/**
|
|
19319
19440
|
* SCIM service.
|
|
19320
19441
|
* @module purecloud-platform-client-v2/api/SCIMApi
|
|
19321
|
-
* @version
|
|
19442
|
+
* @version 192.0.0
|
|
19322
19443
|
*/ /**
|
|
19323
19444
|
* Constructs a new SCIMApi.
|
|
19324
19445
|
* @alias module:purecloud-platform-client-v2/api/SCIMApi
|
|
@@ -19331,7 +19452,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
19331
19452
|
* @param {String} userId The ID of a user. Returned with GET /api/v2/scim/users.
|
|
19332
19453
|
* @param {Object} opts Optional parameters
|
|
19333
19454
|
* @param {String} opts.ifMatch The ETag of a resource in double quotes. Returned as header and meta.version with initial call to GET /api/v2/scim/users/{userId}. Example: 42. If the ETag is different from the version on the server, returns 400 with a scimType of invalidVers.
|
|
19334
|
-
*/_createClass(SCIMApi,[{key:"deleteScimUser",value:function deleteScimUser(userId,opts){opts=opts||{};// verify the required parameter 'userId' is set
|
|
19455
|
+
*/return _createClass(SCIMApi,[{key:"deleteScimUser",value:function deleteScimUser(userId,opts){opts=opts||{};// verify the required parameter 'userId' is set
|
|
19335
19456
|
if(userId===undefined||userId===null){throw'Missing the required parameter "userId" when calling deleteScimUser';}return this.apiClient.callApi('/api/v2/scim/users/{userId}','DELETE',{'userId':userId},{},{'If-Match':opts['ifMatch']},{},null,['PureCloud OAuth'],['application/json'],['application/scim+json','application/json']);}/**
|
|
19336
19457
|
* Delete a user
|
|
19337
19458
|
*
|
|
@@ -19540,10 +19661,10 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
19540
19661
|
* @param {String} opts.ifMatch The ETag of a resource in double quotes. Returned as header and meta.version with initial call to GET /api/v2/scim/v2/users/{userId}. Example: 42. If the ETag is different from the version on the server, returns 400 with a scimType of invalidVers.
|
|
19541
19662
|
*/},{key:"putScimV2User",value:function putScimV2User(userId,body,opts){opts=opts||{};// verify the required parameter 'userId' is set
|
|
19542
19663
|
if(userId===undefined||userId===null){throw'Missing the required parameter "userId" when calling putScimV2User';}// verify the required parameter 'body' is set
|
|
19543
|
-
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']);}}]);
|
|
19664
|
+
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling putScimV2User';}return this.apiClient.callApi('/api/v2/scim/v2/users/{userId}','PUT',{'userId':userId},{},{'If-Match':opts['ifMatch']},{},body,['PureCloud OAuth'],['application/scim+json','application/json'],['application/scim+json','application/json']);}}]);}();var ScreenRecordingApi=/*#__PURE__*/function(){/**
|
|
19544
19665
|
* ScreenRecording service.
|
|
19545
19666
|
* @module purecloud-platform-client-v2/api/ScreenRecordingApi
|
|
19546
|
-
* @version
|
|
19667
|
+
* @version 192.0.0
|
|
19547
19668
|
*/ /**
|
|
19548
19669
|
* Constructs a new ScreenRecordingApi.
|
|
19549
19670
|
* @alias module:purecloud-platform-client-v2/api/ScreenRecordingApi
|
|
@@ -19555,10 +19676,10 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
19555
19676
|
*
|
|
19556
19677
|
* @param {Object} opts Optional parameters
|
|
19557
19678
|
* @param {Object} opts.body
|
|
19558
|
-
*/_createClass(ScreenRecordingApi,[{key:"postScreenrecordingToken",value:function postScreenrecordingToken(opts){opts=opts||{};return this.apiClient.callApi('/api/v2/screenrecording/token','POST',{},{},{},{},opts['body'],['PureCloud OAuth'],['application/json'],['application/json']);}}]);
|
|
19679
|
+
*/return _createClass(ScreenRecordingApi,[{key:"postScreenrecordingToken",value:function postScreenrecordingToken(opts){opts=opts||{};return this.apiClient.callApi('/api/v2/screenrecording/token','POST',{},{},{},{},opts['body'],['PureCloud OAuth'],['application/json'],['application/json']);}}]);}();var ScriptsApi=/*#__PURE__*/function(){/**
|
|
19559
19680
|
* Scripts service.
|
|
19560
19681
|
* @module purecloud-platform-client-v2/api/ScriptsApi
|
|
19561
|
-
* @version
|
|
19682
|
+
* @version 192.0.0
|
|
19562
19683
|
*/ /**
|
|
19563
19684
|
* Constructs a new ScriptsApi.
|
|
19564
19685
|
* @alias module:purecloud-platform-client-v2/api/ScriptsApi
|
|
@@ -19569,7 +19690,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
19569
19690
|
* Get a script
|
|
19570
19691
|
*
|
|
19571
19692
|
* @param {String} scriptId Script ID
|
|
19572
|
-
*/_createClass(ScriptsApi,[{key:"getScript",value:function getScript(scriptId){// verify the required parameter 'scriptId' is set
|
|
19693
|
+
*/return _createClass(ScriptsApi,[{key:"getScript",value:function getScript(scriptId){// verify the required parameter 'scriptId' is set
|
|
19573
19694
|
if(scriptId===undefined||scriptId===null){throw'Missing the required parameter "scriptId" when calling getScript';}return this.apiClient.callApi('/api/v2/scripts/{scriptId}','GET',{'scriptId':scriptId},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
19574
19695
|
* Get a page
|
|
19575
19696
|
*
|
|
@@ -19691,10 +19812,10 @@ if(scriptId===undefined||scriptId===null){throw'Missing the required parameter "
|
|
|
19691
19812
|
* @param {Object} opts Optional parameters
|
|
19692
19813
|
* @param {String} opts.scriptDataVersion Advanced usage - controls the data version of the script
|
|
19693
19814
|
* @param {Object} opts.body body
|
|
19694
|
-
*/},{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']);}}]);
|
|
19815
|
+
*/},{key:"postScriptsPublished",value:function postScriptsPublished(opts){opts=opts||{};return this.apiClient.callApi('/api/v2/scripts/published','POST',{},{'scriptDataVersion':opts['scriptDataVersion']},{},{},opts['body'],['PureCloud OAuth'],['application/json'],['application/json']);}}]);}();var SearchApi=/*#__PURE__*/function(){/**
|
|
19695
19816
|
* Search service.
|
|
19696
19817
|
* @module purecloud-platform-client-v2/api/SearchApi
|
|
19697
|
-
* @version
|
|
19818
|
+
* @version 192.0.0
|
|
19698
19819
|
*/ /**
|
|
19699
19820
|
* Constructs a new SearchApi.
|
|
19700
19821
|
* @alias module:purecloud-platform-client-v2/api/SearchApi
|
|
@@ -19705,7 +19826,7 @@ if(scriptId===undefined||scriptId===null){throw'Missing the required parameter "
|
|
|
19705
19826
|
* Search gkn documentation using the q64 value returned from a previous search
|
|
19706
19827
|
*
|
|
19707
19828
|
* @param {String} q64 q64
|
|
19708
|
-
*/_createClass(SearchApi,[{key:"getDocumentationGknSearch",value:function getDocumentationGknSearch(q64){// verify the required parameter 'q64' is set
|
|
19829
|
+
*/return _createClass(SearchApi,[{key:"getDocumentationGknSearch",value:function getDocumentationGknSearch(q64){// verify the required parameter 'q64' is set
|
|
19709
19830
|
if(q64===undefined||q64===null){throw'Missing the required parameter "q64" when calling getDocumentationGknSearch';}return this.apiClient.callApi('/api/v2/documentation/gkn/search','GET',{},{'q64':q64},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
19710
19831
|
* Search documentation using the q64 value returned from a previous search
|
|
19711
19832
|
*
|
|
@@ -19851,10 +19972,10 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
19851
19972
|
*
|
|
19852
19973
|
* @param {Object} body Search request options
|
|
19853
19974
|
*/},{key:"postVoicemailSearch",value:function postVoicemailSearch(body){// verify the required parameter 'body' is set
|
|
19854
|
-
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']);}}]);
|
|
19975
|
+
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling postVoicemailSearch';}return this.apiClient.callApi('/api/v2/voicemail/search','POST',{},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}}]);}();var SettingsApi=/*#__PURE__*/function(){/**
|
|
19855
19976
|
* Settings service.
|
|
19856
19977
|
* @module purecloud-platform-client-v2/api/SettingsApi
|
|
19857
|
-
* @version
|
|
19978
|
+
* @version 192.0.0
|
|
19858
19979
|
*/ /**
|
|
19859
19980
|
* Constructs a new SettingsApi.
|
|
19860
19981
|
* @alias module:purecloud-platform-client-v2/api/SettingsApi
|
|
@@ -19864,7 +19985,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
19864
19985
|
*/function SettingsApi(apiClient){_classCallCheck(this,SettingsApi);this.apiClient=apiClient||ApiClient.instance;}/**
|
|
19865
19986
|
* Get email Contact Center settings
|
|
19866
19987
|
*
|
|
19867
|
-
*/_createClass(SettingsApi,[{key:"getEmailsSettings",value:function getEmailsSettings(){return this.apiClient.callApi('/api/v2/emails/settings','GET',{},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
19988
|
+
*/return _createClass(SettingsApi,[{key:"getEmailsSettings",value:function getEmailsSettings(){return this.apiClient.callApi('/api/v2/emails/settings','GET',{},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
19868
19989
|
* Get the execution history enabled setting.
|
|
19869
19990
|
* Get the execution history enabled setting.
|
|
19870
19991
|
* getSettingsExecutiondata is a preview method and is subject to both breaking and non-breaking changes at any time without notice
|
|
@@ -19879,10 +20000,10 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
19879
20000
|
* @param {Object} body New Execution Data Setting
|
|
19880
20001
|
* patchSettingsExecutiondata is a preview method and is subject to both breaking and non-breaking changes at any time without notice
|
|
19881
20002
|
*/},{key:"patchSettingsExecutiondata",value:function patchSettingsExecutiondata(body){// verify the required parameter 'body' is set
|
|
19882
|
-
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling patchSettingsExecutiondata';}return this.apiClient.callApi('/api/v2/settings/executiondata','PATCH',{},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}}]);
|
|
20003
|
+
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling patchSettingsExecutiondata';}return this.apiClient.callApi('/api/v2/settings/executiondata','PATCH',{},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}}]);}();var SpeechTextAnalyticsApi=/*#__PURE__*/function(){/**
|
|
19883
20004
|
* SpeechTextAnalytics service.
|
|
19884
20005
|
* @module purecloud-platform-client-v2/api/SpeechTextAnalyticsApi
|
|
19885
|
-
* @version
|
|
20006
|
+
* @version 192.0.0
|
|
19886
20007
|
*/ /**
|
|
19887
20008
|
* Constructs a new SpeechTextAnalyticsApi.
|
|
19888
20009
|
* @alias module:purecloud-platform-client-v2/api/SpeechTextAnalyticsApi
|
|
@@ -19893,7 +20014,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
19893
20014
|
* Delete a Speech and Text Analytics DictionaryFeedback by Id
|
|
19894
20015
|
*
|
|
19895
20016
|
* @param {String} dictionaryFeedbackId The Id of the Dictionary Feedback
|
|
19896
|
-
*/_createClass(SpeechTextAnalyticsApi,[{key:"deleteSpeechandtextanalyticsDictionaryfeedbackDictionaryFeedbackId",value:function deleteSpeechandtextanalyticsDictionaryfeedbackDictionaryFeedbackId(dictionaryFeedbackId){// verify the required parameter 'dictionaryFeedbackId' is set
|
|
20017
|
+
*/return _createClass(SpeechTextAnalyticsApi,[{key:"deleteSpeechandtextanalyticsDictionaryfeedbackDictionaryFeedbackId",value:function deleteSpeechandtextanalyticsDictionaryfeedbackDictionaryFeedbackId(dictionaryFeedbackId){// verify the required parameter 'dictionaryFeedbackId' is set
|
|
19897
20018
|
if(dictionaryFeedbackId===undefined||dictionaryFeedbackId===null){throw'Missing the required parameter "dictionaryFeedbackId" when calling deleteSpeechandtextanalyticsDictionaryfeedbackDictionaryFeedbackId';}return this.apiClient.callApi('/api/v2/speechandtextanalytics/dictionaryfeedback/{dictionaryFeedbackId}','DELETE',{'dictionaryFeedbackId':dictionaryFeedbackId},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
19898
20019
|
* Delete a Speech and Text Analytics program by id
|
|
19899
20020
|
*
|
|
@@ -20013,7 +20134,7 @@ if(topicId===undefined||topicId===null){throw'Missing the required parameter "to
|
|
|
20013
20134
|
*
|
|
20014
20135
|
* @param {Object} opts Optional parameters
|
|
20015
20136
|
* @param {String} opts.nextPage The key for listing the next page
|
|
20016
|
-
* @param {Number} opts.pageSize The page size for the listing (default to 20)
|
|
20137
|
+
* @param {Number} opts.pageSize The page size for the listing. The max that will be returned is 500. (default to 20)
|
|
20017
20138
|
* @param {Object} opts.state Topic state. Defaults to latest
|
|
20018
20139
|
* @param {String} opts.name Case insensitive partial name to filter by
|
|
20019
20140
|
* @param {Array.<String>} opts.ids Comma separated Topic IDs to filter by. Cannot be used with other filters. Maximum of 50 IDs allowed.
|
|
@@ -20123,10 +20244,10 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
20123
20244
|
* @param {Object} body The topic to update
|
|
20124
20245
|
*/},{key:"putSpeechandtextanalyticsTopic",value:function putSpeechandtextanalyticsTopic(topicId,body){// verify the required parameter 'topicId' is set
|
|
20125
20246
|
if(topicId===undefined||topicId===null){throw'Missing the required parameter "topicId" when calling putSpeechandtextanalyticsTopic';}// verify the required parameter 'body' is set
|
|
20126
|
-
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']);}}]);
|
|
20247
|
+
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling putSpeechandtextanalyticsTopic';}return this.apiClient.callApi('/api/v2/speechandtextanalytics/topics/{topicId}','PUT',{'topicId':topicId},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}}]);}();var StationsApi=/*#__PURE__*/function(){/**
|
|
20127
20248
|
* Stations service.
|
|
20128
20249
|
* @module purecloud-platform-client-v2/api/StationsApi
|
|
20129
|
-
* @version
|
|
20250
|
+
* @version 192.0.0
|
|
20130
20251
|
*/ /**
|
|
20131
20252
|
* Constructs a new StationsApi.
|
|
20132
20253
|
* @alias module:purecloud-platform-client-v2/api/StationsApi
|
|
@@ -20137,7 +20258,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
20137
20258
|
* Unassigns the user assigned to this station
|
|
20138
20259
|
*
|
|
20139
20260
|
* @param {String} stationId Station ID
|
|
20140
|
-
*/_createClass(StationsApi,[{key:"deleteStationAssociateduser",value:function deleteStationAssociateduser(stationId){// verify the required parameter 'stationId' is set
|
|
20261
|
+
*/return _createClass(StationsApi,[{key:"deleteStationAssociateduser",value:function deleteStationAssociateduser(stationId){// verify the required parameter 'stationId' is set
|
|
20141
20262
|
if(stationId===undefined||stationId===null){throw'Missing the required parameter "stationId" when calling deleteStationAssociateduser';}return this.apiClient.callApi('/api/v2/stations/{stationId}/associateduser','DELETE',{'stationId':stationId},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
20142
20263
|
* Get station.
|
|
20143
20264
|
*
|
|
@@ -20155,10 +20276,10 @@ if(stationId===undefined||stationId===null){throw'Missing the required parameter
|
|
|
20155
20276
|
* @param {String} opts.webRtcUserId Filter for the webRtc station of the webRtcUserId
|
|
20156
20277
|
* @param {String} opts.id Comma separated list of stationIds
|
|
20157
20278
|
* @param {String} opts.lineAppearanceId lineAppearanceId
|
|
20158
|
-
*/},{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']);}}]);
|
|
20279
|
+
*/},{key:"getStations",value:function getStations(opts){opts=opts||{};return this.apiClient.callApi('/api/v2/stations','GET',{},{'pageSize':opts['pageSize'],'pageNumber':opts['pageNumber'],'sortBy':opts['sortBy'],'name':opts['name'],'userSelectable':opts['userSelectable'],'webRtcUserId':opts['webRtcUserId'],'id':opts['id'],'lineAppearanceId':opts['lineAppearanceId']},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}}]);}();var SuggestApi=/*#__PURE__*/function(){/**
|
|
20159
20280
|
* Suggest service.
|
|
20160
20281
|
* @module purecloud-platform-client-v2/api/SuggestApi
|
|
20161
|
-
* @version
|
|
20282
|
+
* @version 192.0.0
|
|
20162
20283
|
*/ /**
|
|
20163
20284
|
* Constructs a new SuggestApi.
|
|
20164
20285
|
* @alias module:purecloud-platform-client-v2/api/SuggestApi
|
|
@@ -20172,7 +20293,7 @@ if(stationId===undefined||stationId===null){throw'Missing the required parameter
|
|
|
20172
20293
|
* @param {Object} opts Optional parameters
|
|
20173
20294
|
* @param {Array.<String>} opts.expand Which fields, if any, to expand
|
|
20174
20295
|
* @param {Boolean} opts.profile profile (default to true)
|
|
20175
|
-
*/_createClass(SuggestApi,[{key:"getSearch",value:function getSearch(q64,opts){opts=opts||{};// verify the required parameter 'q64' is set
|
|
20296
|
+
*/return _createClass(SuggestApi,[{key:"getSearch",value:function getSearch(q64,opts){opts=opts||{};// verify the required parameter 'q64' is set
|
|
20176
20297
|
if(q64===undefined||q64===null){throw'Missing the required parameter "q64" when calling getSearch';}return this.apiClient.callApi('/api/v2/search','GET',{},{'q64':q64,'expand':this.apiClient.buildCollectionParam(opts['expand'],'multi'),'profile':opts['profile']},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
20177
20298
|
* Suggest resources using the q64 value returned from a previous suggest query.
|
|
20178
20299
|
*
|
|
@@ -20195,10 +20316,10 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
20195
20316
|
* @param {Object} opts Optional parameters
|
|
20196
20317
|
* @param {Boolean} opts.profile profile (default to true)
|
|
20197
20318
|
*/},{key:"postSearchSuggest",value:function postSearchSuggest(body,opts){opts=opts||{};// verify the required parameter 'body' is set
|
|
20198
|
-
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']);}}]);
|
|
20319
|
+
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling postSearchSuggest';}return this.apiClient.callApi('/api/v2/search/suggest','POST',{},{'profile':opts['profile']},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}}]);}();var TaskManagementApi=/*#__PURE__*/function(){/**
|
|
20199
20320
|
* TaskManagement service.
|
|
20200
20321
|
* @module purecloud-platform-client-v2/api/TaskManagementApi
|
|
20201
|
-
* @version
|
|
20322
|
+
* @version 192.0.0
|
|
20202
20323
|
*/ /**
|
|
20203
20324
|
* Constructs a new TaskManagementApi.
|
|
20204
20325
|
* @alias module:purecloud-platform-client-v2/api/TaskManagementApi
|
|
@@ -20210,7 +20331,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
20210
20331
|
*
|
|
20211
20332
|
* @param {String} workbinId Workbin ID
|
|
20212
20333
|
* deleteTaskmanagementWorkbin is a preview method and is subject to both breaking and non-breaking changes at any time without notice
|
|
20213
|
-
*/_createClass(TaskManagementApi,[{key:"deleteTaskmanagementWorkbin",value:function deleteTaskmanagementWorkbin(workbinId){// verify the required parameter 'workbinId' is set
|
|
20334
|
+
*/return _createClass(TaskManagementApi,[{key:"deleteTaskmanagementWorkbin",value:function deleteTaskmanagementWorkbin(workbinId){// verify the required parameter 'workbinId' is set
|
|
20214
20335
|
if(workbinId===undefined||workbinId===null){throw'Missing the required parameter "workbinId" when calling deleteTaskmanagementWorkbin';}return this.apiClient.callApi('/api/v2/taskmanagement/workbins/{workbinId}','DELETE',{'workbinId':workbinId},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
20215
20336
|
* Delete a workitem
|
|
20216
20337
|
*
|
|
@@ -20332,6 +20453,18 @@ if(workitemId===undefined||workitemId===null){throw'Missing the required paramet
|
|
|
20332
20453
|
* getTaskmanagementWorkitemWrapups is a preview method and is subject to both breaking and non-breaking changes at any time without notice
|
|
20333
20454
|
*/},{key:"getTaskmanagementWorkitemWrapups",value:function getTaskmanagementWorkitemWrapups(workitemId,opts){opts=opts||{};// verify the required parameter 'workitemId' is set
|
|
20334
20455
|
if(workitemId===undefined||workitemId===null){throw'Missing the required parameter "workitemId" when calling getTaskmanagementWorkitemWrapups';}return this.apiClient.callApi('/api/v2/taskmanagement/workitems/{workitemId}/wrapups','GET',{'workitemId':workitemId},{'expands':opts['expands'],'after':opts['after'],'pageSize':opts['pageSize'],'sortOrder':opts['sortOrder']},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
20456
|
+
* Get the workitem query job associated with the job id.
|
|
20457
|
+
*
|
|
20458
|
+
* @param {String} jobId jobId
|
|
20459
|
+
* getTaskmanagementWorkitemsQueryJob is a preview method and is subject to both breaking and non-breaking changes at any time without notice
|
|
20460
|
+
*/},{key:"getTaskmanagementWorkitemsQueryJob",value:function getTaskmanagementWorkitemsQueryJob(jobId){// verify the required parameter 'jobId' is set
|
|
20461
|
+
if(jobId===undefined||jobId===null){throw'Missing the required parameter "jobId" when calling getTaskmanagementWorkitemsQueryJob';}return this.apiClient.callApi('/api/v2/taskmanagement/workitems/query/jobs/{jobId}','GET',{'jobId':jobId},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
20462
|
+
* Get results from for workitem query job
|
|
20463
|
+
*
|
|
20464
|
+
* @param {String} jobId jobId
|
|
20465
|
+
* getTaskmanagementWorkitemsQueryJobResults is a preview method and is subject to both breaking and non-breaking changes at any time without notice
|
|
20466
|
+
*/},{key:"getTaskmanagementWorkitemsQueryJobResults",value:function getTaskmanagementWorkitemsQueryJobResults(jobId){// verify the required parameter 'jobId' is set
|
|
20467
|
+
if(jobId===undefined||jobId===null){throw'Missing the required parameter "jobId" when calling getTaskmanagementWorkitemsQueryJobResults';}return this.apiClient.callApi('/api/v2/taskmanagement/workitems/query/jobs/{jobId}/results','GET',{'jobId':jobId},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
20335
20468
|
* Get a schema
|
|
20336
20469
|
*
|
|
20337
20470
|
* @param {String} schemaId Schema ID
|
|
@@ -20510,6 +20643,12 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
20510
20643
|
* postTaskmanagementWorkitemsQuery is a preview method and is subject to both breaking and non-breaking changes at any time without notice
|
|
20511
20644
|
*/},{key:"postTaskmanagementWorkitemsQuery",value:function postTaskmanagementWorkitemsQuery(body){// verify the required parameter 'body' is set
|
|
20512
20645
|
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling postTaskmanagementWorkitemsQuery';}return this.apiClient.callApi('/api/v2/taskmanagement/workitems/query','POST',{},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
20646
|
+
* Create a workitem query job
|
|
20647
|
+
*
|
|
20648
|
+
* @param {Object} body WorkitemQueryJobCreate
|
|
20649
|
+
* postTaskmanagementWorkitemsQueryJobs is a preview method and is subject to both breaking and non-breaking changes at any time without notice
|
|
20650
|
+
*/},{key:"postTaskmanagementWorkitemsQueryJobs",value:function postTaskmanagementWorkitemsQueryJobs(body){// verify the required parameter 'body' is set
|
|
20651
|
+
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling postTaskmanagementWorkitemsQueryJobs';}return this.apiClient.callApi('/api/v2/taskmanagement/workitems/query/jobs','POST',{},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
20513
20652
|
* Create a schema
|
|
20514
20653
|
*
|
|
20515
20654
|
* @param {Object} body Schema
|
|
@@ -20543,10 +20682,10 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
20543
20682
|
* putTaskmanagementWorkitemsSchema is a preview method and is subject to both breaking and non-breaking changes at any time without notice
|
|
20544
20683
|
*/},{key:"putTaskmanagementWorkitemsSchema",value:function putTaskmanagementWorkitemsSchema(schemaId,body){// verify the required parameter 'schemaId' is set
|
|
20545
20684
|
if(schemaId===undefined||schemaId===null){throw'Missing the required parameter "schemaId" when calling putTaskmanagementWorkitemsSchema';}// verify the required parameter 'body' is set
|
|
20546
|
-
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']);}}]);
|
|
20685
|
+
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling putTaskmanagementWorkitemsSchema';}return this.apiClient.callApi('/api/v2/taskmanagement/workitems/schemas/{schemaId}','PUT',{'schemaId':schemaId},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}}]);}();var TeamsApi=/*#__PURE__*/function(){/**
|
|
20547
20686
|
* Teams service.
|
|
20548
20687
|
* @module purecloud-platform-client-v2/api/TeamsApi
|
|
20549
|
-
* @version
|
|
20688
|
+
* @version 192.0.0
|
|
20550
20689
|
*/ /**
|
|
20551
20690
|
* Constructs a new TeamsApi.
|
|
20552
20691
|
* @alias module:purecloud-platform-client-v2/api/TeamsApi
|
|
@@ -20557,7 +20696,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
20557
20696
|
* Delete team
|
|
20558
20697
|
*
|
|
20559
20698
|
* @param {String} teamId Team ID
|
|
20560
|
-
*/_createClass(TeamsApi,[{key:"deleteTeam",value:function deleteTeam(teamId){// verify the required parameter 'teamId' is set
|
|
20699
|
+
*/return _createClass(TeamsApi,[{key:"deleteTeam",value:function deleteTeam(teamId){// verify the required parameter 'teamId' is set
|
|
20561
20700
|
if(teamId===undefined||teamId===null){throw'Missing the required parameter "teamId" when calling deleteTeam';}return this.apiClient.callApi('/api/v2/teams/{teamId}','DELETE',{'teamId':teamId},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
20562
20701
|
* Delete team members
|
|
20563
20702
|
*
|
|
@@ -20622,10 +20761,10 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
20622
20761
|
*
|
|
20623
20762
|
* @param {Object} body Search request options
|
|
20624
20763
|
*/},{key:"postTeamsSearch",value:function postTeamsSearch(body){// verify the required parameter 'body' is set
|
|
20625
|
-
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']);}}]);
|
|
20764
|
+
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling postTeamsSearch';}return this.apiClient.callApi('/api/v2/teams/search','POST',{},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}}]);}();var TelephonyApi=/*#__PURE__*/function(){/**
|
|
20626
20765
|
* Telephony service.
|
|
20627
20766
|
* @module purecloud-platform-client-v2/api/TelephonyApi
|
|
20628
|
-
* @version
|
|
20767
|
+
* @version 192.0.0
|
|
20629
20768
|
*/ /**
|
|
20630
20769
|
* Constructs a new TelephonyApi.
|
|
20631
20770
|
* @alias module:purecloud-platform-client-v2/api/TelephonyApi
|
|
@@ -20635,7 +20774,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
20635
20774
|
*/function TelephonyApi(apiClient){_classCallCheck(this,TelephonyApi);this.apiClient=apiClient||ApiClient.instance;}/**
|
|
20636
20775
|
* Retrieve the list of AWS regions media can stream through.
|
|
20637
20776
|
*
|
|
20638
|
-
*/_createClass(TelephonyApi,[{key:"getTelephonyMediaregions",value:function getTelephonyMediaregions(){return this.apiClient.callApi('/api/v2/telephony/mediaregions','GET',{},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
20777
|
+
*/return _createClass(TelephonyApi,[{key:"getTelephonyMediaregions",value:function getTelephonyMediaregions(){return this.apiClient.callApi('/api/v2/telephony/mediaregions','GET',{},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
20639
20778
|
* Get a SIP message.
|
|
20640
20779
|
* Get the raw form of the SIP message
|
|
20641
20780
|
* @param {String} conversationId Conversation id
|
|
@@ -20669,10 +20808,10 @@ if(downloadId===undefined||downloadId===null){throw'Missing the required paramet
|
|
|
20669
20808
|
*
|
|
20670
20809
|
* @param {Object} sIPSearchPublicRequest
|
|
20671
20810
|
*/},{key:"postTelephonySiptracesDownload",value:function postTelephonySiptracesDownload(sIPSearchPublicRequest){// verify the required parameter 'sIPSearchPublicRequest' is set
|
|
20672
|
-
if(sIPSearchPublicRequest===undefined||sIPSearchPublicRequest===null){throw'Missing the required parameter "sIPSearchPublicRequest" when calling postTelephonySiptracesDownload';}return this.apiClient.callApi('/api/v2/telephony/siptraces/download','POST',{},{},{},{},sIPSearchPublicRequest,['PureCloud OAuth'],['application/json'],['application/json']);}}]);
|
|
20811
|
+
if(sIPSearchPublicRequest===undefined||sIPSearchPublicRequest===null){throw'Missing the required parameter "sIPSearchPublicRequest" when calling postTelephonySiptracesDownload';}return this.apiClient.callApi('/api/v2/telephony/siptraces/download','POST',{},{},{},{},sIPSearchPublicRequest,['PureCloud OAuth'],['application/json'],['application/json']);}}]);}();var TelephonyProvidersEdgeApi=/*#__PURE__*/function(){/**
|
|
20673
20812
|
* TelephonyProvidersEdge service.
|
|
20674
20813
|
* @module purecloud-platform-client-v2/api/TelephonyProvidersEdgeApi
|
|
20675
|
-
* @version
|
|
20814
|
+
* @version 192.0.0
|
|
20676
20815
|
*/ /**
|
|
20677
20816
|
* Constructs a new TelephonyProvidersEdgeApi.
|
|
20678
20817
|
* @alias module:purecloud-platform-client-v2/api/TelephonyProvidersEdgeApi
|
|
@@ -20683,7 +20822,7 @@ if(sIPSearchPublicRequest===undefined||sIPSearchPublicRequest===null){throw'Miss
|
|
|
20683
20822
|
* Delete a edge.
|
|
20684
20823
|
*
|
|
20685
20824
|
* @param {String} edgeId Edge ID
|
|
20686
|
-
*/_createClass(TelephonyProvidersEdgeApi,[{key:"deleteTelephonyProvidersEdge",value:function deleteTelephonyProvidersEdge(edgeId){// verify the required parameter 'edgeId' is set
|
|
20825
|
+
*/return _createClass(TelephonyProvidersEdgeApi,[{key:"deleteTelephonyProvidersEdge",value:function deleteTelephonyProvidersEdge(edgeId){// verify the required parameter 'edgeId' is set
|
|
20687
20826
|
if(edgeId===undefined||edgeId===null){throw'Missing the required parameter "edgeId" when calling deleteTelephonyProvidersEdge';}return this.apiClient.callApi('/api/v2/telephony/providers/edges/{edgeId}','DELETE',{'edgeId':edgeId},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
20688
20827
|
* Delete an edge logical interface
|
|
20689
20828
|
*
|
|
@@ -20850,10 +20989,6 @@ if(edgeId===undefined||edgeId===null){throw'Missing the required parameter "edge
|
|
|
20850
20989
|
* @param {Boolean} opts.managed Filter by managed
|
|
20851
20990
|
* @param {Boolean} opts.showCloudMedia True to show the cloud media devices in the result. (default to true)
|
|
20852
20991
|
*/},{key:"getTelephonyProvidersEdges",value:function getTelephonyProvidersEdges(opts){opts=opts||{};return this.apiClient.callApi('/api/v2/telephony/providers/edges','GET',{},{'pageSize':opts['pageSize'],'pageNumber':opts['pageNumber'],'name':opts['name'],'site.id':opts['siteId'],'edgeGroup.id':opts['edgeGroupId'],'sortBy':opts['sortBy'],'managed':opts['managed'],'showCloudMedia':opts['showCloudMedia']},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
20853
|
-
* Get the list of available languages. For never released keyword spotting feature. Deprecated, do not use.
|
|
20854
|
-
*
|
|
20855
|
-
* @deprecated
|
|
20856
|
-
*/},{key:"getTelephonyProvidersEdgesAvailablelanguages",value:function getTelephonyProvidersEdgesAvailablelanguages(){return this.apiClient.callApi('/api/v2/telephony/providers/edges/availablelanguages','GET',{},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
20857
20992
|
* Get the list of certificate authorities.
|
|
20858
20993
|
*
|
|
20859
20994
|
*/},{key:"getTelephonyProvidersEdgesCertificateauthorities",value:function getTelephonyProvidersEdgesCertificateauthorities(){return this.apiClient.callApi('/api/v2/telephony/providers/edges/certificateauthorities','GET',{},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
@@ -21483,10 +21618,10 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
21483
21618
|
* @param {Object} body Trunk base settings
|
|
21484
21619
|
*/},{key:"putTelephonyProvidersEdgesTrunkbasesetting",value:function putTelephonyProvidersEdgesTrunkbasesetting(trunkBaseSettingsId,body){// verify the required parameter 'trunkBaseSettingsId' is set
|
|
21485
21620
|
if(trunkBaseSettingsId===undefined||trunkBaseSettingsId===null){throw'Missing the required parameter "trunkBaseSettingsId" when calling putTelephonyProvidersEdgesTrunkbasesetting';}// verify the required parameter 'body' is set
|
|
21486
|
-
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']);}}]);
|
|
21621
|
+
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling putTelephonyProvidersEdgesTrunkbasesetting';}return this.apiClient.callApi('/api/v2/telephony/providers/edges/trunkbasesettings/{trunkBaseSettingsId}','PUT',{'trunkBaseSettingsId':trunkBaseSettingsId},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}}]);}();var TextbotsApi=/*#__PURE__*/function(){/**
|
|
21487
21622
|
* Textbots service.
|
|
21488
21623
|
* @module purecloud-platform-client-v2/api/TextbotsApi
|
|
21489
|
-
* @version
|
|
21624
|
+
* @version 192.0.0
|
|
21490
21625
|
*/ /**
|
|
21491
21626
|
* Constructs a new TextbotsApi.
|
|
21492
21627
|
* @alias module:purecloud-platform-client-v2/api/TextbotsApi
|
|
@@ -21501,7 +21636,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
21501
21636
|
* @param {String} opts.botName Bot name
|
|
21502
21637
|
* @param {Array.<String>} opts.botId Bot IDs
|
|
21503
21638
|
* @param {Number} opts.pageSize The maximum results to return (default to 25)
|
|
21504
|
-
*/_createClass(TextbotsApi,[{key:"getTextbotsBotsSearch",value:function getTextbotsBotsSearch(opts){opts=opts||{};return this.apiClient.callApi('/api/v2/textbots/bots/search','GET',{},{'botType':this.apiClient.buildCollectionParam(opts['botType'],'multi'),'botName':opts['botName'],'botId':this.apiClient.buildCollectionParam(opts['botId'],'multi'),'pageSize':opts['pageSize']},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
21639
|
+
*/return _createClass(TextbotsApi,[{key:"getTextbotsBotsSearch",value:function getTextbotsBotsSearch(opts){opts=opts||{};return this.apiClient.callApi('/api/v2/textbots/bots/search','GET',{},{'botType':this.apiClient.buildCollectionParam(opts['botType'],'multi'),'botName':opts['botName'],'botId':this.apiClient.buildCollectionParam(opts['botId'],'multi'),'pageSize':opts['pageSize']},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
21505
21640
|
* Issue a bot flow turn event
|
|
21506
21641
|
* Send a turn event to an executing bot flow and produce the next action to take.
|
|
21507
21642
|
* @param {String} sessionId The bot flow session ID, typically obtained from 'POST /api/v2/textbots/botflows/sessions'
|
|
@@ -21518,10 +21653,10 @@ if(launchRequest===undefined||launchRequest===null){throw'Missing the required p
|
|
|
21518
21653
|
* This will either start a bot with the given id or relay a communication to an existing bot session.
|
|
21519
21654
|
* @param {Object} postTextRequest
|
|
21520
21655
|
*/},{key:"postTextbotsBotsExecute",value:function postTextbotsBotsExecute(postTextRequest){// verify the required parameter 'postTextRequest' is set
|
|
21521
|
-
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']);}}]);
|
|
21656
|
+
if(postTextRequest===undefined||postTextRequest===null){throw'Missing the required parameter "postTextRequest" when calling postTextbotsBotsExecute';}return this.apiClient.callApi('/api/v2/textbots/bots/execute','POST',{},{},{},{},postTextRequest,['PureCloud OAuth'],['application/json'],['application/json']);}}]);}();var TokensApi=/*#__PURE__*/function(){/**
|
|
21522
21657
|
* Tokens service.
|
|
21523
21658
|
* @module purecloud-platform-client-v2/api/TokensApi
|
|
21524
|
-
* @version
|
|
21659
|
+
* @version 192.0.0
|
|
21525
21660
|
*/ /**
|
|
21526
21661
|
* Constructs a new TokensApi.
|
|
21527
21662
|
* @alias module:purecloud-platform-client-v2/api/TokensApi
|
|
@@ -21532,7 +21667,7 @@ if(postTextRequest===undefined||postTextRequest===null){throw'Missing the requir
|
|
|
21532
21667
|
* Delete all auth tokens for the specified user.
|
|
21533
21668
|
*
|
|
21534
21669
|
* @param {String} userId User ID
|
|
21535
|
-
*/_createClass(TokensApi,[{key:"deleteToken",value:function deleteToken(userId){// verify the required parameter 'userId' is set
|
|
21670
|
+
*/return _createClass(TokensApi,[{key:"deleteToken",value:function deleteToken(userId){// verify the required parameter 'userId' is set
|
|
21536
21671
|
if(userId===undefined||userId===null){throw'Missing the required parameter "userId" when calling deleteToken';}return this.apiClient.callApi('/api/v2/tokens/{userId}','DELETE',{'userId':userId},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
21537
21672
|
* Delete auth token used to make the request.
|
|
21538
21673
|
*
|
|
@@ -21552,10 +21687,10 @@ if(userId===undefined||userId===null){throw'Missing the required parameter "user
|
|
|
21552
21687
|
*
|
|
21553
21688
|
* @param {Object} opts Optional parameters
|
|
21554
21689
|
* @param {Object} opts.body
|
|
21555
|
-
*/},{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']);}}]);
|
|
21690
|
+
*/},{key:"putTokensTimeout",value:function putTokensTimeout(opts){opts=opts||{};return this.apiClient.callApi('/api/v2/tokens/timeout','PUT',{},{},{},{},opts['body'],['PureCloud OAuth'],['application/json'],['application/json']);}}]);}();var UploadsApi=/*#__PURE__*/function(){/**
|
|
21556
21691
|
* Uploads service.
|
|
21557
21692
|
* @module purecloud-platform-client-v2/api/UploadsApi
|
|
21558
|
-
* @version
|
|
21693
|
+
* @version 192.0.0
|
|
21559
21694
|
*/ /**
|
|
21560
21695
|
* Constructs a new UploadsApi.
|
|
21561
21696
|
* @alias module:purecloud-platform-client-v2/api/UploadsApi
|
|
@@ -21568,7 +21703,7 @@ if(userId===undefined||userId===null){throw'Missing the required parameter "user
|
|
|
21568
21703
|
* @param {String} knowledgeBaseId Knowledge base ID
|
|
21569
21704
|
* @param {String} jobId Upload job ID
|
|
21570
21705
|
* getKnowledgeKnowledgebaseUploadsUrlsJob is a preview method and is subject to both breaking and non-breaking changes at any time without notice
|
|
21571
|
-
*/_createClass(UploadsApi,[{key:"getKnowledgeKnowledgebaseUploadsUrlsJob",value:function getKnowledgeKnowledgebaseUploadsUrlsJob(knowledgeBaseId,jobId){// verify the required parameter 'knowledgeBaseId' is set
|
|
21706
|
+
*/return _createClass(UploadsApi,[{key:"getKnowledgeKnowledgebaseUploadsUrlsJob",value:function getKnowledgeKnowledgebaseUploadsUrlsJob(knowledgeBaseId,jobId){// verify the required parameter 'knowledgeBaseId' is set
|
|
21572
21707
|
if(knowledgeBaseId===undefined||knowledgeBaseId===null){throw'Missing the required parameter "knowledgeBaseId" when calling getKnowledgeKnowledgebaseUploadsUrlsJob';}// verify the required parameter 'jobId' is set
|
|
21573
21708
|
if(jobId===undefined||jobId===null){throw'Missing the required parameter "jobId" when calling getKnowledgeKnowledgebaseUploadsUrlsJob';}return this.apiClient.callApi('/api/v2/knowledge/knowledgebases/{knowledgeBaseId}/uploads/urls/jobs/{jobId}','GET',{'knowledgeBaseId':knowledgeBaseId,'jobId':jobId},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
21574
21709
|
* Create upload presigned URL for draft function package file.
|
|
@@ -21618,10 +21753,10 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
21618
21753
|
*
|
|
21619
21754
|
* @param {Object} body query
|
|
21620
21755
|
*/},{key:"postUploadsWorkforcemanagementHistoricaldataCsv",value:function postUploadsWorkforcemanagementHistoricaldataCsv(body){// verify the required parameter 'body' is set
|
|
21621
|
-
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']);}}]);
|
|
21756
|
+
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling postUploadsWorkforcemanagementHistoricaldataCsv';}return this.apiClient.callApi('/api/v2/uploads/workforcemanagement/historicaldata/csv','POST',{},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}}]);}();var UsageApi=/*#__PURE__*/function(){/**
|
|
21622
21757
|
* Usage service.
|
|
21623
21758
|
* @module purecloud-platform-client-v2/api/UsageApi
|
|
21624
|
-
* @version
|
|
21759
|
+
* @version 192.0.0
|
|
21625
21760
|
*/ /**
|
|
21626
21761
|
* Constructs a new UsageApi.
|
|
21627
21762
|
* @alias module:purecloud-platform-client-v2/api/UsageApi
|
|
@@ -21633,7 +21768,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
21633
21768
|
*
|
|
21634
21769
|
* @param {String} executionId ID of the query execution
|
|
21635
21770
|
* @param {String} clientId Client ID
|
|
21636
|
-
*/_createClass(UsageApi,[{key:"getOauthClientUsageQueryResult",value:function getOauthClientUsageQueryResult(executionId,clientId){// verify the required parameter 'executionId' is set
|
|
21771
|
+
*/return _createClass(UsageApi,[{key:"getOauthClientUsageQueryResult",value:function getOauthClientUsageQueryResult(executionId,clientId){// verify the required parameter 'executionId' is set
|
|
21637
21772
|
if(executionId===undefined||executionId===null){throw'Missing the required parameter "executionId" when calling getOauthClientUsageQueryResult';}// verify the required parameter 'clientId' is set
|
|
21638
21773
|
if(clientId===undefined||clientId===null){throw'Missing the required parameter "clientId" when calling getOauthClientUsageQueryResult';}return this.apiClient.callApi('/api/v2/oauth/clients/{clientId}/usage/query/results/{executionId}','GET',{'executionId':executionId,'clientId':clientId},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
21639
21774
|
* Get a summary of OAuth client API usage
|
|
@@ -21648,11 +21783,14 @@ if(clientId===undefined||clientId===null){throw'Missing the required parameter "
|
|
|
21648
21783
|
* @param {String} executionId ID of the query execution
|
|
21649
21784
|
*/},{key:"getUsageQueryExecutionIdResults",value:function getUsageQueryExecutionIdResults(executionId){// verify the required parameter 'executionId' is set
|
|
21650
21785
|
if(executionId===undefined||executionId===null){throw'Missing the required parameter "executionId" when calling getUsageQueryExecutionIdResults';}return this.apiClient.callApi('/api/v2/usage/query/{executionId}/results','GET',{'executionId':executionId},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
21651
|
-
* Get the results of a usage search
|
|
21786
|
+
* Get the results of a usage search. Number of records to be returned is limited to 20,000 results.
|
|
21652
21787
|
*
|
|
21653
21788
|
* @param {String} executionId ID of the search execution
|
|
21654
|
-
|
|
21655
|
-
|
|
21789
|
+
* @param {Object} opts Optional parameters
|
|
21790
|
+
* @param {String} opts.after The cursor that points to the end of the set of entities that has been returned
|
|
21791
|
+
* @param {Number} opts.pageSize The max number of entities to be returned per request. Maximum page size of 1000
|
|
21792
|
+
*/},{key:"getUsageSimplesearchExecutionIdResults",value:function getUsageSimplesearchExecutionIdResults(executionId,opts){opts=opts||{};// verify the required parameter 'executionId' is set
|
|
21793
|
+
if(executionId===undefined||executionId===null){throw'Missing the required parameter "executionId" when calling getUsageSimplesearchExecutionIdResults';}return this.apiClient.callApi('/api/v2/usage/simplesearch/{executionId}/results','GET',{'executionId':executionId},{'after':opts['after'],'pageSize':opts['pageSize']},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
21656
21794
|
* Query for OAuth client API usage
|
|
21657
21795
|
* After calling this method, you will then need to poll for the query results based on the returned execution Id
|
|
21658
21796
|
* @param {String} clientId Client ID
|
|
@@ -21665,14 +21803,14 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
21665
21803
|
* @param {Object} body Query
|
|
21666
21804
|
*/},{key:"postUsageQuery",value:function postUsageQuery(body){// verify the required parameter 'body' is set
|
|
21667
21805
|
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling postUsageQuery';}return this.apiClient.callApi('/api/v2/usage/query','POST',{},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
21668
|
-
* Search organization API Usage
|
|
21669
|
-
* After calling this method, you will then need to poll for the query results based on the returned execution Id
|
|
21806
|
+
* Search organization API Usage
|
|
21807
|
+
* After calling this method, you will then need to poll for the query results based on the returned execution Id. The number of records is limited to 20,000 results
|
|
21670
21808
|
* @param {Object} body SimpleSearch
|
|
21671
21809
|
*/},{key:"postUsageSimplesearch",value:function postUsageSimplesearch(body){// verify the required parameter 'body' is set
|
|
21672
|
-
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']);}}]);
|
|
21810
|
+
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling postUsageSimplesearch';}return this.apiClient.callApi('/api/v2/usage/simplesearch','POST',{},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}}]);}();var UserRecordingsApi=/*#__PURE__*/function(){/**
|
|
21673
21811
|
* UserRecordings service.
|
|
21674
21812
|
* @module purecloud-platform-client-v2/api/UserRecordingsApi
|
|
21675
|
-
* @version
|
|
21813
|
+
* @version 192.0.0
|
|
21676
21814
|
*/ /**
|
|
21677
21815
|
* Constructs a new UserRecordingsApi.
|
|
21678
21816
|
* @alias module:purecloud-platform-client-v2/api/UserRecordingsApi
|
|
@@ -21683,7 +21821,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
21683
21821
|
* Delete a user recording.
|
|
21684
21822
|
*
|
|
21685
21823
|
* @param {String} recordingId User Recording ID
|
|
21686
|
-
*/_createClass(UserRecordingsApi,[{key:"deleteUserrecording",value:function deleteUserrecording(recordingId){// verify the required parameter 'recordingId' is set
|
|
21824
|
+
*/return _createClass(UserRecordingsApi,[{key:"deleteUserrecording",value:function deleteUserrecording(recordingId){// verify the required parameter 'recordingId' is set
|
|
21687
21825
|
if(recordingId===undefined||recordingId===null){throw'Missing the required parameter "recordingId" when calling deleteUserrecording';}return this.apiClient.callApi('/api/v2/userrecordings/{recordingId}','DELETE',{'recordingId':recordingId},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
21688
21826
|
* Get a user recording.
|
|
21689
21827
|
*
|
|
@@ -21718,10 +21856,10 @@ if(recordingId===undefined||recordingId===null){throw'Missing the required param
|
|
|
21718
21856
|
* @param {Array.<String>} opts.expand Which fields, if any, to expand.
|
|
21719
21857
|
*/},{key:"putUserrecording",value:function putUserrecording(recordingId,body,opts){opts=opts||{};// verify the required parameter 'recordingId' is set
|
|
21720
21858
|
if(recordingId===undefined||recordingId===null){throw'Missing the required parameter "recordingId" when calling putUserrecording';}// verify the required parameter 'body' is set
|
|
21721
|
-
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']);}}]);
|
|
21859
|
+
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling putUserrecording';}return this.apiClient.callApi('/api/v2/userrecordings/{recordingId}','PUT',{'recordingId':recordingId},{'expand':this.apiClient.buildCollectionParam(opts['expand'],'multi')},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}}]);}();var UsersApi=/*#__PURE__*/function(){/**
|
|
21722
21860
|
* Users service.
|
|
21723
21861
|
* @module purecloud-platform-client-v2/api/UsersApi
|
|
21724
|
-
* @version
|
|
21862
|
+
* @version 192.0.0
|
|
21725
21863
|
*/ /**
|
|
21726
21864
|
* Constructs a new UsersApi.
|
|
21727
21865
|
* @alias module:purecloud-platform-client-v2/api/UsersApi
|
|
@@ -21732,7 +21870,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
21732
21870
|
* Delete/cancel an async request
|
|
21733
21871
|
*
|
|
21734
21872
|
* @param {String} jobId jobId
|
|
21735
|
-
*/_createClass(UsersApi,[{key:"deleteAnalyticsUsersDetailsJob",value:function deleteAnalyticsUsersDetailsJob(jobId){// verify the required parameter 'jobId' is set
|
|
21873
|
+
*/return _createClass(UsersApi,[{key:"deleteAnalyticsUsersDetailsJob",value:function deleteAnalyticsUsersDetailsJob(jobId){// verify the required parameter 'jobId' is set
|
|
21736
21874
|
if(jobId===undefined||jobId===null){throw'Missing the required parameter "jobId" when calling deleteAnalyticsUsersDetailsJob';}return this.apiClient.callApi('/api/v2/analytics/users/details/jobs/{jobId}','DELETE',{'jobId':jobId},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
21737
21875
|
* Delete a grant of a role in a division
|
|
21738
21876
|
*
|
|
@@ -21844,11 +21982,15 @@ if(permission===undefined||permission===null){throw'Missing the required paramet
|
|
|
21844
21982
|
* Returns a listing of roles and permissions for a user.
|
|
21845
21983
|
*
|
|
21846
21984
|
* @param {String} subjectId Subject ID (user or group)
|
|
21847
|
-
|
|
21848
|
-
|
|
21985
|
+
* @param {Object} opts Optional parameters
|
|
21986
|
+
* @param {Object} opts.includeDuplicates Include multiple entries with the same role and division but different subjects (default to false)
|
|
21987
|
+
*/},{key:"getAuthorizationSubject",value:function getAuthorizationSubject(subjectId,opts){opts=opts||{};// verify the required parameter 'subjectId' is set
|
|
21988
|
+
if(subjectId===undefined||subjectId===null){throw'Missing the required parameter "subjectId" when calling getAuthorizationSubject';}return this.apiClient.callApi('/api/v2/authorization/subjects/{subjectId}','GET',{'subjectId':subjectId},{'includeDuplicates':opts['includeDuplicates']},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
21849
21989
|
* Returns a listing of roles and permissions for the currently authenticated user.
|
|
21850
21990
|
*
|
|
21851
|
-
|
|
21991
|
+
* @param {Object} opts Optional parameters
|
|
21992
|
+
* @param {Object} opts.includeDuplicates Include multiple entries with the same role and division but different subjects (default to false)
|
|
21993
|
+
*/},{key:"getAuthorizationSubjectsMe",value:function getAuthorizationSubjectsMe(opts){opts=opts||{};return this.apiClient.callApi('/api/v2/authorization/subjects/me','GET',{},{'includeDuplicates':opts['includeDuplicates']},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
21852
21994
|
* Fetch field config for an entity type
|
|
21853
21995
|
*
|
|
21854
21996
|
* @param {Object} type Field type
|
|
@@ -22377,10 +22519,10 @@ if(stationId===undefined||stationId===null){throw'Missing the required parameter
|
|
|
22377
22519
|
*/},{key:"putUserVerifier",value:function putUserVerifier(userId,verifierId,body){// verify the required parameter 'userId' is set
|
|
22378
22520
|
if(userId===undefined||userId===null){throw'Missing the required parameter "userId" when calling putUserVerifier';}// verify the required parameter 'verifierId' is set
|
|
22379
22521
|
if(verifierId===undefined||verifierId===null){throw'Missing the required parameter "verifierId" when calling putUserVerifier';}// verify the required parameter 'body' is set
|
|
22380
|
-
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling putUserVerifier';}return this.apiClient.callApi('/api/v2/users/{userId}/verifiers/{verifierId}','PUT',{'userId':userId,'verifierId':verifierId},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}}]);
|
|
22522
|
+
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling putUserVerifier';}return this.apiClient.callApi('/api/v2/users/{userId}/verifiers/{verifierId}','PUT',{'userId':userId,'verifierId':verifierId},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}}]);}();var UtilitiesApi=/*#__PURE__*/function(){/**
|
|
22381
22523
|
* Utilities service.
|
|
22382
22524
|
* @module purecloud-platform-client-v2/api/UtilitiesApi
|
|
22383
|
-
* @version
|
|
22525
|
+
* @version 192.0.0
|
|
22384
22526
|
*/ /**
|
|
22385
22527
|
* Constructs a new UtilitiesApi.
|
|
22386
22528
|
* @alias module:purecloud-platform-client-v2/api/UtilitiesApi
|
|
@@ -22390,7 +22532,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
22390
22532
|
*/function UtilitiesApi(apiClient){_classCallCheck(this,UtilitiesApi);this.apiClient=apiClient||ApiClient.instance;}/**
|
|
22391
22533
|
* Get the current system date/time
|
|
22392
22534
|
*
|
|
22393
|
-
*/_createClass(UtilitiesApi,[{key:"getDate",value:function getDate(){return this.apiClient.callApi('/api/v2/date','GET',{},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
22535
|
+
*/return _createClass(UtilitiesApi,[{key:"getDate",value:function getDate(){return this.apiClient.callApi('/api/v2/date','GET',{},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
22394
22536
|
* Get public ip address ranges for Genesys Cloud
|
|
22395
22537
|
*
|
|
22396
22538
|
*/},{key:"getIpranges",value:function getIpranges(){return this.apiClient.callApi('/api/v2/ipranges','GET',{},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
@@ -22404,10 +22546,10 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
22404
22546
|
*
|
|
22405
22547
|
* @param {Object} body Certificate
|
|
22406
22548
|
*/},{key:"postCertificateDetails",value:function postCertificateDetails(body){// verify the required parameter 'body' is set
|
|
22407
|
-
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']);}}]);
|
|
22549
|
+
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling postCertificateDetails';}return this.apiClient.callApi('/api/v2/certificate/details','POST',{},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}}]);}();var VoicemailApi=/*#__PURE__*/function(){/**
|
|
22408
22550
|
* Voicemail service.
|
|
22409
22551
|
* @module purecloud-platform-client-v2/api/VoicemailApi
|
|
22410
|
-
* @version
|
|
22552
|
+
* @version 192.0.0
|
|
22411
22553
|
*/ /**
|
|
22412
22554
|
* Constructs a new VoicemailApi.
|
|
22413
22555
|
* @alias module:purecloud-platform-client-v2/api/VoicemailApi
|
|
@@ -22418,7 +22560,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
22418
22560
|
* Delete a voicemail message.
|
|
22419
22561
|
* A user voicemail can only be deleted by its associated user. A group voicemail can only be deleted by a user that is a member of the group. A queue voicemail can only be deleted by a user with the acd voicemail delete permission.
|
|
22420
22562
|
* @param {String} messageId Message ID
|
|
22421
|
-
*/_createClass(VoicemailApi,[{key:"deleteVoicemailMessage",value:function deleteVoicemailMessage(messageId){// verify the required parameter 'messageId' is set
|
|
22563
|
+
*/return _createClass(VoicemailApi,[{key:"deleteVoicemailMessage",value:function deleteVoicemailMessage(messageId){// verify the required parameter 'messageId' is set
|
|
22422
22564
|
if(messageId===undefined||messageId===null){throw'Missing the required parameter "messageId" when calling deleteVoicemailMessage';}return this.apiClient.callApi('/api/v2/voicemail/messages/{messageId}','DELETE',{'messageId':messageId},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
22423
22565
|
* Delete all voicemail messages
|
|
22424
22566
|
*
|
|
@@ -22553,10 +22695,10 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
22553
22695
|
* @param {Object} body The user's voicemail policy
|
|
22554
22696
|
*/},{key:"putVoicemailUserpolicy",value:function putVoicemailUserpolicy(userId,body){// verify the required parameter 'userId' is set
|
|
22555
22697
|
if(userId===undefined||userId===null){throw'Missing the required parameter "userId" when calling putVoicemailUserpolicy';}// verify the required parameter 'body' is set
|
|
22556
|
-
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']);}}]);
|
|
22698
|
+
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling putVoicemailUserpolicy';}return this.apiClient.callApi('/api/v2/voicemail/userpolicies/{userId}','PUT',{'userId':userId},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}}]);}();var WebChatApi=/*#__PURE__*/function(){/**
|
|
22557
22699
|
* WebChat service.
|
|
22558
22700
|
* @module purecloud-platform-client-v2/api/WebChatApi
|
|
22559
|
-
* @version
|
|
22701
|
+
* @version 192.0.0
|
|
22560
22702
|
*/ /**
|
|
22561
22703
|
* Constructs a new WebChatApi.
|
|
22562
22704
|
* @alias module:purecloud-platform-client-v2/api/WebChatApi
|
|
@@ -22568,7 +22710,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
22568
22710
|
*
|
|
22569
22711
|
* @param {String} deploymentId Deployment Id
|
|
22570
22712
|
* @deprecated
|
|
22571
|
-
*/_createClass(WebChatApi,[{key:"deleteWebchatDeployment",value:function deleteWebchatDeployment(deploymentId){// verify the required parameter 'deploymentId' is set
|
|
22713
|
+
*/return _createClass(WebChatApi,[{key:"deleteWebchatDeployment",value:function deleteWebchatDeployment(deploymentId){// verify the required parameter 'deploymentId' is set
|
|
22572
22714
|
if(deploymentId===undefined||deploymentId===null){throw'Missing the required parameter "deploymentId" when calling deleteWebchatDeployment';}return this.apiClient.callApi('/api/v2/webchat/deployments/{deploymentId}','DELETE',{'deploymentId':deploymentId},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
22573
22715
|
* Remove a member from a chat conversation
|
|
22574
22716
|
*
|
|
@@ -22591,9 +22733,10 @@ if(deploymentId===undefined||deploymentId===null){throw'Missing the required par
|
|
|
22591
22733
|
* @deprecated
|
|
22592
22734
|
*/},{key:"getWebchatDeployments",value:function getWebchatDeployments(){return this.apiClient.callApi('/api/v2/webchat/deployments','GET',{},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
22593
22735
|
* Get a media request in the conversation
|
|
22594
|
-
*
|
|
22736
|
+
* This endpoint is deprecated. Please see the article https://help.mypurecloud.com/articles/deprecation-legacy-co-browse-and-screenshare/
|
|
22595
22737
|
* @param {String} conversationId conversationId
|
|
22596
22738
|
* @param {String} mediaRequestId mediaRequestId
|
|
22739
|
+
* @deprecated
|
|
22597
22740
|
*/},{key:"getWebchatGuestConversationMediarequest",value:function getWebchatGuestConversationMediarequest(conversationId,mediaRequestId){// verify the required parameter 'conversationId' is set
|
|
22598
22741
|
if(conversationId===undefined||conversationId===null){throw'Missing the required parameter "conversationId" when calling getWebchatGuestConversationMediarequest';}// verify the required parameter 'mediaRequestId' is set
|
|
22599
22742
|
if(mediaRequestId===undefined||mediaRequestId===null){throw'Missing the required parameter "mediaRequestId" when calling getWebchatGuestConversationMediarequest';}return this.apiClient.callApi('/api/v2/webchat/guest/conversations/{conversationId}/mediarequests/{mediaRequestId}','GET',{'conversationId':conversationId,'mediaRequestId':mediaRequestId},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
@@ -22639,10 +22782,11 @@ if(conversationId===undefined||conversationId===null){throw'Missing the required
|
|
|
22639
22782
|
*
|
|
22640
22783
|
*/},{key:"getWebchatSettings",value:function getWebchatSettings(){return this.apiClient.callApi('/api/v2/webchat/settings','GET',{},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
22641
22784
|
* Update a media request in the conversation, setting the state to ACCEPTED/DECLINED/ERRORED
|
|
22642
|
-
*
|
|
22785
|
+
* This endpoint is deprecated. Please see the article https://help.mypurecloud.com/articles/deprecation-legacy-co-browse-and-screenshare/
|
|
22643
22786
|
* @param {String} conversationId conversationId
|
|
22644
22787
|
* @param {String} mediaRequestId mediaRequestId
|
|
22645
22788
|
* @param {Object} body Request
|
|
22789
|
+
* @deprecated
|
|
22646
22790
|
*/},{key:"patchWebchatGuestConversationMediarequest",value:function patchWebchatGuestConversationMediarequest(conversationId,mediaRequestId,body){// verify the required parameter 'conversationId' is set
|
|
22647
22791
|
if(conversationId===undefined||conversationId===null){throw'Missing the required parameter "conversationId" when calling patchWebchatGuestConversationMediarequest';}// verify the required parameter 'mediaRequestId' is set
|
|
22648
22792
|
if(mediaRequestId===undefined||mediaRequestId===null){throw'Missing the required parameter "mediaRequestId" when calling patchWebchatGuestConversationMediarequest';}// verify the required parameter 'body' is set
|
|
@@ -22686,10 +22830,10 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
22686
22830
|
*
|
|
22687
22831
|
* @param {Object} body webChatSettings
|
|
22688
22832
|
*/},{key:"putWebchatSettings",value:function putWebchatSettings(body){// verify the required parameter 'body' is set
|
|
22689
|
-
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']);}}]);
|
|
22833
|
+
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling putWebchatSettings';}return this.apiClient.callApi('/api/v2/webchat/settings','PUT',{},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}}]);}();var WebDeploymentsApi=/*#__PURE__*/function(){/**
|
|
22690
22834
|
* WebDeployments service.
|
|
22691
22835
|
* @module purecloud-platform-client-v2/api/WebDeploymentsApi
|
|
22692
|
-
* @version
|
|
22836
|
+
* @version 192.0.0
|
|
22693
22837
|
*/ /**
|
|
22694
22838
|
* Constructs a new WebDeploymentsApi.
|
|
22695
22839
|
* @alias module:purecloud-platform-client-v2/api/WebDeploymentsApi
|
|
@@ -22700,7 +22844,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
22700
22844
|
* Delete all versions of a configuration
|
|
22701
22845
|
*
|
|
22702
22846
|
* @param {String} configurationId The configuration version ID
|
|
22703
|
-
*/_createClass(WebDeploymentsApi,[{key:"deleteWebdeploymentsConfiguration",value:function deleteWebdeploymentsConfiguration(configurationId){// verify the required parameter 'configurationId' is set
|
|
22847
|
+
*/return _createClass(WebDeploymentsApi,[{key:"deleteWebdeploymentsConfiguration",value:function deleteWebdeploymentsConfiguration(configurationId){// verify the required parameter 'configurationId' is set
|
|
22704
22848
|
if(configurationId===undefined||configurationId===null){throw'Missing the required parameter "configurationId" when calling deleteWebdeploymentsConfiguration';}return this.apiClient.callApi('/api/v2/webdeployments/configurations/{configurationId}','DELETE',{'configurationId':configurationId},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
22705
22849
|
* Delete a deployment
|
|
22706
22850
|
*
|
|
@@ -22807,10 +22951,10 @@ if(configurationVersion===undefined||configurationVersion===null){throw'Missing
|
|
|
22807
22951
|
* @param {Object} deployment
|
|
22808
22952
|
*/},{key:"putWebdeploymentsDeployment",value:function putWebdeploymentsDeployment(deploymentId,deployment){// verify the required parameter 'deploymentId' is set
|
|
22809
22953
|
if(deploymentId===undefined||deploymentId===null){throw'Missing the required parameter "deploymentId" when calling putWebdeploymentsDeployment';}// verify the required parameter 'deployment' is set
|
|
22810
|
-
if(deployment===undefined||deployment===null){throw'Missing the required parameter "deployment" when calling putWebdeploymentsDeployment';}return this.apiClient.callApi('/api/v2/webdeployments/deployments/{deploymentId}','PUT',{'deploymentId':deploymentId},{},{},{},deployment,['PureCloud OAuth'],['application/json'],['application/json']);}}]);
|
|
22954
|
+
if(deployment===undefined||deployment===null){throw'Missing the required parameter "deployment" when calling putWebdeploymentsDeployment';}return this.apiClient.callApi('/api/v2/webdeployments/deployments/{deploymentId}','PUT',{'deploymentId':deploymentId},{},{},{},deployment,['PureCloud OAuth'],['application/json'],['application/json']);}}]);}();var WebMessagingApi=/*#__PURE__*/function(){/**
|
|
22811
22955
|
* WebMessaging service.
|
|
22812
22956
|
* @module purecloud-platform-client-v2/api/WebMessagingApi
|
|
22813
|
-
* @version
|
|
22957
|
+
* @version 192.0.0
|
|
22814
22958
|
*/ /**
|
|
22815
22959
|
* Constructs a new WebMessagingApi.
|
|
22816
22960
|
* @alias module:purecloud-platform-client-v2/api/WebMessagingApi
|
|
@@ -22823,10 +22967,10 @@ if(deployment===undefined||deployment===null){throw'Missing the required paramet
|
|
|
22823
22967
|
* @param {Object} opts Optional parameters
|
|
22824
22968
|
* @param {Number} opts.pageSize Page size (default to 25)
|
|
22825
22969
|
* @param {Number} opts.pageNumber Page number (default to 1)
|
|
22826
|
-
*/_createClass(WebMessagingApi,[{key:"getWebmessagingMessages",value:function getWebmessagingMessages(opts){opts=opts||{};return this.apiClient.callApi('/api/v2/webmessaging/messages','GET',{},{'pageSize':opts['pageSize'],'pageNumber':opts['pageNumber']},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}}]);
|
|
22970
|
+
*/return _createClass(WebMessagingApi,[{key:"getWebmessagingMessages",value:function getWebmessagingMessages(opts){opts=opts||{};return this.apiClient.callApi('/api/v2/webmessaging/messages','GET',{},{'pageSize':opts['pageSize'],'pageNumber':opts['pageNumber']},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}}]);}();var WidgetsApi=/*#__PURE__*/function(){/**
|
|
22827
22971
|
* Widgets service.
|
|
22828
22972
|
* @module purecloud-platform-client-v2/api/WidgetsApi
|
|
22829
|
-
* @version
|
|
22973
|
+
* @version 192.0.0
|
|
22830
22974
|
*/ /**
|
|
22831
22975
|
* Constructs a new WidgetsApi.
|
|
22832
22976
|
* @alias module:purecloud-platform-client-v2/api/WidgetsApi
|
|
@@ -22837,7 +22981,7 @@ if(deployment===undefined||deployment===null){throw'Missing the required paramet
|
|
|
22837
22981
|
* Delete a Widget deployment
|
|
22838
22982
|
*
|
|
22839
22983
|
* @param {String} deploymentId Widget Config Id
|
|
22840
|
-
*/_createClass(WidgetsApi,[{key:"deleteWidgetsDeployment",value:function deleteWidgetsDeployment(deploymentId){// verify the required parameter 'deploymentId' is set
|
|
22984
|
+
*/return _createClass(WidgetsApi,[{key:"deleteWidgetsDeployment",value:function deleteWidgetsDeployment(deploymentId){// verify the required parameter 'deploymentId' is set
|
|
22841
22985
|
if(deploymentId===undefined||deploymentId===null){throw'Missing the required parameter "deploymentId" when calling deleteWidgetsDeployment';}return this.apiClient.callApi('/api/v2/widgets/deployments/{deploymentId}','DELETE',{'deploymentId':deploymentId},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
22842
22986
|
* Get a Widget deployment
|
|
22843
22987
|
*
|
|
@@ -22858,10 +23002,10 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
22858
23002
|
* @param {Object} body Deployment
|
|
22859
23003
|
*/},{key:"putWidgetsDeployment",value:function putWidgetsDeployment(deploymentId,body){// verify the required parameter 'deploymentId' is set
|
|
22860
23004
|
if(deploymentId===undefined||deploymentId===null){throw'Missing the required parameter "deploymentId" when calling putWidgetsDeployment';}// verify the required parameter 'body' is set
|
|
22861
|
-
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']);}}]);
|
|
23005
|
+
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling putWidgetsDeployment';}return this.apiClient.callApi('/api/v2/widgets/deployments/{deploymentId}','PUT',{'deploymentId':deploymentId},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}}]);}();var WorkforceManagementApi=/*#__PURE__*/function(){/**
|
|
22862
23006
|
* WorkforceManagement service.
|
|
22863
23007
|
* @module purecloud-platform-client-v2/api/WorkforceManagementApi
|
|
22864
|
-
* @version
|
|
23008
|
+
* @version 192.0.0
|
|
22865
23009
|
*/ /**
|
|
22866
23010
|
* Constructs a new WorkforceManagementApi.
|
|
22867
23011
|
* @alias module:purecloud-platform-client-v2/api/WorkforceManagementApi
|
|
@@ -22872,7 +23016,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
22872
23016
|
* Delete business unit
|
|
22873
23017
|
* A business unit cannot be deleted if it contains one or more management units
|
|
22874
23018
|
* @param {String} businessUnitId The ID of the business unit, or 'mine' for the business unit of the logged-in user.
|
|
22875
|
-
*/_createClass(WorkforceManagementApi,[{key:"deleteWorkforcemanagementBusinessunit",value:function deleteWorkforcemanagementBusinessunit(businessUnitId){// verify the required parameter 'businessUnitId' is set
|
|
23019
|
+
*/return _createClass(WorkforceManagementApi,[{key:"deleteWorkforcemanagementBusinessunit",value:function deleteWorkforcemanagementBusinessunit(businessUnitId){// verify the required parameter 'businessUnitId' is set
|
|
22876
23020
|
if(businessUnitId===undefined||businessUnitId===null){throw'Missing the required parameter "businessUnitId" when calling deleteWorkforcemanagementBusinessunit';}return this.apiClient.callApi('/api/v2/workforcemanagement/businessunits/{businessUnitId}','DELETE',{'businessUnitId':businessUnitId},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
22877
23021
|
* Deletes an activity code
|
|
22878
23022
|
*
|
|
@@ -24310,7 +24454,7 @@ if(timeOffLimitId===undefined||timeOffLimitId===null){throw'Missing the required
|
|
|
24310
24454
|
* @param {Object} opts.body body
|
|
24311
24455
|
*/},{key:"putWorkforcemanagementManagementunitTimeofflimitValues",value:function putWorkforcemanagementManagementunitTimeofflimitValues(managementUnitId,timeOffLimitId,opts){opts=opts||{};// verify the required parameter 'managementUnitId' is set
|
|
24312
24456
|
if(managementUnitId===undefined||managementUnitId===null){throw'Missing the required parameter "managementUnitId" when calling putWorkforcemanagementManagementunitTimeofflimitValues';}// verify the required parameter 'timeOffLimitId' is set
|
|
24313
|
-
if(timeOffLimitId===undefined||timeOffLimitId===null){throw'Missing the required parameter "timeOffLimitId" when calling putWorkforcemanagementManagementunitTimeofflimitValues';}return this.apiClient.callApi('/api/v2/workforcemanagement/managementunits/{managementUnitId}/timeofflimits/{timeOffLimitId}/values','PUT',{'managementUnitId':managementUnitId,'timeOffLimitId':timeOffLimitId},{},{},{},opts['body'],['PureCloud OAuth'],['application/json'],['application/json']);}}]);
|
|
24457
|
+
if(timeOffLimitId===undefined||timeOffLimitId===null){throw'Missing the required parameter "timeOffLimitId" when calling putWorkforcemanagementManagementunitTimeofflimitValues';}return this.apiClient.callApi('/api/v2/workforcemanagement/managementunits/{managementUnitId}/timeofflimits/{timeOffLimitId}/values','PUT',{'managementUnitId':managementUnitId,'timeOffLimitId':timeOffLimitId},{},{},{},opts['body'],['PureCloud OAuth'],['application/json'],['application/json']);}}]);}();/**
|
|
24314
24458
|
* A JavaScript library to interface with the PureCloud Platform API.<br>
|
|
24315
24459
|
* The <code>index</code> module provides access to constructors for all the classes which comprise the public API.
|
|
24316
24460
|
* <p>
|
|
@@ -24339,7 +24483,7 @@ if(timeOffLimitId===undefined||timeOffLimitId===null){throw'Missing the required
|
|
|
24339
24483
|
* </pre>
|
|
24340
24484
|
* </p>
|
|
24341
24485
|
* @module purecloud-platform-client-v2/index
|
|
24342
|
-
* @version
|
|
24486
|
+
* @version 192.0.0
|
|
24343
24487
|
*/var platformClient=/*#__PURE__*/_createClass(function platformClient(){_classCallCheck(this,platformClient);/**
|
|
24344
24488
|
* The ApiClient constructor.
|
|
24345
24489
|
* @property {module:purecloud-platform-client-v2/ApiClient}
|