purecloud-platform-client-v2 213.1.0 → 215.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 +31 -3
- package/dist/node/purecloud-platform-client-v2.js +446 -118
- package/dist/web-amd/purecloud-platform-client-v2.js +446 -118
- package/dist/web-amd/purecloud-platform-client-v2.min.js +1 -1
- package/dist/web-cjs/bundle.js +213 -149
- package/dist/web-cjs/purecloud-platform-client-v2.js +223 -156
- package/dist/web-cjs/purecloud-platform-client-v2.min.js +1 -1
- package/index.d.ts +369 -229
- package/package.json +1 -1
- package/src/purecloud-platform-client-v2/AbstractHttpClient.js +29 -0
- package/src/purecloud-platform-client-v2/ApiClient.js +21 -1
- package/src/purecloud-platform-client-v2/DefaultHttpClient.js +41 -0
- package/src/purecloud-platform-client-v2/api/AgentAssistantsApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/AgentCopilotApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/AgentUIApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/AlertingApi.js +45 -1
- package/src/purecloud-platform-client-v2/api/AnalyticsApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/ArchitectApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/AuditApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/AuthorizationApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/BillingApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/CarrierServicesApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/ChatApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/CoachingApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/ContentManagementApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/ConversationsApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/DataExtensionsApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/DataPrivacyApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/DownloadsApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/EmailsApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/EmployeeEngagementApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/EventsApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/ExternalContactsApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/FaxApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/FlowsApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/GamificationApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/GeneralDataProtectionRegulationApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/GeolocationApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/GreetingsApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/GroupsApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/IdentityProviderApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/InfrastructureAsCodeApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/IntegrationsApi.js +1 -6
- package/src/purecloud-platform-client-v2/api/JourneyApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/KnowledgeApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/LanguageUnderstandingApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/LanguagesApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/LearningApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/LicenseApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/LocationsApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/LogCaptureApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/MessagingApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/MobileDevicesApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/NotificationsApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/OAuthApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/ObjectsApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/OperationalEventsApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/OrganizationApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/OrganizationAuthorizationApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/OutboundApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/PresenceApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/ProcessAutomationApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/QualityApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/RecordingApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/ResponseManagementApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/RoutingApi.js +1 -31
- package/src/purecloud-platform-client-v2/api/SCIMApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/ScreenRecordingApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/ScriptsApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/SearchApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/SettingsApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/SocialMediaApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/SpeechTextAnalyticsApi.js +107 -1
- package/src/purecloud-platform-client-v2/api/StationsApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/SuggestApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/TaskManagementApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/TeamsApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/TelephonyApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/TelephonyProvidersEdgeApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/TextbotsApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/TokensApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/UploadsApi.js +1 -2
- package/src/purecloud-platform-client-v2/api/UsageApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/UserRecordingsApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/UsersApi.js +125 -1
- package/src/purecloud-platform-client-v2/api/UtilitiesApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/VoicemailApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/WebChatApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/WebDeploymentsApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/WebMessagingApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/WidgetsApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/WorkforceManagementApi.js +1 -1
- package/src/purecloud-platform-client-v2/index.js +1 -1
|
@@ -3142,13 +3142,16 @@ function quote(s) {
|
|
|
3142
3142
|
return $replace.call(String(s), /"/g, '"');
|
|
3143
3143
|
}
|
|
3144
3144
|
|
|
3145
|
-
function
|
|
3146
|
-
|
|
3147
|
-
|
|
3148
|
-
function
|
|
3149
|
-
function
|
|
3150
|
-
function
|
|
3151
|
-
function
|
|
3145
|
+
function canTrustToString(obj) {
|
|
3146
|
+
return !toStringTag || !(typeof obj === 'object' && (toStringTag in obj || typeof obj[toStringTag] !== 'undefined'));
|
|
3147
|
+
}
|
|
3148
|
+
function isArray(obj) { return toStr(obj) === '[object Array]' && canTrustToString(obj); }
|
|
3149
|
+
function isDate(obj) { return toStr(obj) === '[object Date]' && canTrustToString(obj); }
|
|
3150
|
+
function isRegExp(obj) { return toStr(obj) === '[object RegExp]' && canTrustToString(obj); }
|
|
3151
|
+
function isError(obj) { return toStr(obj) === '[object Error]' && canTrustToString(obj); }
|
|
3152
|
+
function isString(obj) { return toStr(obj) === '[object String]' && canTrustToString(obj); }
|
|
3153
|
+
function isNumber(obj) { return toStr(obj) === '[object Number]' && canTrustToString(obj); }
|
|
3154
|
+
function isBoolean(obj) { return toStr(obj) === '[object Boolean]' && canTrustToString(obj); }
|
|
3152
3155
|
|
|
3153
3156
|
// Symbol and BigInt do have Symbol.toStringTag by spec, so that can't be used to eliminate false positives
|
|
3154
3157
|
function isSymbol(obj) {
|
|
@@ -6415,11 +6418,20 @@ axios.Cancel=axios.CanceledError;// Expose all/spread
|
|
|
6415
6418
|
axios.all=function all(promises){return Promise.all(promises);};axios.spread=spread;// Expose isAxiosError
|
|
6416
6419
|
axios.isAxiosError=isAxiosError;// Expose mergeConfig
|
|
6417
6420
|
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
|
|
6418
|
-
var axios$1=axios;var AbstractHttpClient=/*#__PURE__*/function(){function AbstractHttpClient(){_classCallCheck(this,AbstractHttpClient);this.timeout=16000;}return _createClass(AbstractHttpClient,[{key:"setTimeout",value:function setTimeout(timeout){if(timeout===null||timeout===undefined||typeof timeout!=='number'){throw new Error("The 'timeout' property must be a number");}this.timeout=timeout;}},{key:"setHttpsAgent",value:function setHttpsAgent(httpsAgent){if(httpsAgent&&_typeof(httpsAgent)!=='object'){throw new Error("The 'httpsAgent' property must be an object");}this.httpsAgent=httpsAgent;}},{key:"request",value:function request(httpRequestOptions){throw new Error("method must be implemented");}}
|
|
6421
|
+
var axios$1=axios;var AbstractHttpClient=/*#__PURE__*/function(){function AbstractHttpClient(){_classCallCheck(this,AbstractHttpClient);this.timeout=16000;}return _createClass(AbstractHttpClient,[{key:"setTimeout",value:function setTimeout(timeout){if(timeout===null||timeout===undefined||typeof timeout!=='number'){throw new Error("The 'timeout' property must be a number");}this.timeout=timeout;}},{key:"setHttpsAgent",value:function setHttpsAgent(httpsAgent){if(httpsAgent&&_typeof(httpsAgent)!=='object'){throw new Error("The 'httpsAgent' property must be an object");}this.httpsAgent=httpsAgent;}},{key:"request",value:function request(httpRequestOptions){throw new Error("method must be implemented");}},{key:"enableHooks",value:function enableHooks(){throw new Error("method must be implemented");}/**
|
|
6422
|
+
* Set a PreHook function that modifies the request config before execution.
|
|
6423
|
+
* @param {(config: object) => object | Promise<object> | void} hookFunction
|
|
6424
|
+
*/},{key:"setPreHook",value:function setPreHook(hookFunction){if(typeof hookFunction!=="function"||hookFunction.length!==1){throw new Error("preHook must be a function that accepts (config)");}this.preHook=hookFunction;this.enableHooks();}/**
|
|
6425
|
+
* Set a PostHook function that processes the response or error after execution.
|
|
6426
|
+
* @param {(response: object | null, error: Error | null) => object | Promise<object> | void} hookFunction
|
|
6427
|
+
*/},{key:"setPostHook",value:function setPostHook(hookFunction){if(typeof hookFunction!=="function"||hookFunction.length!==1){throw new Error("postHook must be a function that accepts (response)");}this.postHook=hookFunction;this.enableHooks();}}]);}();var HttpRequestOptions=/*#__PURE__*/function(){function HttpRequestOptions(url,method,headers,params,data,timeout){_classCallCheck(this,HttpRequestOptions);this.setUrl(url);this.setMethod(method);if(headers){this.setHeaders(headers);}if(params){this.setParams(params);}if(data){this.setData(data);}if(timeout!==null&&timeout!==undefined)this.setTimeout(timeout);else this.timeout=16000;}// Mandatory fields with validation
|
|
6419
6428
|
return _createClass(HttpRequestOptions,[{key:"setUrl",value:function setUrl(url){if(!url)throw new Error("The 'url' property is required");this.url=url;}},{key:"setMethod",value:function setMethod(method){var validMethods=['GET','POST','PUT','DELETE','PATCH','OPTIONS','HEAD'];if(!method||!validMethods.includes(method.toUpperCase())){throw new Error("The 'method' property is invalid or missing");}this.method=method.toUpperCase();}},{key:"setData",value:function setData(data){if(data===undefined||data===null){throw new Error("The 'data' property is required");}this.data=data;}// Optional fields
|
|
6420
6429
|
},{key:"setParams",value:function setParams(params){if(params&&_typeof(params)!=='object'){throw new Error("The 'params' property must be an object");}this.params=params;}// Optional fields
|
|
6421
6430
|
},{key:"setHeaders",value:function setHeaders(headers){if(headers&&_typeof(headers)!=='object'){throw new Error("The 'headers' property must be an object");}this.headers=headers;}},{key:"setTimeout",value:function setTimeout(timeout){if(timeout===undefined||timeout===null||typeof timeout!=='number'){throw new Error("The 'timeout' property must be a number");}this.timeout=timeout;}}]);}();// Default client is Axios
|
|
6422
|
-
var DefaultHttpClient=/*#__PURE__*/function(_AbstractHttpClient){function DefaultHttpClient(timeout,httpsAgent){var _this2;_classCallCheck(this,DefaultHttpClient);_this2=_callSuper(this,DefaultHttpClient);if(timeout!==null&&timeout!==undefined)_this2.setTimeout(timeout);else _this2.timeout=16000;if(httpsAgent!==null&&httpsAgent!==undefined)_this2.setHttpsAgent(httpsAgent);else _this2.httpsAgent;_this2._axiosInstance=axios$1.create({});return _this2;}_inherits(DefaultHttpClient,_AbstractHttpClient);return _createClass(DefaultHttpClient,[{key:"
|
|
6431
|
+
var DefaultHttpClient=/*#__PURE__*/function(_AbstractHttpClient){function DefaultHttpClient(timeout,httpsAgent){var _this2;_classCallCheck(this,DefaultHttpClient);_this2=_callSuper(this,DefaultHttpClient);if(timeout!==null&&timeout!==undefined)_this2.setTimeout(timeout);else _this2.timeout=16000;if(httpsAgent!==null&&httpsAgent!==undefined)_this2.setHttpsAgent(httpsAgent);else _this2.httpsAgent;_this2._axiosInstance=axios$1.create({});return _this2;}_inherits(DefaultHttpClient,_AbstractHttpClient);return _createClass(DefaultHttpClient,[{key:"enableHooks",value:function enableHooks(){var _this3=this;if(this.preHook&&typeof this.preHook==='function'){if(this.requestInterceptorId!==undefined){axios$1.interceptors.request.eject(this.requestInterceptorId);}this.requestInterceptorId=this._axiosInstance.interceptors.request.use(/*#__PURE__*/function(){var _ref23=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee9(config){return _regeneratorRuntime().wrap(function _callee9$(_context10){while(1)switch(_context10.prev=_context10.next){case 0:_context10.next=2;return _this3.preHook(config);case 2:config=_context10.sent;return _context10.abrupt("return",config);case 4:case"end":return _context10.stop();}},_callee9);}));return function(_x11){return _ref23.apply(this,arguments);};}(),function(error){// Handle errors before the request is sent
|
|
6432
|
+
console.error('Request Pre-Hook Error:',error.message);return Promise.reject(error);});}if(this.postHook&&typeof this.postHook==='function'){// Response interceptor (for post-hooks)
|
|
6433
|
+
if(this.responseInterceptorId!==undefined){axios$1.interceptors.response.eject(this.responseInterceptorId);}this.responseInterceptorId=this._axiosInstance.interceptors.response.use(/*#__PURE__*/function(){var _ref24=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee10(response){return _regeneratorRuntime().wrap(function _callee10$(_context11){while(1)switch(_context11.prev=_context11.next){case 0:_context11.next=2;return _this3.postHook(response);case 2:response=_context11.sent;return _context11.abrupt("return",response);case 4:case"end":return _context11.stop();}},_callee10);}));return function(_x12){return _ref24.apply(this,arguments);};}(),/*#__PURE__*/function(){var _ref25=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee11(error){return _regeneratorRuntime().wrap(function _callee11$(_context12){while(1)switch(_context12.prev=_context12.next){case 0:console.error('Post-Hook: Response Error',error.message);// Optionally call post-hook in case of errors
|
|
6434
|
+
return _context12.abrupt("return",Promise.reject(error));case 2:case"end":return _context12.stop();}},_callee11);}));return function(_x13){return _ref25.apply(this,arguments);};}());}}},{key:"request",value:function request(httpRequestOptions){if(!(httpRequestOptions instanceof HttpRequestOptions)){throw new Error("httpRequestOptions must be instance of HttpRequestOptions ");}var config=this.toAxiosConfig(httpRequestOptions);return this._axiosInstance.request(config);}// Method to generate Axios-compatible config
|
|
6423
6435
|
},{key:"toAxiosConfig",value:function toAxiosConfig(httpRequestOptions){if(!httpRequestOptions.url||!httpRequestOptions.method){throw new Error("Mandatory fields 'url' and 'method' must be set before making a request");}var config={url:httpRequestOptions.url,method:httpRequestOptions.method};if(httpRequestOptions.params)config.params=httpRequestOptions.params;if(httpRequestOptions.headers)config.headers=httpRequestOptions.headers;if(httpRequestOptions.data)config.data=httpRequestOptions.data;if(this.timeout!=null&&this.timeout!=undefined)config.timeout=this.timeout;if(this.httpsAgent)config.httpsAgent=this.httpsAgent;return config;}}]);}(AbstractHttpClient);var logLevelEnum={level:{LNone:'none',LError:'error',LDebug:'debug',LTrace:'trace'}};var logFormatEnum={formats:{JSON:'json',TEXT:'text'}};var Logger=/*#__PURE__*/function(){function Logger(){_classCallCheck(this,Logger);this.log_level=logLevelEnum.level.LNone;this.log_format=logFormatEnum.formats.TEXT;this.log_to_console=true;this.log_file_path;this.log_response_body=false;this.log_request_body=false;this.setLogger();}return _createClass(Logger,[{key:"logLevelEnum",get:function get(){return logLevelEnum;}},{key:"logFormatEnum",get:function get(){return logFormatEnum;}},{key:"setLogger",value:function setLogger(){}},{key:"log",value:function log(level,statusCode,method,url,requestHeaders,responseHeaders,requestBody,responseBody){var content=this.formatLog(level,statusCode,method,url,requestHeaders,responseHeaders,requestBody,responseBody);if(typeof window!=='undefined'){var shouldLog=this.calculateLogLevel(level);if(shouldLog>0&&this.log_to_console===true){if(this.log_format===this.logFormatEnum.formats.JSON){console.log(content);}else{console.log("".concat(level.toUpperCase(),": ").concat(content));}}}else{if(this.logger.transports.length>0)this.logger.log(level,content);}}},{key:"calculateLogLevel",value:function calculateLogLevel(level){switch(this.log_level){case this.logLevelEnum.level.LError:if(level!==this.logLevelEnum.level.LError){return-1;}return 1;case this.logLevelEnum.level.LDebug:if(level===this.logLevelEnum.level.LTrace){return-1;}return 1;case this.logLevelEnum.level.LTrace:return 1;default:return-1;}}},{key:"formatLog",value:function formatLog(level,statusCode,method,url,requestHeaders,responseHeaders,requestBody,responseBody){var result;var localRequestHeaders=requestHeaders?JSON.parse(JSON.stringify(requestHeaders)):null;var localResponseHeaders=responseHeaders?JSON.parse(JSON.stringify(responseHeaders)):null;var localRequestBody=requestBody?JSON.parse(JSON.stringify(requestBody)):null;var localResponseBody=responseBody?JSON.parse(JSON.stringify(responseBody)):null;if(requestHeaders)localRequestHeaders['Authorization']='[REDACTED]';if(!this.log_request_body)localRequestBody=undefined;if(!this.log_response_body)localResponseBody=undefined;if(this.log_format&&this.log_format===logFormatEnum.formats.JSON){result={level:level,date:new Date().toISOString(),method:method,url:decodeURIComponent(url),correlationId:localResponseHeaders?localResponseHeaders['inin-correlation-id']?localResponseHeaders['inin-correlation-id']:'':'',statusCode:statusCode};if(localRequestHeaders)result.requestHeaders=localRequestHeaders;if(localResponseHeaders)result.responseHeaders=localResponseHeaders;if(localRequestBody)result.requestBody=localRequestBody;if(localResponseBody)result.responseBody=localResponseBody;}else{result="".concat(new Date().toISOString(),"\n=== REQUEST === \n").concat(this.formatValue('URL',decodeURIComponent(url))).concat(this.formatValue('Method',method)).concat(this.formatValue('Headers',this.formatHeaderString(localRequestHeaders))).concat(this.formatValue('Body',localRequestBody?JSON.stringify(localRequestBody,null,2):''),"\n=== RESPONSE ===\n").concat(this.formatValue('Status',statusCode)).concat(this.formatValue('Headers',this.formatHeaderString(localResponseHeaders))).concat(this.formatValue('CorrelationId',localResponseHeaders?localResponseHeaders['inin-correlation-id']?localResponseHeaders['inin-correlation-id']:'':'')).concat(this.formatValue('Body',localResponseBody?JSON.stringify(localResponseBody,null,2):''));}return result;}},{key:"formatHeaderString",value:function formatHeaderString(headers){var headerString='';if(!headers)return headerString;for(var _i=0,_Object$entries=Object.entries(headers);_i<_Object$entries.length;_i++){var _Object$entries$_i=_slicedToArray(_Object$entries[_i],2),key=_Object$entries$_i[0],value=_Object$entries$_i[1];headerString+="\n\t".concat(key,": ").concat(value);}return headerString;}},{key:"formatValue",value:function formatValue(key,value){if(!value||value===''||value==='{}')return'';return"".concat(key,": ").concat(value,"\n");}},{key:"getLogLevel",value:function getLogLevel(level){switch(level){case'error':return logLevelEnum.level.LError;case'debug':return logLevelEnum.level.LDebug;case'trace':return logLevelEnum.level.LTrace;default:return logLevelEnum.level.LNone;}}},{key:"getLogFormat",value:function getLogFormat(format){switch(format){case'json':return logFormatEnum.formats.JSON;default:return logFormatEnum.formats.TEXT;}}}]);}();var Configuration=/*#__PURE__*/function(){function Configuration(){_classCallCheck(this,Configuration);if(!Configuration.instance){Configuration.instance=this;}if(typeof window!=='undefined'){this.configPath='';}else{var os=require('os');var path=require('path');this.configPath=path.join(os.homedir(),'.genesyscloudjavascript','config');}this.refresh_access_token=true;this.refresh_token_wait_max=10;this.live_reload_config=true;this.host;this.environment;this.basePath;this.authUrl;this.config;this.gateway=undefined;this.logger=new Logger();this.setEnvironment();this.liveLoadConfig();}return _createClass(Configuration,[{key:"instance",get:/**
|
|
6424
6436
|
* Singleton getter
|
|
6425
6437
|
*/function get(){return Configuration.instance;}/**
|
|
@@ -6443,7 +6455,7 @@ if(env)this.environment=env;else this.environment=this.host?this.host:'mypureclo
|
|
|
6443
6455
|
this.environment=this.environment.replace(/\/+$/,'');// Strip protocol and subdomain
|
|
6444
6456
|
if(this.environment.startsWith('https://'))this.environment=this.environment.substring(8);if(this.environment.startsWith('http://'))this.environment=this.environment.substring(7);if(this.environment.startsWith('api.'))this.environment=this.environment.substring(4);this.basePath="https://api.".concat(this.environment);this.authUrl="https://login.".concat(this.environment);}},{key:"getConfUrl",value:function getConfUrl(pathType,regionUrl){if(!this.gateway)return regionUrl;if(!this.gateway.host)return regionUrl;var url=this.gateway.protocol+'://'+this.gateway.host;if(this.gateway.port>-1)url=url+':'+this.gateway.port.toString();if(pathType==='login'){if(this.gateway.path_params_login){if(this.gateway.path_params_login.startsWith('/'))url=url+this.gateway.path_params_login;else url=url+'/'+this.gateway.path_params_login;}}else{if(this.gateway.path_params_api){if(this.gateway.path_params_api.startsWith('/'))url=url+this.gateway.path_params_api;else url=url+'/'+this.gateway.path_params_api;}}return url;}},{key:"getConfigString",value:function getConfigString(section,key){if(this.config._sections[section])return this.config._sections[section][key];}},{key:"getConfigBoolean",value:function getConfigBoolean(section,key){if(this.config._sections[section]&&this.config._sections[section][key]!==undefined){if(typeof this.config._sections[section][key]==='string'){return this.config._sections[section][key]==='true';}else return this.config._sections[section][key];}}},{key:"getConfigInt",value:function getConfigInt(section,key){if(this.config._sections[section]&&this.config._sections[section][key]){if(typeof this.config._sections[section][key]==='string'){return parseInt(this.config._sections[section][key]);}else return this.config._sections[section][key];}}}]);}();/**
|
|
6445
6457
|
* @module purecloud-platform-client-v2/ApiClient
|
|
6446
|
-
* @version
|
|
6458
|
+
* @version 215.0.0
|
|
6447
6459
|
*/var ApiClient=/*#__PURE__*/function(){/**
|
|
6448
6460
|
* Manages low level client-server communications, parameter marshalling, etc. There should not be any need for an
|
|
6449
6461
|
* application to use this class directly - the *Api and model classes provide the public API for the service. The
|
|
@@ -6522,6 +6534,12 @@ var tempState=this.authData.state;this.authData=localStorage.getItem("".concat(t
|
|
|
6522
6534
|
* @param {string} keyPath - path for key
|
|
6523
6535
|
* @param {string} caPath - path for public certs
|
|
6524
6536
|
*/},{key:"setMTLSCertificates",value:function setMTLSCertificates(certPath,keyPath,caPath){{throw new Error("MTLS authentication is managed by the Browser itself. MTLS certificates cannot be set via code on Browser.");}}/**
|
|
6537
|
+
* @description Sets preHook functions for the httpClient
|
|
6538
|
+
* @param {string} preHook - method definition for prehook
|
|
6539
|
+
*/},{key:"setPreHook",value:function setPreHook(preHook){var httpClient=this.getHttpClient();httpClient.setPreHook(preHook);}/**
|
|
6540
|
+
* @description Sets postHook functions for the httpClient
|
|
6541
|
+
* @param {string} postHook - method definition for posthook
|
|
6542
|
+
*/},{key:"setPostHook",value:function setPostHook(postHook){var httpClient=this.getHttpClient();httpClient.setPostHook(postHook);}/**
|
|
6525
6543
|
* @description Sets the certificate content if MTLS authentication is needed
|
|
6526
6544
|
* @param {string} certContent - content for certs
|
|
6527
6545
|
* @param {string} keyContent - content for key
|
|
@@ -6544,43 +6562,43 @@ var tempState=this.authData.state;this.authData=localStorage.getItem("".concat(t
|
|
|
6544
6562
|
* @param {string} opts.state - (optional) An arbitrary string to be passed back with the login response. Used for client apps to associate login responses with a request.
|
|
6545
6563
|
* @param {string} opts.org - (optional) The organization name that would normally used when specifying an organization name when logging in. This is only used when a provider is also specified.
|
|
6546
6564
|
* @param {string} opts.provider - (optional) Authentication provider to log in with e.g. okta, adfs, salesforce, onelogin. This is only used when an org is also specified.
|
|
6547
|
-
*/},{key:"loginImplicitGrant",value:function loginImplicitGrant(clientId,redirectUri,opts){var
|
|
6565
|
+
*/},{key:"loginImplicitGrant",value:function loginImplicitGrant(clientId,redirectUri,opts){var _this4=this;// Check for auth token in hash
|
|
6548
6566
|
var hash=this._setValuesFromUrlHash();this.clientId=clientId;this.redirectUri=redirectUri;if(!opts)opts={};return new Promise(function(resolve,reject){// Abort if org and provider are not set together
|
|
6549
6567
|
if(opts.org&&!opts.provider){reject(new Error('opts.provider must be set if opts.org is set'));}else if(opts.provider&&!opts.org){reject(new Error('opts.org must be set if opts.provider is set'));}// Abort on auth error
|
|
6550
|
-
if(hash&&hash.error){hash.accessToken=undefined;
|
|
6551
|
-
|
|
6568
|
+
if(hash&&hash.error){hash.accessToken=undefined;_this4._saveSettings(hash);return reject(new Error("[".concat(hash.error,"] ").concat(hash.error_description)));}// Test token and proceed with login
|
|
6569
|
+
_this4._testTokenAccess().then(function(){if(!_this4.authData.state&&opts.state)_this4.authData.state=opts.state;resolve(_this4.authData);})["catch"](function(error){var query={client_id:encodeURIComponent(_this4.clientId),redirect_uri:encodeURIComponent(_this4.redirectUri),response_type:'token'};if(opts.state)query.state=encodeURIComponent(opts.state);if(opts.org)query.org=encodeURIComponent(opts.org);if(opts.provider)query.provider=encodeURIComponent(opts.provider);var url=_this4._buildAuthUrl('oauth/authorize',query);window.location.replace(url);});});}/**
|
|
6552
6570
|
* @description Initiates the client credentials login flow. Only available in node apps.
|
|
6553
6571
|
* @param {string} clientId - The client ID of an OAuth Implicit Grant client
|
|
6554
6572
|
* @param {string} clientSecret - The client secret of an OAuth Implicit Grant client
|
|
6555
|
-
*/},{key:"loginClientCredentialsGrant",value:function loginClientCredentialsGrant(clientId,clientSecret){var
|
|
6556
|
-
if(typeof window!=='undefined'){reject(new Error('The client credentials grant is not supported in a browser.'));return;}var headers={'Authorization':"Basic ".concat(authHeader)};var requestOptions=new HttpRequestOptions("".concat(loginBasePath,"/oauth/token"),"POST",headers,null,'grant_type=client_credentials',
|
|
6557
|
-
|
|
6558
|
-
|
|
6559
|
-
|
|
6560
|
-
resolve(
|
|
6561
|
-
if(error.response){
|
|
6573
|
+
*/},{key:"loginClientCredentialsGrant",value:function loginClientCredentialsGrant(clientId,clientSecret){var _this5=this;this.clientId=clientId;var authHeader=Buffer.from("".concat(clientId,":").concat(clientSecret)).toString('base64');var loginBasePath=this.config.getConfUrl('login',"https://login.".concat(this.config.environment));return new Promise(function(resolve,reject){// Block browsers from using client credentials
|
|
6574
|
+
if(typeof window!=='undefined'){reject(new Error('The client credentials grant is not supported in a browser.'));return;}var headers={'Authorization':"Basic ".concat(authHeader)};var requestOptions=new HttpRequestOptions("".concat(loginBasePath,"/oauth/token"),"POST",headers,null,'grant_type=client_credentials',_this5.timeout);var httpClient=_this5.getHttpClient();httpClient.request(requestOptions).then(function(response){// Logging
|
|
6575
|
+
_this5.config.logger.log('trace',response.status,'POST',"".concat(loginBasePath,"/oauth/token"),headers,response.headers,{grant_type:'client_credentials'},undefined);_this5.config.logger.log('debug',response.status,'POST',"".concat(loginBasePath,"/oauth/token"),headers,undefined,{grant_type:'client_credentials'},undefined);// Save access token
|
|
6576
|
+
_this5.setAccessToken(response.data['access_token']);// Set expiry time
|
|
6577
|
+
_this5.authData.tokenExpiryTime=new Date().getTime()+response.data['expires_in']*1000;_this5.authData.tokenExpiryTimeString=new Date(_this5.authData.tokenExpiryTime).toUTCString();// Return auth data
|
|
6578
|
+
resolve(_this5.authData);})["catch"](function(error){// Log error
|
|
6579
|
+
if(error.response){_this5.config.logger.log('error',error.response.status,'POST',"".concat(loginBasePath,"/oauth/token"),headers,error.response.headers,{grant_type:'client_credentials'},error.response.data);}reject(error);});});}/**
|
|
6562
6580
|
* @description Initiates the Saml2Bearerflow. Only available in node apps.
|
|
6563
6581
|
* @param {string} clientId - The client ID of an OAuth Implicit Grant client
|
|
6564
6582
|
* @param {string} clientSecret - The client secret of an OAuth Implicit Grant client
|
|
6565
6583
|
* @param {string} orgName - The orgName of an OAuth Implicit Grant client
|
|
6566
6584
|
* @param {string} assertion - The saml2bearer assertion
|
|
6567
|
-
*/},{key:"loginSaml2BearerGrant",value:function loginSaml2BearerGrant(clientId,clientSecret,orgName,assertion){var
|
|
6585
|
+
*/},{key:"loginSaml2BearerGrant",value:function loginSaml2BearerGrant(clientId,clientSecret,orgName,assertion){var _this6=this;this.clientId=clientId;var loginBasePath=this.config.getConfUrl('login',"https://login.".concat(this.config.environment));return new Promise(function(resolve,reject){if(typeof window!=='undefined'){reject(new Error('The saml2bearer grant is not supported in a browser.'));return;}var encodedData=Buffer.from(clientId+':'+clientSecret).toString('base64');var request=_this6._formAuthRequest(encodedData,{grant_type:'urn:ietf:params:oauth:grant-type:saml2-bearer',orgName:orgName,assertion:assertion});request.proxy=_this6.proxy;var bodyParam={grant_type:'urn:ietf:params:oauth:grant-type:saml2-bearer',orgName:orgName,assertion:assertion};// Handle response
|
|
6568
6586
|
request.then(function(response){// Logging
|
|
6569
|
-
|
|
6570
|
-
var access_token=response.data.access_token;
|
|
6571
|
-
resolve(
|
|
6572
|
-
if(error.response){
|
|
6587
|
+
_this6.config.logger.log('trace',response.status,'POST',"".concat(loginBasePath,"/oauth/token"),request.headers,response.headers,bodyParam,undefined);_this6.config.logger.log('debug',response.status,'POST',"".concat(loginBasePath,"/oauth/token"),request.headers,undefined,bodyParam,undefined);// Get access token from response
|
|
6588
|
+
var access_token=response.data.access_token;_this6.setAccessToken(access_token);_this6.authData.tokenExpiryTime=new Date().getTime()+response.data['expires_in']*1000;_this6.authData.tokenExpiryTimeString=new Date(_this6.authData.tokenExpiryTime).toUTCString();// Return auth data
|
|
6589
|
+
resolve(_this6.authData);})["catch"](function(error){// Log error
|
|
6590
|
+
if(error.response){_this6.config.logger.log('error',error.response.status,'POST',"".concat(loginBasePath,"/oauth/token"),request.headers,error.response.headers,bodyParam,error.response.data);}reject(error);});});}/**
|
|
6573
6591
|
* @description Completes the PKCE Code Authorization.
|
|
6574
6592
|
* @param {string} clientId - The client ID of an OAuth Code Authorization Grant client
|
|
6575
6593
|
* @param {string} codeVerifier - code verifier used to generate the code challenge
|
|
6576
6594
|
* @param {string} authCode - Authorization code
|
|
6577
6595
|
* @param {string} redirectUri - Authorized redirect URI for your Code Authorization client
|
|
6578
|
-
*/},{key:"authorizePKCEGrant",value:function authorizePKCEGrant(clientId,codeVerifier,authCode,redirectUri){var
|
|
6596
|
+
*/},{key:"authorizePKCEGrant",value:function authorizePKCEGrant(clientId,codeVerifier,authCode,redirectUri){var _this7=this;this.clientId=clientId;var loginBasePath=this.config.getConfUrl('login',"https://login.".concat(this.config.environment));return new Promise(function(resolve,reject){var headers={'Content-Type':'application/x-www-form-urlencoded'};var data=qs__default["default"].stringify({grant_type:'authorization_code',code:authCode,code_verifier:codeVerifier,client_id:clientId,redirect_uri:redirectUri});var requestOptions=new HttpRequestOptions("".concat(loginBasePath,"/oauth/token"),"POST",headers,null,data,_this7.timeout);var httpClient=_this7.getHttpClient();var bodyParam={grant_type:'authorization_code',code:authCode,code_verifier:codeVerifier,client_id:clientId,redirect_uri:redirectUri};// Handle response
|
|
6579
6597
|
httpClient.request(requestOptions).then(function(response){// Logging
|
|
6580
|
-
|
|
6581
|
-
var access_token=response.data.access_token;
|
|
6582
|
-
resolve(
|
|
6583
|
-
if(error.response){
|
|
6598
|
+
_this7.config.logger.log('trace',response.status,'POST',"".concat(loginBasePath,"/oauth/token"),requestOptions.headers,response.headers,bodyParam,undefined);_this7.config.logger.log('debug',response.status,'POST',"".concat(loginBasePath,"/oauth/token"),requestOptions.headers,undefined,bodyParam,undefined);// Get access token from response
|
|
6599
|
+
var access_token=response.data.access_token;_this7.setAccessToken(access_token);_this7.authData.tokenExpiryTime=new Date().getTime()+response.data['expires_in']*1000;_this7.authData.tokenExpiryTimeString=new Date(_this7.authData.tokenExpiryTime).toUTCString();// Return auth data
|
|
6600
|
+
resolve(_this7.authData);})["catch"](function(error){// Log error
|
|
6601
|
+
if(error.response){_this7.config.logger.log('error',error.response.status,'POST',"".concat(loginBasePath,"/oauth/token"),requestOptions.headers,error.response.headers,bodyParam,error.response.data);}reject(error);});});}/**
|
|
6584
6602
|
* @description Generate a random string used as PKCE Code Verifier - length = 43 to 128.
|
|
6585
6603
|
* @param {number} nChar - code length
|
|
6586
6604
|
*/},{key:"generatePKCECodeVerifier",value:function generatePKCECodeVerifier(nChar){if(nChar<43||nChar>128){throw new Error("PKCE Code Verifier (length) must be between 43 and 128 characters");}// Check for window
|
|
@@ -6599,23 +6617,23 @@ return reject(new Error("Code Challenge Error ".concat(error)));});});}}/**
|
|
|
6599
6617
|
* @param {string} opts.org - (optional) The organization name that would normally used when specifying an organization name when logging in. This is only used when a provider is also specified.
|
|
6600
6618
|
* @param {string} opts.provider - (optional) Authentication provider to log in with e.g. okta, adfs, salesforce, onelogin. This is only used when an org is also specified.
|
|
6601
6619
|
* @param {string} codeVerifier - (optional) code verifier used to generate the code challenge
|
|
6602
|
-
*/},{key:"loginPKCEGrant",value:function loginPKCEGrant(clientId,redirectUri,opts,codeVerifier){var
|
|
6620
|
+
*/},{key:"loginPKCEGrant",value:function loginPKCEGrant(clientId,redirectUri,opts,codeVerifier){var _this8=this;// Need Local Storage or non null codeVerifier as parameter
|
|
6603
6621
|
if(!this.hasLocalStorage&&!codeVerifier){throw new Error("loginPKCEGrant requires Local Storage or codeVerifier as input parameter");}// Check for auth code in query
|
|
6604
6622
|
var query=this._setValuesFromUrlQuery();this.clientId=clientId;this.redirectUri=redirectUri;this.codeVerifier=codeVerifier;if(!opts)opts={};return new Promise(function(resolve,reject){// Abort if org and provider are not set together
|
|
6605
6623
|
if(opts.org&&!opts.provider){reject(new Error('opts.provider must be set if opts.org is set'));}else if(opts.provider&&!opts.org){reject(new Error('opts.org must be set if opts.provider is set'));}// Abort on auth error
|
|
6606
6624
|
if(query&&query.error){// remove codeVerifier from session storage
|
|
6607
|
-
if(
|
|
6608
|
-
|
|
6609
|
-
if(query&&query.code){if(!
|
|
6610
|
-
if(
|
|
6611
|
-
|
|
6612
|
-
if(
|
|
6613
|
-
|
|
6614
|
-
if(
|
|
6615
|
-
|
|
6616
|
-
if(
|
|
6617
|
-
|
|
6618
|
-
if(
|
|
6625
|
+
if(_this8.hasLocalStorage){sessionStorage.removeItem("genesys_cloud_sdk_pkce_code_verifier");}// reset access token if any was stored
|
|
6626
|
+
_this8._saveSettings({accessToken:undefined});return reject(new Error("[".concat(query.error,"] ").concat(query.error_description)));}// Get token on auth code
|
|
6627
|
+
if(query&&query.code){if(!_this8.codeVerifier){// load codeVerifier from session storage
|
|
6628
|
+
if(_this8.hasLocalStorage){_this8.codeVerifier=sessionStorage.getItem("genesys_cloud_sdk_pkce_code_verifier");}}_this8.authorizePKCEGrant(_this8.clientId,_this8.codeVerifier,query.code,_this8.redirectUri).then(function(){// Do authenticated things
|
|
6629
|
+
_this8._testTokenAccess().then(function(){if(!_this8.authData.state&&query.state)_this8.authData.state=query.state;// remove codeVerifier from session storage
|
|
6630
|
+
if(_this8.hasLocalStorage){sessionStorage.removeItem("genesys_cloud_sdk_pkce_code_verifier");}resolve(_this8.authData);})["catch"](function(error){// Handle failure response
|
|
6631
|
+
_this8._saveSettings({accessToken:undefined});// remove codeVerifier from session storage
|
|
6632
|
+
if(_this8.hasLocalStorage){sessionStorage.removeItem("genesys_cloud_sdk_pkce_code_verifier");}return reject(new Error("[".concat(error.name,"] ").concat(error.msg)));});})["catch"](function(error){// Handle failure response
|
|
6633
|
+
_this8._saveSettings({accessToken:undefined});// remove codeVerifier from session storage
|
|
6634
|
+
if(_this8.hasLocalStorage){sessionStorage.removeItem("genesys_cloud_sdk_pkce_code_verifier");}return reject(new Error("[".concat(error.name,"] ").concat(error.msg)));});}else{// Test token (if previously stored) and proceed with login
|
|
6635
|
+
_this8._testTokenAccess().then(function(){if(!_this8.authData.state&&opts.state)_this8.authData.state=opts.state;resolve(_this8.authData);})["catch"](function(error){if(!_this8.codeVerifier){_this8.codeVerifier=_this8.generatePKCECodeVerifier(128);// save codeVerifier in session storage
|
|
6636
|
+
if(_this8.hasLocalStorage){sessionStorage.setItem("genesys_cloud_sdk_pkce_code_verifier",_this8.codeVerifier);}}_this8.computePKCECodeChallenge(_this8.codeVerifier).then(function(codeChallenge){var tokenQuery={client_id:encodeURIComponent(_this8.clientId),redirect_uri:encodeURIComponent(_this8.redirectUri),code_challenge:encodeURIComponent(codeChallenge),response_type:'code',code_challenge_method:'S256'};if(opts.state)tokenQuery.state=encodeURIComponent(opts.state);if(opts.org)tokenQuery.org=encodeURIComponent(opts.org);if(opts.provider)tokenQuery.provider=encodeURIComponent(opts.provider);var url=_this8._buildAuthUrl('oauth/authorize',tokenQuery);window.location.replace(url);})["catch"](function(err){return reject(new Error("[".concat(err.name,"]")));});});}});}/**
|
|
6619
6637
|
* @description Parses the URL Query, grabs the code, and clears the query param. If no code is found, no action is taken.
|
|
6620
6638
|
*/},{key:"_setValuesFromUrlQuery",value:function _setValuesFromUrlQuery(){// Check for window
|
|
6621
6639
|
if(!(typeof window!=='undefined'&&window.location.search))return;// Process query string
|
|
@@ -6632,42 +6650,42 @@ document.body.scrollTop=scrollV;document.body.scrollLeft=scrollH;}return query;}
|
|
|
6632
6650
|
* @param {string} clientSecret - The client secret of an OAuth Code Authorization Grant client
|
|
6633
6651
|
* @param {string} authCode - Authorization code
|
|
6634
6652
|
* @param {string} redirectUri - Authorized redirect URI for your Code Authorization client
|
|
6635
|
-
*/},{key:"loginCodeAuthorizationGrant",value:function loginCodeAuthorizationGrant(clientId,clientSecret,authCode,redirectUri){var
|
|
6636
|
-
|
|
6653
|
+
*/},{key:"loginCodeAuthorizationGrant",value:function loginCodeAuthorizationGrant(clientId,clientSecret,authCode,redirectUri){var _this9=this;this.clientId=clientId;this.clientSecret=clientSecret;return new Promise(function(resolve,reject){if(typeof window!=='undefined'){reject(new Error('The Code Authorization grant is not supported in a browser.'));return;}var encodedData=Buffer.from(clientId+':'+clientSecret).toString('base64');var request=_this9._formAuthRequest(encodedData,{grant_type:'authorization_code',code:authCode,redirect_uri:redirectUri});request.proxy=_this9.proxy;var bodyParam={grant_type:'authorization_code',code:authCode,redirect_uri:redirectUri};// Handle response
|
|
6654
|
+
_this9._handleCodeAuthorizationResponse(request,bodyParam,resolve,reject);});}/**
|
|
6637
6655
|
* @description Requests a new access token for Code Authorization. Only available in node apps.
|
|
6638
6656
|
* @param {string} clientId - The client ID of an OAuth Code Authorization Grant client
|
|
6639
6657
|
* @param {string} clientSecret - The client secret of an OAuth Code Authorization Grant client
|
|
6640
6658
|
* @param {string} authCode - Authorization code
|
|
6641
6659
|
* @param {string} redirectUri - Authorized redirect URI for your Code Authorization client
|
|
6642
|
-
*/},{key:"refreshCodeAuthorizationGrant",value:function refreshCodeAuthorizationGrant(clientId,clientSecret,refreshToken){var
|
|
6643
|
-
|
|
6660
|
+
*/},{key:"refreshCodeAuthorizationGrant",value:function refreshCodeAuthorizationGrant(clientId,clientSecret,refreshToken){var _this10=this;return new Promise(function(resolve,reject){if(typeof window!=='undefined'){reject(new Error('The Code Authorization grant is not supported in a browser.'));return;}var encodedData=Buffer.from(clientId+':'+clientSecret).toString('base64');var request=_this10._formAuthRequest(encodedData,{grant_type:'refresh_token',refresh_token:refreshToken});request.proxy=_this10.proxy;var bodyParam={grant_type:'refresh_token',refresh_token:refreshToken};// Handle response
|
|
6661
|
+
_this10._handleCodeAuthorizationResponse(request,bodyParam,resolve,reject);});}/**
|
|
6644
6662
|
* @description Handles the response for code auth requests
|
|
6645
6663
|
* @param {object} request - Authorization request object
|
|
6646
6664
|
* @param {object} bodyParam - Input body data for authorization request
|
|
6647
6665
|
* @param {function} resolve - Promise resolve callback
|
|
6648
6666
|
* @param {function} reject - Promise reject callback
|
|
6649
|
-
*/},{key:"_handleCodeAuthorizationResponse",value:function _handleCodeAuthorizationResponse(request,bodyParam,resolve,reject){var
|
|
6650
|
-
|
|
6651
|
-
var access_token=response.data.access_token;var refresh_token=response.data.refresh_token;
|
|
6652
|
-
resolve(
|
|
6653
|
-
if(error.response){
|
|
6667
|
+
*/},{key:"_handleCodeAuthorizationResponse",value:function _handleCodeAuthorizationResponse(request,bodyParam,resolve,reject){var _this11=this;var loginBasePath=this.config.getConfUrl('login',"https://login.".concat(this.config.environment));request.then(function(response){// Logging
|
|
6668
|
+
_this11.config.logger.log('trace',response.status,'POST',"".concat(loginBasePath,"/oauth/token"),request.headers,response.headers,bodyParam,undefined);_this11.config.logger.log('debug',response.status,'POST',"".concat(loginBasePath,"/oauth/token"),request.headers,undefined,bodyParam,undefined);// Get access token from response
|
|
6669
|
+
var access_token=response.data.access_token;var refresh_token=response.data.refresh_token;_this11.setAccessToken(access_token);_this11.authData.refreshToken=refresh_token;_this11.authData.tokenExpiryTime=new Date().getTime()+response.data['expires_in']*1000;_this11.authData.tokenExpiryTimeString=new Date(_this11.authData.tokenExpiryTime).toUTCString();// Return auth data
|
|
6670
|
+
resolve(_this11.authData);})["catch"](function(error){// Log error
|
|
6671
|
+
if(error.response){_this11.config.logger.log('error',error.response.status,'POST',"".concat(loginBasePath,"/oauth/token"),request.headers,error.response.headers,bodyParam,error.response.data);}reject(error);});}/**
|
|
6654
6672
|
* @description Utility function to create the request for auth requests
|
|
6655
6673
|
* @param {string} encodedData - Base64 encoded client and clientSecret pair
|
|
6656
6674
|
* @param {object} data - data to url form encode
|
|
6657
6675
|
*/},{key:"_formAuthRequest",value:function _formAuthRequest(encodedData,data){var loginBasePath=this.config.getConfUrl('login',"https://login.".concat(this.config.environment));var headers={'Authorization':'Basic '+encodedData,'Content-Type':'application/x-www-form-urlencoded'};var requestOptions=new HttpRequestOptions("".concat(loginBasePath,"/oauth/token"),"POST",headers,null,qs__default["default"].stringify(data),this.timeout);var httpClient=this.getHttpClient();return httpClient.request(requestOptions);}/**
|
|
6658
6676
|
* @description Handles an expired access token. Only available in node apps.
|
|
6659
6677
|
* @param {string} statusCode - The status code of a request
|
|
6660
|
-
*/},{key:"_handleExpiredAccessToken",value:function _handleExpiredAccessToken(){var
|
|
6661
|
-
|
|
6662
|
-
|
|
6678
|
+
*/},{key:"_handleExpiredAccessToken",value:function _handleExpiredAccessToken(){var _this12=this;return new Promise(function(resolve,reject){if(typeof window!=='undefined'){reject(new Error('This method is not supported in a browser.'));return;}if(!_this12.refreshInProgress){_this12.refreshInProgress=true;_this12.refreshCodeAuthorizationGrant(_this12.clientId,_this12.clientSecret,_this12.authData.refreshToken).then(function(){_this12.refreshInProgress=false;resolve();})["catch"](function(err){// Handle failure response
|
|
6679
|
+
_this12.refreshInProgress=false;reject(err);});}else{// Wait refresh_token_wait_max seconds for other thread to complete refresh
|
|
6680
|
+
_this12._sleep(_this12.config.refresh_token_wait_max).then(function(){if(_this12.refreshInProgress)reject(new Error("Token refresh took longer than ".concat(_this12.config.refresh_token_wait_max," seconds")));else resolve();});}});}/**
|
|
6663
6681
|
* @description Sleeps for a defined length
|
|
6664
6682
|
* @param {int} millis - Length to sleep in milliseconds
|
|
6665
6683
|
*/},{key:"_sleep",value:function _sleep(millis){return new Promise(function(resolve){return setTimeout(resolve,millis);});}/**
|
|
6666
6684
|
* @description Loads token from storage, if enabled, and checks to ensure it works.
|
|
6667
|
-
*/},{key:"_testTokenAccess",value:function _testTokenAccess(){var
|
|
6668
|
-
|
|
6669
|
-
if(!
|
|
6670
|
-
|
|
6685
|
+
*/},{key:"_testTokenAccess",value:function _testTokenAccess(){var _this13=this;return new Promise(function(resolve,reject){// Load from storage
|
|
6686
|
+
_this13._loadSettings();// Check if there is a token to test
|
|
6687
|
+
if(!_this13.authentications['PureCloud OAuth'].accessToken){reject(new Error('Token is not set'));return;}// Test token
|
|
6688
|
+
_this13.callApi('/api/v2/tokens/me','GET',null,null,null,null,null,['PureCloud OAuth'],['application/json'],['application/json']).then(function(){resolve();})["catch"](function(error){_this13._saveSettings({accessToken:undefined});reject(error);});});}/**
|
|
6671
6689
|
* @description Parses the URL hash, grabs the access token, and clears the hash. If no access token is found, no action is taken.
|
|
6672
6690
|
*/},{key:"_setValuesFromUrlHash",value:function _setValuesFromUrlHash(){// Check for window
|
|
6673
6691
|
if(!(typeof window!=='undefined'&&window.location.hash))return;// Process hash string into object
|
|
@@ -6712,7 +6730,7 @@ this.setAccessToken(this.authentications['PureCloud OAuth'].accessToken);}/**
|
|
|
6712
6730
|
* @param {String} path The path to append to the base URL.
|
|
6713
6731
|
* @param {Object} pathParams The parameter values to append.
|
|
6714
6732
|
* @returns {String} The encoded path with parameter values substituted.
|
|
6715
|
-
*/},{key:"buildUrl",value:function buildUrl(path,pathParams){var
|
|
6733
|
+
*/},{key:"buildUrl",value:function buildUrl(path,pathParams){var _this14=this;if(!path.match(/^\//)){path="/".concat(path);}var url=this.config.getConfUrl('api',this.config.basePath)+path;url=url.replace(/\{([\w-]+)\}/g,function(fullMatch,key){var value;if(pathParams.hasOwnProperty(key)){value=_this14.paramToString(pathParams[key]);}else{value=fullMatch;}return encodeURIComponent(value);});return url;}/**
|
|
6716
6734
|
* Checks whether the given content type represents JSON.<br>
|
|
6717
6735
|
* JSON content type examples:<br>
|
|
6718
6736
|
* <ul>
|
|
@@ -6753,7 +6771,7 @@ return param.map(this.paramToString);default:throw new Error("Unknown collection
|
|
|
6753
6771
|
* Applies authentication headers to the request.
|
|
6754
6772
|
* @param {Object} request The axios request config object.
|
|
6755
6773
|
* @param {Array.<String>} authNames An array of authentication method names.
|
|
6756
|
-
*/},{key:"applyAuthToRequest",value:function applyAuthToRequest(request,authNames){var
|
|
6774
|
+
*/},{key:"applyAuthToRequest",value:function applyAuthToRequest(request,authNames){var _this15=this;authNames.forEach(function(authName){var auth=_this15.authentications[authName];switch(auth.type){case'basic':if(auth.username||auth.password){request.auth={username:auth.username||'',password:auth.password||''};}break;case'apiKey':if(auth.apiKey){var data={};if(auth.apiKeyPrefix){data[auth.name]="".concat(auth.apiKeyPrefix," ").concat(auth.apiKey);}else{data[auth.name]=auth.apiKey;}if(auth['in']==='header'){request.headers=_this15.addHeaders(request.headers,data);}else{request.setParams(_this15.serialize(data));}}break;case'oauth2':if(auth.accessToken){request.headers=_this15.addHeaders(request.headers,{'Authorization':"Bearer ".concat(auth.accessToken)});}break;default:throw new Error("Unknown authentication type: ".concat(auth.type));}});}/**
|
|
6757
6775
|
* @description Sets the proxy agent axios will use for requests
|
|
6758
6776
|
* @param {any} agent - The proxy agent
|
|
6759
6777
|
*/},{key:"setProxyAgent",value:function setProxyAgent(agent){this.proxyAgent=agent;var httpClient=this.getHttpClient();httpClient.setHttpsAgent(this.proxyAgent);}/**
|
|
@@ -6770,7 +6788,7 @@ return param.map(this.paramToString);default:throw new Error("Unknown collection
|
|
|
6770
6788
|
* @param {Array.<String>} accepts An array of acceptable response MIME types.types or the
|
|
6771
6789
|
* constructor for a complex type.
|
|
6772
6790
|
* @returns {Promise} A Promise object.
|
|
6773
|
-
*/},{key:"callApi",value:function callApi(path,httpMethod,pathParams,queryParams,headerParams,formParams,bodyParam,authNames,contentTypes,accepts){var
|
|
6791
|
+
*/},{key:"callApi",value:function callApi(path,httpMethod,pathParams,queryParams,headerParams,formParams,bodyParam,authNames,contentTypes,accepts){var _this16=this;return new Promise(function(resolve,reject){sendRequest(_this16);function sendRequest(that){var url=that.buildUrl(path,pathParams);var request=new HttpRequestOptions(url,httpMethod,null,that.serialize(queryParams),null,that.timeout);// apply authentications
|
|
6774
6792
|
that.applyAuthToRequest(request,authNames);// set header parameters
|
|
6775
6793
|
var defaultHeaders=that.defaultHeaders;var normalizedHeaderParams=that.normalizeParams(headerParams);request.headers=that.addHeaders(request.headers,defaultHeaders,normalizedHeaderParams);var contentType=that.jsonPreferredMime(contentTypes);if(contentType){request.headers['Content-Type']=contentType;}else if(!request.headers['Content-Type']){request.headers['Content-Type']='application/json';}if(contentType==='application/x-www-form-urlencoded'){request.setData(that.normalizeParams(formParams));}else if(contentType=='multipart/form-data'){var _formParams=that.normalizeParams(formParams);for(var key in _formParams){if(_formParams.hasOwnProperty(key)){// Looks like axios handles files and forms the same way
|
|
6776
6794
|
var formData=new FormData();formData.set(key,_formParams[key]);request.setData(formData);}}}else if(bodyParam){request.setData(bodyParam);}var accept=that.jsonPreferredMime(accepts);if(accept){request.headers['Accept']=accept;}var httpClient=that.getHttpClient();httpClient.request(request).then(function(response){// Build response object
|
|
@@ -6780,7 +6798,7 @@ resolve(data);})["catch"](function(error){var data=error;if(error.response&&erro
|
|
|
6780
6798
|
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 AgentAssistantsApi=/*#__PURE__*/function(){/**
|
|
6781
6799
|
* AgentAssistants service.
|
|
6782
6800
|
* @module purecloud-platform-client-v2/api/AgentAssistantsApi
|
|
6783
|
-
* @version
|
|
6801
|
+
* @version 215.0.0
|
|
6784
6802
|
*//**
|
|
6785
6803
|
* Constructs a new AgentAssistantsApi.
|
|
6786
6804
|
* @alias module:purecloud-platform-client-v2/api/AgentAssistantsApi
|
|
@@ -6881,7 +6899,7 @@ if(queueId===undefined||queueId===null){throw'Missing the required parameter "qu
|
|
|
6881
6899
|
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling putAssistantQueue';}return this.apiClient.callApi('/api/v2/assistants/{assistantId}/queues/{queueId}','PUT',{'assistantId':assistantId,'queueId':queueId},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}}]);}();var AgentCopilotApi=/*#__PURE__*/function(){/**
|
|
6882
6900
|
* AgentCopilot service.
|
|
6883
6901
|
* @module purecloud-platform-client-v2/api/AgentCopilotApi
|
|
6884
|
-
* @version
|
|
6902
|
+
* @version 215.0.0
|
|
6885
6903
|
*//**
|
|
6886
6904
|
* Constructs a new AgentCopilotApi.
|
|
6887
6905
|
* @alias module:purecloud-platform-client-v2/api/AgentCopilotApi
|
|
@@ -6903,7 +6921,7 @@ if(assistantId===undefined||assistantId===null){throw'Missing the required param
|
|
|
6903
6921
|
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling putAssistantCopilot';}return this.apiClient.callApi('/api/v2/assistants/{assistantId}/copilot','PUT',{'assistantId':assistantId},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}}]);}();var AgentUIApi=/*#__PURE__*/function(){/**
|
|
6904
6922
|
* AgentUI service.
|
|
6905
6923
|
* @module purecloud-platform-client-v2/api/AgentUIApi
|
|
6906
|
-
* @version
|
|
6924
|
+
* @version 215.0.0
|
|
6907
6925
|
*//**
|
|
6908
6926
|
* Constructs a new AgentUIApi.
|
|
6909
6927
|
* @alias module:purecloud-platform-client-v2/api/AgentUIApi
|
|
@@ -6937,7 +6955,7 @@ if(agentId===undefined||agentId===null){throw'Missing the required parameter "ag
|
|
|
6937
6955
|
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling putUsersAgentuiAgentsAutoanswerAgentIdSettings';}return this.apiClient.callApi('/api/v2/users/agentui/agents/autoanswer/{agentId}/settings','PUT',{'agentId':agentId},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}}]);}();var AlertingApi=/*#__PURE__*/function(){/**
|
|
6938
6956
|
* Alerting service.
|
|
6939
6957
|
* @module purecloud-platform-client-v2/api/AlertingApi
|
|
6940
|
-
* @version
|
|
6958
|
+
* @version 215.0.0
|
|
6941
6959
|
*//**
|
|
6942
6960
|
* Constructs a new AlertingApi.
|
|
6943
6961
|
* @alias module:purecloud-platform-client-v2/api/AlertingApi
|
|
@@ -6950,6 +6968,9 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
6950
6968
|
* @param {String} alertId Alert ID
|
|
6951
6969
|
*/return _createClass(AlertingApi,[{key:"deleteAlertingAlert",value:function deleteAlertingAlert(alertId){// verify the required parameter 'alertId' is set
|
|
6952
6970
|
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']);}/**
|
|
6971
|
+
* Delete all alerts for the user
|
|
6972
|
+
*
|
|
6973
|
+
*/},{key:"deleteAlertingAlertsAll",value:function deleteAlertingAlertsAll(){return this.apiClient.callApi('/api/v2/alerting/alerts/all','DELETE',{},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
6953
6974
|
* Delete an interaction stats alert
|
|
6954
6975
|
* Apps should migrate to use DELETE /api/v2/alerting/alerts/{alertId}.
|
|
6955
6976
|
* @param {String} alertId Alert ID
|
|
@@ -7020,6 +7041,11 @@ if(ruleId===undefined||ruleId===null){throw'Missing the required parameter "rule
|
|
|
7020
7041
|
* @param {Object} opts.body
|
|
7021
7042
|
*/},{key:"patchAlertingAlert",value:function patchAlertingAlert(alertId,opts){opts=opts||{};// verify the required parameter 'alertId' is set
|
|
7022
7043
|
if(alertId===undefined||alertId===null){throw'Missing the required parameter "alertId" when calling patchAlertingAlert';}return this.apiClient.callApi('/api/v2/alerting/alerts/{alertId}','PATCH',{'alertId':alertId},{},{},{},opts['body'],['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
7044
|
+
* Updates all alerts
|
|
7045
|
+
*
|
|
7046
|
+
* @param {Object} opts Optional parameters
|
|
7047
|
+
* @param {Object} opts.body
|
|
7048
|
+
*/},{key:"patchAlertingAlertsAll",value:function patchAlertingAlertsAll(opts){opts=opts||{};return this.apiClient.callApi('/api/v2/alerting/alerts/all','PATCH',{},{},{},{},opts['body'],['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
7023
7049
|
* Bulk alert updates
|
|
7024
7050
|
*
|
|
7025
7051
|
* @param {Object} body
|
|
@@ -7094,7 +7120,7 @@ if(ruleId===undefined||ruleId===null){throw'Missing the required parameter "rule
|
|
|
7094
7120
|
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(){/**
|
|
7095
7121
|
* Analytics service.
|
|
7096
7122
|
* @module purecloud-platform-client-v2/api/AnalyticsApi
|
|
7097
|
-
* @version
|
|
7123
|
+
* @version 215.0.0
|
|
7098
7124
|
*//**
|
|
7099
7125
|
* Constructs a new AnalyticsApi.
|
|
7100
7126
|
* @alias module:purecloud-platform-client-v2/api/AnalyticsApi
|
|
@@ -7766,7 +7792,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
7766
7792
|
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling putAnalyticsDataretentionSettings';}return this.apiClient.callApi('/api/v2/analytics/dataretention/settings','PUT',{},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}}]);}();var ArchitectApi=/*#__PURE__*/function(){/**
|
|
7767
7793
|
* Architect service.
|
|
7768
7794
|
* @module purecloud-platform-client-v2/api/ArchitectApi
|
|
7769
|
-
* @version
|
|
7795
|
+
* @version 215.0.0
|
|
7770
7796
|
*//**
|
|
7771
7797
|
* Constructs a new ArchitectApi.
|
|
7772
7798
|
* @alias module:purecloud-platform-client-v2/api/ArchitectApi
|
|
@@ -8858,7 +8884,7 @@ if(milestoneId===undefined||milestoneId===null){throw'Missing the required param
|
|
|
8858
8884
|
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(){/**
|
|
8859
8885
|
* Audit service.
|
|
8860
8886
|
* @module purecloud-platform-client-v2/api/AuditApi
|
|
8861
|
-
* @version
|
|
8887
|
+
* @version 215.0.0
|
|
8862
8888
|
*//**
|
|
8863
8889
|
* Constructs a new AuditApi.
|
|
8864
8890
|
* @alias module:purecloud-platform-client-v2/api/AuditApi
|
|
@@ -8908,7 +8934,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
8908
8934
|
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling postAuditsQueryRealtimeRelated';}return this.apiClient.callApi('/api/v2/audits/query/realtime/related','POST',{},{'expand':this.apiClient.buildCollectionParam(opts['expand'],'multi')},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}}]);}();var AuthorizationApi=/*#__PURE__*/function(){/**
|
|
8909
8935
|
* Authorization service.
|
|
8910
8936
|
* @module purecloud-platform-client-v2/api/AuthorizationApi
|
|
8911
|
-
* @version
|
|
8937
|
+
* @version 215.0.0
|
|
8912
8938
|
*//**
|
|
8913
8939
|
* Constructs a new AuthorizationApi.
|
|
8914
8940
|
* @alias module:purecloud-platform-client-v2/api/AuthorizationApi
|
|
@@ -9231,7 +9257,7 @@ if(subjectId===undefined||subjectId===null){throw'Missing the required parameter
|
|
|
9231
9257
|
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(){/**
|
|
9232
9258
|
* Billing service.
|
|
9233
9259
|
* @module purecloud-platform-client-v2/api/BillingApi
|
|
9234
|
-
* @version
|
|
9260
|
+
* @version 215.0.0
|
|
9235
9261
|
*//**
|
|
9236
9262
|
* Constructs a new BillingApi.
|
|
9237
9263
|
* @alias module:purecloud-platform-client-v2/api/BillingApi
|
|
@@ -9255,7 +9281,7 @@ if(endDate===undefined||endDate===null){throw'Missing the required parameter "en
|
|
|
9255
9281
|
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(){/**
|
|
9256
9282
|
* CarrierServices service.
|
|
9257
9283
|
* @module purecloud-platform-client-v2/api/CarrierServicesApi
|
|
9258
|
-
* @version
|
|
9284
|
+
* @version 215.0.0
|
|
9259
9285
|
*//**
|
|
9260
9286
|
* Constructs a new CarrierServicesApi.
|
|
9261
9287
|
* @alias module:purecloud-platform-client-v2/api/CarrierServicesApi
|
|
@@ -9275,7 +9301,7 @@ if(phoneNumber===undefined||phoneNumber===null){throw'Missing the required param
|
|
|
9275
9301
|
*/},{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(){/**
|
|
9276
9302
|
* Chat service.
|
|
9277
9303
|
* @module purecloud-platform-client-v2/api/ChatApi
|
|
9278
|
-
* @version
|
|
9304
|
+
* @version 215.0.0
|
|
9279
9305
|
*//**
|
|
9280
9306
|
* Constructs a new ChatApi.
|
|
9281
9307
|
* @alias module:purecloud-platform-client-v2/api/ChatApi
|
|
@@ -9500,7 +9526,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
9500
9526
|
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(){/**
|
|
9501
9527
|
* Coaching service.
|
|
9502
9528
|
* @module purecloud-platform-client-v2/api/CoachingApi
|
|
9503
|
-
* @version
|
|
9529
|
+
* @version 215.0.0
|
|
9504
9530
|
*//**
|
|
9505
9531
|
* Constructs a new CoachingApi.
|
|
9506
9532
|
* @alias module:purecloud-platform-client-v2/api/CoachingApi
|
|
@@ -9653,7 +9679,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
9653
9679
|
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(){/**
|
|
9654
9680
|
* ContentManagement service.
|
|
9655
9681
|
* @module purecloud-platform-client-v2/api/ContentManagementApi
|
|
9656
|
-
* @version
|
|
9682
|
+
* @version 215.0.0
|
|
9657
9683
|
*//**
|
|
9658
9684
|
* Constructs a new ContentManagementApi.
|
|
9659
9685
|
* @alias module:purecloud-platform-client-v2/api/ContentManagementApi
|
|
@@ -9935,7 +9961,7 @@ if(tagId===undefined||tagId===null){throw'Missing the required parameter "tagId"
|
|
|
9935
9961
|
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(){/**
|
|
9936
9962
|
* Conversations service.
|
|
9937
9963
|
* @module purecloud-platform-client-v2/api/ConversationsApi
|
|
9938
|
-
* @version
|
|
9964
|
+
* @version 215.0.0
|
|
9939
9965
|
*//**
|
|
9940
9966
|
* Constructs a new ConversationsApi.
|
|
9941
9967
|
* @alias module:purecloud-platform-client-v2/api/ConversationsApi
|
|
@@ -11682,7 +11708,7 @@ if(conversationId===undefined||conversationId===null){throw'Missing the required
|
|
|
11682
11708
|
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(){/**
|
|
11683
11709
|
* DataExtensions service.
|
|
11684
11710
|
* @module purecloud-platform-client-v2/api/DataExtensionsApi
|
|
11685
|
-
* @version
|
|
11711
|
+
* @version 215.0.0
|
|
11686
11712
|
*//**
|
|
11687
11713
|
* Constructs a new DataExtensionsApi.
|
|
11688
11714
|
* @alias module:purecloud-platform-client-v2/api/DataExtensionsApi
|
|
@@ -11703,7 +11729,7 @@ if(coretypeName===undefined||coretypeName===null){throw'Missing the required par
|
|
|
11703
11729
|
*/},{key:"getDataextensionsLimits",value:function getDataextensionsLimits(){return this.apiClient.callApi('/api/v2/dataextensions/limits','GET',{},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}}]);}();var DataPrivacyApi=/*#__PURE__*/function(){/**
|
|
11704
11730
|
* DataPrivacy service.
|
|
11705
11731
|
* @module purecloud-platform-client-v2/api/DataPrivacyApi
|
|
11706
|
-
* @version
|
|
11732
|
+
* @version 215.0.0
|
|
11707
11733
|
*//**
|
|
11708
11734
|
* Constructs a new DataPrivacyApi.
|
|
11709
11735
|
* @alias module:purecloud-platform-client-v2/api/DataPrivacyApi
|
|
@@ -11743,7 +11769,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
11743
11769
|
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling postDataprivacyMaskingrulesValidate';}return this.apiClient.callApi('/api/v2/dataprivacy/maskingrules/validate','POST',{},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}}]);}();var DownloadsApi=/*#__PURE__*/function(){/**
|
|
11744
11770
|
* Downloads service.
|
|
11745
11771
|
* @module purecloud-platform-client-v2/api/DownloadsApi
|
|
11746
|
-
* @version
|
|
11772
|
+
* @version 215.0.0
|
|
11747
11773
|
*//**
|
|
11748
11774
|
* Constructs a new DownloadsApi.
|
|
11749
11775
|
* @alias module:purecloud-platform-client-v2/api/DownloadsApi
|
|
@@ -11762,7 +11788,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
11762
11788
|
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(){/**
|
|
11763
11789
|
* Emails service.
|
|
11764
11790
|
* @module purecloud-platform-client-v2/api/EmailsApi
|
|
11765
|
-
* @version
|
|
11791
|
+
* @version 215.0.0
|
|
11766
11792
|
*//**
|
|
11767
11793
|
* Constructs a new EmailsApi.
|
|
11768
11794
|
* @alias module:purecloud-platform-client-v2/api/EmailsApi
|
|
@@ -11780,7 +11806,7 @@ if(downloadId===undefined||downloadId===null){throw'Missing the required paramet
|
|
|
11780
11806
|
*/},{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 EmployeeEngagementApi=/*#__PURE__*/function(){/**
|
|
11781
11807
|
* EmployeeEngagement service.
|
|
11782
11808
|
* @module purecloud-platform-client-v2/api/EmployeeEngagementApi
|
|
11783
|
-
* @version
|
|
11809
|
+
* @version 215.0.0
|
|
11784
11810
|
*//**
|
|
11785
11811
|
* Constructs a new EmployeeEngagementApi.
|
|
11786
11812
|
* @alias module:purecloud-platform-client-v2/api/EmployeeEngagementApi
|
|
@@ -11818,7 +11844,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
11818
11844
|
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling postEmployeeengagementRecognitions';}return this.apiClient.callApi('/api/v2/employeeengagement/recognitions','POST',{},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}}]);}();var EventsApi=/*#__PURE__*/function(){/**
|
|
11819
11845
|
* Events service.
|
|
11820
11846
|
* @module purecloud-platform-client-v2/api/EventsApi
|
|
11821
|
-
* @version
|
|
11847
|
+
* @version 215.0.0
|
|
11822
11848
|
*//**
|
|
11823
11849
|
* Constructs a new EventsApi.
|
|
11824
11850
|
* @alias module:purecloud-platform-client-v2/api/EventsApi
|
|
@@ -11843,7 +11869,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
11843
11869
|
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(){/**
|
|
11844
11870
|
* ExternalContacts service.
|
|
11845
11871
|
* @module purecloud-platform-client-v2/api/ExternalContactsApi
|
|
11846
|
-
* @version
|
|
11872
|
+
* @version 215.0.0
|
|
11847
11873
|
*//**
|
|
11848
11874
|
* Constructs a new ExternalContactsApi.
|
|
11849
11875
|
* @alias module:purecloud-platform-client-v2/api/ExternalContactsApi
|
|
@@ -12435,7 +12461,7 @@ if(relationshipId===undefined||relationshipId===null){throw'Missing the required
|
|
|
12435
12461
|
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(){/**
|
|
12436
12462
|
* Fax service.
|
|
12437
12463
|
* @module purecloud-platform-client-v2/api/FaxApi
|
|
12438
|
-
* @version
|
|
12464
|
+
* @version 215.0.0
|
|
12439
12465
|
*//**
|
|
12440
12466
|
* Constructs a new FaxApi.
|
|
12441
12467
|
* @alias module:purecloud-platform-client-v2/api/FaxApi
|
|
@@ -12484,7 +12510,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
12484
12510
|
*/},{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(){/**
|
|
12485
12511
|
* Flows service.
|
|
12486
12512
|
* @module purecloud-platform-client-v2/api/FlowsApi
|
|
12487
|
-
* @version
|
|
12513
|
+
* @version 215.0.0
|
|
12488
12514
|
*//**
|
|
12489
12515
|
* Constructs a new FlowsApi.
|
|
12490
12516
|
* @alias module:purecloud-platform-client-v2/api/FlowsApi
|
|
@@ -12532,7 +12558,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
12532
12558
|
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(){/**
|
|
12533
12559
|
* Gamification service.
|
|
12534
12560
|
* @module purecloud-platform-client-v2/api/GamificationApi
|
|
12535
|
-
* @version
|
|
12561
|
+
* @version 215.0.0
|
|
12536
12562
|
*//**
|
|
12537
12563
|
* Constructs a new GamificationApi.
|
|
12538
12564
|
* @alias module:purecloud-platform-client-v2/api/GamificationApi
|
|
@@ -13091,7 +13117,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
13091
13117
|
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(){/**
|
|
13092
13118
|
* GeneralDataProtectionRegulation service.
|
|
13093
13119
|
* @module purecloud-platform-client-v2/api/GeneralDataProtectionRegulationApi
|
|
13094
|
-
* @version
|
|
13120
|
+
* @version 215.0.0
|
|
13095
13121
|
*//**
|
|
13096
13122
|
* Constructs a new GeneralDataProtectionRegulationApi.
|
|
13097
13123
|
* @alias module:purecloud-platform-client-v2/api/GeneralDataProtectionRegulationApi
|
|
@@ -13126,7 +13152,7 @@ if(searchValue===undefined||searchValue===null){throw'Missing the required param
|
|
|
13126
13152
|
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(){/**
|
|
13127
13153
|
* Geolocation service.
|
|
13128
13154
|
* @module purecloud-platform-client-v2/api/GeolocationApi
|
|
13129
|
-
* @version
|
|
13155
|
+
* @version 215.0.0
|
|
13130
13156
|
*//**
|
|
13131
13157
|
* Constructs a new GeolocationApi.
|
|
13132
13158
|
* @alias module:purecloud-platform-client-v2/api/GeolocationApi
|
|
@@ -13160,7 +13186,7 @@ if(clientId===undefined||clientId===null){throw'Missing the required parameter "
|
|
|
13160
13186
|
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(){/**
|
|
13161
13187
|
* Greetings service.
|
|
13162
13188
|
* @module purecloud-platform-client-v2/api/GreetingsApi
|
|
13163
|
-
* @version
|
|
13189
|
+
* @version 215.0.0
|
|
13164
13190
|
*//**
|
|
13165
13191
|
* Constructs a new GreetingsApi.
|
|
13166
13192
|
* @alias module:purecloud-platform-client-v2/api/GreetingsApi
|
|
@@ -13267,7 +13293,7 @@ if(userId===undefined||userId===null){throw'Missing the required parameter "user
|
|
|
13267
13293
|
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(){/**
|
|
13268
13294
|
* Groups service.
|
|
13269
13295
|
* @module purecloud-platform-client-v2/api/GroupsApi
|
|
13270
|
-
* @version
|
|
13296
|
+
* @version 215.0.0
|
|
13271
13297
|
*//**
|
|
13272
13298
|
* Constructs a new GroupsApi.
|
|
13273
13299
|
* @alias module:purecloud-platform-client-v2/api/GroupsApi
|
|
@@ -13400,7 +13426,7 @@ if(groupId===undefined||groupId===null){throw'Missing the required parameter "gr
|
|
|
13400
13426
|
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(){/**
|
|
13401
13427
|
* IdentityProvider service.
|
|
13402
13428
|
* @module purecloud-platform-client-v2/api/IdentityProviderApi
|
|
13403
|
-
* @version
|
|
13429
|
+
* @version 215.0.0
|
|
13404
13430
|
*//**
|
|
13405
13431
|
* Constructs a new IdentityProviderApi.
|
|
13406
13432
|
* @alias module:purecloud-platform-client-v2/api/IdentityProviderApi
|
|
@@ -13556,7 +13582,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
13556
13582
|
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(){/**
|
|
13557
13583
|
* InfrastructureAsCode service.
|
|
13558
13584
|
* @module purecloud-platform-client-v2/api/InfrastructureAsCodeApi
|
|
13559
|
-
* @version
|
|
13585
|
+
* @version 215.0.0
|
|
13560
13586
|
*//**
|
|
13561
13587
|
* Constructs a new InfrastructureAsCodeApi.
|
|
13562
13588
|
* @alias module:purecloud-platform-client-v2/api/InfrastructureAsCodeApi
|
|
@@ -13610,7 +13636,7 @@ if(jobId===undefined||jobId===null){throw'Missing the required parameter "jobId"
|
|
|
13610
13636
|
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(){/**
|
|
13611
13637
|
* Integrations service.
|
|
13612
13638
|
* @module purecloud-platform-client-v2/api/IntegrationsApi
|
|
13613
|
-
* @version
|
|
13639
|
+
* @version 215.0.0
|
|
13614
13640
|
*//**
|
|
13615
13641
|
* Constructs a new IntegrationsApi.
|
|
13616
13642
|
* @alias module:purecloud-platform-client-v2/api/IntegrationsApi
|
|
@@ -13684,7 +13710,6 @@ if(actionId===undefined||actionId===null){throw'Missing the required parameter "
|
|
|
13684
13710
|
* Get draft function settings for Action
|
|
13685
13711
|
*
|
|
13686
13712
|
* @param {String} actionId actionId
|
|
13687
|
-
* getIntegrationsActionDraftFunction is a preview method and is subject to both breaking and non-breaking changes at any time without notice
|
|
13688
13713
|
*/},{key:"getIntegrationsActionDraftFunction",value:function getIntegrationsActionDraftFunction(actionId){// verify the required parameter 'actionId' is set
|
|
13689
13714
|
if(actionId===undefined||actionId===null){throw'Missing the required parameter "actionId" when calling getIntegrationsActionDraftFunction';}return this.apiClient.callApi('/api/v2/integrations/actions/{actionId}/draft/function','GET',{'actionId':actionId},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
13690
13715
|
* Retrieve schema for a Draft based on filename.
|
|
@@ -13711,7 +13736,6 @@ if(actionId===undefined||actionId===null){throw'Missing the required parameter "
|
|
|
13711
13736
|
* Get published function settings for Action
|
|
13712
13737
|
*
|
|
13713
13738
|
* @param {String} actionId actionId
|
|
13714
|
-
* getIntegrationsActionFunction is a preview method and is subject to both breaking and non-breaking changes at any time without notice
|
|
13715
13739
|
*/},{key:"getIntegrationsActionFunction",value:function getIntegrationsActionFunction(actionId){// verify the required parameter 'actionId' is set
|
|
13716
13740
|
if(actionId===undefined||actionId===null){throw'Missing the required parameter "actionId" when calling getIntegrationsActionFunction';}return this.apiClient.callApi('/api/v2/integrations/actions/{actionId}/function','GET',{'actionId':actionId},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
13717
13741
|
* Retrieve schema for an action based on filename.
|
|
@@ -13782,7 +13806,6 @@ if(fileName===undefined||fileName===null){throw'Missing the required parameter "
|
|
|
13782
13806
|
*/},{key:"getIntegrationsActionsDrafts",value:function getIntegrationsActionsDrafts(opts){opts=opts||{};return this.apiClient.callApi('/api/v2/integrations/actions/drafts','GET',{},{'pageSize':opts['pageSize'],'pageNumber':opts['pageNumber'],'nextPage':opts['nextPage'],'previousPage':opts['previousPage'],'sortBy':opts['sortBy'],'sortOrder':opts['sortOrder'],'category':opts['category'],'name':opts['name'],'ids':opts['ids'],'secure':opts['secure'],'includeAuthActions':opts['includeAuthActions']},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
13783
13807
|
* Get action function settings for Action
|
|
13784
13808
|
*
|
|
13785
|
-
* getIntegrationsActionsFunctionsRuntimes is a preview method and is subject to both breaking and non-breaking changes at any time without notice
|
|
13786
13809
|
*/},{key:"getIntegrationsActionsFunctionsRuntimes",value:function getIntegrationsActionsFunctionsRuntimes(){return this.apiClient.callApi('/api/v2/integrations/actions/functions/runtimes','GET',{},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
13787
13810
|
* Get a specific botConnector bot, plus versions, for this integration
|
|
13788
13811
|
*
|
|
@@ -14116,7 +14139,6 @@ if(actionId===undefined||actionId===null){throw'Missing the required parameter "
|
|
|
14116
14139
|
*
|
|
14117
14140
|
* @param {String} actionId actionId
|
|
14118
14141
|
* @param {Object} body Input used to request URL upload.
|
|
14119
|
-
* postIntegrationsActionDraftFunctionUpload is a preview method and is subject to both breaking and non-breaking changes at any time without notice
|
|
14120
14142
|
*/},{key:"postIntegrationsActionDraftFunctionUpload",value:function postIntegrationsActionDraftFunctionUpload(actionId,body){// verify the required parameter 'actionId' is set
|
|
14121
14143
|
if(actionId===undefined||actionId===null){throw'Missing the required parameter "actionId" when calling postIntegrationsActionDraftFunctionUpload';}// verify the required parameter 'body' is set
|
|
14122
14144
|
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling postIntegrationsActionDraftFunctionUpload';}return this.apiClient.callApi('/api/v2/integrations/actions/{actionId}/draft/function/upload','POST',{'actionId':actionId},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
@@ -14206,7 +14228,6 @@ if(integrationId===undefined||integrationId===null){throw'Missing the required p
|
|
|
14206
14228
|
*
|
|
14207
14229
|
* @param {String} actionId actionId
|
|
14208
14230
|
* @param {Object} body Input used to update function settings.
|
|
14209
|
-
* putIntegrationsActionDraftFunction is a preview method and is subject to both breaking and non-breaking changes at any time without notice
|
|
14210
14231
|
*/},{key:"putIntegrationsActionDraftFunction",value:function putIntegrationsActionDraftFunction(actionId,body){// verify the required parameter 'actionId' is set
|
|
14211
14232
|
if(actionId===undefined||actionId===null){throw'Missing the required parameter "actionId" when calling putIntegrationsActionDraftFunction';}// verify the required parameter 'body' is set
|
|
14212
14233
|
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling putIntegrationsActionDraftFunction';}return this.apiClient.callApi('/api/v2/integrations/actions/{actionId}/draft/function','PUT',{'actionId':actionId},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
@@ -14245,7 +14266,7 @@ if(ucIntegrationId===undefined||ucIntegrationId===null){throw'Missing the requir
|
|
|
14245
14266
|
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(){/**
|
|
14246
14267
|
* Journey service.
|
|
14247
14268
|
* @module purecloud-platform-client-v2/api/JourneyApi
|
|
14248
|
-
* @version
|
|
14269
|
+
* @version 215.0.0
|
|
14249
14270
|
*//**
|
|
14250
14271
|
* Constructs a new JourneyApi.
|
|
14251
14272
|
* @alias module:purecloud-platform-client-v2/api/JourneyApi
|
|
@@ -14722,7 +14743,7 @@ if(versionId===undefined||versionId===null){throw'Missing the required parameter
|
|
|
14722
14743
|
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling putJourneyViewVersion';}return this.apiClient.callApi('/api/v2/journey/views/{viewId}/versions/{versionId}','PUT',{'viewId':viewId,'versionId':versionId},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}}]);}();var KnowledgeApi=/*#__PURE__*/function(){/**
|
|
14723
14744
|
* Knowledge service.
|
|
14724
14745
|
* @module purecloud-platform-client-v2/api/KnowledgeApi
|
|
14725
|
-
* @version
|
|
14746
|
+
* @version 215.0.0
|
|
14726
14747
|
*//**
|
|
14727
14748
|
* Constructs a new KnowledgeApi.
|
|
14728
14749
|
* @alias module:purecloud-platform-client-v2/api/KnowledgeApi
|
|
@@ -15792,7 +15813,7 @@ if(sourceId===undefined||sourceId===null){throw'Missing the required parameter "
|
|
|
15792
15813
|
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling putKnowledgeKnowledgebaseSourcesServicenowSourceId';}return this.apiClient.callApi('/api/v2/knowledge/knowledgebases/{knowledgeBaseId}/sources/servicenow/{sourceId}','PUT',{'knowledgeBaseId':knowledgeBaseId,'sourceId':sourceId},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}}]);}();var LanguageUnderstandingApi=/*#__PURE__*/function(){/**
|
|
15793
15814
|
* LanguageUnderstanding service.
|
|
15794
15815
|
* @module purecloud-platform-client-v2/api/LanguageUnderstandingApi
|
|
15795
|
-
* @version
|
|
15816
|
+
* @version 215.0.0
|
|
15796
15817
|
*//**
|
|
15797
15818
|
* Constructs a new LanguageUnderstandingApi.
|
|
15798
15819
|
* @alias module:purecloud-platform-client-v2/api/LanguageUnderstandingApi
|
|
@@ -16051,7 +16072,7 @@ if(domainVersionId===undefined||domainVersionId===null){throw'Missing the requir
|
|
|
16051
16072
|
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(){/**
|
|
16052
16073
|
* Languages service.
|
|
16053
16074
|
* @module purecloud-platform-client-v2/api/LanguagesApi
|
|
16054
|
-
* @version
|
|
16075
|
+
* @version 215.0.0
|
|
16055
16076
|
*//**
|
|
16056
16077
|
* Constructs a new LanguagesApi.
|
|
16057
16078
|
* @alias module:purecloud-platform-client-v2/api/LanguagesApi
|
|
@@ -16106,7 +16127,7 @@ if(userId===undefined||userId===null){throw'Missing the required parameter "user
|
|
|
16106
16127
|
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(){/**
|
|
16107
16128
|
* Learning service.
|
|
16108
16129
|
* @module purecloud-platform-client-v2/api/LearningApi
|
|
16109
|
-
* @version
|
|
16130
|
+
* @version 215.0.0
|
|
16110
16131
|
*//**
|
|
16111
16132
|
* Constructs a new LearningApi.
|
|
16112
16133
|
* @alias module:purecloud-platform-client-v2/api/LearningApi
|
|
@@ -16377,7 +16398,7 @@ if(moduleId===undefined||moduleId===null){throw'Missing the required parameter "
|
|
|
16377
16398
|
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(){/**
|
|
16378
16399
|
* License service.
|
|
16379
16400
|
* @module purecloud-platform-client-v2/api/LicenseApi
|
|
16380
|
-
* @version
|
|
16401
|
+
* @version 215.0.0
|
|
16381
16402
|
*//**
|
|
16382
16403
|
* Constructs a new LicenseApi.
|
|
16383
16404
|
* @alias module:purecloud-platform-client-v2/api/LicenseApi
|
|
@@ -16431,7 +16452,7 @@ if(featureName===undefined||featureName===null){throw'Missing the required param
|
|
|
16431
16452
|
*/},{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(){/**
|
|
16432
16453
|
* Locations service.
|
|
16433
16454
|
* @module purecloud-platform-client-v2/api/LocationsApi
|
|
16434
|
-
* @version
|
|
16455
|
+
* @version 215.0.0
|
|
16435
16456
|
*//**
|
|
16436
16457
|
* Constructs a new LocationsApi.
|
|
16437
16458
|
* @alias module:purecloud-platform-client-v2/api/LocationsApi
|
|
@@ -16490,7 +16511,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
16490
16511
|
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(){/**
|
|
16491
16512
|
* LogCapture service.
|
|
16492
16513
|
* @module purecloud-platform-client-v2/api/LogCaptureApi
|
|
16493
|
-
* @version
|
|
16514
|
+
* @version 215.0.0
|
|
16494
16515
|
*//**
|
|
16495
16516
|
* Constructs a new LogCaptureApi.
|
|
16496
16517
|
* @alias module:purecloud-platform-client-v2/api/LogCaptureApi
|
|
@@ -16540,7 +16561,7 @@ if(userId===undefined||userId===null){throw'Missing the required parameter "user
|
|
|
16540
16561
|
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(){/**
|
|
16541
16562
|
* Messaging service.
|
|
16542
16563
|
* @module purecloud-platform-client-v2/api/MessagingApi
|
|
16543
|
-
* @version
|
|
16564
|
+
* @version 215.0.0
|
|
16544
16565
|
*//**
|
|
16545
16566
|
* Constructs a new MessagingApi.
|
|
16546
16567
|
* @alias module:purecloud-platform-client-v2/api/MessagingApi
|
|
@@ -16630,7 +16651,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
16630
16651
|
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(){/**
|
|
16631
16652
|
* MobileDevices service.
|
|
16632
16653
|
* @module purecloud-platform-client-v2/api/MobileDevicesApi
|
|
16633
|
-
* @version
|
|
16654
|
+
* @version 215.0.0
|
|
16634
16655
|
*//**
|
|
16635
16656
|
* Constructs a new MobileDevicesApi.
|
|
16636
16657
|
* @alias module:purecloud-platform-client-v2/api/MobileDevicesApi
|
|
@@ -16669,7 +16690,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
16669
16690
|
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(){/**
|
|
16670
16691
|
* Notifications service.
|
|
16671
16692
|
* @module purecloud-platform-client-v2/api/NotificationsApi
|
|
16672
|
-
* @version
|
|
16693
|
+
* @version 215.0.0
|
|
16673
16694
|
*//**
|
|
16674
16695
|
* Constructs a new NotificationsApi.
|
|
16675
16696
|
* @alias module:purecloud-platform-client-v2/api/NotificationsApi
|
|
@@ -16726,7 +16747,7 @@ if(channelId===undefined||channelId===null){throw'Missing the required parameter
|
|
|
16726
16747
|
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(){/**
|
|
16727
16748
|
* OAuth service.
|
|
16728
16749
|
* @module purecloud-platform-client-v2/api/OAuthApi
|
|
16729
|
-
* @version
|
|
16750
|
+
* @version 215.0.0
|
|
16730
16751
|
*//**
|
|
16731
16752
|
* Constructs a new OAuthApi.
|
|
16732
16753
|
* @alias module:purecloud-platform-client-v2/api/OAuthApi
|
|
@@ -16811,7 +16832,7 @@ if(clientId===undefined||clientId===null){throw'Missing the required parameter "
|
|
|
16811
16832
|
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(){/**
|
|
16812
16833
|
* Objects service.
|
|
16813
16834
|
* @module purecloud-platform-client-v2/api/ObjectsApi
|
|
16814
|
-
* @version
|
|
16835
|
+
* @version 215.0.0
|
|
16815
16836
|
*//**
|
|
16816
16837
|
* Constructs a new ObjectsApi.
|
|
16817
16838
|
* @alias module:purecloud-platform-client-v2/api/ObjectsApi
|
|
@@ -16882,7 +16903,7 @@ if(divisionId===undefined||divisionId===null){throw'Missing the required paramet
|
|
|
16882
16903
|
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(){/**
|
|
16883
16904
|
* OperationalEvents service.
|
|
16884
16905
|
* @module purecloud-platform-client-v2/api/OperationalEventsApi
|
|
16885
|
-
* @version
|
|
16906
|
+
* @version 215.0.0
|
|
16886
16907
|
*//**
|
|
16887
16908
|
* Constructs a new OperationalEventsApi.
|
|
16888
16909
|
* @alias module:purecloud-platform-client-v2/api/OperationalEventsApi
|
|
@@ -16913,7 +16934,7 @@ if(eventDefinitionId===undefined||eventDefinitionId===null){throw'Missing the re
|
|
|
16913
16934
|
*/},{key:"postUsageEventsQuery",value:function postUsageEventsQuery(opts){opts=opts||{};return this.apiClient.callApi('/api/v2/usage/events/query','POST',{},{'before':opts['before'],'after':opts['after'],'pageSize':opts['pageSize']},{},{},opts['body'],['PureCloud OAuth'],['application/json'],['application/json']);}}]);}();var OrganizationApi=/*#__PURE__*/function(){/**
|
|
16914
16935
|
* Organization service.
|
|
16915
16936
|
* @module purecloud-platform-client-v2/api/OrganizationApi
|
|
16916
|
-
* @version
|
|
16937
|
+
* @version 215.0.0
|
|
16917
16938
|
*//**
|
|
16918
16939
|
* Constructs a new OrganizationApi.
|
|
16919
16940
|
* @alias module:purecloud-platform-client-v2/api/OrganizationApi
|
|
@@ -17038,7 +17059,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
17038
17059
|
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(){/**
|
|
17039
17060
|
* OrganizationAuthorization service.
|
|
17040
17061
|
* @module purecloud-platform-client-v2/api/OrganizationAuthorizationApi
|
|
17041
|
-
* @version
|
|
17062
|
+
* @version 215.0.0
|
|
17042
17063
|
*//**
|
|
17043
17064
|
* Constructs a new OrganizationAuthorizationApi.
|
|
17044
17065
|
* @alias module:purecloud-platform-client-v2/api/OrganizationAuthorizationApi
|
|
@@ -17372,7 +17393,7 @@ if(trustorOrgId===undefined||trustorOrgId===null){throw'Missing the required par
|
|
|
17372
17393
|
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(){/**
|
|
17373
17394
|
* Outbound service.
|
|
17374
17395
|
* @module purecloud-platform-client-v2/api/OutboundApi
|
|
17375
|
-
* @version
|
|
17396
|
+
* @version 215.0.0
|
|
17376
17397
|
*//**
|
|
17377
17398
|
* Constructs a new OutboundApi.
|
|
17378
17399
|
* @alias module:purecloud-platform-client-v2/api/OutboundApi
|
|
@@ -18483,7 +18504,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
18483
18504
|
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(){/**
|
|
18484
18505
|
* Presence service.
|
|
18485
18506
|
* @module purecloud-platform-client-v2/api/PresenceApi
|
|
18486
|
-
* @version
|
|
18507
|
+
* @version 215.0.0
|
|
18487
18508
|
*//**
|
|
18488
18509
|
* Constructs a new PresenceApi.
|
|
18489
18510
|
* @alias module:purecloud-platform-client-v2/api/PresenceApi
|
|
@@ -18656,7 +18677,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
18656
18677
|
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(){/**
|
|
18657
18678
|
* ProcessAutomation service.
|
|
18658
18679
|
* @module purecloud-platform-client-v2/api/ProcessAutomationApi
|
|
18659
|
-
* @version
|
|
18680
|
+
* @version 215.0.0
|
|
18660
18681
|
*//**
|
|
18661
18682
|
* Constructs a new ProcessAutomationApi.
|
|
18662
18683
|
* @alias module:purecloud-platform-client-v2/api/ProcessAutomationApi
|
|
@@ -18719,7 +18740,7 @@ if(triggerId===undefined||triggerId===null){throw'Missing the required parameter
|
|
|
18719
18740
|
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(){/**
|
|
18720
18741
|
* Quality service.
|
|
18721
18742
|
* @module purecloud-platform-client-v2/api/QualityApi
|
|
18722
|
-
* @version
|
|
18743
|
+
* @version 215.0.0
|
|
18723
18744
|
*//**
|
|
18724
18745
|
* Constructs a new QualityApi.
|
|
18725
18746
|
* @alias module:purecloud-platform-client-v2/api/QualityApi
|
|
@@ -19198,7 +19219,7 @@ if(customerSurveyUrl===undefined||customerSurveyUrl===null){throw'Missing the re
|
|
|
19198
19219
|
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(){/**
|
|
19199
19220
|
* Recording service.
|
|
19200
19221
|
* @module purecloud-platform-client-v2/api/RecordingApi
|
|
19201
|
-
* @version
|
|
19222
|
+
* @version 215.0.0
|
|
19202
19223
|
*//**
|
|
19203
19224
|
* Constructs a new RecordingApi.
|
|
19204
19225
|
* @alias module:purecloud-platform-client-v2/api/RecordingApi
|
|
@@ -19610,7 +19631,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
19610
19631
|
*/},{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(){/**
|
|
19611
19632
|
* ResponseManagement service.
|
|
19612
19633
|
* @module purecloud-platform-client-v2/api/ResponseManagementApi
|
|
19613
|
-
* @version
|
|
19634
|
+
* @version 215.0.0
|
|
19614
19635
|
*//**
|
|
19615
19636
|
* Constructs a new ResponseManagementApi.
|
|
19616
19637
|
* @alias module:purecloud-platform-client-v2/api/ResponseManagementApi
|
|
@@ -19731,7 +19752,7 @@ if(responseAssetId===undefined||responseAssetId===null){throw'Missing the requir
|
|
|
19731
19752
|
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(){/**
|
|
19732
19753
|
* Routing service.
|
|
19733
19754
|
* @module purecloud-platform-client-v2/api/RoutingApi
|
|
19734
|
-
* @version
|
|
19755
|
+
* @version 215.0.0
|
|
19735
19756
|
*//**
|
|
19736
19757
|
* Constructs a new RoutingApi.
|
|
19737
19758
|
* @alias module:purecloud-platform-client-v2/api/RoutingApi
|
|
@@ -20679,13 +20700,6 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
20679
20700
|
* @param {Object} body Organization Settings
|
|
20680
20701
|
*/},{key:"putRoutingSettingsTranscription",value:function putRoutingSettingsTranscription(body){// verify the required parameter 'body' is set
|
|
20681
20702
|
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling putRoutingSettingsTranscription';}return this.apiClient.callApi('/api/v2/routing/settings/transcription','PUT',{},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
20682
|
-
* Update a phone number provisioned for SMS.
|
|
20683
|
-
*
|
|
20684
|
-
* @param {String} phoneNumberId phone number
|
|
20685
|
-
* @param {Object} body SmsPhoneNumber
|
|
20686
|
-
*/},{key:"putRoutingSmsPhonenumber",value:function putRoutingSmsPhonenumber(phoneNumberId,body){// verify the required parameter 'phoneNumberId' is set
|
|
20687
|
-
if(phoneNumberId===undefined||phoneNumberId===null){throw'Missing the required parameter "phoneNumberId" when calling putRoutingSmsPhonenumber';}// verify the required parameter 'body' is set
|
|
20688
|
-
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling putRoutingSmsPhonenumber';}return this.apiClient.callApi('/api/v2/routing/sms/phonenumbers/{phoneNumberId}','PUT',{'phoneNumberId':phoneNumberId},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
20689
20703
|
* Update the user's Direct Routing Backup settings.
|
|
20690
20704
|
*
|
|
20691
20705
|
* @param {String} userId User ID
|
|
@@ -20737,7 +20751,7 @@ if(userId===undefined||userId===null){throw'Missing the required parameter "user
|
|
|
20737
20751
|
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(){/**
|
|
20738
20752
|
* SCIM service.
|
|
20739
20753
|
* @module purecloud-platform-client-v2/api/SCIMApi
|
|
20740
|
-
* @version
|
|
20754
|
+
* @version 215.0.0
|
|
20741
20755
|
*//**
|
|
20742
20756
|
* Constructs a new SCIMApi.
|
|
20743
20757
|
* @alias module:purecloud-platform-client-v2/api/SCIMApi
|
|
@@ -20962,7 +20976,7 @@ if(userId===undefined||userId===null){throw'Missing the required parameter "user
|
|
|
20962
20976
|
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(){/**
|
|
20963
20977
|
* ScreenRecording service.
|
|
20964
20978
|
* @module purecloud-platform-client-v2/api/ScreenRecordingApi
|
|
20965
|
-
* @version
|
|
20979
|
+
* @version 215.0.0
|
|
20966
20980
|
*//**
|
|
20967
20981
|
* Constructs a new ScreenRecordingApi.
|
|
20968
20982
|
* @alias module:purecloud-platform-client-v2/api/ScreenRecordingApi
|
|
@@ -20977,7 +20991,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
20977
20991
|
*/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(){/**
|
|
20978
20992
|
* Scripts service.
|
|
20979
20993
|
* @module purecloud-platform-client-v2/api/ScriptsApi
|
|
20980
|
-
* @version
|
|
20994
|
+
* @version 215.0.0
|
|
20981
20995
|
*//**
|
|
20982
20996
|
* Constructs a new ScriptsApi.
|
|
20983
20997
|
* @alias module:purecloud-platform-client-v2/api/ScriptsApi
|
|
@@ -21113,7 +21127,7 @@ if(scriptId===undefined||scriptId===null){throw'Missing the required parameter "
|
|
|
21113
21127
|
*/},{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(){/**
|
|
21114
21128
|
* Search service.
|
|
21115
21129
|
* @module purecloud-platform-client-v2/api/SearchApi
|
|
21116
|
-
* @version
|
|
21130
|
+
* @version 215.0.0
|
|
21117
21131
|
*//**
|
|
21118
21132
|
* Constructs a new SearchApi.
|
|
21119
21133
|
* @alias module:purecloud-platform-client-v2/api/SearchApi
|
|
@@ -21285,7 +21299,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
21285
21299
|
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(){/**
|
|
21286
21300
|
* Settings service.
|
|
21287
21301
|
* @module purecloud-platform-client-v2/api/SettingsApi
|
|
21288
|
-
* @version
|
|
21302
|
+
* @version 215.0.0
|
|
21289
21303
|
*//**
|
|
21290
21304
|
* Constructs a new SettingsApi.
|
|
21291
21305
|
* @alias module:purecloud-platform-client-v2/api/SettingsApi
|
|
@@ -21335,7 +21349,7 @@ if(agentId===undefined||agentId===null){throw'Missing the required parameter "ag
|
|
|
21335
21349
|
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling putUsersAgentuiAgentsAutoanswerAgentIdSettings';}return this.apiClient.callApi('/api/v2/users/agentui/agents/autoanswer/{agentId}/settings','PUT',{'agentId':agentId},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}}]);}();var SocialMediaApi=/*#__PURE__*/function(){/**
|
|
21336
21350
|
* SocialMedia service.
|
|
21337
21351
|
* @module purecloud-platform-client-v2/api/SocialMediaApi
|
|
21338
|
-
* @version
|
|
21352
|
+
* @version 215.0.0
|
|
21339
21353
|
*//**
|
|
21340
21354
|
* Constructs a new SocialMediaApi.
|
|
21341
21355
|
* @alias module:purecloud-platform-client-v2/api/SocialMediaApi
|
|
@@ -21600,7 +21614,7 @@ if(topicId===undefined||topicId===null){throw'Missing the required parameter "to
|
|
|
21600
21614
|
if(twitterIngestionRuleId===undefined||twitterIngestionRuleId===null){throw'Missing the required parameter "twitterIngestionRuleId" when calling putSocialmediaTopicDataingestionrulesTwitterTwitterIngestionRuleId';}return this.apiClient.callApi('/api/v2/socialmedia/topics/{topicId}/dataingestionrules/twitter/{twitterIngestionRuleId}','PUT',{'topicId':topicId,'twitterIngestionRuleId':twitterIngestionRuleId},{},{},{},opts['body'],['PureCloud OAuth'],['application/json'],['application/json']);}}]);}();var SpeechTextAnalyticsApi=/*#__PURE__*/function(){/**
|
|
21601
21615
|
* SpeechTextAnalytics service.
|
|
21602
21616
|
* @module purecloud-platform-client-v2/api/SpeechTextAnalyticsApi
|
|
21603
|
-
* @version
|
|
21617
|
+
* @version 215.0.0
|
|
21604
21618
|
*//**
|
|
21605
21619
|
* Constructs a new SpeechTextAnalyticsApi.
|
|
21606
21620
|
* @alias module:purecloud-platform-client-v2/api/SpeechTextAnalyticsApi
|
|
@@ -21680,6 +21694,11 @@ if(communicationId===undefined||communicationId===null){throw'Missing the requir
|
|
|
21680
21694
|
*/},{key:"getSpeechandtextanalyticsConversationCommunicationTranscripturls",value:function getSpeechandtextanalyticsConversationCommunicationTranscripturls(conversationId,communicationId){// verify the required parameter 'conversationId' is set
|
|
21681
21695
|
if(conversationId===undefined||conversationId===null){throw'Missing the required parameter "conversationId" when calling getSpeechandtextanalyticsConversationCommunicationTranscripturls';}// verify the required parameter 'communicationId' is set
|
|
21682
21696
|
if(communicationId===undefined||communicationId===null){throw'Missing the required parameter "communicationId" when calling getSpeechandtextanalyticsConversationCommunicationTranscripturls';}return this.apiClient.callApi('/api/v2/speechandtextanalytics/conversations/{conversationId}/communications/{communicationId}/transcripturls','GET',{'conversationId':conversationId,'communicationId':communicationId},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
21697
|
+
* Get conversation summaries by conversation id.
|
|
21698
|
+
*
|
|
21699
|
+
* @param {String} conversationId The conversation ID of the summaries
|
|
21700
|
+
*/},{key:"getSpeechandtextanalyticsConversationSummaries",value:function getSpeechandtextanalyticsConversationSummaries(conversationId){// verify the required parameter 'conversationId' is set
|
|
21701
|
+
if(conversationId===undefined||conversationId===null){throw'Missing the required parameter "conversationId" when calling getSpeechandtextanalyticsConversationSummaries';}return this.apiClient.callApi('/api/v2/speechandtextanalytics/conversations/{conversationId}/summaries','GET',{'conversationId':conversationId},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
21683
21702
|
* Get the list of Speech and Text Analytics dictionary feedbacks
|
|
21684
21703
|
*
|
|
21685
21704
|
* @param {Object} opts Optional parameters
|
|
@@ -21702,6 +21721,11 @@ if(programId===undefined||programId===null){throw'Missing the required parameter
|
|
|
21702
21721
|
* @param {String} programId The id of the program
|
|
21703
21722
|
*/},{key:"getSpeechandtextanalyticsProgramMappings",value:function getSpeechandtextanalyticsProgramMappings(programId){// verify the required parameter 'programId' is set
|
|
21704
21723
|
if(programId===undefined||programId===null){throw'Missing the required parameter "programId" when calling getSpeechandtextanalyticsProgramMappings';}return this.apiClient.callApi('/api/v2/speechandtextanalytics/programs/{programId}/mappings','GET',{'programId':programId},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
21724
|
+
* Get AI Insights settings of a program
|
|
21725
|
+
*
|
|
21726
|
+
* @param {String} programId The id of the program
|
|
21727
|
+
*/},{key:"getSpeechandtextanalyticsProgramSettingsInsights",value:function getSpeechandtextanalyticsProgramSettingsInsights(programId){// verify the required parameter 'programId' is set
|
|
21728
|
+
if(programId===undefined||programId===null){throw'Missing the required parameter "programId" when calling getSpeechandtextanalyticsProgramSettingsInsights';}return this.apiClient.callApi('/api/v2/speechandtextanalytics/programs/{programId}/settings/insights','GET',{'programId':programId},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
21705
21729
|
* Get transcription engine settings of a program
|
|
21706
21730
|
*
|
|
21707
21731
|
* @param {String} programId The id of the program
|
|
@@ -21730,6 +21754,13 @@ if(jobId===undefined||jobId===null){throw'Missing the required parameter "jobId"
|
|
|
21730
21754
|
* @param {String} jobId The id of the publish programs job
|
|
21731
21755
|
*/},{key:"getSpeechandtextanalyticsProgramsPublishjob",value:function getSpeechandtextanalyticsProgramsPublishjob(jobId){// verify the required parameter 'jobId' is set
|
|
21732
21756
|
if(jobId===undefined||jobId===null){throw'Missing the required parameter "jobId" when calling getSpeechandtextanalyticsProgramsPublishjob';}return this.apiClient.callApi('/api/v2/speechandtextanalytics/programs/publishjobs/{jobId}','GET',{'jobId':jobId},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
21757
|
+
* Get the list of program AI Insights settings for the organization
|
|
21758
|
+
*
|
|
21759
|
+
* @param {Object} opts Optional parameters
|
|
21760
|
+
* @param {Number} opts.pageSize The page size for the listing. The max that will be returned is 100. (default to 100)
|
|
21761
|
+
* @param {Number} opts.pageNumber The page number for the listing (default to 1)
|
|
21762
|
+
* @param {Array.<String>} opts.programIds Comma separated Program IDs to filter by. Maximum of 50 IDs allowed.
|
|
21763
|
+
*/},{key:"getSpeechandtextanalyticsProgramsSettingsInsights",value:function getSpeechandtextanalyticsProgramsSettingsInsights(opts){opts=opts||{};return this.apiClient.callApi('/api/v2/speechandtextanalytics/programs/settings/insights','GET',{},{'pageSize':opts['pageSize'],'pageNumber':opts['pageNumber'],'programIds':this.apiClient.buildCollectionParam(opts['programIds'],'multi')},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
21733
21764
|
* Get supported dialects for each transcription engine
|
|
21734
21765
|
*
|
|
21735
21766
|
*/},{key:"getSpeechandtextanalyticsProgramsTranscriptionenginesDialects",value:function getSpeechandtextanalyticsProgramsTranscriptionenginesDialects(){return this.apiClient.callApi('/api/v2/speechandtextanalytics/programs/transcriptionengines/dialects','GET',{},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
@@ -21878,6 +21909,13 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
21878
21909
|
*/},{key:"putSpeechandtextanalyticsProgramMappings",value:function putSpeechandtextanalyticsProgramMappings(programId,body){// verify the required parameter 'programId' is set
|
|
21879
21910
|
if(programId===undefined||programId===null){throw'Missing the required parameter "programId" when calling putSpeechandtextanalyticsProgramMappings';}// verify the required parameter 'body' is set
|
|
21880
21911
|
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling putSpeechandtextanalyticsProgramMappings';}return this.apiClient.callApi('/api/v2/speechandtextanalytics/programs/{programId}/mappings','PUT',{'programId':programId},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
21912
|
+
* Update AI Insights settings of a program
|
|
21913
|
+
*
|
|
21914
|
+
* @param {String} programId The id of the program
|
|
21915
|
+
* @param {Object} body Program AI Insights setting
|
|
21916
|
+
*/},{key:"putSpeechandtextanalyticsProgramSettingsInsights",value:function putSpeechandtextanalyticsProgramSettingsInsights(programId,body){// verify the required parameter 'programId' is set
|
|
21917
|
+
if(programId===undefined||programId===null){throw'Missing the required parameter "programId" when calling putSpeechandtextanalyticsProgramSettingsInsights';}// verify the required parameter 'body' is set
|
|
21918
|
+
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling putSpeechandtextanalyticsProgramSettingsInsights';}return this.apiClient.callApi('/api/v2/speechandtextanalytics/programs/{programId}/settings/insights','PUT',{'programId':programId},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
21881
21919
|
* Update transcription engine settings of a program
|
|
21882
21920
|
*
|
|
21883
21921
|
* @param {String} programId The id of the program
|
|
@@ -21899,7 +21937,7 @@ if(topicId===undefined||topicId===null){throw'Missing the required parameter "to
|
|
|
21899
21937
|
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(){/**
|
|
21900
21938
|
* Stations service.
|
|
21901
21939
|
* @module purecloud-platform-client-v2/api/StationsApi
|
|
21902
|
-
* @version
|
|
21940
|
+
* @version 215.0.0
|
|
21903
21941
|
*//**
|
|
21904
21942
|
* Constructs a new StationsApi.
|
|
21905
21943
|
* @alias module:purecloud-platform-client-v2/api/StationsApi
|
|
@@ -21931,7 +21969,7 @@ if(stationId===undefined||stationId===null){throw'Missing the required parameter
|
|
|
21931
21969
|
*/},{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(){/**
|
|
21932
21970
|
* Suggest service.
|
|
21933
21971
|
* @module purecloud-platform-client-v2/api/SuggestApi
|
|
21934
|
-
* @version
|
|
21972
|
+
* @version 215.0.0
|
|
21935
21973
|
*//**
|
|
21936
21974
|
* Constructs a new SuggestApi.
|
|
21937
21975
|
* @alias module:purecloud-platform-client-v2/api/SuggestApi
|
|
@@ -21971,7 +22009,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
21971
22009
|
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(){/**
|
|
21972
22010
|
* TaskManagement service.
|
|
21973
22011
|
* @module purecloud-platform-client-v2/api/TaskManagementApi
|
|
21974
|
-
* @version
|
|
22012
|
+
* @version 215.0.0
|
|
21975
22013
|
*//**
|
|
21976
22014
|
* Constructs a new TaskManagementApi.
|
|
21977
22015
|
* @alias module:purecloud-platform-client-v2/api/TaskManagementApi
|
|
@@ -22477,7 +22515,7 @@ if(schemaId===undefined||schemaId===null){throw'Missing the required parameter "
|
|
|
22477
22515
|
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(){/**
|
|
22478
22516
|
* Teams service.
|
|
22479
22517
|
* @module purecloud-platform-client-v2/api/TeamsApi
|
|
22480
|
-
* @version
|
|
22518
|
+
* @version 215.0.0
|
|
22481
22519
|
*//**
|
|
22482
22520
|
* Constructs a new TeamsApi.
|
|
22483
22521
|
* @alias module:purecloud-platform-client-v2/api/TeamsApi
|
|
@@ -22557,7 +22595,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
22557
22595
|
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(){/**
|
|
22558
22596
|
* Telephony service.
|
|
22559
22597
|
* @module purecloud-platform-client-v2/api/TelephonyApi
|
|
22560
|
-
* @version
|
|
22598
|
+
* @version 215.0.0
|
|
22561
22599
|
*//**
|
|
22562
22600
|
* Constructs a new TelephonyApi.
|
|
22563
22601
|
* @alias module:purecloud-platform-client-v2/api/TelephonyApi
|
|
@@ -22604,7 +22642,7 @@ if(downloadId===undefined||downloadId===null){throw'Missing the required paramet
|
|
|
22604
22642
|
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(){/**
|
|
22605
22643
|
* TelephonyProvidersEdge service.
|
|
22606
22644
|
* @module purecloud-platform-client-v2/api/TelephonyProvidersEdgeApi
|
|
22607
|
-
* @version
|
|
22645
|
+
* @version 215.0.0
|
|
22608
22646
|
*//**
|
|
22609
22647
|
* Constructs a new TelephonyProvidersEdgeApi.
|
|
22610
22648
|
* @alias module:purecloud-platform-client-v2/api/TelephonyProvidersEdgeApi
|
|
@@ -23439,7 +23477,7 @@ if(trunkBaseSettingsId===undefined||trunkBaseSettingsId===null){throw'Missing th
|
|
|
23439
23477
|
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(){/**
|
|
23440
23478
|
* Textbots service.
|
|
23441
23479
|
* @module purecloud-platform-client-v2/api/TextbotsApi
|
|
23442
|
-
* @version
|
|
23480
|
+
* @version 215.0.0
|
|
23443
23481
|
*//**
|
|
23444
23482
|
* Constructs a new TextbotsApi.
|
|
23445
23483
|
* @alias module:purecloud-platform-client-v2/api/TextbotsApi
|
|
@@ -23474,7 +23512,7 @@ if(launchRequest===undefined||launchRequest===null){throw'Missing the required p
|
|
|
23474
23512
|
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(){/**
|
|
23475
23513
|
* Tokens service.
|
|
23476
23514
|
* @module purecloud-platform-client-v2/api/TokensApi
|
|
23477
|
-
* @version
|
|
23515
|
+
* @version 215.0.0
|
|
23478
23516
|
*//**
|
|
23479
23517
|
* Constructs a new TokensApi.
|
|
23480
23518
|
* @alias module:purecloud-platform-client-v2/api/TokensApi
|
|
@@ -23508,7 +23546,7 @@ if(userId===undefined||userId===null){throw'Missing the required parameter "user
|
|
|
23508
23546
|
*/},{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(){/**
|
|
23509
23547
|
* Uploads service.
|
|
23510
23548
|
* @module purecloud-platform-client-v2/api/UploadsApi
|
|
23511
|
-
* @version
|
|
23549
|
+
* @version 215.0.0
|
|
23512
23550
|
*//**
|
|
23513
23551
|
* Constructs a new UploadsApi.
|
|
23514
23552
|
* @alias module:purecloud-platform-client-v2/api/UploadsApi
|
|
@@ -23528,7 +23566,6 @@ if(jobId===undefined||jobId===null){throw'Missing the required parameter "jobId"
|
|
|
23528
23566
|
*
|
|
23529
23567
|
* @param {String} actionId actionId
|
|
23530
23568
|
* @param {Object} body Input used to request URL upload.
|
|
23531
|
-
* postIntegrationsActionDraftFunctionUpload is a preview method and is subject to both breaking and non-breaking changes at any time without notice
|
|
23532
23569
|
*/},{key:"postIntegrationsActionDraftFunctionUpload",value:function postIntegrationsActionDraftFunctionUpload(actionId,body){// verify the required parameter 'actionId' is set
|
|
23533
23570
|
if(actionId===undefined||actionId===null){throw'Missing the required parameter "actionId" when calling postIntegrationsActionDraftFunctionUpload';}// verify the required parameter 'body' is set
|
|
23534
23571
|
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling postIntegrationsActionDraftFunctionUpload';}return this.apiClient.callApi('/api/v2/integrations/actions/{actionId}/draft/function/upload','POST',{'actionId':actionId},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
@@ -23574,7 +23611,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
23574
23611
|
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(){/**
|
|
23575
23612
|
* Usage service.
|
|
23576
23613
|
* @module purecloud-platform-client-v2/api/UsageApi
|
|
23577
|
-
* @version
|
|
23614
|
+
* @version 215.0.0
|
|
23578
23615
|
*//**
|
|
23579
23616
|
* Constructs a new UsageApi.
|
|
23580
23617
|
* @alias module:purecloud-platform-client-v2/api/UsageApi
|
|
@@ -23628,7 +23665,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
23628
23665
|
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(){/**
|
|
23629
23666
|
* UserRecordings service.
|
|
23630
23667
|
* @module purecloud-platform-client-v2/api/UserRecordingsApi
|
|
23631
|
-
* @version
|
|
23668
|
+
* @version 215.0.0
|
|
23632
23669
|
*//**
|
|
23633
23670
|
* Constructs a new UserRecordingsApi.
|
|
23634
23671
|
* @alias module:purecloud-platform-client-v2/api/UserRecordingsApi
|
|
@@ -23685,7 +23722,7 @@ if(recordingId===undefined||recordingId===null){throw'Missing the required param
|
|
|
23685
23722
|
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(){/**
|
|
23686
23723
|
* Users service.
|
|
23687
23724
|
* @module purecloud-platform-client-v2/api/UsersApi
|
|
23688
|
-
* @version
|
|
23725
|
+
* @version 215.0.0
|
|
23689
23726
|
*//**
|
|
23690
23727
|
* Constructs a new UsersApi.
|
|
23691
23728
|
* @alias module:purecloud-platform-client-v2/api/UsersApi
|
|
@@ -23725,6 +23762,15 @@ if(userId===undefined||userId===null){throw'Missing the required parameter "user
|
|
|
23725
23762
|
* @param {String} userId User ID
|
|
23726
23763
|
*/},{key:"deleteUser",value:function deleteUser(userId){// verify the required parameter 'userId' is set
|
|
23727
23764
|
if(userId===undefined||userId===null){throw'Missing the required parameter "userId" when calling deleteUser';}return this.apiClient.callApi('/api/v2/users/{userId}','DELETE',{'userId':userId},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
23765
|
+
* Delete the external identifier for user.
|
|
23766
|
+
*
|
|
23767
|
+
* @param {String} userId User ID
|
|
23768
|
+
* @param {String} authorityName Authority Name
|
|
23769
|
+
* @param {String} externalKey External Key
|
|
23770
|
+
*/},{key:"deleteUserExternalidAuthorityNameExternalKey",value:function deleteUserExternalidAuthorityNameExternalKey(userId,authorityName,externalKey){// verify the required parameter 'userId' is set
|
|
23771
|
+
if(userId===undefined||userId===null){throw'Missing the required parameter "userId" when calling deleteUserExternalidAuthorityNameExternalKey';}// verify the required parameter 'authorityName' is set
|
|
23772
|
+
if(authorityName===undefined||authorityName===null){throw'Missing the required parameter "authorityName" when calling deleteUserExternalidAuthorityNameExternalKey';}// verify the required parameter 'externalKey' is set
|
|
23773
|
+
if(externalKey===undefined||externalKey===null){throw'Missing the required parameter "externalKey" when calling deleteUserExternalidAuthorityNameExternalKey';}return this.apiClient.callApi('/api/v2/users/{userId}/externalid/{authorityName}/{externalKey}','DELETE',{'userId':userId,'authorityName':authorityName,'externalKey':externalKey},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
23728
23774
|
* Remove a routing language from a user
|
|
23729
23775
|
*
|
|
23730
23776
|
* @param {String} userId User ID
|
|
@@ -23884,6 +23930,18 @@ if(userId===undefined||userId===null){throw'Missing the required parameter "user
|
|
|
23884
23930
|
* @param {Array.<String>} opts.expand Which fields, if any, to expand
|
|
23885
23931
|
*/},{key:"getUserDirectreports",value:function getUserDirectreports(userId,opts){opts=opts||{};// verify the required parameter 'userId' is set
|
|
23886
23932
|
if(userId===undefined||userId===null){throw'Missing the required parameter "userId" when calling getUserDirectreports';}return this.apiClient.callApi('/api/v2/users/{userId}/directreports','GET',{'userId':userId},{'expand':this.apiClient.buildCollectionParam(opts['expand'],'multi')},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
23933
|
+
* Get the external identifiers for a user.
|
|
23934
|
+
*
|
|
23935
|
+
* @param {String} userId User ID
|
|
23936
|
+
*/},{key:"getUserExternalid",value:function getUserExternalid(userId){// verify the required parameter 'userId' is set
|
|
23937
|
+
if(userId===undefined||userId===null){throw'Missing the required parameter "userId" when calling getUserExternalid';}return this.apiClient.callApi('/api/v2/users/{userId}/externalid','GET',{'userId':userId},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
23938
|
+
* Get the external identifier of user for an authority.
|
|
23939
|
+
* Authority name and external key are case sensitive.
|
|
23940
|
+
* @param {String} userId User ID
|
|
23941
|
+
* @param {String} authorityName Authority Name
|
|
23942
|
+
*/},{key:"getUserExternalidAuthorityName",value:function getUserExternalidAuthorityName(userId,authorityName){// verify the required parameter 'userId' is set
|
|
23943
|
+
if(userId===undefined||userId===null){throw'Missing the required parameter "userId" when calling getUserExternalidAuthorityName';}// verify the required parameter 'authorityName' is set
|
|
23944
|
+
if(authorityName===undefined||authorityName===null){throw'Missing the required parameter "authorityName" when calling getUserExternalidAuthorityName';}return this.apiClient.callApi('/api/v2/users/{userId}/externalid/{authorityName}','GET',{'userId':userId,'authorityName':authorityName},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
23887
23945
|
* Deprecated; will be revived with new contract
|
|
23888
23946
|
*
|
|
23889
23947
|
* @param {String} userId User ID
|
|
@@ -24055,6 +24113,15 @@ if(userId===undefined||userId===null){throw'Missing the required parameter "user
|
|
|
24055
24113
|
*/},{key:"getUsersDevelopmentActivity",value:function getUsersDevelopmentActivity(activityId,type){// verify the required parameter 'activityId' is set
|
|
24056
24114
|
if(activityId===undefined||activityId===null){throw'Missing the required parameter "activityId" when calling getUsersDevelopmentActivity';}// verify the required parameter 'type' is set
|
|
24057
24115
|
if(type===undefined||type===null){throw'Missing the required parameter "type" when calling getUsersDevelopmentActivity';}return this.apiClient.callApi('/api/v2/users/development/activities/{activityId}','GET',{'activityId':activityId},{'type':type},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
24116
|
+
* Get the user associated with external identifier.
|
|
24117
|
+
* Authority name and external key are case sensitive.
|
|
24118
|
+
* @param {String} authorityName Authority Name
|
|
24119
|
+
* @param {String} externalKey External Key
|
|
24120
|
+
* @param {Object} opts Optional parameters
|
|
24121
|
+
* @param {Array.<String>} opts.expand Which fields, if any, to expand
|
|
24122
|
+
*/},{key:"getUsersExternalidAuthorityNameExternalKey",value:function getUsersExternalidAuthorityNameExternalKey(authorityName,externalKey,opts){opts=opts||{};// verify the required parameter 'authorityName' is set
|
|
24123
|
+
if(authorityName===undefined||authorityName===null){throw'Missing the required parameter "authorityName" when calling getUsersExternalidAuthorityNameExternalKey';}// verify the required parameter 'externalKey' is set
|
|
24124
|
+
if(externalKey===undefined||externalKey===null){throw'Missing the required parameter "externalKey" when calling getUsersExternalidAuthorityNameExternalKey';}return this.apiClient.callApi('/api/v2/users/externalid/{authorityName}/{externalKey}','GET',{'authorityName':authorityName,'externalKey':externalKey},{'expand':this.apiClient.buildCollectionParam(opts['expand'],'multi')},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
24058
24125
|
* Get current user details.
|
|
24059
24126
|
* This request is not valid when using the Client Credentials OAuth grant.
|
|
24060
24127
|
* @param {Object} opts Optional parameters
|
|
@@ -24382,7 +24449,7 @@ if(verifierId===undefined||verifierId===null){throw'Missing the required paramet
|
|
|
24382
24449
|
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(){/**
|
|
24383
24450
|
* Utilities service.
|
|
24384
24451
|
* @module purecloud-platform-client-v2/api/UtilitiesApi
|
|
24385
|
-
* @version
|
|
24452
|
+
* @version 215.0.0
|
|
24386
24453
|
*//**
|
|
24387
24454
|
* Constructs a new UtilitiesApi.
|
|
24388
24455
|
* @alias module:purecloud-platform-client-v2/api/UtilitiesApi
|
|
@@ -24409,7 +24476,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
24409
24476
|
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(){/**
|
|
24410
24477
|
* Voicemail service.
|
|
24411
24478
|
* @module purecloud-platform-client-v2/api/VoicemailApi
|
|
24412
|
-
* @version
|
|
24479
|
+
* @version 215.0.0
|
|
24413
24480
|
*//**
|
|
24414
24481
|
* Constructs a new VoicemailApi.
|
|
24415
24482
|
* @alias module:purecloud-platform-client-v2/api/VoicemailApi
|
|
@@ -24571,7 +24638,7 @@ if(userId===undefined||userId===null){throw'Missing the required parameter "user
|
|
|
24571
24638
|
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(){/**
|
|
24572
24639
|
* WebChat service.
|
|
24573
24640
|
* @module purecloud-platform-client-v2/api/WebChatApi
|
|
24574
|
-
* @version
|
|
24641
|
+
* @version 215.0.0
|
|
24575
24642
|
*//**
|
|
24576
24643
|
* Constructs a new WebChatApi.
|
|
24577
24644
|
* @alias module:purecloud-platform-client-v2/api/WebChatApi
|
|
@@ -24706,7 +24773,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
24706
24773
|
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(){/**
|
|
24707
24774
|
* WebDeployments service.
|
|
24708
24775
|
* @module purecloud-platform-client-v2/api/WebDeploymentsApi
|
|
24709
|
-
* @version
|
|
24776
|
+
* @version 215.0.0
|
|
24710
24777
|
*//**
|
|
24711
24778
|
* Constructs a new WebDeploymentsApi.
|
|
24712
24779
|
* @alias module:purecloud-platform-client-v2/api/WebDeploymentsApi
|
|
@@ -24827,7 +24894,7 @@ if(deploymentId===undefined||deploymentId===null){throw'Missing the required par
|
|
|
24827
24894
|
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(){/**
|
|
24828
24895
|
* WebMessaging service.
|
|
24829
24896
|
* @module purecloud-platform-client-v2/api/WebMessagingApi
|
|
24830
|
-
* @version
|
|
24897
|
+
* @version 215.0.0
|
|
24831
24898
|
*//**
|
|
24832
24899
|
* Constructs a new WebMessagingApi.
|
|
24833
24900
|
* @alias module:purecloud-platform-client-v2/api/WebMessagingApi
|
|
@@ -24843,7 +24910,7 @@ if(deployment===undefined||deployment===null){throw'Missing the required paramet
|
|
|
24843
24910
|
*/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(){/**
|
|
24844
24911
|
* Widgets service.
|
|
24845
24912
|
* @module purecloud-platform-client-v2/api/WidgetsApi
|
|
24846
|
-
* @version
|
|
24913
|
+
* @version 215.0.0
|
|
24847
24914
|
*//**
|
|
24848
24915
|
* Constructs a new WidgetsApi.
|
|
24849
24916
|
* @alias module:purecloud-platform-client-v2/api/WidgetsApi
|
|
@@ -24878,7 +24945,7 @@ if(deploymentId===undefined||deploymentId===null){throw'Missing the required par
|
|
|
24878
24945
|
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(){/**
|
|
24879
24946
|
* WorkforceManagement service.
|
|
24880
24947
|
* @module purecloud-platform-client-v2/api/WorkforceManagementApi
|
|
24881
|
-
* @version
|
|
24948
|
+
* @version 215.0.0
|
|
24882
24949
|
*//**
|
|
24883
24950
|
* Constructs a new WorkforceManagementApi.
|
|
24884
24951
|
* @alias module:purecloud-platform-client-v2/api/WorkforceManagementApi
|
|
@@ -26684,7 +26751,7 @@ if(timeOffLimitId===undefined||timeOffLimitId===null){throw'Missing the required
|
|
|
26684
26751
|
* </pre>
|
|
26685
26752
|
* </p>
|
|
26686
26753
|
* @module purecloud-platform-client-v2/index
|
|
26687
|
-
* @version
|
|
26754
|
+
* @version 215.0.0
|
|
26688
26755
|
*/var platformClient=/*#__PURE__*/_createClass(function platformClient(){_classCallCheck(this,platformClient);/**
|
|
26689
26756
|
* The ApiClient constructor.
|
|
26690
26757
|
* @property {module:purecloud-platform-client-v2/ApiClient}
|