purecloud-platform-client-v2 246.0.0 → 247.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +3 -3
- package/dist/node/purecloud-platform-client-v2.js +271 -88
- package/dist/web-amd/purecloud-platform-client-v2.js +271 -88
- package/dist/web-amd/purecloud-platform-client-v2.min.js +1 -1
- package/dist/web-cjs/bundle.js +238 -132
- package/dist/web-cjs/purecloud-platform-client-v2.js +238 -132
- package/dist/web-cjs/purecloud-platform-client-v2.min.js +1 -1
- package/index.d.ts +310 -22
- package/package.json +2 -2
- package/src/purecloud-platform-client-v2/ApiClient.js +1 -1
- package/src/purecloud-platform-client-v2/api/AIStudioApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/AgentAssistantsApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/AgentCopilotApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/AgentUIApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/AlertingApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/AnalyticsApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/ArchitectApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/AssistantCopilotVariationsApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/AuditApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/AuthorizationApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/BackgroundAssistantApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/BillingApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/BusinessRulesApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/CarrierServicesApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/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 -1
- package/src/purecloud-platform-client-v2/api/IntentsApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/JourneyApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/KnowledgeApi.js +159 -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 +3 -2
- package/src/purecloud-platform-client-v2/api/RecordingApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/ResponseManagementApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/RoutingApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/SCIMApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/ScriptsApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/SearchApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/SettingsApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/SocialMediaApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/SpeechTextAnalyticsApi.js +1 -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 +25 -1
- package/src/purecloud-platform-client-v2/api/TelephonyProvidersEdgeApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/TextbotsApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/TokensApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/UploadsApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/UsageApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/UserRecordingsApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/UsersApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/UsersRulesApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/UtilitiesApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/VoicemailApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/WebChatApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/WebDeploymentsApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/WebMessagingApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/WidgetsApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/WorkforceManagementApi.js +1 -1
- package/src/purecloud-platform-client-v2/index.js +1 -1
|
@@ -5720,7 +5720,7 @@ var toString$1=Object.prototype.toString;var getPrototypeOf=Object.getPrototypeO
|
|
|
5720
5720
|
* @param {*} val The value to test
|
|
5721
5721
|
*
|
|
5722
5722
|
* @returns {boolean} True if the value is undefined, otherwise false
|
|
5723
|
-
*/var isUndefined=typeOfTest(
|
|
5723
|
+
*/var isUndefined=typeOfTest('undefined');/**
|
|
5724
5724
|
* Determine if a value is a Buffer
|
|
5725
5725
|
*
|
|
5726
5726
|
* @param {*} val The value to test
|
|
@@ -5732,36 +5732,36 @@ var toString$1=Object.prototype.toString;var getPrototypeOf=Object.getPrototypeO
|
|
|
5732
5732
|
* @param {*} val The value to test
|
|
5733
5733
|
*
|
|
5734
5734
|
* @returns {boolean} True if value is an ArrayBuffer, otherwise false
|
|
5735
|
-
*/var isArrayBuffer=kindOfTest(
|
|
5735
|
+
*/var isArrayBuffer=kindOfTest('ArrayBuffer');/**
|
|
5736
5736
|
* Determine if a value is a view on an ArrayBuffer
|
|
5737
5737
|
*
|
|
5738
5738
|
* @param {*} val The value to test
|
|
5739
5739
|
*
|
|
5740
5740
|
* @returns {boolean} True if value is a view on an ArrayBuffer, otherwise false
|
|
5741
|
-
*/function isArrayBufferView(val){var result;if(typeof ArrayBuffer!==
|
|
5741
|
+
*/function isArrayBufferView(val){var result;if(typeof ArrayBuffer!=='undefined'&&ArrayBuffer.isView){result=ArrayBuffer.isView(val);}else{result=val&&val.buffer&&isArrayBuffer(val.buffer);}return result;}/**
|
|
5742
5742
|
* Determine if a value is a String
|
|
5743
5743
|
*
|
|
5744
5744
|
* @param {*} val The value to test
|
|
5745
5745
|
*
|
|
5746
5746
|
* @returns {boolean} True if value is a String, otherwise false
|
|
5747
|
-
*/var isString=typeOfTest(
|
|
5747
|
+
*/var isString=typeOfTest('string');/**
|
|
5748
5748
|
* Determine if a value is a Function
|
|
5749
5749
|
*
|
|
5750
5750
|
* @param {*} val The value to test
|
|
5751
5751
|
* @returns {boolean} True if value is a Function, otherwise false
|
|
5752
|
-
*/var isFunction$1=typeOfTest(
|
|
5752
|
+
*/var isFunction$1=typeOfTest('function');/**
|
|
5753
5753
|
* Determine if a value is a Number
|
|
5754
5754
|
*
|
|
5755
5755
|
* @param {*} val The value to test
|
|
5756
5756
|
*
|
|
5757
5757
|
* @returns {boolean} True if value is a Number, otherwise false
|
|
5758
|
-
*/var isNumber=typeOfTest(
|
|
5758
|
+
*/var isNumber=typeOfTest('number');/**
|
|
5759
5759
|
* Determine if a value is an Object
|
|
5760
5760
|
*
|
|
5761
5761
|
* @param {*} thing The value to test
|
|
5762
5762
|
*
|
|
5763
5763
|
* @returns {boolean} True if value is an Object, otherwise false
|
|
5764
|
-
*/var isObject=function isObject(thing){return thing!==null&&_typeof(thing)===
|
|
5764
|
+
*/var isObject=function isObject(thing){return thing!==null&&_typeof(thing)==='object';};/**
|
|
5765
5765
|
* Determine if a value is a Boolean
|
|
5766
5766
|
*
|
|
5767
5767
|
* @param {*} thing The value to test
|
|
@@ -5772,7 +5772,7 @@ var toString$1=Object.prototype.toString;var getPrototypeOf=Object.getPrototypeO
|
|
|
5772
5772
|
* @param {*} val The value to test
|
|
5773
5773
|
*
|
|
5774
5774
|
* @returns {boolean} True if value is a plain Object, otherwise false
|
|
5775
|
-
*/var isPlainObject=function isPlainObject(val){if(kindOf(val)!==
|
|
5775
|
+
*/var isPlainObject=function isPlainObject(val){if(kindOf(val)!=='object'){return false;}var prototype=getPrototypeOf(val);return(prototype===null||prototype===Object.prototype||Object.getPrototypeOf(prototype)===null)&&!(toStringTag in val)&&!(iterator in val);};/**
|
|
5776
5776
|
* Determine if a value is an empty object (safely handles Buffers)
|
|
5777
5777
|
*
|
|
5778
5778
|
* @param {*} val The value to test
|
|
@@ -5786,25 +5786,42 @@ return false;}};/**
|
|
|
5786
5786
|
* @param {*} val The value to test
|
|
5787
5787
|
*
|
|
5788
5788
|
* @returns {boolean} True if value is a Date, otherwise false
|
|
5789
|
-
*/var isDate=kindOfTest(
|
|
5789
|
+
*/var isDate=kindOfTest('Date');/**
|
|
5790
5790
|
* Determine if a value is a File
|
|
5791
5791
|
*
|
|
5792
5792
|
* @param {*} val The value to test
|
|
5793
5793
|
*
|
|
5794
5794
|
* @returns {boolean} True if value is a File, otherwise false
|
|
5795
|
-
*/var isFile=kindOfTest(
|
|
5795
|
+
*/var isFile=kindOfTest('File');/**
|
|
5796
|
+
* Determine if a value is a React Native Blob
|
|
5797
|
+
* React Native "blob": an object with a `uri` attribute. Optionally, it can
|
|
5798
|
+
* also have a `name` and `type` attribute to specify filename and content type
|
|
5799
|
+
*
|
|
5800
|
+
* @see https://github.com/facebook/react-native/blob/26684cf3adf4094eb6c405d345a75bf8c7c0bf88/Libraries/Network/FormData.js#L68-L71
|
|
5801
|
+
*
|
|
5802
|
+
* @param {*} value The value to test
|
|
5803
|
+
*
|
|
5804
|
+
* @returns {boolean} True if value is a React Native Blob, otherwise false
|
|
5805
|
+
*/var isReactNativeBlob=function isReactNativeBlob(value){return!!(value&&typeof value.uri!=='undefined');};/**
|
|
5806
|
+
* Determine if environment is React Native
|
|
5807
|
+
* ReactNative `FormData` has a non-standard `getParts()` method
|
|
5808
|
+
*
|
|
5809
|
+
* @param {*} formData The formData to test
|
|
5810
|
+
*
|
|
5811
|
+
* @returns {boolean} True if environment is React Native, otherwise false
|
|
5812
|
+
*/var isReactNative=function isReactNative(formData){return formData&&typeof formData.getParts!=='undefined';};/**
|
|
5796
5813
|
* Determine if a value is a Blob
|
|
5797
5814
|
*
|
|
5798
5815
|
* @param {*} val The value to test
|
|
5799
5816
|
*
|
|
5800
5817
|
* @returns {boolean} True if value is a Blob, otherwise false
|
|
5801
|
-
*/var isBlob=kindOfTest(
|
|
5818
|
+
*/var isBlob=kindOfTest('Blob');/**
|
|
5802
5819
|
* Determine if a value is a FileList
|
|
5803
5820
|
*
|
|
5804
5821
|
* @param {*} val The value to test
|
|
5805
5822
|
*
|
|
5806
5823
|
* @returns {boolean} True if value is a File, otherwise false
|
|
5807
|
-
*/var isFileList=kindOfTest(
|
|
5824
|
+
*/var isFileList=kindOfTest('FileList');/**
|
|
5808
5825
|
* Determine if a value is a Stream
|
|
5809
5826
|
*
|
|
5810
5827
|
* @param {*} val The value to test
|
|
@@ -5816,20 +5833,20 @@ return false;}};/**
|
|
|
5816
5833
|
* @param {*} thing The value to test
|
|
5817
5834
|
*
|
|
5818
5835
|
* @returns {boolean} True if value is an FormData, otherwise false
|
|
5819
|
-
*/var isFormData=function isFormData(thing){var kind;return thing&&(
|
|
5820
|
-
kind===
|
|
5836
|
+
*/function getGlobal(){if(typeof globalThis!=='undefined')return globalThis;if(typeof self!=='undefined')return self;if(typeof window!=='undefined')return window;if(typeof global$1!=='undefined')return global$1;return{};}var G=getGlobal();var FormDataCtor=typeof G.FormData!=='undefined'?G.FormData:undefined;var isFormData=function isFormData(thing){var kind;return thing&&(FormDataCtor&&thing instanceof FormDataCtor||isFunction$1(thing.append)&&((kind=kindOf(thing))==='formdata'||// detect form-data instance
|
|
5837
|
+
kind==='object'&&isFunction$1(thing.toString)&&thing.toString()==='[object FormData]'));};/**
|
|
5821
5838
|
* Determine if a value is a URLSearchParams object
|
|
5822
5839
|
*
|
|
5823
5840
|
* @param {*} val The value to test
|
|
5824
5841
|
*
|
|
5825
5842
|
* @returns {boolean} True if value is a URLSearchParams object, otherwise false
|
|
5826
|
-
*/var isURLSearchParams=kindOfTest(
|
|
5843
|
+
*/var isURLSearchParams=kindOfTest('URLSearchParams');var _map=['ReadableStream','Request','Response','Headers'].map(kindOfTest),_map2=_slicedToArray(_map,4),isReadableStream=_map2[0],isRequest=_map2[1],isResponse=_map2[2],isHeaders=_map2[3];/**
|
|
5827
5844
|
* Trim excess whitespace off the beginning and end of a string
|
|
5828
5845
|
*
|
|
5829
5846
|
* @param {String} str The String to trim
|
|
5830
5847
|
*
|
|
5831
5848
|
* @returns {String} The String freed of excess whitespace
|
|
5832
|
-
*/var trim=function trim(str){return str.trim?str.trim():str.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,
|
|
5849
|
+
*/var trim=function trim(str){return str.trim?str.trim():str.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,'');};/**
|
|
5833
5850
|
* Iterate over an Array or an Object invoking a function for each item.
|
|
5834
5851
|
*
|
|
5835
5852
|
* If `obj` is an Array callback will be called passing
|
|
@@ -5845,11 +5862,18 @@ kind==="object"&&isFunction$1(thing.toString)&&thing.toString()==="[object FormD
|
|
|
5845
5862
|
* @param {Boolean} [options.allOwnKeys = false]
|
|
5846
5863
|
* @returns {any}
|
|
5847
5864
|
*/function forEach(obj,fn){var _ref3=arguments.length>2&&arguments[2]!==undefined?arguments[2]:{},_ref3$allOwnKeys=_ref3.allOwnKeys,allOwnKeys=_ref3$allOwnKeys===void 0?false:_ref3$allOwnKeys;// Don't bother if no value provided
|
|
5848
|
-
if(obj===null||typeof obj===
|
|
5849
|
-
if(_typeof(obj)!==
|
|
5865
|
+
if(obj===null||typeof obj==='undefined'){return;}var i;var l;// Force an array if not already something iterable
|
|
5866
|
+
if(_typeof(obj)!=='object'){/*eslint no-param-reassign:0*/obj=[obj];}if(isArray$1(obj)){// Iterate over array values
|
|
5850
5867
|
for(i=0,l=obj.length;i<l;i++){fn.call(null,obj[i],i,obj);}}else{// Buffer check
|
|
5851
5868
|
if(isBuffer$1(obj)){return;}// Iterate over object keys
|
|
5852
|
-
var keys=allOwnKeys?Object.getOwnPropertyNames(obj):Object.keys(obj);var len=keys.length;var key;for(i=0;i<len;i++){key=keys[i];fn.call(null,obj[key],key,obj);}}}
|
|
5869
|
+
var keys=allOwnKeys?Object.getOwnPropertyNames(obj):Object.keys(obj);var len=keys.length;var key;for(i=0;i<len;i++){key=keys[i];fn.call(null,obj[key],key,obj);}}}/**
|
|
5870
|
+
* Finds a key in an object, case-insensitive, returning the actual key name.
|
|
5871
|
+
* Returns null if the object is a Buffer or if no match is found.
|
|
5872
|
+
*
|
|
5873
|
+
* @param {Object} obj - The object to search.
|
|
5874
|
+
* @param {string} key - The key to find (case-insensitive).
|
|
5875
|
+
* @returns {?string} The actual key name if found, otherwise null.
|
|
5876
|
+
*/function findKey(obj,key){if(isBuffer$1(obj)){return null;}key=key.toLowerCase();var keys=Object.keys(obj);var i=keys.length;var _key;while(i-->0){_key=keys[i];if(key===_key.toLowerCase()){return _key;}}return null;}var _global=function(){/*eslint no-undef:0*/if(typeof globalThis!=='undefined')return globalThis;return typeof self!=='undefined'?self:typeof window!=='undefined'?window:global$1;}();var isContextDefined=function isContextDefined(context){return!isUndefined(context)&&context!==_global;};/**
|
|
5853
5877
|
* Accepts varargs expecting each argument to be an object, then
|
|
5854
5878
|
* immutably merges the properties of each object and returns result.
|
|
5855
5879
|
*
|
|
@@ -5867,7 +5891,7 @@ var keys=allOwnKeys?Object.getOwnPropertyNames(obj):Object.keys(obj);var len=key
|
|
|
5867
5891
|
*
|
|
5868
5892
|
* @returns {Object} Result of all merge properties
|
|
5869
5893
|
*/function merge(/* obj1, obj2, obj3, ... */){var _ref4=isContextDefined(this)&&this||{},caseless=_ref4.caseless,skipUndefined=_ref4.skipUndefined;var result={};var assignValue=function assignValue(val,key){// Skip dangerous property names to prevent prototype pollution
|
|
5870
|
-
if(key===
|
|
5894
|
+
if(key==='__proto__'||key==='constructor'||key==='prototype'){return;}var targetKey=caseless&&findKey(result,key)||key;if(isPlainObject(result[targetKey])&&isPlainObject(val)){result[targetKey]=merge(result[targetKey],val);}else if(isPlainObject(val)){result[targetKey]=merge({},val);}else if(isArray$1(val)){result[targetKey]=val.slice();}else if(!skipUndefined||!isUndefined(val)){result[targetKey]=val;}};for(var i=0,l=arguments.length;i<l;i++){arguments[i]&&forEach(arguments[i],assignValue);}return result;}/**
|
|
5871
5895
|
* Extends object a by mutably adding to it the properties of object b.
|
|
5872
5896
|
*
|
|
5873
5897
|
* @param {Object} a The object to be extended
|
|
@@ -5891,7 +5915,7 @@ if(key==="__proto__"||key==="constructor"||key==="prototype"){return;}var target
|
|
|
5891
5915
|
* @param {object} [descriptors]
|
|
5892
5916
|
*
|
|
5893
5917
|
* @returns {void}
|
|
5894
|
-
*/var inherits=function inherits(constructor,superConstructor,props,descriptors){constructor.prototype=Object.create(superConstructor.prototype,descriptors);Object.defineProperty(constructor.prototype,
|
|
5918
|
+
*/var inherits=function inherits(constructor,superConstructor,props,descriptors){constructor.prototype=Object.create(superConstructor.prototype,descriptors);Object.defineProperty(constructor.prototype,'constructor',{value:constructor,writable:true,enumerable:false,configurable:true});Object.defineProperty(constructor,'super',{value:superConstructor.prototype});props&&Object.assign(constructor.prototype,props);};/**
|
|
5895
5919
|
* Resolve object with deep prototype chain to a flat object
|
|
5896
5920
|
* @param {Object} sourceObj source object
|
|
5897
5921
|
* @param {Object} [destObj]
|
|
@@ -5923,7 +5947,7 @@ if(sourceObj==null)return destObj;do{props=Object.getOwnPropertyNames(sourceObj)
|
|
|
5923
5947
|
* @returns {Array}
|
|
5924
5948
|
*/// eslint-disable-next-line func-names
|
|
5925
5949
|
var isTypedArray=function(TypedArray){// eslint-disable-next-line func-names
|
|
5926
|
-
return function(thing){return TypedArray&&thing instanceof TypedArray;};}(typeof Uint8Array!==
|
|
5950
|
+
return function(thing){return TypedArray&&thing instanceof TypedArray;};}(typeof Uint8Array!=='undefined'&&getPrototypeOf(Uint8Array));/**
|
|
5927
5951
|
* For each entry in the object, call the function with the key and value.
|
|
5928
5952
|
*
|
|
5929
5953
|
* @param {Object<any, any>} obj - The object to iterate over.
|
|
@@ -5937,27 +5961,61 @@ return function(thing){return TypedArray&&thing instanceof TypedArray;};}(typeof
|
|
|
5937
5961
|
* @param {string} str - The string to search.
|
|
5938
5962
|
*
|
|
5939
5963
|
* @returns {Array<boolean>}
|
|
5940
|
-
*/var matchAll=function matchAll(regExp,str){var matches;var arr=[];while((matches=regExp.exec(str))!==null){arr.push(matches);}return arr;};/* Checking if the kindOfTest function returns true when passed an HTMLFormElement. */var isHTMLForm=kindOfTest(
|
|
5964
|
+
*/var matchAll=function matchAll(regExp,str){var matches;var arr=[];while((matches=regExp.exec(str))!==null){arr.push(matches);}return arr;};/* Checking if the kindOfTest function returns true when passed an HTMLFormElement. */var isHTMLForm=kindOfTest('HTMLFormElement');var toCamelCase=function toCamelCase(str){return str.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function replacer(m,p1,p2){return p1.toUpperCase()+p2;});};/* Creating a function that will check if an object has a property. */var hasOwnProperty=function(_ref6){var hasOwnProperty=_ref6.hasOwnProperty;return function(obj,prop){return hasOwnProperty.call(obj,prop);};}(Object.prototype);/**
|
|
5941
5965
|
* Determine if a value is a RegExp object
|
|
5942
5966
|
*
|
|
5943
5967
|
* @param {*} val The value to test
|
|
5944
5968
|
*
|
|
5945
5969
|
* @returns {boolean} True if value is a RegExp object, otherwise false
|
|
5946
|
-
*/var isRegExp=kindOfTest(
|
|
5970
|
+
*/var isRegExp=kindOfTest('RegExp');var reduceDescriptors=function reduceDescriptors(obj,reducer){var descriptors=Object.getOwnPropertyDescriptors(obj);var reducedDescriptors={};forEach(descriptors,function(descriptor,name){var ret;if((ret=reducer(descriptor,name,obj))!==false){reducedDescriptors[name]=ret||descriptor;}});Object.defineProperties(obj,reducedDescriptors);};/**
|
|
5947
5971
|
* Makes all methods read-only
|
|
5948
5972
|
* @param {Object} obj
|
|
5949
5973
|
*/var freezeMethods=function freezeMethods(obj){reduceDescriptors(obj,function(descriptor,name){// skip restricted props in strict mode
|
|
5950
|
-
if(isFunction$1(obj)&&[
|
|
5974
|
+
if(isFunction$1(obj)&&['arguments','caller','callee'].indexOf(name)!==-1){return false;}var value=obj[name];if(!isFunction$1(value))return;descriptor.enumerable=false;if('writable'in descriptor){descriptor.writable=false;return;}if(!descriptor.set){descriptor.set=function(){throw Error("Can not rewrite read-only method '"+name+"'");};}});};/**
|
|
5975
|
+
* Converts an array or a delimited string into an object set with values as keys and true as values.
|
|
5976
|
+
* Useful for fast membership checks.
|
|
5977
|
+
*
|
|
5978
|
+
* @param {Array|string} arrayOrString - The array or string to convert.
|
|
5979
|
+
* @param {string} delimiter - The delimiter to use if input is a string.
|
|
5980
|
+
* @returns {Object} An object with keys from the array or string, values set to true.
|
|
5981
|
+
*/var toObjectSet=function toObjectSet(arrayOrString,delimiter){var obj={};var define=function define(arr){arr.forEach(function(value){obj[value]=true;});};isArray$1(arrayOrString)?define(arrayOrString):define(String(arrayOrString).split(delimiter));return obj;};var noop=function noop(){};var toFiniteNumber=function toFiniteNumber(value,defaultValue){return value!=null&&Number.isFinite(value=+value)?value:defaultValue;};/**
|
|
5951
5982
|
* If the thing is a FormData object, return true, otherwise return false.
|
|
5952
5983
|
*
|
|
5953
5984
|
* @param {unknown} thing - The thing to check.
|
|
5954
5985
|
*
|
|
5955
5986
|
* @returns {boolean}
|
|
5956
|
-
*/function isSpecCompliantForm(thing){return!!(thing&&isFunction$1(thing.append)&&thing[toStringTag]===
|
|
5957
|
-
|
|
5987
|
+
*/function isSpecCompliantForm(thing){return!!(thing&&isFunction$1(thing.append)&&thing[toStringTag]==='FormData'&&thing[iterator]);}/**
|
|
5988
|
+
* Recursively converts an object to a JSON-compatible object, handling circular references and Buffers.
|
|
5989
|
+
*
|
|
5990
|
+
* @param {Object} obj - The object to convert.
|
|
5991
|
+
* @returns {Object} The JSON-compatible object.
|
|
5992
|
+
*/var toJSONObject=function toJSONObject(obj){var stack=new Array(10);var _visit=function visit(source,i){if(isObject(source)){if(stack.indexOf(source)>=0){return;}//Buffer check
|
|
5993
|
+
if(isBuffer$1(source)){return source;}if(!('toJSON'in source)){stack[i]=source;var target=isArray$1(source)?[]:{};forEach(source,function(value,key){var reducedValue=_visit(value,i+1);!isUndefined(reducedValue)&&(target[key]=reducedValue);});stack[i]=undefined;return target;}}return source;};return _visit(obj,0);};/**
|
|
5994
|
+
* Determines if a value is an async function.
|
|
5995
|
+
*
|
|
5996
|
+
* @param {*} thing - The value to test.
|
|
5997
|
+
* @returns {boolean} True if value is an async function, otherwise false.
|
|
5998
|
+
*/var isAsyncFn=kindOfTest('AsyncFunction');/**
|
|
5999
|
+
* Determines if a value is thenable (has then and catch methods).
|
|
6000
|
+
*
|
|
6001
|
+
* @param {*} thing - The value to test.
|
|
6002
|
+
* @returns {boolean} True if value is thenable, otherwise false.
|
|
6003
|
+
*/var isThenable=function isThenable(thing){return thing&&(isObject(thing)||isFunction$1(thing))&&isFunction$1(thing.then)&&isFunction$1(thing["catch"]);};// original code
|
|
5958
6004
|
// https://github.com/DigitalBrainJS/AxiosPromise/blob/16deab13710ec09779922131f3fa5954320f83ab/lib/utils.js#L11-L34
|
|
5959
|
-
|
|
5960
|
-
|
|
6005
|
+
/**
|
|
6006
|
+
* Provides a cross-platform setImmediate implementation.
|
|
6007
|
+
* Uses native setImmediate if available, otherwise falls back to postMessage or setTimeout.
|
|
6008
|
+
*
|
|
6009
|
+
* @param {boolean} setImmediateSupported - Whether setImmediate is supported.
|
|
6010
|
+
* @param {boolean} postMessageSupported - Whether postMessage is supported.
|
|
6011
|
+
* @returns {Function} A function to schedule a callback asynchronously.
|
|
6012
|
+
*/var _setImmediate=function(setImmediateSupported,postMessageSupported){if(setImmediateSupported){return setImmediate;}return postMessageSupported?function(token,callbacks){_global.addEventListener('message',function(_ref7){var source=_ref7.source,data=_ref7.data;if(source===_global&&data===token){callbacks.length&&callbacks.shift()();}},false);return function(cb){callbacks.push(cb);_global.postMessage(token,'*');};}("axios@".concat(Math.random()),[]):function(cb){return setTimeout(cb);};}(typeof setImmediate==='function',isFunction$1(_global.postMessage));/**
|
|
6013
|
+
* Schedules a microtask or asynchronous callback as soon as possible.
|
|
6014
|
+
* Uses queueMicrotask if available, otherwise falls back to process.nextTick or _setImmediate.
|
|
6015
|
+
*
|
|
6016
|
+
* @type {Function}
|
|
6017
|
+
*/var asap=typeof queueMicrotask!=='undefined'?queueMicrotask.bind(_global):typeof process!=='undefined'&&nextTick||_setImmediate;// *********************
|
|
6018
|
+
var isIterable=function isIterable(thing){return thing!=null&&isFunction$1(thing[iterator]);};var utils$1={isArray:isArray$1,isArrayBuffer:isArrayBuffer,isBuffer:isBuffer$1,isFormData:isFormData,isArrayBufferView:isArrayBufferView,isString:isString,isNumber:isNumber,isBoolean:isBoolean,isObject:isObject,isPlainObject:isPlainObject,isEmptyObject:isEmptyObject,isReadableStream:isReadableStream,isRequest:isRequest,isResponse:isResponse,isHeaders:isHeaders,isUndefined:isUndefined,isDate:isDate,isFile:isFile,isReactNativeBlob:isReactNativeBlob,isReactNative:isReactNative,isBlob:isBlob,isRegExp:isRegExp,isFunction:isFunction$1,isStream:isStream,isURLSearchParams:isURLSearchParams,isTypedArray:isTypedArray,isFileList:isFileList,forEach:forEach,merge:merge,extend:extend,trim:trim,stripBOM:stripBOM,inherits:inherits,toFlatObject:toFlatObject,kindOf:kindOf,kindOfTest:kindOfTest,endsWith:endsWith,toArray:toArray,forEachEntry:forEachEntry,matchAll:matchAll,isHTMLForm:isHTMLForm,hasOwnProperty:hasOwnProperty,hasOwnProp:hasOwnProperty,// an alias to avoid ESLint no-prototype-builtins detection
|
|
5961
6019
|
reduceDescriptors:reduceDescriptors,freezeMethods:freezeMethods,toObjectSet:toObjectSet,toCamelCase:toCamelCase,noop:noop,toFiniteNumber:toFiniteNumber,findKey:findKey,global:_global,isContextDefined:isContextDefined,isSpecCompliantForm:isSpecCompliantForm,toJSONObject:toJSONObject,isAsyncFn:isAsyncFn,isThenable:isThenable,setImmediate:_setImmediate,asap:asap,isIterable:isIterable};var lookup=[];var revLookup=[];var Arr=typeof Uint8Array!=='undefined'?Uint8Array:Array;var inited=false;function init(){inited=true;var code='ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/';for(var i=0,len=code.length;i<len;++i){lookup[i]=code[i];revLookup[code.charCodeAt(i)]=i;}revLookup['-'.charCodeAt(0)]=62;revLookup['_'.charCodeAt(0)]=63;}function toByteArray(b64){if(!inited){init();}var i,j,l,tmp,placeHolders,arr;var len=b64.length;if(len%4>0){throw new Error('Invalid string. Length must be a multiple of 4');}// the number of equal signs (place holders)
|
|
5962
6020
|
// if there are two placeholders, than the two characters before it
|
|
5963
6021
|
// represent one byte
|
|
@@ -6122,11 +6180,15 @@ function isSlowBuffer(obj){return typeof obj.readFloatLE==='function'&&typeof ob
|
|
|
6122
6180
|
* @param {Object} [response] The response.
|
|
6123
6181
|
*
|
|
6124
6182
|
* @returns {Error} The created error.
|
|
6125
|
-
*/function AxiosError(message,code,config,request,response){var _this;_classCallCheck(this,AxiosError);_this=_callSuper(this,AxiosError,[message])
|
|
6183
|
+
*/function AxiosError(message,code,config,request,response){var _this;_classCallCheck(this,AxiosError);_this=_callSuper(this,AxiosError,[message]);// Make message enumerable to maintain backward compatibility
|
|
6184
|
+
// The native Error constructor sets message as non-enumerable,
|
|
6185
|
+
// but axios < v1.13.3 had it as enumerable
|
|
6186
|
+
Object.defineProperty(_this,'message',{value:message,enumerable:true,writable:true,configurable:true});_this.name='AxiosError';_this.isAxiosError=true;code&&(_this.code=code);config&&(_this.config=config);request&&(_this.request=request);if(response){_this.response=response;_this.status=response.status;}return _this;}_inherits(AxiosError,_Error);return _createClass(AxiosError,[{key:"toJSON",value:function toJSON(){return{// Standard
|
|
6126
6187
|
message:this.message,name:this.name,// Microsoft
|
|
6127
6188
|
description:this.description,number:this.number,// Mozilla
|
|
6128
6189
|
fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,// Axios
|
|
6129
|
-
config:utils$1.toJSONObject(this.config),code:this.code,status:this.status};}}],[{key:"from",value:function from(error,code,config,request,response,customProps){var axiosError=new AxiosError(error.message,code||error.code,config,request,response);axiosError.cause=error;axiosError.name=error.name
|
|
6190
|
+
config:utils$1.toJSONObject(this.config),code:this.code,status:this.status};}}],[{key:"from",value:function from(error,code,config,request,response,customProps){var axiosError=new AxiosError(error.message,code||error.code,config,request,response);axiosError.cause=error;axiosError.name=error.name;// Preserve status from the original error if not already set from response
|
|
6191
|
+
if(error.status!=null&&axiosError.status==null){axiosError.status=error.status;}customProps&&Object.assign(axiosError,customProps);return axiosError;}}]);}(/*#__PURE__*/_wrapNativeSuper(Error));// This can be changed to static properties as soon as the parser options in .eslint.cjs are updated.
|
|
6130
6192
|
AxiosError.ERR_BAD_OPTION_VALUE='ERR_BAD_OPTION_VALUE';AxiosError.ERR_BAD_OPTION='ERR_BAD_OPTION';AxiosError.ECONNABORTED='ECONNABORTED';AxiosError.ETIMEDOUT='ETIMEDOUT';AxiosError.ERR_NETWORK='ERR_NETWORK';AxiosError.ERR_FR_TOO_MANY_REDIRECTS='ERR_FR_TOO_MANY_REDIRECTS';AxiosError.ERR_DEPRECATED='ERR_DEPRECATED';AxiosError.ERR_BAD_RESPONSE='ERR_BAD_RESPONSE';AxiosError.ERR_BAD_REQUEST='ERR_BAD_REQUEST';AxiosError.ERR_CANCELED='ERR_CANCELED';AxiosError.ERR_NOT_SUPPORT='ERR_NOT_SUPPORT';AxiosError.ERR_INVALID_URL='ERR_INVALID_URL';var AxiosError$1=AxiosError;// eslint-disable-next-line strict
|
|
6131
6193
|
var httpAdapter=null;/**
|
|
6132
6194
|
* Determines if the given thing is a array or js object.
|
|
@@ -6188,7 +6250,7 @@ var visitor=options.visitor||defaultVisitor;var dots=options.dots;var indexes=op
|
|
|
6188
6250
|
* @this {FormData}
|
|
6189
6251
|
*
|
|
6190
6252
|
* @returns {boolean} return true to visit the each prop of the value recursively
|
|
6191
|
-
*/function defaultVisitor(value,key,path){var arr=value;if(value&&!path&&_typeof(value)==='object'){if(utils$1.endsWith(key,'{}')){// eslint-disable-next-line no-param-reassign
|
|
6253
|
+
*/function defaultVisitor(value,key,path){var arr=value;if(utils$1.isReactNative(formData)&&utils$1.isReactNativeBlob(value)){formData.append(renderKey(path,key,dots),convertValue(value));return false;}if(value&&!path&&_typeof(value)==='object'){if(utils$1.endsWith(key,'{}')){// eslint-disable-next-line no-param-reassign
|
|
6192
6254
|
key=metaTokens?key:key.slice(0,-2);// eslint-disable-next-line no-param-reassign
|
|
6193
6255
|
value=JSON.stringify(value);}else if(utils$1.isArray(value)&&isFlatArray(value)||(utils$1.isFileList(value)||utils$1.endsWith(key,'[]'))&&(arr=utils$1.toArray(value))){// eslint-disable-next-line no-param-reassign
|
|
6194
6256
|
key=removeBrackets(key);arr.forEach(function each(el,index){!(utils$1.isUndefined(el)||el===null)&&formData.append(// eslint-disable-next-line no-nested-ternary
|
|
@@ -6221,7 +6283,7 @@ indexes===true?renderKey([key],index,dots):indexes===null?key:key+'[]',convertVa
|
|
|
6221
6283
|
* @param {?(object|Function)} options
|
|
6222
6284
|
*
|
|
6223
6285
|
* @returns {string} The formatted url
|
|
6224
|
-
*/function buildURL(url,params,options){if(!params){return url;}var _encode=options&&options.encode||encode;var _options=utils$1.isFunction(options)?{serialize:options}:options;var serializeFn=_options&&_options.serialize;var serializedParams;if(serializeFn){serializedParams=serializeFn(params,_options);}else{serializedParams=utils$1.isURLSearchParams(params)?params.toString():new AxiosURLSearchParams(params,_options).toString(_encode);}if(serializedParams){var hashmarkIndex=url.indexOf(
|
|
6286
|
+
*/function buildURL(url,params,options){if(!params){return url;}var _encode=options&&options.encode||encode;var _options=utils$1.isFunction(options)?{serialize:options}:options;var serializeFn=_options&&_options.serialize;var serializedParams;if(serializeFn){serializedParams=serializeFn(params,_options);}else{serializedParams=utils$1.isURLSearchParams(params)?params.toString():new AxiosURLSearchParams(params,_options).toString(_encode);}if(serializedParams){var hashmarkIndex=url.indexOf('#');if(hashmarkIndex!==-1){url=url.slice(0,hashmarkIndex);}url+=(url.indexOf('?')===-1?'?':'&')+serializedParams;}return url;}var InterceptorManager=/*#__PURE__*/function(){function InterceptorManager(){_classCallCheck(this,InterceptorManager);this.handlers=[];}/**
|
|
6225
6287
|
* Add a new interceptor to the stack
|
|
6226
6288
|
*
|
|
6227
6289
|
* @param {Function} fulfilled The function to handle `then` for a `Promise`
|
|
@@ -6307,7 +6369,7 @@ return utils$1.matchAll(/\w+|\[(\w*)]/g,name).map(function(match){return match[0
|
|
|
6307
6369
|
*/function stringifySafely(rawValue,parser,encoder){if(utils$1.isString(rawValue)){try{(parser||JSON.parse)(rawValue);return utils$1.trim(rawValue);}catch(e){if(e.name!=='SyntaxError'){throw e;}}}return(encoder||JSON.stringify)(rawValue);}var defaults={transitional:transitionalDefaults,adapter:['xhr','http','fetch'],transformRequest:[function transformRequest(data,headers){var contentType=headers.getContentType()||'';var hasJSONContentType=contentType.indexOf('application/json')>-1;var isObjectPayload=utils$1.isObject(data);if(isObjectPayload&&utils$1.isHTMLForm(data)){data=new FormData(data);}var isFormData=utils$1.isFormData(data);if(isFormData){return hasJSONContentType?JSON.stringify(formDataToJSON(data)):data;}if(utils$1.isArrayBuffer(data)||utils$1.isBuffer(data)||utils$1.isStream(data)||utils$1.isFile(data)||utils$1.isBlob(data)||utils$1.isReadableStream(data)){return data;}if(utils$1.isArrayBufferView(data)){return data.buffer;}if(utils$1.isURLSearchParams(data)){headers.setContentType('application/x-www-form-urlencoded;charset=utf-8',false);return data.toString();}var isFileList;if(isObjectPayload){if(contentType.indexOf('application/x-www-form-urlencoded')>-1){return toURLEncodedForm(data,this.formSerializer).toString();}if((isFileList=utils$1.isFileList(data))||contentType.indexOf('multipart/form-data')>-1){var _FormData=this.env&&this.env.FormData;return toFormData(isFileList?{'files[]':data}:data,_FormData&&new _FormData(),this.formSerializer);}}if(isObjectPayload||hasJSONContentType){headers.setContentType('application/json',false);return stringifySafely(data);}return data;}],transformResponse:[function transformResponse(data){var transitional=this.transitional||defaults.transitional;var forcedJSONParsing=transitional&&transitional.forcedJSONParsing;var JSONRequested=this.responseType==='json';if(utils$1.isResponse(data)||utils$1.isReadableStream(data)){return data;}if(data&&utils$1.isString(data)&&(forcedJSONParsing&&!this.responseType||JSONRequested)){var silentJSONParsing=transitional&&transitional.silentJSONParsing;var strictJSONParsing=!silentJSONParsing&&JSONRequested;try{return JSON.parse(data,this.parseReviver);}catch(e){if(strictJSONParsing){if(e.name==='SyntaxError'){throw AxiosError$1.from(e,AxiosError$1.ERR_BAD_RESPONSE,this,null,this.response);}throw e;}}}return data;}],/**
|
|
6308
6370
|
* A timeout in milliseconds to abort a request. If set to 0 (default) a
|
|
6309
6371
|
* timeout is not created.
|
|
6310
|
-
*/timeout:0,xsrfCookieName:'XSRF-TOKEN',xsrfHeaderName:'X-XSRF-TOKEN',maxContentLength:-1,maxBodyLength:-1,env:{FormData:platform.classes.FormData,Blob:platform.classes.Blob},validateStatus:function validateStatus(status){return status>=200&&status<300;},headers:{common:{
|
|
6372
|
+
*/timeout:0,xsrfCookieName:'XSRF-TOKEN',xsrfHeaderName:'X-XSRF-TOKEN',maxContentLength:-1,maxBodyLength:-1,env:{FormData:platform.classes.FormData,Blob:platform.classes.Blob},validateStatus:function validateStatus(status){return status>=200&&status<300;},headers:{common:{Accept:'application/json, text/plain, */*','Content-Type':undefined}}};utils$1.forEach(['delete','get','head','post','put','patch'],function(method){defaults.headers[method]={};});var defaults$1=defaults;// RawAxiosHeaders whose duplicates are ignored by node
|
|
6311
6373
|
// c.f. https://nodejs.org/api/http.html#http_message_headers
|
|
6312
6374
|
var ignoreDuplicateOf=utils$1.toObjectSet(['age','authorization','content-length','content-type','etag','expires','from','host','if-modified-since','if-unmodified-since','last-modified','location','max-forwards','proxy-authorization','referer','retry-after','user-agent']);/**
|
|
6313
6375
|
* Parse headers into an object
|
|
@@ -6322,7 +6384,7 @@ var ignoreDuplicateOf=utils$1.toObjectSet(['age','authorization','content-length
|
|
|
6322
6384
|
* @param {String} rawHeaders Headers needing to be parsed
|
|
6323
6385
|
*
|
|
6324
6386
|
* @returns {Object} Headers parsed into an object
|
|
6325
|
-
*/var parseHeaders=function parseHeaders(rawHeaders){var parsed={};var key;var val;var i;rawHeaders&&rawHeaders.split('\n').forEach(function parser(line){i=line.indexOf(':');key=line.substring(0,i).trim().toLowerCase();val=line.substring(i+1).trim();if(!key||parsed[key]&&ignoreDuplicateOf[key]){return;}if(key==='set-cookie'){if(parsed[key]){parsed[key].push(val);}else{parsed[key]=[val];}}else{parsed[key]=parsed[key]?parsed[key]+', '+val:val;}});return parsed;};var $internals=Symbol('internals');function normalizeHeader(header){return header&&String(header).trim().toLowerCase();}function normalizeValue(value){if(value===false||value==null){return value;}return utils$1.isArray(value)?value.map(normalizeValue):String(value);}function parseTokens(str){var tokens=Object.create(null);var tokensRE=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;var match;while(match=tokensRE.exec(str)){tokens[match[1]]=match[2];}return tokens;}var isValidHeaderName=function isValidHeaderName(str){return /^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(str.trim());};function matchHeaderValue(context,value,header,filter,isHeaderNameFilter){if(utils$1.isFunction(filter)){return filter.call(this,value,header);}if(isHeaderNameFilter){value=header;}if(!utils$1.isString(value))return;if(utils$1.isString(filter)){return value.indexOf(filter)!==-1;}if(utils$1.isRegExp(filter)){return filter.test(value);}}function formatHeader(header){return header.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,function(w,_char,str){return _char.toUpperCase()+str;});}function buildAccessors(obj,header){var accessorName=utils$1.toCamelCase(' '+header);['get','set','has'].forEach(function(methodName){Object.defineProperty(obj,methodName+accessorName,{value:function value(arg1,arg2,arg3){return this[methodName].call(this,header,arg1,arg2,arg3);},configurable:true});});}var AxiosHeaders=/*#__PURE__*/function(){function AxiosHeaders(headers){_classCallCheck(this,AxiosHeaders);headers&&this.set(headers);}return _createClass(AxiosHeaders,[{key:"set",value:function set(header,valueOrRewrite,rewrite){var self=this;function setHeader(_value,_header,_rewrite){var lHeader=normalizeHeader(_header);if(!lHeader){throw new Error('header name must be a non-empty string');}var key=utils$1.findKey(self,lHeader);if(!key||self[key]===undefined||_rewrite===true||_rewrite===undefined&&self[key]!==false){self[key||_header]=normalizeValue(_value);}}var setHeaders=function setHeaders(headers,_rewrite){return utils$1.forEach(headers,function(_value,_header){return setHeader(_value,_header,_rewrite);});};if(utils$1.isPlainObject(header)||header instanceof this.constructor){setHeaders(header,valueOrRewrite);}else if(utils$1.isString(header)&&(header=header.trim())&&!isValidHeaderName(header)){setHeaders(parseHeaders(header),valueOrRewrite);}else if(utils$1.isObject(header)&&utils$1.isIterable(header)){var obj={},dest,key;var _iterator3=_createForOfIteratorHelper(header),_step2;try{for(_iterator3.s();!(_step2=_iterator3.n()).done;){var entry=_step2.value;if(!utils$1.isArray(entry)){throw TypeError('Object iterator must return a key-value pair');}obj[key=entry[0]]=(dest=obj[key])?utils$1.isArray(dest)?[].concat(_toConsumableArray(dest),[entry[1]]):[dest,entry[1]]:entry[1];}}catch(err){_iterator3.e(err);}finally{_iterator3.f();}setHeaders(obj,valueOrRewrite);}else{header!=null&&setHeader(valueOrRewrite,header,rewrite);}return this;}},{key:"get",value:function get(header,parser){header=normalizeHeader(header);if(header){var key=utils$1.findKey(this,header);if(key){var value=this[key];if(!parser){return value;}if(parser===true){return parseTokens(value);}if(utils$1.isFunction(parser)){return parser.call(this,value,key);}if(utils$1.isRegExp(parser)){return parser.exec(value);}throw new TypeError('parser must be boolean|regexp|function');}}}},{key:"has",value:function has(header,matcher){header=normalizeHeader(header);if(header){var key=utils$1.findKey(this,header);return!!(key&&this[key]!==undefined&&(!matcher||matchHeaderValue(this,this[key],key,matcher)));}return false;}},{key:"delete",value:function _delete(header,matcher){var self=this;var deleted=false;function deleteHeader(_header){_header=normalizeHeader(_header);if(_header){var key=utils$1.findKey(self,_header);if(key&&(!matcher||matchHeaderValue(self,self[key],key,matcher))){delete self[key];deleted=true;}}}if(utils$1.isArray(header)){header.forEach(deleteHeader);}else{deleteHeader(header);}return deleted;}},{key:"clear",value:function clear(matcher){var keys=Object.keys(this);var i=keys.length;var deleted=false;while(i--){var key=keys[i];if(!matcher||matchHeaderValue(this,this[key],key,matcher,true)){delete this[key];deleted=true;}}return deleted;}},{key:"normalize",value:function normalize(format){var self=this;var headers={};utils$1.forEach(this,function(value,header){var key=utils$1.findKey(headers,header);if(key){self[key]=normalizeValue(value);delete self[header];return;}var normalized=format?formatHeader(header):String(header).trim();if(normalized!==header){delete self[header];}self[normalized]=normalizeValue(value);headers[normalized]=true;});return this;}},{key:"concat",value:function concat(){var _this$constructor;for(var _len=arguments.length,targets=new Array(_len),_key2=0;_key2<_len;_key2++){targets[_key2]=arguments[_key2];}return(_this$constructor=this.constructor).concat.apply(_this$constructor,[this].concat(targets));}},{key:"toJSON",value:function toJSON(asStrings){var obj=Object.create(null);utils$1.forEach(this,function(value,header){value!=null&&value!==false&&(obj[header]=asStrings&&utils$1.isArray(value)?value.join(', '):value);});return obj;}},{key:Symbol.iterator,value:function value(){return Object.entries(this.toJSON())[Symbol.iterator]();}},{key:"toString",value:function toString(){return Object.entries(this.toJSON()).map(function(_ref8){var _ref9=_slicedToArray(_ref8,2),header=_ref9[0],value=_ref9[1];return header+': '+value;}).join('\n');}},{key:"getSetCookie",value:function getSetCookie(){return this.get(
|
|
6387
|
+
*/var parseHeaders=function parseHeaders(rawHeaders){var parsed={};var key;var val;var i;rawHeaders&&rawHeaders.split('\n').forEach(function parser(line){i=line.indexOf(':');key=line.substring(0,i).trim().toLowerCase();val=line.substring(i+1).trim();if(!key||parsed[key]&&ignoreDuplicateOf[key]){return;}if(key==='set-cookie'){if(parsed[key]){parsed[key].push(val);}else{parsed[key]=[val];}}else{parsed[key]=parsed[key]?parsed[key]+', '+val:val;}});return parsed;};var $internals=Symbol('internals');function normalizeHeader(header){return header&&String(header).trim().toLowerCase();}function normalizeValue(value){if(value===false||value==null){return value;}return utils$1.isArray(value)?value.map(normalizeValue):String(value);}function parseTokens(str){var tokens=Object.create(null);var tokensRE=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;var match;while(match=tokensRE.exec(str)){tokens[match[1]]=match[2];}return tokens;}var isValidHeaderName=function isValidHeaderName(str){return /^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(str.trim());};function matchHeaderValue(context,value,header,filter,isHeaderNameFilter){if(utils$1.isFunction(filter)){return filter.call(this,value,header);}if(isHeaderNameFilter){value=header;}if(!utils$1.isString(value))return;if(utils$1.isString(filter)){return value.indexOf(filter)!==-1;}if(utils$1.isRegExp(filter)){return filter.test(value);}}function formatHeader(header){return header.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,function(w,_char,str){return _char.toUpperCase()+str;});}function buildAccessors(obj,header){var accessorName=utils$1.toCamelCase(' '+header);['get','set','has'].forEach(function(methodName){Object.defineProperty(obj,methodName+accessorName,{value:function value(arg1,arg2,arg3){return this[methodName].call(this,header,arg1,arg2,arg3);},configurable:true});});}var AxiosHeaders=/*#__PURE__*/function(){function AxiosHeaders(headers){_classCallCheck(this,AxiosHeaders);headers&&this.set(headers);}return _createClass(AxiosHeaders,[{key:"set",value:function set(header,valueOrRewrite,rewrite){var self=this;function setHeader(_value,_header,_rewrite){var lHeader=normalizeHeader(_header);if(!lHeader){throw new Error('header name must be a non-empty string');}var key=utils$1.findKey(self,lHeader);if(!key||self[key]===undefined||_rewrite===true||_rewrite===undefined&&self[key]!==false){self[key||_header]=normalizeValue(_value);}}var setHeaders=function setHeaders(headers,_rewrite){return utils$1.forEach(headers,function(_value,_header){return setHeader(_value,_header,_rewrite);});};if(utils$1.isPlainObject(header)||header instanceof this.constructor){setHeaders(header,valueOrRewrite);}else if(utils$1.isString(header)&&(header=header.trim())&&!isValidHeaderName(header)){setHeaders(parseHeaders(header),valueOrRewrite);}else if(utils$1.isObject(header)&&utils$1.isIterable(header)){var obj={},dest,key;var _iterator3=_createForOfIteratorHelper(header),_step2;try{for(_iterator3.s();!(_step2=_iterator3.n()).done;){var entry=_step2.value;if(!utils$1.isArray(entry)){throw TypeError('Object iterator must return a key-value pair');}obj[key=entry[0]]=(dest=obj[key])?utils$1.isArray(dest)?[].concat(_toConsumableArray(dest),[entry[1]]):[dest,entry[1]]:entry[1];}}catch(err){_iterator3.e(err);}finally{_iterator3.f();}setHeaders(obj,valueOrRewrite);}else{header!=null&&setHeader(valueOrRewrite,header,rewrite);}return this;}},{key:"get",value:function get(header,parser){header=normalizeHeader(header);if(header){var key=utils$1.findKey(this,header);if(key){var value=this[key];if(!parser){return value;}if(parser===true){return parseTokens(value);}if(utils$1.isFunction(parser)){return parser.call(this,value,key);}if(utils$1.isRegExp(parser)){return parser.exec(value);}throw new TypeError('parser must be boolean|regexp|function');}}}},{key:"has",value:function has(header,matcher){header=normalizeHeader(header);if(header){var key=utils$1.findKey(this,header);return!!(key&&this[key]!==undefined&&(!matcher||matchHeaderValue(this,this[key],key,matcher)));}return false;}},{key:"delete",value:function _delete(header,matcher){var self=this;var deleted=false;function deleteHeader(_header){_header=normalizeHeader(_header);if(_header){var key=utils$1.findKey(self,_header);if(key&&(!matcher||matchHeaderValue(self,self[key],key,matcher))){delete self[key];deleted=true;}}}if(utils$1.isArray(header)){header.forEach(deleteHeader);}else{deleteHeader(header);}return deleted;}},{key:"clear",value:function clear(matcher){var keys=Object.keys(this);var i=keys.length;var deleted=false;while(i--){var key=keys[i];if(!matcher||matchHeaderValue(this,this[key],key,matcher,true)){delete this[key];deleted=true;}}return deleted;}},{key:"normalize",value:function normalize(format){var self=this;var headers={};utils$1.forEach(this,function(value,header){var key=utils$1.findKey(headers,header);if(key){self[key]=normalizeValue(value);delete self[header];return;}var normalized=format?formatHeader(header):String(header).trim();if(normalized!==header){delete self[header];}self[normalized]=normalizeValue(value);headers[normalized]=true;});return this;}},{key:"concat",value:function concat(){var _this$constructor;for(var _len=arguments.length,targets=new Array(_len),_key2=0;_key2<_len;_key2++){targets[_key2]=arguments[_key2];}return(_this$constructor=this.constructor).concat.apply(_this$constructor,[this].concat(targets));}},{key:"toJSON",value:function toJSON(asStrings){var obj=Object.create(null);utils$1.forEach(this,function(value,header){value!=null&&value!==false&&(obj[header]=asStrings&&utils$1.isArray(value)?value.join(', '):value);});return obj;}},{key:Symbol.iterator,value:function value(){return Object.entries(this.toJSON())[Symbol.iterator]();}},{key:"toString",value:function toString(){return Object.entries(this.toJSON()).map(function(_ref8){var _ref9=_slicedToArray(_ref8,2),header=_ref9[0],value=_ref9[1];return header+': '+value;}).join('\n');}},{key:"getSetCookie",value:function getSetCookie(){return this.get('set-cookie')||[];}},{key:Symbol.toStringTag,get:function get(){return'AxiosHeaders';}}],[{key:"from",value:function from(thing){return thing instanceof this?thing:new this(thing);}},{key:"concat",value:function concat(first){var computed=new this(first);for(var _len2=arguments.length,targets=new Array(_len2>1?_len2-1:0),_key3=1;_key3<_len2;_key3++){targets[_key3-1]=arguments[_key3];}targets.forEach(function(target){return computed.set(target);});return computed;}},{key:"accessor",value:function accessor(header){var internals=this[$internals]=this[$internals]={accessors:{}};var accessors=internals.accessors;var prototype=this.prototype;function defineAccessor(_header){var lHeader=normalizeHeader(_header);if(!accessors[lHeader]){buildAccessors(prototype,_header);accessors[lHeader]=true;}}utils$1.isArray(header)?header.forEach(defineAccessor):defineAccessor(header);return this;}}]);}();AxiosHeaders.accessor(['Content-Type','Content-Length','Accept','Accept-Encoding','User-Agent','Authorization']);// reserved names hotfix
|
|
6326
6388
|
utils$1.reduceDescriptors(AxiosHeaders.prototype,function(_ref0,key){var value=_ref0.value;var mapped=key[0].toUpperCase()+key.slice(1);// map `set` => `Set`
|
|
6327
6389
|
return{get:function get(){return value;},set:function set(headerValue){this[mapped]=headerValue;}};});utils$1.freezeMethods(AxiosHeaders);var AxiosHeaders$1=AxiosHeaders;/**
|
|
6328
6390
|
* Transform the data for a request or a response
|
|
@@ -6396,7 +6458,7 @@ if(typeof url!=='string'){return false;}return /^([a-z][a-z\d+\-.]*:)?\/\//i.tes
|
|
|
6396
6458
|
config2=config2||{};var config={};function getMergedValue(target,source,prop,caseless){if(utils$1.isPlainObject(target)&&utils$1.isPlainObject(source)){return utils$1.merge.call({caseless:caseless},target,source);}else if(utils$1.isPlainObject(source)){return utils$1.merge({},source);}else if(utils$1.isArray(source)){return source.slice();}return source;}function mergeDeepProperties(a,b,prop,caseless){if(!utils$1.isUndefined(b)){return getMergedValue(a,b,prop,caseless);}else if(!utils$1.isUndefined(a)){return getMergedValue(undefined,a,prop,caseless);}}// eslint-disable-next-line consistent-return
|
|
6397
6459
|
function valueFromConfig2(a,b){if(!utils$1.isUndefined(b)){return getMergedValue(undefined,b);}}// eslint-disable-next-line consistent-return
|
|
6398
6460
|
function defaultToConfig2(a,b){if(!utils$1.isUndefined(b)){return getMergedValue(undefined,b);}else if(!utils$1.isUndefined(a)){return getMergedValue(undefined,a);}}// eslint-disable-next-line consistent-return
|
|
6399
|
-
function mergeDirectKeys(a,b,prop){if(prop in config2){return getMergedValue(a,b);}else if(prop in config1){return getMergedValue(undefined,a);}}var mergeMap={url:valueFromConfig2,method:valueFromConfig2,data:valueFromConfig2,baseURL:defaultToConfig2,transformRequest:defaultToConfig2,transformResponse:defaultToConfig2,paramsSerializer:defaultToConfig2,timeout:defaultToConfig2,timeoutMessage:defaultToConfig2,withCredentials:defaultToConfig2,withXSRFToken:defaultToConfig2,adapter:defaultToConfig2,responseType:defaultToConfig2,xsrfCookieName:defaultToConfig2,xsrfHeaderName:defaultToConfig2,onUploadProgress:defaultToConfig2,onDownloadProgress:defaultToConfig2,decompress:defaultToConfig2,maxContentLength:defaultToConfig2,maxBodyLength:defaultToConfig2,beforeRedirect:defaultToConfig2,transport:defaultToConfig2,httpAgent:defaultToConfig2,httpsAgent:defaultToConfig2,cancelToken:defaultToConfig2,socketPath:defaultToConfig2,responseEncoding:defaultToConfig2,validateStatus:mergeDirectKeys,headers:function headers(a,b,prop){return mergeDeepProperties(headersToObject(a),headersToObject(b),prop,true);}};utils$1.forEach(Object.keys(_objectSpread(_objectSpread({},config1),config2)),function computeConfigValue(prop){if(prop===
|
|
6461
|
+
function mergeDirectKeys(a,b,prop){if(prop in config2){return getMergedValue(a,b);}else if(prop in config1){return getMergedValue(undefined,a);}}var mergeMap={url:valueFromConfig2,method:valueFromConfig2,data:valueFromConfig2,baseURL:defaultToConfig2,transformRequest:defaultToConfig2,transformResponse:defaultToConfig2,paramsSerializer:defaultToConfig2,timeout:defaultToConfig2,timeoutMessage:defaultToConfig2,withCredentials:defaultToConfig2,withXSRFToken:defaultToConfig2,adapter:defaultToConfig2,responseType:defaultToConfig2,xsrfCookieName:defaultToConfig2,xsrfHeaderName:defaultToConfig2,onUploadProgress:defaultToConfig2,onDownloadProgress:defaultToConfig2,decompress:defaultToConfig2,maxContentLength:defaultToConfig2,maxBodyLength:defaultToConfig2,beforeRedirect:defaultToConfig2,transport:defaultToConfig2,httpAgent:defaultToConfig2,httpsAgent:defaultToConfig2,cancelToken:defaultToConfig2,socketPath:defaultToConfig2,responseEncoding:defaultToConfig2,validateStatus:mergeDirectKeys,headers:function headers(a,b,prop){return mergeDeepProperties(headersToObject(a),headersToObject(b),prop,true);}};utils$1.forEach(Object.keys(_objectSpread(_objectSpread({},config1),config2)),function computeConfigValue(prop){if(prop==='__proto__'||prop==='constructor'||prop==='prototype')return;var merge=utils$1.hasOwnProp(mergeMap,prop)?mergeMap[prop]:mergeDeepProperties;var configValue=merge(config1[prop],config2[prop],prop);utils$1.isUndefined(configValue)&&merge!==mergeDirectKeys||(config[prop]=configValue);});return config;}var resolveConfig=function resolveConfig(config){var newConfig=mergeConfig({},config);var data=newConfig.data,withXSRFToken=newConfig.withXSRFToken,xsrfHeaderName=newConfig.xsrfHeaderName,xsrfCookieName=newConfig.xsrfCookieName,headers=newConfig.headers,auth=newConfig.auth;newConfig.headers=headers=AxiosHeaders$1.from(headers);newConfig.url=buildURL(buildFullPath(newConfig.baseURL,newConfig.url,newConfig.allowAbsoluteUrls),config.params,config.paramsSerializer);// HTTP basic authentication
|
|
6400
6462
|
if(auth){headers.set('Authorization','Basic '+btoa((auth.username||'')+':'+(auth.password?unescape(encodeURIComponent(auth.password)):'')));}if(utils$1.isFormData(data)){if(platform.hasStandardBrowserEnv||platform.hasStandardBrowserWebWorkerEnv){headers.setContentType(undefined);// browser handles it
|
|
6401
6463
|
}else if(utils$1.isFunction(data.getHeaders)){// Node.js FormData (like form-data package)
|
|
6402
6464
|
var formHeaders=data.getHeaders();// Only set safe headers to avoid overwriting security headers
|
|
@@ -6435,33 +6497,33 @@ if(onDownloadProgress){var _progressEventReducer=progressEventReducer(onDownload
|
|
|
6435
6497
|
if(onUploadProgress&&request.upload){var _progressEventReducer3=progressEventReducer(onUploadProgress);var _progressEventReducer4=_slicedToArray(_progressEventReducer3,2);uploadThrottled=_progressEventReducer4[0];flushUpload=_progressEventReducer4[1];request.upload.addEventListener('progress',uploadThrottled);request.upload.addEventListener('loadend',flushUpload);}if(_config.cancelToken||_config.signal){// Handle cancellation
|
|
6436
6498
|
// eslint-disable-next-line func-names
|
|
6437
6499
|
onCanceled=function onCanceled(cancel){if(!request){return;}reject(!cancel||cancel.type?new CanceledError$1(null,config,request):cancel);request.abort();request=null;};_config.cancelToken&&_config.cancelToken.subscribe(onCanceled);if(_config.signal){_config.signal.aborted?onCanceled():_config.signal.addEventListener('abort',onCanceled);}}var protocol=parseProtocol(_config.url);if(protocol&&platform.protocols.indexOf(protocol)===-1){reject(new AxiosError$1('Unsupported protocol '+protocol+':',AxiosError$1.ERR_BAD_REQUEST,config));return;}// Send the request
|
|
6438
|
-
request.send(requestData||null);});};var composeSignals=function composeSignals(signals,timeout){var _signals=signals=signals?signals.filter(Boolean):[],length=_signals.length;if(timeout||length){var controller=new AbortController();var aborted;var onabort=function onabort(reason){if(!aborted){aborted=true;unsubscribe();var err=reason instanceof Error?reason:this.reason;controller.abort(err instanceof AxiosError$1?err:new CanceledError$1(err instanceof Error?err.message:err));}};var timer=timeout&&setTimeout(function(){timer=null;onabort(new AxiosError$1("timeout of ".concat(timeout,"ms exceeded"),AxiosError$1.ETIMEDOUT));},timeout);var unsubscribe=function unsubscribe(){if(signals){timer&&clearTimeout(timer);timer=null;signals.forEach(function(signal){signal.unsubscribe?signal.unsubscribe(onabort):signal.removeEventListener('abort',onabort);});signals=null;}};signals.forEach(function(signal){return signal.addEventListener('abort',onabort);});var signal=controller.signal;signal.unsubscribe=function(){return utils$1.asap(unsubscribe);};return signal;}};var composeSignals$1=composeSignals;var streamChunk=/*#__PURE__*/_regenerator().m(function streamChunk(chunk,chunkSize){var len,pos,end;return _regenerator().w(function(_context){while(1)switch(_context.n){case 0:len=chunk.byteLength;if(!(!chunkSize||len<chunkSize)){_context.n=2;break;}_context.n=1;return chunk;case 1:return _context.a(2);case 2:pos=0;case 3:if(!(pos<len)){_context.n=5;break;}end=pos+chunkSize;_context.n=4;return chunk.slice(pos,end);case 4:pos=end;_context.n=3;break;case 5:return _context.a(2);}},streamChunk);});var readBytes=/*#__PURE__*/function(){var _ref=_wrapAsyncGenerator(/*#__PURE__*/_regenerator().m(function _callee(iterable,chunkSize){var _iteratorAbruptCompletion,_didIteratorError,_iteratorError,_iterator2,_step,chunk,_t;return _regenerator().w(function(_context2){while(1)switch(_context2.p=_context2.n){case 0:_iteratorAbruptCompletion=false;_didIteratorError=false;_context2.p=1;_iterator2=_asyncIterator(readStream(iterable));case 2:_context2.n=3;return _awaitAsyncGenerator(_iterator2.next());case 3:if(!(_iteratorAbruptCompletion=!(_step=_context2.v).done)){_context2.n=5;break;}chunk=_step.value;return _context2.d(_regeneratorValues(_asyncGeneratorDelegate(_asyncIterator(streamChunk(chunk,chunkSize)),_awaitAsyncGenerator)),4);case 4:_iteratorAbruptCompletion=false;_context2.n=2;break;case 5:_context2.n=7;break;case 6:_context2.p=6;_t=_context2.v;_didIteratorError=true;_iteratorError=_t;case 7:_context2.p=7;_context2.p=8;if(!(_iteratorAbruptCompletion&&_iterator2["return"]!=null)){_context2.n=9;break;}_context2.n=9;return _awaitAsyncGenerator(_iterator2["return"]());case 9:_context2.p=9;if(!_didIteratorError){_context2.n=10;break;}throw _iteratorError;case 10:return _context2.f(9);case 11:return _context2.f(7);case 12:return _context2.a(2);}},_callee,null,[[8,,9,11],[1,6,7,12]]);}));return function readBytes(_x,_x2){return _ref.apply(this,arguments);};}();var readStream=/*#__PURE__*/function(){var _ref2=_wrapAsyncGenerator(/*#__PURE__*/_regenerator().m(function _callee2(stream){var reader,_yield$_awaitAsyncGen,done,value;return _regenerator().w(function(_context3){while(1)switch(_context3.p=_context3.n){case 0:if(!stream[Symbol.asyncIterator]){_context3.n=2;break;}return _context3.d(_regeneratorValues(_asyncGeneratorDelegate(_asyncIterator(stream),_awaitAsyncGenerator)),1);case 1:return _context3.a(2);case 2:reader=stream.getReader();_context3.p=3;case 4:_context3.n=5;return _awaitAsyncGenerator(reader.read());case 5:_yield$_awaitAsyncGen=_context3.v;done=_yield$_awaitAsyncGen.done;value=_yield$_awaitAsyncGen.value;if(!done){_context3.n=6;break;}return _context3.a(3,8);case 6:_context3.n=7;return value;case 7:_context3.n=4;break;case 8:_context3.p=8;_context3.n=9;return _awaitAsyncGenerator(reader.cancel());case 9:return _context3.f(8);case 10:return _context3.a(2);}},_callee2,null,[[3,,8,10]]);}));return function readStream(_x3){return _ref2.apply(this,arguments);};}();var trackStream=function trackStream(stream,chunkSize,onProgress,onFinish){var iterator=readBytes(stream,chunkSize);var bytes=0;var done;var _onFinish=function _onFinish(e){if(!done){done=true;onFinish&&onFinish(e);}};return new ReadableStream({pull:function pull(controller){return _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee3(){var _yield$iterator$next,_done,value,len,loadedBytes,_t2;return _regenerator().w(function(_context4){while(1)switch(_context4.p=_context4.n){case 0:_context4.p=0;_context4.n=1;return iterator.next();case 1:_yield$iterator$next=_context4.v;_done=_yield$iterator$next.done;value=_yield$iterator$next.value;if(!_done){_context4.n=2;break;}_onFinish();controller.close();return _context4.a(2);case 2:len=value.byteLength;if(onProgress){loadedBytes=bytes+=len;onProgress(loadedBytes);}controller.enqueue(new Uint8Array(value));_context4.n=4;break;case 3:_context4.p=3;_t2=_context4.v;_onFinish(_t2);throw _t2;case 4:return _context4.a(2);}},_callee3,null,[[0,3]]);}))();},cancel:function cancel(reason){_onFinish(reason);return iterator["return"]();}},{highWaterMark:2});};var DEFAULT_CHUNK_SIZE=64*1024;var isFunction=utils$1.isFunction;var globalFetchAPI=function(_ref11){var Request=_ref11.Request,Response=_ref11.Response;return{Request:Request,Response:Response};}(utils$1.global);var _utils$1$global=utils$1.global,ReadableStream$1=_utils$1$global.ReadableStream,TextEncoder$1=_utils$1$global.TextEncoder;var test=function test(fn){try{for(var _len5=arguments.length,args=new Array(_len5>1?_len5-1:0),_key6=1;_key6<_len5;_key6++){args[_key6-1]=arguments[_key6];}return!!fn.apply(void 0,args);}catch(e){return false;}};var factory=function factory(env){env=utils$1.merge.call({skipUndefined:true},globalFetchAPI,env);var _env=env,envFetch=_env.fetch,Request=_env.Request,Response=_env.Response;var isFetchSupported=envFetch?isFunction(envFetch):typeof fetch==='function';var isRequestSupported=isFunction(Request);var isResponseSupported=isFunction(Response);if(!isFetchSupported){return false;}var isReadableStreamSupported=isFetchSupported&&isFunction(ReadableStream$1);var encodeText=isFetchSupported&&(typeof TextEncoder$1==='function'?function(encoder){return function(str){return encoder.encode(str);};}(new TextEncoder$1()):(/*#__PURE__*/function(){var _ref12=_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee4(str){var _t3,_t4;return _regenerator().w(function(_context5){while(1)switch(_context5.n){case 0:_t3=Uint8Array;_context5.n=1;return new Request(str).arrayBuffer();case 1:_t4=_context5.v;return _context5.a(2,new _t3(_t4));}},_callee4);}));return function(_x4){return _ref12.apply(this,arguments);};}()));var supportsRequestStream=isRequestSupported&&isReadableStreamSupported&&test(function(){var duplexAccessed=false;var hasContentType=new Request(platform.origin,{body:new ReadableStream$1(),method:'POST',get duplex(){duplexAccessed=true;return'half';}}).headers.has('Content-Type');return duplexAccessed&&!hasContentType;});var supportsResponseStream=isResponseSupported&&isReadableStreamSupported&&test(function(){return utils$1.isReadableStream(new Response('').body);});var resolvers={stream:supportsResponseStream&&function(res){return res.body;}};isFetchSupported&&function(){['text','arrayBuffer','blob','formData','stream'].forEach(function(type){!resolvers[type]&&(resolvers[type]=function(res,config){var method=res&&res[type];if(method){return method.call(res);}throw new AxiosError$1("Response type '".concat(type,"' is not supported"),AxiosError$1.ERR_NOT_SUPPORT,config);});});}();var getBodyLength=/*#__PURE__*/function(){var _ref13=_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee5(body){var _request;return _regenerator().w(function(_context6){while(1)switch(_context6.n){case 0:if(!(body==null)){_context6.n=1;break;}return _context6.a(2,0);case 1:if(!utils$1.isBlob(body)){_context6.n=2;break;}return _context6.a(2,body.size);case 2:if(!utils$1.isSpecCompliantForm(body)){_context6.n=4;break;}_request=new Request(platform.origin,{method:'POST',body:body});_context6.n=3;return _request.arrayBuffer();case 3:return _context6.a(2,_context6.v.byteLength);case 4:if(!(utils$1.isArrayBufferView(body)||utils$1.isArrayBuffer(body))){_context6.n=5;break;}return _context6.a(2,body.byteLength);case 5:if(utils$1.isURLSearchParams(body)){body=body+'';}if(!utils$1.isString(body)){_context6.n=7;break;}_context6.n=6;return encodeText(body);case 6:return _context6.a(2,_context6.v.byteLength);case 7:return _context6.a(2);}},_callee5);}));return function getBodyLength(_x5){return _ref13.apply(this,arguments);};}();var resolveBodyLength=/*#__PURE__*/function(){var _ref14=_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee6(headers,body){var length;return _regenerator().w(function(_context7){while(1)switch(_context7.n){case 0:length=utils$1.toFiniteNumber(headers.getContentLength());return _context7.a(2,length==null?getBodyLength(body):length);}},_callee6);}));return function resolveBodyLength(_x6,_x7){return _ref14.apply(this,arguments);};}();return/*#__PURE__*/function(){var _ref15=_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee7(config){var _resolveConfig,url,method,data,signal,cancelToken,timeout,onDownloadProgress,onUploadProgress,responseType,headers,_resolveConfig$withCr,withCredentials,fetchOptions,_fetch,composedSignal,request,unsubscribe,requestContentLength,_request,contentTypeHeader,_progressEventDecorat,_progressEventDecorat2,onProgress,flush,isCredentialsSupported,resolvedOptions,response,isStreamResponse,options,responseContentLength,_ref16,_ref17,_onProgress,_flush,responseData,_t5,_t6,_t7;return _regenerator().w(function(_context8){while(1)switch(_context8.p=_context8.n){case 0:_resolveConfig=resolveConfig(config),url=_resolveConfig.url,method=_resolveConfig.method,data=_resolveConfig.data,signal=_resolveConfig.signal,cancelToken=_resolveConfig.cancelToken,timeout=_resolveConfig.timeout,onDownloadProgress=_resolveConfig.onDownloadProgress,onUploadProgress=_resolveConfig.onUploadProgress,responseType=_resolveConfig.responseType,headers=_resolveConfig.headers,_resolveConfig$withCr=_resolveConfig.withCredentials,withCredentials=_resolveConfig$withCr===void 0?'same-origin':_resolveConfig$withCr,fetchOptions=_resolveConfig.fetchOptions;_fetch=envFetch||fetch;responseType=responseType?(responseType+'').toLowerCase():'text';composedSignal=composeSignals$1([signal,cancelToken&&cancelToken.toAbortSignal()],timeout);request=null;unsubscribe=composedSignal&&composedSignal.unsubscribe&&function(){composedSignal.unsubscribe();};_context8.p=1;_t5=onUploadProgress&&supportsRequestStream&&method!=='get'&&method!=='head';if(!_t5){_context8.n=3;break;}_context8.n=2;return resolveBodyLength(headers,data);case 2:_t6=requestContentLength=_context8.v;_t5=_t6!==0;case 3:if(!_t5){_context8.n=4;break;}_request=new Request(url,{method:'POST',body:data,duplex:"half"});if(utils$1.isFormData(data)&&(contentTypeHeader=_request.headers.get('content-type'))){headers.setContentType(contentTypeHeader);}if(_request.body){_progressEventDecorat=progressEventDecorator(requestContentLength,progressEventReducer(asyncDecorator(onUploadProgress))),_progressEventDecorat2=_slicedToArray(_progressEventDecorat,2),onProgress=_progressEventDecorat2[0],flush=_progressEventDecorat2[1];data=trackStream(_request.body,DEFAULT_CHUNK_SIZE,onProgress,flush);}case 4:if(!utils$1.isString(withCredentials)){withCredentials=withCredentials?'include':'omit';}// Cloudflare Workers throws when credentials are defined
|
|
6500
|
+
request.send(requestData||null);});};var composeSignals=function composeSignals(signals,timeout){var _signals=signals=signals?signals.filter(Boolean):[],length=_signals.length;if(timeout||length){var controller=new AbortController();var aborted;var onabort=function onabort(reason){if(!aborted){aborted=true;unsubscribe();var err=reason instanceof Error?reason:this.reason;controller.abort(err instanceof AxiosError$1?err:new CanceledError$1(err instanceof Error?err.message:err));}};var timer=timeout&&setTimeout(function(){timer=null;onabort(new AxiosError$1("timeout of ".concat(timeout,"ms exceeded"),AxiosError$1.ETIMEDOUT));},timeout);var unsubscribe=function unsubscribe(){if(signals){timer&&clearTimeout(timer);timer=null;signals.forEach(function(signal){signal.unsubscribe?signal.unsubscribe(onabort):signal.removeEventListener('abort',onabort);});signals=null;}};signals.forEach(function(signal){return signal.addEventListener('abort',onabort);});var signal=controller.signal;signal.unsubscribe=function(){return utils$1.asap(unsubscribe);};return signal;}};var composeSignals$1=composeSignals;var streamChunk=/*#__PURE__*/_regenerator().m(function streamChunk(chunk,chunkSize){var len,pos,end;return _regenerator().w(function(_context){while(1)switch(_context.n){case 0:len=chunk.byteLength;if(!(!chunkSize||len<chunkSize)){_context.n=2;break;}_context.n=1;return chunk;case 1:return _context.a(2);case 2:pos=0;case 3:if(!(pos<len)){_context.n=5;break;}end=pos+chunkSize;_context.n=4;return chunk.slice(pos,end);case 4:pos=end;_context.n=3;break;case 5:return _context.a(2);}},streamChunk);});var readBytes=/*#__PURE__*/function(){var _ref=_wrapAsyncGenerator(/*#__PURE__*/_regenerator().m(function _callee(iterable,chunkSize){var _iteratorAbruptCompletion,_didIteratorError,_iteratorError,_iterator2,_step,chunk,_t;return _regenerator().w(function(_context2){while(1)switch(_context2.p=_context2.n){case 0:_iteratorAbruptCompletion=false;_didIteratorError=false;_context2.p=1;_iterator2=_asyncIterator(readStream(iterable));case 2:_context2.n=3;return _awaitAsyncGenerator(_iterator2.next());case 3:if(!(_iteratorAbruptCompletion=!(_step=_context2.v).done)){_context2.n=5;break;}chunk=_step.value;return _context2.d(_regeneratorValues(_asyncGeneratorDelegate(_asyncIterator(streamChunk(chunk,chunkSize)),_awaitAsyncGenerator)),4);case 4:_iteratorAbruptCompletion=false;_context2.n=2;break;case 5:_context2.n=7;break;case 6:_context2.p=6;_t=_context2.v;_didIteratorError=true;_iteratorError=_t;case 7:_context2.p=7;_context2.p=8;if(!(_iteratorAbruptCompletion&&_iterator2["return"]!=null)){_context2.n=9;break;}_context2.n=9;return _awaitAsyncGenerator(_iterator2["return"]());case 9:_context2.p=9;if(!_didIteratorError){_context2.n=10;break;}throw _iteratorError;case 10:return _context2.f(9);case 11:return _context2.f(7);case 12:return _context2.a(2);}},_callee,null,[[8,,9,11],[1,6,7,12]]);}));return function readBytes(_x,_x2){return _ref.apply(this,arguments);};}();var readStream=/*#__PURE__*/function(){var _ref2=_wrapAsyncGenerator(/*#__PURE__*/_regenerator().m(function _callee2(stream){var reader,_yield$_awaitAsyncGen,done,value;return _regenerator().w(function(_context3){while(1)switch(_context3.p=_context3.n){case 0:if(!stream[Symbol.asyncIterator]){_context3.n=2;break;}return _context3.d(_regeneratorValues(_asyncGeneratorDelegate(_asyncIterator(stream),_awaitAsyncGenerator)),1);case 1:return _context3.a(2);case 2:reader=stream.getReader();_context3.p=3;case 4:_context3.n=5;return _awaitAsyncGenerator(reader.read());case 5:_yield$_awaitAsyncGen=_context3.v;done=_yield$_awaitAsyncGen.done;value=_yield$_awaitAsyncGen.value;if(!done){_context3.n=6;break;}return _context3.a(3,8);case 6:_context3.n=7;return value;case 7:_context3.n=4;break;case 8:_context3.p=8;_context3.n=9;return _awaitAsyncGenerator(reader.cancel());case 9:return _context3.f(8);case 10:return _context3.a(2);}},_callee2,null,[[3,,8,10]]);}));return function readStream(_x3){return _ref2.apply(this,arguments);};}();var trackStream=function trackStream(stream,chunkSize,onProgress,onFinish){var iterator=readBytes(stream,chunkSize);var bytes=0;var done;var _onFinish=function _onFinish(e){if(!done){done=true;onFinish&&onFinish(e);}};return new ReadableStream({pull:function pull(controller){return _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee3(){var _yield$iterator$next,_done,value,len,loadedBytes,_t2;return _regenerator().w(function(_context4){while(1)switch(_context4.p=_context4.n){case 0:_context4.p=0;_context4.n=1;return iterator.next();case 1:_yield$iterator$next=_context4.v;_done=_yield$iterator$next.done;value=_yield$iterator$next.value;if(!_done){_context4.n=2;break;}_onFinish();controller.close();return _context4.a(2);case 2:len=value.byteLength;if(onProgress){loadedBytes=bytes+=len;onProgress(loadedBytes);}controller.enqueue(new Uint8Array(value));_context4.n=4;break;case 3:_context4.p=3;_t2=_context4.v;_onFinish(_t2);throw _t2;case 4:return _context4.a(2);}},_callee3,null,[[0,3]]);}))();},cancel:function cancel(reason){_onFinish(reason);return iterator["return"]();}},{highWaterMark:2});};var DEFAULT_CHUNK_SIZE=64*1024;var isFunction=utils$1.isFunction;var globalFetchAPI=function(_ref11){var Request=_ref11.Request,Response=_ref11.Response;return{Request:Request,Response:Response};}(utils$1.global);var _utils$1$global=utils$1.global,ReadableStream$1=_utils$1$global.ReadableStream,TextEncoder$1=_utils$1$global.TextEncoder;var test=function test(fn){try{for(var _len5=arguments.length,args=new Array(_len5>1?_len5-1:0),_key6=1;_key6<_len5;_key6++){args[_key6-1]=arguments[_key6];}return!!fn.apply(void 0,args);}catch(e){return false;}};var factory=function factory(env){env=utils$1.merge.call({skipUndefined:true},globalFetchAPI,env);var _env=env,envFetch=_env.fetch,Request=_env.Request,Response=_env.Response;var isFetchSupported=envFetch?isFunction(envFetch):typeof fetch==='function';var isRequestSupported=isFunction(Request);var isResponseSupported=isFunction(Response);if(!isFetchSupported){return false;}var isReadableStreamSupported=isFetchSupported&&isFunction(ReadableStream$1);var encodeText=isFetchSupported&&(typeof TextEncoder$1==='function'?function(encoder){return function(str){return encoder.encode(str);};}(new TextEncoder$1()):(/*#__PURE__*/function(){var _ref12=_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee4(str){var _t3,_t4;return _regenerator().w(function(_context5){while(1)switch(_context5.n){case 0:_t3=Uint8Array;_context5.n=1;return new Request(str).arrayBuffer();case 1:_t4=_context5.v;return _context5.a(2,new _t3(_t4));}},_callee4);}));return function(_x4){return _ref12.apply(this,arguments);};}()));var supportsRequestStream=isRequestSupported&&isReadableStreamSupported&&test(function(){var duplexAccessed=false;var hasContentType=new Request(platform.origin,{body:new ReadableStream$1(),method:'POST',get duplex(){duplexAccessed=true;return'half';}}).headers.has('Content-Type');return duplexAccessed&&!hasContentType;});var supportsResponseStream=isResponseSupported&&isReadableStreamSupported&&test(function(){return utils$1.isReadableStream(new Response('').body);});var resolvers={stream:supportsResponseStream&&function(res){return res.body;}};isFetchSupported&&function(){['text','arrayBuffer','blob','formData','stream'].forEach(function(type){!resolvers[type]&&(resolvers[type]=function(res,config){var method=res&&res[type];if(method){return method.call(res);}throw new AxiosError$1("Response type '".concat(type,"' is not supported"),AxiosError$1.ERR_NOT_SUPPORT,config);});});}();var getBodyLength=/*#__PURE__*/function(){var _ref13=_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee5(body){var _request;return _regenerator().w(function(_context6){while(1)switch(_context6.n){case 0:if(!(body==null)){_context6.n=1;break;}return _context6.a(2,0);case 1:if(!utils$1.isBlob(body)){_context6.n=2;break;}return _context6.a(2,body.size);case 2:if(!utils$1.isSpecCompliantForm(body)){_context6.n=4;break;}_request=new Request(platform.origin,{method:'POST',body:body});_context6.n=3;return _request.arrayBuffer();case 3:return _context6.a(2,_context6.v.byteLength);case 4:if(!(utils$1.isArrayBufferView(body)||utils$1.isArrayBuffer(body))){_context6.n=5;break;}return _context6.a(2,body.byteLength);case 5:if(utils$1.isURLSearchParams(body)){body=body+'';}if(!utils$1.isString(body)){_context6.n=7;break;}_context6.n=6;return encodeText(body);case 6:return _context6.a(2,_context6.v.byteLength);case 7:return _context6.a(2);}},_callee5);}));return function getBodyLength(_x5){return _ref13.apply(this,arguments);};}();var resolveBodyLength=/*#__PURE__*/function(){var _ref14=_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee6(headers,body){var length;return _regenerator().w(function(_context7){while(1)switch(_context7.n){case 0:length=utils$1.toFiniteNumber(headers.getContentLength());return _context7.a(2,length==null?getBodyLength(body):length);}},_callee6);}));return function resolveBodyLength(_x6,_x7){return _ref14.apply(this,arguments);};}();return/*#__PURE__*/function(){var _ref15=_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee7(config){var _resolveConfig,url,method,data,signal,cancelToken,timeout,onDownloadProgress,onUploadProgress,responseType,headers,_resolveConfig$withCr,withCredentials,fetchOptions,_fetch,composedSignal,request,unsubscribe,requestContentLength,_request,contentTypeHeader,_progressEventDecorat,_progressEventDecorat2,onProgress,flush,isCredentialsSupported,resolvedOptions,response,isStreamResponse,options,responseContentLength,_ref16,_ref17,_onProgress,_flush,responseData,_t5,_t6,_t7;return _regenerator().w(function(_context8){while(1)switch(_context8.p=_context8.n){case 0:_resolveConfig=resolveConfig(config),url=_resolveConfig.url,method=_resolveConfig.method,data=_resolveConfig.data,signal=_resolveConfig.signal,cancelToken=_resolveConfig.cancelToken,timeout=_resolveConfig.timeout,onDownloadProgress=_resolveConfig.onDownloadProgress,onUploadProgress=_resolveConfig.onUploadProgress,responseType=_resolveConfig.responseType,headers=_resolveConfig.headers,_resolveConfig$withCr=_resolveConfig.withCredentials,withCredentials=_resolveConfig$withCr===void 0?'same-origin':_resolveConfig$withCr,fetchOptions=_resolveConfig.fetchOptions;_fetch=envFetch||fetch;responseType=responseType?(responseType+'').toLowerCase():'text';composedSignal=composeSignals$1([signal,cancelToken&&cancelToken.toAbortSignal()],timeout);request=null;unsubscribe=composedSignal&&composedSignal.unsubscribe&&function(){composedSignal.unsubscribe();};_context8.p=1;_t5=onUploadProgress&&supportsRequestStream&&method!=='get'&&method!=='head';if(!_t5){_context8.n=3;break;}_context8.n=2;return resolveBodyLength(headers,data);case 2:_t6=requestContentLength=_context8.v;_t5=_t6!==0;case 3:if(!_t5){_context8.n=4;break;}_request=new Request(url,{method:'POST',body:data,duplex:'half'});if(utils$1.isFormData(data)&&(contentTypeHeader=_request.headers.get('content-type'))){headers.setContentType(contentTypeHeader);}if(_request.body){_progressEventDecorat=progressEventDecorator(requestContentLength,progressEventReducer(asyncDecorator(onUploadProgress))),_progressEventDecorat2=_slicedToArray(_progressEventDecorat,2),onProgress=_progressEventDecorat2[0],flush=_progressEventDecorat2[1];data=trackStream(_request.body,DEFAULT_CHUNK_SIZE,onProgress,flush);}case 4:if(!utils$1.isString(withCredentials)){withCredentials=withCredentials?'include':'omit';}// Cloudflare Workers throws when credentials are defined
|
|
6439
6501
|
// see https://github.com/cloudflare/workerd/issues/902
|
|
6440
|
-
isCredentialsSupported=isRequestSupported&&
|
|
6502
|
+
isCredentialsSupported=isRequestSupported&&'credentials'in Request.prototype;resolvedOptions=_objectSpread(_objectSpread({},fetchOptions),{},{signal:composedSignal,method:method.toUpperCase(),headers:headers.normalize().toJSON(),body:data,duplex:'half',credentials:isCredentialsSupported?withCredentials:undefined});request=isRequestSupported&&new Request(url,resolvedOptions);_context8.n=5;return isRequestSupported?_fetch(request,fetchOptions):_fetch(url,resolvedOptions);case 5:response=_context8.v;isStreamResponse=supportsResponseStream&&(responseType==='stream'||responseType==='response');if(supportsResponseStream&&(onDownloadProgress||isStreamResponse&&unsubscribe)){options={};['status','statusText','headers'].forEach(function(prop){options[prop]=response[prop];});responseContentLength=utils$1.toFiniteNumber(response.headers.get('content-length'));_ref16=onDownloadProgress&&progressEventDecorator(responseContentLength,progressEventReducer(asyncDecorator(onDownloadProgress),true))||[],_ref17=_slicedToArray(_ref16,2),_onProgress=_ref17[0],_flush=_ref17[1];response=new Response(trackStream(response.body,DEFAULT_CHUNK_SIZE,_onProgress,function(){_flush&&_flush();unsubscribe&&unsubscribe();}),options);}responseType=responseType||'text';_context8.n=6;return resolvers[utils$1.findKey(resolvers,responseType)||'text'](response,config);case 6:responseData=_context8.v;!isStreamResponse&&unsubscribe&&unsubscribe();_context8.n=7;return new Promise(function(resolve,reject){settle(resolve,reject,{data:responseData,headers:AxiosHeaders$1.from(response.headers),status:response.status,statusText:response.statusText,config:config,request:request});});case 7:return _context8.a(2,_context8.v);case 8:_context8.p=8;_t7=_context8.v;unsubscribe&&unsubscribe();if(!(_t7&&_t7.name==='TypeError'&&/Load failed|fetch/i.test(_t7.message))){_context8.n=9;break;}throw Object.assign(new AxiosError$1('Network Error',AxiosError$1.ERR_NETWORK,config,request,_t7&&_t7.response),{cause:_t7.cause||_t7});case 9:throw AxiosError$1.from(_t7,_t7&&_t7.code,config,request,_t7&&_t7.response);case 10:return _context8.a(2);}},_callee7,null,[[1,8]]);}));return function(_x8){return _ref15.apply(this,arguments);};}();};var seedCache=new Map();var getFetch=function getFetch(config){var env=config&&config.env||{};var fetch=env.fetch,Request=env.Request,Response=env.Response;var seeds=[Request,Response,fetch];var len=seeds.length,i=len,seed,target,map=seedCache;while(i--){seed=seeds[i];target=map.get(seed);target===undefined&&map.set(seed,target=i?new Map():factory(env));map=target;}return target;};getFetch();/**
|
|
6441
6503
|
* Known adapters mapping.
|
|
6442
6504
|
* Provides environment-specific adapters for Axios:
|
|
6443
6505
|
* - `http` for Node.js
|
|
6444
6506
|
* - `xhr` for browsers
|
|
6445
6507
|
* - `fetch` for fetch API-based requests
|
|
6446
|
-
*
|
|
6508
|
+
*
|
|
6447
6509
|
* @type {Object<string, Function|Object>}
|
|
6448
6510
|
*/var knownAdapters={http:httpAdapter,xhr:xhrAdapter,fetch:{get:getFetch}};// Assign adapter names for easier debugging and identification
|
|
6449
6511
|
utils$1.forEach(knownAdapters,function(fn,value){if(fn){try{Object.defineProperty(fn,'name',{value:value});}catch(e){// eslint-disable-next-line no-empty
|
|
6450
6512
|
}Object.defineProperty(fn,'adapterName',{value:value});}});/**
|
|
6451
6513
|
* Render a rejection reason string for unknown or unsupported adapters
|
|
6452
|
-
*
|
|
6514
|
+
*
|
|
6453
6515
|
* @param {string} reason
|
|
6454
6516
|
* @returns {string}
|
|
6455
6517
|
*/var renderReason=function renderReason(reason){return"- ".concat(reason);};/**
|
|
6456
6518
|
* Check if the adapter is resolved (function, null, or false)
|
|
6457
|
-
*
|
|
6519
|
+
*
|
|
6458
6520
|
* @param {Function|null|false} adapter
|
|
6459
6521
|
* @returns {boolean}
|
|
6460
6522
|
*/var isResolvedHandle=function isResolvedHandle(adapter){return utils$1.isFunction(adapter)||adapter===null||adapter===false;};/**
|
|
6461
6523
|
* Get the first suitable adapter from the provided list.
|
|
6462
6524
|
* Tries each adapter in order until a supported one is found.
|
|
6463
6525
|
* Throws an AxiosError if no adapter is suitable.
|
|
6464
|
-
*
|
|
6526
|
+
*
|
|
6465
6527
|
* @param {Array<string|Function>|string|Function} adapters - Adapter(s) by name or function.
|
|
6466
6528
|
* @param {Object} config - Axios request configuration
|
|
6467
6529
|
* @throws {AxiosError} If no suitable adapter is available
|
|
@@ -6489,7 +6551,7 @@ utils$1.forEach(knownAdapters,function(fn,value){if(fn){try{Object.definePropert
|
|
|
6489
6551
|
*/function dispatchRequest(config){throwIfCancellationRequested(config);config.headers=AxiosHeaders$1.from(config.headers);// Transform request data
|
|
6490
6552
|
config.data=transformData.call(config,config.transformRequest);if(['post','put','patch'].indexOf(config.method)!==-1){config.headers.setContentType('application/x-www-form-urlencoded',false);}var adapter=adapters.getAdapter(config.adapter||defaults$1.adapter,config);return adapter(config).then(function onAdapterResolution(response){throwIfCancellationRequested(config);// Transform response data
|
|
6491
6553
|
response.data=transformData.call(config,config.transformResponse,response);response.headers=AxiosHeaders$1.from(response.headers);return response;},function onAdapterRejection(reason){if(!isCancel(reason)){throwIfCancellationRequested(config);// Transform response data
|
|
6492
|
-
if(reason&&reason.response){reason.response.data=transformData.call(config,config.transformResponse,reason.response);reason.response.headers=AxiosHeaders$1.from(reason.response.headers);}}return Promise.reject(reason);});}var VERSION="1.13.
|
|
6554
|
+
if(reason&&reason.response){reason.response.data=transformData.call(config,config.transformResponse,reason.response);reason.response.headers=AxiosHeaders$1.from(reason.response.headers);}}return Promise.reject(reason);});}var VERSION="1.13.6";var validators$1={};// eslint-disable-next-line func-names
|
|
6493
6555
|
['object','boolean','number','function','string','symbol'].forEach(function(type,i){validators$1[type]=function validator(thing){return _typeof(thing)===type||'a'+(i<1?'n ':' ')+type;};});var deprecatedWarnings={};/**
|
|
6494
6556
|
* Transitional option validator
|
|
6495
6557
|
*
|
|
@@ -6498,7 +6560,7 @@ if(reason&&reason.response){reason.response.data=transformData.call(config,confi
|
|
|
6498
6560
|
* @param {string?} message - some message with additional info
|
|
6499
6561
|
*
|
|
6500
6562
|
* @returns {function}
|
|
6501
|
-
*/validators$1.transitional=function transitional(validator,version,message){function formatMessage(opt,desc){return'[Axios v'+VERSION+
|
|
6563
|
+
*/validators$1.transitional=function transitional(validator,version,message){function formatMessage(opt,desc){return'[Axios v'+VERSION+"] Transitional option '"+opt+"'"+desc+(message?'. '+message:'');}// eslint-disable-next-line func-names
|
|
6502
6564
|
return function(value,opt,opts){if(validator===false){throw new AxiosError$1(formatMessage(opt,' has been removed'+(version?' in '+version:'')),AxiosError$1.ERR_DEPRECATED);}if(version&&!deprecatedWarnings[opt]){deprecatedWarnings[opt]=true;// eslint-disable-next-line no-console
|
|
6503
6565
|
console.warn(formatMessage(opt,' has been deprecated since v'+version+' and will be removed in the near future'));}return validator?validator(value,opt,opts):true;};};validators$1.spelling=function spelling(correctSpelling){return function(value,opt){// eslint-disable-next-line no-console
|
|
6504
6566
|
console.warn("".concat(opt," is likely a misspelling of ").concat(correctSpelling));return true;};};/**
|
|
@@ -6637,7 +6699,7 @@ if(env)this.environment=env;else this.environment=this.host?this.host:'mypureclo
|
|
|
6637
6699
|
this.environment=this.environment.replace(/\/+$/,'');// Strip protocol and subdomain
|
|
6638
6700
|
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];}}}]);}();/**
|
|
6639
6701
|
* @module purecloud-platform-client-v2/ApiClient
|
|
6640
|
-
* @version
|
|
6702
|
+
* @version 247.1.0
|
|
6641
6703
|
*/var ApiClient=/*#__PURE__*/function(){/**
|
|
6642
6704
|
* Manages low level client-server communications, parameter marshalling, etc. There should not be any need for an
|
|
6643
6705
|
* application to use this class directly - the *Api and model classes provide the public API for the service. The
|
|
@@ -7003,7 +7065,7 @@ resolve(data);})["catch"](function(error){var data=error;if(error.response&&erro
|
|
|
7003
7065
|
that.config.logger.log('error',error.response.status,httpMethod,url,request.headers,error.response.headers,bodyParam,error.response.data);data=that.returnExtended===true?{status:error.response.status,statusText:error.response.statusText,headers:error.response.headers,body:error.response.data,text:error.response.text,error:error}:error.response.data?error.response.data:error.response.text;}reject(data);});}});}}]);}();var AIStudioApi=/*#__PURE__*/function(){/**
|
|
7004
7066
|
* AIStudio service.
|
|
7005
7067
|
* @module purecloud-platform-client-v2/api/AIStudioApi
|
|
7006
|
-
* @version
|
|
7068
|
+
* @version 247.1.0
|
|
7007
7069
|
*//**
|
|
7008
7070
|
* Constructs a new AIStudioApi.
|
|
7009
7071
|
* @alias module:purecloud-platform-client-v2/api/AIStudioApi
|
|
@@ -7155,7 +7217,7 @@ if(summarySettingId===undefined||summarySettingId===null||summarySettingId==='')
|
|
|
7155
7217
|
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling putConversationsSummariesSetting';}return this.apiClient.callApi('/api/v2/conversations/summaries/settings/{summarySettingId}','PUT',{'summarySettingId':summarySettingId},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}}]);}();var AgentAssistantsApi=/*#__PURE__*/function(){/**
|
|
7156
7218
|
* AgentAssistants service.
|
|
7157
7219
|
* @module purecloud-platform-client-v2/api/AgentAssistantsApi
|
|
7158
|
-
* @version
|
|
7220
|
+
* @version 247.1.0
|
|
7159
7221
|
*//**
|
|
7160
7222
|
* Constructs a new AgentAssistantsApi.
|
|
7161
7223
|
* @alias module:purecloud-platform-client-v2/api/AgentAssistantsApi
|
|
@@ -7342,7 +7404,7 @@ if(agentChecklistId===undefined||agentChecklistId===null||agentChecklistId==='')
|
|
|
7342
7404
|
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling putAssistantsAgentchecklist';}return this.apiClient.callApi('/api/v2/assistants/agentchecklists/{agentChecklistId}','PUT',{'agentChecklistId':agentChecklistId},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}}]);}();var AgentCopilotApi=/*#__PURE__*/function(){/**
|
|
7343
7405
|
* AgentCopilot service.
|
|
7344
7406
|
* @module purecloud-platform-client-v2/api/AgentCopilotApi
|
|
7345
|
-
* @version
|
|
7407
|
+
* @version 247.1.0
|
|
7346
7408
|
*//**
|
|
7347
7409
|
* Constructs a new AgentCopilotApi.
|
|
7348
7410
|
* @alias module:purecloud-platform-client-v2/api/AgentCopilotApi
|
|
@@ -7369,7 +7431,7 @@ if(assistantId===undefined||assistantId===null||assistantId===''){throw'Missing
|
|
|
7369
7431
|
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(){/**
|
|
7370
7432
|
* AgentUI service.
|
|
7371
7433
|
* @module purecloud-platform-client-v2/api/AgentUIApi
|
|
7372
|
-
* @version
|
|
7434
|
+
* @version 247.1.0
|
|
7373
7435
|
*//**
|
|
7374
7436
|
* Constructs a new AgentUIApi.
|
|
7375
7437
|
* @alias module:purecloud-platform-client-v2/api/AgentUIApi
|
|
@@ -7403,7 +7465,7 @@ if(agentId===undefined||agentId===null||agentId===''){throw'Missing the required
|
|
|
7403
7465
|
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(){/**
|
|
7404
7466
|
* Alerting service.
|
|
7405
7467
|
* @module purecloud-platform-client-v2/api/AlertingApi
|
|
7406
|
-
* @version
|
|
7468
|
+
* @version 247.1.0
|
|
7407
7469
|
*//**
|
|
7408
7470
|
* Constructs a new AlertingApi.
|
|
7409
7471
|
* @alias module:purecloud-platform-client-v2/api/AlertingApi
|
|
@@ -7492,7 +7554,7 @@ if(ruleId===undefined||ruleId===null||ruleId===''){throw'Missing the required pa
|
|
|
7492
7554
|
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(){/**
|
|
7493
7555
|
* Analytics service.
|
|
7494
7556
|
* @module purecloud-platform-client-v2/api/AnalyticsApi
|
|
7495
|
-
* @version
|
|
7557
|
+
* @version 247.1.0
|
|
7496
7558
|
*//**
|
|
7497
7559
|
* Constructs a new AnalyticsApi.
|
|
7498
7560
|
* @alias module:purecloud-platform-client-v2/api/AnalyticsApi
|
|
@@ -8311,7 +8373,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
8311
8373
|
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(){/**
|
|
8312
8374
|
* Architect service.
|
|
8313
8375
|
* @module purecloud-platform-client-v2/api/ArchitectApi
|
|
8314
|
-
* @version
|
|
8376
|
+
* @version 247.1.0
|
|
8315
8377
|
*//**
|
|
8316
8378
|
* Constructs a new ArchitectApi.
|
|
8317
8379
|
* @alias module:purecloud-platform-client-v2/api/ArchitectApi
|
|
@@ -9445,7 +9507,7 @@ if(milestoneId===undefined||milestoneId===null||milestoneId===''){throw'Missing
|
|
|
9445
9507
|
if(flowOutcomeId===undefined||flowOutcomeId===null||flowOutcomeId===''){throw'Missing the required parameter "flowOutcomeId" when calling putFlowsOutcome';}return this.apiClient.callApi('/api/v2/flows/outcomes/{flowOutcomeId}','PUT',{'flowOutcomeId':flowOutcomeId},{},{},{},opts['body'],['PureCloud OAuth'],['application/json'],['application/json']);}}]);}();var AssistantCopilotVariationsApi=/*#__PURE__*/function(){/**
|
|
9446
9508
|
* AssistantCopilotVariations service.
|
|
9447
9509
|
* @module purecloud-platform-client-v2/api/AssistantCopilotVariationsApi
|
|
9448
|
-
* @version
|
|
9510
|
+
* @version 247.1.0
|
|
9449
9511
|
*//**
|
|
9450
9512
|
* Constructs a new AssistantCopilotVariationsApi.
|
|
9451
9513
|
* @alias module:purecloud-platform-client-v2/api/AssistantCopilotVariationsApi
|
|
@@ -9490,7 +9552,7 @@ if(variationId===undefined||variationId===null||variationId===''){throw'Missing
|
|
|
9490
9552
|
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling putAssistantVariation';}return this.apiClient.callApi('/api/v2/assistants/{assistantId}/variations/{variationId}','PUT',{'assistantId':assistantId,'variationId':variationId},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}}]);}();var AuditApi=/*#__PURE__*/function(){/**
|
|
9491
9553
|
* Audit service.
|
|
9492
9554
|
* @module purecloud-platform-client-v2/api/AuditApi
|
|
9493
|
-
* @version
|
|
9555
|
+
* @version 247.1.0
|
|
9494
9556
|
*//**
|
|
9495
9557
|
* Constructs a new AuditApi.
|
|
9496
9558
|
* @alias module:purecloud-platform-client-v2/api/AuditApi
|
|
@@ -9540,7 +9602,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
9540
9602
|
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(){/**
|
|
9541
9603
|
* Authorization service.
|
|
9542
9604
|
* @module purecloud-platform-client-v2/api/AuthorizationApi
|
|
9543
|
-
* @version
|
|
9605
|
+
* @version 247.1.0
|
|
9544
9606
|
*//**
|
|
9545
9607
|
* Constructs a new AuthorizationApi.
|
|
9546
9608
|
* @alias module:purecloud-platform-client-v2/api/AuthorizationApi
|
|
@@ -9968,7 +10030,7 @@ if(subjectId===undefined||subjectId===null||subjectId===''){throw'Missing the re
|
|
|
9968
10030
|
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 BackgroundAssistantApi=/*#__PURE__*/function(){/**
|
|
9969
10031
|
* BackgroundAssistant service.
|
|
9970
10032
|
* @module purecloud-platform-client-v2/api/BackgroundAssistantApi
|
|
9971
|
-
* @version
|
|
10033
|
+
* @version 247.1.0
|
|
9972
10034
|
*//**
|
|
9973
10035
|
* Constructs a new BackgroundAssistantApi.
|
|
9974
10036
|
* @alias module:purecloud-platform-client-v2/api/BackgroundAssistantApi
|
|
@@ -9989,7 +10051,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
9989
10051
|
*/},{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 BillingApi=/*#__PURE__*/function(){/**
|
|
9990
10052
|
* Billing service.
|
|
9991
10053
|
* @module purecloud-platform-client-v2/api/BillingApi
|
|
9992
|
-
* @version
|
|
10054
|
+
* @version 247.1.0
|
|
9993
10055
|
*//**
|
|
9994
10056
|
* Constructs a new BillingApi.
|
|
9995
10057
|
* @alias module:purecloud-platform-client-v2/api/BillingApi
|
|
@@ -10066,7 +10128,7 @@ if(endDate===undefined||endDate===null){throw'Missing the required parameter "en
|
|
|
10066
10128
|
if(trustorOrgId===undefined||trustorOrgId===null||trustorOrgId===''){throw'Missing the required parameter "trustorOrgId" when calling getBillingTrusteebillingoverviewTrustorOrgId';}return this.apiClient.callApi('/api/v2/billing/trusteebillingoverview/{trustorOrgId}','GET',{'trustorOrgId':trustorOrgId},{'billingPeriodIndex':opts['billingPeriodIndex']},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}}]);}();var BusinessRulesApi=/*#__PURE__*/function(){/**
|
|
10067
10129
|
* BusinessRules service.
|
|
10068
10130
|
* @module purecloud-platform-client-v2/api/BusinessRulesApi
|
|
10069
|
-
* @version
|
|
10131
|
+
* @version 247.1.0
|
|
10070
10132
|
*//**
|
|
10071
10133
|
* Constructs a new BusinessRulesApi.
|
|
10072
10134
|
* @alias module:purecloud-platform-client-v2/api/BusinessRulesApi
|
|
@@ -10287,7 +10349,7 @@ if(schemaId===undefined||schemaId===null||schemaId===''){throw'Missing the requi
|
|
|
10287
10349
|
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling putBusinessrulesSchema';}return this.apiClient.callApi('/api/v2/businessrules/schemas/{schemaId}','PUT',{'schemaId':schemaId},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}}]);}();var CarrierServicesApi=/*#__PURE__*/function(){/**
|
|
10288
10350
|
* CarrierServices service.
|
|
10289
10351
|
* @module purecloud-platform-client-v2/api/CarrierServicesApi
|
|
10290
|
-
* @version
|
|
10352
|
+
* @version 247.1.0
|
|
10291
10353
|
*//**
|
|
10292
10354
|
* Constructs a new CarrierServicesApi.
|
|
10293
10355
|
* @alias module:purecloud-platform-client-v2/api/CarrierServicesApi
|
|
@@ -10307,7 +10369,7 @@ if(phoneNumber===undefined||phoneNumber===null){throw'Missing the required param
|
|
|
10307
10369
|
*/},{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(){/**
|
|
10308
10370
|
* Chat service.
|
|
10309
10371
|
* @module purecloud-platform-client-v2/api/ChatApi
|
|
10310
|
-
* @version
|
|
10372
|
+
* @version 247.1.0
|
|
10311
10373
|
*//**
|
|
10312
10374
|
* Constructs a new ChatApi.
|
|
10313
10375
|
* @alias module:purecloud-platform-client-v2/api/ChatApi
|
|
@@ -10538,7 +10600,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
10538
10600
|
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(){/**
|
|
10539
10601
|
* Coaching service.
|
|
10540
10602
|
* @module purecloud-platform-client-v2/api/CoachingApi
|
|
10541
|
-
* @version
|
|
10603
|
+
* @version 247.1.0
|
|
10542
10604
|
*//**
|
|
10543
10605
|
* Constructs a new CoachingApi.
|
|
10544
10606
|
* @alias module:purecloud-platform-client-v2/api/CoachingApi
|
|
@@ -10701,7 +10763,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
10701
10763
|
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(){/**
|
|
10702
10764
|
* ContentManagement service.
|
|
10703
10765
|
* @module purecloud-platform-client-v2/api/ContentManagementApi
|
|
10704
|
-
* @version
|
|
10766
|
+
* @version 247.1.0
|
|
10705
10767
|
*//**
|
|
10706
10768
|
* Constructs a new ContentManagementApi.
|
|
10707
10769
|
* @alias module:purecloud-platform-client-v2/api/ContentManagementApi
|
|
@@ -10983,7 +11045,7 @@ if(tagId===undefined||tagId===null||tagId===''){throw'Missing the required param
|
|
|
10983
11045
|
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(){/**
|
|
10984
11046
|
* Conversations service.
|
|
10985
11047
|
* @module purecloud-platform-client-v2/api/ConversationsApi
|
|
10986
|
-
* @version
|
|
11048
|
+
* @version 247.1.0
|
|
10987
11049
|
*//**
|
|
10988
11050
|
* Constructs a new ConversationsApi.
|
|
10989
11051
|
* @alias module:purecloud-platform-client-v2/api/ConversationsApi
|
|
@@ -13318,7 +13380,7 @@ if(conversationId===undefined||conversationId===null||conversationId===''){throw
|
|
|
13318
13380
|
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(){/**
|
|
13319
13381
|
* DataExtensions service.
|
|
13320
13382
|
* @module purecloud-platform-client-v2/api/DataExtensionsApi
|
|
13321
|
-
* @version
|
|
13383
|
+
* @version 247.1.0
|
|
13322
13384
|
*//**
|
|
13323
13385
|
* Constructs a new DataExtensionsApi.
|
|
13324
13386
|
* @alias module:purecloud-platform-client-v2/api/DataExtensionsApi
|
|
@@ -13339,7 +13401,7 @@ if(coretypeName===undefined||coretypeName===null||coretypeName===''){throw'Missi
|
|
|
13339
13401
|
*/},{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(){/**
|
|
13340
13402
|
* DataPrivacy service.
|
|
13341
13403
|
* @module purecloud-platform-client-v2/api/DataPrivacyApi
|
|
13342
|
-
* @version
|
|
13404
|
+
* @version 247.1.0
|
|
13343
13405
|
*//**
|
|
13344
13406
|
* Constructs a new DataPrivacyApi.
|
|
13345
13407
|
* @alias module:purecloud-platform-client-v2/api/DataPrivacyApi
|
|
@@ -13379,7 +13441,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
13379
13441
|
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(){/**
|
|
13380
13442
|
* Downloads service.
|
|
13381
13443
|
* @module purecloud-platform-client-v2/api/DownloadsApi
|
|
13382
|
-
* @version
|
|
13444
|
+
* @version 247.1.0
|
|
13383
13445
|
*//**
|
|
13384
13446
|
* Constructs a new DownloadsApi.
|
|
13385
13447
|
* @alias module:purecloud-platform-client-v2/api/DownloadsApi
|
|
@@ -13398,7 +13460,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
13398
13460
|
if(downloadId===undefined||downloadId===null||downloadId===''){throw'Missing the required parameter "downloadId" when calling getDownload';}return this.apiClient.callApi('/api/v2/downloads/{downloadId}','GET',{'downloadId':downloadId},{'contentDisposition':opts['contentDisposition'],'issueRedirect':opts['issueRedirect'],'redirectToAuth':opts['redirectToAuth']},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}}]);}();var EmailsApi=/*#__PURE__*/function(){/**
|
|
13399
13461
|
* Emails service.
|
|
13400
13462
|
* @module purecloud-platform-client-v2/api/EmailsApi
|
|
13401
|
-
* @version
|
|
13463
|
+
* @version 247.1.0
|
|
13402
13464
|
*//**
|
|
13403
13465
|
* Constructs a new EmailsApi.
|
|
13404
13466
|
* @alias module:purecloud-platform-client-v2/api/EmailsApi
|
|
@@ -13427,7 +13489,7 @@ if(downloadId===undefined||downloadId===null||downloadId===''){throw'Missing the
|
|
|
13427
13489
|
*/},{key:"patchEmailsSettingsThreading",value:function patchEmailsSettingsThreading(opts){opts=opts||{};return this.apiClient.callApi('/api/v2/emails/settings/threading','PATCH',{},{},{},{},opts['body'],['PureCloud OAuth'],['application/json'],['application/json']);}}]);}();var EmployeeEngagementApi=/*#__PURE__*/function(){/**
|
|
13428
13490
|
* EmployeeEngagement service.
|
|
13429
13491
|
* @module purecloud-platform-client-v2/api/EmployeeEngagementApi
|
|
13430
|
-
* @version
|
|
13492
|
+
* @version 247.1.0
|
|
13431
13493
|
*//**
|
|
13432
13494
|
* Constructs a new EmployeeEngagementApi.
|
|
13433
13495
|
* @alias module:purecloud-platform-client-v2/api/EmployeeEngagementApi
|
|
@@ -13475,7 +13537,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
13475
13537
|
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(){/**
|
|
13476
13538
|
* Events service.
|
|
13477
13539
|
* @module purecloud-platform-client-v2/api/EventsApi
|
|
13478
|
-
* @version
|
|
13540
|
+
* @version 247.1.0
|
|
13479
13541
|
*//**
|
|
13480
13542
|
* Constructs a new EventsApi.
|
|
13481
13543
|
* @alias module:purecloud-platform-client-v2/api/EventsApi
|
|
@@ -13500,7 +13562,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
13500
13562
|
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(){/**
|
|
13501
13563
|
* ExternalContacts service.
|
|
13502
13564
|
* @module purecloud-platform-client-v2/api/ExternalContactsApi
|
|
13503
|
-
* @version
|
|
13565
|
+
* @version 247.1.0
|
|
13504
13566
|
*//**
|
|
13505
13567
|
* Constructs a new ExternalContactsApi.
|
|
13506
13568
|
* @alias module:purecloud-platform-client-v2/api/ExternalContactsApi
|
|
@@ -14250,7 +14312,7 @@ if(relationshipId===undefined||relationshipId===null||relationshipId===''){throw
|
|
|
14250
14312
|
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(){/**
|
|
14251
14313
|
* Fax service.
|
|
14252
14314
|
* @module purecloud-platform-client-v2/api/FaxApi
|
|
14253
|
-
* @version
|
|
14315
|
+
* @version 247.1.0
|
|
14254
14316
|
*//**
|
|
14255
14317
|
* Constructs a new FaxApi.
|
|
14256
14318
|
* @alias module:purecloud-platform-client-v2/api/FaxApi
|
|
@@ -14299,7 +14361,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
14299
14361
|
*/},{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(){/**
|
|
14300
14362
|
* Flows service.
|
|
14301
14363
|
* @module purecloud-platform-client-v2/api/FlowsApi
|
|
14302
|
-
* @version
|
|
14364
|
+
* @version 247.1.0
|
|
14303
14365
|
*//**
|
|
14304
14366
|
* Constructs a new FlowsApi.
|
|
14305
14367
|
* @alias module:purecloud-platform-client-v2/api/FlowsApi
|
|
@@ -14353,7 +14415,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
14353
14415
|
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(){/**
|
|
14354
14416
|
* Gamification service.
|
|
14355
14417
|
* @module purecloud-platform-client-v2/api/GamificationApi
|
|
14356
|
-
* @version
|
|
14418
|
+
* @version 247.1.0
|
|
14357
14419
|
*//**
|
|
14358
14420
|
* Constructs a new GamificationApi.
|
|
14359
14421
|
* @alias module:purecloud-platform-client-v2/api/GamificationApi
|
|
@@ -15024,7 +15086,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
15024
15086
|
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(){/**
|
|
15025
15087
|
* GeneralDataProtectionRegulation service.
|
|
15026
15088
|
* @module purecloud-platform-client-v2/api/GeneralDataProtectionRegulationApi
|
|
15027
|
-
* @version
|
|
15089
|
+
* @version 247.1.0
|
|
15028
15090
|
*//**
|
|
15029
15091
|
* Constructs a new GeneralDataProtectionRegulationApi.
|
|
15030
15092
|
* @alias module:purecloud-platform-client-v2/api/GeneralDataProtectionRegulationApi
|
|
@@ -15059,7 +15121,7 @@ if(searchValue===undefined||searchValue===null){throw'Missing the required param
|
|
|
15059
15121
|
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(){/**
|
|
15060
15122
|
* Geolocation service.
|
|
15061
15123
|
* @module purecloud-platform-client-v2/api/GeolocationApi
|
|
15062
|
-
* @version
|
|
15124
|
+
* @version 247.1.0
|
|
15063
15125
|
*//**
|
|
15064
15126
|
* Constructs a new GeolocationApi.
|
|
15065
15127
|
* @alias module:purecloud-platform-client-v2/api/GeolocationApi
|
|
@@ -15093,7 +15155,7 @@ if(clientId===undefined||clientId===null||clientId===''){throw'Missing the requi
|
|
|
15093
15155
|
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(){/**
|
|
15094
15156
|
* Greetings service.
|
|
15095
15157
|
* @module purecloud-platform-client-v2/api/GreetingsApi
|
|
15096
|
-
* @version
|
|
15158
|
+
* @version 247.1.0
|
|
15097
15159
|
*//**
|
|
15098
15160
|
* Constructs a new GreetingsApi.
|
|
15099
15161
|
* @alias module:purecloud-platform-client-v2/api/GreetingsApi
|
|
@@ -15221,7 +15283,7 @@ if(userId===undefined||userId===null||userId===''){throw'Missing the required pa
|
|
|
15221
15283
|
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(){/**
|
|
15222
15284
|
* Groups service.
|
|
15223
15285
|
* @module purecloud-platform-client-v2/api/GroupsApi
|
|
15224
|
-
* @version
|
|
15286
|
+
* @version 247.1.0
|
|
15225
15287
|
*//**
|
|
15226
15288
|
* Constructs a new GroupsApi.
|
|
15227
15289
|
* @alias module:purecloud-platform-client-v2/api/GroupsApi
|
|
@@ -15354,7 +15416,7 @@ if(groupId===undefined||groupId===null||groupId===''){throw'Missing the required
|
|
|
15354
15416
|
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(){/**
|
|
15355
15417
|
* IdentityProvider service.
|
|
15356
15418
|
* @module purecloud-platform-client-v2/api/IdentityProviderApi
|
|
15357
|
-
* @version
|
|
15419
|
+
* @version 247.1.0
|
|
15358
15420
|
*//**
|
|
15359
15421
|
* Constructs a new IdentityProviderApi.
|
|
15360
15422
|
* @alias module:purecloud-platform-client-v2/api/IdentityProviderApi
|
|
@@ -15510,7 +15572,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
15510
15572
|
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(){/**
|
|
15511
15573
|
* InfrastructureAsCode service.
|
|
15512
15574
|
* @module purecloud-platform-client-v2/api/InfrastructureAsCodeApi
|
|
15513
|
-
* @version
|
|
15575
|
+
* @version 247.1.0
|
|
15514
15576
|
*//**
|
|
15515
15577
|
* Constructs a new InfrastructureAsCodeApi.
|
|
15516
15578
|
* @alias module:purecloud-platform-client-v2/api/InfrastructureAsCodeApi
|
|
@@ -15564,7 +15626,7 @@ if(jobId===undefined||jobId===null||jobId===''){throw'Missing the required param
|
|
|
15564
15626
|
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(){/**
|
|
15565
15627
|
* Integrations service.
|
|
15566
15628
|
* @module purecloud-platform-client-v2/api/IntegrationsApi
|
|
15567
|
-
* @version
|
|
15629
|
+
* @version 247.1.0
|
|
15568
15630
|
*//**
|
|
15569
15631
|
* Constructs a new IntegrationsApi.
|
|
15570
15632
|
* @alias module:purecloud-platform-client-v2/api/IntegrationsApi
|
|
@@ -16256,7 +16318,7 @@ if(ucIntegrationId===undefined||ucIntegrationId===null||ucIntegrationId===''){th
|
|
|
16256
16318
|
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 IntentsApi=/*#__PURE__*/function(){/**
|
|
16257
16319
|
* Intents service.
|
|
16258
16320
|
* @module purecloud-platform-client-v2/api/IntentsApi
|
|
16259
|
-
* @version
|
|
16321
|
+
* @version 247.1.0
|
|
16260
16322
|
*//**
|
|
16261
16323
|
* Constructs a new IntentsApi.
|
|
16262
16324
|
* @alias module:purecloud-platform-client-v2/api/IntentsApi
|
|
@@ -16373,7 +16435,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
16373
16435
|
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling postIntentsCustomerintents';}return this.apiClient.callApi('/api/v2/intents/customerintents','POST',{},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}}]);}();var JourneyApi=/*#__PURE__*/function(){/**
|
|
16374
16436
|
* Journey service.
|
|
16375
16437
|
* @module purecloud-platform-client-v2/api/JourneyApi
|
|
16376
|
-
* @version
|
|
16438
|
+
* @version 247.1.0
|
|
16377
16439
|
*//**
|
|
16378
16440
|
* Constructs a new JourneyApi.
|
|
16379
16441
|
* @alias module:purecloud-platform-client-v2/api/JourneyApi
|
|
@@ -16882,7 +16944,7 @@ if(versionId===undefined||versionId===null||versionId===''){throw'Missing the re
|
|
|
16882
16944
|
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(){/**
|
|
16883
16945
|
* Knowledge service.
|
|
16884
16946
|
* @module purecloud-platform-client-v2/api/KnowledgeApi
|
|
16885
|
-
* @version
|
|
16947
|
+
* @version 247.1.0
|
|
16886
16948
|
*//**
|
|
16887
16949
|
* Constructs a new KnowledgeApi.
|
|
16888
16950
|
* @alias module:purecloud-platform-client-v2/api/KnowledgeApi
|
|
@@ -16960,6 +17022,11 @@ if(sourceId===undefined||sourceId===null||sourceId===''){throw'Missing the requi
|
|
|
16960
17022
|
*/},{key:"deleteKnowledgeKnowledgebaseSynchronizeJob",value:function deleteKnowledgeKnowledgebaseSynchronizeJob(knowledgeBaseId,syncJobId){// verify the required parameter 'knowledgeBaseId' is set
|
|
16961
17023
|
if(knowledgeBaseId===undefined||knowledgeBaseId===null||knowledgeBaseId===''){throw'Missing the required parameter "knowledgeBaseId" when calling deleteKnowledgeKnowledgebaseSynchronizeJob';}// verify the required parameter 'syncJobId' is set
|
|
16962
17024
|
if(syncJobId===undefined||syncJobId===null||syncJobId===''){throw'Missing the required parameter "syncJobId" when calling deleteKnowledgeKnowledgebaseSynchronizeJob';}return this.apiClient.callApi('/api/v2/knowledge/knowledgebases/{knowledgeBaseId}/synchronize/jobs/{syncJobId}','DELETE',{'knowledgeBaseId':knowledgeBaseId,'syncJobId':syncJobId},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
17025
|
+
* Delete Knowledge setting.
|
|
17026
|
+
*
|
|
17027
|
+
* @param {String} knowledgeSettingId Knowledge Setting ID.
|
|
17028
|
+
*/},{key:"deleteKnowledgeSetting",value:function deleteKnowledgeSetting(knowledgeSettingId){// verify the required parameter 'knowledgeSettingId' is set
|
|
17029
|
+
if(knowledgeSettingId===undefined||knowledgeSettingId===null||knowledgeSettingId===''){throw'Missing the required parameter "knowledgeSettingId" when calling deleteKnowledgeSetting';}return this.apiClient.callApi('/api/v2/knowledge/settings/{knowledgeSettingId}','DELETE',{'knowledgeSettingId':knowledgeSettingId},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
16963
17030
|
* Get categories
|
|
16964
17031
|
*
|
|
16965
17032
|
* @param {String} sessionId Knowledge guest session ID.
|
|
@@ -17300,6 +17367,22 @@ if(jobId===undefined||jobId===null||jobId===''){throw'Missing the required param
|
|
|
17300
17367
|
* @param {Object} opts.sortBy Sort by.
|
|
17301
17368
|
* @param {Object} opts.sortOrder Sort Order.
|
|
17302
17369
|
*/},{key:"getKnowledgeKnowledgebases",value:function getKnowledgeKnowledgebases(opts){opts=opts||{};return this.apiClient.callApi('/api/v2/knowledge/knowledgebases','GET',{},{'before':opts['before'],'after':opts['after'],'limit':opts['limit'],'pageSize':opts['pageSize'],'name':opts['name'],'coreLanguage':opts['coreLanguage'],'published':opts['published'],'sortBy':opts['sortBy'],'sortOrder':opts['sortOrder']},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
17370
|
+
* Get Knowledge setting.
|
|
17371
|
+
*
|
|
17372
|
+
* @param {String} knowledgeSettingId Knowledge Setting ID.
|
|
17373
|
+
*/},{key:"getKnowledgeSetting",value:function getKnowledgeSetting(knowledgeSettingId){// verify the required parameter 'knowledgeSettingId' is set
|
|
17374
|
+
if(knowledgeSettingId===undefined||knowledgeSettingId===null||knowledgeSettingId===''){throw'Missing the required parameter "knowledgeSettingId" when calling getKnowledgeSetting';}return this.apiClient.callApi('/api/v2/knowledge/settings/{knowledgeSettingId}','GET',{'knowledgeSettingId':knowledgeSettingId},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
17375
|
+
* Get Knowledge settings.
|
|
17376
|
+
*
|
|
17377
|
+
* @param {Object} opts Optional parameters
|
|
17378
|
+
* @param {String} opts.before The cursor that points to the start of the set of entities that has been returned.
|
|
17379
|
+
* @param {String} opts.after The cursor that points to the end of the set of entities that has been returned.
|
|
17380
|
+
* @param {String} opts.pageSize Number of entities to return. Maximum of 200.
|
|
17381
|
+
* @param {String} opts.name Knowledge setting name to search upon.
|
|
17382
|
+
* @param {String} opts.sourceId Source ID to filter knowledge settings by.
|
|
17383
|
+
* @param {Object} opts.sortBy Field to sort the knowledge settings on.
|
|
17384
|
+
* @param {Object} opts.sortOrder Sorting order for knowledge settings.
|
|
17385
|
+
*/},{key:"getKnowledgeSettings",value:function getKnowledgeSettings(opts){opts=opts||{};return this.apiClient.callApi('/api/v2/knowledge/settings','GET',{},{'before':opts['before'],'after':opts['after'],'pageSize':opts['pageSize'],'name':opts['name'],'sourceId':opts['sourceId'],'sortBy':opts['sortBy'],'sortOrder':opts['sortOrder']},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
17303
17386
|
* Update search result.
|
|
17304
17387
|
*
|
|
17305
17388
|
* @param {String} sessionId Knowledge guest session ID.
|
|
@@ -17421,6 +17504,13 @@ if(knowledgeBaseId===undefined||knowledgeBaseId===null||knowledgeBaseId===''){th
|
|
|
17421
17504
|
if(groupId===undefined||groupId===null||groupId===''){throw'Missing the required parameter "groupId" when calling patchKnowledgeKnowledgebaseUnansweredGroupPhrasegroup';}// verify the required parameter 'phraseGroupId' is set
|
|
17422
17505
|
if(phraseGroupId===undefined||phraseGroupId===null||phraseGroupId===''){throw'Missing the required parameter "phraseGroupId" when calling patchKnowledgeKnowledgebaseUnansweredGroupPhrasegroup';}// verify the required parameter 'body' is set
|
|
17423
17506
|
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling patchKnowledgeKnowledgebaseUnansweredGroupPhrasegroup';}return this.apiClient.callApi('/api/v2/knowledge/knowledgebases/{knowledgeBaseId}/unanswered/groups/{groupId}/phrasegroups/{phraseGroupId}','PATCH',{'knowledgeBaseId':knowledgeBaseId,'groupId':groupId,'phraseGroupId':phraseGroupId},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
17507
|
+
* Update Knowledge setting.
|
|
17508
|
+
*
|
|
17509
|
+
* @param {String} knowledgeSettingId Knowledge Setting ID.
|
|
17510
|
+
* @param {Object} body
|
|
17511
|
+
*/},{key:"patchKnowledgeSetting",value:function patchKnowledgeSetting(knowledgeSettingId,body){// verify the required parameter 'knowledgeSettingId' is set
|
|
17512
|
+
if(knowledgeSettingId===undefined||knowledgeSettingId===null||knowledgeSettingId===''){throw'Missing the required parameter "knowledgeSettingId" when calling patchKnowledgeSetting';}// verify the required parameter 'body' is set
|
|
17513
|
+
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling patchKnowledgeSetting';}return this.apiClient.callApi('/api/v2/knowledge/settings/{knowledgeSettingId}','PATCH',{'knowledgeSettingId':knowledgeSettingId},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
17424
17514
|
* Creates a presigned URL for uploading a knowledge import file with a set of documents
|
|
17425
17515
|
*
|
|
17426
17516
|
* @param {Object} body query
|
|
@@ -17699,6 +17789,16 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
17699
17789
|
* @param {Object} body
|
|
17700
17790
|
*/},{key:"postKnowledgeKnowledgebases",value:function postKnowledgeKnowledgebases(body){// verify the required parameter 'body' is set
|
|
17701
17791
|
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling postKnowledgeKnowledgebases';}return this.apiClient.callApi('/api/v2/knowledge/knowledgebases','POST',{},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
17792
|
+
* Get Knowledge Search Preview
|
|
17793
|
+
*
|
|
17794
|
+
* @param {Object} opts Optional parameters
|
|
17795
|
+
* @param {Object} opts.body
|
|
17796
|
+
*/},{key:"postKnowledgeSearchPreview",value:function postKnowledgeSearchPreview(opts){opts=opts||{};return this.apiClient.callApi('/api/v2/knowledge/search/preview','POST',{},{},{},{},opts['body'],['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
17797
|
+
* Create Knowledge setting.
|
|
17798
|
+
*
|
|
17799
|
+
* @param {Object} opts Optional parameters
|
|
17800
|
+
* @param {Object} opts.body
|
|
17801
|
+
*/},{key:"postKnowledgeSettings",value:function postKnowledgeSettings(opts){opts=opts||{};return this.apiClient.callApi('/api/v2/knowledge/settings','POST',{},{},{},{},opts['body'],['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
17702
17802
|
* Update Salesforce Knowledge integration source
|
|
17703
17803
|
*
|
|
17704
17804
|
* @param {String} knowledgeBaseId Knowledge base ID
|
|
@@ -17719,7 +17819,7 @@ if(sourceId===undefined||sourceId===null||sourceId===''){throw'Missing the requi
|
|
|
17719
17819
|
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(){/**
|
|
17720
17820
|
* LanguageUnderstanding service.
|
|
17721
17821
|
* @module purecloud-platform-client-v2/api/LanguageUnderstandingApi
|
|
17722
|
-
* @version
|
|
17822
|
+
* @version 247.1.0
|
|
17723
17823
|
*//**
|
|
17724
17824
|
* Constructs a new LanguageUnderstandingApi.
|
|
17725
17825
|
* @alias module:purecloud-platform-client-v2/api/LanguageUnderstandingApi
|
|
@@ -18028,7 +18128,7 @@ if(domainVersionId===undefined||domainVersionId===null||domainVersionId===''){th
|
|
|
18028
18128
|
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(){/**
|
|
18029
18129
|
* Languages service.
|
|
18030
18130
|
* @module purecloud-platform-client-v2/api/LanguagesApi
|
|
18031
|
-
* @version
|
|
18131
|
+
* @version 247.1.0
|
|
18032
18132
|
*//**
|
|
18033
18133
|
* Constructs a new LanguagesApi.
|
|
18034
18134
|
* @alias module:purecloud-platform-client-v2/api/LanguagesApi
|
|
@@ -18083,7 +18183,7 @@ if(userId===undefined||userId===null||userId===''){throw'Missing the required pa
|
|
|
18083
18183
|
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(){/**
|
|
18084
18184
|
* Learning service.
|
|
18085
18185
|
* @module purecloud-platform-client-v2/api/LearningApi
|
|
18086
|
-
* @version
|
|
18186
|
+
* @version 247.1.0
|
|
18087
18187
|
*//**
|
|
18088
18188
|
* Constructs a new LearningApi.
|
|
18089
18189
|
* @alias module:purecloud-platform-client-v2/api/LearningApi
|
|
@@ -18372,7 +18472,7 @@ if(moduleId===undefined||moduleId===null||moduleId===''){throw'Missing the requi
|
|
|
18372
18472
|
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling putLearningModuleRule';}return this.apiClient.callApi('/api/v2/learning/modules/{moduleId}/rule','PUT',{'moduleId':moduleId},{'assign':opts['assign']},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}}]);}();var LicenseApi=/*#__PURE__*/function(){/**
|
|
18373
18473
|
* License service.
|
|
18374
18474
|
* @module purecloud-platform-client-v2/api/LicenseApi
|
|
18375
|
-
* @version
|
|
18475
|
+
* @version 247.1.0
|
|
18376
18476
|
*//**
|
|
18377
18477
|
* Constructs a new LicenseApi.
|
|
18378
18478
|
* @alias module:purecloud-platform-client-v2/api/LicenseApi
|
|
@@ -18426,7 +18526,7 @@ if(featureName===undefined||featureName===null||featureName===''){throw'Missing
|
|
|
18426
18526
|
*/},{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(){/**
|
|
18427
18527
|
* Locations service.
|
|
18428
18528
|
* @module purecloud-platform-client-v2/api/LocationsApi
|
|
18429
|
-
* @version
|
|
18529
|
+
* @version 247.1.0
|
|
18430
18530
|
*//**
|
|
18431
18531
|
* Constructs a new LocationsApi.
|
|
18432
18532
|
* @alias module:purecloud-platform-client-v2/api/LocationsApi
|
|
@@ -18485,7 +18585,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
18485
18585
|
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(){/**
|
|
18486
18586
|
* LogCapture service.
|
|
18487
18587
|
* @module purecloud-platform-client-v2/api/LogCaptureApi
|
|
18488
|
-
* @version
|
|
18588
|
+
* @version 247.1.0
|
|
18489
18589
|
*//**
|
|
18490
18590
|
* Constructs a new LogCaptureApi.
|
|
18491
18591
|
* @alias module:purecloud-platform-client-v2/api/LogCaptureApi
|
|
@@ -18534,7 +18634,7 @@ if(userId===undefined||userId===null||userId===''){throw'Missing the required pa
|
|
|
18534
18634
|
if(userId===undefined||userId===null||userId===''){throw'Missing the required parameter "userId" when calling postDiagnosticsLogcaptureBrowserUser';}return this.apiClient.callApi('/api/v2/diagnostics/logcapture/browser/users/{userId}','POST',{'userId':userId},{},{},{},opts['body'],['PureCloud OAuth'],['application/json'],['application/json']);}}]);}();var MessagingApi=/*#__PURE__*/function(){/**
|
|
18535
18635
|
* Messaging service.
|
|
18536
18636
|
* @module purecloud-platform-client-v2/api/MessagingApi
|
|
18537
|
-
* @version
|
|
18637
|
+
* @version 247.1.0
|
|
18538
18638
|
*//**
|
|
18539
18639
|
* Constructs a new MessagingApi.
|
|
18540
18640
|
* @alias module:purecloud-platform-client-v2/api/MessagingApi
|
|
@@ -18624,7 +18724,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
18624
18724
|
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(){/**
|
|
18625
18725
|
* MobileDevices service.
|
|
18626
18726
|
* @module purecloud-platform-client-v2/api/MobileDevicesApi
|
|
18627
|
-
* @version
|
|
18727
|
+
* @version 247.1.0
|
|
18628
18728
|
*//**
|
|
18629
18729
|
* Constructs a new MobileDevicesApi.
|
|
18630
18730
|
* @alias module:purecloud-platform-client-v2/api/MobileDevicesApi
|
|
@@ -18663,7 +18763,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
18663
18763
|
if(deviceId===undefined||deviceId===null||deviceId===''){throw'Missing the required parameter "deviceId" when calling putMobiledevice';}return this.apiClient.callApi('/api/v2/mobiledevices/{deviceId}','PUT',{'deviceId':deviceId},{},{},{},opts['body'],['PureCloud OAuth'],['application/json'],['application/json']);}}]);}();var NotificationsApi=/*#__PURE__*/function(){/**
|
|
18664
18764
|
* Notifications service.
|
|
18665
18765
|
* @module purecloud-platform-client-v2/api/NotificationsApi
|
|
18666
|
-
* @version
|
|
18766
|
+
* @version 247.1.0
|
|
18667
18767
|
*//**
|
|
18668
18768
|
* Constructs a new NotificationsApi.
|
|
18669
18769
|
* @alias module:purecloud-platform-client-v2/api/NotificationsApi
|
|
@@ -18720,7 +18820,7 @@ if(channelId===undefined||channelId===null||channelId===''){throw'Missing the re
|
|
|
18720
18820
|
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(){/**
|
|
18721
18821
|
* OAuth service.
|
|
18722
18822
|
* @module purecloud-platform-client-v2/api/OAuthApi
|
|
18723
|
-
* @version
|
|
18823
|
+
* @version 247.1.0
|
|
18724
18824
|
*//**
|
|
18725
18825
|
* Constructs a new OAuthApi.
|
|
18726
18826
|
* @alias module:purecloud-platform-client-v2/api/OAuthApi
|
|
@@ -18805,7 +18905,7 @@ if(clientId===undefined||clientId===null||clientId===''){throw'Missing the requi
|
|
|
18805
18905
|
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(){/**
|
|
18806
18906
|
* Objects service.
|
|
18807
18907
|
* @module purecloud-platform-client-v2/api/ObjectsApi
|
|
18808
|
-
* @version
|
|
18908
|
+
* @version 247.1.0
|
|
18809
18909
|
*//**
|
|
18810
18910
|
* Constructs a new ObjectsApi.
|
|
18811
18911
|
* @alias module:purecloud-platform-client-v2/api/ObjectsApi
|
|
@@ -18891,7 +18991,7 @@ if(divisionId===undefined||divisionId===null||divisionId===''){throw'Missing the
|
|
|
18891
18991
|
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(){/**
|
|
18892
18992
|
* OperationalEvents service.
|
|
18893
18993
|
* @module purecloud-platform-client-v2/api/OperationalEventsApi
|
|
18894
|
-
* @version
|
|
18994
|
+
* @version 247.1.0
|
|
18895
18995
|
*//**
|
|
18896
18996
|
* Constructs a new OperationalEventsApi.
|
|
18897
18997
|
* @alias module:purecloud-platform-client-v2/api/OperationalEventsApi
|
|
@@ -18922,7 +19022,7 @@ if(eventDefinitionId===undefined||eventDefinitionId===null||eventDefinitionId===
|
|
|
18922
19022
|
*/},{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(){/**
|
|
18923
19023
|
* Organization service.
|
|
18924
19024
|
* @module purecloud-platform-client-v2/api/OrganizationApi
|
|
18925
|
-
* @version
|
|
19025
|
+
* @version 247.1.0
|
|
18926
19026
|
*//**
|
|
18927
19027
|
* Constructs a new OrganizationApi.
|
|
18928
19028
|
* @alias module:purecloud-platform-client-v2/api/OrganizationApi
|
|
@@ -19027,7 +19127,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
19027
19127
|
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(){/**
|
|
19028
19128
|
* OrganizationAuthorization service.
|
|
19029
19129
|
* @module purecloud-platform-client-v2/api/OrganizationAuthorizationApi
|
|
19030
|
-
* @version
|
|
19130
|
+
* @version 247.1.0
|
|
19031
19131
|
*//**
|
|
19032
19132
|
* Constructs a new OrganizationAuthorizationApi.
|
|
19033
19133
|
* @alias module:purecloud-platform-client-v2/api/OrganizationAuthorizationApi
|
|
@@ -19361,7 +19461,7 @@ if(trustorOrgId===undefined||trustorOrgId===null||trustorOrgId===''){throw'Missi
|
|
|
19361
19461
|
if(trusteeUserId===undefined||trusteeUserId===null||trusteeUserId===''){throw'Missing the required parameter "trusteeUserId" when calling putOrgauthorizationTrustorUser';}return this.apiClient.callApi('/api/v2/orgauthorization/trustors/{trustorOrgId}/users/{trusteeUserId}','PUT',{'trustorOrgId':trustorOrgId,'trusteeUserId':trusteeUserId},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}}]);}();var OutboundApi=/*#__PURE__*/function(){/**
|
|
19362
19462
|
* Outbound service.
|
|
19363
19463
|
* @module purecloud-platform-client-v2/api/OutboundApi
|
|
19364
|
-
* @version
|
|
19464
|
+
* @version 247.1.0
|
|
19365
19465
|
*//**
|
|
19366
19466
|
* Constructs a new OutboundApi.
|
|
19367
19467
|
* @alias module:purecloud-platform-client-v2/api/OutboundApi
|
|
@@ -20528,7 +20628,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
20528
20628
|
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(){/**
|
|
20529
20629
|
* Presence service.
|
|
20530
20630
|
* @module purecloud-platform-client-v2/api/PresenceApi
|
|
20531
|
-
* @version
|
|
20631
|
+
* @version 247.1.0
|
|
20532
20632
|
*//**
|
|
20533
20633
|
* Constructs a new PresenceApi.
|
|
20534
20634
|
* @alias module:purecloud-platform-client-v2/api/PresenceApi
|
|
@@ -20701,7 +20801,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
20701
20801
|
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(){/**
|
|
20702
20802
|
* ProcessAutomation service.
|
|
20703
20803
|
* @module purecloud-platform-client-v2/api/ProcessAutomationApi
|
|
20704
|
-
* @version
|
|
20804
|
+
* @version 247.1.0
|
|
20705
20805
|
*//**
|
|
20706
20806
|
* Constructs a new ProcessAutomationApi.
|
|
20707
20807
|
* @alias module:purecloud-platform-client-v2/api/ProcessAutomationApi
|
|
@@ -20764,7 +20864,7 @@ if(triggerId===undefined||triggerId===null||triggerId===''){throw'Missing the re
|
|
|
20764
20864
|
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(){/**
|
|
20765
20865
|
* Quality service.
|
|
20766
20866
|
* @module purecloud-platform-client-v2/api/QualityApi
|
|
20767
|
-
* @version
|
|
20867
|
+
* @version 247.1.0
|
|
20768
20868
|
*//**
|
|
20769
20869
|
* Constructs a new QualityApi.
|
|
20770
20870
|
* @alias module:purecloud-platform-client-v2/api/QualityApi
|
|
@@ -21169,10 +21269,11 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
21169
21269
|
* @param {String} conversationId conversationId
|
|
21170
21270
|
* @param {Object} body evaluation
|
|
21171
21271
|
* @param {Object} opts Optional parameters
|
|
21272
|
+
* @param {String} opts.idempotencyKey Idempotency key for request deduplication
|
|
21172
21273
|
* @param {String} opts.expand evaluatorId
|
|
21173
21274
|
*/},{key:"postQualityConversationEvaluations",value:function postQualityConversationEvaluations(conversationId,body,opts){opts=opts||{};// verify the required parameter 'conversationId' is set
|
|
21174
21275
|
if(conversationId===undefined||conversationId===null||conversationId===''){throw'Missing the required parameter "conversationId" when calling postQualityConversationEvaluations';}// verify the required parameter 'body' is set
|
|
21175
|
-
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling postQualityConversationEvaluations';}return this.apiClient.callApi('/api/v2/quality/conversations/{conversationId}/evaluations','POST',{'conversationId':conversationId},{'expand':opts['expand']},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
21276
|
+
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling postQualityConversationEvaluations';}return this.apiClient.callApi('/api/v2/quality/conversations/{conversationId}/evaluations','POST',{'conversationId':conversationId},{'expand':opts['expand']},{'Idempotency-Key':opts['idempotencyKey']},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
21176
21277
|
* Create audit query execution
|
|
21177
21278
|
*
|
|
21178
21279
|
* @param {Object} body query
|
|
@@ -21307,7 +21408,7 @@ if(customerSurveyUrl===undefined||customerSurveyUrl===null){throw'Missing the re
|
|
|
21307
21408
|
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(){/**
|
|
21308
21409
|
* Recording service.
|
|
21309
21410
|
* @module purecloud-platform-client-v2/api/RecordingApi
|
|
21310
|
-
* @version
|
|
21411
|
+
* @version 247.1.0
|
|
21311
21412
|
*//**
|
|
21312
21413
|
* Constructs a new RecordingApi.
|
|
21313
21414
|
* @alias module:purecloud-platform-client-v2/api/RecordingApi
|
|
@@ -21706,7 +21807,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
21706
21807
|
*/},{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(){/**
|
|
21707
21808
|
* ResponseManagement service.
|
|
21708
21809
|
* @module purecloud-platform-client-v2/api/ResponseManagementApi
|
|
21709
|
-
* @version
|
|
21810
|
+
* @version 247.1.0
|
|
21710
21811
|
*//**
|
|
21711
21812
|
* Constructs a new ResponseManagementApi.
|
|
21712
21813
|
* @alias module:purecloud-platform-client-v2/api/ResponseManagementApi
|
|
@@ -21827,7 +21928,7 @@ if(responseAssetId===undefined||responseAssetId===null||responseAssetId===''){th
|
|
|
21827
21928
|
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(){/**
|
|
21828
21929
|
* Routing service.
|
|
21829
21930
|
* @module purecloud-platform-client-v2/api/RoutingApi
|
|
21830
|
-
* @version
|
|
21931
|
+
* @version 247.1.0
|
|
21831
21932
|
*//**
|
|
21832
21933
|
* Constructs a new RoutingApi.
|
|
21833
21934
|
* @alias module:purecloud-platform-client-v2/api/RoutingApi
|
|
@@ -22973,7 +23074,7 @@ if(userId===undefined||userId===null||userId===''){throw'Missing the required pa
|
|
|
22973
23074
|
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(){/**
|
|
22974
23075
|
* SCIM service.
|
|
22975
23076
|
* @module purecloud-platform-client-v2/api/SCIMApi
|
|
22976
|
-
* @version
|
|
23077
|
+
* @version 247.1.0
|
|
22977
23078
|
*//**
|
|
22978
23079
|
* Constructs a new SCIMApi.
|
|
22979
23080
|
* @alias module:purecloud-platform-client-v2/api/SCIMApi
|
|
@@ -23198,7 +23299,7 @@ if(userId===undefined||userId===null||userId===''){throw'Missing the required pa
|
|
|
23198
23299
|
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 ScriptsApi=/*#__PURE__*/function(){/**
|
|
23199
23300
|
* Scripts service.
|
|
23200
23301
|
* @module purecloud-platform-client-v2/api/ScriptsApi
|
|
23201
|
-
* @version
|
|
23302
|
+
* @version 247.1.0
|
|
23202
23303
|
*//**
|
|
23203
23304
|
* Constructs a new ScriptsApi.
|
|
23204
23305
|
* @alias module:purecloud-platform-client-v2/api/ScriptsApi
|
|
@@ -23344,7 +23445,7 @@ if(scriptId===undefined||scriptId===null||scriptId===''){throw'Missing the requi
|
|
|
23344
23445
|
*/},{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(){/**
|
|
23345
23446
|
* Search service.
|
|
23346
23447
|
* @module purecloud-platform-client-v2/api/SearchApi
|
|
23347
|
-
* @version
|
|
23448
|
+
* @version 247.1.0
|
|
23348
23449
|
*//**
|
|
23349
23450
|
* Constructs a new SearchApi.
|
|
23350
23451
|
* @alias module:purecloud-platform-client-v2/api/SearchApi
|
|
@@ -23508,7 +23609,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
23508
23609
|
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(){/**
|
|
23509
23610
|
* Settings service.
|
|
23510
23611
|
* @module purecloud-platform-client-v2/api/SettingsApi
|
|
23511
|
-
* @version
|
|
23612
|
+
* @version 247.1.0
|
|
23512
23613
|
*//**
|
|
23513
23614
|
* Constructs a new SettingsApi.
|
|
23514
23615
|
* @alias module:purecloud-platform-client-v2/api/SettingsApi
|
|
@@ -23580,7 +23681,7 @@ if(agentId===undefined||agentId===null||agentId===''){throw'Missing the required
|
|
|
23580
23681
|
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(){/**
|
|
23581
23682
|
* SocialMedia service.
|
|
23582
23683
|
* @module purecloud-platform-client-v2/api/SocialMediaApi
|
|
23583
|
-
* @version
|
|
23684
|
+
* @version 247.1.0
|
|
23584
23685
|
*//**
|
|
23585
23686
|
* Constructs a new SocialMediaApi.
|
|
23586
23687
|
* @alias module:purecloud-platform-client-v2/api/SocialMediaApi
|
|
@@ -24069,7 +24170,7 @@ if(topicId===undefined||topicId===null||topicId===''){throw'Missing the required
|
|
|
24069
24170
|
if(twitterIngestionRuleId===undefined||twitterIngestionRuleId===null||twitterIngestionRuleId===''){throw'Missing the required parameter "twitterIngestionRuleId" when calling putSocialmediaTopicDataingestionrulesTwitterTwitterIngestionRuleId';}return this.apiClient.callApi('/api/v2/socialmedia/topics/{topicId}/dataingestionrules/twitter/{twitterIngestionRuleId}','PUT',{'topicId':topicId,'twitterIngestionRuleId':twitterIngestionRuleId},{},{},{},opts['body'],['PureCloud OAuth'],['application/json'],['application/json']);}}]);}();var SpeechTextAnalyticsApi=/*#__PURE__*/function(){/**
|
|
24070
24171
|
* SpeechTextAnalytics service.
|
|
24071
24172
|
* @module purecloud-platform-client-v2/api/SpeechTextAnalyticsApi
|
|
24072
|
-
* @version
|
|
24173
|
+
* @version 247.1.0
|
|
24073
24174
|
*//**
|
|
24074
24175
|
* Constructs a new SpeechTextAnalyticsApi.
|
|
24075
24176
|
* @alias module:purecloud-platform-client-v2/api/SpeechTextAnalyticsApi
|
|
@@ -24448,7 +24549,7 @@ if(topicId===undefined||topicId===null||topicId===''){throw'Missing the required
|
|
|
24448
24549
|
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(){/**
|
|
24449
24550
|
* Stations service.
|
|
24450
24551
|
* @module purecloud-platform-client-v2/api/StationsApi
|
|
24451
|
-
* @version
|
|
24552
|
+
* @version 247.1.0
|
|
24452
24553
|
*//**
|
|
24453
24554
|
* Constructs a new StationsApi.
|
|
24454
24555
|
* @alias module:purecloud-platform-client-v2/api/StationsApi
|
|
@@ -24480,7 +24581,7 @@ if(stationId===undefined||stationId===null||stationId===''){throw'Missing the re
|
|
|
24480
24581
|
*/},{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(){/**
|
|
24481
24582
|
* Suggest service.
|
|
24482
24583
|
* @module purecloud-platform-client-v2/api/SuggestApi
|
|
24483
|
-
* @version
|
|
24584
|
+
* @version 247.1.0
|
|
24484
24585
|
*//**
|
|
24485
24586
|
* Constructs a new SuggestApi.
|
|
24486
24587
|
* @alias module:purecloud-platform-client-v2/api/SuggestApi
|
|
@@ -24520,7 +24621,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
24520
24621
|
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(){/**
|
|
24521
24622
|
* TaskManagement service.
|
|
24522
24623
|
* @module purecloud-platform-client-v2/api/TaskManagementApi
|
|
24523
|
-
* @version
|
|
24624
|
+
* @version 247.1.0
|
|
24524
24625
|
*//**
|
|
24525
24626
|
* Constructs a new TaskManagementApi.
|
|
24526
24627
|
* @alias module:purecloud-platform-client-v2/api/TaskManagementApi
|
|
@@ -25028,7 +25129,7 @@ if(schemaId===undefined||schemaId===null||schemaId===''){throw'Missing the requi
|
|
|
25028
25129
|
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(){/**
|
|
25029
25130
|
* Teams service.
|
|
25030
25131
|
* @module purecloud-platform-client-v2/api/TeamsApi
|
|
25031
|
-
* @version
|
|
25132
|
+
* @version 247.1.0
|
|
25032
25133
|
*//**
|
|
25033
25134
|
* Constructs a new TeamsApi.
|
|
25034
25135
|
* @alias module:purecloud-platform-client-v2/api/TeamsApi
|
|
@@ -25108,7 +25209,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
25108
25209
|
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(){/**
|
|
25109
25210
|
* Telephony service.
|
|
25110
25211
|
* @module purecloud-platform-client-v2/api/TelephonyApi
|
|
25111
|
-
* @version
|
|
25212
|
+
* @version 247.1.0
|
|
25112
25213
|
*//**
|
|
25113
25214
|
* Constructs a new TelephonyApi.
|
|
25114
25215
|
* @alias module:purecloud-platform-client-v2/api/TelephonyApi
|
|
@@ -25124,6 +25225,11 @@ if(agentId===undefined||agentId===null||agentId===''){throw'Missing the required
|
|
|
25124
25225
|
* Get the agent's own greetings.
|
|
25125
25226
|
*
|
|
25126
25227
|
*/},{key:"getTelephonyAgentsGreetingsMe",value:function getTelephonyAgentsGreetingsMe(){return this.apiClient.callApi('/api/v2/telephony/agents/greetings/me','GET',{},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
25228
|
+
* Get the concurrent call metrics for a given organization.
|
|
25229
|
+
*
|
|
25230
|
+
* @param {Object} opts Optional parameters
|
|
25231
|
+
* @param {Object} opts.metricType Flag to indicate metric type to fetch. (default to cloud)
|
|
25232
|
+
*/},{key:"getTelephonyCallsMetrics",value:function getTelephonyCallsMetrics(opts){opts=opts||{};return this.apiClient.callApi('/api/v2/telephony/calls/metrics','GET',{},{'metricType':opts['metricType']},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
25127
25233
|
* Retrieve the list of AWS regions media can stream through.
|
|
25128
25234
|
*
|
|
25129
25235
|
*/},{key:"getTelephonyMediaregions",value:function getTelephonyMediaregions(){return this.apiClient.callApi('/api/v2/telephony/mediaregions','GET',{},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
@@ -25175,7 +25281,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
25175
25281
|
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling putTelephonyAgentsGreetingsMe';}return this.apiClient.callApi('/api/v2/telephony/agents/greetings/me','PUT',{},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}}]);}();var TelephonyProvidersEdgeApi=/*#__PURE__*/function(){/**
|
|
25176
25282
|
* TelephonyProvidersEdge service.
|
|
25177
25283
|
* @module purecloud-platform-client-v2/api/TelephonyProvidersEdgeApi
|
|
25178
|
-
* @version
|
|
25284
|
+
* @version 247.1.0
|
|
25179
25285
|
*//**
|
|
25180
25286
|
* Constructs a new TelephonyProvidersEdgeApi.
|
|
25181
25287
|
* @alias module:purecloud-platform-client-v2/api/TelephonyProvidersEdgeApi
|
|
@@ -26023,7 +26129,7 @@ if(trunkBaseSettingsId===undefined||trunkBaseSettingsId===null||trunkBaseSetting
|
|
|
26023
26129
|
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(){/**
|
|
26024
26130
|
* Textbots service.
|
|
26025
26131
|
* @module purecloud-platform-client-v2/api/TextbotsApi
|
|
26026
|
-
* @version
|
|
26132
|
+
* @version 247.1.0
|
|
26027
26133
|
*//**
|
|
26028
26134
|
* Constructs a new TextbotsApi.
|
|
26029
26135
|
* @alias module:purecloud-platform-client-v2/api/TextbotsApi
|
|
@@ -26059,7 +26165,7 @@ if(launchRequest===undefined||launchRequest===null){throw'Missing the required p
|
|
|
26059
26165
|
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(){/**
|
|
26060
26166
|
* Tokens service.
|
|
26061
26167
|
* @module purecloud-platform-client-v2/api/TokensApi
|
|
26062
|
-
* @version
|
|
26168
|
+
* @version 247.1.0
|
|
26063
26169
|
*//**
|
|
26064
26170
|
* Constructs a new TokensApi.
|
|
26065
26171
|
* @alias module:purecloud-platform-client-v2/api/TokensApi
|
|
@@ -26093,7 +26199,7 @@ if(userId===undefined||userId===null||userId===''){throw'Missing the required pa
|
|
|
26093
26199
|
*/},{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(){/**
|
|
26094
26200
|
* Uploads service.
|
|
26095
26201
|
* @module purecloud-platform-client-v2/api/UploadsApi
|
|
26096
|
-
* @version
|
|
26202
|
+
* @version 247.1.0
|
|
26097
26203
|
*//**
|
|
26098
26204
|
* Constructs a new UploadsApi.
|
|
26099
26205
|
* @alias module:purecloud-platform-client-v2/api/UploadsApi
|
|
@@ -26166,7 +26272,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
26166
26272
|
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(){/**
|
|
26167
26273
|
* Usage service.
|
|
26168
26274
|
* @module purecloud-platform-client-v2/api/UsageApi
|
|
26169
|
-
* @version
|
|
26275
|
+
* @version 247.1.0
|
|
26170
26276
|
*//**
|
|
26171
26277
|
* Constructs a new UsageApi.
|
|
26172
26278
|
* @alias module:purecloud-platform-client-v2/api/UsageApi
|
|
@@ -26250,7 +26356,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
26250
26356
|
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(){/**
|
|
26251
26357
|
* UserRecordings service.
|
|
26252
26358
|
* @module purecloud-platform-client-v2/api/UserRecordingsApi
|
|
26253
|
-
* @version
|
|
26359
|
+
* @version 247.1.0
|
|
26254
26360
|
*//**
|
|
26255
26361
|
* Constructs a new UserRecordingsApi.
|
|
26256
26362
|
* @alias module:purecloud-platform-client-v2/api/UserRecordingsApi
|
|
@@ -26298,7 +26404,7 @@ if(recordingId===undefined||recordingId===null||recordingId===''){throw'Missing
|
|
|
26298
26404
|
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(){/**
|
|
26299
26405
|
* Users service.
|
|
26300
26406
|
* @module purecloud-platform-client-v2/api/UsersApi
|
|
26301
|
-
* @version
|
|
26407
|
+
* @version 247.1.0
|
|
26302
26408
|
*//**
|
|
26303
26409
|
* Constructs a new UsersApi.
|
|
26304
26410
|
* @alias module:purecloud-platform-client-v2/api/UsersApi
|
|
@@ -27148,7 +27254,7 @@ if(schemaId===undefined||schemaId===null||schemaId===''){throw'Missing the requi
|
|
|
27148
27254
|
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling putUsersCustomattributesSchema';}return this.apiClient.callApi('/api/v2/users/customattributes/schemas/{schemaId}','PUT',{'schemaId':schemaId},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}}]);}();var UsersRulesApi=/*#__PURE__*/function(){/**
|
|
27149
27255
|
* UsersRules service.
|
|
27150
27256
|
* @module purecloud-platform-client-v2/api/UsersRulesApi
|
|
27151
|
-
* @version
|
|
27257
|
+
* @version 247.1.0
|
|
27152
27258
|
*//**
|
|
27153
27259
|
* Constructs a new UsersRulesApi.
|
|
27154
27260
|
* @alias module:purecloud-platform-client-v2/api/UsersRulesApi
|
|
@@ -27223,7 +27329,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
27223
27329
|
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling postUsersRulesQuery';}return this.apiClient.callApi('/api/v2/users/rules/query','POST',{},{'pageNumber':opts['pageNumber'],'pageSize':opts['pageSize']},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}}]);}();var UtilitiesApi=/*#__PURE__*/function(){/**
|
|
27224
27330
|
* Utilities service.
|
|
27225
27331
|
* @module purecloud-platform-client-v2/api/UtilitiesApi
|
|
27226
|
-
* @version
|
|
27332
|
+
* @version 247.1.0
|
|
27227
27333
|
*//**
|
|
27228
27334
|
* Constructs a new UtilitiesApi.
|
|
27229
27335
|
* @alias module:purecloud-platform-client-v2/api/UtilitiesApi
|
|
@@ -27250,7 +27356,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
27250
27356
|
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(){/**
|
|
27251
27357
|
* Voicemail service.
|
|
27252
27358
|
* @module purecloud-platform-client-v2/api/VoicemailApi
|
|
27253
|
-
* @version
|
|
27359
|
+
* @version 247.1.0
|
|
27254
27360
|
*//**
|
|
27255
27361
|
* Constructs a new VoicemailApi.
|
|
27256
27362
|
* @alias module:purecloud-platform-client-v2/api/VoicemailApi
|
|
@@ -27412,7 +27518,7 @@ if(userId===undefined||userId===null||userId===''){throw'Missing the required pa
|
|
|
27412
27518
|
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(){/**
|
|
27413
27519
|
* WebChat service.
|
|
27414
27520
|
* @module purecloud-platform-client-v2/api/WebChatApi
|
|
27415
|
-
* @version
|
|
27521
|
+
* @version 247.1.0
|
|
27416
27522
|
*//**
|
|
27417
27523
|
* Constructs a new WebChatApi.
|
|
27418
27524
|
* @alias module:purecloud-platform-client-v2/api/WebChatApi
|
|
@@ -27559,7 +27665,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
27559
27665
|
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(){/**
|
|
27560
27666
|
* WebDeployments service.
|
|
27561
27667
|
* @module purecloud-platform-client-v2/api/WebDeploymentsApi
|
|
27562
|
-
* @version
|
|
27668
|
+
* @version 247.1.0
|
|
27563
27669
|
*//**
|
|
27564
27670
|
* Constructs a new WebDeploymentsApi.
|
|
27565
27671
|
* @alias module:purecloud-platform-client-v2/api/WebDeploymentsApi
|
|
@@ -27702,7 +27808,7 @@ if(deploymentId===undefined||deploymentId===null||deploymentId===''){throw'Missi
|
|
|
27702
27808
|
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling putWebdeploymentsDeploymentIdentityresolution';}return this.apiClient.callApi('/api/v2/webdeployments/deployments/{deploymentId}/identityresolution','PUT',{'deploymentId':deploymentId},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}}]);}();var WebMessagingApi=/*#__PURE__*/function(){/**
|
|
27703
27809
|
* WebMessaging service.
|
|
27704
27810
|
* @module purecloud-platform-client-v2/api/WebMessagingApi
|
|
27705
|
-
* @version
|
|
27811
|
+
* @version 247.1.0
|
|
27706
27812
|
*//**
|
|
27707
27813
|
* Constructs a new WebMessagingApi.
|
|
27708
27814
|
* @alias module:purecloud-platform-client-v2/api/WebMessagingApi
|
|
@@ -27743,7 +27849,7 @@ if(tokenId===undefined||tokenId===null||tokenId===''){throw'Missing the required
|
|
|
27743
27849
|
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling postWebmessagingDeploymentPushdevice';}return this.apiClient.callApi('/api/v2/webmessaging/deployments/{deploymentId}/pushdevices/{tokenId}','POST',{'deploymentId':deploymentId,'tokenId':tokenId},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}}]);}();var WidgetsApi=/*#__PURE__*/function(){/**
|
|
27744
27850
|
* Widgets service.
|
|
27745
27851
|
* @module purecloud-platform-client-v2/api/WidgetsApi
|
|
27746
|
-
* @version
|
|
27852
|
+
* @version 247.1.0
|
|
27747
27853
|
*//**
|
|
27748
27854
|
* Constructs a new WidgetsApi.
|
|
27749
27855
|
* @alias module:purecloud-platform-client-v2/api/WidgetsApi
|
|
@@ -27783,7 +27889,7 @@ if(deploymentId===undefined||deploymentId===null||deploymentId===''){throw'Missi
|
|
|
27783
27889
|
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(){/**
|
|
27784
27890
|
* WorkforceManagement service.
|
|
27785
27891
|
* @module purecloud-platform-client-v2/api/WorkforceManagementApi
|
|
27786
|
-
* @version
|
|
27892
|
+
* @version 247.1.0
|
|
27787
27893
|
*//**
|
|
27788
27894
|
* Constructs a new WorkforceManagementApi.
|
|
27789
27895
|
* @alias module:purecloud-platform-client-v2/api/WorkforceManagementApi
|
|
@@ -29806,7 +29912,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
29806
29912
|
* </pre>
|
|
29807
29913
|
* </p>
|
|
29808
29914
|
* @module purecloud-platform-client-v2/index
|
|
29809
|
-
* @version
|
|
29915
|
+
* @version 247.1.0
|
|
29810
29916
|
*/var platformClient=/*#__PURE__*/_createClass(function platformClient(){_classCallCheck(this,platformClient);/**
|
|
29811
29917
|
* The ApiClient constructor.
|
|
29812
29918
|
* @property {module:purecloud-platform-client-v2/ApiClient}
|