@uipath/case-tool 1.205.0-preview.276 → 1.206.0-preview.279
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/THIRD-PARTY-NOTICES.md +68 -7
- package/dist/applicationinsights-web-8m26566f.js +17209 -0
- package/dist/{authoring-kqh34zzm.js → authoring-vg90pqrn.js} +488 -213
- package/dist/bindings-v2-1da35xsc.js +27 -0
- package/dist/{browser-strategy-6atc7v8s.js → browser-strategy-627rrg7z.js} +6 -7
- package/dist/{business-rule-export-ey588rv7.js → business-rule-export-jv60r9jf.js} +3 -7
- package/dist/carry-forward-sfdnta6q.js +52 -0
- package/dist/{case-api-sme7esce.js → case-api-by95rf40.js} +38 -37
- package/dist/{case-bindings-service-cht20gqt.js → case-bindings-service-pp3c9g1e.js} +93 -45
- package/dist/{case-debug-solution-projects-g871p7tg.js → case-debug-solution-projects-zhnn53e5.js} +3 -7
- package/dist/{case-debug-studio-web-service-0b1kwswy.js → case-debug-studio-web-service-fvj41xrq.js} +48 -45
- package/dist/{case-described-io-service-dx1f4nxe.js → case-described-io-service-tsm8r189.js} +33 -15
- package/dist/case-event-trigger-bindings-qbs8ywf5.js +17 -0
- package/dist/{case-format-service-6aew6tqc.js → case-format-service-3sab2297.js} +9 -10
- package/dist/{case-pack-service-pqq8wnfd.js → case-pack-service-txnv711n.js} +47 -42
- package/dist/case-schema-version-cw0h2nrv.js +18 -0
- package/dist/case-shape-reader-xaxmrd40.js +14 -0
- package/dist/{case-splice-service-s5gccctq.js → case-splice-service-6y35w83e.js} +139 -51
- package/dist/{case-validate-service-311sf3ee.js → case-validate-service-4zdx7d2w.js} +234 -170
- package/dist/connector-enrichment-service-mws6z0hw.js +56 -0
- package/dist/connector-library-1yw5r47w.js +99 -0
- package/dist/connector-lookup-service-0t7ydz3t.js +20 -0
- package/dist/connector-task-shape-bgywpbqc.js +13 -0
- package/dist/{de-WLW6KWOJ-2qnsqdtw.js → de-2BEKRUMY-x4dx0nn9.js} +190 -10
- package/dist/{de-UZI7FJDO-mwvc4cxe.js → de-AI7ML6JM-km47f8k4.js} +20 -5
- package/dist/debug-service-h4jxbn1r.js +56 -0
- package/dist/{embedded-file-reader-r66242ey.js → embedded-file-reader-0228j82a.js} +1 -4
- package/dist/en-LAVDF7IQ-yzy20n6d.js +254 -0
- package/dist/en-X6T4SP2Y-xm47mf18.js +2752 -0
- package/dist/{enrichment-service-hv7ff88p.js → enrichment-service-wpprec7k.js} +36 -37
- package/dist/{es-5THCNRFN-tqwyrdgy.js → es-7ZTQTGKN-11sj0yjx.js} +190 -10
- package/dist/{es-MX-5RELIXKI-9jhqtddc.js → es-MX-7KJZPEQN-1fq0a9jr.js} +20 -5
- package/dist/{es-MX-TWZBRAXK-gqd9swzw.js → es-MX-IHGRIEWH-g63p0gb4.js} +191 -11
- package/dist/{es-4UBUTCQA-m1ytpyx2.js → es-SPNKTD5Y-vw5cbgv5.js} +20 -5
- package/dist/filter-engine-dh9s90gb.js +10 -0
- package/dist/first-party-service-ahcc6xc6.js +8 -0
- package/dist/{fr-CERONSRC-edpxhbmb.js → fr-7ZDL4MVO-pd27vwh6.js} +191 -11
- package/dist/{fr-VBM5WRC2-63z7w4mh.js → fr-AXJGUT53-hdg3pmd4.js} +20 -5
- package/dist/index-21kns9qg.js +10 -0
- package/dist/{index-fyc0k5dd.js → index-5pzp2qeb.js} +5350 -3271
- package/dist/{index-5dxh9z60.js → index-a7y7etmy.js} +6 -5
- package/dist/{index-ekwtgx7y.js → index-ec115v05.js} +309 -287
- package/dist/{connector-task-spec-gjsfdysf.js → index-n4g6qvab.js} +320 -144
- package/dist/index-nj3axvya.js +159 -0
- package/dist/{index-h8cph72k.js → index-nzr4mx5p.js} +2 -22
- package/dist/index-pg9wmyrf.js +36 -0
- package/dist/index-sgpbvm8j.js +26 -0
- package/dist/index-t0sz0svn.js +35 -0
- package/dist/index-z2qk2qn6.js +24 -0
- package/dist/index.js +19 -25
- package/dist/index.umd.min-ttg1qc0x.js +7814 -0
- package/dist/{init-entry-points-hhpv3e3f.js → init-entry-points-pc128f7z.js} +22 -35
- package/dist/input-reader-9ym8mkbc.js +10 -0
- package/dist/{ja-43QL7CGO-c3q8gre9.js → ja-C7GZV6YP-hvtbngr5.js} +20 -5
- package/dist/{ja-U2MCNHGT-gz0ap1jk.js → ja-LGAM5HKR-sgrtjqjh.js} +190 -10
- package/dist/{jmespath-e4a59c8w.js → jmespath-wwym30dp.js} +1 -1
- package/dist/{js-yaml-87cdx6bm.js → js-yaml-a2bk27p6.js} +1 -3
- package/dist/known-types-gak9by1w.js +11 -0
- package/dist/{ko-XAUYQWDR-zp81gjp4.js → ko-7B4SUZB7-c8wr20sc.js} +190 -10
- package/dist/{ko-TLL6Z6CD-wrt3n8a9.js → ko-Q24HSSL4-5vn55pte.js} +20 -5
- package/dist/localSolutionDiscovery-48d1bnkj.js +15 -0
- package/dist/{migration-diagnosis-ns5cw4e3.js → migration-diagnosis-myqqgwj0.js} +1 -4
- package/dist/{node-strategy-v442hwgd.js → node-strategy-2mqzg36t.js} +15 -18
- package/dist/node-sync-service-tr5m22nb.js +56 -0
- package/dist/{out-target-wjgmna0r.js → out-target-eqsttq1k.js} +18 -22
- package/dist/{packager-tool-f8vwy92w.js → packager-tool-0te1tyhf.js} +186 -16
- package/dist/{packager-tool-ydyvtknp.js → packager-tool-0w4fsdzv.js} +44 -20
- package/dist/{packager-tool-8ftat1vn.js → packager-tool-17b466mr.js} +59158 -59666
- package/dist/packager-tool-1nfdj0zm.js +425 -0
- package/dist/packager-tool-1wgav5ma.js +139 -0
- package/dist/{packager-tool-0wwc2phf.js → packager-tool-32792w66.js} +66 -82
- package/dist/{packager-tool-nj4seavy.js → packager-tool-35c9npcy.js} +26 -7
- package/dist/{packager-tool-r0x3qh59.js → packager-tool-388vyja1.js} +185 -29
- package/dist/packager-tool-3m8482sw.js +78 -0
- package/dist/packager-tool-3r23qsca.js +4832 -0
- package/dist/packager-tool-4avchhz8.js +539 -0
- package/dist/{packager-tool-2ns09tvh.js → packager-tool-4wn3b7qp.js} +252 -468
- package/dist/{packager-tool-8wkterdq.js → packager-tool-5jt5rc2g.js} +630 -689
- package/dist/{packager-tool-9kvkzc05.js → packager-tool-5w0gjcck.js} +4 -4
- package/dist/packager-tool-68648y3j.js +6 -0
- package/dist/{packager-tool-1yh8g550.js → packager-tool-6an893wm.js} +12 -3
- package/dist/{packager-tool-aagnvyba.js → packager-tool-76zhn5pa.js} +131 -432
- package/dist/packager-tool-7x1tmb8a.js +46 -0
- package/dist/{packager-tool-kyrm4e5m.js → packager-tool-9ar5829n.js} +781 -741
- package/dist/{packager-tool-4p11fvf4.js → packager-tool-b2q8m9pq.js} +10 -13
- package/dist/packager-tool-bg3tdpva.js +27 -0
- package/dist/packager-tool-bpkkg4z2.js +295 -0
- package/dist/{packager-tool-yn33pw57.js → packager-tool-dn9d4ywm.js} +246 -225
- package/dist/{packager-tool-kdhey8gz.js → packager-tool-e02jkmrq.js} +41 -29
- package/dist/{packager-tool-sq931c23.js → packager-tool-e1tx5mqg.js} +1 -1
- package/dist/packager-tool-gt3bsmfp.js +1302 -0
- package/dist/packager-tool-gy4yjqhf.js +178 -0
- package/dist/packager-tool-h2ar8xf8.js +222 -0
- package/dist/{packager-tool-v2kcgjbf.js → packager-tool-j6nfje7t.js} +5 -4
- package/dist/packager-tool-kz7zz79p.js +71 -0
- package/dist/{packager-tool-9e59z4d6.js → packager-tool-me8gd22q.js} +82 -83
- package/dist/packager-tool-mk9fmzdy.js +20 -0
- package/dist/{packager-tool-gdtpsdn7.js → packager-tool-mm1x18d6.js} +223 -28
- package/dist/{packager-tool-1a5v21za.js → packager-tool-nd312sma.js} +32 -15
- package/dist/{packager-tool-mqy97y5f.js → packager-tool-p5gs9xqy.js} +14 -14
- package/dist/{packager-tool-83v804p7.js → packager-tool-psmb758n.js} +3108 -2627
- package/dist/packager-tool-q26hncjr.js +13 -0
- package/dist/packager-tool-q9fnx278.js +77 -0
- package/dist/{packager-tool-ezds6t5e.js → packager-tool-s12s1dp6.js} +11 -11
- package/dist/packager-tool-scy94jyb.js +5424 -0
- package/dist/{packager-tool-yn7r7zq2.js → packager-tool-snesn0bt.js} +177 -96
- package/dist/{packager-tool-d8e2mrkq.js → packager-tool-tgehy324.js} +56 -56
- package/dist/{packager-tool-tqn0j6f9.js → packager-tool-v11fx4dk.js} +7 -7
- package/dist/{packager-tool-67vy1fz3.js → packager-tool-v6rkp2ay.js} +24 -92
- package/dist/{packager-tool-9sd483vs.js → packager-tool-vs7gqa4r.js} +15 -15
- package/dist/packager-tool-vyavrbym.js +488 -0
- package/dist/{packager-tool-b098y4a2.js → packager-tool-wbksf242.js} +97 -97
- package/dist/{packager-tool-b5rxh1hk.js → packager-tool-x1f8ypvs.js} +256 -486
- package/dist/{packager-tool-2sn7d8fd.js → packager-tool-x74mmjkw.js} +9 -13
- package/dist/{packager-tool-7hw344bt.js → packager-tool-xb16e3tz.js} +5 -5
- package/dist/{packager-tool-a17g0pj1.js → packager-tool-xd1wbvay.js} +10 -8
- package/dist/{packager-tool-1yfw674x.js → packager-tool-xehhk3c3.js} +10 -5
- package/dist/packager-tool-yh8mmj3p.js +123 -0
- package/dist/{packager-tool-hdxtgckw.js → packager-tool-z070caqq.js} +56 -12
- package/dist/{packager-tool-b250k6w4.js → packager-tool-z1fw9a8v.js} +41 -9
- package/dist/{packager-tool-0gctz400.js → packager-tool-z9fmqtm6.js} +4 -4
- package/dist/{packager-tool-mzf4gmph.js → packager-tool-zbx189j3.js} +11 -8
- package/dist/{packager-tool-zf8f9pmm.js → packager-tool-zrbnms9b.js} +3 -4
- package/dist/packager-tool.js +10 -11
- package/dist/prepare-uip-ad7mfs8t.js +92 -0
- package/dist/{project-artifacts-bgyyb0dm.js → project-artifacts-q0c0zghw.js} +2 -6
- package/dist/{pt-BR-USP2T7GD-pedn77m1.js → pt-BR-BIUJXIPU-2sqzhr8y.js} +20 -5
- package/dist/{pt-BR-GNQNAAZ2-xadharv4.js → pt-BR-PHLFHMXZ-n6de4s7z.js} +191 -11
- package/dist/{pt-RMIAKZB4-67enhx3m.js → pt-MHX6JGAX-xfgvdqwg.js} +20 -5
- package/dist/{pt-TO2DARY2-ftcce1bv.js → pt-N7ZTJT4W-d6c67xcn.js} +190 -10
- package/dist/{resolved-check-aqw7568y.js → resolved-check-dz8eqrf6.js} +2 -3
- package/dist/{resourcesSyncService-0hm54p73.js → resourcesSyncService-sgnkcvpt.js} +81 -141
- package/dist/{ro-GHOBYW2S-mhnqsgaa.js → ro-3RKJNGJZ-xqj14e3d.js} +20 -5
- package/dist/{ro-WUYJV6OW-a8d9qy1n.js → ro-FLNXVYJI-ytrwabg2.js} +190 -10
- package/dist/ru-GSCT4ARZ-c2cfq4h1.js +7 -0
- package/dist/ru-WBLQ5B2U-bf20yr5y.js +7 -0
- package/dist/{rule-group-members-zje7n3kf.js → rule-group-members-p0nv1rmj.js} +1 -3
- package/dist/rule-type-declaration-s2nxpcfy.js +77 -0
- package/dist/{sdd-convert-service-8jpew7vz.js → sdd-convert-service-ffbx00k6.js} +481 -504
- package/dist/{sdd-lookup-fe900sdb.js → sdd-lookup-sah7wj5j.js} +8 -9
- package/dist/{sdd-resolve-service-qdtmxw9b.js → sdd-resolve-service-6nt10vhq.js} +28 -20
- package/dist/{sdd-resolve-siblings-bxxdy3x7.js → sdd-resolve-siblings-5q28qcw8.js} +11 -14
- package/dist/solution-auth-a1p22hq1.js +11 -0
- package/dist/solution-discovery-r1y550sz.js +33 -0
- package/dist/{strict-case-rules-4tjcaznr.js → strict-case-rules-045kbjvv.js} +16 -28
- package/dist/{strict-entry-points-g2pd4mf4.js → strict-entry-points-40ha9afz.js} +15 -14
- package/dist/strict-sdd-audit-bp7fq2tg.js +26 -0
- package/dist/{task-selector-8bjn35dv.js → task-selector-jt60hdbt.js} +1 -3
- package/dist/{task-type-declaration-7a8fqdvs.js → task-type-declaration-yhczvj05.js} +9 -9
- package/dist/tool.js +18 -24
- package/dist/{tr-M3F5A6AU-bb0tg39m.js → tr-7AIZZWZ6-pdzp9n0p.js} +190 -10
- package/dist/{tr-GDTLECMM-k5fhmq13.js → tr-PQLUUHPC-qsb7btxn.js} +20 -5
- package/dist/{trigger-enrichment-service-4c6g6may.js → trigger-enrichment-service-r4gmxvka.js} +53 -57
- package/dist/trigger-entry-point-id-751v48qd.js +14 -0
- package/dist/{zh-CN-C5G4PC7C-ds9gkptg.js → zh-CN-CN2ARPFS-e0p2qrxf.js} +190 -10
- package/dist/{zh-CN-I5D7WHBD-sr5h0a98.js → zh-CN-OHNTHZRI-b0hjkfqn.js} +20 -5
- package/dist/{zh-TW-62HZIG6O-787kdwex.js → zh-TW-7RUFEVFK-qd7myw31.js} +190 -10
- package/dist/{zh-TW-2AVLM723-288pkc1z.js → zh-TW-E4D3Y6ZR-tn3bmzz5.js} +20 -5
- package/package.json +2 -2
- package/dist/canvas-notes-86fxx1t8.js +0 -19
- package/dist/case-event-trigger-bindings-g9ftnm4x.js +0 -16
- package/dist/case-schema-version-h820ne16.js +0 -20
- package/dist/case-shape-reader-dsbraetf.js +0 -13
- package/dist/connector-enrichment-service-08tea3m1.js +0 -65
- package/dist/connector-lookup-service-x50n59dg.js +0 -22
- package/dist/connector-task-shape-mpazkf7s.js +0 -14
- package/dist/debug-service-7q98j726.js +0 -59
- package/dist/en-EJCBA3LK-dtpdghgj.js +0 -146
- package/dist/en-M7GQYBV2-5nfmpnfz.js +0 -2018
- package/dist/filter-engine-7ep90g7f.js +0 -11
- package/dist/first-party-service-srxaftkn.js +0 -27
- package/dist/index-8ybf5kqc.js +0 -666
- package/dist/index-kmp9fmhb.js +0 -25
- package/dist/index-n9qvnx4x.js +0 -29
- package/dist/index-ngs0a2he.js +0 -15
- package/dist/index-qvxg2haf.js +0 -282
- package/dist/index-xq6ajhgq.js +0 -157
- package/dist/index.umd.min-fqefd9kn.js +0 -7814
- package/dist/input-reader-c7wz8ra2.js +0 -11
- package/dist/known-types-5b6yrsqn.js +0 -16
- package/dist/localSolutionDiscovery-yyx234ak.js +0 -13
- package/dist/node-sync-service-6jsqx7eg.js +0 -57
- package/dist/packager-tool-53w8skv5.js +0 -262
- package/dist/packager-tool-6z1hsm2h.js +0 -143
- package/dist/packager-tool-93mdeqay.js +0 -18
- package/dist/packager-tool-9kf3fqtr.js +0 -23
- package/dist/packager-tool-bfgdz1zh.js +0 -73
- package/dist/packager-tool-e15kqpyh.js +0 -266
- package/dist/packager-tool-jysvpt8p.js +0 -11
- package/dist/packager-tool-pcvhcn2k.js +0 -2019
- package/dist/packager-tool-rk25wp3c.js +0 -28
- package/dist/packager-tool-sc961w0q.js +0 -16
- package/dist/packager-tool-vhx08y8p.js +0 -5365
- package/dist/packager-tool-wekqkmgn.js +0 -265
- package/dist/packager-tool-xz2px32y.js +0 -13189
- package/dist/packager-tool-yc4kw997.js +0 -13
- package/dist/ru-GSCT4ARZ-1sa9wbr8.js +0 -10
- package/dist/ru-WBLQ5B2U-s4em88p0.js +0 -10
- package/dist/solution-auth-30yycqtv.js +0 -14
- package/dist/solution-discovery-e9mamp6w.js +0 -38
- package/dist/strict-sdd-audit-q7tb9yj7.js +0 -25
- package/dist/trigger-entry-point-id-yhqwnkx9.js +0 -15
- /package/dist/{packager-tool-5qp9xza1.js → packager-tool-1c30ttpm.js} +0 -0
- /package/dist/{packager-tool-mknccck5.js → packager-tool-1h7abxw6.js} +0 -0
- /package/dist/{packager-tool-9y1w2wds.js → packager-tool-fcektt1g.js} +0 -0
- /package/dist/{packager-tool-k6jbedyc.js → packager-tool-hcdnc420.js} +0 -0
- /package/dist/{packager-tool-7nxppa3d.js → packager-tool-jv5byaww.js} +0 -0
- /package/dist/{packager-tool-qa9gftnj.js → packager-tool-mxgybnmt.js} +0 -0
- /package/dist/{packager-tool-87y6xw3a.js → packager-tool-nfhtwa72.js} +0 -0
- /package/dist/{packager-tool-cv05dwac.js → packager-tool-p0rdmmvk.js} +0 -0
- /package/dist/{packager-tool-21qfsbxn.js → packager-tool-yaertxsw.js} +0 -0
|
@@ -1,23 +1,19 @@
|
|
|
1
|
-
import {
|
|
2
|
-
__require
|
|
3
|
-
} from "./packager-tool-1yh8g550.js";
|
|
4
|
-
|
|
5
1
|
// src/services/trigger-entry-point-id.ts
|
|
6
2
|
var CURRENT_TRIGGER = "uipath.case.trigger";
|
|
7
3
|
var asRow = (value) => typeof value === "object" && value !== null && !Array.isArray(value) ? value : undefined;
|
|
8
|
-
var
|
|
4
|
+
var currentTriggers2 = (plan) => {
|
|
9
5
|
const nodes = asRow(plan)?.nodes;
|
|
10
6
|
if (!Array.isArray(nodes))
|
|
11
7
|
return [];
|
|
12
8
|
return nodes.map(asRow).filter((node) => node !== undefined && node.type === CURRENT_TRIGGER && typeof node.id === "string");
|
|
13
9
|
};
|
|
14
|
-
var
|
|
10
|
+
var entryPointIdOf2 = (node) => {
|
|
15
11
|
const value = asRow(asRow(node.data)?.inputs)?.entryPointId;
|
|
16
12
|
return typeof value === "string" && value !== "" ? value : undefined;
|
|
17
13
|
};
|
|
18
|
-
var
|
|
14
|
+
var stampEntryPointIds2 = (plan, ids) => {
|
|
19
15
|
let written = 0;
|
|
20
|
-
for (const node of
|
|
16
|
+
for (const node of currentTriggers2(plan)) {
|
|
21
17
|
const id = ids.get(node.id);
|
|
22
18
|
if (id === undefined)
|
|
23
19
|
continue;
|
|
@@ -28,14 +24,14 @@ var stampEntryPointIds = (plan, ids) => {
|
|
|
28
24
|
}
|
|
29
25
|
return written;
|
|
30
26
|
};
|
|
31
|
-
var
|
|
32
|
-
const { readEntryPointIds } = await import("./case-event-trigger-bindings-
|
|
27
|
+
var stampFromEntryPointsBeside2 = async (plan, out) => {
|
|
28
|
+
const { readEntryPointIds } = await import("./case-event-trigger-bindings-qbs8ywf5.js");
|
|
33
29
|
const read = await readEntryPointIds(out);
|
|
34
30
|
if ("error" in read)
|
|
35
31
|
return { error: read.error };
|
|
36
|
-
return { written:
|
|
32
|
+
return { written: stampEntryPointIds2(plan, read.ids) };
|
|
37
33
|
};
|
|
38
34
|
|
|
39
|
-
export {
|
|
35
|
+
export { currentTriggers2, entryPointIdOf2, stampEntryPointIds2, stampFromEntryPointsBeside2 };
|
|
40
36
|
|
|
41
|
-
//# debugId=
|
|
37
|
+
//# debugId=A1B9444C8071B39D64756E2164756E21
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
// ../maestro-sdk/src/registry/filter-engine.ts
|
|
2
|
-
function
|
|
2
|
+
function filterNodes2(nodes, parsedFilters) {
|
|
3
3
|
if (!parsedFilters.filters || parsedFilters.filters.length === 0) {
|
|
4
4
|
return nodes;
|
|
5
5
|
}
|
|
@@ -70,10 +70,10 @@ function getFieldValue(node, field) {
|
|
|
70
70
|
return node[field];
|
|
71
71
|
}
|
|
72
72
|
}
|
|
73
|
-
function
|
|
73
|
+
function searchWithFilters2(nodes, keyword, filters) {
|
|
74
74
|
let results = nodes;
|
|
75
75
|
if (filters && filters.filters.length > 0) {
|
|
76
|
-
results =
|
|
76
|
+
results = filterNodes2(results, filters);
|
|
77
77
|
}
|
|
78
78
|
if (keyword && keyword.trim() !== "") {
|
|
79
79
|
const lowerKeyword = keyword.toLowerCase();
|
|
@@ -102,6 +102,6 @@ function searchWithFilters(nodes, keyword, filters) {
|
|
|
102
102
|
return results;
|
|
103
103
|
}
|
|
104
104
|
|
|
105
|
-
export {
|
|
105
|
+
export { filterNodes2, searchWithFilters2 };
|
|
106
106
|
|
|
107
|
-
//# debugId=
|
|
107
|
+
//# debugId=A8C2AA775C3F632764756E2164756E21
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
3
|
-
} from "./packager-tool-
|
|
2
|
+
CONNECTOR_CALL_TASK_TYPES
|
|
3
|
+
} from "./packager-tool-7x1tmb8a.js";
|
|
4
4
|
|
|
5
5
|
// src/services/connector-task-shape.ts
|
|
6
6
|
var DESIGNER_CONTEXT_ORDER = [
|
|
@@ -12,11 +12,13 @@ var DESIGNER_CONTEXT_ORDER = [
|
|
|
12
12
|
"path",
|
|
13
13
|
"objectName",
|
|
14
14
|
"operation",
|
|
15
|
+
"eventMode",
|
|
16
|
+
"executionType",
|
|
15
17
|
"metadata"
|
|
16
18
|
];
|
|
17
19
|
var asRows = (value) => Array.isArray(value) ? value.filter((one) => typeof one === "object" && one !== null) : [];
|
|
18
|
-
var
|
|
19
|
-
if (!
|
|
20
|
+
var designerConnectorShape2 = (task) => {
|
|
21
|
+
if (typeof task.type !== "string" || !CONNECTOR_CALL_TASK_TYPES.has(task.type))
|
|
20
22
|
return;
|
|
21
23
|
const data = task.data;
|
|
22
24
|
if (typeof data !== "object" || data === null)
|
|
@@ -40,7 +42,7 @@ var designerConnectorShape = (task) => {
|
|
|
40
42
|
if (body.bindings === undefined)
|
|
41
43
|
body.bindings = [];
|
|
42
44
|
};
|
|
43
|
-
var
|
|
45
|
+
var designerShapeConnectorTasks2 = (plan, only = () => true) => {
|
|
44
46
|
for (const node of asRows(plan.nodes)) {
|
|
45
47
|
const data = node.data;
|
|
46
48
|
if (typeof data !== "object" || data === null)
|
|
@@ -51,12 +53,12 @@ var designerShapeConnectorTasks = (plan, only = () => true) => {
|
|
|
51
53
|
for (const lane of lanes) {
|
|
52
54
|
for (const task of asRows(lane)) {
|
|
53
55
|
if (only(task))
|
|
54
|
-
|
|
56
|
+
designerConnectorShape2(task);
|
|
55
57
|
}
|
|
56
58
|
}
|
|
57
59
|
}
|
|
58
60
|
};
|
|
59
61
|
|
|
60
|
-
export {
|
|
62
|
+
export { designerConnectorShape2, designerShapeConnectorTasks2 };
|
|
61
63
|
|
|
62
|
-
//# debugId=
|
|
64
|
+
//# debugId=F2E2B9A7331C95A064756E2164756E21
|
|
@@ -35,7 +35,7 @@ var canonicalEntry = (value) => {
|
|
|
35
35
|
var canonicalList = (value) => Array.isArray(value) ? value.map(canonicalEntry) : [];
|
|
36
36
|
var pick = (shape, lower, upper) => shape[lower] ?? shape[upper];
|
|
37
37
|
var hasShapeArrays = (value) => Array.isArray(pick(value, "context", "Context")) || Array.isArray(pick(value, "inputs", "Inputs")) || Array.isArray(pick(value, "outputs", "Outputs"));
|
|
38
|
-
var
|
|
38
|
+
var readCaseShape2 = (document) => {
|
|
39
39
|
const data = asRecord(document.Data) ?? asRecord(document.data);
|
|
40
40
|
const candidates = [
|
|
41
41
|
asRecord(data?.CaseShape),
|
|
@@ -53,13 +53,13 @@ var readCaseShape = (document) => {
|
|
|
53
53
|
outputs: canonicalList(pick(shape, "outputs", "Outputs"))
|
|
54
54
|
};
|
|
55
55
|
};
|
|
56
|
-
var
|
|
56
|
+
var readSpecFolderKey2 = (document) => {
|
|
57
57
|
const data = asRecord(document.Data) ?? asRecord(document.data);
|
|
58
58
|
const connection = asRecord(data?.Connection) ?? asRecord(data?.connection);
|
|
59
59
|
const key = connection?.FolderKey ?? connection?.folderKey;
|
|
60
60
|
return typeof key === "string" && key !== "" ? key : undefined;
|
|
61
61
|
};
|
|
62
|
-
var
|
|
62
|
+
var readIoRows2 = (document) => {
|
|
63
63
|
const data = asRecord(document.Data) ?? asRecord(document.data) ?? document;
|
|
64
64
|
const inputs = pick(data, "inputs", "Inputs");
|
|
65
65
|
const outputs = pick(data, "outputs", "Outputs");
|
|
@@ -72,7 +72,12 @@ var readIoRows = (document) => {
|
|
|
72
72
|
...typeof version === "string" && { version }
|
|
73
73
|
};
|
|
74
74
|
};
|
|
75
|
+
var readResourceBindings2 = (document) => {
|
|
76
|
+
const data = asRecord(document.Data) ?? asRecord(document.data);
|
|
77
|
+
const value = data?.ResourceBindings ?? data?.resourceBindings ?? document.ResourceBindings ?? document.resourceBindings;
|
|
78
|
+
return Array.isArray(value) ? value.filter((entry) => asRecord(entry) !== undefined && Array.isArray(entry.rows)) : [];
|
|
79
|
+
};
|
|
75
80
|
|
|
76
|
-
export {
|
|
81
|
+
export { readCaseShape2, readSpecFolderKey2, readIoRows2, readResourceBindings2 };
|
|
77
82
|
|
|
78
|
-
//# debugId=
|
|
83
|
+
//# debugId=C8E5D15F6C1D1ECF64756E2164756E21
|
|
@@ -0,0 +1,123 @@
|
|
|
1
|
+
import {
|
|
2
|
+
CASE_APP_ROLE_ACTIONS,
|
|
3
|
+
CASE_APP_ROLE_ACTION_KEYS,
|
|
4
|
+
STAGE_ALLOWED_ROLE_ACTION_KEYS,
|
|
5
|
+
roleActionGateOf,
|
|
6
|
+
CASE_ROLE_NAME_MAX_LENGTH,
|
|
7
|
+
CASE_ROLE_DESCRIPTION_MAX_LENGTH,
|
|
8
|
+
CASE_ROLE_NAME_FORBIDDEN,
|
|
9
|
+
roleActionKeyFor
|
|
10
|
+
} from "./packager-tool-1wgav5ma.js";
|
|
11
|
+
|
|
12
|
+
// src/services/case-personas.ts
|
|
13
|
+
var ACTION_ORDER = new Map(CASE_APP_ROLE_ACTION_KEYS.map((key, index) => [key, index]));
|
|
14
|
+
var listKeys = (keys) => keys.join(", ");
|
|
15
|
+
var scopeOf = (cell) => {
|
|
16
|
+
switch ((cell ?? "").trim().toLowerCase()) {
|
|
17
|
+
case "case":
|
|
18
|
+
return "case";
|
|
19
|
+
case "stages":
|
|
20
|
+
case "stage":
|
|
21
|
+
return "stages";
|
|
22
|
+
default:
|
|
23
|
+
return;
|
|
24
|
+
}
|
|
25
|
+
};
|
|
26
|
+
var resolvePersonas = (personas, resolveStage) => {
|
|
27
|
+
const roles = [];
|
|
28
|
+
const problems = [];
|
|
29
|
+
const seen = new Set;
|
|
30
|
+
for (const persona of personas) {
|
|
31
|
+
const { name } = persona;
|
|
32
|
+
const report = (code, detail) => {
|
|
33
|
+
problems.push({ persona: name, code, detail });
|
|
34
|
+
};
|
|
35
|
+
if (seen.has(name.toLowerCase())) {
|
|
36
|
+
report("duplicate", `persona "${name}" is declared twice; AuthZ matches a role by name, so only the first row can become one`);
|
|
37
|
+
continue;
|
|
38
|
+
}
|
|
39
|
+
seen.add(name.toLowerCase());
|
|
40
|
+
if (name.length > CASE_ROLE_NAME_MAX_LENGTH) {
|
|
41
|
+
report("name", `persona name "${name}" is ${name.length} characters; a role name is at most ${CASE_ROLE_NAME_MAX_LENGTH}`);
|
|
42
|
+
continue;
|
|
43
|
+
}
|
|
44
|
+
if (CASE_ROLE_NAME_FORBIDDEN.test(name)) {
|
|
45
|
+
report("name", `persona name "${name}" carries a character a role name cannot (one of < > " % ; & ')`);
|
|
46
|
+
continue;
|
|
47
|
+
}
|
|
48
|
+
const scope = scopeOf(persona.scope);
|
|
49
|
+
if (scope === undefined) {
|
|
50
|
+
report("scope", `persona "${name}" has Scope "${persona.scope ?? ""}"; it must be Case or Stages`);
|
|
51
|
+
continue;
|
|
52
|
+
}
|
|
53
|
+
const description = persona.description ?? "";
|
|
54
|
+
if (description.length > CASE_ROLE_DESCRIPTION_MAX_LENGTH) {
|
|
55
|
+
report("description", `persona "${name}" has a ${description.length}-character description; a role description is at most ${CASE_ROLE_DESCRIPTION_MAX_LENGTH}`);
|
|
56
|
+
continue;
|
|
57
|
+
}
|
|
58
|
+
const stageNames = [];
|
|
59
|
+
const stageIds = [];
|
|
60
|
+
if (scope === "case") {
|
|
61
|
+
if (persona.stages.length > 0) {
|
|
62
|
+
report("stages-on-case", `persona "${name}" is scoped to the whole case but names stages (${persona.stages.join(", ")}); a Case role applies to every stage, so the list was not used`);
|
|
63
|
+
}
|
|
64
|
+
} else {
|
|
65
|
+
for (const stageName of persona.stages) {
|
|
66
|
+
const stageId = resolveStage(stageName);
|
|
67
|
+
if (stageId === undefined) {
|
|
68
|
+
report("stage-unknown", `persona "${name}" names stage "${stageName}", which the SDD does not declare`);
|
|
69
|
+
continue;
|
|
70
|
+
}
|
|
71
|
+
if (stageIds.includes(stageId))
|
|
72
|
+
continue;
|
|
73
|
+
stageNames.push(stageName);
|
|
74
|
+
stageIds.push(stageId);
|
|
75
|
+
}
|
|
76
|
+
if (stageIds.length === 0) {
|
|
77
|
+
report("stages-missing", `persona "${name}" is scoped to Stages but no declared stage is named for it, so it would apply to nothing`);
|
|
78
|
+
continue;
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
const keys = [];
|
|
82
|
+
for (const permission of persona.permissions) {
|
|
83
|
+
const key = roleActionKeyFor(permission);
|
|
84
|
+
if (key === undefined) {
|
|
85
|
+
report("permission-unknown", `persona "${name}" grants "${permission}", which is not a permission; use one of ${listKeys(CASE_APP_ROLE_ACTION_KEYS)}`);
|
|
86
|
+
continue;
|
|
87
|
+
}
|
|
88
|
+
if (scope === "stages" && !STAGE_ALLOWED_ROLE_ACTION_KEYS.includes(key)) {
|
|
89
|
+
report("permission-scope", `persona "${name}" grants "${key}" at stage scope; a Stages role can grant only ${listKeys(STAGE_ALLOWED_ROLE_ACTION_KEYS)}`);
|
|
90
|
+
continue;
|
|
91
|
+
}
|
|
92
|
+
if (!keys.includes(key))
|
|
93
|
+
keys.push(key);
|
|
94
|
+
}
|
|
95
|
+
if (keys.length === 0) {
|
|
96
|
+
report("no-permissions", `persona "${name}" grants no permission, so it has nothing to deploy`);
|
|
97
|
+
continue;
|
|
98
|
+
}
|
|
99
|
+
keys.sort((a, b) => (ACTION_ORDER.get(a) ?? 0) - (ACTION_ORDER.get(b) ?? 0));
|
|
100
|
+
const gated = new Map;
|
|
101
|
+
for (const key of keys) {
|
|
102
|
+
const flag = roleActionGateOf(key);
|
|
103
|
+
if (flag !== undefined)
|
|
104
|
+
gated.set(flag, [...gated.get(flag) ?? [], key]);
|
|
105
|
+
}
|
|
106
|
+
for (const [flag, flagged] of gated) {
|
|
107
|
+
report("permission-gated", `persona "${name}" grants ${listKeys(flagged)}, which the Case Designer publishes only when the tenant flag "${flag}" is on (off by default); written as stated, so on a tenant without the flag this role grants more than the Designer would publish`);
|
|
108
|
+
}
|
|
109
|
+
roles.push({
|
|
110
|
+
name,
|
|
111
|
+
description: description.trim() || name,
|
|
112
|
+
scope,
|
|
113
|
+
stageNames,
|
|
114
|
+
stageIds,
|
|
115
|
+
actions: keys.map((key) => CASE_APP_ROLE_ACTIONS[key])
|
|
116
|
+
});
|
|
117
|
+
}
|
|
118
|
+
return { roles, problems };
|
|
119
|
+
};
|
|
120
|
+
|
|
121
|
+
export { resolvePersonas };
|
|
122
|
+
|
|
123
|
+
//# debugId=DFBB6976766E550364756E2164756E21
|
|
@@ -1,9 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
__require
|
|
3
|
-
} from "./packager-tool-1yh8g550.js";
|
|
4
|
-
|
|
5
1
|
// ../filesystem/src/node.ts
|
|
6
|
-
import { randomUUID } from "node:crypto";
|
|
2
|
+
import { createHash, randomUUID } from "node:crypto";
|
|
7
3
|
import { existsSync } from "node:fs";
|
|
8
4
|
import * as fs from "node:fs/promises";
|
|
9
5
|
import * as os from "node:os";
|
|
@@ -14,6 +10,9 @@ var LOCK_MAX_WAIT_MS = 20000;
|
|
|
14
10
|
var LOCK_MAX_HOLD_MS = 60000;
|
|
15
11
|
var LOCK_RETRY_MIN_MS = 100;
|
|
16
12
|
var LOCK_RETRY_JITTER_MS = 200;
|
|
13
|
+
var HASH_CHUNK_BYTES = 256 * 1024;
|
|
14
|
+
var hashBuffers = [];
|
|
15
|
+
var HASH_BUFFERS_KEPT = 64;
|
|
17
16
|
|
|
18
17
|
class NodeFileSystem {
|
|
19
18
|
path = {
|
|
@@ -32,7 +31,7 @@ class NodeFileSystem {
|
|
|
32
31
|
};
|
|
33
32
|
utils = {
|
|
34
33
|
open: async (url) => {
|
|
35
|
-
const { default: open } = await import("./index-
|
|
34
|
+
const { default: open } = await import("./index-nzr4mx5p.js");
|
|
36
35
|
await open(url);
|
|
37
36
|
}
|
|
38
37
|
};
|
|
@@ -71,6 +70,15 @@ class NodeFileSystem {
|
|
|
71
70
|
throw error;
|
|
72
71
|
}
|
|
73
72
|
}
|
|
73
|
+
async readdirEntries(dirPath) {
|
|
74
|
+
try {
|
|
75
|
+
return await fs.readdir(dirPath, { withFileTypes: true });
|
|
76
|
+
} catch (error) {
|
|
77
|
+
if (this.isEnoent(error))
|
|
78
|
+
return [];
|
|
79
|
+
throw error;
|
|
80
|
+
}
|
|
81
|
+
}
|
|
74
82
|
async stat(filePath) {
|
|
75
83
|
try {
|
|
76
84
|
const stats = await fs.stat(filePath);
|
|
@@ -78,7 +86,8 @@ class NodeFileSystem {
|
|
|
78
86
|
isFile: () => stats.isFile(),
|
|
79
87
|
isDirectory: () => stats.isDirectory(),
|
|
80
88
|
size: stats.size,
|
|
81
|
-
mtimeMs: stats.mtimeMs
|
|
89
|
+
mtimeMs: stats.mtimeMs,
|
|
90
|
+
ctimeMs: stats.ctimeMs
|
|
82
91
|
};
|
|
83
92
|
} catch (error) {
|
|
84
93
|
if (this.isEnoent(error))
|
|
@@ -192,6 +201,42 @@ class NodeFileSystem {
|
|
|
192
201
|
throw error;
|
|
193
202
|
}
|
|
194
203
|
}
|
|
204
|
+
async hashFile(filePath) {
|
|
205
|
+
let handle;
|
|
206
|
+
try {
|
|
207
|
+
handle = await fs.open(filePath, "r");
|
|
208
|
+
} catch (error) {
|
|
209
|
+
if (this.isEnoent(error))
|
|
210
|
+
return null;
|
|
211
|
+
throw error;
|
|
212
|
+
}
|
|
213
|
+
const buffer = hashBuffers.pop() ?? Buffer.allocUnsafe(HASH_CHUNK_BYTES);
|
|
214
|
+
try {
|
|
215
|
+
const opened = await handle.stat();
|
|
216
|
+
const stats = {
|
|
217
|
+
isFile: () => opened.isFile(),
|
|
218
|
+
isDirectory: () => opened.isDirectory(),
|
|
219
|
+
size: opened.size,
|
|
220
|
+
mtimeMs: opened.mtimeMs,
|
|
221
|
+
ctimeMs: opened.ctimeMs
|
|
222
|
+
};
|
|
223
|
+
const hash = createHash("sha256");
|
|
224
|
+
let size = 0;
|
|
225
|
+
for (;; ) {
|
|
226
|
+
const { bytesRead } = await handle.read(buffer, 0, buffer.byteLength, null);
|
|
227
|
+
if (bytesRead === 0)
|
|
228
|
+
break;
|
|
229
|
+
hash.update(buffer.subarray(0, bytesRead));
|
|
230
|
+
size += bytesRead;
|
|
231
|
+
}
|
|
232
|
+
return { sha256: hash.digest("hex"), size, stats };
|
|
233
|
+
} finally {
|
|
234
|
+
if (hashBuffers.length < HASH_BUFFERS_KEPT) {
|
|
235
|
+
hashBuffers.push(buffer);
|
|
236
|
+
}
|
|
237
|
+
await handle.close();
|
|
238
|
+
}
|
|
239
|
+
}
|
|
195
240
|
async realpath(filePath) {
|
|
196
241
|
try {
|
|
197
242
|
return await fs.realpath(filePath);
|
|
@@ -240,10 +285,9 @@ class NodeFileSystem {
|
|
|
240
285
|
|
|
241
286
|
// ../filesystem/src/index.ts
|
|
242
287
|
var fsInstance = new NodeFileSystem;
|
|
243
|
-
var
|
|
244
|
-
var
|
|
245
|
-
var getFileSystemAsync = async () => fsInstance;
|
|
288
|
+
var getFileSystem2 = () => fsInstance;
|
|
289
|
+
var getFileSystemAsync2 = async () => fsInstance;
|
|
246
290
|
|
|
247
|
-
export {
|
|
291
|
+
export { getFileSystem2, getFileSystemAsync2 };
|
|
248
292
|
|
|
249
|
-
//# debugId=
|
|
293
|
+
//# debugId=69A68E101956586864756E2164756E21
|
|
@@ -1,3 +1,7 @@
|
|
|
1
|
+
import {
|
|
2
|
+
comparableFolder
|
|
3
|
+
} from "./packager-tool-yaertxsw.js";
|
|
4
|
+
|
|
1
5
|
// src/services/registry-ledger.ts
|
|
2
6
|
var taskKey = (stage, task) => JSON.stringify([stage, task]);
|
|
3
7
|
var asRecord = (value) => typeof value === "object" && value !== null && !Array.isArray(value) ? value : undefined;
|
|
@@ -8,9 +12,9 @@ var collectEntries = (value, into, depth = 0) => {
|
|
|
8
12
|
return;
|
|
9
13
|
if (Array.isArray(value)) {
|
|
10
14
|
for (const item of value) {
|
|
11
|
-
const
|
|
12
|
-
if (
|
|
13
|
-
into.push(
|
|
15
|
+
const record = asRecord(item);
|
|
16
|
+
if (record !== undefined && text(record.task) !== undefined && (("matches" in record) || ("selected" in record))) {
|
|
17
|
+
into.push(record);
|
|
14
18
|
continue;
|
|
15
19
|
}
|
|
16
20
|
collectEntries(item, into, depth + 1);
|
|
@@ -32,14 +36,13 @@ var readRegistryLedger = (document) => {
|
|
|
32
36
|
const declared = asRecord(asRecord(document)?.scope)?.missingIndexes;
|
|
33
37
|
const missing = new Set((Array.isArray(declared) ? declared : []).map(text).filter((name) => name !== undefined));
|
|
34
38
|
const unresolvable = new Map;
|
|
39
|
+
const found = new Map;
|
|
35
40
|
for (const entry of entries) {
|
|
36
41
|
const stage = text(entry.stage);
|
|
37
42
|
const task = text(entry.task);
|
|
38
43
|
if (stage === undefined || task === undefined)
|
|
39
44
|
continue;
|
|
40
45
|
const cacheFile = text(entry.cacheFile);
|
|
41
|
-
if (cacheFile !== undefined && missing.has(cacheFile))
|
|
42
|
-
continue;
|
|
43
46
|
if (entry.matches !== undefined && !Array.isArray(entry.matches)) {
|
|
44
47
|
continue;
|
|
45
48
|
}
|
|
@@ -48,14 +51,23 @@ var readRegistryLedger = (document) => {
|
|
|
48
51
|
continue;
|
|
49
52
|
}
|
|
50
53
|
const selected = asRecord(entry.selected);
|
|
51
|
-
if (matches.length > 0 || selected !== undefined)
|
|
54
|
+
if (matches.length > 0 || selected !== undefined) {
|
|
55
|
+
found.set(taskKey(stage, task), {
|
|
56
|
+
name: queryName(entry.searchQuery),
|
|
57
|
+
folder: text(asRecord(entry.searchQuery)?.folder),
|
|
58
|
+
hitFolders: (selected !== undefined ? [selected] : matches).map((hit) => text(asRecord(hit)?.folder)),
|
|
59
|
+
selected: selected !== undefined
|
|
60
|
+
});
|
|
61
|
+
continue;
|
|
62
|
+
}
|
|
63
|
+
if (cacheFile !== undefined && missing.has(cacheFile))
|
|
52
64
|
continue;
|
|
53
65
|
unresolvable.set(taskKey(stage, task), {
|
|
54
66
|
query: queryName(entry.searchQuery) ?? task,
|
|
55
67
|
cacheFile: text(entry.cacheFile)
|
|
56
68
|
});
|
|
57
69
|
}
|
|
58
|
-
return { unresolvable };
|
|
70
|
+
return { unresolvable, found };
|
|
59
71
|
};
|
|
60
72
|
var ledgerMissFor = (ledger, stageSpellings, task) => {
|
|
61
73
|
if (ledger === undefined || task === undefined)
|
|
@@ -69,7 +81,27 @@ var ledgerMissFor = (ledger, stageSpellings, task) => {
|
|
|
69
81
|
}
|
|
70
82
|
return;
|
|
71
83
|
};
|
|
84
|
+
var ledgerFoundFor = (ledger, stageSpellings, task, resource) => {
|
|
85
|
+
if (ledger === undefined || task === undefined)
|
|
86
|
+
return false;
|
|
87
|
+
if (resource.name === undefined || resource.name === "")
|
|
88
|
+
return false;
|
|
89
|
+
const folder = resource.folder ?? "";
|
|
90
|
+
const same = (a, b) => comparableFolder(a) === comparableFolder(b);
|
|
91
|
+
return stageSpellings.some((stage) => {
|
|
92
|
+
if (stage === undefined || stage === "")
|
|
93
|
+
return false;
|
|
94
|
+
const hit = ledger.found.get(taskKey(stage, task));
|
|
95
|
+
if (hit === undefined || hit.name !== resource.name)
|
|
96
|
+
return false;
|
|
97
|
+
if (folder !== "" && hit.folder !== undefined && !same(hit.folder, folder)) {
|
|
98
|
+
return false;
|
|
99
|
+
}
|
|
100
|
+
const inFolder = hit.hitFolders.filter((at) => folder === "" || at === undefined || same(at, folder));
|
|
101
|
+
return hit.selected ? inFolder.length > 0 : inFolder.length === 1;
|
|
102
|
+
});
|
|
103
|
+
};
|
|
72
104
|
|
|
73
|
-
export { readRegistryLedger, ledgerMissFor };
|
|
105
|
+
export { readRegistryLedger, ledgerMissFor, ledgerFoundFor };
|
|
74
106
|
|
|
75
|
-
//# debugId=
|
|
107
|
+
//# debugId=2F22A96C22CEBBD064756E2164756E21
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
// ../auth/src/utils/platform.ts
|
|
2
|
-
function
|
|
2
|
+
function isBrowser2() {
|
|
3
3
|
return typeof globalThis !== "undefined" && "window" in globalThis && "document" in globalThis;
|
|
4
4
|
}
|
|
5
|
-
function
|
|
5
|
+
function isNode2() {
|
|
6
6
|
return typeof process !== "undefined" && process.versions !== undefined && process.versions.node !== undefined;
|
|
7
7
|
}
|
|
8
8
|
function getGlobalThis() {
|
|
@@ -12,6 +12,6 @@ function getGlobalThis() {
|
|
|
12
12
|
return;
|
|
13
13
|
}
|
|
14
14
|
|
|
15
|
-
export {
|
|
15
|
+
export { isBrowser2, isNode2, getGlobalThis };
|
|
16
16
|
|
|
17
|
-
//# debugId=
|
|
17
|
+
//# debugId=0D1794D4C8313A6D64756E2164756E21
|
|
@@ -1,18 +1,21 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
3
|
-
} from "./packager-tool-
|
|
2
|
+
getFileSystem2
|
|
3
|
+
} from "./packager-tool-z070caqq.js";
|
|
4
4
|
import {
|
|
5
|
-
|
|
6
|
-
} from "./packager-tool-
|
|
5
|
+
readStdin2
|
|
6
|
+
} from "./packager-tool-psmb758n.js";
|
|
7
7
|
|
|
8
8
|
// ../maestro-sdk/src/json-input.ts
|
|
9
9
|
async function readJsonFile(filePath) {
|
|
10
|
-
const fs =
|
|
10
|
+
const fs = getFileSystem2();
|
|
11
11
|
const resolved = fs.path.resolve(filePath);
|
|
12
12
|
if (!await fs.exists(resolved)) {
|
|
13
13
|
throw new Error(`File not found: ${resolved}`);
|
|
14
14
|
}
|
|
15
15
|
const content = await fs.readFile(resolved, "utf-8");
|
|
16
|
+
if (content === null) {
|
|
17
|
+
throw new Error(`File not found: ${resolved}`);
|
|
18
|
+
}
|
|
16
19
|
try {
|
|
17
20
|
return JSON.parse(content);
|
|
18
21
|
} catch (err) {
|
|
@@ -41,7 +44,7 @@ async function resolveJsonInput(opts) {
|
|
|
41
44
|
return parseJsonInputOrFile(opts.inline);
|
|
42
45
|
}
|
|
43
46
|
if (opts.allowStdin) {
|
|
44
|
-
const stdinData = await
|
|
47
|
+
const stdinData = await readStdin2();
|
|
45
48
|
if (stdinData) {
|
|
46
49
|
return parseJsonInputOrFile(stdinData);
|
|
47
50
|
}
|
|
@@ -49,6 +52,6 @@ async function resolveJsonInput(opts) {
|
|
|
49
52
|
return;
|
|
50
53
|
}
|
|
51
54
|
|
|
52
|
-
export {
|
|
55
|
+
export { parseJsonInputOrFile, resolveJsonInput };
|
|
53
56
|
|
|
54
|
-
//# debugId=
|
|
57
|
+
//# debugId=771F5679E455D60664756E2164756E21
|
|
@@ -1,15 +1,14 @@
|
|
|
1
1
|
import {
|
|
2
|
-
__require,
|
|
3
2
|
__toESM
|
|
4
|
-
} from "./packager-tool-
|
|
3
|
+
} from "./packager-tool-6an893wm.js";
|
|
5
4
|
|
|
6
5
|
// src/services/case-schema-loader.ts
|
|
7
6
|
var cached;
|
|
8
7
|
function loadCaseSchemaAsync() {
|
|
9
|
-
cached ??= import("./index-
|
|
8
|
+
cached ??= import("./index-a7y7etmy.js").then((m)=>__toESM(m.default,1));
|
|
10
9
|
return cached;
|
|
11
10
|
}
|
|
12
11
|
|
|
13
12
|
export { loadCaseSchemaAsync };
|
|
14
13
|
|
|
15
|
-
//# debugId=
|
|
14
|
+
//# debugId=263A0ACB8A13BD3B64756E2164756E21
|
package/dist/packager-tool.js
CHANGED
|
@@ -1,19 +1,18 @@
|
|
|
1
|
-
import {
|
|
2
|
-
CaseToolFactory,
|
|
3
|
-
registerCaseBpmnCompiler
|
|
4
|
-
} from "./packager-tool-e15kqpyh.js";
|
|
5
1
|
import {
|
|
6
2
|
toolsFactoryRepository
|
|
7
|
-
} from "./packager-tool-
|
|
8
|
-
import"./packager-tool-
|
|
3
|
+
} from "./packager-tool-snesn0bt.js";
|
|
4
|
+
import"./packager-tool-1wgav5ma.js";
|
|
5
|
+
import {
|
|
6
|
+
registerCaseBpmnCompiler,
|
|
7
|
+
CaseToolFactory2
|
|
8
|
+
} from "./packager-tool-4avchhz8.js";
|
|
9
9
|
import {
|
|
10
|
-
__require,
|
|
11
10
|
__toESM
|
|
12
|
-
} from "./packager-tool-
|
|
11
|
+
} from "./packager-tool-6an893wm.js";
|
|
13
12
|
|
|
14
13
|
// ../packager/packager-tool-case/src/node.ts
|
|
15
14
|
var compileCasePlan = async (casePlanJson) => {
|
|
16
|
-
const { serializeCaseDiskJsonToBpmnAndRulesJson } = await import("./index-
|
|
15
|
+
const { serializeCaseDiskJsonToBpmnAndRulesJson } = await import("./index-a7y7etmy.js").then((m)=>__toESM(m.default,1));
|
|
17
16
|
const { bpmnXml } = await serializeCaseDiskJsonToBpmnAndRulesJson(casePlanJson);
|
|
18
17
|
return bpmnXml;
|
|
19
18
|
};
|
|
@@ -23,11 +22,11 @@ function registerNodeCaseBpmnCompiler() {
|
|
|
23
22
|
|
|
24
23
|
// src/packager-tool.ts
|
|
25
24
|
function registerPackagerFactories() {
|
|
26
|
-
toolsFactoryRepository.registerProjectToolFactory(new
|
|
25
|
+
toolsFactoryRepository.registerProjectToolFactory(new CaseToolFactory2);
|
|
27
26
|
registerNodeCaseBpmnCompiler();
|
|
28
27
|
}
|
|
29
28
|
export {
|
|
30
29
|
registerPackagerFactories
|
|
31
30
|
};
|
|
32
31
|
|
|
33
|
-
//# debugId=
|
|
32
|
+
//# debugId=04773C4FE181A02D64756E2164756E21
|