purecloud-platform-client-v2 124.0.0 → 127.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +2 -2
- package/dist/node/purecloud-platform-client-v2.js +936 -138
- package/dist/web-amd/purecloud-platform-client-v2.js +936 -138
- package/dist/web-amd/purecloud-platform-client-v2.min.js +1 -1
- package/dist/web-cjs/bundle.js +896 -142
- package/dist/web-cjs/purecloud-platform-client-v2.js +909 -1305
- package/dist/web-cjs/purecloud-platform-client-v2.min.js +1 -1
- package/index.d.ts +403 -36
- 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 +7 -3
- package/src/purecloud-platform-client-v2/api/ResponseManagementApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/RoutingApi.js +21 -10
- 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 +116 -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 +1 -1
- package/src/purecloud-platform-client-v2/api/WebChatApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/WebDeploymentsApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/WebMessagingApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/WidgetsApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/WorkforceManagementApi.js +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
|
-
|
|
7966
|
-
try {
|
|
7967
|
-
var configparser = new ConfigParser();
|
|
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 127.0.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': '127.0.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 127.0.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 127.0.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 127.0.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 127.0.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 127.0.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 127.0.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 127.0.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 127.0.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 127.0.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 127.0.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 127.0.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 127.0.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 127.0.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 127.0.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 127.0.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 127.0.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 127.0.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 127.0.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 127.0.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 127.0.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 127.0.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 127.0.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 127.0.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 127.0.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 127.0.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 127.0.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 127.0.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 127.0.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 127.0.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 127.0.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 127.0.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 127.0.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 127.0.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 127.0.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 127.0.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 127.0.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 127.0.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 127.0.0
|
|
38997
38000
|
*/
|
|
38998
38001
|
|
|
38999
38002
|
/**
|
|
@@ -39589,6 +38592,8 @@ class RecordingApi {
|
|
|
39589
38592
|
* @param {Object} opts Optional parameters
|
|
39590
38593
|
* @param {Number} opts.pageSize Page size. Maximum is 100. (default to 25)
|
|
39591
38594
|
* @param {Number} opts.pageNumber Page number (default to 1)
|
|
38595
|
+
* @param {Boolean} opts.includeTotal If false, cursor will be used to locate the page instead of pageNumber.
|
|
38596
|
+
* @param {String} opts.cursor Indicates where to resume query results (not required for first page)
|
|
39592
38597
|
*/
|
|
39593
38598
|
getRecordingJobFailedrecordings(jobId, opts) {
|
|
39594
38599
|
opts = opts || {};
|
|
@@ -39602,7 +38607,7 @@ class RecordingApi {
|
|
|
39602
38607
|
'/api/v2/recording/jobs/{jobId}/failedrecordings',
|
|
39603
38608
|
'GET',
|
|
39604
38609
|
{ 'jobId': jobId },
|
|
39605
|
-
{ 'pageSize': opts['pageSize'],'pageNumber': opts['pageNumber'] },
|
|
38610
|
+
{ 'pageSize': opts['pageSize'],'pageNumber': opts['pageNumber'],'includeTotal': opts['includeTotal'],'cursor': opts['cursor'] },
|
|
39606
38611
|
{ },
|
|
39607
38612
|
{ },
|
|
39608
38613
|
null,
|
|
@@ -39622,6 +38627,8 @@ class RecordingApi {
|
|
|
39622
38627
|
* @param {Object} opts.state Filter by state
|
|
39623
38628
|
* @param {Boolean} opts.showOnlyMyJobs Show only my jobs
|
|
39624
38629
|
* @param {Object} opts.jobType Job Type (Can be left empty for both)
|
|
38630
|
+
* @param {Boolean} opts.includeTotal If false, cursor will be used to locate the page instead of pageNumber.
|
|
38631
|
+
* @param {String} opts.cursor Indicates where to resume query results (not required for first page)
|
|
39625
38632
|
*/
|
|
39626
38633
|
getRecordingJobs(opts) {
|
|
39627
38634
|
opts = opts || {};
|
|
@@ -39631,7 +38638,7 @@ class RecordingApi {
|
|
|
39631
38638
|
'/api/v2/recording/jobs',
|
|
39632
38639
|
'GET',
|
|
39633
38640
|
{ },
|
|
39634
|
-
{ 'pageSize': opts['pageSize'],'pageNumber': opts['pageNumber'],'sortBy': opts['sortBy'],'state': opts['state'],'showOnlyMyJobs': opts['showOnlyMyJobs'],'jobType': opts['jobType'] },
|
|
38641
|
+
{ 'pageSize': opts['pageSize'],'pageNumber': opts['pageNumber'],'sortBy': opts['sortBy'],'state': opts['state'],'showOnlyMyJobs': opts['showOnlyMyJobs'],'jobType': opts['jobType'],'includeTotal': opts['includeTotal'],'cursor': opts['cursor'] },
|
|
39635
38642
|
{ },
|
|
39636
38643
|
{ },
|
|
39637
38644
|
null,
|
|
@@ -40512,7 +39519,7 @@ class ResponseManagementApi {
|
|
|
40512
39519
|
/**
|
|
40513
39520
|
* ResponseManagement service.
|
|
40514
39521
|
* @module purecloud-platform-client-v2/api/ResponseManagementApi
|
|
40515
|
-
* @version
|
|
39522
|
+
* @version 127.0.0
|
|
40516
39523
|
*/
|
|
40517
39524
|
|
|
40518
39525
|
/**
|
|
@@ -40837,7 +39844,7 @@ class RoutingApi {
|
|
|
40837
39844
|
/**
|
|
40838
39845
|
* Routing service.
|
|
40839
39846
|
* @module purecloud-platform-client-v2/api/RoutingApi
|
|
40840
|
-
* @version
|
|
39847
|
+
* @version 127.0.0
|
|
40841
39848
|
*/
|
|
40842
39849
|
|
|
40843
39850
|
/**
|
|
@@ -41150,8 +40157,12 @@ class RoutingApi {
|
|
|
41150
40157
|
* Delete a phone number provisioned for SMS.
|
|
41151
40158
|
*
|
|
41152
40159
|
* @param {String} addressId Address ID
|
|
40160
|
+
* @param {Object} opts Optional parameters
|
|
40161
|
+
* @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
40162
|
*/
|
|
41154
|
-
deleteRoutingSmsPhonenumber(addressId) {
|
|
40163
|
+
deleteRoutingSmsPhonenumber(addressId, opts) {
|
|
40164
|
+
opts = opts || {};
|
|
40165
|
+
|
|
41155
40166
|
// verify the required parameter 'addressId' is set
|
|
41156
40167
|
if (addressId === undefined || addressId === null) {
|
|
41157
40168
|
throw 'Missing the required parameter "addressId" when calling deleteRoutingSmsPhonenumber';
|
|
@@ -41161,7 +40172,7 @@ class RoutingApi {
|
|
|
41161
40172
|
'/api/v2/routing/sms/phonenumbers/{addressId}',
|
|
41162
40173
|
'DELETE',
|
|
41163
40174
|
{ 'addressId': addressId },
|
|
41164
|
-
{
|
|
40175
|
+
{ 'async': opts['async'] },
|
|
41165
40176
|
{ },
|
|
41166
40177
|
{ },
|
|
41167
40178
|
null,
|
|
@@ -41989,12 +41000,11 @@ class RoutingApi {
|
|
|
41989
41000
|
}
|
|
41990
41001
|
|
|
41991
41002
|
/**
|
|
41992
|
-
* Get a paged listing of simplified queue objects. Can be used to get a digest of all queues in an organization.
|
|
41003
|
+
* 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
41004
|
*
|
|
41994
41005
|
* @param {Object} opts Optional parameters
|
|
41995
41006
|
* @param {Number} opts.pageSize Page size [max value is 500] (default to 25)
|
|
41996
41007
|
* @param {Number} opts.pageNumber Page number (default to 1)
|
|
41997
|
-
* @param {Object} opts.sortBy Sort by (default to name)
|
|
41998
41008
|
* @param {Object} opts.sortOrder Sort order (default to asc)
|
|
41999
41009
|
*/
|
|
42000
41010
|
getRoutingQueuesDivisionviewsAll(opts) {
|
|
@@ -42005,7 +41015,7 @@ class RoutingApi {
|
|
|
42005
41015
|
'/api/v2/routing/queues/divisionviews/all',
|
|
42006
41016
|
'GET',
|
|
42007
41017
|
{ },
|
|
42008
|
-
{ 'pageSize': opts['pageSize'],'pageNumber': opts['pageNumber'],'
|
|
41018
|
+
{ 'pageSize': opts['pageSize'],'pageNumber': opts['pageNumber'],'sortOrder': opts['sortOrder'] },
|
|
42009
41019
|
{ },
|
|
42010
41020
|
{ },
|
|
42011
41021
|
null,
|
|
@@ -43308,8 +42318,12 @@ class RoutingApi {
|
|
|
43308
42318
|
* Provision a phone number for SMS
|
|
43309
42319
|
*
|
|
43310
42320
|
* @param {Object} body SmsPhoneNumber
|
|
42321
|
+
* @param {Object} opts Optional parameters
|
|
42322
|
+
* @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
42323
|
*/
|
|
43312
|
-
postRoutingSmsPhonenumbers(body) {
|
|
42324
|
+
postRoutingSmsPhonenumbers(body, opts) {
|
|
42325
|
+
opts = opts || {};
|
|
42326
|
+
|
|
43313
42327
|
// verify the required parameter 'body' is set
|
|
43314
42328
|
if (body === undefined || body === null) {
|
|
43315
42329
|
throw 'Missing the required parameter "body" when calling postRoutingSmsPhonenumbers';
|
|
@@ -43319,7 +42333,7 @@ class RoutingApi {
|
|
|
43319
42333
|
'/api/v2/routing/sms/phonenumbers',
|
|
43320
42334
|
'POST',
|
|
43321
42335
|
{ },
|
|
43322
|
-
{
|
|
42336
|
+
{ 'async': opts['async'] },
|
|
43323
42337
|
{ },
|
|
43324
42338
|
{ },
|
|
43325
42339
|
body,
|
|
@@ -43564,8 +42578,12 @@ class RoutingApi {
|
|
|
43564
42578
|
*
|
|
43565
42579
|
* @param {String} addressId Address ID
|
|
43566
42580
|
* @param {Object} body SmsPhoneNumber
|
|
42581
|
+
* @param {Object} opts Optional parameters
|
|
42582
|
+
* @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
42583
|
*/
|
|
43568
|
-
putRoutingSmsPhonenumber(addressId, body) {
|
|
42584
|
+
putRoutingSmsPhonenumber(addressId, body, opts) {
|
|
42585
|
+
opts = opts || {};
|
|
42586
|
+
|
|
43569
42587
|
// verify the required parameter 'addressId' is set
|
|
43570
42588
|
if (addressId === undefined || addressId === null) {
|
|
43571
42589
|
throw 'Missing the required parameter "addressId" when calling putRoutingSmsPhonenumber';
|
|
@@ -43579,7 +42597,7 @@ class RoutingApi {
|
|
|
43579
42597
|
'/api/v2/routing/sms/phonenumbers/{addressId}',
|
|
43580
42598
|
'PUT',
|
|
43581
42599
|
{ 'addressId': addressId },
|
|
43582
|
-
{
|
|
42600
|
+
{ 'async': opts['async'] },
|
|
43583
42601
|
{ },
|
|
43584
42602
|
{ },
|
|
43585
42603
|
body,
|
|
@@ -43745,7 +42763,7 @@ class SCIMApi {
|
|
|
43745
42763
|
/**
|
|
43746
42764
|
* SCIM service.
|
|
43747
42765
|
* @module purecloud-platform-client-v2/api/SCIMApi
|
|
43748
|
-
* @version
|
|
42766
|
+
* @version 127.0.0
|
|
43749
42767
|
*/
|
|
43750
42768
|
|
|
43751
42769
|
/**
|
|
@@ -44622,7 +43640,7 @@ class ScriptsApi {
|
|
|
44622
43640
|
/**
|
|
44623
43641
|
* Scripts service.
|
|
44624
43642
|
* @module purecloud-platform-client-v2/api/ScriptsApi
|
|
44625
|
-
* @version
|
|
43643
|
+
* @version 127.0.0
|
|
44626
43644
|
*/
|
|
44627
43645
|
|
|
44628
43646
|
/**
|
|
@@ -44975,7 +43993,7 @@ class SearchApi {
|
|
|
44975
43993
|
/**
|
|
44976
43994
|
* Search service.
|
|
44977
43995
|
* @module purecloud-platform-client-v2/api/SearchApi
|
|
44978
|
-
* @version
|
|
43996
|
+
* @version 127.0.0
|
|
44979
43997
|
*/
|
|
44980
43998
|
|
|
44981
43999
|
/**
|
|
@@ -45510,7 +44528,7 @@ class SpeechTextAnalyticsApi {
|
|
|
45510
44528
|
/**
|
|
45511
44529
|
* SpeechTextAnalytics service.
|
|
45512
44530
|
* @module purecloud-platform-client-v2/api/SpeechTextAnalyticsApi
|
|
45513
|
-
* @version
|
|
44531
|
+
* @version 127.0.0
|
|
45514
44532
|
*/
|
|
45515
44533
|
|
|
45516
44534
|
/**
|
|
@@ -45554,6 +44572,51 @@ class SpeechTextAnalyticsApi {
|
|
|
45554
44572
|
);
|
|
45555
44573
|
}
|
|
45556
44574
|
|
|
44575
|
+
/**
|
|
44576
|
+
* Delete All Speech & Text Analytics SentimentFeedback
|
|
44577
|
+
*
|
|
44578
|
+
*/
|
|
44579
|
+
deleteSpeechandtextanalyticsSentimentfeedback() {
|
|
44580
|
+
|
|
44581
|
+
return this.apiClient.callApi(
|
|
44582
|
+
'/api/v2/speechandtextanalytics/sentimentfeedback',
|
|
44583
|
+
'DELETE',
|
|
44584
|
+
{ },
|
|
44585
|
+
{ },
|
|
44586
|
+
{ },
|
|
44587
|
+
{ },
|
|
44588
|
+
null,
|
|
44589
|
+
['PureCloud OAuth'],
|
|
44590
|
+
['application/json'],
|
|
44591
|
+
['application/json']
|
|
44592
|
+
);
|
|
44593
|
+
}
|
|
44594
|
+
|
|
44595
|
+
/**
|
|
44596
|
+
* Delete a Speech & Text Analytics SentimentFeedback by Id
|
|
44597
|
+
*
|
|
44598
|
+
* @param {String} sentimentFeedbackId The Id of the SentimentFeedback
|
|
44599
|
+
*/
|
|
44600
|
+
deleteSpeechandtextanalyticsSentimentfeedbackSentimentFeedbackId(sentimentFeedbackId) {
|
|
44601
|
+
// verify the required parameter 'sentimentFeedbackId' is set
|
|
44602
|
+
if (sentimentFeedbackId === undefined || sentimentFeedbackId === null) {
|
|
44603
|
+
throw 'Missing the required parameter "sentimentFeedbackId" when calling deleteSpeechandtextanalyticsSentimentfeedbackSentimentFeedbackId';
|
|
44604
|
+
}
|
|
44605
|
+
|
|
44606
|
+
return this.apiClient.callApi(
|
|
44607
|
+
'/api/v2/speechandtextanalytics/sentimentfeedback/{sentimentFeedbackId}',
|
|
44608
|
+
'DELETE',
|
|
44609
|
+
{ 'sentimentFeedbackId': sentimentFeedbackId },
|
|
44610
|
+
{ },
|
|
44611
|
+
{ },
|
|
44612
|
+
{ },
|
|
44613
|
+
null,
|
|
44614
|
+
['PureCloud OAuth'],
|
|
44615
|
+
['application/json'],
|
|
44616
|
+
['application/json']
|
|
44617
|
+
);
|
|
44618
|
+
}
|
|
44619
|
+
|
|
45557
44620
|
/**
|
|
45558
44621
|
* Delete a Speech & Text Analytics topic by id
|
|
45559
44622
|
*
|
|
@@ -45636,7 +44699,7 @@ class SpeechTextAnalyticsApi {
|
|
|
45636
44699
|
|
|
45637
44700
|
/**
|
|
45638
44701
|
* Get list of supported Speech & Text Analytics dialects
|
|
45639
|
-
*
|
|
44702
|
+
* This api has been deprecated. Use api/v2/topics/dialects instead
|
|
45640
44703
|
*/
|
|
45641
44704
|
getSpeechandtextanalyticsDialects() {
|
|
45642
44705
|
|
|
@@ -45829,6 +44892,50 @@ class SpeechTextAnalyticsApi {
|
|
|
45829
44892
|
);
|
|
45830
44893
|
}
|
|
45831
44894
|
|
|
44895
|
+
/**
|
|
44896
|
+
* Get the list of Speech & Text Analytics sentiment supported dialects
|
|
44897
|
+
*
|
|
44898
|
+
*/
|
|
44899
|
+
getSpeechandtextanalyticsSentimentDialects() {
|
|
44900
|
+
|
|
44901
|
+
return this.apiClient.callApi(
|
|
44902
|
+
'/api/v2/speechandtextanalytics/sentiment/dialects',
|
|
44903
|
+
'GET',
|
|
44904
|
+
{ },
|
|
44905
|
+
{ },
|
|
44906
|
+
{ },
|
|
44907
|
+
{ },
|
|
44908
|
+
null,
|
|
44909
|
+
['PureCloud OAuth'],
|
|
44910
|
+
['application/json'],
|
|
44911
|
+
['application/json']
|
|
44912
|
+
);
|
|
44913
|
+
}
|
|
44914
|
+
|
|
44915
|
+
/**
|
|
44916
|
+
* Get the list of Speech & Text Analytics SentimentFeedback
|
|
44917
|
+
*
|
|
44918
|
+
* @param {Object} opts Optional parameters
|
|
44919
|
+
* @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
|
|
44920
|
+
*/
|
|
44921
|
+
getSpeechandtextanalyticsSentimentfeedback(opts) {
|
|
44922
|
+
opts = opts || {};
|
|
44923
|
+
|
|
44924
|
+
|
|
44925
|
+
return this.apiClient.callApi(
|
|
44926
|
+
'/api/v2/speechandtextanalytics/sentimentfeedback',
|
|
44927
|
+
'GET',
|
|
44928
|
+
{ },
|
|
44929
|
+
{ 'dialect': opts['dialect'] },
|
|
44930
|
+
{ },
|
|
44931
|
+
{ },
|
|
44932
|
+
null,
|
|
44933
|
+
['PureCloud OAuth'],
|
|
44934
|
+
['application/json'],
|
|
44935
|
+
['application/json']
|
|
44936
|
+
);
|
|
44937
|
+
}
|
|
44938
|
+
|
|
45832
44939
|
/**
|
|
45833
44940
|
* Get Speech And Text Analytics Settings
|
|
45834
44941
|
*
|
|
@@ -46073,6 +45180,31 @@ class SpeechTextAnalyticsApi {
|
|
|
46073
45180
|
);
|
|
46074
45181
|
}
|
|
46075
45182
|
|
|
45183
|
+
/**
|
|
45184
|
+
* Create a Speech & Text Analytics SentimentFeedback
|
|
45185
|
+
*
|
|
45186
|
+
* @param {Object} body The SentimentFeedback to create
|
|
45187
|
+
*/
|
|
45188
|
+
postSpeechandtextanalyticsSentimentfeedback(body) {
|
|
45189
|
+
// verify the required parameter 'body' is set
|
|
45190
|
+
if (body === undefined || body === null) {
|
|
45191
|
+
throw 'Missing the required parameter "body" when calling postSpeechandtextanalyticsSentimentfeedback';
|
|
45192
|
+
}
|
|
45193
|
+
|
|
45194
|
+
return this.apiClient.callApi(
|
|
45195
|
+
'/api/v2/speechandtextanalytics/sentimentfeedback',
|
|
45196
|
+
'POST',
|
|
45197
|
+
{ },
|
|
45198
|
+
{ },
|
|
45199
|
+
{ },
|
|
45200
|
+
{ },
|
|
45201
|
+
body,
|
|
45202
|
+
['PureCloud OAuth'],
|
|
45203
|
+
['application/json'],
|
|
45204
|
+
['application/json']
|
|
45205
|
+
);
|
|
45206
|
+
}
|
|
45207
|
+
|
|
46076
45208
|
/**
|
|
46077
45209
|
* Create new Speech & Text Analytics topic
|
|
46078
45210
|
*
|
|
@@ -46269,7 +45401,7 @@ class StationsApi {
|
|
|
46269
45401
|
/**
|
|
46270
45402
|
* Stations service.
|
|
46271
45403
|
* @module purecloud-platform-client-v2/api/StationsApi
|
|
46272
|
-
* @version
|
|
45404
|
+
* @version 127.0.0
|
|
46273
45405
|
*/
|
|
46274
45406
|
|
|
46275
45407
|
/**
|
|
@@ -46416,7 +45548,7 @@ class SuggestApi {
|
|
|
46416
45548
|
/**
|
|
46417
45549
|
* Suggest service.
|
|
46418
45550
|
* @module purecloud-platform-client-v2/api/SuggestApi
|
|
46419
|
-
* @version
|
|
45551
|
+
* @version 127.0.0
|
|
46420
45552
|
*/
|
|
46421
45553
|
|
|
46422
45554
|
/**
|
|
@@ -46555,7 +45687,7 @@ class TelephonyApi {
|
|
|
46555
45687
|
/**
|
|
46556
45688
|
* Telephony service.
|
|
46557
45689
|
* @module purecloud-platform-client-v2/api/TelephonyApi
|
|
46558
|
-
* @version
|
|
45690
|
+
* @version 127.0.0
|
|
46559
45691
|
*/
|
|
46560
45692
|
|
|
46561
45693
|
/**
|
|
@@ -46663,7 +45795,7 @@ class TelephonyProvidersEdgeApi {
|
|
|
46663
45795
|
/**
|
|
46664
45796
|
* TelephonyProvidersEdge service.
|
|
46665
45797
|
* @module purecloud-platform-client-v2/api/TelephonyProvidersEdgeApi
|
|
46666
|
-
* @version
|
|
45798
|
+
* @version 127.0.0
|
|
46667
45799
|
*/
|
|
46668
45800
|
|
|
46669
45801
|
/**
|
|
@@ -50276,7 +49408,7 @@ class TextbotsApi {
|
|
|
50276
49408
|
/**
|
|
50277
49409
|
* Textbots service.
|
|
50278
49410
|
* @module purecloud-platform-client-v2/api/TextbotsApi
|
|
50279
|
-
* @version
|
|
49411
|
+
* @version 127.0.0
|
|
50280
49412
|
*/
|
|
50281
49413
|
|
|
50282
49414
|
/**
|
|
@@ -50377,7 +49509,7 @@ class TokensApi {
|
|
|
50377
49509
|
/**
|
|
50378
49510
|
* Tokens service.
|
|
50379
49511
|
* @module purecloud-platform-client-v2/api/TokensApi
|
|
50380
|
-
* @version
|
|
49512
|
+
* @version 127.0.0
|
|
50381
49513
|
*/
|
|
50382
49514
|
|
|
50383
49515
|
/**
|
|
@@ -50483,7 +49615,7 @@ class UploadsApi {
|
|
|
50483
49615
|
/**
|
|
50484
49616
|
* Uploads service.
|
|
50485
49617
|
* @module purecloud-platform-client-v2/api/UploadsApi
|
|
50486
|
-
* @version
|
|
49618
|
+
* @version 127.0.0
|
|
50487
49619
|
*/
|
|
50488
49620
|
|
|
50489
49621
|
/**
|
|
@@ -50659,7 +49791,7 @@ class UsageApi {
|
|
|
50659
49791
|
/**
|
|
50660
49792
|
* Usage service.
|
|
50661
49793
|
* @module purecloud-platform-client-v2/api/UsageApi
|
|
50662
|
-
* @version
|
|
49794
|
+
* @version 127.0.0
|
|
50663
49795
|
*/
|
|
50664
49796
|
|
|
50665
49797
|
/**
|
|
@@ -50730,7 +49862,7 @@ class UserRecordingsApi {
|
|
|
50730
49862
|
/**
|
|
50731
49863
|
* UserRecordings service.
|
|
50732
49864
|
* @module purecloud-platform-client-v2/api/UserRecordingsApi
|
|
50733
|
-
* @version
|
|
49865
|
+
* @version 127.0.0
|
|
50734
49866
|
*/
|
|
50735
49867
|
|
|
50736
49868
|
/**
|
|
@@ -50914,7 +50046,7 @@ class UsersApi {
|
|
|
50914
50046
|
/**
|
|
50915
50047
|
* Users service.
|
|
50916
50048
|
* @module purecloud-platform-client-v2/api/UsersApi
|
|
50917
|
-
* @version
|
|
50049
|
+
* @version 127.0.0
|
|
50918
50050
|
*/
|
|
50919
50051
|
|
|
50920
50052
|
/**
|
|
@@ -53216,7 +52348,7 @@ class UtilitiesApi {
|
|
|
53216
52348
|
/**
|
|
53217
52349
|
* Utilities service.
|
|
53218
52350
|
* @module purecloud-platform-client-v2/api/UtilitiesApi
|
|
53219
|
-
* @version
|
|
52351
|
+
* @version 127.0.0
|
|
53220
52352
|
*/
|
|
53221
52353
|
|
|
53222
52354
|
/**
|
|
@@ -53327,7 +52459,7 @@ class VoicemailApi {
|
|
|
53327
52459
|
/**
|
|
53328
52460
|
* Voicemail service.
|
|
53329
52461
|
* @module purecloud-platform-client-v2/api/VoicemailApi
|
|
53330
|
-
* @version
|
|
52462
|
+
* @version 127.0.0
|
|
53331
52463
|
*/
|
|
53332
52464
|
|
|
53333
52465
|
/**
|
|
@@ -53994,7 +53126,7 @@ class WebChatApi {
|
|
|
53994
53126
|
/**
|
|
53995
53127
|
* WebChat service.
|
|
53996
53128
|
* @module purecloud-platform-client-v2/api/WebChatApi
|
|
53997
|
-
* @version
|
|
53129
|
+
* @version 127.0.0
|
|
53998
53130
|
*/
|
|
53999
53131
|
|
|
54000
53132
|
/**
|
|
@@ -54538,7 +53670,7 @@ class WebDeploymentsApi {
|
|
|
54538
53670
|
/**
|
|
54539
53671
|
* WebDeployments service.
|
|
54540
53672
|
* @module purecloud-platform-client-v2/api/WebDeploymentsApi
|
|
54541
|
-
* @version
|
|
53673
|
+
* @version 127.0.0
|
|
54542
53674
|
*/
|
|
54543
53675
|
|
|
54544
53676
|
/**
|
|
@@ -54893,7 +54025,7 @@ class WebMessagingApi {
|
|
|
54893
54025
|
/**
|
|
54894
54026
|
* WebMessaging service.
|
|
54895
54027
|
* @module purecloud-platform-client-v2/api/WebMessagingApi
|
|
54896
|
-
* @version
|
|
54028
|
+
* @version 127.0.0
|
|
54897
54029
|
*/
|
|
54898
54030
|
|
|
54899
54031
|
/**
|
|
@@ -54939,7 +54071,7 @@ class WidgetsApi {
|
|
|
54939
54071
|
/**
|
|
54940
54072
|
* Widgets service.
|
|
54941
54073
|
* @module purecloud-platform-client-v2/api/WidgetsApi
|
|
54942
|
-
* @version
|
|
54074
|
+
* @version 127.0.0
|
|
54943
54075
|
*/
|
|
54944
54076
|
|
|
54945
54077
|
/**
|
|
@@ -55085,7 +54217,7 @@ class WorkforceManagementApi {
|
|
|
55085
54217
|
/**
|
|
55086
54218
|
* WorkforceManagement service.
|
|
55087
54219
|
* @module purecloud-platform-client-v2/api/WorkforceManagementApi
|
|
55088
|
-
* @version
|
|
54220
|
+
* @version 127.0.0
|
|
55089
54221
|
*/
|
|
55090
54222
|
|
|
55091
54223
|
/**
|
|
@@ -55360,6 +54492,66 @@ class WorkforceManagementApi {
|
|
|
55360
54492
|
);
|
|
55361
54493
|
}
|
|
55362
54494
|
|
|
54495
|
+
/**
|
|
54496
|
+
* Deletes a time off limit object
|
|
54497
|
+
*
|
|
54498
|
+
* @param {String} managementUnitId The management unit ID of the management unit.
|
|
54499
|
+
* @param {String} timeOffLimitId The ID of the time off limit object to delete
|
|
54500
|
+
*/
|
|
54501
|
+
deleteWorkforcemanagementManagementunitTimeofflimit(managementUnitId, timeOffLimitId) {
|
|
54502
|
+
// verify the required parameter 'managementUnitId' is set
|
|
54503
|
+
if (managementUnitId === undefined || managementUnitId === null) {
|
|
54504
|
+
throw 'Missing the required parameter "managementUnitId" when calling deleteWorkforcemanagementManagementunitTimeofflimit';
|
|
54505
|
+
}
|
|
54506
|
+
// verify the required parameter 'timeOffLimitId' is set
|
|
54507
|
+
if (timeOffLimitId === undefined || timeOffLimitId === null) {
|
|
54508
|
+
throw 'Missing the required parameter "timeOffLimitId" when calling deleteWorkforcemanagementManagementunitTimeofflimit';
|
|
54509
|
+
}
|
|
54510
|
+
|
|
54511
|
+
return this.apiClient.callApi(
|
|
54512
|
+
'/api/v2/workforcemanagement/managementunits/{managementUnitId}/timeofflimits/{timeOffLimitId}',
|
|
54513
|
+
'DELETE',
|
|
54514
|
+
{ 'managementUnitId': managementUnitId,'timeOffLimitId': timeOffLimitId },
|
|
54515
|
+
{ },
|
|
54516
|
+
{ },
|
|
54517
|
+
{ },
|
|
54518
|
+
null,
|
|
54519
|
+
['PureCloud OAuth'],
|
|
54520
|
+
['application/json'],
|
|
54521
|
+
['application/json']
|
|
54522
|
+
);
|
|
54523
|
+
}
|
|
54524
|
+
|
|
54525
|
+
/**
|
|
54526
|
+
* Deletes a time off plan
|
|
54527
|
+
*
|
|
54528
|
+
* @param {String} managementUnitId The management unit ID.
|
|
54529
|
+
* @param {String} timeOffPlanId The ID of the time off plan to delete
|
|
54530
|
+
*/
|
|
54531
|
+
deleteWorkforcemanagementManagementunitTimeoffplan(managementUnitId, timeOffPlanId) {
|
|
54532
|
+
// verify the required parameter 'managementUnitId' is set
|
|
54533
|
+
if (managementUnitId === undefined || managementUnitId === null) {
|
|
54534
|
+
throw 'Missing the required parameter "managementUnitId" when calling deleteWorkforcemanagementManagementunitTimeoffplan';
|
|
54535
|
+
}
|
|
54536
|
+
// verify the required parameter 'timeOffPlanId' is set
|
|
54537
|
+
if (timeOffPlanId === undefined || timeOffPlanId === null) {
|
|
54538
|
+
throw 'Missing the required parameter "timeOffPlanId" when calling deleteWorkforcemanagementManagementunitTimeoffplan';
|
|
54539
|
+
}
|
|
54540
|
+
|
|
54541
|
+
return this.apiClient.callApi(
|
|
54542
|
+
'/api/v2/workforcemanagement/managementunits/{managementUnitId}/timeoffplans/{timeOffPlanId}',
|
|
54543
|
+
'DELETE',
|
|
54544
|
+
{ 'managementUnitId': managementUnitId,'timeOffPlanId': timeOffPlanId },
|
|
54545
|
+
{ },
|
|
54546
|
+
{ },
|
|
54547
|
+
{ },
|
|
54548
|
+
null,
|
|
54549
|
+
['PureCloud OAuth'],
|
|
54550
|
+
['application/json'],
|
|
54551
|
+
['application/json']
|
|
54552
|
+
);
|
|
54553
|
+
}
|
|
54554
|
+
|
|
55363
54555
|
/**
|
|
55364
54556
|
* Delete a work plan
|
|
55365
54557
|
*
|
|
@@ -56601,6 +55793,116 @@ class WorkforceManagementApi {
|
|
|
56601
55793
|
);
|
|
56602
55794
|
}
|
|
56603
55795
|
|
|
55796
|
+
/**
|
|
55797
|
+
* Gets a time off limit object
|
|
55798
|
+
* Returns properties of time off limit object, but not daily values.
|
|
55799
|
+
* @param {String} managementUnitId The management unit ID of the management unit.
|
|
55800
|
+
* @param {String} timeOffLimitId The ID of the time off limit to fetch
|
|
55801
|
+
*/
|
|
55802
|
+
getWorkforcemanagementManagementunitTimeofflimit(managementUnitId, timeOffLimitId) {
|
|
55803
|
+
// verify the required parameter 'managementUnitId' is set
|
|
55804
|
+
if (managementUnitId === undefined || managementUnitId === null) {
|
|
55805
|
+
throw 'Missing the required parameter "managementUnitId" when calling getWorkforcemanagementManagementunitTimeofflimit';
|
|
55806
|
+
}
|
|
55807
|
+
// verify the required parameter 'timeOffLimitId' is set
|
|
55808
|
+
if (timeOffLimitId === undefined || timeOffLimitId === null) {
|
|
55809
|
+
throw 'Missing the required parameter "timeOffLimitId" when calling getWorkforcemanagementManagementunitTimeofflimit';
|
|
55810
|
+
}
|
|
55811
|
+
|
|
55812
|
+
return this.apiClient.callApi(
|
|
55813
|
+
'/api/v2/workforcemanagement/managementunits/{managementUnitId}/timeofflimits/{timeOffLimitId}',
|
|
55814
|
+
'GET',
|
|
55815
|
+
{ 'managementUnitId': managementUnitId,'timeOffLimitId': timeOffLimitId },
|
|
55816
|
+
{ },
|
|
55817
|
+
{ },
|
|
55818
|
+
{ },
|
|
55819
|
+
null,
|
|
55820
|
+
['PureCloud OAuth'],
|
|
55821
|
+
['application/json'],
|
|
55822
|
+
['application/json']
|
|
55823
|
+
);
|
|
55824
|
+
}
|
|
55825
|
+
|
|
55826
|
+
/**
|
|
55827
|
+
* Gets a list of time off limit objects under management unit.
|
|
55828
|
+
* Currently only one time off limit object is allowed under management unit, so the list contains either 0 or 1 element.
|
|
55829
|
+
* @param {String} managementUnitId The management unit ID of the management unit.
|
|
55830
|
+
*/
|
|
55831
|
+
getWorkforcemanagementManagementunitTimeofflimits(managementUnitId) {
|
|
55832
|
+
// verify the required parameter 'managementUnitId' is set
|
|
55833
|
+
if (managementUnitId === undefined || managementUnitId === null) {
|
|
55834
|
+
throw 'Missing the required parameter "managementUnitId" when calling getWorkforcemanagementManagementunitTimeofflimits';
|
|
55835
|
+
}
|
|
55836
|
+
|
|
55837
|
+
return this.apiClient.callApi(
|
|
55838
|
+
'/api/v2/workforcemanagement/managementunits/{managementUnitId}/timeofflimits',
|
|
55839
|
+
'GET',
|
|
55840
|
+
{ 'managementUnitId': managementUnitId },
|
|
55841
|
+
{ },
|
|
55842
|
+
{ },
|
|
55843
|
+
{ },
|
|
55844
|
+
null,
|
|
55845
|
+
['PureCloud OAuth'],
|
|
55846
|
+
['application/json'],
|
|
55847
|
+
['application/json']
|
|
55848
|
+
);
|
|
55849
|
+
}
|
|
55850
|
+
|
|
55851
|
+
/**
|
|
55852
|
+
* Gets a time off plan
|
|
55853
|
+
*
|
|
55854
|
+
* @param {String} managementUnitId The management unit ID.
|
|
55855
|
+
* @param {String} timeOffPlanId The ID of the time off plan to fetch
|
|
55856
|
+
*/
|
|
55857
|
+
getWorkforcemanagementManagementunitTimeoffplan(managementUnitId, timeOffPlanId) {
|
|
55858
|
+
// verify the required parameter 'managementUnitId' is set
|
|
55859
|
+
if (managementUnitId === undefined || managementUnitId === null) {
|
|
55860
|
+
throw 'Missing the required parameter "managementUnitId" when calling getWorkforcemanagementManagementunitTimeoffplan';
|
|
55861
|
+
}
|
|
55862
|
+
// verify the required parameter 'timeOffPlanId' is set
|
|
55863
|
+
if (timeOffPlanId === undefined || timeOffPlanId === null) {
|
|
55864
|
+
throw 'Missing the required parameter "timeOffPlanId" when calling getWorkforcemanagementManagementunitTimeoffplan';
|
|
55865
|
+
}
|
|
55866
|
+
|
|
55867
|
+
return this.apiClient.callApi(
|
|
55868
|
+
'/api/v2/workforcemanagement/managementunits/{managementUnitId}/timeoffplans/{timeOffPlanId}',
|
|
55869
|
+
'GET',
|
|
55870
|
+
{ 'managementUnitId': managementUnitId,'timeOffPlanId': timeOffPlanId },
|
|
55871
|
+
{ },
|
|
55872
|
+
{ },
|
|
55873
|
+
{ },
|
|
55874
|
+
null,
|
|
55875
|
+
['PureCloud OAuth'],
|
|
55876
|
+
['application/json'],
|
|
55877
|
+
['application/json']
|
|
55878
|
+
);
|
|
55879
|
+
}
|
|
55880
|
+
|
|
55881
|
+
/**
|
|
55882
|
+
* Gets a list of time off plans
|
|
55883
|
+
*
|
|
55884
|
+
* @param {String} managementUnitId The management unit ID.
|
|
55885
|
+
*/
|
|
55886
|
+
getWorkforcemanagementManagementunitTimeoffplans(managementUnitId) {
|
|
55887
|
+
// verify the required parameter 'managementUnitId' is set
|
|
55888
|
+
if (managementUnitId === undefined || managementUnitId === null) {
|
|
55889
|
+
throw 'Missing the required parameter "managementUnitId" when calling getWorkforcemanagementManagementunitTimeoffplans';
|
|
55890
|
+
}
|
|
55891
|
+
|
|
55892
|
+
return this.apiClient.callApi(
|
|
55893
|
+
'/api/v2/workforcemanagement/managementunits/{managementUnitId}/timeoffplans',
|
|
55894
|
+
'GET',
|
|
55895
|
+
{ 'managementUnitId': managementUnitId },
|
|
55896
|
+
{ },
|
|
55897
|
+
{ },
|
|
55898
|
+
{ },
|
|
55899
|
+
null,
|
|
55900
|
+
['PureCloud OAuth'],
|
|
55901
|
+
['application/json'],
|
|
55902
|
+
['application/json']
|
|
55903
|
+
);
|
|
55904
|
+
}
|
|
55905
|
+
|
|
56604
55906
|
/**
|
|
56605
55907
|
* Get a time off request
|
|
56606
55908
|
*
|
|
@@ -56636,6 +55938,41 @@ class WorkforceManagementApi {
|
|
|
56636
55938
|
);
|
|
56637
55939
|
}
|
|
56638
55940
|
|
|
55941
|
+
/**
|
|
55942
|
+
* Retrieves time off limit, allocated and waitlisted values according to specific time off request
|
|
55943
|
+
*
|
|
55944
|
+
* @param {String} managementUnitId The management unit ID of the management unit.
|
|
55945
|
+
* @param {String} userId The userId to whom the time off request applies.
|
|
55946
|
+
* @param {String} timeOffRequestId The ID of the time off request, which dates and activityCodeId determine limit values to retrieve
|
|
55947
|
+
*/
|
|
55948
|
+
getWorkforcemanagementManagementunitUserTimeoffrequestTimeofflimits(managementUnitId, userId, timeOffRequestId) {
|
|
55949
|
+
// verify the required parameter 'managementUnitId' is set
|
|
55950
|
+
if (managementUnitId === undefined || managementUnitId === null) {
|
|
55951
|
+
throw 'Missing the required parameter "managementUnitId" when calling getWorkforcemanagementManagementunitUserTimeoffrequestTimeofflimits';
|
|
55952
|
+
}
|
|
55953
|
+
// verify the required parameter 'userId' is set
|
|
55954
|
+
if (userId === undefined || userId === null) {
|
|
55955
|
+
throw 'Missing the required parameter "userId" when calling getWorkforcemanagementManagementunitUserTimeoffrequestTimeofflimits';
|
|
55956
|
+
}
|
|
55957
|
+
// verify the required parameter 'timeOffRequestId' is set
|
|
55958
|
+
if (timeOffRequestId === undefined || timeOffRequestId === null) {
|
|
55959
|
+
throw 'Missing the required parameter "timeOffRequestId" when calling getWorkforcemanagementManagementunitUserTimeoffrequestTimeofflimits';
|
|
55960
|
+
}
|
|
55961
|
+
|
|
55962
|
+
return this.apiClient.callApi(
|
|
55963
|
+
'/api/v2/workforcemanagement/managementunits/{managementUnitId}/users/{userId}/timeoffrequests/{timeOffRequestId}/timeofflimits',
|
|
55964
|
+
'GET',
|
|
55965
|
+
{ 'managementUnitId': managementUnitId,'userId': userId,'timeOffRequestId': timeOffRequestId },
|
|
55966
|
+
{ },
|
|
55967
|
+
{ },
|
|
55968
|
+
{ },
|
|
55969
|
+
null,
|
|
55970
|
+
['PureCloud OAuth'],
|
|
55971
|
+
['application/json'],
|
|
55972
|
+
['application/json']
|
|
55973
|
+
);
|
|
55974
|
+
}
|
|
55975
|
+
|
|
56639
55976
|
/**
|
|
56640
55977
|
* Get a list of time off requests for a given user
|
|
56641
55978
|
*
|
|
@@ -57069,6 +56406,31 @@ class WorkforceManagementApi {
|
|
|
57069
56406
|
);
|
|
57070
56407
|
}
|
|
57071
56408
|
|
|
56409
|
+
/**
|
|
56410
|
+
* Get the daily waitlist positions of a time off request for the current user
|
|
56411
|
+
*
|
|
56412
|
+
* @param {String} timeOffRequestId Time Off Request Id
|
|
56413
|
+
*/
|
|
56414
|
+
getWorkforcemanagementTimeoffrequestWaitlistpositions(timeOffRequestId) {
|
|
56415
|
+
// verify the required parameter 'timeOffRequestId' is set
|
|
56416
|
+
if (timeOffRequestId === undefined || timeOffRequestId === null) {
|
|
56417
|
+
throw 'Missing the required parameter "timeOffRequestId" when calling getWorkforcemanagementTimeoffrequestWaitlistpositions';
|
|
56418
|
+
}
|
|
56419
|
+
|
|
56420
|
+
return this.apiClient.callApi(
|
|
56421
|
+
'/api/v2/workforcemanagement/timeoffrequests/{timeOffRequestId}/waitlistpositions',
|
|
56422
|
+
'GET',
|
|
56423
|
+
{ 'timeOffRequestId': timeOffRequestId },
|
|
56424
|
+
{ },
|
|
56425
|
+
{ },
|
|
56426
|
+
{ },
|
|
56427
|
+
null,
|
|
56428
|
+
['PureCloud OAuth'],
|
|
56429
|
+
['application/json'],
|
|
56430
|
+
['application/json']
|
|
56431
|
+
);
|
|
56432
|
+
}
|
|
56433
|
+
|
|
57072
56434
|
/**
|
|
57073
56435
|
* Get a list of time off requests for the current user
|
|
57074
56436
|
*
|
|
@@ -57287,6 +56649,74 @@ class WorkforceManagementApi {
|
|
|
57287
56649
|
);
|
|
57288
56650
|
}
|
|
57289
56651
|
|
|
56652
|
+
/**
|
|
56653
|
+
* Updates a time off limit object.
|
|
56654
|
+
* Updates time off limit object properties, but not daily values.
|
|
56655
|
+
* @param {String} managementUnitId The management unit ID of the management unit.
|
|
56656
|
+
* @param {String} timeOffLimitId The id of time off limit object to update
|
|
56657
|
+
* @param {Object} opts Optional parameters
|
|
56658
|
+
* @param {Object} opts.body body
|
|
56659
|
+
*/
|
|
56660
|
+
patchWorkforcemanagementManagementunitTimeofflimit(managementUnitId, timeOffLimitId, opts) {
|
|
56661
|
+
opts = opts || {};
|
|
56662
|
+
|
|
56663
|
+
// verify the required parameter 'managementUnitId' is set
|
|
56664
|
+
if (managementUnitId === undefined || managementUnitId === null) {
|
|
56665
|
+
throw 'Missing the required parameter "managementUnitId" when calling patchWorkforcemanagementManagementunitTimeofflimit';
|
|
56666
|
+
}
|
|
56667
|
+
// verify the required parameter 'timeOffLimitId' is set
|
|
56668
|
+
if (timeOffLimitId === undefined || timeOffLimitId === null) {
|
|
56669
|
+
throw 'Missing the required parameter "timeOffLimitId" when calling patchWorkforcemanagementManagementunitTimeofflimit';
|
|
56670
|
+
}
|
|
56671
|
+
|
|
56672
|
+
return this.apiClient.callApi(
|
|
56673
|
+
'/api/v2/workforcemanagement/managementunits/{managementUnitId}/timeofflimits/{timeOffLimitId}',
|
|
56674
|
+
'PATCH',
|
|
56675
|
+
{ 'managementUnitId': managementUnitId,'timeOffLimitId': timeOffLimitId },
|
|
56676
|
+
{ },
|
|
56677
|
+
{ },
|
|
56678
|
+
{ },
|
|
56679
|
+
opts['body'],
|
|
56680
|
+
['PureCloud OAuth'],
|
|
56681
|
+
['application/json'],
|
|
56682
|
+
['application/json']
|
|
56683
|
+
);
|
|
56684
|
+
}
|
|
56685
|
+
|
|
56686
|
+
/**
|
|
56687
|
+
* Updates a time off plan
|
|
56688
|
+
*
|
|
56689
|
+
* @param {String} managementUnitId The management unit ID.
|
|
56690
|
+
* @param {String} timeOffPlanId The ID of the time off plan to update
|
|
56691
|
+
* @param {Object} opts Optional parameters
|
|
56692
|
+
* @param {Object} opts.body body
|
|
56693
|
+
*/
|
|
56694
|
+
patchWorkforcemanagementManagementunitTimeoffplan(managementUnitId, timeOffPlanId, opts) {
|
|
56695
|
+
opts = opts || {};
|
|
56696
|
+
|
|
56697
|
+
// verify the required parameter 'managementUnitId' is set
|
|
56698
|
+
if (managementUnitId === undefined || managementUnitId === null) {
|
|
56699
|
+
throw 'Missing the required parameter "managementUnitId" when calling patchWorkforcemanagementManagementunitTimeoffplan';
|
|
56700
|
+
}
|
|
56701
|
+
// verify the required parameter 'timeOffPlanId' is set
|
|
56702
|
+
if (timeOffPlanId === undefined || timeOffPlanId === null) {
|
|
56703
|
+
throw 'Missing the required parameter "timeOffPlanId" when calling patchWorkforcemanagementManagementunitTimeoffplan';
|
|
56704
|
+
}
|
|
56705
|
+
|
|
56706
|
+
return this.apiClient.callApi(
|
|
56707
|
+
'/api/v2/workforcemanagement/managementunits/{managementUnitId}/timeoffplans/{timeOffPlanId}',
|
|
56708
|
+
'PATCH',
|
|
56709
|
+
{ 'managementUnitId': managementUnitId,'timeOffPlanId': timeOffPlanId },
|
|
56710
|
+
{ },
|
|
56711
|
+
{ },
|
|
56712
|
+
{ },
|
|
56713
|
+
opts['body'],
|
|
56714
|
+
['PureCloud OAuth'],
|
|
56715
|
+
['application/json'],
|
|
56716
|
+
['application/json']
|
|
56717
|
+
);
|
|
56718
|
+
}
|
|
56719
|
+
|
|
57290
56720
|
/**
|
|
57291
56721
|
* Update a time off request
|
|
57292
56722
|
*
|
|
@@ -58148,6 +57578,93 @@ class WorkforceManagementApi {
|
|
|
58148
57578
|
);
|
|
58149
57579
|
}
|
|
58150
57580
|
|
|
57581
|
+
/**
|
|
57582
|
+
* Creates a new time off limit object under management unit.
|
|
57583
|
+
* Only one limit object is allowed under management unit, so an attempt to create second object will fail.
|
|
57584
|
+
* @param {String} managementUnitId The management unit ID of the management unit.
|
|
57585
|
+
* @param {Object} opts Optional parameters
|
|
57586
|
+
* @param {Object} opts.body body
|
|
57587
|
+
*/
|
|
57588
|
+
postWorkforcemanagementManagementunitTimeofflimits(managementUnitId, opts) {
|
|
57589
|
+
opts = opts || {};
|
|
57590
|
+
|
|
57591
|
+
// verify the required parameter 'managementUnitId' is set
|
|
57592
|
+
if (managementUnitId === undefined || managementUnitId === null) {
|
|
57593
|
+
throw 'Missing the required parameter "managementUnitId" when calling postWorkforcemanagementManagementunitTimeofflimits';
|
|
57594
|
+
}
|
|
57595
|
+
|
|
57596
|
+
return this.apiClient.callApi(
|
|
57597
|
+
'/api/v2/workforcemanagement/managementunits/{managementUnitId}/timeofflimits',
|
|
57598
|
+
'POST',
|
|
57599
|
+
{ 'managementUnitId': managementUnitId },
|
|
57600
|
+
{ },
|
|
57601
|
+
{ },
|
|
57602
|
+
{ },
|
|
57603
|
+
opts['body'],
|
|
57604
|
+
['PureCloud OAuth'],
|
|
57605
|
+
['application/json'],
|
|
57606
|
+
['application/json']
|
|
57607
|
+
);
|
|
57608
|
+
}
|
|
57609
|
+
|
|
57610
|
+
/**
|
|
57611
|
+
* Retrieves time off limit related values based on a given set of filters.
|
|
57612
|
+
*
|
|
57613
|
+
* @param {String} managementUnitId The management unit ID of the management unit.
|
|
57614
|
+
* @param {Object} opts Optional parameters
|
|
57615
|
+
* @param {Object} opts.body body
|
|
57616
|
+
*/
|
|
57617
|
+
postWorkforcemanagementManagementunitTimeofflimitsValuesQuery(managementUnitId, opts) {
|
|
57618
|
+
opts = opts || {};
|
|
57619
|
+
|
|
57620
|
+
// verify the required parameter 'managementUnitId' is set
|
|
57621
|
+
if (managementUnitId === undefined || managementUnitId === null) {
|
|
57622
|
+
throw 'Missing the required parameter "managementUnitId" when calling postWorkforcemanagementManagementunitTimeofflimitsValuesQuery';
|
|
57623
|
+
}
|
|
57624
|
+
|
|
57625
|
+
return this.apiClient.callApi(
|
|
57626
|
+
'/api/v2/workforcemanagement/managementunits/{managementUnitId}/timeofflimits/values/query',
|
|
57627
|
+
'POST',
|
|
57628
|
+
{ 'managementUnitId': managementUnitId },
|
|
57629
|
+
{ },
|
|
57630
|
+
{ },
|
|
57631
|
+
{ },
|
|
57632
|
+
opts['body'],
|
|
57633
|
+
['PureCloud OAuth'],
|
|
57634
|
+
['application/json'],
|
|
57635
|
+
['application/json']
|
|
57636
|
+
);
|
|
57637
|
+
}
|
|
57638
|
+
|
|
57639
|
+
/**
|
|
57640
|
+
* Creates a new time off plan
|
|
57641
|
+
*
|
|
57642
|
+
* @param {String} managementUnitId The management unit ID.
|
|
57643
|
+
* @param {Object} opts Optional parameters
|
|
57644
|
+
* @param {Object} opts.body body
|
|
57645
|
+
*/
|
|
57646
|
+
postWorkforcemanagementManagementunitTimeoffplans(managementUnitId, opts) {
|
|
57647
|
+
opts = opts || {};
|
|
57648
|
+
|
|
57649
|
+
// verify the required parameter 'managementUnitId' is set
|
|
57650
|
+
if (managementUnitId === undefined || managementUnitId === null) {
|
|
57651
|
+
throw 'Missing the required parameter "managementUnitId" when calling postWorkforcemanagementManagementunitTimeoffplans';
|
|
57652
|
+
}
|
|
57653
|
+
|
|
57654
|
+
return this.apiClient.callApi(
|
|
57655
|
+
'/api/v2/workforcemanagement/managementunits/{managementUnitId}/timeoffplans',
|
|
57656
|
+
'POST',
|
|
57657
|
+
{ 'managementUnitId': managementUnitId },
|
|
57658
|
+
{ },
|
|
57659
|
+
{ },
|
|
57660
|
+
{ },
|
|
57661
|
+
opts['body'],
|
|
57662
|
+
['PureCloud OAuth'],
|
|
57663
|
+
['application/json'],
|
|
57664
|
+
['application/json']
|
|
57665
|
+
);
|
|
57666
|
+
}
|
|
57667
|
+
|
|
58151
57668
|
/**
|
|
58152
57669
|
* Create a new time off request
|
|
58153
57670
|
*
|
|
@@ -58206,6 +57723,35 @@ class WorkforceManagementApi {
|
|
|
58206
57723
|
);
|
|
58207
57724
|
}
|
|
58208
57725
|
|
|
57726
|
+
/**
|
|
57727
|
+
* Retrieves daily waitlist position for a list of time off requests
|
|
57728
|
+
*
|
|
57729
|
+
* @param {String} managementUnitId The management unit ID of the management unit.
|
|
57730
|
+
* @param {Object} opts Optional parameters
|
|
57731
|
+
* @param {Object} opts.body body
|
|
57732
|
+
*/
|
|
57733
|
+
postWorkforcemanagementManagementunitTimeoffrequestsWaitlistpositionsQuery(managementUnitId, opts) {
|
|
57734
|
+
opts = opts || {};
|
|
57735
|
+
|
|
57736
|
+
// verify the required parameter 'managementUnitId' is set
|
|
57737
|
+
if (managementUnitId === undefined || managementUnitId === null) {
|
|
57738
|
+
throw 'Missing the required parameter "managementUnitId" when calling postWorkforcemanagementManagementunitTimeoffrequestsWaitlistpositionsQuery';
|
|
57739
|
+
}
|
|
57740
|
+
|
|
57741
|
+
return this.apiClient.callApi(
|
|
57742
|
+
'/api/v2/workforcemanagement/managementunits/{managementUnitId}/timeoffrequests/waitlistpositions/query',
|
|
57743
|
+
'POST',
|
|
57744
|
+
{ 'managementUnitId': managementUnitId },
|
|
57745
|
+
{ },
|
|
57746
|
+
{ },
|
|
57747
|
+
{ },
|
|
57748
|
+
opts['body'],
|
|
57749
|
+
['PureCloud OAuth'],
|
|
57750
|
+
['application/json'],
|
|
57751
|
+
['application/json']
|
|
57752
|
+
);
|
|
57753
|
+
}
|
|
57754
|
+
|
|
58209
57755
|
/**
|
|
58210
57756
|
* Matches a shift trade. This route can only be called by the receiving agent
|
|
58211
57757
|
*
|
|
@@ -58589,6 +58135,30 @@ class WorkforceManagementApi {
|
|
|
58589
58135
|
);
|
|
58590
58136
|
}
|
|
58591
58137
|
|
|
58138
|
+
/**
|
|
58139
|
+
* Queries available time off for the current user
|
|
58140
|
+
*
|
|
58141
|
+
* @param {Object} opts Optional parameters
|
|
58142
|
+
* @param {Object} opts.body body
|
|
58143
|
+
*/
|
|
58144
|
+
postWorkforcemanagementTimeofflimitsAvailableQuery(opts) {
|
|
58145
|
+
opts = opts || {};
|
|
58146
|
+
|
|
58147
|
+
|
|
58148
|
+
return this.apiClient.callApi(
|
|
58149
|
+
'/api/v2/workforcemanagement/timeofflimits/available/query',
|
|
58150
|
+
'POST',
|
|
58151
|
+
{ },
|
|
58152
|
+
{ },
|
|
58153
|
+
{ },
|
|
58154
|
+
{ },
|
|
58155
|
+
opts['body'],
|
|
58156
|
+
['PureCloud OAuth'],
|
|
58157
|
+
['application/json'],
|
|
58158
|
+
['application/json']
|
|
58159
|
+
);
|
|
58160
|
+
}
|
|
58161
|
+
|
|
58592
58162
|
/**
|
|
58593
58163
|
* Create a time off request for the current user
|
|
58594
58164
|
*
|
|
@@ -58613,6 +58183,40 @@ class WorkforceManagementApi {
|
|
|
58613
58183
|
);
|
|
58614
58184
|
}
|
|
58615
58185
|
|
|
58186
|
+
/**
|
|
58187
|
+
* Sets daily values for a date range of time off limit object
|
|
58188
|
+
* Note that only limit daily values can be set through API, allocated and waitlisted values are read-only for time off limit API
|
|
58189
|
+
* @param {String} managementUnitId The management unit ID of the management unit.
|
|
58190
|
+
* @param {String} timeOffLimitId The ID of the time off limit object to set values for
|
|
58191
|
+
* @param {Object} opts Optional parameters
|
|
58192
|
+
* @param {Object} opts.body body
|
|
58193
|
+
*/
|
|
58194
|
+
putWorkforcemanagementManagementunitTimeofflimitValues(managementUnitId, timeOffLimitId, opts) {
|
|
58195
|
+
opts = opts || {};
|
|
58196
|
+
|
|
58197
|
+
// verify the required parameter 'managementUnitId' is set
|
|
58198
|
+
if (managementUnitId === undefined || managementUnitId === null) {
|
|
58199
|
+
throw 'Missing the required parameter "managementUnitId" when calling putWorkforcemanagementManagementunitTimeofflimitValues';
|
|
58200
|
+
}
|
|
58201
|
+
// verify the required parameter 'timeOffLimitId' is set
|
|
58202
|
+
if (timeOffLimitId === undefined || timeOffLimitId === null) {
|
|
58203
|
+
throw 'Missing the required parameter "timeOffLimitId" when calling putWorkforcemanagementManagementunitTimeofflimitValues';
|
|
58204
|
+
}
|
|
58205
|
+
|
|
58206
|
+
return this.apiClient.callApi(
|
|
58207
|
+
'/api/v2/workforcemanagement/managementunits/{managementUnitId}/timeofflimits/{timeOffLimitId}/values',
|
|
58208
|
+
'PUT',
|
|
58209
|
+
{ 'managementUnitId': managementUnitId,'timeOffLimitId': timeOffLimitId },
|
|
58210
|
+
{ },
|
|
58211
|
+
{ },
|
|
58212
|
+
{ },
|
|
58213
|
+
opts['body'],
|
|
58214
|
+
['PureCloud OAuth'],
|
|
58215
|
+
['application/json'],
|
|
58216
|
+
['application/json']
|
|
58217
|
+
);
|
|
58218
|
+
}
|
|
58219
|
+
|
|
58616
58220
|
}
|
|
58617
58221
|
|
|
58618
58222
|
/**
|
|
@@ -58644,7 +58248,7 @@ class WorkforceManagementApi {
|
|
|
58644
58248
|
* </pre>
|
|
58645
58249
|
* </p>
|
|
58646
58250
|
* @module purecloud-platform-client-v2/index
|
|
58647
|
-
* @version
|
|
58251
|
+
* @version 127.0.0
|
|
58648
58252
|
*/
|
|
58649
58253
|
class platformClient {
|
|
58650
58254
|
constructor() {
|
|
@@ -58979,4 +58583,4 @@ var index = new platformClient();
|
|
|
58979
58583
|
module.exports = index;
|
|
58980
58584
|
|
|
58981
58585
|
}).call(this)}).call(this,typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : {},require("buffer").Buffer)
|
|
58982
|
-
},{"buffer":
|
|
58586
|
+
},{"buffer":2,"os":4,"path":5,"superagent":9}]},{},[]);
|