@uipath/vertical-solutions-tool 0.1.10 → 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.
Files changed (2) hide show
  1. package/dist/tool.js +622 -263
  2. package/package.json +6 -6
package/dist/tool.js CHANGED
@@ -45,7 +45,7 @@ var __export = (target, all) => {
45
45
  };
46
46
  var __require = /* @__PURE__ */ createRequire(import.meta.url);
47
47
 
48
- // ../../node_modules/@inquirer/checkbox/node_modules/@inquirer/core/node_modules/cli-width/index.js
48
+ // ../../node_modules/cli-width/index.js
49
49
  var require_cli_width = __commonJS((exports, module) => {
50
50
  module.exports = cliWidth;
51
51
  function normalizeOpts(options) {
@@ -325,46 +325,6 @@ var require_lib2 = __commonJS((exports, module) => {
325
325
  module.exports = MuteStream2;
326
326
  });
327
327
 
328
- // ../../node_modules/@inquirer/input/node_modules/@inquirer/core/node_modules/cli-width/index.js
329
- var require_cli_width2 = __commonJS((exports, module) => {
330
- module.exports = cliWidth2;
331
- function normalizeOpts(options) {
332
- const defaultOpts = {
333
- defaultWidth: 0,
334
- output: process.stdout,
335
- tty: __require("tty")
336
- };
337
- if (!options) {
338
- return defaultOpts;
339
- }
340
- Object.keys(defaultOpts).forEach(function(key) {
341
- if (!options[key]) {
342
- options[key] = defaultOpts[key];
343
- }
344
- });
345
- return options;
346
- }
347
- function cliWidth2(options) {
348
- const opts = normalizeOpts(options);
349
- if (opts.output.getWindowSize) {
350
- return opts.output.getWindowSize()[0] || opts.defaultWidth;
351
- }
352
- if (opts.tty.getWindowSize) {
353
- return opts.tty.getWindowSize()[1] || opts.defaultWidth;
354
- }
355
- if (opts.output.columns) {
356
- return opts.output.columns;
357
- }
358
- if (process.env.CLI_WIDTH) {
359
- const width = parseInt(process.env.CLI_WIDTH, 10);
360
- if (!isNaN(width) && width !== 0) {
361
- return width;
362
- }
363
- }
364
- return opts.defaultWidth;
365
- }
366
- });
367
-
368
328
  // ../../node_modules/@ts-morph/common/dist/typescript.js
369
329
  var require_typescript = __commonJS((exports, module) => {
370
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";
@@ -169151,7 +169111,7 @@ var require_commonjs2 = __commonJS((exports) => {
169151
169111
  var openPattern = /\\{/g;
169152
169112
  var closePattern = /\\}/g;
169153
169113
  var commaPattern = /\\,/g;
169154
- var periodPattern = /\\./g;
169114
+ var periodPattern = /\\\./g;
169155
169115
  exports.EXPANSION_MAX = 1e5;
169156
169116
  function numeric(str) {
169157
169117
  return !isNaN(str) ? parseInt(str, 10) : str.charCodeAt(0);
@@ -169245,7 +169205,7 @@ var require_commonjs2 = __commonJS((exports) => {
169245
169205
  const x = numeric(n[0]);
169246
169206
  const y = numeric(n[1]);
169247
169207
  const width = Math.max(n[0].length, n[1].length);
169248
- let incr = n.length === 3 && n[2] !== undefined ? Math.abs(numeric(n[2])) : 1;
169208
+ let incr = n.length === 3 && n[2] !== undefined ? Math.max(Math.abs(numeric(n[2])), 1) : 1;
169249
169209
  let test = lte;
169250
169210
  const reverse = y < x;
169251
169211
  if (reverse) {
@@ -169296,7 +169256,7 @@ var require_commonjs2 = __commonJS((exports) => {
169296
169256
  }
169297
169257
  });
169298
169258
 
169299
- // ../../node_modules/@ts-morph/common/node_modules/minimatch/dist/commonjs/assert-valid-pattern.js
169259
+ // ../../node_modules/minimatch/dist/commonjs/assert-valid-pattern.js
169300
169260
  var require_assert_valid_pattern = __commonJS((exports) => {
169301
169261
  Object.defineProperty(exports, "__esModule", { value: true });
169302
169262
  exports.assertValidPattern = undefined;
@@ -169312,7 +169272,7 @@ var require_assert_valid_pattern = __commonJS((exports) => {
169312
169272
  exports.assertValidPattern = assertValidPattern;
169313
169273
  });
169314
169274
 
169315
- // ../../node_modules/@ts-morph/common/node_modules/minimatch/dist/commonjs/brace-expressions.js
169275
+ // ../../node_modules/minimatch/dist/commonjs/brace-expressions.js
169316
169276
  var require_brace_expressions = __commonJS((exports) => {
169317
169277
  Object.defineProperty(exports, "__esModule", { value: true });
169318
169278
  exports.parseClass = undefined;
@@ -169427,20 +169387,20 @@ var require_brace_expressions = __commonJS((exports) => {
169427
169387
  exports.parseClass = parseClass;
169428
169388
  });
169429
169389
 
169430
- // ../../node_modules/@ts-morph/common/node_modules/minimatch/dist/commonjs/unescape.js
169390
+ // ../../node_modules/minimatch/dist/commonjs/unescape.js
169431
169391
  var require_unescape = __commonJS((exports) => {
169432
169392
  Object.defineProperty(exports, "__esModule", { value: true });
169433
169393
  exports.unescape = undefined;
169434
169394
  var unescape = (s, { windowsPathsNoEscape = false, magicalBraces = true } = {}) => {
169435
169395
  if (magicalBraces) {
169436
- return windowsPathsNoEscape ? s.replace(/\[([^\/\\])\]/g, "$1") : s.replace(/((?!\\).|^)\[([^\/\\])\]/g, "$1$2").replace(/\\([^\/])/g, "$1");
169396
+ return windowsPathsNoEscape ? s.replace(/\[([^/\\])\]/g, "$1") : s.replace(/((?!\\).|^)\[([^/\\])\]/g, "$1$2").replace(/\\([^/])/g, "$1");
169437
169397
  }
169438
- return windowsPathsNoEscape ? s.replace(/\[([^\/\\{}])\]/g, "$1") : s.replace(/((?!\\).|^)\[([^\/\\{}])\]/g, "$1$2").replace(/\\([^\/{}])/g, "$1");
169398
+ return windowsPathsNoEscape ? s.replace(/\[([^/\\{}])\]/g, "$1") : s.replace(/((?!\\).|^)\[([^/\\{}])\]/g, "$1$2").replace(/\\([^/{}])/g, "$1");
169439
169399
  };
169440
169400
  exports.unescape = unescape;
169441
169401
  });
169442
169402
 
169443
- // ../../node_modules/@ts-morph/common/node_modules/minimatch/dist/commonjs/ast.js
169403
+ // ../../node_modules/minimatch/dist/commonjs/ast.js
169444
169404
  var require_ast = __commonJS((exports) => {
169445
169405
  var _a;
169446
169406
  Object.defineProperty(exports, "__esModule", { value: true });
@@ -169560,13 +169520,7 @@ var require_ast = __commonJS((exports) => {
169560
169520
  return this.#hasMagic;
169561
169521
  }
169562
169522
  toString() {
169563
- if (this.#toString !== undefined)
169564
- return this.#toString;
169565
- if (!this.type) {
169566
- return this.#toString = this.#parts.map((p) => String(p)).join("");
169567
- } else {
169568
- return this.#toString = this.type + "(" + this.#parts.map((p) => String(p)).join("|") + ")";
169569
- }
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("|") + ")";
169570
169524
  }
169571
169525
  #fillNegs() {
169572
169526
  if (this !== this.#root)
@@ -170015,7 +169969,7 @@ var require_ast = __commonJS((exports) => {
170015
169969
  _a = AST;
170016
169970
  });
170017
169971
 
170018
- // ../../node_modules/@ts-morph/common/node_modules/minimatch/dist/commonjs/escape.js
169972
+ // ../../node_modules/minimatch/dist/commonjs/escape.js
170019
169973
  var require_escape = __commonJS((exports) => {
170020
169974
  Object.defineProperty(exports, "__esModule", { value: true });
170021
169975
  exports.escape = undefined;
@@ -170028,7 +169982,7 @@ var require_escape = __commonJS((exports) => {
170028
169982
  exports.escape = escape;
170029
169983
  });
170030
169984
 
170031
- // ../../node_modules/@ts-morph/common/node_modules/minimatch/dist/commonjs/index.js
169985
+ // ../../node_modules/minimatch/dist/commonjs/index.js
170032
169986
  var require_commonjs3 = __commonJS((exports) => {
170033
169987
  Object.defineProperty(exports, "__esModule", { value: true });
170034
169988
  exports.unescape = exports.escape = exports.AST = exports.Minimatch = exports.match = exports.makeRe = exports.braceExpand = exports.defaults = exports.filter = exports.GLOBSTAR = exports.sep = exports.minimatch = undefined;
@@ -170045,7 +169999,7 @@ var require_commonjs3 = __commonJS((exports) => {
170045
169999
  return new Minimatch(pattern, options).match(p);
170046
170000
  };
170047
170001
  exports.minimatch = minimatch;
170048
- var starDotExtRE = /^\*+([^+@!?\*\[\(]*)$/;
170002
+ var starDotExtRE = /^\*+([^+@!?*[(]*)$/;
170049
170003
  var starDotExtTest = (ext2) => (f) => !f.startsWith(".") && f.endsWith(ext2);
170050
170004
  var starDotExtTestDot = (ext2) => (f) => f.endsWith(ext2);
170051
170005
  var starDotExtTestNocase = (ext2) => {
@@ -170064,7 +170018,7 @@ var require_commonjs3 = __commonJS((exports) => {
170064
170018
  var starRE = /^\*+$/;
170065
170019
  var starTest = (f) => f.length !== 0 && !f.startsWith(".");
170066
170020
  var starTestDot = (f) => f.length !== 0 && f !== "." && f !== "..";
170067
- var qmarksRE = /^\?+([^+@!?\*\[\(]*)?$/;
170021
+ var qmarksRE = /^\?+([^+@!?*[(]*)?$/;
170068
170022
  var qmarksTestNocase = ([$0, ext2 = ""]) => {
170069
170023
  const noext = qmarksTestNoExt([$0]);
170070
170024
  if (!ext2)
@@ -170281,10 +170235,10 @@ var require_commonjs3 = __commonJS((exports) => {
170281
170235
  }
170282
170236
  preprocess(globParts) {
170283
170237
  if (this.options.noglobstar) {
170284
- for (let i = 0;i < globParts.length; i++) {
170285
- for (let j = 0;j < globParts[i].length; j++) {
170286
- if (globParts[i][j] === "**") {
170287
- globParts[i][j] = "*";
170238
+ for (const partset of globParts) {
170239
+ for (let j = 0;j < partset.length; j++) {
170240
+ if (partset[j] === "**") {
170241
+ partset[j] = "*";
170288
170242
  }
170289
170243
  }
170290
170244
  }
@@ -170360,7 +170314,7 @@ var require_commonjs3 = __commonJS((exports) => {
170360
170314
  let dd = 0;
170361
170315
  while ((dd = parts.indexOf("..", dd + 1)) !== -1) {
170362
170316
  const p = parts[dd - 1];
170363
- if (p && p !== "." && p !== ".." && p !== "**") {
170317
+ if (p && p !== "." && p !== ".." && p !== "**" && !(this.isWindows && /^[a-z]:$/i.test(p))) {
170364
170318
  didSomething = true;
170365
170319
  parts.splice(dd - 1, 2);
170366
170320
  dd -= 2;
@@ -170528,7 +170482,11 @@ var require_commonjs3 = __commonJS((exports) => {
170528
170482
  #matchGlobstar(file, pattern, partial, fileIndex, patternIndex) {
170529
170483
  const firstgs = pattern.indexOf(exports.GLOBSTAR, patternIndex);
170530
170484
  const lastgs = pattern.lastIndexOf(exports.GLOBSTAR);
170531
- const [head, body, tail] = [
170485
+ const [head, body, tail] = partial ? [
170486
+ pattern.slice(patternIndex, firstgs),
170487
+ pattern.slice(firstgs + 1),
170488
+ []
170489
+ ] : [
170532
170490
  pattern.slice(patternIndex, firstgs),
170533
170491
  pattern.slice(firstgs + 1, lastgs),
170534
170492
  pattern.slice(lastgs + 1)
@@ -170568,7 +170526,7 @@ var require_commonjs3 = __commonJS((exports) => {
170568
170526
  return false;
170569
170527
  }
170570
170528
  }
170571
- return sawSome;
170529
+ return partial || sawSome;
170572
170530
  }
170573
170531
  const bodySegments = [[[], 0]];
170574
170532
  let currentBody = bodySegments[0];
@@ -170618,7 +170576,7 @@ var require_commonjs3 = __commonJS((exports) => {
170618
170576
  }
170619
170577
  fileIndex++;
170620
170578
  }
170621
- return null;
170579
+ return partial || null;
170622
170580
  }
170623
170581
  #matchOne(file, pattern, partial, fileIndex, patternIndex) {
170624
170582
  let fi;
@@ -170740,7 +170698,7 @@ var require_commonjs3 = __commonJS((exports) => {
170740
170698
  re = "^(?!" + re + ").+$";
170741
170699
  try {
170742
170700
  this.regexp = new RegExp(re, [...flags].join(""));
170743
- } catch (ex) {
170701
+ } catch {
170744
170702
  this.regexp = false;
170745
170703
  }
170746
170704
  return this.regexp;
@@ -170748,7 +170706,7 @@ var require_commonjs3 = __commonJS((exports) => {
170748
170706
  slashSplit(p) {
170749
170707
  if (this.preserveMultipleSlashes) {
170750
170708
  return p.split("/");
170751
- } else if (this.isWindows && /^\/\/[^\/]+/.test(p)) {
170709
+ } else if (this.isWindows && /^\/\/[^/]+/.test(p)) {
170752
170710
  return ["", ...p.split(/\/+/)];
170753
170711
  } else {
170754
170712
  return p.split(/\/+/);
@@ -170779,8 +170737,7 @@ var require_commonjs3 = __commonJS((exports) => {
170779
170737
  filename = ff[i];
170780
170738
  }
170781
170739
  }
170782
- for (let i = 0;i < set.length; i++) {
170783
- const pattern = set[i];
170740
+ for (const pattern of set) {
170784
170741
  let file = ff;
170785
170742
  if (options.matchBase && pattern.length === 1) {
170786
170743
  file = [filename];
@@ -171244,6 +171201,7 @@ var require_path_browserify = __commonJS((exports, module) => {
171244
171201
  var require_constants = __commonJS((exports, module) => {
171245
171202
  var WIN_SLASH = "\\\\/";
171246
171203
  var WIN_NO_SLASH = `[^${WIN_SLASH}]`;
171204
+ var DEFAULT_MAX_EXTGLOB_RECURSION = 0;
171247
171205
  var DOT_LITERAL = "\\.";
171248
171206
  var PLUS_LITERAL = "\\+";
171249
171207
  var QMARK_LITERAL = "\\?";
@@ -171294,6 +171252,7 @@ var require_constants = __commonJS((exports, module) => {
171294
171252
  SEP: "\\"
171295
171253
  };
171296
171254
  var POSIX_REGEX_SOURCE = {
171255
+ __proto__: null,
171297
171256
  alnum: "a-zA-Z0-9",
171298
171257
  alpha: "a-zA-Z",
171299
171258
  ascii: "\\x00-\\x7F",
@@ -171310,6 +171269,7 @@ var require_constants = __commonJS((exports, module) => {
171310
171269
  xdigit: "A-Fa-f0-9"
171311
171270
  };
171312
171271
  module.exports = {
171272
+ DEFAULT_MAX_EXTGLOB_RECURSION,
171313
171273
  MAX_LENGTH: 1024 * 64,
171314
171274
  POSIX_REGEX_SOURCE,
171315
171275
  REGEX_BACKSLASH: /\\(?![*+?^${}(|)[\]])/g,
@@ -171787,6 +171747,213 @@ var require_parse = __commonJS((exports, module) => {
171787
171747
  var syntaxError = (type, char) => {
171788
171748
  return `Missing ${type}: "${char}" - use "\\\\${char}" to match literal characters`;
171789
171749
  };
171750
+ var splitTopLevel = (input) => {
171751
+ const parts = [];
171752
+ let bracket = 0;
171753
+ let paren = 0;
171754
+ let quote = 0;
171755
+ let value = "";
171756
+ let escaped = false;
171757
+ for (const ch of input) {
171758
+ if (escaped === true) {
171759
+ value += ch;
171760
+ escaped = false;
171761
+ continue;
171762
+ }
171763
+ if (ch === "\\") {
171764
+ value += ch;
171765
+ escaped = true;
171766
+ continue;
171767
+ }
171768
+ if (ch === '"') {
171769
+ quote = quote === 1 ? 0 : 1;
171770
+ value += ch;
171771
+ continue;
171772
+ }
171773
+ if (quote === 0) {
171774
+ if (ch === "[") {
171775
+ bracket++;
171776
+ } else if (ch === "]" && bracket > 0) {
171777
+ bracket--;
171778
+ } else if (bracket === 0) {
171779
+ if (ch === "(") {
171780
+ paren++;
171781
+ } else if (ch === ")" && paren > 0) {
171782
+ paren--;
171783
+ } else if (ch === "|" && paren === 0) {
171784
+ parts.push(value);
171785
+ value = "";
171786
+ continue;
171787
+ }
171788
+ }
171789
+ }
171790
+ value += ch;
171791
+ }
171792
+ parts.push(value);
171793
+ return parts;
171794
+ };
171795
+ var isPlainBranch = (branch) => {
171796
+ let escaped = false;
171797
+ for (const ch of branch) {
171798
+ if (escaped === true) {
171799
+ escaped = false;
171800
+ continue;
171801
+ }
171802
+ if (ch === "\\") {
171803
+ escaped = true;
171804
+ continue;
171805
+ }
171806
+ if (/[?*+@!()[\]{}]/.test(ch)) {
171807
+ return false;
171808
+ }
171809
+ }
171810
+ return true;
171811
+ };
171812
+ var normalizeSimpleBranch = (branch) => {
171813
+ let value = branch.trim();
171814
+ let changed = true;
171815
+ while (changed === true) {
171816
+ changed = false;
171817
+ if (/^@\([^\\()[\]{}|]+\)$/.test(value)) {
171818
+ value = value.slice(2, -1);
171819
+ changed = true;
171820
+ }
171821
+ }
171822
+ if (!isPlainBranch(value)) {
171823
+ return;
171824
+ }
171825
+ return value.replace(/\\(.)/g, "$1");
171826
+ };
171827
+ var hasRepeatedCharPrefixOverlap = (branches) => {
171828
+ const values = branches.map(normalizeSimpleBranch).filter(Boolean);
171829
+ for (let i = 0;i < values.length; i++) {
171830
+ for (let j = i + 1;j < values.length; j++) {
171831
+ const a = values[i];
171832
+ const b = values[j];
171833
+ const char = a[0];
171834
+ if (!char || a !== char.repeat(a.length) || b !== char.repeat(b.length)) {
171835
+ continue;
171836
+ }
171837
+ if (a === b || a.startsWith(b) || b.startsWith(a)) {
171838
+ return true;
171839
+ }
171840
+ }
171841
+ }
171842
+ return false;
171843
+ };
171844
+ var parseRepeatedExtglob = (pattern, requireEnd = true) => {
171845
+ if (pattern[0] !== "+" && pattern[0] !== "*" || pattern[1] !== "(") {
171846
+ return;
171847
+ }
171848
+ let bracket = 0;
171849
+ let paren = 0;
171850
+ let quote = 0;
171851
+ let escaped = false;
171852
+ for (let i = 1;i < pattern.length; i++) {
171853
+ const ch = pattern[i];
171854
+ if (escaped === true) {
171855
+ escaped = false;
171856
+ continue;
171857
+ }
171858
+ if (ch === "\\") {
171859
+ escaped = true;
171860
+ continue;
171861
+ }
171862
+ if (ch === '"') {
171863
+ quote = quote === 1 ? 0 : 1;
171864
+ continue;
171865
+ }
171866
+ if (quote === 1) {
171867
+ continue;
171868
+ }
171869
+ if (ch === "[") {
171870
+ bracket++;
171871
+ continue;
171872
+ }
171873
+ if (ch === "]" && bracket > 0) {
171874
+ bracket--;
171875
+ continue;
171876
+ }
171877
+ if (bracket > 0) {
171878
+ continue;
171879
+ }
171880
+ if (ch === "(") {
171881
+ paren++;
171882
+ continue;
171883
+ }
171884
+ if (ch === ")") {
171885
+ paren--;
171886
+ if (paren === 0) {
171887
+ if (requireEnd === true && i !== pattern.length - 1) {
171888
+ return;
171889
+ }
171890
+ return {
171891
+ type: pattern[0],
171892
+ body: pattern.slice(2, i),
171893
+ end: i
171894
+ };
171895
+ }
171896
+ }
171897
+ }
171898
+ };
171899
+ var getStarExtglobSequenceOutput = (pattern) => {
171900
+ let index = 0;
171901
+ const chars = [];
171902
+ while (index < pattern.length) {
171903
+ const match = parseRepeatedExtglob(pattern.slice(index), false);
171904
+ if (!match || match.type !== "*") {
171905
+ return;
171906
+ }
171907
+ const branches = splitTopLevel(match.body).map((branch2) => branch2.trim());
171908
+ if (branches.length !== 1) {
171909
+ return;
171910
+ }
171911
+ const branch = normalizeSimpleBranch(branches[0]);
171912
+ if (!branch || branch.length !== 1) {
171913
+ return;
171914
+ }
171915
+ chars.push(branch);
171916
+ index += match.end + 1;
171917
+ }
171918
+ if (chars.length < 1) {
171919
+ return;
171920
+ }
171921
+ const source = chars.length === 1 ? utils.escapeRegex(chars[0]) : `[${chars.map((ch) => utils.escapeRegex(ch)).join("")}]`;
171922
+ return `${source}*`;
171923
+ };
171924
+ var repeatedExtglobRecursion = (pattern) => {
171925
+ let depth = 0;
171926
+ let value = pattern.trim();
171927
+ let match = parseRepeatedExtglob(value);
171928
+ while (match) {
171929
+ depth++;
171930
+ value = match.body.trim();
171931
+ match = parseRepeatedExtglob(value);
171932
+ }
171933
+ return depth;
171934
+ };
171935
+ var analyzeRepeatedExtglob = (body, options) => {
171936
+ if (options.maxExtglobRecursion === false) {
171937
+ return { risky: false };
171938
+ }
171939
+ const max = typeof options.maxExtglobRecursion === "number" ? options.maxExtglobRecursion : constants.DEFAULT_MAX_EXTGLOB_RECURSION;
171940
+ const branches = splitTopLevel(body).map((branch) => branch.trim());
171941
+ if (branches.length > 1) {
171942
+ if (branches.some((branch) => branch === "") || branches.some((branch) => /^[*?]+$/.test(branch)) || hasRepeatedCharPrefixOverlap(branches)) {
171943
+ return { risky: true };
171944
+ }
171945
+ }
171946
+ for (const branch of branches) {
171947
+ const safeOutput = getStarExtglobSequenceOutput(branch);
171948
+ if (safeOutput) {
171949
+ return { risky: true, safeOutput };
171950
+ }
171951
+ if (repeatedExtglobRecursion(branch) > max) {
171952
+ return { risky: true };
171953
+ }
171954
+ }
171955
+ return { risky: false };
171956
+ };
171790
171957
  var parse = (input, options) => {
171791
171958
  if (typeof input !== "string") {
171792
171959
  throw new TypeError("Expected a string");
@@ -171918,6 +172085,8 @@ var require_parse = __commonJS((exports, module) => {
171918
172085
  token.prev = prev;
171919
172086
  token.parens = state.parens;
171920
172087
  token.output = state.output;
172088
+ token.startIndex = state.index;
172089
+ token.tokensIndex = tokens.length;
171921
172090
  const output = (opts.capture ? "(" : "") + token.open;
171922
172091
  increment("parens");
171923
172092
  push({ type, value: value2, output: state.output ? "" : ONE_CHAR });
@@ -171925,6 +172094,26 @@ var require_parse = __commonJS((exports, module) => {
171925
172094
  extglobs.push(token);
171926
172095
  };
171927
172096
  const extglobClose = (token) => {
172097
+ const literal = input.slice(token.startIndex, state.index + 1);
172098
+ const body = input.slice(token.startIndex + 2, state.index);
172099
+ const analysis = analyzeRepeatedExtglob(body, opts);
172100
+ if ((token.type === "plus" || token.type === "star") && analysis.risky) {
172101
+ const safeOutput = analysis.safeOutput ? (token.output ? "" : ONE_CHAR) + (opts.capture ? `(${analysis.safeOutput})` : analysis.safeOutput) : undefined;
172102
+ const open = tokens[token.tokensIndex];
172103
+ open.type = "text";
172104
+ open.value = literal;
172105
+ open.output = safeOutput || utils.escapeRegex(literal);
172106
+ for (let i = token.tokensIndex + 1;i < tokens.length; i++) {
172107
+ tokens[i].value = "";
172108
+ tokens[i].output = "";
172109
+ delete tokens[i].suffix;
172110
+ }
172111
+ state.output = token.output + open.output;
172112
+ state.backtrack = true;
172113
+ push({ type: "paren", extglob: true, value, output: "" });
172114
+ decrement("parens");
172115
+ return;
172116
+ }
171928
172117
  let output = token.close + (opts.capture ? ")" : "");
171929
172118
  let rest;
171930
172119
  if (token.type === "negate") {
@@ -246595,7 +246784,7 @@ var require_src6 = __commonJS((exports) => {
246595
246784
  // package.json
246596
246785
  var package_default = {
246597
246786
  name: "@uipath/vertical-solutions-tool",
246598
- version: "0.1.10",
246787
+ version: "0.1.11",
246599
246788
  description: "Scaffold and generate Vertical Solution projects.",
246600
246789
  private: false,
246601
246790
  repository: {
@@ -246604,7 +246793,7 @@ var package_default = {
246604
246793
  directory: "packages/vertical-solutions-tool"
246605
246794
  },
246606
246795
  publishConfig: {
246607
- registry: "https://registry.npmjs.org/"
246796
+ registry: "https://npm.pkg.github.com/@uipath"
246608
246797
  },
246609
246798
  keywords: [
246610
246799
  "cli-tool",
@@ -246629,7 +246818,7 @@ var package_default = {
246629
246818
  "dist"
246630
246819
  ],
246631
246820
  scripts: {
246632
- build: "bun build ./src/tool.ts --outdir dist --format esm --target node --external commander --external @uipath/common --external @uipath/auth --external @uipath/filesystem --external @uipath/solutionpackager-tool-core && bun build ./src/index.ts --outdir dist --format esm --target node --external '*/tool.js' --external commander --external @uipath/common --external @uipath/auth --external @uipath/filesystem --external @uipath/solutionpackager-tool-core",
246821
+ build: "bun ../../tools/build-tool.ts",
246633
246822
  package: "bun run build && bun pm pack",
246634
246823
  lint: "biome check .",
246635
246824
  "lint:fix": "biome check --write .",
@@ -246637,15 +246826,15 @@ var package_default = {
246637
246826
  },
246638
246827
  peerDependencies: {
246639
246828
  commander: "^14.0.3",
246640
- "@uipath/common": "^0.1.7",
246641
- "@uipath/auth": "^0.1.6",
246829
+ "@uipath/common": "^0.1.13",
246830
+ "@uipath/auth": "^0.1.9",
246642
246831
  "@uipath/filesystem": "^0.1.6",
246643
- "@uipath/solutionpackager-tool-core": "^0.0.29"
246832
+ "@uipath/solutionpackager-tool-core": "workspace:*"
246644
246833
  },
246645
246834
  devDependencies: {
246646
246835
  "@inquirer/prompts": "^8.3.2",
246647
246836
  "@uipath/uipath-typescript": "^1.2.1",
246648
- "@types/node": "^25.2.3",
246837
+ "@types/node": "^25.5.0",
246649
246838
  ora: "^9.3.0",
246650
246839
  "ts-morph": "^27.0.2",
246651
246840
  typescript: "^5",
@@ -248543,7 +248732,7 @@ import { AsyncResource as AsyncResource6 } from "node:async_hooks";
248543
248732
  import { stripVTControlCharacters as stripVTControlCharacters2 } from "node:util";
248544
248733
 
248545
248734
  // ../../node_modules/@inquirer/input/node_modules/@inquirer/core/dist/lib/utils.js
248546
- var import_cli_width2 = __toESM(require_cli_width2(), 1);
248735
+ var import_cli_width2 = __toESM(require_cli_width(), 1);
248547
248736
  function breakLines2(content, width) {
248548
248737
  return content.split(`
248549
248738
  `).flatMap((line) => wrapAnsi(line, width, { trim: false, hard: true }).split(`
@@ -262575,7 +262764,7 @@ var addEntityToConfig = async (entity, targetPath = ".") => {
262575
262764
  // src/api/fetchEnteties.ts
262576
262765
  import { catchError as catchError2 } from "@uipath/common";
262577
262766
 
262578
- // node_modules/ora/index.js
262767
+ // ../../node_modules/ora/index.js
262579
262768
  import process10 from "node:process";
262580
262769
  import { stripVTControlCharacters as stripVTControlCharacters3 } from "node:util";
262581
262770
 
@@ -263068,10 +263257,10 @@ var chalk = createChalk();
263068
263257
  var chalkStderr = createChalk({ level: stderrColor ? stderrColor.level : 0 });
263069
263258
  var source_default = chalk;
263070
263259
 
263071
- // node_modules/ora/node_modules/cli-cursor/index.js
263260
+ // ../../node_modules/ora/node_modules/cli-cursor/index.js
263072
263261
  import process7 from "node:process";
263073
263262
 
263074
- // node_modules/ora/node_modules/cli-cursor/node_modules/restore-cursor/index.js
263263
+ // ../../node_modules/ora/node_modules/cli-cursor/node_modules/restore-cursor/index.js
263075
263264
  import process6 from "node:process";
263076
263265
 
263077
263266
  // ../../node_modules/mimic-function/index.js
@@ -263120,7 +263309,7 @@ function mimicFunction(to, from, { ignoreNonConfigurable = false } = {}) {
263120
263309
  return to;
263121
263310
  }
263122
263311
 
263123
- // node_modules/ora/node_modules/cli-cursor/node_modules/restore-cursor/node_modules/onetime/index.js
263312
+ // ../../node_modules/ora/node_modules/cli-cursor/node_modules/restore-cursor/node_modules/onetime/index.js
263124
263313
  var calledFunctions = new WeakMap;
263125
263314
  var onetime = (function_, options = {}) => {
263126
263315
  if (typeof function_ !== "function") {
@@ -263151,7 +263340,7 @@ onetime.callCount = (function_) => {
263151
263340
  };
263152
263341
  var onetime_default = onetime;
263153
263342
 
263154
- // node_modules/ora/node_modules/cli-cursor/node_modules/restore-cursor/index.js
263343
+ // ../../node_modules/ora/node_modules/cli-cursor/node_modules/restore-cursor/index.js
263155
263344
  var terminal = process6.stderr.isTTY ? process6.stderr : process6.stdout.isTTY ? process6.stdout : undefined;
263156
263345
  var restoreCursor = terminal ? onetime_default(() => {
263157
263346
  onExit(() => {
@@ -263160,7 +263349,7 @@ var restoreCursor = terminal ? onetime_default(() => {
263160
263349
  }) : () => {};
263161
263350
  var restore_cursor_default = restoreCursor;
263162
263351
 
263163
- // node_modules/ora/node_modules/cli-cursor/index.js
263352
+ // ../../node_modules/ora/node_modules/cli-cursor/index.js
263164
263353
  var isHidden = false;
263165
263354
  var cliCursor = {};
263166
263355
  cliCursor.show = (writableStream = process7.stderr) => {
@@ -263189,7 +263378,7 @@ cliCursor.toggle = (force, writableStream) => {
263189
263378
  }
263190
263379
  };
263191
263380
  var cli_cursor_default = cliCursor;
263192
- // node_modules/ora/node_modules/cli-spinners/spinners.json
263381
+ // ../../node_modules/ora/node_modules/cli-spinners/spinners.json
263193
263382
  var spinners_default = {
263194
263383
  dots: {
263195
263384
  interval: 80,
@@ -264888,11 +265077,11 @@ var spinners_default = {
264888
265077
  }
264889
265078
  };
264890
265079
 
264891
- // node_modules/ora/node_modules/cli-spinners/index.js
265080
+ // ../../node_modules/ora/node_modules/cli-spinners/index.js
264892
265081
  var cli_spinners_default = spinners_default;
264893
265082
  var spinnersList = Object.keys(spinners_default);
264894
265083
 
264895
- // node_modules/ora/node_modules/log-symbols/symbols.js
265084
+ // ../../node_modules/log-symbols/symbols.js
264896
265085
  var exports_symbols = {};
264897
265086
  __export(exports_symbols, {
264898
265087
  warning: () => warning,
@@ -264982,13 +265171,13 @@ function isUnicodeSupported2() {
264982
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";
264983
265172
  }
264984
265173
 
264985
- // node_modules/ora/node_modules/log-symbols/symbols.js
265174
+ // ../../node_modules/log-symbols/symbols.js
264986
265175
  var _isUnicodeSupported = isUnicodeSupported2();
264987
265176
  var info = blue(_isUnicodeSupported ? "ℹ" : "i");
264988
265177
  var success2 = green(_isUnicodeSupported ? "✔" : "√");
264989
265178
  var warning = yellow(_isUnicodeSupported ? "⚠" : "‼");
264990
265179
  var error48 = red(_isUnicodeSupported ? "✖" : "×");
264991
- // ../../node_modules/ansi-regex/index.js
265180
+ // ../../node_modules/ora/node_modules/string-width/node_modules/strip-ansi/node_modules/ansi-regex/index.js
264992
265181
  function ansiRegex({ onlyFirst = false } = {}) {
264993
265182
  const ST = "(?:\\u0007|\\u001B\\u005C|\\u009C)";
264994
265183
  const osc = `(?:\\u001B\\][\\s\\S]*?${ST})`;
@@ -264997,12 +265186,15 @@ function ansiRegex({ onlyFirst = false } = {}) {
264997
265186
  return new RegExp(pattern, onlyFirst ? undefined : "g");
264998
265187
  }
264999
265188
 
265000
- // ../../node_modules/strip-ansi/index.js
265189
+ // ../../node_modules/ora/node_modules/string-width/node_modules/strip-ansi/index.js
265001
265190
  var regex = ansiRegex();
265002
265191
  function stripAnsi(string4) {
265003
265192
  if (typeof string4 !== "string") {
265004
265193
  throw new TypeError(`Expected a \`string\`, got \`${typeof string4}\``);
265005
265194
  }
265195
+ if (!string4.includes("\x1B") && !string4.includes("›")) {
265196
+ return string4;
265197
+ }
265006
265198
  return string4.replace(regex, "");
265007
265199
  }
265008
265200
 
@@ -265096,7 +265288,7 @@ function eastAsianWidth(codePoint, { ambiguousAsWide = false } = {}) {
265096
265288
  return 1;
265097
265289
  }
265098
265290
 
265099
- // node_modules/ora/node_modules/string-width/index.js
265291
+ // ../../node_modules/ora/node_modules/string-width/index.js
265100
265292
  var segmenter = new Intl.Segmenter;
265101
265293
  var zeroWidthClusterRegex = /^(?:\p{Default_Ignorable_Code_Point}|\p{Control}|\p{Format}|\p{Mark}|\p{Surrogate})+$/v;
265102
265294
  var leadingNonPrintingRegex = /^[\p{Default_Ignorable_Code_Point}\p{Control}\p{Format}\p{Mark}\p{Surrogate}]+/v;
@@ -265173,7 +265365,7 @@ function isInteractive({ stream = process.stdout } = {}) {
265173
265365
  return Boolean(stream && stream.isTTY && process.env.TERM !== "dumb" && !("CI" in process.env));
265174
265366
  }
265175
265367
 
265176
- // node_modules/ora/node_modules/stdin-discarder/index.js
265368
+ // ../../node_modules/stdin-discarder/index.js
265177
265369
  import process9 from "node:process";
265178
265370
  var ASCII_ETX_CODE = 3;
265179
265371
 
@@ -265244,7 +265436,7 @@ class StdinDiscarder {
265244
265436
  var stdinDiscarder = new StdinDiscarder;
265245
265437
  var stdin_discarder_default = Object.freeze(stdinDiscarder);
265246
265438
 
265247
- // node_modules/ora/index.js
265439
+ // ../../node_modules/ora/index.js
265248
265440
  var RENDER_DEFERRAL_TIMEOUT = 200;
265249
265441
  var SYNCHRONIZED_OUTPUT_ENABLE = "\x1B[?2026h";
265250
265442
  var SYNCHRONIZED_OUTPUT_DISABLE = "\x1B[?2026l";
@@ -269509,6 +269701,170 @@ class NetworkError extends UiPathError {
269509
269701
  });
269510
269702
  }
269511
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
+ };
269512
269868
  var ActionCenterEventNames;
269513
269869
  (function(ActionCenterEventNames2) {
269514
269870
  ActionCenterEventNames2["TOKENREFRESHED"] = "AC.tokenRefreshed";
@@ -269790,97 +270146,6 @@ class TokenManager {
269790
270146
  return token;
269791
270147
  }
269792
270148
  }
269793
- var ORCHESTRATOR_BASE = "orchestrator_";
269794
- var PIMS_BASE = "pims_";
269795
- var DATAFABRIC_BASE = "datafabric_";
269796
- var IDENTITY_BASE = "identity_";
269797
- var TASK_ENDPOINTS = {
269798
- CREATE_GENERIC_TASK: `${ORCHESTRATOR_BASE}/tasks/GenericTasks/CreateTask`,
269799
- GET_TASK_USERS: (folderId) => `${ORCHESTRATOR_BASE}/odata/Tasks/UiPath.Server.Configuration.OData.GetTaskUsers(organizationUnitId=${folderId})`,
269800
- GET_TASKS_ACROSS_FOLDERS: `${ORCHESTRATOR_BASE}/odata/Tasks/UiPath.Server.Configuration.OData.GetTasksAcrossFolders`,
269801
- GET_TASKS_ACROSS_FOLDERS_ADMIN: `${ORCHESTRATOR_BASE}/odata/Tasks/UiPath.Server.Configuration.OData.GetTasksAcrossFoldersForAdmin`,
269802
- GET_BY_ID: (id) => `${ORCHESTRATOR_BASE}/odata/Tasks(${id})`,
269803
- ASSIGN_TASKS: `${ORCHESTRATOR_BASE}/odata/Tasks/UiPath.Server.Configuration.OData.AssignTasks`,
269804
- REASSIGN_TASKS: `${ORCHESTRATOR_BASE}/odata/Tasks/UiPath.Server.Configuration.OData.ReassignTasks`,
269805
- UNASSIGN_TASKS: `${ORCHESTRATOR_BASE}/odata/Tasks/UiPath.Server.Configuration.OData.UnassignTasks`,
269806
- COMPLETE_FORM_TASK: `${ORCHESTRATOR_BASE}/forms/TaskForms/CompleteTask`,
269807
- COMPLETE_APP_TASK: `${ORCHESTRATOR_BASE}/tasks/AppTasks/CompleteAppTask`,
269808
- COMPLETE_GENERIC_TASK: `${ORCHESTRATOR_BASE}/tasks/GenericTasks/CompleteTask`,
269809
- GET_TASK_FORM_BY_ID: `${ORCHESTRATOR_BASE}/forms/TaskForms/GetTaskFormById`
269810
- };
269811
- var BUCKET_ENDPOINTS = {
269812
- GET_BY_FOLDER: `${ORCHESTRATOR_BASE}/odata/Buckets`,
269813
- GET_ALL: `${ORCHESTRATOR_BASE}/odata/Buckets/UiPath.Server.Configuration.OData.GetBucketsAcrossFolders`,
269814
- GET_BY_ID: (id) => `${ORCHESTRATOR_BASE}/odata/Buckets(${id})`,
269815
- GET_FILE_META_DATA: (id) => `${ORCHESTRATOR_BASE}/api/Buckets/${id}/ListFiles`,
269816
- GET_READ_URI: (id) => `${ORCHESTRATOR_BASE}/odata/Buckets(${id})/UiPath.Server.Configuration.OData.GetReadUri`,
269817
- GET_WRITE_URI: (id) => `${ORCHESTRATOR_BASE}/odata/Buckets(${id})/UiPath.Server.Configuration.OData.GetWriteUri`
269818
- };
269819
- var PROCESS_ENDPOINTS = {
269820
- GET_ALL: `${ORCHESTRATOR_BASE}/odata/Releases`,
269821
- START_PROCESS: `${ORCHESTRATOR_BASE}/odata/Jobs/UiPath.Server.Configuration.OData.StartJobs`,
269822
- GET_BY_ID: (id) => `${ORCHESTRATOR_BASE}/odata/Releases(${id})`
269823
- };
269824
- var QUEUE_ENDPOINTS = {
269825
- GET_BY_FOLDER: `${ORCHESTRATOR_BASE}/odata/QueueDefinitions`,
269826
- GET_ALL: `${ORCHESTRATOR_BASE}/odata/QueueDefinitions/UiPath.Server.Configuration.OData.GetQueuesAcrossFolders`,
269827
- GET_BY_ID: (id) => `${ORCHESTRATOR_BASE}/odata/QueueDefinitions(${id})`
269828
- };
269829
- var ASSET_ENDPOINTS = {
269830
- GET_BY_FOLDER: `${ORCHESTRATOR_BASE}/odata/Assets/UiPath.Server.Configuration.OData.GetFiltered`,
269831
- GET_ALL: `${ORCHESTRATOR_BASE}/odata/Assets/UiPath.Server.Configuration.OData.GetAssetsAcrossFolders`,
269832
- GET_BY_ID: (id) => `${ORCHESTRATOR_BASE}/odata/Assets(${id})`
269833
- };
269834
- var MAESTRO_ENDPOINTS = {
269835
- PROCESSES: {
269836
- GET_ALL: `${PIMS_BASE}/api/v1/processes/summary`,
269837
- GET_SETTINGS: (processKey) => `${PIMS_BASE}/api/v1/processes/${processKey}/settings`
269838
- },
269839
- INSTANCES: {
269840
- GET_ALL: `${PIMS_BASE}/api/v1/instances`,
269841
- GET_BY_ID: (instanceId) => `${PIMS_BASE}/api/v1/instances/${instanceId}`,
269842
- GET_EXECUTION_HISTORY: (instanceId) => `${PIMS_BASE}/api/v1/spans/${instanceId}`,
269843
- GET_BPMN: (instanceId) => `${PIMS_BASE}/api/v1/instances/${instanceId}/bpmn`,
269844
- GET_VARIABLES: (instanceId) => `${PIMS_BASE}/api/v1/instances/${instanceId}/variables`,
269845
- CANCEL: (instanceId) => `${PIMS_BASE}/api/v1/instances/${instanceId}/cancel`,
269846
- PAUSE: (instanceId) => `${PIMS_BASE}/api/v1/instances/${instanceId}/pause`,
269847
- RESUME: (instanceId) => `${PIMS_BASE}/api/v1/instances/${instanceId}/resume`
269848
- },
269849
- INCIDENTS: {
269850
- GET_ALL: `${PIMS_BASE}/api/v1/incidents/summary`,
269851
- GET_BY_PROCESS: (processKey) => `${PIMS_BASE}/api/v1/incidents/process/${processKey}`,
269852
- GET_BY_INSTANCE: (instanceId) => `${PIMS_BASE}/api/v1/instances/${instanceId}/incidents`
269853
- },
269854
- CASES: {
269855
- GET_CASE_JSON: (instanceId) => `${PIMS_BASE}/api/v1/cases/${instanceId}/case-json`,
269856
- GET_ELEMENT_EXECUTIONS: (instanceId) => `${PIMS_BASE}/api/v1/element-executions/case-instances/${instanceId}`,
269857
- REOPEN: (instanceId) => `${PIMS_BASE}/api/v1/cases/${instanceId}/reopen`
269858
- }
269859
- };
269860
- var DATA_FABRIC_ENDPOINTS = {
269861
- ENTITY: {
269862
- GET_ALL: `${DATAFABRIC_BASE}/api/Entity`,
269863
- GET_ENTITY_RECORDS: (entityId) => `${DATAFABRIC_BASE}/api/EntityService/entity/${entityId}/read`,
269864
- GET_BY_ID: (entityId) => `${DATAFABRIC_BASE}/api/Entity/${entityId}`,
269865
- GET_RECORD_BY_ID: (entityId, recordId) => `${DATAFABRIC_BASE}/api/EntityService/entity/${entityId}/read/${recordId}`,
269866
- INSERT_BY_ID: (entityId) => `${DATAFABRIC_BASE}/api/EntityService/entity/${entityId}/insert`,
269867
- BATCH_INSERT_BY_ID: (entityId) => `${DATAFABRIC_BASE}/api/EntityService/entity/${entityId}/insert-batch`,
269868
- UPDATE_RECORD_BY_ID: (entityId, recordId) => `${DATAFABRIC_BASE}/api/EntityService/entity/${entityId}/update/${recordId}`,
269869
- UPDATE_BY_ID: (entityId) => `${DATAFABRIC_BASE}/api/EntityService/entity/${entityId}/update-batch`,
269870
- DELETE_BY_ID: (entityId) => `${DATAFABRIC_BASE}/api/EntityService/entity/${entityId}/delete-batch`,
269871
- DOWNLOAD_ATTACHMENT: (entityId, recordId, fieldName) => `${DATAFABRIC_BASE}/api/Attachment/entity/${entityId}/${recordId}/${fieldName}`,
269872
- UPLOAD_ATTACHMENT: (entityId, recordId, fieldName) => `${DATAFABRIC_BASE}/api/Attachment/entity/${entityId}/${recordId}/${fieldName}`,
269873
- DELETE_ATTACHMENT: (entityId, recordId, fieldName) => `${DATAFABRIC_BASE}/api/Attachment/entity/${entityId}/${recordId}/${fieldName}`
269874
- },
269875
- CHOICESETS: {
269876
- GET_ALL: `${DATAFABRIC_BASE}/api/Entity/choiceset`,
269877
- GET_BY_ID: (choiceSetId) => `${DATAFABRIC_BASE}/api/EntityService/entity/${choiceSetId}/query_expansion`
269878
- }
269879
- };
269880
- var IDENTITY_ENDPOINTS = {
269881
- TOKEN: `${IDENTITY_BASE}/connect/token`,
269882
- AUTHORIZE: `${IDENTITY_BASE}/connect/authorize`
269883
- };
269884
270149
 
269885
270150
  class AuthService {
269886
270151
  constructor(config3, executionContext) {
@@ -270176,7 +270441,7 @@ function normalizeBaseUrl(url2) {
270176
270441
  return url2.endsWith("/") ? url2.slice(0, -1) : url2;
270177
270442
  }
270178
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";
270179
- var SDK_VERSION = "1.2.1";
270444
+ var SDK_VERSION = "1.2.2";
270180
270445
  var VERSION = "Version";
270181
270446
  var SERVICE = "Service";
270182
270447
  var CLOUD_ORGANIZATION_NAME = "CloudOrganizationName";
@@ -272423,60 +272688,19 @@ var CASE_STAGE_CONSTANTS = {
272423
272688
  };
272424
272689
  var CASE_INSTANCE_TASK_FILTER = (caseInstanceId) => `Tags/any(tags:tags/DisplayName eq '${caseInstanceId}') and (IsDeleted eq false)`;
272425
272690
  var CASE_INSTANCE_TASK_EXPAND = "AssignedToUser,Activities";
272426
- var TaskType;
272427
- (function(TaskType2) {
272428
- TaskType2["Form"] = "FormTask";
272429
- TaskType2["External"] = "ExternalTask";
272430
- TaskType2["App"] = "AppTask";
272431
- })(TaskType || (TaskType = {}));
272432
- var TaskPriority;
272433
- (function(TaskPriority2) {
272434
- TaskPriority2["Low"] = "Low";
272435
- TaskPriority2["Medium"] = "Medium";
272436
- TaskPriority2["High"] = "High";
272437
- TaskPriority2["Critical"] = "Critical";
272438
- })(TaskPriority || (TaskPriority = {}));
272439
- var TaskStatus;
272440
- (function(TaskStatus2) {
272441
- TaskStatus2["Unassigned"] = "Unassigned";
272442
- TaskStatus2["Pending"] = "Pending";
272443
- TaskStatus2["Completed"] = "Completed";
272444
- })(TaskStatus || (TaskStatus = {}));
272445
- var TaskSlaCriteria;
272446
- (function(TaskSlaCriteria2) {
272447
- TaskSlaCriteria2["TaskCreated"] = "TaskCreated";
272448
- TaskSlaCriteria2["TaskAssigned"] = "TaskAssigned";
272449
- TaskSlaCriteria2["TaskCompleted"] = "TaskCompleted";
272450
- })(TaskSlaCriteria || (TaskSlaCriteria = {}));
272451
- var TaskSlaStatus;
272452
- (function(TaskSlaStatus2) {
272453
- TaskSlaStatus2["OverdueLater"] = "OverdueLater";
272454
- TaskSlaStatus2["OverdueSoon"] = "OverdueSoon";
272455
- TaskSlaStatus2["Overdue"] = "Overdue";
272456
- TaskSlaStatus2["CompletedInTime"] = "CompletedInTime";
272457
- })(TaskSlaStatus || (TaskSlaStatus = {}));
272458
- var TaskSourceName;
272459
- (function(TaskSourceName2) {
272460
- TaskSourceName2["Agent"] = "Agent";
272461
- TaskSourceName2["Workflow"] = "Workflow";
272462
- TaskSourceName2["Maestro"] = "Maestro";
272463
- TaskSourceName2["Default"] = "Default";
272464
- })(TaskSourceName || (TaskSourceName = {}));
272465
- var TaskActivityType;
272466
- (function(TaskActivityType2) {
272467
- TaskActivityType2["Created"] = "Created";
272468
- TaskActivityType2["Assigned"] = "Assigned";
272469
- TaskActivityType2["Reassigned"] = "Reassigned";
272470
- TaskActivityType2["Unassigned"] = "Unassigned";
272471
- TaskActivityType2["Saved"] = "Saved";
272472
- TaskActivityType2["Forwarded"] = "Forwarded";
272473
- TaskActivityType2["Completed"] = "Completed";
272474
- TaskActivityType2["Commented"] = "Commented";
272475
- TaskActivityType2["Deleted"] = "Deleted";
272476
- TaskActivityType2["BulkSaved"] = "BulkSaved";
272477
- TaskActivityType2["BulkCompleted"] = "BulkCompleted";
272478
- TaskActivityType2["FirstOpened"] = "FirstOpened";
272479
- })(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";
272480
272704
  function createTaskMethods(taskData, service) {
272481
272705
  return {
272482
272706
  async assign(options) {
@@ -272515,19 +272739,6 @@ function createTaskWithMethods(taskData, service) {
272515
272739
  const methods = createTaskMethods(taskData, service);
272516
272740
  return Object.assign({}, taskData, methods);
272517
272741
  }
272518
- var TaskStatusMap = {
272519
- 0: TaskStatus.Unassigned,
272520
- 1: TaskStatus.Pending,
272521
- 2: TaskStatus.Completed
272522
- };
272523
- var TaskMap = {
272524
- completionTime: "completedTime",
272525
- deletionTime: "deletedTime",
272526
- lastModificationTime: "lastModifiedTime",
272527
- creationTime: "createdTime",
272528
- organizationUnitId: "folderId"
272529
- };
272530
- var DEFAULT_TASK_EXPAND = "AssignedToUser,CreatorUser,LastModifierUser";
272531
272742
 
272532
272743
  class TaskService extends BaseService {
272533
272744
  constructor() {
@@ -272600,8 +272811,15 @@ class TaskService extends BaseService {
272600
272811
  }, options);
272601
272812
  }
272602
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
+ }
272603
272821
  const headers = createHeaders({ [FOLDER_ID]: folderId });
272604
- const modifiedOptions = this.addDefaultExpand(options);
272822
+ const modifiedOptions = this.addDefaultExpand(restOptions);
272605
272823
  const keysToPrefix = Object.keys(modifiedOptions);
272606
272824
  const apiOptions = addPrefixToKeys(modifiedOptions, ODATA_PREFIX, keysToPrefix);
272607
272825
  const response = await this.get(TASK_ENDPOINTS.GET_BY_ID(id), {
@@ -272609,9 +272827,9 @@ class TaskService extends BaseService {
272609
272827
  headers
272610
272828
  });
272611
272829
  const transformedTask = transformData(pascalToCamelCaseKeys(response.data), TaskMap);
272612
- if (transformedTask.type === TaskType.Form) {
272613
- const formOptions = { expandOnFormLayout: true };
272614
- return this.getFormTaskById(id, folderId || transformedTask.folderId, formOptions);
272830
+ const resolvedFolderId = folderId || transformedTask.folderId;
272831
+ if (transformedTask.type in TASK_TYPE_ENDPOINTS) {
272832
+ return this.getByTaskType(id, resolvedFolderId, transformedTask.type, restOptions);
272615
272833
  }
272616
272834
  return createTaskWithMethods(applyDataTransforms(transformedTask, { field: "status", valueMap: TaskStatusMap }), this);
272617
272835
  }
@@ -272664,17 +272882,22 @@ class TaskService extends BaseService {
272664
272882
  data: options
272665
272883
  };
272666
272884
  }
272667
- async getFormTaskById(id, folderId, options = {}) {
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 = {}) {
272668
272891
  const headers = createHeaders({ [FOLDER_ID]: folderId });
272669
- const response = await this.get(TASK_ENDPOINTS.GET_TASK_FORM_BY_ID, {
272892
+ const response = await this.get(endpoint, {
272670
272893
  params: {
272671
272894
  taskId: id,
272672
- ...options
272895
+ ...extraParams
272673
272896
  },
272674
272897
  headers
272675
272898
  });
272676
- const transformedFormTask = transformData(response.data, TaskMap);
272677
- return createTaskWithMethods(applyDataTransforms(transformedFormTask, { field: "status", valueMap: TaskStatusMap }), this);
272899
+ const transformedTask = transformData(response.data, TaskMap);
272900
+ return createTaskWithMethods(applyDataTransforms(transformedTask, { field: "status", valueMap: TaskStatusMap }), this);
272678
272901
  }
272679
272902
  addDefaultExpand(options) {
272680
272903
  const processedOptions = { ...options };
@@ -273215,6 +273438,59 @@ var BucketOptions;
273215
273438
  BucketOptions2["AuditReadAccess"] = "AuditReadAccess";
273216
273439
  BucketOptions2["AccessDataThroughOrchestrator"] = "AccessDataThroughOrchestrator";
273217
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 = {}));
273218
273494
  var ProcessMap = {
273219
273495
  lastModificationTime: "lastModifiedTime",
273220
273496
  creationTime: "createdTime",
@@ -273296,6 +273572,9 @@ var PackageType;
273296
273572
  PackageType2["Api"] = "Api";
273297
273573
  PackageType2["MCPServer"] = "MCPServer";
273298
273574
  PackageType2["BusinessRules"] = "BusinessRules";
273575
+ PackageType2["CaseManagement"] = "CaseManagement";
273576
+ PackageType2["Flow"] = "Flow";
273577
+ PackageType2["Function"] = "Function";
273299
273578
  })(PackageType || (PackageType = {}));
273300
273579
  var JobPriority;
273301
273580
  (function(JobPriority2) {
@@ -273356,11 +273635,68 @@ var PackageSourceType;
273356
273635
  PackageSourceType2["AgentHub"] = "AgentHub";
273357
273636
  PackageSourceType2["ApiWorkflow"] = "ApiWorkflow";
273358
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 = {}));
273359
273665
  var StopStrategy;
273360
273666
  (function(StopStrategy2) {
273361
273667
  StopStrategy2["SoftStop"] = "SoftStop";
273362
273668
  StopStrategy2["Kill"] = "Kill";
273363
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 = {}));
273364
273700
  var JobType;
273365
273701
  (function(JobType2) {
273366
273702
  JobType2["Unattended"] = "Unattended";
@@ -273410,6 +273746,29 @@ __decorate([
273410
273746
  __decorate([
273411
273747
  track("Queues.GetById")
273412
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);
273413
273772
 
273414
273773
  class UiPath2 extends UiPath$1 {
273415
273774
  constructor() {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@uipath/vertical-solutions-tool",
3
- "version": "0.1.10",
3
+ "version": "0.1.11",
4
4
  "description": "Scaffold and generate Vertical Solution projects.",
5
5
  "private": false,
6
6
  "repository": {
@@ -34,7 +34,7 @@
34
34
  "dist"
35
35
  ],
36
36
  "scripts": {
37
- "build": "bun build ./src/tool.ts --outdir dist --format esm --target node --external commander --external @uipath/common --external @uipath/auth --external @uipath/filesystem --external @uipath/solutionpackager-tool-core && bun build ./src/index.ts --outdir dist --format esm --target node --external '*/tool.js' --external commander --external @uipath/common --external @uipath/auth --external @uipath/filesystem --external @uipath/solutionpackager-tool-core",
37
+ "build": "bun ../../tools/build-tool.ts",
38
38
  "package": "bun run build && bun pm pack",
39
39
  "lint": "biome check .",
40
40
  "lint:fix": "biome check --write .",
@@ -42,15 +42,15 @@
42
42
  },
43
43
  "peerDependencies": {
44
44
  "commander": "^14.0.3",
45
- "@uipath/common": "^0.1.7",
46
- "@uipath/auth": "^0.1.6",
45
+ "@uipath/common": "^0.1.13",
46
+ "@uipath/auth": "^0.1.9",
47
47
  "@uipath/filesystem": "^0.1.6",
48
- "@uipath/solutionpackager-tool-core": "^0.0.29"
48
+ "@uipath/solutionpackager-tool-core": "0.0.31"
49
49
  },
50
50
  "devDependencies": {
51
51
  "@inquirer/prompts": "^8.3.2",
52
52
  "@uipath/uipath-typescript": "^1.2.1",
53
- "@types/node": "^25.2.3",
53
+ "@types/node": "^25.5.0",
54
54
  "ora": "^9.3.0",
55
55
  "ts-morph": "^27.0.2",
56
56
  "typescript": "^5",