purecloud-platform-client-v2 246.0.0 → 247.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +3 -3
- package/dist/node/purecloud-platform-client-v2.js +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 +115 -22
- package/package.json +1 -1
- 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
package/dist/web-cjs/bundle.js
CHANGED
|
@@ -35,7 +35,7 @@ var toString$1=Object.prototype.toString;var getPrototypeOf=Object.getPrototypeO
|
|
|
35
35
|
* @param {*} val The value to test
|
|
36
36
|
*
|
|
37
37
|
* @returns {boolean} True if the value is undefined, otherwise false
|
|
38
|
-
*/var isUndefined=typeOfTest(
|
|
38
|
+
*/var isUndefined=typeOfTest('undefined');/**
|
|
39
39
|
* Determine if a value is a Buffer
|
|
40
40
|
*
|
|
41
41
|
* @param {*} val The value to test
|
|
@@ -47,36 +47,36 @@ var toString$1=Object.prototype.toString;var getPrototypeOf=Object.getPrototypeO
|
|
|
47
47
|
* @param {*} val The value to test
|
|
48
48
|
*
|
|
49
49
|
* @returns {boolean} True if value is an ArrayBuffer, otherwise false
|
|
50
|
-
*/var isArrayBuffer=kindOfTest(
|
|
50
|
+
*/var isArrayBuffer=kindOfTest('ArrayBuffer');/**
|
|
51
51
|
* Determine if a value is a view on an ArrayBuffer
|
|
52
52
|
*
|
|
53
53
|
* @param {*} val The value to test
|
|
54
54
|
*
|
|
55
55
|
* @returns {boolean} True if value is a view on an ArrayBuffer, otherwise false
|
|
56
|
-
*/function isArrayBufferView(val){var result;if(typeof ArrayBuffer!==
|
|
56
|
+
*/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;}/**
|
|
57
57
|
* Determine if a value is a String
|
|
58
58
|
*
|
|
59
59
|
* @param {*} val The value to test
|
|
60
60
|
*
|
|
61
61
|
* @returns {boolean} True if value is a String, otherwise false
|
|
62
|
-
*/var isString=typeOfTest(
|
|
62
|
+
*/var isString=typeOfTest('string');/**
|
|
63
63
|
* Determine if a value is a Function
|
|
64
64
|
*
|
|
65
65
|
* @param {*} val The value to test
|
|
66
66
|
* @returns {boolean} True if value is a Function, otherwise false
|
|
67
|
-
*/var isFunction$1=typeOfTest(
|
|
67
|
+
*/var isFunction$1=typeOfTest('function');/**
|
|
68
68
|
* Determine if a value is a Number
|
|
69
69
|
*
|
|
70
70
|
* @param {*} val The value to test
|
|
71
71
|
*
|
|
72
72
|
* @returns {boolean} True if value is a Number, otherwise false
|
|
73
|
-
*/var isNumber=typeOfTest(
|
|
73
|
+
*/var isNumber=typeOfTest('number');/**
|
|
74
74
|
* Determine if a value is an Object
|
|
75
75
|
*
|
|
76
76
|
* @param {*} thing The value to test
|
|
77
77
|
*
|
|
78
78
|
* @returns {boolean} True if value is an Object, otherwise false
|
|
79
|
-
*/var isObject=function isObject(thing){return thing!==null&&_typeof(thing)===
|
|
79
|
+
*/var isObject=function isObject(thing){return thing!==null&&_typeof(thing)==='object';};/**
|
|
80
80
|
* Determine if a value is a Boolean
|
|
81
81
|
*
|
|
82
82
|
* @param {*} thing The value to test
|
|
@@ -87,7 +87,7 @@ var toString$1=Object.prototype.toString;var getPrototypeOf=Object.getPrototypeO
|
|
|
87
87
|
* @param {*} val The value to test
|
|
88
88
|
*
|
|
89
89
|
* @returns {boolean} True if value is a plain Object, otherwise false
|
|
90
|
-
*/var isPlainObject=function isPlainObject(val){if(kindOf(val)!==
|
|
90
|
+
*/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);};/**
|
|
91
91
|
* Determine if a value is an empty object (safely handles Buffers)
|
|
92
92
|
*
|
|
93
93
|
* @param {*} val The value to test
|
|
@@ -101,25 +101,42 @@ return false;}};/**
|
|
|
101
101
|
* @param {*} val The value to test
|
|
102
102
|
*
|
|
103
103
|
* @returns {boolean} True if value is a Date, otherwise false
|
|
104
|
-
*/var isDate=kindOfTest(
|
|
104
|
+
*/var isDate=kindOfTest('Date');/**
|
|
105
105
|
* Determine if a value is a File
|
|
106
106
|
*
|
|
107
107
|
* @param {*} val The value to test
|
|
108
108
|
*
|
|
109
109
|
* @returns {boolean} True if value is a File, otherwise false
|
|
110
|
-
*/var isFile=kindOfTest(
|
|
110
|
+
*/var isFile=kindOfTest('File');/**
|
|
111
|
+
* Determine if a value is a React Native Blob
|
|
112
|
+
* React Native "blob": an object with a `uri` attribute. Optionally, it can
|
|
113
|
+
* also have a `name` and `type` attribute to specify filename and content type
|
|
114
|
+
*
|
|
115
|
+
* @see https://github.com/facebook/react-native/blob/26684cf3adf4094eb6c405d345a75bf8c7c0bf88/Libraries/Network/FormData.js#L68-L71
|
|
116
|
+
*
|
|
117
|
+
* @param {*} value The value to test
|
|
118
|
+
*
|
|
119
|
+
* @returns {boolean} True if value is a React Native Blob, otherwise false
|
|
120
|
+
*/var isReactNativeBlob=function isReactNativeBlob(value){return!!(value&&typeof value.uri!=='undefined');};/**
|
|
121
|
+
* Determine if environment is React Native
|
|
122
|
+
* ReactNative `FormData` has a non-standard `getParts()` method
|
|
123
|
+
*
|
|
124
|
+
* @param {*} formData The formData to test
|
|
125
|
+
*
|
|
126
|
+
* @returns {boolean} True if environment is React Native, otherwise false
|
|
127
|
+
*/var isReactNative=function isReactNative(formData){return formData&&typeof formData.getParts!=='undefined';};/**
|
|
111
128
|
* Determine if a value is a Blob
|
|
112
129
|
*
|
|
113
130
|
* @param {*} val The value to test
|
|
114
131
|
*
|
|
115
132
|
* @returns {boolean} True if value is a Blob, otherwise false
|
|
116
|
-
*/var isBlob=kindOfTest(
|
|
133
|
+
*/var isBlob=kindOfTest('Blob');/**
|
|
117
134
|
* Determine if a value is a FileList
|
|
118
135
|
*
|
|
119
136
|
* @param {*} val The value to test
|
|
120
137
|
*
|
|
121
138
|
* @returns {boolean} True if value is a File, otherwise false
|
|
122
|
-
*/var isFileList=kindOfTest(
|
|
139
|
+
*/var isFileList=kindOfTest('FileList');/**
|
|
123
140
|
* Determine if a value is a Stream
|
|
124
141
|
*
|
|
125
142
|
* @param {*} val The value to test
|
|
@@ -131,20 +148,20 @@ return false;}};/**
|
|
|
131
148
|
* @param {*} thing The value to test
|
|
132
149
|
*
|
|
133
150
|
* @returns {boolean} True if value is an FormData, otherwise false
|
|
134
|
-
*/var isFormData=function isFormData(thing){var kind;return thing&&(
|
|
135
|
-
kind===
|
|
151
|
+
*/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
|
|
152
|
+
kind==='object'&&isFunction$1(thing.toString)&&thing.toString()==='[object FormData]'));};/**
|
|
136
153
|
* Determine if a value is a URLSearchParams object
|
|
137
154
|
*
|
|
138
155
|
* @param {*} val The value to test
|
|
139
156
|
*
|
|
140
157
|
* @returns {boolean} True if value is a URLSearchParams object, otherwise false
|
|
141
|
-
*/var isURLSearchParams=kindOfTest(
|
|
158
|
+
*/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];/**
|
|
142
159
|
* Trim excess whitespace off the beginning and end of a string
|
|
143
160
|
*
|
|
144
161
|
* @param {String} str The String to trim
|
|
145
162
|
*
|
|
146
163
|
* @returns {String} The String freed of excess whitespace
|
|
147
|
-
*/var trim=function trim(str){return str.trim?str.trim():str.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,
|
|
164
|
+
*/var trim=function trim(str){return str.trim?str.trim():str.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,'');};/**
|
|
148
165
|
* Iterate over an Array or an Object invoking a function for each item.
|
|
149
166
|
*
|
|
150
167
|
* If `obj` is an Array callback will be called passing
|
|
@@ -160,11 +177,18 @@ kind==="object"&&isFunction$1(thing.toString)&&thing.toString()==="[object FormD
|
|
|
160
177
|
* @param {Boolean} [options.allOwnKeys = false]
|
|
161
178
|
* @returns {any}
|
|
162
179
|
*/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
|
|
163
|
-
if(obj===null||typeof obj===
|
|
164
|
-
if(_typeof(obj)!==
|
|
180
|
+
if(obj===null||typeof obj==='undefined'){return;}var i;var l;// Force an array if not already something iterable
|
|
181
|
+
if(_typeof(obj)!=='object'){/*eslint no-param-reassign:0*/obj=[obj];}if(isArray$1(obj)){// Iterate over array values
|
|
165
182
|
for(i=0,l=obj.length;i<l;i++){fn.call(null,obj[i],i,obj);}}else{// Buffer check
|
|
166
183
|
if(isBuffer$1(obj)){return;}// Iterate over object keys
|
|
167
|
-
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);}}}
|
|
184
|
+
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);}}}/**
|
|
185
|
+
* Finds a key in an object, case-insensitive, returning the actual key name.
|
|
186
|
+
* Returns null if the object is a Buffer or if no match is found.
|
|
187
|
+
*
|
|
188
|
+
* @param {Object} obj - The object to search.
|
|
189
|
+
* @param {string} key - The key to find (case-insensitive).
|
|
190
|
+
* @returns {?string} The actual key name if found, otherwise null.
|
|
191
|
+
*/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;};/**
|
|
168
192
|
* Accepts varargs expecting each argument to be an object, then
|
|
169
193
|
* immutably merges the properties of each object and returns result.
|
|
170
194
|
*
|
|
@@ -182,7 +206,7 @@ var keys=allOwnKeys?Object.getOwnPropertyNames(obj):Object.keys(obj);var len=key
|
|
|
182
206
|
*
|
|
183
207
|
* @returns {Object} Result of all merge properties
|
|
184
208
|
*/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
|
|
185
|
-
if(key===
|
|
209
|
+
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;}/**
|
|
186
210
|
* Extends object a by mutably adding to it the properties of object b.
|
|
187
211
|
*
|
|
188
212
|
* @param {Object} a The object to be extended
|
|
@@ -206,7 +230,7 @@ if(key==="__proto__"||key==="constructor"||key==="prototype"){return;}var target
|
|
|
206
230
|
* @param {object} [descriptors]
|
|
207
231
|
*
|
|
208
232
|
* @returns {void}
|
|
209
|
-
*/var inherits=function inherits(constructor,superConstructor,props,descriptors){constructor.prototype=Object.create(superConstructor.prototype,descriptors);Object.defineProperty(constructor.prototype,
|
|
233
|
+
*/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);};/**
|
|
210
234
|
* Resolve object with deep prototype chain to a flat object
|
|
211
235
|
* @param {Object} sourceObj source object
|
|
212
236
|
* @param {Object} [destObj]
|
|
@@ -238,7 +262,7 @@ if(sourceObj==null)return destObj;do{props=Object.getOwnPropertyNames(sourceObj)
|
|
|
238
262
|
* @returns {Array}
|
|
239
263
|
*/// eslint-disable-next-line func-names
|
|
240
264
|
var isTypedArray=function(TypedArray){// eslint-disable-next-line func-names
|
|
241
|
-
return function(thing){return TypedArray&&thing instanceof TypedArray;};}(typeof Uint8Array!==
|
|
265
|
+
return function(thing){return TypedArray&&thing instanceof TypedArray;};}(typeof Uint8Array!=='undefined'&&getPrototypeOf(Uint8Array));/**
|
|
242
266
|
* For each entry in the object, call the function with the key and value.
|
|
243
267
|
*
|
|
244
268
|
* @param {Object<any, any>} obj - The object to iterate over.
|
|
@@ -252,27 +276,61 @@ return function(thing){return TypedArray&&thing instanceof TypedArray;};}(typeof
|
|
|
252
276
|
* @param {string} str - The string to search.
|
|
253
277
|
*
|
|
254
278
|
* @returns {Array<boolean>}
|
|
255
|
-
*/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(
|
|
279
|
+
*/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);/**
|
|
256
280
|
* Determine if a value is a RegExp object
|
|
257
281
|
*
|
|
258
282
|
* @param {*} val The value to test
|
|
259
283
|
*
|
|
260
284
|
* @returns {boolean} True if value is a RegExp object, otherwise false
|
|
261
|
-
*/var isRegExp=kindOfTest(
|
|
285
|
+
*/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);};/**
|
|
262
286
|
* Makes all methods read-only
|
|
263
287
|
* @param {Object} obj
|
|
264
288
|
*/var freezeMethods=function freezeMethods(obj){reduceDescriptors(obj,function(descriptor,name){// skip restricted props in strict mode
|
|
265
|
-
if(isFunction$1(obj)&&[
|
|
289
|
+
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+"'");};}});};/**
|
|
290
|
+
* Converts an array or a delimited string into an object set with values as keys and true as values.
|
|
291
|
+
* Useful for fast membership checks.
|
|
292
|
+
*
|
|
293
|
+
* @param {Array|string} arrayOrString - The array or string to convert.
|
|
294
|
+
* @param {string} delimiter - The delimiter to use if input is a string.
|
|
295
|
+
* @returns {Object} An object with keys from the array or string, values set to true.
|
|
296
|
+
*/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;};/**
|
|
266
297
|
* If the thing is a FormData object, return true, otherwise return false.
|
|
267
298
|
*
|
|
268
299
|
* @param {unknown} thing - The thing to check.
|
|
269
300
|
*
|
|
270
301
|
* @returns {boolean}
|
|
271
|
-
*/function isSpecCompliantForm(thing){return!!(thing&&isFunction$1(thing.append)&&thing[toStringTag]===
|
|
272
|
-
|
|
302
|
+
*/function isSpecCompliantForm(thing){return!!(thing&&isFunction$1(thing.append)&&thing[toStringTag]==='FormData'&&thing[iterator]);}/**
|
|
303
|
+
* Recursively converts an object to a JSON-compatible object, handling circular references and Buffers.
|
|
304
|
+
*
|
|
305
|
+
* @param {Object} obj - The object to convert.
|
|
306
|
+
* @returns {Object} The JSON-compatible object.
|
|
307
|
+
*/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
|
|
308
|
+
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);};/**
|
|
309
|
+
* Determines if a value is an async function.
|
|
310
|
+
*
|
|
311
|
+
* @param {*} thing - The value to test.
|
|
312
|
+
* @returns {boolean} True if value is an async function, otherwise false.
|
|
313
|
+
*/var isAsyncFn=kindOfTest('AsyncFunction');/**
|
|
314
|
+
* Determines if a value is thenable (has then and catch methods).
|
|
315
|
+
*
|
|
316
|
+
* @param {*} thing - The value to test.
|
|
317
|
+
* @returns {boolean} True if value is thenable, otherwise false.
|
|
318
|
+
*/var isThenable=function isThenable(thing){return thing&&(isObject(thing)||isFunction$1(thing))&&isFunction$1(thing.then)&&isFunction$1(thing["catch"]);};// original code
|
|
273
319
|
// https://github.com/DigitalBrainJS/AxiosPromise/blob/16deab13710ec09779922131f3fa5954320f83ab/lib/utils.js#L11-L34
|
|
274
|
-
|
|
275
|
-
|
|
320
|
+
/**
|
|
321
|
+
* Provides a cross-platform setImmediate implementation.
|
|
322
|
+
* Uses native setImmediate if available, otherwise falls back to postMessage or setTimeout.
|
|
323
|
+
*
|
|
324
|
+
* @param {boolean} setImmediateSupported - Whether setImmediate is supported.
|
|
325
|
+
* @param {boolean} postMessageSupported - Whether postMessage is supported.
|
|
326
|
+
* @returns {Function} A function to schedule a callback asynchronously.
|
|
327
|
+
*/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));/**
|
|
328
|
+
* Schedules a microtask or asynchronous callback as soon as possible.
|
|
329
|
+
* Uses queueMicrotask if available, otherwise falls back to process.nextTick or _setImmediate.
|
|
330
|
+
*
|
|
331
|
+
* @type {Function}
|
|
332
|
+
*/var asap=typeof queueMicrotask!=='undefined'?queueMicrotask.bind(_global):typeof process!=='undefined'&&nextTick||_setImmediate;// *********************
|
|
333
|
+
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
|
|
276
334
|
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)
|
|
277
335
|
// if there are two placeholders, than the two characters before it
|
|
278
336
|
// represent one byte
|
|
@@ -437,11 +495,15 @@ function isSlowBuffer(obj){return typeof obj.readFloatLE==='function'&&typeof ob
|
|
|
437
495
|
* @param {Object} [response] The response.
|
|
438
496
|
*
|
|
439
497
|
* @returns {Error} The created error.
|
|
440
|
-
*/function AxiosError(message,code,config,request,response){var _this;_classCallCheck(this,AxiosError);_this=_callSuper(this,AxiosError,[message])
|
|
498
|
+
*/function AxiosError(message,code,config,request,response){var _this;_classCallCheck(this,AxiosError);_this=_callSuper(this,AxiosError,[message]);// Make message enumerable to maintain backward compatibility
|
|
499
|
+
// The native Error constructor sets message as non-enumerable,
|
|
500
|
+
// but axios < v1.13.3 had it as enumerable
|
|
501
|
+
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
|
|
441
502
|
message:this.message,name:this.name,// Microsoft
|
|
442
503
|
description:this.description,number:this.number,// Mozilla
|
|
443
504
|
fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,// Axios
|
|
444
|
-
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
|
|
505
|
+
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
|
|
506
|
+
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.
|
|
445
507
|
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
|
|
446
508
|
var httpAdapter=null;/**
|
|
447
509
|
* Determines if the given thing is a array or js object.
|
|
@@ -503,7 +565,7 @@ var visitor=options.visitor||defaultVisitor;var dots=options.dots;var indexes=op
|
|
|
503
565
|
* @this {FormData}
|
|
504
566
|
*
|
|
505
567
|
* @returns {boolean} return true to visit the each prop of the value recursively
|
|
506
|
-
*/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
|
|
568
|
+
*/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
|
|
507
569
|
key=metaTokens?key:key.slice(0,-2);// eslint-disable-next-line no-param-reassign
|
|
508
570
|
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
|
|
509
571
|
key=removeBrackets(key);arr.forEach(function each(el,index){!(utils$1.isUndefined(el)||el===null)&&formData.append(// eslint-disable-next-line no-nested-ternary
|
|
@@ -536,7 +598,7 @@ indexes===true?renderKey([key],index,dots):indexes===null?key:key+'[]',convertVa
|
|
|
536
598
|
* @param {?(object|Function)} options
|
|
537
599
|
*
|
|
538
600
|
* @returns {string} The formatted url
|
|
539
|
-
*/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(
|
|
601
|
+
*/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=[];}/**
|
|
540
602
|
* Add a new interceptor to the stack
|
|
541
603
|
*
|
|
542
604
|
* @param {Function} fulfilled The function to handle `then` for a `Promise`
|
|
@@ -622,7 +684,7 @@ return utils$1.matchAll(/\w+|\[(\w*)]/g,name).map(function(match){return match[0
|
|
|
622
684
|
*/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;}],/**
|
|
623
685
|
* A timeout in milliseconds to abort a request. If set to 0 (default) a
|
|
624
686
|
* timeout is not created.
|
|
625
|
-
*/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:{
|
|
687
|
+
*/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
|
|
626
688
|
// c.f. https://nodejs.org/api/http.html#http_message_headers
|
|
627
689
|
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']);/**
|
|
628
690
|
* Parse headers into an object
|
|
@@ -637,7 +699,7 @@ var ignoreDuplicateOf=utils$1.toObjectSet(['age','authorization','content-length
|
|
|
637
699
|
* @param {String} rawHeaders Headers needing to be parsed
|
|
638
700
|
*
|
|
639
701
|
* @returns {Object} Headers parsed into an object
|
|
640
|
-
*/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(
|
|
702
|
+
*/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
|
|
641
703
|
utils$1.reduceDescriptors(AxiosHeaders.prototype,function(_ref0,key){var value=_ref0.value;var mapped=key[0].toUpperCase()+key.slice(1);// map `set` => `Set`
|
|
642
704
|
return{get:function get(){return value;},set:function set(headerValue){this[mapped]=headerValue;}};});utils$1.freezeMethods(AxiosHeaders);var AxiosHeaders$1=AxiosHeaders;/**
|
|
643
705
|
* Transform the data for a request or a response
|
|
@@ -711,7 +773,7 @@ if(typeof url!=='string'){return false;}return /^([a-z][a-z\d+\-.]*:)?\/\//i.tes
|
|
|
711
773
|
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
|
|
712
774
|
function valueFromConfig2(a,b){if(!utils$1.isUndefined(b)){return getMergedValue(undefined,b);}}// eslint-disable-next-line consistent-return
|
|
713
775
|
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
|
|
714
|
-
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===
|
|
776
|
+
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
|
|
715
777
|
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
|
|
716
778
|
}else if(utils$1.isFunction(data.getHeaders)){// Node.js FormData (like form-data package)
|
|
717
779
|
var formHeaders=data.getHeaders();// Only set safe headers to avoid overwriting security headers
|
|
@@ -750,33 +812,33 @@ if(onDownloadProgress){var _progressEventReducer=progressEventReducer(onDownload
|
|
|
750
812
|
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
|
|
751
813
|
// eslint-disable-next-line func-names
|
|
752
814
|
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
|
|
753
|
-
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
|
|
815
|
+
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
|
|
754
816
|
// see https://github.com/cloudflare/workerd/issues/902
|
|
755
|
-
isCredentialsSupported=isRequestSupported&&
|
|
817
|
+
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();/**
|
|
756
818
|
* Known adapters mapping.
|
|
757
819
|
* Provides environment-specific adapters for Axios:
|
|
758
820
|
* - `http` for Node.js
|
|
759
821
|
* - `xhr` for browsers
|
|
760
822
|
* - `fetch` for fetch API-based requests
|
|
761
|
-
*
|
|
823
|
+
*
|
|
762
824
|
* @type {Object<string, Function|Object>}
|
|
763
825
|
*/var knownAdapters={http:httpAdapter,xhr:xhrAdapter,fetch:{get:getFetch}};// Assign adapter names for easier debugging and identification
|
|
764
826
|
utils$1.forEach(knownAdapters,function(fn,value){if(fn){try{Object.defineProperty(fn,'name',{value:value});}catch(e){// eslint-disable-next-line no-empty
|
|
765
827
|
}Object.defineProperty(fn,'adapterName',{value:value});}});/**
|
|
766
828
|
* Render a rejection reason string for unknown or unsupported adapters
|
|
767
|
-
*
|
|
829
|
+
*
|
|
768
830
|
* @param {string} reason
|
|
769
831
|
* @returns {string}
|
|
770
832
|
*/var renderReason=function renderReason(reason){return"- ".concat(reason);};/**
|
|
771
833
|
* Check if the adapter is resolved (function, null, or false)
|
|
772
|
-
*
|
|
834
|
+
*
|
|
773
835
|
* @param {Function|null|false} adapter
|
|
774
836
|
* @returns {boolean}
|
|
775
837
|
*/var isResolvedHandle=function isResolvedHandle(adapter){return utils$1.isFunction(adapter)||adapter===null||adapter===false;};/**
|
|
776
838
|
* Get the first suitable adapter from the provided list.
|
|
777
839
|
* Tries each adapter in order until a supported one is found.
|
|
778
840
|
* Throws an AxiosError if no adapter is suitable.
|
|
779
|
-
*
|
|
841
|
+
*
|
|
780
842
|
* @param {Array<string|Function>|string|Function} adapters - Adapter(s) by name or function.
|
|
781
843
|
* @param {Object} config - Axios request configuration
|
|
782
844
|
* @throws {AxiosError} If no suitable adapter is available
|
|
@@ -804,7 +866,7 @@ utils$1.forEach(knownAdapters,function(fn,value){if(fn){try{Object.definePropert
|
|
|
804
866
|
*/function dispatchRequest(config){throwIfCancellationRequested(config);config.headers=AxiosHeaders$1.from(config.headers);// Transform request data
|
|
805
867
|
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
|
|
806
868
|
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
|
|
807
|
-
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.
|
|
869
|
+
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
|
|
808
870
|
['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={};/**
|
|
809
871
|
* Transitional option validator
|
|
810
872
|
*
|
|
@@ -813,7 +875,7 @@ if(reason&&reason.response){reason.response.data=transformData.call(config,confi
|
|
|
813
875
|
* @param {string?} message - some message with additional info
|
|
814
876
|
*
|
|
815
877
|
* @returns {function}
|
|
816
|
-
*/validators$1.transitional=function transitional(validator,version,message){function formatMessage(opt,desc){return'[Axios v'+VERSION+
|
|
878
|
+
*/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
|
|
817
879
|
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
|
|
818
880
|
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
|
|
819
881
|
console.warn("".concat(opt," is likely a misspelling of ").concat(correctSpelling));return true;};};/**
|
|
@@ -952,7 +1014,7 @@ if(env)this.environment=env;else this.environment=this.host?this.host:'mypureclo
|
|
|
952
1014
|
this.environment=this.environment.replace(/\/+$/,'');// Strip protocol and subdomain
|
|
953
1015
|
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];}}}]);}();/**
|
|
954
1016
|
* @module purecloud-platform-client-v2/ApiClient
|
|
955
|
-
* @version
|
|
1017
|
+
* @version 247.0.0
|
|
956
1018
|
*/var ApiClient=/*#__PURE__*/function(){/**
|
|
957
1019
|
* Manages low level client-server communications, parameter marshalling, etc. There should not be any need for an
|
|
958
1020
|
* application to use this class directly - the *Api and model classes provide the public API for the service. The
|
|
@@ -1318,7 +1380,7 @@ resolve(data);})["catch"](function(error){var data=error;if(error.response&&erro
|
|
|
1318
1380
|
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(){/**
|
|
1319
1381
|
* AIStudio service.
|
|
1320
1382
|
* @module purecloud-platform-client-v2/api/AIStudioApi
|
|
1321
|
-
* @version
|
|
1383
|
+
* @version 247.0.0
|
|
1322
1384
|
*//**
|
|
1323
1385
|
* Constructs a new AIStudioApi.
|
|
1324
1386
|
* @alias module:purecloud-platform-client-v2/api/AIStudioApi
|
|
@@ -1470,7 +1532,7 @@ if(summarySettingId===undefined||summarySettingId===null||summarySettingId==='')
|
|
|
1470
1532
|
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(){/**
|
|
1471
1533
|
* AgentAssistants service.
|
|
1472
1534
|
* @module purecloud-platform-client-v2/api/AgentAssistantsApi
|
|
1473
|
-
* @version
|
|
1535
|
+
* @version 247.0.0
|
|
1474
1536
|
*//**
|
|
1475
1537
|
* Constructs a new AgentAssistantsApi.
|
|
1476
1538
|
* @alias module:purecloud-platform-client-v2/api/AgentAssistantsApi
|
|
@@ -1657,7 +1719,7 @@ if(agentChecklistId===undefined||agentChecklistId===null||agentChecklistId==='')
|
|
|
1657
1719
|
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(){/**
|
|
1658
1720
|
* AgentCopilot service.
|
|
1659
1721
|
* @module purecloud-platform-client-v2/api/AgentCopilotApi
|
|
1660
|
-
* @version
|
|
1722
|
+
* @version 247.0.0
|
|
1661
1723
|
*//**
|
|
1662
1724
|
* Constructs a new AgentCopilotApi.
|
|
1663
1725
|
* @alias module:purecloud-platform-client-v2/api/AgentCopilotApi
|
|
@@ -1684,7 +1746,7 @@ if(assistantId===undefined||assistantId===null||assistantId===''){throw'Missing
|
|
|
1684
1746
|
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(){/**
|
|
1685
1747
|
* AgentUI service.
|
|
1686
1748
|
* @module purecloud-platform-client-v2/api/AgentUIApi
|
|
1687
|
-
* @version
|
|
1749
|
+
* @version 247.0.0
|
|
1688
1750
|
*//**
|
|
1689
1751
|
* Constructs a new AgentUIApi.
|
|
1690
1752
|
* @alias module:purecloud-platform-client-v2/api/AgentUIApi
|
|
@@ -1718,7 +1780,7 @@ if(agentId===undefined||agentId===null||agentId===''){throw'Missing the required
|
|
|
1718
1780
|
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(){/**
|
|
1719
1781
|
* Alerting service.
|
|
1720
1782
|
* @module purecloud-platform-client-v2/api/AlertingApi
|
|
1721
|
-
* @version
|
|
1783
|
+
* @version 247.0.0
|
|
1722
1784
|
*//**
|
|
1723
1785
|
* Constructs a new AlertingApi.
|
|
1724
1786
|
* @alias module:purecloud-platform-client-v2/api/AlertingApi
|
|
@@ -1807,7 +1869,7 @@ if(ruleId===undefined||ruleId===null||ruleId===''){throw'Missing the required pa
|
|
|
1807
1869
|
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(){/**
|
|
1808
1870
|
* Analytics service.
|
|
1809
1871
|
* @module purecloud-platform-client-v2/api/AnalyticsApi
|
|
1810
|
-
* @version
|
|
1872
|
+
* @version 247.0.0
|
|
1811
1873
|
*//**
|
|
1812
1874
|
* Constructs a new AnalyticsApi.
|
|
1813
1875
|
* @alias module:purecloud-platform-client-v2/api/AnalyticsApi
|
|
@@ -2626,7 +2688,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
2626
2688
|
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(){/**
|
|
2627
2689
|
* Architect service.
|
|
2628
2690
|
* @module purecloud-platform-client-v2/api/ArchitectApi
|
|
2629
|
-
* @version
|
|
2691
|
+
* @version 247.0.0
|
|
2630
2692
|
*//**
|
|
2631
2693
|
* Constructs a new ArchitectApi.
|
|
2632
2694
|
* @alias module:purecloud-platform-client-v2/api/ArchitectApi
|
|
@@ -3760,7 +3822,7 @@ if(milestoneId===undefined||milestoneId===null||milestoneId===''){throw'Missing
|
|
|
3760
3822
|
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(){/**
|
|
3761
3823
|
* AssistantCopilotVariations service.
|
|
3762
3824
|
* @module purecloud-platform-client-v2/api/AssistantCopilotVariationsApi
|
|
3763
|
-
* @version
|
|
3825
|
+
* @version 247.0.0
|
|
3764
3826
|
*//**
|
|
3765
3827
|
* Constructs a new AssistantCopilotVariationsApi.
|
|
3766
3828
|
* @alias module:purecloud-platform-client-v2/api/AssistantCopilotVariationsApi
|
|
@@ -3805,7 +3867,7 @@ if(variationId===undefined||variationId===null||variationId===''){throw'Missing
|
|
|
3805
3867
|
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(){/**
|
|
3806
3868
|
* Audit service.
|
|
3807
3869
|
* @module purecloud-platform-client-v2/api/AuditApi
|
|
3808
|
-
* @version
|
|
3870
|
+
* @version 247.0.0
|
|
3809
3871
|
*//**
|
|
3810
3872
|
* Constructs a new AuditApi.
|
|
3811
3873
|
* @alias module:purecloud-platform-client-v2/api/AuditApi
|
|
@@ -3855,7 +3917,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
3855
3917
|
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(){/**
|
|
3856
3918
|
* Authorization service.
|
|
3857
3919
|
* @module purecloud-platform-client-v2/api/AuthorizationApi
|
|
3858
|
-
* @version
|
|
3920
|
+
* @version 247.0.0
|
|
3859
3921
|
*//**
|
|
3860
3922
|
* Constructs a new AuthorizationApi.
|
|
3861
3923
|
* @alias module:purecloud-platform-client-v2/api/AuthorizationApi
|
|
@@ -4283,7 +4345,7 @@ if(subjectId===undefined||subjectId===null||subjectId===''){throw'Missing the re
|
|
|
4283
4345
|
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(){/**
|
|
4284
4346
|
* BackgroundAssistant service.
|
|
4285
4347
|
* @module purecloud-platform-client-v2/api/BackgroundAssistantApi
|
|
4286
|
-
* @version
|
|
4348
|
+
* @version 247.0.0
|
|
4287
4349
|
*//**
|
|
4288
4350
|
* Constructs a new BackgroundAssistantApi.
|
|
4289
4351
|
* @alias module:purecloud-platform-client-v2/api/BackgroundAssistantApi
|
|
@@ -4304,7 +4366,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
4304
4366
|
*/},{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(){/**
|
|
4305
4367
|
* Billing service.
|
|
4306
4368
|
* @module purecloud-platform-client-v2/api/BillingApi
|
|
4307
|
-
* @version
|
|
4369
|
+
* @version 247.0.0
|
|
4308
4370
|
*//**
|
|
4309
4371
|
* Constructs a new BillingApi.
|
|
4310
4372
|
* @alias module:purecloud-platform-client-v2/api/BillingApi
|
|
@@ -4381,7 +4443,7 @@ if(endDate===undefined||endDate===null){throw'Missing the required parameter "en
|
|
|
4381
4443
|
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(){/**
|
|
4382
4444
|
* BusinessRules service.
|
|
4383
4445
|
* @module purecloud-platform-client-v2/api/BusinessRulesApi
|
|
4384
|
-
* @version
|
|
4446
|
+
* @version 247.0.0
|
|
4385
4447
|
*//**
|
|
4386
4448
|
* Constructs a new BusinessRulesApi.
|
|
4387
4449
|
* @alias module:purecloud-platform-client-v2/api/BusinessRulesApi
|
|
@@ -4602,7 +4664,7 @@ if(schemaId===undefined||schemaId===null||schemaId===''){throw'Missing the requi
|
|
|
4602
4664
|
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(){/**
|
|
4603
4665
|
* CarrierServices service.
|
|
4604
4666
|
* @module purecloud-platform-client-v2/api/CarrierServicesApi
|
|
4605
|
-
* @version
|
|
4667
|
+
* @version 247.0.0
|
|
4606
4668
|
*//**
|
|
4607
4669
|
* Constructs a new CarrierServicesApi.
|
|
4608
4670
|
* @alias module:purecloud-platform-client-v2/api/CarrierServicesApi
|
|
@@ -4622,7 +4684,7 @@ if(phoneNumber===undefined||phoneNumber===null){throw'Missing the required param
|
|
|
4622
4684
|
*/},{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(){/**
|
|
4623
4685
|
* Chat service.
|
|
4624
4686
|
* @module purecloud-platform-client-v2/api/ChatApi
|
|
4625
|
-
* @version
|
|
4687
|
+
* @version 247.0.0
|
|
4626
4688
|
*//**
|
|
4627
4689
|
* Constructs a new ChatApi.
|
|
4628
4690
|
* @alias module:purecloud-platform-client-v2/api/ChatApi
|
|
@@ -4853,7 +4915,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
4853
4915
|
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(){/**
|
|
4854
4916
|
* Coaching service.
|
|
4855
4917
|
* @module purecloud-platform-client-v2/api/CoachingApi
|
|
4856
|
-
* @version
|
|
4918
|
+
* @version 247.0.0
|
|
4857
4919
|
*//**
|
|
4858
4920
|
* Constructs a new CoachingApi.
|
|
4859
4921
|
* @alias module:purecloud-platform-client-v2/api/CoachingApi
|
|
@@ -5016,7 +5078,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
5016
5078
|
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(){/**
|
|
5017
5079
|
* ContentManagement service.
|
|
5018
5080
|
* @module purecloud-platform-client-v2/api/ContentManagementApi
|
|
5019
|
-
* @version
|
|
5081
|
+
* @version 247.0.0
|
|
5020
5082
|
*//**
|
|
5021
5083
|
* Constructs a new ContentManagementApi.
|
|
5022
5084
|
* @alias module:purecloud-platform-client-v2/api/ContentManagementApi
|
|
@@ -5298,7 +5360,7 @@ if(tagId===undefined||tagId===null||tagId===''){throw'Missing the required param
|
|
|
5298
5360
|
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(){/**
|
|
5299
5361
|
* Conversations service.
|
|
5300
5362
|
* @module purecloud-platform-client-v2/api/ConversationsApi
|
|
5301
|
-
* @version
|
|
5363
|
+
* @version 247.0.0
|
|
5302
5364
|
*//**
|
|
5303
5365
|
* Constructs a new ConversationsApi.
|
|
5304
5366
|
* @alias module:purecloud-platform-client-v2/api/ConversationsApi
|
|
@@ -7633,7 +7695,7 @@ if(conversationId===undefined||conversationId===null||conversationId===''){throw
|
|
|
7633
7695
|
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(){/**
|
|
7634
7696
|
* DataExtensions service.
|
|
7635
7697
|
* @module purecloud-platform-client-v2/api/DataExtensionsApi
|
|
7636
|
-
* @version
|
|
7698
|
+
* @version 247.0.0
|
|
7637
7699
|
*//**
|
|
7638
7700
|
* Constructs a new DataExtensionsApi.
|
|
7639
7701
|
* @alias module:purecloud-platform-client-v2/api/DataExtensionsApi
|
|
@@ -7654,7 +7716,7 @@ if(coretypeName===undefined||coretypeName===null||coretypeName===''){throw'Missi
|
|
|
7654
7716
|
*/},{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(){/**
|
|
7655
7717
|
* DataPrivacy service.
|
|
7656
7718
|
* @module purecloud-platform-client-v2/api/DataPrivacyApi
|
|
7657
|
-
* @version
|
|
7719
|
+
* @version 247.0.0
|
|
7658
7720
|
*//**
|
|
7659
7721
|
* Constructs a new DataPrivacyApi.
|
|
7660
7722
|
* @alias module:purecloud-platform-client-v2/api/DataPrivacyApi
|
|
@@ -7694,7 +7756,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
7694
7756
|
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(){/**
|
|
7695
7757
|
* Downloads service.
|
|
7696
7758
|
* @module purecloud-platform-client-v2/api/DownloadsApi
|
|
7697
|
-
* @version
|
|
7759
|
+
* @version 247.0.0
|
|
7698
7760
|
*//**
|
|
7699
7761
|
* Constructs a new DownloadsApi.
|
|
7700
7762
|
* @alias module:purecloud-platform-client-v2/api/DownloadsApi
|
|
@@ -7713,7 +7775,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
7713
7775
|
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(){/**
|
|
7714
7776
|
* Emails service.
|
|
7715
7777
|
* @module purecloud-platform-client-v2/api/EmailsApi
|
|
7716
|
-
* @version
|
|
7778
|
+
* @version 247.0.0
|
|
7717
7779
|
*//**
|
|
7718
7780
|
* Constructs a new EmailsApi.
|
|
7719
7781
|
* @alias module:purecloud-platform-client-v2/api/EmailsApi
|
|
@@ -7742,7 +7804,7 @@ if(downloadId===undefined||downloadId===null||downloadId===''){throw'Missing the
|
|
|
7742
7804
|
*/},{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(){/**
|
|
7743
7805
|
* EmployeeEngagement service.
|
|
7744
7806
|
* @module purecloud-platform-client-v2/api/EmployeeEngagementApi
|
|
7745
|
-
* @version
|
|
7807
|
+
* @version 247.0.0
|
|
7746
7808
|
*//**
|
|
7747
7809
|
* Constructs a new EmployeeEngagementApi.
|
|
7748
7810
|
* @alias module:purecloud-platform-client-v2/api/EmployeeEngagementApi
|
|
@@ -7790,7 +7852,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
7790
7852
|
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(){/**
|
|
7791
7853
|
* Events service.
|
|
7792
7854
|
* @module purecloud-platform-client-v2/api/EventsApi
|
|
7793
|
-
* @version
|
|
7855
|
+
* @version 247.0.0
|
|
7794
7856
|
*//**
|
|
7795
7857
|
* Constructs a new EventsApi.
|
|
7796
7858
|
* @alias module:purecloud-platform-client-v2/api/EventsApi
|
|
@@ -7815,7 +7877,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
7815
7877
|
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(){/**
|
|
7816
7878
|
* ExternalContacts service.
|
|
7817
7879
|
* @module purecloud-platform-client-v2/api/ExternalContactsApi
|
|
7818
|
-
* @version
|
|
7880
|
+
* @version 247.0.0
|
|
7819
7881
|
*//**
|
|
7820
7882
|
* Constructs a new ExternalContactsApi.
|
|
7821
7883
|
* @alias module:purecloud-platform-client-v2/api/ExternalContactsApi
|
|
@@ -8565,7 +8627,7 @@ if(relationshipId===undefined||relationshipId===null||relationshipId===''){throw
|
|
|
8565
8627
|
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(){/**
|
|
8566
8628
|
* Fax service.
|
|
8567
8629
|
* @module purecloud-platform-client-v2/api/FaxApi
|
|
8568
|
-
* @version
|
|
8630
|
+
* @version 247.0.0
|
|
8569
8631
|
*//**
|
|
8570
8632
|
* Constructs a new FaxApi.
|
|
8571
8633
|
* @alias module:purecloud-platform-client-v2/api/FaxApi
|
|
@@ -8614,7 +8676,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
8614
8676
|
*/},{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(){/**
|
|
8615
8677
|
* Flows service.
|
|
8616
8678
|
* @module purecloud-platform-client-v2/api/FlowsApi
|
|
8617
|
-
* @version
|
|
8679
|
+
* @version 247.0.0
|
|
8618
8680
|
*//**
|
|
8619
8681
|
* Constructs a new FlowsApi.
|
|
8620
8682
|
* @alias module:purecloud-platform-client-v2/api/FlowsApi
|
|
@@ -8668,7 +8730,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
8668
8730
|
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(){/**
|
|
8669
8731
|
* Gamification service.
|
|
8670
8732
|
* @module purecloud-platform-client-v2/api/GamificationApi
|
|
8671
|
-
* @version
|
|
8733
|
+
* @version 247.0.0
|
|
8672
8734
|
*//**
|
|
8673
8735
|
* Constructs a new GamificationApi.
|
|
8674
8736
|
* @alias module:purecloud-platform-client-v2/api/GamificationApi
|
|
@@ -9339,7 +9401,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
9339
9401
|
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(){/**
|
|
9340
9402
|
* GeneralDataProtectionRegulation service.
|
|
9341
9403
|
* @module purecloud-platform-client-v2/api/GeneralDataProtectionRegulationApi
|
|
9342
|
-
* @version
|
|
9404
|
+
* @version 247.0.0
|
|
9343
9405
|
*//**
|
|
9344
9406
|
* Constructs a new GeneralDataProtectionRegulationApi.
|
|
9345
9407
|
* @alias module:purecloud-platform-client-v2/api/GeneralDataProtectionRegulationApi
|
|
@@ -9374,7 +9436,7 @@ if(searchValue===undefined||searchValue===null){throw'Missing the required param
|
|
|
9374
9436
|
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(){/**
|
|
9375
9437
|
* Geolocation service.
|
|
9376
9438
|
* @module purecloud-platform-client-v2/api/GeolocationApi
|
|
9377
|
-
* @version
|
|
9439
|
+
* @version 247.0.0
|
|
9378
9440
|
*//**
|
|
9379
9441
|
* Constructs a new GeolocationApi.
|
|
9380
9442
|
* @alias module:purecloud-platform-client-v2/api/GeolocationApi
|
|
@@ -9408,7 +9470,7 @@ if(clientId===undefined||clientId===null||clientId===''){throw'Missing the requi
|
|
|
9408
9470
|
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(){/**
|
|
9409
9471
|
* Greetings service.
|
|
9410
9472
|
* @module purecloud-platform-client-v2/api/GreetingsApi
|
|
9411
|
-
* @version
|
|
9473
|
+
* @version 247.0.0
|
|
9412
9474
|
*//**
|
|
9413
9475
|
* Constructs a new GreetingsApi.
|
|
9414
9476
|
* @alias module:purecloud-platform-client-v2/api/GreetingsApi
|
|
@@ -9536,7 +9598,7 @@ if(userId===undefined||userId===null||userId===''){throw'Missing the required pa
|
|
|
9536
9598
|
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(){/**
|
|
9537
9599
|
* Groups service.
|
|
9538
9600
|
* @module purecloud-platform-client-v2/api/GroupsApi
|
|
9539
|
-
* @version
|
|
9601
|
+
* @version 247.0.0
|
|
9540
9602
|
*//**
|
|
9541
9603
|
* Constructs a new GroupsApi.
|
|
9542
9604
|
* @alias module:purecloud-platform-client-v2/api/GroupsApi
|
|
@@ -9669,7 +9731,7 @@ if(groupId===undefined||groupId===null||groupId===''){throw'Missing the required
|
|
|
9669
9731
|
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(){/**
|
|
9670
9732
|
* IdentityProvider service.
|
|
9671
9733
|
* @module purecloud-platform-client-v2/api/IdentityProviderApi
|
|
9672
|
-
* @version
|
|
9734
|
+
* @version 247.0.0
|
|
9673
9735
|
*//**
|
|
9674
9736
|
* Constructs a new IdentityProviderApi.
|
|
9675
9737
|
* @alias module:purecloud-platform-client-v2/api/IdentityProviderApi
|
|
@@ -9825,7 +9887,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
9825
9887
|
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(){/**
|
|
9826
9888
|
* InfrastructureAsCode service.
|
|
9827
9889
|
* @module purecloud-platform-client-v2/api/InfrastructureAsCodeApi
|
|
9828
|
-
* @version
|
|
9890
|
+
* @version 247.0.0
|
|
9829
9891
|
*//**
|
|
9830
9892
|
* Constructs a new InfrastructureAsCodeApi.
|
|
9831
9893
|
* @alias module:purecloud-platform-client-v2/api/InfrastructureAsCodeApi
|
|
@@ -9879,7 +9941,7 @@ if(jobId===undefined||jobId===null||jobId===''){throw'Missing the required param
|
|
|
9879
9941
|
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(){/**
|
|
9880
9942
|
* Integrations service.
|
|
9881
9943
|
* @module purecloud-platform-client-v2/api/IntegrationsApi
|
|
9882
|
-
* @version
|
|
9944
|
+
* @version 247.0.0
|
|
9883
9945
|
*//**
|
|
9884
9946
|
* Constructs a new IntegrationsApi.
|
|
9885
9947
|
* @alias module:purecloud-platform-client-v2/api/IntegrationsApi
|
|
@@ -10571,7 +10633,7 @@ if(ucIntegrationId===undefined||ucIntegrationId===null||ucIntegrationId===''){th
|
|
|
10571
10633
|
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(){/**
|
|
10572
10634
|
* Intents service.
|
|
10573
10635
|
* @module purecloud-platform-client-v2/api/IntentsApi
|
|
10574
|
-
* @version
|
|
10636
|
+
* @version 247.0.0
|
|
10575
10637
|
*//**
|
|
10576
10638
|
* Constructs a new IntentsApi.
|
|
10577
10639
|
* @alias module:purecloud-platform-client-v2/api/IntentsApi
|
|
@@ -10688,7 +10750,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
10688
10750
|
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(){/**
|
|
10689
10751
|
* Journey service.
|
|
10690
10752
|
* @module purecloud-platform-client-v2/api/JourneyApi
|
|
10691
|
-
* @version
|
|
10753
|
+
* @version 247.0.0
|
|
10692
10754
|
*//**
|
|
10693
10755
|
* Constructs a new JourneyApi.
|
|
10694
10756
|
* @alias module:purecloud-platform-client-v2/api/JourneyApi
|
|
@@ -11197,7 +11259,7 @@ if(versionId===undefined||versionId===null||versionId===''){throw'Missing the re
|
|
|
11197
11259
|
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(){/**
|
|
11198
11260
|
* Knowledge service.
|
|
11199
11261
|
* @module purecloud-platform-client-v2/api/KnowledgeApi
|
|
11200
|
-
* @version
|
|
11262
|
+
* @version 247.0.0
|
|
11201
11263
|
*//**
|
|
11202
11264
|
* Constructs a new KnowledgeApi.
|
|
11203
11265
|
* @alias module:purecloud-platform-client-v2/api/KnowledgeApi
|
|
@@ -11275,6 +11337,11 @@ if(sourceId===undefined||sourceId===null||sourceId===''){throw'Missing the requi
|
|
|
11275
11337
|
*/},{key:"deleteKnowledgeKnowledgebaseSynchronizeJob",value:function deleteKnowledgeKnowledgebaseSynchronizeJob(knowledgeBaseId,syncJobId){// verify the required parameter 'knowledgeBaseId' is set
|
|
11276
11338
|
if(knowledgeBaseId===undefined||knowledgeBaseId===null||knowledgeBaseId===''){throw'Missing the required parameter "knowledgeBaseId" when calling deleteKnowledgeKnowledgebaseSynchronizeJob';}// verify the required parameter 'syncJobId' is set
|
|
11277
11339
|
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']);}/**
|
|
11340
|
+
* Delete Knowledge setting.
|
|
11341
|
+
*
|
|
11342
|
+
* @param {String} knowledgeSettingId Knowledge Setting ID.
|
|
11343
|
+
*/},{key:"deleteKnowledgeSetting",value:function deleteKnowledgeSetting(knowledgeSettingId){// verify the required parameter 'knowledgeSettingId' is set
|
|
11344
|
+
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']);}/**
|
|
11278
11345
|
* Get categories
|
|
11279
11346
|
*
|
|
11280
11347
|
* @param {String} sessionId Knowledge guest session ID.
|
|
@@ -11615,6 +11682,22 @@ if(jobId===undefined||jobId===null||jobId===''){throw'Missing the required param
|
|
|
11615
11682
|
* @param {Object} opts.sortBy Sort by.
|
|
11616
11683
|
* @param {Object} opts.sortOrder Sort Order.
|
|
11617
11684
|
*/},{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']);}/**
|
|
11685
|
+
* Get Knowledge setting.
|
|
11686
|
+
*
|
|
11687
|
+
* @param {String} knowledgeSettingId Knowledge Setting ID.
|
|
11688
|
+
*/},{key:"getKnowledgeSetting",value:function getKnowledgeSetting(knowledgeSettingId){// verify the required parameter 'knowledgeSettingId' is set
|
|
11689
|
+
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']);}/**
|
|
11690
|
+
* Get Knowledge settings.
|
|
11691
|
+
*
|
|
11692
|
+
* @param {Object} opts Optional parameters
|
|
11693
|
+
* @param {String} opts.before The cursor that points to the start of the set of entities that has been returned.
|
|
11694
|
+
* @param {String} opts.after The cursor that points to the end of the set of entities that has been returned.
|
|
11695
|
+
* @param {String} opts.pageSize Number of entities to return. Maximum of 200.
|
|
11696
|
+
* @param {String} opts.name Knowledge setting name to search upon.
|
|
11697
|
+
* @param {String} opts.sourceId Source ID to filter knowledge settings by.
|
|
11698
|
+
* @param {Object} opts.sortBy Field to sort the knowledge settings on.
|
|
11699
|
+
* @param {Object} opts.sortOrder Sorting order for knowledge settings.
|
|
11700
|
+
*/},{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']);}/**
|
|
11618
11701
|
* Update search result.
|
|
11619
11702
|
*
|
|
11620
11703
|
* @param {String} sessionId Knowledge guest session ID.
|
|
@@ -11736,6 +11819,13 @@ if(knowledgeBaseId===undefined||knowledgeBaseId===null||knowledgeBaseId===''){th
|
|
|
11736
11819
|
if(groupId===undefined||groupId===null||groupId===''){throw'Missing the required parameter "groupId" when calling patchKnowledgeKnowledgebaseUnansweredGroupPhrasegroup';}// verify the required parameter 'phraseGroupId' is set
|
|
11737
11820
|
if(phraseGroupId===undefined||phraseGroupId===null||phraseGroupId===''){throw'Missing the required parameter "phraseGroupId" when calling patchKnowledgeKnowledgebaseUnansweredGroupPhrasegroup';}// verify the required parameter 'body' is set
|
|
11738
11821
|
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']);}/**
|
|
11822
|
+
* Update Knowledge setting.
|
|
11823
|
+
*
|
|
11824
|
+
* @param {String} knowledgeSettingId Knowledge Setting ID.
|
|
11825
|
+
* @param {Object} body
|
|
11826
|
+
*/},{key:"patchKnowledgeSetting",value:function patchKnowledgeSetting(knowledgeSettingId,body){// verify the required parameter 'knowledgeSettingId' is set
|
|
11827
|
+
if(knowledgeSettingId===undefined||knowledgeSettingId===null||knowledgeSettingId===''){throw'Missing the required parameter "knowledgeSettingId" when calling patchKnowledgeSetting';}// verify the required parameter 'body' is set
|
|
11828
|
+
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']);}/**
|
|
11739
11829
|
* Creates a presigned URL for uploading a knowledge import file with a set of documents
|
|
11740
11830
|
*
|
|
11741
11831
|
* @param {Object} body query
|
|
@@ -12014,6 +12104,16 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
12014
12104
|
* @param {Object} body
|
|
12015
12105
|
*/},{key:"postKnowledgeKnowledgebases",value:function postKnowledgeKnowledgebases(body){// verify the required parameter 'body' is set
|
|
12016
12106
|
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']);}/**
|
|
12107
|
+
* Get Knowledge Search Preview
|
|
12108
|
+
*
|
|
12109
|
+
* @param {Object} opts Optional parameters
|
|
12110
|
+
* @param {Object} opts.body
|
|
12111
|
+
*/},{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']);}/**
|
|
12112
|
+
* Create Knowledge setting.
|
|
12113
|
+
*
|
|
12114
|
+
* @param {Object} opts Optional parameters
|
|
12115
|
+
* @param {Object} opts.body
|
|
12116
|
+
*/},{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']);}/**
|
|
12017
12117
|
* Update Salesforce Knowledge integration source
|
|
12018
12118
|
*
|
|
12019
12119
|
* @param {String} knowledgeBaseId Knowledge base ID
|
|
@@ -12034,7 +12134,7 @@ if(sourceId===undefined||sourceId===null||sourceId===''){throw'Missing the requi
|
|
|
12034
12134
|
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(){/**
|
|
12035
12135
|
* LanguageUnderstanding service.
|
|
12036
12136
|
* @module purecloud-platform-client-v2/api/LanguageUnderstandingApi
|
|
12037
|
-
* @version
|
|
12137
|
+
* @version 247.0.0
|
|
12038
12138
|
*//**
|
|
12039
12139
|
* Constructs a new LanguageUnderstandingApi.
|
|
12040
12140
|
* @alias module:purecloud-platform-client-v2/api/LanguageUnderstandingApi
|
|
@@ -12343,7 +12443,7 @@ if(domainVersionId===undefined||domainVersionId===null||domainVersionId===''){th
|
|
|
12343
12443
|
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(){/**
|
|
12344
12444
|
* Languages service.
|
|
12345
12445
|
* @module purecloud-platform-client-v2/api/LanguagesApi
|
|
12346
|
-
* @version
|
|
12446
|
+
* @version 247.0.0
|
|
12347
12447
|
*//**
|
|
12348
12448
|
* Constructs a new LanguagesApi.
|
|
12349
12449
|
* @alias module:purecloud-platform-client-v2/api/LanguagesApi
|
|
@@ -12398,7 +12498,7 @@ if(userId===undefined||userId===null||userId===''){throw'Missing the required pa
|
|
|
12398
12498
|
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(){/**
|
|
12399
12499
|
* Learning service.
|
|
12400
12500
|
* @module purecloud-platform-client-v2/api/LearningApi
|
|
12401
|
-
* @version
|
|
12501
|
+
* @version 247.0.0
|
|
12402
12502
|
*//**
|
|
12403
12503
|
* Constructs a new LearningApi.
|
|
12404
12504
|
* @alias module:purecloud-platform-client-v2/api/LearningApi
|
|
@@ -12687,7 +12787,7 @@ if(moduleId===undefined||moduleId===null||moduleId===''){throw'Missing the requi
|
|
|
12687
12787
|
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(){/**
|
|
12688
12788
|
* License service.
|
|
12689
12789
|
* @module purecloud-platform-client-v2/api/LicenseApi
|
|
12690
|
-
* @version
|
|
12790
|
+
* @version 247.0.0
|
|
12691
12791
|
*//**
|
|
12692
12792
|
* Constructs a new LicenseApi.
|
|
12693
12793
|
* @alias module:purecloud-platform-client-v2/api/LicenseApi
|
|
@@ -12741,7 +12841,7 @@ if(featureName===undefined||featureName===null||featureName===''){throw'Missing
|
|
|
12741
12841
|
*/},{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(){/**
|
|
12742
12842
|
* Locations service.
|
|
12743
12843
|
* @module purecloud-platform-client-v2/api/LocationsApi
|
|
12744
|
-
* @version
|
|
12844
|
+
* @version 247.0.0
|
|
12745
12845
|
*//**
|
|
12746
12846
|
* Constructs a new LocationsApi.
|
|
12747
12847
|
* @alias module:purecloud-platform-client-v2/api/LocationsApi
|
|
@@ -12800,7 +12900,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
12800
12900
|
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(){/**
|
|
12801
12901
|
* LogCapture service.
|
|
12802
12902
|
* @module purecloud-platform-client-v2/api/LogCaptureApi
|
|
12803
|
-
* @version
|
|
12903
|
+
* @version 247.0.0
|
|
12804
12904
|
*//**
|
|
12805
12905
|
* Constructs a new LogCaptureApi.
|
|
12806
12906
|
* @alias module:purecloud-platform-client-v2/api/LogCaptureApi
|
|
@@ -12849,7 +12949,7 @@ if(userId===undefined||userId===null||userId===''){throw'Missing the required pa
|
|
|
12849
12949
|
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(){/**
|
|
12850
12950
|
* Messaging service.
|
|
12851
12951
|
* @module purecloud-platform-client-v2/api/MessagingApi
|
|
12852
|
-
* @version
|
|
12952
|
+
* @version 247.0.0
|
|
12853
12953
|
*//**
|
|
12854
12954
|
* Constructs a new MessagingApi.
|
|
12855
12955
|
* @alias module:purecloud-platform-client-v2/api/MessagingApi
|
|
@@ -12939,7 +13039,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
12939
13039
|
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(){/**
|
|
12940
13040
|
* MobileDevices service.
|
|
12941
13041
|
* @module purecloud-platform-client-v2/api/MobileDevicesApi
|
|
12942
|
-
* @version
|
|
13042
|
+
* @version 247.0.0
|
|
12943
13043
|
*//**
|
|
12944
13044
|
* Constructs a new MobileDevicesApi.
|
|
12945
13045
|
* @alias module:purecloud-platform-client-v2/api/MobileDevicesApi
|
|
@@ -12978,7 +13078,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
12978
13078
|
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(){/**
|
|
12979
13079
|
* Notifications service.
|
|
12980
13080
|
* @module purecloud-platform-client-v2/api/NotificationsApi
|
|
12981
|
-
* @version
|
|
13081
|
+
* @version 247.0.0
|
|
12982
13082
|
*//**
|
|
12983
13083
|
* Constructs a new NotificationsApi.
|
|
12984
13084
|
* @alias module:purecloud-platform-client-v2/api/NotificationsApi
|
|
@@ -13035,7 +13135,7 @@ if(channelId===undefined||channelId===null||channelId===''){throw'Missing the re
|
|
|
13035
13135
|
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(){/**
|
|
13036
13136
|
* OAuth service.
|
|
13037
13137
|
* @module purecloud-platform-client-v2/api/OAuthApi
|
|
13038
|
-
* @version
|
|
13138
|
+
* @version 247.0.0
|
|
13039
13139
|
*//**
|
|
13040
13140
|
* Constructs a new OAuthApi.
|
|
13041
13141
|
* @alias module:purecloud-platform-client-v2/api/OAuthApi
|
|
@@ -13120,7 +13220,7 @@ if(clientId===undefined||clientId===null||clientId===''){throw'Missing the requi
|
|
|
13120
13220
|
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(){/**
|
|
13121
13221
|
* Objects service.
|
|
13122
13222
|
* @module purecloud-platform-client-v2/api/ObjectsApi
|
|
13123
|
-
* @version
|
|
13223
|
+
* @version 247.0.0
|
|
13124
13224
|
*//**
|
|
13125
13225
|
* Constructs a new ObjectsApi.
|
|
13126
13226
|
* @alias module:purecloud-platform-client-v2/api/ObjectsApi
|
|
@@ -13206,7 +13306,7 @@ if(divisionId===undefined||divisionId===null||divisionId===''){throw'Missing the
|
|
|
13206
13306
|
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(){/**
|
|
13207
13307
|
* OperationalEvents service.
|
|
13208
13308
|
* @module purecloud-platform-client-v2/api/OperationalEventsApi
|
|
13209
|
-
* @version
|
|
13309
|
+
* @version 247.0.0
|
|
13210
13310
|
*//**
|
|
13211
13311
|
* Constructs a new OperationalEventsApi.
|
|
13212
13312
|
* @alias module:purecloud-platform-client-v2/api/OperationalEventsApi
|
|
@@ -13237,7 +13337,7 @@ if(eventDefinitionId===undefined||eventDefinitionId===null||eventDefinitionId===
|
|
|
13237
13337
|
*/},{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(){/**
|
|
13238
13338
|
* Organization service.
|
|
13239
13339
|
* @module purecloud-platform-client-v2/api/OrganizationApi
|
|
13240
|
-
* @version
|
|
13340
|
+
* @version 247.0.0
|
|
13241
13341
|
*//**
|
|
13242
13342
|
* Constructs a new OrganizationApi.
|
|
13243
13343
|
* @alias module:purecloud-platform-client-v2/api/OrganizationApi
|
|
@@ -13342,7 +13442,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
13342
13442
|
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(){/**
|
|
13343
13443
|
* OrganizationAuthorization service.
|
|
13344
13444
|
* @module purecloud-platform-client-v2/api/OrganizationAuthorizationApi
|
|
13345
|
-
* @version
|
|
13445
|
+
* @version 247.0.0
|
|
13346
13446
|
*//**
|
|
13347
13447
|
* Constructs a new OrganizationAuthorizationApi.
|
|
13348
13448
|
* @alias module:purecloud-platform-client-v2/api/OrganizationAuthorizationApi
|
|
@@ -13676,7 +13776,7 @@ if(trustorOrgId===undefined||trustorOrgId===null||trustorOrgId===''){throw'Missi
|
|
|
13676
13776
|
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(){/**
|
|
13677
13777
|
* Outbound service.
|
|
13678
13778
|
* @module purecloud-platform-client-v2/api/OutboundApi
|
|
13679
|
-
* @version
|
|
13779
|
+
* @version 247.0.0
|
|
13680
13780
|
*//**
|
|
13681
13781
|
* Constructs a new OutboundApi.
|
|
13682
13782
|
* @alias module:purecloud-platform-client-v2/api/OutboundApi
|
|
@@ -14843,7 +14943,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
14843
14943
|
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(){/**
|
|
14844
14944
|
* Presence service.
|
|
14845
14945
|
* @module purecloud-platform-client-v2/api/PresenceApi
|
|
14846
|
-
* @version
|
|
14946
|
+
* @version 247.0.0
|
|
14847
14947
|
*//**
|
|
14848
14948
|
* Constructs a new PresenceApi.
|
|
14849
14949
|
* @alias module:purecloud-platform-client-v2/api/PresenceApi
|
|
@@ -15016,7 +15116,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
15016
15116
|
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(){/**
|
|
15017
15117
|
* ProcessAutomation service.
|
|
15018
15118
|
* @module purecloud-platform-client-v2/api/ProcessAutomationApi
|
|
15019
|
-
* @version
|
|
15119
|
+
* @version 247.0.0
|
|
15020
15120
|
*//**
|
|
15021
15121
|
* Constructs a new ProcessAutomationApi.
|
|
15022
15122
|
* @alias module:purecloud-platform-client-v2/api/ProcessAutomationApi
|
|
@@ -15079,7 +15179,7 @@ if(triggerId===undefined||triggerId===null||triggerId===''){throw'Missing the re
|
|
|
15079
15179
|
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(){/**
|
|
15080
15180
|
* Quality service.
|
|
15081
15181
|
* @module purecloud-platform-client-v2/api/QualityApi
|
|
15082
|
-
* @version
|
|
15182
|
+
* @version 247.0.0
|
|
15083
15183
|
*//**
|
|
15084
15184
|
* Constructs a new QualityApi.
|
|
15085
15185
|
* @alias module:purecloud-platform-client-v2/api/QualityApi
|
|
@@ -15484,10 +15584,11 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
15484
15584
|
* @param {String} conversationId conversationId
|
|
15485
15585
|
* @param {Object} body evaluation
|
|
15486
15586
|
* @param {Object} opts Optional parameters
|
|
15587
|
+
* @param {String} opts.idempotencyKey Idempotency key for request deduplication
|
|
15487
15588
|
* @param {String} opts.expand evaluatorId
|
|
15488
15589
|
*/},{key:"postQualityConversationEvaluations",value:function postQualityConversationEvaluations(conversationId,body,opts){opts=opts||{};// verify the required parameter 'conversationId' is set
|
|
15489
15590
|
if(conversationId===undefined||conversationId===null||conversationId===''){throw'Missing the required parameter "conversationId" when calling postQualityConversationEvaluations';}// verify the required parameter 'body' is set
|
|
15490
|
-
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']);}/**
|
|
15591
|
+
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']);}/**
|
|
15491
15592
|
* Create audit query execution
|
|
15492
15593
|
*
|
|
15493
15594
|
* @param {Object} body query
|
|
@@ -15622,7 +15723,7 @@ if(customerSurveyUrl===undefined||customerSurveyUrl===null){throw'Missing the re
|
|
|
15622
15723
|
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(){/**
|
|
15623
15724
|
* Recording service.
|
|
15624
15725
|
* @module purecloud-platform-client-v2/api/RecordingApi
|
|
15625
|
-
* @version
|
|
15726
|
+
* @version 247.0.0
|
|
15626
15727
|
*//**
|
|
15627
15728
|
* Constructs a new RecordingApi.
|
|
15628
15729
|
* @alias module:purecloud-platform-client-v2/api/RecordingApi
|
|
@@ -16021,7 +16122,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
16021
16122
|
*/},{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(){/**
|
|
16022
16123
|
* ResponseManagement service.
|
|
16023
16124
|
* @module purecloud-platform-client-v2/api/ResponseManagementApi
|
|
16024
|
-
* @version
|
|
16125
|
+
* @version 247.0.0
|
|
16025
16126
|
*//**
|
|
16026
16127
|
* Constructs a new ResponseManagementApi.
|
|
16027
16128
|
* @alias module:purecloud-platform-client-v2/api/ResponseManagementApi
|
|
@@ -16142,7 +16243,7 @@ if(responseAssetId===undefined||responseAssetId===null||responseAssetId===''){th
|
|
|
16142
16243
|
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(){/**
|
|
16143
16244
|
* Routing service.
|
|
16144
16245
|
* @module purecloud-platform-client-v2/api/RoutingApi
|
|
16145
|
-
* @version
|
|
16246
|
+
* @version 247.0.0
|
|
16146
16247
|
*//**
|
|
16147
16248
|
* Constructs a new RoutingApi.
|
|
16148
16249
|
* @alias module:purecloud-platform-client-v2/api/RoutingApi
|
|
@@ -17288,7 +17389,7 @@ if(userId===undefined||userId===null||userId===''){throw'Missing the required pa
|
|
|
17288
17389
|
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(){/**
|
|
17289
17390
|
* SCIM service.
|
|
17290
17391
|
* @module purecloud-platform-client-v2/api/SCIMApi
|
|
17291
|
-
* @version
|
|
17392
|
+
* @version 247.0.0
|
|
17292
17393
|
*//**
|
|
17293
17394
|
* Constructs a new SCIMApi.
|
|
17294
17395
|
* @alias module:purecloud-platform-client-v2/api/SCIMApi
|
|
@@ -17513,7 +17614,7 @@ if(userId===undefined||userId===null||userId===''){throw'Missing the required pa
|
|
|
17513
17614
|
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(){/**
|
|
17514
17615
|
* Scripts service.
|
|
17515
17616
|
* @module purecloud-platform-client-v2/api/ScriptsApi
|
|
17516
|
-
* @version
|
|
17617
|
+
* @version 247.0.0
|
|
17517
17618
|
*//**
|
|
17518
17619
|
* Constructs a new ScriptsApi.
|
|
17519
17620
|
* @alias module:purecloud-platform-client-v2/api/ScriptsApi
|
|
@@ -17659,7 +17760,7 @@ if(scriptId===undefined||scriptId===null||scriptId===''){throw'Missing the requi
|
|
|
17659
17760
|
*/},{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(){/**
|
|
17660
17761
|
* Search service.
|
|
17661
17762
|
* @module purecloud-platform-client-v2/api/SearchApi
|
|
17662
|
-
* @version
|
|
17763
|
+
* @version 247.0.0
|
|
17663
17764
|
*//**
|
|
17664
17765
|
* Constructs a new SearchApi.
|
|
17665
17766
|
* @alias module:purecloud-platform-client-v2/api/SearchApi
|
|
@@ -17823,7 +17924,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
17823
17924
|
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(){/**
|
|
17824
17925
|
* Settings service.
|
|
17825
17926
|
* @module purecloud-platform-client-v2/api/SettingsApi
|
|
17826
|
-
* @version
|
|
17927
|
+
* @version 247.0.0
|
|
17827
17928
|
*//**
|
|
17828
17929
|
* Constructs a new SettingsApi.
|
|
17829
17930
|
* @alias module:purecloud-platform-client-v2/api/SettingsApi
|
|
@@ -17895,7 +17996,7 @@ if(agentId===undefined||agentId===null||agentId===''){throw'Missing the required
|
|
|
17895
17996
|
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(){/**
|
|
17896
17997
|
* SocialMedia service.
|
|
17897
17998
|
* @module purecloud-platform-client-v2/api/SocialMediaApi
|
|
17898
|
-
* @version
|
|
17999
|
+
* @version 247.0.0
|
|
17899
18000
|
*//**
|
|
17900
18001
|
* Constructs a new SocialMediaApi.
|
|
17901
18002
|
* @alias module:purecloud-platform-client-v2/api/SocialMediaApi
|
|
@@ -18384,7 +18485,7 @@ if(topicId===undefined||topicId===null||topicId===''){throw'Missing the required
|
|
|
18384
18485
|
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(){/**
|
|
18385
18486
|
* SpeechTextAnalytics service.
|
|
18386
18487
|
* @module purecloud-platform-client-v2/api/SpeechTextAnalyticsApi
|
|
18387
|
-
* @version
|
|
18488
|
+
* @version 247.0.0
|
|
18388
18489
|
*//**
|
|
18389
18490
|
* Constructs a new SpeechTextAnalyticsApi.
|
|
18390
18491
|
* @alias module:purecloud-platform-client-v2/api/SpeechTextAnalyticsApi
|
|
@@ -18763,7 +18864,7 @@ if(topicId===undefined||topicId===null||topicId===''){throw'Missing the required
|
|
|
18763
18864
|
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(){/**
|
|
18764
18865
|
* Stations service.
|
|
18765
18866
|
* @module purecloud-platform-client-v2/api/StationsApi
|
|
18766
|
-
* @version
|
|
18867
|
+
* @version 247.0.0
|
|
18767
18868
|
*//**
|
|
18768
18869
|
* Constructs a new StationsApi.
|
|
18769
18870
|
* @alias module:purecloud-platform-client-v2/api/StationsApi
|
|
@@ -18795,7 +18896,7 @@ if(stationId===undefined||stationId===null||stationId===''){throw'Missing the re
|
|
|
18795
18896
|
*/},{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(){/**
|
|
18796
18897
|
* Suggest service.
|
|
18797
18898
|
* @module purecloud-platform-client-v2/api/SuggestApi
|
|
18798
|
-
* @version
|
|
18899
|
+
* @version 247.0.0
|
|
18799
18900
|
*//**
|
|
18800
18901
|
* Constructs a new SuggestApi.
|
|
18801
18902
|
* @alias module:purecloud-platform-client-v2/api/SuggestApi
|
|
@@ -18835,7 +18936,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
18835
18936
|
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(){/**
|
|
18836
18937
|
* TaskManagement service.
|
|
18837
18938
|
* @module purecloud-platform-client-v2/api/TaskManagementApi
|
|
18838
|
-
* @version
|
|
18939
|
+
* @version 247.0.0
|
|
18839
18940
|
*//**
|
|
18840
18941
|
* Constructs a new TaskManagementApi.
|
|
18841
18942
|
* @alias module:purecloud-platform-client-v2/api/TaskManagementApi
|
|
@@ -19343,7 +19444,7 @@ if(schemaId===undefined||schemaId===null||schemaId===''){throw'Missing the requi
|
|
|
19343
19444
|
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(){/**
|
|
19344
19445
|
* Teams service.
|
|
19345
19446
|
* @module purecloud-platform-client-v2/api/TeamsApi
|
|
19346
|
-
* @version
|
|
19447
|
+
* @version 247.0.0
|
|
19347
19448
|
*//**
|
|
19348
19449
|
* Constructs a new TeamsApi.
|
|
19349
19450
|
* @alias module:purecloud-platform-client-v2/api/TeamsApi
|
|
@@ -19423,7 +19524,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
19423
19524
|
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(){/**
|
|
19424
19525
|
* Telephony service.
|
|
19425
19526
|
* @module purecloud-platform-client-v2/api/TelephonyApi
|
|
19426
|
-
* @version
|
|
19527
|
+
* @version 247.0.0
|
|
19427
19528
|
*//**
|
|
19428
19529
|
* Constructs a new TelephonyApi.
|
|
19429
19530
|
* @alias module:purecloud-platform-client-v2/api/TelephonyApi
|
|
@@ -19439,6 +19540,11 @@ if(agentId===undefined||agentId===null||agentId===''){throw'Missing the required
|
|
|
19439
19540
|
* Get the agent's own greetings.
|
|
19440
19541
|
*
|
|
19441
19542
|
*/},{key:"getTelephonyAgentsGreetingsMe",value:function getTelephonyAgentsGreetingsMe(){return this.apiClient.callApi('/api/v2/telephony/agents/greetings/me','GET',{},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
19543
|
+
* Get the concurrent call metrics for a given organization.
|
|
19544
|
+
*
|
|
19545
|
+
* @param {Object} opts Optional parameters
|
|
19546
|
+
* @param {Object} opts.metricType Flag to indicate metric type to fetch. (default to cloud)
|
|
19547
|
+
*/},{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']);}/**
|
|
19442
19548
|
* Retrieve the list of AWS regions media can stream through.
|
|
19443
19549
|
*
|
|
19444
19550
|
*/},{key:"getTelephonyMediaregions",value:function getTelephonyMediaregions(){return this.apiClient.callApi('/api/v2/telephony/mediaregions','GET',{},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
@@ -19490,7 +19596,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
19490
19596
|
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(){/**
|
|
19491
19597
|
* TelephonyProvidersEdge service.
|
|
19492
19598
|
* @module purecloud-platform-client-v2/api/TelephonyProvidersEdgeApi
|
|
19493
|
-
* @version
|
|
19599
|
+
* @version 247.0.0
|
|
19494
19600
|
*//**
|
|
19495
19601
|
* Constructs a new TelephonyProvidersEdgeApi.
|
|
19496
19602
|
* @alias module:purecloud-platform-client-v2/api/TelephonyProvidersEdgeApi
|
|
@@ -20338,7 +20444,7 @@ if(trunkBaseSettingsId===undefined||trunkBaseSettingsId===null||trunkBaseSetting
|
|
|
20338
20444
|
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(){/**
|
|
20339
20445
|
* Textbots service.
|
|
20340
20446
|
* @module purecloud-platform-client-v2/api/TextbotsApi
|
|
20341
|
-
* @version
|
|
20447
|
+
* @version 247.0.0
|
|
20342
20448
|
*//**
|
|
20343
20449
|
* Constructs a new TextbotsApi.
|
|
20344
20450
|
* @alias module:purecloud-platform-client-v2/api/TextbotsApi
|
|
@@ -20374,7 +20480,7 @@ if(launchRequest===undefined||launchRequest===null){throw'Missing the required p
|
|
|
20374
20480
|
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(){/**
|
|
20375
20481
|
* Tokens service.
|
|
20376
20482
|
* @module purecloud-platform-client-v2/api/TokensApi
|
|
20377
|
-
* @version
|
|
20483
|
+
* @version 247.0.0
|
|
20378
20484
|
*//**
|
|
20379
20485
|
* Constructs a new TokensApi.
|
|
20380
20486
|
* @alias module:purecloud-platform-client-v2/api/TokensApi
|
|
@@ -20408,7 +20514,7 @@ if(userId===undefined||userId===null||userId===''){throw'Missing the required pa
|
|
|
20408
20514
|
*/},{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(){/**
|
|
20409
20515
|
* Uploads service.
|
|
20410
20516
|
* @module purecloud-platform-client-v2/api/UploadsApi
|
|
20411
|
-
* @version
|
|
20517
|
+
* @version 247.0.0
|
|
20412
20518
|
*//**
|
|
20413
20519
|
* Constructs a new UploadsApi.
|
|
20414
20520
|
* @alias module:purecloud-platform-client-v2/api/UploadsApi
|
|
@@ -20481,7 +20587,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
20481
20587
|
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(){/**
|
|
20482
20588
|
* Usage service.
|
|
20483
20589
|
* @module purecloud-platform-client-v2/api/UsageApi
|
|
20484
|
-
* @version
|
|
20590
|
+
* @version 247.0.0
|
|
20485
20591
|
*//**
|
|
20486
20592
|
* Constructs a new UsageApi.
|
|
20487
20593
|
* @alias module:purecloud-platform-client-v2/api/UsageApi
|
|
@@ -20565,7 +20671,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
20565
20671
|
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(){/**
|
|
20566
20672
|
* UserRecordings service.
|
|
20567
20673
|
* @module purecloud-platform-client-v2/api/UserRecordingsApi
|
|
20568
|
-
* @version
|
|
20674
|
+
* @version 247.0.0
|
|
20569
20675
|
*//**
|
|
20570
20676
|
* Constructs a new UserRecordingsApi.
|
|
20571
20677
|
* @alias module:purecloud-platform-client-v2/api/UserRecordingsApi
|
|
@@ -20613,7 +20719,7 @@ if(recordingId===undefined||recordingId===null||recordingId===''){throw'Missing
|
|
|
20613
20719
|
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(){/**
|
|
20614
20720
|
* Users service.
|
|
20615
20721
|
* @module purecloud-platform-client-v2/api/UsersApi
|
|
20616
|
-
* @version
|
|
20722
|
+
* @version 247.0.0
|
|
20617
20723
|
*//**
|
|
20618
20724
|
* Constructs a new UsersApi.
|
|
20619
20725
|
* @alias module:purecloud-platform-client-v2/api/UsersApi
|
|
@@ -21463,7 +21569,7 @@ if(schemaId===undefined||schemaId===null||schemaId===''){throw'Missing the requi
|
|
|
21463
21569
|
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(){/**
|
|
21464
21570
|
* UsersRules service.
|
|
21465
21571
|
* @module purecloud-platform-client-v2/api/UsersRulesApi
|
|
21466
|
-
* @version
|
|
21572
|
+
* @version 247.0.0
|
|
21467
21573
|
*//**
|
|
21468
21574
|
* Constructs a new UsersRulesApi.
|
|
21469
21575
|
* @alias module:purecloud-platform-client-v2/api/UsersRulesApi
|
|
@@ -21538,7 +21644,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
21538
21644
|
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(){/**
|
|
21539
21645
|
* Utilities service.
|
|
21540
21646
|
* @module purecloud-platform-client-v2/api/UtilitiesApi
|
|
21541
|
-
* @version
|
|
21647
|
+
* @version 247.0.0
|
|
21542
21648
|
*//**
|
|
21543
21649
|
* Constructs a new UtilitiesApi.
|
|
21544
21650
|
* @alias module:purecloud-platform-client-v2/api/UtilitiesApi
|
|
@@ -21565,7 +21671,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
21565
21671
|
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(){/**
|
|
21566
21672
|
* Voicemail service.
|
|
21567
21673
|
* @module purecloud-platform-client-v2/api/VoicemailApi
|
|
21568
|
-
* @version
|
|
21674
|
+
* @version 247.0.0
|
|
21569
21675
|
*//**
|
|
21570
21676
|
* Constructs a new VoicemailApi.
|
|
21571
21677
|
* @alias module:purecloud-platform-client-v2/api/VoicemailApi
|
|
@@ -21727,7 +21833,7 @@ if(userId===undefined||userId===null||userId===''){throw'Missing the required pa
|
|
|
21727
21833
|
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(){/**
|
|
21728
21834
|
* WebChat service.
|
|
21729
21835
|
* @module purecloud-platform-client-v2/api/WebChatApi
|
|
21730
|
-
* @version
|
|
21836
|
+
* @version 247.0.0
|
|
21731
21837
|
*//**
|
|
21732
21838
|
* Constructs a new WebChatApi.
|
|
21733
21839
|
* @alias module:purecloud-platform-client-v2/api/WebChatApi
|
|
@@ -21874,7 +21980,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
21874
21980
|
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(){/**
|
|
21875
21981
|
* WebDeployments service.
|
|
21876
21982
|
* @module purecloud-platform-client-v2/api/WebDeploymentsApi
|
|
21877
|
-
* @version
|
|
21983
|
+
* @version 247.0.0
|
|
21878
21984
|
*//**
|
|
21879
21985
|
* Constructs a new WebDeploymentsApi.
|
|
21880
21986
|
* @alias module:purecloud-platform-client-v2/api/WebDeploymentsApi
|
|
@@ -22017,7 +22123,7 @@ if(deploymentId===undefined||deploymentId===null||deploymentId===''){throw'Missi
|
|
|
22017
22123
|
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(){/**
|
|
22018
22124
|
* WebMessaging service.
|
|
22019
22125
|
* @module purecloud-platform-client-v2/api/WebMessagingApi
|
|
22020
|
-
* @version
|
|
22126
|
+
* @version 247.0.0
|
|
22021
22127
|
*//**
|
|
22022
22128
|
* Constructs a new WebMessagingApi.
|
|
22023
22129
|
* @alias module:purecloud-platform-client-v2/api/WebMessagingApi
|
|
@@ -22058,7 +22164,7 @@ if(tokenId===undefined||tokenId===null||tokenId===''){throw'Missing the required
|
|
|
22058
22164
|
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(){/**
|
|
22059
22165
|
* Widgets service.
|
|
22060
22166
|
* @module purecloud-platform-client-v2/api/WidgetsApi
|
|
22061
|
-
* @version
|
|
22167
|
+
* @version 247.0.0
|
|
22062
22168
|
*//**
|
|
22063
22169
|
* Constructs a new WidgetsApi.
|
|
22064
22170
|
* @alias module:purecloud-platform-client-v2/api/WidgetsApi
|
|
@@ -22098,7 +22204,7 @@ if(deploymentId===undefined||deploymentId===null||deploymentId===''){throw'Missi
|
|
|
22098
22204
|
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(){/**
|
|
22099
22205
|
* WorkforceManagement service.
|
|
22100
22206
|
* @module purecloud-platform-client-v2/api/WorkforceManagementApi
|
|
22101
|
-
* @version
|
|
22207
|
+
* @version 247.0.0
|
|
22102
22208
|
*//**
|
|
22103
22209
|
* Constructs a new WorkforceManagementApi.
|
|
22104
22210
|
* @alias module:purecloud-platform-client-v2/api/WorkforceManagementApi
|
|
@@ -24121,7 +24227,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
24121
24227
|
* </pre>
|
|
24122
24228
|
* </p>
|
|
24123
24229
|
* @module purecloud-platform-client-v2/index
|
|
24124
|
-
* @version
|
|
24230
|
+
* @version 247.0.0
|
|
24125
24231
|
*/var platformClient=/*#__PURE__*/_createClass(function platformClient(){_classCallCheck(this,platformClient);/**
|
|
24126
24232
|
* The ApiClient constructor.
|
|
24127
24233
|
* @property {module:purecloud-platform-client-v2/ApiClient}
|