@uipath/case-tool 1.201.0-preview.133 → 1.202.0-preview.134
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/{authoring-aaaqwck3.js → authoring-jj4zkqer.js} +74 -48
- package/dist/{browser-strategy-rkcvc6tn.js → browser-strategy-6atc7v8s.js} +3 -3
- package/dist/case-api-2nfc0ynz.js +381 -0
- package/dist/case-debug-studio-web-service-e31g6mrp.js +335 -0
- package/dist/{case-pack-service-rvyqh3x3.js → case-pack-service-ye4shs12.js} +11 -18
- package/dist/case-validate-service-mayc7mw1.js +2114 -0
- package/dist/connector-enrichment-service-83pqstp8.js +60 -0
- package/dist/connector-lookup-service-59kkbbwm.js +22 -0
- package/dist/connector-task-spec-c54daswf.js +1250 -0
- package/dist/{de-5KVP66U6-t37qr521.js → de-5KVP66U6-1bnf4zt5.js} +54 -54
- package/dist/{de-5HU6GFWV-zheyw6d2.js → de-7XQXX2DK-tqdy5n2b.js} +857 -845
- package/dist/debug-service-77n8tv17.js +57 -0
- package/dist/{en-MABQK6C4-nkzq2j8t.js → en-5ZGC5VQ3-h581y30k.js} +897 -897
- package/dist/{en-4KXU7N7B-24v330b5.js → en-X3S6IZ5J-nhkg6pwn.js} +55 -61
- package/dist/enrichment-service-27j145k3.js +421 -0
- package/dist/{es-MX-POESXYP2-9538722k.js → es-MX-U2VN3SZW-anynsmd8.js} +857 -845
- package/dist/{es-MX-XAVLOQW3-47a405kf.js → es-MX-XAVLOQW3-q00km2y7.js} +54 -54
- package/dist/{es-VFPNVMP5-6sftsdxe.js → es-VFPNVMP5-bx2c337j.js} +54 -54
- package/dist/{es-LUTYN7U7-ye5zn4sn.js → es-ZGCPPOME-8gazspjj.js} +857 -845
- package/dist/{fr-E5MDO4EG-f3x1jeqw.js → fr-E5MDO4EG-c3mkty2t.js} +54 -54
- package/dist/{fr-LJIK56LW-xf3xf2kh.js → fr-T3G5GZCT-y3f7xb1q.js} +857 -845
- package/dist/index-67s20rhx.js +630 -0
- package/dist/{index-hsadteg4.js → index-h8cph72k.js} +4 -4
- package/dist/index-k4xz16db.js +63712 -0
- package/dist/{index-p50kx6jv.js → index-k5tbd184.js} +276 -276
- package/dist/index-kwxe1vep.js +143 -0
- package/dist/{index-cncq089f.js → index-mhe5065f.js} +163 -80
- package/dist/{index-9f8q2ege.js → index-p3vk57z7.js} +27 -27
- package/dist/index.js +16 -17
- package/dist/{index.umd.min-drpc57vn.js → index.umd.min-fqefd9kn.js} +3 -3
- package/dist/input-reader-vprf0kv6.js +11 -0
- package/dist/{ja-FGEGLBJ3-w9byjhze.js → ja-BI5K3JDZ-77zat4z2.js} +857 -845
- package/dist/{ja-DPO5PPLO-fmbg7zt2.js → ja-DPO5PPLO-mysfmznx.js} +54 -54
- package/dist/{js-yaml-cggj6w7q.js → js-yaml-87tvr6f6.js} +16 -16
- package/dist/known-types-qryebm95.js +15 -0
- package/dist/{ko-ITOPNIYI-aqy82jk8.js → ko-ITOPNIYI-hmxd2asd.js} +54 -54
- package/dist/{ko-TUAK3G3A-s25w0ckg.js → ko-JOBF5V7N-4bv0mjje.js} +857 -845
- package/dist/{node-strategy-8gzp67xs.js → node-strategy-0267x5e5.js} +130 -14
- package/dist/node-sync-service-15hccr1y.js +38 -0
- package/dist/{packager-tool-9qecd4wb.js → packager-tool-0gctz400.js} +5 -2
- package/dist/packager-tool-0mj06yen.js +65 -0
- package/dist/{packager-tool-1cb0d5e0.js → packager-tool-0v3s8r01.js} +2 -2
- package/dist/packager-tool-134mvmcm.js +3040 -0
- package/dist/packager-tool-13kkvf2n.js +356 -0
- package/dist/packager-tool-1j44c5z3.js +1217 -0
- package/dist/packager-tool-1jsabv93.js +6717 -0
- package/dist/packager-tool-1v6h5met.js +852 -0
- package/dist/{packager-tool-wckvcay0.js → packager-tool-1yh8g550.js} +9 -7
- package/dist/packager-tool-37ww3cn0.js +80 -0
- package/dist/packager-tool-3mdhyhk6.js +4892 -0
- package/dist/packager-tool-50hjsghv.js +1125 -0
- package/dist/{packager-tool-3wygxefb.js → packager-tool-58q3tvh7.js} +10 -10
- package/dist/packager-tool-5ww9gbj3.js +6865 -0
- package/dist/{packager-tool-w3h8xrnv.js → packager-tool-66s6vs1k.js} +71 -3
- package/dist/{packager-tool-zqa5k9f7.js → packager-tool-a190917w.js} +990 -2287
- package/dist/{packager-tool-p9j43p8h.js → packager-tool-a42jnpy5.js} +3 -9
- package/dist/packager-tool-ay3zvfcv.js +54 -0
- package/dist/{packager-tool-jysvpt8p.js → packager-tool-c23zrhj8.js} +2 -2
- package/dist/packager-tool-dqs5qy9s.js +2327 -0
- package/dist/{packager-tool-wvqz81mx.js → packager-tool-gtzs471w.js} +3 -2
- package/dist/{packager-tool-we1phz71.js → packager-tool-hxw1a9ac.js} +31 -3
- package/dist/{packager-tool-8t401j6x.js → packager-tool-jhdf8gt1.js} +5054 -17851
- package/dist/packager-tool-ncedqc8m.js +77 -0
- package/dist/packager-tool-p7jgrm5r.js +15 -0
- package/dist/packager-tool-q24fc6jm.js +546 -0
- package/dist/packager-tool-r84ng21s.js +57 -0
- package/dist/packager-tool-sv0d6wb6.js +173 -0
- package/dist/packager-tool-ty1t2byf.js +27 -0
- package/dist/packager-tool-vepqrsse.js +23 -0
- package/dist/{packager-tool-5arsyj36.js → packager-tool-yc4kw997.js} +4 -2
- package/dist/{packager-tool-zx48pq4v.js → packager-tool-ygwa3sc0.js} +1997 -1174
- package/dist/packager-tool.js +91 -5
- package/dist/project-artifacts-9e7bs1vq.js +14 -0
- package/dist/{pt-BR-7XGDXRDJ-espnkgrj.js → pt-BR-7DYX2YPT-fqxqzqtf.js} +857 -845
- package/dist/{pt-BR-BXURWX4W-xzyndmrx.js → pt-BR-BXURWX4W-bwfcwhk1.js} +54 -54
- package/dist/{pt-TMVOOITK-myha14p9.js → pt-HTXGGX6Y-97t21dty.js} +857 -845
- package/dist/{pt-YI4VE4YQ-521681zf.js → pt-YI4VE4YQ-wdkn2dcf.js} +54 -54
- package/dist/resourcesSyncService-jnze5zjq.js +683 -0
- package/dist/{ro-2VALF3S5-cdz5afkr.js → ro-KTNQ3MNU-y08n1x5g.js} +857 -845
- package/dist/{ro-RKXZUG7Z-pdztdafr.js → ro-RKXZUG7Z-nndrrsq7.js} +54 -54
- package/dist/{ru-GSCT4ARZ-qj8dm4dp.js → ru-GSCT4ARZ-1sa9wbr8.js} +1 -1
- package/dist/ru-WBLQ5B2U-8r3c7v6d.js +10 -0
- package/dist/strict-case-rules-303vjvas.js +377 -0
- package/dist/strict-sdd-audit-qdmc9e1y.js +1024 -0
- package/dist/tool.js +17 -18
- package/dist/{tr-AA6O2WSR-bj9n80k8.js → tr-AA6O2WSR-86ba4bdf.js} +54 -54
- package/dist/{tr-RIFCEXFH-hgkb4g8y.js → tr-XHSSPNK7-cmqyc4wd.js} +857 -845
- package/dist/trigger-enrichment-service-46b8k7ex.js +340 -0
- package/dist/{zh-CN-IP3FMXWM-1cfarhcp.js → zh-CN-2EHQT23P-mr63c4xz.js} +857 -845
- package/dist/{zh-CN-R2KLHXQV-x6gnk2n0.js → zh-CN-R2KLHXQV-agqr45ds.js} +54 -54
- package/dist/{zh-TW-AGIDXIPF-n6r6w7vy.js → zh-TW-MGZCE5BT-c4ekmrz9.js} +857 -845
- package/dist/{zh-TW-RJGCQANM-tt8j5wv2.js → zh-TW-RJGCQANM-w0x3qc1p.js} +54 -54
- package/package.json +2 -2
- package/dist/index-8bsngk9y.js +0 -247140
- package/dist/packager-tool-qtwqp3q5.js +0 -13607
- package/dist/ru-WBLQ5B2U-8xd4gpv2.js +0 -10
|
@@ -2,7 +2,7 @@ import {
|
|
|
2
2
|
catchError,
|
|
3
3
|
logger,
|
|
4
4
|
unsupportedSolutionProjectType
|
|
5
|
-
} from "./packager-tool-
|
|
5
|
+
} from "./packager-tool-ygwa3sc0.js";
|
|
6
6
|
|
|
7
7
|
// ../solution-sdk/src/solution-file.ts
|
|
8
8
|
var STUDIO_WEB_PROJECT_TYPE_OVERRIDES = {
|
|
@@ -14,6 +14,44 @@ function normalizeProjectType(projectType) {
|
|
|
14
14
|
function toPortableRelativePath(relativePath) {
|
|
15
15
|
return relativePath.replace(/\\/g, "/");
|
|
16
16
|
}
|
|
17
|
+
async function readUipxFile(fs, solutionDir) {
|
|
18
|
+
const dirEntries = await fs.readdir(solutionDir);
|
|
19
|
+
const uipxFileName = dirEntries.find((f) => f.endsWith(".uipx"));
|
|
20
|
+
if (!uipxFileName) {
|
|
21
|
+
throw new Error(`No .uipx file found in ${solutionDir}. Run 'uip solution init' first.`);
|
|
22
|
+
}
|
|
23
|
+
const uipxContent = await fs.readFile(fs.path.join(solutionDir, uipxFileName), "utf-8");
|
|
24
|
+
if (!uipxContent) {
|
|
25
|
+
throw new Error(`Could not read .uipx file: ${uipxFileName} is empty or missing.`);
|
|
26
|
+
}
|
|
27
|
+
const [parseError, parsed] = catchError(() => JSON.parse(uipxContent));
|
|
28
|
+
if (parseError) {
|
|
29
|
+
throw new Error(`Invalid .uipx file: could not parse JSON in ${uipxFileName}.`);
|
|
30
|
+
}
|
|
31
|
+
const uipx = validateUipxFile(parsed, uipxFileName);
|
|
32
|
+
return { uipx, uipxFileName };
|
|
33
|
+
}
|
|
34
|
+
function validateUipxFile(parsed, uipxFileName) {
|
|
35
|
+
if (!isRecord(parsed)) {
|
|
36
|
+
throw new Error(`Invalid .uipx file: ${uipxFileName} must contain a JSON object.`);
|
|
37
|
+
}
|
|
38
|
+
if (typeof parsed.SolutionId !== "string" || !parsed.SolutionId.trim()) {
|
|
39
|
+
throw new Error("Invalid .uipx file: missing SolutionId.");
|
|
40
|
+
}
|
|
41
|
+
if (!Array.isArray(parsed.Projects) || parsed.Projects.length === 0) {
|
|
42
|
+
throw new Error("Invalid .uipx file: missing Projects.");
|
|
43
|
+
}
|
|
44
|
+
for (const [index, project] of parsed.Projects.entries()) {
|
|
45
|
+
if (!isRecord(project)) {
|
|
46
|
+
throw new Error(`Invalid .uipx file: Projects[${index}] must be an object.`);
|
|
47
|
+
}
|
|
48
|
+
if (typeof project.ProjectRelativePath !== "string" || !project.ProjectRelativePath.trim()) {
|
|
49
|
+
const pathHint = typeof project.Path === "string" ? " Found Path, but .uipx uses ProjectRelativePath." : "";
|
|
50
|
+
throw new Error(`Invalid .uipx file: Projects[${index}] is missing ProjectRelativePath.${pathHint} Use 'uip solution projects add' to add projects, or set ProjectRelativePath to the project file path, for example "Foo/project.uiproj".`);
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
return parsed;
|
|
54
|
+
}
|
|
17
55
|
function isRecord(value) {
|
|
18
56
|
return typeof value === "object" && value !== null && !Array.isArray(value);
|
|
19
57
|
}
|
|
@@ -83,6 +121,13 @@ async function warnIfCandidateDirShadowed(fs, candidateDir, projectDir) {
|
|
|
83
121
|
}
|
|
84
122
|
logger.warn(`An existing directory "${candidateDir}" was left untouched. ` + `The project was created inside the auto-created solution at "${projectDir}". ` + "Run init from inside an existing solution, or pass --skip-solution-registration, if you meant to use the existing directory.");
|
|
85
123
|
}
|
|
124
|
+
function resolveSolutionDir(fs, inputPath) {
|
|
125
|
+
const resolved = fs.path.resolve(inputPath);
|
|
126
|
+
if (resolved.endsWith(".uipx")) {
|
|
127
|
+
return fs.path.dirname(resolved);
|
|
128
|
+
}
|
|
129
|
+
return resolved;
|
|
130
|
+
}
|
|
86
131
|
async function updateUipxSolutionId(fs, uipxPath, newSolutionId) {
|
|
87
132
|
const [readError, content] = await catchError(fs.readFile(uipxPath, "utf-8"));
|
|
88
133
|
if (readError || !content) {
|
|
@@ -448,6 +493,29 @@ function buildOptedOutInstructions(projectDir) {
|
|
|
448
493
|
].join(`
|
|
449
494
|
`);
|
|
450
495
|
}
|
|
496
|
+
async function isProjectRegisteredInSolution(fs, projectDir, solutionFile) {
|
|
497
|
+
const [readErr, manifest] = await readSolutionManifest(fs, solutionFile);
|
|
498
|
+
if (readErr) {
|
|
499
|
+
throw readErr;
|
|
500
|
+
}
|
|
501
|
+
if (!manifest) {
|
|
502
|
+
throw new Error(`Unable to read solution manifest: ${solutionFile}`);
|
|
503
|
+
}
|
|
504
|
+
const solutionDir = fs.path.dirname(solutionFile);
|
|
505
|
+
const projectDirReal = await canonicalizePath(fs, projectDir);
|
|
506
|
+
for (const project of manifest.projects) {
|
|
507
|
+
const candidateDir = fs.path.resolve(solutionDir, fs.path.dirname(toPortableRelativePath(project.ProjectRelativePath)));
|
|
508
|
+
const candidateReal = await canonicalizePath(fs, candidateDir);
|
|
509
|
+
if (candidateReal === projectDirReal) {
|
|
510
|
+
return true;
|
|
511
|
+
}
|
|
512
|
+
}
|
|
513
|
+
return false;
|
|
514
|
+
}
|
|
515
|
+
async function canonicalizePath(fs, p) {
|
|
516
|
+
const [err, real] = await catchError(fs.realpath(p));
|
|
517
|
+
return err || !real ? p : real;
|
|
518
|
+
}
|
|
451
519
|
async function findSolutionFileUpward(fs, startDir) {
|
|
452
520
|
let dir = startDir;
|
|
453
521
|
while (true) {
|
|
@@ -467,6 +535,6 @@ async function findSolutionFileUpward(fs, startDir) {
|
|
|
467
535
|
}
|
|
468
536
|
}
|
|
469
537
|
|
|
470
|
-
export { normalizeProjectType, prepareProjectLocation, findSolutionFile, updateSolutionFile, tryRegisterProjectInParentSolution, findSolutionFileUpward };
|
|
538
|
+
export { normalizeProjectType, toPortableRelativePath, readUipxFile, createSolutionManifest, autoScaffoldSolution, prepareProjectLocation, resolveSolutionDir, updateUipxSolutionId, findSolutionFile, updateSolutionFile, tryRegisterProjectInParentSolution, findNearestParentUipxFile, readSolutionManifest, isProjectRegisteredInSolution, findSolutionFileUpward };
|
|
471
539
|
|
|
472
|
-
//# debugId=
|
|
540
|
+
//# debugId=C68E91587DBDE36C64756E2164756E21
|