purecloud-platform-client-v2 123.0.0 → 126.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +6 -2
- package/dist/node/purecloud-platform-client-v2.js +941 -137
- package/dist/web-amd/purecloud-platform-client-v2.js +941 -137
- package/dist/web-amd/purecloud-platform-client-v2.min.js +1 -1
- package/dist/web-cjs/bundle.js +901 -141
- package/dist/web-cjs/purecloud-platform-client-v2.js +914 -1304
- package/dist/web-cjs/purecloud-platform-client-v2.min.js +1 -1
- package/index.d.ts +1177 -50
- package/package.json +1 -1
- package/src/purecloud-platform-client-v2/ApiClient.js +2 -2
- package/src/purecloud-platform-client-v2/api/AlertingApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/AnalyticsApi.js +1 -26
- 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 +1 -1
- 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 +1 -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 +1 -1
- package/src/purecloud-platform-client-v2/api/GeneralDataProtectionRegulationApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/GeolocationApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/GreetingsApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/GroupsApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/IdentityProviderApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/IntegrationsApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/JourneyApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/KnowledgeApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/LanguageUnderstandingApi.js +3 -3
- package/src/purecloud-platform-client-v2/api/LanguagesApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/LearningApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/LicenseApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/LocationsApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/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 +216 -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 +22 -11
- 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 +96 -2
- package/src/purecloud-platform-client-v2/api/StationsApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/SuggestApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/TelephonyApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/TelephonyProvidersEdgeApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/TextbotsApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/TokensApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/UploadsApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/UsageApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/UserRecordingsApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/UsersApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/UtilitiesApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/VoicemailApi.js +31 -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 +473 -1
- package/src/purecloud-platform-client-v2/configuration.js +42 -35
- package/src/purecloud-platform-client-v2/index.js +1 -1
|
@@ -1,6 +1,4 @@
|
|
|
1
1
|
require=(function(){function r(e,n,t){function o(i,f){if(!n[i]){if(!e[i]){var c="function"==typeof require&&require;if(!f&&c)return c(i,!0);if(u)return u(i,!0);var a=new Error("Cannot find module '"+i+"'");throw a.code="MODULE_NOT_FOUND",a}var p=n[i]={exports:{}};e[i][0].call(p.exports,function(r){var n=e[i][1][r];return o(n||r)},p,p.exports,r,e,n,t)}return n[i].exports}for(var u="function"==typeof require&&require,i=0;i<t.length;i++)o(t[i]);return o}return r})()({1:[function(require,module,exports){
|
|
2
|
-
|
|
3
|
-
},{}],2:[function(require,module,exports){
|
|
4
2
|
'use strict'
|
|
5
3
|
|
|
6
4
|
exports.byteLength = byteLength
|
|
@@ -152,7 +150,7 @@ function fromByteArray (uint8) {
|
|
|
152
150
|
return parts.join('')
|
|
153
151
|
}
|
|
154
152
|
|
|
155
|
-
},{}],
|
|
153
|
+
},{}],2:[function(require,module,exports){
|
|
156
154
|
(function (Buffer){(function (){
|
|
157
155
|
/*!
|
|
158
156
|
* The buffer module from node.js, for the browser.
|
|
@@ -1933,7 +1931,7 @@ function numberIsNaN (obj) {
|
|
|
1933
1931
|
}
|
|
1934
1932
|
|
|
1935
1933
|
}).call(this)}).call(this,require("buffer").Buffer)
|
|
1936
|
-
},{"base64-js":
|
|
1934
|
+
},{"base64-js":1,"buffer":2,"ieee754":3}],3:[function(require,module,exports){
|
|
1937
1935
|
/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */
|
|
1938
1936
|
exports.read = function (buffer, offset, isLE, mLen, nBytes) {
|
|
1939
1937
|
var e, m
|
|
@@ -2020,7 +2018,7 @@ exports.write = function (buffer, value, offset, isLE, mLen, nBytes) {
|
|
|
2020
2018
|
buffer[offset + i - d] |= s * 128
|
|
2021
2019
|
}
|
|
2022
2020
|
|
|
2023
|
-
},{}],
|
|
2021
|
+
},{}],4:[function(require,module,exports){
|
|
2024
2022
|
exports.endianness = function () { return 'LE' };
|
|
2025
2023
|
|
|
2026
2024
|
exports.hostname = function () {
|
|
@@ -2071,7 +2069,7 @@ exports.homedir = function () {
|
|
|
2071
2069
|
return '/'
|
|
2072
2070
|
};
|
|
2073
2071
|
|
|
2074
|
-
},{}],
|
|
2072
|
+
},{}],5:[function(require,module,exports){
|
|
2075
2073
|
(function (process){(function (){
|
|
2076
2074
|
// .dirname, .basename, and .extname methods are extracted from Node.js v8.11.1,
|
|
2077
2075
|
// backported and transplited with Babel, with backwards-compat fixes
|
|
@@ -2377,7 +2375,7 @@ var substr = 'ab'.substr(-1) === 'b'
|
|
|
2377
2375
|
;
|
|
2378
2376
|
|
|
2379
2377
|
}).call(this)}).call(this,require('_process'))
|
|
2380
|
-
},{"_process":
|
|
2378
|
+
},{"_process":6}],6:[function(require,module,exports){
|
|
2381
2379
|
// shim for using process in browser
|
|
2382
2380
|
var process = module.exports = {};
|
|
2383
2381
|
|
|
@@ -2563,629 +2561,7 @@ process.chdir = function (dir) {
|
|
|
2563
2561
|
};
|
|
2564
2562
|
process.umask = function() { return 0; };
|
|
2565
2563
|
|
|
2566
|
-
},{}],
|
|
2567
|
-
if (typeof Object.create === 'function') {
|
|
2568
|
-
// implementation from standard node.js 'util' module
|
|
2569
|
-
module.exports = function inherits(ctor, superCtor) {
|
|
2570
|
-
ctor.super_ = superCtor
|
|
2571
|
-
ctor.prototype = Object.create(superCtor.prototype, {
|
|
2572
|
-
constructor: {
|
|
2573
|
-
value: ctor,
|
|
2574
|
-
enumerable: false,
|
|
2575
|
-
writable: true,
|
|
2576
|
-
configurable: true
|
|
2577
|
-
}
|
|
2578
|
-
});
|
|
2579
|
-
};
|
|
2580
|
-
} else {
|
|
2581
|
-
// old school shim for old browsers
|
|
2582
|
-
module.exports = function inherits(ctor, superCtor) {
|
|
2583
|
-
ctor.super_ = superCtor
|
|
2584
|
-
var TempCtor = function () {}
|
|
2585
|
-
TempCtor.prototype = superCtor.prototype
|
|
2586
|
-
ctor.prototype = new TempCtor()
|
|
2587
|
-
ctor.prototype.constructor = ctor
|
|
2588
|
-
}
|
|
2589
|
-
}
|
|
2590
|
-
|
|
2591
|
-
},{}],9:[function(require,module,exports){
|
|
2592
|
-
module.exports = function isBuffer(arg) {
|
|
2593
|
-
return arg && typeof arg === 'object'
|
|
2594
|
-
&& typeof arg.copy === 'function'
|
|
2595
|
-
&& typeof arg.fill === 'function'
|
|
2596
|
-
&& typeof arg.readUInt8 === 'function';
|
|
2597
|
-
}
|
|
2598
|
-
},{}],10:[function(require,module,exports){
|
|
2599
|
-
(function (process,global){(function (){
|
|
2600
|
-
// Copyright Joyent, Inc. and other Node contributors.
|
|
2601
|
-
//
|
|
2602
|
-
// Permission is hereby granted, free of charge, to any person obtaining a
|
|
2603
|
-
// copy of this software and associated documentation files (the
|
|
2604
|
-
// "Software"), to deal in the Software without restriction, including
|
|
2605
|
-
// without limitation the rights to use, copy, modify, merge, publish,
|
|
2606
|
-
// distribute, sublicense, and/or sell copies of the Software, and to permit
|
|
2607
|
-
// persons to whom the Software is furnished to do so, subject to the
|
|
2608
|
-
// following conditions:
|
|
2609
|
-
//
|
|
2610
|
-
// The above copyright notice and this permission notice shall be included
|
|
2611
|
-
// in all copies or substantial portions of the Software.
|
|
2612
|
-
//
|
|
2613
|
-
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
|
|
2614
|
-
// OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
|
2615
|
-
// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN
|
|
2616
|
-
// NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
|
|
2617
|
-
// DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
|
|
2618
|
-
// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE
|
|
2619
|
-
// USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
2620
|
-
|
|
2621
|
-
var formatRegExp = /%[sdj%]/g;
|
|
2622
|
-
exports.format = function(f) {
|
|
2623
|
-
if (!isString(f)) {
|
|
2624
|
-
var objects = [];
|
|
2625
|
-
for (var i = 0; i < arguments.length; i++) {
|
|
2626
|
-
objects.push(inspect(arguments[i]));
|
|
2627
|
-
}
|
|
2628
|
-
return objects.join(' ');
|
|
2629
|
-
}
|
|
2630
|
-
|
|
2631
|
-
var i = 1;
|
|
2632
|
-
var args = arguments;
|
|
2633
|
-
var len = args.length;
|
|
2634
|
-
var str = String(f).replace(formatRegExp, function(x) {
|
|
2635
|
-
if (x === '%%') return '%';
|
|
2636
|
-
if (i >= len) return x;
|
|
2637
|
-
switch (x) {
|
|
2638
|
-
case '%s': return String(args[i++]);
|
|
2639
|
-
case '%d': return Number(args[i++]);
|
|
2640
|
-
case '%j':
|
|
2641
|
-
try {
|
|
2642
|
-
return JSON.stringify(args[i++]);
|
|
2643
|
-
} catch (_) {
|
|
2644
|
-
return '[Circular]';
|
|
2645
|
-
}
|
|
2646
|
-
default:
|
|
2647
|
-
return x;
|
|
2648
|
-
}
|
|
2649
|
-
});
|
|
2650
|
-
for (var x = args[i]; i < len; x = args[++i]) {
|
|
2651
|
-
if (isNull(x) || !isObject(x)) {
|
|
2652
|
-
str += ' ' + x;
|
|
2653
|
-
} else {
|
|
2654
|
-
str += ' ' + inspect(x);
|
|
2655
|
-
}
|
|
2656
|
-
}
|
|
2657
|
-
return str;
|
|
2658
|
-
};
|
|
2659
|
-
|
|
2660
|
-
|
|
2661
|
-
// Mark that a method should not be used.
|
|
2662
|
-
// Returns a modified function which warns once by default.
|
|
2663
|
-
// If --no-deprecation is set, then it is a no-op.
|
|
2664
|
-
exports.deprecate = function(fn, msg) {
|
|
2665
|
-
// Allow for deprecating things in the process of starting up.
|
|
2666
|
-
if (isUndefined(global.process)) {
|
|
2667
|
-
return function() {
|
|
2668
|
-
return exports.deprecate(fn, msg).apply(this, arguments);
|
|
2669
|
-
};
|
|
2670
|
-
}
|
|
2671
|
-
|
|
2672
|
-
if (process.noDeprecation === true) {
|
|
2673
|
-
return fn;
|
|
2674
|
-
}
|
|
2675
|
-
|
|
2676
|
-
var warned = false;
|
|
2677
|
-
function deprecated() {
|
|
2678
|
-
if (!warned) {
|
|
2679
|
-
if (process.throwDeprecation) {
|
|
2680
|
-
throw new Error(msg);
|
|
2681
|
-
} else if (process.traceDeprecation) {
|
|
2682
|
-
console.trace(msg);
|
|
2683
|
-
} else {
|
|
2684
|
-
console.error(msg);
|
|
2685
|
-
}
|
|
2686
|
-
warned = true;
|
|
2687
|
-
}
|
|
2688
|
-
return fn.apply(this, arguments);
|
|
2689
|
-
}
|
|
2690
|
-
|
|
2691
|
-
return deprecated;
|
|
2692
|
-
};
|
|
2693
|
-
|
|
2694
|
-
|
|
2695
|
-
var debugs = {};
|
|
2696
|
-
var debugEnviron;
|
|
2697
|
-
exports.debuglog = function(set) {
|
|
2698
|
-
if (isUndefined(debugEnviron))
|
|
2699
|
-
debugEnviron = process.env.NODE_DEBUG || '';
|
|
2700
|
-
set = set.toUpperCase();
|
|
2701
|
-
if (!debugs[set]) {
|
|
2702
|
-
if (new RegExp('\\b' + set + '\\b', 'i').test(debugEnviron)) {
|
|
2703
|
-
var pid = process.pid;
|
|
2704
|
-
debugs[set] = function() {
|
|
2705
|
-
var msg = exports.format.apply(exports, arguments);
|
|
2706
|
-
console.error('%s %d: %s', set, pid, msg);
|
|
2707
|
-
};
|
|
2708
|
-
} else {
|
|
2709
|
-
debugs[set] = function() {};
|
|
2710
|
-
}
|
|
2711
|
-
}
|
|
2712
|
-
return debugs[set];
|
|
2713
|
-
};
|
|
2714
|
-
|
|
2715
|
-
|
|
2716
|
-
/**
|
|
2717
|
-
* Echos the value of a value. Trys to print the value out
|
|
2718
|
-
* in the best way possible given the different types.
|
|
2719
|
-
*
|
|
2720
|
-
* @param {Object} obj The object to print out.
|
|
2721
|
-
* @param {Object} opts Optional options object that alters the output.
|
|
2722
|
-
*/
|
|
2723
|
-
/* legacy: obj, showHidden, depth, colors*/
|
|
2724
|
-
function inspect(obj, opts) {
|
|
2725
|
-
// default options
|
|
2726
|
-
var ctx = {
|
|
2727
|
-
seen: [],
|
|
2728
|
-
stylize: stylizeNoColor
|
|
2729
|
-
};
|
|
2730
|
-
// legacy...
|
|
2731
|
-
if (arguments.length >= 3) ctx.depth = arguments[2];
|
|
2732
|
-
if (arguments.length >= 4) ctx.colors = arguments[3];
|
|
2733
|
-
if (isBoolean(opts)) {
|
|
2734
|
-
// legacy...
|
|
2735
|
-
ctx.showHidden = opts;
|
|
2736
|
-
} else if (opts) {
|
|
2737
|
-
// got an "options" object
|
|
2738
|
-
exports._extend(ctx, opts);
|
|
2739
|
-
}
|
|
2740
|
-
// set default options
|
|
2741
|
-
if (isUndefined(ctx.showHidden)) ctx.showHidden = false;
|
|
2742
|
-
if (isUndefined(ctx.depth)) ctx.depth = 2;
|
|
2743
|
-
if (isUndefined(ctx.colors)) ctx.colors = false;
|
|
2744
|
-
if (isUndefined(ctx.customInspect)) ctx.customInspect = true;
|
|
2745
|
-
if (ctx.colors) ctx.stylize = stylizeWithColor;
|
|
2746
|
-
return formatValue(ctx, obj, ctx.depth);
|
|
2747
|
-
}
|
|
2748
|
-
exports.inspect = inspect;
|
|
2749
|
-
|
|
2750
|
-
|
|
2751
|
-
// http://en.wikipedia.org/wiki/ANSI_escape_code#graphics
|
|
2752
|
-
inspect.colors = {
|
|
2753
|
-
'bold' : [1, 22],
|
|
2754
|
-
'italic' : [3, 23],
|
|
2755
|
-
'underline' : [4, 24],
|
|
2756
|
-
'inverse' : [7, 27],
|
|
2757
|
-
'white' : [37, 39],
|
|
2758
|
-
'grey' : [90, 39],
|
|
2759
|
-
'black' : [30, 39],
|
|
2760
|
-
'blue' : [34, 39],
|
|
2761
|
-
'cyan' : [36, 39],
|
|
2762
|
-
'green' : [32, 39],
|
|
2763
|
-
'magenta' : [35, 39],
|
|
2764
|
-
'red' : [31, 39],
|
|
2765
|
-
'yellow' : [33, 39]
|
|
2766
|
-
};
|
|
2767
|
-
|
|
2768
|
-
// Don't use 'blue' not visible on cmd.exe
|
|
2769
|
-
inspect.styles = {
|
|
2770
|
-
'special': 'cyan',
|
|
2771
|
-
'number': 'yellow',
|
|
2772
|
-
'boolean': 'yellow',
|
|
2773
|
-
'undefined': 'grey',
|
|
2774
|
-
'null': 'bold',
|
|
2775
|
-
'string': 'green',
|
|
2776
|
-
'date': 'magenta',
|
|
2777
|
-
// "name": intentionally not styling
|
|
2778
|
-
'regexp': 'red'
|
|
2779
|
-
};
|
|
2780
|
-
|
|
2781
|
-
|
|
2782
|
-
function stylizeWithColor(str, styleType) {
|
|
2783
|
-
var style = inspect.styles[styleType];
|
|
2784
|
-
|
|
2785
|
-
if (style) {
|
|
2786
|
-
return '\u001b[' + inspect.colors[style][0] + 'm' + str +
|
|
2787
|
-
'\u001b[' + inspect.colors[style][1] + 'm';
|
|
2788
|
-
} else {
|
|
2789
|
-
return str;
|
|
2790
|
-
}
|
|
2791
|
-
}
|
|
2792
|
-
|
|
2793
|
-
|
|
2794
|
-
function stylizeNoColor(str, styleType) {
|
|
2795
|
-
return str;
|
|
2796
|
-
}
|
|
2797
|
-
|
|
2798
|
-
|
|
2799
|
-
function arrayToHash(array) {
|
|
2800
|
-
var hash = {};
|
|
2801
|
-
|
|
2802
|
-
array.forEach(function(val, idx) {
|
|
2803
|
-
hash[val] = true;
|
|
2804
|
-
});
|
|
2805
|
-
|
|
2806
|
-
return hash;
|
|
2807
|
-
}
|
|
2808
|
-
|
|
2809
|
-
|
|
2810
|
-
function formatValue(ctx, value, recurseTimes) {
|
|
2811
|
-
// Provide a hook for user-specified inspect functions.
|
|
2812
|
-
// Check that value is an object with an inspect function on it
|
|
2813
|
-
if (ctx.customInspect &&
|
|
2814
|
-
value &&
|
|
2815
|
-
isFunction(value.inspect) &&
|
|
2816
|
-
// Filter out the util module, it's inspect function is special
|
|
2817
|
-
value.inspect !== exports.inspect &&
|
|
2818
|
-
// Also filter out any prototype objects using the circular check.
|
|
2819
|
-
!(value.constructor && value.constructor.prototype === value)) {
|
|
2820
|
-
var ret = value.inspect(recurseTimes, ctx);
|
|
2821
|
-
if (!isString(ret)) {
|
|
2822
|
-
ret = formatValue(ctx, ret, recurseTimes);
|
|
2823
|
-
}
|
|
2824
|
-
return ret;
|
|
2825
|
-
}
|
|
2826
|
-
|
|
2827
|
-
// Primitive types cannot have properties
|
|
2828
|
-
var primitive = formatPrimitive(ctx, value);
|
|
2829
|
-
if (primitive) {
|
|
2830
|
-
return primitive;
|
|
2831
|
-
}
|
|
2832
|
-
|
|
2833
|
-
// Look up the keys of the object.
|
|
2834
|
-
var keys = Object.keys(value);
|
|
2835
|
-
var visibleKeys = arrayToHash(keys);
|
|
2836
|
-
|
|
2837
|
-
if (ctx.showHidden) {
|
|
2838
|
-
keys = Object.getOwnPropertyNames(value);
|
|
2839
|
-
}
|
|
2840
|
-
|
|
2841
|
-
// IE doesn't make error fields non-enumerable
|
|
2842
|
-
// http://msdn.microsoft.com/en-us/library/ie/dww52sbt(v=vs.94).aspx
|
|
2843
|
-
if (isError(value)
|
|
2844
|
-
&& (keys.indexOf('message') >= 0 || keys.indexOf('description') >= 0)) {
|
|
2845
|
-
return formatError(value);
|
|
2846
|
-
}
|
|
2847
|
-
|
|
2848
|
-
// Some type of object without properties can be shortcutted.
|
|
2849
|
-
if (keys.length === 0) {
|
|
2850
|
-
if (isFunction(value)) {
|
|
2851
|
-
var name = value.name ? ': ' + value.name : '';
|
|
2852
|
-
return ctx.stylize('[Function' + name + ']', 'special');
|
|
2853
|
-
}
|
|
2854
|
-
if (isRegExp(value)) {
|
|
2855
|
-
return ctx.stylize(RegExp.prototype.toString.call(value), 'regexp');
|
|
2856
|
-
}
|
|
2857
|
-
if (isDate(value)) {
|
|
2858
|
-
return ctx.stylize(Date.prototype.toString.call(value), 'date');
|
|
2859
|
-
}
|
|
2860
|
-
if (isError(value)) {
|
|
2861
|
-
return formatError(value);
|
|
2862
|
-
}
|
|
2863
|
-
}
|
|
2864
|
-
|
|
2865
|
-
var base = '', array = false, braces = ['{', '}'];
|
|
2866
|
-
|
|
2867
|
-
// Make Array say that they are Array
|
|
2868
|
-
if (isArray(value)) {
|
|
2869
|
-
array = true;
|
|
2870
|
-
braces = ['[', ']'];
|
|
2871
|
-
}
|
|
2872
|
-
|
|
2873
|
-
// Make functions say that they are functions
|
|
2874
|
-
if (isFunction(value)) {
|
|
2875
|
-
var n = value.name ? ': ' + value.name : '';
|
|
2876
|
-
base = ' [Function' + n + ']';
|
|
2877
|
-
}
|
|
2878
|
-
|
|
2879
|
-
// Make RegExps say that they are RegExps
|
|
2880
|
-
if (isRegExp(value)) {
|
|
2881
|
-
base = ' ' + RegExp.prototype.toString.call(value);
|
|
2882
|
-
}
|
|
2883
|
-
|
|
2884
|
-
// Make dates with properties first say the date
|
|
2885
|
-
if (isDate(value)) {
|
|
2886
|
-
base = ' ' + Date.prototype.toUTCString.call(value);
|
|
2887
|
-
}
|
|
2888
|
-
|
|
2889
|
-
// Make error with message first say the error
|
|
2890
|
-
if (isError(value)) {
|
|
2891
|
-
base = ' ' + formatError(value);
|
|
2892
|
-
}
|
|
2893
|
-
|
|
2894
|
-
if (keys.length === 0 && (!array || value.length == 0)) {
|
|
2895
|
-
return braces[0] + base + braces[1];
|
|
2896
|
-
}
|
|
2897
|
-
|
|
2898
|
-
if (recurseTimes < 0) {
|
|
2899
|
-
if (isRegExp(value)) {
|
|
2900
|
-
return ctx.stylize(RegExp.prototype.toString.call(value), 'regexp');
|
|
2901
|
-
} else {
|
|
2902
|
-
return ctx.stylize('[Object]', 'special');
|
|
2903
|
-
}
|
|
2904
|
-
}
|
|
2905
|
-
|
|
2906
|
-
ctx.seen.push(value);
|
|
2907
|
-
|
|
2908
|
-
var output;
|
|
2909
|
-
if (array) {
|
|
2910
|
-
output = formatArray(ctx, value, recurseTimes, visibleKeys, keys);
|
|
2911
|
-
} else {
|
|
2912
|
-
output = keys.map(function(key) {
|
|
2913
|
-
return formatProperty(ctx, value, recurseTimes, visibleKeys, key, array);
|
|
2914
|
-
});
|
|
2915
|
-
}
|
|
2916
|
-
|
|
2917
|
-
ctx.seen.pop();
|
|
2918
|
-
|
|
2919
|
-
return reduceToSingleString(output, base, braces);
|
|
2920
|
-
}
|
|
2921
|
-
|
|
2922
|
-
|
|
2923
|
-
function formatPrimitive(ctx, value) {
|
|
2924
|
-
if (isUndefined(value))
|
|
2925
|
-
return ctx.stylize('undefined', 'undefined');
|
|
2926
|
-
if (isString(value)) {
|
|
2927
|
-
var simple = '\'' + JSON.stringify(value).replace(/^"|"$/g, '')
|
|
2928
|
-
.replace(/'/g, "\\'")
|
|
2929
|
-
.replace(/\\"/g, '"') + '\'';
|
|
2930
|
-
return ctx.stylize(simple, 'string');
|
|
2931
|
-
}
|
|
2932
|
-
if (isNumber(value))
|
|
2933
|
-
return ctx.stylize('' + value, 'number');
|
|
2934
|
-
if (isBoolean(value))
|
|
2935
|
-
return ctx.stylize('' + value, 'boolean');
|
|
2936
|
-
// For some reason typeof null is "object", so special case here.
|
|
2937
|
-
if (isNull(value))
|
|
2938
|
-
return ctx.stylize('null', 'null');
|
|
2939
|
-
}
|
|
2940
|
-
|
|
2941
|
-
|
|
2942
|
-
function formatError(value) {
|
|
2943
|
-
return '[' + Error.prototype.toString.call(value) + ']';
|
|
2944
|
-
}
|
|
2945
|
-
|
|
2946
|
-
|
|
2947
|
-
function formatArray(ctx, value, recurseTimes, visibleKeys, keys) {
|
|
2948
|
-
var output = [];
|
|
2949
|
-
for (var i = 0, l = value.length; i < l; ++i) {
|
|
2950
|
-
if (hasOwnProperty(value, String(i))) {
|
|
2951
|
-
output.push(formatProperty(ctx, value, recurseTimes, visibleKeys,
|
|
2952
|
-
String(i), true));
|
|
2953
|
-
} else {
|
|
2954
|
-
output.push('');
|
|
2955
|
-
}
|
|
2956
|
-
}
|
|
2957
|
-
keys.forEach(function(key) {
|
|
2958
|
-
if (!key.match(/^\d+$/)) {
|
|
2959
|
-
output.push(formatProperty(ctx, value, recurseTimes, visibleKeys,
|
|
2960
|
-
key, true));
|
|
2961
|
-
}
|
|
2962
|
-
});
|
|
2963
|
-
return output;
|
|
2964
|
-
}
|
|
2965
|
-
|
|
2966
|
-
|
|
2967
|
-
function formatProperty(ctx, value, recurseTimes, visibleKeys, key, array) {
|
|
2968
|
-
var name, str, desc;
|
|
2969
|
-
desc = Object.getOwnPropertyDescriptor(value, key) || { value: value[key] };
|
|
2970
|
-
if (desc.get) {
|
|
2971
|
-
if (desc.set) {
|
|
2972
|
-
str = ctx.stylize('[Getter/Setter]', 'special');
|
|
2973
|
-
} else {
|
|
2974
|
-
str = ctx.stylize('[Getter]', 'special');
|
|
2975
|
-
}
|
|
2976
|
-
} else {
|
|
2977
|
-
if (desc.set) {
|
|
2978
|
-
str = ctx.stylize('[Setter]', 'special');
|
|
2979
|
-
}
|
|
2980
|
-
}
|
|
2981
|
-
if (!hasOwnProperty(visibleKeys, key)) {
|
|
2982
|
-
name = '[' + key + ']';
|
|
2983
|
-
}
|
|
2984
|
-
if (!str) {
|
|
2985
|
-
if (ctx.seen.indexOf(desc.value) < 0) {
|
|
2986
|
-
if (isNull(recurseTimes)) {
|
|
2987
|
-
str = formatValue(ctx, desc.value, null);
|
|
2988
|
-
} else {
|
|
2989
|
-
str = formatValue(ctx, desc.value, recurseTimes - 1);
|
|
2990
|
-
}
|
|
2991
|
-
if (str.indexOf('\n') > -1) {
|
|
2992
|
-
if (array) {
|
|
2993
|
-
str = str.split('\n').map(function(line) {
|
|
2994
|
-
return ' ' + line;
|
|
2995
|
-
}).join('\n').substr(2);
|
|
2996
|
-
} else {
|
|
2997
|
-
str = '\n' + str.split('\n').map(function(line) {
|
|
2998
|
-
return ' ' + line;
|
|
2999
|
-
}).join('\n');
|
|
3000
|
-
}
|
|
3001
|
-
}
|
|
3002
|
-
} else {
|
|
3003
|
-
str = ctx.stylize('[Circular]', 'special');
|
|
3004
|
-
}
|
|
3005
|
-
}
|
|
3006
|
-
if (isUndefined(name)) {
|
|
3007
|
-
if (array && key.match(/^\d+$/)) {
|
|
3008
|
-
return str;
|
|
3009
|
-
}
|
|
3010
|
-
name = JSON.stringify('' + key);
|
|
3011
|
-
if (name.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)) {
|
|
3012
|
-
name = name.substr(1, name.length - 2);
|
|
3013
|
-
name = ctx.stylize(name, 'name');
|
|
3014
|
-
} else {
|
|
3015
|
-
name = name.replace(/'/g, "\\'")
|
|
3016
|
-
.replace(/\\"/g, '"')
|
|
3017
|
-
.replace(/(^"|"$)/g, "'");
|
|
3018
|
-
name = ctx.stylize(name, 'string');
|
|
3019
|
-
}
|
|
3020
|
-
}
|
|
3021
|
-
|
|
3022
|
-
return name + ': ' + str;
|
|
3023
|
-
}
|
|
3024
|
-
|
|
3025
|
-
|
|
3026
|
-
function reduceToSingleString(output, base, braces) {
|
|
3027
|
-
var numLinesEst = 0;
|
|
3028
|
-
var length = output.reduce(function(prev, cur) {
|
|
3029
|
-
numLinesEst++;
|
|
3030
|
-
if (cur.indexOf('\n') >= 0) numLinesEst++;
|
|
3031
|
-
return prev + cur.replace(/\u001b\[\d\d?m/g, '').length + 1;
|
|
3032
|
-
}, 0);
|
|
3033
|
-
|
|
3034
|
-
if (length > 60) {
|
|
3035
|
-
return braces[0] +
|
|
3036
|
-
(base === '' ? '' : base + '\n ') +
|
|
3037
|
-
' ' +
|
|
3038
|
-
output.join(',\n ') +
|
|
3039
|
-
' ' +
|
|
3040
|
-
braces[1];
|
|
3041
|
-
}
|
|
3042
|
-
|
|
3043
|
-
return braces[0] + base + ' ' + output.join(', ') + ' ' + braces[1];
|
|
3044
|
-
}
|
|
3045
|
-
|
|
3046
|
-
|
|
3047
|
-
// NOTE: These type checking functions intentionally don't use `instanceof`
|
|
3048
|
-
// because it is fragile and can be easily faked with `Object.create()`.
|
|
3049
|
-
function isArray(ar) {
|
|
3050
|
-
return Array.isArray(ar);
|
|
3051
|
-
}
|
|
3052
|
-
exports.isArray = isArray;
|
|
3053
|
-
|
|
3054
|
-
function isBoolean(arg) {
|
|
3055
|
-
return typeof arg === 'boolean';
|
|
3056
|
-
}
|
|
3057
|
-
exports.isBoolean = isBoolean;
|
|
3058
|
-
|
|
3059
|
-
function isNull(arg) {
|
|
3060
|
-
return arg === null;
|
|
3061
|
-
}
|
|
3062
|
-
exports.isNull = isNull;
|
|
3063
|
-
|
|
3064
|
-
function isNullOrUndefined(arg) {
|
|
3065
|
-
return arg == null;
|
|
3066
|
-
}
|
|
3067
|
-
exports.isNullOrUndefined = isNullOrUndefined;
|
|
3068
|
-
|
|
3069
|
-
function isNumber(arg) {
|
|
3070
|
-
return typeof arg === 'number';
|
|
3071
|
-
}
|
|
3072
|
-
exports.isNumber = isNumber;
|
|
3073
|
-
|
|
3074
|
-
function isString(arg) {
|
|
3075
|
-
return typeof arg === 'string';
|
|
3076
|
-
}
|
|
3077
|
-
exports.isString = isString;
|
|
3078
|
-
|
|
3079
|
-
function isSymbol(arg) {
|
|
3080
|
-
return typeof arg === 'symbol';
|
|
3081
|
-
}
|
|
3082
|
-
exports.isSymbol = isSymbol;
|
|
3083
|
-
|
|
3084
|
-
function isUndefined(arg) {
|
|
3085
|
-
return arg === void 0;
|
|
3086
|
-
}
|
|
3087
|
-
exports.isUndefined = isUndefined;
|
|
3088
|
-
|
|
3089
|
-
function isRegExp(re) {
|
|
3090
|
-
return isObject(re) && objectToString(re) === '[object RegExp]';
|
|
3091
|
-
}
|
|
3092
|
-
exports.isRegExp = isRegExp;
|
|
3093
|
-
|
|
3094
|
-
function isObject(arg) {
|
|
3095
|
-
return typeof arg === 'object' && arg !== null;
|
|
3096
|
-
}
|
|
3097
|
-
exports.isObject = isObject;
|
|
3098
|
-
|
|
3099
|
-
function isDate(d) {
|
|
3100
|
-
return isObject(d) && objectToString(d) === '[object Date]';
|
|
3101
|
-
}
|
|
3102
|
-
exports.isDate = isDate;
|
|
3103
|
-
|
|
3104
|
-
function isError(e) {
|
|
3105
|
-
return isObject(e) &&
|
|
3106
|
-
(objectToString(e) === '[object Error]' || e instanceof Error);
|
|
3107
|
-
}
|
|
3108
|
-
exports.isError = isError;
|
|
3109
|
-
|
|
3110
|
-
function isFunction(arg) {
|
|
3111
|
-
return typeof arg === 'function';
|
|
3112
|
-
}
|
|
3113
|
-
exports.isFunction = isFunction;
|
|
3114
|
-
|
|
3115
|
-
function isPrimitive(arg) {
|
|
3116
|
-
return arg === null ||
|
|
3117
|
-
typeof arg === 'boolean' ||
|
|
3118
|
-
typeof arg === 'number' ||
|
|
3119
|
-
typeof arg === 'string' ||
|
|
3120
|
-
typeof arg === 'symbol' || // ES6 symbol
|
|
3121
|
-
typeof arg === 'undefined';
|
|
3122
|
-
}
|
|
3123
|
-
exports.isPrimitive = isPrimitive;
|
|
3124
|
-
|
|
3125
|
-
exports.isBuffer = require('./support/isBuffer');
|
|
3126
|
-
|
|
3127
|
-
function objectToString(o) {
|
|
3128
|
-
return Object.prototype.toString.call(o);
|
|
3129
|
-
}
|
|
3130
|
-
|
|
3131
|
-
|
|
3132
|
-
function pad(n) {
|
|
3133
|
-
return n < 10 ? '0' + n.toString(10) : n.toString(10);
|
|
3134
|
-
}
|
|
3135
|
-
|
|
3136
|
-
|
|
3137
|
-
var months = ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep',
|
|
3138
|
-
'Oct', 'Nov', 'Dec'];
|
|
3139
|
-
|
|
3140
|
-
// 26 Feb 16:19:34
|
|
3141
|
-
function timestamp() {
|
|
3142
|
-
var d = new Date();
|
|
3143
|
-
var time = [pad(d.getHours()),
|
|
3144
|
-
pad(d.getMinutes()),
|
|
3145
|
-
pad(d.getSeconds())].join(':');
|
|
3146
|
-
return [d.getDate(), months[d.getMonth()], time].join(' ');
|
|
3147
|
-
}
|
|
3148
|
-
|
|
3149
|
-
|
|
3150
|
-
// log is just a thin wrapper to console.log that prepends a timestamp
|
|
3151
|
-
exports.log = function() {
|
|
3152
|
-
console.log('%s - %s', timestamp(), exports.format.apply(exports, arguments));
|
|
3153
|
-
};
|
|
3154
|
-
|
|
3155
|
-
|
|
3156
|
-
/**
|
|
3157
|
-
* Inherit the prototype methods from one constructor into another.
|
|
3158
|
-
*
|
|
3159
|
-
* The Function.prototype.inherits from lang.js rewritten as a standalone
|
|
3160
|
-
* function (not on Function.prototype). NOTE: If this file is to be loaded
|
|
3161
|
-
* during bootstrapping this function needs to be rewritten using some native
|
|
3162
|
-
* functions as prototype setup using normal JavaScript does not work as
|
|
3163
|
-
* expected during bootstrapping (see mirror.js in r114903).
|
|
3164
|
-
*
|
|
3165
|
-
* @param {function} ctor Constructor function which needs to inherit the
|
|
3166
|
-
* prototype.
|
|
3167
|
-
* @param {function} superCtor Constructor function to inherit prototype from.
|
|
3168
|
-
*/
|
|
3169
|
-
exports.inherits = require('inherits');
|
|
3170
|
-
|
|
3171
|
-
exports._extend = function(origin, add) {
|
|
3172
|
-
// Don't do anything if add isn't an object
|
|
3173
|
-
if (!add || !isObject(add)) return origin;
|
|
3174
|
-
|
|
3175
|
-
var keys = Object.keys(add);
|
|
3176
|
-
var i = keys.length;
|
|
3177
|
-
while (i--) {
|
|
3178
|
-
origin[keys[i]] = add[keys[i]];
|
|
3179
|
-
}
|
|
3180
|
-
return origin;
|
|
3181
|
-
};
|
|
3182
|
-
|
|
3183
|
-
function hasOwnProperty(obj, prop) {
|
|
3184
|
-
return Object.prototype.hasOwnProperty.call(obj, prop);
|
|
3185
|
-
}
|
|
3186
|
-
|
|
3187
|
-
}).call(this)}).call(this,require('_process'),typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : {})
|
|
3188
|
-
},{"./support/isBuffer":9,"_process":7,"inherits":8}],11:[function(require,module,exports){
|
|
2564
|
+
},{}],7:[function(require,module,exports){
|
|
3189
2565
|
|
|
3190
2566
|
/**
|
|
3191
2567
|
* Expose `Emitter`.
|
|
@@ -3362,533 +2738,7 @@ Emitter.prototype.hasListeners = function(event){
|
|
|
3362
2738
|
return !! this.listeners(event).length;
|
|
3363
2739
|
};
|
|
3364
2740
|
|
|
3365
|
-
},{}],
|
|
3366
|
-
const util = require('util');
|
|
3367
|
-
const fs = require('fs');
|
|
3368
|
-
const path = require('path');
|
|
3369
|
-
const mkdirp = require('mkdirp');
|
|
3370
|
-
const errors = require('./errors');
|
|
3371
|
-
const interpolation = require('./interpolation');
|
|
3372
|
-
|
|
3373
|
-
/**
|
|
3374
|
-
* Regular Expression to match section headers.
|
|
3375
|
-
* @type {RegExp}
|
|
3376
|
-
* @private
|
|
3377
|
-
*/
|
|
3378
|
-
const SECTION = new RegExp(/\s*\[([^\]]+)]/);
|
|
3379
|
-
|
|
3380
|
-
/**
|
|
3381
|
-
* Regular expression to match key, value pairs.
|
|
3382
|
-
* @type {RegExp}
|
|
3383
|
-
* @private
|
|
3384
|
-
*/
|
|
3385
|
-
const KEY = new RegExp(/\s*(.*?)\s*[=:]\s*(.*)/);
|
|
3386
|
-
|
|
3387
|
-
/**
|
|
3388
|
-
* Regular expression to match comments. Either starting with a
|
|
3389
|
-
* semi-colon or a hash.
|
|
3390
|
-
* @type {RegExp}
|
|
3391
|
-
* @private
|
|
3392
|
-
*/
|
|
3393
|
-
const COMMENT = new RegExp(/^\s*[;#]/);
|
|
3394
|
-
|
|
3395
|
-
// RL1.6 Line Boundaries (for unicode)
|
|
3396
|
-
// ... it shall recognize not only CRLF, LF, CR,
|
|
3397
|
-
// but also NEL, PS and LS.
|
|
3398
|
-
const LINE_BOUNDARY = new RegExp(/\r\n|[\n\r\u0085\u2028\u2029]/g);
|
|
3399
|
-
|
|
3400
|
-
const readFileAsync = util.promisify(fs.readFile);
|
|
3401
|
-
const writeFileAsync = util.promisify(fs.writeFile);
|
|
3402
|
-
const statAsync = util.promisify(fs.stat);
|
|
3403
|
-
const mkdirAsync = util.promisify(mkdirp);
|
|
3404
|
-
|
|
3405
|
-
/**
|
|
3406
|
-
* @constructor
|
|
3407
|
-
*/
|
|
3408
|
-
function ConfigParser() {
|
|
3409
|
-
this._sections = {};
|
|
3410
|
-
}
|
|
3411
|
-
|
|
3412
|
-
/**
|
|
3413
|
-
* Returns an array of the sections.
|
|
3414
|
-
* @returns {Array}
|
|
3415
|
-
*/
|
|
3416
|
-
ConfigParser.prototype.sections = function() {
|
|
3417
|
-
return Object.keys(this._sections);
|
|
3418
|
-
};
|
|
3419
|
-
|
|
3420
|
-
/**
|
|
3421
|
-
* Adds a section named section to the instance. If the section already
|
|
3422
|
-
* exists, a DuplicateSectionError is thrown.
|
|
3423
|
-
* @param {string} section - Section Name
|
|
3424
|
-
*/
|
|
3425
|
-
ConfigParser.prototype.addSection = function(section) {
|
|
3426
|
-
if(this._sections.hasOwnProperty(section)){
|
|
3427
|
-
throw new errors.DuplicateSectionError(section)
|
|
3428
|
-
}
|
|
3429
|
-
this._sections[section] = {};
|
|
3430
|
-
};
|
|
3431
|
-
|
|
3432
|
-
/**
|
|
3433
|
-
* Indicates whether the section is present in the configuration
|
|
3434
|
-
* file.
|
|
3435
|
-
* @param {string} section - Section Name
|
|
3436
|
-
* @returns {boolean}
|
|
3437
|
-
*/
|
|
3438
|
-
ConfigParser.prototype.hasSection = function(section) {
|
|
3439
|
-
return this._sections.hasOwnProperty(section);
|
|
3440
|
-
};
|
|
3441
|
-
|
|
3442
|
-
/**
|
|
3443
|
-
* Returns an array of all keys in the specified section.
|
|
3444
|
-
* @param {string} section - Section Name
|
|
3445
|
-
* @returns {Array}
|
|
3446
|
-
*/
|
|
3447
|
-
ConfigParser.prototype.keys = function(section) {
|
|
3448
|
-
try {
|
|
3449
|
-
return Object.keys(this._sections[section]);
|
|
3450
|
-
} catch(err){
|
|
3451
|
-
throw new errors.NoSectionError(section);
|
|
3452
|
-
}
|
|
3453
|
-
};
|
|
3454
|
-
|
|
3455
|
-
/**
|
|
3456
|
-
* Indicates whether the specified key is in the section.
|
|
3457
|
-
* @param {string} section - Section Name
|
|
3458
|
-
* @param {string} key - Key Name
|
|
3459
|
-
* @returns {boolean}
|
|
3460
|
-
*/
|
|
3461
|
-
ConfigParser.prototype.hasKey = function (section, key) {
|
|
3462
|
-
return this._sections.hasOwnProperty(section) &&
|
|
3463
|
-
this._sections[section].hasOwnProperty(key);
|
|
3464
|
-
};
|
|
3465
|
-
|
|
3466
|
-
/**
|
|
3467
|
-
* Reads a file and parses the configuration data.
|
|
3468
|
-
* @param {string|Buffer|int} file - Filename or File Descriptor
|
|
3469
|
-
*/
|
|
3470
|
-
ConfigParser.prototype.read = function(file) {
|
|
3471
|
-
const lines = fs.readFileSync(file)
|
|
3472
|
-
.toString('utf8')
|
|
3473
|
-
.split(LINE_BOUNDARY);
|
|
3474
|
-
parseLines.call(this, file, lines);
|
|
3475
|
-
};
|
|
3476
|
-
|
|
3477
|
-
/**
|
|
3478
|
-
* Reads a file asynchronously and parses the configuration data.
|
|
3479
|
-
* @param {string|Buffer|int} file - Filename or File Descriptor
|
|
3480
|
-
*/
|
|
3481
|
-
ConfigParser.prototype.readAsync = async function(file) {
|
|
3482
|
-
const lines = (await readFileAsync(file))
|
|
3483
|
-
.toString('utf8')
|
|
3484
|
-
.split(LINE_BOUNDARY);
|
|
3485
|
-
parseLines.call(this, file, lines);
|
|
3486
|
-
}
|
|
3487
|
-
|
|
3488
|
-
/**
|
|
3489
|
-
* Gets the value for the key in the named section.
|
|
3490
|
-
* @param {string} section - Section Name
|
|
3491
|
-
* @param {string} key - Key Name
|
|
3492
|
-
* @param {boolean} [raw=false] - Whether or not to replace placeholders
|
|
3493
|
-
* @returns {string|undefined}
|
|
3494
|
-
*/
|
|
3495
|
-
ConfigParser.prototype.get = function(section, key, raw) {
|
|
3496
|
-
if(this._sections.hasOwnProperty(section)){
|
|
3497
|
-
if(raw){
|
|
3498
|
-
return this._sections[section][key];
|
|
3499
|
-
} else {
|
|
3500
|
-
return interpolation.interpolate(this, section, key);
|
|
3501
|
-
}
|
|
3502
|
-
}
|
|
3503
|
-
return undefined;
|
|
3504
|
-
};
|
|
3505
|
-
|
|
3506
|
-
/**
|
|
3507
|
-
* Coerces value to an integer of the specified radix.
|
|
3508
|
-
* @param {string} section - Section Name
|
|
3509
|
-
* @param {string} key - Key Name
|
|
3510
|
-
* @param {int} [radix=10] - An integer between 2 and 36 that represents the base of the string.
|
|
3511
|
-
* @returns {number|undefined|NaN}
|
|
3512
|
-
*/
|
|
3513
|
-
ConfigParser.prototype.getInt = function(section, key, radix) {
|
|
3514
|
-
if(this._sections.hasOwnProperty(section)){
|
|
3515
|
-
if(!radix) radix = 10;
|
|
3516
|
-
return parseInt(this._sections[section][key], radix);
|
|
3517
|
-
}
|
|
3518
|
-
return undefined;
|
|
3519
|
-
};
|
|
3520
|
-
|
|
3521
|
-
/**
|
|
3522
|
-
* Coerces value to a float.
|
|
3523
|
-
* @param {string} section - Section Name
|
|
3524
|
-
* @param {string} key - Key Name
|
|
3525
|
-
* @returns {number|undefined|NaN}
|
|
3526
|
-
*/
|
|
3527
|
-
ConfigParser.prototype.getFloat = function(section, key) {
|
|
3528
|
-
if(this._sections.hasOwnProperty(section)){
|
|
3529
|
-
return parseFloat(this._sections[section][key]);
|
|
3530
|
-
}
|
|
3531
|
-
return undefined;
|
|
3532
|
-
};
|
|
3533
|
-
|
|
3534
|
-
/**
|
|
3535
|
-
* Returns an object with every key, value pair for the named section.
|
|
3536
|
-
* @param {string} section - Section Name
|
|
3537
|
-
* @returns {Object}
|
|
3538
|
-
*/
|
|
3539
|
-
ConfigParser.prototype.items = function(section) {
|
|
3540
|
-
return this._sections[section];
|
|
3541
|
-
};
|
|
3542
|
-
|
|
3543
|
-
/**
|
|
3544
|
-
* Sets the given key to the specified value.
|
|
3545
|
-
* @param {string} section - Section Name
|
|
3546
|
-
* @param {string} key - Key Name
|
|
3547
|
-
* @param {*} value - New Key Value
|
|
3548
|
-
*/
|
|
3549
|
-
ConfigParser.prototype.set = function(section, key, value) {
|
|
3550
|
-
if(this._sections.hasOwnProperty(section)){
|
|
3551
|
-
this._sections[section][key] = value;
|
|
3552
|
-
}
|
|
3553
|
-
};
|
|
3554
|
-
|
|
3555
|
-
/**
|
|
3556
|
-
* Removes the property specified by key in the named section.
|
|
3557
|
-
* @param {string} section - Section Name
|
|
3558
|
-
* @param {string} key - Key Name
|
|
3559
|
-
* @returns {boolean}
|
|
3560
|
-
*/
|
|
3561
|
-
ConfigParser.prototype.removeKey = function(section, key) {
|
|
3562
|
-
// delete operator returns true if the property doesn't not exist
|
|
3563
|
-
if(this._sections.hasOwnProperty(section) &&
|
|
3564
|
-
this._sections[section].hasOwnProperty(key)){
|
|
3565
|
-
return delete this._sections[section][key];
|
|
3566
|
-
}
|
|
3567
|
-
return false;
|
|
3568
|
-
};
|
|
3569
|
-
|
|
3570
|
-
/**
|
|
3571
|
-
* Removes the named section (and associated key, value pairs).
|
|
3572
|
-
* @param {string} section - Section Name
|
|
3573
|
-
* @returns {boolean}
|
|
3574
|
-
*/
|
|
3575
|
-
ConfigParser.prototype.removeSection = function(section) {
|
|
3576
|
-
if(this._sections.hasOwnProperty(section)){
|
|
3577
|
-
return delete this._sections[section];
|
|
3578
|
-
}
|
|
3579
|
-
return false;
|
|
3580
|
-
};
|
|
3581
|
-
|
|
3582
|
-
/**
|
|
3583
|
-
* Writes the representation of the config file to the
|
|
3584
|
-
* specified file. Comments are not preserved.
|
|
3585
|
-
* @param {string|Buffer|int} file - Filename or File Descriptor
|
|
3586
|
-
* @param {bool} [createMissingDirs=false] - Whether to create the directories in the path if they don't exist
|
|
3587
|
-
*/
|
|
3588
|
-
ConfigParser.prototype.write = function(file, createMissingDirs = false) {
|
|
3589
|
-
if (createMissingDirs) {
|
|
3590
|
-
const dir = path.dirname(file);
|
|
3591
|
-
mkdirp.sync(dir);
|
|
3592
|
-
}
|
|
3593
|
-
|
|
3594
|
-
fs.writeFileSync(file, getSectionsAsString.call(this));
|
|
3595
|
-
};
|
|
3596
|
-
|
|
3597
|
-
/**
|
|
3598
|
-
* Writes the representation of the config file to the
|
|
3599
|
-
* specified file asynchronously. Comments are not preserved.
|
|
3600
|
-
* @param {string|Buffer|int} file - Filename or File Descriptor
|
|
3601
|
-
* @param {bool} [createMissingDirs=false] - Whether to create the directories in the path if they don't exist
|
|
3602
|
-
* @returns {Promise}
|
|
3603
|
-
*/
|
|
3604
|
-
ConfigParser.prototype.writeAsync = async function(file, createMissingDirs = false) {
|
|
3605
|
-
if (createMissingDirs) {
|
|
3606
|
-
const dir = path.dirname(file);
|
|
3607
|
-
await mkdirAsync(dir);
|
|
3608
|
-
}
|
|
3609
|
-
|
|
3610
|
-
await writeFileAsync(file, getSectionsAsString.call(this));
|
|
3611
|
-
}
|
|
3612
|
-
|
|
3613
|
-
function parseLines(file, lines) {
|
|
3614
|
-
let curSec = null;
|
|
3615
|
-
lines.forEach((line, lineNumber) => {
|
|
3616
|
-
if(!line || line.match(COMMENT)) return;
|
|
3617
|
-
let res = SECTION.exec(line);
|
|
3618
|
-
if(res){
|
|
3619
|
-
const header = res[1];
|
|
3620
|
-
curSec = {};
|
|
3621
|
-
this._sections[header] = curSec;
|
|
3622
|
-
} else if(!curSec) {
|
|
3623
|
-
throw new errors.MissingSectionHeaderError(file, lineNumber, line);
|
|
3624
|
-
} else {
|
|
3625
|
-
res = KEY.exec(line);
|
|
3626
|
-
if(res){
|
|
3627
|
-
const key = res[1];
|
|
3628
|
-
curSec[key] = res[2];
|
|
3629
|
-
} else {
|
|
3630
|
-
throw new errors.ParseError(file, lineNumber, line);
|
|
3631
|
-
}
|
|
3632
|
-
}
|
|
3633
|
-
});
|
|
3634
|
-
}
|
|
3635
|
-
|
|
3636
|
-
function getSectionsAsString() {
|
|
3637
|
-
let out = '';
|
|
3638
|
-
let section;
|
|
3639
|
-
for(section in this._sections){
|
|
3640
|
-
if(!this._sections.hasOwnProperty(section)) continue;
|
|
3641
|
-
out += ('[' + section + ']\n');
|
|
3642
|
-
const keys = this._sections[section];
|
|
3643
|
-
let key;
|
|
3644
|
-
for(key in keys){
|
|
3645
|
-
if(!keys.hasOwnProperty(key)) continue;
|
|
3646
|
-
let value = keys[key];
|
|
3647
|
-
out += (key + '=' + value + '\n');
|
|
3648
|
-
}
|
|
3649
|
-
out += '\n';
|
|
3650
|
-
}
|
|
3651
|
-
return out;
|
|
3652
|
-
}
|
|
3653
|
-
|
|
3654
|
-
module.exports = ConfigParser;
|
|
3655
|
-
|
|
3656
|
-
},{"./errors":13,"./interpolation":14,"fs":1,"mkdirp":15,"path":6,"util":10}],13:[function(require,module,exports){
|
|
3657
|
-
/**
|
|
3658
|
-
* Error thrown when addSection is called with a section
|
|
3659
|
-
* that already exists.
|
|
3660
|
-
* @param {string} section - Section Name
|
|
3661
|
-
* @constructor
|
|
3662
|
-
*/
|
|
3663
|
-
function DuplicateSectionError(section) {
|
|
3664
|
-
this.name = 'DuplicateSectionError';
|
|
3665
|
-
this.message = section + ' already exists';
|
|
3666
|
-
Error.captureStackTrace(this, this.constructor);
|
|
3667
|
-
}
|
|
3668
|
-
|
|
3669
|
-
/**
|
|
3670
|
-
* Error thrown when the section being accessed, does
|
|
3671
|
-
* not exist.
|
|
3672
|
-
* @param {string} section - Section Name
|
|
3673
|
-
* @constructor
|
|
3674
|
-
*/
|
|
3675
|
-
function NoSectionError(section) {
|
|
3676
|
-
this.name = this.constructor.name;
|
|
3677
|
-
this.message = 'Section ' + section + ' does not exist.';
|
|
3678
|
-
Error.captureStackTrace(this, this.constructor);
|
|
3679
|
-
}
|
|
3680
|
-
|
|
3681
|
-
/**
|
|
3682
|
-
* Error thrown when a file is being parsed.
|
|
3683
|
-
* @param {string} filename - File name
|
|
3684
|
-
* @param {int} lineNumber - Line Number
|
|
3685
|
-
* @param {string} line - Contents of the line
|
|
3686
|
-
* @constructor
|
|
3687
|
-
*/
|
|
3688
|
-
function ParseError(filename, lineNumber, line) {
|
|
3689
|
-
this.name = this.constructor.name;
|
|
3690
|
-
this.message = 'Source contains parsing errors.\nfile: ' + filename +
|
|
3691
|
-
' line: ' + lineNumber + '\n' + line;
|
|
3692
|
-
Error.captureStackTrace(this, this.constructor);
|
|
3693
|
-
}
|
|
3694
|
-
|
|
3695
|
-
/**
|
|
3696
|
-
* Error thrown when there are no section headers present
|
|
3697
|
-
* in a file.
|
|
3698
|
-
* @param {string} filename - File name
|
|
3699
|
-
* @param {int} lineNumber - Line Number
|
|
3700
|
-
* @param {string} line - Contents of the line
|
|
3701
|
-
* @constructor
|
|
3702
|
-
*/
|
|
3703
|
-
function MissingSectionHeaderError(filename, lineNumber, line) {
|
|
3704
|
-
this.name = this.constructor.name;
|
|
3705
|
-
this.message = 'File contains no section headers.\nfile: ' + filename +
|
|
3706
|
-
' line: ' + lineNumber + '\n' + line;
|
|
3707
|
-
Error.captureStackTrace(this, this.constructor);
|
|
3708
|
-
}
|
|
3709
|
-
|
|
3710
|
-
/**
|
|
3711
|
-
* Error thrown when the interpolate function exceeds the maximum recursion
|
|
3712
|
-
* depth.
|
|
3713
|
-
* @param {string} section - Section Name
|
|
3714
|
-
* @param {string} key - Key Name
|
|
3715
|
-
* @param {string} value - Key Value
|
|
3716
|
-
* @param {int} maxDepth - Maximum recursion depth
|
|
3717
|
-
* @constructor
|
|
3718
|
-
*/
|
|
3719
|
-
function MaximumInterpolationDepthError(section, key, value, maxDepth) {
|
|
3720
|
-
this.name = this.constructor.name;
|
|
3721
|
-
this.message = 'Exceeded Maximum Recursion Depth (' + maxDepth +
|
|
3722
|
-
') for key ' + key + ' in section ' + section + '\nvalue: ' + value;
|
|
3723
|
-
Error.captureStackTrace(this, this.constructor);
|
|
3724
|
-
}
|
|
3725
|
-
|
|
3726
|
-
module.exports = {
|
|
3727
|
-
DuplicateSectionError,
|
|
3728
|
-
NoSectionError,
|
|
3729
|
-
ParseError,
|
|
3730
|
-
MissingSectionHeaderError,
|
|
3731
|
-
MaximumInterpolationDepthError
|
|
3732
|
-
};
|
|
3733
|
-
},{}],14:[function(require,module,exports){
|
|
3734
|
-
const errors = require('./errors');
|
|
3735
|
-
|
|
3736
|
-
/**
|
|
3737
|
-
* Regular Expression to match placeholders.
|
|
3738
|
-
* @type {RegExp}
|
|
3739
|
-
* @private
|
|
3740
|
-
*/
|
|
3741
|
-
const PLACEHOLDER = new RegExp(/%\(([\w-]+)\)s/);
|
|
3742
|
-
|
|
3743
|
-
/**
|
|
3744
|
-
* Maximum recursion depth for parseValue
|
|
3745
|
-
* @type {number}
|
|
3746
|
-
*/
|
|
3747
|
-
const MAXIMUM_INTERPOLATION_DEPTH = 50;
|
|
3748
|
-
|
|
3749
|
-
/**
|
|
3750
|
-
* Recursively parses a string and replaces the placeholder ( %(key)s )
|
|
3751
|
-
* with the value the key points to.
|
|
3752
|
-
* @param {ParserConfig} parser - Parser Config Object
|
|
3753
|
-
* @param {string} section - Section Name
|
|
3754
|
-
* @param {string} key - Key Name
|
|
3755
|
-
*/
|
|
3756
|
-
function interpolate(parser, section, key) {
|
|
3757
|
-
return interpolateRecurse(parser, section, key, 1);
|
|
3758
|
-
}
|
|
3759
|
-
|
|
3760
|
-
/**
|
|
3761
|
-
* Interpolate Recurse
|
|
3762
|
-
* @param parser
|
|
3763
|
-
* @param section
|
|
3764
|
-
* @param key
|
|
3765
|
-
* @param depth
|
|
3766
|
-
* @private
|
|
3767
|
-
*/
|
|
3768
|
-
function interpolateRecurse(parser, section, key, depth) {
|
|
3769
|
-
let value = parser.get(section, key, true);
|
|
3770
|
-
if(depth > MAXIMUM_INTERPOLATION_DEPTH){
|
|
3771
|
-
throw new errors.MaximumInterpolationDepthError(section, key, value, MAXIMUM_INTERPOLATION_DEPTH);
|
|
3772
|
-
}
|
|
3773
|
-
let res = PLACEHOLDER.exec(value);
|
|
3774
|
-
while(res !== null){
|
|
3775
|
-
const placeholder = res[1];
|
|
3776
|
-
const rep = interpolateRecurse(parser, section, placeholder, depth + 1);
|
|
3777
|
-
// replace %(key)s with the returned value next
|
|
3778
|
-
value = value.substr(0, res.index) + rep +
|
|
3779
|
-
value.substr(res.index + res[0].length);
|
|
3780
|
-
// get next placeholder
|
|
3781
|
-
res = PLACEHOLDER.exec(value);
|
|
3782
|
-
}
|
|
3783
|
-
return value;
|
|
3784
|
-
}
|
|
3785
|
-
|
|
3786
|
-
module.exports = {
|
|
3787
|
-
interpolate,
|
|
3788
|
-
MAXIMUM_INTERPOLATION_DEPTH
|
|
3789
|
-
};
|
|
3790
|
-
},{"./errors":13}],15:[function(require,module,exports){
|
|
3791
|
-
var path = require('path');
|
|
3792
|
-
var fs = require('fs');
|
|
3793
|
-
var _0777 = parseInt('0777', 8);
|
|
3794
|
-
|
|
3795
|
-
module.exports = mkdirP.mkdirp = mkdirP.mkdirP = mkdirP;
|
|
3796
|
-
|
|
3797
|
-
function mkdirP (p, opts, f, made) {
|
|
3798
|
-
if (typeof opts === 'function') {
|
|
3799
|
-
f = opts;
|
|
3800
|
-
opts = {};
|
|
3801
|
-
}
|
|
3802
|
-
else if (!opts || typeof opts !== 'object') {
|
|
3803
|
-
opts = { mode: opts };
|
|
3804
|
-
}
|
|
3805
|
-
|
|
3806
|
-
var mode = opts.mode;
|
|
3807
|
-
var xfs = opts.fs || fs;
|
|
3808
|
-
|
|
3809
|
-
if (mode === undefined) {
|
|
3810
|
-
mode = _0777
|
|
3811
|
-
}
|
|
3812
|
-
if (!made) made = null;
|
|
3813
|
-
|
|
3814
|
-
var cb = f || function () {};
|
|
3815
|
-
p = path.resolve(p);
|
|
3816
|
-
|
|
3817
|
-
xfs.mkdir(p, mode, function (er) {
|
|
3818
|
-
if (!er) {
|
|
3819
|
-
made = made || p;
|
|
3820
|
-
return cb(null, made);
|
|
3821
|
-
}
|
|
3822
|
-
switch (er.code) {
|
|
3823
|
-
case 'ENOENT':
|
|
3824
|
-
if (path.dirname(p) === p) return cb(er);
|
|
3825
|
-
mkdirP(path.dirname(p), opts, function (er, made) {
|
|
3826
|
-
if (er) cb(er, made);
|
|
3827
|
-
else mkdirP(p, opts, cb, made);
|
|
3828
|
-
});
|
|
3829
|
-
break;
|
|
3830
|
-
|
|
3831
|
-
// In the case of any other error, just see if there's a dir
|
|
3832
|
-
// there already. If so, then hooray! If not, then something
|
|
3833
|
-
// is borked.
|
|
3834
|
-
default:
|
|
3835
|
-
xfs.stat(p, function (er2, stat) {
|
|
3836
|
-
// if the stat fails, then that's super weird.
|
|
3837
|
-
// let the original error be the failure reason.
|
|
3838
|
-
if (er2 || !stat.isDirectory()) cb(er, made)
|
|
3839
|
-
else cb(null, made);
|
|
3840
|
-
});
|
|
3841
|
-
break;
|
|
3842
|
-
}
|
|
3843
|
-
});
|
|
3844
|
-
}
|
|
3845
|
-
|
|
3846
|
-
mkdirP.sync = function sync (p, opts, made) {
|
|
3847
|
-
if (!opts || typeof opts !== 'object') {
|
|
3848
|
-
opts = { mode: opts };
|
|
3849
|
-
}
|
|
3850
|
-
|
|
3851
|
-
var mode = opts.mode;
|
|
3852
|
-
var xfs = opts.fs || fs;
|
|
3853
|
-
|
|
3854
|
-
if (mode === undefined) {
|
|
3855
|
-
mode = _0777
|
|
3856
|
-
}
|
|
3857
|
-
if (!made) made = null;
|
|
3858
|
-
|
|
3859
|
-
p = path.resolve(p);
|
|
3860
|
-
|
|
3861
|
-
try {
|
|
3862
|
-
xfs.mkdirSync(p, mode);
|
|
3863
|
-
made = made || p;
|
|
3864
|
-
}
|
|
3865
|
-
catch (err0) {
|
|
3866
|
-
switch (err0.code) {
|
|
3867
|
-
case 'ENOENT' :
|
|
3868
|
-
made = sync(path.dirname(p), opts, made);
|
|
3869
|
-
sync(p, opts, made);
|
|
3870
|
-
break;
|
|
3871
|
-
|
|
3872
|
-
// In the case of any other error, just see if there's a dir
|
|
3873
|
-
// there already. If so, then hooray! If not, then something
|
|
3874
|
-
// is borked.
|
|
3875
|
-
default:
|
|
3876
|
-
var stat;
|
|
3877
|
-
try {
|
|
3878
|
-
stat = xfs.statSync(p);
|
|
3879
|
-
}
|
|
3880
|
-
catch (err1) {
|
|
3881
|
-
throw err0;
|
|
3882
|
-
}
|
|
3883
|
-
if (!stat.isDirectory()) throw err0;
|
|
3884
|
-
break;
|
|
3885
|
-
}
|
|
3886
|
-
}
|
|
3887
|
-
|
|
3888
|
-
return made;
|
|
3889
|
-
};
|
|
3890
|
-
|
|
3891
|
-
},{"fs":1,"path":6}],16:[function(require,module,exports){
|
|
2741
|
+
},{}],8:[function(require,module,exports){
|
|
3892
2742
|
function Agent() {
|
|
3893
2743
|
this._defaults = [];
|
|
3894
2744
|
}
|
|
@@ -3910,7 +2760,7 @@ Agent.prototype._setDefaults = function(req) {
|
|
|
3910
2760
|
|
|
3911
2761
|
module.exports = Agent;
|
|
3912
2762
|
|
|
3913
|
-
},{}],
|
|
2763
|
+
},{}],9:[function(require,module,exports){
|
|
3914
2764
|
/**
|
|
3915
2765
|
* Root reference for iframes.
|
|
3916
2766
|
*/
|
|
@@ -4832,7 +3682,7 @@ request.put = function(url, data, fn) {
|
|
|
4832
3682
|
return req;
|
|
4833
3683
|
};
|
|
4834
3684
|
|
|
4835
|
-
},{"./agent-base":
|
|
3685
|
+
},{"./agent-base":8,"./is-object":10,"./request-base":11,"./response-base":12,"component-emitter":7}],10:[function(require,module,exports){
|
|
4836
3686
|
'use strict';
|
|
4837
3687
|
|
|
4838
3688
|
/**
|
|
@@ -4849,7 +3699,7 @@ function isObject(obj) {
|
|
|
4849
3699
|
|
|
4850
3700
|
module.exports = isObject;
|
|
4851
3701
|
|
|
4852
|
-
},{}],
|
|
3702
|
+
},{}],11:[function(require,module,exports){
|
|
4853
3703
|
'use strict';
|
|
4854
3704
|
|
|
4855
3705
|
/**
|
|
@@ -5545,7 +4395,7 @@ RequestBase.prototype._setTimeouts = function() {
|
|
|
5545
4395
|
}
|
|
5546
4396
|
};
|
|
5547
4397
|
|
|
5548
|
-
},{"./is-object":
|
|
4398
|
+
},{"./is-object":10}],12:[function(require,module,exports){
|
|
5549
4399
|
'use strict';
|
|
5550
4400
|
|
|
5551
4401
|
/**
|
|
@@ -5683,7 +4533,7 @@ ResponseBase.prototype._setStatusProperties = function(status){
|
|
|
5683
4533
|
this.unprocessableEntity = 422 == status;
|
|
5684
4534
|
};
|
|
5685
4535
|
|
|
5686
|
-
},{"./utils":
|
|
4536
|
+
},{"./utils":13}],13:[function(require,module,exports){
|
|
5687
4537
|
'use strict';
|
|
5688
4538
|
|
|
5689
4539
|
/**
|
|
@@ -7931,26 +6781,7 @@ class Configuration {
|
|
|
7931
6781
|
|
|
7932
6782
|
liveLoadConfig() {
|
|
7933
6783
|
// If in browser, don't read config file, use default values
|
|
7934
|
-
|
|
7935
|
-
this.configPath = '';
|
|
7936
|
-
return;
|
|
7937
|
-
}
|
|
7938
|
-
|
|
7939
|
-
this.updateConfigFromFile();
|
|
7940
|
-
|
|
7941
|
-
if (this.live_reload_config && this.live_reload_config === true) {
|
|
7942
|
-
try {
|
|
7943
|
-
const fs = require('fs');
|
|
7944
|
-
fs.watchFile(this.configPath, { persistent: false }, (eventType, filename) => {
|
|
7945
|
-
this.updateConfigFromFile();
|
|
7946
|
-
if (!this.live_reload_config) {
|
|
7947
|
-
fs.unwatchFile(this.configPath);
|
|
7948
|
-
}
|
|
7949
|
-
});
|
|
7950
|
-
} catch (err) {
|
|
7951
|
-
// do nothing
|
|
7952
|
-
}
|
|
7953
|
-
}
|
|
6784
|
+
this.configPath = '';
|
|
7954
6785
|
}
|
|
7955
6786
|
|
|
7956
6787
|
setConfigPath(path) {
|
|
@@ -7961,24 +6792,6 @@ class Configuration {
|
|
|
7961
6792
|
}
|
|
7962
6793
|
|
|
7963
6794
|
updateConfigFromFile() {
|
|
7964
|
-
const ConfigParser = require('configparser');
|
|
7965
|
-
var configparser = new ConfigParser();
|
|
7966
|
-
|
|
7967
|
-
try {
|
|
7968
|
-
configparser.read(this.configPath); // If no error catched, indicates it's INI format
|
|
7969
|
-
this.config = configparser;
|
|
7970
|
-
} catch (error) {
|
|
7971
|
-
if (error.name && error.name === 'MissingSectionHeaderError') {
|
|
7972
|
-
// Not INI format, see if it's JSON format
|
|
7973
|
-
const fs = require('fs');
|
|
7974
|
-
var configData = fs.readFileSync(this.configPath, 'utf8');
|
|
7975
|
-
this.config = {
|
|
7976
|
-
_sections: JSON.parse(configData), // To match INI data format
|
|
7977
|
-
};
|
|
7978
|
-
}
|
|
7979
|
-
}
|
|
7980
|
-
|
|
7981
|
-
if (this.config) this.updateConfigValues();
|
|
7982
6795
|
}
|
|
7983
6796
|
|
|
7984
6797
|
updateConfigValues() {
|
|
@@ -8060,7 +6873,7 @@ class Configuration {
|
|
|
8060
6873
|
|
|
8061
6874
|
/**
|
|
8062
6875
|
* @module purecloud-platform-client-v2/ApiClient
|
|
8063
|
-
* @version
|
|
6876
|
+
* @version 126.1.0
|
|
8064
6877
|
*/
|
|
8065
6878
|
class ApiClient {
|
|
8066
6879
|
/**
|
|
@@ -9000,7 +7813,7 @@ class ApiClient {
|
|
|
9000
7813
|
|
|
9001
7814
|
// set header parameters
|
|
9002
7815
|
request.set(that.defaultHeaders).set(that.normalizeParams(headerParams));
|
|
9003
|
-
//request.set({ 'purecloud-sdk': '
|
|
7816
|
+
//request.set({ 'purecloud-sdk': '126.1.0' });
|
|
9004
7817
|
|
|
9005
7818
|
// set request timeout
|
|
9006
7819
|
request.timeout(that.timeout);
|
|
@@ -9100,7 +7913,7 @@ class AlertingApi {
|
|
|
9100
7913
|
/**
|
|
9101
7914
|
* Alerting service.
|
|
9102
7915
|
* @module purecloud-platform-client-v2/api/AlertingApi
|
|
9103
|
-
* @version
|
|
7916
|
+
* @version 126.1.0
|
|
9104
7917
|
*/
|
|
9105
7918
|
|
|
9106
7919
|
/**
|
|
@@ -9414,7 +8227,7 @@ class AnalyticsApi {
|
|
|
9414
8227
|
/**
|
|
9415
8228
|
* Analytics service.
|
|
9416
8229
|
* @module purecloud-platform-client-v2/api/AnalyticsApi
|
|
9417
|
-
* @version
|
|
8230
|
+
* @version 126.1.0
|
|
9418
8231
|
*/
|
|
9419
8232
|
|
|
9420
8233
|
/**
|
|
@@ -10010,31 +8823,6 @@ class AnalyticsApi {
|
|
|
10010
8823
|
);
|
|
10011
8824
|
}
|
|
10012
8825
|
|
|
10013
|
-
/**
|
|
10014
|
-
* Patch AnalyticsReportingSettings values for an organization
|
|
10015
|
-
*
|
|
10016
|
-
* @param {Object} body AnalyticsReportingSettingsRequest
|
|
10017
|
-
*/
|
|
10018
|
-
patchAnalyticsReportingSettings(body) {
|
|
10019
|
-
// verify the required parameter 'body' is set
|
|
10020
|
-
if (body === undefined || body === null) {
|
|
10021
|
-
throw 'Missing the required parameter "body" when calling patchAnalyticsReportingSettings';
|
|
10022
|
-
}
|
|
10023
|
-
|
|
10024
|
-
return this.apiClient.callApi(
|
|
10025
|
-
'/api/v2/analytics/reporting/settings',
|
|
10026
|
-
'PATCH',
|
|
10027
|
-
{ },
|
|
10028
|
-
{ },
|
|
10029
|
-
{ },
|
|
10030
|
-
{ },
|
|
10031
|
-
body,
|
|
10032
|
-
['PureCloud OAuth'],
|
|
10033
|
-
['application/json'],
|
|
10034
|
-
['application/json']
|
|
10035
|
-
);
|
|
10036
|
-
}
|
|
10037
|
-
|
|
10038
8826
|
/**
|
|
10039
8827
|
* Query for bot aggregates
|
|
10040
8828
|
*
|
|
@@ -10576,7 +9364,7 @@ class ArchitectApi {
|
|
|
10576
9364
|
/**
|
|
10577
9365
|
* Architect service.
|
|
10578
9366
|
* @module purecloud-platform-client-v2/api/ArchitectApi
|
|
10579
|
-
* @version
|
|
9367
|
+
* @version 126.1.0
|
|
10580
9368
|
*/
|
|
10581
9369
|
|
|
10582
9370
|
/**
|
|
@@ -13572,7 +12360,7 @@ class AuditApi {
|
|
|
13572
12360
|
/**
|
|
13573
12361
|
* Audit service.
|
|
13574
12362
|
* @module purecloud-platform-client-v2/api/AuditApi
|
|
13575
|
-
* @version
|
|
12363
|
+
* @version 126.1.0
|
|
13576
12364
|
*/
|
|
13577
12365
|
|
|
13578
12366
|
/**
|
|
@@ -13743,7 +12531,7 @@ class AuthorizationApi {
|
|
|
13743
12531
|
/**
|
|
13744
12532
|
* Authorization service.
|
|
13745
12533
|
* @module purecloud-platform-client-v2/api/AuthorizationApi
|
|
13746
|
-
* @version
|
|
12534
|
+
* @version 126.1.0
|
|
13747
12535
|
*/
|
|
13748
12536
|
|
|
13749
12537
|
/**
|
|
@@ -14926,7 +13714,7 @@ class BillingApi {
|
|
|
14926
13714
|
/**
|
|
14927
13715
|
* Billing service.
|
|
14928
13716
|
* @module purecloud-platform-client-v2/api/BillingApi
|
|
14929
|
-
* @version
|
|
13717
|
+
* @version 126.1.0
|
|
14930
13718
|
*/
|
|
14931
13719
|
|
|
14932
13720
|
/**
|
|
@@ -15006,7 +13794,7 @@ class ChatApi {
|
|
|
15006
13794
|
/**
|
|
15007
13795
|
* Chat service.
|
|
15008
13796
|
* @module purecloud-platform-client-v2/api/ChatApi
|
|
15009
|
-
* @version
|
|
13797
|
+
* @version 126.1.0
|
|
15010
13798
|
*/
|
|
15011
13799
|
|
|
15012
13800
|
/**
|
|
@@ -15097,7 +13885,7 @@ class CoachingApi {
|
|
|
15097
13885
|
/**
|
|
15098
13886
|
* Coaching service.
|
|
15099
13887
|
* @module purecloud-platform-client-v2/api/CoachingApi
|
|
15100
|
-
* @version
|
|
13888
|
+
* @version 126.1.0
|
|
15101
13889
|
*/
|
|
15102
13890
|
|
|
15103
13891
|
/**
|
|
@@ -15672,7 +14460,7 @@ class ContentManagementApi {
|
|
|
15672
14460
|
/**
|
|
15673
14461
|
* ContentManagement service.
|
|
15674
14462
|
* @module purecloud-platform-client-v2/api/ContentManagementApi
|
|
15675
|
-
* @version
|
|
14463
|
+
* @version 126.1.0
|
|
15676
14464
|
*/
|
|
15677
14465
|
|
|
15678
14466
|
/**
|
|
@@ -16812,7 +15600,7 @@ class ConversationsApi {
|
|
|
16812
15600
|
/**
|
|
16813
15601
|
* Conversations service.
|
|
16814
15602
|
* @module purecloud-platform-client-v2/api/ConversationsApi
|
|
16815
|
-
* @version
|
|
15603
|
+
* @version 126.1.0
|
|
16816
15604
|
*/
|
|
16817
15605
|
|
|
16818
15606
|
/**
|
|
@@ -21201,7 +19989,7 @@ class DataExtensionsApi {
|
|
|
21201
19989
|
/**
|
|
21202
19990
|
* DataExtensions service.
|
|
21203
19991
|
* @module purecloud-platform-client-v2/api/DataExtensionsApi
|
|
21204
|
-
* @version
|
|
19992
|
+
* @version 126.1.0
|
|
21205
19993
|
*/
|
|
21206
19994
|
|
|
21207
19995
|
/**
|
|
@@ -21287,7 +20075,7 @@ class ExternalContactsApi {
|
|
|
21287
20075
|
/**
|
|
21288
20076
|
* ExternalContacts service.
|
|
21289
20077
|
* @module purecloud-platform-client-v2/api/ExternalContactsApi
|
|
21290
|
-
* @version
|
|
20078
|
+
* @version 126.1.0
|
|
21291
20079
|
*/
|
|
21292
20080
|
|
|
21293
20081
|
/**
|
|
@@ -23030,7 +21818,7 @@ class FaxApi {
|
|
|
23030
21818
|
/**
|
|
23031
21819
|
* Fax service.
|
|
23032
21820
|
* @module purecloud-platform-client-v2/api/FaxApi
|
|
23033
|
-
* @version
|
|
21821
|
+
* @version 126.1.0
|
|
23034
21822
|
*/
|
|
23035
21823
|
|
|
23036
21824
|
/**
|
|
@@ -23201,7 +21989,7 @@ class FlowsApi {
|
|
|
23201
21989
|
/**
|
|
23202
21990
|
* Flows service.
|
|
23203
21991
|
* @module purecloud-platform-client-v2/api/FlowsApi
|
|
23204
|
-
* @version
|
|
21992
|
+
* @version 126.1.0
|
|
23205
21993
|
*/
|
|
23206
21994
|
|
|
23207
21995
|
/**
|
|
@@ -23272,7 +22060,7 @@ class GamificationApi {
|
|
|
23272
22060
|
/**
|
|
23273
22061
|
* Gamification service.
|
|
23274
22062
|
* @module purecloud-platform-client-v2/api/GamificationApi
|
|
23275
|
-
* @version
|
|
22063
|
+
* @version 126.1.0
|
|
23276
22064
|
*/
|
|
23277
22065
|
|
|
23278
22066
|
/**
|
|
@@ -24578,7 +23366,7 @@ class GeneralDataProtectionRegulationApi {
|
|
|
24578
23366
|
/**
|
|
24579
23367
|
* GeneralDataProtectionRegulation service.
|
|
24580
23368
|
* @module purecloud-platform-client-v2/api/GeneralDataProtectionRegulationApi
|
|
24581
|
-
* @version
|
|
23369
|
+
* @version 126.1.0
|
|
24582
23370
|
*/
|
|
24583
23371
|
|
|
24584
23372
|
/**
|
|
@@ -24708,7 +23496,7 @@ class GeolocationApi {
|
|
|
24708
23496
|
/**
|
|
24709
23497
|
* Geolocation service.
|
|
24710
23498
|
* @module purecloud-platform-client-v2/api/GeolocationApi
|
|
24711
|
-
* @version
|
|
23499
|
+
* @version 126.1.0
|
|
24712
23500
|
*/
|
|
24713
23501
|
|
|
24714
23502
|
/**
|
|
@@ -24839,7 +23627,7 @@ class GreetingsApi {
|
|
|
24839
23627
|
/**
|
|
24840
23628
|
* Greetings service.
|
|
24841
23629
|
* @module purecloud-platform-client-v2/api/GreetingsApi
|
|
24842
|
-
* @version
|
|
23630
|
+
* @version 126.1.0
|
|
24843
23631
|
*/
|
|
24844
23632
|
|
|
24845
23633
|
/**
|
|
@@ -25294,7 +24082,7 @@ class GroupsApi {
|
|
|
25294
24082
|
/**
|
|
25295
24083
|
* Groups service.
|
|
25296
24084
|
* @module purecloud-platform-client-v2/api/GroupsApi
|
|
25297
|
-
* @version
|
|
24085
|
+
* @version 126.1.0
|
|
25298
24086
|
*/
|
|
25299
24087
|
|
|
25300
24088
|
/**
|
|
@@ -25699,7 +24487,7 @@ class IdentityProviderApi {
|
|
|
25699
24487
|
/**
|
|
25700
24488
|
* IdentityProvider service.
|
|
25701
24489
|
* @module purecloud-platform-client-v2/api/IdentityProviderApi
|
|
25702
|
-
* @version
|
|
24490
|
+
* @version 126.1.0
|
|
25703
24491
|
*/
|
|
25704
24492
|
|
|
25705
24493
|
/**
|
|
@@ -26455,7 +25243,7 @@ class IntegrationsApi {
|
|
|
26455
25243
|
/**
|
|
26456
25244
|
* Integrations service.
|
|
26457
25245
|
* @module purecloud-platform-client-v2/api/IntegrationsApi
|
|
26458
|
-
* @version
|
|
25246
|
+
* @version 126.1.0
|
|
26459
25247
|
*/
|
|
26460
25248
|
|
|
26461
25249
|
/**
|
|
@@ -28101,7 +26889,7 @@ class JourneyApi {
|
|
|
28101
26889
|
/**
|
|
28102
26890
|
* Journey service.
|
|
28103
26891
|
* @module purecloud-platform-client-v2/api/JourneyApi
|
|
28104
|
-
* @version
|
|
26892
|
+
* @version 126.1.0
|
|
28105
26893
|
*/
|
|
28106
26894
|
|
|
28107
26895
|
/**
|
|
@@ -28812,7 +27600,7 @@ class KnowledgeApi {
|
|
|
28812
27600
|
/**
|
|
28813
27601
|
* Knowledge service.
|
|
28814
27602
|
* @module purecloud-platform-client-v2/api/KnowledgeApi
|
|
28815
|
-
* @version
|
|
27603
|
+
* @version 126.1.0
|
|
28816
27604
|
*/
|
|
28817
27605
|
|
|
28818
27606
|
/**
|
|
@@ -29712,7 +28500,7 @@ class LanguageUnderstandingApi {
|
|
|
29712
28500
|
/**
|
|
29713
28501
|
* LanguageUnderstanding service.
|
|
29714
28502
|
* @module purecloud-platform-client-v2/api/LanguageUnderstandingApi
|
|
29715
|
-
* @version
|
|
28503
|
+
* @version 126.1.0
|
|
29716
28504
|
*/
|
|
29717
28505
|
|
|
29718
28506
|
/**
|
|
@@ -30278,7 +29066,7 @@ class LanguageUnderstandingApi {
|
|
|
30278
29066
|
}
|
|
30279
29067
|
|
|
30280
29068
|
/**
|
|
30281
|
-
* Save information for the draft
|
|
29069
|
+
* Save information for the draft. Either topic draft or intent draft should be sent.
|
|
30282
29070
|
*
|
|
30283
29071
|
* @param {String} minerId Miner ID
|
|
30284
29072
|
* @param {String} draftId Draft ID
|
|
@@ -30522,7 +29310,7 @@ class LanguageUnderstandingApi {
|
|
|
30522
29310
|
}
|
|
30523
29311
|
|
|
30524
29312
|
/**
|
|
30525
|
-
* Start the mining process. Specify date range pair with mediaType
|
|
29313
|
+
* Start the mining process. Specify date range pair with mediaType, queueIds, participantType for mining data from Genesys Cloud. Specify only uploadKey for mining through an external file.
|
|
30526
29314
|
*
|
|
30527
29315
|
* @param {String} minerId Miner ID
|
|
30528
29316
|
* @param {Object} opts Optional parameters
|
|
@@ -30616,7 +29404,7 @@ class LanguagesApi {
|
|
|
30616
29404
|
/**
|
|
30617
29405
|
* Languages service.
|
|
30618
29406
|
* @module purecloud-platform-client-v2/api/LanguagesApi
|
|
30619
|
-
* @version
|
|
29407
|
+
* @version 126.1.0
|
|
30620
29408
|
*/
|
|
30621
29409
|
|
|
30622
29410
|
/**
|
|
@@ -30884,7 +29672,7 @@ class LearningApi {
|
|
|
30884
29672
|
/**
|
|
30885
29673
|
* Learning service.
|
|
30886
29674
|
* @module purecloud-platform-client-v2/api/LearningApi
|
|
30887
|
-
* @version
|
|
29675
|
+
* @version 126.1.0
|
|
30888
29676
|
*/
|
|
30889
29677
|
|
|
30890
29678
|
/**
|
|
@@ -31475,7 +30263,7 @@ class LicenseApi {
|
|
|
31475
30263
|
/**
|
|
31476
30264
|
* License service.
|
|
31477
30265
|
* @module purecloud-platform-client-v2/api/LicenseApi
|
|
31478
|
-
* @version
|
|
30266
|
+
* @version 126.1.0
|
|
31479
30267
|
*/
|
|
31480
30268
|
|
|
31481
30269
|
/**
|
|
@@ -31713,7 +30501,7 @@ class LocationsApi {
|
|
|
31713
30501
|
/**
|
|
31714
30502
|
* Locations service.
|
|
31715
30503
|
* @module purecloud-platform-client-v2/api/LocationsApi
|
|
31716
|
-
* @version
|
|
30504
|
+
* @version 126.1.0
|
|
31717
30505
|
*/
|
|
31718
30506
|
|
|
31719
30507
|
/**
|
|
@@ -31949,7 +30737,7 @@ class MobileDevicesApi {
|
|
|
31949
30737
|
/**
|
|
31950
30738
|
* MobileDevices service.
|
|
31951
30739
|
* @module purecloud-platform-client-v2/api/MobileDevicesApi
|
|
31952
|
-
* @version
|
|
30740
|
+
* @version 126.1.0
|
|
31953
30741
|
*/
|
|
31954
30742
|
|
|
31955
30743
|
/**
|
|
@@ -32100,7 +30888,7 @@ class NotificationsApi {
|
|
|
32100
30888
|
/**
|
|
32101
30889
|
* Notifications service.
|
|
32102
30890
|
* @module purecloud-platform-client-v2/api/NotificationsApi
|
|
32103
|
-
* @version
|
|
30891
|
+
* @version 126.1.0
|
|
32104
30892
|
*/
|
|
32105
30893
|
|
|
32106
30894
|
/**
|
|
@@ -32325,7 +31113,7 @@ class OAuthApi {
|
|
|
32325
31113
|
/**
|
|
32326
31114
|
* OAuth service.
|
|
32327
31115
|
* @module purecloud-platform-client-v2/api/OAuthApi
|
|
32328
|
-
* @version
|
|
31116
|
+
* @version 126.1.0
|
|
32329
31117
|
*/
|
|
32330
31118
|
|
|
32331
31119
|
/**
|
|
@@ -32683,7 +31471,7 @@ class ObjectsApi {
|
|
|
32683
31471
|
/**
|
|
32684
31472
|
* Objects service.
|
|
32685
31473
|
* @module purecloud-platform-client-v2/api/ObjectsApi
|
|
32686
|
-
* @version
|
|
31474
|
+
* @version 126.1.0
|
|
32687
31475
|
*/
|
|
32688
31476
|
|
|
32689
31477
|
/**
|
|
@@ -32954,7 +31742,7 @@ class OrganizationApi {
|
|
|
32954
31742
|
/**
|
|
32955
31743
|
* Organization service.
|
|
32956
31744
|
* @module purecloud-platform-client-v2/api/OrganizationApi
|
|
32957
|
-
* @version
|
|
31745
|
+
* @version 126.1.0
|
|
32958
31746
|
*/
|
|
32959
31747
|
|
|
32960
31748
|
/**
|
|
@@ -33357,7 +32145,7 @@ class OrganizationAuthorizationApi {
|
|
|
33357
32145
|
/**
|
|
33358
32146
|
* OrganizationAuthorization service.
|
|
33359
32147
|
* @module purecloud-platform-client-v2/api/OrganizationAuthorizationApi
|
|
33360
|
-
* @version
|
|
32148
|
+
* @version 126.1.0
|
|
33361
32149
|
*/
|
|
33362
32150
|
|
|
33363
32151
|
/**
|
|
@@ -33397,6 +32185,36 @@ class OrganizationAuthorizationApi {
|
|
|
33397
32185
|
);
|
|
33398
32186
|
}
|
|
33399
32187
|
|
|
32188
|
+
/**
|
|
32189
|
+
* Deletes cloned user
|
|
32190
|
+
*
|
|
32191
|
+
* @param {String} trusteeOrgId Trustee Organization Id
|
|
32192
|
+
* @param {String} trusteeUserId Id of the cloned user to delete
|
|
32193
|
+
*/
|
|
32194
|
+
deleteOrgauthorizationTrusteeCloneduser(trusteeOrgId, trusteeUserId) {
|
|
32195
|
+
// verify the required parameter 'trusteeOrgId' is set
|
|
32196
|
+
if (trusteeOrgId === undefined || trusteeOrgId === null) {
|
|
32197
|
+
throw 'Missing the required parameter "trusteeOrgId" when calling deleteOrgauthorizationTrusteeCloneduser';
|
|
32198
|
+
}
|
|
32199
|
+
// verify the required parameter 'trusteeUserId' is set
|
|
32200
|
+
if (trusteeUserId === undefined || trusteeUserId === null) {
|
|
32201
|
+
throw 'Missing the required parameter "trusteeUserId" when calling deleteOrgauthorizationTrusteeCloneduser';
|
|
32202
|
+
}
|
|
32203
|
+
|
|
32204
|
+
return this.apiClient.callApi(
|
|
32205
|
+
'/api/v2/orgauthorization/trustees/{trusteeOrgId}/clonedusers/{trusteeUserId}',
|
|
32206
|
+
'DELETE',
|
|
32207
|
+
{ 'trusteeOrgId': trusteeOrgId,'trusteeUserId': trusteeUserId },
|
|
32208
|
+
{ },
|
|
32209
|
+
{ },
|
|
32210
|
+
{ },
|
|
32211
|
+
null,
|
|
32212
|
+
['PureCloud OAuth'],
|
|
32213
|
+
['application/json'],
|
|
32214
|
+
['application/json']
|
|
32215
|
+
);
|
|
32216
|
+
}
|
|
32217
|
+
|
|
33400
32218
|
/**
|
|
33401
32219
|
* Delete Trustee User
|
|
33402
32220
|
*
|
|
@@ -33482,6 +32300,36 @@ class OrganizationAuthorizationApi {
|
|
|
33482
32300
|
);
|
|
33483
32301
|
}
|
|
33484
32302
|
|
|
32303
|
+
/**
|
|
32304
|
+
* Delete Cloned User
|
|
32305
|
+
*
|
|
32306
|
+
* @param {String} trustorOrgId Trustor Organization Id
|
|
32307
|
+
* @param {String} trusteeUserId Trustee User Id
|
|
32308
|
+
*/
|
|
32309
|
+
deleteOrgauthorizationTrustorCloneduser(trustorOrgId, trusteeUserId) {
|
|
32310
|
+
// verify the required parameter 'trustorOrgId' is set
|
|
32311
|
+
if (trustorOrgId === undefined || trustorOrgId === null) {
|
|
32312
|
+
throw 'Missing the required parameter "trustorOrgId" when calling deleteOrgauthorizationTrustorCloneduser';
|
|
32313
|
+
}
|
|
32314
|
+
// verify the required parameter 'trusteeUserId' is set
|
|
32315
|
+
if (trusteeUserId === undefined || trusteeUserId === null) {
|
|
32316
|
+
throw 'Missing the required parameter "trusteeUserId" when calling deleteOrgauthorizationTrustorCloneduser';
|
|
32317
|
+
}
|
|
32318
|
+
|
|
32319
|
+
return this.apiClient.callApi(
|
|
32320
|
+
'/api/v2/orgauthorization/trustors/{trustorOrgId}/clonedusers/{trusteeUserId}',
|
|
32321
|
+
'DELETE',
|
|
32322
|
+
{ 'trustorOrgId': trustorOrgId,'trusteeUserId': trusteeUserId },
|
|
32323
|
+
{ },
|
|
32324
|
+
{ },
|
|
32325
|
+
{ },
|
|
32326
|
+
null,
|
|
32327
|
+
['PureCloud OAuth'],
|
|
32328
|
+
['application/json'],
|
|
32329
|
+
['application/json']
|
|
32330
|
+
);
|
|
32331
|
+
}
|
|
32332
|
+
|
|
33485
32333
|
/**
|
|
33486
32334
|
* Delete Trustee User
|
|
33487
32335
|
*
|
|
@@ -33562,6 +32410,31 @@ class OrganizationAuthorizationApi {
|
|
|
33562
32410
|
);
|
|
33563
32411
|
}
|
|
33564
32412
|
|
|
32413
|
+
/**
|
|
32414
|
+
* The list of cloned users from the trustee organization (i.e. users with a native user record).
|
|
32415
|
+
* There can be no more than 5 cloned users per organization, so results are represented as simple list and not paged
|
|
32416
|
+
* @param {String} trusteeOrgId Trustee Organization Id
|
|
32417
|
+
*/
|
|
32418
|
+
getOrgauthorizationTrusteeClonedusers(trusteeOrgId) {
|
|
32419
|
+
// verify the required parameter 'trusteeOrgId' is set
|
|
32420
|
+
if (trusteeOrgId === undefined || trusteeOrgId === null) {
|
|
32421
|
+
throw 'Missing the required parameter "trusteeOrgId" when calling getOrgauthorizationTrusteeClonedusers';
|
|
32422
|
+
}
|
|
32423
|
+
|
|
32424
|
+
return this.apiClient.callApi(
|
|
32425
|
+
'/api/v2/orgauthorization/trustees/{trusteeOrgId}/clonedusers',
|
|
32426
|
+
'GET',
|
|
32427
|
+
{ 'trusteeOrgId': trusteeOrgId },
|
|
32428
|
+
{ },
|
|
32429
|
+
{ },
|
|
32430
|
+
{ },
|
|
32431
|
+
null,
|
|
32432
|
+
['PureCloud OAuth'],
|
|
32433
|
+
['application/json'],
|
|
32434
|
+
['application/json']
|
|
32435
|
+
);
|
|
32436
|
+
}
|
|
32437
|
+
|
|
33565
32438
|
/**
|
|
33566
32439
|
* Get Trustee User
|
|
33567
32440
|
*
|
|
@@ -33677,6 +32550,26 @@ class OrganizationAuthorizationApi {
|
|
|
33677
32550
|
);
|
|
33678
32551
|
}
|
|
33679
32552
|
|
|
32553
|
+
/**
|
|
32554
|
+
* Get organization authorization trust with Customer Care, if one exists.
|
|
32555
|
+
*
|
|
32556
|
+
*/
|
|
32557
|
+
getOrgauthorizationTrusteesDefault() {
|
|
32558
|
+
|
|
32559
|
+
return this.apiClient.callApi(
|
|
32560
|
+
'/api/v2/orgauthorization/trustees/default',
|
|
32561
|
+
'GET',
|
|
32562
|
+
{ },
|
|
32563
|
+
{ },
|
|
32564
|
+
{ },
|
|
32565
|
+
{ },
|
|
32566
|
+
null,
|
|
32567
|
+
['PureCloud OAuth'],
|
|
32568
|
+
['application/json'],
|
|
32569
|
+
['application/json']
|
|
32570
|
+
);
|
|
32571
|
+
}
|
|
32572
|
+
|
|
33680
32573
|
/**
|
|
33681
32574
|
* Get Org Trust
|
|
33682
32575
|
*
|
|
@@ -33702,6 +32595,61 @@ class OrganizationAuthorizationApi {
|
|
|
33702
32595
|
);
|
|
33703
32596
|
}
|
|
33704
32597
|
|
|
32598
|
+
/**
|
|
32599
|
+
* Get Cloned User
|
|
32600
|
+
*
|
|
32601
|
+
* @param {String} trustorOrgId Trustor Organization Id
|
|
32602
|
+
* @param {String} trusteeUserId Trustee User Id
|
|
32603
|
+
*/
|
|
32604
|
+
getOrgauthorizationTrustorCloneduser(trustorOrgId, trusteeUserId) {
|
|
32605
|
+
// verify the required parameter 'trustorOrgId' is set
|
|
32606
|
+
if (trustorOrgId === undefined || trustorOrgId === null) {
|
|
32607
|
+
throw 'Missing the required parameter "trustorOrgId" when calling getOrgauthorizationTrustorCloneduser';
|
|
32608
|
+
}
|
|
32609
|
+
// verify the required parameter 'trusteeUserId' is set
|
|
32610
|
+
if (trusteeUserId === undefined || trusteeUserId === null) {
|
|
32611
|
+
throw 'Missing the required parameter "trusteeUserId" when calling getOrgauthorizationTrustorCloneduser';
|
|
32612
|
+
}
|
|
32613
|
+
|
|
32614
|
+
return this.apiClient.callApi(
|
|
32615
|
+
'/api/v2/orgauthorization/trustors/{trustorOrgId}/clonedusers/{trusteeUserId}',
|
|
32616
|
+
'GET',
|
|
32617
|
+
{ 'trustorOrgId': trustorOrgId,'trusteeUserId': trusteeUserId },
|
|
32618
|
+
{ },
|
|
32619
|
+
{ },
|
|
32620
|
+
{ },
|
|
32621
|
+
null,
|
|
32622
|
+
['PureCloud OAuth'],
|
|
32623
|
+
['application/json'],
|
|
32624
|
+
['application/json']
|
|
32625
|
+
);
|
|
32626
|
+
}
|
|
32627
|
+
|
|
32628
|
+
/**
|
|
32629
|
+
* The list of cloned users in the trustor organization (i.e. users with a native user record).
|
|
32630
|
+
*
|
|
32631
|
+
* @param {String} trustorOrgId Trustor Organization Id
|
|
32632
|
+
*/
|
|
32633
|
+
getOrgauthorizationTrustorClonedusers(trustorOrgId) {
|
|
32634
|
+
// verify the required parameter 'trustorOrgId' is set
|
|
32635
|
+
if (trustorOrgId === undefined || trustorOrgId === null) {
|
|
32636
|
+
throw 'Missing the required parameter "trustorOrgId" when calling getOrgauthorizationTrustorClonedusers';
|
|
32637
|
+
}
|
|
32638
|
+
|
|
32639
|
+
return this.apiClient.callApi(
|
|
32640
|
+
'/api/v2/orgauthorization/trustors/{trustorOrgId}/clonedusers',
|
|
32641
|
+
'GET',
|
|
32642
|
+
{ 'trustorOrgId': trustorOrgId },
|
|
32643
|
+
{ },
|
|
32644
|
+
{ },
|
|
32645
|
+
{ },
|
|
32646
|
+
null,
|
|
32647
|
+
['PureCloud OAuth'],
|
|
32648
|
+
['application/json'],
|
|
32649
|
+
['application/json']
|
|
32650
|
+
);
|
|
32651
|
+
}
|
|
32652
|
+
|
|
33705
32653
|
/**
|
|
33706
32654
|
* Get Trustee User
|
|
33707
32655
|
*
|
|
@@ -33899,6 +32847,31 @@ class OrganizationAuthorizationApi {
|
|
|
33899
32847
|
);
|
|
33900
32848
|
}
|
|
33901
32849
|
|
|
32850
|
+
/**
|
|
32851
|
+
* Create a new organization authorization trust with Customer Care. This is required to grant your regional Customer Care organization access to your organization.
|
|
32852
|
+
*
|
|
32853
|
+
* @param {Object} opts Optional parameters
|
|
32854
|
+
* @param {Boolean} opts.assignDefaultRole Assign Admin role to default pairing with Customer Care
|
|
32855
|
+
* @param {Boolean} opts.autoExpire Automatically expire pairing after 30 days
|
|
32856
|
+
*/
|
|
32857
|
+
postOrgauthorizationTrusteesDefault(opts) {
|
|
32858
|
+
opts = opts || {};
|
|
32859
|
+
|
|
32860
|
+
|
|
32861
|
+
return this.apiClient.callApi(
|
|
32862
|
+
'/api/v2/orgauthorization/trustees/default',
|
|
32863
|
+
'POST',
|
|
32864
|
+
{ },
|
|
32865
|
+
{ 'assignDefaultRole': opts['assignDefaultRole'],'autoExpire': opts['autoExpire'] },
|
|
32866
|
+
{ },
|
|
32867
|
+
{ },
|
|
32868
|
+
null,
|
|
32869
|
+
['PureCloud OAuth'],
|
|
32870
|
+
['application/json'],
|
|
32871
|
+
['application/json']
|
|
32872
|
+
);
|
|
32873
|
+
}
|
|
32874
|
+
|
|
33902
32875
|
/**
|
|
33903
32876
|
* Get Org Trustor Audits
|
|
33904
32877
|
*
|
|
@@ -34031,6 +33004,36 @@ class OrganizationAuthorizationApi {
|
|
|
34031
33004
|
);
|
|
34032
33005
|
}
|
|
34033
33006
|
|
|
33007
|
+
/**
|
|
33008
|
+
* Creates a clone of the trustee user in the trustor org.
|
|
33009
|
+
*
|
|
33010
|
+
* @param {String} trustorOrgId Trustor Organization Id
|
|
33011
|
+
* @param {String} trusteeUserId Trustee User Id
|
|
33012
|
+
*/
|
|
33013
|
+
putOrgauthorizationTrustorCloneduser(trustorOrgId, trusteeUserId) {
|
|
33014
|
+
// verify the required parameter 'trustorOrgId' is set
|
|
33015
|
+
if (trustorOrgId === undefined || trustorOrgId === null) {
|
|
33016
|
+
throw 'Missing the required parameter "trustorOrgId" when calling putOrgauthorizationTrustorCloneduser';
|
|
33017
|
+
}
|
|
33018
|
+
// verify the required parameter 'trusteeUserId' is set
|
|
33019
|
+
if (trusteeUserId === undefined || trusteeUserId === null) {
|
|
33020
|
+
throw 'Missing the required parameter "trusteeUserId" when calling putOrgauthorizationTrustorCloneduser';
|
|
33021
|
+
}
|
|
33022
|
+
|
|
33023
|
+
return this.apiClient.callApi(
|
|
33024
|
+
'/api/v2/orgauthorization/trustors/{trustorOrgId}/clonedusers/{trusteeUserId}',
|
|
33025
|
+
'PUT',
|
|
33026
|
+
{ 'trustorOrgId': trustorOrgId,'trusteeUserId': trusteeUserId },
|
|
33027
|
+
{ },
|
|
33028
|
+
{ },
|
|
33029
|
+
{ },
|
|
33030
|
+
null,
|
|
33031
|
+
['PureCloud OAuth'],
|
|
33032
|
+
['application/json'],
|
|
33033
|
+
['application/json']
|
|
33034
|
+
);
|
|
33035
|
+
}
|
|
33036
|
+
|
|
34034
33037
|
/**
|
|
34035
33038
|
* Add a Trustee user to the trust.
|
|
34036
33039
|
*
|
|
@@ -34067,7 +33070,7 @@ class OutboundApi {
|
|
|
34067
33070
|
/**
|
|
34068
33071
|
* Outbound service.
|
|
34069
33072
|
* @module purecloud-platform-client-v2/api/OutboundApi
|
|
34070
|
-
* @version
|
|
33073
|
+
* @version 126.1.0
|
|
34071
33074
|
*/
|
|
34072
33075
|
|
|
34073
33076
|
/**
|
|
@@ -37093,7 +36096,7 @@ class PresenceApi {
|
|
|
37093
36096
|
/**
|
|
37094
36097
|
* Presence service.
|
|
37095
36098
|
* @module purecloud-platform-client-v2/api/PresenceApi
|
|
37096
|
-
* @version
|
|
36099
|
+
* @version 126.1.0
|
|
37097
36100
|
*/
|
|
37098
36101
|
|
|
37099
36102
|
/**
|
|
@@ -37465,7 +36468,7 @@ class QualityApi {
|
|
|
37465
36468
|
/**
|
|
37466
36469
|
* Quality service.
|
|
37467
36470
|
* @module purecloud-platform-client-v2/api/QualityApi
|
|
37468
|
-
* @version
|
|
36471
|
+
* @version 126.1.0
|
|
37469
36472
|
*/
|
|
37470
36473
|
|
|
37471
36474
|
/**
|
|
@@ -37838,7 +36841,7 @@ class QualityApi {
|
|
|
37838
36841
|
|
|
37839
36842
|
/**
|
|
37840
36843
|
* Queries Evaluations and returns a paged list
|
|
37841
|
-
* Query params must include one of conversationId, evaluatorUserId, or agentUserId
|
|
36844
|
+
* Query params must include one of conversationId, evaluatorUserId, or agentUserId. When querying by agentUserId (and not conversationId or evaluatorUserId), the results are sorted by release date. Evaluations set to 'Never Release' are omitted in this case. When querying by evaluatorUserId or conversationId (including when combined with agentUserId), the results are sorted by assigned date.
|
|
37842
36845
|
* @param {Object} opts Optional parameters
|
|
37843
36846
|
* @param {Number} opts.pageSize The total page size requested (default to 25)
|
|
37844
36847
|
* @param {Number} opts.pageNumber The page number requested (default to 1)
|
|
@@ -38993,7 +37996,7 @@ class RecordingApi {
|
|
|
38993
37996
|
/**
|
|
38994
37997
|
* Recording service.
|
|
38995
37998
|
* @module purecloud-platform-client-v2/api/RecordingApi
|
|
38996
|
-
* @version
|
|
37999
|
+
* @version 126.1.0
|
|
38997
38000
|
*/
|
|
38998
38001
|
|
|
38999
38002
|
/**
|
|
@@ -40512,7 +39515,7 @@ class ResponseManagementApi {
|
|
|
40512
39515
|
/**
|
|
40513
39516
|
* ResponseManagement service.
|
|
40514
39517
|
* @module purecloud-platform-client-v2/api/ResponseManagementApi
|
|
40515
|
-
* @version
|
|
39518
|
+
* @version 126.1.0
|
|
40516
39519
|
*/
|
|
40517
39520
|
|
|
40518
39521
|
/**
|
|
@@ -40837,7 +39840,7 @@ class RoutingApi {
|
|
|
40837
39840
|
/**
|
|
40838
39841
|
* Routing service.
|
|
40839
39842
|
* @module purecloud-platform-client-v2/api/RoutingApi
|
|
40840
|
-
* @version
|
|
39843
|
+
* @version 126.1.0
|
|
40841
39844
|
*/
|
|
40842
39845
|
|
|
40843
39846
|
/**
|
|
@@ -41150,8 +40153,12 @@ class RoutingApi {
|
|
|
41150
40153
|
* Delete a phone number provisioned for SMS.
|
|
41151
40154
|
*
|
|
41152
40155
|
* @param {String} addressId Address ID
|
|
40156
|
+
* @param {Object} opts Optional parameters
|
|
40157
|
+
* @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)
|
|
41153
40158
|
*/
|
|
41154
|
-
deleteRoutingSmsPhonenumber(addressId) {
|
|
40159
|
+
deleteRoutingSmsPhonenumber(addressId, opts) {
|
|
40160
|
+
opts = opts || {};
|
|
40161
|
+
|
|
41155
40162
|
// verify the required parameter 'addressId' is set
|
|
41156
40163
|
if (addressId === undefined || addressId === null) {
|
|
41157
40164
|
throw 'Missing the required parameter "addressId" when calling deleteRoutingSmsPhonenumber';
|
|
@@ -41161,7 +40168,7 @@ class RoutingApi {
|
|
|
41161
40168
|
'/api/v2/routing/sms/phonenumbers/{addressId}',
|
|
41162
40169
|
'DELETE',
|
|
41163
40170
|
{ 'addressId': addressId },
|
|
41164
|
-
{
|
|
40171
|
+
{ 'async': opts['async'] },
|
|
41165
40172
|
{ },
|
|
41166
40173
|
{ },
|
|
41167
40174
|
null,
|
|
@@ -41989,12 +40996,11 @@ class RoutingApi {
|
|
|
41989
40996
|
}
|
|
41990
40997
|
|
|
41991
40998
|
/**
|
|
41992
|
-
* Get a paged listing of simplified queue objects. Can be used to get a digest of all queues in an organization.
|
|
40999
|
+
* Get a paged listing of simplified queue objects, sorted by name. Can be used to get a digest of all queues in an organization.
|
|
41993
41000
|
*
|
|
41994
41001
|
* @param {Object} opts Optional parameters
|
|
41995
41002
|
* @param {Number} opts.pageSize Page size [max value is 500] (default to 25)
|
|
41996
41003
|
* @param {Number} opts.pageNumber Page number (default to 1)
|
|
41997
|
-
* @param {Object} opts.sortBy Sort by (default to name)
|
|
41998
41004
|
* @param {Object} opts.sortOrder Sort order (default to asc)
|
|
41999
41005
|
*/
|
|
42000
41006
|
getRoutingQueuesDivisionviewsAll(opts) {
|
|
@@ -42005,7 +41011,7 @@ class RoutingApi {
|
|
|
42005
41011
|
'/api/v2/routing/queues/divisionviews/all',
|
|
42006
41012
|
'GET',
|
|
42007
41013
|
{ },
|
|
42008
|
-
{ 'pageSize': opts['pageSize'],'pageNumber': opts['pageNumber'],'
|
|
41014
|
+
{ 'pageSize': opts['pageSize'],'pageNumber': opts['pageNumber'],'sortOrder': opts['sortOrder'] },
|
|
42009
41015
|
{ },
|
|
42010
41016
|
{ },
|
|
42011
41017
|
null,
|
|
@@ -42489,7 +41495,7 @@ class RoutingApi {
|
|
|
42489
41495
|
|
|
42490
41496
|
/**
|
|
42491
41497
|
* Update attributes of an in-queue conversation
|
|
42492
|
-
* Returns an object indicating the updated values of all settable attributes. Supported attributes:
|
|
41498
|
+
* Returns an object indicating the updated values of all settable attributes. Supported attributes: skillIds, languageId, and priority.
|
|
42493
41499
|
* @param {String} conversationId Conversation ID
|
|
42494
41500
|
* @param {Object} body Conversation Attributes
|
|
42495
41501
|
*/
|
|
@@ -43308,8 +42314,12 @@ class RoutingApi {
|
|
|
43308
42314
|
* Provision a phone number for SMS
|
|
43309
42315
|
*
|
|
43310
42316
|
* @param {Object} body SmsPhoneNumber
|
|
42317
|
+
* @param {Object} opts Optional parameters
|
|
42318
|
+
* @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)
|
|
43311
42319
|
*/
|
|
43312
|
-
postRoutingSmsPhonenumbers(body) {
|
|
42320
|
+
postRoutingSmsPhonenumbers(body, opts) {
|
|
42321
|
+
opts = opts || {};
|
|
42322
|
+
|
|
43313
42323
|
// verify the required parameter 'body' is set
|
|
43314
42324
|
if (body === undefined || body === null) {
|
|
43315
42325
|
throw 'Missing the required parameter "body" when calling postRoutingSmsPhonenumbers';
|
|
@@ -43319,7 +42329,7 @@ class RoutingApi {
|
|
|
43319
42329
|
'/api/v2/routing/sms/phonenumbers',
|
|
43320
42330
|
'POST',
|
|
43321
42331
|
{ },
|
|
43322
|
-
{
|
|
42332
|
+
{ 'async': opts['async'] },
|
|
43323
42333
|
{ },
|
|
43324
42334
|
{ },
|
|
43325
42335
|
body,
|
|
@@ -43564,8 +42574,12 @@ class RoutingApi {
|
|
|
43564
42574
|
*
|
|
43565
42575
|
* @param {String} addressId Address ID
|
|
43566
42576
|
* @param {Object} body SmsPhoneNumber
|
|
42577
|
+
* @param {Object} opts Optional parameters
|
|
42578
|
+
* @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)
|
|
43567
42579
|
*/
|
|
43568
|
-
putRoutingSmsPhonenumber(addressId, body) {
|
|
42580
|
+
putRoutingSmsPhonenumber(addressId, body, opts) {
|
|
42581
|
+
opts = opts || {};
|
|
42582
|
+
|
|
43569
42583
|
// verify the required parameter 'addressId' is set
|
|
43570
42584
|
if (addressId === undefined || addressId === null) {
|
|
43571
42585
|
throw 'Missing the required parameter "addressId" when calling putRoutingSmsPhonenumber';
|
|
@@ -43579,7 +42593,7 @@ class RoutingApi {
|
|
|
43579
42593
|
'/api/v2/routing/sms/phonenumbers/{addressId}',
|
|
43580
42594
|
'PUT',
|
|
43581
42595
|
{ 'addressId': addressId },
|
|
43582
|
-
{
|
|
42596
|
+
{ 'async': opts['async'] },
|
|
43583
42597
|
{ },
|
|
43584
42598
|
{ },
|
|
43585
42599
|
body,
|
|
@@ -43745,7 +42759,7 @@ class SCIMApi {
|
|
|
43745
42759
|
/**
|
|
43746
42760
|
* SCIM service.
|
|
43747
42761
|
* @module purecloud-platform-client-v2/api/SCIMApi
|
|
43748
|
-
* @version
|
|
42762
|
+
* @version 126.1.0
|
|
43749
42763
|
*/
|
|
43750
42764
|
|
|
43751
42765
|
/**
|
|
@@ -44622,7 +43636,7 @@ class ScriptsApi {
|
|
|
44622
43636
|
/**
|
|
44623
43637
|
* Scripts service.
|
|
44624
43638
|
* @module purecloud-platform-client-v2/api/ScriptsApi
|
|
44625
|
-
* @version
|
|
43639
|
+
* @version 126.1.0
|
|
44626
43640
|
*/
|
|
44627
43641
|
|
|
44628
43642
|
/**
|
|
@@ -44975,7 +43989,7 @@ class SearchApi {
|
|
|
44975
43989
|
/**
|
|
44976
43990
|
* Search service.
|
|
44977
43991
|
* @module purecloud-platform-client-v2/api/SearchApi
|
|
44978
|
-
* @version
|
|
43992
|
+
* @version 126.1.0
|
|
44979
43993
|
*/
|
|
44980
43994
|
|
|
44981
43995
|
/**
|
|
@@ -45510,7 +44524,7 @@ class SpeechTextAnalyticsApi {
|
|
|
45510
44524
|
/**
|
|
45511
44525
|
* SpeechTextAnalytics service.
|
|
45512
44526
|
* @module purecloud-platform-client-v2/api/SpeechTextAnalyticsApi
|
|
45513
|
-
* @version
|
|
44527
|
+
* @version 126.1.0
|
|
45514
44528
|
*/
|
|
45515
44529
|
|
|
45516
44530
|
/**
|
|
@@ -45554,6 +44568,51 @@ class SpeechTextAnalyticsApi {
|
|
|
45554
44568
|
);
|
|
45555
44569
|
}
|
|
45556
44570
|
|
|
44571
|
+
/**
|
|
44572
|
+
* Delete All Speech & Text Analytics SentimentFeedback
|
|
44573
|
+
*
|
|
44574
|
+
*/
|
|
44575
|
+
deleteSpeechandtextanalyticsSentimentfeedback() {
|
|
44576
|
+
|
|
44577
|
+
return this.apiClient.callApi(
|
|
44578
|
+
'/api/v2/speechandtextanalytics/sentimentfeedback',
|
|
44579
|
+
'DELETE',
|
|
44580
|
+
{ },
|
|
44581
|
+
{ },
|
|
44582
|
+
{ },
|
|
44583
|
+
{ },
|
|
44584
|
+
null,
|
|
44585
|
+
['PureCloud OAuth'],
|
|
44586
|
+
['application/json'],
|
|
44587
|
+
['application/json']
|
|
44588
|
+
);
|
|
44589
|
+
}
|
|
44590
|
+
|
|
44591
|
+
/**
|
|
44592
|
+
* Delete a Speech & Text Analytics SentimentFeedback by Id
|
|
44593
|
+
*
|
|
44594
|
+
* @param {String} sentimentFeedbackId The Id of the SentimentFeedback
|
|
44595
|
+
*/
|
|
44596
|
+
deleteSpeechandtextanalyticsSentimentfeedbackSentimentFeedbackId(sentimentFeedbackId) {
|
|
44597
|
+
// verify the required parameter 'sentimentFeedbackId' is set
|
|
44598
|
+
if (sentimentFeedbackId === undefined || sentimentFeedbackId === null) {
|
|
44599
|
+
throw 'Missing the required parameter "sentimentFeedbackId" when calling deleteSpeechandtextanalyticsSentimentfeedbackSentimentFeedbackId';
|
|
44600
|
+
}
|
|
44601
|
+
|
|
44602
|
+
return this.apiClient.callApi(
|
|
44603
|
+
'/api/v2/speechandtextanalytics/sentimentfeedback/{sentimentFeedbackId}',
|
|
44604
|
+
'DELETE',
|
|
44605
|
+
{ 'sentimentFeedbackId': sentimentFeedbackId },
|
|
44606
|
+
{ },
|
|
44607
|
+
{ },
|
|
44608
|
+
{ },
|
|
44609
|
+
null,
|
|
44610
|
+
['PureCloud OAuth'],
|
|
44611
|
+
['application/json'],
|
|
44612
|
+
['application/json']
|
|
44613
|
+
);
|
|
44614
|
+
}
|
|
44615
|
+
|
|
45557
44616
|
/**
|
|
45558
44617
|
* Delete a Speech & Text Analytics topic by id
|
|
45559
44618
|
*
|
|
@@ -45636,7 +44695,7 @@ class SpeechTextAnalyticsApi {
|
|
|
45636
44695
|
|
|
45637
44696
|
/**
|
|
45638
44697
|
* Get list of supported Speech & Text Analytics dialects
|
|
45639
|
-
*
|
|
44698
|
+
* This api has been deprecated. Use api/v2/topics/dialects instead
|
|
45640
44699
|
*/
|
|
45641
44700
|
getSpeechandtextanalyticsDialects() {
|
|
45642
44701
|
|
|
@@ -45829,6 +44888,30 @@ class SpeechTextAnalyticsApi {
|
|
|
45829
44888
|
);
|
|
45830
44889
|
}
|
|
45831
44890
|
|
|
44891
|
+
/**
|
|
44892
|
+
* Get the list of Speech & Text Analytics SentimentFeedback
|
|
44893
|
+
*
|
|
44894
|
+
* @param {Object} opts Optional parameters
|
|
44895
|
+
* @param {String} opts.dialect The key for filter the listing by dialect, dialect format is {language}-{country} where language follows ISO 639-1 standard and country follows ISO 3166-1 alpha 2 standard
|
|
44896
|
+
*/
|
|
44897
|
+
getSpeechandtextanalyticsSentimentfeedback(opts) {
|
|
44898
|
+
opts = opts || {};
|
|
44899
|
+
|
|
44900
|
+
|
|
44901
|
+
return this.apiClient.callApi(
|
|
44902
|
+
'/api/v2/speechandtextanalytics/sentimentfeedback',
|
|
44903
|
+
'GET',
|
|
44904
|
+
{ },
|
|
44905
|
+
{ 'dialect': opts['dialect'] },
|
|
44906
|
+
{ },
|
|
44907
|
+
{ },
|
|
44908
|
+
null,
|
|
44909
|
+
['PureCloud OAuth'],
|
|
44910
|
+
['application/json'],
|
|
44911
|
+
['application/json']
|
|
44912
|
+
);
|
|
44913
|
+
}
|
|
44914
|
+
|
|
45832
44915
|
/**
|
|
45833
44916
|
* Get Speech And Text Analytics Settings
|
|
45834
44917
|
*
|
|
@@ -46073,6 +45156,31 @@ class SpeechTextAnalyticsApi {
|
|
|
46073
45156
|
);
|
|
46074
45157
|
}
|
|
46075
45158
|
|
|
45159
|
+
/**
|
|
45160
|
+
* Create a Speech & Text Analytics SentimentFeedback
|
|
45161
|
+
*
|
|
45162
|
+
* @param {Object} body The SentimentFeedback to create
|
|
45163
|
+
*/
|
|
45164
|
+
postSpeechandtextanalyticsSentimentfeedback(body) {
|
|
45165
|
+
// verify the required parameter 'body' is set
|
|
45166
|
+
if (body === undefined || body === null) {
|
|
45167
|
+
throw 'Missing the required parameter "body" when calling postSpeechandtextanalyticsSentimentfeedback';
|
|
45168
|
+
}
|
|
45169
|
+
|
|
45170
|
+
return this.apiClient.callApi(
|
|
45171
|
+
'/api/v2/speechandtextanalytics/sentimentfeedback',
|
|
45172
|
+
'POST',
|
|
45173
|
+
{ },
|
|
45174
|
+
{ },
|
|
45175
|
+
{ },
|
|
45176
|
+
{ },
|
|
45177
|
+
body,
|
|
45178
|
+
['PureCloud OAuth'],
|
|
45179
|
+
['application/json'],
|
|
45180
|
+
['application/json']
|
|
45181
|
+
);
|
|
45182
|
+
}
|
|
45183
|
+
|
|
46076
45184
|
/**
|
|
46077
45185
|
* Create new Speech & Text Analytics topic
|
|
46078
45186
|
*
|
|
@@ -46269,7 +45377,7 @@ class StationsApi {
|
|
|
46269
45377
|
/**
|
|
46270
45378
|
* Stations service.
|
|
46271
45379
|
* @module purecloud-platform-client-v2/api/StationsApi
|
|
46272
|
-
* @version
|
|
45380
|
+
* @version 126.1.0
|
|
46273
45381
|
*/
|
|
46274
45382
|
|
|
46275
45383
|
/**
|
|
@@ -46416,7 +45524,7 @@ class SuggestApi {
|
|
|
46416
45524
|
/**
|
|
46417
45525
|
* Suggest service.
|
|
46418
45526
|
* @module purecloud-platform-client-v2/api/SuggestApi
|
|
46419
|
-
* @version
|
|
45527
|
+
* @version 126.1.0
|
|
46420
45528
|
*/
|
|
46421
45529
|
|
|
46422
45530
|
/**
|
|
@@ -46555,7 +45663,7 @@ class TelephonyApi {
|
|
|
46555
45663
|
/**
|
|
46556
45664
|
* Telephony service.
|
|
46557
45665
|
* @module purecloud-platform-client-v2/api/TelephonyApi
|
|
46558
|
-
* @version
|
|
45666
|
+
* @version 126.1.0
|
|
46559
45667
|
*/
|
|
46560
45668
|
|
|
46561
45669
|
/**
|
|
@@ -46663,7 +45771,7 @@ class TelephonyProvidersEdgeApi {
|
|
|
46663
45771
|
/**
|
|
46664
45772
|
* TelephonyProvidersEdge service.
|
|
46665
45773
|
* @module purecloud-platform-client-v2/api/TelephonyProvidersEdgeApi
|
|
46666
|
-
* @version
|
|
45774
|
+
* @version 126.1.0
|
|
46667
45775
|
*/
|
|
46668
45776
|
|
|
46669
45777
|
/**
|
|
@@ -50276,7 +49384,7 @@ class TextbotsApi {
|
|
|
50276
49384
|
/**
|
|
50277
49385
|
* Textbots service.
|
|
50278
49386
|
* @module purecloud-platform-client-v2/api/TextbotsApi
|
|
50279
|
-
* @version
|
|
49387
|
+
* @version 126.1.0
|
|
50280
49388
|
*/
|
|
50281
49389
|
|
|
50282
49390
|
/**
|
|
@@ -50377,7 +49485,7 @@ class TokensApi {
|
|
|
50377
49485
|
/**
|
|
50378
49486
|
* Tokens service.
|
|
50379
49487
|
* @module purecloud-platform-client-v2/api/TokensApi
|
|
50380
|
-
* @version
|
|
49488
|
+
* @version 126.1.0
|
|
50381
49489
|
*/
|
|
50382
49490
|
|
|
50383
49491
|
/**
|
|
@@ -50483,7 +49591,7 @@ class UploadsApi {
|
|
|
50483
49591
|
/**
|
|
50484
49592
|
* Uploads service.
|
|
50485
49593
|
* @module purecloud-platform-client-v2/api/UploadsApi
|
|
50486
|
-
* @version
|
|
49594
|
+
* @version 126.1.0
|
|
50487
49595
|
*/
|
|
50488
49596
|
|
|
50489
49597
|
/**
|
|
@@ -50659,7 +49767,7 @@ class UsageApi {
|
|
|
50659
49767
|
/**
|
|
50660
49768
|
* Usage service.
|
|
50661
49769
|
* @module purecloud-platform-client-v2/api/UsageApi
|
|
50662
|
-
* @version
|
|
49770
|
+
* @version 126.1.0
|
|
50663
49771
|
*/
|
|
50664
49772
|
|
|
50665
49773
|
/**
|
|
@@ -50730,7 +49838,7 @@ class UserRecordingsApi {
|
|
|
50730
49838
|
/**
|
|
50731
49839
|
* UserRecordings service.
|
|
50732
49840
|
* @module purecloud-platform-client-v2/api/UserRecordingsApi
|
|
50733
|
-
* @version
|
|
49841
|
+
* @version 126.1.0
|
|
50734
49842
|
*/
|
|
50735
49843
|
|
|
50736
49844
|
/**
|
|
@@ -50914,7 +50022,7 @@ class UsersApi {
|
|
|
50914
50022
|
/**
|
|
50915
50023
|
* Users service.
|
|
50916
50024
|
* @module purecloud-platform-client-v2/api/UsersApi
|
|
50917
|
-
* @version
|
|
50025
|
+
* @version 126.1.0
|
|
50918
50026
|
*/
|
|
50919
50027
|
|
|
50920
50028
|
/**
|
|
@@ -53216,7 +52324,7 @@ class UtilitiesApi {
|
|
|
53216
52324
|
/**
|
|
53217
52325
|
* Utilities service.
|
|
53218
52326
|
* @module purecloud-platform-client-v2/api/UtilitiesApi
|
|
53219
|
-
* @version
|
|
52327
|
+
* @version 126.1.0
|
|
53220
52328
|
*/
|
|
53221
52329
|
|
|
53222
52330
|
/**
|
|
@@ -53327,7 +52435,7 @@ class VoicemailApi {
|
|
|
53327
52435
|
/**
|
|
53328
52436
|
* Voicemail service.
|
|
53329
52437
|
* @module purecloud-platform-client-v2/api/VoicemailApi
|
|
53330
|
-
* @version
|
|
52438
|
+
* @version 126.1.0
|
|
53331
52439
|
*/
|
|
53332
52440
|
|
|
53333
52441
|
/**
|
|
@@ -53958,13 +53066,43 @@ class VoicemailApi {
|
|
|
53958
53066
|
);
|
|
53959
53067
|
}
|
|
53960
53068
|
|
|
53069
|
+
/**
|
|
53070
|
+
* Update a user's voicemail policy
|
|
53071
|
+
*
|
|
53072
|
+
* @param {String} userId User ID
|
|
53073
|
+
* @param {Object} body The user's voicemail policy
|
|
53074
|
+
*/
|
|
53075
|
+
putVoicemailUserpolicy(userId, body) {
|
|
53076
|
+
// verify the required parameter 'userId' is set
|
|
53077
|
+
if (userId === undefined || userId === null) {
|
|
53078
|
+
throw 'Missing the required parameter "userId" when calling putVoicemailUserpolicy';
|
|
53079
|
+
}
|
|
53080
|
+
// verify the required parameter 'body' is set
|
|
53081
|
+
if (body === undefined || body === null) {
|
|
53082
|
+
throw 'Missing the required parameter "body" when calling putVoicemailUserpolicy';
|
|
53083
|
+
}
|
|
53084
|
+
|
|
53085
|
+
return this.apiClient.callApi(
|
|
53086
|
+
'/api/v2/voicemail/userpolicies/{userId}',
|
|
53087
|
+
'PUT',
|
|
53088
|
+
{ 'userId': userId },
|
|
53089
|
+
{ },
|
|
53090
|
+
{ },
|
|
53091
|
+
{ },
|
|
53092
|
+
body,
|
|
53093
|
+
['PureCloud OAuth'],
|
|
53094
|
+
['application/json'],
|
|
53095
|
+
['application/json']
|
|
53096
|
+
);
|
|
53097
|
+
}
|
|
53098
|
+
|
|
53961
53099
|
}
|
|
53962
53100
|
|
|
53963
53101
|
class WebChatApi {
|
|
53964
53102
|
/**
|
|
53965
53103
|
* WebChat service.
|
|
53966
53104
|
* @module purecloud-platform-client-v2/api/WebChatApi
|
|
53967
|
-
* @version
|
|
53105
|
+
* @version 126.1.0
|
|
53968
53106
|
*/
|
|
53969
53107
|
|
|
53970
53108
|
/**
|
|
@@ -54508,7 +53646,7 @@ class WebDeploymentsApi {
|
|
|
54508
53646
|
/**
|
|
54509
53647
|
* WebDeployments service.
|
|
54510
53648
|
* @module purecloud-platform-client-v2/api/WebDeploymentsApi
|
|
54511
|
-
* @version
|
|
53649
|
+
* @version 126.1.0
|
|
54512
53650
|
*/
|
|
54513
53651
|
|
|
54514
53652
|
/**
|
|
@@ -54863,7 +54001,7 @@ class WebMessagingApi {
|
|
|
54863
54001
|
/**
|
|
54864
54002
|
* WebMessaging service.
|
|
54865
54003
|
* @module purecloud-platform-client-v2/api/WebMessagingApi
|
|
54866
|
-
* @version
|
|
54004
|
+
* @version 126.1.0
|
|
54867
54005
|
*/
|
|
54868
54006
|
|
|
54869
54007
|
/**
|
|
@@ -54909,7 +54047,7 @@ class WidgetsApi {
|
|
|
54909
54047
|
/**
|
|
54910
54048
|
* Widgets service.
|
|
54911
54049
|
* @module purecloud-platform-client-v2/api/WidgetsApi
|
|
54912
|
-
* @version
|
|
54050
|
+
* @version 126.1.0
|
|
54913
54051
|
*/
|
|
54914
54052
|
|
|
54915
54053
|
/**
|
|
@@ -55055,7 +54193,7 @@ class WorkforceManagementApi {
|
|
|
55055
54193
|
/**
|
|
55056
54194
|
* WorkforceManagement service.
|
|
55057
54195
|
* @module purecloud-platform-client-v2/api/WorkforceManagementApi
|
|
55058
|
-
* @version
|
|
54196
|
+
* @version 126.1.0
|
|
55059
54197
|
*/
|
|
55060
54198
|
|
|
55061
54199
|
/**
|
|
@@ -55330,6 +54468,66 @@ class WorkforceManagementApi {
|
|
|
55330
54468
|
);
|
|
55331
54469
|
}
|
|
55332
54470
|
|
|
54471
|
+
/**
|
|
54472
|
+
* Deletes a time off limit object
|
|
54473
|
+
*
|
|
54474
|
+
* @param {String} managementUnitId The management unit ID of the management unit.
|
|
54475
|
+
* @param {String} timeOffLimitId The ID of the time off limit object to delete
|
|
54476
|
+
*/
|
|
54477
|
+
deleteWorkforcemanagementManagementunitTimeofflimit(managementUnitId, timeOffLimitId) {
|
|
54478
|
+
// verify the required parameter 'managementUnitId' is set
|
|
54479
|
+
if (managementUnitId === undefined || managementUnitId === null) {
|
|
54480
|
+
throw 'Missing the required parameter "managementUnitId" when calling deleteWorkforcemanagementManagementunitTimeofflimit';
|
|
54481
|
+
}
|
|
54482
|
+
// verify the required parameter 'timeOffLimitId' is set
|
|
54483
|
+
if (timeOffLimitId === undefined || timeOffLimitId === null) {
|
|
54484
|
+
throw 'Missing the required parameter "timeOffLimitId" when calling deleteWorkforcemanagementManagementunitTimeofflimit';
|
|
54485
|
+
}
|
|
54486
|
+
|
|
54487
|
+
return this.apiClient.callApi(
|
|
54488
|
+
'/api/v2/workforcemanagement/managementunits/{managementUnitId}/timeofflimits/{timeOffLimitId}',
|
|
54489
|
+
'DELETE',
|
|
54490
|
+
{ 'managementUnitId': managementUnitId,'timeOffLimitId': timeOffLimitId },
|
|
54491
|
+
{ },
|
|
54492
|
+
{ },
|
|
54493
|
+
{ },
|
|
54494
|
+
null,
|
|
54495
|
+
['PureCloud OAuth'],
|
|
54496
|
+
['application/json'],
|
|
54497
|
+
['application/json']
|
|
54498
|
+
);
|
|
54499
|
+
}
|
|
54500
|
+
|
|
54501
|
+
/**
|
|
54502
|
+
* Deletes a time off plan
|
|
54503
|
+
*
|
|
54504
|
+
* @param {String} managementUnitId The management unit ID.
|
|
54505
|
+
* @param {String} timeOffPlanId The ID of the time off plan to delete
|
|
54506
|
+
*/
|
|
54507
|
+
deleteWorkforcemanagementManagementunitTimeoffplan(managementUnitId, timeOffPlanId) {
|
|
54508
|
+
// verify the required parameter 'managementUnitId' is set
|
|
54509
|
+
if (managementUnitId === undefined || managementUnitId === null) {
|
|
54510
|
+
throw 'Missing the required parameter "managementUnitId" when calling deleteWorkforcemanagementManagementunitTimeoffplan';
|
|
54511
|
+
}
|
|
54512
|
+
// verify the required parameter 'timeOffPlanId' is set
|
|
54513
|
+
if (timeOffPlanId === undefined || timeOffPlanId === null) {
|
|
54514
|
+
throw 'Missing the required parameter "timeOffPlanId" when calling deleteWorkforcemanagementManagementunitTimeoffplan';
|
|
54515
|
+
}
|
|
54516
|
+
|
|
54517
|
+
return this.apiClient.callApi(
|
|
54518
|
+
'/api/v2/workforcemanagement/managementunits/{managementUnitId}/timeoffplans/{timeOffPlanId}',
|
|
54519
|
+
'DELETE',
|
|
54520
|
+
{ 'managementUnitId': managementUnitId,'timeOffPlanId': timeOffPlanId },
|
|
54521
|
+
{ },
|
|
54522
|
+
{ },
|
|
54523
|
+
{ },
|
|
54524
|
+
null,
|
|
54525
|
+
['PureCloud OAuth'],
|
|
54526
|
+
['application/json'],
|
|
54527
|
+
['application/json']
|
|
54528
|
+
);
|
|
54529
|
+
}
|
|
54530
|
+
|
|
55333
54531
|
/**
|
|
55334
54532
|
* Delete a work plan
|
|
55335
54533
|
*
|
|
@@ -56571,6 +55769,116 @@ class WorkforceManagementApi {
|
|
|
56571
55769
|
);
|
|
56572
55770
|
}
|
|
56573
55771
|
|
|
55772
|
+
/**
|
|
55773
|
+
* Gets a time off limit object
|
|
55774
|
+
* Returns properties of time off limit object, but not daily values.
|
|
55775
|
+
* @param {String} managementUnitId The management unit ID of the management unit.
|
|
55776
|
+
* @param {String} timeOffLimitId The ID of the time off limit to fetch
|
|
55777
|
+
*/
|
|
55778
|
+
getWorkforcemanagementManagementunitTimeofflimit(managementUnitId, timeOffLimitId) {
|
|
55779
|
+
// verify the required parameter 'managementUnitId' is set
|
|
55780
|
+
if (managementUnitId === undefined || managementUnitId === null) {
|
|
55781
|
+
throw 'Missing the required parameter "managementUnitId" when calling getWorkforcemanagementManagementunitTimeofflimit';
|
|
55782
|
+
}
|
|
55783
|
+
// verify the required parameter 'timeOffLimitId' is set
|
|
55784
|
+
if (timeOffLimitId === undefined || timeOffLimitId === null) {
|
|
55785
|
+
throw 'Missing the required parameter "timeOffLimitId" when calling getWorkforcemanagementManagementunitTimeofflimit';
|
|
55786
|
+
}
|
|
55787
|
+
|
|
55788
|
+
return this.apiClient.callApi(
|
|
55789
|
+
'/api/v2/workforcemanagement/managementunits/{managementUnitId}/timeofflimits/{timeOffLimitId}',
|
|
55790
|
+
'GET',
|
|
55791
|
+
{ 'managementUnitId': managementUnitId,'timeOffLimitId': timeOffLimitId },
|
|
55792
|
+
{ },
|
|
55793
|
+
{ },
|
|
55794
|
+
{ },
|
|
55795
|
+
null,
|
|
55796
|
+
['PureCloud OAuth'],
|
|
55797
|
+
['application/json'],
|
|
55798
|
+
['application/json']
|
|
55799
|
+
);
|
|
55800
|
+
}
|
|
55801
|
+
|
|
55802
|
+
/**
|
|
55803
|
+
* Gets a list of time off limit objects under management unit.
|
|
55804
|
+
* Currently only one time off limit object is allowed under management unit, so the list contains either 0 or 1 element.
|
|
55805
|
+
* @param {String} managementUnitId The management unit ID of the management unit.
|
|
55806
|
+
*/
|
|
55807
|
+
getWorkforcemanagementManagementunitTimeofflimits(managementUnitId) {
|
|
55808
|
+
// verify the required parameter 'managementUnitId' is set
|
|
55809
|
+
if (managementUnitId === undefined || managementUnitId === null) {
|
|
55810
|
+
throw 'Missing the required parameter "managementUnitId" when calling getWorkforcemanagementManagementunitTimeofflimits';
|
|
55811
|
+
}
|
|
55812
|
+
|
|
55813
|
+
return this.apiClient.callApi(
|
|
55814
|
+
'/api/v2/workforcemanagement/managementunits/{managementUnitId}/timeofflimits',
|
|
55815
|
+
'GET',
|
|
55816
|
+
{ 'managementUnitId': managementUnitId },
|
|
55817
|
+
{ },
|
|
55818
|
+
{ },
|
|
55819
|
+
{ },
|
|
55820
|
+
null,
|
|
55821
|
+
['PureCloud OAuth'],
|
|
55822
|
+
['application/json'],
|
|
55823
|
+
['application/json']
|
|
55824
|
+
);
|
|
55825
|
+
}
|
|
55826
|
+
|
|
55827
|
+
/**
|
|
55828
|
+
* Gets a time off plan
|
|
55829
|
+
*
|
|
55830
|
+
* @param {String} managementUnitId The management unit ID.
|
|
55831
|
+
* @param {String} timeOffPlanId The ID of the time off plan to fetch
|
|
55832
|
+
*/
|
|
55833
|
+
getWorkforcemanagementManagementunitTimeoffplan(managementUnitId, timeOffPlanId) {
|
|
55834
|
+
// verify the required parameter 'managementUnitId' is set
|
|
55835
|
+
if (managementUnitId === undefined || managementUnitId === null) {
|
|
55836
|
+
throw 'Missing the required parameter "managementUnitId" when calling getWorkforcemanagementManagementunitTimeoffplan';
|
|
55837
|
+
}
|
|
55838
|
+
// verify the required parameter 'timeOffPlanId' is set
|
|
55839
|
+
if (timeOffPlanId === undefined || timeOffPlanId === null) {
|
|
55840
|
+
throw 'Missing the required parameter "timeOffPlanId" when calling getWorkforcemanagementManagementunitTimeoffplan';
|
|
55841
|
+
}
|
|
55842
|
+
|
|
55843
|
+
return this.apiClient.callApi(
|
|
55844
|
+
'/api/v2/workforcemanagement/managementunits/{managementUnitId}/timeoffplans/{timeOffPlanId}',
|
|
55845
|
+
'GET',
|
|
55846
|
+
{ 'managementUnitId': managementUnitId,'timeOffPlanId': timeOffPlanId },
|
|
55847
|
+
{ },
|
|
55848
|
+
{ },
|
|
55849
|
+
{ },
|
|
55850
|
+
null,
|
|
55851
|
+
['PureCloud OAuth'],
|
|
55852
|
+
['application/json'],
|
|
55853
|
+
['application/json']
|
|
55854
|
+
);
|
|
55855
|
+
}
|
|
55856
|
+
|
|
55857
|
+
/**
|
|
55858
|
+
* Gets a list of time off plans
|
|
55859
|
+
*
|
|
55860
|
+
* @param {String} managementUnitId The management unit ID.
|
|
55861
|
+
*/
|
|
55862
|
+
getWorkforcemanagementManagementunitTimeoffplans(managementUnitId) {
|
|
55863
|
+
// verify the required parameter 'managementUnitId' is set
|
|
55864
|
+
if (managementUnitId === undefined || managementUnitId === null) {
|
|
55865
|
+
throw 'Missing the required parameter "managementUnitId" when calling getWorkforcemanagementManagementunitTimeoffplans';
|
|
55866
|
+
}
|
|
55867
|
+
|
|
55868
|
+
return this.apiClient.callApi(
|
|
55869
|
+
'/api/v2/workforcemanagement/managementunits/{managementUnitId}/timeoffplans',
|
|
55870
|
+
'GET',
|
|
55871
|
+
{ 'managementUnitId': managementUnitId },
|
|
55872
|
+
{ },
|
|
55873
|
+
{ },
|
|
55874
|
+
{ },
|
|
55875
|
+
null,
|
|
55876
|
+
['PureCloud OAuth'],
|
|
55877
|
+
['application/json'],
|
|
55878
|
+
['application/json']
|
|
55879
|
+
);
|
|
55880
|
+
}
|
|
55881
|
+
|
|
56574
55882
|
/**
|
|
56575
55883
|
* Get a time off request
|
|
56576
55884
|
*
|
|
@@ -56606,6 +55914,41 @@ class WorkforceManagementApi {
|
|
|
56606
55914
|
);
|
|
56607
55915
|
}
|
|
56608
55916
|
|
|
55917
|
+
/**
|
|
55918
|
+
* Retrieves time off limit, allocated and waitlisted values according to specific time off request
|
|
55919
|
+
*
|
|
55920
|
+
* @param {String} managementUnitId The management unit ID of the management unit.
|
|
55921
|
+
* @param {String} userId The userId to whom the time off request applies.
|
|
55922
|
+
* @param {String} timeOffRequestId The ID of the time off request, which dates and activityCodeId determine limit values to retrieve
|
|
55923
|
+
*/
|
|
55924
|
+
getWorkforcemanagementManagementunitUserTimeoffrequestTimeofflimits(managementUnitId, userId, timeOffRequestId) {
|
|
55925
|
+
// verify the required parameter 'managementUnitId' is set
|
|
55926
|
+
if (managementUnitId === undefined || managementUnitId === null) {
|
|
55927
|
+
throw 'Missing the required parameter "managementUnitId" when calling getWorkforcemanagementManagementunitUserTimeoffrequestTimeofflimits';
|
|
55928
|
+
}
|
|
55929
|
+
// verify the required parameter 'userId' is set
|
|
55930
|
+
if (userId === undefined || userId === null) {
|
|
55931
|
+
throw 'Missing the required parameter "userId" when calling getWorkforcemanagementManagementunitUserTimeoffrequestTimeofflimits';
|
|
55932
|
+
}
|
|
55933
|
+
// verify the required parameter 'timeOffRequestId' is set
|
|
55934
|
+
if (timeOffRequestId === undefined || timeOffRequestId === null) {
|
|
55935
|
+
throw 'Missing the required parameter "timeOffRequestId" when calling getWorkforcemanagementManagementunitUserTimeoffrequestTimeofflimits';
|
|
55936
|
+
}
|
|
55937
|
+
|
|
55938
|
+
return this.apiClient.callApi(
|
|
55939
|
+
'/api/v2/workforcemanagement/managementunits/{managementUnitId}/users/{userId}/timeoffrequests/{timeOffRequestId}/timeofflimits',
|
|
55940
|
+
'GET',
|
|
55941
|
+
{ 'managementUnitId': managementUnitId,'userId': userId,'timeOffRequestId': timeOffRequestId },
|
|
55942
|
+
{ },
|
|
55943
|
+
{ },
|
|
55944
|
+
{ },
|
|
55945
|
+
null,
|
|
55946
|
+
['PureCloud OAuth'],
|
|
55947
|
+
['application/json'],
|
|
55948
|
+
['application/json']
|
|
55949
|
+
);
|
|
55950
|
+
}
|
|
55951
|
+
|
|
56609
55952
|
/**
|
|
56610
55953
|
* Get a list of time off requests for a given user
|
|
56611
55954
|
*
|
|
@@ -57039,6 +56382,31 @@ class WorkforceManagementApi {
|
|
|
57039
56382
|
);
|
|
57040
56383
|
}
|
|
57041
56384
|
|
|
56385
|
+
/**
|
|
56386
|
+
* Get the daily waitlist positions of a time off request for the current user
|
|
56387
|
+
*
|
|
56388
|
+
* @param {String} timeOffRequestId Time Off Request Id
|
|
56389
|
+
*/
|
|
56390
|
+
getWorkforcemanagementTimeoffrequestWaitlistpositions(timeOffRequestId) {
|
|
56391
|
+
// verify the required parameter 'timeOffRequestId' is set
|
|
56392
|
+
if (timeOffRequestId === undefined || timeOffRequestId === null) {
|
|
56393
|
+
throw 'Missing the required parameter "timeOffRequestId" when calling getWorkforcemanagementTimeoffrequestWaitlistpositions';
|
|
56394
|
+
}
|
|
56395
|
+
|
|
56396
|
+
return this.apiClient.callApi(
|
|
56397
|
+
'/api/v2/workforcemanagement/timeoffrequests/{timeOffRequestId}/waitlistpositions',
|
|
56398
|
+
'GET',
|
|
56399
|
+
{ 'timeOffRequestId': timeOffRequestId },
|
|
56400
|
+
{ },
|
|
56401
|
+
{ },
|
|
56402
|
+
{ },
|
|
56403
|
+
null,
|
|
56404
|
+
['PureCloud OAuth'],
|
|
56405
|
+
['application/json'],
|
|
56406
|
+
['application/json']
|
|
56407
|
+
);
|
|
56408
|
+
}
|
|
56409
|
+
|
|
57042
56410
|
/**
|
|
57043
56411
|
* Get a list of time off requests for the current user
|
|
57044
56412
|
*
|
|
@@ -57257,6 +56625,74 @@ class WorkforceManagementApi {
|
|
|
57257
56625
|
);
|
|
57258
56626
|
}
|
|
57259
56627
|
|
|
56628
|
+
/**
|
|
56629
|
+
* Updates a time off limit object.
|
|
56630
|
+
* Updates time off limit object properties, but not daily values.
|
|
56631
|
+
* @param {String} managementUnitId The management unit ID of the management unit.
|
|
56632
|
+
* @param {String} timeOffLimitId The id of time off limit object to update
|
|
56633
|
+
* @param {Object} opts Optional parameters
|
|
56634
|
+
* @param {Object} opts.body body
|
|
56635
|
+
*/
|
|
56636
|
+
patchWorkforcemanagementManagementunitTimeofflimit(managementUnitId, timeOffLimitId, opts) {
|
|
56637
|
+
opts = opts || {};
|
|
56638
|
+
|
|
56639
|
+
// verify the required parameter 'managementUnitId' is set
|
|
56640
|
+
if (managementUnitId === undefined || managementUnitId === null) {
|
|
56641
|
+
throw 'Missing the required parameter "managementUnitId" when calling patchWorkforcemanagementManagementunitTimeofflimit';
|
|
56642
|
+
}
|
|
56643
|
+
// verify the required parameter 'timeOffLimitId' is set
|
|
56644
|
+
if (timeOffLimitId === undefined || timeOffLimitId === null) {
|
|
56645
|
+
throw 'Missing the required parameter "timeOffLimitId" when calling patchWorkforcemanagementManagementunitTimeofflimit';
|
|
56646
|
+
}
|
|
56647
|
+
|
|
56648
|
+
return this.apiClient.callApi(
|
|
56649
|
+
'/api/v2/workforcemanagement/managementunits/{managementUnitId}/timeofflimits/{timeOffLimitId}',
|
|
56650
|
+
'PATCH',
|
|
56651
|
+
{ 'managementUnitId': managementUnitId,'timeOffLimitId': timeOffLimitId },
|
|
56652
|
+
{ },
|
|
56653
|
+
{ },
|
|
56654
|
+
{ },
|
|
56655
|
+
opts['body'],
|
|
56656
|
+
['PureCloud OAuth'],
|
|
56657
|
+
['application/json'],
|
|
56658
|
+
['application/json']
|
|
56659
|
+
);
|
|
56660
|
+
}
|
|
56661
|
+
|
|
56662
|
+
/**
|
|
56663
|
+
* Updates a time off plan
|
|
56664
|
+
*
|
|
56665
|
+
* @param {String} managementUnitId The management unit ID.
|
|
56666
|
+
* @param {String} timeOffPlanId The ID of the time off plan to update
|
|
56667
|
+
* @param {Object} opts Optional parameters
|
|
56668
|
+
* @param {Object} opts.body body
|
|
56669
|
+
*/
|
|
56670
|
+
patchWorkforcemanagementManagementunitTimeoffplan(managementUnitId, timeOffPlanId, opts) {
|
|
56671
|
+
opts = opts || {};
|
|
56672
|
+
|
|
56673
|
+
// verify the required parameter 'managementUnitId' is set
|
|
56674
|
+
if (managementUnitId === undefined || managementUnitId === null) {
|
|
56675
|
+
throw 'Missing the required parameter "managementUnitId" when calling patchWorkforcemanagementManagementunitTimeoffplan';
|
|
56676
|
+
}
|
|
56677
|
+
// verify the required parameter 'timeOffPlanId' is set
|
|
56678
|
+
if (timeOffPlanId === undefined || timeOffPlanId === null) {
|
|
56679
|
+
throw 'Missing the required parameter "timeOffPlanId" when calling patchWorkforcemanagementManagementunitTimeoffplan';
|
|
56680
|
+
}
|
|
56681
|
+
|
|
56682
|
+
return this.apiClient.callApi(
|
|
56683
|
+
'/api/v2/workforcemanagement/managementunits/{managementUnitId}/timeoffplans/{timeOffPlanId}',
|
|
56684
|
+
'PATCH',
|
|
56685
|
+
{ 'managementUnitId': managementUnitId,'timeOffPlanId': timeOffPlanId },
|
|
56686
|
+
{ },
|
|
56687
|
+
{ },
|
|
56688
|
+
{ },
|
|
56689
|
+
opts['body'],
|
|
56690
|
+
['PureCloud OAuth'],
|
|
56691
|
+
['application/json'],
|
|
56692
|
+
['application/json']
|
|
56693
|
+
);
|
|
56694
|
+
}
|
|
56695
|
+
|
|
57260
56696
|
/**
|
|
57261
56697
|
* Update a time off request
|
|
57262
56698
|
*
|
|
@@ -58118,6 +57554,93 @@ class WorkforceManagementApi {
|
|
|
58118
57554
|
);
|
|
58119
57555
|
}
|
|
58120
57556
|
|
|
57557
|
+
/**
|
|
57558
|
+
* Creates a new time off limit object under management unit.
|
|
57559
|
+
* Only one limit object is allowed under management unit, so an attempt to create second object will fail.
|
|
57560
|
+
* @param {String} managementUnitId The management unit ID of the management unit.
|
|
57561
|
+
* @param {Object} opts Optional parameters
|
|
57562
|
+
* @param {Object} opts.body body
|
|
57563
|
+
*/
|
|
57564
|
+
postWorkforcemanagementManagementunitTimeofflimits(managementUnitId, opts) {
|
|
57565
|
+
opts = opts || {};
|
|
57566
|
+
|
|
57567
|
+
// verify the required parameter 'managementUnitId' is set
|
|
57568
|
+
if (managementUnitId === undefined || managementUnitId === null) {
|
|
57569
|
+
throw 'Missing the required parameter "managementUnitId" when calling postWorkforcemanagementManagementunitTimeofflimits';
|
|
57570
|
+
}
|
|
57571
|
+
|
|
57572
|
+
return this.apiClient.callApi(
|
|
57573
|
+
'/api/v2/workforcemanagement/managementunits/{managementUnitId}/timeofflimits',
|
|
57574
|
+
'POST',
|
|
57575
|
+
{ 'managementUnitId': managementUnitId },
|
|
57576
|
+
{ },
|
|
57577
|
+
{ },
|
|
57578
|
+
{ },
|
|
57579
|
+
opts['body'],
|
|
57580
|
+
['PureCloud OAuth'],
|
|
57581
|
+
['application/json'],
|
|
57582
|
+
['application/json']
|
|
57583
|
+
);
|
|
57584
|
+
}
|
|
57585
|
+
|
|
57586
|
+
/**
|
|
57587
|
+
* Retrieves time off limit related values based on a given set of filters.
|
|
57588
|
+
*
|
|
57589
|
+
* @param {String} managementUnitId The management unit ID of the management unit.
|
|
57590
|
+
* @param {Object} opts Optional parameters
|
|
57591
|
+
* @param {Object} opts.body body
|
|
57592
|
+
*/
|
|
57593
|
+
postWorkforcemanagementManagementunitTimeofflimitsValuesQuery(managementUnitId, opts) {
|
|
57594
|
+
opts = opts || {};
|
|
57595
|
+
|
|
57596
|
+
// verify the required parameter 'managementUnitId' is set
|
|
57597
|
+
if (managementUnitId === undefined || managementUnitId === null) {
|
|
57598
|
+
throw 'Missing the required parameter "managementUnitId" when calling postWorkforcemanagementManagementunitTimeofflimitsValuesQuery';
|
|
57599
|
+
}
|
|
57600
|
+
|
|
57601
|
+
return this.apiClient.callApi(
|
|
57602
|
+
'/api/v2/workforcemanagement/managementunits/{managementUnitId}/timeofflimits/values/query',
|
|
57603
|
+
'POST',
|
|
57604
|
+
{ 'managementUnitId': managementUnitId },
|
|
57605
|
+
{ },
|
|
57606
|
+
{ },
|
|
57607
|
+
{ },
|
|
57608
|
+
opts['body'],
|
|
57609
|
+
['PureCloud OAuth'],
|
|
57610
|
+
['application/json'],
|
|
57611
|
+
['application/json']
|
|
57612
|
+
);
|
|
57613
|
+
}
|
|
57614
|
+
|
|
57615
|
+
/**
|
|
57616
|
+
* Creates a new time off plan
|
|
57617
|
+
*
|
|
57618
|
+
* @param {String} managementUnitId The management unit ID.
|
|
57619
|
+
* @param {Object} opts Optional parameters
|
|
57620
|
+
* @param {Object} opts.body body
|
|
57621
|
+
*/
|
|
57622
|
+
postWorkforcemanagementManagementunitTimeoffplans(managementUnitId, opts) {
|
|
57623
|
+
opts = opts || {};
|
|
57624
|
+
|
|
57625
|
+
// verify the required parameter 'managementUnitId' is set
|
|
57626
|
+
if (managementUnitId === undefined || managementUnitId === null) {
|
|
57627
|
+
throw 'Missing the required parameter "managementUnitId" when calling postWorkforcemanagementManagementunitTimeoffplans';
|
|
57628
|
+
}
|
|
57629
|
+
|
|
57630
|
+
return this.apiClient.callApi(
|
|
57631
|
+
'/api/v2/workforcemanagement/managementunits/{managementUnitId}/timeoffplans',
|
|
57632
|
+
'POST',
|
|
57633
|
+
{ 'managementUnitId': managementUnitId },
|
|
57634
|
+
{ },
|
|
57635
|
+
{ },
|
|
57636
|
+
{ },
|
|
57637
|
+
opts['body'],
|
|
57638
|
+
['PureCloud OAuth'],
|
|
57639
|
+
['application/json'],
|
|
57640
|
+
['application/json']
|
|
57641
|
+
);
|
|
57642
|
+
}
|
|
57643
|
+
|
|
58121
57644
|
/**
|
|
58122
57645
|
* Create a new time off request
|
|
58123
57646
|
*
|
|
@@ -58176,6 +57699,35 @@ class WorkforceManagementApi {
|
|
|
58176
57699
|
);
|
|
58177
57700
|
}
|
|
58178
57701
|
|
|
57702
|
+
/**
|
|
57703
|
+
* Retrieves daily waitlist position for a list of time off requests
|
|
57704
|
+
*
|
|
57705
|
+
* @param {String} managementUnitId The management unit ID of the management unit.
|
|
57706
|
+
* @param {Object} opts Optional parameters
|
|
57707
|
+
* @param {Object} opts.body body
|
|
57708
|
+
*/
|
|
57709
|
+
postWorkforcemanagementManagementunitTimeoffrequestsWaitlistpositionsQuery(managementUnitId, opts) {
|
|
57710
|
+
opts = opts || {};
|
|
57711
|
+
|
|
57712
|
+
// verify the required parameter 'managementUnitId' is set
|
|
57713
|
+
if (managementUnitId === undefined || managementUnitId === null) {
|
|
57714
|
+
throw 'Missing the required parameter "managementUnitId" when calling postWorkforcemanagementManagementunitTimeoffrequestsWaitlistpositionsQuery';
|
|
57715
|
+
}
|
|
57716
|
+
|
|
57717
|
+
return this.apiClient.callApi(
|
|
57718
|
+
'/api/v2/workforcemanagement/managementunits/{managementUnitId}/timeoffrequests/waitlistpositions/query',
|
|
57719
|
+
'POST',
|
|
57720
|
+
{ 'managementUnitId': managementUnitId },
|
|
57721
|
+
{ },
|
|
57722
|
+
{ },
|
|
57723
|
+
{ },
|
|
57724
|
+
opts['body'],
|
|
57725
|
+
['PureCloud OAuth'],
|
|
57726
|
+
['application/json'],
|
|
57727
|
+
['application/json']
|
|
57728
|
+
);
|
|
57729
|
+
}
|
|
57730
|
+
|
|
58179
57731
|
/**
|
|
58180
57732
|
* Matches a shift trade. This route can only be called by the receiving agent
|
|
58181
57733
|
*
|
|
@@ -58559,6 +58111,30 @@ class WorkforceManagementApi {
|
|
|
58559
58111
|
);
|
|
58560
58112
|
}
|
|
58561
58113
|
|
|
58114
|
+
/**
|
|
58115
|
+
* Queries available time off for the current user
|
|
58116
|
+
*
|
|
58117
|
+
* @param {Object} opts Optional parameters
|
|
58118
|
+
* @param {Object} opts.body body
|
|
58119
|
+
*/
|
|
58120
|
+
postWorkforcemanagementTimeofflimitsAvailableQuery(opts) {
|
|
58121
|
+
opts = opts || {};
|
|
58122
|
+
|
|
58123
|
+
|
|
58124
|
+
return this.apiClient.callApi(
|
|
58125
|
+
'/api/v2/workforcemanagement/timeofflimits/available/query',
|
|
58126
|
+
'POST',
|
|
58127
|
+
{ },
|
|
58128
|
+
{ },
|
|
58129
|
+
{ },
|
|
58130
|
+
{ },
|
|
58131
|
+
opts['body'],
|
|
58132
|
+
['PureCloud OAuth'],
|
|
58133
|
+
['application/json'],
|
|
58134
|
+
['application/json']
|
|
58135
|
+
);
|
|
58136
|
+
}
|
|
58137
|
+
|
|
58562
58138
|
/**
|
|
58563
58139
|
* Create a time off request for the current user
|
|
58564
58140
|
*
|
|
@@ -58583,6 +58159,40 @@ class WorkforceManagementApi {
|
|
|
58583
58159
|
);
|
|
58584
58160
|
}
|
|
58585
58161
|
|
|
58162
|
+
/**
|
|
58163
|
+
* Sets daily values for a date range of time off limit object
|
|
58164
|
+
* Note that only limit daily values can be set through API, allocated and waitlisted values are read-only for time off limit API
|
|
58165
|
+
* @param {String} managementUnitId The management unit ID of the management unit.
|
|
58166
|
+
* @param {String} timeOffLimitId The ID of the time off limit object to set values for
|
|
58167
|
+
* @param {Object} opts Optional parameters
|
|
58168
|
+
* @param {Object} opts.body body
|
|
58169
|
+
*/
|
|
58170
|
+
putWorkforcemanagementManagementunitTimeofflimitValues(managementUnitId, timeOffLimitId, opts) {
|
|
58171
|
+
opts = opts || {};
|
|
58172
|
+
|
|
58173
|
+
// verify the required parameter 'managementUnitId' is set
|
|
58174
|
+
if (managementUnitId === undefined || managementUnitId === null) {
|
|
58175
|
+
throw 'Missing the required parameter "managementUnitId" when calling putWorkforcemanagementManagementunitTimeofflimitValues';
|
|
58176
|
+
}
|
|
58177
|
+
// verify the required parameter 'timeOffLimitId' is set
|
|
58178
|
+
if (timeOffLimitId === undefined || timeOffLimitId === null) {
|
|
58179
|
+
throw 'Missing the required parameter "timeOffLimitId" when calling putWorkforcemanagementManagementunitTimeofflimitValues';
|
|
58180
|
+
}
|
|
58181
|
+
|
|
58182
|
+
return this.apiClient.callApi(
|
|
58183
|
+
'/api/v2/workforcemanagement/managementunits/{managementUnitId}/timeofflimits/{timeOffLimitId}/values',
|
|
58184
|
+
'PUT',
|
|
58185
|
+
{ 'managementUnitId': managementUnitId,'timeOffLimitId': timeOffLimitId },
|
|
58186
|
+
{ },
|
|
58187
|
+
{ },
|
|
58188
|
+
{ },
|
|
58189
|
+
opts['body'],
|
|
58190
|
+
['PureCloud OAuth'],
|
|
58191
|
+
['application/json'],
|
|
58192
|
+
['application/json']
|
|
58193
|
+
);
|
|
58194
|
+
}
|
|
58195
|
+
|
|
58586
58196
|
}
|
|
58587
58197
|
|
|
58588
58198
|
/**
|
|
@@ -58614,7 +58224,7 @@ class WorkforceManagementApi {
|
|
|
58614
58224
|
* </pre>
|
|
58615
58225
|
* </p>
|
|
58616
58226
|
* @module purecloud-platform-client-v2/index
|
|
58617
|
-
* @version
|
|
58227
|
+
* @version 126.1.0
|
|
58618
58228
|
*/
|
|
58619
58229
|
class platformClient {
|
|
58620
58230
|
constructor() {
|
|
@@ -58949,4 +58559,4 @@ var index = new platformClient();
|
|
|
58949
58559
|
module.exports = index;
|
|
58950
58560
|
|
|
58951
58561
|
}).call(this)}).call(this,typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : {},require("buffer").Buffer)
|
|
58952
|
-
},{"buffer":
|
|
58562
|
+
},{"buffer":2,"os":4,"path":5,"superagent":9}]},{},[]);
|