@uipath/case-tool 1.206.0-preview.303 → 1.207.0-preview.305
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/README.md +7 -90
- package/dist/THIRD-PARTY-NOTICES.md +162 -7
- package/dist/{authoring-wt5ngnjb.js → authoring-qqev46bh.js} +233 -63
- package/dist/{bindings-v2-x100hvcy.js → bindings-v2-wjgg92tj.js} +4 -4
- package/dist/{browser-strategy-627rrg7z.js → browser-strategy-qc6htsnf.js} +1 -1
- package/dist/{business-rule-export-pggs7x01.js → business-rule-export-0pbc3ysq.js} +2 -2
- package/dist/{carry-forward-gxsadrqb.js → carry-forward-tj5yrqf6.js} +6 -6
- package/dist/{case-api-a6v5beat.js → case-api-bfwmvkb8.js} +24 -28
- package/dist/{case-bindings-service-9zemt0r2.js → case-bindings-service-5r7c70kz.js} +5 -5
- package/dist/case-catalog-h4fjn6q3.js +304 -0
- package/dist/{case-debug-solution-projects-c300019s.js → case-debug-solution-projects-5tr4pwbs.js} +2 -2
- package/dist/{case-debug-studio-web-service-b6xe8es1.js → case-debug-studio-web-service-7smzvq4c.js} +10 -9
- package/dist/{case-described-io-service-8dw21x2y.js → case-described-io-service-ddsvkz8w.js} +5 -5
- package/dist/{case-event-trigger-bindings-pmad4dev.js → case-event-trigger-bindings-8nd78j4e.js} +5 -5
- package/dist/{case-format-service-xjvnx3jd.js → case-format-service-4mzszgfb.js} +2 -2
- package/dist/case-pack-service-bp7sh20v.js +297 -0
- package/dist/{case-splice-service-8deak994.js → case-splice-service-tpp2syvn.js} +7 -7
- package/dist/{case-validate-service-p324kcry.js → case-validate-service-fxvq4qx7.js} +146 -38
- package/dist/{connector-enrichment-service-9wnew5a0.js → connector-enrichment-service-x0w721wj.js} +26 -25
- package/dist/{connector-library-1yw5r47w.js → connector-library-844myxz2.js} +20 -6
- package/dist/{connector-lookup-service-v8r2htmg.js → connector-lookup-service-51pca3bf.js} +8 -8
- package/dist/{connector-task-shape-bgywpbqc.js → connector-task-shape-s2zny4gf.js} +3 -3
- package/dist/{de-AI7ML6JM-km47f8k4.js → de-B6IFKV43-9sk50xx0.js} +164 -2
- package/dist/{de-2BEKRUMY-x4dx0nn9.js → de-HF4GJ4EK-xrrajtht.js} +1277 -10
- package/dist/{debug-service-tm92ws5e.js → debug-service-hf2wb4tw.js} +9 -4
- package/dist/{en-LAVDF7IQ-yzy20n6d.js → en-5JIPZTS5-c68n8taw.js} +4 -2
- package/dist/{en-X6T4SP2Y-xm47mf18.js → en-ETY46SDS-far9tmsf.js} +66 -2
- package/dist/{enrichment-service-hzsn1aqp.js → enrichment-service-7f4sdff5.js} +17 -17
- package/dist/{es-SPNKTD5Y-vw5cbgv5.js → es-AQW6PFIU-q2mz247f.js} +164 -2
- package/dist/{es-7ZTQTGKN-11sj0yjx.js → es-IYP2OLUY-98xsbyd5.js} +1271 -10
- package/dist/{es-MX-IHGRIEWH-g63p0gb4.js → es-MX-D2MN3U37-0y5q0nbe.js} +1276 -10
- package/dist/{es-MX-7KJZPEQN-1fq0a9jr.js → es-MX-KWITVBWE-w49gknha.js} +164 -2
- package/dist/{fr-7ZDL4MVO-pd27vwh6.js → fr-NISALSPL-vzfmygd7.js} +1277 -10
- package/dist/{fr-AXJGUT53-hdg3pmd4.js → fr-RNWK2TMC-dpyzj366.js} +164 -2
- package/dist/{index-n1ndwwsz.js → index-2j5tfjwv.js} +129 -76
- package/dist/{index-kc1h1yf6.js → index-ezxmyhan.js} +4 -4
- package/dist/{index-j2gw61z0.js → index-gb75pv5a.js} +111 -65
- package/dist/index-prn518fr.js +36 -0
- package/dist/{index-nj3axvya.js → index-rk82650j.js} +7 -5
- package/dist/{index-pg9wmyrf.js → index-t6fnts8a.js} +2 -2
- package/dist/index-wkmh1h6w.js +26 -0
- package/dist/{index-21kns9qg.js → index-y7v9rkq9.js} +1 -1
- package/dist/index.js +13 -11
- package/dist/init-entry-points-52kvvbg9.js +15 -0
- package/dist/input-reader-zr71xcm9.js +13 -0
- package/dist/integration-service-fetcher-bpbz1gcx.js +68 -0
- package/dist/{ja-C7GZV6YP-hvtbngr5.js → ja-DH4I3GEF-ywyhhppa.js} +164 -2
- package/dist/{ja-LGAM5HKR-sgrtjqjh.js → ja-HTS2Q4YG-4ahnq47y.js} +1277 -10
- package/dist/{known-types-gak9by1w.js → known-types-a5d0evdm.js} +2 -2
- package/dist/{ko-7B4SUZB7-c8wr20sc.js → ko-3JFGTMNY-qnf1bnef.js} +1271 -10
- package/dist/{ko-Q24HSSL4-5vn55pte.js → ko-R5BCWVO7-whzgmh6q.js} +164 -2
- package/dist/library-option-pbvkt66g.js +13 -0
- package/dist/{localSolutionDiscovery-9pj8mzye.js → localSolutionDiscovery-5sqz9dkr.js} +5 -5
- package/dist/manifest-rhee8kem.js +32 -0
- package/dist/{node-strategy-2mqzg36t.js → node-strategy-aaf2qe6c.js} +2 -2
- package/dist/{node-sync-service-7n5960qy.js → node-sync-service-q1a37d6n.js} +21 -15
- package/dist/{out-target-gtg3we44.js → out-target-02x6x6nk.js} +5 -5
- package/dist/{packager-tool-h2ar8xf8.js → packager-tool-00ck60cc.js} +25 -24
- package/dist/{packager-tool-rfdkx9c9.js → packager-tool-00qmds4s.js} +254 -69
- package/dist/{packager-tool-388vyja1.js → packager-tool-0gmnk7sb.js} +2 -2
- package/dist/{packager-tool-fcektt1g.js → packager-tool-0nbcqyvp.js} +10 -9
- package/dist/{packager-tool-anvg0etj.js → packager-tool-178xtejt.js} +191 -154
- package/dist/{packager-tool-j69tzg52.js → packager-tool-1dsedy7x.js} +59 -34
- package/dist/packager-tool-1yew22sn.js +9 -0
- package/dist/{packager-tool-1hpd2gmh.js → packager-tool-225b9qhq.js} +1 -1
- package/dist/{packager-tool-z4phaas7.js → packager-tool-2x40ye7a.js} +21 -7
- package/dist/{packager-tool-p0rdmmvk.js → packager-tool-2xemp3b1.js} +2 -2
- package/dist/packager-tool-34ttsx9q.js +18 -0
- package/dist/{packager-tool-3zy717ga.js → packager-tool-36vkdb3h.js} +2 -2
- package/dist/{packager-tool-7hcpmn4g.js → packager-tool-380ac64s.js} +61 -11
- package/dist/{packager-tool-cqkbf2fg.js → packager-tool-3hzsw5r7.js} +906 -41
- package/dist/packager-tool-3k5j706w.js +73 -0
- package/dist/{packager-tool-scy94jyb.js → packager-tool-4seehsme.js} +2 -72
- package/dist/{packager-tool-es77jvky.js → packager-tool-4w7nzx18.js} +360 -44
- package/dist/{packager-tool-4avchhz8.js → packager-tool-57970zfm.js} +12 -7
- package/dist/{packager-tool-bjt8b2nz.js → packager-tool-5s476jdt.js} +13 -13
- package/dist/{packager-tool-0xj79bbd.js → packager-tool-8kcwawyg.js} +13 -4
- package/dist/{packager-tool-wy3a65rx.js → packager-tool-bw4fsdq4.js} +27 -13
- package/dist/{packager-tool-dn9d4ywm.js → packager-tool-c0pavv0s.js} +66 -10
- package/dist/packager-tool-c9h0rwgv.js +31 -0
- package/dist/{packager-tool-t8qx6hvn.js → packager-tool-dv2vtyg0.js} +4 -4
- package/dist/{packager-tool-3r23qsca.js → packager-tool-ef43cy32.js} +213 -231
- package/dist/{packager-tool-m4kp6a7j.js → packager-tool-ej14cxen.js} +22 -22
- package/dist/{packager-tool-5w0gjcck.js → packager-tool-engs9gvj.js} +1 -1
- package/dist/{packager-tool-stdwmgvd.js → packager-tool-exrjwmew.js} +202 -83
- package/dist/{task-type-declaration-yhczvj05.js → packager-tool-f9n5mk1c.js} +8 -12
- package/dist/{packager-tool-b2q8m9pq.js → packager-tool-fspmvh6g.js} +5 -4
- package/dist/packager-tool-geh2qybm.js +179 -0
- package/dist/{packager-tool-17b466mr.js → packager-tool-hrd44w8g.js} +7561 -6408
- package/dist/{packager-tool-snesn0bt.js → packager-tool-j1etnthk.js} +19 -14
- package/dist/{packager-tool-k871wgpe.js → packager-tool-j53d4vv1.js} +18 -4
- package/dist/{packager-tool-6ewsbrnb.js → packager-tool-j8mnpsv8.js} +329 -149
- package/dist/{packager-tool-7x1tmb8a.js → packager-tool-jydreskq.js} +1 -1
- package/dist/{packager-tool-r5pha7xq.js → packager-tool-k08k9g2y.js} +9 -9
- package/dist/{packager-tool-bg3tdpva.js → packager-tool-kh9gs4d5.js} +4 -2
- package/dist/{packager-tool-8467kcz9.js → packager-tool-m7s4n455.js} +120 -13
- package/dist/{packager-tool-q26hncjr.js → packager-tool-n3r5apbb.js} +4 -2
- package/dist/packager-tool-n6h4bz4d.js +22 -0
- package/dist/{packager-tool-ad8v11jd.js → packager-tool-p4c1g2sj.js} +1032 -819
- package/dist/{packager-tool-z070caqq.js → packager-tool-p64w2wrt.js} +30 -8
- package/dist/{packager-tool-xd1wbvay.js → packager-tool-pq61r2f1.js} +1 -1
- package/dist/{packager-tool-65vr263d.js → packager-tool-qzyb1eac.js} +1 -1
- package/dist/{packager-tool-5dptce1y.js → packager-tool-rzxnm9yj.js} +2 -2
- package/dist/{init-entry-points-5xzn81bb.js → packager-tool-t6xwkhht.js} +12 -10
- package/dist/packager-tool-vmfd007q.js +27 -0
- package/dist/packager-tool-wvf6b31h.js +50 -0
- package/dist/{packager-tool-cdvrca04.js → packager-tool-x9z4krtr.js} +1036 -259
- package/dist/{packager-tool-z1fw9a8v.js → packager-tool-y69796fy.js} +19 -11
- package/dist/{packager-tool-jkwpw95j.js → packager-tool-z13dp55w.js} +3393 -3092
- package/dist/{packager-tool-9m7jbv7t.js → packager-tool-zbfwp75m.js} +4 -4
- package/dist/{packager-tool-pq9xv4vq.js → packager-tool-zte9svtn.js} +11 -4
- package/dist/packager-tool.js +2 -2
- package/dist/{prepare-uip-ad7mfs8t.js → prepare-uip-2hcb65bn.js} +39 -6
- package/dist/{project-artifacts-pfcn65cg.js → project-artifacts-77yctm8b.js} +1 -1
- package/dist/{pt-BR-BIUJXIPU-2sqzhr8y.js → pt-BR-6TBBEDQS-y3f2vg5d.js} +164 -2
- package/dist/{pt-BR-PHLFHMXZ-n6de4s7z.js → pt-BR-7H7BP5DT-z2e5aaj1.js} +1276 -10
- package/dist/{pt-N7ZTJT4W-d6c67xcn.js → pt-QWGSZKMD-m50nrkx8.js} +1271 -10
- package/dist/{pt-MHX6JGAX-xfgvdqwg.js → pt-ZSQC5RZ3-8kp3g1z5.js} +164 -2
- package/dist/{resolved-check-dz8eqrf6.js → resolved-check-kwgy875v.js} +1 -1
- package/dist/{resourcesSyncService-y5r4k43w.js → resourcesSyncService-gegbd8b8.js} +49 -26
- package/dist/{ro-FLNXVYJI-ytrwabg2.js → ro-B7G474JK-9k2jjk88.js} +1271 -10
- package/dist/{ro-3RKJNGJZ-xqj14e3d.js → ro-P33AQ6ZL-s92z1mgg.js} +164 -2
- package/dist/{rule-type-declaration-ze0saj5r.js → rule-type-declaration-a0fk7fe7.js} +12 -11
- package/dist/{sdd-convert-service-m8e615a1.js → sdd-convert-service-2ag3xjpj.js} +120 -621
- package/dist/{sdd-lookup-fwj6x364.js → sdd-lookup-wgm5ctnd.js} +2 -2
- package/dist/{sdd-resolve-service-dvg387wx.js → sdd-resolve-service-epygyb0n.js} +34 -6
- package/dist/{sdd-resolve-siblings-xsm2ktkq.js → sdd-resolve-siblings-qz7gwws5.js} +4 -4
- package/dist/solution-auth-yb1twb9d.js +11 -0
- package/dist/{solution-discovery-gfdqhgt2.js → solution-discovery-t0nkzpm3.js} +4 -4
- package/dist/{strict-case-rules-045kbjvv.js → strict-case-rules-x1sytx3e.js} +91 -46
- package/dist/{strict-entry-points-wd85a81g.js → strict-entry-points-anxeg692.js} +6 -6
- package/dist/strict-sdd-audit-z1bg2zr0.js +28 -0
- package/dist/taggable-variables-gc58xb0s.js +6094 -0
- package/dist/task-type-declaration-b0ejzhc6.js +15 -0
- package/dist/tool.js +13 -11
- package/dist/{tr-7AIZZWZ6-pdzp9n0p.js → tr-FX7WCKK2-x3rx9fjt.js} +1271 -10
- package/dist/{tr-PQLUUHPC-qsb7btxn.js → tr-XD73CQAA-tb2nrpyp.js} +164 -2
- package/dist/{trigger-enrichment-service-dzkht78s.js → trigger-enrichment-service-bsj58ppa.js} +33 -32
- package/dist/{trigger-entry-point-id-4j9rk3kp.js → trigger-entry-point-id-hre2ewts.js} +1 -1
- package/dist/{zh-CN-OHNTHZRI-b0hjkfqn.js → zh-CN-GWP3B2EM-c07fm17a.js} +164 -2
- package/dist/{zh-CN-CN2ARPFS-e0p2qrxf.js → zh-CN-NCMB6YM5-drw9bnxg.js} +1271 -10
- package/dist/{zh-TW-E4D3Y6ZR-tn3bmzz5.js → zh-TW-2DLUOA7C-9khqnr4r.js} +164 -2
- package/dist/{zh-TW-7RUFEVFK-qd7myw31.js → zh-TW-UNIEJPLE-4vxzbphe.js} +1272 -11
- package/package.json +2 -2
- package/dist/case-pack-service-adhg30nq.js +0 -167
- package/dist/index-garh9kcd.js +0 -35
- package/dist/input-reader-pjt4a914.js +0 -10
- package/dist/packager-tool-v11fx4dk.js +0 -25
- package/dist/solution-auth-a1p22hq1.js +0 -11
- package/dist/strict-sdd-audit-6es2j6fs.js +0 -26
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "@uipath/case-tool",
|
|
3
3
|
"author": "UiPath",
|
|
4
4
|
"license": "SEE LICENSE IN LICENSE.txt",
|
|
5
|
-
"version": "1.
|
|
5
|
+
"version": "1.207.0-preview.305",
|
|
6
6
|
"description": "Manage Case Management instances, processes, and incidents.",
|
|
7
7
|
"private": false,
|
|
8
8
|
"repository": {
|
|
@@ -28,5 +28,5 @@
|
|
|
28
28
|
"files": [
|
|
29
29
|
"dist"
|
|
30
30
|
],
|
|
31
|
-
"gitHead": "
|
|
31
|
+
"gitHead": "1600aa89255c37c1b8bc68d9882c3395c1d5bff4"
|
|
32
32
|
}
|
|
@@ -1,167 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
getFileSystem2
|
|
3
|
-
} from "./packager-tool-z070caqq.js";
|
|
4
|
-
import {
|
|
5
|
-
catchError2,
|
|
6
|
-
logger,
|
|
7
|
-
mapPackageMetadataOptions
|
|
8
|
-
} from "./packager-tool-6ewsbrnb.js";
|
|
9
|
-
import {
|
|
10
|
-
ensureProjectId,
|
|
11
|
-
applyDefaultEntryPoint,
|
|
12
|
-
NugetPackager
|
|
13
|
-
} from "./packager-tool-snesn0bt.js";
|
|
14
|
-
import"./packager-tool-1wgav5ma.js";
|
|
15
|
-
import {
|
|
16
|
-
CasePlanFileNames2,
|
|
17
|
-
casePlanSidecarName2,
|
|
18
|
-
findCasePlanFileName2,
|
|
19
|
-
resolveDeclaredFileName2,
|
|
20
|
-
entryPointBpmnNames2,
|
|
21
|
-
misnamedEntryPointBpmn2,
|
|
22
|
-
stagedMainEntryPoint2,
|
|
23
|
-
stagedMainProblem2,
|
|
24
|
-
buildCasePackageDescriptor2,
|
|
25
|
-
casePlanDefaults2
|
|
26
|
-
} from "./packager-tool-4avchhz8.js";
|
|
27
|
-
import {
|
|
28
|
-
VALID_PACKAGE_NAME_REGEX
|
|
29
|
-
} from "./packager-tool-pq9xv4vq.js";
|
|
30
|
-
import {
|
|
31
|
-
loadCaseSchemaAsync
|
|
32
|
-
} from "./packager-tool-zrbnms9b.js";
|
|
33
|
-
|
|
34
|
-
// src/services/case-pack-service.ts
|
|
35
|
-
class CasePackService {
|
|
36
|
-
fs;
|
|
37
|
-
constructor() {
|
|
38
|
-
this.fs = getFileSystem2();
|
|
39
|
-
}
|
|
40
|
-
async execute(projectPath, options) {
|
|
41
|
-
const absoluteProjectPath = this.fs.path.resolve(projectPath);
|
|
42
|
-
const absoluteOutputPath = this.fs.path.resolve(options.output);
|
|
43
|
-
const packageName = options.name || this.fs.path.basename(projectPath);
|
|
44
|
-
if (!VALID_PACKAGE_NAME_REGEX.test(packageName)) {
|
|
45
|
-
throw new Error(`Invalid package name "${packageName}". Package name can only contain letters, numbers, dots (.), underscores (_), and hyphens (-).`);
|
|
46
|
-
}
|
|
47
|
-
logger.info(`
|
|
48
|
-
Packing Case project...
|
|
49
|
-
`);
|
|
50
|
-
logger.info("Details:");
|
|
51
|
-
logger.info(` Project: ${absoluteProjectPath}`);
|
|
52
|
-
logger.info(` Package: ${packageName}@${options.version}`);
|
|
53
|
-
logger.info(` Output: ${absoluteOutputPath}`);
|
|
54
|
-
logger.info("");
|
|
55
|
-
await this.validate(absoluteProjectPath);
|
|
56
|
-
const casePlanFileName = await this.convertCaseToBpmn(absoluteProjectPath);
|
|
57
|
-
await ensureProjectId(absoluteProjectPath, this.fs);
|
|
58
|
-
await this.fs.mkdir(absoluteOutputPath);
|
|
59
|
-
let tempDir;
|
|
60
|
-
try {
|
|
61
|
-
tempDir = await this.fs.getTempDir();
|
|
62
|
-
const stagingDir = this.fs.path.join(tempDir, "case-pack-staging");
|
|
63
|
-
await this.fs.mkdir(stagingDir);
|
|
64
|
-
const contentDir = this.fs.path.join(stagingDir, "content");
|
|
65
|
-
await this.fs.copyDirectory(absoluteProjectPath, contentDir);
|
|
66
|
-
await applyDefaultEntryPoint(this.fs, {
|
|
67
|
-
contentFolder: contentDir,
|
|
68
|
-
withDefaults: await casePlanDefaults2(this.fs, contentDir)
|
|
69
|
-
});
|
|
70
|
-
await this.checkEntryPointBpmn(contentDir, casePlanFileName);
|
|
71
|
-
await this.regeneratePackageDescriptor(contentDir);
|
|
72
|
-
const packageId = `${packageName}.case.Case`;
|
|
73
|
-
const version = options.version || "1.0.0";
|
|
74
|
-
const nupkgPath = this.fs.path.join(absoluteOutputPath, `${packageId}.${version}.nupkg`);
|
|
75
|
-
const packager = new NugetPackager(this.fs);
|
|
76
|
-
const result = await packager.packAsync(stagingDir, {
|
|
77
|
-
id: packageId,
|
|
78
|
-
version,
|
|
79
|
-
tags: "Case",
|
|
80
|
-
...mapPackageMetadataOptions(options)
|
|
81
|
-
}, nupkgPath);
|
|
82
|
-
return {
|
|
83
|
-
packageName: `${packageName}@${options.version}`,
|
|
84
|
-
outputPath: result.outputPath
|
|
85
|
-
};
|
|
86
|
-
} finally {
|
|
87
|
-
if (tempDir) {
|
|
88
|
-
await catchError2((async () => {
|
|
89
|
-
if (await this.fs.exists(tempDir)) {
|
|
90
|
-
await this.fs.rm(tempDir);
|
|
91
|
-
}
|
|
92
|
-
})());
|
|
93
|
-
}
|
|
94
|
-
}
|
|
95
|
-
}
|
|
96
|
-
async convertCaseToBpmn(projectPath) {
|
|
97
|
-
const casePlanFileName = findCasePlanFileName2(await this.fs.readdir(projectPath));
|
|
98
|
-
if (!casePlanFileName) {
|
|
99
|
-
throw new Error(`No case plan in ${projectPath}. Expected one of ${CasePlanFileNames2.join(", ")}.`);
|
|
100
|
-
}
|
|
101
|
-
logger.info("Converting case plan to BPMN...");
|
|
102
|
-
const caseContent = String(await this.fs.readFile(this.fs.path.join(projectPath, casePlanFileName), "utf-8"));
|
|
103
|
-
const { serializeCaseDiskJsonToBpmnAndRulesJson } = await loadCaseSchemaAsync();
|
|
104
|
-
const { bpmnXml: bpmn } = await serializeCaseDiskJsonToBpmnAndRulesJson(caseContent);
|
|
105
|
-
const bpmnFilePath = this.fs.path.join(projectPath, casePlanSidecarName2(casePlanFileName));
|
|
106
|
-
await this.fs.writeFile(bpmnFilePath, bpmn);
|
|
107
|
-
logger.info(`BPMN file written to ${bpmnFilePath}`);
|
|
108
|
-
return casePlanFileName;
|
|
109
|
-
}
|
|
110
|
-
async checkEntryPointBpmn(contentPath, casePlanFileName) {
|
|
111
|
-
const entryPointsPath = this.fs.path.join(contentPath, "entry-points.json");
|
|
112
|
-
if (!await this.fs.exists(entryPointsPath)) {
|
|
113
|
-
return;
|
|
114
|
-
}
|
|
115
|
-
const raw = await this.fs.readFile(entryPointsPath, "utf-8");
|
|
116
|
-
const declared = raw ? entryPointBpmnNames2(String(raw)) : null;
|
|
117
|
-
if (declared === null) {
|
|
118
|
-
throw new Error(`entry-points.json in ${contentPath} could not be read as JSON, so pack cannot check that the BPMN it declares is in the package.`);
|
|
119
|
-
}
|
|
120
|
-
const operate = await this.fs.readFile(this.fs.path.join(contentPath, "operate.json"), "utf-8");
|
|
121
|
-
const staged = stagedMainEntryPoint2(operate === null ? null : String(operate), String(raw));
|
|
122
|
-
const mainEntry = resolveDeclaredFileName2(staged.filePath);
|
|
123
|
-
if (staged.filePath && !declared.includes(mainEntry)) {
|
|
124
|
-
const own = casePlanSidecarName2(casePlanFileName);
|
|
125
|
-
const wording = stagedMainProblem2(staged, mainEntry, own);
|
|
126
|
-
throw new Error(`${wording.problem}, which is not a declared .bpmn file this project ships, so it would deploy and activate and then fault every job. ${wording.fix}.`);
|
|
127
|
-
}
|
|
128
|
-
const present = new Set(await this.fs.readdir(contentPath));
|
|
129
|
-
const missing = declared.filter((file) => !present.has(file));
|
|
130
|
-
if (missing.length > 0) {
|
|
131
|
-
throw new Error(`entry-points.json points at ${missing.join(", ")}, which the package does not contain, so it would deploy and activate and then fault every job.`);
|
|
132
|
-
}
|
|
133
|
-
const misnamed = misnamedEntryPointBpmn2(declared, casePlanFileName);
|
|
134
|
-
if (misnamed) {
|
|
135
|
-
const own = casePlanSidecarName2(casePlanFileName);
|
|
136
|
-
throw new Error(`entry-points.json points at '${misnamed}', the sidecar of a case plan this project does not carry. '${casePlanFileName}' compiles to '${own}', so the entry point would resolve to a BPMN pack did not produce. Point it at '${own}'.`);
|
|
137
|
-
}
|
|
138
|
-
}
|
|
139
|
-
async regeneratePackageDescriptor(contentDir) {
|
|
140
|
-
const contentFiles = await this.fs.readdir(contentDir);
|
|
141
|
-
const descriptor = buildCasePackageDescriptor2(contentFiles);
|
|
142
|
-
await this.fs.writeFile(this.fs.path.join(contentDir, "package-descriptor.json"), `${JSON.stringify(descriptor, null, 2)}
|
|
143
|
-
`);
|
|
144
|
-
}
|
|
145
|
-
async validate(projectPath) {
|
|
146
|
-
if (!await this.fs.exists(projectPath)) {
|
|
147
|
-
throw new Error(`Project path does not exist: ${projectPath}`);
|
|
148
|
-
}
|
|
149
|
-
const stats = await this.fs.stat(projectPath);
|
|
150
|
-
if (!stats?.isDirectory()) {
|
|
151
|
-
throw new Error(`Project path must be a directory: ${projectPath}`);
|
|
152
|
-
}
|
|
153
|
-
const descriptorPath = this.fs.path.join(projectPath, "package-descriptor.json");
|
|
154
|
-
if (!await this.fs.exists(descriptorPath)) {
|
|
155
|
-
throw new Error(`Missing package-descriptor.json in: ${projectPath}`);
|
|
156
|
-
}
|
|
157
|
-
const operatePath = this.fs.path.join(projectPath, "operate.json");
|
|
158
|
-
if (!await this.fs.exists(operatePath)) {
|
|
159
|
-
throw new Error(`Missing operate.json in: ${projectPath}`);
|
|
160
|
-
}
|
|
161
|
-
}
|
|
162
|
-
}
|
|
163
|
-
export {
|
|
164
|
-
CasePackService
|
|
165
|
-
};
|
|
166
|
-
|
|
167
|
-
//# debugId=5D6AA91781A9E2C264756E2164756E21
|
package/dist/index-garh9kcd.js
DELETED
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
import"./packager-tool-3r23qsca.js";
|
|
2
|
-
import"./packager-tool-scy94jyb.js";
|
|
3
|
-
import"./packager-tool-rfdkx9c9.js";
|
|
4
|
-
import"./packager-tool-3zy717ga.js";
|
|
5
|
-
import {
|
|
6
|
-
fetchConnectorMetadata2
|
|
7
|
-
} from "./packager-tool-j69tzg52.js";
|
|
8
|
-
import"./packager-tool-jkwpw95j.js";
|
|
9
|
-
import"./packager-tool-xb16e3tz.js";
|
|
10
|
-
import"./packager-tool-v11fx4dk.js";
|
|
11
|
-
import"./packager-tool-ad8v11jd.js";
|
|
12
|
-
import {
|
|
13
|
-
solutionSearchDirs2,
|
|
14
|
-
readSolutionAt2,
|
|
15
|
-
findSolutionFromCwd2
|
|
16
|
-
} from "./packager-tool-bjt8b2nz.js";
|
|
17
|
-
import"./packager-tool-17b466mr.js";
|
|
18
|
-
import"./packager-tool-cdvrca04.js";
|
|
19
|
-
import"./packager-tool-5dptce1y.js";
|
|
20
|
-
import"./packager-tool-pq9xv4vq.js";
|
|
21
|
-
import"./packager-tool-es77jvky.js";
|
|
22
|
-
import"./packager-tool-dn9d4ywm.js";
|
|
23
|
-
import"./packager-tool-q26hncjr.js";
|
|
24
|
-
import"./packager-tool-68648y3j.js";
|
|
25
|
-
import"./packager-tool-h2ar8xf8.js";
|
|
26
|
-
import"./packager-tool-6ewsbrnb.js";
|
|
27
|
-
import"./packager-tool-z070caqq.js";
|
|
28
|
-
export {
|
|
29
|
-
fetchConnectorMetadata2 as fetchConnectorMetadata,
|
|
30
|
-
findSolutionFromCwd2 as findSolutionFromCwd,
|
|
31
|
-
readSolutionAt2 as readSolutionAt,
|
|
32
|
-
solutionSearchDirs2 as solutionSearchDirs
|
|
33
|
-
};
|
|
34
|
-
|
|
35
|
-
//# debugId=318104EE05A2B2B264756E2164756E21
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
ootbNodes,
|
|
3
|
-
inlineAgentNodes,
|
|
4
|
-
buildExtractDocumentBuilderNode
|
|
5
|
-
} from "./packager-tool-17b466mr.js";
|
|
6
|
-
|
|
7
|
-
// ../maestro-sdk/src/registry/known-types.ts
|
|
8
|
-
var KNOWN_SDK_NODES = [
|
|
9
|
-
...ootbNodes,
|
|
10
|
-
...inlineAgentNodes,
|
|
11
|
-
buildExtractDocumentBuilderNode()
|
|
12
|
-
];
|
|
13
|
-
var KNOWN_SDK_NODE_TYPES = new Set(KNOWN_SDK_NODES.map((n) => n.nodeType.toLowerCase()).filter((t) => typeof t === "string" && t.length > 0));
|
|
14
|
-
function isKnownSdkNodeType2(nodeType) {
|
|
15
|
-
if (typeof nodeType !== "string" || nodeType.length === 0)
|
|
16
|
-
return false;
|
|
17
|
-
return KNOWN_SDK_NODE_TYPES.has(nodeType.toLowerCase());
|
|
18
|
-
}
|
|
19
|
-
function listKnownSdkNodes2() {
|
|
20
|
-
return KNOWN_SDK_NODES.slice();
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
export { isKnownSdkNodeType2, listKnownSdkNodes2 };
|
|
24
|
-
|
|
25
|
-
//# debugId=AA44820AC8C7293D64756E2164756E21
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
getSolutionAuthContext2
|
|
3
|
-
} from "./packager-tool-bg3tdpva.js";
|
|
4
|
-
import"./packager-tool-dn9d4ywm.js";
|
|
5
|
-
import"./packager-tool-q26hncjr.js";
|
|
6
|
-
import"./packager-tool-z070caqq.js";
|
|
7
|
-
export {
|
|
8
|
-
getSolutionAuthContext2 as getSolutionAuthContext
|
|
9
|
-
};
|
|
10
|
-
|
|
11
|
-
//# debugId=8C64D22B8E0C22F864756E2164756E21
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
VARIABLE_PLACEMENT2,
|
|
3
|
-
DEFAULT_GROUP2,
|
|
4
|
-
parseSddToJson2,
|
|
5
|
-
auditCaseplanAgainstSdd2
|
|
6
|
-
} from "./packager-tool-cqkbf2fg.js";
|
|
7
|
-
import"./packager-tool-yh8mmj3p.js";
|
|
8
|
-
import"./packager-tool-stdwmgvd.js";
|
|
9
|
-
import"./packager-tool-mk9fmzdy.js";
|
|
10
|
-
import"./packager-tool-5w0gjcck.js";
|
|
11
|
-
import"./packager-tool-fcektt1g.js";
|
|
12
|
-
import"./packager-tool-wy3a65rx.js";
|
|
13
|
-
import"./packager-tool-7x1tmb8a.js";
|
|
14
|
-
import"./packager-tool-1wgav5ma.js";
|
|
15
|
-
import"./packager-tool-68648y3j.js";
|
|
16
|
-
import"./packager-tool-h2ar8xf8.js";
|
|
17
|
-
import"./packager-tool-6ewsbrnb.js";
|
|
18
|
-
import"./packager-tool-z070caqq.js";
|
|
19
|
-
export {
|
|
20
|
-
DEFAULT_GROUP2 as DEFAULT_GROUP,
|
|
21
|
-
VARIABLE_PLACEMENT2 as VARIABLE_PLACEMENT,
|
|
22
|
-
auditCaseplanAgainstSdd2 as auditCaseplanAgainstSdd,
|
|
23
|
-
parseSddToJson2 as parseSddToJson
|
|
24
|
-
};
|
|
25
|
-
|
|
26
|
-
//# debugId=FA8E483DB095A3AB64756E2164756E21
|