purecloud-platform-client-v2 122.0.0 → 126.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 +6 -2
- package/dist/node/purecloud-platform-client-v2.js +1005 -142
- package/dist/web-amd/purecloud-platform-client-v2.js +1005 -142
- package/dist/web-amd/purecloud-platform-client-v2.min.js +1 -1
- package/dist/web-cjs/bundle.js +965 -146
- package/dist/web-cjs/purecloud-platform-client-v2.js +978 -1309
- package/dist/web-cjs/purecloud-platform-client-v2.min.js +1 -1
- package/index.d.ts +1546 -243
- 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 +8 -4
- 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 +2 -2
- 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 +7 -3
- package/src/purecloud-platform-client-v2/api/LanguageUnderstandingApi.js +3 -3
- package/src/purecloud-platform-client-v2/api/LanguagesApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/LearningApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/LicenseApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/LocationsApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/MobileDevicesApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/NotificationsApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/OAuthApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/ObjectsApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/OrganizationApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/OrganizationAuthorizationApi.js +216 -1
- package/src/purecloud-platform-client-v2/api/OutboundApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/PresenceApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/QualityApi.js +2 -2
- package/src/purecloud-platform-client-v2/api/RecordingApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/ResponseManagementApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/RoutingApi.js +22 -11
- package/src/purecloud-platform-client-v2/api/SCIMApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/ScriptsApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/SearchApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/SpeechTextAnalyticsApi.js +96 -2
- package/src/purecloud-platform-client-v2/api/StationsApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/SuggestApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/TelephonyApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/TelephonyProvidersEdgeApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/TextbotsApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/TokensApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/UploadsApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/UsageApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/UserRecordingsApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/UsersApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/UtilitiesApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/VoicemailApi.js +31 -1
- package/src/purecloud-platform-client-v2/api/WebChatApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/WebDeploymentsApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/WebMessagingApi.js +51 -0
- 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 +7 -1
|
@@ -1,6 +1,4 @@
|
|
|
1
1
|
require=(function(){function r(e,n,t){function o(i,f){if(!n[i]){if(!e[i]){var c="function"==typeof require&&require;if(!f&&c)return c(i,!0);if(u)return u(i,!0);var a=new Error("Cannot find module '"+i+"'");throw a.code="MODULE_NOT_FOUND",a}var p=n[i]={exports:{}};e[i][0].call(p.exports,function(r){var n=e[i][1][r];return o(n||r)},p,p.exports,r,e,n,t)}return n[i].exports}for(var u="function"==typeof require&&require,i=0;i<t.length;i++)o(t[i]);return o}return r})()({1:[function(require,module,exports){
|
|
2
|
-
|
|
3
|
-
},{}],2:[function(require,module,exports){
|
|
4
2
|
'use strict'
|
|
5
3
|
|
|
6
4
|
exports.byteLength = byteLength
|
|
@@ -152,7 +150,7 @@ function fromByteArray (uint8) {
|
|
|
152
150
|
return parts.join('')
|
|
153
151
|
}
|
|
154
152
|
|
|
155
|
-
},{}],
|
|
153
|
+
},{}],2:[function(require,module,exports){
|
|
156
154
|
(function (Buffer){(function (){
|
|
157
155
|
/*!
|
|
158
156
|
* The buffer module from node.js, for the browser.
|
|
@@ -1933,7 +1931,7 @@ function numberIsNaN (obj) {
|
|
|
1933
1931
|
}
|
|
1934
1932
|
|
|
1935
1933
|
}).call(this)}).call(this,require("buffer").Buffer)
|
|
1936
|
-
},{"base64-js":
|
|
1934
|
+
},{"base64-js":1,"buffer":2,"ieee754":3}],3:[function(require,module,exports){
|
|
1937
1935
|
/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */
|
|
1938
1936
|
exports.read = function (buffer, offset, isLE, mLen, nBytes) {
|
|
1939
1937
|
var e, m
|
|
@@ -2020,7 +2018,7 @@ exports.write = function (buffer, value, offset, isLE, mLen, nBytes) {
|
|
|
2020
2018
|
buffer[offset + i - d] |= s * 128
|
|
2021
2019
|
}
|
|
2022
2020
|
|
|
2023
|
-
},{}],
|
|
2021
|
+
},{}],4:[function(require,module,exports){
|
|
2024
2022
|
exports.endianness = function () { return 'LE' };
|
|
2025
2023
|
|
|
2026
2024
|
exports.hostname = function () {
|
|
@@ -2071,7 +2069,7 @@ exports.homedir = function () {
|
|
|
2071
2069
|
return '/'
|
|
2072
2070
|
};
|
|
2073
2071
|
|
|
2074
|
-
},{}],
|
|
2072
|
+
},{}],5:[function(require,module,exports){
|
|
2075
2073
|
(function (process){(function (){
|
|
2076
2074
|
// .dirname, .basename, and .extname methods are extracted from Node.js v8.11.1,
|
|
2077
2075
|
// backported and transplited with Babel, with backwards-compat fixes
|
|
@@ -2377,7 +2375,7 @@ var substr = 'ab'.substr(-1) === 'b'
|
|
|
2377
2375
|
;
|
|
2378
2376
|
|
|
2379
2377
|
}).call(this)}).call(this,require('_process'))
|
|
2380
|
-
},{"_process":
|
|
2378
|
+
},{"_process":6}],6:[function(require,module,exports){
|
|
2381
2379
|
// shim for using process in browser
|
|
2382
2380
|
var process = module.exports = {};
|
|
2383
2381
|
|
|
@@ -2563,629 +2561,7 @@ process.chdir = function (dir) {
|
|
|
2563
2561
|
};
|
|
2564
2562
|
process.umask = function() { return 0; };
|
|
2565
2563
|
|
|
2566
|
-
},{}],
|
|
2567
|
-
if (typeof Object.create === 'function') {
|
|
2568
|
-
// implementation from standard node.js 'util' module
|
|
2569
|
-
module.exports = function inherits(ctor, superCtor) {
|
|
2570
|
-
ctor.super_ = superCtor
|
|
2571
|
-
ctor.prototype = Object.create(superCtor.prototype, {
|
|
2572
|
-
constructor: {
|
|
2573
|
-
value: ctor,
|
|
2574
|
-
enumerable: false,
|
|
2575
|
-
writable: true,
|
|
2576
|
-
configurable: true
|
|
2577
|
-
}
|
|
2578
|
-
});
|
|
2579
|
-
};
|
|
2580
|
-
} else {
|
|
2581
|
-
// old school shim for old browsers
|
|
2582
|
-
module.exports = function inherits(ctor, superCtor) {
|
|
2583
|
-
ctor.super_ = superCtor
|
|
2584
|
-
var TempCtor = function () {}
|
|
2585
|
-
TempCtor.prototype = superCtor.prototype
|
|
2586
|
-
ctor.prototype = new TempCtor()
|
|
2587
|
-
ctor.prototype.constructor = ctor
|
|
2588
|
-
}
|
|
2589
|
-
}
|
|
2590
|
-
|
|
2591
|
-
},{}],9:[function(require,module,exports){
|
|
2592
|
-
module.exports = function isBuffer(arg) {
|
|
2593
|
-
return arg && typeof arg === 'object'
|
|
2594
|
-
&& typeof arg.copy === 'function'
|
|
2595
|
-
&& typeof arg.fill === 'function'
|
|
2596
|
-
&& typeof arg.readUInt8 === 'function';
|
|
2597
|
-
}
|
|
2598
|
-
},{}],10:[function(require,module,exports){
|
|
2599
|
-
(function (process,global){(function (){
|
|
2600
|
-
// Copyright Joyent, Inc. and other Node contributors.
|
|
2601
|
-
//
|
|
2602
|
-
// Permission is hereby granted, free of charge, to any person obtaining a
|
|
2603
|
-
// copy of this software and associated documentation files (the
|
|
2604
|
-
// "Software"), to deal in the Software without restriction, including
|
|
2605
|
-
// without limitation the rights to use, copy, modify, merge, publish,
|
|
2606
|
-
// distribute, sublicense, and/or sell copies of the Software, and to permit
|
|
2607
|
-
// persons to whom the Software is furnished to do so, subject to the
|
|
2608
|
-
// following conditions:
|
|
2609
|
-
//
|
|
2610
|
-
// The above copyright notice and this permission notice shall be included
|
|
2611
|
-
// in all copies or substantial portions of the Software.
|
|
2612
|
-
//
|
|
2613
|
-
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
|
|
2614
|
-
// OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
|
2615
|
-
// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN
|
|
2616
|
-
// NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
|
|
2617
|
-
// DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
|
|
2618
|
-
// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE
|
|
2619
|
-
// USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
2620
|
-
|
|
2621
|
-
var formatRegExp = /%[sdj%]/g;
|
|
2622
|
-
exports.format = function(f) {
|
|
2623
|
-
if (!isString(f)) {
|
|
2624
|
-
var objects = [];
|
|
2625
|
-
for (var i = 0; i < arguments.length; i++) {
|
|
2626
|
-
objects.push(inspect(arguments[i]));
|
|
2627
|
-
}
|
|
2628
|
-
return objects.join(' ');
|
|
2629
|
-
}
|
|
2630
|
-
|
|
2631
|
-
var i = 1;
|
|
2632
|
-
var args = arguments;
|
|
2633
|
-
var len = args.length;
|
|
2634
|
-
var str = String(f).replace(formatRegExp, function(x) {
|
|
2635
|
-
if (x === '%%') return '%';
|
|
2636
|
-
if (i >= len) return x;
|
|
2637
|
-
switch (x) {
|
|
2638
|
-
case '%s': return String(args[i++]);
|
|
2639
|
-
case '%d': return Number(args[i++]);
|
|
2640
|
-
case '%j':
|
|
2641
|
-
try {
|
|
2642
|
-
return JSON.stringify(args[i++]);
|
|
2643
|
-
} catch (_) {
|
|
2644
|
-
return '[Circular]';
|
|
2645
|
-
}
|
|
2646
|
-
default:
|
|
2647
|
-
return x;
|
|
2648
|
-
}
|
|
2649
|
-
});
|
|
2650
|
-
for (var x = args[i]; i < len; x = args[++i]) {
|
|
2651
|
-
if (isNull(x) || !isObject(x)) {
|
|
2652
|
-
str += ' ' + x;
|
|
2653
|
-
} else {
|
|
2654
|
-
str += ' ' + inspect(x);
|
|
2655
|
-
}
|
|
2656
|
-
}
|
|
2657
|
-
return str;
|
|
2658
|
-
};
|
|
2659
|
-
|
|
2660
|
-
|
|
2661
|
-
// Mark that a method should not be used.
|
|
2662
|
-
// Returns a modified function which warns once by default.
|
|
2663
|
-
// If --no-deprecation is set, then it is a no-op.
|
|
2664
|
-
exports.deprecate = function(fn, msg) {
|
|
2665
|
-
// Allow for deprecating things in the process of starting up.
|
|
2666
|
-
if (isUndefined(global.process)) {
|
|
2667
|
-
return function() {
|
|
2668
|
-
return exports.deprecate(fn, msg).apply(this, arguments);
|
|
2669
|
-
};
|
|
2670
|
-
}
|
|
2671
|
-
|
|
2672
|
-
if (process.noDeprecation === true) {
|
|
2673
|
-
return fn;
|
|
2674
|
-
}
|
|
2675
|
-
|
|
2676
|
-
var warned = false;
|
|
2677
|
-
function deprecated() {
|
|
2678
|
-
if (!warned) {
|
|
2679
|
-
if (process.throwDeprecation) {
|
|
2680
|
-
throw new Error(msg);
|
|
2681
|
-
} else if (process.traceDeprecation) {
|
|
2682
|
-
console.trace(msg);
|
|
2683
|
-
} else {
|
|
2684
|
-
console.error(msg);
|
|
2685
|
-
}
|
|
2686
|
-
warned = true;
|
|
2687
|
-
}
|
|
2688
|
-
return fn.apply(this, arguments);
|
|
2689
|
-
}
|
|
2690
|
-
|
|
2691
|
-
return deprecated;
|
|
2692
|
-
};
|
|
2693
|
-
|
|
2694
|
-
|
|
2695
|
-
var debugs = {};
|
|
2696
|
-
var debugEnviron;
|
|
2697
|
-
exports.debuglog = function(set) {
|
|
2698
|
-
if (isUndefined(debugEnviron))
|
|
2699
|
-
debugEnviron = process.env.NODE_DEBUG || '';
|
|
2700
|
-
set = set.toUpperCase();
|
|
2701
|
-
if (!debugs[set]) {
|
|
2702
|
-
if (new RegExp('\\b' + set + '\\b', 'i').test(debugEnviron)) {
|
|
2703
|
-
var pid = process.pid;
|
|
2704
|
-
debugs[set] = function() {
|
|
2705
|
-
var msg = exports.format.apply(exports, arguments);
|
|
2706
|
-
console.error('%s %d: %s', set, pid, msg);
|
|
2707
|
-
};
|
|
2708
|
-
} else {
|
|
2709
|
-
debugs[set] = function() {};
|
|
2710
|
-
}
|
|
2711
|
-
}
|
|
2712
|
-
return debugs[set];
|
|
2713
|
-
};
|
|
2714
|
-
|
|
2715
|
-
|
|
2716
|
-
/**
|
|
2717
|
-
* Echos the value of a value. Trys to print the value out
|
|
2718
|
-
* in the best way possible given the different types.
|
|
2719
|
-
*
|
|
2720
|
-
* @param {Object} obj The object to print out.
|
|
2721
|
-
* @param {Object} opts Optional options object that alters the output.
|
|
2722
|
-
*/
|
|
2723
|
-
/* legacy: obj, showHidden, depth, colors*/
|
|
2724
|
-
function inspect(obj, opts) {
|
|
2725
|
-
// default options
|
|
2726
|
-
var ctx = {
|
|
2727
|
-
seen: [],
|
|
2728
|
-
stylize: stylizeNoColor
|
|
2729
|
-
};
|
|
2730
|
-
// legacy...
|
|
2731
|
-
if (arguments.length >= 3) ctx.depth = arguments[2];
|
|
2732
|
-
if (arguments.length >= 4) ctx.colors = arguments[3];
|
|
2733
|
-
if (isBoolean(opts)) {
|
|
2734
|
-
// legacy...
|
|
2735
|
-
ctx.showHidden = opts;
|
|
2736
|
-
} else if (opts) {
|
|
2737
|
-
// got an "options" object
|
|
2738
|
-
exports._extend(ctx, opts);
|
|
2739
|
-
}
|
|
2740
|
-
// set default options
|
|
2741
|
-
if (isUndefined(ctx.showHidden)) ctx.showHidden = false;
|
|
2742
|
-
if (isUndefined(ctx.depth)) ctx.depth = 2;
|
|
2743
|
-
if (isUndefined(ctx.colors)) ctx.colors = false;
|
|
2744
|
-
if (isUndefined(ctx.customInspect)) ctx.customInspect = true;
|
|
2745
|
-
if (ctx.colors) ctx.stylize = stylizeWithColor;
|
|
2746
|
-
return formatValue(ctx, obj, ctx.depth);
|
|
2747
|
-
}
|
|
2748
|
-
exports.inspect = inspect;
|
|
2749
|
-
|
|
2750
|
-
|
|
2751
|
-
// http://en.wikipedia.org/wiki/ANSI_escape_code#graphics
|
|
2752
|
-
inspect.colors = {
|
|
2753
|
-
'bold' : [1, 22],
|
|
2754
|
-
'italic' : [3, 23],
|
|
2755
|
-
'underline' : [4, 24],
|
|
2756
|
-
'inverse' : [7, 27],
|
|
2757
|
-
'white' : [37, 39],
|
|
2758
|
-
'grey' : [90, 39],
|
|
2759
|
-
'black' : [30, 39],
|
|
2760
|
-
'blue' : [34, 39],
|
|
2761
|
-
'cyan' : [36, 39],
|
|
2762
|
-
'green' : [32, 39],
|
|
2763
|
-
'magenta' : [35, 39],
|
|
2764
|
-
'red' : [31, 39],
|
|
2765
|
-
'yellow' : [33, 39]
|
|
2766
|
-
};
|
|
2767
|
-
|
|
2768
|
-
// Don't use 'blue' not visible on cmd.exe
|
|
2769
|
-
inspect.styles = {
|
|
2770
|
-
'special': 'cyan',
|
|
2771
|
-
'number': 'yellow',
|
|
2772
|
-
'boolean': 'yellow',
|
|
2773
|
-
'undefined': 'grey',
|
|
2774
|
-
'null': 'bold',
|
|
2775
|
-
'string': 'green',
|
|
2776
|
-
'date': 'magenta',
|
|
2777
|
-
// "name": intentionally not styling
|
|
2778
|
-
'regexp': 'red'
|
|
2779
|
-
};
|
|
2780
|
-
|
|
2781
|
-
|
|
2782
|
-
function stylizeWithColor(str, styleType) {
|
|
2783
|
-
var style = inspect.styles[styleType];
|
|
2784
|
-
|
|
2785
|
-
if (style) {
|
|
2786
|
-
return '\u001b[' + inspect.colors[style][0] + 'm' + str +
|
|
2787
|
-
'\u001b[' + inspect.colors[style][1] + 'm';
|
|
2788
|
-
} else {
|
|
2789
|
-
return str;
|
|
2790
|
-
}
|
|
2791
|
-
}
|
|
2792
|
-
|
|
2793
|
-
|
|
2794
|
-
function stylizeNoColor(str, styleType) {
|
|
2795
|
-
return str;
|
|
2796
|
-
}
|
|
2797
|
-
|
|
2798
|
-
|
|
2799
|
-
function arrayToHash(array) {
|
|
2800
|
-
var hash = {};
|
|
2801
|
-
|
|
2802
|
-
array.forEach(function(val, idx) {
|
|
2803
|
-
hash[val] = true;
|
|
2804
|
-
});
|
|
2805
|
-
|
|
2806
|
-
return hash;
|
|
2807
|
-
}
|
|
2808
|
-
|
|
2809
|
-
|
|
2810
|
-
function formatValue(ctx, value, recurseTimes) {
|
|
2811
|
-
// Provide a hook for user-specified inspect functions.
|
|
2812
|
-
// Check that value is an object with an inspect function on it
|
|
2813
|
-
if (ctx.customInspect &&
|
|
2814
|
-
value &&
|
|
2815
|
-
isFunction(value.inspect) &&
|
|
2816
|
-
// Filter out the util module, it's inspect function is special
|
|
2817
|
-
value.inspect !== exports.inspect &&
|
|
2818
|
-
// Also filter out any prototype objects using the circular check.
|
|
2819
|
-
!(value.constructor && value.constructor.prototype === value)) {
|
|
2820
|
-
var ret = value.inspect(recurseTimes, ctx);
|
|
2821
|
-
if (!isString(ret)) {
|
|
2822
|
-
ret = formatValue(ctx, ret, recurseTimes);
|
|
2823
|
-
}
|
|
2824
|
-
return ret;
|
|
2825
|
-
}
|
|
2826
|
-
|
|
2827
|
-
// Primitive types cannot have properties
|
|
2828
|
-
var primitive = formatPrimitive(ctx, value);
|
|
2829
|
-
if (primitive) {
|
|
2830
|
-
return primitive;
|
|
2831
|
-
}
|
|
2832
|
-
|
|
2833
|
-
// Look up the keys of the object.
|
|
2834
|
-
var keys = Object.keys(value);
|
|
2835
|
-
var visibleKeys = arrayToHash(keys);
|
|
2836
|
-
|
|
2837
|
-
if (ctx.showHidden) {
|
|
2838
|
-
keys = Object.getOwnPropertyNames(value);
|
|
2839
|
-
}
|
|
2840
|
-
|
|
2841
|
-
// IE doesn't make error fields non-enumerable
|
|
2842
|
-
// http://msdn.microsoft.com/en-us/library/ie/dww52sbt(v=vs.94).aspx
|
|
2843
|
-
if (isError(value)
|
|
2844
|
-
&& (keys.indexOf('message') >= 0 || keys.indexOf('description') >= 0)) {
|
|
2845
|
-
return formatError(value);
|
|
2846
|
-
}
|
|
2847
|
-
|
|
2848
|
-
// Some type of object without properties can be shortcutted.
|
|
2849
|
-
if (keys.length === 0) {
|
|
2850
|
-
if (isFunction(value)) {
|
|
2851
|
-
var name = value.name ? ': ' + value.name : '';
|
|
2852
|
-
return ctx.stylize('[Function' + name + ']', 'special');
|
|
2853
|
-
}
|
|
2854
|
-
if (isRegExp(value)) {
|
|
2855
|
-
return ctx.stylize(RegExp.prototype.toString.call(value), 'regexp');
|
|
2856
|
-
}
|
|
2857
|
-
if (isDate(value)) {
|
|
2858
|
-
return ctx.stylize(Date.prototype.toString.call(value), 'date');
|
|
2859
|
-
}
|
|
2860
|
-
if (isError(value)) {
|
|
2861
|
-
return formatError(value);
|
|
2862
|
-
}
|
|
2863
|
-
}
|
|
2864
|
-
|
|
2865
|
-
var base = '', array = false, braces = ['{', '}'];
|
|
2866
|
-
|
|
2867
|
-
// Make Array say that they are Array
|
|
2868
|
-
if (isArray(value)) {
|
|
2869
|
-
array = true;
|
|
2870
|
-
braces = ['[', ']'];
|
|
2871
|
-
}
|
|
2872
|
-
|
|
2873
|
-
// Make functions say that they are functions
|
|
2874
|
-
if (isFunction(value)) {
|
|
2875
|
-
var n = value.name ? ': ' + value.name : '';
|
|
2876
|
-
base = ' [Function' + n + ']';
|
|
2877
|
-
}
|
|
2878
|
-
|
|
2879
|
-
// Make RegExps say that they are RegExps
|
|
2880
|
-
if (isRegExp(value)) {
|
|
2881
|
-
base = ' ' + RegExp.prototype.toString.call(value);
|
|
2882
|
-
}
|
|
2883
|
-
|
|
2884
|
-
// Make dates with properties first say the date
|
|
2885
|
-
if (isDate(value)) {
|
|
2886
|
-
base = ' ' + Date.prototype.toUTCString.call(value);
|
|
2887
|
-
}
|
|
2888
|
-
|
|
2889
|
-
// Make error with message first say the error
|
|
2890
|
-
if (isError(value)) {
|
|
2891
|
-
base = ' ' + formatError(value);
|
|
2892
|
-
}
|
|
2893
|
-
|
|
2894
|
-
if (keys.length === 0 && (!array || value.length == 0)) {
|
|
2895
|
-
return braces[0] + base + braces[1];
|
|
2896
|
-
}
|
|
2897
|
-
|
|
2898
|
-
if (recurseTimes < 0) {
|
|
2899
|
-
if (isRegExp(value)) {
|
|
2900
|
-
return ctx.stylize(RegExp.prototype.toString.call(value), 'regexp');
|
|
2901
|
-
} else {
|
|
2902
|
-
return ctx.stylize('[Object]', 'special');
|
|
2903
|
-
}
|
|
2904
|
-
}
|
|
2905
|
-
|
|
2906
|
-
ctx.seen.push(value);
|
|
2907
|
-
|
|
2908
|
-
var output;
|
|
2909
|
-
if (array) {
|
|
2910
|
-
output = formatArray(ctx, value, recurseTimes, visibleKeys, keys);
|
|
2911
|
-
} else {
|
|
2912
|
-
output = keys.map(function(key) {
|
|
2913
|
-
return formatProperty(ctx, value, recurseTimes, visibleKeys, key, array);
|
|
2914
|
-
});
|
|
2915
|
-
}
|
|
2916
|
-
|
|
2917
|
-
ctx.seen.pop();
|
|
2918
|
-
|
|
2919
|
-
return reduceToSingleString(output, base, braces);
|
|
2920
|
-
}
|
|
2921
|
-
|
|
2922
|
-
|
|
2923
|
-
function formatPrimitive(ctx, value) {
|
|
2924
|
-
if (isUndefined(value))
|
|
2925
|
-
return ctx.stylize('undefined', 'undefined');
|
|
2926
|
-
if (isString(value)) {
|
|
2927
|
-
var simple = '\'' + JSON.stringify(value).replace(/^"|"$/g, '')
|
|
2928
|
-
.replace(/'/g, "\\'")
|
|
2929
|
-
.replace(/\\"/g, '"') + '\'';
|
|
2930
|
-
return ctx.stylize(simple, 'string');
|
|
2931
|
-
}
|
|
2932
|
-
if (isNumber(value))
|
|
2933
|
-
return ctx.stylize('' + value, 'number');
|
|
2934
|
-
if (isBoolean(value))
|
|
2935
|
-
return ctx.stylize('' + value, 'boolean');
|
|
2936
|
-
// For some reason typeof null is "object", so special case here.
|
|
2937
|
-
if (isNull(value))
|
|
2938
|
-
return ctx.stylize('null', 'null');
|
|
2939
|
-
}
|
|
2940
|
-
|
|
2941
|
-
|
|
2942
|
-
function formatError(value) {
|
|
2943
|
-
return '[' + Error.prototype.toString.call(value) + ']';
|
|
2944
|
-
}
|
|
2945
|
-
|
|
2946
|
-
|
|
2947
|
-
function formatArray(ctx, value, recurseTimes, visibleKeys, keys) {
|
|
2948
|
-
var output = [];
|
|
2949
|
-
for (var i = 0, l = value.length; i < l; ++i) {
|
|
2950
|
-
if (hasOwnProperty(value, String(i))) {
|
|
2951
|
-
output.push(formatProperty(ctx, value, recurseTimes, visibleKeys,
|
|
2952
|
-
String(i), true));
|
|
2953
|
-
} else {
|
|
2954
|
-
output.push('');
|
|
2955
|
-
}
|
|
2956
|
-
}
|
|
2957
|
-
keys.forEach(function(key) {
|
|
2958
|
-
if (!key.match(/^\d+$/)) {
|
|
2959
|
-
output.push(formatProperty(ctx, value, recurseTimes, visibleKeys,
|
|
2960
|
-
key, true));
|
|
2961
|
-
}
|
|
2962
|
-
});
|
|
2963
|
-
return output;
|
|
2964
|
-
}
|
|
2965
|
-
|
|
2966
|
-
|
|
2967
|
-
function formatProperty(ctx, value, recurseTimes, visibleKeys, key, array) {
|
|
2968
|
-
var name, str, desc;
|
|
2969
|
-
desc = Object.getOwnPropertyDescriptor(value, key) || { value: value[key] };
|
|
2970
|
-
if (desc.get) {
|
|
2971
|
-
if (desc.set) {
|
|
2972
|
-
str = ctx.stylize('[Getter/Setter]', 'special');
|
|
2973
|
-
} else {
|
|
2974
|
-
str = ctx.stylize('[Getter]', 'special');
|
|
2975
|
-
}
|
|
2976
|
-
} else {
|
|
2977
|
-
if (desc.set) {
|
|
2978
|
-
str = ctx.stylize('[Setter]', 'special');
|
|
2979
|
-
}
|
|
2980
|
-
}
|
|
2981
|
-
if (!hasOwnProperty(visibleKeys, key)) {
|
|
2982
|
-
name = '[' + key + ']';
|
|
2983
|
-
}
|
|
2984
|
-
if (!str) {
|
|
2985
|
-
if (ctx.seen.indexOf(desc.value) < 0) {
|
|
2986
|
-
if (isNull(recurseTimes)) {
|
|
2987
|
-
str = formatValue(ctx, desc.value, null);
|
|
2988
|
-
} else {
|
|
2989
|
-
str = formatValue(ctx, desc.value, recurseTimes - 1);
|
|
2990
|
-
}
|
|
2991
|
-
if (str.indexOf('\n') > -1) {
|
|
2992
|
-
if (array) {
|
|
2993
|
-
str = str.split('\n').map(function(line) {
|
|
2994
|
-
return ' ' + line;
|
|
2995
|
-
}).join('\n').substr(2);
|
|
2996
|
-
} else {
|
|
2997
|
-
str = '\n' + str.split('\n').map(function(line) {
|
|
2998
|
-
return ' ' + line;
|
|
2999
|
-
}).join('\n');
|
|
3000
|
-
}
|
|
3001
|
-
}
|
|
3002
|
-
} else {
|
|
3003
|
-
str = ctx.stylize('[Circular]', 'special');
|
|
3004
|
-
}
|
|
3005
|
-
}
|
|
3006
|
-
if (isUndefined(name)) {
|
|
3007
|
-
if (array && key.match(/^\d+$/)) {
|
|
3008
|
-
return str;
|
|
3009
|
-
}
|
|
3010
|
-
name = JSON.stringify('' + key);
|
|
3011
|
-
if (name.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)) {
|
|
3012
|
-
name = name.substr(1, name.length - 2);
|
|
3013
|
-
name = ctx.stylize(name, 'name');
|
|
3014
|
-
} else {
|
|
3015
|
-
name = name.replace(/'/g, "\\'")
|
|
3016
|
-
.replace(/\\"/g, '"')
|
|
3017
|
-
.replace(/(^"|"$)/g, "'");
|
|
3018
|
-
name = ctx.stylize(name, 'string');
|
|
3019
|
-
}
|
|
3020
|
-
}
|
|
3021
|
-
|
|
3022
|
-
return name + ': ' + str;
|
|
3023
|
-
}
|
|
3024
|
-
|
|
3025
|
-
|
|
3026
|
-
function reduceToSingleString(output, base, braces) {
|
|
3027
|
-
var numLinesEst = 0;
|
|
3028
|
-
var length = output.reduce(function(prev, cur) {
|
|
3029
|
-
numLinesEst++;
|
|
3030
|
-
if (cur.indexOf('\n') >= 0) numLinesEst++;
|
|
3031
|
-
return prev + cur.replace(/\u001b\[\d\d?m/g, '').length + 1;
|
|
3032
|
-
}, 0);
|
|
3033
|
-
|
|
3034
|
-
if (length > 60) {
|
|
3035
|
-
return braces[0] +
|
|
3036
|
-
(base === '' ? '' : base + '\n ') +
|
|
3037
|
-
' ' +
|
|
3038
|
-
output.join(',\n ') +
|
|
3039
|
-
' ' +
|
|
3040
|
-
braces[1];
|
|
3041
|
-
}
|
|
3042
|
-
|
|
3043
|
-
return braces[0] + base + ' ' + output.join(', ') + ' ' + braces[1];
|
|
3044
|
-
}
|
|
3045
|
-
|
|
3046
|
-
|
|
3047
|
-
// NOTE: These type checking functions intentionally don't use `instanceof`
|
|
3048
|
-
// because it is fragile and can be easily faked with `Object.create()`.
|
|
3049
|
-
function isArray(ar) {
|
|
3050
|
-
return Array.isArray(ar);
|
|
3051
|
-
}
|
|
3052
|
-
exports.isArray = isArray;
|
|
3053
|
-
|
|
3054
|
-
function isBoolean(arg) {
|
|
3055
|
-
return typeof arg === 'boolean';
|
|
3056
|
-
}
|
|
3057
|
-
exports.isBoolean = isBoolean;
|
|
3058
|
-
|
|
3059
|
-
function isNull(arg) {
|
|
3060
|
-
return arg === null;
|
|
3061
|
-
}
|
|
3062
|
-
exports.isNull = isNull;
|
|
3063
|
-
|
|
3064
|
-
function isNullOrUndefined(arg) {
|
|
3065
|
-
return arg == null;
|
|
3066
|
-
}
|
|
3067
|
-
exports.isNullOrUndefined = isNullOrUndefined;
|
|
3068
|
-
|
|
3069
|
-
function isNumber(arg) {
|
|
3070
|
-
return typeof arg === 'number';
|
|
3071
|
-
}
|
|
3072
|
-
exports.isNumber = isNumber;
|
|
3073
|
-
|
|
3074
|
-
function isString(arg) {
|
|
3075
|
-
return typeof arg === 'string';
|
|
3076
|
-
}
|
|
3077
|
-
exports.isString = isString;
|
|
3078
|
-
|
|
3079
|
-
function isSymbol(arg) {
|
|
3080
|
-
return typeof arg === 'symbol';
|
|
3081
|
-
}
|
|
3082
|
-
exports.isSymbol = isSymbol;
|
|
3083
|
-
|
|
3084
|
-
function isUndefined(arg) {
|
|
3085
|
-
return arg === void 0;
|
|
3086
|
-
}
|
|
3087
|
-
exports.isUndefined = isUndefined;
|
|
3088
|
-
|
|
3089
|
-
function isRegExp(re) {
|
|
3090
|
-
return isObject(re) && objectToString(re) === '[object RegExp]';
|
|
3091
|
-
}
|
|
3092
|
-
exports.isRegExp = isRegExp;
|
|
3093
|
-
|
|
3094
|
-
function isObject(arg) {
|
|
3095
|
-
return typeof arg === 'object' && arg !== null;
|
|
3096
|
-
}
|
|
3097
|
-
exports.isObject = isObject;
|
|
3098
|
-
|
|
3099
|
-
function isDate(d) {
|
|
3100
|
-
return isObject(d) && objectToString(d) === '[object Date]';
|
|
3101
|
-
}
|
|
3102
|
-
exports.isDate = isDate;
|
|
3103
|
-
|
|
3104
|
-
function isError(e) {
|
|
3105
|
-
return isObject(e) &&
|
|
3106
|
-
(objectToString(e) === '[object Error]' || e instanceof Error);
|
|
3107
|
-
}
|
|
3108
|
-
exports.isError = isError;
|
|
3109
|
-
|
|
3110
|
-
function isFunction(arg) {
|
|
3111
|
-
return typeof arg === 'function';
|
|
3112
|
-
}
|
|
3113
|
-
exports.isFunction = isFunction;
|
|
3114
|
-
|
|
3115
|
-
function isPrimitive(arg) {
|
|
3116
|
-
return arg === null ||
|
|
3117
|
-
typeof arg === 'boolean' ||
|
|
3118
|
-
typeof arg === 'number' ||
|
|
3119
|
-
typeof arg === 'string' ||
|
|
3120
|
-
typeof arg === 'symbol' || // ES6 symbol
|
|
3121
|
-
typeof arg === 'undefined';
|
|
3122
|
-
}
|
|
3123
|
-
exports.isPrimitive = isPrimitive;
|
|
3124
|
-
|
|
3125
|
-
exports.isBuffer = require('./support/isBuffer');
|
|
3126
|
-
|
|
3127
|
-
function objectToString(o) {
|
|
3128
|
-
return Object.prototype.toString.call(o);
|
|
3129
|
-
}
|
|
3130
|
-
|
|
3131
|
-
|
|
3132
|
-
function pad(n) {
|
|
3133
|
-
return n < 10 ? '0' + n.toString(10) : n.toString(10);
|
|
3134
|
-
}
|
|
3135
|
-
|
|
3136
|
-
|
|
3137
|
-
var months = ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep',
|
|
3138
|
-
'Oct', 'Nov', 'Dec'];
|
|
3139
|
-
|
|
3140
|
-
// 26 Feb 16:19:34
|
|
3141
|
-
function timestamp() {
|
|
3142
|
-
var d = new Date();
|
|
3143
|
-
var time = [pad(d.getHours()),
|
|
3144
|
-
pad(d.getMinutes()),
|
|
3145
|
-
pad(d.getSeconds())].join(':');
|
|
3146
|
-
return [d.getDate(), months[d.getMonth()], time].join(' ');
|
|
3147
|
-
}
|
|
3148
|
-
|
|
3149
|
-
|
|
3150
|
-
// log is just a thin wrapper to console.log that prepends a timestamp
|
|
3151
|
-
exports.log = function() {
|
|
3152
|
-
console.log('%s - %s', timestamp(), exports.format.apply(exports, arguments));
|
|
3153
|
-
};
|
|
3154
|
-
|
|
3155
|
-
|
|
3156
|
-
/**
|
|
3157
|
-
* Inherit the prototype methods from one constructor into another.
|
|
3158
|
-
*
|
|
3159
|
-
* The Function.prototype.inherits from lang.js rewritten as a standalone
|
|
3160
|
-
* function (not on Function.prototype). NOTE: If this file is to be loaded
|
|
3161
|
-
* during bootstrapping this function needs to be rewritten using some native
|
|
3162
|
-
* functions as prototype setup using normal JavaScript does not work as
|
|
3163
|
-
* expected during bootstrapping (see mirror.js in r114903).
|
|
3164
|
-
*
|
|
3165
|
-
* @param {function} ctor Constructor function which needs to inherit the
|
|
3166
|
-
* prototype.
|
|
3167
|
-
* @param {function} superCtor Constructor function to inherit prototype from.
|
|
3168
|
-
*/
|
|
3169
|
-
exports.inherits = require('inherits');
|
|
3170
|
-
|
|
3171
|
-
exports._extend = function(origin, add) {
|
|
3172
|
-
// Don't do anything if add isn't an object
|
|
3173
|
-
if (!add || !isObject(add)) return origin;
|
|
3174
|
-
|
|
3175
|
-
var keys = Object.keys(add);
|
|
3176
|
-
var i = keys.length;
|
|
3177
|
-
while (i--) {
|
|
3178
|
-
origin[keys[i]] = add[keys[i]];
|
|
3179
|
-
}
|
|
3180
|
-
return origin;
|
|
3181
|
-
};
|
|
3182
|
-
|
|
3183
|
-
function hasOwnProperty(obj, prop) {
|
|
3184
|
-
return Object.prototype.hasOwnProperty.call(obj, prop);
|
|
3185
|
-
}
|
|
3186
|
-
|
|
3187
|
-
}).call(this)}).call(this,require('_process'),typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : {})
|
|
3188
|
-
},{"./support/isBuffer":9,"_process":7,"inherits":8}],11:[function(require,module,exports){
|
|
2564
|
+
},{}],7:[function(require,module,exports){
|
|
3189
2565
|
|
|
3190
2566
|
/**
|
|
3191
2567
|
* Expose `Emitter`.
|
|
@@ -3362,533 +2738,7 @@ Emitter.prototype.hasListeners = function(event){
|
|
|
3362
2738
|
return !! this.listeners(event).length;
|
|
3363
2739
|
};
|
|
3364
2740
|
|
|
3365
|
-
},{}],
|
|
3366
|
-
const util = require('util');
|
|
3367
|
-
const fs = require('fs');
|
|
3368
|
-
const path = require('path');
|
|
3369
|
-
const mkdirp = require('mkdirp');
|
|
3370
|
-
const errors = require('./errors');
|
|
3371
|
-
const interpolation = require('./interpolation');
|
|
3372
|
-
|
|
3373
|
-
/**
|
|
3374
|
-
* Regular Expression to match section headers.
|
|
3375
|
-
* @type {RegExp}
|
|
3376
|
-
* @private
|
|
3377
|
-
*/
|
|
3378
|
-
const SECTION = new RegExp(/\s*\[([^\]]+)]/);
|
|
3379
|
-
|
|
3380
|
-
/**
|
|
3381
|
-
* Regular expression to match key, value pairs.
|
|
3382
|
-
* @type {RegExp}
|
|
3383
|
-
* @private
|
|
3384
|
-
*/
|
|
3385
|
-
const KEY = new RegExp(/\s*(.*?)\s*[=:]\s*(.*)/);
|
|
3386
|
-
|
|
3387
|
-
/**
|
|
3388
|
-
* Regular expression to match comments. Either starting with a
|
|
3389
|
-
* semi-colon or a hash.
|
|
3390
|
-
* @type {RegExp}
|
|
3391
|
-
* @private
|
|
3392
|
-
*/
|
|
3393
|
-
const COMMENT = new RegExp(/^\s*[;#]/);
|
|
3394
|
-
|
|
3395
|
-
// RL1.6 Line Boundaries (for unicode)
|
|
3396
|
-
// ... it shall recognize not only CRLF, LF, CR,
|
|
3397
|
-
// but also NEL, PS and LS.
|
|
3398
|
-
const LINE_BOUNDARY = new RegExp(/\r\n|[\n\r\u0085\u2028\u2029]/g);
|
|
3399
|
-
|
|
3400
|
-
const readFileAsync = util.promisify(fs.readFile);
|
|
3401
|
-
const writeFileAsync = util.promisify(fs.writeFile);
|
|
3402
|
-
const statAsync = util.promisify(fs.stat);
|
|
3403
|
-
const mkdirAsync = util.promisify(mkdirp);
|
|
3404
|
-
|
|
3405
|
-
/**
|
|
3406
|
-
* @constructor
|
|
3407
|
-
*/
|
|
3408
|
-
function ConfigParser() {
|
|
3409
|
-
this._sections = {};
|
|
3410
|
-
}
|
|
3411
|
-
|
|
3412
|
-
/**
|
|
3413
|
-
* Returns an array of the sections.
|
|
3414
|
-
* @returns {Array}
|
|
3415
|
-
*/
|
|
3416
|
-
ConfigParser.prototype.sections = function() {
|
|
3417
|
-
return Object.keys(this._sections);
|
|
3418
|
-
};
|
|
3419
|
-
|
|
3420
|
-
/**
|
|
3421
|
-
* Adds a section named section to the instance. If the section already
|
|
3422
|
-
* exists, a DuplicateSectionError is thrown.
|
|
3423
|
-
* @param {string} section - Section Name
|
|
3424
|
-
*/
|
|
3425
|
-
ConfigParser.prototype.addSection = function(section) {
|
|
3426
|
-
if(this._sections.hasOwnProperty(section)){
|
|
3427
|
-
throw new errors.DuplicateSectionError(section)
|
|
3428
|
-
}
|
|
3429
|
-
this._sections[section] = {};
|
|
3430
|
-
};
|
|
3431
|
-
|
|
3432
|
-
/**
|
|
3433
|
-
* Indicates whether the section is present in the configuration
|
|
3434
|
-
* file.
|
|
3435
|
-
* @param {string} section - Section Name
|
|
3436
|
-
* @returns {boolean}
|
|
3437
|
-
*/
|
|
3438
|
-
ConfigParser.prototype.hasSection = function(section) {
|
|
3439
|
-
return this._sections.hasOwnProperty(section);
|
|
3440
|
-
};
|
|
3441
|
-
|
|
3442
|
-
/**
|
|
3443
|
-
* Returns an array of all keys in the specified section.
|
|
3444
|
-
* @param {string} section - Section Name
|
|
3445
|
-
* @returns {Array}
|
|
3446
|
-
*/
|
|
3447
|
-
ConfigParser.prototype.keys = function(section) {
|
|
3448
|
-
try {
|
|
3449
|
-
return Object.keys(this._sections[section]);
|
|
3450
|
-
} catch(err){
|
|
3451
|
-
throw new errors.NoSectionError(section);
|
|
3452
|
-
}
|
|
3453
|
-
};
|
|
3454
|
-
|
|
3455
|
-
/**
|
|
3456
|
-
* Indicates whether the specified key is in the section.
|
|
3457
|
-
* @param {string} section - Section Name
|
|
3458
|
-
* @param {string} key - Key Name
|
|
3459
|
-
* @returns {boolean}
|
|
3460
|
-
*/
|
|
3461
|
-
ConfigParser.prototype.hasKey = function (section, key) {
|
|
3462
|
-
return this._sections.hasOwnProperty(section) &&
|
|
3463
|
-
this._sections[section].hasOwnProperty(key);
|
|
3464
|
-
};
|
|
3465
|
-
|
|
3466
|
-
/**
|
|
3467
|
-
* Reads a file and parses the configuration data.
|
|
3468
|
-
* @param {string|Buffer|int} file - Filename or File Descriptor
|
|
3469
|
-
*/
|
|
3470
|
-
ConfigParser.prototype.read = function(file) {
|
|
3471
|
-
const lines = fs.readFileSync(file)
|
|
3472
|
-
.toString('utf8')
|
|
3473
|
-
.split(LINE_BOUNDARY);
|
|
3474
|
-
parseLines.call(this, file, lines);
|
|
3475
|
-
};
|
|
3476
|
-
|
|
3477
|
-
/**
|
|
3478
|
-
* Reads a file asynchronously and parses the configuration data.
|
|
3479
|
-
* @param {string|Buffer|int} file - Filename or File Descriptor
|
|
3480
|
-
*/
|
|
3481
|
-
ConfigParser.prototype.readAsync = async function(file) {
|
|
3482
|
-
const lines = (await readFileAsync(file))
|
|
3483
|
-
.toString('utf8')
|
|
3484
|
-
.split(LINE_BOUNDARY);
|
|
3485
|
-
parseLines.call(this, file, lines);
|
|
3486
|
-
}
|
|
3487
|
-
|
|
3488
|
-
/**
|
|
3489
|
-
* Gets the value for the key in the named section.
|
|
3490
|
-
* @param {string} section - Section Name
|
|
3491
|
-
* @param {string} key - Key Name
|
|
3492
|
-
* @param {boolean} [raw=false] - Whether or not to replace placeholders
|
|
3493
|
-
* @returns {string|undefined}
|
|
3494
|
-
*/
|
|
3495
|
-
ConfigParser.prototype.get = function(section, key, raw) {
|
|
3496
|
-
if(this._sections.hasOwnProperty(section)){
|
|
3497
|
-
if(raw){
|
|
3498
|
-
return this._sections[section][key];
|
|
3499
|
-
} else {
|
|
3500
|
-
return interpolation.interpolate(this, section, key);
|
|
3501
|
-
}
|
|
3502
|
-
}
|
|
3503
|
-
return undefined;
|
|
3504
|
-
};
|
|
3505
|
-
|
|
3506
|
-
/**
|
|
3507
|
-
* Coerces value to an integer of the specified radix.
|
|
3508
|
-
* @param {string} section - Section Name
|
|
3509
|
-
* @param {string} key - Key Name
|
|
3510
|
-
* @param {int} [radix=10] - An integer between 2 and 36 that represents the base of the string.
|
|
3511
|
-
* @returns {number|undefined|NaN}
|
|
3512
|
-
*/
|
|
3513
|
-
ConfigParser.prototype.getInt = function(section, key, radix) {
|
|
3514
|
-
if(this._sections.hasOwnProperty(section)){
|
|
3515
|
-
if(!radix) radix = 10;
|
|
3516
|
-
return parseInt(this._sections[section][key], radix);
|
|
3517
|
-
}
|
|
3518
|
-
return undefined;
|
|
3519
|
-
};
|
|
3520
|
-
|
|
3521
|
-
/**
|
|
3522
|
-
* Coerces value to a float.
|
|
3523
|
-
* @param {string} section - Section Name
|
|
3524
|
-
* @param {string} key - Key Name
|
|
3525
|
-
* @returns {number|undefined|NaN}
|
|
3526
|
-
*/
|
|
3527
|
-
ConfigParser.prototype.getFloat = function(section, key) {
|
|
3528
|
-
if(this._sections.hasOwnProperty(section)){
|
|
3529
|
-
return parseFloat(this._sections[section][key]);
|
|
3530
|
-
}
|
|
3531
|
-
return undefined;
|
|
3532
|
-
};
|
|
3533
|
-
|
|
3534
|
-
/**
|
|
3535
|
-
* Returns an object with every key, value pair for the named section.
|
|
3536
|
-
* @param {string} section - Section Name
|
|
3537
|
-
* @returns {Object}
|
|
3538
|
-
*/
|
|
3539
|
-
ConfigParser.prototype.items = function(section) {
|
|
3540
|
-
return this._sections[section];
|
|
3541
|
-
};
|
|
3542
|
-
|
|
3543
|
-
/**
|
|
3544
|
-
* Sets the given key to the specified value.
|
|
3545
|
-
* @param {string} section - Section Name
|
|
3546
|
-
* @param {string} key - Key Name
|
|
3547
|
-
* @param {*} value - New Key Value
|
|
3548
|
-
*/
|
|
3549
|
-
ConfigParser.prototype.set = function(section, key, value) {
|
|
3550
|
-
if(this._sections.hasOwnProperty(section)){
|
|
3551
|
-
this._sections[section][key] = value;
|
|
3552
|
-
}
|
|
3553
|
-
};
|
|
3554
|
-
|
|
3555
|
-
/**
|
|
3556
|
-
* Removes the property specified by key in the named section.
|
|
3557
|
-
* @param {string} section - Section Name
|
|
3558
|
-
* @param {string} key - Key Name
|
|
3559
|
-
* @returns {boolean}
|
|
3560
|
-
*/
|
|
3561
|
-
ConfigParser.prototype.removeKey = function(section, key) {
|
|
3562
|
-
// delete operator returns true if the property doesn't not exist
|
|
3563
|
-
if(this._sections.hasOwnProperty(section) &&
|
|
3564
|
-
this._sections[section].hasOwnProperty(key)){
|
|
3565
|
-
return delete this._sections[section][key];
|
|
3566
|
-
}
|
|
3567
|
-
return false;
|
|
3568
|
-
};
|
|
3569
|
-
|
|
3570
|
-
/**
|
|
3571
|
-
* Removes the named section (and associated key, value pairs).
|
|
3572
|
-
* @param {string} section - Section Name
|
|
3573
|
-
* @returns {boolean}
|
|
3574
|
-
*/
|
|
3575
|
-
ConfigParser.prototype.removeSection = function(section) {
|
|
3576
|
-
if(this._sections.hasOwnProperty(section)){
|
|
3577
|
-
return delete this._sections[section];
|
|
3578
|
-
}
|
|
3579
|
-
return false;
|
|
3580
|
-
};
|
|
3581
|
-
|
|
3582
|
-
/**
|
|
3583
|
-
* Writes the representation of the config file to the
|
|
3584
|
-
* specified file. Comments are not preserved.
|
|
3585
|
-
* @param {string|Buffer|int} file - Filename or File Descriptor
|
|
3586
|
-
* @param {bool} [createMissingDirs=false] - Whether to create the directories in the path if they don't exist
|
|
3587
|
-
*/
|
|
3588
|
-
ConfigParser.prototype.write = function(file, createMissingDirs = false) {
|
|
3589
|
-
if (createMissingDirs) {
|
|
3590
|
-
const dir = path.dirname(file);
|
|
3591
|
-
mkdirp.sync(dir);
|
|
3592
|
-
}
|
|
3593
|
-
|
|
3594
|
-
fs.writeFileSync(file, getSectionsAsString.call(this));
|
|
3595
|
-
};
|
|
3596
|
-
|
|
3597
|
-
/**
|
|
3598
|
-
* Writes the representation of the config file to the
|
|
3599
|
-
* specified file asynchronously. Comments are not preserved.
|
|
3600
|
-
* @param {string|Buffer|int} file - Filename or File Descriptor
|
|
3601
|
-
* @param {bool} [createMissingDirs=false] - Whether to create the directories in the path if they don't exist
|
|
3602
|
-
* @returns {Promise}
|
|
3603
|
-
*/
|
|
3604
|
-
ConfigParser.prototype.writeAsync = async function(file, createMissingDirs = false) {
|
|
3605
|
-
if (createMissingDirs) {
|
|
3606
|
-
const dir = path.dirname(file);
|
|
3607
|
-
await mkdirAsync(dir);
|
|
3608
|
-
}
|
|
3609
|
-
|
|
3610
|
-
await writeFileAsync(file, getSectionsAsString.call(this));
|
|
3611
|
-
}
|
|
3612
|
-
|
|
3613
|
-
function parseLines(file, lines) {
|
|
3614
|
-
let curSec = null;
|
|
3615
|
-
lines.forEach((line, lineNumber) => {
|
|
3616
|
-
if(!line || line.match(COMMENT)) return;
|
|
3617
|
-
let res = SECTION.exec(line);
|
|
3618
|
-
if(res){
|
|
3619
|
-
const header = res[1];
|
|
3620
|
-
curSec = {};
|
|
3621
|
-
this._sections[header] = curSec;
|
|
3622
|
-
} else if(!curSec) {
|
|
3623
|
-
throw new errors.MissingSectionHeaderError(file, lineNumber, line);
|
|
3624
|
-
} else {
|
|
3625
|
-
res = KEY.exec(line);
|
|
3626
|
-
if(res){
|
|
3627
|
-
const key = res[1];
|
|
3628
|
-
curSec[key] = res[2];
|
|
3629
|
-
} else {
|
|
3630
|
-
throw new errors.ParseError(file, lineNumber, line);
|
|
3631
|
-
}
|
|
3632
|
-
}
|
|
3633
|
-
});
|
|
3634
|
-
}
|
|
3635
|
-
|
|
3636
|
-
function getSectionsAsString() {
|
|
3637
|
-
let out = '';
|
|
3638
|
-
let section;
|
|
3639
|
-
for(section in this._sections){
|
|
3640
|
-
if(!this._sections.hasOwnProperty(section)) continue;
|
|
3641
|
-
out += ('[' + section + ']\n');
|
|
3642
|
-
const keys = this._sections[section];
|
|
3643
|
-
let key;
|
|
3644
|
-
for(key in keys){
|
|
3645
|
-
if(!keys.hasOwnProperty(key)) continue;
|
|
3646
|
-
let value = keys[key];
|
|
3647
|
-
out += (key + '=' + value + '\n');
|
|
3648
|
-
}
|
|
3649
|
-
out += '\n';
|
|
3650
|
-
}
|
|
3651
|
-
return out;
|
|
3652
|
-
}
|
|
3653
|
-
|
|
3654
|
-
module.exports = ConfigParser;
|
|
3655
|
-
|
|
3656
|
-
},{"./errors":13,"./interpolation":14,"fs":1,"mkdirp":15,"path":6,"util":10}],13:[function(require,module,exports){
|
|
3657
|
-
/**
|
|
3658
|
-
* Error thrown when addSection is called with a section
|
|
3659
|
-
* that already exists.
|
|
3660
|
-
* @param {string} section - Section Name
|
|
3661
|
-
* @constructor
|
|
3662
|
-
*/
|
|
3663
|
-
function DuplicateSectionError(section) {
|
|
3664
|
-
this.name = 'DuplicateSectionError';
|
|
3665
|
-
this.message = section + ' already exists';
|
|
3666
|
-
Error.captureStackTrace(this, this.constructor);
|
|
3667
|
-
}
|
|
3668
|
-
|
|
3669
|
-
/**
|
|
3670
|
-
* Error thrown when the section being accessed, does
|
|
3671
|
-
* not exist.
|
|
3672
|
-
* @param {string} section - Section Name
|
|
3673
|
-
* @constructor
|
|
3674
|
-
*/
|
|
3675
|
-
function NoSectionError(section) {
|
|
3676
|
-
this.name = this.constructor.name;
|
|
3677
|
-
this.message = 'Section ' + section + ' does not exist.';
|
|
3678
|
-
Error.captureStackTrace(this, this.constructor);
|
|
3679
|
-
}
|
|
3680
|
-
|
|
3681
|
-
/**
|
|
3682
|
-
* Error thrown when a file is being parsed.
|
|
3683
|
-
* @param {string} filename - File name
|
|
3684
|
-
* @param {int} lineNumber - Line Number
|
|
3685
|
-
* @param {string} line - Contents of the line
|
|
3686
|
-
* @constructor
|
|
3687
|
-
*/
|
|
3688
|
-
function ParseError(filename, lineNumber, line) {
|
|
3689
|
-
this.name = this.constructor.name;
|
|
3690
|
-
this.message = 'Source contains parsing errors.\nfile: ' + filename +
|
|
3691
|
-
' line: ' + lineNumber + '\n' + line;
|
|
3692
|
-
Error.captureStackTrace(this, this.constructor);
|
|
3693
|
-
}
|
|
3694
|
-
|
|
3695
|
-
/**
|
|
3696
|
-
* Error thrown when there are no section headers present
|
|
3697
|
-
* in a file.
|
|
3698
|
-
* @param {string} filename - File name
|
|
3699
|
-
* @param {int} lineNumber - Line Number
|
|
3700
|
-
* @param {string} line - Contents of the line
|
|
3701
|
-
* @constructor
|
|
3702
|
-
*/
|
|
3703
|
-
function MissingSectionHeaderError(filename, lineNumber, line) {
|
|
3704
|
-
this.name = this.constructor.name;
|
|
3705
|
-
this.message = 'File contains no section headers.\nfile: ' + filename +
|
|
3706
|
-
' line: ' + lineNumber + '\n' + line;
|
|
3707
|
-
Error.captureStackTrace(this, this.constructor);
|
|
3708
|
-
}
|
|
3709
|
-
|
|
3710
|
-
/**
|
|
3711
|
-
* Error thrown when the interpolate function exceeds the maximum recursion
|
|
3712
|
-
* depth.
|
|
3713
|
-
* @param {string} section - Section Name
|
|
3714
|
-
* @param {string} key - Key Name
|
|
3715
|
-
* @param {string} value - Key Value
|
|
3716
|
-
* @param {int} maxDepth - Maximum recursion depth
|
|
3717
|
-
* @constructor
|
|
3718
|
-
*/
|
|
3719
|
-
function MaximumInterpolationDepthError(section, key, value, maxDepth) {
|
|
3720
|
-
this.name = this.constructor.name;
|
|
3721
|
-
this.message = 'Exceeded Maximum Recursion Depth (' + maxDepth +
|
|
3722
|
-
') for key ' + key + ' in section ' + section + '\nvalue: ' + value;
|
|
3723
|
-
Error.captureStackTrace(this, this.constructor);
|
|
3724
|
-
}
|
|
3725
|
-
|
|
3726
|
-
module.exports = {
|
|
3727
|
-
DuplicateSectionError,
|
|
3728
|
-
NoSectionError,
|
|
3729
|
-
ParseError,
|
|
3730
|
-
MissingSectionHeaderError,
|
|
3731
|
-
MaximumInterpolationDepthError
|
|
3732
|
-
};
|
|
3733
|
-
},{}],14:[function(require,module,exports){
|
|
3734
|
-
const errors = require('./errors');
|
|
3735
|
-
|
|
3736
|
-
/**
|
|
3737
|
-
* Regular Expression to match placeholders.
|
|
3738
|
-
* @type {RegExp}
|
|
3739
|
-
* @private
|
|
3740
|
-
*/
|
|
3741
|
-
const PLACEHOLDER = new RegExp(/%\(([\w-]+)\)s/);
|
|
3742
|
-
|
|
3743
|
-
/**
|
|
3744
|
-
* Maximum recursion depth for parseValue
|
|
3745
|
-
* @type {number}
|
|
3746
|
-
*/
|
|
3747
|
-
const MAXIMUM_INTERPOLATION_DEPTH = 50;
|
|
3748
|
-
|
|
3749
|
-
/**
|
|
3750
|
-
* Recursively parses a string and replaces the placeholder ( %(key)s )
|
|
3751
|
-
* with the value the key points to.
|
|
3752
|
-
* @param {ParserConfig} parser - Parser Config Object
|
|
3753
|
-
* @param {string} section - Section Name
|
|
3754
|
-
* @param {string} key - Key Name
|
|
3755
|
-
*/
|
|
3756
|
-
function interpolate(parser, section, key) {
|
|
3757
|
-
return interpolateRecurse(parser, section, key, 1);
|
|
3758
|
-
}
|
|
3759
|
-
|
|
3760
|
-
/**
|
|
3761
|
-
* Interpolate Recurse
|
|
3762
|
-
* @param parser
|
|
3763
|
-
* @param section
|
|
3764
|
-
* @param key
|
|
3765
|
-
* @param depth
|
|
3766
|
-
* @private
|
|
3767
|
-
*/
|
|
3768
|
-
function interpolateRecurse(parser, section, key, depth) {
|
|
3769
|
-
let value = parser.get(section, key, true);
|
|
3770
|
-
if(depth > MAXIMUM_INTERPOLATION_DEPTH){
|
|
3771
|
-
throw new errors.MaximumInterpolationDepthError(section, key, value, MAXIMUM_INTERPOLATION_DEPTH);
|
|
3772
|
-
}
|
|
3773
|
-
let res = PLACEHOLDER.exec(value);
|
|
3774
|
-
while(res !== null){
|
|
3775
|
-
const placeholder = res[1];
|
|
3776
|
-
const rep = interpolateRecurse(parser, section, placeholder, depth + 1);
|
|
3777
|
-
// replace %(key)s with the returned value next
|
|
3778
|
-
value = value.substr(0, res.index) + rep +
|
|
3779
|
-
value.substr(res.index + res[0].length);
|
|
3780
|
-
// get next placeholder
|
|
3781
|
-
res = PLACEHOLDER.exec(value);
|
|
3782
|
-
}
|
|
3783
|
-
return value;
|
|
3784
|
-
}
|
|
3785
|
-
|
|
3786
|
-
module.exports = {
|
|
3787
|
-
interpolate,
|
|
3788
|
-
MAXIMUM_INTERPOLATION_DEPTH
|
|
3789
|
-
};
|
|
3790
|
-
},{"./errors":13}],15:[function(require,module,exports){
|
|
3791
|
-
var path = require('path');
|
|
3792
|
-
var fs = require('fs');
|
|
3793
|
-
var _0777 = parseInt('0777', 8);
|
|
3794
|
-
|
|
3795
|
-
module.exports = mkdirP.mkdirp = mkdirP.mkdirP = mkdirP;
|
|
3796
|
-
|
|
3797
|
-
function mkdirP (p, opts, f, made) {
|
|
3798
|
-
if (typeof opts === 'function') {
|
|
3799
|
-
f = opts;
|
|
3800
|
-
opts = {};
|
|
3801
|
-
}
|
|
3802
|
-
else if (!opts || typeof opts !== 'object') {
|
|
3803
|
-
opts = { mode: opts };
|
|
3804
|
-
}
|
|
3805
|
-
|
|
3806
|
-
var mode = opts.mode;
|
|
3807
|
-
var xfs = opts.fs || fs;
|
|
3808
|
-
|
|
3809
|
-
if (mode === undefined) {
|
|
3810
|
-
mode = _0777
|
|
3811
|
-
}
|
|
3812
|
-
if (!made) made = null;
|
|
3813
|
-
|
|
3814
|
-
var cb = f || function () {};
|
|
3815
|
-
p = path.resolve(p);
|
|
3816
|
-
|
|
3817
|
-
xfs.mkdir(p, mode, function (er) {
|
|
3818
|
-
if (!er) {
|
|
3819
|
-
made = made || p;
|
|
3820
|
-
return cb(null, made);
|
|
3821
|
-
}
|
|
3822
|
-
switch (er.code) {
|
|
3823
|
-
case 'ENOENT':
|
|
3824
|
-
if (path.dirname(p) === p) return cb(er);
|
|
3825
|
-
mkdirP(path.dirname(p), opts, function (er, made) {
|
|
3826
|
-
if (er) cb(er, made);
|
|
3827
|
-
else mkdirP(p, opts, cb, made);
|
|
3828
|
-
});
|
|
3829
|
-
break;
|
|
3830
|
-
|
|
3831
|
-
// In the case of any other error, just see if there's a dir
|
|
3832
|
-
// there already. If so, then hooray! If not, then something
|
|
3833
|
-
// is borked.
|
|
3834
|
-
default:
|
|
3835
|
-
xfs.stat(p, function (er2, stat) {
|
|
3836
|
-
// if the stat fails, then that's super weird.
|
|
3837
|
-
// let the original error be the failure reason.
|
|
3838
|
-
if (er2 || !stat.isDirectory()) cb(er, made)
|
|
3839
|
-
else cb(null, made);
|
|
3840
|
-
});
|
|
3841
|
-
break;
|
|
3842
|
-
}
|
|
3843
|
-
});
|
|
3844
|
-
}
|
|
3845
|
-
|
|
3846
|
-
mkdirP.sync = function sync (p, opts, made) {
|
|
3847
|
-
if (!opts || typeof opts !== 'object') {
|
|
3848
|
-
opts = { mode: opts };
|
|
3849
|
-
}
|
|
3850
|
-
|
|
3851
|
-
var mode = opts.mode;
|
|
3852
|
-
var xfs = opts.fs || fs;
|
|
3853
|
-
|
|
3854
|
-
if (mode === undefined) {
|
|
3855
|
-
mode = _0777
|
|
3856
|
-
}
|
|
3857
|
-
if (!made) made = null;
|
|
3858
|
-
|
|
3859
|
-
p = path.resolve(p);
|
|
3860
|
-
|
|
3861
|
-
try {
|
|
3862
|
-
xfs.mkdirSync(p, mode);
|
|
3863
|
-
made = made || p;
|
|
3864
|
-
}
|
|
3865
|
-
catch (err0) {
|
|
3866
|
-
switch (err0.code) {
|
|
3867
|
-
case 'ENOENT' :
|
|
3868
|
-
made = sync(path.dirname(p), opts, made);
|
|
3869
|
-
sync(p, opts, made);
|
|
3870
|
-
break;
|
|
3871
|
-
|
|
3872
|
-
// In the case of any other error, just see if there's a dir
|
|
3873
|
-
// there already. If so, then hooray! If not, then something
|
|
3874
|
-
// is borked.
|
|
3875
|
-
default:
|
|
3876
|
-
var stat;
|
|
3877
|
-
try {
|
|
3878
|
-
stat = xfs.statSync(p);
|
|
3879
|
-
}
|
|
3880
|
-
catch (err1) {
|
|
3881
|
-
throw err0;
|
|
3882
|
-
}
|
|
3883
|
-
if (!stat.isDirectory()) throw err0;
|
|
3884
|
-
break;
|
|
3885
|
-
}
|
|
3886
|
-
}
|
|
3887
|
-
|
|
3888
|
-
return made;
|
|
3889
|
-
};
|
|
3890
|
-
|
|
3891
|
-
},{"fs":1,"path":6}],16:[function(require,module,exports){
|
|
2741
|
+
},{}],8:[function(require,module,exports){
|
|
3892
2742
|
function Agent() {
|
|
3893
2743
|
this._defaults = [];
|
|
3894
2744
|
}
|
|
@@ -3910,7 +2760,7 @@ Agent.prototype._setDefaults = function(req) {
|
|
|
3910
2760
|
|
|
3911
2761
|
module.exports = Agent;
|
|
3912
2762
|
|
|
3913
|
-
},{}],
|
|
2763
|
+
},{}],9:[function(require,module,exports){
|
|
3914
2764
|
/**
|
|
3915
2765
|
* Root reference for iframes.
|
|
3916
2766
|
*/
|
|
@@ -4832,7 +3682,7 @@ request.put = function(url, data, fn) {
|
|
|
4832
3682
|
return req;
|
|
4833
3683
|
};
|
|
4834
3684
|
|
|
4835
|
-
},{"./agent-base":
|
|
3685
|
+
},{"./agent-base":8,"./is-object":10,"./request-base":11,"./response-base":12,"component-emitter":7}],10:[function(require,module,exports){
|
|
4836
3686
|
'use strict';
|
|
4837
3687
|
|
|
4838
3688
|
/**
|
|
@@ -4849,7 +3699,7 @@ function isObject(obj) {
|
|
|
4849
3699
|
|
|
4850
3700
|
module.exports = isObject;
|
|
4851
3701
|
|
|
4852
|
-
},{}],
|
|
3702
|
+
},{}],11:[function(require,module,exports){
|
|
4853
3703
|
'use strict';
|
|
4854
3704
|
|
|
4855
3705
|
/**
|
|
@@ -5545,7 +4395,7 @@ RequestBase.prototype._setTimeouts = function() {
|
|
|
5545
4395
|
}
|
|
5546
4396
|
};
|
|
5547
4397
|
|
|
5548
|
-
},{"./is-object":
|
|
4398
|
+
},{"./is-object":10}],12:[function(require,module,exports){
|
|
5549
4399
|
'use strict';
|
|
5550
4400
|
|
|
5551
4401
|
/**
|
|
@@ -5683,7 +4533,7 @@ ResponseBase.prototype._setStatusProperties = function(status){
|
|
|
5683
4533
|
this.unprocessableEntity = 422 == status;
|
|
5684
4534
|
};
|
|
5685
4535
|
|
|
5686
|
-
},{"./utils":
|
|
4536
|
+
},{"./utils":13}],13:[function(require,module,exports){
|
|
5687
4537
|
'use strict';
|
|
5688
4538
|
|
|
5689
4539
|
/**
|
|
@@ -7931,26 +6781,7 @@ class Configuration {
|
|
|
7931
6781
|
|
|
7932
6782
|
liveLoadConfig() {
|
|
7933
6783
|
// If in browser, don't read config file, use default values
|
|
7934
|
-
|
|
7935
|
-
this.configPath = '';
|
|
7936
|
-
return;
|
|
7937
|
-
}
|
|
7938
|
-
|
|
7939
|
-
this.updateConfigFromFile();
|
|
7940
|
-
|
|
7941
|
-
if (this.live_reload_config && this.live_reload_config === true) {
|
|
7942
|
-
try {
|
|
7943
|
-
const fs = require('fs');
|
|
7944
|
-
fs.watchFile(this.configPath, { persistent: false }, (eventType, filename) => {
|
|
7945
|
-
this.updateConfigFromFile();
|
|
7946
|
-
if (!this.live_reload_config) {
|
|
7947
|
-
fs.unwatchFile(this.configPath);
|
|
7948
|
-
}
|
|
7949
|
-
});
|
|
7950
|
-
} catch (err) {
|
|
7951
|
-
// do nothing
|
|
7952
|
-
}
|
|
7953
|
-
}
|
|
6784
|
+
this.configPath = '';
|
|
7954
6785
|
}
|
|
7955
6786
|
|
|
7956
6787
|
setConfigPath(path) {
|
|
@@ -7961,24 +6792,6 @@ class Configuration {
|
|
|
7961
6792
|
}
|
|
7962
6793
|
|
|
7963
6794
|
updateConfigFromFile() {
|
|
7964
|
-
const ConfigParser = require('configparser');
|
|
7965
|
-
var configparser = new ConfigParser();
|
|
7966
|
-
|
|
7967
|
-
try {
|
|
7968
|
-
configparser.read(this.configPath); // If no error catched, indicates it's INI format
|
|
7969
|
-
this.config = configparser;
|
|
7970
|
-
} catch (error) {
|
|
7971
|
-
if (error.name && error.name === 'MissingSectionHeaderError') {
|
|
7972
|
-
// Not INI format, see if it's JSON format
|
|
7973
|
-
const fs = require('fs');
|
|
7974
|
-
var configData = fs.readFileSync(this.configPath, 'utf8');
|
|
7975
|
-
this.config = {
|
|
7976
|
-
_sections: JSON.parse(configData), // To match INI data format
|
|
7977
|
-
};
|
|
7978
|
-
}
|
|
7979
|
-
}
|
|
7980
|
-
|
|
7981
|
-
if (this.config) this.updateConfigValues();
|
|
7982
6795
|
}
|
|
7983
6796
|
|
|
7984
6797
|
updateConfigValues() {
|
|
@@ -8060,7 +6873,7 @@ class Configuration {
|
|
|
8060
6873
|
|
|
8061
6874
|
/**
|
|
8062
6875
|
* @module purecloud-platform-client-v2/ApiClient
|
|
8063
|
-
* @version
|
|
6876
|
+
* @version 126.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': '126.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 126.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 126.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 126.0.0
|
|
10580
9368
|
*/
|
|
10581
9369
|
|
|
10582
9370
|
/**
|
|
@@ -13444,17 +12232,21 @@ class ArchitectApi {
|
|
|
13444
12232
|
* Updates a specific datatable by id
|
|
13445
12233
|
* Updates a schema for a datatable with the given datatableId -updates allow only new fields to be added in the schema, no changes or removals of existing fields.
|
|
13446
12234
|
* @param {String} datatableId id of datatable
|
|
12235
|
+
* @param {Object} body datatable json-schema
|
|
13447
12236
|
* @param {Object} opts Optional parameters
|
|
13448
12237
|
* @param {Object} opts.expand Expand instructions for the result
|
|
13449
|
-
* @param {Object} opts.body datatable json-schema
|
|
13450
12238
|
*/
|
|
13451
|
-
putFlowsDatatable(datatableId, opts) {
|
|
12239
|
+
putFlowsDatatable(datatableId, body, opts) {
|
|
13452
12240
|
opts = opts || {};
|
|
13453
12241
|
|
|
13454
12242
|
// verify the required parameter 'datatableId' is set
|
|
13455
12243
|
if (datatableId === undefined || datatableId === null) {
|
|
13456
12244
|
throw 'Missing the required parameter "datatableId" when calling putFlowsDatatable';
|
|
13457
12245
|
}
|
|
12246
|
+
// verify the required parameter 'body' is set
|
|
12247
|
+
if (body === undefined || body === null) {
|
|
12248
|
+
throw 'Missing the required parameter "body" when calling putFlowsDatatable';
|
|
12249
|
+
}
|
|
13458
12250
|
|
|
13459
12251
|
return this.apiClient.callApi(
|
|
13460
12252
|
'/api/v2/flows/datatables/{datatableId}',
|
|
@@ -13463,7 +12255,7 @@ class ArchitectApi {
|
|
|
13463
12255
|
{ 'expand': opts['expand'] },
|
|
13464
12256
|
{ },
|
|
13465
12257
|
{ },
|
|
13466
|
-
|
|
12258
|
+
body,
|
|
13467
12259
|
['PureCloud OAuth'],
|
|
13468
12260
|
['application/json'],
|
|
13469
12261
|
['application/json']
|
|
@@ -13568,7 +12360,7 @@ class AuditApi {
|
|
|
13568
12360
|
/**
|
|
13569
12361
|
* Audit service.
|
|
13570
12362
|
* @module purecloud-platform-client-v2/api/AuditApi
|
|
13571
|
-
* @version
|
|
12363
|
+
* @version 126.0.0
|
|
13572
12364
|
*/
|
|
13573
12365
|
|
|
13574
12366
|
/**
|
|
@@ -13739,7 +12531,7 @@ class AuthorizationApi {
|
|
|
13739
12531
|
/**
|
|
13740
12532
|
* Authorization service.
|
|
13741
12533
|
* @module purecloud-platform-client-v2/api/AuthorizationApi
|
|
13742
|
-
* @version
|
|
12534
|
+
* @version 126.0.0
|
|
13743
12535
|
*/
|
|
13744
12536
|
|
|
13745
12537
|
/**
|
|
@@ -14922,7 +13714,7 @@ class BillingApi {
|
|
|
14922
13714
|
/**
|
|
14923
13715
|
* Billing service.
|
|
14924
13716
|
* @module purecloud-platform-client-v2/api/BillingApi
|
|
14925
|
-
* @version
|
|
13717
|
+
* @version 126.0.0
|
|
14926
13718
|
*/
|
|
14927
13719
|
|
|
14928
13720
|
/**
|
|
@@ -15002,7 +13794,7 @@ class ChatApi {
|
|
|
15002
13794
|
/**
|
|
15003
13795
|
* Chat service.
|
|
15004
13796
|
* @module purecloud-platform-client-v2/api/ChatApi
|
|
15005
|
-
* @version
|
|
13797
|
+
* @version 126.0.0
|
|
15006
13798
|
*/
|
|
15007
13799
|
|
|
15008
13800
|
/**
|
|
@@ -15093,7 +13885,7 @@ class CoachingApi {
|
|
|
15093
13885
|
/**
|
|
15094
13886
|
* Coaching service.
|
|
15095
13887
|
* @module purecloud-platform-client-v2/api/CoachingApi
|
|
15096
|
-
* @version
|
|
13888
|
+
* @version 126.0.0
|
|
15097
13889
|
*/
|
|
15098
13890
|
|
|
15099
13891
|
/**
|
|
@@ -15668,7 +14460,7 @@ class ContentManagementApi {
|
|
|
15668
14460
|
/**
|
|
15669
14461
|
* ContentManagement service.
|
|
15670
14462
|
* @module purecloud-platform-client-v2/api/ContentManagementApi
|
|
15671
|
-
* @version
|
|
14463
|
+
* @version 126.0.0
|
|
15672
14464
|
*/
|
|
15673
14465
|
|
|
15674
14466
|
/**
|
|
@@ -16808,7 +15600,7 @@ class ConversationsApi {
|
|
|
16808
15600
|
/**
|
|
16809
15601
|
* Conversations service.
|
|
16810
15602
|
* @module purecloud-platform-client-v2/api/ConversationsApi
|
|
16811
|
-
* @version
|
|
15603
|
+
* @version 126.0.0
|
|
16812
15604
|
*/
|
|
16813
15605
|
|
|
16814
15606
|
/**
|
|
@@ -19877,7 +18669,7 @@ class ConversationsApi {
|
|
|
19877
18669
|
}
|
|
19878
18670
|
|
|
19879
18671
|
/**
|
|
19880
|
-
* Attempts to manually assign a specified conversation to a specified
|
|
18672
|
+
* Attempts to manually assign a specified conversation to a specified user. Ignores bullseye ring, PAR score, skills, and languages.
|
|
19881
18673
|
*
|
|
19882
18674
|
* @param {String} conversationId conversation ID
|
|
19883
18675
|
* @param {Object} body Targeted user
|
|
@@ -21197,7 +19989,7 @@ class DataExtensionsApi {
|
|
|
21197
19989
|
/**
|
|
21198
19990
|
* DataExtensions service.
|
|
21199
19991
|
* @module purecloud-platform-client-v2/api/DataExtensionsApi
|
|
21200
|
-
* @version
|
|
19992
|
+
* @version 126.0.0
|
|
21201
19993
|
*/
|
|
21202
19994
|
|
|
21203
19995
|
/**
|
|
@@ -21283,7 +20075,7 @@ class ExternalContactsApi {
|
|
|
21283
20075
|
/**
|
|
21284
20076
|
* ExternalContacts service.
|
|
21285
20077
|
* @module purecloud-platform-client-v2/api/ExternalContactsApi
|
|
21286
|
-
* @version
|
|
20078
|
+
* @version 126.0.0
|
|
21287
20079
|
*/
|
|
21288
20080
|
|
|
21289
20081
|
/**
|
|
@@ -23026,7 +21818,7 @@ class FaxApi {
|
|
|
23026
21818
|
/**
|
|
23027
21819
|
* Fax service.
|
|
23028
21820
|
* @module purecloud-platform-client-v2/api/FaxApi
|
|
23029
|
-
* @version
|
|
21821
|
+
* @version 126.0.0
|
|
23030
21822
|
*/
|
|
23031
21823
|
|
|
23032
21824
|
/**
|
|
@@ -23197,7 +21989,7 @@ class FlowsApi {
|
|
|
23197
21989
|
/**
|
|
23198
21990
|
* Flows service.
|
|
23199
21991
|
* @module purecloud-platform-client-v2/api/FlowsApi
|
|
23200
|
-
* @version
|
|
21992
|
+
* @version 126.0.0
|
|
23201
21993
|
*/
|
|
23202
21994
|
|
|
23203
21995
|
/**
|
|
@@ -23268,7 +22060,7 @@ class GamificationApi {
|
|
|
23268
22060
|
/**
|
|
23269
22061
|
* Gamification service.
|
|
23270
22062
|
* @module purecloud-platform-client-v2/api/GamificationApi
|
|
23271
|
-
* @version
|
|
22063
|
+
* @version 126.0.0
|
|
23272
22064
|
*/
|
|
23273
22065
|
|
|
23274
22066
|
/**
|
|
@@ -24574,7 +23366,7 @@ class GeneralDataProtectionRegulationApi {
|
|
|
24574
23366
|
/**
|
|
24575
23367
|
* GeneralDataProtectionRegulation service.
|
|
24576
23368
|
* @module purecloud-platform-client-v2/api/GeneralDataProtectionRegulationApi
|
|
24577
|
-
* @version
|
|
23369
|
+
* @version 126.0.0
|
|
24578
23370
|
*/
|
|
24579
23371
|
|
|
24580
23372
|
/**
|
|
@@ -24704,7 +23496,7 @@ class GeolocationApi {
|
|
|
24704
23496
|
/**
|
|
24705
23497
|
* Geolocation service.
|
|
24706
23498
|
* @module purecloud-platform-client-v2/api/GeolocationApi
|
|
24707
|
-
* @version
|
|
23499
|
+
* @version 126.0.0
|
|
24708
23500
|
*/
|
|
24709
23501
|
|
|
24710
23502
|
/**
|
|
@@ -24835,7 +23627,7 @@ class GreetingsApi {
|
|
|
24835
23627
|
/**
|
|
24836
23628
|
* Greetings service.
|
|
24837
23629
|
* @module purecloud-platform-client-v2/api/GreetingsApi
|
|
24838
|
-
* @version
|
|
23630
|
+
* @version 126.0.0
|
|
24839
23631
|
*/
|
|
24840
23632
|
|
|
24841
23633
|
/**
|
|
@@ -25290,7 +24082,7 @@ class GroupsApi {
|
|
|
25290
24082
|
/**
|
|
25291
24083
|
* Groups service.
|
|
25292
24084
|
* @module purecloud-platform-client-v2/api/GroupsApi
|
|
25293
|
-
* @version
|
|
24085
|
+
* @version 126.0.0
|
|
25294
24086
|
*/
|
|
25295
24087
|
|
|
25296
24088
|
/**
|
|
@@ -25695,7 +24487,7 @@ class IdentityProviderApi {
|
|
|
25695
24487
|
/**
|
|
25696
24488
|
* IdentityProvider service.
|
|
25697
24489
|
* @module purecloud-platform-client-v2/api/IdentityProviderApi
|
|
25698
|
-
* @version
|
|
24490
|
+
* @version 126.0.0
|
|
25699
24491
|
*/
|
|
25700
24492
|
|
|
25701
24493
|
/**
|
|
@@ -26451,7 +25243,7 @@ class IntegrationsApi {
|
|
|
26451
25243
|
/**
|
|
26452
25244
|
* Integrations service.
|
|
26453
25245
|
* @module purecloud-platform-client-v2/api/IntegrationsApi
|
|
26454
|
-
* @version
|
|
25246
|
+
* @version 126.0.0
|
|
26455
25247
|
*/
|
|
26456
25248
|
|
|
26457
25249
|
/**
|
|
@@ -28097,7 +26889,7 @@ class JourneyApi {
|
|
|
28097
26889
|
/**
|
|
28098
26890
|
* Journey service.
|
|
28099
26891
|
* @module purecloud-platform-client-v2/api/JourneyApi
|
|
28100
|
-
* @version
|
|
26892
|
+
* @version 126.0.0
|
|
28101
26893
|
*/
|
|
28102
26894
|
|
|
28103
26895
|
/**
|
|
@@ -28808,7 +27600,7 @@ class KnowledgeApi {
|
|
|
28808
27600
|
/**
|
|
28809
27601
|
* Knowledge service.
|
|
28810
27602
|
* @module purecloud-platform-client-v2/api/KnowledgeApi
|
|
28811
|
-
* @version
|
|
27603
|
+
* @version 126.0.0
|
|
28812
27604
|
*/
|
|
28813
27605
|
|
|
28814
27606
|
/**
|
|
@@ -29098,6 +27890,8 @@ class KnowledgeApi {
|
|
|
29098
27890
|
* @param {String} opts.pageSize Number of entities to return. Maximum of 200.
|
|
29099
27891
|
* @param {String} opts.categories Filter by categories ids, comma separated values expected.
|
|
29100
27892
|
* @param {String} opts.title Filter by document title.
|
|
27893
|
+
* @param {Object} opts.sortBy Sort by.
|
|
27894
|
+
* @param {Object} opts.sortOrder Sort Order.
|
|
29101
27895
|
* @param {Array.<String>} opts.documentIds Comma-separated list of document identifiers to fetch by.
|
|
29102
27896
|
*/
|
|
29103
27897
|
getKnowledgeKnowledgebaseLanguageDocuments(knowledgeBaseId, languageCode, opts) {
|
|
@@ -29116,7 +27910,7 @@ class KnowledgeApi {
|
|
|
29116
27910
|
'/api/v2/knowledge/knowledgebases/{knowledgeBaseId}/languages/{languageCode}/documents',
|
|
29117
27911
|
'GET',
|
|
29118
27912
|
{ 'knowledgeBaseId': knowledgeBaseId,'languageCode': languageCode },
|
|
29119
|
-
{ 'before': opts['before'],'after': opts['after'],'limit': opts['limit'],'pageSize': opts['pageSize'],'categories': opts['categories'],'title': opts['title'],'documentIds': this.apiClient.buildCollectionParam(opts['documentIds'], 'multi') },
|
|
27913
|
+
{ 'before': opts['before'],'after': opts['after'],'limit': opts['limit'],'pageSize': opts['pageSize'],'categories': opts['categories'],'title': opts['title'],'sortBy': opts['sortBy'],'sortOrder': opts['sortOrder'],'documentIds': this.apiClient.buildCollectionParam(opts['documentIds'], 'multi') },
|
|
29120
27914
|
{ },
|
|
29121
27915
|
{ },
|
|
29122
27916
|
null,
|
|
@@ -29245,6 +28039,8 @@ class KnowledgeApi {
|
|
|
29245
28039
|
* @param {String} opts.name Filter by Name.
|
|
29246
28040
|
* @param {Object} opts.coreLanguage Filter by core language.
|
|
29247
28041
|
* @param {Boolean} opts.published Filter by published status.
|
|
28042
|
+
* @param {Object} opts.sortBy Sort by.
|
|
28043
|
+
* @param {Object} opts.sortOrder Sort Order.
|
|
29248
28044
|
*/
|
|
29249
28045
|
getKnowledgeKnowledgebases(opts) {
|
|
29250
28046
|
opts = opts || {};
|
|
@@ -29254,7 +28050,7 @@ class KnowledgeApi {
|
|
|
29254
28050
|
'/api/v2/knowledge/knowledgebases',
|
|
29255
28051
|
'GET',
|
|
29256
28052
|
{ },
|
|
29257
|
-
{ 'before': opts['before'],'after': opts['after'],'limit': opts['limit'],'pageSize': opts['pageSize'],'name': opts['name'],'coreLanguage': opts['coreLanguage'],'published': opts['published'] },
|
|
28053
|
+
{ 'before': opts['before'],'after': opts['after'],'limit': opts['limit'],'pageSize': opts['pageSize'],'name': opts['name'],'coreLanguage': opts['coreLanguage'],'published': opts['published'],'sortBy': opts['sortBy'],'sortOrder': opts['sortOrder'] },
|
|
29258
28054
|
{ },
|
|
29259
28055
|
{ },
|
|
29260
28056
|
null,
|
|
@@ -29704,7 +28500,7 @@ class LanguageUnderstandingApi {
|
|
|
29704
28500
|
/**
|
|
29705
28501
|
* LanguageUnderstanding service.
|
|
29706
28502
|
* @module purecloud-platform-client-v2/api/LanguageUnderstandingApi
|
|
29707
|
-
* @version
|
|
28503
|
+
* @version 126.0.0
|
|
29708
28504
|
*/
|
|
29709
28505
|
|
|
29710
28506
|
/**
|
|
@@ -30270,7 +29066,7 @@ class LanguageUnderstandingApi {
|
|
|
30270
29066
|
}
|
|
30271
29067
|
|
|
30272
29068
|
/**
|
|
30273
|
-
* Save information for the draft
|
|
29069
|
+
* Save information for the draft. Either topic draft or intent draft should be sent.
|
|
30274
29070
|
*
|
|
30275
29071
|
* @param {String} minerId Miner ID
|
|
30276
29072
|
* @param {String} draftId Draft ID
|
|
@@ -30514,7 +29310,7 @@ class LanguageUnderstandingApi {
|
|
|
30514
29310
|
}
|
|
30515
29311
|
|
|
30516
29312
|
/**
|
|
30517
|
-
* 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.
|
|
30518
29314
|
*
|
|
30519
29315
|
* @param {String} minerId Miner ID
|
|
30520
29316
|
* @param {Object} opts Optional parameters
|
|
@@ -30608,7 +29404,7 @@ class LanguagesApi {
|
|
|
30608
29404
|
/**
|
|
30609
29405
|
* Languages service.
|
|
30610
29406
|
* @module purecloud-platform-client-v2/api/LanguagesApi
|
|
30611
|
-
* @version
|
|
29407
|
+
* @version 126.0.0
|
|
30612
29408
|
*/
|
|
30613
29409
|
|
|
30614
29410
|
/**
|
|
@@ -30876,7 +29672,7 @@ class LearningApi {
|
|
|
30876
29672
|
/**
|
|
30877
29673
|
* Learning service.
|
|
30878
29674
|
* @module purecloud-platform-client-v2/api/LearningApi
|
|
30879
|
-
* @version
|
|
29675
|
+
* @version 126.0.0
|
|
30880
29676
|
*/
|
|
30881
29677
|
|
|
30882
29678
|
/**
|
|
@@ -31467,7 +30263,7 @@ class LicenseApi {
|
|
|
31467
30263
|
/**
|
|
31468
30264
|
* License service.
|
|
31469
30265
|
* @module purecloud-platform-client-v2/api/LicenseApi
|
|
31470
|
-
* @version
|
|
30266
|
+
* @version 126.0.0
|
|
31471
30267
|
*/
|
|
31472
30268
|
|
|
31473
30269
|
/**
|
|
@@ -31705,7 +30501,7 @@ class LocationsApi {
|
|
|
31705
30501
|
/**
|
|
31706
30502
|
* Locations service.
|
|
31707
30503
|
* @module purecloud-platform-client-v2/api/LocationsApi
|
|
31708
|
-
* @version
|
|
30504
|
+
* @version 126.0.0
|
|
31709
30505
|
*/
|
|
31710
30506
|
|
|
31711
30507
|
/**
|
|
@@ -31941,7 +30737,7 @@ class MobileDevicesApi {
|
|
|
31941
30737
|
/**
|
|
31942
30738
|
* MobileDevices service.
|
|
31943
30739
|
* @module purecloud-platform-client-v2/api/MobileDevicesApi
|
|
31944
|
-
* @version
|
|
30740
|
+
* @version 126.0.0
|
|
31945
30741
|
*/
|
|
31946
30742
|
|
|
31947
30743
|
/**
|
|
@@ -32092,7 +30888,7 @@ class NotificationsApi {
|
|
|
32092
30888
|
/**
|
|
32093
30889
|
* Notifications service.
|
|
32094
30890
|
* @module purecloud-platform-client-v2/api/NotificationsApi
|
|
32095
|
-
* @version
|
|
30891
|
+
* @version 126.0.0
|
|
32096
30892
|
*/
|
|
32097
30893
|
|
|
32098
30894
|
/**
|
|
@@ -32317,7 +31113,7 @@ class OAuthApi {
|
|
|
32317
31113
|
/**
|
|
32318
31114
|
* OAuth service.
|
|
32319
31115
|
* @module purecloud-platform-client-v2/api/OAuthApi
|
|
32320
|
-
* @version
|
|
31116
|
+
* @version 126.0.0
|
|
32321
31117
|
*/
|
|
32322
31118
|
|
|
32323
31119
|
/**
|
|
@@ -32675,7 +31471,7 @@ class ObjectsApi {
|
|
|
32675
31471
|
/**
|
|
32676
31472
|
* Objects service.
|
|
32677
31473
|
* @module purecloud-platform-client-v2/api/ObjectsApi
|
|
32678
|
-
* @version
|
|
31474
|
+
* @version 126.0.0
|
|
32679
31475
|
*/
|
|
32680
31476
|
|
|
32681
31477
|
/**
|
|
@@ -32946,7 +31742,7 @@ class OrganizationApi {
|
|
|
32946
31742
|
/**
|
|
32947
31743
|
* Organization service.
|
|
32948
31744
|
* @module purecloud-platform-client-v2/api/OrganizationApi
|
|
32949
|
-
* @version
|
|
31745
|
+
* @version 126.0.0
|
|
32950
31746
|
*/
|
|
32951
31747
|
|
|
32952
31748
|
/**
|
|
@@ -33349,7 +32145,7 @@ class OrganizationAuthorizationApi {
|
|
|
33349
32145
|
/**
|
|
33350
32146
|
* OrganizationAuthorization service.
|
|
33351
32147
|
* @module purecloud-platform-client-v2/api/OrganizationAuthorizationApi
|
|
33352
|
-
* @version
|
|
32148
|
+
* @version 126.0.0
|
|
33353
32149
|
*/
|
|
33354
32150
|
|
|
33355
32151
|
/**
|
|
@@ -33389,6 +32185,36 @@ class OrganizationAuthorizationApi {
|
|
|
33389
32185
|
);
|
|
33390
32186
|
}
|
|
33391
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
|
+
|
|
33392
32218
|
/**
|
|
33393
32219
|
* Delete Trustee User
|
|
33394
32220
|
*
|
|
@@ -33474,6 +32300,36 @@ class OrganizationAuthorizationApi {
|
|
|
33474
32300
|
);
|
|
33475
32301
|
}
|
|
33476
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
|
+
|
|
33477
32333
|
/**
|
|
33478
32334
|
* Delete Trustee User
|
|
33479
32335
|
*
|
|
@@ -33554,6 +32410,31 @@ class OrganizationAuthorizationApi {
|
|
|
33554
32410
|
);
|
|
33555
32411
|
}
|
|
33556
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
|
+
|
|
33557
32438
|
/**
|
|
33558
32439
|
* Get Trustee User
|
|
33559
32440
|
*
|
|
@@ -33669,6 +32550,26 @@ class OrganizationAuthorizationApi {
|
|
|
33669
32550
|
);
|
|
33670
32551
|
}
|
|
33671
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
|
+
|
|
33672
32573
|
/**
|
|
33673
32574
|
* Get Org Trust
|
|
33674
32575
|
*
|
|
@@ -33694,6 +32595,61 @@ class OrganizationAuthorizationApi {
|
|
|
33694
32595
|
);
|
|
33695
32596
|
}
|
|
33696
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
|
+
|
|
33697
32653
|
/**
|
|
33698
32654
|
* Get Trustee User
|
|
33699
32655
|
*
|
|
@@ -33891,6 +32847,31 @@ class OrganizationAuthorizationApi {
|
|
|
33891
32847
|
);
|
|
33892
32848
|
}
|
|
33893
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
|
+
|
|
33894
32875
|
/**
|
|
33895
32876
|
* Get Org Trustor Audits
|
|
33896
32877
|
*
|
|
@@ -34023,6 +33004,36 @@ class OrganizationAuthorizationApi {
|
|
|
34023
33004
|
);
|
|
34024
33005
|
}
|
|
34025
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
|
+
|
|
34026
33037
|
/**
|
|
34027
33038
|
* Add a Trustee user to the trust.
|
|
34028
33039
|
*
|
|
@@ -34059,7 +33070,7 @@ class OutboundApi {
|
|
|
34059
33070
|
/**
|
|
34060
33071
|
* Outbound service.
|
|
34061
33072
|
* @module purecloud-platform-client-v2/api/OutboundApi
|
|
34062
|
-
* @version
|
|
33073
|
+
* @version 126.0.0
|
|
34063
33074
|
*/
|
|
34064
33075
|
|
|
34065
33076
|
/**
|
|
@@ -37085,7 +36096,7 @@ class PresenceApi {
|
|
|
37085
36096
|
/**
|
|
37086
36097
|
* Presence service.
|
|
37087
36098
|
* @module purecloud-platform-client-v2/api/PresenceApi
|
|
37088
|
-
* @version
|
|
36099
|
+
* @version 126.0.0
|
|
37089
36100
|
*/
|
|
37090
36101
|
|
|
37091
36102
|
/**
|
|
@@ -37457,7 +36468,7 @@ class QualityApi {
|
|
|
37457
36468
|
/**
|
|
37458
36469
|
* Quality service.
|
|
37459
36470
|
* @module purecloud-platform-client-v2/api/QualityApi
|
|
37460
|
-
* @version
|
|
36471
|
+
* @version 126.0.0
|
|
37461
36472
|
*/
|
|
37462
36473
|
|
|
37463
36474
|
/**
|
|
@@ -37830,7 +36841,7 @@ class QualityApi {
|
|
|
37830
36841
|
|
|
37831
36842
|
/**
|
|
37832
36843
|
* Queries Evaluations and returns a paged list
|
|
37833
|
-
* 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.
|
|
37834
36845
|
* @param {Object} opts Optional parameters
|
|
37835
36846
|
* @param {Number} opts.pageSize The total page size requested (default to 25)
|
|
37836
36847
|
* @param {Number} opts.pageNumber The page number requested (default to 1)
|
|
@@ -38985,7 +37996,7 @@ class RecordingApi {
|
|
|
38985
37996
|
/**
|
|
38986
37997
|
* Recording service.
|
|
38987
37998
|
* @module purecloud-platform-client-v2/api/RecordingApi
|
|
38988
|
-
* @version
|
|
37999
|
+
* @version 126.0.0
|
|
38989
38000
|
*/
|
|
38990
38001
|
|
|
38991
38002
|
/**
|
|
@@ -40504,7 +39515,7 @@ class ResponseManagementApi {
|
|
|
40504
39515
|
/**
|
|
40505
39516
|
* ResponseManagement service.
|
|
40506
39517
|
* @module purecloud-platform-client-v2/api/ResponseManagementApi
|
|
40507
|
-
* @version
|
|
39518
|
+
* @version 126.0.0
|
|
40508
39519
|
*/
|
|
40509
39520
|
|
|
40510
39521
|
/**
|
|
@@ -40829,7 +39840,7 @@ class RoutingApi {
|
|
|
40829
39840
|
/**
|
|
40830
39841
|
* Routing service.
|
|
40831
39842
|
* @module purecloud-platform-client-v2/api/RoutingApi
|
|
40832
|
-
* @version
|
|
39843
|
+
* @version 126.0.0
|
|
40833
39844
|
*/
|
|
40834
39845
|
|
|
40835
39846
|
/**
|
|
@@ -41142,8 +40153,12 @@ class RoutingApi {
|
|
|
41142
40153
|
* Delete a phone number provisioned for SMS.
|
|
41143
40154
|
*
|
|
41144
40155
|
* @param {String} addressId Address ID
|
|
40156
|
+
* @param {Object} opts Optional parameters
|
|
40157
|
+
* @param {Boolean} opts.async Delete a phone number for SMS in an asynchronous manner. If the async parameter value is true, this initiates the deletion of a provisioned phone number. (default to false)
|
|
41145
40158
|
*/
|
|
41146
|
-
deleteRoutingSmsPhonenumber(addressId) {
|
|
40159
|
+
deleteRoutingSmsPhonenumber(addressId, opts) {
|
|
40160
|
+
opts = opts || {};
|
|
40161
|
+
|
|
41147
40162
|
// verify the required parameter 'addressId' is set
|
|
41148
40163
|
if (addressId === undefined || addressId === null) {
|
|
41149
40164
|
throw 'Missing the required parameter "addressId" when calling deleteRoutingSmsPhonenumber';
|
|
@@ -41153,7 +40168,7 @@ class RoutingApi {
|
|
|
41153
40168
|
'/api/v2/routing/sms/phonenumbers/{addressId}',
|
|
41154
40169
|
'DELETE',
|
|
41155
40170
|
{ 'addressId': addressId },
|
|
41156
|
-
{
|
|
40171
|
+
{ 'async': opts['async'] },
|
|
41157
40172
|
{ },
|
|
41158
40173
|
{ },
|
|
41159
40174
|
null,
|
|
@@ -41981,12 +40996,11 @@ class RoutingApi {
|
|
|
41981
40996
|
}
|
|
41982
40997
|
|
|
41983
40998
|
/**
|
|
41984
|
-
* Get a paged listing of simplified queue objects. Can be used to get a digest of all queues in an organization.
|
|
40999
|
+
* Get a paged listing of simplified queue objects, sorted by name. Can be used to get a digest of all queues in an organization.
|
|
41985
41000
|
*
|
|
41986
41001
|
* @param {Object} opts Optional parameters
|
|
41987
41002
|
* @param {Number} opts.pageSize Page size [max value is 500] (default to 25)
|
|
41988
41003
|
* @param {Number} opts.pageNumber Page number (default to 1)
|
|
41989
|
-
* @param {Object} opts.sortBy Sort by (default to name)
|
|
41990
41004
|
* @param {Object} opts.sortOrder Sort order (default to asc)
|
|
41991
41005
|
*/
|
|
41992
41006
|
getRoutingQueuesDivisionviewsAll(opts) {
|
|
@@ -41997,7 +41011,7 @@ class RoutingApi {
|
|
|
41997
41011
|
'/api/v2/routing/queues/divisionviews/all',
|
|
41998
41012
|
'GET',
|
|
41999
41013
|
{ },
|
|
42000
|
-
{ 'pageSize': opts['pageSize'],'pageNumber': opts['pageNumber'],'
|
|
41014
|
+
{ 'pageSize': opts['pageSize'],'pageNumber': opts['pageNumber'],'sortOrder': opts['sortOrder'] },
|
|
42001
41015
|
{ },
|
|
42002
41016
|
{ },
|
|
42003
41017
|
null,
|
|
@@ -42481,7 +41495,7 @@ class RoutingApi {
|
|
|
42481
41495
|
|
|
42482
41496
|
/**
|
|
42483
41497
|
* Update attributes of an in-queue conversation
|
|
42484
|
-
* Returns an object indicating the updated values of all settable attributes. Supported attributes:
|
|
41498
|
+
* Returns an object indicating the updated values of all settable attributes. Supported attributes: skillIds, languageId, and priority.
|
|
42485
41499
|
* @param {String} conversationId Conversation ID
|
|
42486
41500
|
* @param {Object} body Conversation Attributes
|
|
42487
41501
|
*/
|
|
@@ -43300,8 +42314,12 @@ class RoutingApi {
|
|
|
43300
42314
|
* Provision a phone number for SMS
|
|
43301
42315
|
*
|
|
43302
42316
|
* @param {Object} body SmsPhoneNumber
|
|
42317
|
+
* @param {Object} opts Optional parameters
|
|
42318
|
+
* @param {Boolean} opts.async Provision a new phone number for SMS in an asynchronous manner. If the async parameter value is true, this initiates the provisioning of a new phone number. Check the phoneNumber's provisioningStatus for completion of this request. (default to false)
|
|
43303
42319
|
*/
|
|
43304
|
-
postRoutingSmsPhonenumbers(body) {
|
|
42320
|
+
postRoutingSmsPhonenumbers(body, opts) {
|
|
42321
|
+
opts = opts || {};
|
|
42322
|
+
|
|
43305
42323
|
// verify the required parameter 'body' is set
|
|
43306
42324
|
if (body === undefined || body === null) {
|
|
43307
42325
|
throw 'Missing the required parameter "body" when calling postRoutingSmsPhonenumbers';
|
|
@@ -43311,7 +42329,7 @@ class RoutingApi {
|
|
|
43311
42329
|
'/api/v2/routing/sms/phonenumbers',
|
|
43312
42330
|
'POST',
|
|
43313
42331
|
{ },
|
|
43314
|
-
{
|
|
42332
|
+
{ 'async': opts['async'] },
|
|
43315
42333
|
{ },
|
|
43316
42334
|
{ },
|
|
43317
42335
|
body,
|
|
@@ -43556,8 +42574,12 @@ class RoutingApi {
|
|
|
43556
42574
|
*
|
|
43557
42575
|
* @param {String} addressId Address ID
|
|
43558
42576
|
* @param {Object} body SmsPhoneNumber
|
|
42577
|
+
* @param {Object} opts Optional parameters
|
|
42578
|
+
* @param {Boolean} opts.async Update an existing phone number for SMS in an asynchronous manner. If the async parameter value is true, this initiates the update of a provisioned phone number. Check the phoneNumber's provisioningStatus for the progress of this request. (default to false)
|
|
43559
42579
|
*/
|
|
43560
|
-
putRoutingSmsPhonenumber(addressId, body) {
|
|
42580
|
+
putRoutingSmsPhonenumber(addressId, body, opts) {
|
|
42581
|
+
opts = opts || {};
|
|
42582
|
+
|
|
43561
42583
|
// verify the required parameter 'addressId' is set
|
|
43562
42584
|
if (addressId === undefined || addressId === null) {
|
|
43563
42585
|
throw 'Missing the required parameter "addressId" when calling putRoutingSmsPhonenumber';
|
|
@@ -43571,7 +42593,7 @@ class RoutingApi {
|
|
|
43571
42593
|
'/api/v2/routing/sms/phonenumbers/{addressId}',
|
|
43572
42594
|
'PUT',
|
|
43573
42595
|
{ 'addressId': addressId },
|
|
43574
|
-
{
|
|
42596
|
+
{ 'async': opts['async'] },
|
|
43575
42597
|
{ },
|
|
43576
42598
|
{ },
|
|
43577
42599
|
body,
|
|
@@ -43737,7 +42759,7 @@ class SCIMApi {
|
|
|
43737
42759
|
/**
|
|
43738
42760
|
* SCIM service.
|
|
43739
42761
|
* @module purecloud-platform-client-v2/api/SCIMApi
|
|
43740
|
-
* @version
|
|
42762
|
+
* @version 126.0.0
|
|
43741
42763
|
*/
|
|
43742
42764
|
|
|
43743
42765
|
/**
|
|
@@ -44614,7 +43636,7 @@ class ScriptsApi {
|
|
|
44614
43636
|
/**
|
|
44615
43637
|
* Scripts service.
|
|
44616
43638
|
* @module purecloud-platform-client-v2/api/ScriptsApi
|
|
44617
|
-
* @version
|
|
43639
|
+
* @version 126.0.0
|
|
44618
43640
|
*/
|
|
44619
43641
|
|
|
44620
43642
|
/**
|
|
@@ -44967,7 +43989,7 @@ class SearchApi {
|
|
|
44967
43989
|
/**
|
|
44968
43990
|
* Search service.
|
|
44969
43991
|
* @module purecloud-platform-client-v2/api/SearchApi
|
|
44970
|
-
* @version
|
|
43992
|
+
* @version 126.0.0
|
|
44971
43993
|
*/
|
|
44972
43994
|
|
|
44973
43995
|
/**
|
|
@@ -45502,7 +44524,7 @@ class SpeechTextAnalyticsApi {
|
|
|
45502
44524
|
/**
|
|
45503
44525
|
* SpeechTextAnalytics service.
|
|
45504
44526
|
* @module purecloud-platform-client-v2/api/SpeechTextAnalyticsApi
|
|
45505
|
-
* @version
|
|
44527
|
+
* @version 126.0.0
|
|
45506
44528
|
*/
|
|
45507
44529
|
|
|
45508
44530
|
/**
|
|
@@ -45546,6 +44568,51 @@ class SpeechTextAnalyticsApi {
|
|
|
45546
44568
|
);
|
|
45547
44569
|
}
|
|
45548
44570
|
|
|
44571
|
+
/**
|
|
44572
|
+
* Delete All Speech & Text Analytics SentimentFeedback
|
|
44573
|
+
*
|
|
44574
|
+
*/
|
|
44575
|
+
deleteSpeechandtextanalyticsSentimentfeedback() {
|
|
44576
|
+
|
|
44577
|
+
return this.apiClient.callApi(
|
|
44578
|
+
'/api/v2/speechandtextanalytics/sentimentfeedback',
|
|
44579
|
+
'DELETE',
|
|
44580
|
+
{ },
|
|
44581
|
+
{ },
|
|
44582
|
+
{ },
|
|
44583
|
+
{ },
|
|
44584
|
+
null,
|
|
44585
|
+
['PureCloud OAuth'],
|
|
44586
|
+
['application/json'],
|
|
44587
|
+
['application/json']
|
|
44588
|
+
);
|
|
44589
|
+
}
|
|
44590
|
+
|
|
44591
|
+
/**
|
|
44592
|
+
* Delete a Speech & Text Analytics SentimentFeedback by Id
|
|
44593
|
+
*
|
|
44594
|
+
* @param {String} sentimentFeedbackId The Id of the SentimentFeedback
|
|
44595
|
+
*/
|
|
44596
|
+
deleteSpeechandtextanalyticsSentimentfeedbackSentimentFeedbackId(sentimentFeedbackId) {
|
|
44597
|
+
// verify the required parameter 'sentimentFeedbackId' is set
|
|
44598
|
+
if (sentimentFeedbackId === undefined || sentimentFeedbackId === null) {
|
|
44599
|
+
throw 'Missing the required parameter "sentimentFeedbackId" when calling deleteSpeechandtextanalyticsSentimentfeedbackSentimentFeedbackId';
|
|
44600
|
+
}
|
|
44601
|
+
|
|
44602
|
+
return this.apiClient.callApi(
|
|
44603
|
+
'/api/v2/speechandtextanalytics/sentimentfeedback/{sentimentFeedbackId}',
|
|
44604
|
+
'DELETE',
|
|
44605
|
+
{ 'sentimentFeedbackId': sentimentFeedbackId },
|
|
44606
|
+
{ },
|
|
44607
|
+
{ },
|
|
44608
|
+
{ },
|
|
44609
|
+
null,
|
|
44610
|
+
['PureCloud OAuth'],
|
|
44611
|
+
['application/json'],
|
|
44612
|
+
['application/json']
|
|
44613
|
+
);
|
|
44614
|
+
}
|
|
44615
|
+
|
|
45549
44616
|
/**
|
|
45550
44617
|
* Delete a Speech & Text Analytics topic by id
|
|
45551
44618
|
*
|
|
@@ -45628,7 +44695,7 @@ class SpeechTextAnalyticsApi {
|
|
|
45628
44695
|
|
|
45629
44696
|
/**
|
|
45630
44697
|
* Get list of supported Speech & Text Analytics dialects
|
|
45631
|
-
*
|
|
44698
|
+
* This api has been deprecated. Use api/v2/topics/dialects instead
|
|
45632
44699
|
*/
|
|
45633
44700
|
getSpeechandtextanalyticsDialects() {
|
|
45634
44701
|
|
|
@@ -45821,6 +44888,30 @@ class SpeechTextAnalyticsApi {
|
|
|
45821
44888
|
);
|
|
45822
44889
|
}
|
|
45823
44890
|
|
|
44891
|
+
/**
|
|
44892
|
+
* Get the list of Speech & Text Analytics SentimentFeedback
|
|
44893
|
+
*
|
|
44894
|
+
* @param {Object} opts Optional parameters
|
|
44895
|
+
* @param {String} opts.dialect The key for filter the listing by dialect, dialect format is {language}-{country} where language follows ISO 639-1 standard and country follows ISO 3166-1 alpha 2 standard
|
|
44896
|
+
*/
|
|
44897
|
+
getSpeechandtextanalyticsSentimentfeedback(opts) {
|
|
44898
|
+
opts = opts || {};
|
|
44899
|
+
|
|
44900
|
+
|
|
44901
|
+
return this.apiClient.callApi(
|
|
44902
|
+
'/api/v2/speechandtextanalytics/sentimentfeedback',
|
|
44903
|
+
'GET',
|
|
44904
|
+
{ },
|
|
44905
|
+
{ 'dialect': opts['dialect'] },
|
|
44906
|
+
{ },
|
|
44907
|
+
{ },
|
|
44908
|
+
null,
|
|
44909
|
+
['PureCloud OAuth'],
|
|
44910
|
+
['application/json'],
|
|
44911
|
+
['application/json']
|
|
44912
|
+
);
|
|
44913
|
+
}
|
|
44914
|
+
|
|
45824
44915
|
/**
|
|
45825
44916
|
* Get Speech And Text Analytics Settings
|
|
45826
44917
|
*
|
|
@@ -46065,6 +45156,31 @@ class SpeechTextAnalyticsApi {
|
|
|
46065
45156
|
);
|
|
46066
45157
|
}
|
|
46067
45158
|
|
|
45159
|
+
/**
|
|
45160
|
+
* Create a Speech & Text Analytics SentimentFeedback
|
|
45161
|
+
*
|
|
45162
|
+
* @param {Object} body The SentimentFeedback to create
|
|
45163
|
+
*/
|
|
45164
|
+
postSpeechandtextanalyticsSentimentfeedback(body) {
|
|
45165
|
+
// verify the required parameter 'body' is set
|
|
45166
|
+
if (body === undefined || body === null) {
|
|
45167
|
+
throw 'Missing the required parameter "body" when calling postSpeechandtextanalyticsSentimentfeedback';
|
|
45168
|
+
}
|
|
45169
|
+
|
|
45170
|
+
return this.apiClient.callApi(
|
|
45171
|
+
'/api/v2/speechandtextanalytics/sentimentfeedback',
|
|
45172
|
+
'POST',
|
|
45173
|
+
{ },
|
|
45174
|
+
{ },
|
|
45175
|
+
{ },
|
|
45176
|
+
{ },
|
|
45177
|
+
body,
|
|
45178
|
+
['PureCloud OAuth'],
|
|
45179
|
+
['application/json'],
|
|
45180
|
+
['application/json']
|
|
45181
|
+
);
|
|
45182
|
+
}
|
|
45183
|
+
|
|
46068
45184
|
/**
|
|
46069
45185
|
* Create new Speech & Text Analytics topic
|
|
46070
45186
|
*
|
|
@@ -46261,7 +45377,7 @@ class StationsApi {
|
|
|
46261
45377
|
/**
|
|
46262
45378
|
* Stations service.
|
|
46263
45379
|
* @module purecloud-platform-client-v2/api/StationsApi
|
|
46264
|
-
* @version
|
|
45380
|
+
* @version 126.0.0
|
|
46265
45381
|
*/
|
|
46266
45382
|
|
|
46267
45383
|
/**
|
|
@@ -46408,7 +45524,7 @@ class SuggestApi {
|
|
|
46408
45524
|
/**
|
|
46409
45525
|
* Suggest service.
|
|
46410
45526
|
* @module purecloud-platform-client-v2/api/SuggestApi
|
|
46411
|
-
* @version
|
|
45527
|
+
* @version 126.0.0
|
|
46412
45528
|
*/
|
|
46413
45529
|
|
|
46414
45530
|
/**
|
|
@@ -46547,7 +45663,7 @@ class TelephonyApi {
|
|
|
46547
45663
|
/**
|
|
46548
45664
|
* Telephony service.
|
|
46549
45665
|
* @module purecloud-platform-client-v2/api/TelephonyApi
|
|
46550
|
-
* @version
|
|
45666
|
+
* @version 126.0.0
|
|
46551
45667
|
*/
|
|
46552
45668
|
|
|
46553
45669
|
/**
|
|
@@ -46655,7 +45771,7 @@ class TelephonyProvidersEdgeApi {
|
|
|
46655
45771
|
/**
|
|
46656
45772
|
* TelephonyProvidersEdge service.
|
|
46657
45773
|
* @module purecloud-platform-client-v2/api/TelephonyProvidersEdgeApi
|
|
46658
|
-
* @version
|
|
45774
|
+
* @version 126.0.0
|
|
46659
45775
|
*/
|
|
46660
45776
|
|
|
46661
45777
|
/**
|
|
@@ -50268,7 +49384,7 @@ class TextbotsApi {
|
|
|
50268
49384
|
/**
|
|
50269
49385
|
* Textbots service.
|
|
50270
49386
|
* @module purecloud-platform-client-v2/api/TextbotsApi
|
|
50271
|
-
* @version
|
|
49387
|
+
* @version 126.0.0
|
|
50272
49388
|
*/
|
|
50273
49389
|
|
|
50274
49390
|
/**
|
|
@@ -50369,7 +49485,7 @@ class TokensApi {
|
|
|
50369
49485
|
/**
|
|
50370
49486
|
* Tokens service.
|
|
50371
49487
|
* @module purecloud-platform-client-v2/api/TokensApi
|
|
50372
|
-
* @version
|
|
49488
|
+
* @version 126.0.0
|
|
50373
49489
|
*/
|
|
50374
49490
|
|
|
50375
49491
|
/**
|
|
@@ -50475,7 +49591,7 @@ class UploadsApi {
|
|
|
50475
49591
|
/**
|
|
50476
49592
|
* Uploads service.
|
|
50477
49593
|
* @module purecloud-platform-client-v2/api/UploadsApi
|
|
50478
|
-
* @version
|
|
49594
|
+
* @version 126.0.0
|
|
50479
49595
|
*/
|
|
50480
49596
|
|
|
50481
49597
|
/**
|
|
@@ -50651,7 +49767,7 @@ class UsageApi {
|
|
|
50651
49767
|
/**
|
|
50652
49768
|
* Usage service.
|
|
50653
49769
|
* @module purecloud-platform-client-v2/api/UsageApi
|
|
50654
|
-
* @version
|
|
49770
|
+
* @version 126.0.0
|
|
50655
49771
|
*/
|
|
50656
49772
|
|
|
50657
49773
|
/**
|
|
@@ -50722,7 +49838,7 @@ class UserRecordingsApi {
|
|
|
50722
49838
|
/**
|
|
50723
49839
|
* UserRecordings service.
|
|
50724
49840
|
* @module purecloud-platform-client-v2/api/UserRecordingsApi
|
|
50725
|
-
* @version
|
|
49841
|
+
* @version 126.0.0
|
|
50726
49842
|
*/
|
|
50727
49843
|
|
|
50728
49844
|
/**
|
|
@@ -50906,7 +50022,7 @@ class UsersApi {
|
|
|
50906
50022
|
/**
|
|
50907
50023
|
* Users service.
|
|
50908
50024
|
* @module purecloud-platform-client-v2/api/UsersApi
|
|
50909
|
-
* @version
|
|
50025
|
+
* @version 126.0.0
|
|
50910
50026
|
*/
|
|
50911
50027
|
|
|
50912
50028
|
/**
|
|
@@ -53208,7 +52324,7 @@ class UtilitiesApi {
|
|
|
53208
52324
|
/**
|
|
53209
52325
|
* Utilities service.
|
|
53210
52326
|
* @module purecloud-platform-client-v2/api/UtilitiesApi
|
|
53211
|
-
* @version
|
|
52327
|
+
* @version 126.0.0
|
|
53212
52328
|
*/
|
|
53213
52329
|
|
|
53214
52330
|
/**
|
|
@@ -53319,7 +52435,7 @@ class VoicemailApi {
|
|
|
53319
52435
|
/**
|
|
53320
52436
|
* Voicemail service.
|
|
53321
52437
|
* @module purecloud-platform-client-v2/api/VoicemailApi
|
|
53322
|
-
* @version
|
|
52438
|
+
* @version 126.0.0
|
|
53323
52439
|
*/
|
|
53324
52440
|
|
|
53325
52441
|
/**
|
|
@@ -53950,13 +53066,43 @@ class VoicemailApi {
|
|
|
53950
53066
|
);
|
|
53951
53067
|
}
|
|
53952
53068
|
|
|
53069
|
+
/**
|
|
53070
|
+
* Update a user's voicemail policy
|
|
53071
|
+
*
|
|
53072
|
+
* @param {String} userId User ID
|
|
53073
|
+
* @param {Object} body The user's voicemail policy
|
|
53074
|
+
*/
|
|
53075
|
+
putVoicemailUserpolicy(userId, body) {
|
|
53076
|
+
// verify the required parameter 'userId' is set
|
|
53077
|
+
if (userId === undefined || userId === null) {
|
|
53078
|
+
throw 'Missing the required parameter "userId" when calling putVoicemailUserpolicy';
|
|
53079
|
+
}
|
|
53080
|
+
// verify the required parameter 'body' is set
|
|
53081
|
+
if (body === undefined || body === null) {
|
|
53082
|
+
throw 'Missing the required parameter "body" when calling putVoicemailUserpolicy';
|
|
53083
|
+
}
|
|
53084
|
+
|
|
53085
|
+
return this.apiClient.callApi(
|
|
53086
|
+
'/api/v2/voicemail/userpolicies/{userId}',
|
|
53087
|
+
'PUT',
|
|
53088
|
+
{ 'userId': userId },
|
|
53089
|
+
{ },
|
|
53090
|
+
{ },
|
|
53091
|
+
{ },
|
|
53092
|
+
body,
|
|
53093
|
+
['PureCloud OAuth'],
|
|
53094
|
+
['application/json'],
|
|
53095
|
+
['application/json']
|
|
53096
|
+
);
|
|
53097
|
+
}
|
|
53098
|
+
|
|
53953
53099
|
}
|
|
53954
53100
|
|
|
53955
53101
|
class WebChatApi {
|
|
53956
53102
|
/**
|
|
53957
53103
|
* WebChat service.
|
|
53958
53104
|
* @module purecloud-platform-client-v2/api/WebChatApi
|
|
53959
|
-
* @version
|
|
53105
|
+
* @version 126.0.0
|
|
53960
53106
|
*/
|
|
53961
53107
|
|
|
53962
53108
|
/**
|
|
@@ -54500,7 +53646,7 @@ class WebDeploymentsApi {
|
|
|
54500
53646
|
/**
|
|
54501
53647
|
* WebDeployments service.
|
|
54502
53648
|
* @module purecloud-platform-client-v2/api/WebDeploymentsApi
|
|
54503
|
-
* @version
|
|
53649
|
+
* @version 126.0.0
|
|
54504
53650
|
*/
|
|
54505
53651
|
|
|
54506
53652
|
/**
|
|
@@ -54851,11 +53997,57 @@ class WebDeploymentsApi {
|
|
|
54851
53997
|
|
|
54852
53998
|
}
|
|
54853
53999
|
|
|
54000
|
+
class WebMessagingApi {
|
|
54001
|
+
/**
|
|
54002
|
+
* WebMessaging service.
|
|
54003
|
+
* @module purecloud-platform-client-v2/api/WebMessagingApi
|
|
54004
|
+
* @version 126.0.0
|
|
54005
|
+
*/
|
|
54006
|
+
|
|
54007
|
+
/**
|
|
54008
|
+
* Constructs a new WebMessagingApi.
|
|
54009
|
+
* @alias module:purecloud-platform-client-v2/api/WebMessagingApi
|
|
54010
|
+
* @class
|
|
54011
|
+
* @param {module:purecloud-platform-client-v2/ApiClient} apiClient Optional API client implementation to use,
|
|
54012
|
+
* default to {@link module:purecloud-platform-client-v2/ApiClient#instance} if unspecified.
|
|
54013
|
+
*/
|
|
54014
|
+
constructor(apiClient) {
|
|
54015
|
+
this.apiClient = apiClient || ApiClient.instance;
|
|
54016
|
+
}
|
|
54017
|
+
|
|
54018
|
+
|
|
54019
|
+
/**
|
|
54020
|
+
* Get the messages for a web messaging session.
|
|
54021
|
+
*
|
|
54022
|
+
* @param {Object} opts Optional parameters
|
|
54023
|
+
* @param {Number} opts.pageSize Page size (default to 25)
|
|
54024
|
+
* @param {Number} opts.pageNumber Page number (default to 1)
|
|
54025
|
+
*/
|
|
54026
|
+
getWebmessagingMessages(opts) {
|
|
54027
|
+
opts = opts || {};
|
|
54028
|
+
|
|
54029
|
+
|
|
54030
|
+
return this.apiClient.callApi(
|
|
54031
|
+
'/api/v2/webmessaging/messages',
|
|
54032
|
+
'GET',
|
|
54033
|
+
{ },
|
|
54034
|
+
{ 'pageSize': opts['pageSize'],'pageNumber': opts['pageNumber'] },
|
|
54035
|
+
{ },
|
|
54036
|
+
{ },
|
|
54037
|
+
null,
|
|
54038
|
+
['PureCloud OAuth'],
|
|
54039
|
+
['application/json'],
|
|
54040
|
+
['application/json']
|
|
54041
|
+
);
|
|
54042
|
+
}
|
|
54043
|
+
|
|
54044
|
+
}
|
|
54045
|
+
|
|
54854
54046
|
class WidgetsApi {
|
|
54855
54047
|
/**
|
|
54856
54048
|
* Widgets service.
|
|
54857
54049
|
* @module purecloud-platform-client-v2/api/WidgetsApi
|
|
54858
|
-
* @version
|
|
54050
|
+
* @version 126.0.0
|
|
54859
54051
|
*/
|
|
54860
54052
|
|
|
54861
54053
|
/**
|
|
@@ -55001,7 +54193,7 @@ class WorkforceManagementApi {
|
|
|
55001
54193
|
/**
|
|
55002
54194
|
* WorkforceManagement service.
|
|
55003
54195
|
* @module purecloud-platform-client-v2/api/WorkforceManagementApi
|
|
55004
|
-
* @version
|
|
54196
|
+
* @version 126.0.0
|
|
55005
54197
|
*/
|
|
55006
54198
|
|
|
55007
54199
|
/**
|
|
@@ -55276,6 +54468,66 @@ class WorkforceManagementApi {
|
|
|
55276
54468
|
);
|
|
55277
54469
|
}
|
|
55278
54470
|
|
|
54471
|
+
/**
|
|
54472
|
+
* Deletes a time off limit object
|
|
54473
|
+
*
|
|
54474
|
+
* @param {String} managementUnitId The management unit ID of the management unit.
|
|
54475
|
+
* @param {String} timeOffLimitId The ID of the time off limit object to delete
|
|
54476
|
+
*/
|
|
54477
|
+
deleteWorkforcemanagementManagementunitTimeofflimit(managementUnitId, timeOffLimitId) {
|
|
54478
|
+
// verify the required parameter 'managementUnitId' is set
|
|
54479
|
+
if (managementUnitId === undefined || managementUnitId === null) {
|
|
54480
|
+
throw 'Missing the required parameter "managementUnitId" when calling deleteWorkforcemanagementManagementunitTimeofflimit';
|
|
54481
|
+
}
|
|
54482
|
+
// verify the required parameter 'timeOffLimitId' is set
|
|
54483
|
+
if (timeOffLimitId === undefined || timeOffLimitId === null) {
|
|
54484
|
+
throw 'Missing the required parameter "timeOffLimitId" when calling deleteWorkforcemanagementManagementunitTimeofflimit';
|
|
54485
|
+
}
|
|
54486
|
+
|
|
54487
|
+
return this.apiClient.callApi(
|
|
54488
|
+
'/api/v2/workforcemanagement/managementunits/{managementUnitId}/timeofflimits/{timeOffLimitId}',
|
|
54489
|
+
'DELETE',
|
|
54490
|
+
{ 'managementUnitId': managementUnitId,'timeOffLimitId': timeOffLimitId },
|
|
54491
|
+
{ },
|
|
54492
|
+
{ },
|
|
54493
|
+
{ },
|
|
54494
|
+
null,
|
|
54495
|
+
['PureCloud OAuth'],
|
|
54496
|
+
['application/json'],
|
|
54497
|
+
['application/json']
|
|
54498
|
+
);
|
|
54499
|
+
}
|
|
54500
|
+
|
|
54501
|
+
/**
|
|
54502
|
+
* Deletes a time off plan
|
|
54503
|
+
*
|
|
54504
|
+
* @param {String} managementUnitId The management unit ID.
|
|
54505
|
+
* @param {String} timeOffPlanId The ID of the time off plan to delete
|
|
54506
|
+
*/
|
|
54507
|
+
deleteWorkforcemanagementManagementunitTimeoffplan(managementUnitId, timeOffPlanId) {
|
|
54508
|
+
// verify the required parameter 'managementUnitId' is set
|
|
54509
|
+
if (managementUnitId === undefined || managementUnitId === null) {
|
|
54510
|
+
throw 'Missing the required parameter "managementUnitId" when calling deleteWorkforcemanagementManagementunitTimeoffplan';
|
|
54511
|
+
}
|
|
54512
|
+
// verify the required parameter 'timeOffPlanId' is set
|
|
54513
|
+
if (timeOffPlanId === undefined || timeOffPlanId === null) {
|
|
54514
|
+
throw 'Missing the required parameter "timeOffPlanId" when calling deleteWorkforcemanagementManagementunitTimeoffplan';
|
|
54515
|
+
}
|
|
54516
|
+
|
|
54517
|
+
return this.apiClient.callApi(
|
|
54518
|
+
'/api/v2/workforcemanagement/managementunits/{managementUnitId}/timeoffplans/{timeOffPlanId}',
|
|
54519
|
+
'DELETE',
|
|
54520
|
+
{ 'managementUnitId': managementUnitId,'timeOffPlanId': timeOffPlanId },
|
|
54521
|
+
{ },
|
|
54522
|
+
{ },
|
|
54523
|
+
{ },
|
|
54524
|
+
null,
|
|
54525
|
+
['PureCloud OAuth'],
|
|
54526
|
+
['application/json'],
|
|
54527
|
+
['application/json']
|
|
54528
|
+
);
|
|
54529
|
+
}
|
|
54530
|
+
|
|
55279
54531
|
/**
|
|
55280
54532
|
* Delete a work plan
|
|
55281
54533
|
*
|
|
@@ -56517,6 +55769,116 @@ class WorkforceManagementApi {
|
|
|
56517
55769
|
);
|
|
56518
55770
|
}
|
|
56519
55771
|
|
|
55772
|
+
/**
|
|
55773
|
+
* Gets a time off limit object
|
|
55774
|
+
* Returns properties of time off limit object, but not daily values.
|
|
55775
|
+
* @param {String} managementUnitId The management unit ID of the management unit.
|
|
55776
|
+
* @param {String} timeOffLimitId The ID of the time off limit to fetch
|
|
55777
|
+
*/
|
|
55778
|
+
getWorkforcemanagementManagementunitTimeofflimit(managementUnitId, timeOffLimitId) {
|
|
55779
|
+
// verify the required parameter 'managementUnitId' is set
|
|
55780
|
+
if (managementUnitId === undefined || managementUnitId === null) {
|
|
55781
|
+
throw 'Missing the required parameter "managementUnitId" when calling getWorkforcemanagementManagementunitTimeofflimit';
|
|
55782
|
+
}
|
|
55783
|
+
// verify the required parameter 'timeOffLimitId' is set
|
|
55784
|
+
if (timeOffLimitId === undefined || timeOffLimitId === null) {
|
|
55785
|
+
throw 'Missing the required parameter "timeOffLimitId" when calling getWorkforcemanagementManagementunitTimeofflimit';
|
|
55786
|
+
}
|
|
55787
|
+
|
|
55788
|
+
return this.apiClient.callApi(
|
|
55789
|
+
'/api/v2/workforcemanagement/managementunits/{managementUnitId}/timeofflimits/{timeOffLimitId}',
|
|
55790
|
+
'GET',
|
|
55791
|
+
{ 'managementUnitId': managementUnitId,'timeOffLimitId': timeOffLimitId },
|
|
55792
|
+
{ },
|
|
55793
|
+
{ },
|
|
55794
|
+
{ },
|
|
55795
|
+
null,
|
|
55796
|
+
['PureCloud OAuth'],
|
|
55797
|
+
['application/json'],
|
|
55798
|
+
['application/json']
|
|
55799
|
+
);
|
|
55800
|
+
}
|
|
55801
|
+
|
|
55802
|
+
/**
|
|
55803
|
+
* Gets a list of time off limit objects under management unit.
|
|
55804
|
+
* Currently only one time off limit object is allowed under management unit, so the list contains either 0 or 1 element.
|
|
55805
|
+
* @param {String} managementUnitId The management unit ID of the management unit.
|
|
55806
|
+
*/
|
|
55807
|
+
getWorkforcemanagementManagementunitTimeofflimits(managementUnitId) {
|
|
55808
|
+
// verify the required parameter 'managementUnitId' is set
|
|
55809
|
+
if (managementUnitId === undefined || managementUnitId === null) {
|
|
55810
|
+
throw 'Missing the required parameter "managementUnitId" when calling getWorkforcemanagementManagementunitTimeofflimits';
|
|
55811
|
+
}
|
|
55812
|
+
|
|
55813
|
+
return this.apiClient.callApi(
|
|
55814
|
+
'/api/v2/workforcemanagement/managementunits/{managementUnitId}/timeofflimits',
|
|
55815
|
+
'GET',
|
|
55816
|
+
{ 'managementUnitId': managementUnitId },
|
|
55817
|
+
{ },
|
|
55818
|
+
{ },
|
|
55819
|
+
{ },
|
|
55820
|
+
null,
|
|
55821
|
+
['PureCloud OAuth'],
|
|
55822
|
+
['application/json'],
|
|
55823
|
+
['application/json']
|
|
55824
|
+
);
|
|
55825
|
+
}
|
|
55826
|
+
|
|
55827
|
+
/**
|
|
55828
|
+
* Gets a time off plan
|
|
55829
|
+
*
|
|
55830
|
+
* @param {String} managementUnitId The management unit ID.
|
|
55831
|
+
* @param {String} timeOffPlanId The ID of the time off plan to fetch
|
|
55832
|
+
*/
|
|
55833
|
+
getWorkforcemanagementManagementunitTimeoffplan(managementUnitId, timeOffPlanId) {
|
|
55834
|
+
// verify the required parameter 'managementUnitId' is set
|
|
55835
|
+
if (managementUnitId === undefined || managementUnitId === null) {
|
|
55836
|
+
throw 'Missing the required parameter "managementUnitId" when calling getWorkforcemanagementManagementunitTimeoffplan';
|
|
55837
|
+
}
|
|
55838
|
+
// verify the required parameter 'timeOffPlanId' is set
|
|
55839
|
+
if (timeOffPlanId === undefined || timeOffPlanId === null) {
|
|
55840
|
+
throw 'Missing the required parameter "timeOffPlanId" when calling getWorkforcemanagementManagementunitTimeoffplan';
|
|
55841
|
+
}
|
|
55842
|
+
|
|
55843
|
+
return this.apiClient.callApi(
|
|
55844
|
+
'/api/v2/workforcemanagement/managementunits/{managementUnitId}/timeoffplans/{timeOffPlanId}',
|
|
55845
|
+
'GET',
|
|
55846
|
+
{ 'managementUnitId': managementUnitId,'timeOffPlanId': timeOffPlanId },
|
|
55847
|
+
{ },
|
|
55848
|
+
{ },
|
|
55849
|
+
{ },
|
|
55850
|
+
null,
|
|
55851
|
+
['PureCloud OAuth'],
|
|
55852
|
+
['application/json'],
|
|
55853
|
+
['application/json']
|
|
55854
|
+
);
|
|
55855
|
+
}
|
|
55856
|
+
|
|
55857
|
+
/**
|
|
55858
|
+
* Gets a list of time off plans
|
|
55859
|
+
*
|
|
55860
|
+
* @param {String} managementUnitId The management unit ID.
|
|
55861
|
+
*/
|
|
55862
|
+
getWorkforcemanagementManagementunitTimeoffplans(managementUnitId) {
|
|
55863
|
+
// verify the required parameter 'managementUnitId' is set
|
|
55864
|
+
if (managementUnitId === undefined || managementUnitId === null) {
|
|
55865
|
+
throw 'Missing the required parameter "managementUnitId" when calling getWorkforcemanagementManagementunitTimeoffplans';
|
|
55866
|
+
}
|
|
55867
|
+
|
|
55868
|
+
return this.apiClient.callApi(
|
|
55869
|
+
'/api/v2/workforcemanagement/managementunits/{managementUnitId}/timeoffplans',
|
|
55870
|
+
'GET',
|
|
55871
|
+
{ 'managementUnitId': managementUnitId },
|
|
55872
|
+
{ },
|
|
55873
|
+
{ },
|
|
55874
|
+
{ },
|
|
55875
|
+
null,
|
|
55876
|
+
['PureCloud OAuth'],
|
|
55877
|
+
['application/json'],
|
|
55878
|
+
['application/json']
|
|
55879
|
+
);
|
|
55880
|
+
}
|
|
55881
|
+
|
|
56520
55882
|
/**
|
|
56521
55883
|
* Get a time off request
|
|
56522
55884
|
*
|
|
@@ -56552,6 +55914,41 @@ class WorkforceManagementApi {
|
|
|
56552
55914
|
);
|
|
56553
55915
|
}
|
|
56554
55916
|
|
|
55917
|
+
/**
|
|
55918
|
+
* Retrieves time off limit, allocated and waitlisted values according to specific time off request
|
|
55919
|
+
*
|
|
55920
|
+
* @param {String} managementUnitId The management unit ID of the management unit.
|
|
55921
|
+
* @param {String} userId The userId to whom the time off request applies.
|
|
55922
|
+
* @param {String} timeOffRequestId The ID of the time off request, which dates and activityCodeId determine limit values to retrieve
|
|
55923
|
+
*/
|
|
55924
|
+
getWorkforcemanagementManagementunitUserTimeoffrequestTimeofflimits(managementUnitId, userId, timeOffRequestId) {
|
|
55925
|
+
// verify the required parameter 'managementUnitId' is set
|
|
55926
|
+
if (managementUnitId === undefined || managementUnitId === null) {
|
|
55927
|
+
throw 'Missing the required parameter "managementUnitId" when calling getWorkforcemanagementManagementunitUserTimeoffrequestTimeofflimits';
|
|
55928
|
+
}
|
|
55929
|
+
// verify the required parameter 'userId' is set
|
|
55930
|
+
if (userId === undefined || userId === null) {
|
|
55931
|
+
throw 'Missing the required parameter "userId" when calling getWorkforcemanagementManagementunitUserTimeoffrequestTimeofflimits';
|
|
55932
|
+
}
|
|
55933
|
+
// verify the required parameter 'timeOffRequestId' is set
|
|
55934
|
+
if (timeOffRequestId === undefined || timeOffRequestId === null) {
|
|
55935
|
+
throw 'Missing the required parameter "timeOffRequestId" when calling getWorkforcemanagementManagementunitUserTimeoffrequestTimeofflimits';
|
|
55936
|
+
}
|
|
55937
|
+
|
|
55938
|
+
return this.apiClient.callApi(
|
|
55939
|
+
'/api/v2/workforcemanagement/managementunits/{managementUnitId}/users/{userId}/timeoffrequests/{timeOffRequestId}/timeofflimits',
|
|
55940
|
+
'GET',
|
|
55941
|
+
{ 'managementUnitId': managementUnitId,'userId': userId,'timeOffRequestId': timeOffRequestId },
|
|
55942
|
+
{ },
|
|
55943
|
+
{ },
|
|
55944
|
+
{ },
|
|
55945
|
+
null,
|
|
55946
|
+
['PureCloud OAuth'],
|
|
55947
|
+
['application/json'],
|
|
55948
|
+
['application/json']
|
|
55949
|
+
);
|
|
55950
|
+
}
|
|
55951
|
+
|
|
56555
55952
|
/**
|
|
56556
55953
|
* Get a list of time off requests for a given user
|
|
56557
55954
|
*
|
|
@@ -56985,6 +56382,31 @@ class WorkforceManagementApi {
|
|
|
56985
56382
|
);
|
|
56986
56383
|
}
|
|
56987
56384
|
|
|
56385
|
+
/**
|
|
56386
|
+
* Get the daily waitlist positions of a time off request for the current user
|
|
56387
|
+
*
|
|
56388
|
+
* @param {String} timeOffRequestId Time Off Request Id
|
|
56389
|
+
*/
|
|
56390
|
+
getWorkforcemanagementTimeoffrequestWaitlistpositions(timeOffRequestId) {
|
|
56391
|
+
// verify the required parameter 'timeOffRequestId' is set
|
|
56392
|
+
if (timeOffRequestId === undefined || timeOffRequestId === null) {
|
|
56393
|
+
throw 'Missing the required parameter "timeOffRequestId" when calling getWorkforcemanagementTimeoffrequestWaitlistpositions';
|
|
56394
|
+
}
|
|
56395
|
+
|
|
56396
|
+
return this.apiClient.callApi(
|
|
56397
|
+
'/api/v2/workforcemanagement/timeoffrequests/{timeOffRequestId}/waitlistpositions',
|
|
56398
|
+
'GET',
|
|
56399
|
+
{ 'timeOffRequestId': timeOffRequestId },
|
|
56400
|
+
{ },
|
|
56401
|
+
{ },
|
|
56402
|
+
{ },
|
|
56403
|
+
null,
|
|
56404
|
+
['PureCloud OAuth'],
|
|
56405
|
+
['application/json'],
|
|
56406
|
+
['application/json']
|
|
56407
|
+
);
|
|
56408
|
+
}
|
|
56409
|
+
|
|
56988
56410
|
/**
|
|
56989
56411
|
* Get a list of time off requests for the current user
|
|
56990
56412
|
*
|
|
@@ -57203,6 +56625,74 @@ class WorkforceManagementApi {
|
|
|
57203
56625
|
);
|
|
57204
56626
|
}
|
|
57205
56627
|
|
|
56628
|
+
/**
|
|
56629
|
+
* Updates a time off limit object.
|
|
56630
|
+
* Updates time off limit object properties, but not daily values.
|
|
56631
|
+
* @param {String} managementUnitId The management unit ID of the management unit.
|
|
56632
|
+
* @param {String} timeOffLimitId The id of time off limit object to update
|
|
56633
|
+
* @param {Object} opts Optional parameters
|
|
56634
|
+
* @param {Object} opts.body body
|
|
56635
|
+
*/
|
|
56636
|
+
patchWorkforcemanagementManagementunitTimeofflimit(managementUnitId, timeOffLimitId, opts) {
|
|
56637
|
+
opts = opts || {};
|
|
56638
|
+
|
|
56639
|
+
// verify the required parameter 'managementUnitId' is set
|
|
56640
|
+
if (managementUnitId === undefined || managementUnitId === null) {
|
|
56641
|
+
throw 'Missing the required parameter "managementUnitId" when calling patchWorkforcemanagementManagementunitTimeofflimit';
|
|
56642
|
+
}
|
|
56643
|
+
// verify the required parameter 'timeOffLimitId' is set
|
|
56644
|
+
if (timeOffLimitId === undefined || timeOffLimitId === null) {
|
|
56645
|
+
throw 'Missing the required parameter "timeOffLimitId" when calling patchWorkforcemanagementManagementunitTimeofflimit';
|
|
56646
|
+
}
|
|
56647
|
+
|
|
56648
|
+
return this.apiClient.callApi(
|
|
56649
|
+
'/api/v2/workforcemanagement/managementunits/{managementUnitId}/timeofflimits/{timeOffLimitId}',
|
|
56650
|
+
'PATCH',
|
|
56651
|
+
{ 'managementUnitId': managementUnitId,'timeOffLimitId': timeOffLimitId },
|
|
56652
|
+
{ },
|
|
56653
|
+
{ },
|
|
56654
|
+
{ },
|
|
56655
|
+
opts['body'],
|
|
56656
|
+
['PureCloud OAuth'],
|
|
56657
|
+
['application/json'],
|
|
56658
|
+
['application/json']
|
|
56659
|
+
);
|
|
56660
|
+
}
|
|
56661
|
+
|
|
56662
|
+
/**
|
|
56663
|
+
* Updates a time off plan
|
|
56664
|
+
*
|
|
56665
|
+
* @param {String} managementUnitId The management unit ID.
|
|
56666
|
+
* @param {String} timeOffPlanId The ID of the time off plan to update
|
|
56667
|
+
* @param {Object} opts Optional parameters
|
|
56668
|
+
* @param {Object} opts.body body
|
|
56669
|
+
*/
|
|
56670
|
+
patchWorkforcemanagementManagementunitTimeoffplan(managementUnitId, timeOffPlanId, opts) {
|
|
56671
|
+
opts = opts || {};
|
|
56672
|
+
|
|
56673
|
+
// verify the required parameter 'managementUnitId' is set
|
|
56674
|
+
if (managementUnitId === undefined || managementUnitId === null) {
|
|
56675
|
+
throw 'Missing the required parameter "managementUnitId" when calling patchWorkforcemanagementManagementunitTimeoffplan';
|
|
56676
|
+
}
|
|
56677
|
+
// verify the required parameter 'timeOffPlanId' is set
|
|
56678
|
+
if (timeOffPlanId === undefined || timeOffPlanId === null) {
|
|
56679
|
+
throw 'Missing the required parameter "timeOffPlanId" when calling patchWorkforcemanagementManagementunitTimeoffplan';
|
|
56680
|
+
}
|
|
56681
|
+
|
|
56682
|
+
return this.apiClient.callApi(
|
|
56683
|
+
'/api/v2/workforcemanagement/managementunits/{managementUnitId}/timeoffplans/{timeOffPlanId}',
|
|
56684
|
+
'PATCH',
|
|
56685
|
+
{ 'managementUnitId': managementUnitId,'timeOffPlanId': timeOffPlanId },
|
|
56686
|
+
{ },
|
|
56687
|
+
{ },
|
|
56688
|
+
{ },
|
|
56689
|
+
opts['body'],
|
|
56690
|
+
['PureCloud OAuth'],
|
|
56691
|
+
['application/json'],
|
|
56692
|
+
['application/json']
|
|
56693
|
+
);
|
|
56694
|
+
}
|
|
56695
|
+
|
|
57206
56696
|
/**
|
|
57207
56697
|
* Update a time off request
|
|
57208
56698
|
*
|
|
@@ -58064,6 +57554,93 @@ class WorkforceManagementApi {
|
|
|
58064
57554
|
);
|
|
58065
57555
|
}
|
|
58066
57556
|
|
|
57557
|
+
/**
|
|
57558
|
+
* Creates a new time off limit object under management unit.
|
|
57559
|
+
* Only one limit object is allowed under management unit, so an attempt to create second object will fail.
|
|
57560
|
+
* @param {String} managementUnitId The management unit ID of the management unit.
|
|
57561
|
+
* @param {Object} opts Optional parameters
|
|
57562
|
+
* @param {Object} opts.body body
|
|
57563
|
+
*/
|
|
57564
|
+
postWorkforcemanagementManagementunitTimeofflimits(managementUnitId, opts) {
|
|
57565
|
+
opts = opts || {};
|
|
57566
|
+
|
|
57567
|
+
// verify the required parameter 'managementUnitId' is set
|
|
57568
|
+
if (managementUnitId === undefined || managementUnitId === null) {
|
|
57569
|
+
throw 'Missing the required parameter "managementUnitId" when calling postWorkforcemanagementManagementunitTimeofflimits';
|
|
57570
|
+
}
|
|
57571
|
+
|
|
57572
|
+
return this.apiClient.callApi(
|
|
57573
|
+
'/api/v2/workforcemanagement/managementunits/{managementUnitId}/timeofflimits',
|
|
57574
|
+
'POST',
|
|
57575
|
+
{ 'managementUnitId': managementUnitId },
|
|
57576
|
+
{ },
|
|
57577
|
+
{ },
|
|
57578
|
+
{ },
|
|
57579
|
+
opts['body'],
|
|
57580
|
+
['PureCloud OAuth'],
|
|
57581
|
+
['application/json'],
|
|
57582
|
+
['application/json']
|
|
57583
|
+
);
|
|
57584
|
+
}
|
|
57585
|
+
|
|
57586
|
+
/**
|
|
57587
|
+
* Retrieves time off limit related values based on a given set of filters.
|
|
57588
|
+
*
|
|
57589
|
+
* @param {String} managementUnitId The management unit ID of the management unit.
|
|
57590
|
+
* @param {Object} opts Optional parameters
|
|
57591
|
+
* @param {Object} opts.body body
|
|
57592
|
+
*/
|
|
57593
|
+
postWorkforcemanagementManagementunitTimeofflimitsValuesQuery(managementUnitId, opts) {
|
|
57594
|
+
opts = opts || {};
|
|
57595
|
+
|
|
57596
|
+
// verify the required parameter 'managementUnitId' is set
|
|
57597
|
+
if (managementUnitId === undefined || managementUnitId === null) {
|
|
57598
|
+
throw 'Missing the required parameter "managementUnitId" when calling postWorkforcemanagementManagementunitTimeofflimitsValuesQuery';
|
|
57599
|
+
}
|
|
57600
|
+
|
|
57601
|
+
return this.apiClient.callApi(
|
|
57602
|
+
'/api/v2/workforcemanagement/managementunits/{managementUnitId}/timeofflimits/values/query',
|
|
57603
|
+
'POST',
|
|
57604
|
+
{ 'managementUnitId': managementUnitId },
|
|
57605
|
+
{ },
|
|
57606
|
+
{ },
|
|
57607
|
+
{ },
|
|
57608
|
+
opts['body'],
|
|
57609
|
+
['PureCloud OAuth'],
|
|
57610
|
+
['application/json'],
|
|
57611
|
+
['application/json']
|
|
57612
|
+
);
|
|
57613
|
+
}
|
|
57614
|
+
|
|
57615
|
+
/**
|
|
57616
|
+
* Creates a new time off plan
|
|
57617
|
+
*
|
|
57618
|
+
* @param {String} managementUnitId The management unit ID.
|
|
57619
|
+
* @param {Object} opts Optional parameters
|
|
57620
|
+
* @param {Object} opts.body body
|
|
57621
|
+
*/
|
|
57622
|
+
postWorkforcemanagementManagementunitTimeoffplans(managementUnitId, opts) {
|
|
57623
|
+
opts = opts || {};
|
|
57624
|
+
|
|
57625
|
+
// verify the required parameter 'managementUnitId' is set
|
|
57626
|
+
if (managementUnitId === undefined || managementUnitId === null) {
|
|
57627
|
+
throw 'Missing the required parameter "managementUnitId" when calling postWorkforcemanagementManagementunitTimeoffplans';
|
|
57628
|
+
}
|
|
57629
|
+
|
|
57630
|
+
return this.apiClient.callApi(
|
|
57631
|
+
'/api/v2/workforcemanagement/managementunits/{managementUnitId}/timeoffplans',
|
|
57632
|
+
'POST',
|
|
57633
|
+
{ 'managementUnitId': managementUnitId },
|
|
57634
|
+
{ },
|
|
57635
|
+
{ },
|
|
57636
|
+
{ },
|
|
57637
|
+
opts['body'],
|
|
57638
|
+
['PureCloud OAuth'],
|
|
57639
|
+
['application/json'],
|
|
57640
|
+
['application/json']
|
|
57641
|
+
);
|
|
57642
|
+
}
|
|
57643
|
+
|
|
58067
57644
|
/**
|
|
58068
57645
|
* Create a new time off request
|
|
58069
57646
|
*
|
|
@@ -58122,6 +57699,35 @@ class WorkforceManagementApi {
|
|
|
58122
57699
|
);
|
|
58123
57700
|
}
|
|
58124
57701
|
|
|
57702
|
+
/**
|
|
57703
|
+
* Retrieves daily waitlist position for a list of time off requests
|
|
57704
|
+
*
|
|
57705
|
+
* @param {String} managementUnitId The management unit ID of the management unit.
|
|
57706
|
+
* @param {Object} opts Optional parameters
|
|
57707
|
+
* @param {Object} opts.body body
|
|
57708
|
+
*/
|
|
57709
|
+
postWorkforcemanagementManagementunitTimeoffrequestsWaitlistpositionsQuery(managementUnitId, opts) {
|
|
57710
|
+
opts = opts || {};
|
|
57711
|
+
|
|
57712
|
+
// verify the required parameter 'managementUnitId' is set
|
|
57713
|
+
if (managementUnitId === undefined || managementUnitId === null) {
|
|
57714
|
+
throw 'Missing the required parameter "managementUnitId" when calling postWorkforcemanagementManagementunitTimeoffrequestsWaitlistpositionsQuery';
|
|
57715
|
+
}
|
|
57716
|
+
|
|
57717
|
+
return this.apiClient.callApi(
|
|
57718
|
+
'/api/v2/workforcemanagement/managementunits/{managementUnitId}/timeoffrequests/waitlistpositions/query',
|
|
57719
|
+
'POST',
|
|
57720
|
+
{ 'managementUnitId': managementUnitId },
|
|
57721
|
+
{ },
|
|
57722
|
+
{ },
|
|
57723
|
+
{ },
|
|
57724
|
+
opts['body'],
|
|
57725
|
+
['PureCloud OAuth'],
|
|
57726
|
+
['application/json'],
|
|
57727
|
+
['application/json']
|
|
57728
|
+
);
|
|
57729
|
+
}
|
|
57730
|
+
|
|
58125
57731
|
/**
|
|
58126
57732
|
* Matches a shift trade. This route can only be called by the receiving agent
|
|
58127
57733
|
*
|
|
@@ -58505,6 +58111,30 @@ class WorkforceManagementApi {
|
|
|
58505
58111
|
);
|
|
58506
58112
|
}
|
|
58507
58113
|
|
|
58114
|
+
/**
|
|
58115
|
+
* Queries available time off for the current user
|
|
58116
|
+
*
|
|
58117
|
+
* @param {Object} opts Optional parameters
|
|
58118
|
+
* @param {Object} opts.body body
|
|
58119
|
+
*/
|
|
58120
|
+
postWorkforcemanagementTimeofflimitsAvailableQuery(opts) {
|
|
58121
|
+
opts = opts || {};
|
|
58122
|
+
|
|
58123
|
+
|
|
58124
|
+
return this.apiClient.callApi(
|
|
58125
|
+
'/api/v2/workforcemanagement/timeofflimits/available/query',
|
|
58126
|
+
'POST',
|
|
58127
|
+
{ },
|
|
58128
|
+
{ },
|
|
58129
|
+
{ },
|
|
58130
|
+
{ },
|
|
58131
|
+
opts['body'],
|
|
58132
|
+
['PureCloud OAuth'],
|
|
58133
|
+
['application/json'],
|
|
58134
|
+
['application/json']
|
|
58135
|
+
);
|
|
58136
|
+
}
|
|
58137
|
+
|
|
58508
58138
|
/**
|
|
58509
58139
|
* Create a time off request for the current user
|
|
58510
58140
|
*
|
|
@@ -58529,6 +58159,40 @@ class WorkforceManagementApi {
|
|
|
58529
58159
|
);
|
|
58530
58160
|
}
|
|
58531
58161
|
|
|
58162
|
+
/**
|
|
58163
|
+
* Sets daily values for a date range of time off limit object
|
|
58164
|
+
* Note that only limit daily values can be set through API, allocated and waitlisted values are read-only for time off limit API
|
|
58165
|
+
* @param {String} managementUnitId The management unit ID of the management unit.
|
|
58166
|
+
* @param {String} timeOffLimitId The ID of the time off limit object to set values for
|
|
58167
|
+
* @param {Object} opts Optional parameters
|
|
58168
|
+
* @param {Object} opts.body body
|
|
58169
|
+
*/
|
|
58170
|
+
putWorkforcemanagementManagementunitTimeofflimitValues(managementUnitId, timeOffLimitId, opts) {
|
|
58171
|
+
opts = opts || {};
|
|
58172
|
+
|
|
58173
|
+
// verify the required parameter 'managementUnitId' is set
|
|
58174
|
+
if (managementUnitId === undefined || managementUnitId === null) {
|
|
58175
|
+
throw 'Missing the required parameter "managementUnitId" when calling putWorkforcemanagementManagementunitTimeofflimitValues';
|
|
58176
|
+
}
|
|
58177
|
+
// verify the required parameter 'timeOffLimitId' is set
|
|
58178
|
+
if (timeOffLimitId === undefined || timeOffLimitId === null) {
|
|
58179
|
+
throw 'Missing the required parameter "timeOffLimitId" when calling putWorkforcemanagementManagementunitTimeofflimitValues';
|
|
58180
|
+
}
|
|
58181
|
+
|
|
58182
|
+
return this.apiClient.callApi(
|
|
58183
|
+
'/api/v2/workforcemanagement/managementunits/{managementUnitId}/timeofflimits/{timeOffLimitId}/values',
|
|
58184
|
+
'PUT',
|
|
58185
|
+
{ 'managementUnitId': managementUnitId,'timeOffLimitId': timeOffLimitId },
|
|
58186
|
+
{ },
|
|
58187
|
+
{ },
|
|
58188
|
+
{ },
|
|
58189
|
+
opts['body'],
|
|
58190
|
+
['PureCloud OAuth'],
|
|
58191
|
+
['application/json'],
|
|
58192
|
+
['application/json']
|
|
58193
|
+
);
|
|
58194
|
+
}
|
|
58195
|
+
|
|
58532
58196
|
}
|
|
58533
58197
|
|
|
58534
58198
|
/**
|
|
@@ -58560,7 +58224,7 @@ class WorkforceManagementApi {
|
|
|
58560
58224
|
* </pre>
|
|
58561
58225
|
* </p>
|
|
58562
58226
|
* @module purecloud-platform-client-v2/index
|
|
58563
|
-
* @version
|
|
58227
|
+
* @version 126.0.0
|
|
58564
58228
|
*/
|
|
58565
58229
|
class platformClient {
|
|
58566
58230
|
constructor() {
|
|
@@ -58864,6 +58528,11 @@ class platformClient {
|
|
|
58864
58528
|
* @property {module:purecloud-platform-client-v2/api/WebDeploymentsApi}
|
|
58865
58529
|
*/
|
|
58866
58530
|
this.WebDeploymentsApi = WebDeploymentsApi;
|
|
58531
|
+
/**
|
|
58532
|
+
* The WebMessagingApi service constructor.
|
|
58533
|
+
* @property {module:purecloud-platform-client-v2/api/WebMessagingApi}
|
|
58534
|
+
*/
|
|
58535
|
+
this.WebMessagingApi = WebMessagingApi;
|
|
58867
58536
|
/**
|
|
58868
58537
|
* The WidgetsApi service constructor.
|
|
58869
58538
|
* @property {module:purecloud-platform-client-v2/api/WidgetsApi}
|
|
@@ -58890,4 +58559,4 @@ var index = new platformClient();
|
|
|
58890
58559
|
module.exports = index;
|
|
58891
58560
|
|
|
58892
58561
|
}).call(this)}).call(this,typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : {},require("buffer").Buffer)
|
|
58893
|
-
},{"buffer":
|
|
58562
|
+
},{"buffer":2,"os":4,"path":5,"superagent":9}]},{},[]);
|