purecloud-platform-client-v2 254.0.0 → 255.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +3 -3
- package/dist/node/purecloud-platform-client-v2.js +815 -95
- package/dist/web-amd/purecloud-platform-client-v2.js +816 -95
- package/dist/web-amd/purecloud-platform-client-v2.min.js +1 -1
- package/dist/web-cjs/bundle.js +285 -94
- package/dist/web-cjs/purecloud-platform-client-v2.js +292 -2913
- package/dist/web-cjs/purecloud-platform-client-v2.min.js +1 -1
- package/index.d.ts +568 -50
- package/package.json +1 -2
- package/src/purecloud-platform-client-v2/ApiClient.js +5 -5
- package/src/purecloud-platform-client-v2/PureCloudRegionHosts.js +1 -0
- 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 +64 -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/CaseManagementApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/ChatApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/CoachingApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/ContentManagementApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/ConversationsApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/DataExtensionsApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/DataPrivacyApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/DownloadsApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/EmailsApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/EmployeeEngagementApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/EventsApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/ExternalContactsApi.js +2 -2
- 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 +1 -1
- package/src/purecloud-platform-client-v2/api/LanguageUnderstandingApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/LanguagesApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/LearningApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/LicenseApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/LocationsApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/LogCaptureApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/MessagingApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/MobileDevicesApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/NotificationsApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/OAuthApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/ObjectsApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/OperationalEventsApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/OrganizationApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/OrganizationAuthorizationApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/OutboundApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/PresenceApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/ProcessAutomationApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/QualityApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/RecordingApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/ResponseManagementApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/RoutingApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/SCIMApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/ScriptsApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/SearchApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/SettingsApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/SocialMediaApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/SpeechTextAnalyticsApi.js +2 -2
- package/src/purecloud-platform-client-v2/api/StationsApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/SuggestApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/TaskManagementApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/TeamsApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/TelephonyApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/TelephonyProvidersEdgeApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/TextbotsApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/TokensApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/UploadsApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/UsageApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/UserRecordingsApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/UsersApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/UsersRulesApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/UtilitiesApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/VoicemailApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/WebChatApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/WebDeploymentsApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/WebMessagingApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/WidgetsApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/WorkforceManagementApi.js +710 -53
- package/src/purecloud-platform-client-v2/index.js +1 -1
|
@@ -151,8 +151,6 @@ function fromByteArray (uint8) {
|
|
|
151
151
|
}
|
|
152
152
|
|
|
153
153
|
},{}],2:[function(require,module,exports){
|
|
154
|
-
|
|
155
|
-
},{}],3:[function(require,module,exports){
|
|
156
154
|
(function (Buffer){(function (){
|
|
157
155
|
/*!
|
|
158
156
|
* The buffer module from node.js, for the browser.
|
|
@@ -1933,783 +1931,7 @@ function numberIsNaN (obj) {
|
|
|
1933
1931
|
}
|
|
1934
1932
|
|
|
1935
1933
|
}).call(this)}).call(this,require("buffer").Buffer)
|
|
1936
|
-
},{"base64-js":1,"buffer":
|
|
1937
|
-
'use strict';
|
|
1938
|
-
|
|
1939
|
-
var bind = require('function-bind');
|
|
1940
|
-
|
|
1941
|
-
var $apply = require('./functionApply');
|
|
1942
|
-
var $call = require('./functionCall');
|
|
1943
|
-
var $reflectApply = require('./reflectApply');
|
|
1944
|
-
|
|
1945
|
-
/** @type {import('./actualApply')} */
|
|
1946
|
-
module.exports = $reflectApply || bind.call($call, $apply);
|
|
1947
|
-
|
|
1948
|
-
},{"./functionApply":5,"./functionCall":6,"./reflectApply":8,"function-bind":21}],5:[function(require,module,exports){
|
|
1949
|
-
'use strict';
|
|
1950
|
-
|
|
1951
|
-
/** @type {import('./functionApply')} */
|
|
1952
|
-
module.exports = Function.prototype.apply;
|
|
1953
|
-
|
|
1954
|
-
},{}],6:[function(require,module,exports){
|
|
1955
|
-
'use strict';
|
|
1956
|
-
|
|
1957
|
-
/** @type {import('./functionCall')} */
|
|
1958
|
-
module.exports = Function.prototype.call;
|
|
1959
|
-
|
|
1960
|
-
},{}],7:[function(require,module,exports){
|
|
1961
|
-
'use strict';
|
|
1962
|
-
|
|
1963
|
-
var bind = require('function-bind');
|
|
1964
|
-
var $TypeError = require('es-errors/type');
|
|
1965
|
-
|
|
1966
|
-
var $call = require('./functionCall');
|
|
1967
|
-
var $actualApply = require('./actualApply');
|
|
1968
|
-
|
|
1969
|
-
/** @type {(args: [Function, thisArg?: unknown, ...args: unknown[]]) => Function} TODO FIXME, find a way to use import('.') */
|
|
1970
|
-
module.exports = function callBindBasic(args) {
|
|
1971
|
-
if (args.length < 1 || typeof args[0] !== 'function') {
|
|
1972
|
-
throw new $TypeError('a function is required');
|
|
1973
|
-
}
|
|
1974
|
-
return $actualApply(bind, $call, args);
|
|
1975
|
-
};
|
|
1976
|
-
|
|
1977
|
-
},{"./actualApply":4,"./functionCall":6,"es-errors/type":17,"function-bind":21}],8:[function(require,module,exports){
|
|
1978
|
-
'use strict';
|
|
1979
|
-
|
|
1980
|
-
/** @type {import('./reflectApply')} */
|
|
1981
|
-
module.exports = typeof Reflect !== 'undefined' && Reflect && Reflect.apply;
|
|
1982
|
-
|
|
1983
|
-
},{}],9:[function(require,module,exports){
|
|
1984
|
-
'use strict';
|
|
1985
|
-
|
|
1986
|
-
var GetIntrinsic = require('get-intrinsic');
|
|
1987
|
-
|
|
1988
|
-
var callBindBasic = require('call-bind-apply-helpers');
|
|
1989
|
-
|
|
1990
|
-
/** @type {(thisArg: string, searchString: string, position?: number) => number} */
|
|
1991
|
-
var $indexOf = callBindBasic([GetIntrinsic('%String.prototype.indexOf%')]);
|
|
1992
|
-
|
|
1993
|
-
/** @type {import('.')} */
|
|
1994
|
-
module.exports = function callBoundIntrinsic(name, allowMissing) {
|
|
1995
|
-
/* eslint no-extra-parens: 0 */
|
|
1996
|
-
|
|
1997
|
-
var intrinsic = /** @type {(this: unknown, ...args: unknown[]) => unknown} */ (GetIntrinsic(name, !!allowMissing));
|
|
1998
|
-
if (typeof intrinsic === 'function' && $indexOf(name, '.prototype.') > -1) {
|
|
1999
|
-
return callBindBasic(/** @type {const} */ ([intrinsic]));
|
|
2000
|
-
}
|
|
2001
|
-
return intrinsic;
|
|
2002
|
-
};
|
|
2003
|
-
|
|
2004
|
-
},{"call-bind-apply-helpers":7,"get-intrinsic":22}],10:[function(require,module,exports){
|
|
2005
|
-
'use strict';
|
|
2006
|
-
|
|
2007
|
-
var callBind = require('call-bind-apply-helpers');
|
|
2008
|
-
var gOPD = require('gopd');
|
|
2009
|
-
|
|
2010
|
-
var hasProtoAccessor;
|
|
2011
|
-
try {
|
|
2012
|
-
// eslint-disable-next-line no-extra-parens, no-proto
|
|
2013
|
-
hasProtoAccessor = /** @type {{ __proto__?: typeof Array.prototype }} */ ([]).__proto__ === Array.prototype;
|
|
2014
|
-
} catch (e) {
|
|
2015
|
-
if (!e || typeof e !== 'object' || !('code' in e) || e.code !== 'ERR_PROTO_ACCESS') {
|
|
2016
|
-
throw e;
|
|
2017
|
-
}
|
|
2018
|
-
}
|
|
2019
|
-
|
|
2020
|
-
// eslint-disable-next-line no-extra-parens
|
|
2021
|
-
var desc = !!hasProtoAccessor && gOPD && gOPD(Object.prototype, /** @type {keyof typeof Object.prototype} */ ('__proto__'));
|
|
2022
|
-
|
|
2023
|
-
var $Object = Object;
|
|
2024
|
-
var $getPrototypeOf = $Object.getPrototypeOf;
|
|
2025
|
-
|
|
2026
|
-
/** @type {import('./get')} */
|
|
2027
|
-
module.exports = desc && typeof desc.get === 'function'
|
|
2028
|
-
? callBind([desc.get])
|
|
2029
|
-
: typeof $getPrototypeOf === 'function'
|
|
2030
|
-
? /** @type {import('./get')} */ function getDunder(value) {
|
|
2031
|
-
// eslint-disable-next-line eqeqeq
|
|
2032
|
-
return $getPrototypeOf(value == null ? value : $Object(value));
|
|
2033
|
-
}
|
|
2034
|
-
: false;
|
|
2035
|
-
|
|
2036
|
-
},{"call-bind-apply-helpers":7,"gopd":27}],11:[function(require,module,exports){
|
|
2037
|
-
'use strict';
|
|
2038
|
-
|
|
2039
|
-
/** @type {import('.')} */
|
|
2040
|
-
var $defineProperty = Object.defineProperty || false;
|
|
2041
|
-
if ($defineProperty) {
|
|
2042
|
-
try {
|
|
2043
|
-
$defineProperty({}, 'a', { value: 1 });
|
|
2044
|
-
} catch (e) {
|
|
2045
|
-
// IE 8 has a broken defineProperty
|
|
2046
|
-
$defineProperty = false;
|
|
2047
|
-
}
|
|
2048
|
-
}
|
|
2049
|
-
|
|
2050
|
-
module.exports = $defineProperty;
|
|
2051
|
-
|
|
2052
|
-
},{}],12:[function(require,module,exports){
|
|
2053
|
-
'use strict';
|
|
2054
|
-
|
|
2055
|
-
/** @type {import('./eval')} */
|
|
2056
|
-
module.exports = EvalError;
|
|
2057
|
-
|
|
2058
|
-
},{}],13:[function(require,module,exports){
|
|
2059
|
-
'use strict';
|
|
2060
|
-
|
|
2061
|
-
/** @type {import('.')} */
|
|
2062
|
-
module.exports = Error;
|
|
2063
|
-
|
|
2064
|
-
},{}],14:[function(require,module,exports){
|
|
2065
|
-
'use strict';
|
|
2066
|
-
|
|
2067
|
-
/** @type {import('./range')} */
|
|
2068
|
-
module.exports = RangeError;
|
|
2069
|
-
|
|
2070
|
-
},{}],15:[function(require,module,exports){
|
|
2071
|
-
'use strict';
|
|
2072
|
-
|
|
2073
|
-
/** @type {import('./ref')} */
|
|
2074
|
-
module.exports = ReferenceError;
|
|
2075
|
-
|
|
2076
|
-
},{}],16:[function(require,module,exports){
|
|
2077
|
-
'use strict';
|
|
2078
|
-
|
|
2079
|
-
/** @type {import('./syntax')} */
|
|
2080
|
-
module.exports = SyntaxError;
|
|
2081
|
-
|
|
2082
|
-
},{}],17:[function(require,module,exports){
|
|
2083
|
-
'use strict';
|
|
2084
|
-
|
|
2085
|
-
/** @type {import('./type')} */
|
|
2086
|
-
module.exports = TypeError;
|
|
2087
|
-
|
|
2088
|
-
},{}],18:[function(require,module,exports){
|
|
2089
|
-
'use strict';
|
|
2090
|
-
|
|
2091
|
-
/** @type {import('./uri')} */
|
|
2092
|
-
module.exports = URIError;
|
|
2093
|
-
|
|
2094
|
-
},{}],19:[function(require,module,exports){
|
|
2095
|
-
'use strict';
|
|
2096
|
-
|
|
2097
|
-
/** @type {import('.')} */
|
|
2098
|
-
module.exports = Object;
|
|
2099
|
-
|
|
2100
|
-
},{}],20:[function(require,module,exports){
|
|
2101
|
-
'use strict';
|
|
2102
|
-
|
|
2103
|
-
/* eslint no-invalid-this: 1 */
|
|
2104
|
-
|
|
2105
|
-
var ERROR_MESSAGE = 'Function.prototype.bind called on incompatible ';
|
|
2106
|
-
var toStr = Object.prototype.toString;
|
|
2107
|
-
var max = Math.max;
|
|
2108
|
-
var funcType = '[object Function]';
|
|
2109
|
-
|
|
2110
|
-
var concatty = function concatty(a, b) {
|
|
2111
|
-
var arr = [];
|
|
2112
|
-
|
|
2113
|
-
for (var i = 0; i < a.length; i += 1) {
|
|
2114
|
-
arr[i] = a[i];
|
|
2115
|
-
}
|
|
2116
|
-
for (var j = 0; j < b.length; j += 1) {
|
|
2117
|
-
arr[j + a.length] = b[j];
|
|
2118
|
-
}
|
|
2119
|
-
|
|
2120
|
-
return arr;
|
|
2121
|
-
};
|
|
2122
|
-
|
|
2123
|
-
var slicy = function slicy(arrLike, offset) {
|
|
2124
|
-
var arr = [];
|
|
2125
|
-
for (var i = offset || 0, j = 0; i < arrLike.length; i += 1, j += 1) {
|
|
2126
|
-
arr[j] = arrLike[i];
|
|
2127
|
-
}
|
|
2128
|
-
return arr;
|
|
2129
|
-
};
|
|
2130
|
-
|
|
2131
|
-
var joiny = function (arr, joiner) {
|
|
2132
|
-
var str = '';
|
|
2133
|
-
for (var i = 0; i < arr.length; i += 1) {
|
|
2134
|
-
str += arr[i];
|
|
2135
|
-
if (i + 1 < arr.length) {
|
|
2136
|
-
str += joiner;
|
|
2137
|
-
}
|
|
2138
|
-
}
|
|
2139
|
-
return str;
|
|
2140
|
-
};
|
|
2141
|
-
|
|
2142
|
-
module.exports = function bind(that) {
|
|
2143
|
-
var target = this;
|
|
2144
|
-
if (typeof target !== 'function' || toStr.apply(target) !== funcType) {
|
|
2145
|
-
throw new TypeError(ERROR_MESSAGE + target);
|
|
2146
|
-
}
|
|
2147
|
-
var args = slicy(arguments, 1);
|
|
2148
|
-
|
|
2149
|
-
var bound;
|
|
2150
|
-
var binder = function () {
|
|
2151
|
-
if (this instanceof bound) {
|
|
2152
|
-
var result = target.apply(
|
|
2153
|
-
this,
|
|
2154
|
-
concatty(args, arguments)
|
|
2155
|
-
);
|
|
2156
|
-
if (Object(result) === result) {
|
|
2157
|
-
return result;
|
|
2158
|
-
}
|
|
2159
|
-
return this;
|
|
2160
|
-
}
|
|
2161
|
-
return target.apply(
|
|
2162
|
-
that,
|
|
2163
|
-
concatty(args, arguments)
|
|
2164
|
-
);
|
|
2165
|
-
|
|
2166
|
-
};
|
|
2167
|
-
|
|
2168
|
-
var boundLength = max(0, target.length - args.length);
|
|
2169
|
-
var boundArgs = [];
|
|
2170
|
-
for (var i = 0; i < boundLength; i++) {
|
|
2171
|
-
boundArgs[i] = '$' + i;
|
|
2172
|
-
}
|
|
2173
|
-
|
|
2174
|
-
bound = Function('binder', 'return function (' + joiny(boundArgs, ',') + '){ return binder.apply(this,arguments); }')(binder);
|
|
2175
|
-
|
|
2176
|
-
if (target.prototype) {
|
|
2177
|
-
var Empty = function Empty() {};
|
|
2178
|
-
Empty.prototype = target.prototype;
|
|
2179
|
-
bound.prototype = new Empty();
|
|
2180
|
-
Empty.prototype = null;
|
|
2181
|
-
}
|
|
2182
|
-
|
|
2183
|
-
return bound;
|
|
2184
|
-
};
|
|
2185
|
-
|
|
2186
|
-
},{}],21:[function(require,module,exports){
|
|
2187
|
-
'use strict';
|
|
2188
|
-
|
|
2189
|
-
var implementation = require('./implementation');
|
|
2190
|
-
|
|
2191
|
-
module.exports = Function.prototype.bind || implementation;
|
|
2192
|
-
|
|
2193
|
-
},{"./implementation":20}],22:[function(require,module,exports){
|
|
2194
|
-
'use strict';
|
|
2195
|
-
|
|
2196
|
-
var undefined;
|
|
2197
|
-
|
|
2198
|
-
var $Object = require('es-object-atoms');
|
|
2199
|
-
|
|
2200
|
-
var $Error = require('es-errors');
|
|
2201
|
-
var $EvalError = require('es-errors/eval');
|
|
2202
|
-
var $RangeError = require('es-errors/range');
|
|
2203
|
-
var $ReferenceError = require('es-errors/ref');
|
|
2204
|
-
var $SyntaxError = require('es-errors/syntax');
|
|
2205
|
-
var $TypeError = require('es-errors/type');
|
|
2206
|
-
var $URIError = require('es-errors/uri');
|
|
2207
|
-
|
|
2208
|
-
var abs = require('math-intrinsics/abs');
|
|
2209
|
-
var floor = require('math-intrinsics/floor');
|
|
2210
|
-
var max = require('math-intrinsics/max');
|
|
2211
|
-
var min = require('math-intrinsics/min');
|
|
2212
|
-
var pow = require('math-intrinsics/pow');
|
|
2213
|
-
var round = require('math-intrinsics/round');
|
|
2214
|
-
var sign = require('math-intrinsics/sign');
|
|
2215
|
-
|
|
2216
|
-
var $Function = Function;
|
|
2217
|
-
|
|
2218
|
-
// eslint-disable-next-line consistent-return
|
|
2219
|
-
var getEvalledConstructor = function (expressionSyntax) {
|
|
2220
|
-
try {
|
|
2221
|
-
return $Function('"use strict"; return (' + expressionSyntax + ').constructor;')();
|
|
2222
|
-
} catch (e) {}
|
|
2223
|
-
};
|
|
2224
|
-
|
|
2225
|
-
var $gOPD = require('gopd');
|
|
2226
|
-
var $defineProperty = require('es-define-property');
|
|
2227
|
-
|
|
2228
|
-
var throwTypeError = function () {
|
|
2229
|
-
throw new $TypeError();
|
|
2230
|
-
};
|
|
2231
|
-
var ThrowTypeError = $gOPD
|
|
2232
|
-
? (function () {
|
|
2233
|
-
try {
|
|
2234
|
-
// eslint-disable-next-line no-unused-expressions, no-caller, no-restricted-properties
|
|
2235
|
-
arguments.callee; // IE 8 does not throw here
|
|
2236
|
-
return throwTypeError;
|
|
2237
|
-
} catch (calleeThrows) {
|
|
2238
|
-
try {
|
|
2239
|
-
// IE 8 throws on Object.getOwnPropertyDescriptor(arguments, '')
|
|
2240
|
-
return $gOPD(arguments, 'callee').get;
|
|
2241
|
-
} catch (gOPDthrows) {
|
|
2242
|
-
return throwTypeError;
|
|
2243
|
-
}
|
|
2244
|
-
}
|
|
2245
|
-
}())
|
|
2246
|
-
: throwTypeError;
|
|
2247
|
-
|
|
2248
|
-
var hasSymbols = require('has-symbols')();
|
|
2249
|
-
|
|
2250
|
-
var getProto = require('get-proto');
|
|
2251
|
-
var $ObjectGPO = require('get-proto/Object.getPrototypeOf');
|
|
2252
|
-
var $ReflectGPO = require('get-proto/Reflect.getPrototypeOf');
|
|
2253
|
-
|
|
2254
|
-
var $apply = require('call-bind-apply-helpers/functionApply');
|
|
2255
|
-
var $call = require('call-bind-apply-helpers/functionCall');
|
|
2256
|
-
|
|
2257
|
-
var needsEval = {};
|
|
2258
|
-
|
|
2259
|
-
var TypedArray = typeof Uint8Array === 'undefined' || !getProto ? undefined : getProto(Uint8Array);
|
|
2260
|
-
|
|
2261
|
-
var INTRINSICS = {
|
|
2262
|
-
__proto__: null,
|
|
2263
|
-
'%AggregateError%': typeof AggregateError === 'undefined' ? undefined : AggregateError,
|
|
2264
|
-
'%Array%': Array,
|
|
2265
|
-
'%ArrayBuffer%': typeof ArrayBuffer === 'undefined' ? undefined : ArrayBuffer,
|
|
2266
|
-
'%ArrayIteratorPrototype%': hasSymbols && getProto ? getProto([][Symbol.iterator]()) : undefined,
|
|
2267
|
-
'%AsyncFromSyncIteratorPrototype%': undefined,
|
|
2268
|
-
'%AsyncFunction%': needsEval,
|
|
2269
|
-
'%AsyncGenerator%': needsEval,
|
|
2270
|
-
'%AsyncGeneratorFunction%': needsEval,
|
|
2271
|
-
'%AsyncIteratorPrototype%': needsEval,
|
|
2272
|
-
'%Atomics%': typeof Atomics === 'undefined' ? undefined : Atomics,
|
|
2273
|
-
'%BigInt%': typeof BigInt === 'undefined' ? undefined : BigInt,
|
|
2274
|
-
'%BigInt64Array%': typeof BigInt64Array === 'undefined' ? undefined : BigInt64Array,
|
|
2275
|
-
'%BigUint64Array%': typeof BigUint64Array === 'undefined' ? undefined : BigUint64Array,
|
|
2276
|
-
'%Boolean%': Boolean,
|
|
2277
|
-
'%DataView%': typeof DataView === 'undefined' ? undefined : DataView,
|
|
2278
|
-
'%Date%': Date,
|
|
2279
|
-
'%decodeURI%': decodeURI,
|
|
2280
|
-
'%decodeURIComponent%': decodeURIComponent,
|
|
2281
|
-
'%encodeURI%': encodeURI,
|
|
2282
|
-
'%encodeURIComponent%': encodeURIComponent,
|
|
2283
|
-
'%Error%': $Error,
|
|
2284
|
-
'%eval%': eval, // eslint-disable-line no-eval
|
|
2285
|
-
'%EvalError%': $EvalError,
|
|
2286
|
-
'%Float16Array%': typeof Float16Array === 'undefined' ? undefined : Float16Array,
|
|
2287
|
-
'%Float32Array%': typeof Float32Array === 'undefined' ? undefined : Float32Array,
|
|
2288
|
-
'%Float64Array%': typeof Float64Array === 'undefined' ? undefined : Float64Array,
|
|
2289
|
-
'%FinalizationRegistry%': typeof FinalizationRegistry === 'undefined' ? undefined : FinalizationRegistry,
|
|
2290
|
-
'%Function%': $Function,
|
|
2291
|
-
'%GeneratorFunction%': needsEval,
|
|
2292
|
-
'%Int8Array%': typeof Int8Array === 'undefined' ? undefined : Int8Array,
|
|
2293
|
-
'%Int16Array%': typeof Int16Array === 'undefined' ? undefined : Int16Array,
|
|
2294
|
-
'%Int32Array%': typeof Int32Array === 'undefined' ? undefined : Int32Array,
|
|
2295
|
-
'%isFinite%': isFinite,
|
|
2296
|
-
'%isNaN%': isNaN,
|
|
2297
|
-
'%IteratorPrototype%': hasSymbols && getProto ? getProto(getProto([][Symbol.iterator]())) : undefined,
|
|
2298
|
-
'%JSON%': typeof JSON === 'object' ? JSON : undefined,
|
|
2299
|
-
'%Map%': typeof Map === 'undefined' ? undefined : Map,
|
|
2300
|
-
'%MapIteratorPrototype%': typeof Map === 'undefined' || !hasSymbols || !getProto ? undefined : getProto(new Map()[Symbol.iterator]()),
|
|
2301
|
-
'%Math%': Math,
|
|
2302
|
-
'%Number%': Number,
|
|
2303
|
-
'%Object%': $Object,
|
|
2304
|
-
'%Object.getOwnPropertyDescriptor%': $gOPD,
|
|
2305
|
-
'%parseFloat%': parseFloat,
|
|
2306
|
-
'%parseInt%': parseInt,
|
|
2307
|
-
'%Promise%': typeof Promise === 'undefined' ? undefined : Promise,
|
|
2308
|
-
'%Proxy%': typeof Proxy === 'undefined' ? undefined : Proxy,
|
|
2309
|
-
'%RangeError%': $RangeError,
|
|
2310
|
-
'%ReferenceError%': $ReferenceError,
|
|
2311
|
-
'%Reflect%': typeof Reflect === 'undefined' ? undefined : Reflect,
|
|
2312
|
-
'%RegExp%': RegExp,
|
|
2313
|
-
'%Set%': typeof Set === 'undefined' ? undefined : Set,
|
|
2314
|
-
'%SetIteratorPrototype%': typeof Set === 'undefined' || !hasSymbols || !getProto ? undefined : getProto(new Set()[Symbol.iterator]()),
|
|
2315
|
-
'%SharedArrayBuffer%': typeof SharedArrayBuffer === 'undefined' ? undefined : SharedArrayBuffer,
|
|
2316
|
-
'%String%': String,
|
|
2317
|
-
'%StringIteratorPrototype%': hasSymbols && getProto ? getProto(''[Symbol.iterator]()) : undefined,
|
|
2318
|
-
'%Symbol%': hasSymbols ? Symbol : undefined,
|
|
2319
|
-
'%SyntaxError%': $SyntaxError,
|
|
2320
|
-
'%ThrowTypeError%': ThrowTypeError,
|
|
2321
|
-
'%TypedArray%': TypedArray,
|
|
2322
|
-
'%TypeError%': $TypeError,
|
|
2323
|
-
'%Uint8Array%': typeof Uint8Array === 'undefined' ? undefined : Uint8Array,
|
|
2324
|
-
'%Uint8ClampedArray%': typeof Uint8ClampedArray === 'undefined' ? undefined : Uint8ClampedArray,
|
|
2325
|
-
'%Uint16Array%': typeof Uint16Array === 'undefined' ? undefined : Uint16Array,
|
|
2326
|
-
'%Uint32Array%': typeof Uint32Array === 'undefined' ? undefined : Uint32Array,
|
|
2327
|
-
'%URIError%': $URIError,
|
|
2328
|
-
'%WeakMap%': typeof WeakMap === 'undefined' ? undefined : WeakMap,
|
|
2329
|
-
'%WeakRef%': typeof WeakRef === 'undefined' ? undefined : WeakRef,
|
|
2330
|
-
'%WeakSet%': typeof WeakSet === 'undefined' ? undefined : WeakSet,
|
|
2331
|
-
|
|
2332
|
-
'%Function.prototype.call%': $call,
|
|
2333
|
-
'%Function.prototype.apply%': $apply,
|
|
2334
|
-
'%Object.defineProperty%': $defineProperty,
|
|
2335
|
-
'%Object.getPrototypeOf%': $ObjectGPO,
|
|
2336
|
-
'%Math.abs%': abs,
|
|
2337
|
-
'%Math.floor%': floor,
|
|
2338
|
-
'%Math.max%': max,
|
|
2339
|
-
'%Math.min%': min,
|
|
2340
|
-
'%Math.pow%': pow,
|
|
2341
|
-
'%Math.round%': round,
|
|
2342
|
-
'%Math.sign%': sign,
|
|
2343
|
-
'%Reflect.getPrototypeOf%': $ReflectGPO
|
|
2344
|
-
};
|
|
2345
|
-
|
|
2346
|
-
if (getProto) {
|
|
2347
|
-
try {
|
|
2348
|
-
null.error; // eslint-disable-line no-unused-expressions
|
|
2349
|
-
} catch (e) {
|
|
2350
|
-
// https://github.com/tc39/proposal-shadowrealm/pull/384#issuecomment-1364264229
|
|
2351
|
-
var errorProto = getProto(getProto(e));
|
|
2352
|
-
INTRINSICS['%Error.prototype%'] = errorProto;
|
|
2353
|
-
}
|
|
2354
|
-
}
|
|
2355
|
-
|
|
2356
|
-
var doEval = function doEval(name) {
|
|
2357
|
-
var value;
|
|
2358
|
-
if (name === '%AsyncFunction%') {
|
|
2359
|
-
value = getEvalledConstructor('async function () {}');
|
|
2360
|
-
} else if (name === '%GeneratorFunction%') {
|
|
2361
|
-
value = getEvalledConstructor('function* () {}');
|
|
2362
|
-
} else if (name === '%AsyncGeneratorFunction%') {
|
|
2363
|
-
value = getEvalledConstructor('async function* () {}');
|
|
2364
|
-
} else if (name === '%AsyncGenerator%') {
|
|
2365
|
-
var fn = doEval('%AsyncGeneratorFunction%');
|
|
2366
|
-
if (fn) {
|
|
2367
|
-
value = fn.prototype;
|
|
2368
|
-
}
|
|
2369
|
-
} else if (name === '%AsyncIteratorPrototype%') {
|
|
2370
|
-
var gen = doEval('%AsyncGenerator%');
|
|
2371
|
-
if (gen && getProto) {
|
|
2372
|
-
value = getProto(gen.prototype);
|
|
2373
|
-
}
|
|
2374
|
-
}
|
|
2375
|
-
|
|
2376
|
-
INTRINSICS[name] = value;
|
|
2377
|
-
|
|
2378
|
-
return value;
|
|
2379
|
-
};
|
|
2380
|
-
|
|
2381
|
-
var LEGACY_ALIASES = {
|
|
2382
|
-
__proto__: null,
|
|
2383
|
-
'%ArrayBufferPrototype%': ['ArrayBuffer', 'prototype'],
|
|
2384
|
-
'%ArrayPrototype%': ['Array', 'prototype'],
|
|
2385
|
-
'%ArrayProto_entries%': ['Array', 'prototype', 'entries'],
|
|
2386
|
-
'%ArrayProto_forEach%': ['Array', 'prototype', 'forEach'],
|
|
2387
|
-
'%ArrayProto_keys%': ['Array', 'prototype', 'keys'],
|
|
2388
|
-
'%ArrayProto_values%': ['Array', 'prototype', 'values'],
|
|
2389
|
-
'%AsyncFunctionPrototype%': ['AsyncFunction', 'prototype'],
|
|
2390
|
-
'%AsyncGenerator%': ['AsyncGeneratorFunction', 'prototype'],
|
|
2391
|
-
'%AsyncGeneratorPrototype%': ['AsyncGeneratorFunction', 'prototype', 'prototype'],
|
|
2392
|
-
'%BooleanPrototype%': ['Boolean', 'prototype'],
|
|
2393
|
-
'%DataViewPrototype%': ['DataView', 'prototype'],
|
|
2394
|
-
'%DatePrototype%': ['Date', 'prototype'],
|
|
2395
|
-
'%ErrorPrototype%': ['Error', 'prototype'],
|
|
2396
|
-
'%EvalErrorPrototype%': ['EvalError', 'prototype'],
|
|
2397
|
-
'%Float32ArrayPrototype%': ['Float32Array', 'prototype'],
|
|
2398
|
-
'%Float64ArrayPrototype%': ['Float64Array', 'prototype'],
|
|
2399
|
-
'%FunctionPrototype%': ['Function', 'prototype'],
|
|
2400
|
-
'%Generator%': ['GeneratorFunction', 'prototype'],
|
|
2401
|
-
'%GeneratorPrototype%': ['GeneratorFunction', 'prototype', 'prototype'],
|
|
2402
|
-
'%Int8ArrayPrototype%': ['Int8Array', 'prototype'],
|
|
2403
|
-
'%Int16ArrayPrototype%': ['Int16Array', 'prototype'],
|
|
2404
|
-
'%Int32ArrayPrototype%': ['Int32Array', 'prototype'],
|
|
2405
|
-
'%JSONParse%': ['JSON', 'parse'],
|
|
2406
|
-
'%JSONStringify%': ['JSON', 'stringify'],
|
|
2407
|
-
'%MapPrototype%': ['Map', 'prototype'],
|
|
2408
|
-
'%NumberPrototype%': ['Number', 'prototype'],
|
|
2409
|
-
'%ObjectPrototype%': ['Object', 'prototype'],
|
|
2410
|
-
'%ObjProto_toString%': ['Object', 'prototype', 'toString'],
|
|
2411
|
-
'%ObjProto_valueOf%': ['Object', 'prototype', 'valueOf'],
|
|
2412
|
-
'%PromisePrototype%': ['Promise', 'prototype'],
|
|
2413
|
-
'%PromiseProto_then%': ['Promise', 'prototype', 'then'],
|
|
2414
|
-
'%Promise_all%': ['Promise', 'all'],
|
|
2415
|
-
'%Promise_reject%': ['Promise', 'reject'],
|
|
2416
|
-
'%Promise_resolve%': ['Promise', 'resolve'],
|
|
2417
|
-
'%RangeErrorPrototype%': ['RangeError', 'prototype'],
|
|
2418
|
-
'%ReferenceErrorPrototype%': ['ReferenceError', 'prototype'],
|
|
2419
|
-
'%RegExpPrototype%': ['RegExp', 'prototype'],
|
|
2420
|
-
'%SetPrototype%': ['Set', 'prototype'],
|
|
2421
|
-
'%SharedArrayBufferPrototype%': ['SharedArrayBuffer', 'prototype'],
|
|
2422
|
-
'%StringPrototype%': ['String', 'prototype'],
|
|
2423
|
-
'%SymbolPrototype%': ['Symbol', 'prototype'],
|
|
2424
|
-
'%SyntaxErrorPrototype%': ['SyntaxError', 'prototype'],
|
|
2425
|
-
'%TypedArrayPrototype%': ['TypedArray', 'prototype'],
|
|
2426
|
-
'%TypeErrorPrototype%': ['TypeError', 'prototype'],
|
|
2427
|
-
'%Uint8ArrayPrototype%': ['Uint8Array', 'prototype'],
|
|
2428
|
-
'%Uint8ClampedArrayPrototype%': ['Uint8ClampedArray', 'prototype'],
|
|
2429
|
-
'%Uint16ArrayPrototype%': ['Uint16Array', 'prototype'],
|
|
2430
|
-
'%Uint32ArrayPrototype%': ['Uint32Array', 'prototype'],
|
|
2431
|
-
'%URIErrorPrototype%': ['URIError', 'prototype'],
|
|
2432
|
-
'%WeakMapPrototype%': ['WeakMap', 'prototype'],
|
|
2433
|
-
'%WeakSetPrototype%': ['WeakSet', 'prototype']
|
|
2434
|
-
};
|
|
2435
|
-
|
|
2436
|
-
var bind = require('function-bind');
|
|
2437
|
-
var hasOwn = require('hasown');
|
|
2438
|
-
var $concat = bind.call($call, Array.prototype.concat);
|
|
2439
|
-
var $spliceApply = bind.call($apply, Array.prototype.splice);
|
|
2440
|
-
var $replace = bind.call($call, String.prototype.replace);
|
|
2441
|
-
var $strSlice = bind.call($call, String.prototype.slice);
|
|
2442
|
-
var $exec = bind.call($call, RegExp.prototype.exec);
|
|
2443
|
-
|
|
2444
|
-
/* adapted from https://github.com/lodash/lodash/blob/4.17.15/dist/lodash.js#L6735-L6744 */
|
|
2445
|
-
var rePropName = /[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g;
|
|
2446
|
-
var reEscapeChar = /\\(\\)?/g; /** Used to match backslashes in property paths. */
|
|
2447
|
-
var stringToPath = function stringToPath(string) {
|
|
2448
|
-
var first = $strSlice(string, 0, 1);
|
|
2449
|
-
var last = $strSlice(string, -1);
|
|
2450
|
-
if (first === '%' && last !== '%') {
|
|
2451
|
-
throw new $SyntaxError('invalid intrinsic syntax, expected closing `%`');
|
|
2452
|
-
} else if (last === '%' && first !== '%') {
|
|
2453
|
-
throw new $SyntaxError('invalid intrinsic syntax, expected opening `%`');
|
|
2454
|
-
}
|
|
2455
|
-
var result = [];
|
|
2456
|
-
$replace(string, rePropName, function (match, number, quote, subString) {
|
|
2457
|
-
result[result.length] = quote ? $replace(subString, reEscapeChar, '$1') : number || match;
|
|
2458
|
-
});
|
|
2459
|
-
return result;
|
|
2460
|
-
};
|
|
2461
|
-
/* end adaptation */
|
|
2462
|
-
|
|
2463
|
-
var getBaseIntrinsic = function getBaseIntrinsic(name, allowMissing) {
|
|
2464
|
-
var intrinsicName = name;
|
|
2465
|
-
var alias;
|
|
2466
|
-
if (hasOwn(LEGACY_ALIASES, intrinsicName)) {
|
|
2467
|
-
alias = LEGACY_ALIASES[intrinsicName];
|
|
2468
|
-
intrinsicName = '%' + alias[0] + '%';
|
|
2469
|
-
}
|
|
2470
|
-
|
|
2471
|
-
if (hasOwn(INTRINSICS, intrinsicName)) {
|
|
2472
|
-
var value = INTRINSICS[intrinsicName];
|
|
2473
|
-
if (value === needsEval) {
|
|
2474
|
-
value = doEval(intrinsicName);
|
|
2475
|
-
}
|
|
2476
|
-
if (typeof value === 'undefined' && !allowMissing) {
|
|
2477
|
-
throw new $TypeError('intrinsic ' + name + ' exists, but is not available. Please file an issue!');
|
|
2478
|
-
}
|
|
2479
|
-
|
|
2480
|
-
return {
|
|
2481
|
-
alias: alias,
|
|
2482
|
-
name: intrinsicName,
|
|
2483
|
-
value: value
|
|
2484
|
-
};
|
|
2485
|
-
}
|
|
2486
|
-
|
|
2487
|
-
throw new $SyntaxError('intrinsic ' + name + ' does not exist!');
|
|
2488
|
-
};
|
|
2489
|
-
|
|
2490
|
-
module.exports = function GetIntrinsic(name, allowMissing) {
|
|
2491
|
-
if (typeof name !== 'string' || name.length === 0) {
|
|
2492
|
-
throw new $TypeError('intrinsic name must be a non-empty string');
|
|
2493
|
-
}
|
|
2494
|
-
if (arguments.length > 1 && typeof allowMissing !== 'boolean') {
|
|
2495
|
-
throw new $TypeError('"allowMissing" argument must be a boolean');
|
|
2496
|
-
}
|
|
2497
|
-
|
|
2498
|
-
if ($exec(/^%?[^%]*%?$/, name) === null) {
|
|
2499
|
-
throw new $SyntaxError('`%` may not be present anywhere but at the beginning and end of the intrinsic name');
|
|
2500
|
-
}
|
|
2501
|
-
var parts = stringToPath(name);
|
|
2502
|
-
var intrinsicBaseName = parts.length > 0 ? parts[0] : '';
|
|
2503
|
-
|
|
2504
|
-
var intrinsic = getBaseIntrinsic('%' + intrinsicBaseName + '%', allowMissing);
|
|
2505
|
-
var intrinsicRealName = intrinsic.name;
|
|
2506
|
-
var value = intrinsic.value;
|
|
2507
|
-
var skipFurtherCaching = false;
|
|
2508
|
-
|
|
2509
|
-
var alias = intrinsic.alias;
|
|
2510
|
-
if (alias) {
|
|
2511
|
-
intrinsicBaseName = alias[0];
|
|
2512
|
-
$spliceApply(parts, $concat([0, 1], alias));
|
|
2513
|
-
}
|
|
2514
|
-
|
|
2515
|
-
for (var i = 1, isOwn = true; i < parts.length; i += 1) {
|
|
2516
|
-
var part = parts[i];
|
|
2517
|
-
var first = $strSlice(part, 0, 1);
|
|
2518
|
-
var last = $strSlice(part, -1);
|
|
2519
|
-
if (
|
|
2520
|
-
(
|
|
2521
|
-
(first === '"' || first === "'" || first === '`')
|
|
2522
|
-
|| (last === '"' || last === "'" || last === '`')
|
|
2523
|
-
)
|
|
2524
|
-
&& first !== last
|
|
2525
|
-
) {
|
|
2526
|
-
throw new $SyntaxError('property names with quotes must have matching quotes');
|
|
2527
|
-
}
|
|
2528
|
-
if (part === 'constructor' || !isOwn) {
|
|
2529
|
-
skipFurtherCaching = true;
|
|
2530
|
-
}
|
|
2531
|
-
|
|
2532
|
-
intrinsicBaseName += '.' + part;
|
|
2533
|
-
intrinsicRealName = '%' + intrinsicBaseName + '%';
|
|
2534
|
-
|
|
2535
|
-
if (hasOwn(INTRINSICS, intrinsicRealName)) {
|
|
2536
|
-
value = INTRINSICS[intrinsicRealName];
|
|
2537
|
-
} else if (value != null) {
|
|
2538
|
-
if (!(part in value)) {
|
|
2539
|
-
if (!allowMissing) {
|
|
2540
|
-
throw new $TypeError('base intrinsic for ' + name + ' exists, but the property is not available.');
|
|
2541
|
-
}
|
|
2542
|
-
return void undefined;
|
|
2543
|
-
}
|
|
2544
|
-
if ($gOPD && (i + 1) >= parts.length) {
|
|
2545
|
-
var desc = $gOPD(value, part);
|
|
2546
|
-
isOwn = !!desc;
|
|
2547
|
-
|
|
2548
|
-
// By convention, when a data property is converted to an accessor
|
|
2549
|
-
// property to emulate a data property that does not suffer from
|
|
2550
|
-
// the override mistake, that accessor's getter is marked with
|
|
2551
|
-
// an `originalValue` property. Here, when we detect this, we
|
|
2552
|
-
// uphold the illusion by pretending to see that original data
|
|
2553
|
-
// property, i.e., returning the value rather than the getter
|
|
2554
|
-
// itself.
|
|
2555
|
-
if (isOwn && 'get' in desc && !('originalValue' in desc.get)) {
|
|
2556
|
-
value = desc.get;
|
|
2557
|
-
} else {
|
|
2558
|
-
value = value[part];
|
|
2559
|
-
}
|
|
2560
|
-
} else {
|
|
2561
|
-
isOwn = hasOwn(value, part);
|
|
2562
|
-
value = value[part];
|
|
2563
|
-
}
|
|
2564
|
-
|
|
2565
|
-
if (isOwn && !skipFurtherCaching) {
|
|
2566
|
-
INTRINSICS[intrinsicRealName] = value;
|
|
2567
|
-
}
|
|
2568
|
-
}
|
|
2569
|
-
}
|
|
2570
|
-
return value;
|
|
2571
|
-
};
|
|
2572
|
-
|
|
2573
|
-
},{"call-bind-apply-helpers/functionApply":5,"call-bind-apply-helpers/functionCall":6,"es-define-property":11,"es-errors":13,"es-errors/eval":12,"es-errors/range":14,"es-errors/ref":15,"es-errors/syntax":16,"es-errors/type":17,"es-errors/uri":18,"es-object-atoms":19,"function-bind":21,"get-proto":25,"get-proto/Object.getPrototypeOf":23,"get-proto/Reflect.getPrototypeOf":24,"gopd":27,"has-symbols":28,"hasown":30,"math-intrinsics/abs":32,"math-intrinsics/floor":33,"math-intrinsics/max":35,"math-intrinsics/min":36,"math-intrinsics/pow":37,"math-intrinsics/round":38,"math-intrinsics/sign":39}],23:[function(require,module,exports){
|
|
2574
|
-
'use strict';
|
|
2575
|
-
|
|
2576
|
-
var $Object = require('es-object-atoms');
|
|
2577
|
-
|
|
2578
|
-
/** @type {import('./Object.getPrototypeOf')} */
|
|
2579
|
-
module.exports = $Object.getPrototypeOf || null;
|
|
2580
|
-
|
|
2581
|
-
},{"es-object-atoms":19}],24:[function(require,module,exports){
|
|
2582
|
-
'use strict';
|
|
2583
|
-
|
|
2584
|
-
/** @type {import('./Reflect.getPrototypeOf')} */
|
|
2585
|
-
module.exports = (typeof Reflect !== 'undefined' && Reflect.getPrototypeOf) || null;
|
|
2586
|
-
|
|
2587
|
-
},{}],25:[function(require,module,exports){
|
|
2588
|
-
'use strict';
|
|
2589
|
-
|
|
2590
|
-
var reflectGetProto = require('./Reflect.getPrototypeOf');
|
|
2591
|
-
var originalGetProto = require('./Object.getPrototypeOf');
|
|
2592
|
-
|
|
2593
|
-
var getDunderProto = require('dunder-proto/get');
|
|
2594
|
-
|
|
2595
|
-
/** @type {import('.')} */
|
|
2596
|
-
module.exports = reflectGetProto
|
|
2597
|
-
? function getProto(O) {
|
|
2598
|
-
// @ts-expect-error TS can't narrow inside a closure, for some reason
|
|
2599
|
-
return reflectGetProto(O);
|
|
2600
|
-
}
|
|
2601
|
-
: originalGetProto
|
|
2602
|
-
? function getProto(O) {
|
|
2603
|
-
if (!O || (typeof O !== 'object' && typeof O !== 'function')) {
|
|
2604
|
-
throw new TypeError('getProto: not an object');
|
|
2605
|
-
}
|
|
2606
|
-
// @ts-expect-error TS can't narrow inside a closure, for some reason
|
|
2607
|
-
return originalGetProto(O);
|
|
2608
|
-
}
|
|
2609
|
-
: getDunderProto
|
|
2610
|
-
? function getProto(O) {
|
|
2611
|
-
// @ts-expect-error TS can't narrow inside a closure, for some reason
|
|
2612
|
-
return getDunderProto(O);
|
|
2613
|
-
}
|
|
2614
|
-
: null;
|
|
2615
|
-
|
|
2616
|
-
},{"./Object.getPrototypeOf":23,"./Reflect.getPrototypeOf":24,"dunder-proto/get":10}],26:[function(require,module,exports){
|
|
2617
|
-
'use strict';
|
|
2618
|
-
|
|
2619
|
-
/** @type {import('./gOPD')} */
|
|
2620
|
-
module.exports = Object.getOwnPropertyDescriptor;
|
|
2621
|
-
|
|
2622
|
-
},{}],27:[function(require,module,exports){
|
|
2623
|
-
'use strict';
|
|
2624
|
-
|
|
2625
|
-
/** @type {import('.')} */
|
|
2626
|
-
var $gOPD = require('./gOPD');
|
|
2627
|
-
|
|
2628
|
-
if ($gOPD) {
|
|
2629
|
-
try {
|
|
2630
|
-
$gOPD([], 'length');
|
|
2631
|
-
} catch (e) {
|
|
2632
|
-
// IE 8 has a broken gOPD
|
|
2633
|
-
$gOPD = null;
|
|
2634
|
-
}
|
|
2635
|
-
}
|
|
2636
|
-
|
|
2637
|
-
module.exports = $gOPD;
|
|
2638
|
-
|
|
2639
|
-
},{"./gOPD":26}],28:[function(require,module,exports){
|
|
2640
|
-
'use strict';
|
|
2641
|
-
|
|
2642
|
-
var origSymbol = typeof Symbol !== 'undefined' && Symbol;
|
|
2643
|
-
var hasSymbolSham = require('./shams');
|
|
2644
|
-
|
|
2645
|
-
/** @type {import('.')} */
|
|
2646
|
-
module.exports = function hasNativeSymbols() {
|
|
2647
|
-
if (typeof origSymbol !== 'function') { return false; }
|
|
2648
|
-
if (typeof Symbol !== 'function') { return false; }
|
|
2649
|
-
if (typeof origSymbol('foo') !== 'symbol') { return false; }
|
|
2650
|
-
if (typeof Symbol('bar') !== 'symbol') { return false; }
|
|
2651
|
-
|
|
2652
|
-
return hasSymbolSham();
|
|
2653
|
-
};
|
|
2654
|
-
|
|
2655
|
-
},{"./shams":29}],29:[function(require,module,exports){
|
|
2656
|
-
'use strict';
|
|
2657
|
-
|
|
2658
|
-
/** @type {import('./shams')} */
|
|
2659
|
-
/* eslint complexity: [2, 18], max-statements: [2, 33] */
|
|
2660
|
-
module.exports = function hasSymbols() {
|
|
2661
|
-
if (typeof Symbol !== 'function' || typeof Object.getOwnPropertySymbols !== 'function') { return false; }
|
|
2662
|
-
if (typeof Symbol.iterator === 'symbol') { return true; }
|
|
2663
|
-
|
|
2664
|
-
/** @type {{ [k in symbol]?: unknown }} */
|
|
2665
|
-
var obj = {};
|
|
2666
|
-
var sym = Symbol('test');
|
|
2667
|
-
var symObj = Object(sym);
|
|
2668
|
-
if (typeof sym === 'string') { return false; }
|
|
2669
|
-
|
|
2670
|
-
if (Object.prototype.toString.call(sym) !== '[object Symbol]') { return false; }
|
|
2671
|
-
if (Object.prototype.toString.call(symObj) !== '[object Symbol]') { return false; }
|
|
2672
|
-
|
|
2673
|
-
// temp disabled per https://github.com/ljharb/object.assign/issues/17
|
|
2674
|
-
// if (sym instanceof Symbol) { return false; }
|
|
2675
|
-
// temp disabled per https://github.com/WebReflection/get-own-property-symbols/issues/4
|
|
2676
|
-
// if (!(symObj instanceof Symbol)) { return false; }
|
|
2677
|
-
|
|
2678
|
-
// if (typeof Symbol.prototype.toString !== 'function') { return false; }
|
|
2679
|
-
// if (String(sym) !== Symbol.prototype.toString.call(sym)) { return false; }
|
|
2680
|
-
|
|
2681
|
-
var symVal = 42;
|
|
2682
|
-
obj[sym] = symVal;
|
|
2683
|
-
for (var _ in obj) { return false; } // eslint-disable-line no-restricted-syntax, no-unreachable-loop
|
|
2684
|
-
if (typeof Object.keys === 'function' && Object.keys(obj).length !== 0) { return false; }
|
|
2685
|
-
|
|
2686
|
-
if (typeof Object.getOwnPropertyNames === 'function' && Object.getOwnPropertyNames(obj).length !== 0) { return false; }
|
|
2687
|
-
|
|
2688
|
-
var syms = Object.getOwnPropertySymbols(obj);
|
|
2689
|
-
if (syms.length !== 1 || syms[0] !== sym) { return false; }
|
|
2690
|
-
|
|
2691
|
-
if (!Object.prototype.propertyIsEnumerable.call(obj, sym)) { return false; }
|
|
2692
|
-
|
|
2693
|
-
if (typeof Object.getOwnPropertyDescriptor === 'function') {
|
|
2694
|
-
// eslint-disable-next-line no-extra-parens
|
|
2695
|
-
var descriptor = /** @type {PropertyDescriptor} */ (Object.getOwnPropertyDescriptor(obj, sym));
|
|
2696
|
-
if (descriptor.value !== symVal || descriptor.enumerable !== true) { return false; }
|
|
2697
|
-
}
|
|
2698
|
-
|
|
2699
|
-
return true;
|
|
2700
|
-
};
|
|
2701
|
-
|
|
2702
|
-
},{}],30:[function(require,module,exports){
|
|
2703
|
-
'use strict';
|
|
2704
|
-
|
|
2705
|
-
var call = Function.prototype.call;
|
|
2706
|
-
var $hasOwn = Object.prototype.hasOwnProperty;
|
|
2707
|
-
var bind = require('function-bind');
|
|
2708
|
-
|
|
2709
|
-
/** @type {import('.')} */
|
|
2710
|
-
module.exports = bind.call(call, $hasOwn);
|
|
2711
|
-
|
|
2712
|
-
},{"function-bind":21}],31:[function(require,module,exports){
|
|
1934
|
+
},{"base64-js":1,"buffer":2,"ieee754":3}],3:[function(require,module,exports){
|
|
2713
1935
|
/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */
|
|
2714
1936
|
exports.read = function (buffer, offset, isLE, mLen, nBytes) {
|
|
2715
1937
|
var e, m
|
|
@@ -2796,612 +2018,7 @@ exports.write = function (buffer, value, offset, isLE, mLen, nBytes) {
|
|
|
2796
2018
|
buffer[offset + i - d] |= s * 128
|
|
2797
2019
|
}
|
|
2798
2020
|
|
|
2799
|
-
},{}],
|
|
2800
|
-
'use strict';
|
|
2801
|
-
|
|
2802
|
-
/** @type {import('./abs')} */
|
|
2803
|
-
module.exports = Math.abs;
|
|
2804
|
-
|
|
2805
|
-
},{}],33:[function(require,module,exports){
|
|
2806
|
-
'use strict';
|
|
2807
|
-
|
|
2808
|
-
/** @type {import('./floor')} */
|
|
2809
|
-
module.exports = Math.floor;
|
|
2810
|
-
|
|
2811
|
-
},{}],34:[function(require,module,exports){
|
|
2812
|
-
'use strict';
|
|
2813
|
-
|
|
2814
|
-
/** @type {import('./isNaN')} */
|
|
2815
|
-
module.exports = Number.isNaN || function isNaN(a) {
|
|
2816
|
-
return a !== a;
|
|
2817
|
-
};
|
|
2818
|
-
|
|
2819
|
-
},{}],35:[function(require,module,exports){
|
|
2820
|
-
'use strict';
|
|
2821
|
-
|
|
2822
|
-
/** @type {import('./max')} */
|
|
2823
|
-
module.exports = Math.max;
|
|
2824
|
-
|
|
2825
|
-
},{}],36:[function(require,module,exports){
|
|
2826
|
-
'use strict';
|
|
2827
|
-
|
|
2828
|
-
/** @type {import('./min')} */
|
|
2829
|
-
module.exports = Math.min;
|
|
2830
|
-
|
|
2831
|
-
},{}],37:[function(require,module,exports){
|
|
2832
|
-
'use strict';
|
|
2833
|
-
|
|
2834
|
-
/** @type {import('./pow')} */
|
|
2835
|
-
module.exports = Math.pow;
|
|
2836
|
-
|
|
2837
|
-
},{}],38:[function(require,module,exports){
|
|
2838
|
-
'use strict';
|
|
2839
|
-
|
|
2840
|
-
/** @type {import('./round')} */
|
|
2841
|
-
module.exports = Math.round;
|
|
2842
|
-
|
|
2843
|
-
},{}],39:[function(require,module,exports){
|
|
2844
|
-
'use strict';
|
|
2845
|
-
|
|
2846
|
-
var $isNaN = require('./isNaN');
|
|
2847
|
-
|
|
2848
|
-
/** @type {import('./sign')} */
|
|
2849
|
-
module.exports = function sign(number) {
|
|
2850
|
-
if ($isNaN(number) || number === 0) {
|
|
2851
|
-
return number;
|
|
2852
|
-
}
|
|
2853
|
-
return number < 0 ? -1 : +1;
|
|
2854
|
-
};
|
|
2855
|
-
|
|
2856
|
-
},{"./isNaN":34}],40:[function(require,module,exports){
|
|
2857
|
-
(function (global){(function (){
|
|
2858
|
-
var hasMap = typeof Map === 'function' && Map.prototype;
|
|
2859
|
-
var mapSizeDescriptor = Object.getOwnPropertyDescriptor && hasMap ? Object.getOwnPropertyDescriptor(Map.prototype, 'size') : null;
|
|
2860
|
-
var mapSize = hasMap && mapSizeDescriptor && typeof mapSizeDescriptor.get === 'function' ? mapSizeDescriptor.get : null;
|
|
2861
|
-
var mapForEach = hasMap && Map.prototype.forEach;
|
|
2862
|
-
var hasSet = typeof Set === 'function' && Set.prototype;
|
|
2863
|
-
var setSizeDescriptor = Object.getOwnPropertyDescriptor && hasSet ? Object.getOwnPropertyDescriptor(Set.prototype, 'size') : null;
|
|
2864
|
-
var setSize = hasSet && setSizeDescriptor && typeof setSizeDescriptor.get === 'function' ? setSizeDescriptor.get : null;
|
|
2865
|
-
var setForEach = hasSet && Set.prototype.forEach;
|
|
2866
|
-
var hasWeakMap = typeof WeakMap === 'function' && WeakMap.prototype;
|
|
2867
|
-
var weakMapHas = hasWeakMap ? WeakMap.prototype.has : null;
|
|
2868
|
-
var hasWeakSet = typeof WeakSet === 'function' && WeakSet.prototype;
|
|
2869
|
-
var weakSetHas = hasWeakSet ? WeakSet.prototype.has : null;
|
|
2870
|
-
var hasWeakRef = typeof WeakRef === 'function' && WeakRef.prototype;
|
|
2871
|
-
var weakRefDeref = hasWeakRef ? WeakRef.prototype.deref : null;
|
|
2872
|
-
var booleanValueOf = Boolean.prototype.valueOf;
|
|
2873
|
-
var objectToString = Object.prototype.toString;
|
|
2874
|
-
var functionToString = Function.prototype.toString;
|
|
2875
|
-
var $match = String.prototype.match;
|
|
2876
|
-
var $slice = String.prototype.slice;
|
|
2877
|
-
var $replace = String.prototype.replace;
|
|
2878
|
-
var $toUpperCase = String.prototype.toUpperCase;
|
|
2879
|
-
var $toLowerCase = String.prototype.toLowerCase;
|
|
2880
|
-
var $test = RegExp.prototype.test;
|
|
2881
|
-
var $concat = Array.prototype.concat;
|
|
2882
|
-
var $join = Array.prototype.join;
|
|
2883
|
-
var $arrSlice = Array.prototype.slice;
|
|
2884
|
-
var $floor = Math.floor;
|
|
2885
|
-
var bigIntValueOf = typeof BigInt === 'function' ? BigInt.prototype.valueOf : null;
|
|
2886
|
-
var gOPS = Object.getOwnPropertySymbols;
|
|
2887
|
-
var symToString = typeof Symbol === 'function' && typeof Symbol.iterator === 'symbol' ? Symbol.prototype.toString : null;
|
|
2888
|
-
var hasShammedSymbols = typeof Symbol === 'function' && typeof Symbol.iterator === 'object';
|
|
2889
|
-
// ie, `has-tostringtag/shams
|
|
2890
|
-
var toStringTag = typeof Symbol === 'function' && Symbol.toStringTag && (typeof Symbol.toStringTag === hasShammedSymbols ? 'object' : 'symbol')
|
|
2891
|
-
? Symbol.toStringTag
|
|
2892
|
-
: null;
|
|
2893
|
-
var isEnumerable = Object.prototype.propertyIsEnumerable;
|
|
2894
|
-
|
|
2895
|
-
var gPO = (typeof Reflect === 'function' ? Reflect.getPrototypeOf : Object.getPrototypeOf) || (
|
|
2896
|
-
[].__proto__ === Array.prototype // eslint-disable-line no-proto
|
|
2897
|
-
? function (O) {
|
|
2898
|
-
return O.__proto__; // eslint-disable-line no-proto
|
|
2899
|
-
}
|
|
2900
|
-
: null
|
|
2901
|
-
);
|
|
2902
|
-
|
|
2903
|
-
function addNumericSeparator(num, str) {
|
|
2904
|
-
if (
|
|
2905
|
-
num === Infinity
|
|
2906
|
-
|| num === -Infinity
|
|
2907
|
-
|| num !== num
|
|
2908
|
-
|| (num && num > -1000 && num < 1000)
|
|
2909
|
-
|| $test.call(/e/, str)
|
|
2910
|
-
) {
|
|
2911
|
-
return str;
|
|
2912
|
-
}
|
|
2913
|
-
var sepRegex = /[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;
|
|
2914
|
-
if (typeof num === 'number') {
|
|
2915
|
-
var int = num < 0 ? -$floor(-num) : $floor(num); // trunc(num)
|
|
2916
|
-
if (int !== num) {
|
|
2917
|
-
var intStr = String(int);
|
|
2918
|
-
var dec = $slice.call(str, intStr.length + 1);
|
|
2919
|
-
return $replace.call(intStr, sepRegex, '$&_') + '.' + $replace.call($replace.call(dec, /([0-9]{3})/g, '$&_'), /_$/, '');
|
|
2920
|
-
}
|
|
2921
|
-
}
|
|
2922
|
-
return $replace.call(str, sepRegex, '$&_');
|
|
2923
|
-
}
|
|
2924
|
-
|
|
2925
|
-
var utilInspect = require('./util.inspect');
|
|
2926
|
-
var inspectCustom = utilInspect.custom;
|
|
2927
|
-
var inspectSymbol = isSymbol(inspectCustom) ? inspectCustom : null;
|
|
2928
|
-
|
|
2929
|
-
var quotes = {
|
|
2930
|
-
__proto__: null,
|
|
2931
|
-
'double': '"',
|
|
2932
|
-
single: "'"
|
|
2933
|
-
};
|
|
2934
|
-
var quoteREs = {
|
|
2935
|
-
__proto__: null,
|
|
2936
|
-
'double': /(["\\])/g,
|
|
2937
|
-
single: /(['\\])/g
|
|
2938
|
-
};
|
|
2939
|
-
|
|
2940
|
-
module.exports = function inspect_(obj, options, depth, seen) {
|
|
2941
|
-
var opts = options || {};
|
|
2942
|
-
|
|
2943
|
-
if (has(opts, 'quoteStyle') && !has(quotes, opts.quoteStyle)) {
|
|
2944
|
-
throw new TypeError('option "quoteStyle" must be "single" or "double"');
|
|
2945
|
-
}
|
|
2946
|
-
if (
|
|
2947
|
-
has(opts, 'maxStringLength') && (typeof opts.maxStringLength === 'number'
|
|
2948
|
-
? opts.maxStringLength < 0 && opts.maxStringLength !== Infinity
|
|
2949
|
-
: opts.maxStringLength !== null
|
|
2950
|
-
)
|
|
2951
|
-
) {
|
|
2952
|
-
throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');
|
|
2953
|
-
}
|
|
2954
|
-
var customInspect = has(opts, 'customInspect') ? opts.customInspect : true;
|
|
2955
|
-
if (typeof customInspect !== 'boolean' && customInspect !== 'symbol') {
|
|
2956
|
-
throw new TypeError('option "customInspect", if provided, must be `true`, `false`, or `\'symbol\'`');
|
|
2957
|
-
}
|
|
2958
|
-
|
|
2959
|
-
if (
|
|
2960
|
-
has(opts, 'indent')
|
|
2961
|
-
&& opts.indent !== null
|
|
2962
|
-
&& opts.indent !== '\t'
|
|
2963
|
-
&& !(parseInt(opts.indent, 10) === opts.indent && opts.indent > 0)
|
|
2964
|
-
) {
|
|
2965
|
-
throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');
|
|
2966
|
-
}
|
|
2967
|
-
if (has(opts, 'numericSeparator') && typeof opts.numericSeparator !== 'boolean') {
|
|
2968
|
-
throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');
|
|
2969
|
-
}
|
|
2970
|
-
var numericSeparator = opts.numericSeparator;
|
|
2971
|
-
|
|
2972
|
-
if (typeof obj === 'undefined') {
|
|
2973
|
-
return 'undefined';
|
|
2974
|
-
}
|
|
2975
|
-
if (obj === null) {
|
|
2976
|
-
return 'null';
|
|
2977
|
-
}
|
|
2978
|
-
if (typeof obj === 'boolean') {
|
|
2979
|
-
return obj ? 'true' : 'false';
|
|
2980
|
-
}
|
|
2981
|
-
|
|
2982
|
-
if (typeof obj === 'string') {
|
|
2983
|
-
return inspectString(obj, opts);
|
|
2984
|
-
}
|
|
2985
|
-
if (typeof obj === 'number') {
|
|
2986
|
-
if (obj === 0) {
|
|
2987
|
-
return Infinity / obj > 0 ? '0' : '-0';
|
|
2988
|
-
}
|
|
2989
|
-
var str = String(obj);
|
|
2990
|
-
return numericSeparator ? addNumericSeparator(obj, str) : str;
|
|
2991
|
-
}
|
|
2992
|
-
if (typeof obj === 'bigint') {
|
|
2993
|
-
var bigIntStr = String(obj) + 'n';
|
|
2994
|
-
return numericSeparator ? addNumericSeparator(obj, bigIntStr) : bigIntStr;
|
|
2995
|
-
}
|
|
2996
|
-
|
|
2997
|
-
var maxDepth = typeof opts.depth === 'undefined' ? 5 : opts.depth;
|
|
2998
|
-
if (typeof depth === 'undefined') { depth = 0; }
|
|
2999
|
-
if (depth >= maxDepth && maxDepth > 0 && typeof obj === 'object') {
|
|
3000
|
-
return isArray(obj) ? '[Array]' : '[Object]';
|
|
3001
|
-
}
|
|
3002
|
-
|
|
3003
|
-
var indent = getIndent(opts, depth);
|
|
3004
|
-
|
|
3005
|
-
if (typeof seen === 'undefined') {
|
|
3006
|
-
seen = [];
|
|
3007
|
-
} else if (indexOf(seen, obj) >= 0) {
|
|
3008
|
-
return '[Circular]';
|
|
3009
|
-
}
|
|
3010
|
-
|
|
3011
|
-
function inspect(value, from, noIndent) {
|
|
3012
|
-
if (from) {
|
|
3013
|
-
seen = $arrSlice.call(seen);
|
|
3014
|
-
seen.push(from);
|
|
3015
|
-
}
|
|
3016
|
-
if (noIndent) {
|
|
3017
|
-
var newOpts = {
|
|
3018
|
-
depth: opts.depth
|
|
3019
|
-
};
|
|
3020
|
-
if (has(opts, 'quoteStyle')) {
|
|
3021
|
-
newOpts.quoteStyle = opts.quoteStyle;
|
|
3022
|
-
}
|
|
3023
|
-
return inspect_(value, newOpts, depth + 1, seen);
|
|
3024
|
-
}
|
|
3025
|
-
return inspect_(value, opts, depth + 1, seen);
|
|
3026
|
-
}
|
|
3027
|
-
|
|
3028
|
-
if (typeof obj === 'function' && !isRegExp(obj)) { // in older engines, regexes are callable
|
|
3029
|
-
var name = nameOf(obj);
|
|
3030
|
-
var keys = arrObjKeys(obj, inspect);
|
|
3031
|
-
return '[Function' + (name ? ': ' + name : ' (anonymous)') + ']' + (keys.length > 0 ? ' { ' + $join.call(keys, ', ') + ' }' : '');
|
|
3032
|
-
}
|
|
3033
|
-
if (isSymbol(obj)) {
|
|
3034
|
-
var symString = hasShammedSymbols ? $replace.call(String(obj), /^(Symbol\(.*\))_[^)]*$/, '$1') : symToString.call(obj);
|
|
3035
|
-
return typeof obj === 'object' && !hasShammedSymbols ? markBoxed(symString) : symString;
|
|
3036
|
-
}
|
|
3037
|
-
if (isElement(obj)) {
|
|
3038
|
-
var s = '<' + $toLowerCase.call(String(obj.nodeName));
|
|
3039
|
-
var attrs = obj.attributes || [];
|
|
3040
|
-
for (var i = 0; i < attrs.length; i++) {
|
|
3041
|
-
s += ' ' + attrs[i].name + '=' + wrapQuotes(quote(attrs[i].value), 'double', opts);
|
|
3042
|
-
}
|
|
3043
|
-
s += '>';
|
|
3044
|
-
if (obj.childNodes && obj.childNodes.length) { s += '...'; }
|
|
3045
|
-
s += '</' + $toLowerCase.call(String(obj.nodeName)) + '>';
|
|
3046
|
-
return s;
|
|
3047
|
-
}
|
|
3048
|
-
if (isArray(obj)) {
|
|
3049
|
-
if (obj.length === 0) { return '[]'; }
|
|
3050
|
-
var xs = arrObjKeys(obj, inspect);
|
|
3051
|
-
if (indent && !singleLineValues(xs)) {
|
|
3052
|
-
return '[' + indentedJoin(xs, indent) + ']';
|
|
3053
|
-
}
|
|
3054
|
-
return '[ ' + $join.call(xs, ', ') + ' ]';
|
|
3055
|
-
}
|
|
3056
|
-
if (isError(obj)) {
|
|
3057
|
-
var parts = arrObjKeys(obj, inspect);
|
|
3058
|
-
if (!('cause' in Error.prototype) && 'cause' in obj && !isEnumerable.call(obj, 'cause')) {
|
|
3059
|
-
return '{ [' + String(obj) + '] ' + $join.call($concat.call('[cause]: ' + inspect(obj.cause), parts), ', ') + ' }';
|
|
3060
|
-
}
|
|
3061
|
-
if (parts.length === 0) { return '[' + String(obj) + ']'; }
|
|
3062
|
-
return '{ [' + String(obj) + '] ' + $join.call(parts, ', ') + ' }';
|
|
3063
|
-
}
|
|
3064
|
-
if (typeof obj === 'object' && customInspect) {
|
|
3065
|
-
if (inspectSymbol && typeof obj[inspectSymbol] === 'function' && utilInspect) {
|
|
3066
|
-
return utilInspect(obj, { depth: maxDepth - depth });
|
|
3067
|
-
} else if (customInspect !== 'symbol' && typeof obj.inspect === 'function') {
|
|
3068
|
-
return obj.inspect();
|
|
3069
|
-
}
|
|
3070
|
-
}
|
|
3071
|
-
if (isMap(obj)) {
|
|
3072
|
-
var mapParts = [];
|
|
3073
|
-
if (mapForEach) {
|
|
3074
|
-
mapForEach.call(obj, function (value, key) {
|
|
3075
|
-
mapParts.push(inspect(key, obj, true) + ' => ' + inspect(value, obj));
|
|
3076
|
-
});
|
|
3077
|
-
}
|
|
3078
|
-
return collectionOf('Map', mapSize.call(obj), mapParts, indent);
|
|
3079
|
-
}
|
|
3080
|
-
if (isSet(obj)) {
|
|
3081
|
-
var setParts = [];
|
|
3082
|
-
if (setForEach) {
|
|
3083
|
-
setForEach.call(obj, function (value) {
|
|
3084
|
-
setParts.push(inspect(value, obj));
|
|
3085
|
-
});
|
|
3086
|
-
}
|
|
3087
|
-
return collectionOf('Set', setSize.call(obj), setParts, indent);
|
|
3088
|
-
}
|
|
3089
|
-
if (isWeakMap(obj)) {
|
|
3090
|
-
return weakCollectionOf('WeakMap');
|
|
3091
|
-
}
|
|
3092
|
-
if (isWeakSet(obj)) {
|
|
3093
|
-
return weakCollectionOf('WeakSet');
|
|
3094
|
-
}
|
|
3095
|
-
if (isWeakRef(obj)) {
|
|
3096
|
-
return weakCollectionOf('WeakRef');
|
|
3097
|
-
}
|
|
3098
|
-
if (isNumber(obj)) {
|
|
3099
|
-
return markBoxed(inspect(Number(obj)));
|
|
3100
|
-
}
|
|
3101
|
-
if (isBigInt(obj)) {
|
|
3102
|
-
return markBoxed(inspect(bigIntValueOf.call(obj)));
|
|
3103
|
-
}
|
|
3104
|
-
if (isBoolean(obj)) {
|
|
3105
|
-
return markBoxed(booleanValueOf.call(obj));
|
|
3106
|
-
}
|
|
3107
|
-
if (isString(obj)) {
|
|
3108
|
-
return markBoxed(inspect(String(obj)));
|
|
3109
|
-
}
|
|
3110
|
-
// note: in IE 8, sometimes `global !== window` but both are the prototypes of each other
|
|
3111
|
-
/* eslint-env browser */
|
|
3112
|
-
if (typeof window !== 'undefined' && obj === window) {
|
|
3113
|
-
return '{ [object Window] }';
|
|
3114
|
-
}
|
|
3115
|
-
if (
|
|
3116
|
-
(typeof globalThis !== 'undefined' && obj === globalThis)
|
|
3117
|
-
|| (typeof global !== 'undefined' && obj === global)
|
|
3118
|
-
) {
|
|
3119
|
-
return '{ [object globalThis] }';
|
|
3120
|
-
}
|
|
3121
|
-
if (!isDate(obj) && !isRegExp(obj)) {
|
|
3122
|
-
var ys = arrObjKeys(obj, inspect);
|
|
3123
|
-
var isPlainObject = gPO ? gPO(obj) === Object.prototype : obj instanceof Object || obj.constructor === Object;
|
|
3124
|
-
var protoTag = obj instanceof Object ? '' : 'null prototype';
|
|
3125
|
-
var stringTag = !isPlainObject && toStringTag && Object(obj) === obj && toStringTag in obj ? $slice.call(toStr(obj), 8, -1) : protoTag ? 'Object' : '';
|
|
3126
|
-
var constructorTag = isPlainObject || typeof obj.constructor !== 'function' ? '' : obj.constructor.name ? obj.constructor.name + ' ' : '';
|
|
3127
|
-
var tag = constructorTag + (stringTag || protoTag ? '[' + $join.call($concat.call([], stringTag || [], protoTag || []), ': ') + '] ' : '');
|
|
3128
|
-
if (ys.length === 0) { return tag + '{}'; }
|
|
3129
|
-
if (indent) {
|
|
3130
|
-
return tag + '{' + indentedJoin(ys, indent) + '}';
|
|
3131
|
-
}
|
|
3132
|
-
return tag + '{ ' + $join.call(ys, ', ') + ' }';
|
|
3133
|
-
}
|
|
3134
|
-
return String(obj);
|
|
3135
|
-
};
|
|
3136
|
-
|
|
3137
|
-
function wrapQuotes(s, defaultStyle, opts) {
|
|
3138
|
-
var style = opts.quoteStyle || defaultStyle;
|
|
3139
|
-
var quoteChar = quotes[style];
|
|
3140
|
-
return quoteChar + s + quoteChar;
|
|
3141
|
-
}
|
|
3142
|
-
|
|
3143
|
-
function quote(s) {
|
|
3144
|
-
return $replace.call(String(s), /"/g, '"');
|
|
3145
|
-
}
|
|
3146
|
-
|
|
3147
|
-
function canTrustToString(obj) {
|
|
3148
|
-
return !toStringTag || !(typeof obj === 'object' && (toStringTag in obj || typeof obj[toStringTag] !== 'undefined'));
|
|
3149
|
-
}
|
|
3150
|
-
function isArray(obj) { return toStr(obj) === '[object Array]' && canTrustToString(obj); }
|
|
3151
|
-
function isDate(obj) { return toStr(obj) === '[object Date]' && canTrustToString(obj); }
|
|
3152
|
-
function isRegExp(obj) { return toStr(obj) === '[object RegExp]' && canTrustToString(obj); }
|
|
3153
|
-
function isError(obj) { return toStr(obj) === '[object Error]' && canTrustToString(obj); }
|
|
3154
|
-
function isString(obj) { return toStr(obj) === '[object String]' && canTrustToString(obj); }
|
|
3155
|
-
function isNumber(obj) { return toStr(obj) === '[object Number]' && canTrustToString(obj); }
|
|
3156
|
-
function isBoolean(obj) { return toStr(obj) === '[object Boolean]' && canTrustToString(obj); }
|
|
3157
|
-
|
|
3158
|
-
// Symbol and BigInt do have Symbol.toStringTag by spec, so that can't be used to eliminate false positives
|
|
3159
|
-
function isSymbol(obj) {
|
|
3160
|
-
if (hasShammedSymbols) {
|
|
3161
|
-
return obj && typeof obj === 'object' && obj instanceof Symbol;
|
|
3162
|
-
}
|
|
3163
|
-
if (typeof obj === 'symbol') {
|
|
3164
|
-
return true;
|
|
3165
|
-
}
|
|
3166
|
-
if (!obj || typeof obj !== 'object' || !symToString) {
|
|
3167
|
-
return false;
|
|
3168
|
-
}
|
|
3169
|
-
try {
|
|
3170
|
-
symToString.call(obj);
|
|
3171
|
-
return true;
|
|
3172
|
-
} catch (e) {}
|
|
3173
|
-
return false;
|
|
3174
|
-
}
|
|
3175
|
-
|
|
3176
|
-
function isBigInt(obj) {
|
|
3177
|
-
if (!obj || typeof obj !== 'object' || !bigIntValueOf) {
|
|
3178
|
-
return false;
|
|
3179
|
-
}
|
|
3180
|
-
try {
|
|
3181
|
-
bigIntValueOf.call(obj);
|
|
3182
|
-
return true;
|
|
3183
|
-
} catch (e) {}
|
|
3184
|
-
return false;
|
|
3185
|
-
}
|
|
3186
|
-
|
|
3187
|
-
var hasOwn = Object.prototype.hasOwnProperty || function (key) { return key in this; };
|
|
3188
|
-
function has(obj, key) {
|
|
3189
|
-
return hasOwn.call(obj, key);
|
|
3190
|
-
}
|
|
3191
|
-
|
|
3192
|
-
function toStr(obj) {
|
|
3193
|
-
return objectToString.call(obj);
|
|
3194
|
-
}
|
|
3195
|
-
|
|
3196
|
-
function nameOf(f) {
|
|
3197
|
-
if (f.name) { return f.name; }
|
|
3198
|
-
var m = $match.call(functionToString.call(f), /^function\s*([\w$]+)/);
|
|
3199
|
-
if (m) { return m[1]; }
|
|
3200
|
-
return null;
|
|
3201
|
-
}
|
|
3202
|
-
|
|
3203
|
-
function indexOf(xs, x) {
|
|
3204
|
-
if (xs.indexOf) { return xs.indexOf(x); }
|
|
3205
|
-
for (var i = 0, l = xs.length; i < l; i++) {
|
|
3206
|
-
if (xs[i] === x) { return i; }
|
|
3207
|
-
}
|
|
3208
|
-
return -1;
|
|
3209
|
-
}
|
|
3210
|
-
|
|
3211
|
-
function isMap(x) {
|
|
3212
|
-
if (!mapSize || !x || typeof x !== 'object') {
|
|
3213
|
-
return false;
|
|
3214
|
-
}
|
|
3215
|
-
try {
|
|
3216
|
-
mapSize.call(x);
|
|
3217
|
-
try {
|
|
3218
|
-
setSize.call(x);
|
|
3219
|
-
} catch (s) {
|
|
3220
|
-
return true;
|
|
3221
|
-
}
|
|
3222
|
-
return x instanceof Map; // core-js workaround, pre-v2.5.0
|
|
3223
|
-
} catch (e) {}
|
|
3224
|
-
return false;
|
|
3225
|
-
}
|
|
3226
|
-
|
|
3227
|
-
function isWeakMap(x) {
|
|
3228
|
-
if (!weakMapHas || !x || typeof x !== 'object') {
|
|
3229
|
-
return false;
|
|
3230
|
-
}
|
|
3231
|
-
try {
|
|
3232
|
-
weakMapHas.call(x, weakMapHas);
|
|
3233
|
-
try {
|
|
3234
|
-
weakSetHas.call(x, weakSetHas);
|
|
3235
|
-
} catch (s) {
|
|
3236
|
-
return true;
|
|
3237
|
-
}
|
|
3238
|
-
return x instanceof WeakMap; // core-js workaround, pre-v2.5.0
|
|
3239
|
-
} catch (e) {}
|
|
3240
|
-
return false;
|
|
3241
|
-
}
|
|
3242
|
-
|
|
3243
|
-
function isWeakRef(x) {
|
|
3244
|
-
if (!weakRefDeref || !x || typeof x !== 'object') {
|
|
3245
|
-
return false;
|
|
3246
|
-
}
|
|
3247
|
-
try {
|
|
3248
|
-
weakRefDeref.call(x);
|
|
3249
|
-
return true;
|
|
3250
|
-
} catch (e) {}
|
|
3251
|
-
return false;
|
|
3252
|
-
}
|
|
3253
|
-
|
|
3254
|
-
function isSet(x) {
|
|
3255
|
-
if (!setSize || !x || typeof x !== 'object') {
|
|
3256
|
-
return false;
|
|
3257
|
-
}
|
|
3258
|
-
try {
|
|
3259
|
-
setSize.call(x);
|
|
3260
|
-
try {
|
|
3261
|
-
mapSize.call(x);
|
|
3262
|
-
} catch (m) {
|
|
3263
|
-
return true;
|
|
3264
|
-
}
|
|
3265
|
-
return x instanceof Set; // core-js workaround, pre-v2.5.0
|
|
3266
|
-
} catch (e) {}
|
|
3267
|
-
return false;
|
|
3268
|
-
}
|
|
3269
|
-
|
|
3270
|
-
function isWeakSet(x) {
|
|
3271
|
-
if (!weakSetHas || !x || typeof x !== 'object') {
|
|
3272
|
-
return false;
|
|
3273
|
-
}
|
|
3274
|
-
try {
|
|
3275
|
-
weakSetHas.call(x, weakSetHas);
|
|
3276
|
-
try {
|
|
3277
|
-
weakMapHas.call(x, weakMapHas);
|
|
3278
|
-
} catch (s) {
|
|
3279
|
-
return true;
|
|
3280
|
-
}
|
|
3281
|
-
return x instanceof WeakSet; // core-js workaround, pre-v2.5.0
|
|
3282
|
-
} catch (e) {}
|
|
3283
|
-
return false;
|
|
3284
|
-
}
|
|
3285
|
-
|
|
3286
|
-
function isElement(x) {
|
|
3287
|
-
if (!x || typeof x !== 'object') { return false; }
|
|
3288
|
-
if (typeof HTMLElement !== 'undefined' && x instanceof HTMLElement) {
|
|
3289
|
-
return true;
|
|
3290
|
-
}
|
|
3291
|
-
return typeof x.nodeName === 'string' && typeof x.getAttribute === 'function';
|
|
3292
|
-
}
|
|
3293
|
-
|
|
3294
|
-
function inspectString(str, opts) {
|
|
3295
|
-
if (str.length > opts.maxStringLength) {
|
|
3296
|
-
var remaining = str.length - opts.maxStringLength;
|
|
3297
|
-
var trailer = '... ' + remaining + ' more character' + (remaining > 1 ? 's' : '');
|
|
3298
|
-
return inspectString($slice.call(str, 0, opts.maxStringLength), opts) + trailer;
|
|
3299
|
-
}
|
|
3300
|
-
var quoteRE = quoteREs[opts.quoteStyle || 'single'];
|
|
3301
|
-
quoteRE.lastIndex = 0;
|
|
3302
|
-
// eslint-disable-next-line no-control-regex
|
|
3303
|
-
var s = $replace.call($replace.call(str, quoteRE, '\\$1'), /[\x00-\x1f]/g, lowbyte);
|
|
3304
|
-
return wrapQuotes(s, 'single', opts);
|
|
3305
|
-
}
|
|
3306
|
-
|
|
3307
|
-
function lowbyte(c) {
|
|
3308
|
-
var n = c.charCodeAt(0);
|
|
3309
|
-
var x = {
|
|
3310
|
-
8: 'b',
|
|
3311
|
-
9: 't',
|
|
3312
|
-
10: 'n',
|
|
3313
|
-
12: 'f',
|
|
3314
|
-
13: 'r'
|
|
3315
|
-
}[n];
|
|
3316
|
-
if (x) { return '\\' + x; }
|
|
3317
|
-
return '\\x' + (n < 0x10 ? '0' : '') + $toUpperCase.call(n.toString(16));
|
|
3318
|
-
}
|
|
3319
|
-
|
|
3320
|
-
function markBoxed(str) {
|
|
3321
|
-
return 'Object(' + str + ')';
|
|
3322
|
-
}
|
|
3323
|
-
|
|
3324
|
-
function weakCollectionOf(type) {
|
|
3325
|
-
return type + ' { ? }';
|
|
3326
|
-
}
|
|
3327
|
-
|
|
3328
|
-
function collectionOf(type, size, entries, indent) {
|
|
3329
|
-
var joinedEntries = indent ? indentedJoin(entries, indent) : $join.call(entries, ', ');
|
|
3330
|
-
return type + ' (' + size + ') {' + joinedEntries + '}';
|
|
3331
|
-
}
|
|
3332
|
-
|
|
3333
|
-
function singleLineValues(xs) {
|
|
3334
|
-
for (var i = 0; i < xs.length; i++) {
|
|
3335
|
-
if (indexOf(xs[i], '\n') >= 0) {
|
|
3336
|
-
return false;
|
|
3337
|
-
}
|
|
3338
|
-
}
|
|
3339
|
-
return true;
|
|
3340
|
-
}
|
|
3341
|
-
|
|
3342
|
-
function getIndent(opts, depth) {
|
|
3343
|
-
var baseIndent;
|
|
3344
|
-
if (opts.indent === '\t') {
|
|
3345
|
-
baseIndent = '\t';
|
|
3346
|
-
} else if (typeof opts.indent === 'number' && opts.indent > 0) {
|
|
3347
|
-
baseIndent = $join.call(Array(opts.indent + 1), ' ');
|
|
3348
|
-
} else {
|
|
3349
|
-
return null;
|
|
3350
|
-
}
|
|
3351
|
-
return {
|
|
3352
|
-
base: baseIndent,
|
|
3353
|
-
prev: $join.call(Array(depth + 1), baseIndent)
|
|
3354
|
-
};
|
|
3355
|
-
}
|
|
3356
|
-
|
|
3357
|
-
function indentedJoin(xs, indent) {
|
|
3358
|
-
if (xs.length === 0) { return ''; }
|
|
3359
|
-
var lineJoiner = '\n' + indent.prev + indent.base;
|
|
3360
|
-
return lineJoiner + $join.call(xs, ',' + lineJoiner) + '\n' + indent.prev;
|
|
3361
|
-
}
|
|
3362
|
-
|
|
3363
|
-
function arrObjKeys(obj, inspect) {
|
|
3364
|
-
var isArr = isArray(obj);
|
|
3365
|
-
var xs = [];
|
|
3366
|
-
if (isArr) {
|
|
3367
|
-
xs.length = obj.length;
|
|
3368
|
-
for (var i = 0; i < obj.length; i++) {
|
|
3369
|
-
xs[i] = has(obj, i) ? inspect(obj[i], obj) : '';
|
|
3370
|
-
}
|
|
3371
|
-
}
|
|
3372
|
-
var syms = typeof gOPS === 'function' ? gOPS(obj) : [];
|
|
3373
|
-
var symMap;
|
|
3374
|
-
if (hasShammedSymbols) {
|
|
3375
|
-
symMap = {};
|
|
3376
|
-
for (var k = 0; k < syms.length; k++) {
|
|
3377
|
-
symMap['$' + syms[k]] = syms[k];
|
|
3378
|
-
}
|
|
3379
|
-
}
|
|
3380
|
-
|
|
3381
|
-
for (var key in obj) { // eslint-disable-line no-restricted-syntax
|
|
3382
|
-
if (!has(obj, key)) { continue; } // eslint-disable-line no-restricted-syntax, no-continue
|
|
3383
|
-
if (isArr && String(Number(key)) === key && key < obj.length) { continue; } // eslint-disable-line no-restricted-syntax, no-continue
|
|
3384
|
-
if (hasShammedSymbols && symMap['$' + key] instanceof Symbol) {
|
|
3385
|
-
// this is to prevent shammed Symbols, which are stored as strings, from being included in the string key section
|
|
3386
|
-
continue; // eslint-disable-line no-restricted-syntax, no-continue
|
|
3387
|
-
} else if ($test.call(/[^\w$]/, key)) {
|
|
3388
|
-
xs.push(inspect(key, obj) + ': ' + inspect(obj[key], obj));
|
|
3389
|
-
} else {
|
|
3390
|
-
xs.push(key + ': ' + inspect(obj[key], obj));
|
|
3391
|
-
}
|
|
3392
|
-
}
|
|
3393
|
-
if (typeof gOPS === 'function') {
|
|
3394
|
-
for (var j = 0; j < syms.length; j++) {
|
|
3395
|
-
if (isEnumerable.call(obj, syms[j])) {
|
|
3396
|
-
xs.push('[' + inspect(syms[j]) + ']: ' + inspect(obj[syms[j]], obj));
|
|
3397
|
-
}
|
|
3398
|
-
}
|
|
3399
|
-
}
|
|
3400
|
-
return xs;
|
|
3401
|
-
}
|
|
3402
|
-
|
|
3403
|
-
}).call(this)}).call(this,typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : {})
|
|
3404
|
-
},{"./util.inspect":2}],41:[function(require,module,exports){
|
|
2021
|
+
},{}],4:[function(require,module,exports){
|
|
3405
2022
|
exports.endianness = function () { return 'LE' };
|
|
3406
2023
|
|
|
3407
2024
|
exports.hostname = function () {
|
|
@@ -3452,7 +2069,7 @@ exports.homedir = function () {
|
|
|
3452
2069
|
return '/'
|
|
3453
2070
|
};
|
|
3454
2071
|
|
|
3455
|
-
},{}],
|
|
2072
|
+
},{}],5:[function(require,module,exports){
|
|
3456
2073
|
(function (process){(function (){
|
|
3457
2074
|
// 'path' module extracted from Node.js v8.11.1 (only the posix part)
|
|
3458
2075
|
// transplited with Babel
|
|
@@ -3985,7 +2602,7 @@ posix.posix = posix;
|
|
|
3985
2602
|
module.exports = posix;
|
|
3986
2603
|
|
|
3987
2604
|
}).call(this)}).call(this,require('_process'))
|
|
3988
|
-
},{"_process":
|
|
2605
|
+
},{"_process":6}],6:[function(require,module,exports){
|
|
3989
2606
|
// shim for using process in browser
|
|
3990
2607
|
var process = module.exports = {};
|
|
3991
2608
|
|
|
@@ -4171,1436 +2788,7 @@ process.chdir = function (dir) {
|
|
|
4171
2788
|
};
|
|
4172
2789
|
process.umask = function() { return 0; };
|
|
4173
2790
|
|
|
4174
|
-
},{}],
|
|
4175
|
-
'use strict';
|
|
4176
|
-
|
|
4177
|
-
var replace = String.prototype.replace;
|
|
4178
|
-
var percentTwenties = /%20/g;
|
|
4179
|
-
|
|
4180
|
-
var Format = {
|
|
4181
|
-
RFC1738: 'RFC1738',
|
|
4182
|
-
RFC3986: 'RFC3986'
|
|
4183
|
-
};
|
|
4184
|
-
|
|
4185
|
-
module.exports = {
|
|
4186
|
-
'default': Format.RFC3986,
|
|
4187
|
-
formatters: {
|
|
4188
|
-
RFC1738: function (value) {
|
|
4189
|
-
return replace.call(value, percentTwenties, '+');
|
|
4190
|
-
},
|
|
4191
|
-
RFC3986: function (value) {
|
|
4192
|
-
return String(value);
|
|
4193
|
-
}
|
|
4194
|
-
},
|
|
4195
|
-
RFC1738: Format.RFC1738,
|
|
4196
|
-
RFC3986: Format.RFC3986
|
|
4197
|
-
};
|
|
4198
|
-
|
|
4199
|
-
},{}],45:[function(require,module,exports){
|
|
4200
|
-
'use strict';
|
|
4201
|
-
|
|
4202
|
-
var stringify = require('./stringify');
|
|
4203
|
-
var parse = require('./parse');
|
|
4204
|
-
var formats = require('./formats');
|
|
4205
|
-
|
|
4206
|
-
module.exports = {
|
|
4207
|
-
formats: formats,
|
|
4208
|
-
parse: parse,
|
|
4209
|
-
stringify: stringify
|
|
4210
|
-
};
|
|
4211
|
-
|
|
4212
|
-
},{"./formats":44,"./parse":46,"./stringify":47}],46:[function(require,module,exports){
|
|
4213
|
-
'use strict';
|
|
4214
|
-
|
|
4215
|
-
var utils = require('./utils');
|
|
4216
|
-
|
|
4217
|
-
var has = Object.prototype.hasOwnProperty;
|
|
4218
|
-
var isArray = Array.isArray;
|
|
4219
|
-
|
|
4220
|
-
var defaults = {
|
|
4221
|
-
allowDots: false,
|
|
4222
|
-
allowEmptyArrays: false,
|
|
4223
|
-
allowPrototypes: false,
|
|
4224
|
-
allowSparse: false,
|
|
4225
|
-
arrayLimit: 20,
|
|
4226
|
-
charset: 'utf-8',
|
|
4227
|
-
charsetSentinel: false,
|
|
4228
|
-
comma: false,
|
|
4229
|
-
decodeDotInKeys: false,
|
|
4230
|
-
decoder: utils.decode,
|
|
4231
|
-
delimiter: '&',
|
|
4232
|
-
depth: 5,
|
|
4233
|
-
duplicates: 'combine',
|
|
4234
|
-
ignoreQueryPrefix: false,
|
|
4235
|
-
interpretNumericEntities: false,
|
|
4236
|
-
parameterLimit: 1000,
|
|
4237
|
-
parseArrays: true,
|
|
4238
|
-
plainObjects: false,
|
|
4239
|
-
strictDepth: false,
|
|
4240
|
-
strictMerge: true,
|
|
4241
|
-
strictNullHandling: false,
|
|
4242
|
-
throwOnLimitExceeded: false
|
|
4243
|
-
};
|
|
4244
|
-
|
|
4245
|
-
var interpretNumericEntities = function (str) {
|
|
4246
|
-
return str.replace(/&#(\d+);/g, function ($0, numberStr) {
|
|
4247
|
-
return String.fromCharCode(parseInt(numberStr, 10));
|
|
4248
|
-
});
|
|
4249
|
-
};
|
|
4250
|
-
|
|
4251
|
-
var parseArrayValue = function (val, options, currentArrayLength) {
|
|
4252
|
-
if (val && typeof val === 'string' && options.comma && val.indexOf(',') > -1) {
|
|
4253
|
-
return val.split(',');
|
|
4254
|
-
}
|
|
4255
|
-
|
|
4256
|
-
if (options.throwOnLimitExceeded && currentArrayLength >= options.arrayLimit) {
|
|
4257
|
-
throw new RangeError('Array limit exceeded. Only ' + options.arrayLimit + ' element' + (options.arrayLimit === 1 ? '' : 's') + ' allowed in an array.');
|
|
4258
|
-
}
|
|
4259
|
-
|
|
4260
|
-
return val;
|
|
4261
|
-
};
|
|
4262
|
-
|
|
4263
|
-
// This is what browsers will submit when the ✓ character occurs in an
|
|
4264
|
-
// application/x-www-form-urlencoded body and the encoding of the page containing
|
|
4265
|
-
// the form is iso-8859-1, or when the submitted form has an accept-charset
|
|
4266
|
-
// attribute of iso-8859-1. Presumably also with other charsets that do not contain
|
|
4267
|
-
// the ✓ character, such as us-ascii.
|
|
4268
|
-
var isoSentinel = 'utf8=%26%2310003%3B'; // encodeURIComponent('✓')
|
|
4269
|
-
|
|
4270
|
-
// These are the percent-encoded utf-8 octets representing a checkmark, indicating that the request actually is utf-8 encoded.
|
|
4271
|
-
var charsetSentinel = 'utf8=%E2%9C%93'; // encodeURIComponent('✓')
|
|
4272
|
-
|
|
4273
|
-
var parseValues = function parseQueryStringValues(str, options) {
|
|
4274
|
-
var obj = { __proto__: null };
|
|
4275
|
-
|
|
4276
|
-
var cleanStr = options.ignoreQueryPrefix ? str.replace(/^\?/, '') : str;
|
|
4277
|
-
cleanStr = cleanStr.replace(/%5B/gi, '[').replace(/%5D/gi, ']');
|
|
4278
|
-
|
|
4279
|
-
var limit = options.parameterLimit === Infinity ? void undefined : options.parameterLimit;
|
|
4280
|
-
var parts = cleanStr.split(
|
|
4281
|
-
options.delimiter,
|
|
4282
|
-
options.throwOnLimitExceeded && typeof limit !== 'undefined' ? limit + 1 : limit
|
|
4283
|
-
);
|
|
4284
|
-
|
|
4285
|
-
if (options.throwOnLimitExceeded && typeof limit !== 'undefined' && parts.length > limit) {
|
|
4286
|
-
throw new RangeError('Parameter limit exceeded. Only ' + limit + ' parameter' + (limit === 1 ? '' : 's') + ' allowed.');
|
|
4287
|
-
}
|
|
4288
|
-
|
|
4289
|
-
var skipIndex = -1; // Keep track of where the utf8 sentinel was found
|
|
4290
|
-
var i;
|
|
4291
|
-
|
|
4292
|
-
var charset = options.charset;
|
|
4293
|
-
if (options.charsetSentinel) {
|
|
4294
|
-
for (i = 0; i < parts.length; ++i) {
|
|
4295
|
-
if (parts[i].indexOf('utf8=') === 0) {
|
|
4296
|
-
if (parts[i] === charsetSentinel) {
|
|
4297
|
-
charset = 'utf-8';
|
|
4298
|
-
} else if (parts[i] === isoSentinel) {
|
|
4299
|
-
charset = 'iso-8859-1';
|
|
4300
|
-
}
|
|
4301
|
-
skipIndex = i;
|
|
4302
|
-
i = parts.length; // The eslint settings do not allow break;
|
|
4303
|
-
}
|
|
4304
|
-
}
|
|
4305
|
-
}
|
|
4306
|
-
|
|
4307
|
-
for (i = 0; i < parts.length; ++i) {
|
|
4308
|
-
if (i === skipIndex) {
|
|
4309
|
-
continue;
|
|
4310
|
-
}
|
|
4311
|
-
var part = parts[i];
|
|
4312
|
-
|
|
4313
|
-
var bracketEqualsPos = part.indexOf(']=');
|
|
4314
|
-
var pos = bracketEqualsPos === -1 ? part.indexOf('=') : bracketEqualsPos + 1;
|
|
4315
|
-
|
|
4316
|
-
var key;
|
|
4317
|
-
var val;
|
|
4318
|
-
if (pos === -1) {
|
|
4319
|
-
key = options.decoder(part, defaults.decoder, charset, 'key');
|
|
4320
|
-
val = options.strictNullHandling ? null : '';
|
|
4321
|
-
} else {
|
|
4322
|
-
key = options.decoder(part.slice(0, pos), defaults.decoder, charset, 'key');
|
|
4323
|
-
|
|
4324
|
-
if (key !== null) {
|
|
4325
|
-
val = utils.maybeMap(
|
|
4326
|
-
parseArrayValue(
|
|
4327
|
-
part.slice(pos + 1),
|
|
4328
|
-
options,
|
|
4329
|
-
isArray(obj[key]) ? obj[key].length : 0
|
|
4330
|
-
),
|
|
4331
|
-
function (encodedVal) {
|
|
4332
|
-
return options.decoder(encodedVal, defaults.decoder, charset, 'value');
|
|
4333
|
-
}
|
|
4334
|
-
);
|
|
4335
|
-
}
|
|
4336
|
-
}
|
|
4337
|
-
|
|
4338
|
-
if (val && options.interpretNumericEntities && charset === 'iso-8859-1') {
|
|
4339
|
-
val = interpretNumericEntities(String(val));
|
|
4340
|
-
}
|
|
4341
|
-
|
|
4342
|
-
if (part.indexOf('[]=') > -1) {
|
|
4343
|
-
val = isArray(val) ? [val] : val;
|
|
4344
|
-
}
|
|
4345
|
-
|
|
4346
|
-
if (options.comma && isArray(val) && val.length > options.arrayLimit) {
|
|
4347
|
-
if (options.throwOnLimitExceeded) {
|
|
4348
|
-
throw new RangeError('Array limit exceeded. Only ' + options.arrayLimit + ' element' + (options.arrayLimit === 1 ? '' : 's') + ' allowed in an array.');
|
|
4349
|
-
}
|
|
4350
|
-
val = utils.combine([], val, options.arrayLimit, options.plainObjects);
|
|
4351
|
-
}
|
|
4352
|
-
|
|
4353
|
-
if (key !== null) {
|
|
4354
|
-
var existing = has.call(obj, key);
|
|
4355
|
-
if (existing && (options.duplicates === 'combine' || part.indexOf('[]=') > -1)) {
|
|
4356
|
-
obj[key] = utils.combine(
|
|
4357
|
-
obj[key],
|
|
4358
|
-
val,
|
|
4359
|
-
options.arrayLimit,
|
|
4360
|
-
options.plainObjects
|
|
4361
|
-
);
|
|
4362
|
-
} else if (!existing || options.duplicates === 'last') {
|
|
4363
|
-
obj[key] = val;
|
|
4364
|
-
}
|
|
4365
|
-
}
|
|
4366
|
-
}
|
|
4367
|
-
|
|
4368
|
-
return obj;
|
|
4369
|
-
};
|
|
4370
|
-
|
|
4371
|
-
var parseObject = function (chain, val, options, valuesParsed) {
|
|
4372
|
-
var currentArrayLength = 0;
|
|
4373
|
-
if (chain.length > 0 && chain[chain.length - 1] === '[]') {
|
|
4374
|
-
var parentKey = chain.slice(0, -1).join('');
|
|
4375
|
-
currentArrayLength = Array.isArray(val) && val[parentKey] ? val[parentKey].length : 0;
|
|
4376
|
-
}
|
|
4377
|
-
|
|
4378
|
-
var leaf = valuesParsed ? val : parseArrayValue(val, options, currentArrayLength);
|
|
4379
|
-
|
|
4380
|
-
for (var i = chain.length - 1; i >= 0; --i) {
|
|
4381
|
-
var obj;
|
|
4382
|
-
var root = chain[i];
|
|
4383
|
-
|
|
4384
|
-
if (root === '[]' && options.parseArrays) {
|
|
4385
|
-
if (utils.isOverflow(leaf)) {
|
|
4386
|
-
// leaf is already an overflow object, preserve it
|
|
4387
|
-
obj = leaf;
|
|
4388
|
-
} else {
|
|
4389
|
-
obj = options.allowEmptyArrays && (leaf === '' || (options.strictNullHandling && leaf === null))
|
|
4390
|
-
? []
|
|
4391
|
-
: utils.combine(
|
|
4392
|
-
[],
|
|
4393
|
-
leaf,
|
|
4394
|
-
options.arrayLimit,
|
|
4395
|
-
options.plainObjects
|
|
4396
|
-
);
|
|
4397
|
-
}
|
|
4398
|
-
} else {
|
|
4399
|
-
obj = options.plainObjects ? { __proto__: null } : {};
|
|
4400
|
-
var cleanRoot = root.charAt(0) === '[' && root.charAt(root.length - 1) === ']' ? root.slice(1, -1) : root;
|
|
4401
|
-
var decodedRoot = options.decodeDotInKeys ? cleanRoot.replace(/%2E/g, '.') : cleanRoot;
|
|
4402
|
-
var index = parseInt(decodedRoot, 10);
|
|
4403
|
-
var isValidArrayIndex = !isNaN(index)
|
|
4404
|
-
&& root !== decodedRoot
|
|
4405
|
-
&& String(index) === decodedRoot
|
|
4406
|
-
&& index >= 0
|
|
4407
|
-
&& options.parseArrays;
|
|
4408
|
-
if (!options.parseArrays && decodedRoot === '') {
|
|
4409
|
-
obj = { 0: leaf };
|
|
4410
|
-
} else if (isValidArrayIndex && index < options.arrayLimit) {
|
|
4411
|
-
obj = [];
|
|
4412
|
-
obj[index] = leaf;
|
|
4413
|
-
} else if (isValidArrayIndex && options.throwOnLimitExceeded) {
|
|
4414
|
-
throw new RangeError('Array limit exceeded. Only ' + options.arrayLimit + ' element' + (options.arrayLimit === 1 ? '' : 's') + ' allowed in an array.');
|
|
4415
|
-
} else if (isValidArrayIndex) {
|
|
4416
|
-
obj[index] = leaf;
|
|
4417
|
-
utils.markOverflow(obj, index);
|
|
4418
|
-
} else if (decodedRoot !== '__proto__') {
|
|
4419
|
-
obj[decodedRoot] = leaf;
|
|
4420
|
-
}
|
|
4421
|
-
}
|
|
4422
|
-
|
|
4423
|
-
leaf = obj;
|
|
4424
|
-
}
|
|
4425
|
-
|
|
4426
|
-
return leaf;
|
|
4427
|
-
};
|
|
4428
|
-
|
|
4429
|
-
var splitKeyIntoSegments = function splitKeyIntoSegments(givenKey, options) {
|
|
4430
|
-
var key = options.allowDots ? givenKey.replace(/\.([^.[]+)/g, '[$1]') : givenKey;
|
|
4431
|
-
|
|
4432
|
-
if (options.depth <= 0) {
|
|
4433
|
-
if (!options.plainObjects && has.call(Object.prototype, key)) {
|
|
4434
|
-
if (!options.allowPrototypes) {
|
|
4435
|
-
return;
|
|
4436
|
-
}
|
|
4437
|
-
}
|
|
4438
|
-
|
|
4439
|
-
return [key];
|
|
4440
|
-
}
|
|
4441
|
-
|
|
4442
|
-
var brackets = /(\[[^[\]]*])/;
|
|
4443
|
-
var child = /(\[[^[\]]*])/g;
|
|
4444
|
-
|
|
4445
|
-
var segment = brackets.exec(key);
|
|
4446
|
-
var parent = segment ? key.slice(0, segment.index) : key;
|
|
4447
|
-
|
|
4448
|
-
var keys = [];
|
|
4449
|
-
|
|
4450
|
-
if (parent) {
|
|
4451
|
-
if (!options.plainObjects && has.call(Object.prototype, parent)) {
|
|
4452
|
-
if (!options.allowPrototypes) {
|
|
4453
|
-
return;
|
|
4454
|
-
}
|
|
4455
|
-
}
|
|
4456
|
-
|
|
4457
|
-
keys[keys.length] = parent;
|
|
4458
|
-
}
|
|
4459
|
-
|
|
4460
|
-
var i = 0;
|
|
4461
|
-
while ((segment = child.exec(key)) !== null && i < options.depth) {
|
|
4462
|
-
i += 1;
|
|
4463
|
-
|
|
4464
|
-
var segmentContent = segment[1].slice(1, -1);
|
|
4465
|
-
if (!options.plainObjects && has.call(Object.prototype, segmentContent)) {
|
|
4466
|
-
if (!options.allowPrototypes) {
|
|
4467
|
-
return;
|
|
4468
|
-
}
|
|
4469
|
-
}
|
|
4470
|
-
|
|
4471
|
-
keys[keys.length] = segment[1];
|
|
4472
|
-
}
|
|
4473
|
-
|
|
4474
|
-
if (segment) {
|
|
4475
|
-
if (options.strictDepth === true) {
|
|
4476
|
-
throw new RangeError('Input depth exceeded depth option of ' + options.depth + ' and strictDepth is true');
|
|
4477
|
-
}
|
|
4478
|
-
|
|
4479
|
-
keys[keys.length] = '[' + key.slice(segment.index) + ']';
|
|
4480
|
-
}
|
|
4481
|
-
|
|
4482
|
-
return keys;
|
|
4483
|
-
};
|
|
4484
|
-
|
|
4485
|
-
var parseKeys = function parseQueryStringKeys(givenKey, val, options, valuesParsed) {
|
|
4486
|
-
if (!givenKey) {
|
|
4487
|
-
return;
|
|
4488
|
-
}
|
|
4489
|
-
|
|
4490
|
-
var keys = splitKeyIntoSegments(givenKey, options);
|
|
4491
|
-
|
|
4492
|
-
if (!keys) {
|
|
4493
|
-
return;
|
|
4494
|
-
}
|
|
4495
|
-
|
|
4496
|
-
return parseObject(keys, val, options, valuesParsed);
|
|
4497
|
-
};
|
|
4498
|
-
|
|
4499
|
-
var normalizeParseOptions = function normalizeParseOptions(opts) {
|
|
4500
|
-
if (!opts) {
|
|
4501
|
-
return defaults;
|
|
4502
|
-
}
|
|
4503
|
-
|
|
4504
|
-
if (typeof opts.allowEmptyArrays !== 'undefined' && typeof opts.allowEmptyArrays !== 'boolean') {
|
|
4505
|
-
throw new TypeError('`allowEmptyArrays` option can only be `true` or `false`, when provided');
|
|
4506
|
-
}
|
|
4507
|
-
|
|
4508
|
-
if (typeof opts.decodeDotInKeys !== 'undefined' && typeof opts.decodeDotInKeys !== 'boolean') {
|
|
4509
|
-
throw new TypeError('`decodeDotInKeys` option can only be `true` or `false`, when provided');
|
|
4510
|
-
}
|
|
4511
|
-
|
|
4512
|
-
if (opts.decoder !== null && typeof opts.decoder !== 'undefined' && typeof opts.decoder !== 'function') {
|
|
4513
|
-
throw new TypeError('Decoder has to be a function.');
|
|
4514
|
-
}
|
|
4515
|
-
|
|
4516
|
-
if (typeof opts.charset !== 'undefined' && opts.charset !== 'utf-8' && opts.charset !== 'iso-8859-1') {
|
|
4517
|
-
throw new TypeError('The charset option must be either utf-8, iso-8859-1, or undefined');
|
|
4518
|
-
}
|
|
4519
|
-
|
|
4520
|
-
if (typeof opts.throwOnLimitExceeded !== 'undefined' && typeof opts.throwOnLimitExceeded !== 'boolean') {
|
|
4521
|
-
throw new TypeError('`throwOnLimitExceeded` option must be a boolean');
|
|
4522
|
-
}
|
|
4523
|
-
|
|
4524
|
-
var charset = typeof opts.charset === 'undefined' ? defaults.charset : opts.charset;
|
|
4525
|
-
|
|
4526
|
-
var duplicates = typeof opts.duplicates === 'undefined' ? defaults.duplicates : opts.duplicates;
|
|
4527
|
-
|
|
4528
|
-
if (duplicates !== 'combine' && duplicates !== 'first' && duplicates !== 'last') {
|
|
4529
|
-
throw new TypeError('The duplicates option must be either combine, first, or last');
|
|
4530
|
-
}
|
|
4531
|
-
|
|
4532
|
-
var allowDots = typeof opts.allowDots === 'undefined' ? opts.decodeDotInKeys === true ? true : defaults.allowDots : !!opts.allowDots;
|
|
4533
|
-
|
|
4534
|
-
return {
|
|
4535
|
-
allowDots: allowDots,
|
|
4536
|
-
allowEmptyArrays: typeof opts.allowEmptyArrays === 'boolean' ? !!opts.allowEmptyArrays : defaults.allowEmptyArrays,
|
|
4537
|
-
allowPrototypes: typeof opts.allowPrototypes === 'boolean' ? opts.allowPrototypes : defaults.allowPrototypes,
|
|
4538
|
-
allowSparse: typeof opts.allowSparse === 'boolean' ? opts.allowSparse : defaults.allowSparse,
|
|
4539
|
-
arrayLimit: typeof opts.arrayLimit === 'number' ? opts.arrayLimit : defaults.arrayLimit,
|
|
4540
|
-
charset: charset,
|
|
4541
|
-
charsetSentinel: typeof opts.charsetSentinel === 'boolean' ? opts.charsetSentinel : defaults.charsetSentinel,
|
|
4542
|
-
comma: typeof opts.comma === 'boolean' ? opts.comma : defaults.comma,
|
|
4543
|
-
decodeDotInKeys: typeof opts.decodeDotInKeys === 'boolean' ? opts.decodeDotInKeys : defaults.decodeDotInKeys,
|
|
4544
|
-
decoder: typeof opts.decoder === 'function' ? opts.decoder : defaults.decoder,
|
|
4545
|
-
delimiter: typeof opts.delimiter === 'string' || utils.isRegExp(opts.delimiter) ? opts.delimiter : defaults.delimiter,
|
|
4546
|
-
// eslint-disable-next-line no-implicit-coercion, no-extra-parens
|
|
4547
|
-
depth: (typeof opts.depth === 'number' || opts.depth === false) ? +opts.depth : defaults.depth,
|
|
4548
|
-
duplicates: duplicates,
|
|
4549
|
-
ignoreQueryPrefix: opts.ignoreQueryPrefix === true,
|
|
4550
|
-
interpretNumericEntities: typeof opts.interpretNumericEntities === 'boolean' ? opts.interpretNumericEntities : defaults.interpretNumericEntities,
|
|
4551
|
-
parameterLimit: typeof opts.parameterLimit === 'number' ? opts.parameterLimit : defaults.parameterLimit,
|
|
4552
|
-
parseArrays: opts.parseArrays !== false,
|
|
4553
|
-
plainObjects: typeof opts.plainObjects === 'boolean' ? opts.plainObjects : defaults.plainObjects,
|
|
4554
|
-
strictDepth: typeof opts.strictDepth === 'boolean' ? !!opts.strictDepth : defaults.strictDepth,
|
|
4555
|
-
strictMerge: typeof opts.strictMerge === 'boolean' ? !!opts.strictMerge : defaults.strictMerge,
|
|
4556
|
-
strictNullHandling: typeof opts.strictNullHandling === 'boolean' ? opts.strictNullHandling : defaults.strictNullHandling,
|
|
4557
|
-
throwOnLimitExceeded: typeof opts.throwOnLimitExceeded === 'boolean' ? opts.throwOnLimitExceeded : false
|
|
4558
|
-
};
|
|
4559
|
-
};
|
|
4560
|
-
|
|
4561
|
-
module.exports = function (str, opts) {
|
|
4562
|
-
var options = normalizeParseOptions(opts);
|
|
4563
|
-
|
|
4564
|
-
if (str === '' || str === null || typeof str === 'undefined') {
|
|
4565
|
-
return options.plainObjects ? { __proto__: null } : {};
|
|
4566
|
-
}
|
|
4567
|
-
|
|
4568
|
-
var tempObj = typeof str === 'string' ? parseValues(str, options) : str;
|
|
4569
|
-
var obj = options.plainObjects ? { __proto__: null } : {};
|
|
4570
|
-
|
|
4571
|
-
// Iterate over the keys and setup the new object
|
|
4572
|
-
|
|
4573
|
-
var keys = Object.keys(tempObj);
|
|
4574
|
-
for (var i = 0; i < keys.length; ++i) {
|
|
4575
|
-
var key = keys[i];
|
|
4576
|
-
var newObj = parseKeys(key, tempObj[key], options, typeof str === 'string');
|
|
4577
|
-
obj = utils.merge(obj, newObj, options);
|
|
4578
|
-
}
|
|
4579
|
-
|
|
4580
|
-
if (options.allowSparse === true) {
|
|
4581
|
-
return obj;
|
|
4582
|
-
}
|
|
4583
|
-
|
|
4584
|
-
return utils.compact(obj);
|
|
4585
|
-
};
|
|
4586
|
-
|
|
4587
|
-
},{"./utils":48}],47:[function(require,module,exports){
|
|
4588
|
-
'use strict';
|
|
4589
|
-
|
|
4590
|
-
var getSideChannel = require('side-channel');
|
|
4591
|
-
var utils = require('./utils');
|
|
4592
|
-
var formats = require('./formats');
|
|
4593
|
-
var has = Object.prototype.hasOwnProperty;
|
|
4594
|
-
|
|
4595
|
-
var arrayPrefixGenerators = {
|
|
4596
|
-
brackets: function brackets(prefix) {
|
|
4597
|
-
return prefix + '[]';
|
|
4598
|
-
},
|
|
4599
|
-
comma: 'comma',
|
|
4600
|
-
indices: function indices(prefix, key) {
|
|
4601
|
-
return prefix + '[' + key + ']';
|
|
4602
|
-
},
|
|
4603
|
-
repeat: function repeat(prefix) {
|
|
4604
|
-
return prefix;
|
|
4605
|
-
}
|
|
4606
|
-
};
|
|
4607
|
-
|
|
4608
|
-
var isArray = Array.isArray;
|
|
4609
|
-
var push = Array.prototype.push;
|
|
4610
|
-
var pushToArray = function (arr, valueOrArray) {
|
|
4611
|
-
push.apply(arr, isArray(valueOrArray) ? valueOrArray : [valueOrArray]);
|
|
4612
|
-
};
|
|
4613
|
-
|
|
4614
|
-
var toISO = Date.prototype.toISOString;
|
|
4615
|
-
|
|
4616
|
-
var defaultFormat = formats['default'];
|
|
4617
|
-
var defaults = {
|
|
4618
|
-
addQueryPrefix: false,
|
|
4619
|
-
allowDots: false,
|
|
4620
|
-
allowEmptyArrays: false,
|
|
4621
|
-
arrayFormat: 'indices',
|
|
4622
|
-
charset: 'utf-8',
|
|
4623
|
-
charsetSentinel: false,
|
|
4624
|
-
commaRoundTrip: false,
|
|
4625
|
-
delimiter: '&',
|
|
4626
|
-
encode: true,
|
|
4627
|
-
encodeDotInKeys: false,
|
|
4628
|
-
encoder: utils.encode,
|
|
4629
|
-
encodeValuesOnly: false,
|
|
4630
|
-
filter: void undefined,
|
|
4631
|
-
format: defaultFormat,
|
|
4632
|
-
formatter: formats.formatters[defaultFormat],
|
|
4633
|
-
// deprecated
|
|
4634
|
-
indices: false,
|
|
4635
|
-
serializeDate: function serializeDate(date) {
|
|
4636
|
-
return toISO.call(date);
|
|
4637
|
-
},
|
|
4638
|
-
skipNulls: false,
|
|
4639
|
-
strictNullHandling: false
|
|
4640
|
-
};
|
|
4641
|
-
|
|
4642
|
-
var isNonNullishPrimitive = function isNonNullishPrimitive(v) {
|
|
4643
|
-
return typeof v === 'string'
|
|
4644
|
-
|| typeof v === 'number'
|
|
4645
|
-
|| typeof v === 'boolean'
|
|
4646
|
-
|| typeof v === 'symbol'
|
|
4647
|
-
|| typeof v === 'bigint';
|
|
4648
|
-
};
|
|
4649
|
-
|
|
4650
|
-
var sentinel = {};
|
|
4651
|
-
|
|
4652
|
-
var stringify = function stringify(
|
|
4653
|
-
object,
|
|
4654
|
-
prefix,
|
|
4655
|
-
generateArrayPrefix,
|
|
4656
|
-
commaRoundTrip,
|
|
4657
|
-
allowEmptyArrays,
|
|
4658
|
-
strictNullHandling,
|
|
4659
|
-
skipNulls,
|
|
4660
|
-
encodeDotInKeys,
|
|
4661
|
-
encoder,
|
|
4662
|
-
filter,
|
|
4663
|
-
sort,
|
|
4664
|
-
allowDots,
|
|
4665
|
-
serializeDate,
|
|
4666
|
-
format,
|
|
4667
|
-
formatter,
|
|
4668
|
-
encodeValuesOnly,
|
|
4669
|
-
charset,
|
|
4670
|
-
sideChannel
|
|
4671
|
-
) {
|
|
4672
|
-
var obj = object;
|
|
4673
|
-
|
|
4674
|
-
var tmpSc = sideChannel;
|
|
4675
|
-
var step = 0;
|
|
4676
|
-
var findFlag = false;
|
|
4677
|
-
while ((tmpSc = tmpSc.get(sentinel)) !== void undefined && !findFlag) {
|
|
4678
|
-
// Where object last appeared in the ref tree
|
|
4679
|
-
var pos = tmpSc.get(object);
|
|
4680
|
-
step += 1;
|
|
4681
|
-
if (typeof pos !== 'undefined') {
|
|
4682
|
-
if (pos === step) {
|
|
4683
|
-
throw new RangeError('Cyclic object value');
|
|
4684
|
-
} else {
|
|
4685
|
-
findFlag = true; // Break while
|
|
4686
|
-
}
|
|
4687
|
-
}
|
|
4688
|
-
if (typeof tmpSc.get(sentinel) === 'undefined') {
|
|
4689
|
-
step = 0;
|
|
4690
|
-
}
|
|
4691
|
-
}
|
|
4692
|
-
|
|
4693
|
-
if (typeof filter === 'function') {
|
|
4694
|
-
obj = filter(prefix, obj);
|
|
4695
|
-
} else if (obj instanceof Date) {
|
|
4696
|
-
obj = serializeDate(obj);
|
|
4697
|
-
} else if (generateArrayPrefix === 'comma' && isArray(obj)) {
|
|
4698
|
-
obj = utils.maybeMap(obj, function (value) {
|
|
4699
|
-
if (value instanceof Date) {
|
|
4700
|
-
return serializeDate(value);
|
|
4701
|
-
}
|
|
4702
|
-
return value;
|
|
4703
|
-
});
|
|
4704
|
-
}
|
|
4705
|
-
|
|
4706
|
-
if (obj === null) {
|
|
4707
|
-
if (strictNullHandling) {
|
|
4708
|
-
return encoder && !encodeValuesOnly ? encoder(prefix, defaults.encoder, charset, 'key', format) : prefix;
|
|
4709
|
-
}
|
|
4710
|
-
|
|
4711
|
-
obj = '';
|
|
4712
|
-
}
|
|
4713
|
-
|
|
4714
|
-
if (isNonNullishPrimitive(obj) || utils.isBuffer(obj)) {
|
|
4715
|
-
if (encoder) {
|
|
4716
|
-
var keyValue = encodeValuesOnly ? prefix : encoder(prefix, defaults.encoder, charset, 'key', format);
|
|
4717
|
-
return [formatter(keyValue) + '=' + formatter(encoder(obj, defaults.encoder, charset, 'value', format))];
|
|
4718
|
-
}
|
|
4719
|
-
return [formatter(prefix) + '=' + formatter(String(obj))];
|
|
4720
|
-
}
|
|
4721
|
-
|
|
4722
|
-
var values = [];
|
|
4723
|
-
|
|
4724
|
-
if (typeof obj === 'undefined') {
|
|
4725
|
-
return values;
|
|
4726
|
-
}
|
|
4727
|
-
|
|
4728
|
-
var objKeys;
|
|
4729
|
-
if (generateArrayPrefix === 'comma' && isArray(obj)) {
|
|
4730
|
-
// we need to join elements in
|
|
4731
|
-
if (encodeValuesOnly && encoder) {
|
|
4732
|
-
obj = utils.maybeMap(obj, encoder);
|
|
4733
|
-
}
|
|
4734
|
-
objKeys = [{ value: obj.length > 0 ? obj.join(',') || null : void undefined }];
|
|
4735
|
-
} else if (isArray(filter)) {
|
|
4736
|
-
objKeys = filter;
|
|
4737
|
-
} else {
|
|
4738
|
-
var keys = Object.keys(obj);
|
|
4739
|
-
objKeys = sort ? keys.sort(sort) : keys;
|
|
4740
|
-
}
|
|
4741
|
-
|
|
4742
|
-
var encodedPrefix = encodeDotInKeys ? String(prefix).replace(/\./g, '%2E') : String(prefix);
|
|
4743
|
-
|
|
4744
|
-
var adjustedPrefix = commaRoundTrip && isArray(obj) && obj.length === 1 ? encodedPrefix + '[]' : encodedPrefix;
|
|
4745
|
-
|
|
4746
|
-
if (allowEmptyArrays && isArray(obj) && obj.length === 0) {
|
|
4747
|
-
return adjustedPrefix + '[]';
|
|
4748
|
-
}
|
|
4749
|
-
|
|
4750
|
-
for (var j = 0; j < objKeys.length; ++j) {
|
|
4751
|
-
var key = objKeys[j];
|
|
4752
|
-
var value = typeof key === 'object' && key && typeof key.value !== 'undefined'
|
|
4753
|
-
? key.value
|
|
4754
|
-
: obj[key];
|
|
4755
|
-
|
|
4756
|
-
if (skipNulls && value === null) {
|
|
4757
|
-
continue;
|
|
4758
|
-
}
|
|
4759
|
-
|
|
4760
|
-
var encodedKey = allowDots && encodeDotInKeys ? String(key).replace(/\./g, '%2E') : String(key);
|
|
4761
|
-
var keyPrefix = isArray(obj)
|
|
4762
|
-
? typeof generateArrayPrefix === 'function' ? generateArrayPrefix(adjustedPrefix, encodedKey) : adjustedPrefix
|
|
4763
|
-
: adjustedPrefix + (allowDots ? '.' + encodedKey : '[' + encodedKey + ']');
|
|
4764
|
-
|
|
4765
|
-
sideChannel.set(object, step);
|
|
4766
|
-
var valueSideChannel = getSideChannel();
|
|
4767
|
-
valueSideChannel.set(sentinel, sideChannel);
|
|
4768
|
-
pushToArray(values, stringify(
|
|
4769
|
-
value,
|
|
4770
|
-
keyPrefix,
|
|
4771
|
-
generateArrayPrefix,
|
|
4772
|
-
commaRoundTrip,
|
|
4773
|
-
allowEmptyArrays,
|
|
4774
|
-
strictNullHandling,
|
|
4775
|
-
skipNulls,
|
|
4776
|
-
encodeDotInKeys,
|
|
4777
|
-
generateArrayPrefix === 'comma' && encodeValuesOnly && isArray(obj) ? null : encoder,
|
|
4778
|
-
filter,
|
|
4779
|
-
sort,
|
|
4780
|
-
allowDots,
|
|
4781
|
-
serializeDate,
|
|
4782
|
-
format,
|
|
4783
|
-
formatter,
|
|
4784
|
-
encodeValuesOnly,
|
|
4785
|
-
charset,
|
|
4786
|
-
valueSideChannel
|
|
4787
|
-
));
|
|
4788
|
-
}
|
|
4789
|
-
|
|
4790
|
-
return values;
|
|
4791
|
-
};
|
|
4792
|
-
|
|
4793
|
-
var normalizeStringifyOptions = function normalizeStringifyOptions(opts) {
|
|
4794
|
-
if (!opts) {
|
|
4795
|
-
return defaults;
|
|
4796
|
-
}
|
|
4797
|
-
|
|
4798
|
-
if (typeof opts.allowEmptyArrays !== 'undefined' && typeof opts.allowEmptyArrays !== 'boolean') {
|
|
4799
|
-
throw new TypeError('`allowEmptyArrays` option can only be `true` or `false`, when provided');
|
|
4800
|
-
}
|
|
4801
|
-
|
|
4802
|
-
if (typeof opts.encodeDotInKeys !== 'undefined' && typeof opts.encodeDotInKeys !== 'boolean') {
|
|
4803
|
-
throw new TypeError('`encodeDotInKeys` option can only be `true` or `false`, when provided');
|
|
4804
|
-
}
|
|
4805
|
-
|
|
4806
|
-
if (opts.encoder !== null && typeof opts.encoder !== 'undefined' && typeof opts.encoder !== 'function') {
|
|
4807
|
-
throw new TypeError('Encoder has to be a function.');
|
|
4808
|
-
}
|
|
4809
|
-
|
|
4810
|
-
var charset = opts.charset || defaults.charset;
|
|
4811
|
-
if (typeof opts.charset !== 'undefined' && opts.charset !== 'utf-8' && opts.charset !== 'iso-8859-1') {
|
|
4812
|
-
throw new TypeError('The charset option must be either utf-8, iso-8859-1, or undefined');
|
|
4813
|
-
}
|
|
4814
|
-
|
|
4815
|
-
var format = formats['default'];
|
|
4816
|
-
if (typeof opts.format !== 'undefined') {
|
|
4817
|
-
if (!has.call(formats.formatters, opts.format)) {
|
|
4818
|
-
throw new TypeError('Unknown format option provided.');
|
|
4819
|
-
}
|
|
4820
|
-
format = opts.format;
|
|
4821
|
-
}
|
|
4822
|
-
var formatter = formats.formatters[format];
|
|
4823
|
-
|
|
4824
|
-
var filter = defaults.filter;
|
|
4825
|
-
if (typeof opts.filter === 'function' || isArray(opts.filter)) {
|
|
4826
|
-
filter = opts.filter;
|
|
4827
|
-
}
|
|
4828
|
-
|
|
4829
|
-
var arrayFormat;
|
|
4830
|
-
if (opts.arrayFormat in arrayPrefixGenerators) {
|
|
4831
|
-
arrayFormat = opts.arrayFormat;
|
|
4832
|
-
} else if ('indices' in opts) {
|
|
4833
|
-
arrayFormat = opts.indices ? 'indices' : 'repeat';
|
|
4834
|
-
} else {
|
|
4835
|
-
arrayFormat = defaults.arrayFormat;
|
|
4836
|
-
}
|
|
4837
|
-
|
|
4838
|
-
if ('commaRoundTrip' in opts && typeof opts.commaRoundTrip !== 'boolean') {
|
|
4839
|
-
throw new TypeError('`commaRoundTrip` must be a boolean, or absent');
|
|
4840
|
-
}
|
|
4841
|
-
|
|
4842
|
-
var allowDots = typeof opts.allowDots === 'undefined' ? opts.encodeDotInKeys === true ? true : defaults.allowDots : !!opts.allowDots;
|
|
4843
|
-
|
|
4844
|
-
return {
|
|
4845
|
-
addQueryPrefix: typeof opts.addQueryPrefix === 'boolean' ? opts.addQueryPrefix : defaults.addQueryPrefix,
|
|
4846
|
-
allowDots: allowDots,
|
|
4847
|
-
allowEmptyArrays: typeof opts.allowEmptyArrays === 'boolean' ? !!opts.allowEmptyArrays : defaults.allowEmptyArrays,
|
|
4848
|
-
arrayFormat: arrayFormat,
|
|
4849
|
-
charset: charset,
|
|
4850
|
-
charsetSentinel: typeof opts.charsetSentinel === 'boolean' ? opts.charsetSentinel : defaults.charsetSentinel,
|
|
4851
|
-
commaRoundTrip: !!opts.commaRoundTrip,
|
|
4852
|
-
delimiter: typeof opts.delimiter === 'undefined' ? defaults.delimiter : opts.delimiter,
|
|
4853
|
-
encode: typeof opts.encode === 'boolean' ? opts.encode : defaults.encode,
|
|
4854
|
-
encodeDotInKeys: typeof opts.encodeDotInKeys === 'boolean' ? opts.encodeDotInKeys : defaults.encodeDotInKeys,
|
|
4855
|
-
encoder: typeof opts.encoder === 'function' ? opts.encoder : defaults.encoder,
|
|
4856
|
-
encodeValuesOnly: typeof opts.encodeValuesOnly === 'boolean' ? opts.encodeValuesOnly : defaults.encodeValuesOnly,
|
|
4857
|
-
filter: filter,
|
|
4858
|
-
format: format,
|
|
4859
|
-
formatter: formatter,
|
|
4860
|
-
serializeDate: typeof opts.serializeDate === 'function' ? opts.serializeDate : defaults.serializeDate,
|
|
4861
|
-
skipNulls: typeof opts.skipNulls === 'boolean' ? opts.skipNulls : defaults.skipNulls,
|
|
4862
|
-
sort: typeof opts.sort === 'function' ? opts.sort : null,
|
|
4863
|
-
strictNullHandling: typeof opts.strictNullHandling === 'boolean' ? opts.strictNullHandling : defaults.strictNullHandling
|
|
4864
|
-
};
|
|
4865
|
-
};
|
|
4866
|
-
|
|
4867
|
-
module.exports = function (object, opts) {
|
|
4868
|
-
var obj = object;
|
|
4869
|
-
var options = normalizeStringifyOptions(opts);
|
|
4870
|
-
|
|
4871
|
-
var objKeys;
|
|
4872
|
-
var filter;
|
|
4873
|
-
|
|
4874
|
-
if (typeof options.filter === 'function') {
|
|
4875
|
-
filter = options.filter;
|
|
4876
|
-
obj = filter('', obj);
|
|
4877
|
-
} else if (isArray(options.filter)) {
|
|
4878
|
-
filter = options.filter;
|
|
4879
|
-
objKeys = filter;
|
|
4880
|
-
}
|
|
4881
|
-
|
|
4882
|
-
var keys = [];
|
|
4883
|
-
|
|
4884
|
-
if (typeof obj !== 'object' || obj === null) {
|
|
4885
|
-
return '';
|
|
4886
|
-
}
|
|
4887
|
-
|
|
4888
|
-
var generateArrayPrefix = arrayPrefixGenerators[options.arrayFormat];
|
|
4889
|
-
var commaRoundTrip = generateArrayPrefix === 'comma' && options.commaRoundTrip;
|
|
4890
|
-
|
|
4891
|
-
if (!objKeys) {
|
|
4892
|
-
objKeys = Object.keys(obj);
|
|
4893
|
-
}
|
|
4894
|
-
|
|
4895
|
-
if (options.sort) {
|
|
4896
|
-
objKeys.sort(options.sort);
|
|
4897
|
-
}
|
|
4898
|
-
|
|
4899
|
-
var sideChannel = getSideChannel();
|
|
4900
|
-
for (var i = 0; i < objKeys.length; ++i) {
|
|
4901
|
-
var key = objKeys[i];
|
|
4902
|
-
var value = obj[key];
|
|
4903
|
-
|
|
4904
|
-
if (options.skipNulls && value === null) {
|
|
4905
|
-
continue;
|
|
4906
|
-
}
|
|
4907
|
-
pushToArray(keys, stringify(
|
|
4908
|
-
value,
|
|
4909
|
-
key,
|
|
4910
|
-
generateArrayPrefix,
|
|
4911
|
-
commaRoundTrip,
|
|
4912
|
-
options.allowEmptyArrays,
|
|
4913
|
-
options.strictNullHandling,
|
|
4914
|
-
options.skipNulls,
|
|
4915
|
-
options.encodeDotInKeys,
|
|
4916
|
-
options.encode ? options.encoder : null,
|
|
4917
|
-
options.filter,
|
|
4918
|
-
options.sort,
|
|
4919
|
-
options.allowDots,
|
|
4920
|
-
options.serializeDate,
|
|
4921
|
-
options.format,
|
|
4922
|
-
options.formatter,
|
|
4923
|
-
options.encodeValuesOnly,
|
|
4924
|
-
options.charset,
|
|
4925
|
-
sideChannel
|
|
4926
|
-
));
|
|
4927
|
-
}
|
|
4928
|
-
|
|
4929
|
-
var joined = keys.join(options.delimiter);
|
|
4930
|
-
var prefix = options.addQueryPrefix === true ? '?' : '';
|
|
4931
|
-
|
|
4932
|
-
if (options.charsetSentinel) {
|
|
4933
|
-
if (options.charset === 'iso-8859-1') {
|
|
4934
|
-
// encodeURIComponent('✓'), the "numeric entity" representation of a checkmark
|
|
4935
|
-
prefix += 'utf8=%26%2310003%3B&';
|
|
4936
|
-
} else {
|
|
4937
|
-
// encodeURIComponent('✓')
|
|
4938
|
-
prefix += 'utf8=%E2%9C%93&';
|
|
4939
|
-
}
|
|
4940
|
-
}
|
|
4941
|
-
|
|
4942
|
-
return joined.length > 0 ? prefix + joined : '';
|
|
4943
|
-
};
|
|
4944
|
-
|
|
4945
|
-
},{"./formats":44,"./utils":48,"side-channel":52}],48:[function(require,module,exports){
|
|
4946
|
-
'use strict';
|
|
4947
|
-
|
|
4948
|
-
var formats = require('./formats');
|
|
4949
|
-
var getSideChannel = require('side-channel');
|
|
4950
|
-
|
|
4951
|
-
var has = Object.prototype.hasOwnProperty;
|
|
4952
|
-
var isArray = Array.isArray;
|
|
4953
|
-
|
|
4954
|
-
// Track objects created from arrayLimit overflow using side-channel
|
|
4955
|
-
// Stores the current max numeric index for O(1) lookup
|
|
4956
|
-
var overflowChannel = getSideChannel();
|
|
4957
|
-
|
|
4958
|
-
var markOverflow = function markOverflow(obj, maxIndex) {
|
|
4959
|
-
overflowChannel.set(obj, maxIndex);
|
|
4960
|
-
return obj;
|
|
4961
|
-
};
|
|
4962
|
-
|
|
4963
|
-
var isOverflow = function isOverflow(obj) {
|
|
4964
|
-
return overflowChannel.has(obj);
|
|
4965
|
-
};
|
|
4966
|
-
|
|
4967
|
-
var getMaxIndex = function getMaxIndex(obj) {
|
|
4968
|
-
return overflowChannel.get(obj);
|
|
4969
|
-
};
|
|
4970
|
-
|
|
4971
|
-
var setMaxIndex = function setMaxIndex(obj, maxIndex) {
|
|
4972
|
-
overflowChannel.set(obj, maxIndex);
|
|
4973
|
-
};
|
|
4974
|
-
|
|
4975
|
-
var hexTable = (function () {
|
|
4976
|
-
var array = [];
|
|
4977
|
-
for (var i = 0; i < 256; ++i) {
|
|
4978
|
-
array[array.length] = '%' + ((i < 16 ? '0' : '') + i.toString(16)).toUpperCase();
|
|
4979
|
-
}
|
|
4980
|
-
|
|
4981
|
-
return array;
|
|
4982
|
-
}());
|
|
4983
|
-
|
|
4984
|
-
var compactQueue = function compactQueue(queue) {
|
|
4985
|
-
while (queue.length > 1) {
|
|
4986
|
-
var item = queue.pop();
|
|
4987
|
-
var obj = item.obj[item.prop];
|
|
4988
|
-
|
|
4989
|
-
if (isArray(obj)) {
|
|
4990
|
-
var compacted = [];
|
|
4991
|
-
|
|
4992
|
-
for (var j = 0; j < obj.length; ++j) {
|
|
4993
|
-
if (typeof obj[j] !== 'undefined') {
|
|
4994
|
-
compacted[compacted.length] = obj[j];
|
|
4995
|
-
}
|
|
4996
|
-
}
|
|
4997
|
-
|
|
4998
|
-
item.obj[item.prop] = compacted;
|
|
4999
|
-
}
|
|
5000
|
-
}
|
|
5001
|
-
};
|
|
5002
|
-
|
|
5003
|
-
var arrayToObject = function arrayToObject(source, options) {
|
|
5004
|
-
var obj = options && options.plainObjects ? { __proto__: null } : {};
|
|
5005
|
-
for (var i = 0; i < source.length; ++i) {
|
|
5006
|
-
if (typeof source[i] !== 'undefined') {
|
|
5007
|
-
obj[i] = source[i];
|
|
5008
|
-
}
|
|
5009
|
-
}
|
|
5010
|
-
|
|
5011
|
-
return obj;
|
|
5012
|
-
};
|
|
5013
|
-
|
|
5014
|
-
var merge = function merge(target, source, options) {
|
|
5015
|
-
/* eslint no-param-reassign: 0 */
|
|
5016
|
-
if (!source) {
|
|
5017
|
-
return target;
|
|
5018
|
-
}
|
|
5019
|
-
|
|
5020
|
-
if (typeof source !== 'object' && typeof source !== 'function') {
|
|
5021
|
-
if (isArray(target)) {
|
|
5022
|
-
var nextIndex = target.length;
|
|
5023
|
-
if (options && typeof options.arrayLimit === 'number' && nextIndex > options.arrayLimit) {
|
|
5024
|
-
return markOverflow(arrayToObject(target.concat(source), options), nextIndex);
|
|
5025
|
-
}
|
|
5026
|
-
target[nextIndex] = source;
|
|
5027
|
-
} else if (target && typeof target === 'object') {
|
|
5028
|
-
if (isOverflow(target)) {
|
|
5029
|
-
// Add at next numeric index for overflow objects
|
|
5030
|
-
var newIndex = getMaxIndex(target) + 1;
|
|
5031
|
-
target[newIndex] = source;
|
|
5032
|
-
setMaxIndex(target, newIndex);
|
|
5033
|
-
} else if (options && options.strictMerge) {
|
|
5034
|
-
return [target, source];
|
|
5035
|
-
} else if (
|
|
5036
|
-
(options && (options.plainObjects || options.allowPrototypes))
|
|
5037
|
-
|| !has.call(Object.prototype, source)
|
|
5038
|
-
) {
|
|
5039
|
-
target[source] = true;
|
|
5040
|
-
}
|
|
5041
|
-
} else {
|
|
5042
|
-
return [target, source];
|
|
5043
|
-
}
|
|
5044
|
-
|
|
5045
|
-
return target;
|
|
5046
|
-
}
|
|
5047
|
-
|
|
5048
|
-
if (!target || typeof target !== 'object') {
|
|
5049
|
-
if (isOverflow(source)) {
|
|
5050
|
-
// Create new object with target at 0, source values shifted by 1
|
|
5051
|
-
var sourceKeys = Object.keys(source);
|
|
5052
|
-
var result = options && options.plainObjects
|
|
5053
|
-
? { __proto__: null, 0: target }
|
|
5054
|
-
: { 0: target };
|
|
5055
|
-
for (var m = 0; m < sourceKeys.length; m++) {
|
|
5056
|
-
var oldKey = parseInt(sourceKeys[m], 10);
|
|
5057
|
-
result[oldKey + 1] = source[sourceKeys[m]];
|
|
5058
|
-
}
|
|
5059
|
-
return markOverflow(result, getMaxIndex(source) + 1);
|
|
5060
|
-
}
|
|
5061
|
-
var combined = [target].concat(source);
|
|
5062
|
-
if (options && typeof options.arrayLimit === 'number' && combined.length > options.arrayLimit) {
|
|
5063
|
-
return markOverflow(arrayToObject(combined, options), combined.length - 1);
|
|
5064
|
-
}
|
|
5065
|
-
return combined;
|
|
5066
|
-
}
|
|
5067
|
-
|
|
5068
|
-
var mergeTarget = target;
|
|
5069
|
-
if (isArray(target) && !isArray(source)) {
|
|
5070
|
-
mergeTarget = arrayToObject(target, options);
|
|
5071
|
-
}
|
|
5072
|
-
|
|
5073
|
-
if (isArray(target) && isArray(source)) {
|
|
5074
|
-
source.forEach(function (item, i) {
|
|
5075
|
-
if (has.call(target, i)) {
|
|
5076
|
-
var targetItem = target[i];
|
|
5077
|
-
if (targetItem && typeof targetItem === 'object' && item && typeof item === 'object') {
|
|
5078
|
-
target[i] = merge(targetItem, item, options);
|
|
5079
|
-
} else {
|
|
5080
|
-
target[target.length] = item;
|
|
5081
|
-
}
|
|
5082
|
-
} else {
|
|
5083
|
-
target[i] = item;
|
|
5084
|
-
}
|
|
5085
|
-
});
|
|
5086
|
-
return target;
|
|
5087
|
-
}
|
|
5088
|
-
|
|
5089
|
-
return Object.keys(source).reduce(function (acc, key) {
|
|
5090
|
-
var value = source[key];
|
|
5091
|
-
|
|
5092
|
-
if (has.call(acc, key)) {
|
|
5093
|
-
acc[key] = merge(acc[key], value, options);
|
|
5094
|
-
} else {
|
|
5095
|
-
acc[key] = value;
|
|
5096
|
-
}
|
|
5097
|
-
|
|
5098
|
-
if (isOverflow(source) && !isOverflow(acc)) {
|
|
5099
|
-
markOverflow(acc, getMaxIndex(source));
|
|
5100
|
-
}
|
|
5101
|
-
if (isOverflow(acc)) {
|
|
5102
|
-
var keyNum = parseInt(key, 10);
|
|
5103
|
-
if (String(keyNum) === key && keyNum >= 0 && keyNum > getMaxIndex(acc)) {
|
|
5104
|
-
setMaxIndex(acc, keyNum);
|
|
5105
|
-
}
|
|
5106
|
-
}
|
|
5107
|
-
|
|
5108
|
-
return acc;
|
|
5109
|
-
}, mergeTarget);
|
|
5110
|
-
};
|
|
5111
|
-
|
|
5112
|
-
var assign = function assignSingleSource(target, source) {
|
|
5113
|
-
return Object.keys(source).reduce(function (acc, key) {
|
|
5114
|
-
acc[key] = source[key];
|
|
5115
|
-
return acc;
|
|
5116
|
-
}, target);
|
|
5117
|
-
};
|
|
5118
|
-
|
|
5119
|
-
var decode = function (str, defaultDecoder, charset) {
|
|
5120
|
-
var strWithoutPlus = str.replace(/\+/g, ' ');
|
|
5121
|
-
if (charset === 'iso-8859-1') {
|
|
5122
|
-
// unescape never throws, no try...catch needed:
|
|
5123
|
-
return strWithoutPlus.replace(/%[0-9a-f]{2}/gi, unescape);
|
|
5124
|
-
}
|
|
5125
|
-
// utf-8
|
|
5126
|
-
try {
|
|
5127
|
-
return decodeURIComponent(strWithoutPlus);
|
|
5128
|
-
} catch (e) {
|
|
5129
|
-
return strWithoutPlus;
|
|
5130
|
-
}
|
|
5131
|
-
};
|
|
5132
|
-
|
|
5133
|
-
var limit = 1024;
|
|
5134
|
-
|
|
5135
|
-
/* eslint operator-linebreak: [2, "before"] */
|
|
5136
|
-
|
|
5137
|
-
var encode = function encode(str, defaultEncoder, charset, kind, format) {
|
|
5138
|
-
// This code was originally written by Brian White (mscdex) for the io.js core querystring library.
|
|
5139
|
-
// It has been adapted here for stricter adherence to RFC 3986
|
|
5140
|
-
if (str.length === 0) {
|
|
5141
|
-
return str;
|
|
5142
|
-
}
|
|
5143
|
-
|
|
5144
|
-
var string = str;
|
|
5145
|
-
if (typeof str === 'symbol') {
|
|
5146
|
-
string = Symbol.prototype.toString.call(str);
|
|
5147
|
-
} else if (typeof str !== 'string') {
|
|
5148
|
-
string = String(str);
|
|
5149
|
-
}
|
|
5150
|
-
|
|
5151
|
-
if (charset === 'iso-8859-1') {
|
|
5152
|
-
return escape(string).replace(/%u[0-9a-f]{4}/gi, function ($0) {
|
|
5153
|
-
return '%26%23' + parseInt($0.slice(2), 16) + '%3B';
|
|
5154
|
-
});
|
|
5155
|
-
}
|
|
5156
|
-
|
|
5157
|
-
var out = '';
|
|
5158
|
-
for (var j = 0; j < string.length; j += limit) {
|
|
5159
|
-
var segment = string.length >= limit ? string.slice(j, j + limit) : string;
|
|
5160
|
-
var arr = [];
|
|
5161
|
-
|
|
5162
|
-
for (var i = 0; i < segment.length; ++i) {
|
|
5163
|
-
var c = segment.charCodeAt(i);
|
|
5164
|
-
if (
|
|
5165
|
-
c === 0x2D // -
|
|
5166
|
-
|| c === 0x2E // .
|
|
5167
|
-
|| c === 0x5F // _
|
|
5168
|
-
|| c === 0x7E // ~
|
|
5169
|
-
|| (c >= 0x30 && c <= 0x39) // 0-9
|
|
5170
|
-
|| (c >= 0x41 && c <= 0x5A) // a-z
|
|
5171
|
-
|| (c >= 0x61 && c <= 0x7A) // A-Z
|
|
5172
|
-
|| (format === formats.RFC1738 && (c === 0x28 || c === 0x29)) // ( )
|
|
5173
|
-
) {
|
|
5174
|
-
arr[arr.length] = segment.charAt(i);
|
|
5175
|
-
continue;
|
|
5176
|
-
}
|
|
5177
|
-
|
|
5178
|
-
if (c < 0x80) {
|
|
5179
|
-
arr[arr.length] = hexTable[c];
|
|
5180
|
-
continue;
|
|
5181
|
-
}
|
|
5182
|
-
|
|
5183
|
-
if (c < 0x800) {
|
|
5184
|
-
arr[arr.length] = hexTable[0xC0 | (c >> 6)]
|
|
5185
|
-
+ hexTable[0x80 | (c & 0x3F)];
|
|
5186
|
-
continue;
|
|
5187
|
-
}
|
|
5188
|
-
|
|
5189
|
-
if (c < 0xD800 || c >= 0xE000) {
|
|
5190
|
-
arr[arr.length] = hexTable[0xE0 | (c >> 12)]
|
|
5191
|
-
+ hexTable[0x80 | ((c >> 6) & 0x3F)]
|
|
5192
|
-
+ hexTable[0x80 | (c & 0x3F)];
|
|
5193
|
-
continue;
|
|
5194
|
-
}
|
|
5195
|
-
|
|
5196
|
-
i += 1;
|
|
5197
|
-
c = 0x10000 + (((c & 0x3FF) << 10) | (segment.charCodeAt(i) & 0x3FF));
|
|
5198
|
-
|
|
5199
|
-
arr[arr.length] = hexTable[0xF0 | (c >> 18)]
|
|
5200
|
-
+ hexTable[0x80 | ((c >> 12) & 0x3F)]
|
|
5201
|
-
+ hexTable[0x80 | ((c >> 6) & 0x3F)]
|
|
5202
|
-
+ hexTable[0x80 | (c & 0x3F)];
|
|
5203
|
-
}
|
|
5204
|
-
|
|
5205
|
-
out += arr.join('');
|
|
5206
|
-
}
|
|
5207
|
-
|
|
5208
|
-
return out;
|
|
5209
|
-
};
|
|
5210
|
-
|
|
5211
|
-
var compact = function compact(value) {
|
|
5212
|
-
var queue = [{ obj: { o: value }, prop: 'o' }];
|
|
5213
|
-
var refs = [];
|
|
5214
|
-
|
|
5215
|
-
for (var i = 0; i < queue.length; ++i) {
|
|
5216
|
-
var item = queue[i];
|
|
5217
|
-
var obj = item.obj[item.prop];
|
|
5218
|
-
|
|
5219
|
-
var keys = Object.keys(obj);
|
|
5220
|
-
for (var j = 0; j < keys.length; ++j) {
|
|
5221
|
-
var key = keys[j];
|
|
5222
|
-
var val = obj[key];
|
|
5223
|
-
if (typeof val === 'object' && val !== null && refs.indexOf(val) === -1) {
|
|
5224
|
-
queue[queue.length] = { obj: obj, prop: key };
|
|
5225
|
-
refs[refs.length] = val;
|
|
5226
|
-
}
|
|
5227
|
-
}
|
|
5228
|
-
}
|
|
5229
|
-
|
|
5230
|
-
compactQueue(queue);
|
|
5231
|
-
|
|
5232
|
-
return value;
|
|
5233
|
-
};
|
|
5234
|
-
|
|
5235
|
-
var isRegExp = function isRegExp(obj) {
|
|
5236
|
-
return Object.prototype.toString.call(obj) === '[object RegExp]';
|
|
5237
|
-
};
|
|
5238
|
-
|
|
5239
|
-
var isBuffer = function isBuffer(obj) {
|
|
5240
|
-
if (!obj || typeof obj !== 'object') {
|
|
5241
|
-
return false;
|
|
5242
|
-
}
|
|
5243
|
-
|
|
5244
|
-
return !!(obj.constructor && obj.constructor.isBuffer && obj.constructor.isBuffer(obj));
|
|
5245
|
-
};
|
|
5246
|
-
|
|
5247
|
-
var combine = function combine(a, b, arrayLimit, plainObjects) {
|
|
5248
|
-
// If 'a' is already an overflow object, add to it
|
|
5249
|
-
if (isOverflow(a)) {
|
|
5250
|
-
var newIndex = getMaxIndex(a) + 1;
|
|
5251
|
-
a[newIndex] = b;
|
|
5252
|
-
setMaxIndex(a, newIndex);
|
|
5253
|
-
return a;
|
|
5254
|
-
}
|
|
5255
|
-
|
|
5256
|
-
var result = [].concat(a, b);
|
|
5257
|
-
if (result.length > arrayLimit) {
|
|
5258
|
-
return markOverflow(arrayToObject(result, { plainObjects: plainObjects }), result.length - 1);
|
|
5259
|
-
}
|
|
5260
|
-
return result;
|
|
5261
|
-
};
|
|
5262
|
-
|
|
5263
|
-
var maybeMap = function maybeMap(val, fn) {
|
|
5264
|
-
if (isArray(val)) {
|
|
5265
|
-
var mapped = [];
|
|
5266
|
-
for (var i = 0; i < val.length; i += 1) {
|
|
5267
|
-
mapped[mapped.length] = fn(val[i]);
|
|
5268
|
-
}
|
|
5269
|
-
return mapped;
|
|
5270
|
-
}
|
|
5271
|
-
return fn(val);
|
|
5272
|
-
};
|
|
5273
|
-
|
|
5274
|
-
module.exports = {
|
|
5275
|
-
arrayToObject: arrayToObject,
|
|
5276
|
-
assign: assign,
|
|
5277
|
-
combine: combine,
|
|
5278
|
-
compact: compact,
|
|
5279
|
-
decode: decode,
|
|
5280
|
-
encode: encode,
|
|
5281
|
-
isBuffer: isBuffer,
|
|
5282
|
-
isOverflow: isOverflow,
|
|
5283
|
-
isRegExp: isRegExp,
|
|
5284
|
-
markOverflow: markOverflow,
|
|
5285
|
-
maybeMap: maybeMap,
|
|
5286
|
-
merge: merge
|
|
5287
|
-
};
|
|
5288
|
-
|
|
5289
|
-
},{"./formats":44,"side-channel":52}],49:[function(require,module,exports){
|
|
5290
|
-
'use strict';
|
|
5291
|
-
|
|
5292
|
-
var inspect = require('object-inspect');
|
|
5293
|
-
|
|
5294
|
-
var $TypeError = require('es-errors/type');
|
|
5295
|
-
|
|
5296
|
-
/*
|
|
5297
|
-
* This function traverses the list returning the node corresponding to the given key.
|
|
5298
|
-
*
|
|
5299
|
-
* That node is also moved to the head of the list, so that if it's accessed again we don't need to traverse the whole list.
|
|
5300
|
-
* By doing so, all the recently used nodes can be accessed relatively quickly.
|
|
5301
|
-
*/
|
|
5302
|
-
/** @type {import('./list.d.ts').listGetNode} */
|
|
5303
|
-
// eslint-disable-next-line consistent-return
|
|
5304
|
-
var listGetNode = function (list, key, isDelete) {
|
|
5305
|
-
/** @type {typeof list | NonNullable<(typeof list)['next']>} */
|
|
5306
|
-
var prev = list;
|
|
5307
|
-
/** @type {(typeof list)['next']} */
|
|
5308
|
-
var curr;
|
|
5309
|
-
// eslint-disable-next-line eqeqeq
|
|
5310
|
-
for (; (curr = prev.next) != null; prev = curr) {
|
|
5311
|
-
if (curr.key === key) {
|
|
5312
|
-
prev.next = curr.next;
|
|
5313
|
-
if (!isDelete) {
|
|
5314
|
-
// eslint-disable-next-line no-extra-parens
|
|
5315
|
-
curr.next = /** @type {NonNullable<typeof list.next>} */ (list.next);
|
|
5316
|
-
list.next = curr; // eslint-disable-line no-param-reassign
|
|
5317
|
-
}
|
|
5318
|
-
return curr;
|
|
5319
|
-
}
|
|
5320
|
-
}
|
|
5321
|
-
};
|
|
5322
|
-
|
|
5323
|
-
/** @type {import('./list.d.ts').listGet} */
|
|
5324
|
-
var listGet = function (objects, key) {
|
|
5325
|
-
if (!objects) {
|
|
5326
|
-
return void undefined;
|
|
5327
|
-
}
|
|
5328
|
-
var node = listGetNode(objects, key);
|
|
5329
|
-
return node && node.value;
|
|
5330
|
-
};
|
|
5331
|
-
/** @type {import('./list.d.ts').listSet} */
|
|
5332
|
-
var listSet = function (objects, key, value) {
|
|
5333
|
-
var node = listGetNode(objects, key);
|
|
5334
|
-
if (node) {
|
|
5335
|
-
node.value = value;
|
|
5336
|
-
} else {
|
|
5337
|
-
// Prepend the new node to the beginning of the list
|
|
5338
|
-
objects.next = /** @type {import('./list.d.ts').ListNode<typeof value, typeof key>} */ ({ // eslint-disable-line no-param-reassign, no-extra-parens
|
|
5339
|
-
key: key,
|
|
5340
|
-
next: objects.next,
|
|
5341
|
-
value: value
|
|
5342
|
-
});
|
|
5343
|
-
}
|
|
5344
|
-
};
|
|
5345
|
-
/** @type {import('./list.d.ts').listHas} */
|
|
5346
|
-
var listHas = function (objects, key) {
|
|
5347
|
-
if (!objects) {
|
|
5348
|
-
return false;
|
|
5349
|
-
}
|
|
5350
|
-
return !!listGetNode(objects, key);
|
|
5351
|
-
};
|
|
5352
|
-
/** @type {import('./list.d.ts').listDelete} */
|
|
5353
|
-
// eslint-disable-next-line consistent-return
|
|
5354
|
-
var listDelete = function (objects, key) {
|
|
5355
|
-
if (objects) {
|
|
5356
|
-
return listGetNode(objects, key, true);
|
|
5357
|
-
}
|
|
5358
|
-
};
|
|
5359
|
-
|
|
5360
|
-
/** @type {import('.')} */
|
|
5361
|
-
module.exports = function getSideChannelList() {
|
|
5362
|
-
/** @typedef {ReturnType<typeof getSideChannelList>} Channel */
|
|
5363
|
-
/** @typedef {Parameters<Channel['get']>[0]} K */
|
|
5364
|
-
/** @typedef {Parameters<Channel['set']>[1]} V */
|
|
5365
|
-
|
|
5366
|
-
/** @type {import('./list.d.ts').RootNode<V, K> | undefined} */ var $o;
|
|
5367
|
-
|
|
5368
|
-
/** @type {Channel} */
|
|
5369
|
-
var channel = {
|
|
5370
|
-
assert: function (key) {
|
|
5371
|
-
if (!channel.has(key)) {
|
|
5372
|
-
throw new $TypeError('Side channel does not contain ' + inspect(key));
|
|
5373
|
-
}
|
|
5374
|
-
},
|
|
5375
|
-
'delete': function (key) {
|
|
5376
|
-
var deletedNode = listDelete($o, key);
|
|
5377
|
-
if (deletedNode && $o && !$o.next) {
|
|
5378
|
-
$o = void undefined;
|
|
5379
|
-
}
|
|
5380
|
-
return !!deletedNode;
|
|
5381
|
-
},
|
|
5382
|
-
get: function (key) {
|
|
5383
|
-
return listGet($o, key);
|
|
5384
|
-
},
|
|
5385
|
-
has: function (key) {
|
|
5386
|
-
return listHas($o, key);
|
|
5387
|
-
},
|
|
5388
|
-
set: function (key, value) {
|
|
5389
|
-
if (!$o) {
|
|
5390
|
-
// Initialize the linked list as an empty node, so that we don't have to special-case handling of the first node: we can always refer to it as (previous node).next, instead of something like (list).head
|
|
5391
|
-
$o = {
|
|
5392
|
-
next: void undefined
|
|
5393
|
-
};
|
|
5394
|
-
}
|
|
5395
|
-
// eslint-disable-next-line no-extra-parens
|
|
5396
|
-
listSet(/** @type {NonNullable<typeof $o>} */ ($o), key, value);
|
|
5397
|
-
}
|
|
5398
|
-
};
|
|
5399
|
-
return channel;
|
|
5400
|
-
};
|
|
5401
|
-
|
|
5402
|
-
},{"es-errors/type":17,"object-inspect":40}],50:[function(require,module,exports){
|
|
5403
|
-
'use strict';
|
|
5404
|
-
|
|
5405
|
-
var GetIntrinsic = require('get-intrinsic');
|
|
5406
|
-
var callBound = require('call-bound');
|
|
5407
|
-
var inspect = require('object-inspect');
|
|
5408
|
-
|
|
5409
|
-
var $TypeError = require('es-errors/type');
|
|
5410
|
-
var $Map = GetIntrinsic('%Map%', true);
|
|
5411
|
-
|
|
5412
|
-
/** @type {<K, V>(thisArg: Map<K, V>, key: K) => V} */
|
|
5413
|
-
var $mapGet = callBound('Map.prototype.get', true);
|
|
5414
|
-
/** @type {<K, V>(thisArg: Map<K, V>, key: K, value: V) => void} */
|
|
5415
|
-
var $mapSet = callBound('Map.prototype.set', true);
|
|
5416
|
-
/** @type {<K, V>(thisArg: Map<K, V>, key: K) => boolean} */
|
|
5417
|
-
var $mapHas = callBound('Map.prototype.has', true);
|
|
5418
|
-
/** @type {<K, V>(thisArg: Map<K, V>, key: K) => boolean} */
|
|
5419
|
-
var $mapDelete = callBound('Map.prototype.delete', true);
|
|
5420
|
-
/** @type {<K, V>(thisArg: Map<K, V>) => number} */
|
|
5421
|
-
var $mapSize = callBound('Map.prototype.size', true);
|
|
5422
|
-
|
|
5423
|
-
/** @type {import('.')} */
|
|
5424
|
-
module.exports = !!$Map && /** @type {Exclude<import('.'), false>} */ function getSideChannelMap() {
|
|
5425
|
-
/** @typedef {ReturnType<typeof getSideChannelMap>} Channel */
|
|
5426
|
-
/** @typedef {Parameters<Channel['get']>[0]} K */
|
|
5427
|
-
/** @typedef {Parameters<Channel['set']>[1]} V */
|
|
5428
|
-
|
|
5429
|
-
/** @type {Map<K, V> | undefined} */ var $m;
|
|
5430
|
-
|
|
5431
|
-
/** @type {Channel} */
|
|
5432
|
-
var channel = {
|
|
5433
|
-
assert: function (key) {
|
|
5434
|
-
if (!channel.has(key)) {
|
|
5435
|
-
throw new $TypeError('Side channel does not contain ' + inspect(key));
|
|
5436
|
-
}
|
|
5437
|
-
},
|
|
5438
|
-
'delete': function (key) {
|
|
5439
|
-
if ($m) {
|
|
5440
|
-
var result = $mapDelete($m, key);
|
|
5441
|
-
if ($mapSize($m) === 0) {
|
|
5442
|
-
$m = void undefined;
|
|
5443
|
-
}
|
|
5444
|
-
return result;
|
|
5445
|
-
}
|
|
5446
|
-
return false;
|
|
5447
|
-
},
|
|
5448
|
-
get: function (key) { // eslint-disable-line consistent-return
|
|
5449
|
-
if ($m) {
|
|
5450
|
-
return $mapGet($m, key);
|
|
5451
|
-
}
|
|
5452
|
-
},
|
|
5453
|
-
has: function (key) {
|
|
5454
|
-
if ($m) {
|
|
5455
|
-
return $mapHas($m, key);
|
|
5456
|
-
}
|
|
5457
|
-
return false;
|
|
5458
|
-
},
|
|
5459
|
-
set: function (key, value) {
|
|
5460
|
-
if (!$m) {
|
|
5461
|
-
// @ts-expect-error TS can't handle narrowing a variable inside a closure
|
|
5462
|
-
$m = new $Map();
|
|
5463
|
-
}
|
|
5464
|
-
$mapSet($m, key, value);
|
|
5465
|
-
}
|
|
5466
|
-
};
|
|
5467
|
-
|
|
5468
|
-
// @ts-expect-error TODO: figure out why TS is erroring here
|
|
5469
|
-
return channel;
|
|
5470
|
-
};
|
|
5471
|
-
|
|
5472
|
-
},{"call-bound":9,"es-errors/type":17,"get-intrinsic":22,"object-inspect":40}],51:[function(require,module,exports){
|
|
5473
|
-
'use strict';
|
|
5474
|
-
|
|
5475
|
-
var GetIntrinsic = require('get-intrinsic');
|
|
5476
|
-
var callBound = require('call-bound');
|
|
5477
|
-
var inspect = require('object-inspect');
|
|
5478
|
-
var getSideChannelMap = require('side-channel-map');
|
|
5479
|
-
|
|
5480
|
-
var $TypeError = require('es-errors/type');
|
|
5481
|
-
var $WeakMap = GetIntrinsic('%WeakMap%', true);
|
|
5482
|
-
|
|
5483
|
-
/** @type {<K extends object, V>(thisArg: WeakMap<K, V>, key: K) => V} */
|
|
5484
|
-
var $weakMapGet = callBound('WeakMap.prototype.get', true);
|
|
5485
|
-
/** @type {<K extends object, V>(thisArg: WeakMap<K, V>, key: K, value: V) => void} */
|
|
5486
|
-
var $weakMapSet = callBound('WeakMap.prototype.set', true);
|
|
5487
|
-
/** @type {<K extends object, V>(thisArg: WeakMap<K, V>, key: K) => boolean} */
|
|
5488
|
-
var $weakMapHas = callBound('WeakMap.prototype.has', true);
|
|
5489
|
-
/** @type {<K extends object, V>(thisArg: WeakMap<K, V>, key: K) => boolean} */
|
|
5490
|
-
var $weakMapDelete = callBound('WeakMap.prototype.delete', true);
|
|
5491
|
-
|
|
5492
|
-
/** @type {import('.')} */
|
|
5493
|
-
module.exports = $WeakMap
|
|
5494
|
-
? /** @type {Exclude<import('.'), false>} */ function getSideChannelWeakMap() {
|
|
5495
|
-
/** @typedef {ReturnType<typeof getSideChannelWeakMap>} Channel */
|
|
5496
|
-
/** @typedef {Parameters<Channel['get']>[0]} K */
|
|
5497
|
-
/** @typedef {Parameters<Channel['set']>[1]} V */
|
|
5498
|
-
|
|
5499
|
-
/** @type {WeakMap<K & object, V> | undefined} */ var $wm;
|
|
5500
|
-
/** @type {Channel | undefined} */ var $m;
|
|
5501
|
-
|
|
5502
|
-
/** @type {Channel} */
|
|
5503
|
-
var channel = {
|
|
5504
|
-
assert: function (key) {
|
|
5505
|
-
if (!channel.has(key)) {
|
|
5506
|
-
throw new $TypeError('Side channel does not contain ' + inspect(key));
|
|
5507
|
-
}
|
|
5508
|
-
},
|
|
5509
|
-
'delete': function (key) {
|
|
5510
|
-
if ($WeakMap && key && (typeof key === 'object' || typeof key === 'function')) {
|
|
5511
|
-
if ($wm) {
|
|
5512
|
-
return $weakMapDelete($wm, key);
|
|
5513
|
-
}
|
|
5514
|
-
} else if (getSideChannelMap) {
|
|
5515
|
-
if ($m) {
|
|
5516
|
-
return $m['delete'](key);
|
|
5517
|
-
}
|
|
5518
|
-
}
|
|
5519
|
-
return false;
|
|
5520
|
-
},
|
|
5521
|
-
get: function (key) {
|
|
5522
|
-
if ($WeakMap && key && (typeof key === 'object' || typeof key === 'function')) {
|
|
5523
|
-
if ($wm) {
|
|
5524
|
-
return $weakMapGet($wm, key);
|
|
5525
|
-
}
|
|
5526
|
-
}
|
|
5527
|
-
return $m && $m.get(key);
|
|
5528
|
-
},
|
|
5529
|
-
has: function (key) {
|
|
5530
|
-
if ($WeakMap && key && (typeof key === 'object' || typeof key === 'function')) {
|
|
5531
|
-
if ($wm) {
|
|
5532
|
-
return $weakMapHas($wm, key);
|
|
5533
|
-
}
|
|
5534
|
-
}
|
|
5535
|
-
return !!$m && $m.has(key);
|
|
5536
|
-
},
|
|
5537
|
-
set: function (key, value) {
|
|
5538
|
-
if ($WeakMap && key && (typeof key === 'object' || typeof key === 'function')) {
|
|
5539
|
-
if (!$wm) {
|
|
5540
|
-
$wm = new $WeakMap();
|
|
5541
|
-
}
|
|
5542
|
-
$weakMapSet($wm, key, value);
|
|
5543
|
-
} else if (getSideChannelMap) {
|
|
5544
|
-
if (!$m) {
|
|
5545
|
-
$m = getSideChannelMap();
|
|
5546
|
-
}
|
|
5547
|
-
// eslint-disable-next-line no-extra-parens
|
|
5548
|
-
/** @type {NonNullable<typeof $m>} */ ($m).set(key, value);
|
|
5549
|
-
}
|
|
5550
|
-
}
|
|
5551
|
-
};
|
|
5552
|
-
|
|
5553
|
-
// @ts-expect-error TODO: figure out why this is erroring
|
|
5554
|
-
return channel;
|
|
5555
|
-
}
|
|
5556
|
-
: getSideChannelMap;
|
|
5557
|
-
|
|
5558
|
-
},{"call-bound":9,"es-errors/type":17,"get-intrinsic":22,"object-inspect":40,"side-channel-map":50}],52:[function(require,module,exports){
|
|
5559
|
-
'use strict';
|
|
5560
|
-
|
|
5561
|
-
var $TypeError = require('es-errors/type');
|
|
5562
|
-
var inspect = require('object-inspect');
|
|
5563
|
-
var getSideChannelList = require('side-channel-list');
|
|
5564
|
-
var getSideChannelMap = require('side-channel-map');
|
|
5565
|
-
var getSideChannelWeakMap = require('side-channel-weakmap');
|
|
5566
|
-
|
|
5567
|
-
var makeChannel = getSideChannelWeakMap || getSideChannelMap || getSideChannelList;
|
|
5568
|
-
|
|
5569
|
-
/** @type {import('.')} */
|
|
5570
|
-
module.exports = function getSideChannel() {
|
|
5571
|
-
/** @typedef {ReturnType<typeof getSideChannel>} Channel */
|
|
5572
|
-
|
|
5573
|
-
/** @type {Channel | undefined} */ var $channelData;
|
|
5574
|
-
|
|
5575
|
-
/** @type {Channel} */
|
|
5576
|
-
var channel = {
|
|
5577
|
-
assert: function (key) {
|
|
5578
|
-
if (!channel.has(key)) {
|
|
5579
|
-
throw new $TypeError('Side channel does not contain ' + inspect(key));
|
|
5580
|
-
}
|
|
5581
|
-
},
|
|
5582
|
-
'delete': function (key) {
|
|
5583
|
-
return !!$channelData && $channelData['delete'](key);
|
|
5584
|
-
},
|
|
5585
|
-
get: function (key) {
|
|
5586
|
-
return $channelData && $channelData.get(key);
|
|
5587
|
-
},
|
|
5588
|
-
has: function (key) {
|
|
5589
|
-
return !!$channelData && $channelData.has(key);
|
|
5590
|
-
},
|
|
5591
|
-
set: function (key, value) {
|
|
5592
|
-
if (!$channelData) {
|
|
5593
|
-
$channelData = makeChannel();
|
|
5594
|
-
}
|
|
5595
|
-
|
|
5596
|
-
$channelData.set(key, value);
|
|
5597
|
-
}
|
|
5598
|
-
};
|
|
5599
|
-
// @ts-expect-error TODO: figure out why this is erroring
|
|
5600
|
-
return channel;
|
|
5601
|
-
};
|
|
5602
|
-
|
|
5603
|
-
},{"es-errors/type":17,"object-inspect":40,"side-channel-list":49,"side-channel-map":50,"side-channel-weakmap":51}],53:[function(require,module,exports){
|
|
2791
|
+
},{}],7:[function(require,module,exports){
|
|
5604
2792
|
(function (setImmediate,clearImmediate){(function (){
|
|
5605
2793
|
var nextTick = require('process/browser.js').nextTick;
|
|
5606
2794
|
var apply = Function.prototype.apply;
|
|
@@ -5679,9 +2867,9 @@ exports.clearImmediate = typeof clearImmediate === "function" ? clearImmediate :
|
|
|
5679
2867
|
delete immediateIds[id];
|
|
5680
2868
|
};
|
|
5681
2869
|
}).call(this)}).call(this,require("timers").setImmediate,require("timers").clearImmediate)
|
|
5682
|
-
},{"process/browser.js":
|
|
2870
|
+
},{"process/browser.js":6,"timers":7}],"platformClient":[function(require,module,exports){
|
|
5683
2871
|
(function (global,Buffer,setImmediate){(function (){
|
|
5684
|
-
'use strict';function asyncGeneratorStep(n,t,e,r,o,a,c){try{var i=n[a](c),u=i.value;}catch(n){return void e(n);}i.done?t(u):Promise.resolve(u).then(r,o);}function _asyncToGenerator(n){return function(){var t=this,e=arguments;return new Promise(function(r,o){var a=n.apply(t,e);function _next(n){asyncGeneratorStep(a,r,o,_next,_throw,"next",n);}function _throw(n){asyncGeneratorStep(a,r,o,_next,_throw,"throw",n);}_next(void 0);});};}function _regeneratorValues(e){if(null!=e){var t=e["function"==typeof Symbol&&Symbol.iterator||"@@iterator"],r=0;if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length))return{next:function next(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e};}};}throw new TypeError(_typeof(e)+" is not iterable");}function _regenerator(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */var e,t,r="function"==typeof Symbol?Symbol:{},n=r.iterator||"@@iterator",o=r.toStringTag||"@@toStringTag";function i(r,n,o,i){var c=n&&n.prototype instanceof Generator?n:Generator,u=Object.create(c.prototype);return _regeneratorDefine2(u,"_invoke",function(r,n,o){var i,c,u,f=0,p=o||[],y=!1,G={p:0,n:0,v:e,a:d,f:d.bind(e,4),d:function d(t,r){return i=t,c=0,u=e,G.n=r,a;}};function d(r,n){for(c=r,u=n,t=0;!y&&f&&!o&&t<p.length;t++){var o,i=p[t],d=G.p,l=i[2];r>3?(o=l===n)&&(u=i[(c=i[4])?5:(c=3,3)],i[4]=i[5]=e):i[0]<=d&&((o=r<2&&d<i[1])?(c=0,G.v=n,G.n=i[1]):d<l&&(o=r<3||i[0]>n||n>l)&&(i[4]=r,i[5]=n,G.n=l,c=0));}if(o||r>1)return a;throw y=!0,n;}return function(o,p,l){if(f>1)throw TypeError("Generator is already running");for(y&&1===p&&d(p,l),c=p,u=l;(t=c<2?e:u)||!y;){i||(c?c<3?(c>1&&(G.n=-1),d(c,u)):G.n=u:G.v=u);try{if(f=2,i){if(c||(o="next"),t=i[o]){if(!(t=t.call(i,u)))throw TypeError("iterator result is not an object");if(!t.done)return t;u=t.value,c<2&&(c=0);}else 1===c&&(t=i["return"])&&t.call(i),c<2&&(u=TypeError("The iterator does not provide a '"+o+"' method"),c=1);i=e;}else if((t=(y=G.n<0)?u:r.call(n,G))!==a)break;}catch(t){i=e,c=1,u=t;}finally{f=1;}}return{value:t,done:y};};}(r,o,i),!0),u;}var a={};function Generator(){}function GeneratorFunction(){}function GeneratorFunctionPrototype(){}t=Object.getPrototypeOf;var c=[][n]?t(t([][n]())):(_regeneratorDefine2(t={},n,function(){return this;}),t),u=GeneratorFunctionPrototype.prototype=Generator.prototype=Object.create(c);function f(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,GeneratorFunctionPrototype):(e.__proto__=GeneratorFunctionPrototype,_regeneratorDefine2(e,o,"GeneratorFunction")),e.prototype=Object.create(u),e;}return GeneratorFunction.prototype=GeneratorFunctionPrototype,_regeneratorDefine2(u,"constructor",GeneratorFunctionPrototype),_regeneratorDefine2(GeneratorFunctionPrototype,"constructor",GeneratorFunction),GeneratorFunction.displayName="GeneratorFunction",_regeneratorDefine2(GeneratorFunctionPrototype,o,"GeneratorFunction"),_regeneratorDefine2(u),_regeneratorDefine2(u,o,"Generator"),_regeneratorDefine2(u,n,function(){return this;}),_regeneratorDefine2(u,"toString",function(){return"[object Generator]";}),(_regenerator=function _regenerator(){return{w:i,m:f};})();}function _regeneratorDefine2(e,r,n,t){var i=Object.defineProperty;try{i({},"",{});}catch(e){i=0;}_regeneratorDefine2=function _regeneratorDefine(e,r,n,t){function o(r,n){_regeneratorDefine2(e,r,function(e){return this._invoke(r,n,e);});}r?i?i(e,r,{value:n,enumerable:!t,configurable:!t,writable:!t}):e[r]=n:(o("next",0),o("throw",1),o("return",2));},_regeneratorDefine2(e,r,n,t);}function ownKeys(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);r&&(o=o.filter(function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable;})),t.push.apply(t,o);}return t;}function _objectSpread(e){for(var r=1;r<arguments.length;r++){var t=null!=arguments[r]?arguments[r]:{};r%2?ownKeys(Object(t),!0).forEach(function(r){_defineProperty(e,r,t[r]);}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):ownKeys(Object(t)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r));});}return e;}function _defineProperty(e,r,t){return(r=_toPropertyKey(r))in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e;}function _callSuper(t,o,e){return o=_getPrototypeOf(o),_possibleConstructorReturn(t,_isNativeReflectConstruct()?Reflect.construct(o,e||[],_getPrototypeOf(t).constructor):o.apply(t,e));}function _possibleConstructorReturn(t,e){if(e&&("object"==_typeof(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return _assertThisInitialized(t);}function _assertThisInitialized(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e;}function _inherits(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&_setPrototypeOf(t,e);}function _wrapNativeSuper(t){var r="function"==typeof Map?new Map():void 0;return _wrapNativeSuper=function _wrapNativeSuper(t){if(null===t||!_isNativeFunction(t))return t;if("function"!=typeof t)throw new TypeError("Super expression must either be null or a function");if(void 0!==r){if(r.has(t))return r.get(t);r.set(t,Wrapper);}function Wrapper(){return _construct(t,arguments,_getPrototypeOf(this).constructor);}return Wrapper.prototype=Object.create(t.prototype,{constructor:{value:Wrapper,enumerable:!1,writable:!0,configurable:!0}}),_setPrototypeOf(Wrapper,t);},_wrapNativeSuper(t);}function _construct(t,e,r){if(_isNativeReflectConstruct())return Reflect.construct.apply(null,arguments);var o=[null];o.push.apply(o,e);var p=new(t.bind.apply(t,o))();return r&&_setPrototypeOf(p,r.prototype),p;}function _isNativeReflectConstruct(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}));}catch(t){}return(_isNativeReflectConstruct=function _isNativeReflectConstruct(){return!!t;})();}function _isNativeFunction(t){try{return-1!==Function.toString.call(t).indexOf("[native code]");}catch(n){return"function"==typeof t;}}function _setPrototypeOf(t,e){return _setPrototypeOf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t;},_setPrototypeOf(t,e);}function _getPrototypeOf(t){return _getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t);},_getPrototypeOf(t);}function _toConsumableArray(r){return _arrayWithoutHoles(r)||_iterableToArray(r)||_unsupportedIterableToArray(r)||_nonIterableSpread();}function _nonIterableSpread(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");}function _iterableToArray(r){if("undefined"!=typeof Symbol&&null!=r[Symbol.iterator]||null!=r["@@iterator"])return Array.from(r);}function _arrayWithoutHoles(r){if(Array.isArray(r))return _arrayLikeToArray(r);}function _createForOfIteratorHelper(r,e){var t="undefined"!=typeof Symbol&&r[Symbol.iterator]||r["@@iterator"];if(!t){if(Array.isArray(r)||(t=_unsupportedIterableToArray(r))||e&&r&&"number"==typeof r.length){t&&(r=t);var _n=0,F=function F(){};return{s:F,n:function n(){return _n>=r.length?{done:!0}:{done:!1,value:r[_n++]};},e:function e(r){throw r;},f:F};}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");}var o,a=!0,u=!1;return{s:function s(){t=t.call(r);},n:function n(){var r=t.next();return a=r.done,r;},e:function e(r){u=!0,o=r;},f:function f(){try{a||null==t["return"]||t["return"]();}finally{if(u)throw o;}}};}function _classCallCheck(a,n){if(!(a instanceof n))throw new TypeError("Cannot call a class as a function");}function _defineProperties(e,r){for(var t=0;t<r.length;t++){var o=r[t];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,_toPropertyKey(o.key),o);}}function _createClass(e,r,t){return r&&_defineProperties(e.prototype,r),t&&_defineProperties(e,t),Object.defineProperty(e,"prototype",{writable:!1}),e;}function _toPropertyKey(t){var i=_toPrimitive(t,"string");return"symbol"==_typeof(i)?i:i+"";}function _toPrimitive(t,r){if("object"!=_typeof(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var i=e.call(t,r||"default");if("object"!=_typeof(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.");}return("string"===r?String:Number)(t);}function _slicedToArray(r,e){return _arrayWithHoles(r)||_iterableToArrayLimit(r,e)||_unsupportedIterableToArray(r,e)||_nonIterableRest();}function _nonIterableRest(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");}function _unsupportedIterableToArray(r,a){if(r){if("string"==typeof r)return _arrayLikeToArray(r,a);var t={}.toString.call(r).slice(8,-1);return"Object"===t&&r.constructor&&(t=r.constructor.name),"Map"===t||"Set"===t?Array.from(r):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?_arrayLikeToArray(r,a):void 0;}}function _arrayLikeToArray(r,a){(null==a||a>r.length)&&(a=r.length);for(var e=0,n=Array(a);e<a;e++)n[e]=r[e];return n;}function _iterableToArrayLimit(r,l){var t=null==r?null:"undefined"!=typeof Symbol&&r[Symbol.iterator]||r["@@iterator"];if(null!=t){var e,n,i,u,a=[],f=!0,o=!1;try{if(i=(t=t.call(r)).next,0===l){if(Object(t)!==t)return;f=!1;}else for(;!(f=(e=i.call(t)).done)&&(a.push(e.value),a.length!==l);f=!0);}catch(r){o=!0,n=r;}finally{try{if(!f&&null!=t["return"]&&(u=t["return"](),Object(u)!==u))return;}finally{if(o)throw n;}}return a;}}function _arrayWithHoles(r){if(Array.isArray(r))return r;}function _typeof(o){"@babel/helpers - typeof";return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(o){return typeof o;}:function(o){return o&&"function"==typeof Symbol&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o;},_typeof(o);}function _wrapAsyncGenerator(e){return function(){return new AsyncGenerator(e.apply(this,arguments));};}function AsyncGenerator(e){var t,n;function resume(t,n){try{var r=e[t](n),o=r.value,u=o instanceof _OverloadYield;Promise.resolve(u?o.v:o).then(function(n){if(u){var i="return"===t&&o.k?t:"next";if(!o.k||n.done)return resume(i,n);n=e[i](n).value;}settle(!!r.done,n);},function(e){resume("throw",e);});}catch(e){settle(2,e);}}function settle(e,r){2===e?t.reject(r):t.resolve({value:r,done:e}),(t=t.next)?resume(t.key,t.arg):n=null;}this._invoke=function(e,r){return new Promise(function(o,u){var i={key:e,arg:r,resolve:o,reject:u,next:null};n?n=n.next=i:(t=n=i,resume(e,r));});},"function"!=typeof e["return"]&&(this["return"]=void 0);}AsyncGenerator.prototype["function"==typeof Symbol&&Symbol.asyncIterator||"@@asyncIterator"]=function(){return this;},AsyncGenerator.prototype.next=function(e){return this._invoke("next",e);},AsyncGenerator.prototype["throw"]=function(e){return this._invoke("throw",e);},AsyncGenerator.prototype["return"]=function(e){return this._invoke("return",e);};function _awaitAsyncGenerator(e){return new _OverloadYield(e,0);}function _asyncGeneratorDelegate(t){var e={},n=!1;function pump(e,r){return n=!0,r=new Promise(function(n){n(t[e](r));}),{done:!1,value:new _OverloadYield(r,1)};}return e["undefined"!=typeof Symbol&&Symbol.iterator||"@@iterator"]=function(){return this;},e.next=function(t){return n?(n=!1,t):pump("next",t);},"function"==typeof t["throw"]&&(e["throw"]=function(t){if(n)throw n=!1,t;return pump("throw",t);}),"function"==typeof t["return"]&&(e["return"]=function(t){return n?(n=!1,t):pump("return",t);}),e;}function _OverloadYield(e,d){this.v=e,this.k=d;}function _asyncIterator(r){var n,t,o,e=2;for("undefined"!=typeof Symbol&&(t=Symbol.asyncIterator,o=Symbol.iterator);e--;){if(t&&null!=(n=r[t]))return n.call(r);if(o&&null!=(n=r[o]))return new AsyncFromSyncIterator(n.call(r));t="@@asyncIterator",o="@@iterator";}throw new TypeError("Object is not async iterable");}function AsyncFromSyncIterator(r){function AsyncFromSyncIteratorContinuation(r){if(Object(r)!==r)return Promise.reject(new TypeError(r+" is not an object."));var n=r.done;return Promise.resolve(r.value).then(function(r){return{value:r,done:n};});}return AsyncFromSyncIterator=function AsyncFromSyncIterator(r){this.s=r,this.n=r.next;},AsyncFromSyncIterator.prototype={s:null,n:null,next:function next(){return AsyncFromSyncIteratorContinuation(this.n.apply(this.s,arguments));},"return":function _return(r){var n=this.s["return"];return void 0===n?Promise.resolve({value:r,done:!0}):AsyncFromSyncIteratorContinuation(n.apply(this.s,arguments));},"throw":function _throw(r){var n=this.s["return"];return void 0===n?Promise.reject(r):AsyncFromSyncIteratorContinuation(n.apply(this.s,arguments));}},new AsyncFromSyncIterator(r);}var qs=require('qs');function _interopDefaultLegacy(e){return e&&_typeof(e)==='object'&&'default'in e?e:{'default':e};}var qs__default=/*#__PURE__*/_interopDefaultLegacy(qs);var PureCloudRegionHosts={us_east_1:'mypurecloud.com',eu_west_1:'mypurecloud.ie',ap_southeast_2:'mypurecloud.com.au',ap_northeast_1:'mypurecloud.jp',eu_central_1:'mypurecloud.de',us_west_2:'usw2.pure.cloud',ca_central_1:'cac1.pure.cloud',ap_northeast_2:'apne2.pure.cloud',eu_west_2:'euw2.pure.cloud',ap_south_1:'aps1.pure.cloud',us_east_2:'use2.us-gov-pure.cloud',sa_east_1:'sae1.pure.cloud',me_central_1:'mec1.pure.cloud',ap_northeast_3:'apne3.pure.cloud',eu_central_2:'euc2.pure.cloud',mx_central_1:'mxc1.pure.cloud',ap_southeast_1:'apse1.pure.cloud'};var global$1=typeof global!=="undefined"?global:typeof self!=="undefined"?self:typeof window!=="undefined"?window:{};// shim for using process in browser
|
|
2872
|
+
'use strict';function asyncGeneratorStep(n,t,e,r,o,a,c){try{var i=n[a](c),u=i.value;}catch(n){return void e(n);}i.done?t(u):Promise.resolve(u).then(r,o);}function _asyncToGenerator(n){return function(){var t=this,e=arguments;return new Promise(function(r,o){var a=n.apply(t,e);function _next(n){asyncGeneratorStep(a,r,o,_next,_throw,"next",n);}function _throw(n){asyncGeneratorStep(a,r,o,_next,_throw,"throw",n);}_next(void 0);});};}function _regeneratorValues(e){if(null!=e){var t=e["function"==typeof Symbol&&Symbol.iterator||"@@iterator"],r=0;if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length))return{next:function next(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e};}};}throw new TypeError(_typeof(e)+" is not iterable");}function _regenerator(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */var e,t,r="function"==typeof Symbol?Symbol:{},n=r.iterator||"@@iterator",o=r.toStringTag||"@@toStringTag";function i(r,n,o,i){var c=n&&n.prototype instanceof Generator?n:Generator,u=Object.create(c.prototype);return _regeneratorDefine2(u,"_invoke",function(r,n,o){var i,c,u,f=0,p=o||[],y=!1,G={p:0,n:0,v:e,a:d,f:d.bind(e,4),d:function d(t,r){return i=t,c=0,u=e,G.n=r,a;}};function d(r,n){for(c=r,u=n,t=0;!y&&f&&!o&&t<p.length;t++){var o,i=p[t],d=G.p,l=i[2];r>3?(o=l===n)&&(u=i[(c=i[4])?5:(c=3,3)],i[4]=i[5]=e):i[0]<=d&&((o=r<2&&d<i[1])?(c=0,G.v=n,G.n=i[1]):d<l&&(o=r<3||i[0]>n||n>l)&&(i[4]=r,i[5]=n,G.n=l,c=0));}if(o||r>1)return a;throw y=!0,n;}return function(o,p,l){if(f>1)throw TypeError("Generator is already running");for(y&&1===p&&d(p,l),c=p,u=l;(t=c<2?e:u)||!y;){i||(c?c<3?(c>1&&(G.n=-1),d(c,u)):G.n=u:G.v=u);try{if(f=2,i){if(c||(o="next"),t=i[o]){if(!(t=t.call(i,u)))throw TypeError("iterator result is not an object");if(!t.done)return t;u=t.value,c<2&&(c=0);}else 1===c&&(t=i["return"])&&t.call(i),c<2&&(u=TypeError("The iterator does not provide a '"+o+"' method"),c=1);i=e;}else if((t=(y=G.n<0)?u:r.call(n,G))!==a)break;}catch(t){i=e,c=1,u=t;}finally{f=1;}}return{value:t,done:y};};}(r,o,i),!0),u;}var a={};function Generator(){}function GeneratorFunction(){}function GeneratorFunctionPrototype(){}t=Object.getPrototypeOf;var c=[][n]?t(t([][n]())):(_regeneratorDefine2(t={},n,function(){return this;}),t),u=GeneratorFunctionPrototype.prototype=Generator.prototype=Object.create(c);function f(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,GeneratorFunctionPrototype):(e.__proto__=GeneratorFunctionPrototype,_regeneratorDefine2(e,o,"GeneratorFunction")),e.prototype=Object.create(u),e;}return GeneratorFunction.prototype=GeneratorFunctionPrototype,_regeneratorDefine2(u,"constructor",GeneratorFunctionPrototype),_regeneratorDefine2(GeneratorFunctionPrototype,"constructor",GeneratorFunction),GeneratorFunction.displayName="GeneratorFunction",_regeneratorDefine2(GeneratorFunctionPrototype,o,"GeneratorFunction"),_regeneratorDefine2(u),_regeneratorDefine2(u,o,"Generator"),_regeneratorDefine2(u,n,function(){return this;}),_regeneratorDefine2(u,"toString",function(){return"[object Generator]";}),(_regenerator=function _regenerator(){return{w:i,m:f};})();}function _regeneratorDefine2(e,r,n,t){var i=Object.defineProperty;try{i({},"",{});}catch(e){i=0;}_regeneratorDefine2=function _regeneratorDefine(e,r,n,t){function o(r,n){_regeneratorDefine2(e,r,function(e){return this._invoke(r,n,e);});}r?i?i(e,r,{value:n,enumerable:!t,configurable:!t,writable:!t}):e[r]=n:(o("next",0),o("throw",1),o("return",2));},_regeneratorDefine2(e,r,n,t);}function ownKeys(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);r&&(o=o.filter(function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable;})),t.push.apply(t,o);}return t;}function _objectSpread(e){for(var r=1;r<arguments.length;r++){var t=null!=arguments[r]?arguments[r]:{};r%2?ownKeys(Object(t),!0).forEach(function(r){_defineProperty(e,r,t[r]);}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):ownKeys(Object(t)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r));});}return e;}function _defineProperty(e,r,t){return(r=_toPropertyKey(r))in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e;}function _callSuper(t,o,e){return o=_getPrototypeOf(o),_possibleConstructorReturn(t,_isNativeReflectConstruct()?Reflect.construct(o,e||[],_getPrototypeOf(t).constructor):o.apply(t,e));}function _possibleConstructorReturn(t,e){if(e&&("object"==_typeof(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return _assertThisInitialized(t);}function _assertThisInitialized(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e;}function _inherits(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&_setPrototypeOf(t,e);}function _wrapNativeSuper(t){var r="function"==typeof Map?new Map():void 0;return _wrapNativeSuper=function _wrapNativeSuper(t){if(null===t||!_isNativeFunction(t))return t;if("function"!=typeof t)throw new TypeError("Super expression must either be null or a function");if(void 0!==r){if(r.has(t))return r.get(t);r.set(t,Wrapper);}function Wrapper(){return _construct(t,arguments,_getPrototypeOf(this).constructor);}return Wrapper.prototype=Object.create(t.prototype,{constructor:{value:Wrapper,enumerable:!1,writable:!0,configurable:!0}}),_setPrototypeOf(Wrapper,t);},_wrapNativeSuper(t);}function _construct(t,e,r){if(_isNativeReflectConstruct())return Reflect.construct.apply(null,arguments);var o=[null];o.push.apply(o,e);var p=new(t.bind.apply(t,o))();return r&&_setPrototypeOf(p,r.prototype),p;}function _isNativeReflectConstruct(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}));}catch(t){}return(_isNativeReflectConstruct=function _isNativeReflectConstruct(){return!!t;})();}function _isNativeFunction(t){try{return-1!==Function.toString.call(t).indexOf("[native code]");}catch(n){return"function"==typeof t;}}function _setPrototypeOf(t,e){return _setPrototypeOf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t;},_setPrototypeOf(t,e);}function _getPrototypeOf(t){return _getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t);},_getPrototypeOf(t);}function _toConsumableArray(r){return _arrayWithoutHoles(r)||_iterableToArray(r)||_unsupportedIterableToArray(r)||_nonIterableSpread();}function _nonIterableSpread(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");}function _iterableToArray(r){if("undefined"!=typeof Symbol&&null!=r[Symbol.iterator]||null!=r["@@iterator"])return Array.from(r);}function _arrayWithoutHoles(r){if(Array.isArray(r))return _arrayLikeToArray(r);}function _createForOfIteratorHelper(r,e){var t="undefined"!=typeof Symbol&&r[Symbol.iterator]||r["@@iterator"];if(!t){if(Array.isArray(r)||(t=_unsupportedIterableToArray(r))||e&&r&&"number"==typeof r.length){t&&(r=t);var _n=0,F=function F(){};return{s:F,n:function n(){return _n>=r.length?{done:!0}:{done:!1,value:r[_n++]};},e:function e(r){throw r;},f:F};}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");}var o,a=!0,u=!1;return{s:function s(){t=t.call(r);},n:function n(){var r=t.next();return a=r.done,r;},e:function e(r){u=!0,o=r;},f:function f(){try{a||null==t["return"]||t["return"]();}finally{if(u)throw o;}}};}function _classCallCheck(a,n){if(!(a instanceof n))throw new TypeError("Cannot call a class as a function");}function _defineProperties(e,r){for(var t=0;t<r.length;t++){var o=r[t];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,_toPropertyKey(o.key),o);}}function _createClass(e,r,t){return r&&_defineProperties(e.prototype,r),t&&_defineProperties(e,t),Object.defineProperty(e,"prototype",{writable:!1}),e;}function _toPropertyKey(t){var i=_toPrimitive(t,"string");return"symbol"==_typeof(i)?i:i+"";}function _toPrimitive(t,r){if("object"!=_typeof(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var i=e.call(t,r||"default");if("object"!=_typeof(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.");}return("string"===r?String:Number)(t);}function _slicedToArray(r,e){return _arrayWithHoles(r)||_iterableToArrayLimit(r,e)||_unsupportedIterableToArray(r,e)||_nonIterableRest();}function _nonIterableRest(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");}function _unsupportedIterableToArray(r,a){if(r){if("string"==typeof r)return _arrayLikeToArray(r,a);var t={}.toString.call(r).slice(8,-1);return"Object"===t&&r.constructor&&(t=r.constructor.name),"Map"===t||"Set"===t?Array.from(r):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?_arrayLikeToArray(r,a):void 0;}}function _arrayLikeToArray(r,a){(null==a||a>r.length)&&(a=r.length);for(var e=0,n=Array(a);e<a;e++)n[e]=r[e];return n;}function _iterableToArrayLimit(r,l){var t=null==r?null:"undefined"!=typeof Symbol&&r[Symbol.iterator]||r["@@iterator"];if(null!=t){var e,n,i,u,a=[],f=!0,o=!1;try{if(i=(t=t.call(r)).next,0===l){if(Object(t)!==t)return;f=!1;}else for(;!(f=(e=i.call(t)).done)&&(a.push(e.value),a.length!==l);f=!0);}catch(r){o=!0,n=r;}finally{try{if(!f&&null!=t["return"]&&(u=t["return"](),Object(u)!==u))return;}finally{if(o)throw n;}}return a;}}function _arrayWithHoles(r){if(Array.isArray(r))return r;}function _typeof(o){"@babel/helpers - typeof";return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(o){return typeof o;}:function(o){return o&&"function"==typeof Symbol&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o;},_typeof(o);}function _wrapAsyncGenerator(e){return function(){return new AsyncGenerator(e.apply(this,arguments));};}function AsyncGenerator(e){var t,n;function resume(t,n){try{var r=e[t](n),o=r.value,u=o instanceof _OverloadYield;Promise.resolve(u?o.v:o).then(function(n){if(u){var i="return"===t&&o.k?t:"next";if(!o.k||n.done)return resume(i,n);n=e[i](n).value;}settle(!!r.done,n);},function(e){resume("throw",e);});}catch(e){settle(2,e);}}function settle(e,r){2===e?t.reject(r):t.resolve({value:r,done:e}),(t=t.next)?resume(t.key,t.arg):n=null;}this._invoke=function(e,r){return new Promise(function(o,u){var i={key:e,arg:r,resolve:o,reject:u,next:null};n?n=n.next=i:(t=n=i,resume(e,r));});},"function"!=typeof e["return"]&&(this["return"]=void 0);}AsyncGenerator.prototype["function"==typeof Symbol&&Symbol.asyncIterator||"@@asyncIterator"]=function(){return this;},AsyncGenerator.prototype.next=function(e){return this._invoke("next",e);},AsyncGenerator.prototype["throw"]=function(e){return this._invoke("throw",e);},AsyncGenerator.prototype["return"]=function(e){return this._invoke("return",e);};function _awaitAsyncGenerator(e){return new _OverloadYield(e,0);}function _asyncGeneratorDelegate(t){var e={},n=!1;function pump(e,r){return n=!0,r=new Promise(function(n){n(t[e](r));}),{done:!1,value:new _OverloadYield(r,1)};}return e["undefined"!=typeof Symbol&&Symbol.iterator||"@@iterator"]=function(){return this;},e.next=function(t){return n?(n=!1,t):pump("next",t);},"function"==typeof t["throw"]&&(e["throw"]=function(t){if(n)throw n=!1,t;return pump("throw",t);}),"function"==typeof t["return"]&&(e["return"]=function(t){return n?(n=!1,t):pump("return",t);}),e;}function _OverloadYield(e,d){this.v=e,this.k=d;}function _asyncIterator(r){var n,t,o,e=2;for("undefined"!=typeof Symbol&&(t=Symbol.asyncIterator,o=Symbol.iterator);e--;){if(t&&null!=(n=r[t]))return n.call(r);if(o&&null!=(n=r[o]))return new AsyncFromSyncIterator(n.call(r));t="@@asyncIterator",o="@@iterator";}throw new TypeError("Object is not async iterable");}function AsyncFromSyncIterator(r){function AsyncFromSyncIteratorContinuation(r){if(Object(r)!==r)return Promise.reject(new TypeError(r+" is not an object."));var n=r.done;return Promise.resolve(r.value).then(function(r){return{value:r,done:n};});}return AsyncFromSyncIterator=function AsyncFromSyncIterator(r){this.s=r,this.n=r.next;},AsyncFromSyncIterator.prototype={s:null,n:null,next:function next(){return AsyncFromSyncIteratorContinuation(this.n.apply(this.s,arguments));},"return":function _return(r){var n=this.s["return"];return void 0===n?Promise.resolve({value:r,done:!0}):AsyncFromSyncIteratorContinuation(n.apply(this.s,arguments));},"throw":function _throw(r){var n=this.s["return"];return void 0===n?Promise.reject(r):AsyncFromSyncIteratorContinuation(n.apply(this.s,arguments));}},new AsyncFromSyncIterator(r);}var PureCloudRegionHosts={us_east_1:'mypurecloud.com',eu_west_1:'mypurecloud.ie',ap_southeast_2:'mypurecloud.com.au',ap_northeast_1:'mypurecloud.jp',eu_central_1:'mypurecloud.de',us_west_2:'usw2.pure.cloud',ca_central_1:'cac1.pure.cloud',ap_northeast_2:'apne2.pure.cloud',eu_west_2:'euw2.pure.cloud',ap_south_1:'aps1.pure.cloud',us_east_2:'use2.us-gov-pure.cloud',sa_east_1:'sae1.pure.cloud',me_central_1:'mec1.pure.cloud',ap_northeast_3:'apne3.pure.cloud',eu_central_2:'euc2.pure.cloud',mx_central_1:'mxc1.pure.cloud',ap_southeast_1:'apse1.pure.cloud',eusc_de_east_1:'edee1.eusc-pure.cloud'};var global$1=typeof global!=="undefined"?global:typeof self!=="undefined"?self:typeof window!=="undefined"?window:{};// shim for using process in browser
|
|
5685
2873
|
// based off https://github.com/defunctzombie/node-process/blob/master/browser.js
|
|
5686
2874
|
function defaultSetTimout(){throw new Error('setTimeout has not been defined');}function defaultClearTimeout(){throw new Error('clearTimeout has not been defined');}var cachedSetTimeout=defaultSetTimout;var cachedClearTimeout=defaultClearTimeout;if(typeof global$1.setTimeout==='function'){cachedSetTimeout=setTimeout;}if(typeof global$1.clearTimeout==='function'){cachedClearTimeout=clearTimeout;}function runTimeout(fun){if(cachedSetTimeout===setTimeout){//normal enviroments in sane situations
|
|
5687
2875
|
return setTimeout(fun,0);}// if setTimeout wasn't available but was latter defined
|
|
@@ -6765,7 +3953,7 @@ if(env)this.environment=env;else this.environment=this.host?this.host:'mypureclo
|
|
|
6765
3953
|
this.environment=this.environment.replace(/\/+$/,'');// Strip protocol and subdomain
|
|
6766
3954
|
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];}}}]);}();/**
|
|
6767
3955
|
* @module purecloud-platform-client-v2/ApiClient
|
|
6768
|
-
* @version
|
|
3956
|
+
* @version 255.1.0
|
|
6769
3957
|
*/var ApiClient=/*#__PURE__*/function(){/**
|
|
6770
3958
|
* Manages low level client-server communications, parameter marshalling, etc. There should not be any need for an
|
|
6771
3959
|
* application to use this class directly - the *Api and model classes provide the public API for the service. The
|
|
@@ -6920,7 +4108,7 @@ if(error.response){_this8.config.logger.log('error',error.response.status,'POST'
|
|
|
6920
4108
|
* @param {string} codeVerifier - code verifier used to generate the code challenge
|
|
6921
4109
|
* @param {string} authCode - Authorization code
|
|
6922
4110
|
* @param {string} redirectUri - Authorized redirect URI for your Code Authorization client
|
|
6923
|
-
*/},{key:"authorizePKCEGrant",value:function authorizePKCEGrant(clientId,codeVerifier,authCode,redirectUri){var _this9=this;this.clientId=clientId;var loginBasePath=this.config.getConfUrl('login',"https://login.".concat(this.config.environment));return new Promise(function(resolve,reject){var headers={'Content-Type':'application/x-www-form-urlencoded'};var data=
|
|
4111
|
+
*/},{key:"authorizePKCEGrant",value:function authorizePKCEGrant(clientId,codeVerifier,authCode,redirectUri){var _this9=this;this.clientId=clientId;var loginBasePath=this.config.getConfUrl('login',"https://login.".concat(this.config.environment));return new Promise(function(resolve,reject){var headers={'Content-Type':'application/x-www-form-urlencoded'};var data=new URLSearchParams({grant_type:'authorization_code',code:authCode,code_verifier:codeVerifier,client_id:clientId,redirect_uri:redirectUri}).toString();var requestOptions=new HttpRequestOptions("".concat(loginBasePath,"/oauth/token"),"POST",headers,null,data,_this9.timeout);var httpClient=_this9.getHttpClient();var bodyParam={grant_type:'authorization_code',code:authCode,code_verifier:codeVerifier,client_id:clientId,redirect_uri:redirectUri};// Handle response
|
|
6924
4112
|
httpClient.request(requestOptions).then(function(response){// Logging
|
|
6925
4113
|
_this9.config.logger.log('trace',response.status,'POST',"".concat(loginBasePath,"/oauth/token"),requestOptions.headers,response.headers,bodyParam,undefined);_this9.config.logger.log('debug',response.status,'POST',"".concat(loginBasePath,"/oauth/token"),requestOptions.headers,undefined,bodyParam,undefined);// Get access token from response
|
|
6926
4114
|
var access_token=response.data.access_token;var optsSettings={accessToken:access_token};if(response.data['expires_in']!==null&&response.data['expires_in']!==undefined){optsSettings.tokenExpiryTime=new Date().getTime()+response.data['expires_in']*1000;optsSettings.tokenExpiryTimeString=new Date(optsSettings.tokenExpiryTime).toUTCString();}_this9._saveSettings(optsSettings);// Return auth data
|
|
@@ -7000,7 +4188,7 @@ if(error.response){_this11.config.logger.log('error',error.response.status,'POST
|
|
|
7000
4188
|
* @description Utility function to create the request for auth requests
|
|
7001
4189
|
* @param {string} encodedData - Base64 encoded client and clientSecret pair
|
|
7002
4190
|
* @param {object} data - data to url form encode
|
|
7003
|
-
*/},{key:"_formAuthRequest",value:function _formAuthRequest(encodedData,data){var loginBasePath=this.config.getConfUrl('login',"https://login.".concat(this.config.environment));var headers={'Authorization':'Basic '+encodedData,'Content-Type':'application/x-www-form-urlencoded'};var requestOptions=new HttpRequestOptions("".concat(loginBasePath,"/oauth/token"),"POST",headers,null,
|
|
4191
|
+
*/},{key:"_formAuthRequest",value:function _formAuthRequest(encodedData,data){var loginBasePath=this.config.getConfUrl('login',"https://login.".concat(this.config.environment));var headers={'Authorization':'Basic '+encodedData,'Content-Type':'application/x-www-form-urlencoded'};var queryData=new URLSearchParams(data).toString();var requestOptions=new HttpRequestOptions("".concat(loginBasePath,"/oauth/token"),"POST",headers,null,queryData,this.timeout);var httpClient=this.getHttpClient();return httpClient.request(requestOptions);}/**
|
|
7004
4192
|
* @description Handles an expired access token. Only available in node apps.
|
|
7005
4193
|
* @param {string} statusCode - The status code of a request
|
|
7006
4194
|
*/},{key:"_handleExpiredAccessToken",value:function _handleExpiredAccessToken(){var _this12=this;return new Promise(function(resolve,reject){if(typeof window!=='undefined'){reject(new Error('This method is not supported in a browser.'));return;}if(!_this12.refreshInProgress){_this12.refreshInProgress=true;_this12.refreshCodeAuthorizationGrant(_this12.clientId,_this12.clientSecret,_this12.authData.refreshToken).then(function(){_this12.refreshInProgress=false;resolve();})["catch"](function(err){// Handle failure response
|
|
@@ -7134,7 +4322,7 @@ resolve(data);})["catch"](function(error){var data=error;if(error.response&&erro
|
|
|
7134
4322
|
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(){/**
|
|
7135
4323
|
* AIStudio service.
|
|
7136
4324
|
* @module purecloud-platform-client-v2/api/AIStudioApi
|
|
7137
|
-
* @version
|
|
4325
|
+
* @version 255.1.0
|
|
7138
4326
|
*//**
|
|
7139
4327
|
* Constructs a new AIStudioApi.
|
|
7140
4328
|
* @alias module:purecloud-platform-client-v2/api/AIStudioApi
|
|
@@ -7325,7 +4513,7 @@ if(summarySettingId===undefined||summarySettingId===null||summarySettingId==='')
|
|
|
7325
4513
|
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'],opts['customHeaders']);}}]);}();var AgentAssistantsApi=/*#__PURE__*/function(){/**
|
|
7326
4514
|
* AgentAssistants service.
|
|
7327
4515
|
* @module purecloud-platform-client-v2/api/AgentAssistantsApi
|
|
7328
|
-
* @version
|
|
4516
|
+
* @version 255.1.0
|
|
7329
4517
|
*//**
|
|
7330
4518
|
* Constructs a new AgentAssistantsApi.
|
|
7331
4519
|
* @alias module:purecloud-platform-client-v2/api/AgentAssistantsApi
|
|
@@ -7551,7 +4739,7 @@ if(agentChecklistId===undefined||agentChecklistId===null||agentChecklistId==='')
|
|
|
7551
4739
|
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'],opts['customHeaders']);}}]);}();var AgentCopilotApi=/*#__PURE__*/function(){/**
|
|
7552
4740
|
* AgentCopilot service.
|
|
7553
4741
|
* @module purecloud-platform-client-v2/api/AgentCopilotApi
|
|
7554
|
-
* @version
|
|
4742
|
+
* @version 255.1.0
|
|
7555
4743
|
*//**
|
|
7556
4744
|
* Constructs a new AgentCopilotApi.
|
|
7557
4745
|
* @alias module:purecloud-platform-client-v2/api/AgentCopilotApi
|
|
@@ -7583,7 +4771,7 @@ if(assistantId===undefined||assistantId===null||assistantId===''){throw'Missing
|
|
|
7583
4771
|
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'],opts['customHeaders']);}}]);}();var AgentUIApi=/*#__PURE__*/function(){/**
|
|
7584
4772
|
* AgentUI service.
|
|
7585
4773
|
* @module purecloud-platform-client-v2/api/AgentUIApi
|
|
7586
|
-
* @version
|
|
4774
|
+
* @version 255.1.0
|
|
7587
4775
|
*//**
|
|
7588
4776
|
* Constructs a new AgentUIApi.
|
|
7589
4777
|
* @alias module:purecloud-platform-client-v2/api/AgentUIApi
|
|
@@ -7625,7 +4813,7 @@ if(agentId===undefined||agentId===null||agentId===''){throw'Missing the required
|
|
|
7625
4813
|
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'],opts['customHeaders']);}}]);}();var AlertingApi=/*#__PURE__*/function(){/**
|
|
7626
4814
|
* Alerting service.
|
|
7627
4815
|
* @module purecloud-platform-client-v2/api/AlertingApi
|
|
7628
|
-
* @version
|
|
4816
|
+
* @version 255.1.0
|
|
7629
4817
|
*//**
|
|
7630
4818
|
* Constructs a new AlertingApi.
|
|
7631
4819
|
* @alias module:purecloud-platform-client-v2/api/AlertingApi
|
|
@@ -7739,7 +4927,7 @@ if(ruleId===undefined||ruleId===null||ruleId===''){throw'Missing the required pa
|
|
|
7739
4927
|
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'],opts['customHeaders']);}}]);}();var AnalyticsApi=/*#__PURE__*/function(){/**
|
|
7740
4928
|
* Analytics service.
|
|
7741
4929
|
* @module purecloud-platform-client-v2/api/AnalyticsApi
|
|
7742
|
-
* @version
|
|
4930
|
+
* @version 255.1.0
|
|
7743
4931
|
*//**
|
|
7744
4932
|
* Constructs a new AnalyticsApi.
|
|
7745
4933
|
* @alias module:purecloud-platform-client-v2/api/AnalyticsApi
|
|
@@ -8800,7 +5988,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
8800
5988
|
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'],opts['customHeaders']);}}]);}();var ArchitectApi=/*#__PURE__*/function(){/**
|
|
8801
5989
|
* Architect service.
|
|
8802
5990
|
* @module purecloud-platform-client-v2/api/ArchitectApi
|
|
8803
|
-
* @version
|
|
5991
|
+
* @version 255.1.0
|
|
8804
5992
|
*//**
|
|
8805
5993
|
* Constructs a new ArchitectApi.
|
|
8806
5994
|
* @alias module:purecloud-platform-client-v2/api/ArchitectApi
|
|
@@ -9706,6 +6894,15 @@ if(flowOutcomeId===undefined||flowOutcomeId===null||flowOutcomeId===''){throw'Mi
|
|
|
9706
6894
|
* @param {Array.<String>} opts.divisionId division ID(s)
|
|
9707
6895
|
* @param {Object.<string, string>} opts.customHeaders Per-request HTTP headers
|
|
9708
6896
|
*/},{key:"getFlowsOutcomesDivisionviews",value:function getFlowsOutcomesDivisionviews(opts){opts=opts||{};return this.apiClient.callApi('/api/v2/flows/outcomes/divisionviews','GET',{},{'pageNumber':opts['pageNumber'],'pageSize':opts['pageSize'],'sortBy':opts['sortBy'],'sortOrder':opts['sortOrder'],'id':this.apiClient.buildCollectionParam(opts['id'],'multi'),'name':opts['name'],'divisionId':this.apiClient.buildCollectionParam(opts['divisionId'],'multi')},{},{},null,['PureCloud OAuth'],['application/json'],['application/json'],opts['customHeaders']);}/**
|
|
6897
|
+
* Fetch Architect Validate Job Status
|
|
6898
|
+
*
|
|
6899
|
+
* @param {String} jobId Job ID
|
|
6900
|
+
* @param {Object} opts Optional parameters
|
|
6901
|
+
* @param {Array.<String>} opts.expand Which fields, if any, to expand.
|
|
6902
|
+
* @param {Object.<string, string>} opts.customHeaders Per-request HTTP headers
|
|
6903
|
+
* getFlowsValidateJob is a preview method and is subject to both breaking and non-breaking changes at any time without notice
|
|
6904
|
+
*/},{key:"getFlowsValidateJob",value:function getFlowsValidateJob(jobId,opts){opts=opts||{};// verify the required parameter 'jobId' is set
|
|
6905
|
+
if(jobId===undefined||jobId===null||jobId===''){throw'Missing the required parameter "jobId" when calling getFlowsValidateJob';}return this.apiClient.callApi('/api/v2/flows/validate/jobs/{jobId}','GET',{'jobId':jobId},{'expand':this.apiClient.buildCollectionParam(opts['expand'],'multi')},{},{},null,['PureCloud OAuth'],['application/json'],['application/json'],opts['customHeaders']);}/**
|
|
9709
6906
|
* Updates a grammar
|
|
9710
6907
|
*
|
|
9711
6908
|
* @param {String} grammarId grammar ID
|
|
@@ -10029,6 +7226,14 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
10029
7226
|
* @param {Object} opts.body
|
|
10030
7227
|
* @param {Object.<string, string>} opts.customHeaders Per-request HTTP headers
|
|
10031
7228
|
*/},{key:"postFlowsOutcomes",value:function postFlowsOutcomes(opts){opts=opts||{};return this.apiClient.callApi('/api/v2/flows/outcomes','POST',{},{},{},{},opts['body'],['PureCloud OAuth'],['application/json'],['application/json'],opts['customHeaders']);}/**
|
|
7229
|
+
* Register Architect Validate Job
|
|
7230
|
+
*
|
|
7231
|
+
* @param {Object} body
|
|
7232
|
+
* @param {Object} opts Optional parameters
|
|
7233
|
+
* @param {Object.<string, string>} opts.customHeaders Per-request HTTP headers
|
|
7234
|
+
* postFlowsValidateJobs is a preview method and is subject to both breaking and non-breaking changes at any time without notice
|
|
7235
|
+
*/},{key:"postFlowsValidateJobs",value:function postFlowsValidateJobs(body,opts){opts=opts||{};// verify the required parameter 'body' is set
|
|
7236
|
+
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling postFlowsValidateJobs';}return this.apiClient.callApi('/api/v2/flows/validate/jobs','POST',{},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json'],opts['customHeaders']);}/**
|
|
10032
7237
|
* Updates a emergency group by ID
|
|
10033
7238
|
*
|
|
10034
7239
|
* @param {String} emergencyGroupId Emergency group ID
|
|
@@ -10170,7 +7375,7 @@ if(milestoneId===undefined||milestoneId===null||milestoneId===''){throw'Missing
|
|
|
10170
7375
|
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'],opts['customHeaders']);}}]);}();var AssistantCopilotVariationsApi=/*#__PURE__*/function(){/**
|
|
10171
7376
|
* AssistantCopilotVariations service.
|
|
10172
7377
|
* @module purecloud-platform-client-v2/api/AssistantCopilotVariationsApi
|
|
10173
|
-
* @version
|
|
7378
|
+
* @version 255.1.0
|
|
10174
7379
|
*//**
|
|
10175
7380
|
* Constructs a new AssistantCopilotVariationsApi.
|
|
10176
7381
|
* @alias module:purecloud-platform-client-v2/api/AssistantCopilotVariationsApi
|
|
@@ -10225,7 +7430,7 @@ if(variationId===undefined||variationId===null||variationId===''){throw'Missing
|
|
|
10225
7430
|
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'],opts['customHeaders']);}}]);}();var AuditApi=/*#__PURE__*/function(){/**
|
|
10226
7431
|
* Audit service.
|
|
10227
7432
|
* @module purecloud-platform-client-v2/api/AuditApi
|
|
10228
|
-
* @version
|
|
7433
|
+
* @version 255.1.0
|
|
10229
7434
|
*//**
|
|
10230
7435
|
* Constructs a new AuditApi.
|
|
10231
7436
|
* @alias module:purecloud-platform-client-v2/api/AuditApi
|
|
@@ -10286,7 +7491,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
10286
7491
|
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'],opts['customHeaders']);}}]);}();var AuthorizationApi=/*#__PURE__*/function(){/**
|
|
10287
7492
|
* Authorization service.
|
|
10288
7493
|
* @module purecloud-platform-client-v2/api/AuthorizationApi
|
|
10289
|
-
* @version
|
|
7494
|
+
* @version 255.1.0
|
|
10290
7495
|
*//**
|
|
10291
7496
|
* Constructs a new AuthorizationApi.
|
|
10292
7497
|
* @alias module:purecloud-platform-client-v2/api/AuthorizationApi
|
|
@@ -10804,7 +8009,7 @@ if(subjectId===undefined||subjectId===null||subjectId===''){throw'Missing the re
|
|
|
10804
8009
|
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'],opts['customHeaders']);}}]);}();var BackgroundAssistantApi=/*#__PURE__*/function(){/**
|
|
10805
8010
|
* BackgroundAssistant service.
|
|
10806
8011
|
* @module purecloud-platform-client-v2/api/BackgroundAssistantApi
|
|
10807
|
-
* @version
|
|
8012
|
+
* @version 255.1.0
|
|
10808
8013
|
*//**
|
|
10809
8014
|
* Constructs a new BackgroundAssistantApi.
|
|
10810
8015
|
* @alias module:purecloud-platform-client-v2/api/BackgroundAssistantApi
|
|
@@ -10827,7 +8032,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
10827
8032
|
*/},{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'],opts['customHeaders']);}}]);}();var BillingApi=/*#__PURE__*/function(){/**
|
|
10828
8033
|
* Billing service.
|
|
10829
8034
|
* @module purecloud-platform-client-v2/api/BillingApi
|
|
10830
|
-
* @version
|
|
8035
|
+
* @version 255.1.0
|
|
10831
8036
|
*//**
|
|
10832
8037
|
* Constructs a new BillingApi.
|
|
10833
8038
|
* @alias module:purecloud-platform-client-v2/api/BillingApi
|
|
@@ -10916,7 +8121,7 @@ if(endDate===undefined||endDate===null){throw'Missing the required parameter "en
|
|
|
10916
8121
|
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'],opts['customHeaders']);}}]);}();var BusinessRulesApi=/*#__PURE__*/function(){/**
|
|
10917
8122
|
* BusinessRules service.
|
|
10918
8123
|
* @module purecloud-platform-client-v2/api/BusinessRulesApi
|
|
10919
|
-
* @version
|
|
8124
|
+
* @version 255.1.0
|
|
10920
8125
|
*//**
|
|
10921
8126
|
* Constructs a new BusinessRulesApi.
|
|
10922
8127
|
* @alias module:purecloud-platform-client-v2/api/BusinessRulesApi
|
|
@@ -11305,7 +8510,7 @@ if(schemaId===undefined||schemaId===null||schemaId===''){throw'Missing the requi
|
|
|
11305
8510
|
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'],opts['customHeaders']);}}]);}();var CarrierServicesApi=/*#__PURE__*/function(){/**
|
|
11306
8511
|
* CarrierServices service.
|
|
11307
8512
|
* @module purecloud-platform-client-v2/api/CarrierServicesApi
|
|
11308
|
-
* @version
|
|
8513
|
+
* @version 255.1.0
|
|
11309
8514
|
*//**
|
|
11310
8515
|
* Constructs a new CarrierServicesApi.
|
|
11311
8516
|
* @alias module:purecloud-platform-client-v2/api/CarrierServicesApi
|
|
@@ -11328,7 +8533,7 @@ if(phoneNumber===undefined||phoneNumber===null){throw'Missing the required param
|
|
|
11328
8533
|
*/},{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'],opts['customHeaders']);}}]);}();var CaseManagementApi=/*#__PURE__*/function(){/**
|
|
11329
8534
|
* CaseManagement service.
|
|
11330
8535
|
* @module purecloud-platform-client-v2/api/CaseManagementApi
|
|
11331
|
-
* @version
|
|
8536
|
+
* @version 255.1.0
|
|
11332
8537
|
*//**
|
|
11333
8538
|
* Constructs a new CaseManagementApi.
|
|
11334
8539
|
* @alias module:purecloud-platform-client-v2/api/CaseManagementApi
|
|
@@ -11702,7 +8907,7 @@ if(caseplanId===undefined||caseplanId===null||caseplanId===''){throw'Missing the
|
|
|
11702
8907
|
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling putCasemanagementCaseplanIntakesettings';}return this.apiClient.callApi('/api/v2/casemanagement/caseplans/{caseplanId}/intakesettings','PUT',{'caseplanId':caseplanId},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json'],opts['customHeaders']);}}]);}();var ChatApi=/*#__PURE__*/function(){/**
|
|
11703
8908
|
* Chat service.
|
|
11704
8909
|
* @module purecloud-platform-client-v2/api/ChatApi
|
|
11705
|
-
* @version
|
|
8910
|
+
* @version 255.1.0
|
|
11706
8911
|
*//**
|
|
11707
8912
|
* Constructs a new ChatApi.
|
|
11708
8913
|
* @alias module:purecloud-platform-client-v2/api/ChatApi
|
|
@@ -11997,7 +9202,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
11997
9202
|
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'],opts['customHeaders']);}}]);}();var CoachingApi=/*#__PURE__*/function(){/**
|
|
11998
9203
|
* Coaching service.
|
|
11999
9204
|
* @module purecloud-platform-client-v2/api/CoachingApi
|
|
12000
|
-
* @version
|
|
9205
|
+
* @version 255.1.0
|
|
12001
9206
|
*//**
|
|
12002
9207
|
* Constructs a new CoachingApi.
|
|
12003
9208
|
* @alias module:purecloud-platform-client-v2/api/CoachingApi
|
|
@@ -12196,7 +9401,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
12196
9401
|
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'],opts['customHeaders']);}}]);}();var ContentManagementApi=/*#__PURE__*/function(){/**
|
|
12197
9402
|
* ContentManagement service.
|
|
12198
9403
|
* @module purecloud-platform-client-v2/api/ContentManagementApi
|
|
12199
|
-
* @version
|
|
9404
|
+
* @version 255.1.0
|
|
12200
9405
|
*//**
|
|
12201
9406
|
* Constructs a new ContentManagementApi.
|
|
12202
9407
|
* @alias module:purecloud-platform-client-v2/api/ContentManagementApi
|
|
@@ -12528,7 +9733,7 @@ if(tagId===undefined||tagId===null||tagId===''){throw'Missing the required param
|
|
|
12528
9733
|
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'],opts['customHeaders']);}}]);}();var ConversationsApi=/*#__PURE__*/function(){/**
|
|
12529
9734
|
* Conversations service.
|
|
12530
9735
|
* @module purecloud-platform-client-v2/api/ConversationsApi
|
|
12531
|
-
* @version
|
|
9736
|
+
* @version 255.1.0
|
|
12532
9737
|
*//**
|
|
12533
9738
|
* Constructs a new ConversationsApi.
|
|
12534
9739
|
* @alias module:purecloud-platform-client-v2/api/ConversationsApi
|
|
@@ -15456,7 +12661,7 @@ if(conversationId===undefined||conversationId===null||conversationId===''){throw
|
|
|
15456
12661
|
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'],opts['customHeaders']);}}]);}();var DataExtensionsApi=/*#__PURE__*/function(){/**
|
|
15457
12662
|
* DataExtensions service.
|
|
15458
12663
|
* @module purecloud-platform-client-v2/api/DataExtensionsApi
|
|
15459
|
-
* @version
|
|
12664
|
+
* @version 255.1.0
|
|
15460
12665
|
*//**
|
|
15461
12666
|
* Constructs a new DataExtensionsApi.
|
|
15462
12667
|
* @alias module:purecloud-platform-client-v2/api/DataExtensionsApi
|
|
@@ -15483,7 +12688,7 @@ if(coretypeName===undefined||coretypeName===null||coretypeName===''){throw'Missi
|
|
|
15483
12688
|
*/},{key:"getDataextensionsLimits",value:function getDataextensionsLimits(opts){opts=opts||{};return this.apiClient.callApi('/api/v2/dataextensions/limits','GET',{},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json'],opts['customHeaders']);}}]);}();var DataPrivacyApi=/*#__PURE__*/function(){/**
|
|
15484
12689
|
* DataPrivacy service.
|
|
15485
12690
|
* @module purecloud-platform-client-v2/api/DataPrivacyApi
|
|
15486
|
-
* @version
|
|
12691
|
+
* @version 255.1.0
|
|
15487
12692
|
*//**
|
|
15488
12693
|
* Constructs a new DataPrivacyApi.
|
|
15489
12694
|
* @alias module:purecloud-platform-client-v2/api/DataPrivacyApi
|
|
@@ -15534,7 +12739,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
15534
12739
|
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'],opts['customHeaders']);}}]);}();var DownloadsApi=/*#__PURE__*/function(){/**
|
|
15535
12740
|
* Downloads service.
|
|
15536
12741
|
* @module purecloud-platform-client-v2/api/DownloadsApi
|
|
15537
|
-
* @version
|
|
12742
|
+
* @version 255.1.0
|
|
15538
12743
|
*//**
|
|
15539
12744
|
* Constructs a new DownloadsApi.
|
|
15540
12745
|
* @alias module:purecloud-platform-client-v2/api/DownloadsApi
|
|
@@ -15554,7 +12759,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
15554
12759
|
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'],opts['customHeaders']);}}]);}();var EmailsApi=/*#__PURE__*/function(){/**
|
|
15555
12760
|
* Emails service.
|
|
15556
12761
|
* @module purecloud-platform-client-v2/api/EmailsApi
|
|
15557
|
-
* @version
|
|
12762
|
+
* @version 255.1.0
|
|
15558
12763
|
*//**
|
|
15559
12764
|
* Constructs a new EmailsApi.
|
|
15560
12765
|
* @alias module:purecloud-platform-client-v2/api/EmailsApi
|
|
@@ -15591,7 +12796,7 @@ if(downloadId===undefined||downloadId===null||downloadId===''){throw'Missing the
|
|
|
15591
12796
|
*/},{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'],opts['customHeaders']);}}]);}();var EmployeeEngagementApi=/*#__PURE__*/function(){/**
|
|
15592
12797
|
* EmployeeEngagement service.
|
|
15593
12798
|
* @module purecloud-platform-client-v2/api/EmployeeEngagementApi
|
|
15594
|
-
* @version
|
|
12799
|
+
* @version 255.1.0
|
|
15595
12800
|
*//**
|
|
15596
12801
|
* Constructs a new EmployeeEngagementApi.
|
|
15597
12802
|
* @alias module:purecloud-platform-client-v2/api/EmployeeEngagementApi
|
|
@@ -15649,7 +12854,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
15649
12854
|
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'],opts['customHeaders']);}}]);}();var EventsApi=/*#__PURE__*/function(){/**
|
|
15650
12855
|
* Events service.
|
|
15651
12856
|
* @module purecloud-platform-client-v2/api/EventsApi
|
|
15652
|
-
* @version
|
|
12857
|
+
* @version 255.1.0
|
|
15653
12858
|
*//**
|
|
15654
12859
|
* Constructs a new EventsApi.
|
|
15655
12860
|
* @alias module:purecloud-platform-client-v2/api/EventsApi
|
|
@@ -15688,7 +12893,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
15688
12893
|
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'],opts['customHeaders']);}}]);}();var ExternalContactsApi=/*#__PURE__*/function(){/**
|
|
15689
12894
|
* ExternalContacts service.
|
|
15690
12895
|
* @module purecloud-platform-client-v2/api/ExternalContactsApi
|
|
15691
|
-
* @version
|
|
12896
|
+
* @version 255.1.0
|
|
15692
12897
|
*//**
|
|
15693
12898
|
* Constructs a new ExternalContactsApi.
|
|
15694
12899
|
* @alias module:purecloud-platform-client-v2/api/ExternalContactsApi
|
|
@@ -15851,7 +13056,7 @@ if(contactId===undefined||contactId===null||contactId===''){throw'Missing the re
|
|
|
15851
13056
|
* @param {Object.<string, string>} opts.customHeaders Per-request HTTP headers
|
|
15852
13057
|
*/},{key:"getExternalcontactsContactsExport",value:function getExternalcontactsContactsExport(exportId,opts){opts=opts||{};// verify the required parameter 'exportId' is set
|
|
15853
13058
|
if(exportId===undefined||exportId===null||exportId===''){throw'Missing the required parameter "exportId" when calling getExternalcontactsContactsExport';}return this.apiClient.callApi('/api/v2/externalcontacts/contacts/exports/{exportId}','GET',{'exportId':exportId},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json'],opts['customHeaders']);}/**
|
|
15854
|
-
* List exports for organization
|
|
13059
|
+
* List contact exports for organization
|
|
15855
13060
|
*
|
|
15856
13061
|
* @param {Object} opts Optional parameters
|
|
15857
13062
|
* @param {Array.<String>} opts.divisionIds Division IDs of entities
|
|
@@ -16650,7 +13855,7 @@ if(relationshipId===undefined||relationshipId===null||relationshipId===''){throw
|
|
|
16650
13855
|
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'],opts['customHeaders']);}}]);}();var FaxApi=/*#__PURE__*/function(){/**
|
|
16651
13856
|
* Fax service.
|
|
16652
13857
|
* @module purecloud-platform-client-v2/api/FaxApi
|
|
16653
|
-
* @version
|
|
13858
|
+
* @version 255.1.0
|
|
16654
13859
|
*//**
|
|
16655
13860
|
* Constructs a new FaxApi.
|
|
16656
13861
|
* @alias module:purecloud-platform-client-v2/api/FaxApi
|
|
@@ -16713,7 +13918,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
16713
13918
|
*/},{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'],opts['customHeaders']);}}]);}();var FlowsApi=/*#__PURE__*/function(){/**
|
|
16714
13919
|
* Flows service.
|
|
16715
13920
|
* @module purecloud-platform-client-v2/api/FlowsApi
|
|
16716
|
-
* @version
|
|
13921
|
+
* @version 255.1.0
|
|
16717
13922
|
*//**
|
|
16718
13923
|
* Constructs a new FlowsApi.
|
|
16719
13924
|
* @alias module:purecloud-platform-client-v2/api/FlowsApi
|
|
@@ -16775,7 +13980,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
16775
13980
|
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'],opts['customHeaders']);}}]);}();var GamificationApi=/*#__PURE__*/function(){/**
|
|
16776
13981
|
* Gamification service.
|
|
16777
13982
|
* @module purecloud-platform-client-v2/api/GamificationApi
|
|
16778
|
-
* @version
|
|
13983
|
+
* @version 255.1.0
|
|
16779
13984
|
*//**
|
|
16780
13985
|
* Constructs a new GamificationApi.
|
|
16781
13986
|
* @alias module:purecloud-platform-client-v2/api/GamificationApi
|
|
@@ -17570,7 +14775,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
17570
14775
|
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'],opts['customHeaders']);}}]);}();var GeneralDataProtectionRegulationApi=/*#__PURE__*/function(){/**
|
|
17571
14776
|
* GeneralDataProtectionRegulation service.
|
|
17572
14777
|
* @module purecloud-platform-client-v2/api/GeneralDataProtectionRegulationApi
|
|
17573
|
-
* @version
|
|
14778
|
+
* @version 255.1.0
|
|
17574
14779
|
*//**
|
|
17575
14780
|
* Constructs a new GeneralDataProtectionRegulationApi.
|
|
17576
14781
|
* @alias module:purecloud-platform-client-v2/api/GeneralDataProtectionRegulationApi
|
|
@@ -17611,7 +14816,7 @@ if(searchValue===undefined||searchValue===null){throw'Missing the required param
|
|
|
17611
14816
|
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'],opts['customHeaders']);}}]);}();var GeolocationApi=/*#__PURE__*/function(){/**
|
|
17612
14817
|
* Geolocation service.
|
|
17613
14818
|
* @module purecloud-platform-client-v2/api/GeolocationApi
|
|
17614
|
-
* @version
|
|
14819
|
+
* @version 255.1.0
|
|
17615
14820
|
*//**
|
|
17616
14821
|
* Constructs a new GeolocationApi.
|
|
17617
14822
|
* @alias module:purecloud-platform-client-v2/api/GeolocationApi
|
|
@@ -17653,7 +14858,7 @@ if(clientId===undefined||clientId===null||clientId===''){throw'Missing the requi
|
|
|
17653
14858
|
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'],opts['customHeaders']);}}]);}();var GreetingsApi=/*#__PURE__*/function(){/**
|
|
17654
14859
|
* Greetings service.
|
|
17655
14860
|
* @module purecloud-platform-client-v2/api/GreetingsApi
|
|
17656
|
-
* @version
|
|
14861
|
+
* @version 255.1.0
|
|
17657
14862
|
*//**
|
|
17658
14863
|
* Constructs a new GreetingsApi.
|
|
17659
14864
|
* @alias module:purecloud-platform-client-v2/api/GreetingsApi
|
|
@@ -17812,7 +15017,7 @@ if(userId===undefined||userId===null||userId===''){throw'Missing the required pa
|
|
|
17812
15017
|
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'],opts['customHeaders']);}}]);}();var GroupsApi=/*#__PURE__*/function(){/**
|
|
17813
15018
|
* Groups service.
|
|
17814
15019
|
* @module purecloud-platform-client-v2/api/GroupsApi
|
|
17815
|
-
* @version
|
|
15020
|
+
* @version 255.1.0
|
|
17816
15021
|
*//**
|
|
17817
15022
|
* Constructs a new GroupsApi.
|
|
17818
15023
|
* @alias module:purecloud-platform-client-v2/api/GroupsApi
|
|
@@ -17975,7 +15180,7 @@ if(groupId===undefined||groupId===null||groupId===''){throw'Missing the required
|
|
|
17975
15180
|
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'],opts['customHeaders']);}}]);}();var IdentityProviderApi=/*#__PURE__*/function(){/**
|
|
17976
15181
|
* IdentityProvider service.
|
|
17977
15182
|
* @module purecloud-platform-client-v2/api/IdentityProviderApi
|
|
17978
|
-
* @version
|
|
15183
|
+
* @version 255.1.0
|
|
17979
15184
|
*//**
|
|
17980
15185
|
* Constructs a new IdentityProviderApi.
|
|
17981
15186
|
* @alias module:purecloud-platform-client-v2/api/IdentityProviderApi
|
|
@@ -18207,7 +15412,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
18207
15412
|
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'],opts['customHeaders']);}}]);}();var InfrastructureAsCodeApi=/*#__PURE__*/function(){/**
|
|
18208
15413
|
* InfrastructureAsCode service.
|
|
18209
15414
|
* @module purecloud-platform-client-v2/api/InfrastructureAsCodeApi
|
|
18210
|
-
* @version
|
|
15415
|
+
* @version 255.1.0
|
|
18211
15416
|
*//**
|
|
18212
15417
|
* Constructs a new InfrastructureAsCodeApi.
|
|
18213
15418
|
* @alias module:purecloud-platform-client-v2/api/InfrastructureAsCodeApi
|
|
@@ -18267,7 +15472,7 @@ if(jobId===undefined||jobId===null||jobId===''){throw'Missing the required param
|
|
|
18267
15472
|
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'],opts['customHeaders']);}}]);}();var IntegrationsApi=/*#__PURE__*/function(){/**
|
|
18268
15473
|
* Integrations service.
|
|
18269
15474
|
* @module purecloud-platform-client-v2/api/IntegrationsApi
|
|
18270
|
-
* @version
|
|
15475
|
+
* @version 255.1.0
|
|
18271
15476
|
*//**
|
|
18272
15477
|
* Constructs a new IntegrationsApi.
|
|
18273
15478
|
* @alias module:purecloud-platform-client-v2/api/IntegrationsApi
|
|
@@ -19097,7 +16302,7 @@ if(ucIntegrationId===undefined||ucIntegrationId===null||ucIntegrationId===''){th
|
|
|
19097
16302
|
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'],opts['customHeaders']);}}]);}();var IntentsApi=/*#__PURE__*/function(){/**
|
|
19098
16303
|
* Intents service.
|
|
19099
16304
|
* @module purecloud-platform-client-v2/api/IntentsApi
|
|
19100
|
-
* @version
|
|
16305
|
+
* @version 255.1.0
|
|
19101
16306
|
*//**
|
|
19102
16307
|
* Constructs a new IntentsApi.
|
|
19103
16308
|
* @alias module:purecloud-platform-client-v2/api/IntentsApi
|
|
@@ -19241,7 +16446,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
19241
16446
|
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'],opts['customHeaders']);}}]);}();var JourneyApi=/*#__PURE__*/function(){/**
|
|
19242
16447
|
* Journey service.
|
|
19243
16448
|
* @module purecloud-platform-client-v2/api/JourneyApi
|
|
19244
|
-
* @version
|
|
16449
|
+
* @version 255.1.0
|
|
19245
16450
|
*//**
|
|
19246
16451
|
* Constructs a new JourneyApi.
|
|
19247
16452
|
* @alias module:purecloud-platform-client-v2/api/JourneyApi
|
|
@@ -20021,7 +17226,7 @@ if(eventDefinitionId===undefined||eventDefinitionId===null||eventDefinitionId===
|
|
|
20021
17226
|
if(eventDefinitionId===undefined||eventDefinitionId===null||eventDefinitionId===''){throw'Missing the required parameter "eventDefinitionId" when calling putJourneyViewsEventdefinitionActivate';}return this.apiClient.callApi('/api/v2/journey/views/eventdefinitions/{eventDefinitionId}/activate','PUT',{'eventDefinitionId':eventDefinitionId},{},{},{},opts['body'],['PureCloud OAuth'],['application/json'],['application/json'],opts['customHeaders']);}}]);}();var KnowledgeApi=/*#__PURE__*/function(){/**
|
|
20022
17227
|
* Knowledge service.
|
|
20023
17228
|
* @module purecloud-platform-client-v2/api/KnowledgeApi
|
|
20024
|
-
* @version
|
|
17229
|
+
* @version 255.1.0
|
|
20025
17230
|
*//**
|
|
20026
17231
|
* Constructs a new KnowledgeApi.
|
|
20027
17232
|
* @alias module:purecloud-platform-client-v2/api/KnowledgeApi
|
|
@@ -21216,7 +18421,7 @@ if(sourceId===undefined||sourceId===null||sourceId===''){throw'Missing the requi
|
|
|
21216
18421
|
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling putKnowledgeSource';}return this.apiClient.callApi('/api/v2/knowledge/sources/{sourceId}','PUT',{'sourceId':sourceId},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json'],opts['customHeaders']);}}]);}();var LanguageUnderstandingApi=/*#__PURE__*/function(){/**
|
|
21217
18422
|
* LanguageUnderstanding service.
|
|
21218
18423
|
* @module purecloud-platform-client-v2/api/LanguageUnderstandingApi
|
|
21219
|
-
* @version
|
|
18424
|
+
* @version 255.1.0
|
|
21220
18425
|
*//**
|
|
21221
18426
|
* Constructs a new LanguageUnderstandingApi.
|
|
21222
18427
|
* @alias module:purecloud-platform-client-v2/api/LanguageUnderstandingApi
|
|
@@ -21590,7 +18795,7 @@ if(domainVersionId===undefined||domainVersionId===null||domainVersionId===''){th
|
|
|
21590
18795
|
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'],opts['customHeaders']);}}]);}();var LanguagesApi=/*#__PURE__*/function(){/**
|
|
21591
18796
|
* Languages service.
|
|
21592
18797
|
* @module purecloud-platform-client-v2/api/LanguagesApi
|
|
21593
|
-
* @version
|
|
18798
|
+
* @version 255.1.0
|
|
21594
18799
|
*//**
|
|
21595
18800
|
* Constructs a new LanguagesApi.
|
|
21596
18801
|
* @alias module:purecloud-platform-client-v2/api/LanguagesApi
|
|
@@ -21660,7 +18865,7 @@ if(userId===undefined||userId===null||userId===''){throw'Missing the required pa
|
|
|
21660
18865
|
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'],opts['customHeaders']);}}]);}();var LearningApi=/*#__PURE__*/function(){/**
|
|
21661
18866
|
* Learning service.
|
|
21662
18867
|
* @module purecloud-platform-client-v2/api/LearningApi
|
|
21663
|
-
* @version
|
|
18868
|
+
* @version 255.1.0
|
|
21664
18869
|
*//**
|
|
21665
18870
|
* Constructs a new LearningApi.
|
|
21666
18871
|
* @alias module:purecloud-platform-client-v2/api/LearningApi
|
|
@@ -22008,7 +19213,7 @@ if(moduleId===undefined||moduleId===null||moduleId===''){throw'Missing the requi
|
|
|
22008
19213
|
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'],opts['customHeaders']);}}]);}();var LicenseApi=/*#__PURE__*/function(){/**
|
|
22009
19214
|
* License service.
|
|
22010
19215
|
* @module purecloud-platform-client-v2/api/LicenseApi
|
|
22011
|
-
* @version
|
|
19216
|
+
* @version 255.1.0
|
|
22012
19217
|
*//**
|
|
22013
19218
|
* Constructs a new LicenseApi.
|
|
22014
19219
|
* @alias module:purecloud-platform-client-v2/api/LicenseApi
|
|
@@ -22083,7 +19288,7 @@ if(featureName===undefined||featureName===null||featureName===''){throw'Missing
|
|
|
22083
19288
|
*/},{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'],opts['customHeaders']);}}]);}();var LocationsApi=/*#__PURE__*/function(){/**
|
|
22084
19289
|
* Locations service.
|
|
22085
19290
|
* @module purecloud-platform-client-v2/api/LocationsApi
|
|
22086
|
-
* @version
|
|
19291
|
+
* @version 255.1.0
|
|
22087
19292
|
*//**
|
|
22088
19293
|
* Constructs a new LocationsApi.
|
|
22089
19294
|
* @alias module:purecloud-platform-client-v2/api/LocationsApi
|
|
@@ -22155,7 +19360,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
22155
19360
|
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'],opts['customHeaders']);}}]);}();var LogCaptureApi=/*#__PURE__*/function(){/**
|
|
22156
19361
|
* LogCapture service.
|
|
22157
19362
|
* @module purecloud-platform-client-v2/api/LogCaptureApi
|
|
22158
|
-
* @version
|
|
19363
|
+
* @version 255.1.0
|
|
22159
19364
|
*//**
|
|
22160
19365
|
* Constructs a new LogCaptureApi.
|
|
22161
19366
|
* @alias module:purecloud-platform-client-v2/api/LogCaptureApi
|
|
@@ -22214,7 +19419,7 @@ if(userId===undefined||userId===null||userId===''){throw'Missing the required pa
|
|
|
22214
19419
|
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'],opts['customHeaders']);}}]);}();var MessagingApi=/*#__PURE__*/function(){/**
|
|
22215
19420
|
* Messaging service.
|
|
22216
19421
|
* @module purecloud-platform-client-v2/api/MessagingApi
|
|
22217
|
-
* @version
|
|
19422
|
+
* @version 255.1.0
|
|
22218
19423
|
*//**
|
|
22219
19424
|
* Constructs a new MessagingApi.
|
|
22220
19425
|
* @alias module:purecloud-platform-client-v2/api/MessagingApi
|
|
@@ -22328,7 +19533,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
22328
19533
|
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'],opts['customHeaders']);}}]);}();var MobileDevicesApi=/*#__PURE__*/function(){/**
|
|
22329
19534
|
* MobileDevices service.
|
|
22330
19535
|
* @module purecloud-platform-client-v2/api/MobileDevicesApi
|
|
22331
|
-
* @version
|
|
19536
|
+
* @version 255.1.0
|
|
22332
19537
|
*//**
|
|
22333
19538
|
* Constructs a new MobileDevicesApi.
|
|
22334
19539
|
* @alias module:purecloud-platform-client-v2/api/MobileDevicesApi
|
|
@@ -22375,7 +19580,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
22375
19580
|
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'],opts['customHeaders']);}}]);}();var NotificationsApi=/*#__PURE__*/function(){/**
|
|
22376
19581
|
* Notifications service.
|
|
22377
19582
|
* @module purecloud-platform-client-v2/api/NotificationsApi
|
|
22378
|
-
* @version
|
|
19583
|
+
* @version 255.1.0
|
|
22379
19584
|
*//**
|
|
22380
19585
|
* Constructs a new NotificationsApi.
|
|
22381
19586
|
* @alias module:purecloud-platform-client-v2/api/NotificationsApi
|
|
@@ -22444,7 +19649,7 @@ if(channelId===undefined||channelId===null||channelId===''){throw'Missing the re
|
|
|
22444
19649
|
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'],opts['customHeaders']);}}]);}();var OAuthApi=/*#__PURE__*/function(){/**
|
|
22445
19650
|
* OAuth service.
|
|
22446
19651
|
* @module purecloud-platform-client-v2/api/OAuthApi
|
|
22447
|
-
* @version
|
|
19652
|
+
* @version 255.1.0
|
|
22448
19653
|
*//**
|
|
22449
19654
|
* Constructs a new OAuthApi.
|
|
22450
19655
|
* @alias module:purecloud-platform-client-v2/api/OAuthApi
|
|
@@ -22550,7 +19755,7 @@ if(clientId===undefined||clientId===null||clientId===''){throw'Missing the requi
|
|
|
22550
19755
|
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'],opts['customHeaders']);}}]);}();var ObjectsApi=/*#__PURE__*/function(){/**
|
|
22551
19756
|
* Objects service.
|
|
22552
19757
|
* @module purecloud-platform-client-v2/api/ObjectsApi
|
|
22553
|
-
* @version
|
|
19758
|
+
* @version 255.1.0
|
|
22554
19759
|
*//**
|
|
22555
19760
|
* Constructs a new ObjectsApi.
|
|
22556
19761
|
* @alias module:purecloud-platform-client-v2/api/ObjectsApi
|
|
@@ -22653,7 +19858,7 @@ if(divisionId===undefined||divisionId===null||divisionId===''){throw'Missing the
|
|
|
22653
19858
|
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'],opts['customHeaders']);}}]);}();var OperationalEventsApi=/*#__PURE__*/function(){/**
|
|
22654
19859
|
* OperationalEvents service.
|
|
22655
19860
|
* @module purecloud-platform-client-v2/api/OperationalEventsApi
|
|
22656
|
-
* @version
|
|
19861
|
+
* @version 255.1.0
|
|
22657
19862
|
*//**
|
|
22658
19863
|
* Constructs a new OperationalEventsApi.
|
|
22659
19864
|
* @alias module:purecloud-platform-client-v2/api/OperationalEventsApi
|
|
@@ -22690,7 +19895,7 @@ if(eventDefinitionId===undefined||eventDefinitionId===null||eventDefinitionId===
|
|
|
22690
19895
|
*/},{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'],opts['customHeaders']);}}]);}();var OrganizationApi=/*#__PURE__*/function(){/**
|
|
22691
19896
|
* Organization service.
|
|
22692
19897
|
* @module purecloud-platform-client-v2/api/OrganizationApi
|
|
22693
|
-
* @version
|
|
19898
|
+
* @version 255.1.0
|
|
22694
19899
|
*//**
|
|
22695
19900
|
* Constructs a new OrganizationApi.
|
|
22696
19901
|
* @alias module:purecloud-platform-client-v2/api/OrganizationApi
|
|
@@ -22830,7 +20035,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
22830
20035
|
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'],opts['customHeaders']);}}]);}();var OrganizationAuthorizationApi=/*#__PURE__*/function(){/**
|
|
22831
20036
|
* OrganizationAuthorization service.
|
|
22832
20037
|
* @module purecloud-platform-client-v2/api/OrganizationAuthorizationApi
|
|
22833
|
-
* @version
|
|
20038
|
+
* @version 255.1.0
|
|
22834
20039
|
*//**
|
|
22835
20040
|
* Constructs a new OrganizationAuthorizationApi.
|
|
22836
20041
|
* @alias module:purecloud-platform-client-v2/api/OrganizationAuthorizationApi
|
|
@@ -23250,7 +20455,7 @@ if(trustorOrgId===undefined||trustorOrgId===null||trustorOrgId===''){throw'Missi
|
|
|
23250
20455
|
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'],opts['customHeaders']);}}]);}();var OutboundApi=/*#__PURE__*/function(){/**
|
|
23251
20456
|
* Outbound service.
|
|
23252
20457
|
* @module purecloud-platform-client-v2/api/OutboundApi
|
|
23253
|
-
* @version
|
|
20458
|
+
* @version 255.1.0
|
|
23254
20459
|
*//**
|
|
23255
20460
|
* Constructs a new OutboundApi.
|
|
23256
20461
|
* @alias module:purecloud-platform-client-v2/api/OutboundApi
|
|
@@ -24736,7 +21941,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
24736
21941
|
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'],opts['customHeaders']);}}]);}();var PresenceApi=/*#__PURE__*/function(){/**
|
|
24737
21942
|
* Presence service.
|
|
24738
21943
|
* @module purecloud-platform-client-v2/api/PresenceApi
|
|
24739
|
-
* @version
|
|
21944
|
+
* @version 255.1.0
|
|
24740
21945
|
*//**
|
|
24741
21946
|
* Constructs a new PresenceApi.
|
|
24742
21947
|
* @alias module:purecloud-platform-client-v2/api/PresenceApi
|
|
@@ -24956,7 +22161,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
24956
22161
|
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'],opts['customHeaders']);}}]);}();var ProcessAutomationApi=/*#__PURE__*/function(){/**
|
|
24957
22162
|
* ProcessAutomation service.
|
|
24958
22163
|
* @module purecloud-platform-client-v2/api/ProcessAutomationApi
|
|
24959
|
-
* @version
|
|
22164
|
+
* @version 255.1.0
|
|
24960
22165
|
*//**
|
|
24961
22166
|
* Constructs a new ProcessAutomationApi.
|
|
24962
22167
|
* @alias module:purecloud-platform-client-v2/api/ProcessAutomationApi
|
|
@@ -25070,7 +22275,7 @@ if(triggerId===undefined||triggerId===null||triggerId===''){throw'Missing the re
|
|
|
25070
22275
|
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'],opts['customHeaders']);}}]);}();var QualityApi=/*#__PURE__*/function(){/**
|
|
25071
22276
|
* Quality service.
|
|
25072
22277
|
* @module purecloud-platform-client-v2/api/QualityApi
|
|
25073
|
-
* @version
|
|
22278
|
+
* @version 255.1.0
|
|
25074
22279
|
*//**
|
|
25075
22280
|
* Constructs a new QualityApi.
|
|
25076
22281
|
* @alias module:purecloud-platform-client-v2/api/QualityApi
|
|
@@ -25726,7 +22931,7 @@ if(customerSurveyUrl===undefined||customerSurveyUrl===null){throw'Missing the re
|
|
|
25726
22931
|
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'],opts['customHeaders']);}}]);}();var RecordingApi=/*#__PURE__*/function(){/**
|
|
25727
22932
|
* Recording service.
|
|
25728
22933
|
* @module purecloud-platform-client-v2/api/RecordingApi
|
|
25729
|
-
* @version
|
|
22934
|
+
* @version 255.1.0
|
|
25730
22935
|
*//**
|
|
25731
22936
|
* Constructs a new RecordingApi.
|
|
25732
22937
|
* @alias module:purecloud-platform-client-v2/api/RecordingApi
|
|
@@ -26225,7 +23430,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
26225
23430
|
*/},{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'],opts['customHeaders']);}}]);}();var ResponseManagementApi=/*#__PURE__*/function(){/**
|
|
26226
23431
|
* ResponseManagement service.
|
|
26227
23432
|
* @module purecloud-platform-client-v2/api/ResponseManagementApi
|
|
26228
|
-
* @version
|
|
23433
|
+
* @version 255.1.0
|
|
26229
23434
|
*//**
|
|
26230
23435
|
* Constructs a new ResponseManagementApi.
|
|
26231
23436
|
* @alias module:purecloud-platform-client-v2/api/ResponseManagementApi
|
|
@@ -26392,7 +23597,7 @@ if(responseAssetId===undefined||responseAssetId===null||responseAssetId===''){th
|
|
|
26392
23597
|
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'],opts['customHeaders']);}}]);}();var RoutingApi=/*#__PURE__*/function(){/**
|
|
26393
23598
|
* Routing service.
|
|
26394
23599
|
* @module purecloud-platform-client-v2/api/RoutingApi
|
|
26395
|
-
* @version
|
|
23600
|
+
* @version 255.1.0
|
|
26396
23601
|
*//**
|
|
26397
23602
|
* Constructs a new RoutingApi.
|
|
26398
23603
|
* @alias module:purecloud-platform-client-v2/api/RoutingApi
|
|
@@ -27861,7 +25066,7 @@ if(userId===undefined||userId===null||userId===''){throw'Missing the required pa
|
|
|
27861
25066
|
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'],opts['customHeaders']);}}]);}();var SCIMApi=/*#__PURE__*/function(){/**
|
|
27862
25067
|
* SCIM service.
|
|
27863
25068
|
* @module purecloud-platform-client-v2/api/SCIMApi
|
|
27864
|
-
* @version
|
|
25069
|
+
* @version 255.1.0
|
|
27865
25070
|
*//**
|
|
27866
25071
|
* Constructs a new SCIMApi.
|
|
27867
25072
|
* @alias module:purecloud-platform-client-v2/api/SCIMApi
|
|
@@ -28124,7 +25329,7 @@ if(userId===undefined||userId===null||userId===''){throw'Missing the required pa
|
|
|
28124
25329
|
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'],opts['customHeaders']);}}]);}();var ScriptsApi=/*#__PURE__*/function(){/**
|
|
28125
25330
|
* Scripts service.
|
|
28126
25331
|
* @module purecloud-platform-client-v2/api/ScriptsApi
|
|
28127
|
-
* @version
|
|
25332
|
+
* @version 255.1.0
|
|
28128
25333
|
*//**
|
|
28129
25334
|
* Constructs a new ScriptsApi.
|
|
28130
25335
|
* @alias module:purecloud-platform-client-v2/api/ScriptsApi
|
|
@@ -28286,7 +25491,7 @@ if(scriptId===undefined||scriptId===null||scriptId===''){throw'Missing the requi
|
|
|
28286
25491
|
*/},{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'],opts['customHeaders']);}}]);}();var SearchApi=/*#__PURE__*/function(){/**
|
|
28287
25492
|
* Search service.
|
|
28288
25493
|
* @module purecloud-platform-client-v2/api/SearchApi
|
|
28289
|
-
* @version
|
|
25494
|
+
* @version 255.1.0
|
|
28290
25495
|
*//**
|
|
28291
25496
|
* Constructs a new SearchApi.
|
|
28292
25497
|
* @alias module:purecloud-platform-client-v2/api/SearchApi
|
|
@@ -28493,7 +25698,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
28493
25698
|
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'],opts['customHeaders']);}}]);}();var SettingsApi=/*#__PURE__*/function(){/**
|
|
28494
25699
|
* Settings service.
|
|
28495
25700
|
* @module purecloud-platform-client-v2/api/SettingsApi
|
|
28496
|
-
* @version
|
|
25701
|
+
* @version 255.1.0
|
|
28497
25702
|
*//**
|
|
28498
25703
|
* Constructs a new SettingsApi.
|
|
28499
25704
|
* @alias module:purecloud-platform-client-v2/api/SettingsApi
|
|
@@ -28590,7 +25795,7 @@ if(agentId===undefined||agentId===null||agentId===''){throw'Missing the required
|
|
|
28590
25795
|
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'],opts['customHeaders']);}}]);}();var SocialMediaApi=/*#__PURE__*/function(){/**
|
|
28591
25796
|
* SocialMedia service.
|
|
28592
25797
|
* @module purecloud-platform-client-v2/api/SocialMediaApi
|
|
28593
|
-
* @version
|
|
25798
|
+
* @version 255.1.0
|
|
28594
25799
|
*//**
|
|
28595
25800
|
* Constructs a new SocialMediaApi.
|
|
28596
25801
|
* @alias module:purecloud-platform-client-v2/api/SocialMediaApi
|
|
@@ -29145,7 +26350,7 @@ if(topicId===undefined||topicId===null||topicId===''){throw'Missing the required
|
|
|
29145
26350
|
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'],opts['customHeaders']);}}]);}();var SpeechTextAnalyticsApi=/*#__PURE__*/function(){/**
|
|
29146
26351
|
* SpeechTextAnalytics service.
|
|
29147
26352
|
* @module purecloud-platform-client-v2/api/SpeechTextAnalyticsApi
|
|
29148
|
-
* @version
|
|
26353
|
+
* @version 255.1.0
|
|
29149
26354
|
*//**
|
|
29150
26355
|
* Constructs a new SpeechTextAnalyticsApi.
|
|
29151
26356
|
* @alias module:purecloud-platform-client-v2/api/SpeechTextAnalyticsApi
|
|
@@ -29274,7 +26479,7 @@ if(conversationId===undefined||conversationId===null||conversationId===''){throw
|
|
|
29274
26479
|
* @param {String} opts.dialect The key for filter the listing by dialect, dialect format is {language}-{country} where language follows ISO 639-1 standard and country follows ISO 3166-1 alpha 2 standard
|
|
29275
26480
|
* @param {Object} opts.transcriptionEngine Filter by transcription engine, If not provided, all transcription engines will be considered
|
|
29276
26481
|
* @param {String} opts.nextPage The key for listing the next page
|
|
29277
|
-
* @param {Number} opts.pageSize The page size for the listing (default to 500)
|
|
26482
|
+
* @param {Number} opts.pageSize The page size for the listing. Default is 500 per page. Note: organizations may store up to 1000 dictionary terms per dialect; use nextPage to paginate beyond the first page when listing a full dialect vocabulary. (default to 500)
|
|
29278
26483
|
* @param {Object.<string, string>} opts.customHeaders Per-request HTTP headers
|
|
29279
26484
|
*/},{key:"getSpeechandtextanalyticsDictionaryfeedback",value:function getSpeechandtextanalyticsDictionaryfeedback(opts){opts=opts||{};return this.apiClient.callApi('/api/v2/speechandtextanalytics/dictionaryfeedback','GET',{},{'dialect':opts['dialect'],'transcriptionEngine':opts['transcriptionEngine'],'nextPage':opts['nextPage'],'pageSize':opts['pageSize']},{},{},null,['PureCloud OAuth'],['application/json'],['application/json'],opts['customHeaders']);}/**
|
|
29280
26485
|
* Get a Speech and Text Analytics dictionary feedback by id
|
|
@@ -29638,7 +26843,7 @@ if(topicId===undefined||topicId===null||topicId===''){throw'Missing the required
|
|
|
29638
26843
|
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'],opts['customHeaders']);}}]);}();var StationsApi=/*#__PURE__*/function(){/**
|
|
29639
26844
|
* Stations service.
|
|
29640
26845
|
* @module purecloud-platform-client-v2/api/StationsApi
|
|
29641
|
-
* @version
|
|
26846
|
+
* @version 255.1.0
|
|
29642
26847
|
*//**
|
|
29643
26848
|
* Constructs a new StationsApi.
|
|
29644
26849
|
* @alias module:purecloud-platform-client-v2/api/StationsApi
|
|
@@ -29675,7 +26880,7 @@ if(stationId===undefined||stationId===null||stationId===''){throw'Missing the re
|
|
|
29675
26880
|
*/},{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'],opts['customHeaders']);}}]);}();var SuggestApi=/*#__PURE__*/function(){/**
|
|
29676
26881
|
* Suggest service.
|
|
29677
26882
|
* @module purecloud-platform-client-v2/api/SuggestApi
|
|
29678
|
-
* @version
|
|
26883
|
+
* @version 255.1.0
|
|
29679
26884
|
*//**
|
|
29680
26885
|
* Constructs a new SuggestApi.
|
|
29681
26886
|
* @alias module:purecloud-platform-client-v2/api/SuggestApi
|
|
@@ -29719,7 +26924,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
29719
26924
|
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'],opts['customHeaders']);}}]);}();var TaskManagementApi=/*#__PURE__*/function(){/**
|
|
29720
26925
|
* TaskManagement service.
|
|
29721
26926
|
* @module purecloud-platform-client-v2/api/TaskManagementApi
|
|
29722
|
-
* @version
|
|
26927
|
+
* @version 255.1.0
|
|
29723
26928
|
*//**
|
|
29724
26929
|
* Constructs a new TaskManagementApi.
|
|
29725
26930
|
* @alias module:purecloud-platform-client-v2/api/TaskManagementApi
|
|
@@ -30363,7 +27568,7 @@ if(schemaId===undefined||schemaId===null||schemaId===''){throw'Missing the requi
|
|
|
30363
27568
|
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'],opts['customHeaders']);}}]);}();var TeamsApi=/*#__PURE__*/function(){/**
|
|
30364
27569
|
* Teams service.
|
|
30365
27570
|
* @module purecloud-platform-client-v2/api/TeamsApi
|
|
30366
|
-
* @version
|
|
27571
|
+
* @version 255.1.0
|
|
30367
27572
|
*//**
|
|
30368
27573
|
* Constructs a new TeamsApi.
|
|
30369
27574
|
* @alias module:purecloud-platform-client-v2/api/TeamsApi
|
|
@@ -30459,7 +27664,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
30459
27664
|
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'],opts['customHeaders']);}}]);}();var TelephonyApi=/*#__PURE__*/function(){/**
|
|
30460
27665
|
* Telephony service.
|
|
30461
27666
|
* @module purecloud-platform-client-v2/api/TelephonyApi
|
|
30462
|
-
* @version
|
|
27667
|
+
* @version 255.1.0
|
|
30463
27668
|
*//**
|
|
30464
27669
|
* Constructs a new TelephonyApi.
|
|
30465
27670
|
* @alias module:purecloud-platform-client-v2/api/TelephonyApi
|
|
@@ -30628,7 +27833,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
30628
27833
|
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling putTelephonySettings';}return this.apiClient.callApi('/api/v2/telephony/settings','PUT',{},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json'],opts['customHeaders']);}}]);}();var TelephonyProvidersEdgeApi=/*#__PURE__*/function(){/**
|
|
30629
27834
|
* TelephonyProvidersEdge service.
|
|
30630
27835
|
* @module purecloud-platform-client-v2/api/TelephonyProvidersEdgeApi
|
|
30631
|
-
* @version
|
|
27836
|
+
* @version 255.1.0
|
|
30632
27837
|
*//**
|
|
30633
27838
|
* Constructs a new TelephonyProvidersEdgeApi.
|
|
30634
27839
|
* @alias module:purecloud-platform-client-v2/api/TelephonyProvidersEdgeApi
|
|
@@ -31681,7 +28886,7 @@ if(trunkBaseSettingsId===undefined||trunkBaseSettingsId===null||trunkBaseSetting
|
|
|
31681
28886
|
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'],opts['customHeaders']);}}]);}();var TextbotsApi=/*#__PURE__*/function(){/**
|
|
31682
28887
|
* Textbots service.
|
|
31683
28888
|
* @module purecloud-platform-client-v2/api/TextbotsApi
|
|
31684
|
-
* @version
|
|
28889
|
+
* @version 255.1.0
|
|
31685
28890
|
*//**
|
|
31686
28891
|
* Constructs a new TextbotsApi.
|
|
31687
28892
|
* @alias module:purecloud-platform-client-v2/api/TextbotsApi
|
|
@@ -31724,7 +28929,7 @@ if(launchRequest===undefined||launchRequest===null){throw'Missing the required p
|
|
|
31724
28929
|
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'],opts['customHeaders']);}}]);}();var TokensApi=/*#__PURE__*/function(){/**
|
|
31725
28930
|
* Tokens service.
|
|
31726
28931
|
* @module purecloud-platform-client-v2/api/TokensApi
|
|
31727
|
-
* @version
|
|
28932
|
+
* @version 255.1.0
|
|
31728
28933
|
*//**
|
|
31729
28934
|
* Constructs a new TokensApi.
|
|
31730
28935
|
* @alias module:purecloud-platform-client-v2/api/TokensApi
|
|
@@ -31768,7 +28973,7 @@ if(userId===undefined||userId===null||userId===''){throw'Missing the required pa
|
|
|
31768
28973
|
*/},{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'],opts['customHeaders']);}}]);}();var UploadsApi=/*#__PURE__*/function(){/**
|
|
31769
28974
|
* Uploads service.
|
|
31770
28975
|
* @module purecloud-platform-client-v2/api/UploadsApi
|
|
31771
|
-
* @version
|
|
28976
|
+
* @version 255.1.0
|
|
31772
28977
|
*//**
|
|
31773
28978
|
* Constructs a new UploadsApi.
|
|
31774
28979
|
* @alias module:purecloud-platform-client-v2/api/UploadsApi
|
|
@@ -31863,7 +29068,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
31863
29068
|
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'],opts['customHeaders']);}}]);}();var UsageApi=/*#__PURE__*/function(){/**
|
|
31864
29069
|
* Usage service.
|
|
31865
29070
|
* @module purecloud-platform-client-v2/api/UsageApi
|
|
31866
|
-
* @version
|
|
29071
|
+
* @version 255.1.0
|
|
31867
29072
|
*//**
|
|
31868
29073
|
* Constructs a new UsageApi.
|
|
31869
29074
|
* @alias module:purecloud-platform-client-v2/api/UsageApi
|
|
@@ -31965,7 +29170,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
31965
29170
|
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'],opts['customHeaders']);}}]);}();var UserRecordingsApi=/*#__PURE__*/function(){/**
|
|
31966
29171
|
* UserRecordings service.
|
|
31967
29172
|
* @module purecloud-platform-client-v2/api/UserRecordingsApi
|
|
31968
|
-
* @version
|
|
29173
|
+
* @version 255.1.0
|
|
31969
29174
|
*//**
|
|
31970
29175
|
* Constructs a new UserRecordingsApi.
|
|
31971
29176
|
* @alias module:purecloud-platform-client-v2/api/UserRecordingsApi
|
|
@@ -32021,7 +29226,7 @@ if(recordingId===undefined||recordingId===null||recordingId===''){throw'Missing
|
|
|
32021
29226
|
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'],opts['customHeaders']);}}]);}();var UsersApi=/*#__PURE__*/function(){/**
|
|
32022
29227
|
* Users service.
|
|
32023
29228
|
* @module purecloud-platform-client-v2/api/UsersApi
|
|
32024
|
-
* @version
|
|
29229
|
+
* @version 255.1.0
|
|
32025
29230
|
*//**
|
|
32026
29231
|
* Constructs a new UsersApi.
|
|
32027
29232
|
* @alias module:purecloud-platform-client-v2/api/UsersApi
|
|
@@ -33079,7 +30284,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
33079
30284
|
if(stationId===undefined||stationId===null||stationId===''){throw'Missing the required parameter "stationId" when calling putUsersStationsMeAssociatedstationStationId';}return this.apiClient.callApi('/api/v2/users/stations/me/associatedstation/{stationId}','PUT',{'stationId':stationId},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json'],opts['customHeaders']);}}]);}();var UsersRulesApi=/*#__PURE__*/function(){/**
|
|
33080
30285
|
* UsersRules service.
|
|
33081
30286
|
* @module purecloud-platform-client-v2/api/UsersRulesApi
|
|
33082
|
-
* @version
|
|
30287
|
+
* @version 255.1.0
|
|
33083
30288
|
*//**
|
|
33084
30289
|
* Constructs a new UsersRulesApi.
|
|
33085
30290
|
* @alias module:purecloud-platform-client-v2/api/UsersRulesApi
|
|
@@ -33169,7 +30374,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
33169
30374
|
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'],opts['customHeaders']);}}]);}();var UtilitiesApi=/*#__PURE__*/function(){/**
|
|
33170
30375
|
* Utilities service.
|
|
33171
30376
|
* @module purecloud-platform-client-v2/api/UtilitiesApi
|
|
33172
|
-
* @version
|
|
30377
|
+
* @version 255.1.0
|
|
33173
30378
|
*//**
|
|
33174
30379
|
* Constructs a new UtilitiesApi.
|
|
33175
30380
|
* @alias module:purecloud-platform-client-v2/api/UtilitiesApi
|
|
@@ -33203,7 +30408,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
33203
30408
|
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'],opts['customHeaders']);}}]);}();var VoicemailApi=/*#__PURE__*/function(){/**
|
|
33204
30409
|
* Voicemail service.
|
|
33205
30410
|
* @module purecloud-platform-client-v2/api/VoicemailApi
|
|
33206
|
-
* @version
|
|
30411
|
+
* @version 255.1.0
|
|
33207
30412
|
*//**
|
|
33208
30413
|
* Constructs a new VoicemailApi.
|
|
33209
30414
|
* @alias module:purecloud-platform-client-v2/api/VoicemailApi
|
|
@@ -33410,7 +30615,7 @@ if(userId===undefined||userId===null||userId===''){throw'Missing the required pa
|
|
|
33410
30615
|
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'],opts['customHeaders']);}}]);}();var WebChatApi=/*#__PURE__*/function(){/**
|
|
33411
30616
|
* WebChat service.
|
|
33412
30617
|
* @module purecloud-platform-client-v2/api/WebChatApi
|
|
33413
|
-
* @version
|
|
30618
|
+
* @version 255.1.0
|
|
33414
30619
|
*//**
|
|
33415
30620
|
* Constructs a new WebChatApi.
|
|
33416
30621
|
* @alias module:purecloud-platform-client-v2/api/WebChatApi
|
|
@@ -33593,7 +30798,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
33593
30798
|
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'],opts['customHeaders']);}}]);}();var WebDeploymentsApi=/*#__PURE__*/function(){/**
|
|
33594
30799
|
* WebDeployments service.
|
|
33595
30800
|
* @module purecloud-platform-client-v2/api/WebDeploymentsApi
|
|
33596
|
-
* @version
|
|
30801
|
+
* @version 255.1.0
|
|
33597
30802
|
*//**
|
|
33598
30803
|
* Constructs a new WebDeploymentsApi.
|
|
33599
30804
|
* @alias module:purecloud-platform-client-v2/api/WebDeploymentsApi
|
|
@@ -33771,7 +30976,7 @@ if(deploymentId===undefined||deploymentId===null||deploymentId===''){throw'Missi
|
|
|
33771
30976
|
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'],opts['customHeaders']);}}]);}();var WebMessagingApi=/*#__PURE__*/function(){/**
|
|
33772
30977
|
* WebMessaging service.
|
|
33773
30978
|
* @module purecloud-platform-client-v2/api/WebMessagingApi
|
|
33774
|
-
* @version
|
|
30979
|
+
* @version 255.1.0
|
|
33775
30980
|
*//**
|
|
33776
30981
|
* Constructs a new WebMessagingApi.
|
|
33777
30982
|
* @alias module:purecloud-platform-client-v2/api/WebMessagingApi
|
|
@@ -33819,7 +31024,7 @@ if(tokenId===undefined||tokenId===null||tokenId===''){throw'Missing the required
|
|
|
33819
31024
|
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'],opts['customHeaders']);}}]);}();var WidgetsApi=/*#__PURE__*/function(){/**
|
|
33820
31025
|
* Widgets service.
|
|
33821
31026
|
* @module purecloud-platform-client-v2/api/WidgetsApi
|
|
33822
|
-
* @version
|
|
31027
|
+
* @version 255.1.0
|
|
33823
31028
|
*//**
|
|
33824
31029
|
* Constructs a new WidgetsApi.
|
|
33825
31030
|
* @alias module:purecloud-platform-client-v2/api/WidgetsApi
|
|
@@ -33869,7 +31074,7 @@ if(deploymentId===undefined||deploymentId===null||deploymentId===''){throw'Missi
|
|
|
33869
31074
|
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'],opts['customHeaders']);}}]);}();var WorkforceManagementApi=/*#__PURE__*/function(){/**
|
|
33870
31075
|
* WorkforceManagement service.
|
|
33871
31076
|
* @module purecloud-platform-client-v2/api/WorkforceManagementApi
|
|
33872
|
-
* @version
|
|
31077
|
+
* @version 255.1.0
|
|
33873
31078
|
*//**
|
|
33874
31079
|
* Constructs a new WorkforceManagementApi.
|
|
33875
31080
|
* @alias module:purecloud-platform-client-v2/api/WorkforceManagementApi
|
|
@@ -33912,6 +31117,26 @@ if(capacityPlanId===undefined||capacityPlanId===null||capacityPlanId===''){throw
|
|
|
33912
31117
|
*/},{key:"deleteWorkforcemanagementBusinessunitPlanninggroup",value:function deleteWorkforcemanagementBusinessunitPlanninggroup(businessUnitId,planningGroupId,opts){opts=opts||{};// verify the required parameter 'businessUnitId' is set
|
|
33913
31118
|
if(businessUnitId===undefined||businessUnitId===null||businessUnitId===''){throw'Missing the required parameter "businessUnitId" when calling deleteWorkforcemanagementBusinessunitPlanninggroup';}// verify the required parameter 'planningGroupId' is set
|
|
33914
31119
|
if(planningGroupId===undefined||planningGroupId===null||planningGroupId===''){throw'Missing the required parameter "planningGroupId" when calling deleteWorkforcemanagementBusinessunitPlanninggroup';}return this.apiClient.callApi('/api/v2/workforcemanagement/businessunits/{businessUnitId}/planninggroups/{planningGroupId}','DELETE',{'businessUnitId':businessUnitId,'planningGroupId':planningGroupId},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json'],opts['customHeaders']);}/**
|
|
31120
|
+
* Delete a schedule bid
|
|
31121
|
+
*
|
|
31122
|
+
* @param {String} businessUnitId The ID of the business unit
|
|
31123
|
+
* @param {String} bidId The ID of the schedule bid
|
|
31124
|
+
* @param {Object} opts Optional parameters
|
|
31125
|
+
* @param {Object.<string, string>} opts.customHeaders Per-request HTTP headers
|
|
31126
|
+
*/},{key:"deleteWorkforcemanagementBusinessunitSchedulebid",value:function deleteWorkforcemanagementBusinessunitSchedulebid(businessUnitId,bidId,opts){opts=opts||{};// verify the required parameter 'businessUnitId' is set
|
|
31127
|
+
if(businessUnitId===undefined||businessUnitId===null||businessUnitId===''){throw'Missing the required parameter "businessUnitId" when calling deleteWorkforcemanagementBusinessunitSchedulebid';}// verify the required parameter 'bidId' is set
|
|
31128
|
+
if(bidId===undefined||bidId===null||bidId===''){throw'Missing the required parameter "bidId" when calling deleteWorkforcemanagementBusinessunitSchedulebid';}return this.apiClient.callApi('/api/v2/workforcemanagement/businessunits/{businessUnitId}/schedulebids/{bidId}','DELETE',{'businessUnitId':businessUnitId,'bidId':bidId},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json'],opts['customHeaders']);}/**
|
|
31129
|
+
* Delete a schedule bid group by bid group Id
|
|
31130
|
+
*
|
|
31131
|
+
* @param {String} businessUnitId The ID of the business unit
|
|
31132
|
+
* @param {String} bidId The ID of the schedule bid associated with the bid groups
|
|
31133
|
+
* @param {String} bidGroupId Schedule Bid Group id
|
|
31134
|
+
* @param {Object} opts Optional parameters
|
|
31135
|
+
* @param {Object.<string, string>} opts.customHeaders Per-request HTTP headers
|
|
31136
|
+
*/},{key:"deleteWorkforcemanagementBusinessunitSchedulebidGroup",value:function deleteWorkforcemanagementBusinessunitSchedulebidGroup(businessUnitId,bidId,bidGroupId,opts){opts=opts||{};// verify the required parameter 'businessUnitId' is set
|
|
31137
|
+
if(businessUnitId===undefined||businessUnitId===null||businessUnitId===''){throw'Missing the required parameter "businessUnitId" when calling deleteWorkforcemanagementBusinessunitSchedulebidGroup';}// verify the required parameter 'bidId' is set
|
|
31138
|
+
if(bidId===undefined||bidId===null||bidId===''){throw'Missing the required parameter "bidId" when calling deleteWorkforcemanagementBusinessunitSchedulebidGroup';}// verify the required parameter 'bidGroupId' is set
|
|
31139
|
+
if(bidGroupId===undefined||bidGroupId===null||bidGroupId===''){throw'Missing the required parameter "bidGroupId" when calling deleteWorkforcemanagementBusinessunitSchedulebidGroup';}return this.apiClient.callApi('/api/v2/workforcemanagement/businessunits/{businessUnitId}/schedulebids/{bidId}/groups/{bidGroupId}','DELETE',{'businessUnitId':businessUnitId,'bidId':bidId,'bidGroupId':bidGroupId},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json'],opts['customHeaders']);}/**
|
|
33915
31140
|
* Cancel a scheduling run
|
|
33916
31141
|
*
|
|
33917
31142
|
* @param {String} businessUnitId The ID of the business unit
|
|
@@ -34370,6 +31595,55 @@ if(planningGroupId===undefined||planningGroupId===null||planningGroupId===''){th
|
|
|
34370
31595
|
* @param {Object.<string, string>} opts.customHeaders Per-request HTTP headers
|
|
34371
31596
|
*/},{key:"getWorkforcemanagementBusinessunitPlanninggroups",value:function getWorkforcemanagementBusinessunitPlanninggroups(businessUnitId,opts){opts=opts||{};// verify the required parameter 'businessUnitId' is set
|
|
34372
31597
|
if(businessUnitId===undefined||businessUnitId===null||businessUnitId===''){throw'Missing the required parameter "businessUnitId" when calling getWorkforcemanagementBusinessunitPlanninggroups';}return this.apiClient.callApi('/api/v2/workforcemanagement/businessunits/{businessUnitId}/planninggroups','GET',{'businessUnitId':businessUnitId},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json'],opts['customHeaders']);}/**
|
|
31598
|
+
* Get a schedule bid
|
|
31599
|
+
*
|
|
31600
|
+
* @param {String} businessUnitId The ID of the business unit
|
|
31601
|
+
* @param {String} bidId The ID of the schedule bid
|
|
31602
|
+
* @param {Object} opts Optional parameters
|
|
31603
|
+
* @param {Object.<string, string>} opts.customHeaders Per-request HTTP headers
|
|
31604
|
+
*/},{key:"getWorkforcemanagementBusinessunitSchedulebid",value:function getWorkforcemanagementBusinessunitSchedulebid(businessUnitId,bidId,opts){opts=opts||{};// verify the required parameter 'businessUnitId' is set
|
|
31605
|
+
if(businessUnitId===undefined||businessUnitId===null||businessUnitId===''){throw'Missing the required parameter "businessUnitId" when calling getWorkforcemanagementBusinessunitSchedulebid';}// verify the required parameter 'bidId' is set
|
|
31606
|
+
if(bidId===undefined||bidId===null||bidId===''){throw'Missing the required parameter "bidId" when calling getWorkforcemanagementBusinessunitSchedulebid';}return this.apiClient.callApi('/api/v2/workforcemanagement/businessunits/{businessUnitId}/schedulebids/{bidId}','GET',{'businessUnitId':businessUnitId,'bidId':bidId},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json'],opts['customHeaders']);}/**
|
|
31607
|
+
* Get a schedule bid group
|
|
31608
|
+
*
|
|
31609
|
+
* @param {String} businessUnitId The ID of the business unit
|
|
31610
|
+
* @param {String} bidId The ID of the schedule bid associated with the bid groups
|
|
31611
|
+
* @param {String} bidGroupId Schedule Bid Group id
|
|
31612
|
+
* @param {Object} opts Optional parameters
|
|
31613
|
+
* @param {Object.<string, string>} opts.customHeaders Per-request HTTP headers
|
|
31614
|
+
*/},{key:"getWorkforcemanagementBusinessunitSchedulebidGroup",value:function getWorkforcemanagementBusinessunitSchedulebidGroup(businessUnitId,bidId,bidGroupId,opts){opts=opts||{};// verify the required parameter 'businessUnitId' is set
|
|
31615
|
+
if(businessUnitId===undefined||businessUnitId===null||businessUnitId===''){throw'Missing the required parameter "businessUnitId" when calling getWorkforcemanagementBusinessunitSchedulebidGroup';}// verify the required parameter 'bidId' is set
|
|
31616
|
+
if(bidId===undefined||bidId===null||bidId===''){throw'Missing the required parameter "bidId" when calling getWorkforcemanagementBusinessunitSchedulebidGroup';}// verify the required parameter 'bidGroupId' is set
|
|
31617
|
+
if(bidGroupId===undefined||bidGroupId===null||bidGroupId===''){throw'Missing the required parameter "bidGroupId" when calling getWorkforcemanagementBusinessunitSchedulebidGroup';}return this.apiClient.callApi('/api/v2/workforcemanagement/businessunits/{businessUnitId}/schedulebids/{bidId}/groups/{bidGroupId}','GET',{'businessUnitId':businessUnitId,'bidId':bidId,'bidGroupId':bidGroupId},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json'],opts['customHeaders']);}/**
|
|
31618
|
+
* Get agents schedule bid preferences for a bid group
|
|
31619
|
+
*
|
|
31620
|
+
* @param {String} businessUnitId The ID of the business unit
|
|
31621
|
+
* @param {String} bidId The ID of the schedule bid associated with the bid groups
|
|
31622
|
+
* @param {String} bidGroupId The ID of the schedule bid group
|
|
31623
|
+
* @param {Object} opts Optional parameters
|
|
31624
|
+
* @param {Boolean} opts.forceDownloadService Force the result of this operation to be sent via download service. For testing/app development purposes
|
|
31625
|
+
* @param {Array.<String>} opts.expand Include to fetch agents' preferences with priorities
|
|
31626
|
+
* @param {Object.<string, string>} opts.customHeaders Per-request HTTP headers
|
|
31627
|
+
*/},{key:"getWorkforcemanagementBusinessunitSchedulebidGroupPreferences",value:function getWorkforcemanagementBusinessunitSchedulebidGroupPreferences(businessUnitId,bidId,bidGroupId,opts){opts=opts||{};// verify the required parameter 'businessUnitId' is set
|
|
31628
|
+
if(businessUnitId===undefined||businessUnitId===null||businessUnitId===''){throw'Missing the required parameter "businessUnitId" when calling getWorkforcemanagementBusinessunitSchedulebidGroupPreferences';}// verify the required parameter 'bidId' is set
|
|
31629
|
+
if(bidId===undefined||bidId===null||bidId===''){throw'Missing the required parameter "bidId" when calling getWorkforcemanagementBusinessunitSchedulebidGroupPreferences';}// verify the required parameter 'bidGroupId' is set
|
|
31630
|
+
if(bidGroupId===undefined||bidGroupId===null||bidGroupId===''){throw'Missing the required parameter "bidGroupId" when calling getWorkforcemanagementBusinessunitSchedulebidGroupPreferences';}return this.apiClient.callApi('/api/v2/workforcemanagement/businessunits/{businessUnitId}/schedulebids/{bidId}/groups/{bidGroupId}/preferences','GET',{'businessUnitId':businessUnitId,'bidId':bidId,'bidGroupId':bidGroupId},{'forceDownloadService':opts['forceDownloadService'],'expand':this.apiClient.buildCollectionParam(opts['expand'],'multi')},{},{},null,['PureCloud OAuth'],['application/json'],['application/json'],opts['customHeaders']);}/**
|
|
31631
|
+
* Get summary of bid groups that belong to a schedule bid
|
|
31632
|
+
*
|
|
31633
|
+
* @param {String} businessUnitId The ID of the business unit
|
|
31634
|
+
* @param {String} bidId The ID of the schedule bid associated with the bid groups
|
|
31635
|
+
* @param {Object} opts Optional parameters
|
|
31636
|
+
* @param {Object.<string, string>} opts.customHeaders Per-request HTTP headers
|
|
31637
|
+
*/},{key:"getWorkforcemanagementBusinessunitSchedulebidGroupsSummary",value:function getWorkforcemanagementBusinessunitSchedulebidGroupsSummary(businessUnitId,bidId,opts){opts=opts||{};// verify the required parameter 'businessUnitId' is set
|
|
31638
|
+
if(businessUnitId===undefined||businessUnitId===null||businessUnitId===''){throw'Missing the required parameter "businessUnitId" when calling getWorkforcemanagementBusinessunitSchedulebidGroupsSummary';}// verify the required parameter 'bidId' is set
|
|
31639
|
+
if(bidId===undefined||bidId===null||bidId===''){throw'Missing the required parameter "bidId" when calling getWorkforcemanagementBusinessunitSchedulebidGroupsSummary';}return this.apiClient.callApi('/api/v2/workforcemanagement/businessunits/{businessUnitId}/schedulebids/{bidId}/groups/summary','GET',{'businessUnitId':businessUnitId,'bidId':bidId},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json'],opts['customHeaders']);}/**
|
|
31640
|
+
* Get list of schedule bids
|
|
31641
|
+
*
|
|
31642
|
+
* @param {String} businessUnitId The ID of the business unit
|
|
31643
|
+
* @param {Object} opts Optional parameters
|
|
31644
|
+
* @param {Object.<string, string>} opts.customHeaders Per-request HTTP headers
|
|
31645
|
+
*/},{key:"getWorkforcemanagementBusinessunitSchedulebids",value:function getWorkforcemanagementBusinessunitSchedulebids(businessUnitId,opts){opts=opts||{};// verify the required parameter 'businessUnitId' is set
|
|
31646
|
+
if(businessUnitId===undefined||businessUnitId===null||businessUnitId===''){throw'Missing the required parameter "businessUnitId" when calling getWorkforcemanagementBusinessunitSchedulebids';}return this.apiClient.callApi('/api/v2/workforcemanagement/businessunits/{businessUnitId}/schedulebids','GET',{'businessUnitId':businessUnitId},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json'],opts['customHeaders']);}/**
|
|
34373
31647
|
* Get scheduler settings for a business unit
|
|
34374
31648
|
*
|
|
34375
31649
|
* @param {String} businessUnitId The ID of the business unit
|
|
@@ -35032,6 +32306,25 @@ if(managementUnitId===undefined||managementUnitId===null||managementUnitId==='')
|
|
|
35032
32306
|
* @param {Object} opts Optional parameters
|
|
35033
32307
|
* @param {Object.<string, string>} opts.customHeaders Per-request HTTP headers
|
|
35034
32308
|
*/},{key:"getWorkforcemanagementNotifications",value:function getWorkforcemanagementNotifications(opts){opts=opts||{};return this.apiClient.callApi('/api/v2/workforcemanagement/notifications','GET',{},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json'],opts['customHeaders']);}/**
|
|
32309
|
+
* Gets an agent's schedule bidding preference
|
|
32310
|
+
*
|
|
32311
|
+
* @param {String} bidId The ID of the schedule bid
|
|
32312
|
+
* @param {Object} opts Optional parameters
|
|
32313
|
+
* @param {Object.<string, string>} opts.customHeaders Per-request HTTP headers
|
|
32314
|
+
*/},{key:"getWorkforcemanagementSchedulebidPreference",value:function getWorkforcemanagementSchedulebidPreference(bidId,opts){opts=opts||{};// verify the required parameter 'bidId' is set
|
|
32315
|
+
if(bidId===undefined||bidId===null||bidId===''){throw'Missing the required parameter "bidId" when calling getWorkforcemanagementSchedulebidPreference';}return this.apiClient.callApi('/api/v2/workforcemanagement/schedulebids/{bidId}/preference','GET',{'bidId':bidId},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json'],opts['customHeaders']);}/**
|
|
32316
|
+
* Gets an agent's schedule sets for a bid
|
|
32317
|
+
*
|
|
32318
|
+
* @param {String} bidId The ID of the schedule bid
|
|
32319
|
+
* @param {Object} opts Optional parameters
|
|
32320
|
+
* @param {Object.<string, string>} opts.customHeaders Per-request HTTP headers
|
|
32321
|
+
*/},{key:"getWorkforcemanagementSchedulebidSchedulesets",value:function getWorkforcemanagementSchedulebidSchedulesets(bidId,opts){opts=opts||{};// verify the required parameter 'bidId' is set
|
|
32322
|
+
if(bidId===undefined||bidId===null||bidId===''){throw'Missing the required parameter "bidId" when calling getWorkforcemanagementSchedulebidSchedulesets';}return this.apiClient.callApi('/api/v2/workforcemanagement/schedulebids/{bidId}/schedulesets','GET',{'bidId':bidId},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json'],opts['customHeaders']);}/**
|
|
32323
|
+
* Gets the list of schedule bids that belong to an agent. It will fetch an open bid or upcoming bid or a bid that is closed recently
|
|
32324
|
+
*
|
|
32325
|
+
* @param {Object} opts Optional parameters
|
|
32326
|
+
* @param {Object.<string, string>} opts.customHeaders Per-request HTTP headers
|
|
32327
|
+
*/},{key:"getWorkforcemanagementSchedulebids",value:function getWorkforcemanagementSchedulebids(opts){opts=opts||{};return this.apiClient.callApi('/api/v2/workforcemanagement/schedulebids','GET',{},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json'],opts['customHeaders']);}/**
|
|
35035
32328
|
* Get status of the scheduling job
|
|
35036
32329
|
*
|
|
35037
32330
|
* @param {String} jobId The id of the scheduling job
|
|
@@ -35274,6 +32567,43 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
35274
32567
|
if(businessUnitId===undefined||businessUnitId===null||businessUnitId===''){throw'Missing the required parameter "businessUnitId" when calling patchWorkforcemanagementBusinessunitPlanninggroup';}// verify the required parameter 'planningGroupId' is set
|
|
35275
32568
|
if(planningGroupId===undefined||planningGroupId===null||planningGroupId===''){throw'Missing the required parameter "planningGroupId" when calling patchWorkforcemanagementBusinessunitPlanninggroup';}// verify the required parameter 'body' is set
|
|
35276
32569
|
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling patchWorkforcemanagementBusinessunitPlanninggroup';}return this.apiClient.callApi('/api/v2/workforcemanagement/businessunits/{businessUnitId}/planninggroups/{planningGroupId}','PATCH',{'businessUnitId':businessUnitId,'planningGroupId':planningGroupId},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json'],opts['customHeaders']);}/**
|
|
32570
|
+
* Update a schedule bid
|
|
32571
|
+
*
|
|
32572
|
+
* @param {String} businessUnitId The ID of the business unit
|
|
32573
|
+
* @param {String} bidId The ID of the schedule bid
|
|
32574
|
+
* @param {Object} body The schedule bid to be updated
|
|
32575
|
+
* @param {Object} opts Optional parameters
|
|
32576
|
+
* @param {Object.<string, string>} opts.customHeaders Per-request HTTP headers
|
|
32577
|
+
*/},{key:"patchWorkforcemanagementBusinessunitSchedulebid",value:function patchWorkforcemanagementBusinessunitSchedulebid(businessUnitId,bidId,body,opts){opts=opts||{};// verify the required parameter 'businessUnitId' is set
|
|
32578
|
+
if(businessUnitId===undefined||businessUnitId===null||businessUnitId===''){throw'Missing the required parameter "businessUnitId" when calling patchWorkforcemanagementBusinessunitSchedulebid';}// verify the required parameter 'bidId' is set
|
|
32579
|
+
if(bidId===undefined||bidId===null||bidId===''){throw'Missing the required parameter "bidId" when calling patchWorkforcemanagementBusinessunitSchedulebid';}// verify the required parameter 'body' is set
|
|
32580
|
+
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling patchWorkforcemanagementBusinessunitSchedulebid';}return this.apiClient.callApi('/api/v2/workforcemanagement/businessunits/{businessUnitId}/schedulebids/{bidId}','PATCH',{'businessUnitId':businessUnitId,'bidId':bidId},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json'],opts['customHeaders']);}/**
|
|
32581
|
+
* Update a schedule bid group by bid group Id
|
|
32582
|
+
*
|
|
32583
|
+
* @param {String} businessUnitId The ID of the business unit
|
|
32584
|
+
* @param {String} bidId The ID of the schedule bid associated with the bid groups
|
|
32585
|
+
* @param {String} bidGroupId Schedule Bid Group id
|
|
32586
|
+
* @param {Object} body body
|
|
32587
|
+
* @param {Object} opts Optional parameters
|
|
32588
|
+
* @param {Object.<string, string>} opts.customHeaders Per-request HTTP headers
|
|
32589
|
+
*/},{key:"patchWorkforcemanagementBusinessunitSchedulebidGroup",value:function patchWorkforcemanagementBusinessunitSchedulebidGroup(businessUnitId,bidId,bidGroupId,body,opts){opts=opts||{};// verify the required parameter 'businessUnitId' is set
|
|
32590
|
+
if(businessUnitId===undefined||businessUnitId===null||businessUnitId===''){throw'Missing the required parameter "businessUnitId" when calling patchWorkforcemanagementBusinessunitSchedulebidGroup';}// verify the required parameter 'bidId' is set
|
|
32591
|
+
if(bidId===undefined||bidId===null||bidId===''){throw'Missing the required parameter "bidId" when calling patchWorkforcemanagementBusinessunitSchedulebidGroup';}// verify the required parameter 'bidGroupId' is set
|
|
32592
|
+
if(bidGroupId===undefined||bidGroupId===null||bidGroupId===''){throw'Missing the required parameter "bidGroupId" when calling patchWorkforcemanagementBusinessunitSchedulebidGroup';}// verify the required parameter 'body' is set
|
|
32593
|
+
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling patchWorkforcemanagementBusinessunitSchedulebidGroup';}return this.apiClient.callApi('/api/v2/workforcemanagement/businessunits/{businessUnitId}/schedulebids/{bidId}/groups/{bidGroupId}','PATCH',{'businessUnitId':businessUnitId,'bidId':bidId,'bidGroupId':bidGroupId},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json'],opts['customHeaders']);}/**
|
|
32594
|
+
* Overrides the assigned schedule bid for the specified agents
|
|
32595
|
+
*
|
|
32596
|
+
* @param {String} businessUnitId The ID of the business unit
|
|
32597
|
+
* @param {String} bidId The ID of the schedule bid associated with the bid groups
|
|
32598
|
+
* @param {String} bidGroupId The ID of the schedule bid group
|
|
32599
|
+
* @param {Object} body body
|
|
32600
|
+
* @param {Object} opts Optional parameters
|
|
32601
|
+
* @param {Object.<string, string>} opts.customHeaders Per-request HTTP headers
|
|
32602
|
+
*/},{key:"patchWorkforcemanagementBusinessunitSchedulebidGroupPreferences",value:function patchWorkforcemanagementBusinessunitSchedulebidGroupPreferences(businessUnitId,bidId,bidGroupId,body,opts){opts=opts||{};// verify the required parameter 'businessUnitId' is set
|
|
32603
|
+
if(businessUnitId===undefined||businessUnitId===null||businessUnitId===''){throw'Missing the required parameter "businessUnitId" when calling patchWorkforcemanagementBusinessunitSchedulebidGroupPreferences';}// verify the required parameter 'bidId' is set
|
|
32604
|
+
if(bidId===undefined||bidId===null||bidId===''){throw'Missing the required parameter "bidId" when calling patchWorkforcemanagementBusinessunitSchedulebidGroupPreferences';}// verify the required parameter 'bidGroupId' is set
|
|
32605
|
+
if(bidGroupId===undefined||bidGroupId===null||bidGroupId===''){throw'Missing the required parameter "bidGroupId" when calling patchWorkforcemanagementBusinessunitSchedulebidGroupPreferences';}// verify the required parameter 'body' is set
|
|
32606
|
+
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling patchWorkforcemanagementBusinessunitSchedulebidGroupPreferences';}return this.apiClient.callApi('/api/v2/workforcemanagement/businessunits/{businessUnitId}/schedulebids/{bidId}/groups/{bidGroupId}/preferences','PATCH',{'businessUnitId':businessUnitId,'bidId':bidId,'bidGroupId':bidGroupId},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json'],opts['customHeaders']);}/**
|
|
35277
32607
|
* Update scheduler settings for a business unit
|
|
35278
32608
|
*
|
|
35279
32609
|
* @param {String} businessUnitId The ID of the business unit
|
|
@@ -35890,6 +33220,46 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
35890
33220
|
*/},{key:"postWorkforcemanagementBusinessunitPlanninggroups",value:function postWorkforcemanagementBusinessunitPlanninggroups(businessUnitId,body,opts){opts=opts||{};// verify the required parameter 'businessUnitId' is set
|
|
35891
33221
|
if(businessUnitId===undefined||businessUnitId===null||businessUnitId===''){throw'Missing the required parameter "businessUnitId" when calling postWorkforcemanagementBusinessunitPlanninggroups';}// verify the required parameter 'body' is set
|
|
35892
33222
|
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling postWorkforcemanagementBusinessunitPlanninggroups';}return this.apiClient.callApi('/api/v2/workforcemanagement/businessunits/{businessUnitId}/planninggroups','POST',{'businessUnitId':businessUnitId},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json'],opts['customHeaders']);}/**
|
|
33223
|
+
* Copy a schedule bid
|
|
33224
|
+
*
|
|
33225
|
+
* @param {String} businessUnitId The ID of the business unit
|
|
33226
|
+
* @param {String} bidId The ID of the schedule bid to copy
|
|
33227
|
+
* @param {Object} body body
|
|
33228
|
+
* @param {Object} opts Optional parameters
|
|
33229
|
+
* @param {Object.<string, string>} opts.customHeaders Per-request HTTP headers
|
|
33230
|
+
*/},{key:"postWorkforcemanagementBusinessunitSchedulebidCopy",value:function postWorkforcemanagementBusinessunitSchedulebidCopy(businessUnitId,bidId,body,opts){opts=opts||{};// verify the required parameter 'businessUnitId' is set
|
|
33231
|
+
if(businessUnitId===undefined||businessUnitId===null||businessUnitId===''){throw'Missing the required parameter "businessUnitId" when calling postWorkforcemanagementBusinessunitSchedulebidCopy';}// verify the required parameter 'bidId' is set
|
|
33232
|
+
if(bidId===undefined||bidId===null||bidId===''){throw'Missing the required parameter "bidId" when calling postWorkforcemanagementBusinessunitSchedulebidCopy';}// verify the required parameter 'body' is set
|
|
33233
|
+
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling postWorkforcemanagementBusinessunitSchedulebidCopy';}return this.apiClient.callApi('/api/v2/workforcemanagement/businessunits/{businessUnitId}/schedulebids/{bidId}/copy','POST',{'businessUnitId':businessUnitId,'bidId':bidId},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json'],opts['customHeaders']);}/**
|
|
33234
|
+
* Add a bid group in a given schedule bid
|
|
33235
|
+
*
|
|
33236
|
+
* @param {String} businessUnitId The ID of the business unit
|
|
33237
|
+
* @param {String} bidId The ID of the schedule bid associated with the bid groups
|
|
33238
|
+
* @param {Object} body body
|
|
33239
|
+
* @param {Object} opts Optional parameters
|
|
33240
|
+
* @param {Object.<string, string>} opts.customHeaders Per-request HTTP headers
|
|
33241
|
+
*/},{key:"postWorkforcemanagementBusinessunitSchedulebidGroups",value:function postWorkforcemanagementBusinessunitSchedulebidGroups(businessUnitId,bidId,body,opts){opts=opts||{};// verify the required parameter 'businessUnitId' is set
|
|
33242
|
+
if(businessUnitId===undefined||businessUnitId===null||businessUnitId===''){throw'Missing the required parameter "businessUnitId" when calling postWorkforcemanagementBusinessunitSchedulebidGroups';}// verify the required parameter 'bidId' is set
|
|
33243
|
+
if(bidId===undefined||bidId===null||bidId===''){throw'Missing the required parameter "bidId" when calling postWorkforcemanagementBusinessunitSchedulebidGroups';}// verify the required parameter 'body' is set
|
|
33244
|
+
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling postWorkforcemanagementBusinessunitSchedulebidGroups';}return this.apiClient.callApi('/api/v2/workforcemanagement/businessunits/{businessUnitId}/schedulebids/{bidId}/groups','POST',{'businessUnitId':businessUnitId,'bidId':bidId},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json'],opts['customHeaders']);}/**
|
|
33245
|
+
* Create a new schedule bid
|
|
33246
|
+
*
|
|
33247
|
+
* @param {String} businessUnitId The ID of the business unit
|
|
33248
|
+
* @param {Object} body The schedule bid to be created
|
|
33249
|
+
* @param {Object} opts Optional parameters
|
|
33250
|
+
* @param {Object.<string, string>} opts.customHeaders Per-request HTTP headers
|
|
33251
|
+
*/},{key:"postWorkforcemanagementBusinessunitSchedulebids",value:function postWorkforcemanagementBusinessunitSchedulebids(businessUnitId,body,opts){opts=opts||{};// verify the required parameter 'businessUnitId' is set
|
|
33252
|
+
if(businessUnitId===undefined||businessUnitId===null||businessUnitId===''){throw'Missing the required parameter "businessUnitId" when calling postWorkforcemanagementBusinessunitSchedulebids';}// verify the required parameter 'body' is set
|
|
33253
|
+
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling postWorkforcemanagementBusinessunitSchedulebids';}return this.apiClient.callApi('/api/v2/workforcemanagement/businessunits/{businessUnitId}/schedulebids','POST',{'businessUnitId':businessUnitId},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json'],opts['customHeaders']);}/**
|
|
33254
|
+
* Fetch all the agents with effective schedule set for the given BU
|
|
33255
|
+
*
|
|
33256
|
+
* @param {String} businessUnitId The ID of the business unit
|
|
33257
|
+
* @param {Object} body body
|
|
33258
|
+
* @param {Object} opts Optional parameters
|
|
33259
|
+
* @param {Object.<string, string>} opts.customHeaders Per-request HTTP headers
|
|
33260
|
+
*/},{key:"postWorkforcemanagementBusinessunitSchedulebidsEffectiveschedulesets",value:function postWorkforcemanagementBusinessunitSchedulebidsEffectiveschedulesets(businessUnitId,body,opts){opts=opts||{};// verify the required parameter 'businessUnitId' is set
|
|
33261
|
+
if(businessUnitId===undefined||businessUnitId===null||businessUnitId===''){throw'Missing the required parameter "businessUnitId" when calling postWorkforcemanagementBusinessunitSchedulebidsEffectiveschedulesets';}// verify the required parameter 'body' is set
|
|
33262
|
+
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling postWorkforcemanagementBusinessunitSchedulebidsEffectiveschedulesets';}return this.apiClient.callApi('/api/v2/workforcemanagement/businessunits/{businessUnitId}/schedulebids/effectiveschedulesets','POST',{'businessUnitId':businessUnitId},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json'],opts['customHeaders']);}/**
|
|
35893
33263
|
* Adds a new service goal template
|
|
35894
33264
|
*
|
|
35895
33265
|
* @param {String} businessUnitId The ID of the business unit.
|
|
@@ -36704,7 +34074,16 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
36704
34074
|
*/},{key:"putWorkforcemanagementManagementunitTimeofflimitValues",value:function putWorkforcemanagementManagementunitTimeofflimitValues(managementUnitId,timeOffLimitId,body,opts){opts=opts||{};// verify the required parameter 'managementUnitId' is set
|
|
36705
34075
|
if(managementUnitId===undefined||managementUnitId===null||managementUnitId===''){throw'Missing the required parameter "managementUnitId" when calling putWorkforcemanagementManagementunitTimeofflimitValues';}// verify the required parameter 'timeOffLimitId' is set
|
|
36706
34076
|
if(timeOffLimitId===undefined||timeOffLimitId===null||timeOffLimitId===''){throw'Missing the required parameter "timeOffLimitId" when calling putWorkforcemanagementManagementunitTimeofflimitValues';}// verify the required parameter 'body' is set
|
|
36707
|
-
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling putWorkforcemanagementManagementunitTimeofflimitValues';}return this.apiClient.callApi('/api/v2/workforcemanagement/managementunits/{managementUnitId}/timeofflimits/{timeOffLimitId}/values','PUT',{'managementUnitId':managementUnitId,'timeOffLimitId':timeOffLimitId},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json'],opts['customHeaders']);}
|
|
34077
|
+
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling putWorkforcemanagementManagementunitTimeofflimitValues';}return this.apiClient.callApi('/api/v2/workforcemanagement/managementunits/{managementUnitId}/timeofflimits/{timeOffLimitId}/values','PUT',{'managementUnitId':managementUnitId,'timeOffLimitId':timeOffLimitId},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json'],opts['customHeaders']);}/**
|
|
34078
|
+
* Update an agent's schedule set preference
|
|
34079
|
+
*
|
|
34080
|
+
* @param {String} bidId The ID of the schedule bid
|
|
34081
|
+
* @param {Object} body body
|
|
34082
|
+
* @param {Object} opts Optional parameters
|
|
34083
|
+
* @param {Object.<string, string>} opts.customHeaders Per-request HTTP headers
|
|
34084
|
+
*/},{key:"putWorkforcemanagementSchedulebidPreference",value:function putWorkforcemanagementSchedulebidPreference(bidId,body,opts){opts=opts||{};// verify the required parameter 'bidId' is set
|
|
34085
|
+
if(bidId===undefined||bidId===null||bidId===''){throw'Missing the required parameter "bidId" when calling putWorkforcemanagementSchedulebidPreference';}// verify the required parameter 'body' is set
|
|
34086
|
+
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling putWorkforcemanagementSchedulebidPreference';}return this.apiClient.callApi('/api/v2/workforcemanagement/schedulebids/{bidId}/preference','PUT',{'bidId':bidId},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json'],opts['customHeaders']);}}]);}();/**
|
|
36708
34087
|
* A JavaScript library to interface with the PureCloud Platform API.<br>
|
|
36709
34088
|
* The <code>index</code> module provides access to constructors for all the classes which comprise the public API.
|
|
36710
34089
|
* <p>
|
|
@@ -36733,7 +34112,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
36733
34112
|
* </pre>
|
|
36734
34113
|
* </p>
|
|
36735
34114
|
* @module purecloud-platform-client-v2/index
|
|
36736
|
-
* @version
|
|
34115
|
+
* @version 255.1.0
|
|
36737
34116
|
*/var platformClient=/*#__PURE__*/_createClass(function platformClient(){_classCallCheck(this,platformClient);/**
|
|
36738
34117
|
* The ApiClient constructor.
|
|
36739
34118
|
* @property {module:purecloud-platform-client-v2/ApiClient}
|
|
@@ -37005,4 +34384,4 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
37005
34384
|
var index=new platformClient();module.exports=index;
|
|
37006
34385
|
|
|
37007
34386
|
}).call(this)}).call(this,typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : {},require("buffer").Buffer,require("timers").setImmediate)
|
|
37008
|
-
},{"buffer":
|
|
34387
|
+
},{"buffer":2,"os":4,"path":5,"timers":7}]},{},[]);
|