@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
|
@@ -1,9 +1,17 @@
|
|
|
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
|
+
catchError2
|
|
6
|
+
} from "./packager-tool-psmb758n.js";
|
|
7
|
+
import {
|
|
8
|
+
resolvePackagedMainEntry,
|
|
9
|
+
readProjectMainFile,
|
|
10
|
+
readOperateMain
|
|
11
|
+
} from "./packager-tool-snesn0bt.js";
|
|
12
|
+
import {
|
|
13
|
+
casePlanDefaults2
|
|
14
|
+
} from "./packager-tool-4avchhz8.js";
|
|
7
15
|
|
|
8
16
|
// src/services/localSolutionDiscovery.ts
|
|
9
17
|
var LOCAL_RESOURCE_TYPES = new Set([
|
|
@@ -32,16 +40,16 @@ var PROCESS_SUBDIR = ["resources", "solution_folder", "process"];
|
|
|
32
40
|
function isUnder(parent, child) {
|
|
33
41
|
if (child === parent)
|
|
34
42
|
return true;
|
|
35
|
-
const fs =
|
|
43
|
+
const fs = getFileSystem2();
|
|
36
44
|
const rel = fs.path.relative(parent, child);
|
|
37
45
|
return rel !== "" && !rel.startsWith("..") && !fs.path.isAbsolute(rel);
|
|
38
46
|
}
|
|
39
47
|
async function parseEnrichmentFile(filePath) {
|
|
40
|
-
const fs =
|
|
41
|
-
const [readErr, content] = await
|
|
48
|
+
const fs = getFileSystem2();
|
|
49
|
+
const [readErr, content] = await catchError2(fs.readFile(filePath, "utf-8"));
|
|
42
50
|
if (readErr || !content)
|
|
43
51
|
return null;
|
|
44
|
-
const [parseErr, parsed] =
|
|
52
|
+
const [parseErr, parsed] = catchError2(() => JSON.parse(content));
|
|
45
53
|
if (parseErr || !parsed.resource?.projectKey)
|
|
46
54
|
return null;
|
|
47
55
|
const r = parsed.resource;
|
|
@@ -57,16 +65,16 @@ async function parseEnrichmentFile(filePath) {
|
|
|
57
65
|
}
|
|
58
66
|
];
|
|
59
67
|
}
|
|
60
|
-
async function
|
|
61
|
-
const fs =
|
|
68
|
+
async function loadResourceEnrichmentMap2(solutionDir) {
|
|
69
|
+
const fs = getFileSystem2();
|
|
62
70
|
const map = new Map;
|
|
63
71
|
const processDir = fs.path.join(solutionDir, ...PROCESS_SUBDIR);
|
|
64
|
-
const [dirErr, typeDirs] = await
|
|
72
|
+
const [dirErr, typeDirs] = await catchError2(fs.readdir(processDir));
|
|
65
73
|
if (dirErr || !Array.isArray(typeDirs))
|
|
66
74
|
return map;
|
|
67
75
|
for (const typeDir of typeDirs) {
|
|
68
76
|
const typePath = fs.path.join(processDir, typeDir);
|
|
69
|
-
const [filesErr, files] = await
|
|
77
|
+
const [filesErr, files] = await catchError2(fs.readdir(typePath));
|
|
70
78
|
if (filesErr || !Array.isArray(files))
|
|
71
79
|
continue;
|
|
72
80
|
for (const file of files) {
|
|
@@ -80,29 +88,33 @@ async function loadResourceEnrichmentMap(solutionDir) {
|
|
|
80
88
|
return map;
|
|
81
89
|
}
|
|
82
90
|
async function readProjectName(projectDir) {
|
|
83
|
-
const fs =
|
|
84
|
-
const [err, content] = await
|
|
91
|
+
const fs = getFileSystem2();
|
|
92
|
+
const [err, content] = await catchError2(fs.readFile(fs.path.join(projectDir, "project.uiproj"), "utf-8"));
|
|
85
93
|
if (!err && content) {
|
|
86
|
-
const [parseErr, parsed] =
|
|
94
|
+
const [parseErr, parsed] = catchError2(() => JSON.parse(content));
|
|
87
95
|
if (!parseErr && parsed.Name)
|
|
88
96
|
return parsed.Name;
|
|
89
97
|
}
|
|
90
98
|
return fs.path.basename(projectDir);
|
|
91
99
|
}
|
|
92
100
|
async function readEntryPointIO(projectDir) {
|
|
93
|
-
const fs =
|
|
94
|
-
const
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
const [err, content] = await catchError(fs.readFile(filePath, "utf-8"));
|
|
101
|
+
const fs = getFileSystem2();
|
|
102
|
+
const mainFile = await readProjectMainFile(fs, projectDir);
|
|
103
|
+
const candidates = [projectDir, fs.path.join(projectDir, "content")];
|
|
104
|
+
for (const dir of candidates) {
|
|
105
|
+
const filePath = fs.path.join(dir, "entry-points.json");
|
|
106
|
+
const [err, content] = await catchError2(fs.readFile(filePath, "utf-8"));
|
|
100
107
|
if (err || !content)
|
|
101
108
|
continue;
|
|
102
|
-
const [parseErr, parsed] =
|
|
109
|
+
const [parseErr, parsed] = catchError2(() => JSON.parse(content));
|
|
103
110
|
if (parseErr || !parsed.entryPoints?.length)
|
|
104
111
|
continue;
|
|
105
|
-
const
|
|
112
|
+
const [, withPlanDefaults] = await catchError2(casePlanDefaults2(fs, dir));
|
|
113
|
+
const entries = parsed.entryPoints;
|
|
114
|
+
const [, defaulted] = catchError2(() => withPlanDefaults?.(entries));
|
|
115
|
+
const ep = resolvePackagedMainEntry(defaulted ?? entries, await readOperateMain(fs, dir), mainFile);
|
|
116
|
+
if (!ep)
|
|
117
|
+
continue;
|
|
106
118
|
return {
|
|
107
119
|
inputs: ep.input ?? ep.InputArguments,
|
|
108
120
|
outputs: ep.output ?? ep.OutputArguments
|
|
@@ -110,11 +122,11 @@ async function readEntryPointIO(projectDir) {
|
|
|
110
122
|
}
|
|
111
123
|
return {};
|
|
112
124
|
}
|
|
113
|
-
async function
|
|
125
|
+
async function readLocalResourcesForType2(ctx, resourceType, enrichment) {
|
|
114
126
|
if (!LOCAL_RESOURCE_TYPES.has(resourceType))
|
|
115
127
|
return [];
|
|
116
|
-
const fs =
|
|
117
|
-
const enrichmentMap = enrichment ?? await
|
|
128
|
+
const fs = getFileSystem2();
|
|
129
|
+
const enrichmentMap = enrichment ?? await loadResourceEnrichmentMap2(ctx.solutionDir);
|
|
118
130
|
const entries = [];
|
|
119
131
|
for (const project of ctx.projects) {
|
|
120
132
|
if (!project.Id || !project.Type)
|
|
@@ -148,6 +160,6 @@ async function readLocalResourcesForType(ctx, resourceType, enrichment) {
|
|
|
148
160
|
return entries;
|
|
149
161
|
}
|
|
150
162
|
|
|
151
|
-
export {
|
|
163
|
+
export { loadResourceEnrichmentMap2, readLocalResourcesForType2 };
|
|
152
164
|
|
|
153
|
-
//# debugId=
|
|
165
|
+
//# debugId=DEEA168D8D2E465264756E2164756E21
|
|
@@ -1,24 +1,26 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
3
|
-
} from "./packager-tool-
|
|
2
|
+
catchError2
|
|
3
|
+
} from "./packager-tool-psmb758n.js";
|
|
4
4
|
import {
|
|
5
5
|
ConnectorsApi,
|
|
6
6
|
createApiClient
|
|
7
|
-
} from "./packager-tool-
|
|
7
|
+
} from "./packager-tool-ccejfs0r.js";
|
|
8
8
|
import {
|
|
9
|
+
TYPECACHE_ACTIVITY_INDEX_TYPES,
|
|
10
|
+
TYPECACHE_TRIGGER_INDEX_TYPES,
|
|
9
11
|
TYPECACHE_PACKAGE_INDEX_TYPES
|
|
10
|
-
} from "./packager-tool-
|
|
12
|
+
} from "./packager-tool-jv5byaww.js";
|
|
11
13
|
import {
|
|
12
|
-
|
|
13
|
-
} from "./packager-tool-
|
|
14
|
+
loadResourceIndex
|
|
15
|
+
} from "./packager-tool-vs7gqa4r.js";
|
|
14
16
|
|
|
15
17
|
// src/services/connector-lookup-service.ts
|
|
16
|
-
async function
|
|
18
|
+
async function lookupTypeCacheEntry2(uiPathActivityTypeId, type) {
|
|
17
19
|
const types = typeof type === "string" ? [type] : type;
|
|
18
20
|
let entry;
|
|
19
21
|
let matchedType = types[0];
|
|
20
22
|
for (const candidate of types) {
|
|
21
|
-
const [loadError, entries] = await
|
|
23
|
+
const [loadError, entries] = await catchError2(loadResourceIndex(candidate));
|
|
22
24
|
if (loadError) {
|
|
23
25
|
if (types.length === 1)
|
|
24
26
|
throw loadError;
|
|
@@ -34,7 +36,7 @@ async function lookupTypeCacheEntry(uiPathActivityTypeId, type) {
|
|
|
34
36
|
if (!entry) {
|
|
35
37
|
throw new Error(`No entry found in ${types.join(", ")} with uiPathActivityTypeId: ${uiPathActivityTypeId}`);
|
|
36
38
|
}
|
|
37
|
-
const [parseError, config] =
|
|
39
|
+
const [parseError, config] = catchError2(() => JSON.parse(entry.configuration));
|
|
38
40
|
if (parseError) {
|
|
39
41
|
throw new Error(`Failed to parse configuration for "${entry.displayName}" in ${matchedType}: ${parseError.message}`);
|
|
40
42
|
}
|
|
@@ -47,7 +49,7 @@ async function lookupConnectorDisplayName(packageId) {
|
|
|
47
49
|
if (typeof packageId !== "number")
|
|
48
50
|
return null;
|
|
49
51
|
for (const indexType of TYPECACHE_PACKAGE_INDEX_TYPES) {
|
|
50
|
-
const [err, packages] = await
|
|
52
|
+
const [err, packages] = await catchError2(loadResourceIndex(indexType));
|
|
51
53
|
if (err)
|
|
52
54
|
continue;
|
|
53
55
|
const pkg = packages.find((p) => p.id === packageId);
|
|
@@ -56,12 +58,27 @@ async function lookupConnectorDisplayName(packageId) {
|
|
|
56
58
|
}
|
|
57
59
|
return null;
|
|
58
60
|
}
|
|
59
|
-
|
|
60
|
-
|
|
61
|
+
var caseTypeCacheSource2 = {
|
|
62
|
+
async lookupEntry(kind, activityTypeId) {
|
|
63
|
+
const sources = kind === "activity" ? TYPECACHE_ACTIVITY_INDEX_TYPES : TYPECACHE_TRIGGER_INDEX_TYPES;
|
|
64
|
+
const [err, result] = await catchError2(lookupTypeCacheEntry2(activityTypeId, sources));
|
|
65
|
+
if (err) {
|
|
66
|
+
throw new Error(`No TypeCache entry found in ${sources.join(", ")} for uiPathActivityTypeId "${activityTypeId}". ` + `If the id is correct, run 'uip maestro case registry pull' to refresh the local cache. ` + `If you're looking up the other kind, pass --type ${kind === "activity" ? "trigger" : "activity"}.`);
|
|
67
|
+
}
|
|
68
|
+
return {
|
|
69
|
+
source: result.source,
|
|
70
|
+
entry: result.entry,
|
|
71
|
+
config: { ...result.config }
|
|
72
|
+
};
|
|
73
|
+
},
|
|
74
|
+
lookupConnectorDisplayName
|
|
75
|
+
};
|
|
76
|
+
async function fetchConnectorConnections2(connectorKey) {
|
|
77
|
+
const [apiError, api] = await catchError2(createApiClient(ConnectorsApi));
|
|
61
78
|
if (apiError) {
|
|
62
79
|
throw new Error(`Failed to create Integration Service client: ${apiError.message}`);
|
|
63
80
|
}
|
|
64
|
-
const [fetchError, connections] = await
|
|
81
|
+
const [fetchError, connections] = await catchError2(api.apiV1ConnectorsKeyOrIdConnectionsGet({
|
|
65
82
|
keyOrId: connectorKey,
|
|
66
83
|
allFolders: true,
|
|
67
84
|
folderDefaults: true
|
|
@@ -72,6 +89,6 @@ async function fetchConnectorConnections(connectorKey) {
|
|
|
72
89
|
return connections;
|
|
73
90
|
}
|
|
74
91
|
|
|
75
|
-
export {
|
|
92
|
+
export { lookupTypeCacheEntry2, caseTypeCacheSource2, fetchConnectorConnections2 };
|
|
76
93
|
|
|
77
|
-
//# debugId=
|
|
94
|
+
//# debugId=0DE36F85D9934EA164756E2164756E21
|
|
@@ -0,0 +1,178 @@
|
|
|
1
|
+
import {
|
|
2
|
+
getFileSystem2
|
|
3
|
+
} from "./packager-tool-z070caqq.js";
|
|
4
|
+
import {
|
|
5
|
+
catchError2
|
|
6
|
+
} from "./packager-tool-psmb758n.js";
|
|
7
|
+
import {
|
|
8
|
+
eventTriggerResourceKey,
|
|
9
|
+
buildEventTriggerResource,
|
|
10
|
+
packageStoredBinding,
|
|
11
|
+
buildParameterPropertyResource
|
|
12
|
+
} from "./packager-tool-h2ar8xf8.js";
|
|
13
|
+
import {
|
|
14
|
+
CONNECTION_ID_PROPERTY2
|
|
15
|
+
} from "./packager-tool-kz7zz79p.js";
|
|
16
|
+
|
|
17
|
+
// src/services/case-event-trigger-bindings.ts
|
|
18
|
+
var ENTRY_POINTS_FILE_NAME = "entry-points.json";
|
|
19
|
+
var EVENT_TRIGGER_SERVICE_TYPE = "Intsvc.EventTrigger";
|
|
20
|
+
var TRIGGER_NODE_TYPES = new Set([
|
|
21
|
+
"uipath.case.trigger",
|
|
22
|
+
"case-management:Trigger"
|
|
23
|
+
]);
|
|
24
|
+
var BINDING_REFERENCE_PREFIX = "=bindings.";
|
|
25
|
+
var asRecord = (value) => value !== null && typeof value === "object" && !Array.isArray(value) ? value : undefined;
|
|
26
|
+
var asString = (value) => typeof value === "string" && value !== "" ? value : undefined;
|
|
27
|
+
var nonEmpty = (value) => {
|
|
28
|
+
const record = asRecord(value);
|
|
29
|
+
return record !== undefined && Object.keys(record).length > 0 ? record : undefined;
|
|
30
|
+
};
|
|
31
|
+
function entryPointIdsByNode2(entryPoints) {
|
|
32
|
+
const ids = new Map;
|
|
33
|
+
const list = asRecord(entryPoints)?.entryPoints;
|
|
34
|
+
if (!Array.isArray(list))
|
|
35
|
+
return ids;
|
|
36
|
+
for (const item of list) {
|
|
37
|
+
const entry = asRecord(item);
|
|
38
|
+
const filePath = asString(entry?.filePath);
|
|
39
|
+
const uniqueId = asString(entry?.uniqueId);
|
|
40
|
+
const hash = filePath?.lastIndexOf("#") ?? -1;
|
|
41
|
+
if (filePath === undefined || uniqueId === undefined || hash < 0)
|
|
42
|
+
continue;
|
|
43
|
+
const node = filePath.slice(hash + 1);
|
|
44
|
+
if (!ids.has(node))
|
|
45
|
+
ids.set(node, uniqueId);
|
|
46
|
+
}
|
|
47
|
+
return ids;
|
|
48
|
+
}
|
|
49
|
+
async function readEntryPointIds2(casePlanPath) {
|
|
50
|
+
const fs = getFileSystem2();
|
|
51
|
+
const path = fs.path.join(fs.path.dirname(fs.path.resolve(casePlanPath)), ENTRY_POINTS_FILE_NAME);
|
|
52
|
+
if (!await fs.exists(path))
|
|
53
|
+
return { ids: new Map };
|
|
54
|
+
const [readError, raw] = await catchError2(fs.readFile(path, "utf-8"));
|
|
55
|
+
if (readError || raw == null) {
|
|
56
|
+
return {
|
|
57
|
+
error: `Could not read ${path}: ${readError?.message ?? "the file is no longer there"}`,
|
|
58
|
+
path
|
|
59
|
+
};
|
|
60
|
+
}
|
|
61
|
+
const [parseError, parsed] = catchError2(() => JSON.parse(raw));
|
|
62
|
+
if (parseError) {
|
|
63
|
+
return {
|
|
64
|
+
error: `${path} is not valid JSON: ${parseError.message}`,
|
|
65
|
+
path
|
|
66
|
+
};
|
|
67
|
+
}
|
|
68
|
+
return { ids: entryPointIdsByNode2(parsed) };
|
|
69
|
+
}
|
|
70
|
+
function readTrigger(node) {
|
|
71
|
+
const record = asRecord(node);
|
|
72
|
+
const nodeId = asString(record?.id);
|
|
73
|
+
if (nodeId === undefined || !TRIGGER_NODE_TYPES.has(String(record?.type)))
|
|
74
|
+
return;
|
|
75
|
+
const data = asRecord(record?.data);
|
|
76
|
+
const container = [asRecord(data?.inputs), asRecord(data?.uipath)].find((candidate) => candidate?.serviceType === EVENT_TRIGGER_SERVICE_TYPE);
|
|
77
|
+
if (container === undefined || !Array.isArray(container.context))
|
|
78
|
+
return;
|
|
79
|
+
const context = new Map;
|
|
80
|
+
for (const item of container.context) {
|
|
81
|
+
const entry = asRecord(item);
|
|
82
|
+
const name = asString(entry?.name);
|
|
83
|
+
if (name !== undefined)
|
|
84
|
+
context.set(name, entry?.value ?? entry?.body);
|
|
85
|
+
}
|
|
86
|
+
const bodyInput = Array.isArray(container.inputs) ? container.inputs.map(asRecord).find((input) => input?.name === "body") : undefined;
|
|
87
|
+
return {
|
|
88
|
+
nodeId,
|
|
89
|
+
activityName: asString(asRecord(data?.display)?.label) ?? asString(data?.label) ?? asString(context.get("operation")),
|
|
90
|
+
context,
|
|
91
|
+
body: asRecord(bodyInput?.body),
|
|
92
|
+
metadataBody: asRecord(context.get("metadata"))
|
|
93
|
+
};
|
|
94
|
+
}
|
|
95
|
+
function findConnectionBinding(trigger, bindings) {
|
|
96
|
+
const connections = bindings.filter((binding) => binding.resource === "Connection" && binding.propertyAttribute === CONNECTION_ID_PROPERTY2);
|
|
97
|
+
const reference = asString(trigger.context.get("connection"));
|
|
98
|
+
if (reference?.startsWith(BINDING_REFERENCE_PREFIX)) {
|
|
99
|
+
const id = reference.slice(BINDING_REFERENCE_PREFIX.length);
|
|
100
|
+
const byId = connections.find((binding) => binding.id === id);
|
|
101
|
+
if (byId !== undefined)
|
|
102
|
+
return byId;
|
|
103
|
+
}
|
|
104
|
+
const resourceKey = asString(trigger.context.get("resourceKey"));
|
|
105
|
+
return connections.find((binding) => binding.resourceKey === resourceKey);
|
|
106
|
+
}
|
|
107
|
+
function eventTriggerResource(trigger, connectionId, entryPointId) {
|
|
108
|
+
const apc = asRecord(trigger.metadataBody?.activityPropertyConfiguration);
|
|
109
|
+
return buildEventTriggerResource({
|
|
110
|
+
connectionKey: connectionId,
|
|
111
|
+
nodeId: trigger.nodeId,
|
|
112
|
+
entryPointId,
|
|
113
|
+
connector: asString(trigger.context.get("connectorKey")),
|
|
114
|
+
activityName: trigger.activityName,
|
|
115
|
+
objectName: objectName(trigger),
|
|
116
|
+
operation: asString(trigger.context.get("operation")),
|
|
117
|
+
filterExpression: asString(apc?.filterExpression) ?? asString(asRecord(trigger.body?.filters)?.expression)
|
|
118
|
+
});
|
|
119
|
+
}
|
|
120
|
+
var objectName = (trigger) => asString(trigger.context.get("objectName")) ?? asString(asRecord(trigger.metadataBody?.activityPropertyConfiguration)?.objectName);
|
|
121
|
+
function storedPropertyResources(trigger, parentResourceKey) {
|
|
122
|
+
const stored = trigger.metadataBody?.bindings;
|
|
123
|
+
if (!Array.isArray(stored) || stored.length === 0)
|
|
124
|
+
return;
|
|
125
|
+
return stored.flatMap((raw) => {
|
|
126
|
+
const entry = asRecord(raw);
|
|
127
|
+
if (typeof entry?.resource !== "string" || typeof entry.key !== "string")
|
|
128
|
+
return [];
|
|
129
|
+
return [
|
|
130
|
+
packageStoredBinding(entry, {
|
|
131
|
+
nodeId: trigger.nodeId,
|
|
132
|
+
activityName: trigger.activityName,
|
|
133
|
+
parentResourceKey
|
|
134
|
+
})
|
|
135
|
+
];
|
|
136
|
+
});
|
|
137
|
+
}
|
|
138
|
+
function propertyResources(trigger, parentResourceKey) {
|
|
139
|
+
const stored = storedPropertyResources(trigger, parentResourceKey);
|
|
140
|
+
if (stored !== undefined)
|
|
141
|
+
return stored;
|
|
142
|
+
const parameters = nonEmpty(trigger.body?.queryParams) ?? nonEmpty(trigger.body?.parameters);
|
|
143
|
+
const operation = asString(trigger.context.get("operation"));
|
|
144
|
+
if (parameters === undefined || operation === undefined)
|
|
145
|
+
return [];
|
|
146
|
+
return [
|
|
147
|
+
buildParameterPropertyResource({
|
|
148
|
+
key: operation,
|
|
149
|
+
nodeId: trigger.nodeId,
|
|
150
|
+
parameters,
|
|
151
|
+
activityName: trigger.activityName,
|
|
152
|
+
objectName: objectName(trigger),
|
|
153
|
+
parentResourceKey
|
|
154
|
+
})
|
|
155
|
+
];
|
|
156
|
+
}
|
|
157
|
+
function deriveEventTriggerResources2(nodes, bindings, entryPointIds) {
|
|
158
|
+
if (!Array.isArray(nodes))
|
|
159
|
+
return [];
|
|
160
|
+
return nodes.flatMap((node) => {
|
|
161
|
+
const trigger = readTrigger(node);
|
|
162
|
+
if (trigger === undefined)
|
|
163
|
+
return [];
|
|
164
|
+
const binding = findConnectionBinding(trigger, bindings);
|
|
165
|
+
if (binding === undefined)
|
|
166
|
+
return [];
|
|
167
|
+
const connectionId = binding.default ?? binding.resourceKey;
|
|
168
|
+
const key = eventTriggerResourceKey(connectionId, trigger.nodeId);
|
|
169
|
+
return [
|
|
170
|
+
eventTriggerResource(trigger, connectionId, entryPointIds.get(trigger.nodeId)),
|
|
171
|
+
...propertyResources(trigger, `EventTrigger.${key}`)
|
|
172
|
+
];
|
|
173
|
+
});
|
|
174
|
+
}
|
|
175
|
+
|
|
176
|
+
export { entryPointIdsByNode2, readEntryPointIds2, deriveEventTriggerResources2 };
|
|
177
|
+
|
|
178
|
+
//# debugId=DE6B26E58776F4C864756E2164756E21
|
|
@@ -0,0 +1,222 @@
|
|
|
1
|
+
// ../integrationservice-sdk/src/dap/bindings-v2.ts
|
|
2
|
+
var BINDINGS_VERSION = "2.2";
|
|
3
|
+
var JSON_STRING_PREFIX = "=jsonString:";
|
|
4
|
+
var guardJsonString = (json) => `${JSON_STRING_PREFIX}${json}`;
|
|
5
|
+
var stripJsonStringGuard = (value) => value.startsWith(JSON_STRING_PREFIX) ? value.slice(JSON_STRING_PREFIX.length) : value;
|
|
6
|
+
function mapStringsDeep(value, map) {
|
|
7
|
+
if (typeof value === "string")
|
|
8
|
+
return map(value);
|
|
9
|
+
if (Array.isArray(value)) {
|
|
10
|
+
return value.map((entry) => mapStringsDeep(entry, map));
|
|
11
|
+
}
|
|
12
|
+
if (value !== null && typeof value === "object") {
|
|
13
|
+
return Object.fromEntries(Object.entries(value).map(([key, entry]) => [
|
|
14
|
+
key,
|
|
15
|
+
mapStringsDeep(entry, map)
|
|
16
|
+
]));
|
|
17
|
+
}
|
|
18
|
+
return value;
|
|
19
|
+
}
|
|
20
|
+
var restoreJsonStringsDeep = (value) => mapStringsDeep(value, stripJsonStringGuard);
|
|
21
|
+
var CONN_BINDING_ID_PLACEHOLDER = "{{CONN_BINDING_ID}}";
|
|
22
|
+
var FOLDER_BINDING_ID_PLACEHOLDER = "{{FOLDER_BINDING_ID}}";
|
|
23
|
+
var RESOURCE_BINDING_ID_PREFIX = "{{RESOURCE_BINDING_ID:";
|
|
24
|
+
var resourceBindingIdPlaceholder = (field) => `${RESOURCE_BINDING_ID_PREFIX}${field}}}`;
|
|
25
|
+
var optional = (key, value) => value ? { [key]: value } : {};
|
|
26
|
+
var eventTriggerResourceKey = (connectionKey, nodeId) => [connectionKey, nodeId].filter(Boolean).join("_");
|
|
27
|
+
function buildEventTriggerResource(spec) {
|
|
28
|
+
const key = eventTriggerResourceKey(spec.connectionKey, spec.nodeId);
|
|
29
|
+
return {
|
|
30
|
+
resource: "EventTrigger",
|
|
31
|
+
key,
|
|
32
|
+
id: `EventTrigger${key}`,
|
|
33
|
+
value: {
|
|
34
|
+
ConnectionId: {
|
|
35
|
+
defaultValue: spec.connectionKey,
|
|
36
|
+
isExpression: false
|
|
37
|
+
},
|
|
38
|
+
...spec.entryPointId && {
|
|
39
|
+
EntryPointUniqueId: {
|
|
40
|
+
defaultValue: spec.entryPointId,
|
|
41
|
+
isExpression: false
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
},
|
|
45
|
+
metadata: {
|
|
46
|
+
UseConnectionService: "true",
|
|
47
|
+
...optional("Connector", spec.connector),
|
|
48
|
+
...optional("ActivityName", spec.activityName),
|
|
49
|
+
BindingsVersion: BINDINGS_VERSION,
|
|
50
|
+
...optional("ObjectName", spec.objectName),
|
|
51
|
+
...optional("Operation", spec.operation),
|
|
52
|
+
FilterExpression: spec.filterExpression ?? ""
|
|
53
|
+
}
|
|
54
|
+
};
|
|
55
|
+
}
|
|
56
|
+
function packageStoredBinding(row, owner) {
|
|
57
|
+
const clone = restoreJsonStringsDeep(structuredClone(row));
|
|
58
|
+
const metadata = {
|
|
59
|
+
...isRecord(clone.metadata) ? clone.metadata : {},
|
|
60
|
+
...optional("ActivityName", owner.activityName)
|
|
61
|
+
};
|
|
62
|
+
clone.metadata = metadata;
|
|
63
|
+
if (clone.resource === "Property") {
|
|
64
|
+
clone.id = `Property_${owner.nodeId}`;
|
|
65
|
+
if (owner.operation && owner.parentResourceKey && clone.key === owner.operation) {
|
|
66
|
+
clone.key = `${owner.operation}_${owner.parentResourceKey}`;
|
|
67
|
+
}
|
|
68
|
+
metadata.ParentResourceKey = owner.parentResourceKey;
|
|
69
|
+
}
|
|
70
|
+
return clone;
|
|
71
|
+
}
|
|
72
|
+
function buildParameterPropertyResource(spec) {
|
|
73
|
+
const names = Object.keys(spec.parameters).join(",");
|
|
74
|
+
return {
|
|
75
|
+
resource: "Property",
|
|
76
|
+
key: spec.key,
|
|
77
|
+
id: `Property_${spec.nodeId}`,
|
|
78
|
+
value: Object.fromEntries(Object.entries(spec.parameters).map(([name, raw]) => [
|
|
79
|
+
name,
|
|
80
|
+
{ defaultValue: String(raw), isExpression: false }
|
|
81
|
+
])),
|
|
82
|
+
metadata: {
|
|
83
|
+
TriggerCreateParameters: names,
|
|
84
|
+
DebugQueryParameters: names,
|
|
85
|
+
...optional("ActivityName", spec.activityName),
|
|
86
|
+
BindingsVersion: BINDINGS_VERSION,
|
|
87
|
+
...optional("ObjectName", spec.objectName),
|
|
88
|
+
ParentResourceKey: spec.parentResourceKey
|
|
89
|
+
}
|
|
90
|
+
};
|
|
91
|
+
}
|
|
92
|
+
function upsertResourceBinding(bindings, row, mintId) {
|
|
93
|
+
const existing = bindings.find((binding) => binding.resource === row.resource && binding.resourceKey === row.resourceKey && binding.propertyAttribute === row.propertyAttribute);
|
|
94
|
+
if (existing) {
|
|
95
|
+
if (typeof existing.id !== "string" || existing.id === "") {
|
|
96
|
+
existing.id = mintId();
|
|
97
|
+
}
|
|
98
|
+
existing.name = row.name;
|
|
99
|
+
existing.default = row.default;
|
|
100
|
+
return { binding: existing, created: false };
|
|
101
|
+
}
|
|
102
|
+
const binding = {
|
|
103
|
+
id: mintId(),
|
|
104
|
+
name: row.name,
|
|
105
|
+
type: "string",
|
|
106
|
+
resource: row.resource,
|
|
107
|
+
resourceKey: row.resourceKey,
|
|
108
|
+
...row.default ? { default: row.default } : {},
|
|
109
|
+
propertyAttribute: row.propertyAttribute
|
|
110
|
+
};
|
|
111
|
+
return { binding, created: true };
|
|
112
|
+
}
|
|
113
|
+
var isRecord = (value) => value !== null && typeof value === "object" && !Array.isArray(value);
|
|
114
|
+
|
|
115
|
+
// ../integrationservice-sdk/src/dap/activity-bindings.ts
|
|
116
|
+
var DROPPED_RESOURCES = ["connection", "eventtrigger"];
|
|
117
|
+
var isResourceType = (resource, types) => types.includes((resource ?? "").toLowerCase());
|
|
118
|
+
function storedActivityBindings(bindings) {
|
|
119
|
+
return bindings.filter((binding) => !isResourceType(binding.resource, DROPPED_RESOURCES));
|
|
120
|
+
}
|
|
121
|
+
function planResourceBindings(stored, resolved) {
|
|
122
|
+
const plans = [];
|
|
123
|
+
for (const { field, companion, selection } of resolved) {
|
|
124
|
+
const entry = stored.find((binding) => binding.key?.toLowerCase() === selection.key.toLowerCase() && !isResourceType(binding.resource, ["property"]));
|
|
125
|
+
if (entry === undefined)
|
|
126
|
+
continue;
|
|
127
|
+
const displayName = entry.value?.name?.displayName ?? field;
|
|
128
|
+
const rows = [
|
|
129
|
+
{
|
|
130
|
+
field,
|
|
131
|
+
propertyAttribute: "name",
|
|
132
|
+
name: displayName,
|
|
133
|
+
default: selection.name
|
|
134
|
+
}
|
|
135
|
+
];
|
|
136
|
+
if (entry.value?.folderKey && selection.folderKey) {
|
|
137
|
+
rows.push({
|
|
138
|
+
field: companion,
|
|
139
|
+
propertyAttribute: "folderKey",
|
|
140
|
+
name: `${displayName} folder`,
|
|
141
|
+
default: selection.folderKey
|
|
142
|
+
});
|
|
143
|
+
}
|
|
144
|
+
plans.push({
|
|
145
|
+
resource: entry.resource,
|
|
146
|
+
resourceKey: selection.key,
|
|
147
|
+
rows
|
|
148
|
+
});
|
|
149
|
+
}
|
|
150
|
+
return plans;
|
|
151
|
+
}
|
|
152
|
+
|
|
153
|
+
// ../integrationservice-sdk/src/dap/external-execution.ts
|
|
154
|
+
function externalExecutionOf(metadata) {
|
|
155
|
+
if (typeof metadata !== "object" || metadata === null)
|
|
156
|
+
return;
|
|
157
|
+
const record = metadata;
|
|
158
|
+
const executionType = record.executionType;
|
|
159
|
+
if (typeof executionType !== "string" || executionType === "") {
|
|
160
|
+
return;
|
|
161
|
+
}
|
|
162
|
+
if (executionType !== "async" && executionType !== "hybrid") {
|
|
163
|
+
return { executionType };
|
|
164
|
+
}
|
|
165
|
+
const events = record.metadata?.events;
|
|
166
|
+
const eventMode = Array.isArray(events?.eventMode) ? String(events.eventMode[0] ?? "") : undefined;
|
|
167
|
+
const source = eventMode === "webhooks" ? events?.webhook : eventMode === "polling" ? events?.polling : undefined;
|
|
168
|
+
const eventTypes = source?.eventTypes;
|
|
169
|
+
return {
|
|
170
|
+
executionType,
|
|
171
|
+
...eventMode && { eventMode },
|
|
172
|
+
...eventTypes?.[0]?.operation && {
|
|
173
|
+
eventType: eventTypes[0].operation
|
|
174
|
+
}
|
|
175
|
+
};
|
|
176
|
+
}
|
|
177
|
+
function externalExecutionWarning(external, target) {
|
|
178
|
+
const { executionType, eventType } = external;
|
|
179
|
+
if (executionType === "sync" || eventType)
|
|
180
|
+
return;
|
|
181
|
+
return executionType === "async" || executionType === "hybrid" ? `"${target}" runs ${executionType}, but its metadata names no event it answers with, so the node has nothing to wait on and may never finish.` : `"${target}" has execution type "${executionType}", which is neither sync nor async, so it is saved as is and may not run.`;
|
|
182
|
+
}
|
|
183
|
+
var EXTERNAL_SERVICE_TYPES = {
|
|
184
|
+
agent: {
|
|
185
|
+
sync: "Intsvc.SyncAgentExecution",
|
|
186
|
+
async: "Intsvc.AsyncAgentExecution"
|
|
187
|
+
},
|
|
188
|
+
workflow: {
|
|
189
|
+
sync: "Intsvc.SyncWorkflowExecution",
|
|
190
|
+
async: "Intsvc.AsyncWorkflowExecution"
|
|
191
|
+
}
|
|
192
|
+
};
|
|
193
|
+
function externalServiceType(kind, executionType) {
|
|
194
|
+
const mode = executionType === "hybrid" ? "async" : executionType;
|
|
195
|
+
return mode === "sync" || mode === "async" ? EXTERNAL_SERVICE_TYPES[kind][mode] : undefined;
|
|
196
|
+
}
|
|
197
|
+
|
|
198
|
+
// ../integrationservice-sdk/src/dap/managed-http.ts
|
|
199
|
+
var MANAGED_HTTP_METHODS = new Set([
|
|
200
|
+
"GET",
|
|
201
|
+
"POST",
|
|
202
|
+
"PUT",
|
|
203
|
+
"PATCH",
|
|
204
|
+
"DELETE",
|
|
205
|
+
"OPTIONS",
|
|
206
|
+
"HEAD"
|
|
207
|
+
]);
|
|
208
|
+
var MANAGED_HTTP_KEYS = new Set([
|
|
209
|
+
"authentication",
|
|
210
|
+
"method",
|
|
211
|
+
"url",
|
|
212
|
+
"connectionId",
|
|
213
|
+
"folderKey",
|
|
214
|
+
"targetConnector",
|
|
215
|
+
"headers",
|
|
216
|
+
"query",
|
|
217
|
+
"body"
|
|
218
|
+
]);
|
|
219
|
+
|
|
220
|
+
export { storedActivityBindings, planResourceBindings, BINDINGS_VERSION, guardJsonString, stripJsonStringGuard, mapStringsDeep, CONN_BINDING_ID_PLACEHOLDER, FOLDER_BINDING_ID_PLACEHOLDER, RESOURCE_BINDING_ID_PREFIX, resourceBindingIdPlaceholder, eventTriggerResourceKey, buildEventTriggerResource, packageStoredBinding, buildParameterPropertyResource, upsertResourceBinding, externalExecutionOf, externalExecutionWarning, EXTERNAL_SERVICE_TYPES, externalServiceType };
|
|
221
|
+
|
|
222
|
+
//# debugId=55B5A01E97B21A5664756E2164756E21
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
prefixedId
|
|
3
|
-
} from "./packager-tool-
|
|
3
|
+
} from "./packager-tool-1h7abxw6.js";
|
|
4
4
|
import {
|
|
5
5
|
DEFAULT_TRIGGER_ID,
|
|
6
6
|
DEFAULT_TRIGGER_LABEL
|
|
7
|
-
} from "./packager-tool-
|
|
7
|
+
} from "./packager-tool-35c9npcy.js";
|
|
8
8
|
|
|
9
9
|
// src/utils/case-document.ts
|
|
10
10
|
function buildMinimalCaseDocument(options) {
|
|
@@ -21,7 +21,8 @@ function buildMinimalCaseDocument(options) {
|
|
|
21
21
|
caseIdentifier: options.caseIdentifier ?? options.name,
|
|
22
22
|
caseAppEnabled: options.caseAppEnabled ?? false,
|
|
23
23
|
caseIdentifierType: options.identifierType ?? "constant",
|
|
24
|
-
publishVersion: 2
|
|
24
|
+
publishVersion: 2,
|
|
25
|
+
intsvcActivityConfig: "v2"
|
|
25
26
|
},
|
|
26
27
|
nodes: [
|
|
27
28
|
{
|
|
@@ -40,4 +41,4 @@ function buildMinimalCaseDocument(options) {
|
|
|
40
41
|
|
|
41
42
|
export { buildMinimalCaseDocument };
|
|
42
43
|
|
|
43
|
-
//# debugId=
|
|
44
|
+
//# debugId=BD5AEFBF8DD3701064756E2164756E21
|