purecloud-platform-client-v2 138.0.1 → 140.0.1
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 +2 -2
- package/dist/node/purecloud-platform-client-v2.js +537 -161
- package/dist/web-amd/purecloud-platform-client-v2.js +537 -162
- package/dist/web-amd/purecloud-platform-client-v2.min.js +1 -1
- package/dist/web-cjs/bundle.js +537 -161
- package/dist/web-cjs/purecloud-platform-client-v2.js +2631 -199
- package/dist/web-cjs/purecloud-platform-client-v2.min.js +1 -1
- package/index.d.ts +783 -224
- package/package.json +2 -1
- package/src/purecloud-platform-client-v2/ApiClient.js +18 -16
- package/src/purecloud-platform-client-v2/api/AlertingApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/AnalyticsApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/ArchitectApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/AuditApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/AuthorizationApi.js +15 -15
- package/src/purecloud-platform-client-v2/api/BillingApi.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 +271 -1
- package/src/purecloud-platform-client-v2/api/DataExtensionsApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/ExternalContactsApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/FaxApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/FlowsApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/GamificationApi.js +28 -27
- 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/IntegrationsApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/JourneyApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/KnowledgeApi.js +5 -5
- 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 +111 -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/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/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/QualityApi.js +2 -2
- package/src/purecloud-platform-client-v2/api/RecordingApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/ResponseManagementApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/RoutingApi.js +16 -24
- 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/SpeechTextAnalyticsApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/StationsApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/SuggestApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/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 +15 -15
- package/src/purecloud-platform-client-v2/api/UtilitiesApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/VoicemailApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/WebChatApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/WebDeploymentsApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/WebMessagingApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/WidgetsApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/WorkforceManagementApi.js +1 -1
- package/src/purecloud-platform-client-v2/index.js +1 -1
|
@@ -151,6 +151,8 @@ function fromByteArray (uint8) {
|
|
|
151
151
|
}
|
|
152
152
|
|
|
153
153
|
},{}],2:[function(require,module,exports){
|
|
154
|
+
|
|
155
|
+
},{}],3:[function(require,module,exports){
|
|
154
156
|
(function (Buffer){(function (){
|
|
155
157
|
/*!
|
|
156
158
|
* The buffer module from node.js, for the browser.
|
|
@@ -1931,7 +1933,7 @@ function numberIsNaN (obj) {
|
|
|
1931
1933
|
}
|
|
1932
1934
|
|
|
1933
1935
|
}).call(this)}).call(this,require("buffer").Buffer)
|
|
1934
|
-
},{"base64-js":1,"buffer":
|
|
1936
|
+
},{"base64-js":1,"buffer":3,"ieee754":4}],4:[function(require,module,exports){
|
|
1935
1937
|
/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */
|
|
1936
1938
|
exports.read = function (buffer, offset, isLE, mLen, nBytes) {
|
|
1937
1939
|
var e, m
|
|
@@ -2018,7 +2020,7 @@ exports.write = function (buffer, value, offset, isLE, mLen, nBytes) {
|
|
|
2018
2020
|
buffer[offset + i - d] |= s * 128
|
|
2019
2021
|
}
|
|
2020
2022
|
|
|
2021
|
-
},{}],
|
|
2023
|
+
},{}],5:[function(require,module,exports){
|
|
2022
2024
|
exports.endianness = function () { return 'LE' };
|
|
2023
2025
|
|
|
2024
2026
|
exports.hostname = function () {
|
|
@@ -2069,7 +2071,7 @@ exports.homedir = function () {
|
|
|
2069
2071
|
return '/'
|
|
2070
2072
|
};
|
|
2071
2073
|
|
|
2072
|
-
},{}],
|
|
2074
|
+
},{}],6:[function(require,module,exports){
|
|
2073
2075
|
(function (process){(function (){
|
|
2074
2076
|
// 'path' module extracted from Node.js v8.11.1 (only the posix part)
|
|
2075
2077
|
// transplited with Babel
|
|
@@ -2602,7 +2604,7 @@ posix.posix = posix;
|
|
|
2602
2604
|
module.exports = posix;
|
|
2603
2605
|
|
|
2604
2606
|
}).call(this)}).call(this,require('_process'))
|
|
2605
|
-
},{"_process":
|
|
2607
|
+
},{"_process":7}],7:[function(require,module,exports){
|
|
2606
2608
|
// shim for using process in browser
|
|
2607
2609
|
var process = module.exports = {};
|
|
2608
2610
|
|
|
@@ -2788,9 +2790,9 @@ process.chdir = function (dir) {
|
|
|
2788
2790
|
};
|
|
2789
2791
|
process.umask = function() { return 0; };
|
|
2790
2792
|
|
|
2791
|
-
},{}],
|
|
2793
|
+
},{}],8:[function(require,module,exports){
|
|
2792
2794
|
module.exports = require('./lib/axios');
|
|
2793
|
-
},{"./lib/axios":
|
|
2795
|
+
},{"./lib/axios":10}],9:[function(require,module,exports){
|
|
2794
2796
|
'use strict';
|
|
2795
2797
|
|
|
2796
2798
|
var utils = require('./../utils');
|
|
@@ -3014,7 +3016,7 @@ module.exports = function xhrAdapter(config) {
|
|
|
3014
3016
|
});
|
|
3015
3017
|
};
|
|
3016
3018
|
|
|
3017
|
-
},{"../cancel/CanceledError":
|
|
3019
|
+
},{"../cancel/CanceledError":12,"../core/AxiosError":15,"../core/buildFullPath":17,"../defaults/transitional":23,"../helpers/parseProtocol":35,"./../core/settle":20,"./../helpers/buildURL":26,"./../helpers/cookies":28,"./../helpers/isURLSameOrigin":31,"./../helpers/parseHeaders":34,"./../utils":39}],10:[function(require,module,exports){
|
|
3018
3020
|
'use strict';
|
|
3019
3021
|
|
|
3020
3022
|
var utils = require('./utils');
|
|
@@ -3080,7 +3082,7 @@ module.exports = axios;
|
|
|
3080
3082
|
// Allow use of default import syntax in TypeScript
|
|
3081
3083
|
module.exports.default = axios;
|
|
3082
3084
|
|
|
3083
|
-
},{"../lib/core/AxiosError":
|
|
3085
|
+
},{"../lib/core/AxiosError":15,"./cancel/CancelToken":11,"./cancel/CanceledError":12,"./cancel/isCancel":13,"./core/Axios":14,"./core/mergeConfig":19,"./defaults":22,"./env/data":24,"./helpers/bind":25,"./helpers/isAxiosError":30,"./helpers/spread":36,"./helpers/toFormData":37,"./utils":39}],11:[function(require,module,exports){
|
|
3084
3086
|
'use strict';
|
|
3085
3087
|
|
|
3086
3088
|
var CanceledError = require('./CanceledError');
|
|
@@ -3201,7 +3203,7 @@ CancelToken.source = function source() {
|
|
|
3201
3203
|
|
|
3202
3204
|
module.exports = CancelToken;
|
|
3203
3205
|
|
|
3204
|
-
},{"./CanceledError":
|
|
3206
|
+
},{"./CanceledError":12}],12:[function(require,module,exports){
|
|
3205
3207
|
'use strict';
|
|
3206
3208
|
|
|
3207
3209
|
var AxiosError = require('../core/AxiosError');
|
|
@@ -3225,14 +3227,14 @@ utils.inherits(CanceledError, AxiosError, {
|
|
|
3225
3227
|
|
|
3226
3228
|
module.exports = CanceledError;
|
|
3227
3229
|
|
|
3228
|
-
},{"../core/AxiosError":
|
|
3230
|
+
},{"../core/AxiosError":15,"../utils":39}],13:[function(require,module,exports){
|
|
3229
3231
|
'use strict';
|
|
3230
3232
|
|
|
3231
3233
|
module.exports = function isCancel(value) {
|
|
3232
3234
|
return !!(value && value.__CANCEL__);
|
|
3233
3235
|
};
|
|
3234
3236
|
|
|
3235
|
-
},{}],
|
|
3237
|
+
},{}],14:[function(require,module,exports){
|
|
3236
3238
|
'use strict';
|
|
3237
3239
|
|
|
3238
3240
|
var utils = require('./../utils');
|
|
@@ -3394,7 +3396,7 @@ utils.forEach(['post', 'put', 'patch'], function forEachMethodWithData(method) {
|
|
|
3394
3396
|
|
|
3395
3397
|
module.exports = Axios;
|
|
3396
3398
|
|
|
3397
|
-
},{"../helpers/buildURL":
|
|
3399
|
+
},{"../helpers/buildURL":26,"../helpers/validator":38,"./../utils":39,"./InterceptorManager":16,"./buildFullPath":17,"./dispatchRequest":18,"./mergeConfig":19}],15:[function(require,module,exports){
|
|
3398
3400
|
'use strict';
|
|
3399
3401
|
|
|
3400
3402
|
var utils = require('../utils');
|
|
@@ -3482,7 +3484,7 @@ AxiosError.from = function(error, code, config, request, response, customProps)
|
|
|
3482
3484
|
|
|
3483
3485
|
module.exports = AxiosError;
|
|
3484
3486
|
|
|
3485
|
-
},{"../utils":
|
|
3487
|
+
},{"../utils":39}],16:[function(require,module,exports){
|
|
3486
3488
|
'use strict';
|
|
3487
3489
|
|
|
3488
3490
|
var utils = require('./../utils');
|
|
@@ -3538,7 +3540,7 @@ InterceptorManager.prototype.forEach = function forEach(fn) {
|
|
|
3538
3540
|
|
|
3539
3541
|
module.exports = InterceptorManager;
|
|
3540
3542
|
|
|
3541
|
-
},{"./../utils":
|
|
3543
|
+
},{"./../utils":39}],17:[function(require,module,exports){
|
|
3542
3544
|
'use strict';
|
|
3543
3545
|
|
|
3544
3546
|
var isAbsoluteURL = require('../helpers/isAbsoluteURL');
|
|
@@ -3560,7 +3562,7 @@ module.exports = function buildFullPath(baseURL, requestedURL) {
|
|
|
3560
3562
|
return requestedURL;
|
|
3561
3563
|
};
|
|
3562
3564
|
|
|
3563
|
-
},{"../helpers/combineURLs":
|
|
3565
|
+
},{"../helpers/combineURLs":27,"../helpers/isAbsoluteURL":29}],18:[function(require,module,exports){
|
|
3564
3566
|
'use strict';
|
|
3565
3567
|
|
|
3566
3568
|
var utils = require('./../utils');
|
|
@@ -3649,7 +3651,7 @@ module.exports = function dispatchRequest(config) {
|
|
|
3649
3651
|
});
|
|
3650
3652
|
};
|
|
3651
3653
|
|
|
3652
|
-
},{"../cancel/CanceledError":
|
|
3654
|
+
},{"../cancel/CanceledError":12,"../cancel/isCancel":13,"../defaults":22,"./../utils":39,"./transformData":21}],19:[function(require,module,exports){
|
|
3653
3655
|
'use strict';
|
|
3654
3656
|
|
|
3655
3657
|
var utils = require('../utils');
|
|
@@ -3751,7 +3753,7 @@ module.exports = function mergeConfig(config1, config2) {
|
|
|
3751
3753
|
return config;
|
|
3752
3754
|
};
|
|
3753
3755
|
|
|
3754
|
-
},{"../utils":
|
|
3756
|
+
},{"../utils":39}],20:[function(require,module,exports){
|
|
3755
3757
|
'use strict';
|
|
3756
3758
|
|
|
3757
3759
|
var AxiosError = require('./AxiosError');
|
|
@@ -3778,7 +3780,7 @@ module.exports = function settle(resolve, reject, response) {
|
|
|
3778
3780
|
}
|
|
3779
3781
|
};
|
|
3780
3782
|
|
|
3781
|
-
},{"./AxiosError":
|
|
3783
|
+
},{"./AxiosError":15}],21:[function(require,module,exports){
|
|
3782
3784
|
'use strict';
|
|
3783
3785
|
|
|
3784
3786
|
var utils = require('./../utils');
|
|
@@ -3802,7 +3804,7 @@ module.exports = function transformData(data, headers, fns) {
|
|
|
3802
3804
|
return data;
|
|
3803
3805
|
};
|
|
3804
3806
|
|
|
3805
|
-
},{"../defaults":
|
|
3807
|
+
},{"../defaults":22,"./../utils":39}],22:[function(require,module,exports){
|
|
3806
3808
|
(function (process){(function (){
|
|
3807
3809
|
'use strict';
|
|
3808
3810
|
|
|
@@ -3952,7 +3954,7 @@ utils.forEach(['post', 'put', 'patch'], function forEachMethodWithData(method) {
|
|
|
3952
3954
|
module.exports = defaults;
|
|
3953
3955
|
|
|
3954
3956
|
}).call(this)}).call(this,require('_process'))
|
|
3955
|
-
},{"../adapters/http":
|
|
3957
|
+
},{"../adapters/http":9,"../adapters/xhr":9,"../core/AxiosError":15,"../helpers/normalizeHeaderName":32,"../helpers/toFormData":37,"../utils":39,"./env/FormData":33,"./transitional":23,"_process":7}],23:[function(require,module,exports){
|
|
3956
3958
|
'use strict';
|
|
3957
3959
|
|
|
3958
3960
|
module.exports = {
|
|
@@ -3961,11 +3963,11 @@ module.exports = {
|
|
|
3961
3963
|
clarifyTimeoutError: false
|
|
3962
3964
|
};
|
|
3963
3965
|
|
|
3964
|
-
},{}],
|
|
3966
|
+
},{}],24:[function(require,module,exports){
|
|
3965
3967
|
module.exports = {
|
|
3966
3968
|
"version": "0.27.2"
|
|
3967
3969
|
};
|
|
3968
|
-
},{}],
|
|
3970
|
+
},{}],25:[function(require,module,exports){
|
|
3969
3971
|
'use strict';
|
|
3970
3972
|
|
|
3971
3973
|
module.exports = function bind(fn, thisArg) {
|
|
@@ -3978,7 +3980,7 @@ module.exports = function bind(fn, thisArg) {
|
|
|
3978
3980
|
};
|
|
3979
3981
|
};
|
|
3980
3982
|
|
|
3981
|
-
},{}],
|
|
3983
|
+
},{}],26:[function(require,module,exports){
|
|
3982
3984
|
'use strict';
|
|
3983
3985
|
|
|
3984
3986
|
var utils = require('./../utils');
|
|
@@ -4050,7 +4052,7 @@ module.exports = function buildURL(url, params, paramsSerializer) {
|
|
|
4050
4052
|
return url;
|
|
4051
4053
|
};
|
|
4052
4054
|
|
|
4053
|
-
},{"./../utils":
|
|
4055
|
+
},{"./../utils":39}],27:[function(require,module,exports){
|
|
4054
4056
|
'use strict';
|
|
4055
4057
|
|
|
4056
4058
|
/**
|
|
@@ -4066,7 +4068,7 @@ module.exports = function combineURLs(baseURL, relativeURL) {
|
|
|
4066
4068
|
: baseURL;
|
|
4067
4069
|
};
|
|
4068
4070
|
|
|
4069
|
-
},{}],
|
|
4071
|
+
},{}],28:[function(require,module,exports){
|
|
4070
4072
|
'use strict';
|
|
4071
4073
|
|
|
4072
4074
|
var utils = require('./../utils');
|
|
@@ -4121,7 +4123,7 @@ module.exports = (
|
|
|
4121
4123
|
})()
|
|
4122
4124
|
);
|
|
4123
4125
|
|
|
4124
|
-
},{"./../utils":
|
|
4126
|
+
},{"./../utils":39}],29:[function(require,module,exports){
|
|
4125
4127
|
'use strict';
|
|
4126
4128
|
|
|
4127
4129
|
/**
|
|
@@ -4137,7 +4139,7 @@ module.exports = function isAbsoluteURL(url) {
|
|
|
4137
4139
|
return /^([a-z][a-z\d+\-.]*:)?\/\//i.test(url);
|
|
4138
4140
|
};
|
|
4139
4141
|
|
|
4140
|
-
},{}],
|
|
4142
|
+
},{}],30:[function(require,module,exports){
|
|
4141
4143
|
'use strict';
|
|
4142
4144
|
|
|
4143
4145
|
var utils = require('./../utils');
|
|
@@ -4152,7 +4154,7 @@ module.exports = function isAxiosError(payload) {
|
|
|
4152
4154
|
return utils.isObject(payload) && (payload.isAxiosError === true);
|
|
4153
4155
|
};
|
|
4154
4156
|
|
|
4155
|
-
},{"./../utils":
|
|
4157
|
+
},{"./../utils":39}],31:[function(require,module,exports){
|
|
4156
4158
|
'use strict';
|
|
4157
4159
|
|
|
4158
4160
|
var utils = require('./../utils');
|
|
@@ -4222,7 +4224,7 @@ module.exports = (
|
|
|
4222
4224
|
})()
|
|
4223
4225
|
);
|
|
4224
4226
|
|
|
4225
|
-
},{"./../utils":
|
|
4227
|
+
},{"./../utils":39}],32:[function(require,module,exports){
|
|
4226
4228
|
'use strict';
|
|
4227
4229
|
|
|
4228
4230
|
var utils = require('../utils');
|
|
@@ -4236,11 +4238,11 @@ module.exports = function normalizeHeaderName(headers, normalizedName) {
|
|
|
4236
4238
|
});
|
|
4237
4239
|
};
|
|
4238
4240
|
|
|
4239
|
-
},{"../utils":
|
|
4241
|
+
},{"../utils":39}],33:[function(require,module,exports){
|
|
4240
4242
|
// eslint-disable-next-line strict
|
|
4241
4243
|
module.exports = null;
|
|
4242
4244
|
|
|
4243
|
-
},{}],
|
|
4245
|
+
},{}],34:[function(require,module,exports){
|
|
4244
4246
|
'use strict';
|
|
4245
4247
|
|
|
4246
4248
|
var utils = require('./../utils');
|
|
@@ -4295,7 +4297,7 @@ module.exports = function parseHeaders(headers) {
|
|
|
4295
4297
|
return parsed;
|
|
4296
4298
|
};
|
|
4297
4299
|
|
|
4298
|
-
},{"./../utils":
|
|
4300
|
+
},{"./../utils":39}],35:[function(require,module,exports){
|
|
4299
4301
|
'use strict';
|
|
4300
4302
|
|
|
4301
4303
|
module.exports = function parseProtocol(url) {
|
|
@@ -4303,7 +4305,7 @@ module.exports = function parseProtocol(url) {
|
|
|
4303
4305
|
return match && match[1] || '';
|
|
4304
4306
|
};
|
|
4305
4307
|
|
|
4306
|
-
},{}],
|
|
4308
|
+
},{}],36:[function(require,module,exports){
|
|
4307
4309
|
'use strict';
|
|
4308
4310
|
|
|
4309
4311
|
/**
|
|
@@ -4332,7 +4334,7 @@ module.exports = function spread(callback) {
|
|
|
4332
4334
|
};
|
|
4333
4335
|
};
|
|
4334
4336
|
|
|
4335
|
-
},{}],
|
|
4337
|
+
},{}],37:[function(require,module,exports){
|
|
4336
4338
|
(function (Buffer){(function (){
|
|
4337
4339
|
'use strict';
|
|
4338
4340
|
|
|
@@ -4408,7 +4410,7 @@ function toFormData(obj, formData) {
|
|
|
4408
4410
|
module.exports = toFormData;
|
|
4409
4411
|
|
|
4410
4412
|
}).call(this)}).call(this,require("buffer").Buffer)
|
|
4411
|
-
},{"../utils":
|
|
4413
|
+
},{"../utils":39,"buffer":3}],38:[function(require,module,exports){
|
|
4412
4414
|
'use strict';
|
|
4413
4415
|
|
|
4414
4416
|
var VERSION = require('../env/data').version;
|
|
@@ -4496,7 +4498,7 @@ module.exports = {
|
|
|
4496
4498
|
validators: validators
|
|
4497
4499
|
};
|
|
4498
4500
|
|
|
4499
|
-
},{"../core/AxiosError":
|
|
4501
|
+
},{"../core/AxiosError":15,"../env/data":24}],39:[function(require,module,exports){
|
|
4500
4502
|
'use strict';
|
|
4501
4503
|
|
|
4502
4504
|
var bind = require('./helpers/bind');
|
|
@@ -4968,15 +4970,2071 @@ module.exports = {
|
|
|
4968
4970
|
isFileList: isFileList
|
|
4969
4971
|
};
|
|
4970
4972
|
|
|
4971
|
-
},{"./helpers/bind":
|
|
4973
|
+
},{"./helpers/bind":25}],40:[function(require,module,exports){
|
|
4974
|
+
'use strict';
|
|
4975
|
+
|
|
4976
|
+
var GetIntrinsic = require('get-intrinsic');
|
|
4977
|
+
|
|
4978
|
+
var callBind = require('./');
|
|
4979
|
+
|
|
4980
|
+
var $indexOf = callBind(GetIntrinsic('String.prototype.indexOf'));
|
|
4981
|
+
|
|
4982
|
+
module.exports = function callBoundIntrinsic(name, allowMissing) {
|
|
4983
|
+
var intrinsic = GetIntrinsic(name, !!allowMissing);
|
|
4984
|
+
if (typeof intrinsic === 'function' && $indexOf(name, '.prototype.') > -1) {
|
|
4985
|
+
return callBind(intrinsic);
|
|
4986
|
+
}
|
|
4987
|
+
return intrinsic;
|
|
4988
|
+
};
|
|
4989
|
+
|
|
4990
|
+
},{"./":41,"get-intrinsic":44}],41:[function(require,module,exports){
|
|
4991
|
+
'use strict';
|
|
4992
|
+
|
|
4993
|
+
var bind = require('function-bind');
|
|
4994
|
+
var GetIntrinsic = require('get-intrinsic');
|
|
4995
|
+
|
|
4996
|
+
var $apply = GetIntrinsic('%Function.prototype.apply%');
|
|
4997
|
+
var $call = GetIntrinsic('%Function.prototype.call%');
|
|
4998
|
+
var $reflectApply = GetIntrinsic('%Reflect.apply%', true) || bind.call($call, $apply);
|
|
4999
|
+
|
|
5000
|
+
var $gOPD = GetIntrinsic('%Object.getOwnPropertyDescriptor%', true);
|
|
5001
|
+
var $defineProperty = GetIntrinsic('%Object.defineProperty%', true);
|
|
5002
|
+
var $max = GetIntrinsic('%Math.max%');
|
|
5003
|
+
|
|
5004
|
+
if ($defineProperty) {
|
|
5005
|
+
try {
|
|
5006
|
+
$defineProperty({}, 'a', { value: 1 });
|
|
5007
|
+
} catch (e) {
|
|
5008
|
+
// IE 8 has a broken defineProperty
|
|
5009
|
+
$defineProperty = null;
|
|
5010
|
+
}
|
|
5011
|
+
}
|
|
5012
|
+
|
|
5013
|
+
module.exports = function callBind(originalFunction) {
|
|
5014
|
+
var func = $reflectApply(bind, $call, arguments);
|
|
5015
|
+
if ($gOPD && $defineProperty) {
|
|
5016
|
+
var desc = $gOPD(func, 'length');
|
|
5017
|
+
if (desc.configurable) {
|
|
5018
|
+
// original length, plus the receiver, minus any additional arguments (after the receiver)
|
|
5019
|
+
$defineProperty(
|
|
5020
|
+
func,
|
|
5021
|
+
'length',
|
|
5022
|
+
{ value: 1 + $max(0, originalFunction.length - (arguments.length - 1)) }
|
|
5023
|
+
);
|
|
5024
|
+
}
|
|
5025
|
+
}
|
|
5026
|
+
return func;
|
|
5027
|
+
};
|
|
5028
|
+
|
|
5029
|
+
var applyBind = function applyBind() {
|
|
5030
|
+
return $reflectApply(bind, $apply, arguments);
|
|
5031
|
+
};
|
|
5032
|
+
|
|
5033
|
+
if ($defineProperty) {
|
|
5034
|
+
$defineProperty(module.exports, 'apply', { value: applyBind });
|
|
5035
|
+
} else {
|
|
5036
|
+
module.exports.apply = applyBind;
|
|
5037
|
+
}
|
|
5038
|
+
|
|
5039
|
+
},{"function-bind":43,"get-intrinsic":44}],42:[function(require,module,exports){
|
|
5040
|
+
'use strict';
|
|
5041
|
+
|
|
5042
|
+
/* eslint no-invalid-this: 1 */
|
|
5043
|
+
|
|
5044
|
+
var ERROR_MESSAGE = 'Function.prototype.bind called on incompatible ';
|
|
5045
|
+
var slice = Array.prototype.slice;
|
|
5046
|
+
var toStr = Object.prototype.toString;
|
|
5047
|
+
var funcType = '[object Function]';
|
|
5048
|
+
|
|
5049
|
+
module.exports = function bind(that) {
|
|
5050
|
+
var target = this;
|
|
5051
|
+
if (typeof target !== 'function' || toStr.call(target) !== funcType) {
|
|
5052
|
+
throw new TypeError(ERROR_MESSAGE + target);
|
|
5053
|
+
}
|
|
5054
|
+
var args = slice.call(arguments, 1);
|
|
5055
|
+
|
|
5056
|
+
var bound;
|
|
5057
|
+
var binder = function () {
|
|
5058
|
+
if (this instanceof bound) {
|
|
5059
|
+
var result = target.apply(
|
|
5060
|
+
this,
|
|
5061
|
+
args.concat(slice.call(arguments))
|
|
5062
|
+
);
|
|
5063
|
+
if (Object(result) === result) {
|
|
5064
|
+
return result;
|
|
5065
|
+
}
|
|
5066
|
+
return this;
|
|
5067
|
+
} else {
|
|
5068
|
+
return target.apply(
|
|
5069
|
+
that,
|
|
5070
|
+
args.concat(slice.call(arguments))
|
|
5071
|
+
);
|
|
5072
|
+
}
|
|
5073
|
+
};
|
|
5074
|
+
|
|
5075
|
+
var boundLength = Math.max(0, target.length - args.length);
|
|
5076
|
+
var boundArgs = [];
|
|
5077
|
+
for (var i = 0; i < boundLength; i++) {
|
|
5078
|
+
boundArgs.push('$' + i);
|
|
5079
|
+
}
|
|
5080
|
+
|
|
5081
|
+
bound = Function('binder', 'return function (' + boundArgs.join(',') + '){ return binder.apply(this,arguments); }')(binder);
|
|
5082
|
+
|
|
5083
|
+
if (target.prototype) {
|
|
5084
|
+
var Empty = function Empty() {};
|
|
5085
|
+
Empty.prototype = target.prototype;
|
|
5086
|
+
bound.prototype = new Empty();
|
|
5087
|
+
Empty.prototype = null;
|
|
5088
|
+
}
|
|
5089
|
+
|
|
5090
|
+
return bound;
|
|
5091
|
+
};
|
|
5092
|
+
|
|
5093
|
+
},{}],43:[function(require,module,exports){
|
|
5094
|
+
'use strict';
|
|
5095
|
+
|
|
5096
|
+
var implementation = require('./implementation');
|
|
5097
|
+
|
|
5098
|
+
module.exports = Function.prototype.bind || implementation;
|
|
5099
|
+
|
|
5100
|
+
},{"./implementation":42}],44:[function(require,module,exports){
|
|
5101
|
+
'use strict';
|
|
5102
|
+
|
|
5103
|
+
var undefined;
|
|
5104
|
+
|
|
5105
|
+
var $SyntaxError = SyntaxError;
|
|
5106
|
+
var $Function = Function;
|
|
5107
|
+
var $TypeError = TypeError;
|
|
5108
|
+
|
|
5109
|
+
// eslint-disable-next-line consistent-return
|
|
5110
|
+
var getEvalledConstructor = function (expressionSyntax) {
|
|
5111
|
+
try {
|
|
5112
|
+
return $Function('"use strict"; return (' + expressionSyntax + ').constructor;')();
|
|
5113
|
+
} catch (e) {}
|
|
5114
|
+
};
|
|
5115
|
+
|
|
5116
|
+
var $gOPD = Object.getOwnPropertyDescriptor;
|
|
5117
|
+
if ($gOPD) {
|
|
5118
|
+
try {
|
|
5119
|
+
$gOPD({}, '');
|
|
5120
|
+
} catch (e) {
|
|
5121
|
+
$gOPD = null; // this is IE 8, which has a broken gOPD
|
|
5122
|
+
}
|
|
5123
|
+
}
|
|
5124
|
+
|
|
5125
|
+
var throwTypeError = function () {
|
|
5126
|
+
throw new $TypeError();
|
|
5127
|
+
};
|
|
5128
|
+
var ThrowTypeError = $gOPD
|
|
5129
|
+
? (function () {
|
|
5130
|
+
try {
|
|
5131
|
+
// eslint-disable-next-line no-unused-expressions, no-caller, no-restricted-properties
|
|
5132
|
+
arguments.callee; // IE 8 does not throw here
|
|
5133
|
+
return throwTypeError;
|
|
5134
|
+
} catch (calleeThrows) {
|
|
5135
|
+
try {
|
|
5136
|
+
// IE 8 throws on Object.getOwnPropertyDescriptor(arguments, '')
|
|
5137
|
+
return $gOPD(arguments, 'callee').get;
|
|
5138
|
+
} catch (gOPDthrows) {
|
|
5139
|
+
return throwTypeError;
|
|
5140
|
+
}
|
|
5141
|
+
}
|
|
5142
|
+
}())
|
|
5143
|
+
: throwTypeError;
|
|
5144
|
+
|
|
5145
|
+
var hasSymbols = require('has-symbols')();
|
|
5146
|
+
|
|
5147
|
+
var getProto = Object.getPrototypeOf || function (x) { return x.__proto__; }; // eslint-disable-line no-proto
|
|
5148
|
+
|
|
5149
|
+
var needsEval = {};
|
|
5150
|
+
|
|
5151
|
+
var TypedArray = typeof Uint8Array === 'undefined' ? undefined : getProto(Uint8Array);
|
|
5152
|
+
|
|
5153
|
+
var INTRINSICS = {
|
|
5154
|
+
'%AggregateError%': typeof AggregateError === 'undefined' ? undefined : AggregateError,
|
|
5155
|
+
'%Array%': Array,
|
|
5156
|
+
'%ArrayBuffer%': typeof ArrayBuffer === 'undefined' ? undefined : ArrayBuffer,
|
|
5157
|
+
'%ArrayIteratorPrototype%': hasSymbols ? getProto([][Symbol.iterator]()) : undefined,
|
|
5158
|
+
'%AsyncFromSyncIteratorPrototype%': undefined,
|
|
5159
|
+
'%AsyncFunction%': needsEval,
|
|
5160
|
+
'%AsyncGenerator%': needsEval,
|
|
5161
|
+
'%AsyncGeneratorFunction%': needsEval,
|
|
5162
|
+
'%AsyncIteratorPrototype%': needsEval,
|
|
5163
|
+
'%Atomics%': typeof Atomics === 'undefined' ? undefined : Atomics,
|
|
5164
|
+
'%BigInt%': typeof BigInt === 'undefined' ? undefined : BigInt,
|
|
5165
|
+
'%Boolean%': Boolean,
|
|
5166
|
+
'%DataView%': typeof DataView === 'undefined' ? undefined : DataView,
|
|
5167
|
+
'%Date%': Date,
|
|
5168
|
+
'%decodeURI%': decodeURI,
|
|
5169
|
+
'%decodeURIComponent%': decodeURIComponent,
|
|
5170
|
+
'%encodeURI%': encodeURI,
|
|
5171
|
+
'%encodeURIComponent%': encodeURIComponent,
|
|
5172
|
+
'%Error%': Error,
|
|
5173
|
+
'%eval%': eval, // eslint-disable-line no-eval
|
|
5174
|
+
'%EvalError%': EvalError,
|
|
5175
|
+
'%Float32Array%': typeof Float32Array === 'undefined' ? undefined : Float32Array,
|
|
5176
|
+
'%Float64Array%': typeof Float64Array === 'undefined' ? undefined : Float64Array,
|
|
5177
|
+
'%FinalizationRegistry%': typeof FinalizationRegistry === 'undefined' ? undefined : FinalizationRegistry,
|
|
5178
|
+
'%Function%': $Function,
|
|
5179
|
+
'%GeneratorFunction%': needsEval,
|
|
5180
|
+
'%Int8Array%': typeof Int8Array === 'undefined' ? undefined : Int8Array,
|
|
5181
|
+
'%Int16Array%': typeof Int16Array === 'undefined' ? undefined : Int16Array,
|
|
5182
|
+
'%Int32Array%': typeof Int32Array === 'undefined' ? undefined : Int32Array,
|
|
5183
|
+
'%isFinite%': isFinite,
|
|
5184
|
+
'%isNaN%': isNaN,
|
|
5185
|
+
'%IteratorPrototype%': hasSymbols ? getProto(getProto([][Symbol.iterator]())) : undefined,
|
|
5186
|
+
'%JSON%': typeof JSON === 'object' ? JSON : undefined,
|
|
5187
|
+
'%Map%': typeof Map === 'undefined' ? undefined : Map,
|
|
5188
|
+
'%MapIteratorPrototype%': typeof Map === 'undefined' || !hasSymbols ? undefined : getProto(new Map()[Symbol.iterator]()),
|
|
5189
|
+
'%Math%': Math,
|
|
5190
|
+
'%Number%': Number,
|
|
5191
|
+
'%Object%': Object,
|
|
5192
|
+
'%parseFloat%': parseFloat,
|
|
5193
|
+
'%parseInt%': parseInt,
|
|
5194
|
+
'%Promise%': typeof Promise === 'undefined' ? undefined : Promise,
|
|
5195
|
+
'%Proxy%': typeof Proxy === 'undefined' ? undefined : Proxy,
|
|
5196
|
+
'%RangeError%': RangeError,
|
|
5197
|
+
'%ReferenceError%': ReferenceError,
|
|
5198
|
+
'%Reflect%': typeof Reflect === 'undefined' ? undefined : Reflect,
|
|
5199
|
+
'%RegExp%': RegExp,
|
|
5200
|
+
'%Set%': typeof Set === 'undefined' ? undefined : Set,
|
|
5201
|
+
'%SetIteratorPrototype%': typeof Set === 'undefined' || !hasSymbols ? undefined : getProto(new Set()[Symbol.iterator]()),
|
|
5202
|
+
'%SharedArrayBuffer%': typeof SharedArrayBuffer === 'undefined' ? undefined : SharedArrayBuffer,
|
|
5203
|
+
'%String%': String,
|
|
5204
|
+
'%StringIteratorPrototype%': hasSymbols ? getProto(''[Symbol.iterator]()) : undefined,
|
|
5205
|
+
'%Symbol%': hasSymbols ? Symbol : undefined,
|
|
5206
|
+
'%SyntaxError%': $SyntaxError,
|
|
5207
|
+
'%ThrowTypeError%': ThrowTypeError,
|
|
5208
|
+
'%TypedArray%': TypedArray,
|
|
5209
|
+
'%TypeError%': $TypeError,
|
|
5210
|
+
'%Uint8Array%': typeof Uint8Array === 'undefined' ? undefined : Uint8Array,
|
|
5211
|
+
'%Uint8ClampedArray%': typeof Uint8ClampedArray === 'undefined' ? undefined : Uint8ClampedArray,
|
|
5212
|
+
'%Uint16Array%': typeof Uint16Array === 'undefined' ? undefined : Uint16Array,
|
|
5213
|
+
'%Uint32Array%': typeof Uint32Array === 'undefined' ? undefined : Uint32Array,
|
|
5214
|
+
'%URIError%': URIError,
|
|
5215
|
+
'%WeakMap%': typeof WeakMap === 'undefined' ? undefined : WeakMap,
|
|
5216
|
+
'%WeakRef%': typeof WeakRef === 'undefined' ? undefined : WeakRef,
|
|
5217
|
+
'%WeakSet%': typeof WeakSet === 'undefined' ? undefined : WeakSet
|
|
5218
|
+
};
|
|
5219
|
+
|
|
5220
|
+
var doEval = function doEval(name) {
|
|
5221
|
+
var value;
|
|
5222
|
+
if (name === '%AsyncFunction%') {
|
|
5223
|
+
value = getEvalledConstructor('async function () {}');
|
|
5224
|
+
} else if (name === '%GeneratorFunction%') {
|
|
5225
|
+
value = getEvalledConstructor('function* () {}');
|
|
5226
|
+
} else if (name === '%AsyncGeneratorFunction%') {
|
|
5227
|
+
value = getEvalledConstructor('async function* () {}');
|
|
5228
|
+
} else if (name === '%AsyncGenerator%') {
|
|
5229
|
+
var fn = doEval('%AsyncGeneratorFunction%');
|
|
5230
|
+
if (fn) {
|
|
5231
|
+
value = fn.prototype;
|
|
5232
|
+
}
|
|
5233
|
+
} else if (name === '%AsyncIteratorPrototype%') {
|
|
5234
|
+
var gen = doEval('%AsyncGenerator%');
|
|
5235
|
+
if (gen) {
|
|
5236
|
+
value = getProto(gen.prototype);
|
|
5237
|
+
}
|
|
5238
|
+
}
|
|
5239
|
+
|
|
5240
|
+
INTRINSICS[name] = value;
|
|
5241
|
+
|
|
5242
|
+
return value;
|
|
5243
|
+
};
|
|
5244
|
+
|
|
5245
|
+
var LEGACY_ALIASES = {
|
|
5246
|
+
'%ArrayBufferPrototype%': ['ArrayBuffer', 'prototype'],
|
|
5247
|
+
'%ArrayPrototype%': ['Array', 'prototype'],
|
|
5248
|
+
'%ArrayProto_entries%': ['Array', 'prototype', 'entries'],
|
|
5249
|
+
'%ArrayProto_forEach%': ['Array', 'prototype', 'forEach'],
|
|
5250
|
+
'%ArrayProto_keys%': ['Array', 'prototype', 'keys'],
|
|
5251
|
+
'%ArrayProto_values%': ['Array', 'prototype', 'values'],
|
|
5252
|
+
'%AsyncFunctionPrototype%': ['AsyncFunction', 'prototype'],
|
|
5253
|
+
'%AsyncGenerator%': ['AsyncGeneratorFunction', 'prototype'],
|
|
5254
|
+
'%AsyncGeneratorPrototype%': ['AsyncGeneratorFunction', 'prototype', 'prototype'],
|
|
5255
|
+
'%BooleanPrototype%': ['Boolean', 'prototype'],
|
|
5256
|
+
'%DataViewPrototype%': ['DataView', 'prototype'],
|
|
5257
|
+
'%DatePrototype%': ['Date', 'prototype'],
|
|
5258
|
+
'%ErrorPrototype%': ['Error', 'prototype'],
|
|
5259
|
+
'%EvalErrorPrototype%': ['EvalError', 'prototype'],
|
|
5260
|
+
'%Float32ArrayPrototype%': ['Float32Array', 'prototype'],
|
|
5261
|
+
'%Float64ArrayPrototype%': ['Float64Array', 'prototype'],
|
|
5262
|
+
'%FunctionPrototype%': ['Function', 'prototype'],
|
|
5263
|
+
'%Generator%': ['GeneratorFunction', 'prototype'],
|
|
5264
|
+
'%GeneratorPrototype%': ['GeneratorFunction', 'prototype', 'prototype'],
|
|
5265
|
+
'%Int8ArrayPrototype%': ['Int8Array', 'prototype'],
|
|
5266
|
+
'%Int16ArrayPrototype%': ['Int16Array', 'prototype'],
|
|
5267
|
+
'%Int32ArrayPrototype%': ['Int32Array', 'prototype'],
|
|
5268
|
+
'%JSONParse%': ['JSON', 'parse'],
|
|
5269
|
+
'%JSONStringify%': ['JSON', 'stringify'],
|
|
5270
|
+
'%MapPrototype%': ['Map', 'prototype'],
|
|
5271
|
+
'%NumberPrototype%': ['Number', 'prototype'],
|
|
5272
|
+
'%ObjectPrototype%': ['Object', 'prototype'],
|
|
5273
|
+
'%ObjProto_toString%': ['Object', 'prototype', 'toString'],
|
|
5274
|
+
'%ObjProto_valueOf%': ['Object', 'prototype', 'valueOf'],
|
|
5275
|
+
'%PromisePrototype%': ['Promise', 'prototype'],
|
|
5276
|
+
'%PromiseProto_then%': ['Promise', 'prototype', 'then'],
|
|
5277
|
+
'%Promise_all%': ['Promise', 'all'],
|
|
5278
|
+
'%Promise_reject%': ['Promise', 'reject'],
|
|
5279
|
+
'%Promise_resolve%': ['Promise', 'resolve'],
|
|
5280
|
+
'%RangeErrorPrototype%': ['RangeError', 'prototype'],
|
|
5281
|
+
'%ReferenceErrorPrototype%': ['ReferenceError', 'prototype'],
|
|
5282
|
+
'%RegExpPrototype%': ['RegExp', 'prototype'],
|
|
5283
|
+
'%SetPrototype%': ['Set', 'prototype'],
|
|
5284
|
+
'%SharedArrayBufferPrototype%': ['SharedArrayBuffer', 'prototype'],
|
|
5285
|
+
'%StringPrototype%': ['String', 'prototype'],
|
|
5286
|
+
'%SymbolPrototype%': ['Symbol', 'prototype'],
|
|
5287
|
+
'%SyntaxErrorPrototype%': ['SyntaxError', 'prototype'],
|
|
5288
|
+
'%TypedArrayPrototype%': ['TypedArray', 'prototype'],
|
|
5289
|
+
'%TypeErrorPrototype%': ['TypeError', 'prototype'],
|
|
5290
|
+
'%Uint8ArrayPrototype%': ['Uint8Array', 'prototype'],
|
|
5291
|
+
'%Uint8ClampedArrayPrototype%': ['Uint8ClampedArray', 'prototype'],
|
|
5292
|
+
'%Uint16ArrayPrototype%': ['Uint16Array', 'prototype'],
|
|
5293
|
+
'%Uint32ArrayPrototype%': ['Uint32Array', 'prototype'],
|
|
5294
|
+
'%URIErrorPrototype%': ['URIError', 'prototype'],
|
|
5295
|
+
'%WeakMapPrototype%': ['WeakMap', 'prototype'],
|
|
5296
|
+
'%WeakSetPrototype%': ['WeakSet', 'prototype']
|
|
5297
|
+
};
|
|
5298
|
+
|
|
5299
|
+
var bind = require('function-bind');
|
|
5300
|
+
var hasOwn = require('has');
|
|
5301
|
+
var $concat = bind.call(Function.call, Array.prototype.concat);
|
|
5302
|
+
var $spliceApply = bind.call(Function.apply, Array.prototype.splice);
|
|
5303
|
+
var $replace = bind.call(Function.call, String.prototype.replace);
|
|
5304
|
+
var $strSlice = bind.call(Function.call, String.prototype.slice);
|
|
5305
|
+
var $exec = bind.call(Function.call, RegExp.prototype.exec);
|
|
5306
|
+
|
|
5307
|
+
/* adapted from https://github.com/lodash/lodash/blob/4.17.15/dist/lodash.js#L6735-L6744 */
|
|
5308
|
+
var rePropName = /[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g;
|
|
5309
|
+
var reEscapeChar = /\\(\\)?/g; /** Used to match backslashes in property paths. */
|
|
5310
|
+
var stringToPath = function stringToPath(string) {
|
|
5311
|
+
var first = $strSlice(string, 0, 1);
|
|
5312
|
+
var last = $strSlice(string, -1);
|
|
5313
|
+
if (first === '%' && last !== '%') {
|
|
5314
|
+
throw new $SyntaxError('invalid intrinsic syntax, expected closing `%`');
|
|
5315
|
+
} else if (last === '%' && first !== '%') {
|
|
5316
|
+
throw new $SyntaxError('invalid intrinsic syntax, expected opening `%`');
|
|
5317
|
+
}
|
|
5318
|
+
var result = [];
|
|
5319
|
+
$replace(string, rePropName, function (match, number, quote, subString) {
|
|
5320
|
+
result[result.length] = quote ? $replace(subString, reEscapeChar, '$1') : number || match;
|
|
5321
|
+
});
|
|
5322
|
+
return result;
|
|
5323
|
+
};
|
|
5324
|
+
/* end adaptation */
|
|
5325
|
+
|
|
5326
|
+
var getBaseIntrinsic = function getBaseIntrinsic(name, allowMissing) {
|
|
5327
|
+
var intrinsicName = name;
|
|
5328
|
+
var alias;
|
|
5329
|
+
if (hasOwn(LEGACY_ALIASES, intrinsicName)) {
|
|
5330
|
+
alias = LEGACY_ALIASES[intrinsicName];
|
|
5331
|
+
intrinsicName = '%' + alias[0] + '%';
|
|
5332
|
+
}
|
|
5333
|
+
|
|
5334
|
+
if (hasOwn(INTRINSICS, intrinsicName)) {
|
|
5335
|
+
var value = INTRINSICS[intrinsicName];
|
|
5336
|
+
if (value === needsEval) {
|
|
5337
|
+
value = doEval(intrinsicName);
|
|
5338
|
+
}
|
|
5339
|
+
if (typeof value === 'undefined' && !allowMissing) {
|
|
5340
|
+
throw new $TypeError('intrinsic ' + name + ' exists, but is not available. Please file an issue!');
|
|
5341
|
+
}
|
|
5342
|
+
|
|
5343
|
+
return {
|
|
5344
|
+
alias: alias,
|
|
5345
|
+
name: intrinsicName,
|
|
5346
|
+
value: value
|
|
5347
|
+
};
|
|
5348
|
+
}
|
|
5349
|
+
|
|
5350
|
+
throw new $SyntaxError('intrinsic ' + name + ' does not exist!');
|
|
5351
|
+
};
|
|
5352
|
+
|
|
5353
|
+
module.exports = function GetIntrinsic(name, allowMissing) {
|
|
5354
|
+
if (typeof name !== 'string' || name.length === 0) {
|
|
5355
|
+
throw new $TypeError('intrinsic name must be a non-empty string');
|
|
5356
|
+
}
|
|
5357
|
+
if (arguments.length > 1 && typeof allowMissing !== 'boolean') {
|
|
5358
|
+
throw new $TypeError('"allowMissing" argument must be a boolean');
|
|
5359
|
+
}
|
|
5360
|
+
|
|
5361
|
+
if ($exec(/^%?[^%]*%?$/g, name) === null) {
|
|
5362
|
+
throw new $SyntaxError('`%` may not be present anywhere but at the beginning and end of the intrinsic name');
|
|
5363
|
+
}
|
|
5364
|
+
var parts = stringToPath(name);
|
|
5365
|
+
var intrinsicBaseName = parts.length > 0 ? parts[0] : '';
|
|
5366
|
+
|
|
5367
|
+
var intrinsic = getBaseIntrinsic('%' + intrinsicBaseName + '%', allowMissing);
|
|
5368
|
+
var intrinsicRealName = intrinsic.name;
|
|
5369
|
+
var value = intrinsic.value;
|
|
5370
|
+
var skipFurtherCaching = false;
|
|
5371
|
+
|
|
5372
|
+
var alias = intrinsic.alias;
|
|
5373
|
+
if (alias) {
|
|
5374
|
+
intrinsicBaseName = alias[0];
|
|
5375
|
+
$spliceApply(parts, $concat([0, 1], alias));
|
|
5376
|
+
}
|
|
5377
|
+
|
|
5378
|
+
for (var i = 1, isOwn = true; i < parts.length; i += 1) {
|
|
5379
|
+
var part = parts[i];
|
|
5380
|
+
var first = $strSlice(part, 0, 1);
|
|
5381
|
+
var last = $strSlice(part, -1);
|
|
5382
|
+
if (
|
|
5383
|
+
(
|
|
5384
|
+
(first === '"' || first === "'" || first === '`')
|
|
5385
|
+
|| (last === '"' || last === "'" || last === '`')
|
|
5386
|
+
)
|
|
5387
|
+
&& first !== last
|
|
5388
|
+
) {
|
|
5389
|
+
throw new $SyntaxError('property names with quotes must have matching quotes');
|
|
5390
|
+
}
|
|
5391
|
+
if (part === 'constructor' || !isOwn) {
|
|
5392
|
+
skipFurtherCaching = true;
|
|
5393
|
+
}
|
|
5394
|
+
|
|
5395
|
+
intrinsicBaseName += '.' + part;
|
|
5396
|
+
intrinsicRealName = '%' + intrinsicBaseName + '%';
|
|
5397
|
+
|
|
5398
|
+
if (hasOwn(INTRINSICS, intrinsicRealName)) {
|
|
5399
|
+
value = INTRINSICS[intrinsicRealName];
|
|
5400
|
+
} else if (value != null) {
|
|
5401
|
+
if (!(part in value)) {
|
|
5402
|
+
if (!allowMissing) {
|
|
5403
|
+
throw new $TypeError('base intrinsic for ' + name + ' exists, but the property is not available.');
|
|
5404
|
+
}
|
|
5405
|
+
return void undefined;
|
|
5406
|
+
}
|
|
5407
|
+
if ($gOPD && (i + 1) >= parts.length) {
|
|
5408
|
+
var desc = $gOPD(value, part);
|
|
5409
|
+
isOwn = !!desc;
|
|
5410
|
+
|
|
5411
|
+
// By convention, when a data property is converted to an accessor
|
|
5412
|
+
// property to emulate a data property that does not suffer from
|
|
5413
|
+
// the override mistake, that accessor's getter is marked with
|
|
5414
|
+
// an `originalValue` property. Here, when we detect this, we
|
|
5415
|
+
// uphold the illusion by pretending to see that original data
|
|
5416
|
+
// property, i.e., returning the value rather than the getter
|
|
5417
|
+
// itself.
|
|
5418
|
+
if (isOwn && 'get' in desc && !('originalValue' in desc.get)) {
|
|
5419
|
+
value = desc.get;
|
|
5420
|
+
} else {
|
|
5421
|
+
value = value[part];
|
|
5422
|
+
}
|
|
5423
|
+
} else {
|
|
5424
|
+
isOwn = hasOwn(value, part);
|
|
5425
|
+
value = value[part];
|
|
5426
|
+
}
|
|
5427
|
+
|
|
5428
|
+
if (isOwn && !skipFurtherCaching) {
|
|
5429
|
+
INTRINSICS[intrinsicRealName] = value;
|
|
5430
|
+
}
|
|
5431
|
+
}
|
|
5432
|
+
}
|
|
5433
|
+
return value;
|
|
5434
|
+
};
|
|
5435
|
+
|
|
5436
|
+
},{"function-bind":43,"has":47,"has-symbols":45}],45:[function(require,module,exports){
|
|
5437
|
+
'use strict';
|
|
5438
|
+
|
|
5439
|
+
var origSymbol = typeof Symbol !== 'undefined' && Symbol;
|
|
5440
|
+
var hasSymbolSham = require('./shams');
|
|
5441
|
+
|
|
5442
|
+
module.exports = function hasNativeSymbols() {
|
|
5443
|
+
if (typeof origSymbol !== 'function') { return false; }
|
|
5444
|
+
if (typeof Symbol !== 'function') { return false; }
|
|
5445
|
+
if (typeof origSymbol('foo') !== 'symbol') { return false; }
|
|
5446
|
+
if (typeof Symbol('bar') !== 'symbol') { return false; }
|
|
5447
|
+
|
|
5448
|
+
return hasSymbolSham();
|
|
5449
|
+
};
|
|
5450
|
+
|
|
5451
|
+
},{"./shams":46}],46:[function(require,module,exports){
|
|
5452
|
+
'use strict';
|
|
5453
|
+
|
|
5454
|
+
/* eslint complexity: [2, 18], max-statements: [2, 33] */
|
|
5455
|
+
module.exports = function hasSymbols() {
|
|
5456
|
+
if (typeof Symbol !== 'function' || typeof Object.getOwnPropertySymbols !== 'function') { return false; }
|
|
5457
|
+
if (typeof Symbol.iterator === 'symbol') { return true; }
|
|
5458
|
+
|
|
5459
|
+
var obj = {};
|
|
5460
|
+
var sym = Symbol('test');
|
|
5461
|
+
var symObj = Object(sym);
|
|
5462
|
+
if (typeof sym === 'string') { return false; }
|
|
5463
|
+
|
|
5464
|
+
if (Object.prototype.toString.call(sym) !== '[object Symbol]') { return false; }
|
|
5465
|
+
if (Object.prototype.toString.call(symObj) !== '[object Symbol]') { return false; }
|
|
5466
|
+
|
|
5467
|
+
// temp disabled per https://github.com/ljharb/object.assign/issues/17
|
|
5468
|
+
// if (sym instanceof Symbol) { return false; }
|
|
5469
|
+
// temp disabled per https://github.com/WebReflection/get-own-property-symbols/issues/4
|
|
5470
|
+
// if (!(symObj instanceof Symbol)) { return false; }
|
|
5471
|
+
|
|
5472
|
+
// if (typeof Symbol.prototype.toString !== 'function') { return false; }
|
|
5473
|
+
// if (String(sym) !== Symbol.prototype.toString.call(sym)) { return false; }
|
|
5474
|
+
|
|
5475
|
+
var symVal = 42;
|
|
5476
|
+
obj[sym] = symVal;
|
|
5477
|
+
for (sym in obj) { return false; } // eslint-disable-line no-restricted-syntax, no-unreachable-loop
|
|
5478
|
+
if (typeof Object.keys === 'function' && Object.keys(obj).length !== 0) { return false; }
|
|
5479
|
+
|
|
5480
|
+
if (typeof Object.getOwnPropertyNames === 'function' && Object.getOwnPropertyNames(obj).length !== 0) { return false; }
|
|
5481
|
+
|
|
5482
|
+
var syms = Object.getOwnPropertySymbols(obj);
|
|
5483
|
+
if (syms.length !== 1 || syms[0] !== sym) { return false; }
|
|
5484
|
+
|
|
5485
|
+
if (!Object.prototype.propertyIsEnumerable.call(obj, sym)) { return false; }
|
|
5486
|
+
|
|
5487
|
+
if (typeof Object.getOwnPropertyDescriptor === 'function') {
|
|
5488
|
+
var descriptor = Object.getOwnPropertyDescriptor(obj, sym);
|
|
5489
|
+
if (descriptor.value !== symVal || descriptor.enumerable !== true) { return false; }
|
|
5490
|
+
}
|
|
5491
|
+
|
|
5492
|
+
return true;
|
|
5493
|
+
};
|
|
5494
|
+
|
|
5495
|
+
},{}],47:[function(require,module,exports){
|
|
5496
|
+
'use strict';
|
|
5497
|
+
|
|
5498
|
+
var bind = require('function-bind');
|
|
5499
|
+
|
|
5500
|
+
module.exports = bind.call(Function.call, Object.prototype.hasOwnProperty);
|
|
5501
|
+
|
|
5502
|
+
},{"function-bind":43}],48:[function(require,module,exports){
|
|
5503
|
+
var hasMap = typeof Map === 'function' && Map.prototype;
|
|
5504
|
+
var mapSizeDescriptor = Object.getOwnPropertyDescriptor && hasMap ? Object.getOwnPropertyDescriptor(Map.prototype, 'size') : null;
|
|
5505
|
+
var mapSize = hasMap && mapSizeDescriptor && typeof mapSizeDescriptor.get === 'function' ? mapSizeDescriptor.get : null;
|
|
5506
|
+
var mapForEach = hasMap && Map.prototype.forEach;
|
|
5507
|
+
var hasSet = typeof Set === 'function' && Set.prototype;
|
|
5508
|
+
var setSizeDescriptor = Object.getOwnPropertyDescriptor && hasSet ? Object.getOwnPropertyDescriptor(Set.prototype, 'size') : null;
|
|
5509
|
+
var setSize = hasSet && setSizeDescriptor && typeof setSizeDescriptor.get === 'function' ? setSizeDescriptor.get : null;
|
|
5510
|
+
var setForEach = hasSet && Set.prototype.forEach;
|
|
5511
|
+
var hasWeakMap = typeof WeakMap === 'function' && WeakMap.prototype;
|
|
5512
|
+
var weakMapHas = hasWeakMap ? WeakMap.prototype.has : null;
|
|
5513
|
+
var hasWeakSet = typeof WeakSet === 'function' && WeakSet.prototype;
|
|
5514
|
+
var weakSetHas = hasWeakSet ? WeakSet.prototype.has : null;
|
|
5515
|
+
var hasWeakRef = typeof WeakRef === 'function' && WeakRef.prototype;
|
|
5516
|
+
var weakRefDeref = hasWeakRef ? WeakRef.prototype.deref : null;
|
|
5517
|
+
var booleanValueOf = Boolean.prototype.valueOf;
|
|
5518
|
+
var objectToString = Object.prototype.toString;
|
|
5519
|
+
var functionToString = Function.prototype.toString;
|
|
5520
|
+
var $match = String.prototype.match;
|
|
5521
|
+
var $slice = String.prototype.slice;
|
|
5522
|
+
var $replace = String.prototype.replace;
|
|
5523
|
+
var $toUpperCase = String.prototype.toUpperCase;
|
|
5524
|
+
var $toLowerCase = String.prototype.toLowerCase;
|
|
5525
|
+
var $test = RegExp.prototype.test;
|
|
5526
|
+
var $concat = Array.prototype.concat;
|
|
5527
|
+
var $join = Array.prototype.join;
|
|
5528
|
+
var $arrSlice = Array.prototype.slice;
|
|
5529
|
+
var $floor = Math.floor;
|
|
5530
|
+
var bigIntValueOf = typeof BigInt === 'function' ? BigInt.prototype.valueOf : null;
|
|
5531
|
+
var gOPS = Object.getOwnPropertySymbols;
|
|
5532
|
+
var symToString = typeof Symbol === 'function' && typeof Symbol.iterator === 'symbol' ? Symbol.prototype.toString : null;
|
|
5533
|
+
var hasShammedSymbols = typeof Symbol === 'function' && typeof Symbol.iterator === 'object';
|
|
5534
|
+
// ie, `has-tostringtag/shams
|
|
5535
|
+
var toStringTag = typeof Symbol === 'function' && Symbol.toStringTag && (typeof Symbol.toStringTag === hasShammedSymbols ? 'object' : 'symbol')
|
|
5536
|
+
? Symbol.toStringTag
|
|
5537
|
+
: null;
|
|
5538
|
+
var isEnumerable = Object.prototype.propertyIsEnumerable;
|
|
5539
|
+
|
|
5540
|
+
var gPO = (typeof Reflect === 'function' ? Reflect.getPrototypeOf : Object.getPrototypeOf) || (
|
|
5541
|
+
[].__proto__ === Array.prototype // eslint-disable-line no-proto
|
|
5542
|
+
? function (O) {
|
|
5543
|
+
return O.__proto__; // eslint-disable-line no-proto
|
|
5544
|
+
}
|
|
5545
|
+
: null
|
|
5546
|
+
);
|
|
5547
|
+
|
|
5548
|
+
function addNumericSeparator(num, str) {
|
|
5549
|
+
if (
|
|
5550
|
+
num === Infinity
|
|
5551
|
+
|| num === -Infinity
|
|
5552
|
+
|| num !== num
|
|
5553
|
+
|| (num && num > -1000 && num < 1000)
|
|
5554
|
+
|| $test.call(/e/, str)
|
|
5555
|
+
) {
|
|
5556
|
+
return str;
|
|
5557
|
+
}
|
|
5558
|
+
var sepRegex = /[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;
|
|
5559
|
+
if (typeof num === 'number') {
|
|
5560
|
+
var int = num < 0 ? -$floor(-num) : $floor(num); // trunc(num)
|
|
5561
|
+
if (int !== num) {
|
|
5562
|
+
var intStr = String(int);
|
|
5563
|
+
var dec = $slice.call(str, intStr.length + 1);
|
|
5564
|
+
return $replace.call(intStr, sepRegex, '$&_') + '.' + $replace.call($replace.call(dec, /([0-9]{3})/g, '$&_'), /_$/, '');
|
|
5565
|
+
}
|
|
5566
|
+
}
|
|
5567
|
+
return $replace.call(str, sepRegex, '$&_');
|
|
5568
|
+
}
|
|
5569
|
+
|
|
5570
|
+
var utilInspect = require('./util.inspect');
|
|
5571
|
+
var inspectCustom = utilInspect.custom;
|
|
5572
|
+
var inspectSymbol = isSymbol(inspectCustom) ? inspectCustom : null;
|
|
5573
|
+
|
|
5574
|
+
module.exports = function inspect_(obj, options, depth, seen) {
|
|
5575
|
+
var opts = options || {};
|
|
5576
|
+
|
|
5577
|
+
if (has(opts, 'quoteStyle') && (opts.quoteStyle !== 'single' && opts.quoteStyle !== 'double')) {
|
|
5578
|
+
throw new TypeError('option "quoteStyle" must be "single" or "double"');
|
|
5579
|
+
}
|
|
5580
|
+
if (
|
|
5581
|
+
has(opts, 'maxStringLength') && (typeof opts.maxStringLength === 'number'
|
|
5582
|
+
? opts.maxStringLength < 0 && opts.maxStringLength !== Infinity
|
|
5583
|
+
: opts.maxStringLength !== null
|
|
5584
|
+
)
|
|
5585
|
+
) {
|
|
5586
|
+
throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');
|
|
5587
|
+
}
|
|
5588
|
+
var customInspect = has(opts, 'customInspect') ? opts.customInspect : true;
|
|
5589
|
+
if (typeof customInspect !== 'boolean' && customInspect !== 'symbol') {
|
|
5590
|
+
throw new TypeError('option "customInspect", if provided, must be `true`, `false`, or `\'symbol\'`');
|
|
5591
|
+
}
|
|
5592
|
+
|
|
5593
|
+
if (
|
|
5594
|
+
has(opts, 'indent')
|
|
5595
|
+
&& opts.indent !== null
|
|
5596
|
+
&& opts.indent !== '\t'
|
|
5597
|
+
&& !(parseInt(opts.indent, 10) === opts.indent && opts.indent > 0)
|
|
5598
|
+
) {
|
|
5599
|
+
throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');
|
|
5600
|
+
}
|
|
5601
|
+
if (has(opts, 'numericSeparator') && typeof opts.numericSeparator !== 'boolean') {
|
|
5602
|
+
throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');
|
|
5603
|
+
}
|
|
5604
|
+
var numericSeparator = opts.numericSeparator;
|
|
5605
|
+
|
|
5606
|
+
if (typeof obj === 'undefined') {
|
|
5607
|
+
return 'undefined';
|
|
5608
|
+
}
|
|
5609
|
+
if (obj === null) {
|
|
5610
|
+
return 'null';
|
|
5611
|
+
}
|
|
5612
|
+
if (typeof obj === 'boolean') {
|
|
5613
|
+
return obj ? 'true' : 'false';
|
|
5614
|
+
}
|
|
5615
|
+
|
|
5616
|
+
if (typeof obj === 'string') {
|
|
5617
|
+
return inspectString(obj, opts);
|
|
5618
|
+
}
|
|
5619
|
+
if (typeof obj === 'number') {
|
|
5620
|
+
if (obj === 0) {
|
|
5621
|
+
return Infinity / obj > 0 ? '0' : '-0';
|
|
5622
|
+
}
|
|
5623
|
+
var str = String(obj);
|
|
5624
|
+
return numericSeparator ? addNumericSeparator(obj, str) : str;
|
|
5625
|
+
}
|
|
5626
|
+
if (typeof obj === 'bigint') {
|
|
5627
|
+
var bigIntStr = String(obj) + 'n';
|
|
5628
|
+
return numericSeparator ? addNumericSeparator(obj, bigIntStr) : bigIntStr;
|
|
5629
|
+
}
|
|
5630
|
+
|
|
5631
|
+
var maxDepth = typeof opts.depth === 'undefined' ? 5 : opts.depth;
|
|
5632
|
+
if (typeof depth === 'undefined') { depth = 0; }
|
|
5633
|
+
if (depth >= maxDepth && maxDepth > 0 && typeof obj === 'object') {
|
|
5634
|
+
return isArray(obj) ? '[Array]' : '[Object]';
|
|
5635
|
+
}
|
|
5636
|
+
|
|
5637
|
+
var indent = getIndent(opts, depth);
|
|
5638
|
+
|
|
5639
|
+
if (typeof seen === 'undefined') {
|
|
5640
|
+
seen = [];
|
|
5641
|
+
} else if (indexOf(seen, obj) >= 0) {
|
|
5642
|
+
return '[Circular]';
|
|
5643
|
+
}
|
|
5644
|
+
|
|
5645
|
+
function inspect(value, from, noIndent) {
|
|
5646
|
+
if (from) {
|
|
5647
|
+
seen = $arrSlice.call(seen);
|
|
5648
|
+
seen.push(from);
|
|
5649
|
+
}
|
|
5650
|
+
if (noIndent) {
|
|
5651
|
+
var newOpts = {
|
|
5652
|
+
depth: opts.depth
|
|
5653
|
+
};
|
|
5654
|
+
if (has(opts, 'quoteStyle')) {
|
|
5655
|
+
newOpts.quoteStyle = opts.quoteStyle;
|
|
5656
|
+
}
|
|
5657
|
+
return inspect_(value, newOpts, depth + 1, seen);
|
|
5658
|
+
}
|
|
5659
|
+
return inspect_(value, opts, depth + 1, seen);
|
|
5660
|
+
}
|
|
5661
|
+
|
|
5662
|
+
if (typeof obj === 'function' && !isRegExp(obj)) { // in older engines, regexes are callable
|
|
5663
|
+
var name = nameOf(obj);
|
|
5664
|
+
var keys = arrObjKeys(obj, inspect);
|
|
5665
|
+
return '[Function' + (name ? ': ' + name : ' (anonymous)') + ']' + (keys.length > 0 ? ' { ' + $join.call(keys, ', ') + ' }' : '');
|
|
5666
|
+
}
|
|
5667
|
+
if (isSymbol(obj)) {
|
|
5668
|
+
var symString = hasShammedSymbols ? $replace.call(String(obj), /^(Symbol\(.*\))_[^)]*$/, '$1') : symToString.call(obj);
|
|
5669
|
+
return typeof obj === 'object' && !hasShammedSymbols ? markBoxed(symString) : symString;
|
|
5670
|
+
}
|
|
5671
|
+
if (isElement(obj)) {
|
|
5672
|
+
var s = '<' + $toLowerCase.call(String(obj.nodeName));
|
|
5673
|
+
var attrs = obj.attributes || [];
|
|
5674
|
+
for (var i = 0; i < attrs.length; i++) {
|
|
5675
|
+
s += ' ' + attrs[i].name + '=' + wrapQuotes(quote(attrs[i].value), 'double', opts);
|
|
5676
|
+
}
|
|
5677
|
+
s += '>';
|
|
5678
|
+
if (obj.childNodes && obj.childNodes.length) { s += '...'; }
|
|
5679
|
+
s += '</' + $toLowerCase.call(String(obj.nodeName)) + '>';
|
|
5680
|
+
return s;
|
|
5681
|
+
}
|
|
5682
|
+
if (isArray(obj)) {
|
|
5683
|
+
if (obj.length === 0) { return '[]'; }
|
|
5684
|
+
var xs = arrObjKeys(obj, inspect);
|
|
5685
|
+
if (indent && !singleLineValues(xs)) {
|
|
5686
|
+
return '[' + indentedJoin(xs, indent) + ']';
|
|
5687
|
+
}
|
|
5688
|
+
return '[ ' + $join.call(xs, ', ') + ' ]';
|
|
5689
|
+
}
|
|
5690
|
+
if (isError(obj)) {
|
|
5691
|
+
var parts = arrObjKeys(obj, inspect);
|
|
5692
|
+
if (!('cause' in Error.prototype) && 'cause' in obj && !isEnumerable.call(obj, 'cause')) {
|
|
5693
|
+
return '{ [' + String(obj) + '] ' + $join.call($concat.call('[cause]: ' + inspect(obj.cause), parts), ', ') + ' }';
|
|
5694
|
+
}
|
|
5695
|
+
if (parts.length === 0) { return '[' + String(obj) + ']'; }
|
|
5696
|
+
return '{ [' + String(obj) + '] ' + $join.call(parts, ', ') + ' }';
|
|
5697
|
+
}
|
|
5698
|
+
if (typeof obj === 'object' && customInspect) {
|
|
5699
|
+
if (inspectSymbol && typeof obj[inspectSymbol] === 'function' && utilInspect) {
|
|
5700
|
+
return utilInspect(obj, { depth: maxDepth - depth });
|
|
5701
|
+
} else if (customInspect !== 'symbol' && typeof obj.inspect === 'function') {
|
|
5702
|
+
return obj.inspect();
|
|
5703
|
+
}
|
|
5704
|
+
}
|
|
5705
|
+
if (isMap(obj)) {
|
|
5706
|
+
var mapParts = [];
|
|
5707
|
+
mapForEach.call(obj, function (value, key) {
|
|
5708
|
+
mapParts.push(inspect(key, obj, true) + ' => ' + inspect(value, obj));
|
|
5709
|
+
});
|
|
5710
|
+
return collectionOf('Map', mapSize.call(obj), mapParts, indent);
|
|
5711
|
+
}
|
|
5712
|
+
if (isSet(obj)) {
|
|
5713
|
+
var setParts = [];
|
|
5714
|
+
setForEach.call(obj, function (value) {
|
|
5715
|
+
setParts.push(inspect(value, obj));
|
|
5716
|
+
});
|
|
5717
|
+
return collectionOf('Set', setSize.call(obj), setParts, indent);
|
|
5718
|
+
}
|
|
5719
|
+
if (isWeakMap(obj)) {
|
|
5720
|
+
return weakCollectionOf('WeakMap');
|
|
5721
|
+
}
|
|
5722
|
+
if (isWeakSet(obj)) {
|
|
5723
|
+
return weakCollectionOf('WeakSet');
|
|
5724
|
+
}
|
|
5725
|
+
if (isWeakRef(obj)) {
|
|
5726
|
+
return weakCollectionOf('WeakRef');
|
|
5727
|
+
}
|
|
5728
|
+
if (isNumber(obj)) {
|
|
5729
|
+
return markBoxed(inspect(Number(obj)));
|
|
5730
|
+
}
|
|
5731
|
+
if (isBigInt(obj)) {
|
|
5732
|
+
return markBoxed(inspect(bigIntValueOf.call(obj)));
|
|
5733
|
+
}
|
|
5734
|
+
if (isBoolean(obj)) {
|
|
5735
|
+
return markBoxed(booleanValueOf.call(obj));
|
|
5736
|
+
}
|
|
5737
|
+
if (isString(obj)) {
|
|
5738
|
+
return markBoxed(inspect(String(obj)));
|
|
5739
|
+
}
|
|
5740
|
+
if (!isDate(obj) && !isRegExp(obj)) {
|
|
5741
|
+
var ys = arrObjKeys(obj, inspect);
|
|
5742
|
+
var isPlainObject = gPO ? gPO(obj) === Object.prototype : obj instanceof Object || obj.constructor === Object;
|
|
5743
|
+
var protoTag = obj instanceof Object ? '' : 'null prototype';
|
|
5744
|
+
var stringTag = !isPlainObject && toStringTag && Object(obj) === obj && toStringTag in obj ? $slice.call(toStr(obj), 8, -1) : protoTag ? 'Object' : '';
|
|
5745
|
+
var constructorTag = isPlainObject || typeof obj.constructor !== 'function' ? '' : obj.constructor.name ? obj.constructor.name + ' ' : '';
|
|
5746
|
+
var tag = constructorTag + (stringTag || protoTag ? '[' + $join.call($concat.call([], stringTag || [], protoTag || []), ': ') + '] ' : '');
|
|
5747
|
+
if (ys.length === 0) { return tag + '{}'; }
|
|
5748
|
+
if (indent) {
|
|
5749
|
+
return tag + '{' + indentedJoin(ys, indent) + '}';
|
|
5750
|
+
}
|
|
5751
|
+
return tag + '{ ' + $join.call(ys, ', ') + ' }';
|
|
5752
|
+
}
|
|
5753
|
+
return String(obj);
|
|
5754
|
+
};
|
|
5755
|
+
|
|
5756
|
+
function wrapQuotes(s, defaultStyle, opts) {
|
|
5757
|
+
var quoteChar = (opts.quoteStyle || defaultStyle) === 'double' ? '"' : "'";
|
|
5758
|
+
return quoteChar + s + quoteChar;
|
|
5759
|
+
}
|
|
5760
|
+
|
|
5761
|
+
function quote(s) {
|
|
5762
|
+
return $replace.call(String(s), /"/g, '"');
|
|
5763
|
+
}
|
|
5764
|
+
|
|
5765
|
+
function isArray(obj) { return toStr(obj) === '[object Array]' && (!toStringTag || !(typeof obj === 'object' && toStringTag in obj)); }
|
|
5766
|
+
function isDate(obj) { return toStr(obj) === '[object Date]' && (!toStringTag || !(typeof obj === 'object' && toStringTag in obj)); }
|
|
5767
|
+
function isRegExp(obj) { return toStr(obj) === '[object RegExp]' && (!toStringTag || !(typeof obj === 'object' && toStringTag in obj)); }
|
|
5768
|
+
function isError(obj) { return toStr(obj) === '[object Error]' && (!toStringTag || !(typeof obj === 'object' && toStringTag in obj)); }
|
|
5769
|
+
function isString(obj) { return toStr(obj) === '[object String]' && (!toStringTag || !(typeof obj === 'object' && toStringTag in obj)); }
|
|
5770
|
+
function isNumber(obj) { return toStr(obj) === '[object Number]' && (!toStringTag || !(typeof obj === 'object' && toStringTag in obj)); }
|
|
5771
|
+
function isBoolean(obj) { return toStr(obj) === '[object Boolean]' && (!toStringTag || !(typeof obj === 'object' && toStringTag in obj)); }
|
|
5772
|
+
|
|
5773
|
+
// Symbol and BigInt do have Symbol.toStringTag by spec, so that can't be used to eliminate false positives
|
|
5774
|
+
function isSymbol(obj) {
|
|
5775
|
+
if (hasShammedSymbols) {
|
|
5776
|
+
return obj && typeof obj === 'object' && obj instanceof Symbol;
|
|
5777
|
+
}
|
|
5778
|
+
if (typeof obj === 'symbol') {
|
|
5779
|
+
return true;
|
|
5780
|
+
}
|
|
5781
|
+
if (!obj || typeof obj !== 'object' || !symToString) {
|
|
5782
|
+
return false;
|
|
5783
|
+
}
|
|
5784
|
+
try {
|
|
5785
|
+
symToString.call(obj);
|
|
5786
|
+
return true;
|
|
5787
|
+
} catch (e) {}
|
|
5788
|
+
return false;
|
|
5789
|
+
}
|
|
5790
|
+
|
|
5791
|
+
function isBigInt(obj) {
|
|
5792
|
+
if (!obj || typeof obj !== 'object' || !bigIntValueOf) {
|
|
5793
|
+
return false;
|
|
5794
|
+
}
|
|
5795
|
+
try {
|
|
5796
|
+
bigIntValueOf.call(obj);
|
|
5797
|
+
return true;
|
|
5798
|
+
} catch (e) {}
|
|
5799
|
+
return false;
|
|
5800
|
+
}
|
|
5801
|
+
|
|
5802
|
+
var hasOwn = Object.prototype.hasOwnProperty || function (key) { return key in this; };
|
|
5803
|
+
function has(obj, key) {
|
|
5804
|
+
return hasOwn.call(obj, key);
|
|
5805
|
+
}
|
|
5806
|
+
|
|
5807
|
+
function toStr(obj) {
|
|
5808
|
+
return objectToString.call(obj);
|
|
5809
|
+
}
|
|
5810
|
+
|
|
5811
|
+
function nameOf(f) {
|
|
5812
|
+
if (f.name) { return f.name; }
|
|
5813
|
+
var m = $match.call(functionToString.call(f), /^function\s*([\w$]+)/);
|
|
5814
|
+
if (m) { return m[1]; }
|
|
5815
|
+
return null;
|
|
5816
|
+
}
|
|
5817
|
+
|
|
5818
|
+
function indexOf(xs, x) {
|
|
5819
|
+
if (xs.indexOf) { return xs.indexOf(x); }
|
|
5820
|
+
for (var i = 0, l = xs.length; i < l; i++) {
|
|
5821
|
+
if (xs[i] === x) { return i; }
|
|
5822
|
+
}
|
|
5823
|
+
return -1;
|
|
5824
|
+
}
|
|
5825
|
+
|
|
5826
|
+
function isMap(x) {
|
|
5827
|
+
if (!mapSize || !x || typeof x !== 'object') {
|
|
5828
|
+
return false;
|
|
5829
|
+
}
|
|
5830
|
+
try {
|
|
5831
|
+
mapSize.call(x);
|
|
5832
|
+
try {
|
|
5833
|
+
setSize.call(x);
|
|
5834
|
+
} catch (s) {
|
|
5835
|
+
return true;
|
|
5836
|
+
}
|
|
5837
|
+
return x instanceof Map; // core-js workaround, pre-v2.5.0
|
|
5838
|
+
} catch (e) {}
|
|
5839
|
+
return false;
|
|
5840
|
+
}
|
|
5841
|
+
|
|
5842
|
+
function isWeakMap(x) {
|
|
5843
|
+
if (!weakMapHas || !x || typeof x !== 'object') {
|
|
5844
|
+
return false;
|
|
5845
|
+
}
|
|
5846
|
+
try {
|
|
5847
|
+
weakMapHas.call(x, weakMapHas);
|
|
5848
|
+
try {
|
|
5849
|
+
weakSetHas.call(x, weakSetHas);
|
|
5850
|
+
} catch (s) {
|
|
5851
|
+
return true;
|
|
5852
|
+
}
|
|
5853
|
+
return x instanceof WeakMap; // core-js workaround, pre-v2.5.0
|
|
5854
|
+
} catch (e) {}
|
|
5855
|
+
return false;
|
|
5856
|
+
}
|
|
5857
|
+
|
|
5858
|
+
function isWeakRef(x) {
|
|
5859
|
+
if (!weakRefDeref || !x || typeof x !== 'object') {
|
|
5860
|
+
return false;
|
|
5861
|
+
}
|
|
5862
|
+
try {
|
|
5863
|
+
weakRefDeref.call(x);
|
|
5864
|
+
return true;
|
|
5865
|
+
} catch (e) {}
|
|
5866
|
+
return false;
|
|
5867
|
+
}
|
|
5868
|
+
|
|
5869
|
+
function isSet(x) {
|
|
5870
|
+
if (!setSize || !x || typeof x !== 'object') {
|
|
5871
|
+
return false;
|
|
5872
|
+
}
|
|
5873
|
+
try {
|
|
5874
|
+
setSize.call(x);
|
|
5875
|
+
try {
|
|
5876
|
+
mapSize.call(x);
|
|
5877
|
+
} catch (m) {
|
|
5878
|
+
return true;
|
|
5879
|
+
}
|
|
5880
|
+
return x instanceof Set; // core-js workaround, pre-v2.5.0
|
|
5881
|
+
} catch (e) {}
|
|
5882
|
+
return false;
|
|
5883
|
+
}
|
|
5884
|
+
|
|
5885
|
+
function isWeakSet(x) {
|
|
5886
|
+
if (!weakSetHas || !x || typeof x !== 'object') {
|
|
5887
|
+
return false;
|
|
5888
|
+
}
|
|
5889
|
+
try {
|
|
5890
|
+
weakSetHas.call(x, weakSetHas);
|
|
5891
|
+
try {
|
|
5892
|
+
weakMapHas.call(x, weakMapHas);
|
|
5893
|
+
} catch (s) {
|
|
5894
|
+
return true;
|
|
5895
|
+
}
|
|
5896
|
+
return x instanceof WeakSet; // core-js workaround, pre-v2.5.0
|
|
5897
|
+
} catch (e) {}
|
|
5898
|
+
return false;
|
|
5899
|
+
}
|
|
5900
|
+
|
|
5901
|
+
function isElement(x) {
|
|
5902
|
+
if (!x || typeof x !== 'object') { return false; }
|
|
5903
|
+
if (typeof HTMLElement !== 'undefined' && x instanceof HTMLElement) {
|
|
5904
|
+
return true;
|
|
5905
|
+
}
|
|
5906
|
+
return typeof x.nodeName === 'string' && typeof x.getAttribute === 'function';
|
|
5907
|
+
}
|
|
5908
|
+
|
|
5909
|
+
function inspectString(str, opts) {
|
|
5910
|
+
if (str.length > opts.maxStringLength) {
|
|
5911
|
+
var remaining = str.length - opts.maxStringLength;
|
|
5912
|
+
var trailer = '... ' + remaining + ' more character' + (remaining > 1 ? 's' : '');
|
|
5913
|
+
return inspectString($slice.call(str, 0, opts.maxStringLength), opts) + trailer;
|
|
5914
|
+
}
|
|
5915
|
+
// eslint-disable-next-line no-control-regex
|
|
5916
|
+
var s = $replace.call($replace.call(str, /(['\\])/g, '\\$1'), /[\x00-\x1f]/g, lowbyte);
|
|
5917
|
+
return wrapQuotes(s, 'single', opts);
|
|
5918
|
+
}
|
|
5919
|
+
|
|
5920
|
+
function lowbyte(c) {
|
|
5921
|
+
var n = c.charCodeAt(0);
|
|
5922
|
+
var x = {
|
|
5923
|
+
8: 'b',
|
|
5924
|
+
9: 't',
|
|
5925
|
+
10: 'n',
|
|
5926
|
+
12: 'f',
|
|
5927
|
+
13: 'r'
|
|
5928
|
+
}[n];
|
|
5929
|
+
if (x) { return '\\' + x; }
|
|
5930
|
+
return '\\x' + (n < 0x10 ? '0' : '') + $toUpperCase.call(n.toString(16));
|
|
5931
|
+
}
|
|
5932
|
+
|
|
5933
|
+
function markBoxed(str) {
|
|
5934
|
+
return 'Object(' + str + ')';
|
|
5935
|
+
}
|
|
5936
|
+
|
|
5937
|
+
function weakCollectionOf(type) {
|
|
5938
|
+
return type + ' { ? }';
|
|
5939
|
+
}
|
|
5940
|
+
|
|
5941
|
+
function collectionOf(type, size, entries, indent) {
|
|
5942
|
+
var joinedEntries = indent ? indentedJoin(entries, indent) : $join.call(entries, ', ');
|
|
5943
|
+
return type + ' (' + size + ') {' + joinedEntries + '}';
|
|
5944
|
+
}
|
|
5945
|
+
|
|
5946
|
+
function singleLineValues(xs) {
|
|
5947
|
+
for (var i = 0; i < xs.length; i++) {
|
|
5948
|
+
if (indexOf(xs[i], '\n') >= 0) {
|
|
5949
|
+
return false;
|
|
5950
|
+
}
|
|
5951
|
+
}
|
|
5952
|
+
return true;
|
|
5953
|
+
}
|
|
5954
|
+
|
|
5955
|
+
function getIndent(opts, depth) {
|
|
5956
|
+
var baseIndent;
|
|
5957
|
+
if (opts.indent === '\t') {
|
|
5958
|
+
baseIndent = '\t';
|
|
5959
|
+
} else if (typeof opts.indent === 'number' && opts.indent > 0) {
|
|
5960
|
+
baseIndent = $join.call(Array(opts.indent + 1), ' ');
|
|
5961
|
+
} else {
|
|
5962
|
+
return null;
|
|
5963
|
+
}
|
|
5964
|
+
return {
|
|
5965
|
+
base: baseIndent,
|
|
5966
|
+
prev: $join.call(Array(depth + 1), baseIndent)
|
|
5967
|
+
};
|
|
5968
|
+
}
|
|
5969
|
+
|
|
5970
|
+
function indentedJoin(xs, indent) {
|
|
5971
|
+
if (xs.length === 0) { return ''; }
|
|
5972
|
+
var lineJoiner = '\n' + indent.prev + indent.base;
|
|
5973
|
+
return lineJoiner + $join.call(xs, ',' + lineJoiner) + '\n' + indent.prev;
|
|
5974
|
+
}
|
|
5975
|
+
|
|
5976
|
+
function arrObjKeys(obj, inspect) {
|
|
5977
|
+
var isArr = isArray(obj);
|
|
5978
|
+
var xs = [];
|
|
5979
|
+
if (isArr) {
|
|
5980
|
+
xs.length = obj.length;
|
|
5981
|
+
for (var i = 0; i < obj.length; i++) {
|
|
5982
|
+
xs[i] = has(obj, i) ? inspect(obj[i], obj) : '';
|
|
5983
|
+
}
|
|
5984
|
+
}
|
|
5985
|
+
var syms = typeof gOPS === 'function' ? gOPS(obj) : [];
|
|
5986
|
+
var symMap;
|
|
5987
|
+
if (hasShammedSymbols) {
|
|
5988
|
+
symMap = {};
|
|
5989
|
+
for (var k = 0; k < syms.length; k++) {
|
|
5990
|
+
symMap['$' + syms[k]] = syms[k];
|
|
5991
|
+
}
|
|
5992
|
+
}
|
|
5993
|
+
|
|
5994
|
+
for (var key in obj) { // eslint-disable-line no-restricted-syntax
|
|
5995
|
+
if (!has(obj, key)) { continue; } // eslint-disable-line no-restricted-syntax, no-continue
|
|
5996
|
+
if (isArr && String(Number(key)) === key && key < obj.length) { continue; } // eslint-disable-line no-restricted-syntax, no-continue
|
|
5997
|
+
if (hasShammedSymbols && symMap['$' + key] instanceof Symbol) {
|
|
5998
|
+
// this is to prevent shammed Symbols, which are stored as strings, from being included in the string key section
|
|
5999
|
+
continue; // eslint-disable-line no-restricted-syntax, no-continue
|
|
6000
|
+
} else if ($test.call(/[^\w$]/, key)) {
|
|
6001
|
+
xs.push(inspect(key, obj) + ': ' + inspect(obj[key], obj));
|
|
6002
|
+
} else {
|
|
6003
|
+
xs.push(key + ': ' + inspect(obj[key], obj));
|
|
6004
|
+
}
|
|
6005
|
+
}
|
|
6006
|
+
if (typeof gOPS === 'function') {
|
|
6007
|
+
for (var j = 0; j < syms.length; j++) {
|
|
6008
|
+
if (isEnumerable.call(obj, syms[j])) {
|
|
6009
|
+
xs.push('[' + inspect(syms[j]) + ']: ' + inspect(obj[syms[j]], obj));
|
|
6010
|
+
}
|
|
6011
|
+
}
|
|
6012
|
+
}
|
|
6013
|
+
return xs;
|
|
6014
|
+
}
|
|
6015
|
+
|
|
6016
|
+
},{"./util.inspect":2}],49:[function(require,module,exports){
|
|
6017
|
+
'use strict';
|
|
6018
|
+
|
|
6019
|
+
var replace = String.prototype.replace;
|
|
6020
|
+
var percentTwenties = /%20/g;
|
|
6021
|
+
|
|
6022
|
+
var Format = {
|
|
6023
|
+
RFC1738: 'RFC1738',
|
|
6024
|
+
RFC3986: 'RFC3986'
|
|
6025
|
+
};
|
|
6026
|
+
|
|
6027
|
+
module.exports = {
|
|
6028
|
+
'default': Format.RFC3986,
|
|
6029
|
+
formatters: {
|
|
6030
|
+
RFC1738: function (value) {
|
|
6031
|
+
return replace.call(value, percentTwenties, '+');
|
|
6032
|
+
},
|
|
6033
|
+
RFC3986: function (value) {
|
|
6034
|
+
return String(value);
|
|
6035
|
+
}
|
|
6036
|
+
},
|
|
6037
|
+
RFC1738: Format.RFC1738,
|
|
6038
|
+
RFC3986: Format.RFC3986
|
|
6039
|
+
};
|
|
6040
|
+
|
|
6041
|
+
},{}],50:[function(require,module,exports){
|
|
6042
|
+
'use strict';
|
|
6043
|
+
|
|
6044
|
+
var stringify = require('./stringify');
|
|
6045
|
+
var parse = require('./parse');
|
|
6046
|
+
var formats = require('./formats');
|
|
6047
|
+
|
|
6048
|
+
module.exports = {
|
|
6049
|
+
formats: formats,
|
|
6050
|
+
parse: parse,
|
|
6051
|
+
stringify: stringify
|
|
6052
|
+
};
|
|
6053
|
+
|
|
6054
|
+
},{"./formats":49,"./parse":51,"./stringify":52}],51:[function(require,module,exports){
|
|
6055
|
+
'use strict';
|
|
6056
|
+
|
|
6057
|
+
var utils = require('./utils');
|
|
6058
|
+
|
|
6059
|
+
var has = Object.prototype.hasOwnProperty;
|
|
6060
|
+
var isArray = Array.isArray;
|
|
6061
|
+
|
|
6062
|
+
var defaults = {
|
|
6063
|
+
allowDots: false,
|
|
6064
|
+
allowPrototypes: false,
|
|
6065
|
+
allowSparse: false,
|
|
6066
|
+
arrayLimit: 20,
|
|
6067
|
+
charset: 'utf-8',
|
|
6068
|
+
charsetSentinel: false,
|
|
6069
|
+
comma: false,
|
|
6070
|
+
decoder: utils.decode,
|
|
6071
|
+
delimiter: '&',
|
|
6072
|
+
depth: 5,
|
|
6073
|
+
ignoreQueryPrefix: false,
|
|
6074
|
+
interpretNumericEntities: false,
|
|
6075
|
+
parameterLimit: 1000,
|
|
6076
|
+
parseArrays: true,
|
|
6077
|
+
plainObjects: false,
|
|
6078
|
+
strictNullHandling: false
|
|
6079
|
+
};
|
|
6080
|
+
|
|
6081
|
+
var interpretNumericEntities = function (str) {
|
|
6082
|
+
return str.replace(/&#(\d+);/g, function ($0, numberStr) {
|
|
6083
|
+
return String.fromCharCode(parseInt(numberStr, 10));
|
|
6084
|
+
});
|
|
6085
|
+
};
|
|
6086
|
+
|
|
6087
|
+
var parseArrayValue = function (val, options) {
|
|
6088
|
+
if (val && typeof val === 'string' && options.comma && val.indexOf(',') > -1) {
|
|
6089
|
+
return val.split(',');
|
|
6090
|
+
}
|
|
6091
|
+
|
|
6092
|
+
return val;
|
|
6093
|
+
};
|
|
6094
|
+
|
|
6095
|
+
// This is what browsers will submit when the ✓ character occurs in an
|
|
6096
|
+
// application/x-www-form-urlencoded body and the encoding of the page containing
|
|
6097
|
+
// the form is iso-8859-1, or when the submitted form has an accept-charset
|
|
6098
|
+
// attribute of iso-8859-1. Presumably also with other charsets that do not contain
|
|
6099
|
+
// the ✓ character, such as us-ascii.
|
|
6100
|
+
var isoSentinel = 'utf8=%26%2310003%3B'; // encodeURIComponent('✓')
|
|
6101
|
+
|
|
6102
|
+
// These are the percent-encoded utf-8 octets representing a checkmark, indicating that the request actually is utf-8 encoded.
|
|
6103
|
+
var charsetSentinel = 'utf8=%E2%9C%93'; // encodeURIComponent('✓')
|
|
6104
|
+
|
|
6105
|
+
var parseValues = function parseQueryStringValues(str, options) {
|
|
6106
|
+
var obj = {};
|
|
6107
|
+
var cleanStr = options.ignoreQueryPrefix ? str.replace(/^\?/, '') : str;
|
|
6108
|
+
var limit = options.parameterLimit === Infinity ? undefined : options.parameterLimit;
|
|
6109
|
+
var parts = cleanStr.split(options.delimiter, limit);
|
|
6110
|
+
var skipIndex = -1; // Keep track of where the utf8 sentinel was found
|
|
6111
|
+
var i;
|
|
6112
|
+
|
|
6113
|
+
var charset = options.charset;
|
|
6114
|
+
if (options.charsetSentinel) {
|
|
6115
|
+
for (i = 0; i < parts.length; ++i) {
|
|
6116
|
+
if (parts[i].indexOf('utf8=') === 0) {
|
|
6117
|
+
if (parts[i] === charsetSentinel) {
|
|
6118
|
+
charset = 'utf-8';
|
|
6119
|
+
} else if (parts[i] === isoSentinel) {
|
|
6120
|
+
charset = 'iso-8859-1';
|
|
6121
|
+
}
|
|
6122
|
+
skipIndex = i;
|
|
6123
|
+
i = parts.length; // The eslint settings do not allow break;
|
|
6124
|
+
}
|
|
6125
|
+
}
|
|
6126
|
+
}
|
|
6127
|
+
|
|
6128
|
+
for (i = 0; i < parts.length; ++i) {
|
|
6129
|
+
if (i === skipIndex) {
|
|
6130
|
+
continue;
|
|
6131
|
+
}
|
|
6132
|
+
var part = parts[i];
|
|
6133
|
+
|
|
6134
|
+
var bracketEqualsPos = part.indexOf(']=');
|
|
6135
|
+
var pos = bracketEqualsPos === -1 ? part.indexOf('=') : bracketEqualsPos + 1;
|
|
6136
|
+
|
|
6137
|
+
var key, val;
|
|
6138
|
+
if (pos === -1) {
|
|
6139
|
+
key = options.decoder(part, defaults.decoder, charset, 'key');
|
|
6140
|
+
val = options.strictNullHandling ? null : '';
|
|
6141
|
+
} else {
|
|
6142
|
+
key = options.decoder(part.slice(0, pos), defaults.decoder, charset, 'key');
|
|
6143
|
+
val = utils.maybeMap(
|
|
6144
|
+
parseArrayValue(part.slice(pos + 1), options),
|
|
6145
|
+
function (encodedVal) {
|
|
6146
|
+
return options.decoder(encodedVal, defaults.decoder, charset, 'value');
|
|
6147
|
+
}
|
|
6148
|
+
);
|
|
6149
|
+
}
|
|
6150
|
+
|
|
6151
|
+
if (val && options.interpretNumericEntities && charset === 'iso-8859-1') {
|
|
6152
|
+
val = interpretNumericEntities(val);
|
|
6153
|
+
}
|
|
6154
|
+
|
|
6155
|
+
if (part.indexOf('[]=') > -1) {
|
|
6156
|
+
val = isArray(val) ? [val] : val;
|
|
6157
|
+
}
|
|
6158
|
+
|
|
6159
|
+
if (has.call(obj, key)) {
|
|
6160
|
+
obj[key] = utils.combine(obj[key], val);
|
|
6161
|
+
} else {
|
|
6162
|
+
obj[key] = val;
|
|
6163
|
+
}
|
|
6164
|
+
}
|
|
6165
|
+
|
|
6166
|
+
return obj;
|
|
6167
|
+
};
|
|
6168
|
+
|
|
6169
|
+
var parseObject = function (chain, val, options, valuesParsed) {
|
|
6170
|
+
var leaf = valuesParsed ? val : parseArrayValue(val, options);
|
|
6171
|
+
|
|
6172
|
+
for (var i = chain.length - 1; i >= 0; --i) {
|
|
6173
|
+
var obj;
|
|
6174
|
+
var root = chain[i];
|
|
6175
|
+
|
|
6176
|
+
if (root === '[]' && options.parseArrays) {
|
|
6177
|
+
obj = [].concat(leaf);
|
|
6178
|
+
} else {
|
|
6179
|
+
obj = options.plainObjects ? Object.create(null) : {};
|
|
6180
|
+
var cleanRoot = root.charAt(0) === '[' && root.charAt(root.length - 1) === ']' ? root.slice(1, -1) : root;
|
|
6181
|
+
var index = parseInt(cleanRoot, 10);
|
|
6182
|
+
if (!options.parseArrays && cleanRoot === '') {
|
|
6183
|
+
obj = { 0: leaf };
|
|
6184
|
+
} else if (
|
|
6185
|
+
!isNaN(index)
|
|
6186
|
+
&& root !== cleanRoot
|
|
6187
|
+
&& String(index) === cleanRoot
|
|
6188
|
+
&& index >= 0
|
|
6189
|
+
&& (options.parseArrays && index <= options.arrayLimit)
|
|
6190
|
+
) {
|
|
6191
|
+
obj = [];
|
|
6192
|
+
obj[index] = leaf;
|
|
6193
|
+
} else if (cleanRoot !== '__proto__') {
|
|
6194
|
+
obj[cleanRoot] = leaf;
|
|
6195
|
+
}
|
|
6196
|
+
}
|
|
6197
|
+
|
|
6198
|
+
leaf = obj;
|
|
6199
|
+
}
|
|
6200
|
+
|
|
6201
|
+
return leaf;
|
|
6202
|
+
};
|
|
6203
|
+
|
|
6204
|
+
var parseKeys = function parseQueryStringKeys(givenKey, val, options, valuesParsed) {
|
|
6205
|
+
if (!givenKey) {
|
|
6206
|
+
return;
|
|
6207
|
+
}
|
|
6208
|
+
|
|
6209
|
+
// Transform dot notation to bracket notation
|
|
6210
|
+
var key = options.allowDots ? givenKey.replace(/\.([^.[]+)/g, '[$1]') : givenKey;
|
|
6211
|
+
|
|
6212
|
+
// The regex chunks
|
|
6213
|
+
|
|
6214
|
+
var brackets = /(\[[^[\]]*])/;
|
|
6215
|
+
var child = /(\[[^[\]]*])/g;
|
|
6216
|
+
|
|
6217
|
+
// Get the parent
|
|
6218
|
+
|
|
6219
|
+
var segment = options.depth > 0 && brackets.exec(key);
|
|
6220
|
+
var parent = segment ? key.slice(0, segment.index) : key;
|
|
6221
|
+
|
|
6222
|
+
// Stash the parent if it exists
|
|
6223
|
+
|
|
6224
|
+
var keys = [];
|
|
6225
|
+
if (parent) {
|
|
6226
|
+
// If we aren't using plain objects, optionally prefix keys that would overwrite object prototype properties
|
|
6227
|
+
if (!options.plainObjects && has.call(Object.prototype, parent)) {
|
|
6228
|
+
if (!options.allowPrototypes) {
|
|
6229
|
+
return;
|
|
6230
|
+
}
|
|
6231
|
+
}
|
|
6232
|
+
|
|
6233
|
+
keys.push(parent);
|
|
6234
|
+
}
|
|
6235
|
+
|
|
6236
|
+
// Loop through children appending to the array until we hit depth
|
|
6237
|
+
|
|
6238
|
+
var i = 0;
|
|
6239
|
+
while (options.depth > 0 && (segment = child.exec(key)) !== null && i < options.depth) {
|
|
6240
|
+
i += 1;
|
|
6241
|
+
if (!options.plainObjects && has.call(Object.prototype, segment[1].slice(1, -1))) {
|
|
6242
|
+
if (!options.allowPrototypes) {
|
|
6243
|
+
return;
|
|
6244
|
+
}
|
|
6245
|
+
}
|
|
6246
|
+
keys.push(segment[1]);
|
|
6247
|
+
}
|
|
6248
|
+
|
|
6249
|
+
// If there's a remainder, just add whatever is left
|
|
6250
|
+
|
|
6251
|
+
if (segment) {
|
|
6252
|
+
keys.push('[' + key.slice(segment.index) + ']');
|
|
6253
|
+
}
|
|
6254
|
+
|
|
6255
|
+
return parseObject(keys, val, options, valuesParsed);
|
|
6256
|
+
};
|
|
6257
|
+
|
|
6258
|
+
var normalizeParseOptions = function normalizeParseOptions(opts) {
|
|
6259
|
+
if (!opts) {
|
|
6260
|
+
return defaults;
|
|
6261
|
+
}
|
|
6262
|
+
|
|
6263
|
+
if (opts.decoder !== null && opts.decoder !== undefined && typeof opts.decoder !== 'function') {
|
|
6264
|
+
throw new TypeError('Decoder has to be a function.');
|
|
6265
|
+
}
|
|
6266
|
+
|
|
6267
|
+
if (typeof opts.charset !== 'undefined' && opts.charset !== 'utf-8' && opts.charset !== 'iso-8859-1') {
|
|
6268
|
+
throw new TypeError('The charset option must be either utf-8, iso-8859-1, or undefined');
|
|
6269
|
+
}
|
|
6270
|
+
var charset = typeof opts.charset === 'undefined' ? defaults.charset : opts.charset;
|
|
6271
|
+
|
|
6272
|
+
return {
|
|
6273
|
+
allowDots: typeof opts.allowDots === 'undefined' ? defaults.allowDots : !!opts.allowDots,
|
|
6274
|
+
allowPrototypes: typeof opts.allowPrototypes === 'boolean' ? opts.allowPrototypes : defaults.allowPrototypes,
|
|
6275
|
+
allowSparse: typeof opts.allowSparse === 'boolean' ? opts.allowSparse : defaults.allowSparse,
|
|
6276
|
+
arrayLimit: typeof opts.arrayLimit === 'number' ? opts.arrayLimit : defaults.arrayLimit,
|
|
6277
|
+
charset: charset,
|
|
6278
|
+
charsetSentinel: typeof opts.charsetSentinel === 'boolean' ? opts.charsetSentinel : defaults.charsetSentinel,
|
|
6279
|
+
comma: typeof opts.comma === 'boolean' ? opts.comma : defaults.comma,
|
|
6280
|
+
decoder: typeof opts.decoder === 'function' ? opts.decoder : defaults.decoder,
|
|
6281
|
+
delimiter: typeof opts.delimiter === 'string' || utils.isRegExp(opts.delimiter) ? opts.delimiter : defaults.delimiter,
|
|
6282
|
+
// eslint-disable-next-line no-implicit-coercion, no-extra-parens
|
|
6283
|
+
depth: (typeof opts.depth === 'number' || opts.depth === false) ? +opts.depth : defaults.depth,
|
|
6284
|
+
ignoreQueryPrefix: opts.ignoreQueryPrefix === true,
|
|
6285
|
+
interpretNumericEntities: typeof opts.interpretNumericEntities === 'boolean' ? opts.interpretNumericEntities : defaults.interpretNumericEntities,
|
|
6286
|
+
parameterLimit: typeof opts.parameterLimit === 'number' ? opts.parameterLimit : defaults.parameterLimit,
|
|
6287
|
+
parseArrays: opts.parseArrays !== false,
|
|
6288
|
+
plainObjects: typeof opts.plainObjects === 'boolean' ? opts.plainObjects : defaults.plainObjects,
|
|
6289
|
+
strictNullHandling: typeof opts.strictNullHandling === 'boolean' ? opts.strictNullHandling : defaults.strictNullHandling
|
|
6290
|
+
};
|
|
6291
|
+
};
|
|
6292
|
+
|
|
6293
|
+
module.exports = function (str, opts) {
|
|
6294
|
+
var options = normalizeParseOptions(opts);
|
|
6295
|
+
|
|
6296
|
+
if (str === '' || str === null || typeof str === 'undefined') {
|
|
6297
|
+
return options.plainObjects ? Object.create(null) : {};
|
|
6298
|
+
}
|
|
6299
|
+
|
|
6300
|
+
var tempObj = typeof str === 'string' ? parseValues(str, options) : str;
|
|
6301
|
+
var obj = options.plainObjects ? Object.create(null) : {};
|
|
6302
|
+
|
|
6303
|
+
// Iterate over the keys and setup the new object
|
|
6304
|
+
|
|
6305
|
+
var keys = Object.keys(tempObj);
|
|
6306
|
+
for (var i = 0; i < keys.length; ++i) {
|
|
6307
|
+
var key = keys[i];
|
|
6308
|
+
var newObj = parseKeys(key, tempObj[key], options, typeof str === 'string');
|
|
6309
|
+
obj = utils.merge(obj, newObj, options);
|
|
6310
|
+
}
|
|
6311
|
+
|
|
6312
|
+
if (options.allowSparse === true) {
|
|
6313
|
+
return obj;
|
|
6314
|
+
}
|
|
6315
|
+
|
|
6316
|
+
return utils.compact(obj);
|
|
6317
|
+
};
|
|
6318
|
+
|
|
6319
|
+
},{"./utils":53}],52:[function(require,module,exports){
|
|
6320
|
+
'use strict';
|
|
6321
|
+
|
|
6322
|
+
var getSideChannel = require('side-channel');
|
|
6323
|
+
var utils = require('./utils');
|
|
6324
|
+
var formats = require('./formats');
|
|
6325
|
+
var has = Object.prototype.hasOwnProperty;
|
|
6326
|
+
|
|
6327
|
+
var arrayPrefixGenerators = {
|
|
6328
|
+
brackets: function brackets(prefix) {
|
|
6329
|
+
return prefix + '[]';
|
|
6330
|
+
},
|
|
6331
|
+
comma: 'comma',
|
|
6332
|
+
indices: function indices(prefix, key) {
|
|
6333
|
+
return prefix + '[' + key + ']';
|
|
6334
|
+
},
|
|
6335
|
+
repeat: function repeat(prefix) {
|
|
6336
|
+
return prefix;
|
|
6337
|
+
}
|
|
6338
|
+
};
|
|
6339
|
+
|
|
6340
|
+
var isArray = Array.isArray;
|
|
6341
|
+
var split = String.prototype.split;
|
|
6342
|
+
var push = Array.prototype.push;
|
|
6343
|
+
var pushToArray = function (arr, valueOrArray) {
|
|
6344
|
+
push.apply(arr, isArray(valueOrArray) ? valueOrArray : [valueOrArray]);
|
|
6345
|
+
};
|
|
6346
|
+
|
|
6347
|
+
var toISO = Date.prototype.toISOString;
|
|
6348
|
+
|
|
6349
|
+
var defaultFormat = formats['default'];
|
|
6350
|
+
var defaults = {
|
|
6351
|
+
addQueryPrefix: false,
|
|
6352
|
+
allowDots: false,
|
|
6353
|
+
charset: 'utf-8',
|
|
6354
|
+
charsetSentinel: false,
|
|
6355
|
+
delimiter: '&',
|
|
6356
|
+
encode: true,
|
|
6357
|
+
encoder: utils.encode,
|
|
6358
|
+
encodeValuesOnly: false,
|
|
6359
|
+
format: defaultFormat,
|
|
6360
|
+
formatter: formats.formatters[defaultFormat],
|
|
6361
|
+
// deprecated
|
|
6362
|
+
indices: false,
|
|
6363
|
+
serializeDate: function serializeDate(date) {
|
|
6364
|
+
return toISO.call(date);
|
|
6365
|
+
},
|
|
6366
|
+
skipNulls: false,
|
|
6367
|
+
strictNullHandling: false
|
|
6368
|
+
};
|
|
6369
|
+
|
|
6370
|
+
var isNonNullishPrimitive = function isNonNullishPrimitive(v) {
|
|
6371
|
+
return typeof v === 'string'
|
|
6372
|
+
|| typeof v === 'number'
|
|
6373
|
+
|| typeof v === 'boolean'
|
|
6374
|
+
|| typeof v === 'symbol'
|
|
6375
|
+
|| typeof v === 'bigint';
|
|
6376
|
+
};
|
|
6377
|
+
|
|
6378
|
+
var sentinel = {};
|
|
6379
|
+
|
|
6380
|
+
var stringify = function stringify(
|
|
6381
|
+
object,
|
|
6382
|
+
prefix,
|
|
6383
|
+
generateArrayPrefix,
|
|
6384
|
+
commaRoundTrip,
|
|
6385
|
+
strictNullHandling,
|
|
6386
|
+
skipNulls,
|
|
6387
|
+
encoder,
|
|
6388
|
+
filter,
|
|
6389
|
+
sort,
|
|
6390
|
+
allowDots,
|
|
6391
|
+
serializeDate,
|
|
6392
|
+
format,
|
|
6393
|
+
formatter,
|
|
6394
|
+
encodeValuesOnly,
|
|
6395
|
+
charset,
|
|
6396
|
+
sideChannel
|
|
6397
|
+
) {
|
|
6398
|
+
var obj = object;
|
|
6399
|
+
|
|
6400
|
+
var tmpSc = sideChannel;
|
|
6401
|
+
var step = 0;
|
|
6402
|
+
var findFlag = false;
|
|
6403
|
+
while ((tmpSc = tmpSc.get(sentinel)) !== void undefined && !findFlag) {
|
|
6404
|
+
// Where object last appeared in the ref tree
|
|
6405
|
+
var pos = tmpSc.get(object);
|
|
6406
|
+
step += 1;
|
|
6407
|
+
if (typeof pos !== 'undefined') {
|
|
6408
|
+
if (pos === step) {
|
|
6409
|
+
throw new RangeError('Cyclic object value');
|
|
6410
|
+
} else {
|
|
6411
|
+
findFlag = true; // Break while
|
|
6412
|
+
}
|
|
6413
|
+
}
|
|
6414
|
+
if (typeof tmpSc.get(sentinel) === 'undefined') {
|
|
6415
|
+
step = 0;
|
|
6416
|
+
}
|
|
6417
|
+
}
|
|
6418
|
+
|
|
6419
|
+
if (typeof filter === 'function') {
|
|
6420
|
+
obj = filter(prefix, obj);
|
|
6421
|
+
} else if (obj instanceof Date) {
|
|
6422
|
+
obj = serializeDate(obj);
|
|
6423
|
+
} else if (generateArrayPrefix === 'comma' && isArray(obj)) {
|
|
6424
|
+
obj = utils.maybeMap(obj, function (value) {
|
|
6425
|
+
if (value instanceof Date) {
|
|
6426
|
+
return serializeDate(value);
|
|
6427
|
+
}
|
|
6428
|
+
return value;
|
|
6429
|
+
});
|
|
6430
|
+
}
|
|
6431
|
+
|
|
6432
|
+
if (obj === null) {
|
|
6433
|
+
if (strictNullHandling) {
|
|
6434
|
+
return encoder && !encodeValuesOnly ? encoder(prefix, defaults.encoder, charset, 'key', format) : prefix;
|
|
6435
|
+
}
|
|
6436
|
+
|
|
6437
|
+
obj = '';
|
|
6438
|
+
}
|
|
6439
|
+
|
|
6440
|
+
if (isNonNullishPrimitive(obj) || utils.isBuffer(obj)) {
|
|
6441
|
+
if (encoder) {
|
|
6442
|
+
var keyValue = encodeValuesOnly ? prefix : encoder(prefix, defaults.encoder, charset, 'key', format);
|
|
6443
|
+
if (generateArrayPrefix === 'comma' && encodeValuesOnly) {
|
|
6444
|
+
var valuesArray = split.call(String(obj), ',');
|
|
6445
|
+
var valuesJoined = '';
|
|
6446
|
+
for (var i = 0; i < valuesArray.length; ++i) {
|
|
6447
|
+
valuesJoined += (i === 0 ? '' : ',') + formatter(encoder(valuesArray[i], defaults.encoder, charset, 'value', format));
|
|
6448
|
+
}
|
|
6449
|
+
return [formatter(keyValue) + (commaRoundTrip && isArray(obj) && valuesArray.length === 1 ? '[]' : '') + '=' + valuesJoined];
|
|
6450
|
+
}
|
|
6451
|
+
return [formatter(keyValue) + '=' + formatter(encoder(obj, defaults.encoder, charset, 'value', format))];
|
|
6452
|
+
}
|
|
6453
|
+
return [formatter(prefix) + '=' + formatter(String(obj))];
|
|
6454
|
+
}
|
|
6455
|
+
|
|
6456
|
+
var values = [];
|
|
6457
|
+
|
|
6458
|
+
if (typeof obj === 'undefined') {
|
|
6459
|
+
return values;
|
|
6460
|
+
}
|
|
6461
|
+
|
|
6462
|
+
var objKeys;
|
|
6463
|
+
if (generateArrayPrefix === 'comma' && isArray(obj)) {
|
|
6464
|
+
// we need to join elements in
|
|
6465
|
+
objKeys = [{ value: obj.length > 0 ? obj.join(',') || null : void undefined }];
|
|
6466
|
+
} else if (isArray(filter)) {
|
|
6467
|
+
objKeys = filter;
|
|
6468
|
+
} else {
|
|
6469
|
+
var keys = Object.keys(obj);
|
|
6470
|
+
objKeys = sort ? keys.sort(sort) : keys;
|
|
6471
|
+
}
|
|
6472
|
+
|
|
6473
|
+
var adjustedPrefix = commaRoundTrip && isArray(obj) && obj.length === 1 ? prefix + '[]' : prefix;
|
|
6474
|
+
|
|
6475
|
+
for (var j = 0; j < objKeys.length; ++j) {
|
|
6476
|
+
var key = objKeys[j];
|
|
6477
|
+
var value = typeof key === 'object' && typeof key.value !== 'undefined' ? key.value : obj[key];
|
|
6478
|
+
|
|
6479
|
+
if (skipNulls && value === null) {
|
|
6480
|
+
continue;
|
|
6481
|
+
}
|
|
6482
|
+
|
|
6483
|
+
var keyPrefix = isArray(obj)
|
|
6484
|
+
? typeof generateArrayPrefix === 'function' ? generateArrayPrefix(adjustedPrefix, key) : adjustedPrefix
|
|
6485
|
+
: adjustedPrefix + (allowDots ? '.' + key : '[' + key + ']');
|
|
6486
|
+
|
|
6487
|
+
sideChannel.set(object, step);
|
|
6488
|
+
var valueSideChannel = getSideChannel();
|
|
6489
|
+
valueSideChannel.set(sentinel, sideChannel);
|
|
6490
|
+
pushToArray(values, stringify(
|
|
6491
|
+
value,
|
|
6492
|
+
keyPrefix,
|
|
6493
|
+
generateArrayPrefix,
|
|
6494
|
+
commaRoundTrip,
|
|
6495
|
+
strictNullHandling,
|
|
6496
|
+
skipNulls,
|
|
6497
|
+
encoder,
|
|
6498
|
+
filter,
|
|
6499
|
+
sort,
|
|
6500
|
+
allowDots,
|
|
6501
|
+
serializeDate,
|
|
6502
|
+
format,
|
|
6503
|
+
formatter,
|
|
6504
|
+
encodeValuesOnly,
|
|
6505
|
+
charset,
|
|
6506
|
+
valueSideChannel
|
|
6507
|
+
));
|
|
6508
|
+
}
|
|
6509
|
+
|
|
6510
|
+
return values;
|
|
6511
|
+
};
|
|
6512
|
+
|
|
6513
|
+
var normalizeStringifyOptions = function normalizeStringifyOptions(opts) {
|
|
6514
|
+
if (!opts) {
|
|
6515
|
+
return defaults;
|
|
6516
|
+
}
|
|
6517
|
+
|
|
6518
|
+
if (opts.encoder !== null && typeof opts.encoder !== 'undefined' && typeof opts.encoder !== 'function') {
|
|
6519
|
+
throw new TypeError('Encoder has to be a function.');
|
|
6520
|
+
}
|
|
6521
|
+
|
|
6522
|
+
var charset = opts.charset || defaults.charset;
|
|
6523
|
+
if (typeof opts.charset !== 'undefined' && opts.charset !== 'utf-8' && opts.charset !== 'iso-8859-1') {
|
|
6524
|
+
throw new TypeError('The charset option must be either utf-8, iso-8859-1, or undefined');
|
|
6525
|
+
}
|
|
6526
|
+
|
|
6527
|
+
var format = formats['default'];
|
|
6528
|
+
if (typeof opts.format !== 'undefined') {
|
|
6529
|
+
if (!has.call(formats.formatters, opts.format)) {
|
|
6530
|
+
throw new TypeError('Unknown format option provided.');
|
|
6531
|
+
}
|
|
6532
|
+
format = opts.format;
|
|
6533
|
+
}
|
|
6534
|
+
var formatter = formats.formatters[format];
|
|
6535
|
+
|
|
6536
|
+
var filter = defaults.filter;
|
|
6537
|
+
if (typeof opts.filter === 'function' || isArray(opts.filter)) {
|
|
6538
|
+
filter = opts.filter;
|
|
6539
|
+
}
|
|
6540
|
+
|
|
6541
|
+
return {
|
|
6542
|
+
addQueryPrefix: typeof opts.addQueryPrefix === 'boolean' ? opts.addQueryPrefix : defaults.addQueryPrefix,
|
|
6543
|
+
allowDots: typeof opts.allowDots === 'undefined' ? defaults.allowDots : !!opts.allowDots,
|
|
6544
|
+
charset: charset,
|
|
6545
|
+
charsetSentinel: typeof opts.charsetSentinel === 'boolean' ? opts.charsetSentinel : defaults.charsetSentinel,
|
|
6546
|
+
delimiter: typeof opts.delimiter === 'undefined' ? defaults.delimiter : opts.delimiter,
|
|
6547
|
+
encode: typeof opts.encode === 'boolean' ? opts.encode : defaults.encode,
|
|
6548
|
+
encoder: typeof opts.encoder === 'function' ? opts.encoder : defaults.encoder,
|
|
6549
|
+
encodeValuesOnly: typeof opts.encodeValuesOnly === 'boolean' ? opts.encodeValuesOnly : defaults.encodeValuesOnly,
|
|
6550
|
+
filter: filter,
|
|
6551
|
+
format: format,
|
|
6552
|
+
formatter: formatter,
|
|
6553
|
+
serializeDate: typeof opts.serializeDate === 'function' ? opts.serializeDate : defaults.serializeDate,
|
|
6554
|
+
skipNulls: typeof opts.skipNulls === 'boolean' ? opts.skipNulls : defaults.skipNulls,
|
|
6555
|
+
sort: typeof opts.sort === 'function' ? opts.sort : null,
|
|
6556
|
+
strictNullHandling: typeof opts.strictNullHandling === 'boolean' ? opts.strictNullHandling : defaults.strictNullHandling
|
|
6557
|
+
};
|
|
6558
|
+
};
|
|
6559
|
+
|
|
6560
|
+
module.exports = function (object, opts) {
|
|
6561
|
+
var obj = object;
|
|
6562
|
+
var options = normalizeStringifyOptions(opts);
|
|
6563
|
+
|
|
6564
|
+
var objKeys;
|
|
6565
|
+
var filter;
|
|
6566
|
+
|
|
6567
|
+
if (typeof options.filter === 'function') {
|
|
6568
|
+
filter = options.filter;
|
|
6569
|
+
obj = filter('', obj);
|
|
6570
|
+
} else if (isArray(options.filter)) {
|
|
6571
|
+
filter = options.filter;
|
|
6572
|
+
objKeys = filter;
|
|
6573
|
+
}
|
|
6574
|
+
|
|
6575
|
+
var keys = [];
|
|
6576
|
+
|
|
6577
|
+
if (typeof obj !== 'object' || obj === null) {
|
|
6578
|
+
return '';
|
|
6579
|
+
}
|
|
6580
|
+
|
|
6581
|
+
var arrayFormat;
|
|
6582
|
+
if (opts && opts.arrayFormat in arrayPrefixGenerators) {
|
|
6583
|
+
arrayFormat = opts.arrayFormat;
|
|
6584
|
+
} else if (opts && 'indices' in opts) {
|
|
6585
|
+
arrayFormat = opts.indices ? 'indices' : 'repeat';
|
|
6586
|
+
} else {
|
|
6587
|
+
arrayFormat = 'indices';
|
|
6588
|
+
}
|
|
6589
|
+
|
|
6590
|
+
var generateArrayPrefix = arrayPrefixGenerators[arrayFormat];
|
|
6591
|
+
if (opts && 'commaRoundTrip' in opts && typeof opts.commaRoundTrip !== 'boolean') {
|
|
6592
|
+
throw new TypeError('`commaRoundTrip` must be a boolean, or absent');
|
|
6593
|
+
}
|
|
6594
|
+
var commaRoundTrip = generateArrayPrefix === 'comma' && opts && opts.commaRoundTrip;
|
|
6595
|
+
|
|
6596
|
+
if (!objKeys) {
|
|
6597
|
+
objKeys = Object.keys(obj);
|
|
6598
|
+
}
|
|
6599
|
+
|
|
6600
|
+
if (options.sort) {
|
|
6601
|
+
objKeys.sort(options.sort);
|
|
6602
|
+
}
|
|
6603
|
+
|
|
6604
|
+
var sideChannel = getSideChannel();
|
|
6605
|
+
for (var i = 0; i < objKeys.length; ++i) {
|
|
6606
|
+
var key = objKeys[i];
|
|
6607
|
+
|
|
6608
|
+
if (options.skipNulls && obj[key] === null) {
|
|
6609
|
+
continue;
|
|
6610
|
+
}
|
|
6611
|
+
pushToArray(keys, stringify(
|
|
6612
|
+
obj[key],
|
|
6613
|
+
key,
|
|
6614
|
+
generateArrayPrefix,
|
|
6615
|
+
commaRoundTrip,
|
|
6616
|
+
options.strictNullHandling,
|
|
6617
|
+
options.skipNulls,
|
|
6618
|
+
options.encode ? options.encoder : null,
|
|
6619
|
+
options.filter,
|
|
6620
|
+
options.sort,
|
|
6621
|
+
options.allowDots,
|
|
6622
|
+
options.serializeDate,
|
|
6623
|
+
options.format,
|
|
6624
|
+
options.formatter,
|
|
6625
|
+
options.encodeValuesOnly,
|
|
6626
|
+
options.charset,
|
|
6627
|
+
sideChannel
|
|
6628
|
+
));
|
|
6629
|
+
}
|
|
6630
|
+
|
|
6631
|
+
var joined = keys.join(options.delimiter);
|
|
6632
|
+
var prefix = options.addQueryPrefix === true ? '?' : '';
|
|
6633
|
+
|
|
6634
|
+
if (options.charsetSentinel) {
|
|
6635
|
+
if (options.charset === 'iso-8859-1') {
|
|
6636
|
+
// encodeURIComponent('✓'), the "numeric entity" representation of a checkmark
|
|
6637
|
+
prefix += 'utf8=%26%2310003%3B&';
|
|
6638
|
+
} else {
|
|
6639
|
+
// encodeURIComponent('✓')
|
|
6640
|
+
prefix += 'utf8=%E2%9C%93&';
|
|
6641
|
+
}
|
|
6642
|
+
}
|
|
6643
|
+
|
|
6644
|
+
return joined.length > 0 ? prefix + joined : '';
|
|
6645
|
+
};
|
|
6646
|
+
|
|
6647
|
+
},{"./formats":49,"./utils":53,"side-channel":54}],53:[function(require,module,exports){
|
|
6648
|
+
'use strict';
|
|
6649
|
+
|
|
6650
|
+
var formats = require('./formats');
|
|
6651
|
+
|
|
6652
|
+
var has = Object.prototype.hasOwnProperty;
|
|
6653
|
+
var isArray = Array.isArray;
|
|
6654
|
+
|
|
6655
|
+
var hexTable = (function () {
|
|
6656
|
+
var array = [];
|
|
6657
|
+
for (var i = 0; i < 256; ++i) {
|
|
6658
|
+
array.push('%' + ((i < 16 ? '0' : '') + i.toString(16)).toUpperCase());
|
|
6659
|
+
}
|
|
6660
|
+
|
|
6661
|
+
return array;
|
|
6662
|
+
}());
|
|
6663
|
+
|
|
6664
|
+
var compactQueue = function compactQueue(queue) {
|
|
6665
|
+
while (queue.length > 1) {
|
|
6666
|
+
var item = queue.pop();
|
|
6667
|
+
var obj = item.obj[item.prop];
|
|
6668
|
+
|
|
6669
|
+
if (isArray(obj)) {
|
|
6670
|
+
var compacted = [];
|
|
6671
|
+
|
|
6672
|
+
for (var j = 0; j < obj.length; ++j) {
|
|
6673
|
+
if (typeof obj[j] !== 'undefined') {
|
|
6674
|
+
compacted.push(obj[j]);
|
|
6675
|
+
}
|
|
6676
|
+
}
|
|
6677
|
+
|
|
6678
|
+
item.obj[item.prop] = compacted;
|
|
6679
|
+
}
|
|
6680
|
+
}
|
|
6681
|
+
};
|
|
6682
|
+
|
|
6683
|
+
var arrayToObject = function arrayToObject(source, options) {
|
|
6684
|
+
var obj = options && options.plainObjects ? Object.create(null) : {};
|
|
6685
|
+
for (var i = 0; i < source.length; ++i) {
|
|
6686
|
+
if (typeof source[i] !== 'undefined') {
|
|
6687
|
+
obj[i] = source[i];
|
|
6688
|
+
}
|
|
6689
|
+
}
|
|
6690
|
+
|
|
6691
|
+
return obj;
|
|
6692
|
+
};
|
|
6693
|
+
|
|
6694
|
+
var merge = function merge(target, source, options) {
|
|
6695
|
+
/* eslint no-param-reassign: 0 */
|
|
6696
|
+
if (!source) {
|
|
6697
|
+
return target;
|
|
6698
|
+
}
|
|
6699
|
+
|
|
6700
|
+
if (typeof source !== 'object') {
|
|
6701
|
+
if (isArray(target)) {
|
|
6702
|
+
target.push(source);
|
|
6703
|
+
} else if (target && typeof target === 'object') {
|
|
6704
|
+
if ((options && (options.plainObjects || options.allowPrototypes)) || !has.call(Object.prototype, source)) {
|
|
6705
|
+
target[source] = true;
|
|
6706
|
+
}
|
|
6707
|
+
} else {
|
|
6708
|
+
return [target, source];
|
|
6709
|
+
}
|
|
6710
|
+
|
|
6711
|
+
return target;
|
|
6712
|
+
}
|
|
6713
|
+
|
|
6714
|
+
if (!target || typeof target !== 'object') {
|
|
6715
|
+
return [target].concat(source);
|
|
6716
|
+
}
|
|
6717
|
+
|
|
6718
|
+
var mergeTarget = target;
|
|
6719
|
+
if (isArray(target) && !isArray(source)) {
|
|
6720
|
+
mergeTarget = arrayToObject(target, options);
|
|
6721
|
+
}
|
|
6722
|
+
|
|
6723
|
+
if (isArray(target) && isArray(source)) {
|
|
6724
|
+
source.forEach(function (item, i) {
|
|
6725
|
+
if (has.call(target, i)) {
|
|
6726
|
+
var targetItem = target[i];
|
|
6727
|
+
if (targetItem && typeof targetItem === 'object' && item && typeof item === 'object') {
|
|
6728
|
+
target[i] = merge(targetItem, item, options);
|
|
6729
|
+
} else {
|
|
6730
|
+
target.push(item);
|
|
6731
|
+
}
|
|
6732
|
+
} else {
|
|
6733
|
+
target[i] = item;
|
|
6734
|
+
}
|
|
6735
|
+
});
|
|
6736
|
+
return target;
|
|
6737
|
+
}
|
|
6738
|
+
|
|
6739
|
+
return Object.keys(source).reduce(function (acc, key) {
|
|
6740
|
+
var value = source[key];
|
|
6741
|
+
|
|
6742
|
+
if (has.call(acc, key)) {
|
|
6743
|
+
acc[key] = merge(acc[key], value, options);
|
|
6744
|
+
} else {
|
|
6745
|
+
acc[key] = value;
|
|
6746
|
+
}
|
|
6747
|
+
return acc;
|
|
6748
|
+
}, mergeTarget);
|
|
6749
|
+
};
|
|
6750
|
+
|
|
6751
|
+
var assign = function assignSingleSource(target, source) {
|
|
6752
|
+
return Object.keys(source).reduce(function (acc, key) {
|
|
6753
|
+
acc[key] = source[key];
|
|
6754
|
+
return acc;
|
|
6755
|
+
}, target);
|
|
6756
|
+
};
|
|
6757
|
+
|
|
6758
|
+
var decode = function (str, decoder, charset) {
|
|
6759
|
+
var strWithoutPlus = str.replace(/\+/g, ' ');
|
|
6760
|
+
if (charset === 'iso-8859-1') {
|
|
6761
|
+
// unescape never throws, no try...catch needed:
|
|
6762
|
+
return strWithoutPlus.replace(/%[0-9a-f]{2}/gi, unescape);
|
|
6763
|
+
}
|
|
6764
|
+
// utf-8
|
|
6765
|
+
try {
|
|
6766
|
+
return decodeURIComponent(strWithoutPlus);
|
|
6767
|
+
} catch (e) {
|
|
6768
|
+
return strWithoutPlus;
|
|
6769
|
+
}
|
|
6770
|
+
};
|
|
6771
|
+
|
|
6772
|
+
var encode = function encode(str, defaultEncoder, charset, kind, format) {
|
|
6773
|
+
// This code was originally written by Brian White (mscdex) for the io.js core querystring library.
|
|
6774
|
+
// It has been adapted here for stricter adherence to RFC 3986
|
|
6775
|
+
if (str.length === 0) {
|
|
6776
|
+
return str;
|
|
6777
|
+
}
|
|
6778
|
+
|
|
6779
|
+
var string = str;
|
|
6780
|
+
if (typeof str === 'symbol') {
|
|
6781
|
+
string = Symbol.prototype.toString.call(str);
|
|
6782
|
+
} else if (typeof str !== 'string') {
|
|
6783
|
+
string = String(str);
|
|
6784
|
+
}
|
|
6785
|
+
|
|
6786
|
+
if (charset === 'iso-8859-1') {
|
|
6787
|
+
return escape(string).replace(/%u[0-9a-f]{4}/gi, function ($0) {
|
|
6788
|
+
return '%26%23' + parseInt($0.slice(2), 16) + '%3B';
|
|
6789
|
+
});
|
|
6790
|
+
}
|
|
6791
|
+
|
|
6792
|
+
var out = '';
|
|
6793
|
+
for (var i = 0; i < string.length; ++i) {
|
|
6794
|
+
var c = string.charCodeAt(i);
|
|
6795
|
+
|
|
6796
|
+
if (
|
|
6797
|
+
c === 0x2D // -
|
|
6798
|
+
|| c === 0x2E // .
|
|
6799
|
+
|| c === 0x5F // _
|
|
6800
|
+
|| c === 0x7E // ~
|
|
6801
|
+
|| (c >= 0x30 && c <= 0x39) // 0-9
|
|
6802
|
+
|| (c >= 0x41 && c <= 0x5A) // a-z
|
|
6803
|
+
|| (c >= 0x61 && c <= 0x7A) // A-Z
|
|
6804
|
+
|| (format === formats.RFC1738 && (c === 0x28 || c === 0x29)) // ( )
|
|
6805
|
+
) {
|
|
6806
|
+
out += string.charAt(i);
|
|
6807
|
+
continue;
|
|
6808
|
+
}
|
|
6809
|
+
|
|
6810
|
+
if (c < 0x80) {
|
|
6811
|
+
out = out + hexTable[c];
|
|
6812
|
+
continue;
|
|
6813
|
+
}
|
|
6814
|
+
|
|
6815
|
+
if (c < 0x800) {
|
|
6816
|
+
out = out + (hexTable[0xC0 | (c >> 6)] + hexTable[0x80 | (c & 0x3F)]);
|
|
6817
|
+
continue;
|
|
6818
|
+
}
|
|
6819
|
+
|
|
6820
|
+
if (c < 0xD800 || c >= 0xE000) {
|
|
6821
|
+
out = out + (hexTable[0xE0 | (c >> 12)] + hexTable[0x80 | ((c >> 6) & 0x3F)] + hexTable[0x80 | (c & 0x3F)]);
|
|
6822
|
+
continue;
|
|
6823
|
+
}
|
|
6824
|
+
|
|
6825
|
+
i += 1;
|
|
6826
|
+
c = 0x10000 + (((c & 0x3FF) << 10) | (string.charCodeAt(i) & 0x3FF));
|
|
6827
|
+
/* eslint operator-linebreak: [2, "before"] */
|
|
6828
|
+
out += hexTable[0xF0 | (c >> 18)]
|
|
6829
|
+
+ hexTable[0x80 | ((c >> 12) & 0x3F)]
|
|
6830
|
+
+ hexTable[0x80 | ((c >> 6) & 0x3F)]
|
|
6831
|
+
+ hexTable[0x80 | (c & 0x3F)];
|
|
6832
|
+
}
|
|
6833
|
+
|
|
6834
|
+
return out;
|
|
6835
|
+
};
|
|
6836
|
+
|
|
6837
|
+
var compact = function compact(value) {
|
|
6838
|
+
var queue = [{ obj: { o: value }, prop: 'o' }];
|
|
6839
|
+
var refs = [];
|
|
6840
|
+
|
|
6841
|
+
for (var i = 0; i < queue.length; ++i) {
|
|
6842
|
+
var item = queue[i];
|
|
6843
|
+
var obj = item.obj[item.prop];
|
|
6844
|
+
|
|
6845
|
+
var keys = Object.keys(obj);
|
|
6846
|
+
for (var j = 0; j < keys.length; ++j) {
|
|
6847
|
+
var key = keys[j];
|
|
6848
|
+
var val = obj[key];
|
|
6849
|
+
if (typeof val === 'object' && val !== null && refs.indexOf(val) === -1) {
|
|
6850
|
+
queue.push({ obj: obj, prop: key });
|
|
6851
|
+
refs.push(val);
|
|
6852
|
+
}
|
|
6853
|
+
}
|
|
6854
|
+
}
|
|
6855
|
+
|
|
6856
|
+
compactQueue(queue);
|
|
6857
|
+
|
|
6858
|
+
return value;
|
|
6859
|
+
};
|
|
6860
|
+
|
|
6861
|
+
var isRegExp = function isRegExp(obj) {
|
|
6862
|
+
return Object.prototype.toString.call(obj) === '[object RegExp]';
|
|
6863
|
+
};
|
|
6864
|
+
|
|
6865
|
+
var isBuffer = function isBuffer(obj) {
|
|
6866
|
+
if (!obj || typeof obj !== 'object') {
|
|
6867
|
+
return false;
|
|
6868
|
+
}
|
|
6869
|
+
|
|
6870
|
+
return !!(obj.constructor && obj.constructor.isBuffer && obj.constructor.isBuffer(obj));
|
|
6871
|
+
};
|
|
6872
|
+
|
|
6873
|
+
var combine = function combine(a, b) {
|
|
6874
|
+
return [].concat(a, b);
|
|
6875
|
+
};
|
|
6876
|
+
|
|
6877
|
+
var maybeMap = function maybeMap(val, fn) {
|
|
6878
|
+
if (isArray(val)) {
|
|
6879
|
+
var mapped = [];
|
|
6880
|
+
for (var i = 0; i < val.length; i += 1) {
|
|
6881
|
+
mapped.push(fn(val[i]));
|
|
6882
|
+
}
|
|
6883
|
+
return mapped;
|
|
6884
|
+
}
|
|
6885
|
+
return fn(val);
|
|
6886
|
+
};
|
|
6887
|
+
|
|
6888
|
+
module.exports = {
|
|
6889
|
+
arrayToObject: arrayToObject,
|
|
6890
|
+
assign: assign,
|
|
6891
|
+
combine: combine,
|
|
6892
|
+
compact: compact,
|
|
6893
|
+
decode: decode,
|
|
6894
|
+
encode: encode,
|
|
6895
|
+
isBuffer: isBuffer,
|
|
6896
|
+
isRegExp: isRegExp,
|
|
6897
|
+
maybeMap: maybeMap,
|
|
6898
|
+
merge: merge
|
|
6899
|
+
};
|
|
6900
|
+
|
|
6901
|
+
},{"./formats":49}],54:[function(require,module,exports){
|
|
6902
|
+
'use strict';
|
|
6903
|
+
|
|
6904
|
+
var GetIntrinsic = require('get-intrinsic');
|
|
6905
|
+
var callBound = require('call-bind/callBound');
|
|
6906
|
+
var inspect = require('object-inspect');
|
|
6907
|
+
|
|
6908
|
+
var $TypeError = GetIntrinsic('%TypeError%');
|
|
6909
|
+
var $WeakMap = GetIntrinsic('%WeakMap%', true);
|
|
6910
|
+
var $Map = GetIntrinsic('%Map%', true);
|
|
6911
|
+
|
|
6912
|
+
var $weakMapGet = callBound('WeakMap.prototype.get', true);
|
|
6913
|
+
var $weakMapSet = callBound('WeakMap.prototype.set', true);
|
|
6914
|
+
var $weakMapHas = callBound('WeakMap.prototype.has', true);
|
|
6915
|
+
var $mapGet = callBound('Map.prototype.get', true);
|
|
6916
|
+
var $mapSet = callBound('Map.prototype.set', true);
|
|
6917
|
+
var $mapHas = callBound('Map.prototype.has', true);
|
|
6918
|
+
|
|
6919
|
+
/*
|
|
6920
|
+
* This function traverses the list returning the node corresponding to the
|
|
6921
|
+
* given key.
|
|
6922
|
+
*
|
|
6923
|
+
* That node is also moved to the head of the list, so that if it's accessed
|
|
6924
|
+
* again we don't need to traverse the whole list. By doing so, all the recently
|
|
6925
|
+
* used nodes can be accessed relatively quickly.
|
|
6926
|
+
*/
|
|
6927
|
+
var listGetNode = function (list, key) { // eslint-disable-line consistent-return
|
|
6928
|
+
for (var prev = list, curr; (curr = prev.next) !== null; prev = curr) {
|
|
6929
|
+
if (curr.key === key) {
|
|
6930
|
+
prev.next = curr.next;
|
|
6931
|
+
curr.next = list.next;
|
|
6932
|
+
list.next = curr; // eslint-disable-line no-param-reassign
|
|
6933
|
+
return curr;
|
|
6934
|
+
}
|
|
6935
|
+
}
|
|
6936
|
+
};
|
|
6937
|
+
|
|
6938
|
+
var listGet = function (objects, key) {
|
|
6939
|
+
var node = listGetNode(objects, key);
|
|
6940
|
+
return node && node.value;
|
|
6941
|
+
};
|
|
6942
|
+
var listSet = function (objects, key, value) {
|
|
6943
|
+
var node = listGetNode(objects, key);
|
|
6944
|
+
if (node) {
|
|
6945
|
+
node.value = value;
|
|
6946
|
+
} else {
|
|
6947
|
+
// Prepend the new node to the beginning of the list
|
|
6948
|
+
objects.next = { // eslint-disable-line no-param-reassign
|
|
6949
|
+
key: key,
|
|
6950
|
+
next: objects.next,
|
|
6951
|
+
value: value
|
|
6952
|
+
};
|
|
6953
|
+
}
|
|
6954
|
+
};
|
|
6955
|
+
var listHas = function (objects, key) {
|
|
6956
|
+
return !!listGetNode(objects, key);
|
|
6957
|
+
};
|
|
6958
|
+
|
|
6959
|
+
module.exports = function getSideChannel() {
|
|
6960
|
+
var $wm;
|
|
6961
|
+
var $m;
|
|
6962
|
+
var $o;
|
|
6963
|
+
var channel = {
|
|
6964
|
+
assert: function (key) {
|
|
6965
|
+
if (!channel.has(key)) {
|
|
6966
|
+
throw new $TypeError('Side channel does not contain ' + inspect(key));
|
|
6967
|
+
}
|
|
6968
|
+
},
|
|
6969
|
+
get: function (key) { // eslint-disable-line consistent-return
|
|
6970
|
+
if ($WeakMap && key && (typeof key === 'object' || typeof key === 'function')) {
|
|
6971
|
+
if ($wm) {
|
|
6972
|
+
return $weakMapGet($wm, key);
|
|
6973
|
+
}
|
|
6974
|
+
} else if ($Map) {
|
|
6975
|
+
if ($m) {
|
|
6976
|
+
return $mapGet($m, key);
|
|
6977
|
+
}
|
|
6978
|
+
} else {
|
|
6979
|
+
if ($o) { // eslint-disable-line no-lonely-if
|
|
6980
|
+
return listGet($o, key);
|
|
6981
|
+
}
|
|
6982
|
+
}
|
|
6983
|
+
},
|
|
6984
|
+
has: function (key) {
|
|
6985
|
+
if ($WeakMap && key && (typeof key === 'object' || typeof key === 'function')) {
|
|
6986
|
+
if ($wm) {
|
|
6987
|
+
return $weakMapHas($wm, key);
|
|
6988
|
+
}
|
|
6989
|
+
} else if ($Map) {
|
|
6990
|
+
if ($m) {
|
|
6991
|
+
return $mapHas($m, key);
|
|
6992
|
+
}
|
|
6993
|
+
} else {
|
|
6994
|
+
if ($o) { // eslint-disable-line no-lonely-if
|
|
6995
|
+
return listHas($o, key);
|
|
6996
|
+
}
|
|
6997
|
+
}
|
|
6998
|
+
return false;
|
|
6999
|
+
},
|
|
7000
|
+
set: function (key, value) {
|
|
7001
|
+
if ($WeakMap && key && (typeof key === 'object' || typeof key === 'function')) {
|
|
7002
|
+
if (!$wm) {
|
|
7003
|
+
$wm = new $WeakMap();
|
|
7004
|
+
}
|
|
7005
|
+
$weakMapSet($wm, key, value);
|
|
7006
|
+
} else if ($Map) {
|
|
7007
|
+
if (!$m) {
|
|
7008
|
+
$m = new $Map();
|
|
7009
|
+
}
|
|
7010
|
+
$mapSet($m, key, value);
|
|
7011
|
+
} else {
|
|
7012
|
+
if (!$o) {
|
|
7013
|
+
/*
|
|
7014
|
+
* Initialize the linked list as an empty node, so that we don't have
|
|
7015
|
+
* to special-case handling of the first node: we can always refer to
|
|
7016
|
+
* it as (previous node).next, instead of something like (list).head
|
|
7017
|
+
*/
|
|
7018
|
+
$o = { key: {}, next: null };
|
|
7019
|
+
}
|
|
7020
|
+
listSet($o, key, value);
|
|
7021
|
+
}
|
|
7022
|
+
}
|
|
7023
|
+
};
|
|
7024
|
+
return channel;
|
|
7025
|
+
};
|
|
7026
|
+
|
|
7027
|
+
},{"call-bind/callBound":40,"get-intrinsic":44,"object-inspect":48}],"platformClient":[function(require,module,exports){
|
|
4972
7028
|
(function (global,Buffer){(function (){
|
|
4973
7029
|
'use strict';
|
|
4974
7030
|
|
|
4975
7031
|
var axios = require('axios');
|
|
7032
|
+
var qs = require('qs');
|
|
4976
7033
|
|
|
4977
7034
|
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
4978
7035
|
|
|
4979
7036
|
var axios__default = /*#__PURE__*/_interopDefaultLegacy(axios);
|
|
7037
|
+
var qs__default = /*#__PURE__*/_interopDefaultLegacy(qs);
|
|
4980
7038
|
|
|
4981
7039
|
var PureCloudRegionHosts = {
|
|
4982
7040
|
us_east_1: 'mypurecloud.com',
|
|
@@ -7248,7 +9306,7 @@ class Configuration {
|
|
|
7248
9306
|
|
|
7249
9307
|
/**
|
|
7250
9308
|
* @module purecloud-platform-client-v2/ApiClient
|
|
7251
|
-
* @version
|
|
9309
|
+
* @version 140.0.1
|
|
7252
9310
|
*/
|
|
7253
9311
|
class ApiClient {
|
|
7254
9312
|
/**
|
|
@@ -7283,7 +9341,7 @@ class ApiClient {
|
|
|
7283
9341
|
|
|
7284
9342
|
/**
|
|
7285
9343
|
* Enumeration of collection format separator strategies.
|
|
7286
|
-
* @enum {String}
|
|
9344
|
+
* @enum {String}
|
|
7287
9345
|
* @readonly
|
|
7288
9346
|
*/
|
|
7289
9347
|
this.CollectionFormatEnum = {
|
|
@@ -7430,7 +9488,7 @@ class ApiClient {
|
|
|
7430
9488
|
// Load current auth data
|
|
7431
9489
|
const tempState = this.authData.state;
|
|
7432
9490
|
this.authData = localStorage.getItem(`${this.settingsPrefix}_auth_data`);
|
|
7433
|
-
if (!this.authData)
|
|
9491
|
+
if (!this.authData)
|
|
7434
9492
|
this.authData = {};
|
|
7435
9493
|
else
|
|
7436
9494
|
this.authData = JSON.parse(this.authData);
|
|
@@ -7450,7 +9508,7 @@ class ApiClient {
|
|
|
7450
9508
|
* @description Initiates the implicit grant login flow. Will attempt to load the token from local storage, if enabled.
|
|
7451
9509
|
* @param {string} clientId - The client ID of an OAuth Implicit Grant client
|
|
7452
9510
|
* @param {string} redirectUri - The redirect URI of the OAuth Implicit Grant client
|
|
7453
|
-
* @param {object} opts - (optional) Additional options
|
|
9511
|
+
* @param {object} opts - (optional) Additional options
|
|
7454
9512
|
* @param {string} opts.state - (optional) An arbitrary string to be passed back with the login response. Used for client apps to associate login responses with a request.
|
|
7455
9513
|
* @param {string} opts.org - (optional) The organization name that would normally used when specifying an organization name when logging in. This is only used when a provider is also specified.
|
|
7456
9514
|
* @param {string} opts.provider - (optional) Authentication provider to log in with e.g. okta, adfs, salesforce, onelogin. This is only used when an org is also specified.
|
|
@@ -7596,9 +9654,9 @@ class ApiClient {
|
|
|
7596
9654
|
}
|
|
7597
9655
|
var encodedData = Buffer.from(clientId + ':' + clientSecret).toString('base64');
|
|
7598
9656
|
var request = this._formAuthRequest(encodedData,
|
|
7599
|
-
{ grant_type: 'urn:ietf:params:oauth:grant-type:saml2-bearer'
|
|
7600
|
-
|
|
7601
|
-
|
|
9657
|
+
{ grant_type: 'urn:ietf:params:oauth:grant-type:saml2-bearer',
|
|
9658
|
+
orgName: orgName,
|
|
9659
|
+
assertion: assertion });
|
|
7602
9660
|
request.proxy = this.proxy;
|
|
7603
9661
|
var bodyParam = {
|
|
7604
9662
|
grant_type: 'urn:ietf:params:oauth:grant-type:saml2-bearer',
|
|
@@ -7677,9 +9735,9 @@ class ApiClient {
|
|
|
7677
9735
|
}
|
|
7678
9736
|
var encodedData = Buffer.from(clientId + ':' + clientSecret).toString('base64');
|
|
7679
9737
|
var request = this._formAuthRequest(encodedData,
|
|
7680
|
-
{ grant_type: 'authorization_code'
|
|
7681
|
-
|
|
7682
|
-
|
|
9738
|
+
{ grant_type: 'authorization_code',
|
|
9739
|
+
code: authCode,
|
|
9740
|
+
redirect_uri: redirectUri });
|
|
7683
9741
|
request.proxy = this.proxy;
|
|
7684
9742
|
var bodyParam = {
|
|
7685
9743
|
grant_type: 'authorization_code',
|
|
@@ -7705,7 +9763,7 @@ class ApiClient {
|
|
|
7705
9763
|
return;
|
|
7706
9764
|
}
|
|
7707
9765
|
var encodedData = Buffer.from(clientId + ':' + clientSecret).toString('base64');
|
|
7708
|
-
var request = this._formAuthRequest(encodedData, { grant_type: 'refresh_token'
|
|
9766
|
+
var request = this._formAuthRequest(encodedData, { grant_type: 'refresh_token' , refresh_token: refreshToken });
|
|
7709
9767
|
request.proxy = this.proxy;
|
|
7710
9768
|
var bodyParam = {
|
|
7711
9769
|
grant_type: 'refresh_token',
|
|
@@ -7782,8 +9840,9 @@ class ApiClient {
|
|
|
7782
9840
|
/**
|
|
7783
9841
|
* @description Utility function to create the request for auth requests
|
|
7784
9842
|
* @param {string} encodedData - Base64 encoded client and clientSecret pair
|
|
9843
|
+
* @param {object} data - data to url form encode
|
|
7785
9844
|
*/
|
|
7786
|
-
_formAuthRequest(encodedData) {
|
|
9845
|
+
_formAuthRequest(encodedData, data) {
|
|
7787
9846
|
var request = axios__default["default"]({
|
|
7788
9847
|
method: `POST`,
|
|
7789
9848
|
url: `https://login.${this.config.environment}/oauth/token`,
|
|
@@ -7791,7 +9850,7 @@ class ApiClient {
|
|
|
7791
9850
|
'Authorization': 'Basic ' + encodedData,
|
|
7792
9851
|
'Content-Type': 'application/x-www-form-urlencoded'
|
|
7793
9852
|
},
|
|
7794
|
-
data:
|
|
9853
|
+
data: qs__default["default"].stringify(data)
|
|
7795
9854
|
});
|
|
7796
9855
|
|
|
7797
9856
|
return request;
|
|
@@ -7855,7 +9914,7 @@ class ApiClient {
|
|
|
7855
9914
|
}
|
|
7856
9915
|
|
|
7857
9916
|
// Test token
|
|
7858
|
-
this.callApi('/api/v2/tokens/me', 'GET',
|
|
9917
|
+
this.callApi('/api/v2/tokens/me', 'GET',
|
|
7859
9918
|
null, null, null, null, null, ['PureCloud OAuth'], ['application/json'], ['application/json'])
|
|
7860
9919
|
.then(() => {
|
|
7861
9920
|
resolve();
|
|
@@ -7881,7 +9940,7 @@ class ApiClient {
|
|
|
7881
9940
|
const match = hashRegex.exec(h);
|
|
7882
9941
|
if (match) hash[match[1]] = decodeURIComponent(decodeURIComponent(match[2].replace(/\+/g, '%20')));
|
|
7883
9942
|
});
|
|
7884
|
-
|
|
9943
|
+
|
|
7885
9944
|
// Check for error
|
|
7886
9945
|
if (hash.error) {
|
|
7887
9946
|
return hash;
|
|
@@ -8079,7 +10138,7 @@ class ApiClient {
|
|
|
8079
10138
|
/**
|
|
8080
10139
|
* Checks whether the given parameter value represents file-like content.
|
|
8081
10140
|
* @param param The parameter to check.
|
|
8082
|
-
* @returns {Boolean} <code>true</code> if <code>param</code> represents a file.
|
|
10141
|
+
* @returns {Boolean} <code>true</code> if <code>param</code> represents a file.
|
|
8083
10142
|
*/
|
|
8084
10143
|
isFileParam(param) {
|
|
8085
10144
|
// Buffer in Node.js
|
|
@@ -8319,7 +10378,7 @@ class AlertingApi {
|
|
|
8319
10378
|
/**
|
|
8320
10379
|
* Alerting service.
|
|
8321
10380
|
* @module purecloud-platform-client-v2/api/AlertingApi
|
|
8322
|
-
* @version
|
|
10381
|
+
* @version 140.0.1
|
|
8323
10382
|
*/
|
|
8324
10383
|
|
|
8325
10384
|
/**
|
|
@@ -8633,7 +10692,7 @@ class AnalyticsApi {
|
|
|
8633
10692
|
/**
|
|
8634
10693
|
* Analytics service.
|
|
8635
10694
|
* @module purecloud-platform-client-v2/api/AnalyticsApi
|
|
8636
|
-
* @version
|
|
10695
|
+
* @version 140.0.1
|
|
8637
10696
|
*/
|
|
8638
10697
|
|
|
8639
10698
|
/**
|
|
@@ -9815,7 +11874,7 @@ class ArchitectApi {
|
|
|
9815
11874
|
/**
|
|
9816
11875
|
* Architect service.
|
|
9817
11876
|
* @module purecloud-platform-client-v2/api/ArchitectApi
|
|
9818
|
-
* @version
|
|
11877
|
+
* @version 140.0.1
|
|
9819
11878
|
*/
|
|
9820
11879
|
|
|
9821
11880
|
/**
|
|
@@ -12860,7 +14919,7 @@ class AuditApi {
|
|
|
12860
14919
|
/**
|
|
12861
14920
|
* Audit service.
|
|
12862
14921
|
* @module purecloud-platform-client-v2/api/AuditApi
|
|
12863
|
-
* @version
|
|
14922
|
+
* @version 140.0.1
|
|
12864
14923
|
*/
|
|
12865
14924
|
|
|
12866
14925
|
/**
|
|
@@ -13031,7 +15090,7 @@ class AuthorizationApi {
|
|
|
13031
15090
|
/**
|
|
13032
15091
|
* Authorization service.
|
|
13033
15092
|
* @module purecloud-platform-client-v2/api/AuthorizationApi
|
|
13034
|
-
* @version
|
|
15093
|
+
* @version 140.0.1
|
|
13035
15094
|
*/
|
|
13036
15095
|
|
|
13037
15096
|
/**
|
|
@@ -13636,18 +15695,18 @@ class AuthorizationApi {
|
|
|
13636
15695
|
/**
|
|
13637
15696
|
* Returns a listing of roles and permissions for a user.
|
|
13638
15697
|
*
|
|
13639
|
-
* @param {String}
|
|
15698
|
+
* @param {String} subjectId User ID
|
|
13640
15699
|
*/
|
|
13641
|
-
getUserRoles(
|
|
13642
|
-
// verify the required parameter '
|
|
13643
|
-
if (
|
|
13644
|
-
throw 'Missing the required parameter "
|
|
15700
|
+
getUserRoles(subjectId) {
|
|
15701
|
+
// verify the required parameter 'subjectId' is set
|
|
15702
|
+
if (subjectId === undefined || subjectId === null) {
|
|
15703
|
+
throw 'Missing the required parameter "subjectId" when calling getUserRoles';
|
|
13645
15704
|
}
|
|
13646
15705
|
|
|
13647
15706
|
return this.apiClient.callApi(
|
|
13648
|
-
'/api/v2/users/{
|
|
15707
|
+
'/api/v2/users/{subjectId}/roles',
|
|
13649
15708
|
'GET',
|
|
13650
|
-
{ '
|
|
15709
|
+
{ 'subjectId': subjectId },
|
|
13651
15710
|
{ },
|
|
13652
15711
|
{ },
|
|
13653
15712
|
{ },
|
|
@@ -14181,13 +16240,13 @@ class AuthorizationApi {
|
|
|
14181
16240
|
/**
|
|
14182
16241
|
* Sets the user's roles
|
|
14183
16242
|
*
|
|
14184
|
-
* @param {String}
|
|
16243
|
+
* @param {String} subjectId User ID
|
|
14185
16244
|
* @param {Array.<String>} body List of roles
|
|
14186
16245
|
*/
|
|
14187
|
-
putUserRoles(
|
|
14188
|
-
// verify the required parameter '
|
|
14189
|
-
if (
|
|
14190
|
-
throw 'Missing the required parameter "
|
|
16246
|
+
putUserRoles(subjectId, body) {
|
|
16247
|
+
// verify the required parameter 'subjectId' is set
|
|
16248
|
+
if (subjectId === undefined || subjectId === null) {
|
|
16249
|
+
throw 'Missing the required parameter "subjectId" when calling putUserRoles';
|
|
14191
16250
|
}
|
|
14192
16251
|
// verify the required parameter 'body' is set
|
|
14193
16252
|
if (body === undefined || body === null) {
|
|
@@ -14195,9 +16254,9 @@ class AuthorizationApi {
|
|
|
14195
16254
|
}
|
|
14196
16255
|
|
|
14197
16256
|
return this.apiClient.callApi(
|
|
14198
|
-
'/api/v2/users/{
|
|
16257
|
+
'/api/v2/users/{subjectId}/roles',
|
|
14199
16258
|
'PUT',
|
|
14200
|
-
{ '
|
|
16259
|
+
{ 'subjectId': subjectId },
|
|
14201
16260
|
{ },
|
|
14202
16261
|
{ },
|
|
14203
16262
|
{ },
|
|
@@ -14214,7 +16273,7 @@ class BillingApi {
|
|
|
14214
16273
|
/**
|
|
14215
16274
|
* Billing service.
|
|
14216
16275
|
* @module purecloud-platform-client-v2/api/BillingApi
|
|
14217
|
-
* @version
|
|
16276
|
+
* @version 140.0.1
|
|
14218
16277
|
*/
|
|
14219
16278
|
|
|
14220
16279
|
/**
|
|
@@ -14294,7 +16353,7 @@ class ChatApi {
|
|
|
14294
16353
|
/**
|
|
14295
16354
|
* Chat service.
|
|
14296
16355
|
* @module purecloud-platform-client-v2/api/ChatApi
|
|
14297
|
-
* @version
|
|
16356
|
+
* @version 140.0.1
|
|
14298
16357
|
*/
|
|
14299
16358
|
|
|
14300
16359
|
/**
|
|
@@ -14385,7 +16444,7 @@ class CoachingApi {
|
|
|
14385
16444
|
/**
|
|
14386
16445
|
* Coaching service.
|
|
14387
16446
|
* @module purecloud-platform-client-v2/api/CoachingApi
|
|
14388
|
-
* @version
|
|
16447
|
+
* @version 140.0.1
|
|
14389
16448
|
*/
|
|
14390
16449
|
|
|
14391
16450
|
/**
|
|
@@ -14962,7 +17021,7 @@ class ContentManagementApi {
|
|
|
14962
17021
|
/**
|
|
14963
17022
|
* ContentManagement service.
|
|
14964
17023
|
* @module purecloud-platform-client-v2/api/ContentManagementApi
|
|
14965
|
-
* @version
|
|
17024
|
+
* @version 140.0.1
|
|
14966
17025
|
*/
|
|
14967
17026
|
|
|
14968
17027
|
/**
|
|
@@ -16102,7 +18161,7 @@ class ConversationsApi {
|
|
|
16102
18161
|
/**
|
|
16103
18162
|
* Conversations service.
|
|
16104
18163
|
* @module purecloud-platform-client-v2/api/ConversationsApi
|
|
16105
|
-
* @version
|
|
18164
|
+
* @version 140.0.1
|
|
16106
18165
|
*/
|
|
16107
18166
|
|
|
16108
18167
|
/**
|
|
@@ -20650,6 +22709,126 @@ class ConversationsApi {
|
|
|
20650
22709
|
);
|
|
20651
22710
|
}
|
|
20652
22711
|
|
|
22712
|
+
/**
|
|
22713
|
+
* Update a conversation by setting its recording state
|
|
22714
|
+
*
|
|
22715
|
+
* @param {String} conversationId conversationId
|
|
22716
|
+
* @param {Object} body SetRecordingState
|
|
22717
|
+
*/
|
|
22718
|
+
putConversationsCallRecordingstate(conversationId, body) {
|
|
22719
|
+
// verify the required parameter 'conversationId' is set
|
|
22720
|
+
if (conversationId === undefined || conversationId === null) {
|
|
22721
|
+
throw 'Missing the required parameter "conversationId" when calling putConversationsCallRecordingstate';
|
|
22722
|
+
}
|
|
22723
|
+
// verify the required parameter 'body' is set
|
|
22724
|
+
if (body === undefined || body === null) {
|
|
22725
|
+
throw 'Missing the required parameter "body" when calling putConversationsCallRecordingstate';
|
|
22726
|
+
}
|
|
22727
|
+
|
|
22728
|
+
return this.apiClient.callApi(
|
|
22729
|
+
'/api/v2/conversations/calls/{conversationId}/recordingstate',
|
|
22730
|
+
'PUT',
|
|
22731
|
+
{ 'conversationId': conversationId },
|
|
22732
|
+
{ },
|
|
22733
|
+
{ },
|
|
22734
|
+
{ },
|
|
22735
|
+
body,
|
|
22736
|
+
['PureCloud OAuth'],
|
|
22737
|
+
['application/json'],
|
|
22738
|
+
['application/json']
|
|
22739
|
+
);
|
|
22740
|
+
}
|
|
22741
|
+
|
|
22742
|
+
/**
|
|
22743
|
+
* Update a conversation by setting its recording state
|
|
22744
|
+
*
|
|
22745
|
+
* @param {String} conversationId conversationId
|
|
22746
|
+
* @param {Object} body SetRecordingState
|
|
22747
|
+
*/
|
|
22748
|
+
putConversationsCallbackRecordingstate(conversationId, body) {
|
|
22749
|
+
// verify the required parameter 'conversationId' is set
|
|
22750
|
+
if (conversationId === undefined || conversationId === null) {
|
|
22751
|
+
throw 'Missing the required parameter "conversationId" when calling putConversationsCallbackRecordingstate';
|
|
22752
|
+
}
|
|
22753
|
+
// verify the required parameter 'body' is set
|
|
22754
|
+
if (body === undefined || body === null) {
|
|
22755
|
+
throw 'Missing the required parameter "body" when calling putConversationsCallbackRecordingstate';
|
|
22756
|
+
}
|
|
22757
|
+
|
|
22758
|
+
return this.apiClient.callApi(
|
|
22759
|
+
'/api/v2/conversations/callbacks/{conversationId}/recordingstate',
|
|
22760
|
+
'PUT',
|
|
22761
|
+
{ 'conversationId': conversationId },
|
|
22762
|
+
{ },
|
|
22763
|
+
{ },
|
|
22764
|
+
{ },
|
|
22765
|
+
body,
|
|
22766
|
+
['PureCloud OAuth'],
|
|
22767
|
+
['application/json'],
|
|
22768
|
+
['application/json']
|
|
22769
|
+
);
|
|
22770
|
+
}
|
|
22771
|
+
|
|
22772
|
+
/**
|
|
22773
|
+
* Update a conversation by setting its recording state
|
|
22774
|
+
*
|
|
22775
|
+
* @param {String} conversationId conversationId
|
|
22776
|
+
* @param {Object} body SetRecordingState
|
|
22777
|
+
*/
|
|
22778
|
+
putConversationsChatRecordingstate(conversationId, body) {
|
|
22779
|
+
// verify the required parameter 'conversationId' is set
|
|
22780
|
+
if (conversationId === undefined || conversationId === null) {
|
|
22781
|
+
throw 'Missing the required parameter "conversationId" when calling putConversationsChatRecordingstate';
|
|
22782
|
+
}
|
|
22783
|
+
// verify the required parameter 'body' is set
|
|
22784
|
+
if (body === undefined || body === null) {
|
|
22785
|
+
throw 'Missing the required parameter "body" when calling putConversationsChatRecordingstate';
|
|
22786
|
+
}
|
|
22787
|
+
|
|
22788
|
+
return this.apiClient.callApi(
|
|
22789
|
+
'/api/v2/conversations/chats/{conversationId}/recordingstate',
|
|
22790
|
+
'PUT',
|
|
22791
|
+
{ 'conversationId': conversationId },
|
|
22792
|
+
{ },
|
|
22793
|
+
{ },
|
|
22794
|
+
{ },
|
|
22795
|
+
body,
|
|
22796
|
+
['PureCloud OAuth'],
|
|
22797
|
+
['application/json'],
|
|
22798
|
+
['application/json']
|
|
22799
|
+
);
|
|
22800
|
+
}
|
|
22801
|
+
|
|
22802
|
+
/**
|
|
22803
|
+
* Update a conversation by setting its recording state
|
|
22804
|
+
*
|
|
22805
|
+
* @param {String} conversationId conversationId
|
|
22806
|
+
* @param {Object} body SetRecordingState
|
|
22807
|
+
*/
|
|
22808
|
+
putConversationsCobrowsesessionRecordingstate(conversationId, body) {
|
|
22809
|
+
// verify the required parameter 'conversationId' is set
|
|
22810
|
+
if (conversationId === undefined || conversationId === null) {
|
|
22811
|
+
throw 'Missing the required parameter "conversationId" when calling putConversationsCobrowsesessionRecordingstate';
|
|
22812
|
+
}
|
|
22813
|
+
// verify the required parameter 'body' is set
|
|
22814
|
+
if (body === undefined || body === null) {
|
|
22815
|
+
throw 'Missing the required parameter "body" when calling putConversationsCobrowsesessionRecordingstate';
|
|
22816
|
+
}
|
|
22817
|
+
|
|
22818
|
+
return this.apiClient.callApi(
|
|
22819
|
+
'/api/v2/conversations/cobrowsesessions/{conversationId}/recordingstate',
|
|
22820
|
+
'PUT',
|
|
22821
|
+
{ 'conversationId': conversationId },
|
|
22822
|
+
{ },
|
|
22823
|
+
{ },
|
|
22824
|
+
{ },
|
|
22825
|
+
body,
|
|
22826
|
+
['PureCloud OAuth'],
|
|
22827
|
+
['application/json'],
|
|
22828
|
+
['application/json']
|
|
22829
|
+
);
|
|
22830
|
+
}
|
|
22831
|
+
|
|
20653
22832
|
/**
|
|
20654
22833
|
* Update conversation draft reply
|
|
20655
22834
|
*
|
|
@@ -20680,6 +22859,66 @@ class ConversationsApi {
|
|
|
20680
22859
|
);
|
|
20681
22860
|
}
|
|
20682
22861
|
|
|
22862
|
+
/**
|
|
22863
|
+
* Update a conversation by setting its recording state
|
|
22864
|
+
*
|
|
22865
|
+
* @param {String} conversationId conversationId
|
|
22866
|
+
* @param {Object} body SetRecordingState
|
|
22867
|
+
*/
|
|
22868
|
+
putConversationsEmailRecordingstate(conversationId, body) {
|
|
22869
|
+
// verify the required parameter 'conversationId' is set
|
|
22870
|
+
if (conversationId === undefined || conversationId === null) {
|
|
22871
|
+
throw 'Missing the required parameter "conversationId" when calling putConversationsEmailRecordingstate';
|
|
22872
|
+
}
|
|
22873
|
+
// verify the required parameter 'body' is set
|
|
22874
|
+
if (body === undefined || body === null) {
|
|
22875
|
+
throw 'Missing the required parameter "body" when calling putConversationsEmailRecordingstate';
|
|
22876
|
+
}
|
|
22877
|
+
|
|
22878
|
+
return this.apiClient.callApi(
|
|
22879
|
+
'/api/v2/conversations/emails/{conversationId}/recordingstate',
|
|
22880
|
+
'PUT',
|
|
22881
|
+
{ 'conversationId': conversationId },
|
|
22882
|
+
{ },
|
|
22883
|
+
{ },
|
|
22884
|
+
{ },
|
|
22885
|
+
body,
|
|
22886
|
+
['PureCloud OAuth'],
|
|
22887
|
+
['application/json'],
|
|
22888
|
+
['application/json']
|
|
22889
|
+
);
|
|
22890
|
+
}
|
|
22891
|
+
|
|
22892
|
+
/**
|
|
22893
|
+
* Update a conversation by setting its recording state
|
|
22894
|
+
*
|
|
22895
|
+
* @param {String} conversationId conversationId
|
|
22896
|
+
* @param {Object} body SetRecordingState
|
|
22897
|
+
*/
|
|
22898
|
+
putConversationsMessageRecordingstate(conversationId, body) {
|
|
22899
|
+
// verify the required parameter 'conversationId' is set
|
|
22900
|
+
if (conversationId === undefined || conversationId === null) {
|
|
22901
|
+
throw 'Missing the required parameter "conversationId" when calling putConversationsMessageRecordingstate';
|
|
22902
|
+
}
|
|
22903
|
+
// verify the required parameter 'body' is set
|
|
22904
|
+
if (body === undefined || body === null) {
|
|
22905
|
+
throw 'Missing the required parameter "body" when calling putConversationsMessageRecordingstate';
|
|
22906
|
+
}
|
|
22907
|
+
|
|
22908
|
+
return this.apiClient.callApi(
|
|
22909
|
+
'/api/v2/conversations/messages/{conversationId}/recordingstate',
|
|
22910
|
+
'PUT',
|
|
22911
|
+
{ 'conversationId': conversationId },
|
|
22912
|
+
{ },
|
|
22913
|
+
{ },
|
|
22914
|
+
{ },
|
|
22915
|
+
body,
|
|
22916
|
+
['PureCloud OAuth'],
|
|
22917
|
+
['application/json'],
|
|
22918
|
+
['application/json']
|
|
22919
|
+
);
|
|
22920
|
+
}
|
|
22921
|
+
|
|
20683
22922
|
/**
|
|
20684
22923
|
* Update a LINE messenger integration
|
|
20685
22924
|
*
|
|
@@ -20760,13 +22999,103 @@ class ConversationsApi {
|
|
|
20760
22999
|
);
|
|
20761
23000
|
}
|
|
20762
23001
|
|
|
23002
|
+
/**
|
|
23003
|
+
* Update a conversation by setting its recording state
|
|
23004
|
+
*
|
|
23005
|
+
* @param {String} conversationId conversationId
|
|
23006
|
+
* @param {Object} body SetRecordingState
|
|
23007
|
+
*/
|
|
23008
|
+
putConversationsScreenshareRecordingstate(conversationId, body) {
|
|
23009
|
+
// verify the required parameter 'conversationId' is set
|
|
23010
|
+
if (conversationId === undefined || conversationId === null) {
|
|
23011
|
+
throw 'Missing the required parameter "conversationId" when calling putConversationsScreenshareRecordingstate';
|
|
23012
|
+
}
|
|
23013
|
+
// verify the required parameter 'body' is set
|
|
23014
|
+
if (body === undefined || body === null) {
|
|
23015
|
+
throw 'Missing the required parameter "body" when calling putConversationsScreenshareRecordingstate';
|
|
23016
|
+
}
|
|
23017
|
+
|
|
23018
|
+
return this.apiClient.callApi(
|
|
23019
|
+
'/api/v2/conversations/screenshares/{conversationId}/recordingstate',
|
|
23020
|
+
'PUT',
|
|
23021
|
+
{ 'conversationId': conversationId },
|
|
23022
|
+
{ },
|
|
23023
|
+
{ },
|
|
23024
|
+
{ },
|
|
23025
|
+
body,
|
|
23026
|
+
['PureCloud OAuth'],
|
|
23027
|
+
['application/json'],
|
|
23028
|
+
['application/json']
|
|
23029
|
+
);
|
|
23030
|
+
}
|
|
23031
|
+
|
|
23032
|
+
/**
|
|
23033
|
+
* Update a conversation by setting its recording state
|
|
23034
|
+
*
|
|
23035
|
+
* @param {String} conversationId conversationId
|
|
23036
|
+
* @param {Object} body SetRecordingState
|
|
23037
|
+
*/
|
|
23038
|
+
putConversationsSocialRecordingstate(conversationId, body) {
|
|
23039
|
+
// verify the required parameter 'conversationId' is set
|
|
23040
|
+
if (conversationId === undefined || conversationId === null) {
|
|
23041
|
+
throw 'Missing the required parameter "conversationId" when calling putConversationsSocialRecordingstate';
|
|
23042
|
+
}
|
|
23043
|
+
// verify the required parameter 'body' is set
|
|
23044
|
+
if (body === undefined || body === null) {
|
|
23045
|
+
throw 'Missing the required parameter "body" when calling putConversationsSocialRecordingstate';
|
|
23046
|
+
}
|
|
23047
|
+
|
|
23048
|
+
return this.apiClient.callApi(
|
|
23049
|
+
'/api/v2/conversations/socials/{conversationId}/recordingstate',
|
|
23050
|
+
'PUT',
|
|
23051
|
+
{ 'conversationId': conversationId },
|
|
23052
|
+
{ },
|
|
23053
|
+
{ },
|
|
23054
|
+
{ },
|
|
23055
|
+
body,
|
|
23056
|
+
['PureCloud OAuth'],
|
|
23057
|
+
['application/json'],
|
|
23058
|
+
['application/json']
|
|
23059
|
+
);
|
|
23060
|
+
}
|
|
23061
|
+
|
|
23062
|
+
/**
|
|
23063
|
+
* Update a conversation by setting its recording state
|
|
23064
|
+
*
|
|
23065
|
+
* @param {String} conversationId conversationId
|
|
23066
|
+
* @param {Object} body SetRecordingState
|
|
23067
|
+
*/
|
|
23068
|
+
putConversationsVideoRecordingstate(conversationId, body) {
|
|
23069
|
+
// verify the required parameter 'conversationId' is set
|
|
23070
|
+
if (conversationId === undefined || conversationId === null) {
|
|
23071
|
+
throw 'Missing the required parameter "conversationId" when calling putConversationsVideoRecordingstate';
|
|
23072
|
+
}
|
|
23073
|
+
// verify the required parameter 'body' is set
|
|
23074
|
+
if (body === undefined || body === null) {
|
|
23075
|
+
throw 'Missing the required parameter "body" when calling putConversationsVideoRecordingstate';
|
|
23076
|
+
}
|
|
23077
|
+
|
|
23078
|
+
return this.apiClient.callApi(
|
|
23079
|
+
'/api/v2/conversations/videos/{conversationId}/recordingstate',
|
|
23080
|
+
'PUT',
|
|
23081
|
+
{ 'conversationId': conversationId },
|
|
23082
|
+
{ },
|
|
23083
|
+
{ },
|
|
23084
|
+
{ },
|
|
23085
|
+
body,
|
|
23086
|
+
['PureCloud OAuth'],
|
|
23087
|
+
['application/json'],
|
|
23088
|
+
['application/json']
|
|
23089
|
+
);
|
|
23090
|
+
}
|
|
23091
|
+
|
|
20763
23092
|
}
|
|
20764
23093
|
|
|
20765
23094
|
class DataExtensionsApi {
|
|
20766
23095
|
/**
|
|
20767
23096
|
* DataExtensions service.
|
|
20768
23097
|
* @module purecloud-platform-client-v2/api/DataExtensionsApi
|
|
20769
|
-
* @version
|
|
23098
|
+
* @version 140.0.1
|
|
20770
23099
|
*/
|
|
20771
23100
|
|
|
20772
23101
|
/**
|
|
@@ -20852,7 +23181,7 @@ class ExternalContactsApi {
|
|
|
20852
23181
|
/**
|
|
20853
23182
|
* ExternalContacts service.
|
|
20854
23183
|
* @module purecloud-platform-client-v2/api/ExternalContactsApi
|
|
20855
|
-
* @version
|
|
23184
|
+
* @version 140.0.1
|
|
20856
23185
|
*/
|
|
20857
23186
|
|
|
20858
23187
|
/**
|
|
@@ -22595,7 +24924,7 @@ class FaxApi {
|
|
|
22595
24924
|
/**
|
|
22596
24925
|
* Fax service.
|
|
22597
24926
|
* @module purecloud-platform-client-v2/api/FaxApi
|
|
22598
|
-
* @version
|
|
24927
|
+
* @version 140.0.1
|
|
22599
24928
|
*/
|
|
22600
24929
|
|
|
22601
24930
|
/**
|
|
@@ -22766,7 +25095,7 @@ class FlowsApi {
|
|
|
22766
25095
|
/**
|
|
22767
25096
|
* Flows service.
|
|
22768
25097
|
* @module purecloud-platform-client-v2/api/FlowsApi
|
|
22769
|
-
* @version
|
|
25098
|
+
* @version 140.0.1
|
|
22770
25099
|
*/
|
|
22771
25100
|
|
|
22772
25101
|
/**
|
|
@@ -22837,7 +25166,7 @@ class GamificationApi {
|
|
|
22837
25166
|
/**
|
|
22838
25167
|
* Gamification service.
|
|
22839
25168
|
* @module purecloud-platform-client-v2/api/GamificationApi
|
|
22840
|
-
* @version
|
|
25169
|
+
* @version 140.0.1
|
|
22841
25170
|
*/
|
|
22842
25171
|
|
|
22843
25172
|
/**
|
|
@@ -22982,7 +25311,7 @@ class GamificationApi {
|
|
|
22982
25311
|
|
|
22983
25312
|
/**
|
|
22984
25313
|
* Gamified metric by id
|
|
22985
|
-
*
|
|
25314
|
+
* This API is deprecated. Use /api/v2/gamification/profiles/{profileId}/metrics/{metricId} instead.
|
|
22986
25315
|
* @param {String} metricId metric Id
|
|
22987
25316
|
* @param {Object} opts Optional parameters
|
|
22988
25317
|
* @param {String} opts.workday The objective query workday. If not specified, then it retrieves the current objective. Dates are represented as an ISO-8601 string. For example: yyyy-MM-dd
|
|
@@ -23057,7 +25386,7 @@ class GamificationApi {
|
|
|
23057
25386
|
|
|
23058
25387
|
/**
|
|
23059
25388
|
* All gamified metrics for a given profile
|
|
23060
|
-
*
|
|
25389
|
+
* This API is deprecated. Use /api/v2/gamification/profiles/{profileId}/metrics instead.
|
|
23061
25390
|
* @param {Object} opts Optional parameters
|
|
23062
25391
|
* @param {String} opts.performanceProfileId The profile id of the metrics you are trying to retrieve. The DEFAULT profile is used if nothing is given.
|
|
23063
25392
|
* @param {String} opts.workday The objective query workday. If not specified, then it retrieves the current objective. Dates are represented as an ISO-8601 string. For example: yyyy-MM-dd
|
|
@@ -23108,18 +25437,18 @@ class GamificationApi {
|
|
|
23108
25437
|
/**
|
|
23109
25438
|
* Members of a given performance profile
|
|
23110
25439
|
*
|
|
23111
|
-
* @param {String}
|
|
25440
|
+
* @param {String} profileId Profile Id
|
|
23112
25441
|
*/
|
|
23113
|
-
getGamificationProfileMembers(
|
|
23114
|
-
// verify the required parameter '
|
|
23115
|
-
if (
|
|
23116
|
-
throw 'Missing the required parameter "
|
|
25442
|
+
getGamificationProfileMembers(profileId) {
|
|
25443
|
+
// verify the required parameter 'profileId' is set
|
|
25444
|
+
if (profileId === undefined || profileId === null) {
|
|
25445
|
+
throw 'Missing the required parameter "profileId" when calling getGamificationProfileMembers';
|
|
23117
25446
|
}
|
|
23118
25447
|
|
|
23119
25448
|
return this.apiClient.callApi(
|
|
23120
|
-
'/api/v2/gamification/profiles/{
|
|
25449
|
+
'/api/v2/gamification/profiles/{profileId}/members',
|
|
23121
25450
|
'GET',
|
|
23122
|
-
{ '
|
|
25451
|
+
{ 'profileId': profileId },
|
|
23123
25452
|
{ },
|
|
23124
25453
|
{ },
|
|
23125
25454
|
{ },
|
|
@@ -23171,6 +25500,7 @@ class GamificationApi {
|
|
|
23171
25500
|
* @param {Object} opts Optional parameters
|
|
23172
25501
|
* @param {Array.<String>} opts.expand Which fields, if any, to expand.
|
|
23173
25502
|
* @param {String} opts.workday The objective query workday. If not specified, then it retrieves the current objective. Dates are represented as an ISO-8601 string. For example: yyyy-MM-dd
|
|
25503
|
+
* @param {String} opts.metricIds List of metric ids to filter the response (Optional, comma-separated).
|
|
23174
25504
|
*/
|
|
23175
25505
|
getGamificationProfileMetrics(profileId, opts) {
|
|
23176
25506
|
opts = opts || {};
|
|
@@ -23184,7 +25514,7 @@ class GamificationApi {
|
|
|
23184
25514
|
'/api/v2/gamification/profiles/{profileId}/metrics',
|
|
23185
25515
|
'GET',
|
|
23186
25516
|
{ 'profileId': profileId },
|
|
23187
|
-
{ 'expand': this.apiClient.buildCollectionParam(opts['expand'], 'multi'),'workday': opts['workday'] },
|
|
25517
|
+
{ 'expand': this.apiClient.buildCollectionParam(opts['expand'], 'multi'),'workday': opts['workday'],'metricIds': opts['metricIds'] },
|
|
23188
25518
|
{ },
|
|
23189
25519
|
{ },
|
|
23190
25520
|
null,
|
|
@@ -23911,7 +26241,7 @@ class GamificationApi {
|
|
|
23911
26241
|
|
|
23912
26242
|
/**
|
|
23913
26243
|
* Creates a gamified metric with a given metric definition and metric objective
|
|
23914
|
-
*
|
|
26244
|
+
* This API is deprecated. Use /api/v2/gamification/profiles/{profileId}/metrics instead.
|
|
23915
26245
|
* @param {Object} body Metric
|
|
23916
26246
|
*/
|
|
23917
26247
|
postGamificationMetrics(body) {
|
|
@@ -23987,13 +26317,13 @@ class GamificationApi {
|
|
|
23987
26317
|
/**
|
|
23988
26318
|
* Assign members to a given performance profile
|
|
23989
26319
|
*
|
|
23990
|
-
* @param {String}
|
|
26320
|
+
* @param {String} profileId Profile Id
|
|
23991
26321
|
* @param {Object} body assignUsers
|
|
23992
26322
|
*/
|
|
23993
|
-
postGamificationProfileMembers(
|
|
23994
|
-
// verify the required parameter '
|
|
23995
|
-
if (
|
|
23996
|
-
throw 'Missing the required parameter "
|
|
26323
|
+
postGamificationProfileMembers(profileId, body) {
|
|
26324
|
+
// verify the required parameter 'profileId' is set
|
|
26325
|
+
if (profileId === undefined || profileId === null) {
|
|
26326
|
+
throw 'Missing the required parameter "profileId" when calling postGamificationProfileMembers';
|
|
23997
26327
|
}
|
|
23998
26328
|
// verify the required parameter 'body' is set
|
|
23999
26329
|
if (body === undefined || body === null) {
|
|
@@ -24001,9 +26331,9 @@ class GamificationApi {
|
|
|
24001
26331
|
}
|
|
24002
26332
|
|
|
24003
26333
|
return this.apiClient.callApi(
|
|
24004
|
-
'/api/v2/gamification/profiles/{
|
|
26334
|
+
'/api/v2/gamification/profiles/{profileId}/members',
|
|
24005
26335
|
'POST',
|
|
24006
|
-
{ '
|
|
26336
|
+
{ 'profileId': profileId },
|
|
24007
26337
|
{ },
|
|
24008
26338
|
{ },
|
|
24009
26339
|
{ },
|
|
@@ -24017,13 +26347,13 @@ class GamificationApi {
|
|
|
24017
26347
|
/**
|
|
24018
26348
|
* Validate member assignment
|
|
24019
26349
|
*
|
|
24020
|
-
* @param {String}
|
|
26350
|
+
* @param {String} profileId Profile Id
|
|
24021
26351
|
* @param {Object} body memberAssignments
|
|
24022
26352
|
*/
|
|
24023
|
-
postGamificationProfileMembersValidate(
|
|
24024
|
-
// verify the required parameter '
|
|
24025
|
-
if (
|
|
24026
|
-
throw 'Missing the required parameter "
|
|
26353
|
+
postGamificationProfileMembersValidate(profileId, body) {
|
|
26354
|
+
// verify the required parameter 'profileId' is set
|
|
26355
|
+
if (profileId === undefined || profileId === null) {
|
|
26356
|
+
throw 'Missing the required parameter "profileId" when calling postGamificationProfileMembersValidate';
|
|
24027
26357
|
}
|
|
24028
26358
|
// verify the required parameter 'body' is set
|
|
24029
26359
|
if (body === undefined || body === null) {
|
|
@@ -24031,9 +26361,9 @@ class GamificationApi {
|
|
|
24031
26361
|
}
|
|
24032
26362
|
|
|
24033
26363
|
return this.apiClient.callApi(
|
|
24034
|
-
'/api/v2/gamification/profiles/{
|
|
26364
|
+
'/api/v2/gamification/profiles/{profileId}/members/validate',
|
|
24035
26365
|
'POST',
|
|
24036
|
-
{ '
|
|
26366
|
+
{ 'profileId': profileId },
|
|
24037
26367
|
{ },
|
|
24038
26368
|
{ },
|
|
24039
26369
|
{ },
|
|
@@ -24140,7 +26470,7 @@ class GamificationApi {
|
|
|
24140
26470
|
|
|
24141
26471
|
/**
|
|
24142
26472
|
* Updates a metric
|
|
24143
|
-
*
|
|
26473
|
+
* This API is deprecated. Use /api/v2/gamification/profiles/{profileId}/metrics/{metricId} instead.
|
|
24144
26474
|
* @param {String} metricId metric Id
|
|
24145
26475
|
* @param {Object} body Metric
|
|
24146
26476
|
* @param {Object} opts Optional parameters
|
|
@@ -24267,7 +26597,7 @@ class GeneralDataProtectionRegulationApi {
|
|
|
24267
26597
|
/**
|
|
24268
26598
|
* GeneralDataProtectionRegulation service.
|
|
24269
26599
|
* @module purecloud-platform-client-v2/api/GeneralDataProtectionRegulationApi
|
|
24270
|
-
* @version
|
|
26600
|
+
* @version 140.0.1
|
|
24271
26601
|
*/
|
|
24272
26602
|
|
|
24273
26603
|
/**
|
|
@@ -24397,7 +26727,7 @@ class GeolocationApi {
|
|
|
24397
26727
|
/**
|
|
24398
26728
|
* Geolocation service.
|
|
24399
26729
|
* @module purecloud-platform-client-v2/api/GeolocationApi
|
|
24400
|
-
* @version
|
|
26730
|
+
* @version 140.0.1
|
|
24401
26731
|
*/
|
|
24402
26732
|
|
|
24403
26733
|
/**
|
|
@@ -24528,7 +26858,7 @@ class GreetingsApi {
|
|
|
24528
26858
|
/**
|
|
24529
26859
|
* Greetings service.
|
|
24530
26860
|
* @module purecloud-platform-client-v2/api/GreetingsApi
|
|
24531
|
-
* @version
|
|
26861
|
+
* @version 140.0.1
|
|
24532
26862
|
*/
|
|
24533
26863
|
|
|
24534
26864
|
/**
|
|
@@ -24983,7 +27313,7 @@ class GroupsApi {
|
|
|
24983
27313
|
/**
|
|
24984
27314
|
* Groups service.
|
|
24985
27315
|
* @module purecloud-platform-client-v2/api/GroupsApi
|
|
24986
|
-
* @version
|
|
27316
|
+
* @version 140.0.1
|
|
24987
27317
|
*/
|
|
24988
27318
|
|
|
24989
27319
|
/**
|
|
@@ -25388,7 +27718,7 @@ class IdentityProviderApi {
|
|
|
25388
27718
|
/**
|
|
25389
27719
|
* IdentityProvider service.
|
|
25390
27720
|
* @module purecloud-platform-client-v2/api/IdentityProviderApi
|
|
25391
|
-
* @version
|
|
27721
|
+
* @version 140.0.1
|
|
25392
27722
|
*/
|
|
25393
27723
|
|
|
25394
27724
|
/**
|
|
@@ -26144,7 +28474,7 @@ class IntegrationsApi {
|
|
|
26144
28474
|
/**
|
|
26145
28475
|
* Integrations service.
|
|
26146
28476
|
* @module purecloud-platform-client-v2/api/IntegrationsApi
|
|
26147
|
-
* @version
|
|
28477
|
+
* @version 140.0.1
|
|
26148
28478
|
*/
|
|
26149
28479
|
|
|
26150
28480
|
/**
|
|
@@ -27821,7 +30151,7 @@ class JourneyApi {
|
|
|
27821
30151
|
/**
|
|
27822
30152
|
* Journey service.
|
|
27823
30153
|
* @module purecloud-platform-client-v2/api/JourneyApi
|
|
27824
|
-
* @version
|
|
30154
|
+
* @version 140.0.1
|
|
27825
30155
|
*/
|
|
27826
30156
|
|
|
27827
30157
|
/**
|
|
@@ -28532,7 +30862,7 @@ class KnowledgeApi {
|
|
|
28532
30862
|
/**
|
|
28533
30863
|
* Knowledge service.
|
|
28534
30864
|
* @module purecloud-platform-client-v2/api/KnowledgeApi
|
|
28535
|
-
* @version
|
|
30865
|
+
* @version 140.0.1
|
|
28536
30866
|
*/
|
|
28537
30867
|
|
|
28538
30868
|
/**
|
|
@@ -28710,7 +31040,7 @@ class KnowledgeApi {
|
|
|
28710
31040
|
* @param {Object} opts Optional parameters
|
|
28711
31041
|
* @param {String} opts.before The cursor that points to the start of the set of entities that has been returned.
|
|
28712
31042
|
* @param {String} opts.after The cursor that points to the end of the set of entities that has been returned.
|
|
28713
|
-
* @param {String} opts.limit Number of entities to return. Maximum of 200. Deprecated in favour of pageSize
|
|
31043
|
+
* @param {String} opts.limit Number of entities to return. Maximum of 200. Deprecated in favour of pageSize
|
|
28714
31044
|
* @param {String} opts.pageSize Number of entities to return. Maximum of 200.
|
|
28715
31045
|
* @param {String} opts.name Filter to return the categories that starts with the given category name.
|
|
28716
31046
|
*/
|
|
@@ -28818,7 +31148,7 @@ class KnowledgeApi {
|
|
|
28818
31148
|
* @param {Object} opts Optional parameters
|
|
28819
31149
|
* @param {String} opts.before The cursor that points to the start of the set of entities that has been returned.
|
|
28820
31150
|
* @param {String} opts.after The cursor that points to the end of the set of entities that has been returned.
|
|
28821
|
-
* @param {String} opts.limit Number of entities to return. Maximum of 200. Deprecated in favour of pageSize
|
|
31151
|
+
* @param {String} opts.limit Number of entities to return. Maximum of 200. Deprecated in favour of pageSize
|
|
28822
31152
|
* @param {String} opts.pageSize Number of entities to return. Maximum of 200.
|
|
28823
31153
|
* @param {String} opts.categories Filter by categories ids, comma separated values expected.
|
|
28824
31154
|
* @param {String} opts.title Filter by document title.
|
|
@@ -28930,7 +31260,7 @@ class KnowledgeApi {
|
|
|
28930
31260
|
* @param {Object} opts Optional parameters
|
|
28931
31261
|
* @param {String} opts.before The cursor that points to the start of the set of entities that has been returned.
|
|
28932
31262
|
* @param {String} opts.after The cursor that points to the end of the set of entities that has been returned.
|
|
28933
|
-
* @param {String} opts.limit Number of entities to return. Maximum of 200. Deprecated in favour of pageSize
|
|
31263
|
+
* @param {String} opts.limit Number of entities to return. Maximum of 200. Deprecated in favour of pageSize
|
|
28934
31264
|
* @param {String} opts.pageSize Number of entities to return. Maximum of 200.
|
|
28935
31265
|
* @param {Object} opts.knowledgeDocumentsState Return the training with the specified state of the trained documents.
|
|
28936
31266
|
*/
|
|
@@ -28966,7 +31296,7 @@ class KnowledgeApi {
|
|
|
28966
31296
|
* @param {Object} opts Optional parameters
|
|
28967
31297
|
* @param {String} opts.before The cursor that points to the start of the set of entities that has been returned.
|
|
28968
31298
|
* @param {String} opts.after The cursor that points to the end of the set of entities that has been returned.
|
|
28969
|
-
* @param {String} opts.limit Number of entities to return. Maximum of 200. Deprecated in favour of pageSize
|
|
31299
|
+
* @param {String} opts.limit Number of entities to return. Maximum of 200. Deprecated in favour of pageSize
|
|
28970
31300
|
* @param {String} opts.pageSize Number of entities to return. Maximum of 200.
|
|
28971
31301
|
* @param {String} opts.name Filter by Name.
|
|
28972
31302
|
* @param {Object} opts.coreLanguage Filter by core language.
|
|
@@ -29432,7 +31762,7 @@ class LanguageUnderstandingApi {
|
|
|
29432
31762
|
/**
|
|
29433
31763
|
* LanguageUnderstanding service.
|
|
29434
31764
|
* @module purecloud-platform-client-v2/api/LanguageUnderstandingApi
|
|
29435
|
-
* @version
|
|
31765
|
+
* @version 140.0.1
|
|
29436
31766
|
*/
|
|
29437
31767
|
|
|
29438
31768
|
/**
|
|
@@ -30336,7 +32666,7 @@ class LanguagesApi {
|
|
|
30336
32666
|
/**
|
|
30337
32667
|
* Languages service.
|
|
30338
32668
|
* @module purecloud-platform-client-v2/api/LanguagesApi
|
|
30339
|
-
* @version
|
|
32669
|
+
* @version 140.0.1
|
|
30340
32670
|
*/
|
|
30341
32671
|
|
|
30342
32672
|
/**
|
|
@@ -30604,7 +32934,7 @@ class LearningApi {
|
|
|
30604
32934
|
/**
|
|
30605
32935
|
* Learning service.
|
|
30606
32936
|
* @module purecloud-platform-client-v2/api/LearningApi
|
|
30607
|
-
* @version
|
|
32937
|
+
* @version 140.0.1
|
|
30608
32938
|
*/
|
|
30609
32939
|
|
|
30610
32940
|
/**
|
|
@@ -30802,6 +33132,36 @@ class LearningApi {
|
|
|
30802
33132
|
);
|
|
30803
33133
|
}
|
|
30804
33134
|
|
|
33135
|
+
/**
|
|
33136
|
+
* Get a specific Learning Module job status
|
|
33137
|
+
*
|
|
33138
|
+
* @param {String} moduleId The ID of the learning module
|
|
33139
|
+
* @param {String} jobId The ID of the learning module job
|
|
33140
|
+
*/
|
|
33141
|
+
getLearningModuleJob(moduleId, jobId) {
|
|
33142
|
+
// verify the required parameter 'moduleId' is set
|
|
33143
|
+
if (moduleId === undefined || moduleId === null) {
|
|
33144
|
+
throw 'Missing the required parameter "moduleId" when calling getLearningModuleJob';
|
|
33145
|
+
}
|
|
33146
|
+
// verify the required parameter 'jobId' is set
|
|
33147
|
+
if (jobId === undefined || jobId === null) {
|
|
33148
|
+
throw 'Missing the required parameter "jobId" when calling getLearningModuleJob';
|
|
33149
|
+
}
|
|
33150
|
+
|
|
33151
|
+
return this.apiClient.callApi(
|
|
33152
|
+
'/api/v2/learning/modules/{moduleId}/jobs/{jobId}',
|
|
33153
|
+
'GET',
|
|
33154
|
+
{ 'moduleId': moduleId,'jobId': jobId },
|
|
33155
|
+
{ },
|
|
33156
|
+
{ },
|
|
33157
|
+
{ },
|
|
33158
|
+
null,
|
|
33159
|
+
['PureCloud OAuth'],
|
|
33160
|
+
['application/json'],
|
|
33161
|
+
['application/json']
|
|
33162
|
+
);
|
|
33163
|
+
}
|
|
33164
|
+
|
|
30805
33165
|
/**
|
|
30806
33166
|
* Get a learning module rule
|
|
30807
33167
|
*
|
|
@@ -30947,6 +33307,56 @@ class LearningApi {
|
|
|
30947
33307
|
);
|
|
30948
33308
|
}
|
|
30949
33309
|
|
|
33310
|
+
/**
|
|
33311
|
+
* Reassign Learning Assignment
|
|
33312
|
+
* This will reassign the state of the assignment to Assigned and update the assignment to the latest version of the module
|
|
33313
|
+
* @param {String} assignmentId The Learning Assignment ID
|
|
33314
|
+
*/
|
|
33315
|
+
postLearningAssignmentReassign(assignmentId) {
|
|
33316
|
+
// verify the required parameter 'assignmentId' is set
|
|
33317
|
+
if (assignmentId === undefined || assignmentId === null) {
|
|
33318
|
+
throw 'Missing the required parameter "assignmentId" when calling postLearningAssignmentReassign';
|
|
33319
|
+
}
|
|
33320
|
+
|
|
33321
|
+
return this.apiClient.callApi(
|
|
33322
|
+
'/api/v2/learning/assignments/{assignmentId}/reassign',
|
|
33323
|
+
'POST',
|
|
33324
|
+
{ 'assignmentId': assignmentId },
|
|
33325
|
+
{ },
|
|
33326
|
+
{ },
|
|
33327
|
+
{ },
|
|
33328
|
+
null,
|
|
33329
|
+
['PureCloud OAuth'],
|
|
33330
|
+
['application/json'],
|
|
33331
|
+
['application/json']
|
|
33332
|
+
);
|
|
33333
|
+
}
|
|
33334
|
+
|
|
33335
|
+
/**
|
|
33336
|
+
* Reset Learning Assignment
|
|
33337
|
+
* This will reset the state of the assignment to Assigned and remove the version of Learning module associated with the assignment
|
|
33338
|
+
* @param {String} assignmentId The Learning Assignment ID
|
|
33339
|
+
*/
|
|
33340
|
+
postLearningAssignmentReset(assignmentId) {
|
|
33341
|
+
// verify the required parameter 'assignmentId' is set
|
|
33342
|
+
if (assignmentId === undefined || assignmentId === null) {
|
|
33343
|
+
throw 'Missing the required parameter "assignmentId" when calling postLearningAssignmentReset';
|
|
33344
|
+
}
|
|
33345
|
+
|
|
33346
|
+
return this.apiClient.callApi(
|
|
33347
|
+
'/api/v2/learning/assignments/{assignmentId}/reset',
|
|
33348
|
+
'POST',
|
|
33349
|
+
{ 'assignmentId': assignmentId },
|
|
33350
|
+
{ },
|
|
33351
|
+
{ },
|
|
33352
|
+
{ },
|
|
33353
|
+
null,
|
|
33354
|
+
['PureCloud OAuth'],
|
|
33355
|
+
['application/json'],
|
|
33356
|
+
['application/json']
|
|
33357
|
+
);
|
|
33358
|
+
}
|
|
33359
|
+
|
|
30950
33360
|
/**
|
|
30951
33361
|
* Create Learning Assignment
|
|
30952
33362
|
*
|
|
@@ -31044,6 +33454,36 @@ class LearningApi {
|
|
|
31044
33454
|
);
|
|
31045
33455
|
}
|
|
31046
33456
|
|
|
33457
|
+
/**
|
|
33458
|
+
* Starts a specified operation on learning module
|
|
33459
|
+
* This will initiate operation specified in the request body for a learning module
|
|
33460
|
+
* @param {String} moduleId The ID of the learning module
|
|
33461
|
+
* @param {Object} body The learning module job request
|
|
33462
|
+
*/
|
|
33463
|
+
postLearningModuleJobs(moduleId, body) {
|
|
33464
|
+
// verify the required parameter 'moduleId' is set
|
|
33465
|
+
if (moduleId === undefined || moduleId === null) {
|
|
33466
|
+
throw 'Missing the required parameter "moduleId" when calling postLearningModuleJobs';
|
|
33467
|
+
}
|
|
33468
|
+
// verify the required parameter 'body' is set
|
|
33469
|
+
if (body === undefined || body === null) {
|
|
33470
|
+
throw 'Missing the required parameter "body" when calling postLearningModuleJobs';
|
|
33471
|
+
}
|
|
33472
|
+
|
|
33473
|
+
return this.apiClient.callApi(
|
|
33474
|
+
'/api/v2/learning/modules/{moduleId}/jobs',
|
|
33475
|
+
'POST',
|
|
33476
|
+
{ 'moduleId': moduleId },
|
|
33477
|
+
{ },
|
|
33478
|
+
{ },
|
|
33479
|
+
{ },
|
|
33480
|
+
body,
|
|
33481
|
+
['PureCloud OAuth'],
|
|
33482
|
+
['application/json'],
|
|
33483
|
+
['application/json']
|
|
33484
|
+
);
|
|
33485
|
+
}
|
|
33486
|
+
|
|
31047
33487
|
/**
|
|
31048
33488
|
* Publish a Learning module
|
|
31049
33489
|
*
|
|
@@ -31195,7 +33635,7 @@ class LicenseApi {
|
|
|
31195
33635
|
/**
|
|
31196
33636
|
* License service.
|
|
31197
33637
|
* @module purecloud-platform-client-v2/api/LicenseApi
|
|
31198
|
-
* @version
|
|
33638
|
+
* @version 140.0.1
|
|
31199
33639
|
*/
|
|
31200
33640
|
|
|
31201
33641
|
/**
|
|
@@ -31433,7 +33873,7 @@ class LocationsApi {
|
|
|
31433
33873
|
/**
|
|
31434
33874
|
* Locations service.
|
|
31435
33875
|
* @module purecloud-platform-client-v2/api/LocationsApi
|
|
31436
|
-
* @version
|
|
33876
|
+
* @version 140.0.1
|
|
31437
33877
|
*/
|
|
31438
33878
|
|
|
31439
33879
|
/**
|
|
@@ -31669,7 +34109,7 @@ class MessagingApi {
|
|
|
31669
34109
|
/**
|
|
31670
34110
|
* Messaging service.
|
|
31671
34111
|
* @module purecloud-platform-client-v2/api/MessagingApi
|
|
31672
|
-
* @version
|
|
34112
|
+
* @version 140.0.1
|
|
31673
34113
|
*/
|
|
31674
34114
|
|
|
31675
34115
|
/**
|
|
@@ -31820,7 +34260,7 @@ class MobileDevicesApi {
|
|
|
31820
34260
|
/**
|
|
31821
34261
|
* MobileDevices service.
|
|
31822
34262
|
* @module purecloud-platform-client-v2/api/MobileDevicesApi
|
|
31823
|
-
* @version
|
|
34263
|
+
* @version 140.0.1
|
|
31824
34264
|
*/
|
|
31825
34265
|
|
|
31826
34266
|
/**
|
|
@@ -31971,7 +34411,7 @@ class NotificationsApi {
|
|
|
31971
34411
|
/**
|
|
31972
34412
|
* Notifications service.
|
|
31973
34413
|
* @module purecloud-platform-client-v2/api/NotificationsApi
|
|
31974
|
-
* @version
|
|
34414
|
+
* @version 140.0.1
|
|
31975
34415
|
*/
|
|
31976
34416
|
|
|
31977
34417
|
/**
|
|
@@ -32196,7 +34636,7 @@ class OAuthApi {
|
|
|
32196
34636
|
/**
|
|
32197
34637
|
* OAuth service.
|
|
32198
34638
|
* @module purecloud-platform-client-v2/api/OAuthApi
|
|
32199
|
-
* @version
|
|
34639
|
+
* @version 140.0.1
|
|
32200
34640
|
*/
|
|
32201
34641
|
|
|
32202
34642
|
/**
|
|
@@ -32562,7 +35002,7 @@ class ObjectsApi {
|
|
|
32562
35002
|
/**
|
|
32563
35003
|
* Objects service.
|
|
32564
35004
|
* @module purecloud-platform-client-v2/api/ObjectsApi
|
|
32565
|
-
* @version
|
|
35005
|
+
* @version 140.0.1
|
|
32566
35006
|
*/
|
|
32567
35007
|
|
|
32568
35008
|
/**
|
|
@@ -32833,7 +35273,7 @@ class OrganizationApi {
|
|
|
32833
35273
|
/**
|
|
32834
35274
|
* Organization service.
|
|
32835
35275
|
* @module purecloud-platform-client-v2/api/OrganizationApi
|
|
32836
|
-
* @version
|
|
35276
|
+
* @version 140.0.1
|
|
32837
35277
|
*/
|
|
32838
35278
|
|
|
32839
35279
|
/**
|
|
@@ -33236,7 +35676,7 @@ class OrganizationAuthorizationApi {
|
|
|
33236
35676
|
/**
|
|
33237
35677
|
* OrganizationAuthorization service.
|
|
33238
35678
|
* @module purecloud-platform-client-v2/api/OrganizationAuthorizationApi
|
|
33239
|
-
* @version
|
|
35679
|
+
* @version 140.0.1
|
|
33240
35680
|
*/
|
|
33241
35681
|
|
|
33242
35682
|
/**
|
|
@@ -34161,7 +36601,7 @@ class OutboundApi {
|
|
|
34161
36601
|
/**
|
|
34162
36602
|
* Outbound service.
|
|
34163
36603
|
* @module purecloud-platform-client-v2/api/OutboundApi
|
|
34164
|
-
* @version
|
|
36604
|
+
* @version 140.0.1
|
|
34165
36605
|
*/
|
|
34166
36606
|
|
|
34167
36607
|
/**
|
|
@@ -37416,7 +39856,7 @@ class PresenceApi {
|
|
|
37416
39856
|
/**
|
|
37417
39857
|
* Presence service.
|
|
37418
39858
|
* @module purecloud-platform-client-v2/api/PresenceApi
|
|
37419
|
-
* @version
|
|
39859
|
+
* @version 140.0.1
|
|
37420
39860
|
*/
|
|
37421
39861
|
|
|
37422
39862
|
/**
|
|
@@ -37738,7 +40178,7 @@ class QualityApi {
|
|
|
37738
40178
|
/**
|
|
37739
40179
|
* Quality service.
|
|
37740
40180
|
* @module purecloud-platform-client-v2/api/QualityApi
|
|
37741
|
-
* @version
|
|
40181
|
+
* @version 140.0.1
|
|
37742
40182
|
*/
|
|
37743
40183
|
|
|
37744
40184
|
/**
|
|
@@ -38496,7 +40936,7 @@ class QualityApi {
|
|
|
38496
40936
|
/**
|
|
38497
40937
|
* Retrieve a list of the latest form versions by context ids
|
|
38498
40938
|
*
|
|
38499
|
-
* @param {Array.<String>} contextId A comma-delimited list of valid survey form context ids
|
|
40939
|
+
* @param {Array.<String>} contextId A comma-delimited list of valid survey form context ids. The maximum number of ids allowed in this list is 100.
|
|
38500
40940
|
* @param {Object} opts Optional parameters
|
|
38501
40941
|
* @param {Boolean} opts.published If true, the latest published version will be included. If false, only the unpublished version will be included. (default to true)
|
|
38502
40942
|
*/
|
|
@@ -39316,7 +41756,7 @@ class RecordingApi {
|
|
|
39316
41756
|
/**
|
|
39317
41757
|
* Recording service.
|
|
39318
41758
|
* @module purecloud-platform-client-v2/api/RecordingApi
|
|
39319
|
-
* @version
|
|
41759
|
+
* @version 140.0.1
|
|
39320
41760
|
*/
|
|
39321
41761
|
|
|
39322
41762
|
/**
|
|
@@ -40969,7 +43409,7 @@ class ResponseManagementApi {
|
|
|
40969
43409
|
/**
|
|
40970
43410
|
* ResponseManagement service.
|
|
40971
43411
|
* @module purecloud-platform-client-v2/api/ResponseManagementApi
|
|
40972
|
-
* @version
|
|
43412
|
+
* @version 140.0.1
|
|
40973
43413
|
*/
|
|
40974
43414
|
|
|
40975
43415
|
/**
|
|
@@ -41453,7 +43893,7 @@ class RoutingApi {
|
|
|
41453
43893
|
/**
|
|
41454
43894
|
* Routing service.
|
|
41455
43895
|
* @module purecloud-platform-client-v2/api/RoutingApi
|
|
41456
|
-
* @version
|
|
43896
|
+
* @version 140.0.1
|
|
41457
43897
|
*/
|
|
41458
43898
|
|
|
41459
43899
|
/**
|
|
@@ -41766,12 +44206,8 @@ class RoutingApi {
|
|
|
41766
44206
|
* Delete a phone number provisioned for SMS.
|
|
41767
44207
|
*
|
|
41768
44208
|
* @param {String} addressId Address ID
|
|
41769
|
-
* @param {Object} opts Optional parameters
|
|
41770
|
-
* @param {Boolean} opts.async Delete a phone number for SMS in an asynchronous manner. If the async parameter value is true, this initiates the deletion of a provisioned phone number. (default to false)
|
|
41771
44209
|
*/
|
|
41772
|
-
deleteRoutingSmsPhonenumber(addressId
|
|
41773
|
-
opts = opts || {};
|
|
41774
|
-
|
|
44210
|
+
deleteRoutingSmsPhonenumber(addressId) {
|
|
41775
44211
|
// verify the required parameter 'addressId' is set
|
|
41776
44212
|
if (addressId === undefined || addressId === null) {
|
|
41777
44213
|
throw 'Missing the required parameter "addressId" when calling deleteRoutingSmsPhonenumber';
|
|
@@ -41781,7 +44217,7 @@ class RoutingApi {
|
|
|
41781
44217
|
'/api/v2/routing/sms/phonenumbers/{addressId}',
|
|
41782
44218
|
'DELETE',
|
|
41783
44219
|
{ 'addressId': addressId },
|
|
41784
|
-
{
|
|
44220
|
+
{ },
|
|
41785
44221
|
{ },
|
|
41786
44222
|
{ },
|
|
41787
44223
|
null,
|
|
@@ -41952,7 +44388,7 @@ class RoutingApi {
|
|
|
41952
44388
|
* @param {Object} opts Optional parameters
|
|
41953
44389
|
* @param {String} opts.before The cursor that points to the start of the set of entities that has been returned.
|
|
41954
44390
|
* @param {String} opts.after The cursor that points to the end of the set of entities that has been returned.
|
|
41955
|
-
* @param {String} opts.limit Number of entities to return. Maximum of 200. Deprecated in favour of pageSize
|
|
44391
|
+
* @param {String} opts.limit Number of entities to return. Maximum of 200. Deprecated in favour of pageSize
|
|
41956
44392
|
* @param {String} opts.pageSize Number of entities to return. Maximum of 200.
|
|
41957
44393
|
* @param {Array.<String>} opts.queueId Queue ID(s) to filter assessments by.
|
|
41958
44394
|
*/
|
|
@@ -42263,7 +44699,7 @@ class RoutingApi {
|
|
|
42263
44699
|
* @param {Object} opts Optional parameters
|
|
42264
44700
|
* @param {String} opts.before The cursor that points to the start of the set of entities that has been returned.
|
|
42265
44701
|
* @param {String} opts.after The cursor that points to the end of the set of entities that has been returned.
|
|
42266
|
-
* @param {String} opts.limit Number of entities to return. Maximum of 200. Deprecated in favour of pageSize
|
|
44702
|
+
* @param {String} opts.limit Number of entities to return. Maximum of 200. Deprecated in favour of pageSize
|
|
42267
44703
|
* @param {String} opts.pageSize Number of entities to return. Maximum of 200.
|
|
42268
44704
|
* @param {Array.<String>} opts.queueId Comma-separated list of queue Ids to filter by.
|
|
42269
44705
|
*/
|
|
@@ -42286,16 +44722,20 @@ class RoutingApi {
|
|
|
42286
44722
|
}
|
|
42287
44723
|
|
|
42288
44724
|
/**
|
|
42289
|
-
* Get a list of Key Performance Indicators
|
|
44725
|
+
* Get a list of Key Performance Indicators
|
|
42290
44726
|
*
|
|
44727
|
+
* @param {Object} opts Optional parameters
|
|
44728
|
+
* @param {Object} opts.kpiGroup The Group of Key Performance Indicators to return
|
|
42291
44729
|
*/
|
|
42292
|
-
getRoutingPredictorsKeyperformanceindicators() {
|
|
44730
|
+
getRoutingPredictorsKeyperformanceindicators(opts) {
|
|
44731
|
+
opts = opts || {};
|
|
44732
|
+
|
|
42293
44733
|
|
|
42294
44734
|
return this.apiClient.callApi(
|
|
42295
44735
|
'/api/v2/routing/predictors/keyperformanceindicators',
|
|
42296
44736
|
'GET',
|
|
42297
44737
|
{ },
|
|
42298
|
-
{
|
|
44738
|
+
{ 'kpiGroup': opts['kpiGroup'] },
|
|
42299
44739
|
{ },
|
|
42300
44740
|
{ },
|
|
42301
44741
|
null,
|
|
@@ -43935,12 +46375,8 @@ class RoutingApi {
|
|
|
43935
46375
|
* Provision a phone number for SMS
|
|
43936
46376
|
*
|
|
43937
46377
|
* @param {Object} body SmsPhoneNumber
|
|
43938
|
-
* @param {Object} opts Optional parameters
|
|
43939
|
-
* @param {Boolean} opts.async Provision a new phone number for SMS in an asynchronous manner. If the async parameter value is true, this initiates the provisioning of a new phone number. Check the phoneNumber's provisioningStatus for completion of this request. (default to false)
|
|
43940
46378
|
*/
|
|
43941
|
-
postRoutingSmsPhonenumbers(body
|
|
43942
|
-
opts = opts || {};
|
|
43943
|
-
|
|
46379
|
+
postRoutingSmsPhonenumbers(body) {
|
|
43944
46380
|
// verify the required parameter 'body' is set
|
|
43945
46381
|
if (body === undefined || body === null) {
|
|
43946
46382
|
throw 'Missing the required parameter "body" when calling postRoutingSmsPhonenumbers';
|
|
@@ -43950,7 +46386,7 @@ class RoutingApi {
|
|
|
43950
46386
|
'/api/v2/routing/sms/phonenumbers',
|
|
43951
46387
|
'POST',
|
|
43952
46388
|
{ },
|
|
43953
|
-
{
|
|
46389
|
+
{ },
|
|
43954
46390
|
{ },
|
|
43955
46391
|
{ },
|
|
43956
46392
|
body,
|
|
@@ -44195,12 +46631,8 @@ class RoutingApi {
|
|
|
44195
46631
|
*
|
|
44196
46632
|
* @param {String} addressId Address ID
|
|
44197
46633
|
* @param {Object} body SmsPhoneNumber
|
|
44198
|
-
* @param {Object} opts Optional parameters
|
|
44199
|
-
* @param {Boolean} opts.async Update an existing phone number for SMS in an asynchronous manner. If the async parameter value is true, this initiates the update of a provisioned phone number. Check the phoneNumber's provisioningStatus for the progress of this request. (default to false)
|
|
44200
46634
|
*/
|
|
44201
|
-
putRoutingSmsPhonenumber(addressId, body
|
|
44202
|
-
opts = opts || {};
|
|
44203
|
-
|
|
46635
|
+
putRoutingSmsPhonenumber(addressId, body) {
|
|
44204
46636
|
// verify the required parameter 'addressId' is set
|
|
44205
46637
|
if (addressId === undefined || addressId === null) {
|
|
44206
46638
|
throw 'Missing the required parameter "addressId" when calling putRoutingSmsPhonenumber';
|
|
@@ -44214,7 +46646,7 @@ class RoutingApi {
|
|
|
44214
46646
|
'/api/v2/routing/sms/phonenumbers/{addressId}',
|
|
44215
46647
|
'PUT',
|
|
44216
46648
|
{ 'addressId': addressId },
|
|
44217
|
-
{
|
|
46649
|
+
{ },
|
|
44218
46650
|
{ },
|
|
44219
46651
|
{ },
|
|
44220
46652
|
body,
|
|
@@ -44380,7 +46812,7 @@ class SCIMApi {
|
|
|
44380
46812
|
/**
|
|
44381
46813
|
* SCIM service.
|
|
44382
46814
|
* @module purecloud-platform-client-v2/api/SCIMApi
|
|
44383
|
-
* @version
|
|
46815
|
+
* @version 140.0.1
|
|
44384
46816
|
*/
|
|
44385
46817
|
|
|
44386
46818
|
/**
|
|
@@ -45257,7 +47689,7 @@ class ScriptsApi {
|
|
|
45257
47689
|
/**
|
|
45258
47690
|
* Scripts service.
|
|
45259
47691
|
* @module purecloud-platform-client-v2/api/ScriptsApi
|
|
45260
|
-
* @version
|
|
47692
|
+
* @version 140.0.1
|
|
45261
47693
|
*/
|
|
45262
47694
|
|
|
45263
47695
|
/**
|
|
@@ -45676,7 +48108,7 @@ class SearchApi {
|
|
|
45676
48108
|
/**
|
|
45677
48109
|
* Search service.
|
|
45678
48110
|
* @module purecloud-platform-client-v2/api/SearchApi
|
|
45679
|
-
* @version
|
|
48111
|
+
* @version 140.0.1
|
|
45680
48112
|
*/
|
|
45681
48113
|
|
|
45682
48114
|
/**
|
|
@@ -46211,7 +48643,7 @@ class SpeechTextAnalyticsApi {
|
|
|
46211
48643
|
/**
|
|
46212
48644
|
* SpeechTextAnalytics service.
|
|
46213
48645
|
* @module purecloud-platform-client-v2/api/SpeechTextAnalyticsApi
|
|
46214
|
-
* @version
|
|
48646
|
+
* @version 140.0.1
|
|
46215
48647
|
*/
|
|
46216
48648
|
|
|
46217
48649
|
/**
|
|
@@ -47064,7 +49496,7 @@ class StationsApi {
|
|
|
47064
49496
|
/**
|
|
47065
49497
|
* Stations service.
|
|
47066
49498
|
* @module purecloud-platform-client-v2/api/StationsApi
|
|
47067
|
-
* @version
|
|
49499
|
+
* @version 140.0.1
|
|
47068
49500
|
*/
|
|
47069
49501
|
|
|
47070
49502
|
/**
|
|
@@ -47211,7 +49643,7 @@ class SuggestApi {
|
|
|
47211
49643
|
/**
|
|
47212
49644
|
* Suggest service.
|
|
47213
49645
|
* @module purecloud-platform-client-v2/api/SuggestApi
|
|
47214
|
-
* @version
|
|
49646
|
+
* @version 140.0.1
|
|
47215
49647
|
*/
|
|
47216
49648
|
|
|
47217
49649
|
/**
|
|
@@ -47350,7 +49782,7 @@ class TelephonyApi {
|
|
|
47350
49782
|
/**
|
|
47351
49783
|
* Telephony service.
|
|
47352
49784
|
* @module purecloud-platform-client-v2/api/TelephonyApi
|
|
47353
|
-
* @version
|
|
49785
|
+
* @version 140.0.1
|
|
47354
49786
|
*/
|
|
47355
49787
|
|
|
47356
49788
|
/**
|
|
@@ -47458,7 +49890,7 @@ class TelephonyProvidersEdgeApi {
|
|
|
47458
49890
|
/**
|
|
47459
49891
|
* TelephonyProvidersEdge service.
|
|
47460
49892
|
* @module purecloud-platform-client-v2/api/TelephonyProvidersEdgeApi
|
|
47461
|
-
* @version
|
|
49893
|
+
* @version 140.0.1
|
|
47462
49894
|
*/
|
|
47463
49895
|
|
|
47464
49896
|
/**
|
|
@@ -51091,7 +53523,7 @@ class TextbotsApi {
|
|
|
51091
53523
|
/**
|
|
51092
53524
|
* Textbots service.
|
|
51093
53525
|
* @module purecloud-platform-client-v2/api/TextbotsApi
|
|
51094
|
-
* @version
|
|
53526
|
+
* @version 140.0.1
|
|
51095
53527
|
*/
|
|
51096
53528
|
|
|
51097
53529
|
/**
|
|
@@ -51219,7 +53651,7 @@ class TokensApi {
|
|
|
51219
53651
|
/**
|
|
51220
53652
|
* Tokens service.
|
|
51221
53653
|
* @module purecloud-platform-client-v2/api/TokensApi
|
|
51222
|
-
* @version
|
|
53654
|
+
* @version 140.0.1
|
|
51223
53655
|
*/
|
|
51224
53656
|
|
|
51225
53657
|
/**
|
|
@@ -51325,7 +53757,7 @@ class UploadsApi {
|
|
|
51325
53757
|
/**
|
|
51326
53758
|
* Uploads service.
|
|
51327
53759
|
* @module purecloud-platform-client-v2/api/UploadsApi
|
|
51328
|
-
* @version
|
|
53760
|
+
* @version 140.0.1
|
|
51329
53761
|
*/
|
|
51330
53762
|
|
|
51331
53763
|
/**
|
|
@@ -51476,7 +53908,7 @@ class UsageApi {
|
|
|
51476
53908
|
/**
|
|
51477
53909
|
* Usage service.
|
|
51478
53910
|
* @module purecloud-platform-client-v2/api/UsageApi
|
|
51479
|
-
* @version
|
|
53911
|
+
* @version 140.0.1
|
|
51480
53912
|
*/
|
|
51481
53913
|
|
|
51482
53914
|
/**
|
|
@@ -51547,7 +53979,7 @@ class UserRecordingsApi {
|
|
|
51547
53979
|
/**
|
|
51548
53980
|
* UserRecordings service.
|
|
51549
53981
|
* @module purecloud-platform-client-v2/api/UserRecordingsApi
|
|
51550
|
-
* @version
|
|
53982
|
+
* @version 140.0.1
|
|
51551
53983
|
*/
|
|
51552
53984
|
|
|
51553
53985
|
/**
|
|
@@ -51731,7 +54163,7 @@ class UsersApi {
|
|
|
51731
54163
|
/**
|
|
51732
54164
|
* Users service.
|
|
51733
54165
|
* @module purecloud-platform-client-v2/api/UsersApi
|
|
51734
|
-
* @version
|
|
54166
|
+
* @version 140.0.1
|
|
51735
54167
|
*/
|
|
51736
54168
|
|
|
51737
54169
|
/**
|
|
@@ -52551,18 +54983,18 @@ class UsersApi {
|
|
|
52551
54983
|
/**
|
|
52552
54984
|
* Returns a listing of roles and permissions for a user.
|
|
52553
54985
|
*
|
|
52554
|
-
* @param {String}
|
|
54986
|
+
* @param {String} subjectId User ID
|
|
52555
54987
|
*/
|
|
52556
|
-
getUserRoles(
|
|
52557
|
-
// verify the required parameter '
|
|
52558
|
-
if (
|
|
52559
|
-
throw 'Missing the required parameter "
|
|
54988
|
+
getUserRoles(subjectId) {
|
|
54989
|
+
// verify the required parameter 'subjectId' is set
|
|
54990
|
+
if (subjectId === undefined || subjectId === null) {
|
|
54991
|
+
throw 'Missing the required parameter "subjectId" when calling getUserRoles';
|
|
52560
54992
|
}
|
|
52561
54993
|
|
|
52562
54994
|
return this.apiClient.callApi(
|
|
52563
|
-
'/api/v2/users/{
|
|
54995
|
+
'/api/v2/users/{subjectId}/roles',
|
|
52564
54996
|
'GET',
|
|
52565
|
-
{ '
|
|
54997
|
+
{ 'subjectId': subjectId },
|
|
52566
54998
|
{ },
|
|
52567
54999
|
{ },
|
|
52568
55000
|
{ },
|
|
@@ -53815,13 +56247,13 @@ class UsersApi {
|
|
|
53815
56247
|
/**
|
|
53816
56248
|
* Sets the user's roles
|
|
53817
56249
|
*
|
|
53818
|
-
* @param {String}
|
|
56250
|
+
* @param {String} subjectId User ID
|
|
53819
56251
|
* @param {Array.<String>} body List of roles
|
|
53820
56252
|
*/
|
|
53821
|
-
putUserRoles(
|
|
53822
|
-
// verify the required parameter '
|
|
53823
|
-
if (
|
|
53824
|
-
throw 'Missing the required parameter "
|
|
56253
|
+
putUserRoles(subjectId, body) {
|
|
56254
|
+
// verify the required parameter 'subjectId' is set
|
|
56255
|
+
if (subjectId === undefined || subjectId === null) {
|
|
56256
|
+
throw 'Missing the required parameter "subjectId" when calling putUserRoles';
|
|
53825
56257
|
}
|
|
53826
56258
|
// verify the required parameter 'body' is set
|
|
53827
56259
|
if (body === undefined || body === null) {
|
|
@@ -53829,9 +56261,9 @@ class UsersApi {
|
|
|
53829
56261
|
}
|
|
53830
56262
|
|
|
53831
56263
|
return this.apiClient.callApi(
|
|
53832
|
-
'/api/v2/users/{
|
|
56264
|
+
'/api/v2/users/{subjectId}/roles',
|
|
53833
56265
|
'PUT',
|
|
53834
|
-
{ '
|
|
56266
|
+
{ 'subjectId': subjectId },
|
|
53835
56267
|
{ },
|
|
53836
56268
|
{ },
|
|
53837
56269
|
{ },
|
|
@@ -54033,7 +56465,7 @@ class UtilitiesApi {
|
|
|
54033
56465
|
/**
|
|
54034
56466
|
* Utilities service.
|
|
54035
56467
|
* @module purecloud-platform-client-v2/api/UtilitiesApi
|
|
54036
|
-
* @version
|
|
56468
|
+
* @version 140.0.1
|
|
54037
56469
|
*/
|
|
54038
56470
|
|
|
54039
56471
|
/**
|
|
@@ -54144,7 +56576,7 @@ class VoicemailApi {
|
|
|
54144
56576
|
/**
|
|
54145
56577
|
* Voicemail service.
|
|
54146
56578
|
* @module purecloud-platform-client-v2/api/VoicemailApi
|
|
54147
|
-
* @version
|
|
56579
|
+
* @version 140.0.1
|
|
54148
56580
|
*/
|
|
54149
56581
|
|
|
54150
56582
|
/**
|
|
@@ -54811,7 +57243,7 @@ class WebChatApi {
|
|
|
54811
57243
|
/**
|
|
54812
57244
|
* WebChat service.
|
|
54813
57245
|
* @module purecloud-platform-client-v2/api/WebChatApi
|
|
54814
|
-
* @version
|
|
57246
|
+
* @version 140.0.1
|
|
54815
57247
|
*/
|
|
54816
57248
|
|
|
54817
57249
|
/**
|
|
@@ -55355,7 +57787,7 @@ class WebDeploymentsApi {
|
|
|
55355
57787
|
/**
|
|
55356
57788
|
* WebDeployments service.
|
|
55357
57789
|
* @module purecloud-platform-client-v2/api/WebDeploymentsApi
|
|
55358
|
-
* @version
|
|
57790
|
+
* @version 140.0.1
|
|
55359
57791
|
*/
|
|
55360
57792
|
|
|
55361
57793
|
/**
|
|
@@ -55710,7 +58142,7 @@ class WebMessagingApi {
|
|
|
55710
58142
|
/**
|
|
55711
58143
|
* WebMessaging service.
|
|
55712
58144
|
* @module purecloud-platform-client-v2/api/WebMessagingApi
|
|
55713
|
-
* @version
|
|
58145
|
+
* @version 140.0.1
|
|
55714
58146
|
*/
|
|
55715
58147
|
|
|
55716
58148
|
/**
|
|
@@ -55756,7 +58188,7 @@ class WidgetsApi {
|
|
|
55756
58188
|
/**
|
|
55757
58189
|
* Widgets service.
|
|
55758
58190
|
* @module purecloud-platform-client-v2/api/WidgetsApi
|
|
55759
|
-
* @version
|
|
58191
|
+
* @version 140.0.1
|
|
55760
58192
|
*/
|
|
55761
58193
|
|
|
55762
58194
|
/**
|
|
@@ -55902,7 +58334,7 @@ class WorkforceManagementApi {
|
|
|
55902
58334
|
/**
|
|
55903
58335
|
* WorkforceManagement service.
|
|
55904
58336
|
* @module purecloud-platform-client-v2/api/WorkforceManagementApi
|
|
55905
|
-
* @version
|
|
58337
|
+
* @version 140.0.1
|
|
55906
58338
|
*/
|
|
55907
58339
|
|
|
55908
58340
|
/**
|
|
@@ -60153,7 +62585,7 @@ class WorkforceManagementApi {
|
|
|
60153
62585
|
* </pre>
|
|
60154
62586
|
* </p>
|
|
60155
62587
|
* @module purecloud-platform-client-v2/index
|
|
60156
|
-
* @version
|
|
62588
|
+
* @version 140.0.1
|
|
60157
62589
|
*/
|
|
60158
62590
|
class platformClient {
|
|
60159
62591
|
constructor() {
|
|
@@ -60493,4 +62925,4 @@ var index = new platformClient();
|
|
|
60493
62925
|
module.exports = index;
|
|
60494
62926
|
|
|
60495
62927
|
}).call(this)}).call(this,typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : {},require("buffer").Buffer)
|
|
60496
|
-
},{"axios":
|
|
62928
|
+
},{"axios":8,"buffer":3,"os":5,"path":6,"qs":50}]},{},[]);
|