@uipath/case-tool 1.204.0-preview.254 → 1.205.0-preview.256

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 (135) hide show
  1. package/dist/THIRD-PARTY-NOTICES.md +24 -11
  2. package/dist/{authoring-6ckkzfc9.js → authoring-kqh34zzm.js} +49 -30
  3. package/dist/{business-rule-export-kg5bk8aw.js → business-rule-export-ey588rv7.js} +2 -2
  4. package/dist/canvas-notes-86fxx1t8.js +19 -0
  5. package/dist/{case-api-rvamfn02.js → case-api-sme7esce.js} +6 -6
  6. package/dist/case-bindings-service-cht20gqt.js +430 -0
  7. package/dist/case-debug-solution-projects-d32xxjdg.js +34 -0
  8. package/dist/{case-debug-studio-web-service-hhv6kv6j.js → case-debug-studio-web-service-0k0bnkzq.js} +16 -10
  9. package/dist/{case-described-io-service-14hdnqcc.js → case-described-io-service-dx1f4nxe.js} +37 -11
  10. package/dist/case-event-trigger-bindings-g9ftnm4x.js +16 -0
  11. package/dist/{case-format-service-yb48785t.js → case-format-service-6aew6tqc.js} +2 -2
  12. package/dist/{case-pack-service-9185h6ez.js → case-pack-service-pqq8wnfd.js} +6 -6
  13. package/dist/case-schema-version-h820ne16.js +20 -0
  14. package/dist/{case-shape-reader-mw58avr0.js → case-shape-reader-dsbraetf.js} +1 -1
  15. package/dist/{case-splice-service-tkmb7xjp.js → case-splice-service-s5gccctq.js} +53 -8
  16. package/dist/{case-validate-service-r4c3ed1s.js → case-validate-service-mfkn1j7e.js} +128 -42
  17. package/dist/{connector-enrichment-service-ttv7a6b1.js → connector-enrichment-service-cvzr0ybk.js} +23 -20
  18. package/dist/{connector-lookup-service-kk70kj3q.js → connector-lookup-service-wetea6j2.js} +6 -6
  19. package/dist/connector-task-shape-mpazkf7s.js +14 -0
  20. package/dist/{connector-task-spec-dttjp9fj.js → connector-task-spec-h3kdb6ep.js} +196 -40
  21. package/dist/{de-MUJPA4EB-dpg7t2rw.js → de-UZI7FJDO-mwvc4cxe.js} +29 -2
  22. package/dist/{de-FGHEJRCI-rv513mfh.js → de-WLW6KWOJ-2qnsqdtw.js} +238 -31
  23. package/dist/{debug-service-ch3v6jmm.js → debug-service-7q98j726.js} +3 -3
  24. package/dist/{embedded-file-reader-v8c2yj2a.js → embedded-file-reader-r66242ey.js} +2 -2
  25. package/dist/{en-FBPVNKFN-dqt573xn.js → en-EJCBA3LK-dtpdghgj.js} +12 -4
  26. package/dist/{en-BWGKA5OE-1qkvb9rn.js → en-M7GQYBV2-5nfmpnfz.js} +88 -6
  27. package/dist/{enrichment-service-3f1kygjs.js → enrichment-service-hv7ff88p.js} +56 -12
  28. package/dist/{es-7SE7HX2X-8yh1aj2y.js → es-4UBUTCQA-m1ytpyx2.js} +29 -2
  29. package/dist/{es-KR3ZSNMP-84zphx0x.js → es-5THCNRFN-tqwyrdgy.js} +235 -28
  30. package/dist/{es-MX-2MYFZU7X-3rek4r73.js → es-MX-5RELIXKI-9jhqtddc.js} +29 -2
  31. package/dist/{es-MX-XXZJGC4R-2mr8jtgm.js → es-MX-TWZBRAXK-gqd9swzw.js} +237 -30
  32. package/dist/filter-engine-7ep90g7f.js +11 -0
  33. package/dist/{fr-Y6NPVODW-8vr1ja4b.js → fr-CERONSRC-edpxhbmb.js} +237 -30
  34. package/dist/{fr-MDFKNZ4C-h4a122k9.js → fr-VBM5WRC2-63z7w4mh.js} +29 -2
  35. package/dist/{index-wmffgzmr.js → index-5dxh9z60.js} +21751 -11098
  36. package/dist/{index-4yanx3rn.js → index-ekwtgx7y.js} +1089 -218
  37. package/dist/{index-ng2f77my.js → index-fyc0k5dd.js} +985 -617
  38. package/dist/index-n9qvnx4x.js +29 -0
  39. package/dist/{index-hhsf00x8.js → index-ngs0a2he.js} +1 -1
  40. package/dist/index-tsdgf1p1.js +282 -0
  41. package/dist/{index-j2r3jb6c.js → index-xq6ajhgq.js} +2 -2
  42. package/dist/{index-thea5pdz.js → index-z541a39e.js} +4 -4
  43. package/dist/index.js +12 -12
  44. package/dist/init-entry-points-hhpv3e3f.js +98 -0
  45. package/dist/{input-reader-1tcqt27f.js → input-reader-c7wz8ra2.js} +3 -3
  46. package/dist/{ja-UTQEAP34-8e0q6swp.js → ja-43QL7CGO-c3q8gre9.js} +29 -2
  47. package/dist/{ja-Q5PXKJ2V-p4msxzjd.js → ja-U2MCNHGT-gz0ap1jk.js} +235 -28
  48. package/dist/{known-types-0h9kqwyy.js → known-types-jvkdgmzz.js} +5 -4
  49. package/dist/{ko-AXCHW2OK-askct7f6.js → ko-TLL6Z6CD-wrt3n8a9.js} +29 -2
  50. package/dist/{ko-AYBDSRZG-41mdmsg1.js → ko-XAUYQWDR-zp81gjp4.js} +237 -30
  51. package/dist/localSolutionDiscovery-yyx234ak.js +13 -0
  52. package/dist/migration-diagnosis-ns5cw4e3.js +99 -0
  53. package/dist/{node-strategy-5pz40tee.js → node-strategy-v442hwgd.js} +1 -1
  54. package/dist/node-sync-service-e3k47ktk.js +57 -0
  55. package/dist/out-target-wjgmna0r.js +111 -0
  56. package/dist/{packager-tool-3ew2xe0q.js → packager-tool-0edza4sc.js} +17 -7
  57. package/dist/{packager-tool-8a9yqfq7.js → packager-tool-1yfw674x.js} +4 -2
  58. package/dist/packager-tool-2sn7d8fd.js +41 -0
  59. package/dist/packager-tool-4p11fvf4.js +92 -0
  60. package/dist/{packager-tool-25hng8h4.js → packager-tool-4rtktkhv.js} +16211 -13084
  61. package/dist/{packager-tool-yfm83bzd.js → packager-tool-67vy1fz3.js} +4 -3
  62. package/dist/{packager-tool-d88rqwk8.js → packager-tool-6z1hsm2h.js} +13 -5
  63. package/dist/packager-tool-7hw344bt.js +107 -0
  64. package/dist/{packager-tool-3q3d1hk8.js → packager-tool-83v804p7.js} +56 -6
  65. package/dist/{packager-tool-00y70spr.js → packager-tool-87y6xw3a.js} +2 -1
  66. package/dist/packager-tool-93mdeqay.js +18 -0
  67. package/dist/{packager-tool-64rg5ekd.js → packager-tool-9e59z4d6.js} +75 -7
  68. package/dist/{packager-tool-vepqrsse.js → packager-tool-9kf3fqtr.js} +2 -2
  69. package/dist/packager-tool-9kvkzc05.js +74 -0
  70. package/dist/{packager-tool-s6619wtx.js → packager-tool-9sd483vs.js} +2 -2
  71. package/dist/{packager-tool-f78ntj5g.js → packager-tool-9y1w2wds.js} +51 -6
  72. package/dist/packager-tool-a17g0pj1.js +62 -0
  73. package/dist/{packager-tool-167qap9m.js → packager-tool-aagnvyba.js} +845 -38
  74. package/dist/{packager-tool-wj9d9mqe.js → packager-tool-e15kqpyh.js} +12 -13
  75. package/dist/{packager-tool-64fkg6sz.js → packager-tool-ex95af0w.js} +296 -417
  76. package/dist/{packager-tool-c31qx8kc.js → packager-tool-ezds6t5e.js} +2 -2
  77. package/dist/{packager-tool-hvzjm2nk.js → packager-tool-f8vwy92w.js} +2093 -5805
  78. package/dist/{packager-tool-xdxr3ync.js → packager-tool-hdxtgckw.js} +11 -1
  79. package/dist/packager-tool-k6jbedyc.js +69 -0
  80. package/dist/packager-tool-kdhey8gz.js +153 -0
  81. package/dist/{packager-tool-cenvh23g.js → packager-tool-kyrm4e5m.js} +718 -87
  82. package/dist/packager-tool-mqy97y5f.js +52 -0
  83. package/dist/{packager-tool-jfysbxdt.js → packager-tool-mzf4gmph.js} +4 -4
  84. package/dist/packager-tool-n7w9wx62.js +25 -0
  85. package/dist/{packager-tool-7q6z6npd.js → packager-tool-pcvhcn2k.js} +93 -11
  86. package/dist/{packager-tool-pgvn7t12.js → packager-tool-pf035ttp.js} +5 -5
  87. package/dist/{packager-tool-rgpdaxbx.js → packager-tool-qf1c9mv3.js} +5385 -1098
  88. package/dist/packager-tool-r0x3qh59.js +307 -0
  89. package/dist/{packager-tool-zbrda9sn.js → packager-tool-rk25wp3c.js} +1 -1
  90. package/dist/{packager-tool-r1jzqzdm.js → packager-tool-sejszbnb.js} +730 -14
  91. package/dist/{packager-tool-xcd87qyx.js → packager-tool-v2kcgjbf.js} +2 -3
  92. package/dist/{packager-tool-c7pyxera.js → packager-tool-w1q4amdr.js} +3 -3
  93. package/dist/{case-bindings-service-d9vezn69.js → packager-tool-wekqkmgn.js} +20 -231
  94. package/dist/packager-tool-yct6zp4m.js +335 -0
  95. package/dist/{packager-tool-kpqr938m.js → packager-tool-ydyvtknp.js} +26 -3
  96. package/dist/{packager-tool-fpjjbhbe.js → packager-tool-yj1ahqdp.js} +308 -120
  97. package/dist/{packager-tool-v99ygh9f.js → packager-tool-yn33pw57.js} +124 -58
  98. package/dist/{packager-tool-4rqd21wc.js → packager-tool-yn7r7zq2.js} +19 -5
  99. package/dist/{packager-tool-cmwets3m.js → packager-tool-zf8f9pmm.js} +1 -1
  100. package/dist/packager-tool.js +3 -3
  101. package/dist/{project-artifacts-rng5m6r2.js → project-artifacts-bgyyb0dm.js} +1 -1
  102. package/dist/{pt-BR-TKHNHMET-sn91xyq0.js → pt-BR-GNQNAAZ2-xadharv4.js} +237 -30
  103. package/dist/{pt-BR-Y6K6XHXK-mp3hwhw1.js → pt-BR-USP2T7GD-pedn77m1.js} +29 -2
  104. package/dist/{pt-3DIO5QWG-59b3f4bc.js → pt-RMIAKZB4-67enhx3m.js} +29 -2
  105. package/dist/{pt-ROXU257Y-2f6bxev4.js → pt-TO2DARY2-ftcce1bv.js} +237 -30
  106. package/dist/{resolved-check-p99hysaw.js → resolved-check-aqw7568y.js} +1 -1
  107. package/dist/{resourcesSyncService-027qna8s.js → resourcesSyncService-5vkvapbn.js} +32 -170
  108. package/dist/{ro-BWR3ONRR-vzx3hy8a.js → ro-GHOBYW2S-mhnqsgaa.js} +29 -2
  109. package/dist/{ro-AVAWPKOO-b89pw79r.js → ro-WUYJV6OW-a8d9qy1n.js} +235 -28
  110. package/dist/{sdd-convert-service-vf0ps358.js → sdd-convert-service-8jpew7vz.js} +686 -445
  111. package/dist/{sdd-lookup-dwzpvvwn.js → sdd-lookup-fe900sdb.js} +2 -2
  112. package/dist/{sdd-resolve-service-mjqad2nn.js → sdd-resolve-service-qdtmxw9b.js} +38 -13
  113. package/dist/sdd-resolve-siblings-vvfmpavf.js +53 -0
  114. package/dist/{solution-auth-kddmbm0p.js → solution-auth-30yycqtv.js} +3 -3
  115. package/dist/solution-discovery-g6ksnrg1.js +38 -0
  116. package/dist/{strict-case-rules-tz37bspw.js → strict-case-rules-4tjcaznr.js} +3 -2
  117. package/dist/{strict-entry-points-v14d7y50.js → strict-entry-points-g2pd4mf4.js} +29 -1
  118. package/dist/{strict-sdd-audit-4aqdeh59.js → strict-sdd-audit-q7tb9yj7.js} +7 -5
  119. package/dist/task-type-declaration-7a8fqdvs.js +46 -0
  120. package/dist/tool.js +12 -12
  121. package/dist/{tr-5IIHSFW5-hw4cewew.js → tr-GDTLECMM-k5fhmq13.js} +29 -2
  122. package/dist/{tr-JMIP7ZSL-c39b6pe4.js → tr-M3F5A6AU-bb0tg39m.js} +235 -28
  123. package/dist/{trigger-enrichment-service-n28817j3.js → trigger-enrichment-service-stkn2thh.js} +23 -20
  124. package/dist/trigger-entry-point-id-yhqwnkx9.js +15 -0
  125. package/dist/{zh-CN-IFFXSEJS-9wm9gmrv.js → zh-CN-C5G4PC7C-ds9gkptg.js} +235 -28
  126. package/dist/{zh-CN-R2KU4U5L-tc1hat59.js → zh-CN-I5D7WHBD-sr5h0a98.js} +29 -2
  127. package/dist/{zh-TW-GNKMELBF-j674515r.js → zh-TW-2AVLM723-288pkc1z.js} +29 -2
  128. package/dist/{zh-TW-IYBNYAMG-8727c7v2.js → zh-TW-62HZIG6O-787kdwex.js} +234 -27
  129. package/package.json +2 -2
  130. package/dist/migration-diagnosis-ag2sgd1e.js +0 -71
  131. package/dist/node-sync-service-gbqeh5c4.js +0 -36
  132. package/dist/out-target-jakehnd3.js +0 -70
  133. package/dist/packager-tool-57pzrd0g.js +0 -32
  134. package/dist/packager-tool-dthjwajc.js +0 -13
  135. package/dist/packager-tool-xy04yy0v.js +0 -32
@@ -182,6 +182,16 @@ class NodeFileSystem {
182
182
  async rename(oldPath, newPath) {
183
183
  await fs.rename(oldPath, newPath);
184
184
  }
185
+ async isSymbolicLink(filePath) {
186
+ try {
187
+ return (await fs.lstat(filePath)).isSymbolicLink();
188
+ } catch (error) {
189
+ if (this.isEnoent(error) || this.hasErrnoCode(error, "ENOTDIR")) {
190
+ return false;
191
+ }
192
+ throw error;
193
+ }
194
+ }
185
195
  async realpath(filePath) {
186
196
  try {
187
197
  return await fs.realpath(filePath);
@@ -236,4 +246,4 @@ var getFileSystemAsync = async () => fsInstance;
236
246
 
237
247
  export { NodeFileSystem, setFileSystem, getFileSystem, getFileSystemAsync };
238
248
 
239
- //# debugId=3E49815A855BD0ED64756E2164756E21
249
+ //# debugId=1DD0126610F78D8964756E2164756E21
@@ -0,0 +1,69 @@
1
+ // src/services/gate-key.ts
2
+ var gateKey = (expression) => {
3
+ const text = expression.trim();
4
+ let out = "";
5
+ let quote;
6
+ let pendingSpace = false;
7
+ const word = (ch) => ch !== undefined && /[\w$]/.test(ch);
8
+ for (let at = 0;at < text.length; at++) {
9
+ const ch = text[at];
10
+ if (quote !== undefined) {
11
+ out += ch;
12
+ if (ch === "\\" && at + 1 < text.length) {
13
+ out += text[at + 1];
14
+ at++;
15
+ } else if (ch === quote) {
16
+ quote = undefined;
17
+ }
18
+ continue;
19
+ }
20
+ if (ch === "/")
21
+ return text;
22
+ if (/\s/.test(ch)) {
23
+ pendingSpace = true;
24
+ continue;
25
+ }
26
+ if (pendingSpace && word(out.at(-1)) && word(ch))
27
+ out += " ";
28
+ pendingSpace = false;
29
+ if (ch === '"' || ch === "'" || ch === "`")
30
+ quote = ch;
31
+ out += ch;
32
+ }
33
+ return out;
34
+ };
35
+
36
+ // src/services/variable-types.ts
37
+ var VARIABLE_TYPES = new Set([
38
+ "string",
39
+ "integer",
40
+ "float",
41
+ "double",
42
+ "boolean",
43
+ "datetime",
44
+ "date",
45
+ "time",
46
+ "object",
47
+ "file",
48
+ "array",
49
+ "jsonSchema"
50
+ ]);
51
+ var ALIASES = new Map([
52
+ ["number", "double"],
53
+ ["int", "integer"],
54
+ ["bool", "boolean"],
55
+ ["json", "object"],
56
+ ["dictionary", "object"]
57
+ ]);
58
+ var BY_FOLDED = new Map([...VARIABLE_TYPES].map((type) => [type.toLowerCase(), type]));
59
+ var canonicalVariableType = (declared) => {
60
+ if (VARIABLE_TYPES.has(declared))
61
+ return { type: declared, alias: false };
62
+ const folded = declared.toLowerCase();
63
+ const type = BY_FOLDED.get(folded) ?? ALIASES.get(folded);
64
+ return type === undefined ? undefined : { type, alias: true };
65
+ };
66
+
67
+ export { gateKey, canonicalVariableType };
68
+
69
+ //# debugId=C2C5641D599E11AF64756E2164756E21
@@ -0,0 +1,153 @@
1
+ import {
2
+ catchError
3
+ } from "./packager-tool-83v804p7.js";
4
+ import {
5
+ getFileSystem
6
+ } from "./packager-tool-hdxtgckw.js";
7
+
8
+ // src/services/localSolutionDiscovery.ts
9
+ var LOCAL_RESOURCE_TYPES = new Set([
10
+ "agent",
11
+ "process",
12
+ "api",
13
+ "processOrchestration",
14
+ "caseManagement",
15
+ "function",
16
+ "businessRule"
17
+ ]);
18
+ var PROJECT_TYPE_TO_RESOURCE = {
19
+ Agent: "agent",
20
+ Process: "process",
21
+ Api: "api",
22
+ ProcessOrchestration: "processOrchestration",
23
+ CaseManagement: "caseManagement",
24
+ Function: "function",
25
+ BusinessRules: "businessRule"
26
+ };
27
+ var PROJECT_TYPE_TO_RESOURCE_LC = Object.fromEntries(Object.entries(PROJECT_TYPE_TO_RESOURCE).map(([k, v]) => [
28
+ k.toLowerCase(),
29
+ v
30
+ ]));
31
+ var PROCESS_SUBDIR = ["resources", "solution_folder", "process"];
32
+ function isUnder(parent, child) {
33
+ if (child === parent)
34
+ return true;
35
+ const fs = getFileSystem();
36
+ const rel = fs.path.relative(parent, child);
37
+ return rel !== "" && !rel.startsWith("..") && !fs.path.isAbsolute(rel);
38
+ }
39
+ async function parseEnrichmentFile(filePath) {
40
+ const fs = getFileSystem();
41
+ const [readErr, content] = await catchError(fs.readFile(filePath, "utf-8"));
42
+ if (readErr || !content)
43
+ return null;
44
+ const [parseErr, parsed] = catchError(() => JSON.parse(content));
45
+ if (parseErr || !parsed.resource?.projectKey)
46
+ return null;
47
+ const r = parsed.resource;
48
+ return [
49
+ r.projectKey,
50
+ {
51
+ key: r.key,
52
+ name: r.name,
53
+ folders: r.folders && r.folders.length > 0 ? r.folders.map((f) => ({
54
+ fullyQualifiedName: f.fullyQualifiedName ?? "solution_folder"
55
+ })) : undefined,
56
+ packageName: r.spec?.packageName
57
+ }
58
+ ];
59
+ }
60
+ async function loadResourceEnrichmentMap(solutionDir) {
61
+ const fs = getFileSystem();
62
+ const map = new Map;
63
+ const processDir = fs.path.join(solutionDir, ...PROCESS_SUBDIR);
64
+ const [dirErr, typeDirs] = await catchError(fs.readdir(processDir));
65
+ if (dirErr || !Array.isArray(typeDirs))
66
+ return map;
67
+ for (const typeDir of typeDirs) {
68
+ const typePath = fs.path.join(processDir, typeDir);
69
+ const [filesErr, files] = await catchError(fs.readdir(typePath));
70
+ if (filesErr || !Array.isArray(files))
71
+ continue;
72
+ for (const file of files) {
73
+ if (!file.endsWith(".json"))
74
+ continue;
75
+ const entry = await parseEnrichmentFile(fs.path.join(typePath, file));
76
+ if (entry)
77
+ map.set(entry[0], entry[1]);
78
+ }
79
+ }
80
+ return map;
81
+ }
82
+ async function readProjectName(projectDir) {
83
+ const fs = getFileSystem();
84
+ const [err, content] = await catchError(fs.readFile(fs.path.join(projectDir, "project.uiproj"), "utf-8"));
85
+ if (!err && content) {
86
+ const [parseErr, parsed] = catchError(() => JSON.parse(content));
87
+ if (!parseErr && parsed.Name)
88
+ return parsed.Name;
89
+ }
90
+ return fs.path.basename(projectDir);
91
+ }
92
+ async function readEntryPointIO(projectDir) {
93
+ const fs = getFileSystem();
94
+ const candidates = [
95
+ fs.path.join(projectDir, "entry-points.json"),
96
+ fs.path.join(projectDir, "content", "entry-points.json")
97
+ ];
98
+ for (const filePath of candidates) {
99
+ const [err, content] = await catchError(fs.readFile(filePath, "utf-8"));
100
+ if (err || !content)
101
+ continue;
102
+ const [parseErr, parsed] = catchError(() => JSON.parse(content));
103
+ if (parseErr || !parsed.entryPoints?.length)
104
+ continue;
105
+ const ep = parsed.entryPoints[0];
106
+ return {
107
+ inputs: ep.input ?? ep.InputArguments,
108
+ outputs: ep.output ?? ep.OutputArguments
109
+ };
110
+ }
111
+ return {};
112
+ }
113
+ async function readLocalResourcesForType(ctx, resourceType, enrichment) {
114
+ if (!LOCAL_RESOURCE_TYPES.has(resourceType))
115
+ return [];
116
+ const fs = getFileSystem();
117
+ const enrichmentMap = enrichment ?? await loadResourceEnrichmentMap(ctx.solutionDir);
118
+ const entries = [];
119
+ for (const project of ctx.projects) {
120
+ if (!project.Id || !project.Type)
121
+ continue;
122
+ if (ctx.currentProjectId && project.Id === ctx.currentProjectId)
123
+ continue;
124
+ if (PROJECT_TYPE_TO_RESOURCE_LC[project.Type.toLowerCase()] !== resourceType)
125
+ continue;
126
+ const projectDir = fs.path.resolve(ctx.solutionDir, fs.path.dirname(project.ProjectRelativePath ?? ""));
127
+ if (!isUnder(ctx.solutionDir, projectDir))
128
+ continue;
129
+ const enriched = enrichmentMap.get(project.Id);
130
+ const [name, io] = await Promise.all([
131
+ enriched?.name ? Promise.resolve(enriched.name) : readProjectName(projectDir),
132
+ readEntryPointIO(projectDir)
133
+ ]);
134
+ entries.push({
135
+ entityKey: enriched?.key ?? project.Id,
136
+ name,
137
+ category: resourceType,
138
+ folders: enriched?.folders ?? [
139
+ { fullyQualifiedName: "solution_folder" }
140
+ ],
141
+ packageName: enriched?.packageName,
142
+ projectKey: project.Id,
143
+ inputs: io.inputs,
144
+ outputs: io.outputs,
145
+ source: "local"
146
+ });
147
+ }
148
+ return entries;
149
+ }
150
+
151
+ export { loadResourceEnrichmentMap, readLocalResourcesForType };
152
+
153
+ //# debugId=44DA57B437646B6C64756E2164756E21