@uipath/vertical-solutions-tool 0.1.9 → 0.1.11
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/dist/tool.js +483 -723
- package/package.json +8 -8
package/dist/tool.js
CHANGED
|
@@ -327,7 +327,7 @@ var require_lib2 = __commonJS((exports, module) => {
|
|
|
327
327
|
|
|
328
328
|
// ../../node_modules/@ts-morph/common/dist/typescript.js
|
|
329
329
|
var require_typescript = __commonJS((exports, module) => {
|
|
330
|
-
var __dirname = "/home/runner/work/
|
|
330
|
+
var __dirname = "/home/runner/work/cli/cli/node_modules/@ts-morph/common/dist", __filename = "/home/runner/work/cli/cli/node_modules/@ts-morph/common/dist/typescript.js";
|
|
331
331
|
/*! *****************************************************************************
|
|
332
332
|
Copyright (c) Microsoft Corporation. All rights reserved.
|
|
333
333
|
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
|
|
@@ -30672,17 +30672,17 @@ ${lanes.join(`
|
|
|
30672
30672
|
}
|
|
30673
30673
|
})(BinaryExpressionState || (BinaryExpressionState = {}));
|
|
30674
30674
|
var BinaryExpressionStateMachine = class {
|
|
30675
|
-
constructor(onEnter, onLeft, onOperator, onRight,
|
|
30675
|
+
constructor(onEnter, onLeft, onOperator, onRight, onExit2, foldState) {
|
|
30676
30676
|
this.onEnter = onEnter;
|
|
30677
30677
|
this.onLeft = onLeft;
|
|
30678
30678
|
this.onOperator = onOperator;
|
|
30679
30679
|
this.onRight = onRight;
|
|
30680
|
-
this.onExit =
|
|
30680
|
+
this.onExit = onExit2;
|
|
30681
30681
|
this.foldState = foldState;
|
|
30682
30682
|
}
|
|
30683
30683
|
};
|
|
30684
|
-
function createBinaryExpressionTrampoline(onEnter, onLeft, onOperator, onRight,
|
|
30685
|
-
const machine = new BinaryExpressionStateMachine(onEnter, onLeft, onOperator, onRight,
|
|
30684
|
+
function createBinaryExpressionTrampoline(onEnter, onLeft, onOperator, onRight, onExit2, foldState) {
|
|
30685
|
+
const machine = new BinaryExpressionStateMachine(onEnter, onLeft, onOperator, onRight, onExit2, foldState);
|
|
30686
30686
|
return trampoline;
|
|
30687
30687
|
function trampoline(node, outerState) {
|
|
30688
30688
|
const resultHolder = { value: undefined };
|
|
@@ -44459,7 +44459,7 @@ ${lanes.join(`
|
|
|
44459
44459
|
bindAssignmentTargetFlow(node.left);
|
|
44460
44460
|
}
|
|
44461
44461
|
function createBindBinaryExpressionFlow() {
|
|
44462
|
-
return createBinaryExpressionTrampoline(onEnter, onLeft, onOperator, onRight,
|
|
44462
|
+
return createBinaryExpressionTrampoline(onEnter, onLeft, onOperator, onRight, onExit2, undefined);
|
|
44463
44463
|
function onEnter(node, state) {
|
|
44464
44464
|
if (state) {
|
|
44465
44465
|
state.stackIndex++;
|
|
@@ -44519,7 +44519,7 @@ ${lanes.join(`
|
|
|
44519
44519
|
return maybeBound;
|
|
44520
44520
|
}
|
|
44521
44521
|
}
|
|
44522
|
-
function
|
|
44522
|
+
function onExit2(node, state) {
|
|
44523
44523
|
if (!state.skip) {
|
|
44524
44524
|
const operator = node.operatorToken.kind;
|
|
44525
44525
|
if (isAssignmentOperator(operator) && !isAssignmentTarget(node)) {
|
|
@@ -75087,7 +75087,7 @@ ${lanes.join(`
|
|
|
75087
75087
|
return (target.flags & 98304) !== 0 || isTypeComparableTo(source, target);
|
|
75088
75088
|
}
|
|
75089
75089
|
function createCheckBinaryExpression() {
|
|
75090
|
-
const trampoline = createBinaryExpressionTrampoline(onEnter, onLeft, onOperator, onRight,
|
|
75090
|
+
const trampoline = createBinaryExpressionTrampoline(onEnter, onLeft, onOperator, onRight, onExit2, foldState);
|
|
75091
75091
|
return (node, checkMode) => {
|
|
75092
75092
|
const result = trampoline(node, checkMode);
|
|
75093
75093
|
Debug.assertIsDefined(result);
|
|
@@ -75152,7 +75152,7 @@ ${lanes.join(`
|
|
|
75152
75152
|
return maybeCheckExpression(state, right);
|
|
75153
75153
|
}
|
|
75154
75154
|
}
|
|
75155
|
-
function
|
|
75155
|
+
function onExit2(node, state) {
|
|
75156
75156
|
let result;
|
|
75157
75157
|
if (state.skip) {
|
|
75158
75158
|
result = getLastResult(state);
|
|
@@ -104078,7 +104078,7 @@ ${lanes.join(`
|
|
|
104078
104078
|
writeTokenText(node.operator, writeOperator);
|
|
104079
104079
|
}
|
|
104080
104080
|
function createEmitBinaryExpression() {
|
|
104081
|
-
return createBinaryExpressionTrampoline(onEnter, onLeft, onOperator, onRight,
|
|
104081
|
+
return createBinaryExpressionTrampoline(onEnter, onLeft, onOperator, onRight, onExit2, undefined);
|
|
104082
104082
|
function onEnter(node, state) {
|
|
104083
104083
|
if (state) {
|
|
104084
104084
|
state.stackIndex++;
|
|
@@ -104123,7 +104123,7 @@ ${lanes.join(`
|
|
|
104123
104123
|
function onRight(next, _workArea, parent2) {
|
|
104124
104124
|
return maybeEmitExpression(next, parent2, "right");
|
|
104125
104125
|
}
|
|
104126
|
-
function
|
|
104126
|
+
function onExit2(node, state) {
|
|
104127
104127
|
const linesBeforeOperator = getLinesBetweenNodes(node, node.left, node.operatorToken);
|
|
104128
104128
|
const linesAfterOperator = getLinesBetweenNodes(node, node.operatorToken, node.right);
|
|
104129
104129
|
decreaseIndentIf(linesBeforeOperator, linesAfterOperator);
|
|
@@ -169393,9 +169393,9 @@ var require_unescape = __commonJS((exports) => {
|
|
|
169393
169393
|
exports.unescape = undefined;
|
|
169394
169394
|
var unescape = (s, { windowsPathsNoEscape = false, magicalBraces = true } = {}) => {
|
|
169395
169395
|
if (magicalBraces) {
|
|
169396
|
-
return windowsPathsNoEscape ? s.replace(/\[([
|
|
169396
|
+
return windowsPathsNoEscape ? s.replace(/\[([^/\\])\]/g, "$1") : s.replace(/((?!\\).|^)\[([^/\\])\]/g, "$1$2").replace(/\\([^/])/g, "$1");
|
|
169397
169397
|
}
|
|
169398
|
-
return windowsPathsNoEscape ? s.replace(/\[([
|
|
169398
|
+
return windowsPathsNoEscape ? s.replace(/\[([^/\\{}])\]/g, "$1") : s.replace(/((?!\\).|^)\[([^/\\{}])\]/g, "$1$2").replace(/\\([^/{}])/g, "$1");
|
|
169399
169399
|
};
|
|
169400
169400
|
exports.unescape = unescape;
|
|
169401
169401
|
});
|
|
@@ -169520,13 +169520,7 @@ var require_ast = __commonJS((exports) => {
|
|
|
169520
169520
|
return this.#hasMagic;
|
|
169521
169521
|
}
|
|
169522
169522
|
toString() {
|
|
169523
|
-
|
|
169524
|
-
return this.#toString;
|
|
169525
|
-
if (!this.type) {
|
|
169526
|
-
return this.#toString = this.#parts.map((p) => String(p)).join("");
|
|
169527
|
-
} else {
|
|
169528
|
-
return this.#toString = this.type + "(" + this.#parts.map((p) => String(p)).join("|") + ")";
|
|
169529
|
-
}
|
|
169523
|
+
return this.#toString !== undefined ? this.#toString : !this.type ? this.#toString = this.#parts.map((p) => String(p)).join("") : this.#toString = this.type + "(" + this.#parts.map((p) => String(p)).join("|") + ")";
|
|
169530
169524
|
}
|
|
169531
169525
|
#fillNegs() {
|
|
169532
169526
|
if (this !== this.#root)
|
|
@@ -170005,7 +169999,7 @@ var require_commonjs3 = __commonJS((exports) => {
|
|
|
170005
169999
|
return new Minimatch(pattern, options).match(p);
|
|
170006
170000
|
};
|
|
170007
170001
|
exports.minimatch = minimatch;
|
|
170008
|
-
var starDotExtRE = /^\*+([
|
|
170002
|
+
var starDotExtRE = /^\*+([^+@!?*[(]*)$/;
|
|
170009
170003
|
var starDotExtTest = (ext2) => (f) => !f.startsWith(".") && f.endsWith(ext2);
|
|
170010
170004
|
var starDotExtTestDot = (ext2) => (f) => f.endsWith(ext2);
|
|
170011
170005
|
var starDotExtTestNocase = (ext2) => {
|
|
@@ -170024,7 +170018,7 @@ var require_commonjs3 = __commonJS((exports) => {
|
|
|
170024
170018
|
var starRE = /^\*+$/;
|
|
170025
170019
|
var starTest = (f) => f.length !== 0 && !f.startsWith(".");
|
|
170026
170020
|
var starTestDot = (f) => f.length !== 0 && f !== "." && f !== "..";
|
|
170027
|
-
var qmarksRE = /^\?+([
|
|
170021
|
+
var qmarksRE = /^\?+([^+@!?*[(]*)?$/;
|
|
170028
170022
|
var qmarksTestNocase = ([$0, ext2 = ""]) => {
|
|
170029
170023
|
const noext = qmarksTestNoExt([$0]);
|
|
170030
170024
|
if (!ext2)
|
|
@@ -170241,10 +170235,10 @@ var require_commonjs3 = __commonJS((exports) => {
|
|
|
170241
170235
|
}
|
|
170242
170236
|
preprocess(globParts) {
|
|
170243
170237
|
if (this.options.noglobstar) {
|
|
170244
|
-
for (
|
|
170245
|
-
for (let j = 0;j <
|
|
170246
|
-
if (
|
|
170247
|
-
|
|
170238
|
+
for (const partset of globParts) {
|
|
170239
|
+
for (let j = 0;j < partset.length; j++) {
|
|
170240
|
+
if (partset[j] === "**") {
|
|
170241
|
+
partset[j] = "*";
|
|
170248
170242
|
}
|
|
170249
170243
|
}
|
|
170250
170244
|
}
|
|
@@ -170320,7 +170314,7 @@ var require_commonjs3 = __commonJS((exports) => {
|
|
|
170320
170314
|
let dd = 0;
|
|
170321
170315
|
while ((dd = parts.indexOf("..", dd + 1)) !== -1) {
|
|
170322
170316
|
const p = parts[dd - 1];
|
|
170323
|
-
if (p && p !== "." && p !== ".." && p !== "**") {
|
|
170317
|
+
if (p && p !== "." && p !== ".." && p !== "**" && !(this.isWindows && /^[a-z]:$/i.test(p))) {
|
|
170324
170318
|
didSomething = true;
|
|
170325
170319
|
parts.splice(dd - 1, 2);
|
|
170326
170320
|
dd -= 2;
|
|
@@ -170704,7 +170698,7 @@ var require_commonjs3 = __commonJS((exports) => {
|
|
|
170704
170698
|
re = "^(?!" + re + ").+$";
|
|
170705
170699
|
try {
|
|
170706
170700
|
this.regexp = new RegExp(re, [...flags].join(""));
|
|
170707
|
-
} catch
|
|
170701
|
+
} catch {
|
|
170708
170702
|
this.regexp = false;
|
|
170709
170703
|
}
|
|
170710
170704
|
return this.regexp;
|
|
@@ -170712,7 +170706,7 @@ var require_commonjs3 = __commonJS((exports) => {
|
|
|
170712
170706
|
slashSplit(p) {
|
|
170713
170707
|
if (this.preserveMultipleSlashes) {
|
|
170714
170708
|
return p.split("/");
|
|
170715
|
-
} else if (this.isWindows && /^\/\/[
|
|
170709
|
+
} else if (this.isWindows && /^\/\/[^/]+/.test(p)) {
|
|
170716
170710
|
return ["", ...p.split(/\/+/)];
|
|
170717
170711
|
} else {
|
|
170718
170712
|
return p.split(/\/+/);
|
|
@@ -170743,8 +170737,7 @@ var require_commonjs3 = __commonJS((exports) => {
|
|
|
170743
170737
|
filename = ff[i];
|
|
170744
170738
|
}
|
|
170745
170739
|
}
|
|
170746
|
-
for (
|
|
170747
|
-
const pattern = set[i];
|
|
170740
|
+
for (const pattern of set) {
|
|
170748
170741
|
let file = ff;
|
|
170749
170742
|
if (options.matchBase && pattern.length === 1) {
|
|
170750
170743
|
file = [filename];
|
|
@@ -217154,13 +217147,13 @@ interface CSSNumericArray{[Symbol.iterator]():ArrayIterator<CSSNumericValue>;ent
|
|
|
217154
217147
|
const result = [];
|
|
217155
217148
|
for (const path2 of paths) {
|
|
217156
217149
|
for (let pattern of patterns) {
|
|
217157
|
-
let
|
|
217150
|
+
let process4 = addArray;
|
|
217158
217151
|
if (FileUtils.isNegatedGlob(pattern)) {
|
|
217159
|
-
|
|
217152
|
+
process4 = removeArray;
|
|
217160
217153
|
pattern = pattern.slice(1);
|
|
217161
217154
|
}
|
|
217162
217155
|
if (runtime.getPathMatchesPattern(path2, pattern))
|
|
217163
|
-
|
|
217156
|
+
process4(result, path2);
|
|
217164
217157
|
}
|
|
217165
217158
|
}
|
|
217166
217159
|
return result;
|
|
@@ -245822,13 +245815,13 @@ var require_getMachineId_bsd = __commonJS((exports) => {
|
|
|
245822
245815
|
var require_getMachineId_win = __commonJS((exports) => {
|
|
245823
245816
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
245824
245817
|
exports.getMachineId = undefined;
|
|
245825
|
-
var
|
|
245818
|
+
var process11 = __require("process");
|
|
245826
245819
|
var execAsync_1 = require_execAsync();
|
|
245827
245820
|
var api_1 = require_src();
|
|
245828
245821
|
async function getMachineId() {
|
|
245829
245822
|
const args = "QUERY HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\Cryptography /v MachineGuid";
|
|
245830
245823
|
let command = "%windir%\\System32\\REG.exe";
|
|
245831
|
-
if (
|
|
245824
|
+
if (process11.arch === "ia32" && "PROCESSOR_ARCHITEW6432" in process11.env) {
|
|
245832
245825
|
command = "%windir%\\sysnative\\cmd.exe /c " + command;
|
|
245833
245826
|
}
|
|
245834
245827
|
try {
|
|
@@ -245861,11 +245854,11 @@ var require_getMachineId_unsupported = __commonJS((exports) => {
|
|
|
245861
245854
|
var require_getMachineId = __commonJS((exports) => {
|
|
245862
245855
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
245863
245856
|
exports.getMachineId = undefined;
|
|
245864
|
-
var
|
|
245857
|
+
var process11 = __require("process");
|
|
245865
245858
|
var getMachineIdImpl;
|
|
245866
245859
|
async function getMachineId() {
|
|
245867
245860
|
if (!getMachineIdImpl) {
|
|
245868
|
-
switch (
|
|
245861
|
+
switch (process11.platform) {
|
|
245869
245862
|
case "darwin":
|
|
245870
245863
|
getMachineIdImpl = (await Promise.resolve().then(() => __toESM(require_getMachineId_darwin()))).getMachineId;
|
|
245871
245864
|
break;
|
|
@@ -246791,19 +246784,19 @@ var require_src6 = __commonJS((exports) => {
|
|
|
246791
246784
|
// package.json
|
|
246792
246785
|
var package_default = {
|
|
246793
246786
|
name: "@uipath/vertical-solutions-tool",
|
|
246794
|
-
version: "0.1.
|
|
246787
|
+
version: "0.1.11",
|
|
246795
246788
|
description: "Scaffold and generate Vertical Solution projects.",
|
|
246796
246789
|
private: false,
|
|
246797
246790
|
repository: {
|
|
246798
246791
|
type: "git",
|
|
246799
|
-
url: "https://github.com/UiPath/
|
|
246792
|
+
url: "https://github.com/UiPath/cli.git",
|
|
246800
246793
|
directory: "packages/vertical-solutions-tool"
|
|
246801
246794
|
},
|
|
246802
246795
|
publishConfig: {
|
|
246803
|
-
registry: "https://
|
|
246796
|
+
registry: "https://npm.pkg.github.com/@uipath"
|
|
246804
246797
|
},
|
|
246805
246798
|
keywords: [
|
|
246806
|
-
"
|
|
246799
|
+
"cli-tool",
|
|
246807
246800
|
"uipath",
|
|
246808
246801
|
"cli",
|
|
246809
246802
|
"plugin",
|
|
@@ -246825,7 +246818,7 @@ var package_default = {
|
|
|
246825
246818
|
"dist"
|
|
246826
246819
|
],
|
|
246827
246820
|
scripts: {
|
|
246828
|
-
build: "bun build
|
|
246821
|
+
build: "bun ../../tools/build-tool.ts",
|
|
246829
246822
|
package: "bun run build && bun pm pack",
|
|
246830
246823
|
lint: "biome check .",
|
|
246831
246824
|
"lint:fix": "biome check --write .",
|
|
@@ -246833,15 +246826,15 @@ var package_default = {
|
|
|
246833
246826
|
},
|
|
246834
246827
|
peerDependencies: {
|
|
246835
246828
|
commander: "^14.0.3",
|
|
246836
|
-
"@uipath/common": "^0.1.
|
|
246837
|
-
"@uipath/auth": "^0.1.
|
|
246829
|
+
"@uipath/common": "^0.1.13",
|
|
246830
|
+
"@uipath/auth": "^0.1.9",
|
|
246838
246831
|
"@uipath/filesystem": "^0.1.6",
|
|
246839
|
-
"@uipath/solutionpackager-tool-core": "
|
|
246832
|
+
"@uipath/solutionpackager-tool-core": "workspace:*"
|
|
246840
246833
|
},
|
|
246841
246834
|
devDependencies: {
|
|
246842
246835
|
"@inquirer/prompts": "^8.3.2",
|
|
246843
246836
|
"@uipath/uipath-typescript": "^1.2.1",
|
|
246844
|
-
"@types/node": "^25.
|
|
246837
|
+
"@types/node": "^25.5.0",
|
|
246845
246838
|
ora: "^9.3.0",
|
|
246846
246839
|
"ts-morph": "^27.0.2",
|
|
246847
246840
|
typescript: "^5",
|
|
@@ -247855,7 +247848,7 @@ var import_mute_stream = __toESM(require_lib(), 1);
|
|
|
247855
247848
|
import * as readline2 from "node:readline";
|
|
247856
247849
|
import { AsyncResource as AsyncResource3 } from "node:async_hooks";
|
|
247857
247850
|
|
|
247858
|
-
// ../../node_modules
|
|
247851
|
+
// ../../node_modules/signal-exit/dist/mjs/signals.js
|
|
247859
247852
|
var signals = [];
|
|
247860
247853
|
signals.push("SIGHUP", "SIGINT", "SIGTERM");
|
|
247861
247854
|
if (process.platform !== "win32") {
|
|
@@ -247865,7 +247858,7 @@ if (process.platform === "linux") {
|
|
|
247865
247858
|
signals.push("SIGIO", "SIGPOLL", "SIGPWR", "SIGSTKFLT");
|
|
247866
247859
|
}
|
|
247867
247860
|
|
|
247868
|
-
// ../../node_modules
|
|
247861
|
+
// ../../node_modules/signal-exit/dist/mjs/index.js
|
|
247869
247862
|
var processOk = (process3) => !!process3 && typeof process3 === "object" && typeof process3.removeListener === "function" && typeof process3.emit === "function" && typeof process3.reallyExit === "function" && typeof process3.listeners === "function" && typeof process3.kill === "function" && typeof process3.pid === "number" && typeof process3.on === "function";
|
|
247870
247863
|
var kExitEmitter = Symbol.for("signal-exit emitter");
|
|
247871
247864
|
var global2 = globalThis;
|
|
@@ -248066,7 +248059,7 @@ var {
|
|
|
248066
248059
|
// ../../node_modules/@inquirer/checkbox/node_modules/@inquirer/core/dist/lib/screen-manager.js
|
|
248067
248060
|
import { stripVTControlCharacters } from "node:util";
|
|
248068
248061
|
|
|
248069
|
-
// ../../node_modules/@inquirer/ansi/dist/index.js
|
|
248062
|
+
// ../../node_modules/@inquirer/checkbox/node_modules/@inquirer/ansi/dist/index.js
|
|
248070
248063
|
var ESC2 = "\x1B[";
|
|
248071
248064
|
var cursorLeft = ESC2 + "G";
|
|
248072
248065
|
var cursorHide = ESC2 + "?25l";
|
|
@@ -248735,214 +248728,6 @@ var import_mute_stream2 = __toESM(require_lib2(), 1);
|
|
|
248735
248728
|
import * as readline4 from "node:readline";
|
|
248736
248729
|
import { AsyncResource as AsyncResource6 } from "node:async_hooks";
|
|
248737
248730
|
|
|
248738
|
-
// ../../node_modules/@inquirer/input/node_modules/@inquirer/core/node_modules/signal-exit/dist/mjs/signals.js
|
|
248739
|
-
var signals2 = [];
|
|
248740
|
-
signals2.push("SIGHUP", "SIGINT", "SIGTERM");
|
|
248741
|
-
if (process.platform !== "win32") {
|
|
248742
|
-
signals2.push("SIGALRM", "SIGABRT", "SIGVTALRM", "SIGXCPU", "SIGXFSZ", "SIGUSR2", "SIGTRAP", "SIGSYS", "SIGQUIT", "SIGIOT");
|
|
248743
|
-
}
|
|
248744
|
-
if (process.platform === "linux") {
|
|
248745
|
-
signals2.push("SIGIO", "SIGPOLL", "SIGPWR", "SIGSTKFLT");
|
|
248746
|
-
}
|
|
248747
|
-
|
|
248748
|
-
// ../../node_modules/@inquirer/input/node_modules/@inquirer/core/node_modules/signal-exit/dist/mjs/index.js
|
|
248749
|
-
var processOk2 = (process4) => !!process4 && typeof process4 === "object" && typeof process4.removeListener === "function" && typeof process4.emit === "function" && typeof process4.reallyExit === "function" && typeof process4.listeners === "function" && typeof process4.kill === "function" && typeof process4.pid === "number" && typeof process4.on === "function";
|
|
248750
|
-
var kExitEmitter2 = Symbol.for("signal-exit emitter");
|
|
248751
|
-
var global3 = globalThis;
|
|
248752
|
-
var ObjectDefineProperty2 = Object.defineProperty.bind(Object);
|
|
248753
|
-
|
|
248754
|
-
class Emitter2 {
|
|
248755
|
-
emitted = {
|
|
248756
|
-
afterExit: false,
|
|
248757
|
-
exit: false
|
|
248758
|
-
};
|
|
248759
|
-
listeners = {
|
|
248760
|
-
afterExit: [],
|
|
248761
|
-
exit: []
|
|
248762
|
-
};
|
|
248763
|
-
count = 0;
|
|
248764
|
-
id = Math.random();
|
|
248765
|
-
constructor() {
|
|
248766
|
-
if (global3[kExitEmitter2]) {
|
|
248767
|
-
return global3[kExitEmitter2];
|
|
248768
|
-
}
|
|
248769
|
-
ObjectDefineProperty2(global3, kExitEmitter2, {
|
|
248770
|
-
value: this,
|
|
248771
|
-
writable: false,
|
|
248772
|
-
enumerable: false,
|
|
248773
|
-
configurable: false
|
|
248774
|
-
});
|
|
248775
|
-
}
|
|
248776
|
-
on(ev, fn) {
|
|
248777
|
-
this.listeners[ev].push(fn);
|
|
248778
|
-
}
|
|
248779
|
-
removeListener(ev, fn) {
|
|
248780
|
-
const list = this.listeners[ev];
|
|
248781
|
-
const i = list.indexOf(fn);
|
|
248782
|
-
if (i === -1) {
|
|
248783
|
-
return;
|
|
248784
|
-
}
|
|
248785
|
-
if (i === 0 && list.length === 1) {
|
|
248786
|
-
list.length = 0;
|
|
248787
|
-
} else {
|
|
248788
|
-
list.splice(i, 1);
|
|
248789
|
-
}
|
|
248790
|
-
}
|
|
248791
|
-
emit(ev, code, signal) {
|
|
248792
|
-
if (this.emitted[ev]) {
|
|
248793
|
-
return false;
|
|
248794
|
-
}
|
|
248795
|
-
this.emitted[ev] = true;
|
|
248796
|
-
let ret = false;
|
|
248797
|
-
for (const fn of this.listeners[ev]) {
|
|
248798
|
-
ret = fn(code, signal) === true || ret;
|
|
248799
|
-
}
|
|
248800
|
-
if (ev === "exit") {
|
|
248801
|
-
ret = this.emit("afterExit", code, signal) || ret;
|
|
248802
|
-
}
|
|
248803
|
-
return ret;
|
|
248804
|
-
}
|
|
248805
|
-
}
|
|
248806
|
-
|
|
248807
|
-
class SignalExitBase2 {
|
|
248808
|
-
}
|
|
248809
|
-
var signalExitWrap2 = (handler) => {
|
|
248810
|
-
return {
|
|
248811
|
-
onExit(cb, opts) {
|
|
248812
|
-
return handler.onExit(cb, opts);
|
|
248813
|
-
},
|
|
248814
|
-
load() {
|
|
248815
|
-
return handler.load();
|
|
248816
|
-
},
|
|
248817
|
-
unload() {
|
|
248818
|
-
return handler.unload();
|
|
248819
|
-
}
|
|
248820
|
-
};
|
|
248821
|
-
};
|
|
248822
|
-
|
|
248823
|
-
class SignalExitFallback2 extends SignalExitBase2 {
|
|
248824
|
-
onExit() {
|
|
248825
|
-
return () => {};
|
|
248826
|
-
}
|
|
248827
|
-
load() {}
|
|
248828
|
-
unload() {}
|
|
248829
|
-
}
|
|
248830
|
-
|
|
248831
|
-
class SignalExit2 extends SignalExitBase2 {
|
|
248832
|
-
#hupSig = process4.platform === "win32" ? "SIGINT" : "SIGHUP";
|
|
248833
|
-
#emitter = new Emitter2;
|
|
248834
|
-
#process;
|
|
248835
|
-
#originalProcessEmit;
|
|
248836
|
-
#originalProcessReallyExit;
|
|
248837
|
-
#sigListeners = {};
|
|
248838
|
-
#loaded = false;
|
|
248839
|
-
constructor(process4) {
|
|
248840
|
-
super();
|
|
248841
|
-
this.#process = process4;
|
|
248842
|
-
this.#sigListeners = {};
|
|
248843
|
-
for (const sig of signals2) {
|
|
248844
|
-
this.#sigListeners[sig] = () => {
|
|
248845
|
-
const listeners = this.#process.listeners(sig);
|
|
248846
|
-
let { count } = this.#emitter;
|
|
248847
|
-
const p = process4;
|
|
248848
|
-
if (typeof p.__signal_exit_emitter__ === "object" && typeof p.__signal_exit_emitter__.count === "number") {
|
|
248849
|
-
count += p.__signal_exit_emitter__.count;
|
|
248850
|
-
}
|
|
248851
|
-
if (listeners.length === count) {
|
|
248852
|
-
this.unload();
|
|
248853
|
-
const ret = this.#emitter.emit("exit", null, sig);
|
|
248854
|
-
const s = sig === "SIGHUP" ? this.#hupSig : sig;
|
|
248855
|
-
if (!ret)
|
|
248856
|
-
process4.kill(process4.pid, s);
|
|
248857
|
-
}
|
|
248858
|
-
};
|
|
248859
|
-
}
|
|
248860
|
-
this.#originalProcessReallyExit = process4.reallyExit;
|
|
248861
|
-
this.#originalProcessEmit = process4.emit;
|
|
248862
|
-
}
|
|
248863
|
-
onExit(cb, opts) {
|
|
248864
|
-
if (!processOk2(this.#process)) {
|
|
248865
|
-
return () => {};
|
|
248866
|
-
}
|
|
248867
|
-
if (this.#loaded === false) {
|
|
248868
|
-
this.load();
|
|
248869
|
-
}
|
|
248870
|
-
const ev = opts?.alwaysLast ? "afterExit" : "exit";
|
|
248871
|
-
this.#emitter.on(ev, cb);
|
|
248872
|
-
return () => {
|
|
248873
|
-
this.#emitter.removeListener(ev, cb);
|
|
248874
|
-
if (this.#emitter.listeners["exit"].length === 0 && this.#emitter.listeners["afterExit"].length === 0) {
|
|
248875
|
-
this.unload();
|
|
248876
|
-
}
|
|
248877
|
-
};
|
|
248878
|
-
}
|
|
248879
|
-
load() {
|
|
248880
|
-
if (this.#loaded) {
|
|
248881
|
-
return;
|
|
248882
|
-
}
|
|
248883
|
-
this.#loaded = true;
|
|
248884
|
-
this.#emitter.count += 1;
|
|
248885
|
-
for (const sig of signals2) {
|
|
248886
|
-
try {
|
|
248887
|
-
const fn = this.#sigListeners[sig];
|
|
248888
|
-
if (fn)
|
|
248889
|
-
this.#process.on(sig, fn);
|
|
248890
|
-
} catch (_) {}
|
|
248891
|
-
}
|
|
248892
|
-
this.#process.emit = (ev, ...a) => {
|
|
248893
|
-
return this.#processEmit(ev, ...a);
|
|
248894
|
-
};
|
|
248895
|
-
this.#process.reallyExit = (code) => {
|
|
248896
|
-
return this.#processReallyExit(code);
|
|
248897
|
-
};
|
|
248898
|
-
}
|
|
248899
|
-
unload() {
|
|
248900
|
-
if (!this.#loaded) {
|
|
248901
|
-
return;
|
|
248902
|
-
}
|
|
248903
|
-
this.#loaded = false;
|
|
248904
|
-
signals2.forEach((sig) => {
|
|
248905
|
-
const listener = this.#sigListeners[sig];
|
|
248906
|
-
if (!listener) {
|
|
248907
|
-
throw new Error("Listener not defined for signal: " + sig);
|
|
248908
|
-
}
|
|
248909
|
-
try {
|
|
248910
|
-
this.#process.removeListener(sig, listener);
|
|
248911
|
-
} catch (_) {}
|
|
248912
|
-
});
|
|
248913
|
-
this.#process.emit = this.#originalProcessEmit;
|
|
248914
|
-
this.#process.reallyExit = this.#originalProcessReallyExit;
|
|
248915
|
-
this.#emitter.count -= 1;
|
|
248916
|
-
}
|
|
248917
|
-
#processReallyExit(code) {
|
|
248918
|
-
if (!processOk2(this.#process)) {
|
|
248919
|
-
return 0;
|
|
248920
|
-
}
|
|
248921
|
-
this.#process.exitCode = code || 0;
|
|
248922
|
-
this.#emitter.emit("exit", this.#process.exitCode, null);
|
|
248923
|
-
return this.#originalProcessReallyExit.call(this.#process, this.#process.exitCode);
|
|
248924
|
-
}
|
|
248925
|
-
#processEmit(ev, ...args) {
|
|
248926
|
-
const og = this.#originalProcessEmit;
|
|
248927
|
-
if (ev === "exit" && processOk2(this.#process)) {
|
|
248928
|
-
if (typeof args[0] === "number") {
|
|
248929
|
-
this.#process.exitCode = args[0];
|
|
248930
|
-
}
|
|
248931
|
-
const ret = og.call(this.#process, ev, ...args);
|
|
248932
|
-
this.#emitter.emit("exit", this.#process.exitCode, null);
|
|
248933
|
-
return ret;
|
|
248934
|
-
} else {
|
|
248935
|
-
return og.call(this.#process, ev, ...args);
|
|
248936
|
-
}
|
|
248937
|
-
}
|
|
248938
|
-
}
|
|
248939
|
-
var process4 = globalThis.process;
|
|
248940
|
-
var {
|
|
248941
|
-
onExit: onExit2,
|
|
248942
|
-
load: load2,
|
|
248943
|
-
unload: unload2
|
|
248944
|
-
} = signalExitWrap2(processOk2(process4) ? new SignalExit2(process4) : new SignalExitFallback2);
|
|
248945
|
-
|
|
248946
248731
|
// ../../node_modules/@inquirer/input/node_modules/@inquirer/core/dist/lib/screen-manager.js
|
|
248947
248732
|
import { stripVTControlCharacters as stripVTControlCharacters2 } from "node:util";
|
|
248948
248733
|
|
|
@@ -248958,6 +248743,22 @@ function readlineWidth2() {
|
|
|
248958
248743
|
return import_cli_width2.default({ defaultWidth: 80, output: readline3().output });
|
|
248959
248744
|
}
|
|
248960
248745
|
|
|
248746
|
+
// ../../node_modules/@inquirer/input/node_modules/@inquirer/core/node_modules/@inquirer/ansi/dist/index.js
|
|
248747
|
+
var ESC3 = "\x1B[";
|
|
248748
|
+
var cursorLeft2 = ESC3 + "G";
|
|
248749
|
+
var cursorHide2 = ESC3 + "?25l";
|
|
248750
|
+
var cursorShow2 = ESC3 + "?25h";
|
|
248751
|
+
var cursorUp2 = (rows = 1) => rows > 0 ? `${ESC3}${rows}A` : "";
|
|
248752
|
+
var cursorDown2 = (rows = 1) => rows > 0 ? `${ESC3}${rows}B` : "";
|
|
248753
|
+
var cursorTo2 = (x, y) => {
|
|
248754
|
+
if (typeof y === "number" && !Number.isNaN(y)) {
|
|
248755
|
+
return `${ESC3}${y + 1};${x + 1}H`;
|
|
248756
|
+
}
|
|
248757
|
+
return `${ESC3}${x + 1}G`;
|
|
248758
|
+
};
|
|
248759
|
+
var eraseLine2 = ESC3 + "2K";
|
|
248760
|
+
var eraseLines2 = (lines) => lines > 0 ? (eraseLine2 + cursorUp2(1)).repeat(lines - 1) + eraseLine2 + cursorLeft2 : "";
|
|
248761
|
+
|
|
248961
248762
|
// ../../node_modules/@inquirer/input/node_modules/@inquirer/core/dist/lib/screen-manager.js
|
|
248962
248763
|
var height2 = (content) => content.split(`
|
|
248963
248764
|
`).length;
|
|
@@ -248999,25 +248800,25 @@ class ScreenManager2 {
|
|
|
248999
248800
|
const promptLineUpDiff = Math.floor(rawPromptLine.length / width) - this.cursorPos.rows;
|
|
249000
248801
|
const bottomContentHeight = promptLineUpDiff + (bottomContent ? height2(bottomContent) : 0);
|
|
249001
248802
|
if (bottomContentHeight > 0)
|
|
249002
|
-
output +=
|
|
249003
|
-
output +=
|
|
249004
|
-
this.write(
|
|
248803
|
+
output += cursorUp2(bottomContentHeight);
|
|
248804
|
+
output += cursorTo2(this.cursorPos.cols);
|
|
248805
|
+
this.write(cursorDown2(this.extraLinesUnderPrompt) + eraseLines2(this.height) + output);
|
|
249005
248806
|
this.extraLinesUnderPrompt = bottomContentHeight;
|
|
249006
248807
|
this.height = height2(output);
|
|
249007
248808
|
}
|
|
249008
248809
|
checkCursorPos() {
|
|
249009
248810
|
const cursorPos = this.rl.getCursorPos();
|
|
249010
248811
|
if (cursorPos.cols !== this.cursorPos.cols) {
|
|
249011
|
-
this.write(
|
|
248812
|
+
this.write(cursorTo2(cursorPos.cols));
|
|
249012
248813
|
this.cursorPos = cursorPos;
|
|
249013
248814
|
}
|
|
249014
248815
|
}
|
|
249015
248816
|
done({ clearContent }) {
|
|
249016
248817
|
this.rl.setPrompt("");
|
|
249017
|
-
let output =
|
|
249018
|
-
output += clearContent ?
|
|
248818
|
+
let output = cursorDown2(this.extraLinesUnderPrompt);
|
|
248819
|
+
output += clearContent ? eraseLines2(this.height) : `
|
|
249019
248820
|
`;
|
|
249020
|
-
output +=
|
|
248821
|
+
output += cursorShow2;
|
|
249021
248822
|
this.write(output);
|
|
249022
248823
|
this.rl.close();
|
|
249023
248824
|
}
|
|
@@ -249079,7 +248880,7 @@ function createPrompt2(view) {
|
|
|
249079
248880
|
signal.addEventListener("abort", abort);
|
|
249080
248881
|
cleanups.add(() => signal.removeEventListener("abort", abort));
|
|
249081
248882
|
}
|
|
249082
|
-
cleanups.add(
|
|
248883
|
+
cleanups.add(onExit((code, signal2) => {
|
|
249083
248884
|
reject(new ExitPromptError2(`User force closed the prompt with ${code} ${signal2}`));
|
|
249084
248885
|
}));
|
|
249085
248886
|
const sigint = () => reject(new ExitPromptError2(`User force closed the prompt with SIGINT`));
|
|
@@ -249483,7 +249284,7 @@ __export(exports_core2, {
|
|
|
249483
249284
|
safeDecode: () => safeDecode,
|
|
249484
249285
|
registry: () => registry,
|
|
249485
249286
|
regexes: () => exports_regexes,
|
|
249486
|
-
process: () =>
|
|
249287
|
+
process: () => process4,
|
|
249487
249288
|
prettifyError: () => prettifyError,
|
|
249488
249289
|
parseAsync: () => parseAsync,
|
|
249489
249290
|
parse: () => parse,
|
|
@@ -259947,7 +259748,7 @@ function initializeContext(params) {
|
|
|
259947
259748
|
external: params?.external ?? undefined
|
|
259948
259749
|
};
|
|
259949
259750
|
}
|
|
259950
|
-
function
|
|
259751
|
+
function process4(schema, ctx, _params = { path: [], schemaPath: [] }) {
|
|
259951
259752
|
var _a2;
|
|
259952
259753
|
const def = schema._zod.def;
|
|
259953
259754
|
const seen = ctx.seen.get(schema);
|
|
@@ -259984,7 +259785,7 @@ function process5(schema, ctx, _params = { path: [], schemaPath: [] }) {
|
|
|
259984
259785
|
if (parent) {
|
|
259985
259786
|
if (!result.ref)
|
|
259986
259787
|
result.ref = parent;
|
|
259987
|
-
|
|
259788
|
+
process4(parent, ctx, params);
|
|
259988
259789
|
ctx.seen.get(parent).isParent = true;
|
|
259989
259790
|
}
|
|
259990
259791
|
}
|
|
@@ -260260,14 +260061,14 @@ function isTransforming(_schema, _ctx) {
|
|
|
260260
260061
|
}
|
|
260261
260062
|
var createToJSONSchemaMethod = (schema, processors = {}) => (params) => {
|
|
260262
260063
|
const ctx = initializeContext({ ...params, processors });
|
|
260263
|
-
|
|
260064
|
+
process4(schema, ctx);
|
|
260264
260065
|
extractDefs(ctx, schema);
|
|
260265
260066
|
return finalize(ctx, schema);
|
|
260266
260067
|
};
|
|
260267
260068
|
var createStandardJSONSchemaMethod = (schema, io, processors = {}) => (params) => {
|
|
260268
260069
|
const { libraryOptions, target } = params ?? {};
|
|
260269
260070
|
const ctx = initializeContext({ ...libraryOptions ?? {}, target, io, processors });
|
|
260270
|
-
|
|
260071
|
+
process4(schema, ctx);
|
|
260271
260072
|
extractDefs(ctx, schema);
|
|
260272
260073
|
return finalize(ctx, schema);
|
|
260273
260074
|
};
|
|
@@ -260518,7 +260319,7 @@ var arrayProcessor = (schema, ctx, _json, params) => {
|
|
|
260518
260319
|
if (typeof maximum === "number")
|
|
260519
260320
|
json.maxItems = maximum;
|
|
260520
260321
|
json.type = "array";
|
|
260521
|
-
json.items =
|
|
260322
|
+
json.items = process4(def.element, ctx, { ...params, path: [...params.path, "items"] });
|
|
260522
260323
|
};
|
|
260523
260324
|
var objectProcessor = (schema, ctx, _json, params) => {
|
|
260524
260325
|
const json = _json;
|
|
@@ -260527,7 +260328,7 @@ var objectProcessor = (schema, ctx, _json, params) => {
|
|
|
260527
260328
|
json.properties = {};
|
|
260528
260329
|
const shape = def.shape;
|
|
260529
260330
|
for (const key in shape) {
|
|
260530
|
-
json.properties[key] =
|
|
260331
|
+
json.properties[key] = process4(shape[key], ctx, {
|
|
260531
260332
|
...params,
|
|
260532
260333
|
path: [...params.path, "properties", key]
|
|
260533
260334
|
});
|
|
@@ -260550,7 +260351,7 @@ var objectProcessor = (schema, ctx, _json, params) => {
|
|
|
260550
260351
|
if (ctx.io === "output")
|
|
260551
260352
|
json.additionalProperties = false;
|
|
260552
260353
|
} else if (def.catchall) {
|
|
260553
|
-
json.additionalProperties =
|
|
260354
|
+
json.additionalProperties = process4(def.catchall, ctx, {
|
|
260554
260355
|
...params,
|
|
260555
260356
|
path: [...params.path, "additionalProperties"]
|
|
260556
260357
|
});
|
|
@@ -260559,7 +260360,7 @@ var objectProcessor = (schema, ctx, _json, params) => {
|
|
|
260559
260360
|
var unionProcessor = (schema, ctx, json, params) => {
|
|
260560
260361
|
const def = schema._zod.def;
|
|
260561
260362
|
const isExclusive = def.inclusive === false;
|
|
260562
|
-
const options = def.options.map((x, i) =>
|
|
260363
|
+
const options = def.options.map((x, i) => process4(x, ctx, {
|
|
260563
260364
|
...params,
|
|
260564
260365
|
path: [...params.path, isExclusive ? "oneOf" : "anyOf", i]
|
|
260565
260366
|
}));
|
|
@@ -260571,11 +260372,11 @@ var unionProcessor = (schema, ctx, json, params) => {
|
|
|
260571
260372
|
};
|
|
260572
260373
|
var intersectionProcessor = (schema, ctx, json, params) => {
|
|
260573
260374
|
const def = schema._zod.def;
|
|
260574
|
-
const a =
|
|
260375
|
+
const a = process4(def.left, ctx, {
|
|
260575
260376
|
...params,
|
|
260576
260377
|
path: [...params.path, "allOf", 0]
|
|
260577
260378
|
});
|
|
260578
|
-
const b =
|
|
260379
|
+
const b = process4(def.right, ctx, {
|
|
260579
260380
|
...params,
|
|
260580
260381
|
path: [...params.path, "allOf", 1]
|
|
260581
260382
|
});
|
|
@@ -260592,11 +260393,11 @@ var tupleProcessor = (schema, ctx, _json, params) => {
|
|
|
260592
260393
|
json.type = "array";
|
|
260593
260394
|
const prefixPath = ctx.target === "draft-2020-12" ? "prefixItems" : "items";
|
|
260594
260395
|
const restPath = ctx.target === "draft-2020-12" ? "items" : ctx.target === "openapi-3.0" ? "items" : "additionalItems";
|
|
260595
|
-
const prefixItems = def.items.map((x, i) =>
|
|
260396
|
+
const prefixItems = def.items.map((x, i) => process4(x, ctx, {
|
|
260596
260397
|
...params,
|
|
260597
260398
|
path: [...params.path, prefixPath, i]
|
|
260598
260399
|
}));
|
|
260599
|
-
const rest = def.rest ?
|
|
260400
|
+
const rest = def.rest ? process4(def.rest, ctx, {
|
|
260600
260401
|
...params,
|
|
260601
260402
|
path: [...params.path, restPath, ...ctx.target === "openapi-3.0" ? [def.items.length] : []]
|
|
260602
260403
|
}) : null;
|
|
@@ -260636,7 +260437,7 @@ var recordProcessor = (schema, ctx, _json, params) => {
|
|
|
260636
260437
|
const keyBag = keyType._zod.bag;
|
|
260637
260438
|
const patterns = keyBag?.patterns;
|
|
260638
260439
|
if (def.mode === "loose" && patterns && patterns.size > 0) {
|
|
260639
|
-
const valueSchema =
|
|
260440
|
+
const valueSchema = process4(def.valueType, ctx, {
|
|
260640
260441
|
...params,
|
|
260641
260442
|
path: [...params.path, "patternProperties", "*"]
|
|
260642
260443
|
});
|
|
@@ -260646,12 +260447,12 @@ var recordProcessor = (schema, ctx, _json, params) => {
|
|
|
260646
260447
|
}
|
|
260647
260448
|
} else {
|
|
260648
260449
|
if (ctx.target === "draft-07" || ctx.target === "draft-2020-12") {
|
|
260649
|
-
json.propertyNames =
|
|
260450
|
+
json.propertyNames = process4(def.keyType, ctx, {
|
|
260650
260451
|
...params,
|
|
260651
260452
|
path: [...params.path, "propertyNames"]
|
|
260652
260453
|
});
|
|
260653
260454
|
}
|
|
260654
|
-
json.additionalProperties =
|
|
260455
|
+
json.additionalProperties = process4(def.valueType, ctx, {
|
|
260655
260456
|
...params,
|
|
260656
260457
|
path: [...params.path, "additionalProperties"]
|
|
260657
260458
|
});
|
|
@@ -260666,7 +260467,7 @@ var recordProcessor = (schema, ctx, _json, params) => {
|
|
|
260666
260467
|
};
|
|
260667
260468
|
var nullableProcessor = (schema, ctx, json, params) => {
|
|
260668
260469
|
const def = schema._zod.def;
|
|
260669
|
-
const inner =
|
|
260470
|
+
const inner = process4(def.innerType, ctx, params);
|
|
260670
260471
|
const seen = ctx.seen.get(schema);
|
|
260671
260472
|
if (ctx.target === "openapi-3.0") {
|
|
260672
260473
|
seen.ref = def.innerType;
|
|
@@ -260677,20 +260478,20 @@ var nullableProcessor = (schema, ctx, json, params) => {
|
|
|
260677
260478
|
};
|
|
260678
260479
|
var nonoptionalProcessor = (schema, ctx, _json, params) => {
|
|
260679
260480
|
const def = schema._zod.def;
|
|
260680
|
-
|
|
260481
|
+
process4(def.innerType, ctx, params);
|
|
260681
260482
|
const seen = ctx.seen.get(schema);
|
|
260682
260483
|
seen.ref = def.innerType;
|
|
260683
260484
|
};
|
|
260684
260485
|
var defaultProcessor = (schema, ctx, json, params) => {
|
|
260685
260486
|
const def = schema._zod.def;
|
|
260686
|
-
|
|
260487
|
+
process4(def.innerType, ctx, params);
|
|
260687
260488
|
const seen = ctx.seen.get(schema);
|
|
260688
260489
|
seen.ref = def.innerType;
|
|
260689
260490
|
json.default = JSON.parse(JSON.stringify(def.defaultValue));
|
|
260690
260491
|
};
|
|
260691
260492
|
var prefaultProcessor = (schema, ctx, json, params) => {
|
|
260692
260493
|
const def = schema._zod.def;
|
|
260693
|
-
|
|
260494
|
+
process4(def.innerType, ctx, params);
|
|
260694
260495
|
const seen = ctx.seen.get(schema);
|
|
260695
260496
|
seen.ref = def.innerType;
|
|
260696
260497
|
if (ctx.io === "input")
|
|
@@ -260698,7 +260499,7 @@ var prefaultProcessor = (schema, ctx, json, params) => {
|
|
|
260698
260499
|
};
|
|
260699
260500
|
var catchProcessor = (schema, ctx, json, params) => {
|
|
260700
260501
|
const def = schema._zod.def;
|
|
260701
|
-
|
|
260502
|
+
process4(def.innerType, ctx, params);
|
|
260702
260503
|
const seen = ctx.seen.get(schema);
|
|
260703
260504
|
seen.ref = def.innerType;
|
|
260704
260505
|
let catchValue;
|
|
@@ -260712,32 +260513,32 @@ var catchProcessor = (schema, ctx, json, params) => {
|
|
|
260712
260513
|
var pipeProcessor = (schema, ctx, _json, params) => {
|
|
260713
260514
|
const def = schema._zod.def;
|
|
260714
260515
|
const innerType = ctx.io === "input" ? def.in._zod.def.type === "transform" ? def.out : def.in : def.out;
|
|
260715
|
-
|
|
260516
|
+
process4(innerType, ctx, params);
|
|
260716
260517
|
const seen = ctx.seen.get(schema);
|
|
260717
260518
|
seen.ref = innerType;
|
|
260718
260519
|
};
|
|
260719
260520
|
var readonlyProcessor = (schema, ctx, json, params) => {
|
|
260720
260521
|
const def = schema._zod.def;
|
|
260721
|
-
|
|
260522
|
+
process4(def.innerType, ctx, params);
|
|
260722
260523
|
const seen = ctx.seen.get(schema);
|
|
260723
260524
|
seen.ref = def.innerType;
|
|
260724
260525
|
json.readOnly = true;
|
|
260725
260526
|
};
|
|
260726
260527
|
var promiseProcessor = (schema, ctx, _json, params) => {
|
|
260727
260528
|
const def = schema._zod.def;
|
|
260728
|
-
|
|
260529
|
+
process4(def.innerType, ctx, params);
|
|
260729
260530
|
const seen = ctx.seen.get(schema);
|
|
260730
260531
|
seen.ref = def.innerType;
|
|
260731
260532
|
};
|
|
260732
260533
|
var optionalProcessor = (schema, ctx, _json, params) => {
|
|
260733
260534
|
const def = schema._zod.def;
|
|
260734
|
-
|
|
260535
|
+
process4(def.innerType, ctx, params);
|
|
260735
260536
|
const seen = ctx.seen.get(schema);
|
|
260736
260537
|
seen.ref = def.innerType;
|
|
260737
260538
|
};
|
|
260738
260539
|
var lazyProcessor = (schema, ctx, _json, params) => {
|
|
260739
260540
|
const innerType = schema._zod.innerType;
|
|
260740
|
-
|
|
260541
|
+
process4(innerType, ctx, params);
|
|
260741
260542
|
const seen = ctx.seen.get(schema);
|
|
260742
260543
|
seen.ref = innerType;
|
|
260743
260544
|
};
|
|
@@ -260789,7 +260590,7 @@ function toJSONSchema(input, params) {
|
|
|
260789
260590
|
const defs = {};
|
|
260790
260591
|
for (const entry of registry2._idmap.entries()) {
|
|
260791
260592
|
const [_, schema] = entry;
|
|
260792
|
-
|
|
260593
|
+
process4(schema, ctx2);
|
|
260793
260594
|
}
|
|
260794
260595
|
const schemas = {};
|
|
260795
260596
|
const external = {
|
|
@@ -260812,7 +260613,7 @@ function toJSONSchema(input, params) {
|
|
|
260812
260613
|
return { schemas };
|
|
260813
260614
|
}
|
|
260814
260615
|
const ctx = initializeContext({ ...params, processors: allProcessors });
|
|
260815
|
-
|
|
260616
|
+
process4(input, ctx);
|
|
260816
260617
|
extractDefs(ctx, input);
|
|
260817
260618
|
return finalize(ctx, input);
|
|
260818
260619
|
}
|
|
@@ -260858,7 +260659,7 @@ class JSONSchemaGenerator {
|
|
|
260858
260659
|
});
|
|
260859
260660
|
}
|
|
260860
260661
|
process(schema, _params = { path: [], schemaPath: [] }) {
|
|
260861
|
-
return
|
|
260662
|
+
return process4(schema, this.ctx, _params);
|
|
260862
260663
|
}
|
|
260863
260664
|
emit(schema, _params) {
|
|
260864
260665
|
if (_params) {
|
|
@@ -262964,10 +262765,10 @@ var addEntityToConfig = async (entity, targetPath = ".") => {
|
|
|
262964
262765
|
import { catchError as catchError2 } from "@uipath/common";
|
|
262965
262766
|
|
|
262966
262767
|
// ../../node_modules/ora/index.js
|
|
262967
|
-
import
|
|
262768
|
+
import process10 from "node:process";
|
|
262968
262769
|
import { stripVTControlCharacters as stripVTControlCharacters3 } from "node:util";
|
|
262969
262770
|
|
|
262970
|
-
// ../../node_modules/
|
|
262771
|
+
// ../../node_modules/chalk/source/vendor/ansi-styles/index.js
|
|
262971
262772
|
var ANSI_BACKGROUND_OFFSET = 10;
|
|
262972
262773
|
var wrapAnsi16 = (offset = 0) => (code) => `\x1B[${code + offset}m`;
|
|
262973
262774
|
var wrapAnsi256 = (offset = 0) => (code) => `\x1B[${38 + offset};5;${code}m`;
|
|
@@ -263144,17 +262945,17 @@ function assembleStyles() {
|
|
|
263144
262945
|
var ansiStyles = assembleStyles();
|
|
263145
262946
|
var ansi_styles_default = ansiStyles;
|
|
263146
262947
|
|
|
263147
|
-
// ../../node_modules/
|
|
263148
|
-
import
|
|
262948
|
+
// ../../node_modules/chalk/source/vendor/supports-color/index.js
|
|
262949
|
+
import process5 from "node:process";
|
|
263149
262950
|
import os from "node:os";
|
|
263150
262951
|
import tty from "node:tty";
|
|
263151
|
-
function hasFlag(flag, argv = globalThis.Deno ? globalThis.Deno.args :
|
|
262952
|
+
function hasFlag(flag, argv = globalThis.Deno ? globalThis.Deno.args : process5.argv) {
|
|
263152
262953
|
const prefix = flag.startsWith("-") ? "" : flag.length === 1 ? "-" : "--";
|
|
263153
262954
|
const position = argv.indexOf(prefix + flag);
|
|
263154
262955
|
const terminatorPosition = argv.indexOf("--");
|
|
263155
262956
|
return position !== -1 && (terminatorPosition === -1 || position < terminatorPosition);
|
|
263156
262957
|
}
|
|
263157
|
-
var { env } =
|
|
262958
|
+
var { env } = process5;
|
|
263158
262959
|
var flagForceColor;
|
|
263159
262960
|
if (hasFlag("no-color") || hasFlag("no-colors") || hasFlag("color=false") || hasFlag("color=never")) {
|
|
263160
262961
|
flagForceColor = 0;
|
|
@@ -263210,7 +263011,7 @@ function _supportsColor(haveStream, { streamIsTTY, sniffFlags = true } = {}) {
|
|
|
263210
263011
|
if (env.TERM === "dumb") {
|
|
263211
263012
|
return min;
|
|
263212
263013
|
}
|
|
263213
|
-
if (
|
|
263014
|
+
if (process5.platform === "win32") {
|
|
263214
263015
|
const osRelease = os.release().split(".");
|
|
263215
263016
|
if (Number(osRelease[0]) >= 10 && Number(osRelease[2]) >= 10586) {
|
|
263216
263017
|
return Number(osRelease[2]) >= 14931 ? 3 : 2;
|
|
@@ -263276,7 +263077,7 @@ var supportsColor = {
|
|
|
263276
263077
|
};
|
|
263277
263078
|
var supports_color_default = supportsColor;
|
|
263278
263079
|
|
|
263279
|
-
// ../../node_modules/
|
|
263080
|
+
// ../../node_modules/chalk/source/utilities.js
|
|
263280
263081
|
function stringReplaceAll(string4, substring, replacer) {
|
|
263281
263082
|
let index = string4.indexOf(substring);
|
|
263282
263083
|
if (index === -1) {
|
|
@@ -263309,7 +263110,7 @@ function stringEncaseCRLFWithFirstIndex(string4, prefix, postfix, index) {
|
|
|
263309
263110
|
return returnValue;
|
|
263310
263111
|
}
|
|
263311
263112
|
|
|
263312
|
-
// ../../node_modules/
|
|
263113
|
+
// ../../node_modules/chalk/source/index.js
|
|
263313
263114
|
var { stdout: stdoutColor, stderr: stderrColor } = supports_color_default;
|
|
263314
263115
|
var GENERATOR = Symbol("GENERATOR");
|
|
263315
263116
|
var STYLER = Symbol("STYLER");
|
|
@@ -263457,10 +263258,10 @@ var chalkStderr = createChalk({ level: stderrColor ? stderrColor.level : 0 });
|
|
|
263457
263258
|
var source_default = chalk;
|
|
263458
263259
|
|
|
263459
263260
|
// ../../node_modules/ora/node_modules/cli-cursor/index.js
|
|
263460
|
-
import
|
|
263261
|
+
import process7 from "node:process";
|
|
263461
263262
|
|
|
263462
263263
|
// ../../node_modules/ora/node_modules/cli-cursor/node_modules/restore-cursor/index.js
|
|
263463
|
-
import
|
|
263264
|
+
import process6 from "node:process";
|
|
263464
263265
|
|
|
263465
263266
|
// ../../node_modules/mimic-function/index.js
|
|
263466
263267
|
var copyProperty = (to, from, property, ignoreNonConfigurable) => {
|
|
@@ -263539,218 +263340,10 @@ onetime.callCount = (function_) => {
|
|
|
263539
263340
|
};
|
|
263540
263341
|
var onetime_default = onetime;
|
|
263541
263342
|
|
|
263542
|
-
// ../../node_modules/ora/node_modules/cli-cursor/node_modules/restore-cursor/node_modules/signal-exit/dist/mjs/signals.js
|
|
263543
|
-
var signals3 = [];
|
|
263544
|
-
signals3.push("SIGHUP", "SIGINT", "SIGTERM");
|
|
263545
|
-
if (process.platform !== "win32") {
|
|
263546
|
-
signals3.push("SIGALRM", "SIGABRT", "SIGVTALRM", "SIGXCPU", "SIGXFSZ", "SIGUSR2", "SIGTRAP", "SIGSYS", "SIGQUIT", "SIGIOT");
|
|
263547
|
-
}
|
|
263548
|
-
if (process.platform === "linux") {
|
|
263549
|
-
signals3.push("SIGIO", "SIGPOLL", "SIGPWR", "SIGSTKFLT");
|
|
263550
|
-
}
|
|
263551
|
-
|
|
263552
|
-
// ../../node_modules/ora/node_modules/cli-cursor/node_modules/restore-cursor/node_modules/signal-exit/dist/mjs/index.js
|
|
263553
|
-
var processOk3 = (process7) => !!process7 && typeof process7 === "object" && typeof process7.removeListener === "function" && typeof process7.emit === "function" && typeof process7.reallyExit === "function" && typeof process7.listeners === "function" && typeof process7.kill === "function" && typeof process7.pid === "number" && typeof process7.on === "function";
|
|
263554
|
-
var kExitEmitter3 = Symbol.for("signal-exit emitter");
|
|
263555
|
-
var global4 = globalThis;
|
|
263556
|
-
var ObjectDefineProperty3 = Object.defineProperty.bind(Object);
|
|
263557
|
-
|
|
263558
|
-
class Emitter3 {
|
|
263559
|
-
emitted = {
|
|
263560
|
-
afterExit: false,
|
|
263561
|
-
exit: false
|
|
263562
|
-
};
|
|
263563
|
-
listeners = {
|
|
263564
|
-
afterExit: [],
|
|
263565
|
-
exit: []
|
|
263566
|
-
};
|
|
263567
|
-
count = 0;
|
|
263568
|
-
id = Math.random();
|
|
263569
|
-
constructor() {
|
|
263570
|
-
if (global4[kExitEmitter3]) {
|
|
263571
|
-
return global4[kExitEmitter3];
|
|
263572
|
-
}
|
|
263573
|
-
ObjectDefineProperty3(global4, kExitEmitter3, {
|
|
263574
|
-
value: this,
|
|
263575
|
-
writable: false,
|
|
263576
|
-
enumerable: false,
|
|
263577
|
-
configurable: false
|
|
263578
|
-
});
|
|
263579
|
-
}
|
|
263580
|
-
on(ev, fn) {
|
|
263581
|
-
this.listeners[ev].push(fn);
|
|
263582
|
-
}
|
|
263583
|
-
removeListener(ev, fn) {
|
|
263584
|
-
const list = this.listeners[ev];
|
|
263585
|
-
const i = list.indexOf(fn);
|
|
263586
|
-
if (i === -1) {
|
|
263587
|
-
return;
|
|
263588
|
-
}
|
|
263589
|
-
if (i === 0 && list.length === 1) {
|
|
263590
|
-
list.length = 0;
|
|
263591
|
-
} else {
|
|
263592
|
-
list.splice(i, 1);
|
|
263593
|
-
}
|
|
263594
|
-
}
|
|
263595
|
-
emit(ev, code, signal) {
|
|
263596
|
-
if (this.emitted[ev]) {
|
|
263597
|
-
return false;
|
|
263598
|
-
}
|
|
263599
|
-
this.emitted[ev] = true;
|
|
263600
|
-
let ret = false;
|
|
263601
|
-
for (const fn of this.listeners[ev]) {
|
|
263602
|
-
ret = fn(code, signal) === true || ret;
|
|
263603
|
-
}
|
|
263604
|
-
if (ev === "exit") {
|
|
263605
|
-
ret = this.emit("afterExit", code, signal) || ret;
|
|
263606
|
-
}
|
|
263607
|
-
return ret;
|
|
263608
|
-
}
|
|
263609
|
-
}
|
|
263610
|
-
|
|
263611
|
-
class SignalExitBase3 {
|
|
263612
|
-
}
|
|
263613
|
-
var signalExitWrap3 = (handler) => {
|
|
263614
|
-
return {
|
|
263615
|
-
onExit(cb, opts) {
|
|
263616
|
-
return handler.onExit(cb, opts);
|
|
263617
|
-
},
|
|
263618
|
-
load() {
|
|
263619
|
-
return handler.load();
|
|
263620
|
-
},
|
|
263621
|
-
unload() {
|
|
263622
|
-
return handler.unload();
|
|
263623
|
-
}
|
|
263624
|
-
};
|
|
263625
|
-
};
|
|
263626
|
-
|
|
263627
|
-
class SignalExitFallback3 extends SignalExitBase3 {
|
|
263628
|
-
onExit() {
|
|
263629
|
-
return () => {};
|
|
263630
|
-
}
|
|
263631
|
-
load() {}
|
|
263632
|
-
unload() {}
|
|
263633
|
-
}
|
|
263634
|
-
|
|
263635
|
-
class SignalExit3 extends SignalExitBase3 {
|
|
263636
|
-
#hupSig = process7.platform === "win32" ? "SIGINT" : "SIGHUP";
|
|
263637
|
-
#emitter = new Emitter3;
|
|
263638
|
-
#process;
|
|
263639
|
-
#originalProcessEmit;
|
|
263640
|
-
#originalProcessReallyExit;
|
|
263641
|
-
#sigListeners = {};
|
|
263642
|
-
#loaded = false;
|
|
263643
|
-
constructor(process7) {
|
|
263644
|
-
super();
|
|
263645
|
-
this.#process = process7;
|
|
263646
|
-
this.#sigListeners = {};
|
|
263647
|
-
for (const sig of signals3) {
|
|
263648
|
-
this.#sigListeners[sig] = () => {
|
|
263649
|
-
const listeners = this.#process.listeners(sig);
|
|
263650
|
-
let { count } = this.#emitter;
|
|
263651
|
-
const p = process7;
|
|
263652
|
-
if (typeof p.__signal_exit_emitter__ === "object" && typeof p.__signal_exit_emitter__.count === "number") {
|
|
263653
|
-
count += p.__signal_exit_emitter__.count;
|
|
263654
|
-
}
|
|
263655
|
-
if (listeners.length === count) {
|
|
263656
|
-
this.unload();
|
|
263657
|
-
const ret = this.#emitter.emit("exit", null, sig);
|
|
263658
|
-
const s = sig === "SIGHUP" ? this.#hupSig : sig;
|
|
263659
|
-
if (!ret)
|
|
263660
|
-
process7.kill(process7.pid, s);
|
|
263661
|
-
}
|
|
263662
|
-
};
|
|
263663
|
-
}
|
|
263664
|
-
this.#originalProcessReallyExit = process7.reallyExit;
|
|
263665
|
-
this.#originalProcessEmit = process7.emit;
|
|
263666
|
-
}
|
|
263667
|
-
onExit(cb, opts) {
|
|
263668
|
-
if (!processOk3(this.#process)) {
|
|
263669
|
-
return () => {};
|
|
263670
|
-
}
|
|
263671
|
-
if (this.#loaded === false) {
|
|
263672
|
-
this.load();
|
|
263673
|
-
}
|
|
263674
|
-
const ev = opts?.alwaysLast ? "afterExit" : "exit";
|
|
263675
|
-
this.#emitter.on(ev, cb);
|
|
263676
|
-
return () => {
|
|
263677
|
-
this.#emitter.removeListener(ev, cb);
|
|
263678
|
-
if (this.#emitter.listeners["exit"].length === 0 && this.#emitter.listeners["afterExit"].length === 0) {
|
|
263679
|
-
this.unload();
|
|
263680
|
-
}
|
|
263681
|
-
};
|
|
263682
|
-
}
|
|
263683
|
-
load() {
|
|
263684
|
-
if (this.#loaded) {
|
|
263685
|
-
return;
|
|
263686
|
-
}
|
|
263687
|
-
this.#loaded = true;
|
|
263688
|
-
this.#emitter.count += 1;
|
|
263689
|
-
for (const sig of signals3) {
|
|
263690
|
-
try {
|
|
263691
|
-
const fn = this.#sigListeners[sig];
|
|
263692
|
-
if (fn)
|
|
263693
|
-
this.#process.on(sig, fn);
|
|
263694
|
-
} catch (_) {}
|
|
263695
|
-
}
|
|
263696
|
-
this.#process.emit = (ev, ...a) => {
|
|
263697
|
-
return this.#processEmit(ev, ...a);
|
|
263698
|
-
};
|
|
263699
|
-
this.#process.reallyExit = (code) => {
|
|
263700
|
-
return this.#processReallyExit(code);
|
|
263701
|
-
};
|
|
263702
|
-
}
|
|
263703
|
-
unload() {
|
|
263704
|
-
if (!this.#loaded) {
|
|
263705
|
-
return;
|
|
263706
|
-
}
|
|
263707
|
-
this.#loaded = false;
|
|
263708
|
-
signals3.forEach((sig) => {
|
|
263709
|
-
const listener = this.#sigListeners[sig];
|
|
263710
|
-
if (!listener) {
|
|
263711
|
-
throw new Error("Listener not defined for signal: " + sig);
|
|
263712
|
-
}
|
|
263713
|
-
try {
|
|
263714
|
-
this.#process.removeListener(sig, listener);
|
|
263715
|
-
} catch (_) {}
|
|
263716
|
-
});
|
|
263717
|
-
this.#process.emit = this.#originalProcessEmit;
|
|
263718
|
-
this.#process.reallyExit = this.#originalProcessReallyExit;
|
|
263719
|
-
this.#emitter.count -= 1;
|
|
263720
|
-
}
|
|
263721
|
-
#processReallyExit(code) {
|
|
263722
|
-
if (!processOk3(this.#process)) {
|
|
263723
|
-
return 0;
|
|
263724
|
-
}
|
|
263725
|
-
this.#process.exitCode = code || 0;
|
|
263726
|
-
this.#emitter.emit("exit", this.#process.exitCode, null);
|
|
263727
|
-
return this.#originalProcessReallyExit.call(this.#process, this.#process.exitCode);
|
|
263728
|
-
}
|
|
263729
|
-
#processEmit(ev, ...args) {
|
|
263730
|
-
const og = this.#originalProcessEmit;
|
|
263731
|
-
if (ev === "exit" && processOk3(this.#process)) {
|
|
263732
|
-
if (typeof args[0] === "number") {
|
|
263733
|
-
this.#process.exitCode = args[0];
|
|
263734
|
-
}
|
|
263735
|
-
const ret = og.call(this.#process, ev, ...args);
|
|
263736
|
-
this.#emitter.emit("exit", this.#process.exitCode, null);
|
|
263737
|
-
return ret;
|
|
263738
|
-
} else {
|
|
263739
|
-
return og.call(this.#process, ev, ...args);
|
|
263740
|
-
}
|
|
263741
|
-
}
|
|
263742
|
-
}
|
|
263743
|
-
var process7 = globalThis.process;
|
|
263744
|
-
var {
|
|
263745
|
-
onExit: onExit3,
|
|
263746
|
-
load: load3,
|
|
263747
|
-
unload: unload3
|
|
263748
|
-
} = signalExitWrap3(processOk3(process7) ? new SignalExit3(process7) : new SignalExitFallback3);
|
|
263749
|
-
|
|
263750
263343
|
// ../../node_modules/ora/node_modules/cli-cursor/node_modules/restore-cursor/index.js
|
|
263751
|
-
var terminal =
|
|
263344
|
+
var terminal = process6.stderr.isTTY ? process6.stderr : process6.stdout.isTTY ? process6.stdout : undefined;
|
|
263752
263345
|
var restoreCursor = terminal ? onetime_default(() => {
|
|
263753
|
-
|
|
263346
|
+
onExit(() => {
|
|
263754
263347
|
terminal.write("\x1B[?25h");
|
|
263755
263348
|
}, { alwaysLast: true });
|
|
263756
263349
|
}) : () => {};
|
|
@@ -263759,14 +263352,14 @@ var restore_cursor_default = restoreCursor;
|
|
|
263759
263352
|
// ../../node_modules/ora/node_modules/cli-cursor/index.js
|
|
263760
263353
|
var isHidden = false;
|
|
263761
263354
|
var cliCursor = {};
|
|
263762
|
-
cliCursor.show = (writableStream =
|
|
263355
|
+
cliCursor.show = (writableStream = process7.stderr) => {
|
|
263763
263356
|
if (!writableStream.isTTY) {
|
|
263764
263357
|
return;
|
|
263765
263358
|
}
|
|
263766
263359
|
isHidden = false;
|
|
263767
263360
|
writableStream.write("\x1B[?25h");
|
|
263768
263361
|
};
|
|
263769
|
-
cliCursor.hide = (writableStream =
|
|
263362
|
+
cliCursor.hide = (writableStream = process7.stderr) => {
|
|
263770
263363
|
if (!writableStream.isTTY) {
|
|
263771
263364
|
return;
|
|
263772
263365
|
}
|
|
@@ -265568,11 +265161,11 @@ var bgCyanBright = format(106, 49);
|
|
|
265568
265161
|
var bgWhiteBright = format(107, 49);
|
|
265569
265162
|
|
|
265570
265163
|
// ../../node_modules/is-unicode-supported/index.js
|
|
265571
|
-
import
|
|
265164
|
+
import process8 from "node:process";
|
|
265572
265165
|
function isUnicodeSupported2() {
|
|
265573
|
-
const { env: env2 } =
|
|
265166
|
+
const { env: env2 } = process8;
|
|
265574
265167
|
const { TERM, TERM_PROGRAM } = env2;
|
|
265575
|
-
if (
|
|
265168
|
+
if (process8.platform !== "win32") {
|
|
265576
265169
|
return TERM !== "linux";
|
|
265577
265170
|
}
|
|
265578
265171
|
return Boolean(env2.WT_SESSION) || Boolean(env2.TERMINUS_SUBLIME) || env2.ConEmuTask === "{cmd::Cmder}" || TERM_PROGRAM === "Terminus-Sublime" || TERM_PROGRAM === "vscode" || TERM === "xterm-256color" || TERM === "alacritty" || TERM === "rxvt-unicode" || TERM === "rxvt-unicode-256color" || env2.TERMINAL_EMULATOR === "JetBrains-JediTerm";
|
|
@@ -265773,7 +265366,7 @@ function isInteractive({ stream = process.stdout } = {}) {
|
|
|
265773
265366
|
}
|
|
265774
265367
|
|
|
265775
265368
|
// ../../node_modules/stdin-discarder/index.js
|
|
265776
|
-
import
|
|
265369
|
+
import process9 from "node:process";
|
|
265777
265370
|
var ASCII_ETX_CODE = 3;
|
|
265778
265371
|
|
|
265779
265372
|
class StdinDiscarder {
|
|
@@ -265787,10 +265380,10 @@ class StdinDiscarder {
|
|
|
265787
265380
|
}
|
|
265788
265381
|
const code = typeof chunk === "string" ? chunk.codePointAt(0) : chunk[0];
|
|
265789
265382
|
if (code === ASCII_ETX_CODE) {
|
|
265790
|
-
if (
|
|
265791
|
-
|
|
265383
|
+
if (process9.listenerCount("SIGINT") > 0) {
|
|
265384
|
+
process9.emit("SIGINT");
|
|
265792
265385
|
} else {
|
|
265793
|
-
|
|
265386
|
+
process9.kill(process9.pid, "SIGINT");
|
|
265794
265387
|
}
|
|
265795
265388
|
}
|
|
265796
265389
|
};
|
|
@@ -265809,8 +265402,8 @@ class StdinDiscarder {
|
|
|
265809
265402
|
}
|
|
265810
265403
|
}
|
|
265811
265404
|
#realStart() {
|
|
265812
|
-
const { stdin } =
|
|
265813
|
-
if (
|
|
265405
|
+
const { stdin } = process9;
|
|
265406
|
+
if (process9.platform === "win32" || !stdin?.isTTY || typeof stdin.setRawMode !== "function") {
|
|
265814
265407
|
this.#stdin = undefined;
|
|
265815
265408
|
return;
|
|
265816
265409
|
}
|
|
@@ -265932,7 +265525,7 @@ class Ora {
|
|
|
265932
265525
|
}
|
|
265933
265526
|
this.#options = {
|
|
265934
265527
|
color: "cyan",
|
|
265935
|
-
stream:
|
|
265528
|
+
stream: process10.stderr,
|
|
265936
265529
|
discardStdin: true,
|
|
265937
265530
|
hideCursor: true,
|
|
265938
265531
|
...options
|
|
@@ -265952,7 +265545,7 @@ class Ora {
|
|
|
265952
265545
|
this.prefixText = this.#options.prefixText;
|
|
265953
265546
|
this.suffixText = this.#options.suffixText;
|
|
265954
265547
|
this.indent = this.#options.indent;
|
|
265955
|
-
if (
|
|
265548
|
+
if (process10.env.NODE_ENV === "test") {
|
|
265956
265549
|
this._stream = this.#stream;
|
|
265957
265550
|
this._isEnabled = this.#options.isEnabled;
|
|
265958
265551
|
Object.defineProperty(this, "_linesToClear", {
|
|
@@ -266129,7 +265722,7 @@ class Ora {
|
|
|
266129
265722
|
if (!this.isEnabled || this.#hookedStreams.size > 0) {
|
|
266130
265723
|
return;
|
|
266131
265724
|
}
|
|
266132
|
-
const streamsToHook = new Set([this.#stream,
|
|
265725
|
+
const streamsToHook = new Set([this.#stream, process10.stdout, process10.stderr]);
|
|
266133
265726
|
for (const stream of streamsToHook) {
|
|
266134
265727
|
this.#hookStream(stream);
|
|
266135
265728
|
}
|
|
@@ -266226,7 +265819,7 @@ class Ora {
|
|
|
266226
265819
|
if (this.#options.hideCursor) {
|
|
266227
265820
|
cli_cursor_default.hide(this.#stream);
|
|
266228
265821
|
}
|
|
266229
|
-
if (this.#options.discardStdin &&
|
|
265822
|
+
if (this.#options.discardStdin && process10.stdin.isTTY) {
|
|
266230
265823
|
stdin_discarder_default.start();
|
|
266231
265824
|
this.#isDiscardingStdin = true;
|
|
266232
265825
|
}
|
|
@@ -268790,7 +268383,7 @@ function initializeContext2(params) {
|
|
|
268790
268383
|
external: params?.external ?? undefined
|
|
268791
268384
|
};
|
|
268792
268385
|
}
|
|
268793
|
-
function
|
|
268386
|
+
function process11(schema, ctx, _params = { path: [], schemaPath: [] }) {
|
|
268794
268387
|
var _a3;
|
|
268795
268388
|
const def = schema._zod.def;
|
|
268796
268389
|
const seen = ctx.seen.get(schema);
|
|
@@ -268827,7 +268420,7 @@ function process13(schema, ctx, _params = { path: [], schemaPath: [] }) {
|
|
|
268827
268420
|
if (parent) {
|
|
268828
268421
|
if (!result.ref)
|
|
268829
268422
|
result.ref = parent;
|
|
268830
|
-
|
|
268423
|
+
process11(parent, ctx, params);
|
|
268831
268424
|
ctx.seen.get(parent).isParent = true;
|
|
268832
268425
|
}
|
|
268833
268426
|
}
|
|
@@ -269108,14 +268701,14 @@ function isTransforming2(_schema, _ctx) {
|
|
|
269108
268701
|
}
|
|
269109
268702
|
var createToJSONSchemaMethod2 = (schema, processors = {}) => (params) => {
|
|
269110
268703
|
const ctx = initializeContext2({ ...params, processors });
|
|
269111
|
-
|
|
268704
|
+
process11(schema, ctx);
|
|
269112
268705
|
extractDefs2(ctx, schema);
|
|
269113
268706
|
return finalize2(ctx, schema);
|
|
269114
268707
|
};
|
|
269115
268708
|
var createStandardJSONSchemaMethod2 = (schema, io, processors = {}) => (params) => {
|
|
269116
268709
|
const { libraryOptions, target } = params ?? {};
|
|
269117
268710
|
const ctx = initializeContext2({ ...libraryOptions ?? {}, target, io, processors });
|
|
269118
|
-
|
|
268711
|
+
process11(schema, ctx);
|
|
269119
268712
|
extractDefs2(ctx, schema);
|
|
269120
268713
|
return finalize2(ctx, schema);
|
|
269121
268714
|
};
|
|
@@ -269190,7 +268783,7 @@ var arrayProcessor2 = (schema, ctx, _json, params) => {
|
|
|
269190
268783
|
if (typeof maximum === "number")
|
|
269191
268784
|
json2.maxItems = maximum;
|
|
269192
268785
|
json2.type = "array";
|
|
269193
|
-
json2.items =
|
|
268786
|
+
json2.items = process11(def.element, ctx, { ...params, path: [...params.path, "items"] });
|
|
269194
268787
|
};
|
|
269195
268788
|
var objectProcessor2 = (schema, ctx, _json, params) => {
|
|
269196
268789
|
const json2 = _json;
|
|
@@ -269199,7 +268792,7 @@ var objectProcessor2 = (schema, ctx, _json, params) => {
|
|
|
269199
268792
|
json2.properties = {};
|
|
269200
268793
|
const shape = def.shape;
|
|
269201
268794
|
for (const key in shape) {
|
|
269202
|
-
json2.properties[key] =
|
|
268795
|
+
json2.properties[key] = process11(shape[key], ctx, {
|
|
269203
268796
|
...params,
|
|
269204
268797
|
path: [...params.path, "properties", key]
|
|
269205
268798
|
});
|
|
@@ -269222,7 +268815,7 @@ var objectProcessor2 = (schema, ctx, _json, params) => {
|
|
|
269222
268815
|
if (ctx.io === "output")
|
|
269223
268816
|
json2.additionalProperties = false;
|
|
269224
268817
|
} else if (def.catchall) {
|
|
269225
|
-
json2.additionalProperties =
|
|
268818
|
+
json2.additionalProperties = process11(def.catchall, ctx, {
|
|
269226
268819
|
...params,
|
|
269227
268820
|
path: [...params.path, "additionalProperties"]
|
|
269228
268821
|
});
|
|
@@ -269231,7 +268824,7 @@ var objectProcessor2 = (schema, ctx, _json, params) => {
|
|
|
269231
268824
|
var unionProcessor2 = (schema, ctx, json2, params) => {
|
|
269232
268825
|
const def = schema._zod.def;
|
|
269233
268826
|
const isExclusive = def.inclusive === false;
|
|
269234
|
-
const options = def.options.map((x, i) =>
|
|
268827
|
+
const options = def.options.map((x, i) => process11(x, ctx, {
|
|
269235
268828
|
...params,
|
|
269236
268829
|
path: [...params.path, isExclusive ? "oneOf" : "anyOf", i]
|
|
269237
268830
|
}));
|
|
@@ -269243,11 +268836,11 @@ var unionProcessor2 = (schema, ctx, json2, params) => {
|
|
|
269243
268836
|
};
|
|
269244
268837
|
var intersectionProcessor2 = (schema, ctx, json2, params) => {
|
|
269245
268838
|
const def = schema._zod.def;
|
|
269246
|
-
const a =
|
|
268839
|
+
const a = process11(def.left, ctx, {
|
|
269247
268840
|
...params,
|
|
269248
268841
|
path: [...params.path, "allOf", 0]
|
|
269249
268842
|
});
|
|
269250
|
-
const b =
|
|
268843
|
+
const b = process11(def.right, ctx, {
|
|
269251
268844
|
...params,
|
|
269252
268845
|
path: [...params.path, "allOf", 1]
|
|
269253
268846
|
});
|
|
@@ -269260,7 +268853,7 @@ var intersectionProcessor2 = (schema, ctx, json2, params) => {
|
|
|
269260
268853
|
};
|
|
269261
268854
|
var nullableProcessor2 = (schema, ctx, json2, params) => {
|
|
269262
268855
|
const def = schema._zod.def;
|
|
269263
|
-
const inner =
|
|
268856
|
+
const inner = process11(def.innerType, ctx, params);
|
|
269264
268857
|
const seen = ctx.seen.get(schema);
|
|
269265
268858
|
if (ctx.target === "openapi-3.0") {
|
|
269266
268859
|
seen.ref = def.innerType;
|
|
@@ -269271,20 +268864,20 @@ var nullableProcessor2 = (schema, ctx, json2, params) => {
|
|
|
269271
268864
|
};
|
|
269272
268865
|
var nonoptionalProcessor2 = (schema, ctx, _json, params) => {
|
|
269273
268866
|
const def = schema._zod.def;
|
|
269274
|
-
|
|
268867
|
+
process11(def.innerType, ctx, params);
|
|
269275
268868
|
const seen = ctx.seen.get(schema);
|
|
269276
268869
|
seen.ref = def.innerType;
|
|
269277
268870
|
};
|
|
269278
268871
|
var defaultProcessor2 = (schema, ctx, json2, params) => {
|
|
269279
268872
|
const def = schema._zod.def;
|
|
269280
|
-
|
|
268873
|
+
process11(def.innerType, ctx, params);
|
|
269281
268874
|
const seen = ctx.seen.get(schema);
|
|
269282
268875
|
seen.ref = def.innerType;
|
|
269283
268876
|
json2.default = JSON.parse(JSON.stringify(def.defaultValue));
|
|
269284
268877
|
};
|
|
269285
268878
|
var prefaultProcessor2 = (schema, ctx, json2, params) => {
|
|
269286
268879
|
const def = schema._zod.def;
|
|
269287
|
-
|
|
268880
|
+
process11(def.innerType, ctx, params);
|
|
269288
268881
|
const seen = ctx.seen.get(schema);
|
|
269289
268882
|
seen.ref = def.innerType;
|
|
269290
268883
|
if (ctx.io === "input")
|
|
@@ -269292,7 +268885,7 @@ var prefaultProcessor2 = (schema, ctx, json2, params) => {
|
|
|
269292
268885
|
};
|
|
269293
268886
|
var catchProcessor2 = (schema, ctx, json2, params) => {
|
|
269294
268887
|
const def = schema._zod.def;
|
|
269295
|
-
|
|
268888
|
+
process11(def.innerType, ctx, params);
|
|
269296
268889
|
const seen = ctx.seen.get(schema);
|
|
269297
268890
|
seen.ref = def.innerType;
|
|
269298
268891
|
let catchValue;
|
|
@@ -269306,20 +268899,20 @@ var catchProcessor2 = (schema, ctx, json2, params) => {
|
|
|
269306
268899
|
var pipeProcessor2 = (schema, ctx, _json, params) => {
|
|
269307
268900
|
const def = schema._zod.def;
|
|
269308
268901
|
const innerType = ctx.io === "input" ? def.in._zod.def.type === "transform" ? def.out : def.in : def.out;
|
|
269309
|
-
|
|
268902
|
+
process11(innerType, ctx, params);
|
|
269310
268903
|
const seen = ctx.seen.get(schema);
|
|
269311
268904
|
seen.ref = innerType;
|
|
269312
268905
|
};
|
|
269313
268906
|
var readonlyProcessor2 = (schema, ctx, json2, params) => {
|
|
269314
268907
|
const def = schema._zod.def;
|
|
269315
|
-
|
|
268908
|
+
process11(def.innerType, ctx, params);
|
|
269316
268909
|
const seen = ctx.seen.get(schema);
|
|
269317
268910
|
seen.ref = def.innerType;
|
|
269318
268911
|
json2.readOnly = true;
|
|
269319
268912
|
};
|
|
269320
268913
|
var optionalProcessor2 = (schema, ctx, _json, params) => {
|
|
269321
268914
|
const def = schema._zod.def;
|
|
269322
|
-
|
|
268915
|
+
process11(def.innerType, ctx, params);
|
|
269323
268916
|
const seen = ctx.seen.get(schema);
|
|
269324
268917
|
seen.ref = def.innerType;
|
|
269325
268918
|
};
|
|
@@ -270108,6 +269701,170 @@ class NetworkError extends UiPathError {
|
|
|
270108
269701
|
});
|
|
270109
269702
|
}
|
|
270110
269703
|
}
|
|
269704
|
+
var TaskType;
|
|
269705
|
+
(function(TaskType2) {
|
|
269706
|
+
TaskType2["Form"] = "FormTask";
|
|
269707
|
+
TaskType2["External"] = "ExternalTask";
|
|
269708
|
+
TaskType2["App"] = "AppTask";
|
|
269709
|
+
TaskType2["DocumentValidation"] = "DocumentValidationTask";
|
|
269710
|
+
TaskType2["DocumentClassification"] = "DocumentClassificationTask";
|
|
269711
|
+
TaskType2["DataLabeling"] = "DataLabelingTask";
|
|
269712
|
+
})(TaskType || (TaskType = {}));
|
|
269713
|
+
var TaskPriority;
|
|
269714
|
+
(function(TaskPriority2) {
|
|
269715
|
+
TaskPriority2["Low"] = "Low";
|
|
269716
|
+
TaskPriority2["Medium"] = "Medium";
|
|
269717
|
+
TaskPriority2["High"] = "High";
|
|
269718
|
+
TaskPriority2["Critical"] = "Critical";
|
|
269719
|
+
})(TaskPriority || (TaskPriority = {}));
|
|
269720
|
+
var TaskStatus;
|
|
269721
|
+
(function(TaskStatus2) {
|
|
269722
|
+
TaskStatus2["Unassigned"] = "Unassigned";
|
|
269723
|
+
TaskStatus2["Pending"] = "Pending";
|
|
269724
|
+
TaskStatus2["Completed"] = "Completed";
|
|
269725
|
+
})(TaskStatus || (TaskStatus = {}));
|
|
269726
|
+
var TaskSlaCriteria;
|
|
269727
|
+
(function(TaskSlaCriteria2) {
|
|
269728
|
+
TaskSlaCriteria2["TaskCreated"] = "TaskCreated";
|
|
269729
|
+
TaskSlaCriteria2["TaskAssigned"] = "TaskAssigned";
|
|
269730
|
+
TaskSlaCriteria2["TaskCompleted"] = "TaskCompleted";
|
|
269731
|
+
})(TaskSlaCriteria || (TaskSlaCriteria = {}));
|
|
269732
|
+
var TaskSlaStatus;
|
|
269733
|
+
(function(TaskSlaStatus2) {
|
|
269734
|
+
TaskSlaStatus2["OverdueLater"] = "OverdueLater";
|
|
269735
|
+
TaskSlaStatus2["OverdueSoon"] = "OverdueSoon";
|
|
269736
|
+
TaskSlaStatus2["Overdue"] = "Overdue";
|
|
269737
|
+
TaskSlaStatus2["CompletedInTime"] = "CompletedInTime";
|
|
269738
|
+
})(TaskSlaStatus || (TaskSlaStatus = {}));
|
|
269739
|
+
var TaskSourceName;
|
|
269740
|
+
(function(TaskSourceName2) {
|
|
269741
|
+
TaskSourceName2["Agent"] = "Agent";
|
|
269742
|
+
TaskSourceName2["Workflow"] = "Workflow";
|
|
269743
|
+
TaskSourceName2["Maestro"] = "Maestro";
|
|
269744
|
+
TaskSourceName2["Default"] = "Default";
|
|
269745
|
+
})(TaskSourceName || (TaskSourceName = {}));
|
|
269746
|
+
var TaskActivityType;
|
|
269747
|
+
(function(TaskActivityType2) {
|
|
269748
|
+
TaskActivityType2["Created"] = "Created";
|
|
269749
|
+
TaskActivityType2["Assigned"] = "Assigned";
|
|
269750
|
+
TaskActivityType2["Reassigned"] = "Reassigned";
|
|
269751
|
+
TaskActivityType2["Unassigned"] = "Unassigned";
|
|
269752
|
+
TaskActivityType2["Saved"] = "Saved";
|
|
269753
|
+
TaskActivityType2["Forwarded"] = "Forwarded";
|
|
269754
|
+
TaskActivityType2["Completed"] = "Completed";
|
|
269755
|
+
TaskActivityType2["Commented"] = "Commented";
|
|
269756
|
+
TaskActivityType2["Deleted"] = "Deleted";
|
|
269757
|
+
TaskActivityType2["BulkSaved"] = "BulkSaved";
|
|
269758
|
+
TaskActivityType2["BulkCompleted"] = "BulkCompleted";
|
|
269759
|
+
TaskActivityType2["FirstOpened"] = "FirstOpened";
|
|
269760
|
+
})(TaskActivityType || (TaskActivityType = {}));
|
|
269761
|
+
var ORCHESTRATOR_BASE = "orchestrator_";
|
|
269762
|
+
var PIMS_BASE = "pims_";
|
|
269763
|
+
var DATAFABRIC_BASE = "datafabric_";
|
|
269764
|
+
var IDENTITY_BASE = "identity_";
|
|
269765
|
+
var TASK_ENDPOINTS = {
|
|
269766
|
+
CREATE_GENERIC_TASK: `${ORCHESTRATOR_BASE}/tasks/GenericTasks/CreateTask`,
|
|
269767
|
+
GET_TASK_USERS: (folderId) => `${ORCHESTRATOR_BASE}/odata/Tasks/UiPath.Server.Configuration.OData.GetTaskUsers(organizationUnitId=${folderId})`,
|
|
269768
|
+
GET_TASKS_ACROSS_FOLDERS: `${ORCHESTRATOR_BASE}/odata/Tasks/UiPath.Server.Configuration.OData.GetTasksAcrossFolders`,
|
|
269769
|
+
GET_TASKS_ACROSS_FOLDERS_ADMIN: `${ORCHESTRATOR_BASE}/odata/Tasks/UiPath.Server.Configuration.OData.GetTasksAcrossFoldersForAdmin`,
|
|
269770
|
+
GET_BY_ID: (id) => `${ORCHESTRATOR_BASE}/odata/Tasks(${id})`,
|
|
269771
|
+
ASSIGN_TASKS: `${ORCHESTRATOR_BASE}/odata/Tasks/UiPath.Server.Configuration.OData.AssignTasks`,
|
|
269772
|
+
REASSIGN_TASKS: `${ORCHESTRATOR_BASE}/odata/Tasks/UiPath.Server.Configuration.OData.ReassignTasks`,
|
|
269773
|
+
UNASSIGN_TASKS: `${ORCHESTRATOR_BASE}/odata/Tasks/UiPath.Server.Configuration.OData.UnassignTasks`,
|
|
269774
|
+
COMPLETE_FORM_TASK: `${ORCHESTRATOR_BASE}/forms/TaskForms/CompleteTask`,
|
|
269775
|
+
COMPLETE_APP_TASK: `${ORCHESTRATOR_BASE}/tasks/AppTasks/CompleteAppTask`,
|
|
269776
|
+
COMPLETE_GENERIC_TASK: `${ORCHESTRATOR_BASE}/tasks/GenericTasks/CompleteTask`,
|
|
269777
|
+
GET_TASK_FORM_BY_ID: `${ORCHESTRATOR_BASE}/forms/TaskForms/GetTaskFormById`,
|
|
269778
|
+
GET_GENERIC_TASK_BY_ID: `${ORCHESTRATOR_BASE}/tasks/GenericTasks/GetTaskDataById`,
|
|
269779
|
+
GET_APP_TASK_BY_ID: `${ORCHESTRATOR_BASE}/tasks/AppTasks/GetAppTaskById`
|
|
269780
|
+
};
|
|
269781
|
+
var BUCKET_ENDPOINTS = {
|
|
269782
|
+
GET_BY_FOLDER: `${ORCHESTRATOR_BASE}/odata/Buckets`,
|
|
269783
|
+
GET_ALL: `${ORCHESTRATOR_BASE}/odata/Buckets/UiPath.Server.Configuration.OData.GetBucketsAcrossFolders`,
|
|
269784
|
+
GET_BY_ID: (id) => `${ORCHESTRATOR_BASE}/odata/Buckets(${id})`,
|
|
269785
|
+
GET_FILE_META_DATA: (id) => `${ORCHESTRATOR_BASE}/api/Buckets/${id}/ListFiles`,
|
|
269786
|
+
GET_READ_URI: (id) => `${ORCHESTRATOR_BASE}/odata/Buckets(${id})/UiPath.Server.Configuration.OData.GetReadUri`,
|
|
269787
|
+
GET_WRITE_URI: (id) => `${ORCHESTRATOR_BASE}/odata/Buckets(${id})/UiPath.Server.Configuration.OData.GetWriteUri`
|
|
269788
|
+
};
|
|
269789
|
+
var PROCESS_ENDPOINTS = {
|
|
269790
|
+
GET_ALL: `${ORCHESTRATOR_BASE}/odata/Releases`,
|
|
269791
|
+
START_PROCESS: `${ORCHESTRATOR_BASE}/odata/Jobs/UiPath.Server.Configuration.OData.StartJobs`,
|
|
269792
|
+
GET_BY_ID: (id) => `${ORCHESTRATOR_BASE}/odata/Releases(${id})`
|
|
269793
|
+
};
|
|
269794
|
+
var QUEUE_ENDPOINTS = {
|
|
269795
|
+
GET_BY_FOLDER: `${ORCHESTRATOR_BASE}/odata/QueueDefinitions`,
|
|
269796
|
+
GET_ALL: `${ORCHESTRATOR_BASE}/odata/QueueDefinitions/UiPath.Server.Configuration.OData.GetQueuesAcrossFolders`,
|
|
269797
|
+
GET_BY_ID: (id) => `${ORCHESTRATOR_BASE}/odata/QueueDefinitions(${id})`
|
|
269798
|
+
};
|
|
269799
|
+
var JOB_ENDPOINTS = {
|
|
269800
|
+
GET_ALL: `${ORCHESTRATOR_BASE}/odata/Jobs`
|
|
269801
|
+
};
|
|
269802
|
+
var ASSET_ENDPOINTS = {
|
|
269803
|
+
GET_BY_FOLDER: `${ORCHESTRATOR_BASE}/odata/Assets/UiPath.Server.Configuration.OData.GetFiltered`,
|
|
269804
|
+
GET_ALL: `${ORCHESTRATOR_BASE}/odata/Assets/UiPath.Server.Configuration.OData.GetAssetsAcrossFolders`,
|
|
269805
|
+
GET_BY_ID: (id) => `${ORCHESTRATOR_BASE}/odata/Assets(${id})`
|
|
269806
|
+
};
|
|
269807
|
+
var ORCHESTRATOR_ATTACHMENT_ENDPOINTS = {
|
|
269808
|
+
GET_BY_ID: (id) => `${ORCHESTRATOR_BASE}/odata/Attachments(${id})`
|
|
269809
|
+
};
|
|
269810
|
+
var MAESTRO_ENDPOINTS = {
|
|
269811
|
+
PROCESSES: {
|
|
269812
|
+
GET_ALL: `${PIMS_BASE}/api/v1/processes/summary`,
|
|
269813
|
+
GET_SETTINGS: (processKey) => `${PIMS_BASE}/api/v1/processes/${processKey}/settings`
|
|
269814
|
+
},
|
|
269815
|
+
INSTANCES: {
|
|
269816
|
+
GET_ALL: `${PIMS_BASE}/api/v1/instances`,
|
|
269817
|
+
GET_BY_ID: (instanceId) => `${PIMS_BASE}/api/v1/instances/${instanceId}`,
|
|
269818
|
+
GET_EXECUTION_HISTORY: (instanceId) => `${PIMS_BASE}/api/v1/spans/${instanceId}`,
|
|
269819
|
+
GET_BPMN: (instanceId) => `${PIMS_BASE}/api/v1/instances/${instanceId}/bpmn`,
|
|
269820
|
+
GET_VARIABLES: (instanceId) => `${PIMS_BASE}/api/v1/instances/${instanceId}/variables`,
|
|
269821
|
+
CANCEL: (instanceId) => `${PIMS_BASE}/api/v1/instances/${instanceId}/cancel`,
|
|
269822
|
+
PAUSE: (instanceId) => `${PIMS_BASE}/api/v1/instances/${instanceId}/pause`,
|
|
269823
|
+
RESUME: (instanceId) => `${PIMS_BASE}/api/v1/instances/${instanceId}/resume`
|
|
269824
|
+
},
|
|
269825
|
+
INCIDENTS: {
|
|
269826
|
+
GET_ALL: `${PIMS_BASE}/api/v1/incidents/summary`,
|
|
269827
|
+
GET_BY_PROCESS: (processKey) => `${PIMS_BASE}/api/v1/incidents/process/${processKey}`,
|
|
269828
|
+
GET_BY_INSTANCE: (instanceId) => `${PIMS_BASE}/api/v1/instances/${instanceId}/incidents`
|
|
269829
|
+
},
|
|
269830
|
+
CASES: {
|
|
269831
|
+
GET_CASE_JSON: (instanceId) => `${PIMS_BASE}/api/v1/cases/${instanceId}/case-json`,
|
|
269832
|
+
GET_ELEMENT_EXECUTIONS: (instanceId) => `${PIMS_BASE}/api/v1/element-executions/case-instances/${instanceId}`,
|
|
269833
|
+
REOPEN: (instanceId) => `${PIMS_BASE}/api/v1/cases/${instanceId}/reopen`
|
|
269834
|
+
}
|
|
269835
|
+
};
|
|
269836
|
+
var DATA_FABRIC_ENDPOINTS = {
|
|
269837
|
+
ENTITY: {
|
|
269838
|
+
GET_ALL: `${DATAFABRIC_BASE}/api/Entity`,
|
|
269839
|
+
GET_ENTITY_RECORDS: (entityId) => `${DATAFABRIC_BASE}/api/EntityService/entity/${entityId}/read`,
|
|
269840
|
+
GET_BY_ID: (entityId) => `${DATAFABRIC_BASE}/api/Entity/${entityId}`,
|
|
269841
|
+
GET_RECORD_BY_ID: (entityId, recordId) => `${DATAFABRIC_BASE}/api/EntityService/entity/${entityId}/read/${recordId}`,
|
|
269842
|
+
INSERT_BY_ID: (entityId) => `${DATAFABRIC_BASE}/api/EntityService/entity/${entityId}/insert`,
|
|
269843
|
+
BATCH_INSERT_BY_ID: (entityId) => `${DATAFABRIC_BASE}/api/EntityService/entity/${entityId}/insert-batch`,
|
|
269844
|
+
UPDATE_RECORD_BY_ID: (entityId, recordId) => `${DATAFABRIC_BASE}/api/EntityService/entity/${entityId}/update/${recordId}`,
|
|
269845
|
+
UPDATE_BY_ID: (entityId) => `${DATAFABRIC_BASE}/api/EntityService/entity/${entityId}/update-batch`,
|
|
269846
|
+
DELETE_BY_ID: (entityId) => `${DATAFABRIC_BASE}/api/EntityService/entity/${entityId}/delete-batch`,
|
|
269847
|
+
DOWNLOAD_ATTACHMENT: (entityId, recordId, fieldName) => `${DATAFABRIC_BASE}/api/Attachment/entity/${entityId}/${recordId}/${fieldName}`,
|
|
269848
|
+
UPLOAD_ATTACHMENT: (entityId, recordId, fieldName) => `${DATAFABRIC_BASE}/api/Attachment/entity/${entityId}/${recordId}/${fieldName}`,
|
|
269849
|
+
DELETE_ATTACHMENT: (entityId, recordId, fieldName) => `${DATAFABRIC_BASE}/api/Attachment/entity/${entityId}/${recordId}/${fieldName}`
|
|
269850
|
+
},
|
|
269851
|
+
CHOICESETS: {
|
|
269852
|
+
GET_ALL: `${DATAFABRIC_BASE}/api/Entity/choiceset`,
|
|
269853
|
+
GET_BY_ID: (choiceSetId) => `${DATAFABRIC_BASE}/api/EntityService/entity/${choiceSetId}/query_expansion`
|
|
269854
|
+
}
|
|
269855
|
+
};
|
|
269856
|
+
var IDENTITY_ENDPOINTS = {
|
|
269857
|
+
TOKEN: `${IDENTITY_BASE}/connect/token`,
|
|
269858
|
+
AUTHORIZE: `${IDENTITY_BASE}/connect/authorize`
|
|
269859
|
+
};
|
|
269860
|
+
var TASK_TYPE_ENDPOINTS = {
|
|
269861
|
+
[TaskType.Form]: TASK_ENDPOINTS.GET_TASK_FORM_BY_ID,
|
|
269862
|
+
[TaskType.App]: TASK_ENDPOINTS.GET_APP_TASK_BY_ID,
|
|
269863
|
+
[TaskType.DocumentValidation]: TASK_ENDPOINTS.GET_GENERIC_TASK_BY_ID,
|
|
269864
|
+
[TaskType.DocumentClassification]: TASK_ENDPOINTS.GET_GENERIC_TASK_BY_ID,
|
|
269865
|
+
[TaskType.External]: TASK_ENDPOINTS.GET_GENERIC_TASK_BY_ID,
|
|
269866
|
+
[TaskType.DataLabeling]: TASK_ENDPOINTS.GET_GENERIC_TASK_BY_ID
|
|
269867
|
+
};
|
|
270111
269868
|
var ActionCenterEventNames;
|
|
270112
269869
|
(function(ActionCenterEventNames2) {
|
|
270113
269870
|
ActionCenterEventNames2["TOKENREFRESHED"] = "AC.tokenRefreshed";
|
|
@@ -270389,97 +270146,6 @@ class TokenManager {
|
|
|
270389
270146
|
return token;
|
|
270390
270147
|
}
|
|
270391
270148
|
}
|
|
270392
|
-
var ORCHESTRATOR_BASE = "orchestrator_";
|
|
270393
|
-
var PIMS_BASE = "pims_";
|
|
270394
|
-
var DATAFABRIC_BASE = "datafabric_";
|
|
270395
|
-
var IDENTITY_BASE = "identity_";
|
|
270396
|
-
var TASK_ENDPOINTS = {
|
|
270397
|
-
CREATE_GENERIC_TASK: `${ORCHESTRATOR_BASE}/tasks/GenericTasks/CreateTask`,
|
|
270398
|
-
GET_TASK_USERS: (folderId) => `${ORCHESTRATOR_BASE}/odata/Tasks/UiPath.Server.Configuration.OData.GetTaskUsers(organizationUnitId=${folderId})`,
|
|
270399
|
-
GET_TASKS_ACROSS_FOLDERS: `${ORCHESTRATOR_BASE}/odata/Tasks/UiPath.Server.Configuration.OData.GetTasksAcrossFolders`,
|
|
270400
|
-
GET_TASKS_ACROSS_FOLDERS_ADMIN: `${ORCHESTRATOR_BASE}/odata/Tasks/UiPath.Server.Configuration.OData.GetTasksAcrossFoldersForAdmin`,
|
|
270401
|
-
GET_BY_ID: (id) => `${ORCHESTRATOR_BASE}/odata/Tasks(${id})`,
|
|
270402
|
-
ASSIGN_TASKS: `${ORCHESTRATOR_BASE}/odata/Tasks/UiPath.Server.Configuration.OData.AssignTasks`,
|
|
270403
|
-
REASSIGN_TASKS: `${ORCHESTRATOR_BASE}/odata/Tasks/UiPath.Server.Configuration.OData.ReassignTasks`,
|
|
270404
|
-
UNASSIGN_TASKS: `${ORCHESTRATOR_BASE}/odata/Tasks/UiPath.Server.Configuration.OData.UnassignTasks`,
|
|
270405
|
-
COMPLETE_FORM_TASK: `${ORCHESTRATOR_BASE}/forms/TaskForms/CompleteTask`,
|
|
270406
|
-
COMPLETE_APP_TASK: `${ORCHESTRATOR_BASE}/tasks/AppTasks/CompleteAppTask`,
|
|
270407
|
-
COMPLETE_GENERIC_TASK: `${ORCHESTRATOR_BASE}/tasks/GenericTasks/CompleteTask`,
|
|
270408
|
-
GET_TASK_FORM_BY_ID: `${ORCHESTRATOR_BASE}/forms/TaskForms/GetTaskFormById`
|
|
270409
|
-
};
|
|
270410
|
-
var BUCKET_ENDPOINTS = {
|
|
270411
|
-
GET_BY_FOLDER: `${ORCHESTRATOR_BASE}/odata/Buckets`,
|
|
270412
|
-
GET_ALL: `${ORCHESTRATOR_BASE}/odata/Buckets/UiPath.Server.Configuration.OData.GetBucketsAcrossFolders`,
|
|
270413
|
-
GET_BY_ID: (id) => `${ORCHESTRATOR_BASE}/odata/Buckets(${id})`,
|
|
270414
|
-
GET_FILE_META_DATA: (id) => `${ORCHESTRATOR_BASE}/api/Buckets/${id}/ListFiles`,
|
|
270415
|
-
GET_READ_URI: (id) => `${ORCHESTRATOR_BASE}/odata/Buckets(${id})/UiPath.Server.Configuration.OData.GetReadUri`,
|
|
270416
|
-
GET_WRITE_URI: (id) => `${ORCHESTRATOR_BASE}/odata/Buckets(${id})/UiPath.Server.Configuration.OData.GetWriteUri`
|
|
270417
|
-
};
|
|
270418
|
-
var PROCESS_ENDPOINTS = {
|
|
270419
|
-
GET_ALL: `${ORCHESTRATOR_BASE}/odata/Releases`,
|
|
270420
|
-
START_PROCESS: `${ORCHESTRATOR_BASE}/odata/Jobs/UiPath.Server.Configuration.OData.StartJobs`,
|
|
270421
|
-
GET_BY_ID: (id) => `${ORCHESTRATOR_BASE}/odata/Releases(${id})`
|
|
270422
|
-
};
|
|
270423
|
-
var QUEUE_ENDPOINTS = {
|
|
270424
|
-
GET_BY_FOLDER: `${ORCHESTRATOR_BASE}/odata/QueueDefinitions`,
|
|
270425
|
-
GET_ALL: `${ORCHESTRATOR_BASE}/odata/QueueDefinitions/UiPath.Server.Configuration.OData.GetQueuesAcrossFolders`,
|
|
270426
|
-
GET_BY_ID: (id) => `${ORCHESTRATOR_BASE}/odata/QueueDefinitions(${id})`
|
|
270427
|
-
};
|
|
270428
|
-
var ASSET_ENDPOINTS = {
|
|
270429
|
-
GET_BY_FOLDER: `${ORCHESTRATOR_BASE}/odata/Assets/UiPath.Server.Configuration.OData.GetFiltered`,
|
|
270430
|
-
GET_ALL: `${ORCHESTRATOR_BASE}/odata/Assets/UiPath.Server.Configuration.OData.GetAssetsAcrossFolders`,
|
|
270431
|
-
GET_BY_ID: (id) => `${ORCHESTRATOR_BASE}/odata/Assets(${id})`
|
|
270432
|
-
};
|
|
270433
|
-
var MAESTRO_ENDPOINTS = {
|
|
270434
|
-
PROCESSES: {
|
|
270435
|
-
GET_ALL: `${PIMS_BASE}/api/v1/processes/summary`,
|
|
270436
|
-
GET_SETTINGS: (processKey) => `${PIMS_BASE}/api/v1/processes/${processKey}/settings`
|
|
270437
|
-
},
|
|
270438
|
-
INSTANCES: {
|
|
270439
|
-
GET_ALL: `${PIMS_BASE}/api/v1/instances`,
|
|
270440
|
-
GET_BY_ID: (instanceId) => `${PIMS_BASE}/api/v1/instances/${instanceId}`,
|
|
270441
|
-
GET_EXECUTION_HISTORY: (instanceId) => `${PIMS_BASE}/api/v1/spans/${instanceId}`,
|
|
270442
|
-
GET_BPMN: (instanceId) => `${PIMS_BASE}/api/v1/instances/${instanceId}/bpmn`,
|
|
270443
|
-
GET_VARIABLES: (instanceId) => `${PIMS_BASE}/api/v1/instances/${instanceId}/variables`,
|
|
270444
|
-
CANCEL: (instanceId) => `${PIMS_BASE}/api/v1/instances/${instanceId}/cancel`,
|
|
270445
|
-
PAUSE: (instanceId) => `${PIMS_BASE}/api/v1/instances/${instanceId}/pause`,
|
|
270446
|
-
RESUME: (instanceId) => `${PIMS_BASE}/api/v1/instances/${instanceId}/resume`
|
|
270447
|
-
},
|
|
270448
|
-
INCIDENTS: {
|
|
270449
|
-
GET_ALL: `${PIMS_BASE}/api/v1/incidents/summary`,
|
|
270450
|
-
GET_BY_PROCESS: (processKey) => `${PIMS_BASE}/api/v1/incidents/process/${processKey}`,
|
|
270451
|
-
GET_BY_INSTANCE: (instanceId) => `${PIMS_BASE}/api/v1/instances/${instanceId}/incidents`
|
|
270452
|
-
},
|
|
270453
|
-
CASES: {
|
|
270454
|
-
GET_CASE_JSON: (instanceId) => `${PIMS_BASE}/api/v1/cases/${instanceId}/case-json`,
|
|
270455
|
-
GET_ELEMENT_EXECUTIONS: (instanceId) => `${PIMS_BASE}/api/v1/element-executions/case-instances/${instanceId}`,
|
|
270456
|
-
REOPEN: (instanceId) => `${PIMS_BASE}/api/v1/cases/${instanceId}/reopen`
|
|
270457
|
-
}
|
|
270458
|
-
};
|
|
270459
|
-
var DATA_FABRIC_ENDPOINTS = {
|
|
270460
|
-
ENTITY: {
|
|
270461
|
-
GET_ALL: `${DATAFABRIC_BASE}/api/Entity`,
|
|
270462
|
-
GET_ENTITY_RECORDS: (entityId) => `${DATAFABRIC_BASE}/api/EntityService/entity/${entityId}/read`,
|
|
270463
|
-
GET_BY_ID: (entityId) => `${DATAFABRIC_BASE}/api/Entity/${entityId}`,
|
|
270464
|
-
GET_RECORD_BY_ID: (entityId, recordId) => `${DATAFABRIC_BASE}/api/EntityService/entity/${entityId}/read/${recordId}`,
|
|
270465
|
-
INSERT_BY_ID: (entityId) => `${DATAFABRIC_BASE}/api/EntityService/entity/${entityId}/insert`,
|
|
270466
|
-
BATCH_INSERT_BY_ID: (entityId) => `${DATAFABRIC_BASE}/api/EntityService/entity/${entityId}/insert-batch`,
|
|
270467
|
-
UPDATE_RECORD_BY_ID: (entityId, recordId) => `${DATAFABRIC_BASE}/api/EntityService/entity/${entityId}/update/${recordId}`,
|
|
270468
|
-
UPDATE_BY_ID: (entityId) => `${DATAFABRIC_BASE}/api/EntityService/entity/${entityId}/update-batch`,
|
|
270469
|
-
DELETE_BY_ID: (entityId) => `${DATAFABRIC_BASE}/api/EntityService/entity/${entityId}/delete-batch`,
|
|
270470
|
-
DOWNLOAD_ATTACHMENT: (entityId, recordId, fieldName) => `${DATAFABRIC_BASE}/api/Attachment/entity/${entityId}/${recordId}/${fieldName}`,
|
|
270471
|
-
UPLOAD_ATTACHMENT: (entityId, recordId, fieldName) => `${DATAFABRIC_BASE}/api/Attachment/entity/${entityId}/${recordId}/${fieldName}`,
|
|
270472
|
-
DELETE_ATTACHMENT: (entityId, recordId, fieldName) => `${DATAFABRIC_BASE}/api/Attachment/entity/${entityId}/${recordId}/${fieldName}`
|
|
270473
|
-
},
|
|
270474
|
-
CHOICESETS: {
|
|
270475
|
-
GET_ALL: `${DATAFABRIC_BASE}/api/Entity/choiceset`,
|
|
270476
|
-
GET_BY_ID: (choiceSetId) => `${DATAFABRIC_BASE}/api/EntityService/entity/${choiceSetId}/query_expansion`
|
|
270477
|
-
}
|
|
270478
|
-
};
|
|
270479
|
-
var IDENTITY_ENDPOINTS = {
|
|
270480
|
-
TOKEN: `${IDENTITY_BASE}/connect/token`,
|
|
270481
|
-
AUTHORIZE: `${IDENTITY_BASE}/connect/authorize`
|
|
270482
|
-
};
|
|
270483
270149
|
|
|
270484
270150
|
class AuthService {
|
|
270485
270151
|
constructor(config3, executionContext) {
|
|
@@ -270775,7 +270441,7 @@ function normalizeBaseUrl(url2) {
|
|
|
270775
270441
|
return url2.endsWith("/") ? url2.slice(0, -1) : url2;
|
|
270776
270442
|
}
|
|
270777
270443
|
var CONNECTION_STRING = "InstrumentationKey=a6efa11d-1feb-4508-9738-e13e12dcae5e;IngestionEndpoint=https://westeurope-5.in.applicationinsights.azure.com/;LiveEndpoint=https://westeurope.livediagnostics.monitor.azure.com/;ApplicationId=7c58eb1c-9581-4ba6-839e-11725848a037";
|
|
270778
|
-
var SDK_VERSION = "1.2.
|
|
270444
|
+
var SDK_VERSION = "1.2.2";
|
|
270779
270445
|
var VERSION = "Version";
|
|
270780
270446
|
var SERVICE = "Service";
|
|
270781
270447
|
var CLOUD_ORGANIZATION_NAME = "CloudOrganizationName";
|
|
@@ -272937,11 +272603,11 @@ class MaestroProcessesService extends BaseService {
|
|
|
272937
272603
|
async getAll() {
|
|
272938
272604
|
const response = await this.get(MAESTRO_ENDPOINTS.PROCESSES.GET_ALL);
|
|
272939
272605
|
const processes = response.data?.processes || [];
|
|
272940
|
-
const processesWithName = processes.map((
|
|
272941
|
-
...
|
|
272942
|
-
name:
|
|
272606
|
+
const processesWithName = processes.map((process12) => ({
|
|
272607
|
+
...process12,
|
|
272608
|
+
name: process12.packageId
|
|
272943
272609
|
}));
|
|
272944
|
-
return processesWithName.map((
|
|
272610
|
+
return processesWithName.map((process12) => createProcessWithMethods(process12, this));
|
|
272945
272611
|
}
|
|
272946
272612
|
async getIncidents(processKey, folderKey) {
|
|
272947
272613
|
const rawResponse = await this.get(MAESTRO_ENDPOINTS.INCIDENTS.GET_BY_PROCESS(processKey), {
|
|
@@ -273022,60 +272688,19 @@ var CASE_STAGE_CONSTANTS = {
|
|
|
273022
272688
|
};
|
|
273023
272689
|
var CASE_INSTANCE_TASK_FILTER = (caseInstanceId) => `Tags/any(tags:tags/DisplayName eq '${caseInstanceId}') and (IsDeleted eq false)`;
|
|
273024
272690
|
var CASE_INSTANCE_TASK_EXPAND = "AssignedToUser,Activities";
|
|
273025
|
-
var
|
|
273026
|
-
|
|
273027
|
-
|
|
273028
|
-
|
|
273029
|
-
|
|
273030
|
-
|
|
273031
|
-
|
|
273032
|
-
|
|
273033
|
-
|
|
273034
|
-
|
|
273035
|
-
|
|
273036
|
-
|
|
273037
|
-
|
|
273038
|
-
var TaskStatus;
|
|
273039
|
-
(function(TaskStatus2) {
|
|
273040
|
-
TaskStatus2["Unassigned"] = "Unassigned";
|
|
273041
|
-
TaskStatus2["Pending"] = "Pending";
|
|
273042
|
-
TaskStatus2["Completed"] = "Completed";
|
|
273043
|
-
})(TaskStatus || (TaskStatus = {}));
|
|
273044
|
-
var TaskSlaCriteria;
|
|
273045
|
-
(function(TaskSlaCriteria2) {
|
|
273046
|
-
TaskSlaCriteria2["TaskCreated"] = "TaskCreated";
|
|
273047
|
-
TaskSlaCriteria2["TaskAssigned"] = "TaskAssigned";
|
|
273048
|
-
TaskSlaCriteria2["TaskCompleted"] = "TaskCompleted";
|
|
273049
|
-
})(TaskSlaCriteria || (TaskSlaCriteria = {}));
|
|
273050
|
-
var TaskSlaStatus;
|
|
273051
|
-
(function(TaskSlaStatus2) {
|
|
273052
|
-
TaskSlaStatus2["OverdueLater"] = "OverdueLater";
|
|
273053
|
-
TaskSlaStatus2["OverdueSoon"] = "OverdueSoon";
|
|
273054
|
-
TaskSlaStatus2["Overdue"] = "Overdue";
|
|
273055
|
-
TaskSlaStatus2["CompletedInTime"] = "CompletedInTime";
|
|
273056
|
-
})(TaskSlaStatus || (TaskSlaStatus = {}));
|
|
273057
|
-
var TaskSourceName;
|
|
273058
|
-
(function(TaskSourceName2) {
|
|
273059
|
-
TaskSourceName2["Agent"] = "Agent";
|
|
273060
|
-
TaskSourceName2["Workflow"] = "Workflow";
|
|
273061
|
-
TaskSourceName2["Maestro"] = "Maestro";
|
|
273062
|
-
TaskSourceName2["Default"] = "Default";
|
|
273063
|
-
})(TaskSourceName || (TaskSourceName = {}));
|
|
273064
|
-
var TaskActivityType;
|
|
273065
|
-
(function(TaskActivityType2) {
|
|
273066
|
-
TaskActivityType2["Created"] = "Created";
|
|
273067
|
-
TaskActivityType2["Assigned"] = "Assigned";
|
|
273068
|
-
TaskActivityType2["Reassigned"] = "Reassigned";
|
|
273069
|
-
TaskActivityType2["Unassigned"] = "Unassigned";
|
|
273070
|
-
TaskActivityType2["Saved"] = "Saved";
|
|
273071
|
-
TaskActivityType2["Forwarded"] = "Forwarded";
|
|
273072
|
-
TaskActivityType2["Completed"] = "Completed";
|
|
273073
|
-
TaskActivityType2["Commented"] = "Commented";
|
|
273074
|
-
TaskActivityType2["Deleted"] = "Deleted";
|
|
273075
|
-
TaskActivityType2["BulkSaved"] = "BulkSaved";
|
|
273076
|
-
TaskActivityType2["BulkCompleted"] = "BulkCompleted";
|
|
273077
|
-
TaskActivityType2["FirstOpened"] = "FirstOpened";
|
|
273078
|
-
})(TaskActivityType || (TaskActivityType = {}));
|
|
272691
|
+
var TaskStatusMap = {
|
|
272692
|
+
0: TaskStatus.Unassigned,
|
|
272693
|
+
1: TaskStatus.Pending,
|
|
272694
|
+
2: TaskStatus.Completed
|
|
272695
|
+
};
|
|
272696
|
+
var TaskMap = {
|
|
272697
|
+
completionTime: "completedTime",
|
|
272698
|
+
deletionTime: "deletedTime",
|
|
272699
|
+
lastModificationTime: "lastModifiedTime",
|
|
272700
|
+
creationTime: "createdTime",
|
|
272701
|
+
organizationUnitId: "folderId"
|
|
272702
|
+
};
|
|
272703
|
+
var DEFAULT_TASK_EXPAND = "AssignedToUser,CreatorUser,LastModifierUser";
|
|
273079
272704
|
function createTaskMethods(taskData, service) {
|
|
273080
272705
|
return {
|
|
273081
272706
|
async assign(options) {
|
|
@@ -273114,19 +272739,6 @@ function createTaskWithMethods(taskData, service) {
|
|
|
273114
272739
|
const methods = createTaskMethods(taskData, service);
|
|
273115
272740
|
return Object.assign({}, taskData, methods);
|
|
273116
272741
|
}
|
|
273117
|
-
var TaskStatusMap = {
|
|
273118
|
-
0: TaskStatus.Unassigned,
|
|
273119
|
-
1: TaskStatus.Pending,
|
|
273120
|
-
2: TaskStatus.Completed
|
|
273121
|
-
};
|
|
273122
|
-
var TaskMap = {
|
|
273123
|
-
completionTime: "completedTime",
|
|
273124
|
-
deletionTime: "deletedTime",
|
|
273125
|
-
lastModificationTime: "lastModifiedTime",
|
|
273126
|
-
creationTime: "createdTime",
|
|
273127
|
-
organizationUnitId: "folderId"
|
|
273128
|
-
};
|
|
273129
|
-
var DEFAULT_TASK_EXPAND = "AssignedToUser,CreatorUser,LastModifierUser";
|
|
273130
272742
|
|
|
273131
272743
|
class TaskService extends BaseService {
|
|
273132
272744
|
constructor() {
|
|
@@ -273199,8 +272811,15 @@ class TaskService extends BaseService {
|
|
|
273199
272811
|
}, options);
|
|
273200
272812
|
}
|
|
273201
272813
|
async getById(id, options = {}, folderId) {
|
|
272814
|
+
const { taskType, ...restOptions } = options;
|
|
272815
|
+
if (taskType && taskType in TASK_TYPE_ENDPOINTS) {
|
|
272816
|
+
if (!folderId) {
|
|
272817
|
+
throw new ValidationError3({ message: "folderId is required when taskType is provided" });
|
|
272818
|
+
}
|
|
272819
|
+
return this.getByTaskType(id, folderId, taskType, restOptions);
|
|
272820
|
+
}
|
|
273202
272821
|
const headers = createHeaders({ [FOLDER_ID]: folderId });
|
|
273203
|
-
const modifiedOptions = this.addDefaultExpand(
|
|
272822
|
+
const modifiedOptions = this.addDefaultExpand(restOptions);
|
|
273204
272823
|
const keysToPrefix = Object.keys(modifiedOptions);
|
|
273205
272824
|
const apiOptions = addPrefixToKeys(modifiedOptions, ODATA_PREFIX, keysToPrefix);
|
|
273206
272825
|
const response = await this.get(TASK_ENDPOINTS.GET_BY_ID(id), {
|
|
@@ -273208,9 +272827,9 @@ class TaskService extends BaseService {
|
|
|
273208
272827
|
headers
|
|
273209
272828
|
});
|
|
273210
272829
|
const transformedTask = transformData(pascalToCamelCaseKeys(response.data), TaskMap);
|
|
273211
|
-
|
|
273212
|
-
|
|
273213
|
-
return this.
|
|
272830
|
+
const resolvedFolderId = folderId || transformedTask.folderId;
|
|
272831
|
+
if (transformedTask.type in TASK_TYPE_ENDPOINTS) {
|
|
272832
|
+
return this.getByTaskType(id, resolvedFolderId, transformedTask.type, restOptions);
|
|
273214
272833
|
}
|
|
273215
272834
|
return createTaskWithMethods(applyDataTransforms(transformedTask, { field: "status", valueMap: TaskStatusMap }), this);
|
|
273216
272835
|
}
|
|
@@ -273263,17 +272882,22 @@ class TaskService extends BaseService {
|
|
|
273263
272882
|
data: options
|
|
273264
272883
|
};
|
|
273265
272884
|
}
|
|
273266
|
-
|
|
272885
|
+
getByTaskType(id, folderId, taskType, options = {}) {
|
|
272886
|
+
const endpoint = TASK_TYPE_ENDPOINTS[taskType];
|
|
272887
|
+
const extraParams = taskType === TaskType.Form ? { expandOnFormLayout: true, ...options } : options;
|
|
272888
|
+
return this.getTaskByTypeEndpoint(id, folderId, endpoint, extraParams);
|
|
272889
|
+
}
|
|
272890
|
+
async getTaskByTypeEndpoint(id, folderId, endpoint, extraParams = {}) {
|
|
273267
272891
|
const headers = createHeaders({ [FOLDER_ID]: folderId });
|
|
273268
|
-
const response = await this.get(
|
|
272892
|
+
const response = await this.get(endpoint, {
|
|
273269
272893
|
params: {
|
|
273270
272894
|
taskId: id,
|
|
273271
|
-
...
|
|
272895
|
+
...extraParams
|
|
273272
272896
|
},
|
|
273273
272897
|
headers
|
|
273274
272898
|
});
|
|
273275
|
-
const
|
|
273276
|
-
return createTaskWithMethods(applyDataTransforms(
|
|
272899
|
+
const transformedTask = transformData(response.data, TaskMap);
|
|
272900
|
+
return createTaskWithMethods(applyDataTransforms(transformedTask, { field: "status", valueMap: TaskStatusMap }), this);
|
|
273277
272901
|
}
|
|
273278
272902
|
addDefaultExpand(options) {
|
|
273279
272903
|
const processedOptions = { ...options };
|
|
@@ -273814,6 +273438,59 @@ var BucketOptions;
|
|
|
273814
273438
|
BucketOptions2["AuditReadAccess"] = "AuditReadAccess";
|
|
273815
273439
|
BucketOptions2["AccessDataThroughOrchestrator"] = "AccessDataThroughOrchestrator";
|
|
273816
273440
|
})(BucketOptions || (BucketOptions = {}));
|
|
273441
|
+
var JobMap = {
|
|
273442
|
+
creationTime: "createdTime",
|
|
273443
|
+
lastModificationTime: "lastModifiedTime",
|
|
273444
|
+
organizationUnitId: "folderId",
|
|
273445
|
+
organizationUnitFullyQualifiedName: "folderName",
|
|
273446
|
+
releaseName: "processName",
|
|
273447
|
+
releaseVersionId: "processVersionId",
|
|
273448
|
+
processType: "packageType",
|
|
273449
|
+
release: "process"
|
|
273450
|
+
};
|
|
273451
|
+
|
|
273452
|
+
class JobService extends FolderScopedService {
|
|
273453
|
+
async getAll(options) {
|
|
273454
|
+
const transformJobResponse = (job) => transformData(pascalToCamelCaseKeys(job), JobMap);
|
|
273455
|
+
return PaginationHelpers.getAll({
|
|
273456
|
+
serviceAccess: this.createPaginationServiceAccess(),
|
|
273457
|
+
getEndpoint: () => JOB_ENDPOINTS.GET_ALL,
|
|
273458
|
+
getByFolderEndpoint: JOB_ENDPOINTS.GET_ALL,
|
|
273459
|
+
transformFn: transformJobResponse,
|
|
273460
|
+
pagination: {
|
|
273461
|
+
paginationType: PaginationType.OFFSET,
|
|
273462
|
+
itemsField: ODATA_PAGINATION.ITEMS_FIELD,
|
|
273463
|
+
totalCountField: ODATA_PAGINATION.TOTAL_COUNT_FIELD,
|
|
273464
|
+
paginationParams: {
|
|
273465
|
+
pageSizeParam: ODATA_OFFSET_PARAMS.PAGE_SIZE_PARAM,
|
|
273466
|
+
offsetParam: ODATA_OFFSET_PARAMS.OFFSET_PARAM,
|
|
273467
|
+
countParam: ODATA_OFFSET_PARAMS.COUNT_PARAM
|
|
273468
|
+
}
|
|
273469
|
+
}
|
|
273470
|
+
}, options);
|
|
273471
|
+
}
|
|
273472
|
+
}
|
|
273473
|
+
__decorate([
|
|
273474
|
+
track("Jobs.GetAll")
|
|
273475
|
+
], JobService.prototype, "getAll", null);
|
|
273476
|
+
var JobSubState;
|
|
273477
|
+
(function(JobSubState2) {
|
|
273478
|
+
JobSubState2["WithFaults"] = "WITH_FAULTS";
|
|
273479
|
+
JobSubState2["Manually"] = "MANUALLY";
|
|
273480
|
+
})(JobSubState || (JobSubState = {}));
|
|
273481
|
+
var ServerlessJobType;
|
|
273482
|
+
(function(ServerlessJobType2) {
|
|
273483
|
+
ServerlessJobType2["RobotJob"] = "RobotJob";
|
|
273484
|
+
ServerlessJobType2["WebApp"] = "WebApp";
|
|
273485
|
+
ServerlessJobType2["LoadTest"] = "LoadTest";
|
|
273486
|
+
ServerlessJobType2["StudioWebDesigner"] = "StudioWebDesigner";
|
|
273487
|
+
ServerlessJobType2["PublishStudioProject"] = "PublishStudioProject";
|
|
273488
|
+
ServerlessJobType2["JsApi"] = "JsApi";
|
|
273489
|
+
ServerlessJobType2["PythonCodedAgent"] = "PythonCodedAgent";
|
|
273490
|
+
ServerlessJobType2["MCPServer"] = "MCPServer";
|
|
273491
|
+
ServerlessJobType2["PythonCodedSystemAgent"] = "PythonCodedSystemAgent";
|
|
273492
|
+
ServerlessJobType2["PythonAgent"] = "PythonAgent";
|
|
273493
|
+
})(ServerlessJobType || (ServerlessJobType = {}));
|
|
273817
273494
|
var ProcessMap = {
|
|
273818
273495
|
lastModificationTime: "lastModifiedTime",
|
|
273819
273496
|
creationTime: "createdTime",
|
|
@@ -273830,7 +273507,7 @@ var ProcessMap = {
|
|
|
273830
273507
|
|
|
273831
273508
|
class ProcessService extends BaseService {
|
|
273832
273509
|
async getAll(options) {
|
|
273833
|
-
const transformProcessResponse = (
|
|
273510
|
+
const transformProcessResponse = (process12) => transformData(pascalToCamelCaseKeys(process12), ProcessMap);
|
|
273834
273511
|
return PaginationHelpers.getAll({
|
|
273835
273512
|
serviceAccess: this.createPaginationServiceAccess(),
|
|
273836
273513
|
getEndpoint: () => PROCESS_ENDPOINTS.GET_ALL,
|
|
@@ -273860,7 +273537,7 @@ class ProcessService extends BaseService {
|
|
|
273860
273537
|
params: apiOptions,
|
|
273861
273538
|
headers
|
|
273862
273539
|
});
|
|
273863
|
-
const transformedProcess = response.data?.value.map((
|
|
273540
|
+
const transformedProcess = response.data?.value.map((process12) => transformData(pascalToCamelCaseKeys(process12), ProcessMap));
|
|
273864
273541
|
return transformedProcess;
|
|
273865
273542
|
}
|
|
273866
273543
|
async getById(id, folderId, options = {}) {
|
|
@@ -273895,6 +273572,9 @@ var PackageType;
|
|
|
273895
273572
|
PackageType2["Api"] = "Api";
|
|
273896
273573
|
PackageType2["MCPServer"] = "MCPServer";
|
|
273897
273574
|
PackageType2["BusinessRules"] = "BusinessRules";
|
|
273575
|
+
PackageType2["CaseManagement"] = "CaseManagement";
|
|
273576
|
+
PackageType2["Flow"] = "Flow";
|
|
273577
|
+
PackageType2["Function"] = "Function";
|
|
273898
273578
|
})(PackageType || (PackageType = {}));
|
|
273899
273579
|
var JobPriority;
|
|
273900
273580
|
(function(JobPriority2) {
|
|
@@ -273955,11 +273635,68 @@ var PackageSourceType;
|
|
|
273955
273635
|
PackageSourceType2["AgentHub"] = "AgentHub";
|
|
273956
273636
|
PackageSourceType2["ApiWorkflow"] = "ApiWorkflow";
|
|
273957
273637
|
})(PackageSourceType || (PackageSourceType = {}));
|
|
273638
|
+
var JobSourceType;
|
|
273639
|
+
(function(JobSourceType2) {
|
|
273640
|
+
JobSourceType2["Manual"] = "Manual";
|
|
273641
|
+
JobSourceType2["Schedule"] = "Schedule";
|
|
273642
|
+
JobSourceType2["Agent"] = "Agent";
|
|
273643
|
+
JobSourceType2["Queue"] = "Queue";
|
|
273644
|
+
JobSourceType2["StudioWeb"] = "StudioWeb";
|
|
273645
|
+
JobSourceType2["IntegrationTrigger"] = "IntegrationTrigger";
|
|
273646
|
+
JobSourceType2["StudioDesktop"] = "StudioDesktop";
|
|
273647
|
+
JobSourceType2["AutomationOpsPipelines"] = "AutomationOpsPipelines";
|
|
273648
|
+
JobSourceType2["Apps"] = "Apps";
|
|
273649
|
+
JobSourceType2["SAP"] = "SAP";
|
|
273650
|
+
JobSourceType2["HttpTrigger"] = "HttpTrigger";
|
|
273651
|
+
JobSourceType2["HttpTriggerCallback"] = "HttpTriggerCallback";
|
|
273652
|
+
JobSourceType2["RobotAPI"] = "RobotAPI";
|
|
273653
|
+
JobSourceType2["CommandLine"] = "CommandLine";
|
|
273654
|
+
JobSourceType2["RobotNetAPI"] = "RobotNetAPI";
|
|
273655
|
+
JobSourceType2["Autopilot"] = "Autopilot";
|
|
273656
|
+
JobSourceType2["TestManager"] = "TestManager";
|
|
273657
|
+
JobSourceType2["AgentService"] = "AgentService";
|
|
273658
|
+
JobSourceType2["ProcessOrchestration"] = "ProcessOrchestration";
|
|
273659
|
+
JobSourceType2["PluginEcosystem"] = "PluginEcosystem";
|
|
273660
|
+
JobSourceType2["PerformanceTesting"] = "PerformanceTesting";
|
|
273661
|
+
JobSourceType2["AgentHub"] = "AgentHub";
|
|
273662
|
+
JobSourceType2["ApiWorkflow"] = "ApiWorkflow";
|
|
273663
|
+
JobSourceType2["CaseManagement"] = "CaseManagement";
|
|
273664
|
+
})(JobSourceType || (JobSourceType = {}));
|
|
273958
273665
|
var StopStrategy;
|
|
273959
273666
|
(function(StopStrategy2) {
|
|
273960
273667
|
StopStrategy2["SoftStop"] = "SoftStop";
|
|
273961
273668
|
StopStrategy2["Kill"] = "Kill";
|
|
273962
273669
|
})(StopStrategy || (StopStrategy = {}));
|
|
273670
|
+
var RuntimeType;
|
|
273671
|
+
(function(RuntimeType2) {
|
|
273672
|
+
RuntimeType2["NonProduction"] = "NonProduction";
|
|
273673
|
+
RuntimeType2["Attended"] = "Attended";
|
|
273674
|
+
RuntimeType2["Unattended"] = "Unattended";
|
|
273675
|
+
RuntimeType2["Development"] = "Development";
|
|
273676
|
+
RuntimeType2["Studio"] = "Studio";
|
|
273677
|
+
RuntimeType2["RpaDeveloper"] = "RpaDeveloper";
|
|
273678
|
+
RuntimeType2["StudioX"] = "StudioX";
|
|
273679
|
+
RuntimeType2["CitizenDeveloper"] = "CitizenDeveloper";
|
|
273680
|
+
RuntimeType2["Headless"] = "Headless";
|
|
273681
|
+
RuntimeType2["StudioPro"] = "StudioPro";
|
|
273682
|
+
RuntimeType2["RpaDeveloperPro"] = "RpaDeveloperPro";
|
|
273683
|
+
RuntimeType2["TestAutomation"] = "TestAutomation";
|
|
273684
|
+
RuntimeType2["AutomationCloud"] = "AutomationCloud";
|
|
273685
|
+
RuntimeType2["Serverless"] = "Serverless";
|
|
273686
|
+
RuntimeType2["AutomationKit"] = "AutomationKit";
|
|
273687
|
+
RuntimeType2["ServerlessTestAutomation"] = "ServerlessTestAutomation";
|
|
273688
|
+
RuntimeType2["AutomationCloudTestAutomation"] = "AutomationCloudTestAutomation";
|
|
273689
|
+
RuntimeType2["AttendedStudioWeb"] = "AttendedStudioWeb";
|
|
273690
|
+
RuntimeType2["Hosting"] = "Hosting";
|
|
273691
|
+
RuntimeType2["AssistantWeb"] = "AssistantWeb";
|
|
273692
|
+
RuntimeType2["ProcessOrchestration"] = "ProcessOrchestration";
|
|
273693
|
+
RuntimeType2["AgentService"] = "AgentService";
|
|
273694
|
+
RuntimeType2["AppTest"] = "AppTest";
|
|
273695
|
+
RuntimeType2["PerformanceTest"] = "PerformanceTest";
|
|
273696
|
+
RuntimeType2["BusinessRule"] = "BusinessRule";
|
|
273697
|
+
RuntimeType2["CaseManagement"] = "CaseManagement";
|
|
273698
|
+
RuntimeType2["Flow"] = "Flow";
|
|
273699
|
+
})(RuntimeType || (RuntimeType = {}));
|
|
273963
273700
|
var JobType;
|
|
273964
273701
|
(function(JobType2) {
|
|
273965
273702
|
JobType2["Unattended"] = "Unattended";
|
|
@@ -274009,6 +273746,29 @@ __decorate([
|
|
|
274009
273746
|
__decorate([
|
|
274010
273747
|
track("Queues.GetById")
|
|
274011
273748
|
], QueueService.prototype, "getById", null);
|
|
273749
|
+
var AttachmentsMap = {
|
|
273750
|
+
creationTime: "createdTime",
|
|
273751
|
+
lastModificationTime: "lastModifiedTime"
|
|
273752
|
+
};
|
|
273753
|
+
|
|
273754
|
+
class AttachmentService extends BaseService {
|
|
273755
|
+
async getById(id, options = {}) {
|
|
273756
|
+
if (!id) {
|
|
273757
|
+
throw new ValidationError3({ message: "id is required for getById" });
|
|
273758
|
+
}
|
|
273759
|
+
const keysToPrefix = Object.keys(options);
|
|
273760
|
+
const apiOptions = addPrefixToKeys(options, ODATA_PREFIX, keysToPrefix);
|
|
273761
|
+
const response = await this.get(ORCHESTRATOR_ATTACHMENT_ENDPOINTS.GET_BY_ID(id), {
|
|
273762
|
+
params: apiOptions
|
|
273763
|
+
});
|
|
273764
|
+
const camelCased = pascalToCamelCaseKeys(response.data);
|
|
273765
|
+
camelCased.blobFileAccess = transformData(camelCased.blobFileAccess, BucketMap);
|
|
273766
|
+
return transformData(camelCased, AttachmentsMap);
|
|
273767
|
+
}
|
|
273768
|
+
}
|
|
273769
|
+
__decorate([
|
|
273770
|
+
track("Attachments.GetById")
|
|
273771
|
+
], AttachmentService.prototype, "getById", null);
|
|
274012
273772
|
|
|
274013
273773
|
class UiPath2 extends UiPath$1 {
|
|
274014
273774
|
constructor() {
|