@uipath/case-tool 1.201.0 → 1.202.0-preview.136
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-cvjhkfxp.js} +74 -48
- package/dist/{browser-strategy-rkcvc6tn.js → browser-strategy-6atc7v8s.js} +3 -3
- package/dist/case-api-bwcxsbxe.js +381 -0
- package/dist/case-debug-studio-web-service-qcb328bt.js +335 -0
- package/dist/{case-pack-service-bxas5bxz.js → case-pack-service-txby2znw.js} +11 -18
- package/dist/case-validate-service-0q8krj2a.js +2114 -0
- package/dist/connector-enrichment-service-agqxam5y.js +60 -0
- package/dist/connector-lookup-service-ycgk77n0.js +22 -0
- package/dist/connector-task-spec-kdx5bv87.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-dxx5pfev.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-ebz1f4ds.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-cncq089f.js → index-7s201ka0.js} +163 -80
- 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-9f8q2ege.js → index-p3vk57z7.js} +27 -27
- package/dist/index-qyf1dee9.js +630 -0
- package/dist/index.js +16 -17
- package/dist/{index.umd.min-drpc57vn.js → index.umd.min-fqefd9kn.js} +3 -3
- package/dist/input-reader-xb9vecxv.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-87cdx6bm.js} +27 -19
- 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-9a9ksj9s.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-wckvcay0.js → packager-tool-1yh8g550.js} +9 -7
- package/dist/{packager-tool-zqa5k9f7.js → packager-tool-37zvccmt.js} +990 -2287
- package/dist/packager-tool-3ze5vt52.js +54 -0
- package/dist/{packager-tool-w3h8xrnv.js → packager-tool-56j6keqr.js} +71 -3
- package/dist/{packager-tool-3wygxefb.js → packager-tool-58q3tvh7.js} +10 -10
- package/dist/{packager-tool-zx48pq4v.js → packager-tool-5ax2ywcg.js} +1997 -1174
- package/dist/{packager-tool-we1phz71.js → packager-tool-885mmrvr.js} +31 -3
- package/dist/packager-tool-9scn4b15.js +852 -0
- package/dist/{packager-tool-p9j43p8h.js → packager-tool-a42jnpy5.js} +3 -9
- package/dist/packager-tool-ajvse9r3.js +356 -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-ee5dhff3.js +6717 -0
- package/dist/{packager-tool-wvqz81mx.js → packager-tool-gtzs471w.js} +3 -2
- package/dist/packager-tool-hrr0efqc.js +546 -0
- package/dist/packager-tool-j9rfdrdm.js +1125 -0
- package/dist/{packager-tool-gq6952nc.js → packager-tool-jhdf8gt1.js} +5054 -17851
- package/dist/packager-tool-mp59jtpm.js +6865 -0
- package/dist/packager-tool-njzcfve1.js +77 -0
- package/dist/packager-tool-p7jgrm5r.js +15 -0
- package/dist/packager-tool-r84ng21s.js +57 -0
- package/dist/packager-tool-rqvr63x5.js +1217 -0
- package/dist/packager-tool-s12392rd.js +80 -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-w5ek334f.js +4892 -0
- package/dist/{packager-tool-5arsyj36.js → packager-tool-yc4kw997.js} +4 -2
- package/dist/packager-tool.js +91 -5
- package/dist/project-artifacts-vhanbtw5.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-mrmmwaqr.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-zdx4x92j.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-axcdppp9.js +0 -13607
- package/dist/ru-WBLQ5B2U-8xd4gpv2.js +0 -10
|
@@ -5,7 +5,9 @@ var DEFAULT_BASE_URL = "https://cloud.uipath.com";
|
|
|
5
5
|
var DEFAULT_AUTH_TIMEOUT_MS = 5 * 60 * 1000;
|
|
6
6
|
var AUTH_TIMEOUT_ERROR_CODE = "EAUTHTIMEOUT";
|
|
7
7
|
var AUTH_CANCELLED_ERROR_CODE = "EAUTHCANCELLED";
|
|
8
|
+
var AUTH_RECLAIMED_ERROR_CODE = "EAUTHRECLAIMED";
|
|
9
|
+
var DEFAULT_REDIRECT_URI = "http://localhost:8104/oidc/login";
|
|
8
10
|
|
|
9
|
-
export { UIPATH_HOME_DIR, AUTH_FILENAME, DEFAULT_BASE_URL, DEFAULT_AUTH_TIMEOUT_MS, AUTH_TIMEOUT_ERROR_CODE, AUTH_CANCELLED_ERROR_CODE };
|
|
11
|
+
export { UIPATH_HOME_DIR, AUTH_FILENAME, DEFAULT_BASE_URL, DEFAULT_AUTH_TIMEOUT_MS, AUTH_TIMEOUT_ERROR_CODE, AUTH_CANCELLED_ERROR_CODE, AUTH_RECLAIMED_ERROR_CODE, DEFAULT_REDIRECT_URI };
|
|
10
12
|
|
|
11
|
-
//# debugId=
|
|
13
|
+
//# debugId=75C147C6FAA3208364756E2164756E21
|
package/dist/packager-tool.js
CHANGED
|
@@ -1,10 +1,13 @@
|
|
|
1
1
|
import {
|
|
2
2
|
toolsFactoryRepository
|
|
3
|
-
} from "./packager-tool-
|
|
3
|
+
} from "./packager-tool-gtzs471w.js";
|
|
4
4
|
import {
|
|
5
5
|
zipSync
|
|
6
6
|
} from "./packager-tool-b098y4a2.js";
|
|
7
|
-
import
|
|
7
|
+
import {
|
|
8
|
+
__require,
|
|
9
|
+
__toESM
|
|
10
|
+
} from "./packager-tool-1yh8g550.js";
|
|
8
11
|
|
|
9
12
|
// ../packager/packager-core/dist/index.js
|
|
10
13
|
class Path {
|
|
@@ -925,6 +928,7 @@ var ProjectTypes;
|
|
|
925
928
|
((ProjectTypes2) => {
|
|
926
929
|
ProjectTypes2["Agent"] = "Agent";
|
|
927
930
|
ProjectTypes2["Api"] = "Api";
|
|
931
|
+
ProjectTypes2["BusinessRules"] = "BusinessRules";
|
|
928
932
|
ProjectTypes2["Connector"] = "Connector";
|
|
929
933
|
ProjectTypes2["CaseManagement"] = "CaseManagement";
|
|
930
934
|
ProjectTypes2["Flow"] = "Flow";
|
|
@@ -1293,7 +1297,8 @@ class ToolsFactoryRepository {
|
|
|
1293
1297
|
getProjectToolFactory(projectType) {
|
|
1294
1298
|
const factory = this.projectFactoryMap.get(projectType);
|
|
1295
1299
|
if (!factory) {
|
|
1296
|
-
|
|
1300
|
+
const known = [...this.projectFactoryMap.keys()].join(", ");
|
|
1301
|
+
throw new Error(`Cannot pack project type '${projectType}': no packager is installed for it. ` + `Project types that can be packed: ${known || "none"}.`);
|
|
1297
1302
|
}
|
|
1298
1303
|
return factory;
|
|
1299
1304
|
}
|
|
@@ -1309,10 +1314,22 @@ if (!_global[REGISTRY_KEY]) {
|
|
|
1309
1314
|
}
|
|
1310
1315
|
var toolsFactoryRepository2 = _global[REGISTRY_KEY];
|
|
1311
1316
|
|
|
1317
|
+
// ../packager/packager-tool-case/src/case-bpmn-compiler.ts
|
|
1318
|
+
var COMPILER_KEY = Symbol.for("@uipath/packager-tool-case/caseBpmnCompiler");
|
|
1319
|
+
var _global2 = globalThis;
|
|
1320
|
+
function registerCaseBpmnCompiler(caseBpmnCompiler) {
|
|
1321
|
+
_global2[COMPILER_KEY] = caseBpmnCompiler;
|
|
1322
|
+
}
|
|
1323
|
+
function getCaseBpmnCompiler() {
|
|
1324
|
+
return _global2[COMPILER_KEY];
|
|
1325
|
+
}
|
|
1326
|
+
|
|
1312
1327
|
// ../packager/packager-tool-case/src/case-tool.ts
|
|
1313
1328
|
var CaseConstants = {
|
|
1314
1329
|
EntryPointsFileName: "entry-points.json",
|
|
1315
|
-
BindingsV2FileName: "bindings_v2.json"
|
|
1330
|
+
BindingsV2FileName: "bindings_v2.json",
|
|
1331
|
+
CasePlanFileName: "caseplan.json",
|
|
1332
|
+
CompiledBpmnFileName: "caseplan.json.bpmn"
|
|
1316
1333
|
};
|
|
1317
1334
|
|
|
1318
1335
|
class CaseTool extends ProjectTool {
|
|
@@ -1336,6 +1353,11 @@ class CaseTool extends ProjectTool {
|
|
|
1336
1353
|
try {
|
|
1337
1354
|
this.logger.progress("Copying files...");
|
|
1338
1355
|
await this.copyFiles(options.projectPath, contentFolder);
|
|
1356
|
+
this.logger.progress("Compiling case plan to BPMN...");
|
|
1357
|
+
const compileResult = await this.compileCasePlan(options.projectPath, contentFolder);
|
|
1358
|
+
if (!compileResult.isSuccess) {
|
|
1359
|
+
return compileResult;
|
|
1360
|
+
}
|
|
1339
1361
|
this.logger.progress("Creating operate.json file...");
|
|
1340
1362
|
await this.createOperateFile(options, contentFolder);
|
|
1341
1363
|
this.logger.progress("Creating package-descriptor.json file...");
|
|
@@ -1392,6 +1414,59 @@ class CaseTool extends ProjectTool {
|
|
|
1392
1414
|
}
|
|
1393
1415
|
}
|
|
1394
1416
|
}
|
|
1417
|
+
async compileCasePlan(projectPath, contentFolder) {
|
|
1418
|
+
const compile = getCaseBpmnCompiler();
|
|
1419
|
+
const casePlanPath = Path.join(projectPath, CaseConstants.CasePlanFileName);
|
|
1420
|
+
if (!compile || !await this.fileSystem.exists(casePlanPath)) {
|
|
1421
|
+
return this.checkEntryPointBpmnPresent(contentFolder);
|
|
1422
|
+
}
|
|
1423
|
+
const casePlan = await this.fileSystem.readFile(casePlanPath);
|
|
1424
|
+
if (!casePlan || casePlan.length === 0) {
|
|
1425
|
+
return ToolResult.error(ToolErrorCodes.InternalError, `'${CaseConstants.CasePlanFileName}' in ${projectPath} is empty, so there is nothing to compile into '${CaseConstants.CompiledBpmnFileName}'. Author the case plan, or re-scaffold the project with 'uip maestro case init'.`);
|
|
1426
|
+
}
|
|
1427
|
+
try {
|
|
1428
|
+
const bpmnXml = await compile(new TextDecoder().decode(casePlan));
|
|
1429
|
+
await this.fileSystem.writeFile(Path.join(contentFolder, CaseConstants.CompiledBpmnFileName), bpmnXml);
|
|
1430
|
+
return await this.checkEntryPointBpmnPresent(contentFolder);
|
|
1431
|
+
} catch (error) {
|
|
1432
|
+
const message = error instanceof Error ? error.message : String(error);
|
|
1433
|
+
this.logger.error(message);
|
|
1434
|
+
return ToolResult.error(ToolErrorCodes.InternalError, `Failed to compile '${CaseConstants.CasePlanFileName}' into '${CaseConstants.CompiledBpmnFileName}': ${message}. Run 'uip maestro case validate ${projectPath}' to find the problem in the case plan, then pack again.`);
|
|
1435
|
+
}
|
|
1436
|
+
}
|
|
1437
|
+
async checkEntryPointBpmnPresent(contentFolder) {
|
|
1438
|
+
const referenced = await this.readEntryPointBpmnFiles(contentFolder);
|
|
1439
|
+
if (referenced === null) {
|
|
1440
|
+
return ToolResult.error(ToolErrorCodes.InternalError, `'${CaseConstants.EntryPointsFileName}' could not be read as JSON, so pack cannot check that the BPMN it declares is in the package. Fix or re-scaffold '${CaseConstants.EntryPointsFileName}', then pack again.`);
|
|
1441
|
+
}
|
|
1442
|
+
if (referenced.length === 0) {
|
|
1443
|
+
return ToolResult.success();
|
|
1444
|
+
}
|
|
1445
|
+
const contentFiles = await this.fileSystem.readdir(contentFolder);
|
|
1446
|
+
const missing = referenced.filter((file) => !contentFiles.includes(file));
|
|
1447
|
+
if (missing.length === 0) {
|
|
1448
|
+
return ToolResult.success();
|
|
1449
|
+
}
|
|
1450
|
+
const fix = missing.includes(CaseConstants.CompiledBpmnFileName) ? `Author '${CaseConstants.CasePlanFileName}' so pack can compile it (see 'uip maestro case init'), then pack again.` : `Add the missing file to the project, or point '${CaseConstants.EntryPointsFileName}' at the BPMN the project does ship, then pack again.`;
|
|
1451
|
+
return ToolResult.error(ToolErrorCodes.InternalError, `'${CaseConstants.EntryPointsFileName}' points at ${missing.map((f) => `'content/${f}'`).join(", ")}, which the package does not contain, so it would deploy and activate and then fault every job. ${fix}`);
|
|
1452
|
+
}
|
|
1453
|
+
async readEntryPointBpmnFiles(contentFolder) {
|
|
1454
|
+
const entryPointsPath = Path.join(contentFolder, CaseConstants.EntryPointsFileName);
|
|
1455
|
+
if (!await this.fileSystem.exists(entryPointsPath)) {
|
|
1456
|
+
return [];
|
|
1457
|
+
}
|
|
1458
|
+
const raw = await this.fileSystem.readFile(entryPointsPath);
|
|
1459
|
+
if (!raw || raw.length === 0) {
|
|
1460
|
+
return null;
|
|
1461
|
+
}
|
|
1462
|
+
try {
|
|
1463
|
+
const parsed = JSON.parse(new TextDecoder().decode(raw));
|
|
1464
|
+
const names = (parsed.entryPoints ?? []).map((entry) => entry.filePath ?? "").map((filePath) => filePath.split("#")[0]).map((filePath) => filePath.split("/").pop() ?? "").filter((name) => name.endsWith(".bpmn"));
|
|
1465
|
+
return [...new Set(names)];
|
|
1466
|
+
} catch {
|
|
1467
|
+
return null;
|
|
1468
|
+
}
|
|
1469
|
+
}
|
|
1395
1470
|
async createOperateFile(options, contentFolder) {
|
|
1396
1471
|
await ensureContentOperateFile(this.fileSystem, {
|
|
1397
1472
|
contentFolder,
|
|
@@ -1433,12 +1508,23 @@ class CaseToolFactory {
|
|
|
1433
1508
|
// ../packager/packager-tool-case/src/index.ts
|
|
1434
1509
|
toolsFactoryRepository2.registerProjectToolFactory(new CaseToolFactory);
|
|
1435
1510
|
|
|
1511
|
+
// ../packager/packager-tool-case/src/node.ts
|
|
1512
|
+
var compileCasePlan = async (casePlanJson) => {
|
|
1513
|
+
const { serializeCaseDiskJsonToBpmnAndRulesJson } = await import("./index-k4xz16db.js").then((m)=>__toESM(m.default,1));
|
|
1514
|
+
const { bpmnXml } = await serializeCaseDiskJsonToBpmnAndRulesJson(casePlanJson);
|
|
1515
|
+
return bpmnXml;
|
|
1516
|
+
};
|
|
1517
|
+
function registerNodeCaseBpmnCompiler() {
|
|
1518
|
+
registerCaseBpmnCompiler(compileCasePlan);
|
|
1519
|
+
}
|
|
1520
|
+
|
|
1436
1521
|
// src/packager-tool.ts
|
|
1437
1522
|
function registerPackagerFactories() {
|
|
1438
1523
|
toolsFactoryRepository.registerProjectToolFactory(new CaseToolFactory);
|
|
1524
|
+
registerNodeCaseBpmnCompiler();
|
|
1439
1525
|
}
|
|
1440
1526
|
export {
|
|
1441
1527
|
registerPackagerFactories
|
|
1442
1528
|
};
|
|
1443
1529
|
|
|
1444
|
-
//# debugId=
|
|
1530
|
+
//# debugId=C7B6A0E748A5EE3464756E2164756E21
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import {
|
|
2
|
+
__require
|
|
3
|
+
} from "./packager-tool-1yh8g550.js";
|
|
4
|
+
|
|
5
|
+
// src/services/project-artifacts.ts
|
|
6
|
+
async function ensureProjectArtifacts(args) {
|
|
7
|
+
const { addProjectArtifactsToSolutionAsync } = await import("./index-7s201ka0.js");
|
|
8
|
+
return addProjectArtifactsToSolutionAsync(args);
|
|
9
|
+
}
|
|
10
|
+
export {
|
|
11
|
+
ensureProjectArtifacts
|
|
12
|
+
};
|
|
13
|
+
|
|
14
|
+
//# debugId=81BC3D47DBA842B764756E2164756E21
|