@uipath/case-tool 1.205.0-preview.281 → 1.206.0-preview.282
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-qqd3h10v.js → case-debug-solution-projects-je7h4hmq.js} +3 -7
- package/dist/{case-debug-studio-web-service-nqzmwbr5.js → case-debug-studio-web-service-d83h3atd.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-vq38va33.js → case-validate-service-hz0j90we.js} +234 -170
- package/dist/connector-enrichment-service-sjjmb9dy.js +56 -0
- package/dist/connector-library-1yw5r47w.js +99 -0
- package/dist/connector-lookup-service-yerhg9cd.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/{connector-task-spec-pzfzmfr5.js → index-9f8naxbk.js} +320 -144
- package/dist/{index-5dxh9z60.js → index-a7y7etmy.js} +6 -5
- package/dist/{index-ekwtgx7y.js → index-ec115v05.js} +309 -287
- package/dist/index-j9t2k52h.js +35 -0
- package/dist/index-myf7b4a5.js +26 -0
- 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-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-y8b5w1rd.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-b1nw50ev.js → packager-tool-265h946t.js} +256 -486
- 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-3xehbdyd.js +1302 -0
- package/dist/packager-tool-4avchhz8.js +539 -0
- 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-wr12ndwk.js → packager-tool-ccejfs0r.js} +252 -468
- 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-qn3zkrrc.js → packager-tool-ehjw672b.js} +32 -15
- 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-k0ar6cn7.js +295 -0
- package/dist/packager-tool-kz7zz79p.js +71 -0
- package/dist/{packager-tool-1gwbq864.js → packager-tool-m5384a1s.js} +66 -82
- package/dist/{packager-tool-9e59z4d6.js → packager-tool-me8gd22q.js} +82 -83
- package/dist/packager-tool-mk9fmzdy.js +20 -0
- package/dist/{packager-tool-yfmby4dd.js → packager-tool-mkt1njk2.js} +630 -689
- package/dist/{packager-tool-gdtpsdn7.js → packager-tool-mm1x18d6.js} +223 -28
- 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-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-8ac6ncq2.js → resourcesSyncService-yrhhh62m.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-8gf9zjwf.js → sdd-resolve-siblings-ap8j1c8h.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-agvnhdf7.js → trigger-enrichment-service-z8kxy6qr.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-6kskfevq.js +0 -65
- package/dist/connector-lookup-service-yyn8kkw7.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-0d7qc2gs.js +0 -282
- package/dist/index-jmv5by9z.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-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-2ezr3akv.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-gmykn1ef.js +0 -5365
- 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-wekqkmgn.js +0 -265
- package/dist/packager-tool-yc4kw997.js +0 -13
- package/dist/packager-tool-zgpsnxkd.js +0 -13189
- 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
|
@@ -4,31 +4,46 @@ var VALID_TASK_ENTRY_RULE_TYPES = [
|
|
|
4
4
|
"selected-tasks-completed",
|
|
5
5
|
"wait-for-connector",
|
|
6
6
|
"adhoc",
|
|
7
|
-
"runs-sequentially"
|
|
7
|
+
"runs-sequentially",
|
|
8
|
+
"sla-status-change",
|
|
9
|
+
"api-event"
|
|
8
10
|
];
|
|
9
11
|
var VALID_STAGE_ENTRY_RULE_TYPES = [
|
|
10
12
|
"case-entered",
|
|
11
13
|
"selected-stage-exited",
|
|
12
14
|
"selected-stage-completed",
|
|
13
15
|
"wait-for-connector",
|
|
14
|
-
"user-selected-stage"
|
|
16
|
+
"user-selected-stage",
|
|
17
|
+
"sla-status-change",
|
|
18
|
+
"api-event"
|
|
15
19
|
];
|
|
16
20
|
var VALID_STAGE_COMPLETION_RULE_TYPES = [
|
|
17
21
|
"required-tasks-completed",
|
|
18
|
-
"
|
|
22
|
+
"selected-tasks-completed",
|
|
23
|
+
"wait-for-connector",
|
|
24
|
+
"sla-status-change",
|
|
25
|
+
"api-event"
|
|
19
26
|
];
|
|
20
27
|
var VALID_STAGE_EXIT_RULE_TYPES = [
|
|
21
28
|
"selected-tasks-completed",
|
|
22
|
-
"wait-for-connector"
|
|
29
|
+
"wait-for-connector",
|
|
30
|
+
"sla-status-change",
|
|
31
|
+
"api-event"
|
|
23
32
|
];
|
|
24
33
|
var VALID_CASE_COMPLETION_RULE_TYPES = [
|
|
25
34
|
"required-stages-completed",
|
|
26
|
-
"
|
|
35
|
+
"selected-stage-exited",
|
|
36
|
+
"selected-stage-completed",
|
|
37
|
+
"wait-for-connector",
|
|
38
|
+
"sla-status-change",
|
|
39
|
+
"api-event"
|
|
27
40
|
];
|
|
28
41
|
var VALID_CASE_EXIT_RULE_TYPES = [
|
|
29
42
|
"selected-stage-completed",
|
|
30
43
|
"selected-stage-exited",
|
|
31
|
-
"wait-for-connector"
|
|
44
|
+
"wait-for-connector",
|
|
45
|
+
"sla-status-change",
|
|
46
|
+
"api-event"
|
|
32
47
|
];
|
|
33
48
|
function buildRule(options) {
|
|
34
49
|
const {
|
|
@@ -88,6 +103,10 @@ function buildRule(options) {
|
|
|
88
103
|
return { rule: "user-selected-stage", id, conditionExpression };
|
|
89
104
|
case "runs-sequentially":
|
|
90
105
|
return { rule: "runs-sequentially", id, conditionExpression };
|
|
106
|
+
case "sla-status-change":
|
|
107
|
+
return { rule: "sla-status-change", id, conditionExpression };
|
|
108
|
+
case "api-event":
|
|
109
|
+
return { rule: "api-event", id, conditionExpression };
|
|
91
110
|
}
|
|
92
111
|
}
|
|
93
112
|
function isStageNode(node) {
|
|
@@ -174,4 +193,4 @@ function remapBindingRefs(value, idRemap) {
|
|
|
174
193
|
|
|
175
194
|
export { VALID_TASK_ENTRY_RULE_TYPES, VALID_STAGE_ENTRY_RULE_TYPES, VALID_STAGE_COMPLETION_RULE_TYPES, VALID_STAGE_EXIT_RULE_TYPES, VALID_CASE_COMPLETION_RULE_TYPES, VALID_CASE_EXIT_RULE_TYPES, buildRule, isStageNode, requireStageNode, requireTask, DEFAULT_TRIGGER_ID, DEFAULT_TRIGGER_LABEL, isAnyTriggerNode, findTriggerNodes, ensureRootBindings, findOrPushBinding, remapBindingRefs };
|
|
176
195
|
|
|
177
|
-
//# debugId=
|
|
196
|
+
//# debugId=A877E69BF91D62B264756E2164756E21
|
|
@@ -1,9 +1,185 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
3
|
-
|
|
2
|
+
CASE_APP_VERSIONS_WITH_ROLES,
|
|
3
|
+
roleActionKeyOf,
|
|
4
|
+
caseStageLabels,
|
|
5
|
+
roleResourceKey,
|
|
6
|
+
CASE_ROLE_FIELDS,
|
|
7
|
+
caseRoleEntries,
|
|
8
|
+
readCaseRole,
|
|
9
|
+
readCaseRoles
|
|
10
|
+
} from "./packager-tool-1wgav5ma.js";
|
|
4
11
|
import {
|
|
5
|
-
|
|
6
|
-
} from "./packager-tool-
|
|
12
|
+
resolvePersonas
|
|
13
|
+
} from "./packager-tool-yh8mmj3p.js";
|
|
14
|
+
import {
|
|
15
|
+
withoutTrailingSlug
|
|
16
|
+
} from "./packager-tool-fcektt1g.js";
|
|
17
|
+
import {
|
|
18
|
+
indexKey
|
|
19
|
+
} from "./packager-tool-5w0gjcck.js";
|
|
20
|
+
import {
|
|
21
|
+
prefixedId
|
|
22
|
+
} from "./packager-tool-1h7abxw6.js";
|
|
23
|
+
|
|
24
|
+
// src/services/sdd-convert/case-roles.ts
|
|
25
|
+
var caseRolesFor = (model, index, unresolved) => {
|
|
26
|
+
for (const note of model.personaNotes ?? []) {
|
|
27
|
+
unresolved.push({
|
|
28
|
+
kind: "case-role",
|
|
29
|
+
where: "metadata.caseRoles",
|
|
30
|
+
detail: note
|
|
31
|
+
});
|
|
32
|
+
}
|
|
33
|
+
if (model.personas.length === 0)
|
|
34
|
+
return [];
|
|
35
|
+
const { roles, problems } = resolvePersonas(model.personas, (name) => index.stageIds.get(indexKey(withoutTrailingSlug(name))));
|
|
36
|
+
for (const problem of problems) {
|
|
37
|
+
unresolved.push({
|
|
38
|
+
kind: "case-role",
|
|
39
|
+
where: `metadata.caseRoles[${problem.persona}]`,
|
|
40
|
+
detail: problem.detail
|
|
41
|
+
});
|
|
42
|
+
}
|
|
43
|
+
return roles.map((role) => ({
|
|
44
|
+
id: prefixedId("role-", 10),
|
|
45
|
+
name: role.name,
|
|
46
|
+
description: role.description,
|
|
47
|
+
actions: role.actions,
|
|
48
|
+
scope: role.scope,
|
|
49
|
+
...role.scope === "stages" && { stageIds: role.stageIds }
|
|
50
|
+
}));
|
|
51
|
+
};
|
|
52
|
+
var isRecord = (value) => typeof value === "object" && value !== null && !Array.isArray(value);
|
|
53
|
+
var sameSet = (a, b) => a.length === b.length && new Set(a.map((x) => x.toLowerCase())).size === new Set([...a, ...b].map((x) => x.toLowerCase())).size;
|
|
54
|
+
var describeRole = (role, stageLabels) => {
|
|
55
|
+
const keys = role.actions.map((action) => roleActionKeyOf(action) ?? action);
|
|
56
|
+
const grants = keys.length > 0 ? keys.join(", ") : "nothing";
|
|
57
|
+
const where = role.scope === "stages" ? stageLabels.length > 0 ? ` on ${stageLabels.map((label) => `"${label}"`).join(", ")}` : " on no stage this plan has" : "";
|
|
58
|
+
const description = role.description?.trim();
|
|
59
|
+
return `${role.scope} scope granting ${grants}${where}${description ? `, "${description}"` : ""}`;
|
|
60
|
+
};
|
|
61
|
+
var carryCaseRoles = (document, previous, unresolved, declaredNames = []) => {
|
|
62
|
+
if (!isRecord(document) || !isRecord(previous))
|
|
63
|
+
return 0;
|
|
64
|
+
const previousMetadata = isRecord(previous.metadata) ? previous.metadata : {};
|
|
65
|
+
const entries = previousEntries(previous, unresolved);
|
|
66
|
+
const previousVersion = asString(previousMetadata.caseAppVersion);
|
|
67
|
+
if (entries.length === 0 && previousVersion === undefined)
|
|
68
|
+
return 0;
|
|
69
|
+
const metadata = isRecord(document.metadata) ? document.metadata : {};
|
|
70
|
+
const stages = {
|
|
71
|
+
before: caseStageLabels(previous.nodes),
|
|
72
|
+
now: caseStageLabels(document.nodes)
|
|
73
|
+
};
|
|
74
|
+
const { roles, matched } = matchDeclaredRoles(readCaseRoles(document), entries, stages, unresolved);
|
|
75
|
+
const undeclared = entries.filter((entry) => !matched.has(entry));
|
|
76
|
+
const declared = new Set(declaredNames.map(roleResourceKey));
|
|
77
|
+
const carried = carryUndeclaredRoles(undeclared, stages, declared, unresolved);
|
|
78
|
+
roles.push(...carried);
|
|
79
|
+
const versions = caseAppVersions(previousMetadata, metadata, roles.length > 0);
|
|
80
|
+
if (versions.version !== undefined && roles.length > 0 && !CASE_APP_VERSIONS_WITH_ROLES.includes(versions.version)) {
|
|
81
|
+
unresolved.push({
|
|
82
|
+
kind: "case-role",
|
|
83
|
+
where: "metadata.caseAppVersion",
|
|
84
|
+
detail: `the plan runs the "${versions.version}" case app, which has no roles, so the ${roles.length} role(s) written are not honoured until the case is moved to the V2 app in the Case Designer. Kept as the plan had it`
|
|
85
|
+
});
|
|
86
|
+
}
|
|
87
|
+
const {
|
|
88
|
+
caseRoles: _roles,
|
|
89
|
+
caseAppVersion: _version,
|
|
90
|
+
caseAppCreatedVersion: _created,
|
|
91
|
+
...rest
|
|
92
|
+
} = metadata;
|
|
93
|
+
document.metadata = {
|
|
94
|
+
...rest,
|
|
95
|
+
...versions.version !== undefined && {
|
|
96
|
+
caseAppVersion: versions.version
|
|
97
|
+
},
|
|
98
|
+
...versions.createdVersion !== undefined && {
|
|
99
|
+
caseAppCreatedVersion: versions.createdVersion
|
|
100
|
+
},
|
|
101
|
+
...roles.length > 0 && { caseRoles: roles }
|
|
102
|
+
};
|
|
103
|
+
return carried.length;
|
|
104
|
+
};
|
|
105
|
+
var asString = (value) => typeof value === "string" ? value : undefined;
|
|
106
|
+
var roleItem = (name, detail) => ({
|
|
107
|
+
kind: "case-role",
|
|
108
|
+
where: `metadata.caseRoles[${name}]`,
|
|
109
|
+
detail
|
|
110
|
+
});
|
|
111
|
+
var previousEntries = (previous, unresolved) => caseRoleEntries(previous).flatMap((entry, at) => {
|
|
112
|
+
const role = readCaseRole(entry);
|
|
113
|
+
if (role === undefined) {
|
|
114
|
+
const name = isRecord(entry) && typeof entry.name === "string" && entry.name.trim() !== "" ? `"${entry.name}"` : `entry ${at + 1}`;
|
|
115
|
+
unresolved.push({
|
|
116
|
+
kind: "case-role",
|
|
117
|
+
where: `metadata.caseRoles[${at}]`,
|
|
118
|
+
detail: `the plan's role ${name} is not carried: it has no name, no scope or no actions list, so the schema does not read it as a role`
|
|
119
|
+
});
|
|
120
|
+
return [];
|
|
121
|
+
}
|
|
122
|
+
const extras = Object.fromEntries(Object.entries(entry).filter(([key]) => !CASE_ROLE_FIELDS.includes(key)));
|
|
123
|
+
return [{ role, extras }];
|
|
124
|
+
});
|
|
125
|
+
var labelsOf = (role, from) => (role.stageIds ?? []).flatMap((stageId) => {
|
|
126
|
+
const label = from.get(stageId);
|
|
127
|
+
return label === undefined ? [] : [label];
|
|
128
|
+
});
|
|
129
|
+
var sameRole = (before, role, beforeLabels, nowLabels) => before.scope === role.scope && sameSet(before.actions, role.actions) && sameSet(beforeLabels, nowLabels) && (before.description?.trim() ?? "") === (role.description?.trim() ?? "");
|
|
130
|
+
var matchDeclaredRoles = (declared, entries, stages, unresolved) => {
|
|
131
|
+
const roles = [];
|
|
132
|
+
const matched = new Set;
|
|
133
|
+
for (const role of declared) {
|
|
134
|
+
const entry = entries.find((candidate) => !matched.has(candidate) && roleResourceKey(candidate.role.name) === roleResourceKey(role.name));
|
|
135
|
+
if (entry === undefined) {
|
|
136
|
+
roles.push(role);
|
|
137
|
+
continue;
|
|
138
|
+
}
|
|
139
|
+
matched.add(entry);
|
|
140
|
+
const { role: before, extras } = entry;
|
|
141
|
+
const beforeLabels = labelsOf(before, stages.before);
|
|
142
|
+
const nowLabels = labelsOf(role, stages.now);
|
|
143
|
+
if (!sameRole(before, role, beforeLabels, nowLabels)) {
|
|
144
|
+
unresolved.push(roleItem(role.name, `the plan had this role as ${describeRole(before, beforeLabels)}; the Personas row writes it as ${describeRole(role, nowLabels)}. The row is written. If the plan's was the one meant, edit the row`));
|
|
145
|
+
}
|
|
146
|
+
roles.push({
|
|
147
|
+
...extras,
|
|
148
|
+
...role,
|
|
149
|
+
id: before.id,
|
|
150
|
+
...before.isDefault !== undefined && {
|
|
151
|
+
isDefault: before.isDefault
|
|
152
|
+
}
|
|
153
|
+
});
|
|
154
|
+
}
|
|
155
|
+
return { roles, matched };
|
|
156
|
+
};
|
|
157
|
+
var carryUndeclaredRoles = (undeclared, stages, declared, unresolved) => {
|
|
158
|
+
const idByLabel = new Map([...stages.now].map(([id, label]) => [label.toLowerCase(), id]));
|
|
159
|
+
return undeclared.flatMap(({ role: before, extras }) => {
|
|
160
|
+
const labels = labelsOf(before, stages.before);
|
|
161
|
+
const kept = labels.filter((label) => idByLabel.has(label.toLowerCase()));
|
|
162
|
+
if (before.scope === "stages" && kept.length === 0) {
|
|
163
|
+
unresolved.push(roleItem(before.name, `the plan's role is not carried: none of its stages${labels.length > 0 ? ` (${labels.map((label) => `"${label}"`).join(", ")})` : ""} is in this plan, so it could apply to nothing. Add it back in the Case Designer if it is still wanted`));
|
|
164
|
+
return [];
|
|
165
|
+
}
|
|
166
|
+
const role = {
|
|
167
|
+
...extras,
|
|
168
|
+
...before,
|
|
169
|
+
...before.scope === "stages" && {
|
|
170
|
+
stageIds: kept.map((label) => idByLabel.get(label.toLowerCase()))
|
|
171
|
+
}
|
|
172
|
+
};
|
|
173
|
+
unresolved.push(roleItem(before.name, declared.has(roleResourceKey(before.name)) ? `kept from the plan as it was, ${describeRole(role, kept)}: its Personas row could not become a role (see the other items for it)` : `kept from the plan, which the Personas table does not declare: ${describeRole(role, kept)}. Add a row for it, or remove the role in the Case Designer`));
|
|
174
|
+
return [role];
|
|
175
|
+
});
|
|
176
|
+
};
|
|
177
|
+
var caseAppVersions = (previousMetadata, metadata, hasRoles) => {
|
|
178
|
+
const previousVersion = asString(previousMetadata.caseAppVersion);
|
|
179
|
+
const version = previousVersion ?? asString(metadata.caseAppVersion) ?? (hasRoles ? "v2" : undefined);
|
|
180
|
+
const createdVersion = previousVersion !== undefined ? asString(previousMetadata.caseAppCreatedVersion) : asString(previousMetadata.caseAppCreatedVersion) ?? asString(metadata.caseAppCreatedVersion) ?? (version !== undefined ? "v2" : undefined);
|
|
181
|
+
return { version, createdVersion };
|
|
182
|
+
};
|
|
7
183
|
|
|
8
184
|
// src/services/sdd-convert/canvas-note-match.ts
|
|
9
185
|
var SIMILAR = 0.5;
|
|
@@ -30,9 +206,9 @@ var similarity = (a, b) => {
|
|
|
30
206
|
var commonRun = (a, b) => {
|
|
31
207
|
const length = a.map(() => new Array(b.length + 1).fill(0));
|
|
32
208
|
length.push(new Array(b.length + 1).fill(0));
|
|
33
|
-
for (let
|
|
34
|
-
for (let
|
|
35
|
-
length[
|
|
209
|
+
for (let i = a.length - 1;i >= 0; i -= 1)
|
|
210
|
+
for (let j = b.length - 1;j >= 0; j -= 1)
|
|
211
|
+
length[i][j] = a[i] === b[j] ? length[i + 1][j + 1] + 1 : Math.max(length[i + 1][j], length[i][j + 1]);
|
|
36
212
|
const pairs = [];
|
|
37
213
|
let i = 0;
|
|
38
214
|
let j = 0;
|
|
@@ -281,27 +457,7 @@ var colorText = (note) => {
|
|
|
281
457
|
const color = dataOf(note).color;
|
|
282
458
|
return typeof color === "string" ? ` (${color})` : ` (${DEFAULT_COLOR}, the default)`;
|
|
283
459
|
};
|
|
284
|
-
var carryCanvasNotesFrom = async (document, out, unresolved) => {
|
|
285
|
-
const { getFileSystemAsync } = await import("./index-ngs0a2he.js");
|
|
286
|
-
const fs = await getFileSystemAsync();
|
|
287
|
-
if (!await fs.exists(out))
|
|
288
|
-
return 0;
|
|
289
|
-
const [readError, text] = await catchError(fs.readFile(out, "utf-8"));
|
|
290
|
-
if (readError || typeof text !== "string")
|
|
291
|
-
return {
|
|
292
|
-
error: `Could not read the plan at ${out} to keep its sticky notes: ${readError?.message ?? "it read as empty"}`
|
|
293
|
-
};
|
|
294
|
-
if (text.trim() === "")
|
|
295
|
-
return 0;
|
|
296
|
-
const json = text.replace(/^\uFEFF/, "");
|
|
297
|
-
const [parseError, previous] = await catchError(Promise.resolve().then(() => JSON.parse(json)));
|
|
298
|
-
if (parseError)
|
|
299
|
-
return {
|
|
300
|
-
error: `The plan at ${out} is not valid JSON, so its sticky notes cannot be kept: ${parseError.message}`
|
|
301
|
-
};
|
|
302
|
-
return carryCanvasNotes(document, previous, unresolved);
|
|
303
|
-
};
|
|
304
460
|
|
|
305
|
-
export {
|
|
461
|
+
export { caseRolesFor, carryCaseRoles, emitCanvasNotes, carryCanvasNotes };
|
|
306
462
|
|
|
307
|
-
//# debugId=
|
|
463
|
+
//# debugId=114C68FEC6CAE42B64756E2164756E21
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
import {
|
|
2
|
+
getAuthContext2
|
|
3
|
+
} from "./packager-tool-dn9d4ywm.js";
|
|
4
|
+
import {
|
|
5
|
+
logger
|
|
6
|
+
} from "./packager-tool-psmb758n.js";
|
|
7
|
+
|
|
8
|
+
// ../maestro-sdk/src/studio-catalog.ts
|
|
9
|
+
var catalogPromises = new Map;
|
|
10
|
+
async function typeCacheGet(route, query, what) {
|
|
11
|
+
const auth = await getAuthContext2({
|
|
12
|
+
requireOrganizationId: true,
|
|
13
|
+
requireTenantId: true
|
|
14
|
+
});
|
|
15
|
+
const url = `${auth.baseUrl}/${encodeURIComponent(auth.organizationId)}/studio_/typecache/api/${route}?${query}`;
|
|
16
|
+
logger.debug(`Fetching Studio TypeCache with URL: ${url}`);
|
|
17
|
+
const response = await fetch(url, {
|
|
18
|
+
method: "GET",
|
|
19
|
+
headers: {
|
|
20
|
+
Authorization: `Bearer ${auth.accessToken}`,
|
|
21
|
+
"Content-Type": "application/json",
|
|
22
|
+
"X-Uipath-Tenantid": auth.tenantId,
|
|
23
|
+
Accept: "application/json"
|
|
24
|
+
}
|
|
25
|
+
});
|
|
26
|
+
if (!response.ok) {
|
|
27
|
+
const errorText = await response.text();
|
|
28
|
+
logger.debug(`Error response body: ${errorText}`);
|
|
29
|
+
throw new Error(`${what} failed: ${response.status} ${response.statusText} - ${errorText}`);
|
|
30
|
+
}
|
|
31
|
+
return await response.json();
|
|
32
|
+
}
|
|
33
|
+
function hasCatalogLists(data) {
|
|
34
|
+
return Array.isArray(data.activities) && Array.isArray(data.triggers);
|
|
35
|
+
}
|
|
36
|
+
async function fetchSearchCatalog(projectType) {
|
|
37
|
+
const data = await typeCacheGet("Search/Catalog", new URLSearchParams({
|
|
38
|
+
useLucene: "false",
|
|
39
|
+
useElastic: "true",
|
|
40
|
+
projectType
|
|
41
|
+
}), "catalog search");
|
|
42
|
+
if (!hasCatalogLists(data)) {
|
|
43
|
+
throw new Error(`catalog search returned unexpected shape: ${JSON.stringify(data).slice(0, 200)}`);
|
|
44
|
+
}
|
|
45
|
+
const packages = Array.isArray(data.packages) ? data.packages : [];
|
|
46
|
+
const activities = data.activities;
|
|
47
|
+
const triggers = data.triggers;
|
|
48
|
+
logger.debug(`Received ${projectType} catalog: ${activities.length} activities, ${triggers.length} triggers, ${packages.length} packages`);
|
|
49
|
+
return {
|
|
50
|
+
packages,
|
|
51
|
+
activities,
|
|
52
|
+
triggers
|
|
53
|
+
};
|
|
54
|
+
}
|
|
55
|
+
async function searchCatalog(projectType) {
|
|
56
|
+
let promise = catalogPromises.get(projectType);
|
|
57
|
+
if (!promise) {
|
|
58
|
+
promise = fetchSearchCatalog(projectType);
|
|
59
|
+
catalogPromises.set(projectType, promise);
|
|
60
|
+
promise.catch(() => {
|
|
61
|
+
catalogPromises.delete(projectType);
|
|
62
|
+
});
|
|
63
|
+
}
|
|
64
|
+
return promise;
|
|
65
|
+
}
|
|
66
|
+
async function searchActivities(projectType = "ProcessOrchestration") {
|
|
67
|
+
return (await searchCatalog(projectType)).activities;
|
|
68
|
+
}
|
|
69
|
+
async function searchTriggers(projectType = "ProcessOrchestration") {
|
|
70
|
+
return (await searchCatalog(projectType)).triggers;
|
|
71
|
+
}
|
|
72
|
+
async function searchPackages(projectType = "ProcessOrchestration") {
|
|
73
|
+
return (await searchCatalog(projectType)).packages;
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
export { searchActivities, searchTriggers, searchPackages };
|
|
77
|
+
|
|
78
|
+
//# debugId=7B94294781FD29F064756E2164756E21
|