purecloud-platform-client-v2 245.1.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 +1255 -104
- package/dist/web-amd/purecloud-platform-client-v2.js +1255 -104
- package/dist/web-amd/purecloud-platform-client-v2.min.js +1 -1
- package/dist/web-cjs/bundle.js +485 -149
- package/dist/web-cjs/purecloud-platform-client-v2.js +539 -168
- package/dist/web-cjs/purecloud-platform-client-v2.min.js +1 -1
- package/index.d.ts +738 -285
- package/package.json +1 -1
- package/src/purecloud-platform-client-v2/ApiClient.js +6 -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 +661 -3
- 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 +31 -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 +26 -1
- package/src/purecloud-platform-client-v2/api/SettingsApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/SocialMediaApi.js +248 -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 -10
- 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 +18 -6
- 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
|
|
@@ -1291,7 +1353,7 @@ return param.map(function(x){return _this15.paramToString(x);});default:throw ne
|
|
|
1291
1353
|
* Applies authentication headers to the request.
|
|
1292
1354
|
* @param {Object} request The axios request config object.
|
|
1293
1355
|
* @param {Array.<String>} authNames An array of authentication method names.
|
|
1294
|
-
*/},{key:"applyAuthToRequest",value:function applyAuthToRequest(request,authNames){var _this16=this;authNames.forEach(function(authName){var auth=_this16.authentications[authName];switch(auth.type){case'basic':if(auth.username||auth.password){request.auth={username:auth.username||'',password:auth.password||''};}break;case'apiKey':if(auth.apiKey){var data={};if(auth.apiKeyPrefix){data[auth.name]="".concat(auth.apiKeyPrefix," ").concat(auth.apiKey);}else{data[auth.name]=auth.apiKey;}if(auth['in']==='header'){request.headers=_this16.addHeaders(request.headers,data);}else{request.setParams(_this16.serialize(data));}}break;case'oauth2':if(auth.accessToken){request.headers=_this16.addHeaders(request.headers,{'Authorization':"Bearer ".concat(auth.accessToken)});}break;default:throw new Error("Unknown authentication type: ".concat(auth.type));}});}/**
|
|
1356
|
+
*/},{key:"applyAuthToRequest",value:function applyAuthToRequest(request,authNames){var _this16=this;authNames.forEach(function(authName){var auth=_this16.authentications[authName];switch(auth.type){case'basic':if(auth.username||auth.password){request.auth={username:auth.username||'',password:auth.password||''};}break;case'apiKey':if(auth.apiKey){var data={};if(auth.apiKeyPrefix){data[auth.name]="".concat(auth.apiKeyPrefix," ").concat(auth.apiKey);}else{data[auth.name]=auth.apiKey;}if(auth['in']==='header'){request.headers=_this16.addHeaders(request.headers,data);}else{request.setParams(_this16.serialize(data));request.headers=_this16.addHeaders(request.headers,{});}}else{request.headers=_this16.addHeaders(request.headers,{});}break;case'oauth2':if(auth.accessToken){request.headers=_this16.addHeaders(request.headers,{'Authorization':"Bearer ".concat(auth.accessToken)});}else{request.headers=_this16.addHeaders(request.headers,{});}break;default:throw new Error("Unknown authentication type: ".concat(auth.type));}});}/**
|
|
1295
1357
|
* @description Sets the proxy agent axios will use for requests
|
|
1296
1358
|
* @param {any} agent - The proxy agent
|
|
1297
1359
|
*/},{key:"setProxyAgent",value:function setProxyAgent(agent){this.proxyAgent=agent;var httpClient=this.getHttpClient();httpClient.setHttpsAgent(this.proxyAgent);}/**
|
|
@@ -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
|
|
@@ -5322,6 +5384,13 @@ if(jobId===undefined||jobId===null||jobId===''){throw'Missing the required param
|
|
|
5322
5384
|
* @param {String} conversationId conversation ID
|
|
5323
5385
|
*/},{key:"deleteConversation",value:function deleteConversation(conversationId){// verify the required parameter 'conversationId' is set
|
|
5324
5386
|
if(conversationId===undefined||conversationId===null||conversationId===''){throw'Missing the required parameter "conversationId" when calling deleteConversation';}return this.apiClient.callApi('/api/v2/conversations/{conversationId}','DELETE',{'conversationId':conversationId},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
5387
|
+
* Delete a custom attributes record.
|
|
5388
|
+
*
|
|
5389
|
+
* @param {String} conversationId conversation ID
|
|
5390
|
+
* @param {String} attributesId attributesId
|
|
5391
|
+
*/},{key:"deleteConversationCustomattribute",value:function deleteConversationCustomattribute(conversationId,attributesId){// verify the required parameter 'conversationId' is set
|
|
5392
|
+
if(conversationId===undefined||conversationId===null||conversationId===''){throw'Missing the required parameter "conversationId" when calling deleteConversationCustomattribute';}// verify the required parameter 'attributesId' is set
|
|
5393
|
+
if(attributesId===undefined||attributesId===null||attributesId===''){throw'Missing the required parameter "attributesId" when calling deleteConversationCustomattribute';}return this.apiClient.callApi('/api/v2/conversations/{conversationId}/customattributes/{attributesId}','DELETE',{'conversationId':conversationId,'attributesId':attributesId},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
5325
5394
|
* Delete a code used to add a communication to this participant
|
|
5326
5395
|
*
|
|
5327
5396
|
* @param {String} conversationId conversation ID
|
|
@@ -5381,6 +5450,12 @@ if(integrationId===undefined||integrationId===null||integrationId===''){throw'Mi
|
|
|
5381
5450
|
* @param {String} integrationId Integration ID
|
|
5382
5451
|
*/},{key:"deleteConversationsMessagingIntegrationsInstagramIntegrationId",value:function deleteConversationsMessagingIntegrationsInstagramIntegrationId(integrationId){// verify the required parameter 'integrationId' is set
|
|
5383
5452
|
if(integrationId===undefined||integrationId===null||integrationId===''){throw'Missing the required parameter "integrationId" when calling deleteConversationsMessagingIntegrationsInstagramIntegrationId';}return this.apiClient.callApi('/api/v2/conversations/messaging/integrations/instagram/{integrationId}','DELETE',{'integrationId':integrationId},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
5453
|
+
* Delete an Open messaging integration with the Google Business Profile extension
|
|
5454
|
+
* See https://developer.genesys.cloud/api/digital/openmessaging/ for more information.
|
|
5455
|
+
* @param {String} integrationId Integration ID
|
|
5456
|
+
* deleteConversationsMessagingIntegrationsOpenExtensionsGooglebusinessprofileIntegrationId is a preview method and is subject to both breaking and non-breaking changes at any time without notice
|
|
5457
|
+
*/},{key:"deleteConversationsMessagingIntegrationsOpenExtensionsGooglebusinessprofileIntegrationId",value:function deleteConversationsMessagingIntegrationsOpenExtensionsGooglebusinessprofileIntegrationId(integrationId){// verify the required parameter 'integrationId' is set
|
|
5458
|
+
if(integrationId===undefined||integrationId===null||integrationId===''){throw'Missing the required parameter "integrationId" when calling deleteConversationsMessagingIntegrationsOpenExtensionsGooglebusinessprofileIntegrationId';}return this.apiClient.callApi('/api/v2/conversations/messaging/integrations/open/extensions/googlebusinessprofile/{integrationId}','DELETE',{'integrationId':integrationId},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
5384
5459
|
* Delete an Open messaging integration
|
|
5385
5460
|
* See https://developer.genesys.cloud/api/digital/openmessaging/ for more information.
|
|
5386
5461
|
* @param {String} integrationId Integration ID
|
|
@@ -5500,6 +5575,18 @@ if(messageId===undefined||messageId===null||messageId===''){throw'Missing the re
|
|
|
5500
5575
|
*/},{key:"getConversationCommunicationInternalmessages",value:function getConversationCommunicationInternalmessages(conversationId,communicationId,opts){opts=opts||{};// verify the required parameter 'conversationId' is set
|
|
5501
5576
|
if(conversationId===undefined||conversationId===null||conversationId===''){throw'Missing the required parameter "conversationId" when calling getConversationCommunicationInternalmessages';}// verify the required parameter 'communicationId' is set
|
|
5502
5577
|
if(communicationId===undefined||communicationId===null||communicationId===''){throw'Missing the required parameter "communicationId" when calling getConversationCommunicationInternalmessages';}return this.apiClient.callApi('/api/v2/conversations/{conversationId}/communications/{communicationId}/internalmessages','GET',{'conversationId':conversationId,'communicationId':communicationId},{'pageSize':opts['pageSize'],'pageNumber':opts['pageNumber']},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
5578
|
+
* Get custom attributes by id
|
|
5579
|
+
*
|
|
5580
|
+
* @param {String} conversationId conversation ID
|
|
5581
|
+
* @param {String} attributesId attributesId
|
|
5582
|
+
*/},{key:"getConversationCustomattribute",value:function getConversationCustomattribute(conversationId,attributesId){// verify the required parameter 'conversationId' is set
|
|
5583
|
+
if(conversationId===undefined||conversationId===null||conversationId===''){throw'Missing the required parameter "conversationId" when calling getConversationCustomattribute';}// verify the required parameter 'attributesId' is set
|
|
5584
|
+
if(attributesId===undefined||attributesId===null||attributesId===''){throw'Missing the required parameter "attributesId" when calling getConversationCustomattribute';}return this.apiClient.callApi('/api/v2/conversations/{conversationId}/customattributes/{attributesId}','GET',{'conversationId':conversationId,'attributesId':attributesId},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
5585
|
+
* Get a list of custom attributes for a conversation.
|
|
5586
|
+
*
|
|
5587
|
+
* @param {String} conversationId conversation ID
|
|
5588
|
+
*/},{key:"getConversationCustomattributes",value:function getConversationCustomattributes(conversationId){// verify the required parameter 'conversationId' is set
|
|
5589
|
+
if(conversationId===undefined||conversationId===null||conversationId===''){throw'Missing the required parameter "conversationId" when calling getConversationCustomattributes';}return this.apiClient.callApi('/api/v2/conversations/{conversationId}/customattributes','GET',{'conversationId':conversationId},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
5503
5590
|
* Fetch info on a secure session
|
|
5504
5591
|
*
|
|
5505
5592
|
* @param {String} conversationId conversation ID
|
|
@@ -5743,6 +5830,37 @@ if(participantId===undefined||participantId===null||participantId===''){throw'Mi
|
|
|
5743
5830
|
* Get active cobrowse conversations for the logged in user
|
|
5744
5831
|
*
|
|
5745
5832
|
*/},{key:"getConversationsCobrowsesessions",value:function getConversationsCobrowsesessions(){return this.apiClient.callApi('/api/v2/conversations/cobrowsesessions','GET',{},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
5833
|
+
* Get a schema
|
|
5834
|
+
*
|
|
5835
|
+
* @param {String} schemaId Schema ID
|
|
5836
|
+
*/},{key:"getConversationsCustomattributesSchema",value:function getConversationsCustomattributesSchema(schemaId){// verify the required parameter 'schemaId' is set
|
|
5837
|
+
if(schemaId===undefined||schemaId===null||schemaId===''){throw'Missing the required parameter "schemaId" when calling getConversationsCustomattributesSchema';}return this.apiClient.callApi('/api/v2/conversations/customattributes/schemas/{schemaId}','GET',{'schemaId':schemaId},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
5838
|
+
* Get a specific version of a schema
|
|
5839
|
+
*
|
|
5840
|
+
* @param {String} schemaId Schema ID
|
|
5841
|
+
* @param {String} versionId Schema version
|
|
5842
|
+
*/},{key:"getConversationsCustomattributesSchemaVersion",value:function getConversationsCustomattributesSchemaVersion(schemaId,versionId){// verify the required parameter 'schemaId' is set
|
|
5843
|
+
if(schemaId===undefined||schemaId===null||schemaId===''){throw'Missing the required parameter "schemaId" when calling getConversationsCustomattributesSchemaVersion';}// verify the required parameter 'versionId' is set
|
|
5844
|
+
if(versionId===undefined||versionId===null||versionId===''){throw'Missing the required parameter "versionId" when calling getConversationsCustomattributesSchemaVersion';}return this.apiClient.callApi('/api/v2/conversations/customattributes/schemas/{schemaId}/versions/{versionId}','GET',{'schemaId':schemaId,'versionId':versionId},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
5845
|
+
* Get all versions of a CCA schema
|
|
5846
|
+
*
|
|
5847
|
+
* @param {String} schemaId Schema ID
|
|
5848
|
+
*/},{key:"getConversationsCustomattributesSchemaVersions",value:function getConversationsCustomattributesSchemaVersions(schemaId){// verify the required parameter 'schemaId' is set
|
|
5849
|
+
if(schemaId===undefined||schemaId===null||schemaId===''){throw'Missing the required parameter "schemaId" when calling getConversationsCustomattributesSchemaVersions';}return this.apiClient.callApi('/api/v2/conversations/customattributes/schemas/{schemaId}/versions','GET',{'schemaId':schemaId},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
5850
|
+
* Get a list of schemas.
|
|
5851
|
+
*
|
|
5852
|
+
*/},{key:"getConversationsCustomattributesSchemas",value:function getConversationsCustomattributesSchemas(){return this.apiClient.callApi('/api/v2/conversations/customattributes/schemas','GET',{},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
5853
|
+
* Get the core types from which all schemas are built.
|
|
5854
|
+
*
|
|
5855
|
+
* @param {String} coreTypeName Name of the core type
|
|
5856
|
+
*/},{key:"getConversationsCustomattributesSchemasCoretype",value:function getConversationsCustomattributesSchemasCoretype(coreTypeName){// verify the required parameter 'coreTypeName' is set
|
|
5857
|
+
if(coreTypeName===undefined||coreTypeName===null||coreTypeName===''){throw'Missing the required parameter "coreTypeName" when calling getConversationsCustomattributesSchemasCoretype';}return this.apiClient.callApi('/api/v2/conversations/customattributes/schemas/coretypes/{coreTypeName}','GET',{'coreTypeName':coreTypeName},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
5858
|
+
* Get the list of core types enabled for a specific namespace.
|
|
5859
|
+
*
|
|
5860
|
+
*/},{key:"getConversationsCustomattributesSchemasCoretypes",value:function getConversationsCustomattributesSchemasCoretypes(){return this.apiClient.callApi('/api/v2/conversations/customattributes/schemas/coretypes','GET',{},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
5861
|
+
* Get quantitative limits on schemas
|
|
5862
|
+
*
|
|
5863
|
+
*/},{key:"getConversationsCustomattributesSchemasLimits",value:function getConversationsCustomattributesSchemasLimits(){return this.apiClient.callApi('/api/v2/conversations/customattributes/schemas/limits','GET',{},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
5746
5864
|
* Get email conversation
|
|
5747
5865
|
*
|
|
5748
5866
|
* @param {String} conversationId conversationId
|
|
@@ -5833,7 +5951,7 @@ if(conversationId===undefined||conversationId===null||conversationId===''){throw
|
|
|
5833
5951
|
if(conversationId===undefined||conversationId===null||conversationId===''){throw'Missing the required parameter "conversationId" when calling getConversationsMessageCommunicationMessagesMedia';}// verify the required parameter 'communicationId' is set
|
|
5834
5952
|
if(communicationId===undefined||communicationId===null||communicationId===''){throw'Missing the required parameter "communicationId" when calling getConversationsMessageCommunicationMessagesMedia';}return this.apiClient.callApi('/api/v2/conversations/messages/{conversationId}/communications/{communicationId}/messages/media','GET',{'conversationId':conversationId,'communicationId':communicationId},{'status':opts['status'],'pageNumber':opts['pageNumber'],'pageSize':opts['pageSize']},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
5835
5953
|
* Get media
|
|
5836
|
-
* See https://developer.genesys.cloud/
|
|
5954
|
+
* See https://developer.genesys.cloud/commdigital/digital/messagemediaupload/ for example usage.
|
|
5837
5955
|
* @param {String} conversationId conversationId
|
|
5838
5956
|
* @param {String} communicationId communicationId
|
|
5839
5957
|
* @param {String} mediaId mediaId
|
|
@@ -6006,6 +6124,30 @@ if(integrationId===undefined||integrationId===null||integrationId===''){throw'Mi
|
|
|
6006
6124
|
* @param {String} opts.supportedContentId Filter integrations returned based on the supported content ID
|
|
6007
6125
|
* @param {String} opts.messagingSettingId Filter integrations returned based on the setting ID
|
|
6008
6126
|
*/},{key:"getConversationsMessagingIntegrationsOpen",value:function getConversationsMessagingIntegrationsOpen(opts){opts=opts||{};return this.apiClient.callApi('/api/v2/conversations/messaging/integrations/open','GET',{},{'pageSize':opts['pageSize'],'pageNumber':opts['pageNumber'],'expand':opts['expand'],'supportedContent.id':opts['supportedContentId'],'messagingSetting.id':opts['messagingSettingId']},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
6127
|
+
* Get an Open messaging integration with the Google Business Profile extension
|
|
6128
|
+
* See https://developer.genesys.cloud/api/digital/openmessaging/ for more information.
|
|
6129
|
+
* @param {String} integrationId Integration ID
|
|
6130
|
+
* @param {Object} opts Optional parameters
|
|
6131
|
+
* @param {Object} opts.expand Expand instructions for the return value.
|
|
6132
|
+
* getConversationsMessagingIntegrationsOpenExtensionsGooglebusinessprofileIntegrationId is a preview method and is subject to both breaking and non-breaking changes at any time without notice
|
|
6133
|
+
*/},{key:"getConversationsMessagingIntegrationsOpenExtensionsGooglebusinessprofileIntegrationId",value:function getConversationsMessagingIntegrationsOpenExtensionsGooglebusinessprofileIntegrationId(integrationId,opts){opts=opts||{};// verify the required parameter 'integrationId' is set
|
|
6134
|
+
if(integrationId===undefined||integrationId===null||integrationId===''){throw'Missing the required parameter "integrationId" when calling getConversationsMessagingIntegrationsOpenExtensionsGooglebusinessprofileIntegrationId';}return this.apiClient.callApi('/api/v2/conversations/messaging/integrations/open/extensions/googlebusinessprofile/{integrationId}','GET',{'integrationId':integrationId},{'expand':opts['expand']},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
6135
|
+
* Get Google Business Profile OAuth 2 settings
|
|
6136
|
+
* See https://developer.genesys.cloud/api/digital/openmessaging/ for more information.
|
|
6137
|
+
* getConversationsMessagingIntegrationsOpenExtensionsGooglebusinessprofileOauthSettings is a preview method and is subject to both breaking and non-breaking changes at any time without notice
|
|
6138
|
+
*/},{key:"getConversationsMessagingIntegrationsOpenExtensionsGooglebusinessprofileOauthSettings",value:function getConversationsMessagingIntegrationsOpenExtensionsGooglebusinessprofileOauthSettings(){return this.apiClient.callApi('/api/v2/conversations/messaging/integrations/open/extensions/googlebusinessprofile/oauth/settings','GET',{},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
6139
|
+
* Get a Google Auth Token
|
|
6140
|
+
* See https://developer.genesys.cloud/api/digital/openmessaging/ for more information.
|
|
6141
|
+
* @param {String} tokenId Token ID
|
|
6142
|
+
* getConversationsMessagingIntegrationsOpenExtensionsGooglebusinessprofileToken is a preview method and is subject to both breaking and non-breaking changes at any time without notice
|
|
6143
|
+
*/},{key:"getConversationsMessagingIntegrationsOpenExtensionsGooglebusinessprofileToken",value:function getConversationsMessagingIntegrationsOpenExtensionsGooglebusinessprofileToken(tokenId){// verify the required parameter 'tokenId' is set
|
|
6144
|
+
if(tokenId===undefined||tokenId===null||tokenId===''){throw'Missing the required parameter "tokenId" when calling getConversationsMessagingIntegrationsOpenExtensionsGooglebusinessprofileToken';}return this.apiClient.callApi('/api/v2/conversations/messaging/integrations/open/extensions/googlebusinessprofile/tokens/{tokenId}','GET',{'tokenId':tokenId},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
6145
|
+
* Get Google Business Profile accounts
|
|
6146
|
+
* See https://developer.genesys.cloud/api/digital/openmessaging/ for more information.
|
|
6147
|
+
* @param {String} tokenId Token ID
|
|
6148
|
+
* getConversationsMessagingIntegrationsOpenExtensionsGooglebusinessprofileTokenAccounts is a preview method and is subject to both breaking and non-breaking changes at any time without notice
|
|
6149
|
+
*/},{key:"getConversationsMessagingIntegrationsOpenExtensionsGooglebusinessprofileTokenAccounts",value:function getConversationsMessagingIntegrationsOpenExtensionsGooglebusinessprofileTokenAccounts(tokenId){// verify the required parameter 'tokenId' is set
|
|
6150
|
+
if(tokenId===undefined||tokenId===null||tokenId===''){throw'Missing the required parameter "tokenId" when calling getConversationsMessagingIntegrationsOpenExtensionsGooglebusinessprofileTokenAccounts';}return this.apiClient.callApi('/api/v2/conversations/messaging/integrations/open/extensions/googlebusinessprofile/tokens/{tokenId}/accounts','GET',{'tokenId':tokenId},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
6009
6151
|
* Get an Open messaging integration
|
|
6010
6152
|
* See https://developer.genesys.cloud/api/digital/openmessaging/ for more information.
|
|
6011
6153
|
* @param {String} integrationId Integration ID
|
|
@@ -6136,6 +6278,20 @@ if(communicationId===undefined||communicationId===null||communicationId===''){th
|
|
|
6136
6278
|
* @param {String} meetingId meetingId
|
|
6137
6279
|
*/},{key:"getConversationsVideosMeeting",value:function getConversationsVideosMeeting(meetingId){// verify the required parameter 'meetingId' is set
|
|
6138
6280
|
if(meetingId===undefined||meetingId===null||meetingId===''){throw'Missing the required parameter "meetingId" when calling getConversationsVideosMeeting';}return this.apiClient.callApi('/api/v2/conversations/videos/meetings/{meetingId}','GET',{'meetingId':meetingId},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
6281
|
+
* Update a single custom attributes record by amending the data with only the provided fields.
|
|
6282
|
+
*
|
|
6283
|
+
* @param {String} conversationId conversation ID
|
|
6284
|
+
* @param {Object} opts Optional parameters
|
|
6285
|
+
* @param {Object} opts.body
|
|
6286
|
+
*/},{key:"patchConversationCustomattributes",value:function patchConversationCustomattributes(conversationId,opts){opts=opts||{};// verify the required parameter 'conversationId' is set
|
|
6287
|
+
if(conversationId===undefined||conversationId===null||conversationId===''){throw'Missing the required parameter "conversationId" when calling patchConversationCustomattributes';}return this.apiClient.callApi('/api/v2/conversations/{conversationId}/customattributes','PATCH',{'conversationId':conversationId},{},{},{},opts['body'],['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
6288
|
+
* Update a list of custom attributes record by amending the data with only the provided fields.
|
|
6289
|
+
*
|
|
6290
|
+
* @param {String} conversationId conversation ID
|
|
6291
|
+
* @param {Object} opts Optional parameters
|
|
6292
|
+
* @param {Array.<Object>} opts.body
|
|
6293
|
+
*/},{key:"patchConversationCustomattributesBulk",value:function patchConversationCustomattributesBulk(conversationId,opts){opts=opts||{};// verify the required parameter 'conversationId' is set
|
|
6294
|
+
if(conversationId===undefined||conversationId===null||conversationId===''){throw'Missing the required parameter "conversationId" when calling patchConversationCustomattributesBulk';}return this.apiClient.callApi('/api/v2/conversations/{conversationId}/customattributes/bulk','PATCH',{'conversationId':conversationId},{},{},{},opts['body'],['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
6139
6295
|
* Update a participant.
|
|
6140
6296
|
* Update conversation participant.
|
|
6141
6297
|
* @param {String} conversationId conversation ID
|
|
@@ -6510,6 +6666,14 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
6510
6666
|
*/},{key:"patchConversationsMessagingIntegrationsInstagramIntegrationId",value:function patchConversationsMessagingIntegrationsInstagramIntegrationId(integrationId,body){// verify the required parameter 'integrationId' is set
|
|
6511
6667
|
if(integrationId===undefined||integrationId===null||integrationId===''){throw'Missing the required parameter "integrationId" when calling patchConversationsMessagingIntegrationsInstagramIntegrationId';}// verify the required parameter 'body' is set
|
|
6512
6668
|
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling patchConversationsMessagingIntegrationsInstagramIntegrationId';}return this.apiClient.callApi('/api/v2/conversations/messaging/integrations/instagram/{integrationId}','PATCH',{'integrationId':integrationId},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
6669
|
+
* Update an Open messaging integration with the Google Business Profile extension
|
|
6670
|
+
* See https://developer.genesys.cloud/api/digital/openmessaging/ for more information.
|
|
6671
|
+
* @param {String} integrationId Integration ID
|
|
6672
|
+
* @param {Object} body GoogleBusinessProfileOpenIntegrationUpdateRequest
|
|
6673
|
+
* patchConversationsMessagingIntegrationsOpenExtensionsGooglebusinessprofileIntegrationId is a preview method and is subject to both breaking and non-breaking changes at any time without notice
|
|
6674
|
+
*/},{key:"patchConversationsMessagingIntegrationsOpenExtensionsGooglebusinessprofileIntegrationId",value:function patchConversationsMessagingIntegrationsOpenExtensionsGooglebusinessprofileIntegrationId(integrationId,body){// verify the required parameter 'integrationId' is set
|
|
6675
|
+
if(integrationId===undefined||integrationId===null||integrationId===''){throw'Missing the required parameter "integrationId" when calling patchConversationsMessagingIntegrationsOpenExtensionsGooglebusinessprofileIntegrationId';}// verify the required parameter 'body' is set
|
|
6676
|
+
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling patchConversationsMessagingIntegrationsOpenExtensionsGooglebusinessprofileIntegrationId';}return this.apiClient.callApi('/api/v2/conversations/messaging/integrations/open/extensions/googlebusinessprofile/{integrationId}','PATCH',{'integrationId':integrationId},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
6513
6677
|
* Update an Open messaging integration
|
|
6514
6678
|
* See https://developer.genesys.cloud/api/digital/openmessaging/ for more information.
|
|
6515
6679
|
* @param {String} integrationId Integration ID
|
|
@@ -7019,6 +7183,16 @@ if(communicationId===undefined||communicationId===null||communicationId===''){th
|
|
|
7019
7183
|
*/},{key:"postConversationsCobrowsesessionParticipantReplace",value:function postConversationsCobrowsesessionParticipantReplace(conversationId,participantId,opts){opts=opts||{};// verify the required parameter 'conversationId' is set
|
|
7020
7184
|
if(conversationId===undefined||conversationId===null||conversationId===''){throw'Missing the required parameter "conversationId" when calling postConversationsCobrowsesessionParticipantReplace';}// verify the required parameter 'participantId' is set
|
|
7021
7185
|
if(participantId===undefined||participantId===null||participantId===''){throw'Missing the required parameter "participantId" when calling postConversationsCobrowsesessionParticipantReplace';}return this.apiClient.callApi('/api/v2/conversations/cobrowsesessions/{conversationId}/participants/{participantId}/replace','POST',{'conversationId':conversationId,'participantId':participantId},{},{},{},opts['body'],['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
7186
|
+
* Create a schema
|
|
7187
|
+
*
|
|
7188
|
+
* @param {Object} body Schema create request body
|
|
7189
|
+
*/},{key:"postConversationsCustomattributesSchemas",value:function postConversationsCustomattributesSchemas(body){// verify the required parameter 'body' is set
|
|
7190
|
+
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling postConversationsCustomattributesSchemas';}return this.apiClient.callApi('/api/v2/conversations/customattributes/schemas','POST',{},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
7191
|
+
* Search resources.
|
|
7192
|
+
*
|
|
7193
|
+
* @param {Object} body Search request options
|
|
7194
|
+
*/},{key:"postConversationsCustomattributesSearch",value:function postConversationsCustomattributesSearch(body){// verify the required parameter 'body' is set
|
|
7195
|
+
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling postConversationsCustomattributesSearch';}return this.apiClient.callApi('/api/v2/conversations/customattributes/search','POST',{},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
7022
7196
|
* Send an email to an external conversation. An external conversation is one where the provider is not PureCloud based. This endpoint allows the sender of the external email to reply or send a new message to the existing conversation. The new message will be treated as part of the existing conversation and chained to it.
|
|
7023
7197
|
*
|
|
7024
7198
|
* @param {String} conversationId conversationId
|
|
@@ -7110,7 +7284,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
7110
7284
|
if(conversationId===undefined||conversationId===null||conversationId===''){throw'Missing the required parameter "conversationId" when calling postConversationsMessageCommunicationMessagesMedia';}// verify the required parameter 'communicationId' is set
|
|
7111
7285
|
if(communicationId===undefined||communicationId===null||communicationId===''){throw'Missing the required parameter "communicationId" when calling postConversationsMessageCommunicationMessagesMedia';}return this.apiClient.callApi('/api/v2/conversations/messages/{conversationId}/communications/{communicationId}/messages/media','POST',{'conversationId':conversationId,'communicationId':communicationId},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
7112
7286
|
* Create a URL to upload a message media file
|
|
7113
|
-
* See https://developer.genesys.cloud/
|
|
7287
|
+
* See https://developer.genesys.cloud/commdigital/digital/messagemediaupload/ for example usage.
|
|
7114
7288
|
* @param {String} conversationId conversationId
|
|
7115
7289
|
* @param {String} communicationId communicationId
|
|
7116
7290
|
* @param {Object} body request
|
|
@@ -7239,6 +7413,18 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
7239
7413
|
* @param {Object} body OpenIntegrationRequest
|
|
7240
7414
|
*/},{key:"postConversationsMessagingIntegrationsOpen",value:function postConversationsMessagingIntegrationsOpen(body){// verify the required parameter 'body' is set
|
|
7241
7415
|
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling postConversationsMessagingIntegrationsOpen';}return this.apiClient.callApi('/api/v2/conversations/messaging/integrations/open','POST',{},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
7416
|
+
* Create an Open messaging integration with the Google Business Profile extension
|
|
7417
|
+
* See https://developer.genesys.cloud/api/digital/openmessaging/ for more information.
|
|
7418
|
+
* @param {Object} body GoogleBusinessProfileOpenIntegrationRequest
|
|
7419
|
+
* postConversationsMessagingIntegrationsOpenExtensionsGooglebusinessprofile is a preview method and is subject to both breaking and non-breaking changes at any time without notice
|
|
7420
|
+
*/},{key:"postConversationsMessagingIntegrationsOpenExtensionsGooglebusinessprofile",value:function postConversationsMessagingIntegrationsOpenExtensionsGooglebusinessprofile(body){// verify the required parameter 'body' is set
|
|
7421
|
+
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling postConversationsMessagingIntegrationsOpenExtensionsGooglebusinessprofile';}return this.apiClient.callApi('/api/v2/conversations/messaging/integrations/open/extensions/googlebusinessprofile','POST',{},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
7422
|
+
* Create a Google Auth Token by exchanging the one-time auth code retrieved from Google
|
|
7423
|
+
* See https://developer.genesys.cloud/api/digital/openmessaging/ for more information.
|
|
7424
|
+
* @param {Object} body GoogleAuthTokenRequest
|
|
7425
|
+
* postConversationsMessagingIntegrationsOpenExtensionsGooglebusinessprofileTokens is a preview method and is subject to both breaking and non-breaking changes at any time without notice
|
|
7426
|
+
*/},{key:"postConversationsMessagingIntegrationsOpenExtensionsGooglebusinessprofileTokens",value:function postConversationsMessagingIntegrationsOpenExtensionsGooglebusinessprofileTokens(body){// verify the required parameter 'body' is set
|
|
7427
|
+
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling postConversationsMessagingIntegrationsOpenExtensionsGooglebusinessprofileTokens';}return this.apiClient.callApi('/api/v2/conversations/messaging/integrations/open/extensions/googlebusinessprofile/tokens','POST',{},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
7242
7428
|
* Create Twitter Integration
|
|
7243
7429
|
*
|
|
7244
7430
|
* @param {Object} body TwitterIntegrationRequest
|
|
@@ -7317,6 +7503,20 @@ if(communicationId===undefined||communicationId===null||communicationId===''){th
|
|
|
7317
7503
|
* @param {Object} body MeetingIdRequest
|
|
7318
7504
|
*/},{key:"postConversationsVideosMeetings",value:function postConversationsVideosMeetings(body){// verify the required parameter 'body' is set
|
|
7319
7505
|
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling postConversationsVideosMeetings';}return this.apiClient.callApi('/api/v2/conversations/videos/meetings','POST',{},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
7506
|
+
* Create or update a single custom attributes record. Updating replaces all data with the provided fields.
|
|
7507
|
+
*
|
|
7508
|
+
* @param {String} conversationId conversation ID
|
|
7509
|
+
* @param {Object} opts Optional parameters
|
|
7510
|
+
* @param {Object} opts.body
|
|
7511
|
+
*/},{key:"putConversationCustomattributes",value:function putConversationCustomattributes(conversationId,opts){opts=opts||{};// verify the required parameter 'conversationId' is set
|
|
7512
|
+
if(conversationId===undefined||conversationId===null||conversationId===''){throw'Missing the required parameter "conversationId" when calling putConversationCustomattributes';}return this.apiClient.callApi('/api/v2/conversations/{conversationId}/customattributes','PUT',{'conversationId':conversationId},{},{},{},opts['body'],['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
7513
|
+
* Create or update a list of custom attributes records. Updating replaces all data with the provided fields.
|
|
7514
|
+
*
|
|
7515
|
+
* @param {String} conversationId conversation ID
|
|
7516
|
+
* @param {Object} opts Optional parameters
|
|
7517
|
+
* @param {Array.<Object>} opts.body
|
|
7518
|
+
*/},{key:"putConversationCustomattributesBulk",value:function putConversationCustomattributesBulk(conversationId,opts){opts=opts||{};// verify the required parameter 'conversationId' is set
|
|
7519
|
+
if(conversationId===undefined||conversationId===null||conversationId===''){throw'Missing the required parameter "conversationId" when calling putConversationCustomattributesBulk';}return this.apiClient.callApi('/api/v2/conversations/{conversationId}/customattributes/bulk','PUT',{'conversationId':conversationId},{},{},{},opts['body'],['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
7320
7520
|
* Set flagged reason on conversation participant to indicate bad conversation quality.
|
|
7321
7521
|
*
|
|
7322
7522
|
* @param {String} conversationId conversation ID
|
|
@@ -7379,6 +7579,13 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
7379
7579
|
*/},{key:"putConversationsCobrowsesessionRecordingstate",value:function putConversationsCobrowsesessionRecordingstate(conversationId,body){// verify the required parameter 'conversationId' is set
|
|
7380
7580
|
if(conversationId===undefined||conversationId===null||conversationId===''){throw'Missing the required parameter "conversationId" when calling putConversationsCobrowsesessionRecordingstate';}// verify the required parameter 'body' is set
|
|
7381
7581
|
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling putConversationsCobrowsesessionRecordingstate';}return this.apiClient.callApi('/api/v2/conversations/cobrowsesessions/{conversationId}/recordingstate','PUT',{'conversationId':conversationId},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
7582
|
+
* Update a schema
|
|
7583
|
+
*
|
|
7584
|
+
* @param {String} schemaId Schema ID
|
|
7585
|
+
* @param {Object} body Schema update request body
|
|
7586
|
+
*/},{key:"putConversationsCustomattributesSchema",value:function putConversationsCustomattributesSchema(schemaId,body){// verify the required parameter 'schemaId' is set
|
|
7587
|
+
if(schemaId===undefined||schemaId===null||schemaId===''){throw'Missing the required parameter "schemaId" when calling putConversationsCustomattributesSchema';}// verify the required parameter 'body' is set
|
|
7588
|
+
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling putConversationsCustomattributesSchema';}return this.apiClient.callApi('/api/v2/conversations/customattributes/schemas/{schemaId}','PUT',{'schemaId':schemaId},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
7382
7589
|
* Update conversation draft reply
|
|
7383
7590
|
*
|
|
7384
7591
|
* @param {String} conversationId conversationId
|
|
@@ -7488,7 +7695,7 @@ if(conversationId===undefined||conversationId===null||conversationId===''){throw
|
|
|
7488
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(){/**
|
|
7489
7696
|
* DataExtensions service.
|
|
7490
7697
|
* @module purecloud-platform-client-v2/api/DataExtensionsApi
|
|
7491
|
-
* @version
|
|
7698
|
+
* @version 247.0.0
|
|
7492
7699
|
*//**
|
|
7493
7700
|
* Constructs a new DataExtensionsApi.
|
|
7494
7701
|
* @alias module:purecloud-platform-client-v2/api/DataExtensionsApi
|
|
@@ -7509,7 +7716,7 @@ if(coretypeName===undefined||coretypeName===null||coretypeName===''){throw'Missi
|
|
|
7509
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(){/**
|
|
7510
7717
|
* DataPrivacy service.
|
|
7511
7718
|
* @module purecloud-platform-client-v2/api/DataPrivacyApi
|
|
7512
|
-
* @version
|
|
7719
|
+
* @version 247.0.0
|
|
7513
7720
|
*//**
|
|
7514
7721
|
* Constructs a new DataPrivacyApi.
|
|
7515
7722
|
* @alias module:purecloud-platform-client-v2/api/DataPrivacyApi
|
|
@@ -7549,7 +7756,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
7549
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(){/**
|
|
7550
7757
|
* Downloads service.
|
|
7551
7758
|
* @module purecloud-platform-client-v2/api/DownloadsApi
|
|
7552
|
-
* @version
|
|
7759
|
+
* @version 247.0.0
|
|
7553
7760
|
*//**
|
|
7554
7761
|
* Constructs a new DownloadsApi.
|
|
7555
7762
|
* @alias module:purecloud-platform-client-v2/api/DownloadsApi
|
|
@@ -7568,7 +7775,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
7568
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(){/**
|
|
7569
7776
|
* Emails service.
|
|
7570
7777
|
* @module purecloud-platform-client-v2/api/EmailsApi
|
|
7571
|
-
* @version
|
|
7778
|
+
* @version 247.0.0
|
|
7572
7779
|
*//**
|
|
7573
7780
|
* Constructs a new EmailsApi.
|
|
7574
7781
|
* @alias module:purecloud-platform-client-v2/api/EmailsApi
|
|
@@ -7597,7 +7804,7 @@ if(downloadId===undefined||downloadId===null||downloadId===''){throw'Missing the
|
|
|
7597
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(){/**
|
|
7598
7805
|
* EmployeeEngagement service.
|
|
7599
7806
|
* @module purecloud-platform-client-v2/api/EmployeeEngagementApi
|
|
7600
|
-
* @version
|
|
7807
|
+
* @version 247.0.0
|
|
7601
7808
|
*//**
|
|
7602
7809
|
* Constructs a new EmployeeEngagementApi.
|
|
7603
7810
|
* @alias module:purecloud-platform-client-v2/api/EmployeeEngagementApi
|
|
@@ -7645,7 +7852,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
7645
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(){/**
|
|
7646
7853
|
* Events service.
|
|
7647
7854
|
* @module purecloud-platform-client-v2/api/EventsApi
|
|
7648
|
-
* @version
|
|
7855
|
+
* @version 247.0.0
|
|
7649
7856
|
*//**
|
|
7650
7857
|
* Constructs a new EventsApi.
|
|
7651
7858
|
* @alias module:purecloud-platform-client-v2/api/EventsApi
|
|
@@ -7670,7 +7877,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
7670
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(){/**
|
|
7671
7878
|
* ExternalContacts service.
|
|
7672
7879
|
* @module purecloud-platform-client-v2/api/ExternalContactsApi
|
|
7673
|
-
* @version
|
|
7880
|
+
* @version 247.0.0
|
|
7674
7881
|
*//**
|
|
7675
7882
|
* Constructs a new ExternalContactsApi.
|
|
7676
7883
|
* @alias module:purecloud-platform-client-v2/api/ExternalContactsApi
|
|
@@ -8420,7 +8627,7 @@ if(relationshipId===undefined||relationshipId===null||relationshipId===''){throw
|
|
|
8420
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(){/**
|
|
8421
8628
|
* Fax service.
|
|
8422
8629
|
* @module purecloud-platform-client-v2/api/FaxApi
|
|
8423
|
-
* @version
|
|
8630
|
+
* @version 247.0.0
|
|
8424
8631
|
*//**
|
|
8425
8632
|
* Constructs a new FaxApi.
|
|
8426
8633
|
* @alias module:purecloud-platform-client-v2/api/FaxApi
|
|
@@ -8469,7 +8676,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
8469
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(){/**
|
|
8470
8677
|
* Flows service.
|
|
8471
8678
|
* @module purecloud-platform-client-v2/api/FlowsApi
|
|
8472
|
-
* @version
|
|
8679
|
+
* @version 247.0.0
|
|
8473
8680
|
*//**
|
|
8474
8681
|
* Constructs a new FlowsApi.
|
|
8475
8682
|
* @alias module:purecloud-platform-client-v2/api/FlowsApi
|
|
@@ -8523,7 +8730,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
8523
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(){/**
|
|
8524
8731
|
* Gamification service.
|
|
8525
8732
|
* @module purecloud-platform-client-v2/api/GamificationApi
|
|
8526
|
-
* @version
|
|
8733
|
+
* @version 247.0.0
|
|
8527
8734
|
*//**
|
|
8528
8735
|
* Constructs a new GamificationApi.
|
|
8529
8736
|
* @alias module:purecloud-platform-client-v2/api/GamificationApi
|
|
@@ -9194,7 +9401,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
9194
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(){/**
|
|
9195
9402
|
* GeneralDataProtectionRegulation service.
|
|
9196
9403
|
* @module purecloud-platform-client-v2/api/GeneralDataProtectionRegulationApi
|
|
9197
|
-
* @version
|
|
9404
|
+
* @version 247.0.0
|
|
9198
9405
|
*//**
|
|
9199
9406
|
* Constructs a new GeneralDataProtectionRegulationApi.
|
|
9200
9407
|
* @alias module:purecloud-platform-client-v2/api/GeneralDataProtectionRegulationApi
|
|
@@ -9229,7 +9436,7 @@ if(searchValue===undefined||searchValue===null){throw'Missing the required param
|
|
|
9229
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(){/**
|
|
9230
9437
|
* Geolocation service.
|
|
9231
9438
|
* @module purecloud-platform-client-v2/api/GeolocationApi
|
|
9232
|
-
* @version
|
|
9439
|
+
* @version 247.0.0
|
|
9233
9440
|
*//**
|
|
9234
9441
|
* Constructs a new GeolocationApi.
|
|
9235
9442
|
* @alias module:purecloud-platform-client-v2/api/GeolocationApi
|
|
@@ -9263,7 +9470,7 @@ if(clientId===undefined||clientId===null||clientId===''){throw'Missing the requi
|
|
|
9263
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(){/**
|
|
9264
9471
|
* Greetings service.
|
|
9265
9472
|
* @module purecloud-platform-client-v2/api/GreetingsApi
|
|
9266
|
-
* @version
|
|
9473
|
+
* @version 247.0.0
|
|
9267
9474
|
*//**
|
|
9268
9475
|
* Constructs a new GreetingsApi.
|
|
9269
9476
|
* @alias module:purecloud-platform-client-v2/api/GreetingsApi
|
|
@@ -9391,7 +9598,7 @@ if(userId===undefined||userId===null||userId===''){throw'Missing the required pa
|
|
|
9391
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(){/**
|
|
9392
9599
|
* Groups service.
|
|
9393
9600
|
* @module purecloud-platform-client-v2/api/GroupsApi
|
|
9394
|
-
* @version
|
|
9601
|
+
* @version 247.0.0
|
|
9395
9602
|
*//**
|
|
9396
9603
|
* Constructs a new GroupsApi.
|
|
9397
9604
|
* @alias module:purecloud-platform-client-v2/api/GroupsApi
|
|
@@ -9524,7 +9731,7 @@ if(groupId===undefined||groupId===null||groupId===''){throw'Missing the required
|
|
|
9524
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(){/**
|
|
9525
9732
|
* IdentityProvider service.
|
|
9526
9733
|
* @module purecloud-platform-client-v2/api/IdentityProviderApi
|
|
9527
|
-
* @version
|
|
9734
|
+
* @version 247.0.0
|
|
9528
9735
|
*//**
|
|
9529
9736
|
* Constructs a new IdentityProviderApi.
|
|
9530
9737
|
* @alias module:purecloud-platform-client-v2/api/IdentityProviderApi
|
|
@@ -9680,7 +9887,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
9680
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(){/**
|
|
9681
9888
|
* InfrastructureAsCode service.
|
|
9682
9889
|
* @module purecloud-platform-client-v2/api/InfrastructureAsCodeApi
|
|
9683
|
-
* @version
|
|
9890
|
+
* @version 247.0.0
|
|
9684
9891
|
*//**
|
|
9685
9892
|
* Constructs a new InfrastructureAsCodeApi.
|
|
9686
9893
|
* @alias module:purecloud-platform-client-v2/api/InfrastructureAsCodeApi
|
|
@@ -9734,7 +9941,7 @@ if(jobId===undefined||jobId===null||jobId===''){throw'Missing the required param
|
|
|
9734
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(){/**
|
|
9735
9942
|
* Integrations service.
|
|
9736
9943
|
* @module purecloud-platform-client-v2/api/IntegrationsApi
|
|
9737
|
-
* @version
|
|
9944
|
+
* @version 247.0.0
|
|
9738
9945
|
*//**
|
|
9739
9946
|
* Constructs a new IntegrationsApi.
|
|
9740
9947
|
* @alias module:purecloud-platform-client-v2/api/IntegrationsApi
|
|
@@ -10426,7 +10633,7 @@ if(ucIntegrationId===undefined||ucIntegrationId===null||ucIntegrationId===''){th
|
|
|
10426
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(){/**
|
|
10427
10634
|
* Intents service.
|
|
10428
10635
|
* @module purecloud-platform-client-v2/api/IntentsApi
|
|
10429
|
-
* @version
|
|
10636
|
+
* @version 247.0.0
|
|
10430
10637
|
*//**
|
|
10431
10638
|
* Constructs a new IntentsApi.
|
|
10432
10639
|
* @alias module:purecloud-platform-client-v2/api/IntentsApi
|
|
@@ -10543,7 +10750,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
10543
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(){/**
|
|
10544
10751
|
* Journey service.
|
|
10545
10752
|
* @module purecloud-platform-client-v2/api/JourneyApi
|
|
10546
|
-
* @version
|
|
10753
|
+
* @version 247.0.0
|
|
10547
10754
|
*//**
|
|
10548
10755
|
* Constructs a new JourneyApi.
|
|
10549
10756
|
* @alias module:purecloud-platform-client-v2/api/JourneyApi
|
|
@@ -11052,7 +11259,7 @@ if(versionId===undefined||versionId===null||versionId===''){throw'Missing the re
|
|
|
11052
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(){/**
|
|
11053
11260
|
* Knowledge service.
|
|
11054
11261
|
* @module purecloud-platform-client-v2/api/KnowledgeApi
|
|
11055
|
-
* @version
|
|
11262
|
+
* @version 247.0.0
|
|
11056
11263
|
*//**
|
|
11057
11264
|
* Constructs a new KnowledgeApi.
|
|
11058
11265
|
* @alias module:purecloud-platform-client-v2/api/KnowledgeApi
|
|
@@ -11130,6 +11337,11 @@ if(sourceId===undefined||sourceId===null||sourceId===''){throw'Missing the requi
|
|
|
11130
11337
|
*/},{key:"deleteKnowledgeKnowledgebaseSynchronizeJob",value:function deleteKnowledgeKnowledgebaseSynchronizeJob(knowledgeBaseId,syncJobId){// verify the required parameter 'knowledgeBaseId' is set
|
|
11131
11338
|
if(knowledgeBaseId===undefined||knowledgeBaseId===null||knowledgeBaseId===''){throw'Missing the required parameter "knowledgeBaseId" when calling deleteKnowledgeKnowledgebaseSynchronizeJob';}// verify the required parameter 'syncJobId' is set
|
|
11132
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']);}/**
|
|
11133
11345
|
* Get categories
|
|
11134
11346
|
*
|
|
11135
11347
|
* @param {String} sessionId Knowledge guest session ID.
|
|
@@ -11470,6 +11682,22 @@ if(jobId===undefined||jobId===null||jobId===''){throw'Missing the required param
|
|
|
11470
11682
|
* @param {Object} opts.sortBy Sort by.
|
|
11471
11683
|
* @param {Object} opts.sortOrder Sort Order.
|
|
11472
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']);}/**
|
|
11473
11701
|
* Update search result.
|
|
11474
11702
|
*
|
|
11475
11703
|
* @param {String} sessionId Knowledge guest session ID.
|
|
@@ -11591,6 +11819,13 @@ if(knowledgeBaseId===undefined||knowledgeBaseId===null||knowledgeBaseId===''){th
|
|
|
11591
11819
|
if(groupId===undefined||groupId===null||groupId===''){throw'Missing the required parameter "groupId" when calling patchKnowledgeKnowledgebaseUnansweredGroupPhrasegroup';}// verify the required parameter 'phraseGroupId' is set
|
|
11592
11820
|
if(phraseGroupId===undefined||phraseGroupId===null||phraseGroupId===''){throw'Missing the required parameter "phraseGroupId" when calling patchKnowledgeKnowledgebaseUnansweredGroupPhrasegroup';}// verify the required parameter 'body' is set
|
|
11593
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']);}/**
|
|
11594
11829
|
* Creates a presigned URL for uploading a knowledge import file with a set of documents
|
|
11595
11830
|
*
|
|
11596
11831
|
* @param {Object} body query
|
|
@@ -11869,6 +12104,16 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
11869
12104
|
* @param {Object} body
|
|
11870
12105
|
*/},{key:"postKnowledgeKnowledgebases",value:function postKnowledgeKnowledgebases(body){// verify the required parameter 'body' is set
|
|
11871
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']);}/**
|
|
11872
12117
|
* Update Salesforce Knowledge integration source
|
|
11873
12118
|
*
|
|
11874
12119
|
* @param {String} knowledgeBaseId Knowledge base ID
|
|
@@ -11889,7 +12134,7 @@ if(sourceId===undefined||sourceId===null||sourceId===''){throw'Missing the requi
|
|
|
11889
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(){/**
|
|
11890
12135
|
* LanguageUnderstanding service.
|
|
11891
12136
|
* @module purecloud-platform-client-v2/api/LanguageUnderstandingApi
|
|
11892
|
-
* @version
|
|
12137
|
+
* @version 247.0.0
|
|
11893
12138
|
*//**
|
|
11894
12139
|
* Constructs a new LanguageUnderstandingApi.
|
|
11895
12140
|
* @alias module:purecloud-platform-client-v2/api/LanguageUnderstandingApi
|
|
@@ -12198,7 +12443,7 @@ if(domainVersionId===undefined||domainVersionId===null||domainVersionId===''){th
|
|
|
12198
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(){/**
|
|
12199
12444
|
* Languages service.
|
|
12200
12445
|
* @module purecloud-platform-client-v2/api/LanguagesApi
|
|
12201
|
-
* @version
|
|
12446
|
+
* @version 247.0.0
|
|
12202
12447
|
*//**
|
|
12203
12448
|
* Constructs a new LanguagesApi.
|
|
12204
12449
|
* @alias module:purecloud-platform-client-v2/api/LanguagesApi
|
|
@@ -12253,7 +12498,7 @@ if(userId===undefined||userId===null||userId===''){throw'Missing the required pa
|
|
|
12253
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(){/**
|
|
12254
12499
|
* Learning service.
|
|
12255
12500
|
* @module purecloud-platform-client-v2/api/LearningApi
|
|
12256
|
-
* @version
|
|
12501
|
+
* @version 247.0.0
|
|
12257
12502
|
*//**
|
|
12258
12503
|
* Constructs a new LearningApi.
|
|
12259
12504
|
* @alias module:purecloud-platform-client-v2/api/LearningApi
|
|
@@ -12542,7 +12787,7 @@ if(moduleId===undefined||moduleId===null||moduleId===''){throw'Missing the requi
|
|
|
12542
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(){/**
|
|
12543
12788
|
* License service.
|
|
12544
12789
|
* @module purecloud-platform-client-v2/api/LicenseApi
|
|
12545
|
-
* @version
|
|
12790
|
+
* @version 247.0.0
|
|
12546
12791
|
*//**
|
|
12547
12792
|
* Constructs a new LicenseApi.
|
|
12548
12793
|
* @alias module:purecloud-platform-client-v2/api/LicenseApi
|
|
@@ -12596,7 +12841,7 @@ if(featureName===undefined||featureName===null||featureName===''){throw'Missing
|
|
|
12596
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(){/**
|
|
12597
12842
|
* Locations service.
|
|
12598
12843
|
* @module purecloud-platform-client-v2/api/LocationsApi
|
|
12599
|
-
* @version
|
|
12844
|
+
* @version 247.0.0
|
|
12600
12845
|
*//**
|
|
12601
12846
|
* Constructs a new LocationsApi.
|
|
12602
12847
|
* @alias module:purecloud-platform-client-v2/api/LocationsApi
|
|
@@ -12655,7 +12900,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
12655
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(){/**
|
|
12656
12901
|
* LogCapture service.
|
|
12657
12902
|
* @module purecloud-platform-client-v2/api/LogCaptureApi
|
|
12658
|
-
* @version
|
|
12903
|
+
* @version 247.0.0
|
|
12659
12904
|
*//**
|
|
12660
12905
|
* Constructs a new LogCaptureApi.
|
|
12661
12906
|
* @alias module:purecloud-platform-client-v2/api/LogCaptureApi
|
|
@@ -12704,7 +12949,7 @@ if(userId===undefined||userId===null||userId===''){throw'Missing the required pa
|
|
|
12704
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(){/**
|
|
12705
12950
|
* Messaging service.
|
|
12706
12951
|
* @module purecloud-platform-client-v2/api/MessagingApi
|
|
12707
|
-
* @version
|
|
12952
|
+
* @version 247.0.0
|
|
12708
12953
|
*//**
|
|
12709
12954
|
* Constructs a new MessagingApi.
|
|
12710
12955
|
* @alias module:purecloud-platform-client-v2/api/MessagingApi
|
|
@@ -12794,7 +13039,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
12794
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(){/**
|
|
12795
13040
|
* MobileDevices service.
|
|
12796
13041
|
* @module purecloud-platform-client-v2/api/MobileDevicesApi
|
|
12797
|
-
* @version
|
|
13042
|
+
* @version 247.0.0
|
|
12798
13043
|
*//**
|
|
12799
13044
|
* Constructs a new MobileDevicesApi.
|
|
12800
13045
|
* @alias module:purecloud-platform-client-v2/api/MobileDevicesApi
|
|
@@ -12833,7 +13078,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
12833
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(){/**
|
|
12834
13079
|
* Notifications service.
|
|
12835
13080
|
* @module purecloud-platform-client-v2/api/NotificationsApi
|
|
12836
|
-
* @version
|
|
13081
|
+
* @version 247.0.0
|
|
12837
13082
|
*//**
|
|
12838
13083
|
* Constructs a new NotificationsApi.
|
|
12839
13084
|
* @alias module:purecloud-platform-client-v2/api/NotificationsApi
|
|
@@ -12890,7 +13135,7 @@ if(channelId===undefined||channelId===null||channelId===''){throw'Missing the re
|
|
|
12890
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(){/**
|
|
12891
13136
|
* OAuth service.
|
|
12892
13137
|
* @module purecloud-platform-client-v2/api/OAuthApi
|
|
12893
|
-
* @version
|
|
13138
|
+
* @version 247.0.0
|
|
12894
13139
|
*//**
|
|
12895
13140
|
* Constructs a new OAuthApi.
|
|
12896
13141
|
* @alias module:purecloud-platform-client-v2/api/OAuthApi
|
|
@@ -12975,7 +13220,7 @@ if(clientId===undefined||clientId===null||clientId===''){throw'Missing the requi
|
|
|
12975
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(){/**
|
|
12976
13221
|
* Objects service.
|
|
12977
13222
|
* @module purecloud-platform-client-v2/api/ObjectsApi
|
|
12978
|
-
* @version
|
|
13223
|
+
* @version 247.0.0
|
|
12979
13224
|
*//**
|
|
12980
13225
|
* Constructs a new ObjectsApi.
|
|
12981
13226
|
* @alias module:purecloud-platform-client-v2/api/ObjectsApi
|
|
@@ -13061,7 +13306,7 @@ if(divisionId===undefined||divisionId===null||divisionId===''){throw'Missing the
|
|
|
13061
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(){/**
|
|
13062
13307
|
* OperationalEvents service.
|
|
13063
13308
|
* @module purecloud-platform-client-v2/api/OperationalEventsApi
|
|
13064
|
-
* @version
|
|
13309
|
+
* @version 247.0.0
|
|
13065
13310
|
*//**
|
|
13066
13311
|
* Constructs a new OperationalEventsApi.
|
|
13067
13312
|
* @alias module:purecloud-platform-client-v2/api/OperationalEventsApi
|
|
@@ -13092,7 +13337,7 @@ if(eventDefinitionId===undefined||eventDefinitionId===null||eventDefinitionId===
|
|
|
13092
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(){/**
|
|
13093
13338
|
* Organization service.
|
|
13094
13339
|
* @module purecloud-platform-client-v2/api/OrganizationApi
|
|
13095
|
-
* @version
|
|
13340
|
+
* @version 247.0.0
|
|
13096
13341
|
*//**
|
|
13097
13342
|
* Constructs a new OrganizationApi.
|
|
13098
13343
|
* @alias module:purecloud-platform-client-v2/api/OrganizationApi
|
|
@@ -13197,7 +13442,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
13197
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(){/**
|
|
13198
13443
|
* OrganizationAuthorization service.
|
|
13199
13444
|
* @module purecloud-platform-client-v2/api/OrganizationAuthorizationApi
|
|
13200
|
-
* @version
|
|
13445
|
+
* @version 247.0.0
|
|
13201
13446
|
*//**
|
|
13202
13447
|
* Constructs a new OrganizationAuthorizationApi.
|
|
13203
13448
|
* @alias module:purecloud-platform-client-v2/api/OrganizationAuthorizationApi
|
|
@@ -13531,7 +13776,7 @@ if(trustorOrgId===undefined||trustorOrgId===null||trustorOrgId===''){throw'Missi
|
|
|
13531
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(){/**
|
|
13532
13777
|
* Outbound service.
|
|
13533
13778
|
* @module purecloud-platform-client-v2/api/OutboundApi
|
|
13534
|
-
* @version
|
|
13779
|
+
* @version 247.0.0
|
|
13535
13780
|
*//**
|
|
13536
13781
|
* Constructs a new OutboundApi.
|
|
13537
13782
|
* @alias module:purecloud-platform-client-v2/api/OutboundApi
|
|
@@ -14698,7 +14943,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
14698
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(){/**
|
|
14699
14944
|
* Presence service.
|
|
14700
14945
|
* @module purecloud-platform-client-v2/api/PresenceApi
|
|
14701
|
-
* @version
|
|
14946
|
+
* @version 247.0.0
|
|
14702
14947
|
*//**
|
|
14703
14948
|
* Constructs a new PresenceApi.
|
|
14704
14949
|
* @alias module:purecloud-platform-client-v2/api/PresenceApi
|
|
@@ -14871,7 +15116,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
14871
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(){/**
|
|
14872
15117
|
* ProcessAutomation service.
|
|
14873
15118
|
* @module purecloud-platform-client-v2/api/ProcessAutomationApi
|
|
14874
|
-
* @version
|
|
15119
|
+
* @version 247.0.0
|
|
14875
15120
|
*//**
|
|
14876
15121
|
* Constructs a new ProcessAutomationApi.
|
|
14877
15122
|
* @alias module:purecloud-platform-client-v2/api/ProcessAutomationApi
|
|
@@ -14934,7 +15179,7 @@ if(triggerId===undefined||triggerId===null||triggerId===''){throw'Missing the re
|
|
|
14934
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(){/**
|
|
14935
15180
|
* Quality service.
|
|
14936
15181
|
* @module purecloud-platform-client-v2/api/QualityApi
|
|
14937
|
-
* @version
|
|
15182
|
+
* @version 247.0.0
|
|
14938
15183
|
*//**
|
|
14939
15184
|
* Constructs a new QualityApi.
|
|
14940
15185
|
* @alias module:purecloud-platform-client-v2/api/QualityApi
|
|
@@ -15339,10 +15584,11 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
15339
15584
|
* @param {String} conversationId conversationId
|
|
15340
15585
|
* @param {Object} body evaluation
|
|
15341
15586
|
* @param {Object} opts Optional parameters
|
|
15587
|
+
* @param {String} opts.idempotencyKey Idempotency key for request deduplication
|
|
15342
15588
|
* @param {String} opts.expand evaluatorId
|
|
15343
15589
|
*/},{key:"postQualityConversationEvaluations",value:function postQualityConversationEvaluations(conversationId,body,opts){opts=opts||{};// verify the required parameter 'conversationId' is set
|
|
15344
15590
|
if(conversationId===undefined||conversationId===null||conversationId===''){throw'Missing the required parameter "conversationId" when calling postQualityConversationEvaluations';}// verify the required parameter 'body' is set
|
|
15345
|
-
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']);}/**
|
|
15346
15592
|
* Create audit query execution
|
|
15347
15593
|
*
|
|
15348
15594
|
* @param {Object} body query
|
|
@@ -15477,7 +15723,7 @@ if(customerSurveyUrl===undefined||customerSurveyUrl===null){throw'Missing the re
|
|
|
15477
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(){/**
|
|
15478
15724
|
* Recording service.
|
|
15479
15725
|
* @module purecloud-platform-client-v2/api/RecordingApi
|
|
15480
|
-
* @version
|
|
15726
|
+
* @version 247.0.0
|
|
15481
15727
|
*//**
|
|
15482
15728
|
* Constructs a new RecordingApi.
|
|
15483
15729
|
* @alias module:purecloud-platform-client-v2/api/RecordingApi
|
|
@@ -15876,7 +16122,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
15876
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(){/**
|
|
15877
16123
|
* ResponseManagement service.
|
|
15878
16124
|
* @module purecloud-platform-client-v2/api/ResponseManagementApi
|
|
15879
|
-
* @version
|
|
16125
|
+
* @version 247.0.0
|
|
15880
16126
|
*//**
|
|
15881
16127
|
* Constructs a new ResponseManagementApi.
|
|
15882
16128
|
* @alias module:purecloud-platform-client-v2/api/ResponseManagementApi
|
|
@@ -15997,7 +16243,7 @@ if(responseAssetId===undefined||responseAssetId===null||responseAssetId===''){th
|
|
|
15997
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(){/**
|
|
15998
16244
|
* Routing service.
|
|
15999
16245
|
* @module purecloud-platform-client-v2/api/RoutingApi
|
|
16000
|
-
* @version
|
|
16246
|
+
* @version 247.0.0
|
|
16001
16247
|
*//**
|
|
16002
16248
|
* Constructs a new RoutingApi.
|
|
16003
16249
|
* @alias module:purecloud-platform-client-v2/api/RoutingApi
|
|
@@ -16773,6 +17019,13 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
16773
17019
|
* @param {Object} body Organization Settings
|
|
16774
17020
|
*/},{key:"patchRoutingSettingsTranscription",value:function patchRoutingSettingsTranscription(body){// verify the required parameter 'body' is set
|
|
16775
17021
|
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling patchRoutingSettingsTranscription';}return this.apiClient.callApi('/api/v2/routing/settings/transcription','PATCH',{},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
17022
|
+
* Update Routing Skill Division
|
|
17023
|
+
*
|
|
17024
|
+
* @param {String} skillId Skill ID
|
|
17025
|
+
* @param {Object} body updateSkillDivisionRequest
|
|
17026
|
+
*/},{key:"patchRoutingSkill",value:function patchRoutingSkill(skillId,body){// verify the required parameter 'skillId' is set
|
|
17027
|
+
if(skillId===undefined||skillId===null||skillId===''){throw'Missing the required parameter "skillId" when calling patchRoutingSkill';}// verify the required parameter 'body' is set
|
|
17028
|
+
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling patchRoutingSkill';}return this.apiClient.callApi('/api/v2/routing/skills/{skillId}','PATCH',{'skillId':skillId},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
16776
17029
|
* Update skill group definition
|
|
16777
17030
|
*
|
|
16778
17031
|
* @param {String} skillGroupId Skill Group ID
|
|
@@ -17136,7 +17389,7 @@ if(userId===undefined||userId===null||userId===''){throw'Missing the required pa
|
|
|
17136
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(){/**
|
|
17137
17390
|
* SCIM service.
|
|
17138
17391
|
* @module purecloud-platform-client-v2/api/SCIMApi
|
|
17139
|
-
* @version
|
|
17392
|
+
* @version 247.0.0
|
|
17140
17393
|
*//**
|
|
17141
17394
|
* Constructs a new SCIMApi.
|
|
17142
17395
|
* @alias module:purecloud-platform-client-v2/api/SCIMApi
|
|
@@ -17361,7 +17614,7 @@ if(userId===undefined||userId===null||userId===''){throw'Missing the required pa
|
|
|
17361
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(){/**
|
|
17362
17615
|
* Scripts service.
|
|
17363
17616
|
* @module purecloud-platform-client-v2/api/ScriptsApi
|
|
17364
|
-
* @version
|
|
17617
|
+
* @version 247.0.0
|
|
17365
17618
|
*//**
|
|
17366
17619
|
* Constructs a new ScriptsApi.
|
|
17367
17620
|
* @alias module:purecloud-platform-client-v2/api/ScriptsApi
|
|
@@ -17507,7 +17760,7 @@ if(scriptId===undefined||scriptId===null||scriptId===''){throw'Missing the requi
|
|
|
17507
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(){/**
|
|
17508
17761
|
* Search service.
|
|
17509
17762
|
* @module purecloud-platform-client-v2/api/SearchApi
|
|
17510
|
-
* @version
|
|
17763
|
+
* @version 247.0.0
|
|
17511
17764
|
*//**
|
|
17512
17765
|
* Constructs a new SearchApi.
|
|
17513
17766
|
* @alias module:purecloud-platform-client-v2/api/SearchApi
|
|
@@ -17577,6 +17830,11 @@ if(q64===undefined||q64===null){throw'Missing the required parameter "q64" when
|
|
|
17577
17830
|
* @param {Array.<String>} opts.expand expand
|
|
17578
17831
|
*/},{key:"getVoicemailSearch",value:function getVoicemailSearch(q64,opts){opts=opts||{};// verify the required parameter 'q64' is set
|
|
17579
17832
|
if(q64===undefined||q64===null){throw'Missing the required parameter "q64" when calling getVoicemailSearch';}return this.apiClient.callApi('/api/v2/voicemail/search','GET',{},{'q64':q64,'expand':this.apiClient.buildCollectionParam(opts['expand'],'multi')},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
17833
|
+
* Search resources.
|
|
17834
|
+
*
|
|
17835
|
+
* @param {Object} body Search request options
|
|
17836
|
+
*/},{key:"postConversationsCustomattributesSearch",value:function postConversationsCustomattributesSearch(body){// verify the required parameter 'body' is set
|
|
17837
|
+
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling postConversationsCustomattributesSearch';}return this.apiClient.callApi('/api/v2/conversations/customattributes/search','POST',{},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
17580
17838
|
* Search conversations
|
|
17581
17839
|
*
|
|
17582
17840
|
* @param {Object} body Search request options
|
|
@@ -17666,7 +17924,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
17666
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(){/**
|
|
17667
17925
|
* Settings service.
|
|
17668
17926
|
* @module purecloud-platform-client-v2/api/SettingsApi
|
|
17669
|
-
* @version
|
|
17927
|
+
* @version 247.0.0
|
|
17670
17928
|
*//**
|
|
17671
17929
|
* Constructs a new SettingsApi.
|
|
17672
17930
|
* @alias module:purecloud-platform-client-v2/api/SettingsApi
|
|
@@ -17738,7 +17996,7 @@ if(agentId===undefined||agentId===null||agentId===''){throw'Missing the required
|
|
|
17738
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(){/**
|
|
17739
17997
|
* SocialMedia service.
|
|
17740
17998
|
* @module purecloud-platform-client-v2/api/SocialMediaApi
|
|
17741
|
-
* @version
|
|
17999
|
+
* @version 247.0.0
|
|
17742
18000
|
*//**
|
|
17743
18001
|
* Constructs a new SocialMediaApi.
|
|
17744
18002
|
* @alias module:purecloud-platform-client-v2/api/SocialMediaApi
|
|
@@ -17773,6 +18031,16 @@ if(topicId===undefined||topicId===null||topicId===''){throw'Missing the required
|
|
|
17773
18031
|
*/},{key:"deleteSocialmediaTopicDataingestionrulesFacebookFacebookIngestionRuleId",value:function deleteSocialmediaTopicDataingestionrulesFacebookFacebookIngestionRuleId(topicId,facebookIngestionRuleId,opts){opts=opts||{};// verify the required parameter 'topicId' is set
|
|
17774
18032
|
if(topicId===undefined||topicId===null||topicId===''){throw'Missing the required parameter "topicId" when calling deleteSocialmediaTopicDataingestionrulesFacebookFacebookIngestionRuleId';}// verify the required parameter 'facebookIngestionRuleId' is set
|
|
17775
18033
|
if(facebookIngestionRuleId===undefined||facebookIngestionRuleId===null||facebookIngestionRuleId===''){throw'Missing the required parameter "facebookIngestionRuleId" when calling deleteSocialmediaTopicDataingestionrulesFacebookFacebookIngestionRuleId';}return this.apiClient.callApi('/api/v2/socialmedia/topics/{topicId}/dataingestionrules/facebook/{facebookIngestionRuleId}','DELETE',{'topicId':topicId,'facebookIngestionRuleId':facebookIngestionRuleId},{'hardDelete':opts['hardDelete']},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
18034
|
+
* Delete a Google Business Profile data ingestion rule.
|
|
18035
|
+
*
|
|
18036
|
+
* @param {String} topicId topicId
|
|
18037
|
+
* @param {String} googleBusinessProfileIngestionRuleId googleBusinessProfileIngestionRuleId
|
|
18038
|
+
* @param {Object} opts Optional parameters
|
|
18039
|
+
* @param {Boolean} opts.hardDelete Determines whether a Google Business Profile data ingestion rule should be soft-deleted (have it's state set to deleted) or hard-deleted (permanently removed). Set to false (soft-delete) by default. (default to false)
|
|
18040
|
+
* deleteSocialmediaTopicDataingestionrulesGooglebusinessprofileGoogleBusinessProfileIngestionRuleId is a preview method and is subject to both breaking and non-breaking changes at any time without notice
|
|
18041
|
+
*/},{key:"deleteSocialmediaTopicDataingestionrulesGooglebusinessprofileGoogleBusinessProfileIngestionRuleId",value:function deleteSocialmediaTopicDataingestionrulesGooglebusinessprofileGoogleBusinessProfileIngestionRuleId(topicId,googleBusinessProfileIngestionRuleId,opts){opts=opts||{};// verify the required parameter 'topicId' is set
|
|
18042
|
+
if(topicId===undefined||topicId===null||topicId===''){throw'Missing the required parameter "topicId" when calling deleteSocialmediaTopicDataingestionrulesGooglebusinessprofileGoogleBusinessProfileIngestionRuleId';}// verify the required parameter 'googleBusinessProfileIngestionRuleId' is set
|
|
18043
|
+
if(googleBusinessProfileIngestionRuleId===undefined||googleBusinessProfileIngestionRuleId===null||googleBusinessProfileIngestionRuleId===''){throw'Missing the required parameter "googleBusinessProfileIngestionRuleId" when calling deleteSocialmediaTopicDataingestionrulesGooglebusinessprofileGoogleBusinessProfileIngestionRuleId';}return this.apiClient.callApi('/api/v2/socialmedia/topics/{topicId}/dataingestionrules/googlebusinessprofile/{googleBusinessProfileIngestionRuleId}','DELETE',{'topicId':topicId,'googleBusinessProfileIngestionRuleId':googleBusinessProfileIngestionRuleId},{'hardDelete':opts['hardDelete']},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
17776
18044
|
* Delete a Instagram data ingestion rule.
|
|
17777
18045
|
*
|
|
17778
18046
|
* @param {String} topicId topicId
|
|
@@ -17886,6 +18154,40 @@ if(dataIngestionRuleVersion===undefined||dataIngestionRuleVersion===null||dataIn
|
|
|
17886
18154
|
*/},{key:"getSocialmediaTopicDataingestionrulesFacebookFacebookIngestionRuleIdVersions",value:function getSocialmediaTopicDataingestionrulesFacebookFacebookIngestionRuleIdVersions(topicId,facebookIngestionRuleId,opts){opts=opts||{};// verify the required parameter 'topicId' is set
|
|
17887
18155
|
if(topicId===undefined||topicId===null||topicId===''){throw'Missing the required parameter "topicId" when calling getSocialmediaTopicDataingestionrulesFacebookFacebookIngestionRuleIdVersions';}// verify the required parameter 'facebookIngestionRuleId' is set
|
|
17888
18156
|
if(facebookIngestionRuleId===undefined||facebookIngestionRuleId===null||facebookIngestionRuleId===''){throw'Missing the required parameter "facebookIngestionRuleId" when calling getSocialmediaTopicDataingestionrulesFacebookFacebookIngestionRuleIdVersions';}return this.apiClient.callApi('/api/v2/socialmedia/topics/{topicId}/dataingestionrules/facebook/{facebookIngestionRuleId}/versions','GET',{'topicId':topicId,'facebookIngestionRuleId':facebookIngestionRuleId},{'pageNumber':opts['pageNumber'],'pageSize':opts['pageSize'],'includeDeleted':opts['includeDeleted']},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
18157
|
+
* Get a single Google Business Profile data ingestion rule.
|
|
18158
|
+
*
|
|
18159
|
+
* @param {String} topicId topicId
|
|
18160
|
+
* @param {String} googleBusinessProfileIngestionRuleId googleBusinessProfileIngestionRuleId
|
|
18161
|
+
* @param {Object} opts Optional parameters
|
|
18162
|
+
* @param {Boolean} opts.includeDeleted Determines whether to include soft-deleted items in the result.
|
|
18163
|
+
* getSocialmediaTopicDataingestionrulesGooglebusinessprofileGoogleBusinessProfileIngestionRuleId is a preview method and is subject to both breaking and non-breaking changes at any time without notice
|
|
18164
|
+
*/},{key:"getSocialmediaTopicDataingestionrulesGooglebusinessprofileGoogleBusinessProfileIngestionRuleId",value:function getSocialmediaTopicDataingestionrulesGooglebusinessprofileGoogleBusinessProfileIngestionRuleId(topicId,googleBusinessProfileIngestionRuleId,opts){opts=opts||{};// verify the required parameter 'topicId' is set
|
|
18165
|
+
if(topicId===undefined||topicId===null||topicId===''){throw'Missing the required parameter "topicId" when calling getSocialmediaTopicDataingestionrulesGooglebusinessprofileGoogleBusinessProfileIngestionRuleId';}// verify the required parameter 'googleBusinessProfileIngestionRuleId' is set
|
|
18166
|
+
if(googleBusinessProfileIngestionRuleId===undefined||googleBusinessProfileIngestionRuleId===null||googleBusinessProfileIngestionRuleId===''){throw'Missing the required parameter "googleBusinessProfileIngestionRuleId" when calling getSocialmediaTopicDataingestionrulesGooglebusinessprofileGoogleBusinessProfileIngestionRuleId';}return this.apiClient.callApi('/api/v2/socialmedia/topics/{topicId}/dataingestionrules/googlebusinessprofile/{googleBusinessProfileIngestionRuleId}','GET',{'topicId':topicId,'googleBusinessProfileIngestionRuleId':googleBusinessProfileIngestionRuleId},{'includeDeleted':opts['includeDeleted']},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
18167
|
+
* Get a single Google Business Profile data ingestion rule version.
|
|
18168
|
+
*
|
|
18169
|
+
* @param {String} topicId topicId
|
|
18170
|
+
* @param {String} googleBusinessProfileIngestionRuleId googleBusinessProfileIngestionRuleId
|
|
18171
|
+
* @param {String} dataIngestionRuleVersion version
|
|
18172
|
+
* @param {Object} opts Optional parameters
|
|
18173
|
+
* @param {Boolean} opts.includeDeleted Determines whether to include soft-deleted item in the result.
|
|
18174
|
+
* getSocialmediaTopicDataingestionrulesGooglebusinessprofileGoogleBusinessProfileIngestionRuleIdVersion is a preview method and is subject to both breaking and non-breaking changes at any time without notice
|
|
18175
|
+
*/},{key:"getSocialmediaTopicDataingestionrulesGooglebusinessprofileGoogleBusinessProfileIngestionRuleIdVersion",value:function getSocialmediaTopicDataingestionrulesGooglebusinessprofileGoogleBusinessProfileIngestionRuleIdVersion(topicId,googleBusinessProfileIngestionRuleId,dataIngestionRuleVersion,opts){opts=opts||{};// verify the required parameter 'topicId' is set
|
|
18176
|
+
if(topicId===undefined||topicId===null||topicId===''){throw'Missing the required parameter "topicId" when calling getSocialmediaTopicDataingestionrulesGooglebusinessprofileGoogleBusinessProfileIngestionRuleIdVersion';}// verify the required parameter 'googleBusinessProfileIngestionRuleId' is set
|
|
18177
|
+
if(googleBusinessProfileIngestionRuleId===undefined||googleBusinessProfileIngestionRuleId===null||googleBusinessProfileIngestionRuleId===''){throw'Missing the required parameter "googleBusinessProfileIngestionRuleId" when calling getSocialmediaTopicDataingestionrulesGooglebusinessprofileGoogleBusinessProfileIngestionRuleIdVersion';}// verify the required parameter 'dataIngestionRuleVersion' is set
|
|
18178
|
+
if(dataIngestionRuleVersion===undefined||dataIngestionRuleVersion===null||dataIngestionRuleVersion===''){throw'Missing the required parameter "dataIngestionRuleVersion" when calling getSocialmediaTopicDataingestionrulesGooglebusinessprofileGoogleBusinessProfileIngestionRuleIdVersion';}return this.apiClient.callApi('/api/v2/socialmedia/topics/{topicId}/dataingestionrules/googlebusinessprofile/{googleBusinessProfileIngestionRuleId}/versions/{dataIngestionRuleVersion}','GET',{'topicId':topicId,'googleBusinessProfileIngestionRuleId':googleBusinessProfileIngestionRuleId,'dataIngestionRuleVersion':dataIngestionRuleVersion},{'includeDeleted':opts['includeDeleted']},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
18179
|
+
* Get the Google Business Profile data ingestion rule versions.
|
|
18180
|
+
*
|
|
18181
|
+
* @param {String} topicId topicId
|
|
18182
|
+
* @param {String} googleBusinessProfileIngestionRuleId googleBusinessProfileIngestionRuleId
|
|
18183
|
+
* @param {Object} opts Optional parameters
|
|
18184
|
+
* @param {Number} opts.pageNumber Page number (default to 1)
|
|
18185
|
+
* @param {Number} opts.pageSize Page size (default to 25)
|
|
18186
|
+
* @param {Boolean} opts.includeDeleted Determines whether to include soft-deleted items in the result.
|
|
18187
|
+
* getSocialmediaTopicDataingestionrulesGooglebusinessprofileGoogleBusinessProfileIngestionRuleIdVersions is a preview method and is subject to both breaking and non-breaking changes at any time without notice
|
|
18188
|
+
*/},{key:"getSocialmediaTopicDataingestionrulesGooglebusinessprofileGoogleBusinessProfileIngestionRuleIdVersions",value:function getSocialmediaTopicDataingestionrulesGooglebusinessprofileGoogleBusinessProfileIngestionRuleIdVersions(topicId,googleBusinessProfileIngestionRuleId,opts){opts=opts||{};// verify the required parameter 'topicId' is set
|
|
18189
|
+
if(topicId===undefined||topicId===null||topicId===''){throw'Missing the required parameter "topicId" when calling getSocialmediaTopicDataingestionrulesGooglebusinessprofileGoogleBusinessProfileIngestionRuleIdVersions';}// verify the required parameter 'googleBusinessProfileIngestionRuleId' is set
|
|
18190
|
+
if(googleBusinessProfileIngestionRuleId===undefined||googleBusinessProfileIngestionRuleId===null||googleBusinessProfileIngestionRuleId===''){throw'Missing the required parameter "googleBusinessProfileIngestionRuleId" when calling getSocialmediaTopicDataingestionrulesGooglebusinessprofileGoogleBusinessProfileIngestionRuleIdVersions';}return this.apiClient.callApi('/api/v2/socialmedia/topics/{topicId}/dataingestionrules/googlebusinessprofile/{googleBusinessProfileIngestionRuleId}/versions','GET',{'topicId':topicId,'googleBusinessProfileIngestionRuleId':googleBusinessProfileIngestionRuleId},{'pageNumber':opts['pageNumber'],'pageSize':opts['pageSize'],'includeDeleted':opts['includeDeleted']},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
17889
18191
|
* Get a single Instagram data ingestion rule.
|
|
17890
18192
|
*
|
|
17891
18193
|
* @param {String} topicId topicId
|
|
@@ -18005,6 +18307,16 @@ if(topicId===undefined||topicId===null||topicId===''){throw'Missing the required
|
|
|
18005
18307
|
*/},{key:"patchSocialmediaTopicDataingestionrulesFacebookFacebookIngestionRuleId",value:function patchSocialmediaTopicDataingestionrulesFacebookFacebookIngestionRuleId(topicId,facebookIngestionRuleId,opts){opts=opts||{};// verify the required parameter 'topicId' is set
|
|
18006
18308
|
if(topicId===undefined||topicId===null||topicId===''){throw'Missing the required parameter "topicId" when calling patchSocialmediaTopicDataingestionrulesFacebookFacebookIngestionRuleId';}// verify the required parameter 'facebookIngestionRuleId' is set
|
|
18007
18309
|
if(facebookIngestionRuleId===undefined||facebookIngestionRuleId===null||facebookIngestionRuleId===''){throw'Missing the required parameter "facebookIngestionRuleId" when calling patchSocialmediaTopicDataingestionrulesFacebookFacebookIngestionRuleId';}return this.apiClient.callApi('/api/v2/socialmedia/topics/{topicId}/dataingestionrules/facebook/{facebookIngestionRuleId}','PATCH',{'topicId':topicId,'facebookIngestionRuleId':facebookIngestionRuleId},{},{},{},opts['body'],['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
18310
|
+
* Update the status of a Google Business Profile data ingestion rule.
|
|
18311
|
+
*
|
|
18312
|
+
* @param {String} topicId topicId
|
|
18313
|
+
* @param {String} googleBusinessProfileIngestionRuleId googleBusinessProfileIngestionRuleId
|
|
18314
|
+
* @param {Object} opts Optional parameters
|
|
18315
|
+
* @param {Object} opts.body
|
|
18316
|
+
* patchSocialmediaTopicDataingestionrulesGooglebusinessprofileGoogleBusinessProfileIngestionRuleId is a preview method and is subject to both breaking and non-breaking changes at any time without notice
|
|
18317
|
+
*/},{key:"patchSocialmediaTopicDataingestionrulesGooglebusinessprofileGoogleBusinessProfileIngestionRuleId",value:function patchSocialmediaTopicDataingestionrulesGooglebusinessprofileGoogleBusinessProfileIngestionRuleId(topicId,googleBusinessProfileIngestionRuleId,opts){opts=opts||{};// verify the required parameter 'topicId' is set
|
|
18318
|
+
if(topicId===undefined||topicId===null||topicId===''){throw'Missing the required parameter "topicId" when calling patchSocialmediaTopicDataingestionrulesGooglebusinessprofileGoogleBusinessProfileIngestionRuleId';}// verify the required parameter 'googleBusinessProfileIngestionRuleId' is set
|
|
18319
|
+
if(googleBusinessProfileIngestionRuleId===undefined||googleBusinessProfileIngestionRuleId===null||googleBusinessProfileIngestionRuleId===''){throw'Missing the required parameter "googleBusinessProfileIngestionRuleId" when calling patchSocialmediaTopicDataingestionrulesGooglebusinessprofileGoogleBusinessProfileIngestionRuleId';}return this.apiClient.callApi('/api/v2/socialmedia/topics/{topicId}/dataingestionrules/googlebusinessprofile/{googleBusinessProfileIngestionRuleId}','PATCH',{'topicId':topicId,'googleBusinessProfileIngestionRuleId':googleBusinessProfileIngestionRuleId},{},{},{},opts['body'],['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
18008
18320
|
* Update the status of a Instagram data ingestion rule.
|
|
18009
18321
|
*
|
|
18010
18322
|
* @param {String} topicId topicId
|
|
@@ -18061,6 +18373,14 @@ if(divisionId===undefined||divisionId===null){throw'Missing the required paramet
|
|
|
18061
18373
|
* @param {Object} opts.body
|
|
18062
18374
|
*/},{key:"postSocialmediaTopicDataingestionrulesFacebook",value:function postSocialmediaTopicDataingestionrulesFacebook(topicId,opts){opts=opts||{};// verify the required parameter 'topicId' is set
|
|
18063
18375
|
if(topicId===undefined||topicId===null||topicId===''){throw'Missing the required parameter "topicId" when calling postSocialmediaTopicDataingestionrulesFacebook';}return this.apiClient.callApi('/api/v2/socialmedia/topics/{topicId}/dataingestionrules/facebook','POST',{'topicId':topicId},{},{},{},opts['body'],['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
18376
|
+
* Create a Google Business Profile data ingestion rule.
|
|
18377
|
+
*
|
|
18378
|
+
* @param {String} topicId topicId
|
|
18379
|
+
* @param {Object} opts Optional parameters
|
|
18380
|
+
* @param {Object} opts.body
|
|
18381
|
+
* postSocialmediaTopicDataingestionrulesGooglebusinessprofile is a preview method and is subject to both breaking and non-breaking changes at any time without notice
|
|
18382
|
+
*/},{key:"postSocialmediaTopicDataingestionrulesGooglebusinessprofile",value:function postSocialmediaTopicDataingestionrulesGooglebusinessprofile(topicId,opts){opts=opts||{};// verify the required parameter 'topicId' is set
|
|
18383
|
+
if(topicId===undefined||topicId===null||topicId===''){throw'Missing the required parameter "topicId" when calling postSocialmediaTopicDataingestionrulesGooglebusinessprofile';}return this.apiClient.callApi('/api/v2/socialmedia/topics/{topicId}/dataingestionrules/googlebusinessprofile','POST',{'topicId':topicId},{},{},{},opts['body'],['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
18064
18384
|
* Create an Instagram data ingestion rule.
|
|
18065
18385
|
*
|
|
18066
18386
|
* @param {String} topicId topicId
|
|
@@ -18126,6 +18446,16 @@ if(escalationRuleId===undefined||escalationRuleId===null||escalationRuleId==='')
|
|
|
18126
18446
|
*/},{key:"putSocialmediaTopicDataingestionrulesFacebookFacebookIngestionRuleId",value:function putSocialmediaTopicDataingestionrulesFacebookFacebookIngestionRuleId(topicId,facebookIngestionRuleId,opts){opts=opts||{};// verify the required parameter 'topicId' is set
|
|
18127
18447
|
if(topicId===undefined||topicId===null||topicId===''){throw'Missing the required parameter "topicId" when calling putSocialmediaTopicDataingestionrulesFacebookFacebookIngestionRuleId';}// verify the required parameter 'facebookIngestionRuleId' is set
|
|
18128
18448
|
if(facebookIngestionRuleId===undefined||facebookIngestionRuleId===null||facebookIngestionRuleId===''){throw'Missing the required parameter "facebookIngestionRuleId" when calling putSocialmediaTopicDataingestionrulesFacebookFacebookIngestionRuleId';}return this.apiClient.callApi('/api/v2/socialmedia/topics/{topicId}/dataingestionrules/facebook/{facebookIngestionRuleId}','PUT',{'topicId':topicId,'facebookIngestionRuleId':facebookIngestionRuleId},{},{},{},opts['body'],['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
18449
|
+
* Update the Google Business Profile data ingestion rule.
|
|
18450
|
+
*
|
|
18451
|
+
* @param {String} topicId topicId
|
|
18452
|
+
* @param {String} googleBusinessProfileIngestionRuleId googleBusinessProfileIngestionRuleId
|
|
18453
|
+
* @param {Object} opts Optional parameters
|
|
18454
|
+
* @param {Object} opts.body
|
|
18455
|
+
* putSocialmediaTopicDataingestionrulesGooglebusinessprofileGoogleBusinessProfileIngestionRuleId is a preview method and is subject to both breaking and non-breaking changes at any time without notice
|
|
18456
|
+
*/},{key:"putSocialmediaTopicDataingestionrulesGooglebusinessprofileGoogleBusinessProfileIngestionRuleId",value:function putSocialmediaTopicDataingestionrulesGooglebusinessprofileGoogleBusinessProfileIngestionRuleId(topicId,googleBusinessProfileIngestionRuleId,opts){opts=opts||{};// verify the required parameter 'topicId' is set
|
|
18457
|
+
if(topicId===undefined||topicId===null||topicId===''){throw'Missing the required parameter "topicId" when calling putSocialmediaTopicDataingestionrulesGooglebusinessprofileGoogleBusinessProfileIngestionRuleId';}// verify the required parameter 'googleBusinessProfileIngestionRuleId' is set
|
|
18458
|
+
if(googleBusinessProfileIngestionRuleId===undefined||googleBusinessProfileIngestionRuleId===null||googleBusinessProfileIngestionRuleId===''){throw'Missing the required parameter "googleBusinessProfileIngestionRuleId" when calling putSocialmediaTopicDataingestionrulesGooglebusinessprofileGoogleBusinessProfileIngestionRuleId';}return this.apiClient.callApi('/api/v2/socialmedia/topics/{topicId}/dataingestionrules/googlebusinessprofile/{googleBusinessProfileIngestionRuleId}','PUT',{'topicId':topicId,'googleBusinessProfileIngestionRuleId':googleBusinessProfileIngestionRuleId},{},{},{},opts['body'],['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
18129
18459
|
* Update the Instagram data ingestion rule.
|
|
18130
18460
|
*
|
|
18131
18461
|
* @param {String} topicId topicId
|
|
@@ -18155,7 +18485,7 @@ if(topicId===undefined||topicId===null||topicId===''){throw'Missing the required
|
|
|
18155
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(){/**
|
|
18156
18486
|
* SpeechTextAnalytics service.
|
|
18157
18487
|
* @module purecloud-platform-client-v2/api/SpeechTextAnalyticsApi
|
|
18158
|
-
* @version
|
|
18488
|
+
* @version 247.0.0
|
|
18159
18489
|
*//**
|
|
18160
18490
|
* Constructs a new SpeechTextAnalyticsApi.
|
|
18161
18491
|
* @alias module:purecloud-platform-client-v2/api/SpeechTextAnalyticsApi
|
|
@@ -18534,7 +18864,7 @@ if(topicId===undefined||topicId===null||topicId===''){throw'Missing the required
|
|
|
18534
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(){/**
|
|
18535
18865
|
* Stations service.
|
|
18536
18866
|
* @module purecloud-platform-client-v2/api/StationsApi
|
|
18537
|
-
* @version
|
|
18867
|
+
* @version 247.0.0
|
|
18538
18868
|
*//**
|
|
18539
18869
|
* Constructs a new StationsApi.
|
|
18540
18870
|
* @alias module:purecloud-platform-client-v2/api/StationsApi
|
|
@@ -18566,7 +18896,7 @@ if(stationId===undefined||stationId===null||stationId===''){throw'Missing the re
|
|
|
18566
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(){/**
|
|
18567
18897
|
* Suggest service.
|
|
18568
18898
|
* @module purecloud-platform-client-v2/api/SuggestApi
|
|
18569
|
-
* @version
|
|
18899
|
+
* @version 247.0.0
|
|
18570
18900
|
*//**
|
|
18571
18901
|
* Constructs a new SuggestApi.
|
|
18572
18902
|
* @alias module:purecloud-platform-client-v2/api/SuggestApi
|
|
@@ -18606,7 +18936,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
18606
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(){/**
|
|
18607
18937
|
* TaskManagement service.
|
|
18608
18938
|
* @module purecloud-platform-client-v2/api/TaskManagementApi
|
|
18609
|
-
* @version
|
|
18939
|
+
* @version 247.0.0
|
|
18610
18940
|
*//**
|
|
18611
18941
|
* Constructs a new TaskManagementApi.
|
|
18612
18942
|
* @alias module:purecloud-platform-client-v2/api/TaskManagementApi
|
|
@@ -19114,7 +19444,7 @@ if(schemaId===undefined||schemaId===null||schemaId===''){throw'Missing the requi
|
|
|
19114
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(){/**
|
|
19115
19445
|
* Teams service.
|
|
19116
19446
|
* @module purecloud-platform-client-v2/api/TeamsApi
|
|
19117
|
-
* @version
|
|
19447
|
+
* @version 247.0.0
|
|
19118
19448
|
*//**
|
|
19119
19449
|
* Constructs a new TeamsApi.
|
|
19120
19450
|
* @alias module:purecloud-platform-client-v2/api/TeamsApi
|
|
@@ -19194,7 +19524,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
19194
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(){/**
|
|
19195
19525
|
* Telephony service.
|
|
19196
19526
|
* @module purecloud-platform-client-v2/api/TelephonyApi
|
|
19197
|
-
* @version
|
|
19527
|
+
* @version 247.0.0
|
|
19198
19528
|
*//**
|
|
19199
19529
|
* Constructs a new TelephonyApi.
|
|
19200
19530
|
* @alias module:purecloud-platform-client-v2/api/TelephonyApi
|
|
@@ -19210,6 +19540,11 @@ if(agentId===undefined||agentId===null||agentId===''){throw'Missing the required
|
|
|
19210
19540
|
* Get the agent's own greetings.
|
|
19211
19541
|
*
|
|
19212
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']);}/**
|
|
19213
19548
|
* Retrieve the list of AWS regions media can stream through.
|
|
19214
19549
|
*
|
|
19215
19550
|
*/},{key:"getTelephonyMediaregions",value:function getTelephonyMediaregions(){return this.apiClient.callApi('/api/v2/telephony/mediaregions','GET',{},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
@@ -19261,7 +19596,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
19261
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(){/**
|
|
19262
19597
|
* TelephonyProvidersEdge service.
|
|
19263
19598
|
* @module purecloud-platform-client-v2/api/TelephonyProvidersEdgeApi
|
|
19264
|
-
* @version
|
|
19599
|
+
* @version 247.0.0
|
|
19265
19600
|
*//**
|
|
19266
19601
|
* Constructs a new TelephonyProvidersEdgeApi.
|
|
19267
19602
|
* @alias module:purecloud-platform-client-v2/api/TelephonyProvidersEdgeApi
|
|
@@ -20109,7 +20444,7 @@ if(trunkBaseSettingsId===undefined||trunkBaseSettingsId===null||trunkBaseSetting
|
|
|
20109
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(){/**
|
|
20110
20445
|
* Textbots service.
|
|
20111
20446
|
* @module purecloud-platform-client-v2/api/TextbotsApi
|
|
20112
|
-
* @version
|
|
20447
|
+
* @version 247.0.0
|
|
20113
20448
|
*//**
|
|
20114
20449
|
* Constructs a new TextbotsApi.
|
|
20115
20450
|
* @alias module:purecloud-platform-client-v2/api/TextbotsApi
|
|
@@ -20145,7 +20480,7 @@ if(launchRequest===undefined||launchRequest===null){throw'Missing the required p
|
|
|
20145
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(){/**
|
|
20146
20481
|
* Tokens service.
|
|
20147
20482
|
* @module purecloud-platform-client-v2/api/TokensApi
|
|
20148
|
-
* @version
|
|
20483
|
+
* @version 247.0.0
|
|
20149
20484
|
*//**
|
|
20150
20485
|
* Constructs a new TokensApi.
|
|
20151
20486
|
* @alias module:purecloud-platform-client-v2/api/TokensApi
|
|
@@ -20179,7 +20514,7 @@ if(userId===undefined||userId===null||userId===''){throw'Missing the required pa
|
|
|
20179
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(){/**
|
|
20180
20515
|
* Uploads service.
|
|
20181
20516
|
* @module purecloud-platform-client-v2/api/UploadsApi
|
|
20182
|
-
* @version
|
|
20517
|
+
* @version 247.0.0
|
|
20183
20518
|
*//**
|
|
20184
20519
|
* Constructs a new UploadsApi.
|
|
20185
20520
|
* @alias module:purecloud-platform-client-v2/api/UploadsApi
|
|
@@ -20252,7 +20587,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
20252
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(){/**
|
|
20253
20588
|
* Usage service.
|
|
20254
20589
|
* @module purecloud-platform-client-v2/api/UsageApi
|
|
20255
|
-
* @version
|
|
20590
|
+
* @version 247.0.0
|
|
20256
20591
|
*//**
|
|
20257
20592
|
* Constructs a new UsageApi.
|
|
20258
20593
|
* @alias module:purecloud-platform-client-v2/api/UsageApi
|
|
@@ -20336,7 +20671,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
20336
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(){/**
|
|
20337
20672
|
* UserRecordings service.
|
|
20338
20673
|
* @module purecloud-platform-client-v2/api/UserRecordingsApi
|
|
20339
|
-
* @version
|
|
20674
|
+
* @version 247.0.0
|
|
20340
20675
|
*//**
|
|
20341
20676
|
* Constructs a new UserRecordingsApi.
|
|
20342
20677
|
* @alias module:purecloud-platform-client-v2/api/UserRecordingsApi
|
|
@@ -20384,7 +20719,7 @@ if(recordingId===undefined||recordingId===null||recordingId===''){throw'Missing
|
|
|
20384
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(){/**
|
|
20385
20720
|
* Users service.
|
|
20386
20721
|
* @module purecloud-platform-client-v2/api/UsersApi
|
|
20387
|
-
* @version
|
|
20722
|
+
* @version 247.0.0
|
|
20388
20723
|
*//**
|
|
20389
20724
|
* Constructs a new UsersApi.
|
|
20390
20725
|
* @alias module:purecloud-platform-client-v2/api/UsersApi
|
|
@@ -21234,7 +21569,7 @@ if(schemaId===undefined||schemaId===null||schemaId===''){throw'Missing the requi
|
|
|
21234
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(){/**
|
|
21235
21570
|
* UsersRules service.
|
|
21236
21571
|
* @module purecloud-platform-client-v2/api/UsersRulesApi
|
|
21237
|
-
* @version
|
|
21572
|
+
* @version 247.0.0
|
|
21238
21573
|
*//**
|
|
21239
21574
|
* Constructs a new UsersRulesApi.
|
|
21240
21575
|
* @alias module:purecloud-platform-client-v2/api/UsersRulesApi
|
|
@@ -21245,13 +21580,11 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
21245
21580
|
* Delete an existing users rule
|
|
21246
21581
|
*
|
|
21247
21582
|
* @param {String} ruleId The id of the rule
|
|
21248
|
-
* deleteUsersRule is a preview method and is subject to both breaking and non-breaking changes at any time without notice
|
|
21249
21583
|
*/return _createClass(UsersRulesApi,[{key:"deleteUsersRule",value:function deleteUsersRule(ruleId){// verify the required parameter 'ruleId' is set
|
|
21250
21584
|
if(ruleId===undefined||ruleId===null||ruleId===''){throw'Missing the required parameter "ruleId" when calling deleteUsersRule';}return this.apiClient.callApi('/api/v2/users/rules/{ruleId}','DELETE',{'ruleId':ruleId},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
21251
21585
|
* Get a users rule
|
|
21252
21586
|
*
|
|
21253
21587
|
* @param {String} ruleId The ID of the rule to retrieve
|
|
21254
|
-
* getUsersRule is a preview method and is subject to both breaking and non-breaking changes at any time without notice
|
|
21255
21588
|
*/},{key:"getUsersRule",value:function getUsersRule(ruleId){// verify the required parameter 'ruleId' is set
|
|
21256
21589
|
if(ruleId===undefined||ruleId===null||ruleId===''){throw'Missing the required parameter "ruleId" when calling getUsersRule';}return this.apiClient.callApi('/api/v2/users/rules/{ruleId}','GET',{'ruleId':ruleId},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
21257
21590
|
* Get dependent of a users rule
|
|
@@ -21259,7 +21592,6 @@ if(ruleId===undefined||ruleId===null||ruleId===''){throw'Missing the required pa
|
|
|
21259
21592
|
* @param {String} ruleId The ID of the rule for which to retrieve dependents
|
|
21260
21593
|
* @param {Object} ruleType The type of the dependent
|
|
21261
21594
|
* @param {String} typeId The type ID of the dependent
|
|
21262
|
-
* getUsersRuleDependentTypeId is a preview method and is subject to both breaking and non-breaking changes at any time without notice
|
|
21263
21595
|
*/},{key:"getUsersRuleDependentTypeId",value:function getUsersRuleDependentTypeId(ruleId,ruleType,typeId){// verify the required parameter 'ruleId' is set
|
|
21264
21596
|
if(ruleId===undefined||ruleId===null||ruleId===''){throw'Missing the required parameter "ruleId" when calling getUsersRuleDependentTypeId';}// verify the required parameter 'ruleType' is set
|
|
21265
21597
|
if(ruleType===undefined||ruleType===null||ruleType===''){throw'Missing the required parameter "ruleType" when calling getUsersRuleDependentTypeId';}// verify the required parameter 'typeId' is set
|
|
@@ -21271,7 +21603,6 @@ if(typeId===undefined||typeId===null||typeId===''){throw'Missing the required pa
|
|
|
21271
21603
|
* @param {Number} opts.pageSize Number of results per page (default to 25)
|
|
21272
21604
|
* @param {Number} opts.pageNumber Page number (default to 1)
|
|
21273
21605
|
* @param {Object} opts.sortOrder Sort order for dependents (by last run date, then created date) (default to descending)
|
|
21274
|
-
* getUsersRuleDependents is a preview method and is subject to both breaking and non-breaking changes at any time without notice
|
|
21275
21606
|
*/},{key:"getUsersRuleDependents",value:function getUsersRuleDependents(ruleId,opts){opts=opts||{};// verify the required parameter 'ruleId' is set
|
|
21276
21607
|
if(ruleId===undefined||ruleId===null||ruleId===''){throw'Missing the required parameter "ruleId" when calling getUsersRuleDependents';}return this.apiClient.callApi('/api/v2/users/rules/{ruleId}/dependents','GET',{'ruleId':ruleId},{'pageSize':opts['pageSize'],'pageNumber':opts['pageNumber'],'sortOrder':opts['sortOrder']},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
21277
21608
|
* Get the list of users rules
|
|
@@ -21284,27 +21615,23 @@ if(ruleId===undefined||ruleId===null||ruleId===''){throw'Missing the required pa
|
|
|
21284
21615
|
* @param {Boolean} opts.enabled Whether to list enabled or disabled rules
|
|
21285
21616
|
* @param {String} opts.searchTerm a search term for finding a rule by name
|
|
21286
21617
|
* @param {Object} opts.sortOrder sort rules by name, ascending, descending (default to ascending)
|
|
21287
|
-
* getUsersRules is a preview method and is subject to both breaking and non-breaking changes at any time without notice
|
|
21288
21618
|
*/},{key:"getUsersRules",value:function getUsersRules(types,opts){opts=opts||{};// verify the required parameter 'types' is set
|
|
21289
21619
|
if(types===undefined||types===null){throw'Missing the required parameter "types" when calling getUsersRules';}return this.apiClient.callApi('/api/v2/users/rules','GET',{},{'pageNumber':opts['pageNumber'],'pageSize':opts['pageSize'],'types':this.apiClient.buildCollectionParam(types,'multi'),'expand':this.apiClient.buildCollectionParam(opts['expand'],'multi'),'enabled':opts['enabled'],'searchTerm':opts['searchTerm'],'sortOrder':opts['sortOrder']},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
21290
21620
|
* Get the settings for a specific users rule type
|
|
21291
21621
|
*
|
|
21292
21622
|
* @param {Object} ruleType The type of the rule
|
|
21293
|
-
* getUsersRulesSetting is a preview method and is subject to both breaking and non-breaking changes at any time without notice
|
|
21294
21623
|
*/},{key:"getUsersRulesSetting",value:function getUsersRulesSetting(ruleType){// verify the required parameter 'ruleType' is set
|
|
21295
21624
|
if(ruleType===undefined||ruleType===null||ruleType===''){throw'Missing the required parameter "ruleType" when calling getUsersRulesSetting';}return this.apiClient.callApi('/api/v2/users/rules/settings/{ruleType}','GET',{'ruleType':ruleType},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
21296
21625
|
* Update an existing users rule
|
|
21297
21626
|
* This will update an existing users rule with the specified fields.
|
|
21298
21627
|
* @param {String} ruleId The ID of the rule to update
|
|
21299
21628
|
* @param {Object} body updateRuleRequest
|
|
21300
|
-
* patchUsersRule is a preview method and is subject to both breaking and non-breaking changes at any time without notice
|
|
21301
21629
|
*/},{key:"patchUsersRule",value:function patchUsersRule(ruleId,body){// verify the required parameter 'ruleId' is set
|
|
21302
21630
|
if(ruleId===undefined||ruleId===null||ruleId===''){throw'Missing the required parameter "ruleId" when calling patchUsersRule';}// verify the required parameter 'body' is set
|
|
21303
21631
|
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling patchUsersRule';}return this.apiClient.callApi('/api/v2/users/rules/{ruleId}','PATCH',{'ruleId':ruleId},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
21304
21632
|
* Create a new rule
|
|
21305
21633
|
* This will create a new rule with the specified fields.
|
|
21306
21634
|
* @param {Object} body usersRulesCreateRuleRequest
|
|
21307
|
-
* postUsersRules is a preview method and is subject to both breaking and non-breaking changes at any time without notice
|
|
21308
21635
|
*/},{key:"postUsersRules",value:function postUsersRules(body){// verify the required parameter 'body' is set
|
|
21309
21636
|
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling postUsersRules';}return this.apiClient.callApi('/api/v2/users/rules','POST',{},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
21310
21637
|
* Query the result of a users rule
|
|
@@ -21313,12 +21640,11 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
21313
21640
|
* @param {Object} opts Optional parameters
|
|
21314
21641
|
* @param {Number} opts.pageNumber Page number (default to 1)
|
|
21315
21642
|
* @param {Number} opts.pageSize Number of results per page (default to 25)
|
|
21316
|
-
* postUsersRulesQuery is a preview method and is subject to both breaking and non-breaking changes at any time without notice
|
|
21317
21643
|
*/},{key:"postUsersRulesQuery",value:function postUsersRulesQuery(body,opts){opts=opts||{};// verify the required parameter 'body' is set
|
|
21318
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(){/**
|
|
21319
21645
|
* Utilities service.
|
|
21320
21646
|
* @module purecloud-platform-client-v2/api/UtilitiesApi
|
|
21321
|
-
* @version
|
|
21647
|
+
* @version 247.0.0
|
|
21322
21648
|
*//**
|
|
21323
21649
|
* Constructs a new UtilitiesApi.
|
|
21324
21650
|
* @alias module:purecloud-platform-client-v2/api/UtilitiesApi
|
|
@@ -21345,7 +21671,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
21345
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(){/**
|
|
21346
21672
|
* Voicemail service.
|
|
21347
21673
|
* @module purecloud-platform-client-v2/api/VoicemailApi
|
|
21348
|
-
* @version
|
|
21674
|
+
* @version 247.0.0
|
|
21349
21675
|
*//**
|
|
21350
21676
|
* Constructs a new VoicemailApi.
|
|
21351
21677
|
* @alias module:purecloud-platform-client-v2/api/VoicemailApi
|
|
@@ -21507,7 +21833,7 @@ if(userId===undefined||userId===null||userId===''){throw'Missing the required pa
|
|
|
21507
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(){/**
|
|
21508
21834
|
* WebChat service.
|
|
21509
21835
|
* @module purecloud-platform-client-v2/api/WebChatApi
|
|
21510
|
-
* @version
|
|
21836
|
+
* @version 247.0.0
|
|
21511
21837
|
*//**
|
|
21512
21838
|
* Constructs a new WebChatApi.
|
|
21513
21839
|
* @alias module:purecloud-platform-client-v2/api/WebChatApi
|
|
@@ -21654,7 +21980,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
21654
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(){/**
|
|
21655
21981
|
* WebDeployments service.
|
|
21656
21982
|
* @module purecloud-platform-client-v2/api/WebDeploymentsApi
|
|
21657
|
-
* @version
|
|
21983
|
+
* @version 247.0.0
|
|
21658
21984
|
*//**
|
|
21659
21985
|
* Constructs a new WebDeploymentsApi.
|
|
21660
21986
|
* @alias module:purecloud-platform-client-v2/api/WebDeploymentsApi
|
|
@@ -21693,10 +22019,14 @@ if(sessionId===undefined||sessionId===null||sessionId===''){throw'Missing the re
|
|
|
21693
22019
|
if(configurationId===undefined||configurationId===null||configurationId===''){throw'Missing the required parameter "configurationId" when calling getWebdeploymentsConfigurationVersion';}// verify the required parameter 'versionId' is set
|
|
21694
22020
|
if(versionId===undefined||versionId===null||versionId===''){throw'Missing the required parameter "versionId" when calling getWebdeploymentsConfigurationVersion';}return this.apiClient.callApi('/api/v2/webdeployments/configurations/{configurationId}/versions/{versionId}','GET',{'configurationId':configurationId,'versionId':versionId},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
21695
22021
|
* Get the versions of a configuration
|
|
21696
|
-
*
|
|
22022
|
+
*
|
|
21697
22023
|
* @param {String} configurationId The configuration version ID
|
|
21698
|
-
|
|
21699
|
-
|
|
22024
|
+
* @param {Object} opts Optional parameters
|
|
22025
|
+
* @param {String} opts.pageSize Number of entities to return. Defaults to 300.
|
|
22026
|
+
* @param {String} opts.before The cursor that points to the start of the set of entities that has been returned.
|
|
22027
|
+
* @param {String} opts.after The cursor that points to the end of the set of entities that has been returned.
|
|
22028
|
+
*/},{key:"getWebdeploymentsConfigurationVersions",value:function getWebdeploymentsConfigurationVersions(configurationId,opts){opts=opts||{};// verify the required parameter 'configurationId' is set
|
|
22029
|
+
if(configurationId===undefined||configurationId===null||configurationId===''){throw'Missing the required parameter "configurationId" when calling getWebdeploymentsConfigurationVersions';}return this.apiClient.callApi('/api/v2/webdeployments/configurations/{configurationId}/versions','GET',{'configurationId':configurationId},{'pageSize':opts['pageSize'],'before':opts['before'],'after':opts['after']},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
21700
22030
|
* Get the configuration draft
|
|
21701
22031
|
*
|
|
21702
22032
|
* @param {String} configurationId The configuration version ID
|
|
@@ -21705,8 +22035,11 @@ if(configurationId===undefined||configurationId===null||configurationId===''){th
|
|
|
21705
22035
|
* View configuration drafts
|
|
21706
22036
|
*
|
|
21707
22037
|
* @param {Object} opts Optional parameters
|
|
22038
|
+
* @param {String} opts.pageSize Number of entities to return. Defaults to 300.
|
|
22039
|
+
* @param {String} opts.before The cursor that points to the start of the set of entities that has been returned.
|
|
22040
|
+
* @param {String} opts.after The cursor that points to the end of the set of entities that has been returned.
|
|
21708
22041
|
* @param {Boolean} opts.showOnlyPublished Filter by published status.
|
|
21709
|
-
*/},{key:"getWebdeploymentsConfigurations",value:function getWebdeploymentsConfigurations(opts){opts=opts||{};return this.apiClient.callApi('/api/v2/webdeployments/configurations','GET',{},{'showOnlyPublished':opts['showOnlyPublished']},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
22042
|
+
*/},{key:"getWebdeploymentsConfigurations",value:function getWebdeploymentsConfigurations(opts){opts=opts||{};return this.apiClient.callApi('/api/v2/webdeployments/configurations','GET',{},{'pageSize':opts['pageSize'],'before':opts['before'],'after':opts['after'],'showOnlyPublished':opts['showOnlyPublished']},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
21710
22043
|
* Get a deployment
|
|
21711
22044
|
*
|
|
21712
22045
|
* @param {String} deploymentId The deployment ID
|
|
@@ -21737,8 +22070,11 @@ if(deploymentId===undefined||deploymentId===null||deploymentId===''){throw'Missi
|
|
|
21737
22070
|
* Get deployments
|
|
21738
22071
|
*
|
|
21739
22072
|
* @param {Object} opts Optional parameters
|
|
22073
|
+
* @param {String} opts.pageSize Number of entities to return. Defaults to 300.
|
|
22074
|
+
* @param {String} opts.before The cursor that points to the start of the set of entities that has been returned.
|
|
22075
|
+
* @param {String} opts.after The cursor that points to the end of the set of entities that has been returned.
|
|
21740
22076
|
* @param {Array.<String>} opts.expand The specified entity attributes will be filled. Comma separated values expected.
|
|
21741
|
-
*/},{key:"getWebdeploymentsDeployments",value:function getWebdeploymentsDeployments(opts){opts=opts||{};return this.apiClient.callApi('/api/v2/webdeployments/deployments','GET',{},{'expand':this.apiClient.buildCollectionParam(opts['expand'],'multi')},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
22077
|
+
*/},{key:"getWebdeploymentsDeployments",value:function getWebdeploymentsDeployments(opts){opts=opts||{};return this.apiClient.callApi('/api/v2/webdeployments/deployments','GET',{},{'pageSize':opts['pageSize'],'before':opts['before'],'after':opts['after'],'expand':this.apiClient.buildCollectionParam(opts['expand'],'multi')},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
|
|
21742
22078
|
* Publish the configuration draft and create a new version
|
|
21743
22079
|
*
|
|
21744
22080
|
* @param {String} configurationId The configuration version ID
|
|
@@ -21787,7 +22123,7 @@ if(deploymentId===undefined||deploymentId===null||deploymentId===''){throw'Missi
|
|
|
21787
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(){/**
|
|
21788
22124
|
* WebMessaging service.
|
|
21789
22125
|
* @module purecloud-platform-client-v2/api/WebMessagingApi
|
|
21790
|
-
* @version
|
|
22126
|
+
* @version 247.0.0
|
|
21791
22127
|
*//**
|
|
21792
22128
|
* Constructs a new WebMessagingApi.
|
|
21793
22129
|
* @alias module:purecloud-platform-client-v2/api/WebMessagingApi
|
|
@@ -21828,7 +22164,7 @@ if(tokenId===undefined||tokenId===null||tokenId===''){throw'Missing the required
|
|
|
21828
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(){/**
|
|
21829
22165
|
* Widgets service.
|
|
21830
22166
|
* @module purecloud-platform-client-v2/api/WidgetsApi
|
|
21831
|
-
* @version
|
|
22167
|
+
* @version 247.0.0
|
|
21832
22168
|
*//**
|
|
21833
22169
|
* Constructs a new WidgetsApi.
|
|
21834
22170
|
* @alias module:purecloud-platform-client-v2/api/WidgetsApi
|
|
@@ -21868,7 +22204,7 @@ if(deploymentId===undefined||deploymentId===null||deploymentId===''){throw'Missi
|
|
|
21868
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(){/**
|
|
21869
22205
|
* WorkforceManagement service.
|
|
21870
22206
|
* @module purecloud-platform-client-v2/api/WorkforceManagementApi
|
|
21871
|
-
* @version
|
|
22207
|
+
* @version 247.0.0
|
|
21872
22208
|
*//**
|
|
21873
22209
|
* Constructs a new WorkforceManagementApi.
|
|
21874
22210
|
* @alias module:purecloud-platform-client-v2/api/WorkforceManagementApi
|
|
@@ -23891,7 +24227,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
23891
24227
|
* </pre>
|
|
23892
24228
|
* </p>
|
|
23893
24229
|
* @module purecloud-platform-client-v2/index
|
|
23894
|
-
* @version
|
|
24230
|
+
* @version 247.0.0
|
|
23895
24231
|
*/var platformClient=/*#__PURE__*/_createClass(function platformClient(){_classCallCheck(this,platformClient);/**
|
|
23896
24232
|
* The ApiClient constructor.
|
|
23897
24233
|
* @property {module:purecloud-platform-client-v2/ApiClient}
|