@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,35 +1,32 @@
|
|
|
1
|
+
import"./packager-tool-z070caqq.js";
|
|
1
2
|
import {
|
|
2
|
-
|
|
3
|
-
} from "./packager-tool-
|
|
4
|
-
import {
|
|
5
|
-
catchError
|
|
6
|
-
} from "./packager-tool-83v804p7.js";
|
|
7
|
-
import"./packager-tool-hdxtgckw.js";
|
|
3
|
+
catchError2
|
|
4
|
+
} from "./packager-tool-psmb758n.js";
|
|
8
5
|
import {
|
|
9
|
-
|
|
10
|
-
} from "./packager-tool-
|
|
6
|
+
byCodeUnit
|
|
7
|
+
} from "./packager-tool-1c30ttpm.js";
|
|
11
8
|
|
|
12
9
|
// src/services/sdd-convert/out-target.ts
|
|
13
10
|
var isCaseProject = async (fs, dir) => {
|
|
14
|
-
const [error, text] = await
|
|
11
|
+
const [error, text] = await catchError2(fs.readFile(fs.path.join(dir, "project.uiproj"), "utf-8"));
|
|
15
12
|
if (error || typeof text !== "string")
|
|
16
13
|
return false;
|
|
17
|
-
const [parseError, parsed] = await
|
|
14
|
+
const [parseError, parsed] = await catchError2(Promise.resolve().then(() => JSON.parse(text)));
|
|
18
15
|
if (parseError || typeof parsed !== "object" || parsed === null) {
|
|
19
16
|
return false;
|
|
20
17
|
}
|
|
21
18
|
return parsed.ProjectType === "CaseManagement";
|
|
22
19
|
};
|
|
23
20
|
var planInProject = async (fs, dir) => {
|
|
24
|
-
const [error, entries] = await
|
|
21
|
+
const [error, entries] = await catchError2(fs.readdir(dir));
|
|
25
22
|
if (error || entries === undefined) {
|
|
26
23
|
throw new Error(`Could not list "${dir}" (${error?.message ?? "no entries returned"}) to find the case plan it holds.`);
|
|
27
24
|
}
|
|
28
|
-
const { findCasePlanFileName } = await import("./index-
|
|
25
|
+
const { findCasePlanFileName } = await import("./index-pg9wmyrf.js");
|
|
29
26
|
return findCasePlanFileName(entries);
|
|
30
27
|
};
|
|
31
28
|
var otherPlanInProject = async (fs, out) => {
|
|
32
|
-
const { CasePlanFileNames } = await import("./index-
|
|
29
|
+
const { CasePlanFileNames } = await import("./index-pg9wmyrf.js");
|
|
33
30
|
const name = fs.path.basename(out);
|
|
34
31
|
if (!CasePlanFileNames.includes(name)) {
|
|
35
32
|
return;
|
|
@@ -37,11 +34,11 @@ var otherPlanInProject = async (fs, out) => {
|
|
|
37
34
|
const dir = fs.path.dirname(out);
|
|
38
35
|
const marker = fs.path.join(dir, "project.uiproj");
|
|
39
36
|
if (await fs.exists(marker)) {
|
|
40
|
-
const [error, text] = await
|
|
37
|
+
const [error, text] = await catchError2(fs.readFile(marker, "utf-8"));
|
|
41
38
|
if (error || typeof text !== "string") {
|
|
42
39
|
throw new Error(`Could not read "${marker}" (${error?.message ?? "no content returned"}) to tell whether ${dir} is a case project.`);
|
|
43
40
|
}
|
|
44
|
-
const [parseError, parsed] =
|
|
41
|
+
const [parseError, parsed] = catchError2(() => JSON.parse(text));
|
|
45
42
|
if (parseError || typeof parsed !== "object" || parsed === null || Array.isArray(parsed)) {
|
|
46
43
|
throw new Error(`"${marker}" is not a JSON object${parseError ? ` (${parseError.message})` : ""}, so convert cannot tell whether ${dir} is a case project.`);
|
|
47
44
|
}
|
|
@@ -56,24 +53,24 @@ var otherPlanInProject = async (fs, out) => {
|
|
|
56
53
|
return plan === undefined || plan === name ? undefined : fs.path.join(dir, plan);
|
|
57
54
|
};
|
|
58
55
|
var projectsBelowOut = async (fs, out) => {
|
|
59
|
-
const { CasePlanFileNames } = await import("./index-
|
|
56
|
+
const { CasePlanFileNames } = await import("./index-pg9wmyrf.js");
|
|
60
57
|
if (!CasePlanFileNames.includes(fs.path.basename(out))) {
|
|
61
58
|
return [];
|
|
62
59
|
}
|
|
63
60
|
const dir = fs.path.dirname(out);
|
|
64
61
|
if (await isCaseProject(fs, dir))
|
|
65
62
|
return [];
|
|
66
|
-
const [error, entries] = await
|
|
63
|
+
const [error, entries] = await catchError2(fs.readdir(dir));
|
|
67
64
|
if (error || entries === undefined)
|
|
68
65
|
return [];
|
|
69
66
|
const found = [];
|
|
70
67
|
for (const entry of [...entries].sort(byCodeUnit)) {
|
|
71
68
|
const candidate = fs.path.join(dir, entry);
|
|
72
|
-
const [statError, stat] = await
|
|
69
|
+
const [statError, stat] = await catchError2(fs.stat(candidate));
|
|
73
70
|
if (statError || stat?.isDirectory() !== true)
|
|
74
71
|
continue;
|
|
75
72
|
if (await isCaseProject(fs, candidate)) {
|
|
76
|
-
const [, plan] = await
|
|
73
|
+
const [, plan] = await catchError2(planInProject(fs, candidate));
|
|
77
74
|
found.push(fs.path.join(candidate, plan ?? fs.path.basename(out)));
|
|
78
75
|
}
|
|
79
76
|
}
|
|
@@ -104,8 +101,7 @@ var correctedConvert = (file, out, resolved) => {
|
|
|
104
101
|
export {
|
|
105
102
|
correctedConvert,
|
|
106
103
|
otherPlanInProject,
|
|
107
|
-
projectsBelowOut
|
|
108
|
-
shellArg
|
|
104
|
+
projectsBelowOut
|
|
109
105
|
};
|
|
110
106
|
|
|
111
|
-
//# debugId=
|
|
107
|
+
//# debugId=FDF904C999897A1464756E2164756E21
|
|
@@ -1,12 +1,15 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
} from "./packager-tool-
|
|
2
|
+
resolveSessionIdentity2,
|
|
3
|
+
getAuthContext2
|
|
4
|
+
} from "./packager-tool-dn9d4ywm.js";
|
|
5
5
|
import {
|
|
6
|
-
|
|
6
|
+
catchError2,
|
|
7
|
+
extractErrorMessage,
|
|
8
|
+
logger,
|
|
7
9
|
getSdkUserAgentToken,
|
|
10
|
+
addSdkUserAgentHeader,
|
|
8
11
|
installSdkUserAgentHeader
|
|
9
|
-
} from "./packager-tool-
|
|
12
|
+
} from "./packager-tool-psmb758n.js";
|
|
10
13
|
|
|
11
14
|
// ../orchestrator-sdk/generated/src/runtime.ts
|
|
12
15
|
var BASE_PATH = "https://alpha.uipath.com/Ada/byoa/orchestrator_".replace(/\/+$/, "");
|
|
@@ -1864,6 +1867,39 @@ function ODataValueOfIEnumerableOfPackageResourceDtoFromJSONTyped(json, ignoreDi
|
|
|
1864
1867
|
value: json["value"] == null ? undefined : json["value"].map(PackageResourceDtoFromJSON)
|
|
1865
1868
|
};
|
|
1866
1869
|
}
|
|
1870
|
+
// ../orchestrator-sdk/generated/src/models/PersonalWorkspaceDto.ts
|
|
1871
|
+
function PersonalWorkspaceDtoFromJSON(json) {
|
|
1872
|
+
return PersonalWorkspaceDtoFromJSONTyped(json, false);
|
|
1873
|
+
}
|
|
1874
|
+
function PersonalWorkspaceDtoFromJSONTyped(json, ignoreDiscriminator) {
|
|
1875
|
+
if (json == null) {
|
|
1876
|
+
return json;
|
|
1877
|
+
}
|
|
1878
|
+
return {
|
|
1879
|
+
key: json["Key"] == null ? undefined : json["Key"],
|
|
1880
|
+
name: json["Name"] == null ? undefined : json["Name"],
|
|
1881
|
+
isActive: json["IsActive"] == null ? undefined : json["IsActive"],
|
|
1882
|
+
ownerId: json["OwnerId"] == null ? undefined : json["OwnerId"],
|
|
1883
|
+
ownerKey: json["OwnerKey"] == null ? undefined : json["OwnerKey"],
|
|
1884
|
+
ownerName: json["OwnerName"] == null ? undefined : json["OwnerName"],
|
|
1885
|
+
lastLogin: json["LastLogin"] == null ? undefined : new Date(json["LastLogin"]),
|
|
1886
|
+
exploringUserIds: json["ExploringUserIds"] == null ? undefined : json["ExploringUserIds"],
|
|
1887
|
+
id: json["Id"] == null ? undefined : json["Id"]
|
|
1888
|
+
};
|
|
1889
|
+
}
|
|
1890
|
+
|
|
1891
|
+
// ../orchestrator-sdk/generated/src/models/ODataValueOfIEnumerableOfPersonalWorkspaceDto.ts
|
|
1892
|
+
function ODataValueOfIEnumerableOfPersonalWorkspaceDtoFromJSON(json) {
|
|
1893
|
+
return ODataValueOfIEnumerableOfPersonalWorkspaceDtoFromJSONTyped(json, false);
|
|
1894
|
+
}
|
|
1895
|
+
function ODataValueOfIEnumerableOfPersonalWorkspaceDtoFromJSONTyped(json, ignoreDiscriminator) {
|
|
1896
|
+
if (json == null) {
|
|
1897
|
+
return json;
|
|
1898
|
+
}
|
|
1899
|
+
return {
|
|
1900
|
+
value: json["value"] == null ? undefined : json["value"].map(PersonalWorkspaceDtoFromJSON)
|
|
1901
|
+
};
|
|
1902
|
+
}
|
|
1867
1903
|
// ../orchestrator-sdk/generated/src/models/ReleaseDto.ts
|
|
1868
1904
|
function ReleaseDtoFromJSON(json) {
|
|
1869
1905
|
return ReleaseDtoFromJSONTyped(json, false);
|
|
@@ -3340,7 +3376,7 @@ var package_default = {
|
|
|
3340
3376
|
name: "@uipath/orchestrator-sdk",
|
|
3341
3377
|
author: "UiPath",
|
|
3342
3378
|
license: "SEE LICENSE IN LICENSE.txt",
|
|
3343
|
-
version: "1.
|
|
3379
|
+
version: "1.206.0",
|
|
3344
3380
|
repository: {
|
|
3345
3381
|
type: "git",
|
|
3346
3382
|
url: "https://github.com/UiPath/cli.git",
|
|
@@ -3367,6 +3403,10 @@ var package_default = {
|
|
|
3367
3403
|
types: "./dist/src/index.d.ts",
|
|
3368
3404
|
default: "./dist/index.js"
|
|
3369
3405
|
}
|
|
3406
|
+
},
|
|
3407
|
+
"./folder-feed": {
|
|
3408
|
+
types: "./dist/src/folder-feed.d.ts",
|
|
3409
|
+
default: "./dist/folder-feed.js"
|
|
3370
3410
|
}
|
|
3371
3411
|
},
|
|
3372
3412
|
files: [
|
|
@@ -3374,11 +3414,12 @@ var package_default = {
|
|
|
3374
3414
|
],
|
|
3375
3415
|
private: true,
|
|
3376
3416
|
scripts: {
|
|
3377
|
-
build: "bun build ./src/index.ts --outdir dist --format esm --target node --sourcemap=linked && bun build ./src/index.browser.ts --outdir dist --format esm --target browser --external @uipath/auth --external @uipath/common --sourcemap=linked && tsc -p tsconfig.build.json --noCheck",
|
|
3417
|
+
build: "bun build ./src/index.ts ./src/folder-feed.ts --outdir dist --format esm --target node --sourcemap=linked && bun build ./src/index.browser.ts --outdir dist --format esm --target browser --external @uipath/auth --external @uipath/common --sourcemap=linked && tsc -p tsconfig.build.json --noCheck",
|
|
3378
3418
|
generate: "bun run src/scripts/generate-sdk.ts",
|
|
3379
3419
|
lint: "biome check .",
|
|
3380
3420
|
test: "vitest run",
|
|
3381
|
-
"test:coverage": "vitest run --coverage"
|
|
3421
|
+
"test:coverage": "vitest run --coverage",
|
|
3422
|
+
typecheck: "tsc --noEmit"
|
|
3382
3423
|
},
|
|
3383
3424
|
devDependencies: {
|
|
3384
3425
|
"@uipath/auth": "workspace:*",
|
|
@@ -3395,7 +3436,7 @@ installSdkUserAgentHeader(BaseAPI, SDK_USER_AGENT);
|
|
|
3395
3436
|
|
|
3396
3437
|
// ../orchestrator-sdk/src/client-factory.ts
|
|
3397
3438
|
async function createOrchestratorConfig(options) {
|
|
3398
|
-
const ctx = await
|
|
3439
|
+
const ctx = await getAuthContext2({
|
|
3399
3440
|
tenant: options?.tenant,
|
|
3400
3441
|
ensureTokenValidityMinutes: options?.loginValidity,
|
|
3401
3442
|
envFilePath: options?.envFilePath
|
|
@@ -3416,7 +3457,7 @@ async function createOrchestratorConfig(options) {
|
|
|
3416
3457
|
return new Configuration({
|
|
3417
3458
|
basePath: orchestratorBasePath,
|
|
3418
3459
|
headers,
|
|
3419
|
-
fetchApi: sessionKindStampingFetch(ctx.identity ??
|
|
3460
|
+
fetchApi: sessionKindStampingFetch(ctx.identity ?? resolveSessionIdentity2(ctx.accessToken))
|
|
3420
3461
|
});
|
|
3421
3462
|
}
|
|
3422
3463
|
function sessionKindStampingFetch(kind) {
|
|
@@ -3424,7 +3465,7 @@ function sessionKindStampingFetch(kind) {
|
|
|
3424
3465
|
return;
|
|
3425
3466
|
return async (...args) => attachSessionKind(await fetch(...args), kind);
|
|
3426
3467
|
}
|
|
3427
|
-
async function
|
|
3468
|
+
async function createApiClient2(ApiClass, options) {
|
|
3428
3469
|
const config = await createOrchestratorConfig(options);
|
|
3429
3470
|
return new ApiClass(config);
|
|
3430
3471
|
}
|
|
@@ -3932,6 +3973,75 @@ class FoldersApi extends BaseAPI {
|
|
|
3932
3973
|
}
|
|
3933
3974
|
}
|
|
3934
3975
|
|
|
3976
|
+
// ../orchestrator-sdk/generated/src/apis/PersonalWorkspacesApi.ts
|
|
3977
|
+
class PersonalWorkspacesApi extends BaseAPI {
|
|
3978
|
+
async personalWorkspacesGetRaw(requestParameters, initOverrides) {
|
|
3979
|
+
const queryParameters = {};
|
|
3980
|
+
if (requestParameters["$select"] != null) {
|
|
3981
|
+
queryParameters["$select"] = requestParameters["$select"];
|
|
3982
|
+
}
|
|
3983
|
+
if (requestParameters["$expand"] != null) {
|
|
3984
|
+
queryParameters["$expand"] = requestParameters["$expand"];
|
|
3985
|
+
}
|
|
3986
|
+
if (requestParameters["$filter"] != null) {
|
|
3987
|
+
queryParameters["$filter"] = requestParameters["$filter"];
|
|
3988
|
+
}
|
|
3989
|
+
if (requestParameters["$orderby"] != null) {
|
|
3990
|
+
queryParameters["$orderby"] = requestParameters["$orderby"];
|
|
3991
|
+
}
|
|
3992
|
+
if (requestParameters["$top"] != null) {
|
|
3993
|
+
queryParameters["$top"] = requestParameters["$top"];
|
|
3994
|
+
}
|
|
3995
|
+
if (requestParameters["$skip"] != null) {
|
|
3996
|
+
queryParameters["$skip"] = requestParameters["$skip"];
|
|
3997
|
+
}
|
|
3998
|
+
if (requestParameters["$count"] != null) {
|
|
3999
|
+
queryParameters["$count"] = requestParameters["$count"];
|
|
4000
|
+
}
|
|
4001
|
+
const headerParameters = {};
|
|
4002
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
4003
|
+
headerParameters["Authorization"] = await this.configuration.accessToken("OAuth2", []);
|
|
4004
|
+
}
|
|
4005
|
+
let urlPath = `/odata/PersonalWorkspaces`;
|
|
4006
|
+
const response = await this.request({
|
|
4007
|
+
path: urlPath,
|
|
4008
|
+
method: "GET",
|
|
4009
|
+
headers: headerParameters,
|
|
4010
|
+
query: queryParameters
|
|
4011
|
+
}, initOverrides);
|
|
4012
|
+
return new JSONApiResponse(response, (jsonValue) => ODataValueOfIEnumerableOfPersonalWorkspaceDtoFromJSON(jsonValue));
|
|
4013
|
+
}
|
|
4014
|
+
async personalWorkspacesGet(requestParameters = {}, initOverrides) {
|
|
4015
|
+
const response = await this.personalWorkspacesGetRaw(requestParameters, initOverrides);
|
|
4016
|
+
return await response.value();
|
|
4017
|
+
}
|
|
4018
|
+
async personalWorkspacesGetPersonalWorkspaceRaw(requestParameters, initOverrides) {
|
|
4019
|
+
const queryParameters = {};
|
|
4020
|
+
if (requestParameters["$select"] != null) {
|
|
4021
|
+
queryParameters["$select"] = requestParameters["$select"];
|
|
4022
|
+
}
|
|
4023
|
+
if (requestParameters["$expand"] != null) {
|
|
4024
|
+
queryParameters["$expand"] = requestParameters["$expand"];
|
|
4025
|
+
}
|
|
4026
|
+
const headerParameters = {};
|
|
4027
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
4028
|
+
headerParameters["Authorization"] = await this.configuration.accessToken("OAuth2", []);
|
|
4029
|
+
}
|
|
4030
|
+
let urlPath = `/odata/PersonalWorkspaces/UiPath.Server.Configuration.OData.GetPersonalWorkspace`;
|
|
4031
|
+
const response = await this.request({
|
|
4032
|
+
path: urlPath,
|
|
4033
|
+
method: "GET",
|
|
4034
|
+
headers: headerParameters,
|
|
4035
|
+
query: queryParameters
|
|
4036
|
+
}, initOverrides);
|
|
4037
|
+
return new JSONApiResponse(response, (jsonValue) => PersonalWorkspaceDtoFromJSON(jsonValue));
|
|
4038
|
+
}
|
|
4039
|
+
async personalWorkspacesGetPersonalWorkspace(requestParameters = {}, initOverrides) {
|
|
4040
|
+
const response = await this.personalWorkspacesGetPersonalWorkspaceRaw(requestParameters, initOverrides);
|
|
4041
|
+
return await response.value();
|
|
4042
|
+
}
|
|
4043
|
+
}
|
|
4044
|
+
|
|
3935
4045
|
// ../orchestrator-sdk/src/folder-resolver.ts
|
|
3936
4046
|
var UUID_REGEX = /^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i;
|
|
3937
4047
|
async function resolveFolder(input, options) {
|
|
@@ -3946,7 +4056,7 @@ async function resolveFolder(input, options) {
|
|
|
3946
4056
|
}
|
|
3947
4057
|
return resolveByKey(foldersApi, input.folderKey);
|
|
3948
4058
|
}
|
|
3949
|
-
return resolveByPath(foldersApi, input.folderPath);
|
|
4059
|
+
return resolveByPath(config, foldersApi, input.folderPath);
|
|
3950
4060
|
}
|
|
3951
4061
|
async function resolveByKey(foldersApi, folderKey) {
|
|
3952
4062
|
const folder = await foldersApi.foldersGetByKeyByIdentifier({
|
|
@@ -3963,12 +4073,12 @@ async function resolveByKey(foldersApi, folderKey) {
|
|
|
3963
4073
|
feedType: folder.feedType
|
|
3964
4074
|
};
|
|
3965
4075
|
}
|
|
3966
|
-
async function resolveByPath(foldersApi, folderPath) {
|
|
4076
|
+
async function resolveByPath(config, foldersApi, folderPath) {
|
|
3967
4077
|
const response = await foldersApi.foldersGet({
|
|
3968
4078
|
$filter: `FullyQualifiedName eq '${folderPath.replace(/'/g, "''")}'`,
|
|
3969
4079
|
$top: 1
|
|
3970
4080
|
});
|
|
3971
|
-
const folder = response.value?.[0];
|
|
4081
|
+
const folder = response.value?.[0] ?? await resolveInPersonalWorkspace(config, foldersApi, folderPath);
|
|
3972
4082
|
if (!folder?.id || !folder.key || !folder.fullyQualifiedName || !folder.displayName) {
|
|
3973
4083
|
throw new Error(`Folder not found: '${folderPath}'.`);
|
|
3974
4084
|
}
|
|
@@ -3980,6 +4090,66 @@ async function resolveByPath(foldersApi, folderPath) {
|
|
|
3980
4090
|
feedType: folder.feedType
|
|
3981
4091
|
};
|
|
3982
4092
|
}
|
|
4093
|
+
var CURRENT_USER_FOLDER_PAGE_SIZE = 1000;
|
|
4094
|
+
var CURRENT_USER_FOLDER_PAGE_LIMIT = 50;
|
|
4095
|
+
async function resolveInPersonalWorkspace(config, foldersApi, folderPath) {
|
|
4096
|
+
const workspace = await lookupOrMiss("GetPersonalWorkspace", folderPath, () => new PersonalWorkspacesApi(config).personalWorkspacesGetPersonalWorkspace());
|
|
4097
|
+
if (!workspace?.key || !workspace.name) {
|
|
4098
|
+
return;
|
|
4099
|
+
}
|
|
4100
|
+
const wanted = folderPath.toLowerCase();
|
|
4101
|
+
const root = workspace.name.toLowerCase();
|
|
4102
|
+
let key;
|
|
4103
|
+
if (wanted === root) {
|
|
4104
|
+
key = workspace.key;
|
|
4105
|
+
} else if (wanted.startsWith(`${root}/`)) {
|
|
4106
|
+
key = await findKeyInCurrentUserFolders(foldersApi, folderPath);
|
|
4107
|
+
}
|
|
4108
|
+
if (!key) {
|
|
4109
|
+
return;
|
|
4110
|
+
}
|
|
4111
|
+
const folder = await foldersApi.foldersGetByKeyByIdentifier({
|
|
4112
|
+
identifier: key
|
|
4113
|
+
});
|
|
4114
|
+
return folder?.fullyQualifiedName?.toLowerCase() === wanted ? folder : undefined;
|
|
4115
|
+
}
|
|
4116
|
+
async function findKeyInCurrentUserFolders(foldersApi, folderPath) {
|
|
4117
|
+
const wanted = folderPath.toLowerCase();
|
|
4118
|
+
let skip = 0;
|
|
4119
|
+
for (let page = 0;page < CURRENT_USER_FOLDER_PAGE_LIMIT; page++) {
|
|
4120
|
+
const result = await lookupOrMiss("GetAllForCurrentUser", folderPath, () => foldersApi.foldersGetAllForCurrentUser({
|
|
4121
|
+
take: CURRENT_USER_FOLDER_PAGE_SIZE,
|
|
4122
|
+
skip
|
|
4123
|
+
}));
|
|
4124
|
+
const rows = result?.pageItems ?? [];
|
|
4125
|
+
const match = rows.find((row) => row.fullyQualifiedName?.toLowerCase() === wanted);
|
|
4126
|
+
if (match) {
|
|
4127
|
+
return match.key;
|
|
4128
|
+
}
|
|
4129
|
+
skip += rows.length;
|
|
4130
|
+
if (rows.length === 0 || typeof result?.count === "number" && skip >= result.count) {
|
|
4131
|
+
return;
|
|
4132
|
+
}
|
|
4133
|
+
}
|
|
4134
|
+
logger.debug(`GetAllForCurrentUser: stopped after ${CURRENT_USER_FOLDER_PAGE_LIMIT} pages without finding '${folderPath}'.`);
|
|
4135
|
+
return;
|
|
4136
|
+
}
|
|
4137
|
+
async function lookupOrMiss(endpoint, folderPath, call) {
|
|
4138
|
+
const [error, value] = await catchError2(call());
|
|
4139
|
+
if (!error) {
|
|
4140
|
+
return value;
|
|
4141
|
+
}
|
|
4142
|
+
if (!isLookupMiss(error)) {
|
|
4143
|
+
throw error;
|
|
4144
|
+
}
|
|
4145
|
+
logger.debug(`${endpoint} lookup for '${folderPath}' failed: ${await extractErrorMessage(error)}`);
|
|
4146
|
+
return;
|
|
4147
|
+
}
|
|
4148
|
+
function isLookupMiss(error) {
|
|
4149
|
+
const failure = error;
|
|
4150
|
+
const status = failure?.response?.status ?? failure?.status;
|
|
4151
|
+
return typeof status === "number" && status >= 400 && status < 500 && status !== 408 && status !== 429;
|
|
4152
|
+
}
|
|
3983
4153
|
// ../orchestrator-sdk/generated/src/apis/UsersApi.ts
|
|
3984
4154
|
class UsersApi extends BaseAPI {
|
|
3985
4155
|
async usersAssignRolesByIdRaw(requestParameters, initOverrides) {
|
|
@@ -4203,6 +4373,6 @@ var KB_INLINE_LIMITS = {
|
|
|
4203
4373
|
maxBodyBytes: 100 * 1024 * 1024,
|
|
4204
4374
|
maxParts: 1e4
|
|
4205
4375
|
};
|
|
4206
|
-
export { JobsApi, ReleasesApi, UsersApi, createOrchestratorConfig,
|
|
4376
|
+
export { JobsApi, ReleasesApi, UsersApi, createOrchestratorConfig, createApiClient2, resolveFolder };
|
|
4207
4377
|
|
|
4208
|
-
//# debugId=
|
|
4378
|
+
//# debugId=B6CAF17A46AB1BE164756E2164756E21
|
|
@@ -1,6 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
3
|
-
} from "./packager-tool-
|
|
2
|
+
catchError2
|
|
3
|
+
} from "./packager-tool-psmb758n.js";
|
|
4
|
+
import {
|
|
5
|
+
CONNECTOR_CALL_TASK_TYPES
|
|
6
|
+
} from "./packager-tool-7x1tmb8a.js";
|
|
4
7
|
|
|
5
8
|
// src/services/schema-utils.ts
|
|
6
9
|
function getMutatedType(variable) {
|
|
@@ -74,7 +77,7 @@ function transformSchemaToVariables(schemaInput, options) {
|
|
|
74
77
|
}
|
|
75
78
|
let schema;
|
|
76
79
|
if (typeof schemaInput === "string") {
|
|
77
|
-
const [parseError, parsed] =
|
|
80
|
+
const [parseError, parsed] = catchError2(() => JSON.parse(schemaInput));
|
|
78
81
|
if (parseError) {
|
|
79
82
|
throw new Error(`Failed to parse schema JSON: ${schemaInput.slice(0, 80)}`);
|
|
80
83
|
}
|
|
@@ -163,6 +166,33 @@ function convertActionArgsToVariables(args) {
|
|
|
163
166
|
return result;
|
|
164
167
|
}
|
|
165
168
|
|
|
169
|
+
// src/services/fixed-task-outputs.ts
|
|
170
|
+
var FIXED_OUTPUT_SOURCES = new Map([
|
|
171
|
+
[
|
|
172
|
+
"http-request",
|
|
173
|
+
{
|
|
174
|
+
code: "=response.code",
|
|
175
|
+
headers: "=response.headers",
|
|
176
|
+
body: "=response.body",
|
|
177
|
+
error: "=Error"
|
|
178
|
+
}
|
|
179
|
+
],
|
|
180
|
+
["document-extraction", { output: "=result", error: "=Error" }]
|
|
181
|
+
]);
|
|
182
|
+
var hasFixedOutputs = (taskType) => taskType !== undefined && FIXED_OUTPUT_SOURCES.has(taskType);
|
|
183
|
+
var fixedOutputName = (taskType, field) => {
|
|
184
|
+
const sources = taskType === undefined ? undefined : FIXED_OUTPUT_SOURCES.get(taskType);
|
|
185
|
+
if (sources === undefined)
|
|
186
|
+
return;
|
|
187
|
+
const trimmed = field.trim();
|
|
188
|
+
const name = (taskType === "http-request" ? trimmed.replace(/^response\./i, "") : trimmed).toLowerCase();
|
|
189
|
+
return name in sources ? name : undefined;
|
|
190
|
+
};
|
|
191
|
+
var fixedOutputSource = (taskType, field) => {
|
|
192
|
+
const name = fixedOutputName(taskType, field);
|
|
193
|
+
return name === undefined || taskType === undefined ? undefined : FIXED_OUTPUT_SOURCES.get(taskType)?.[name];
|
|
194
|
+
};
|
|
195
|
+
|
|
166
196
|
// src/services/input-output-utils.ts
|
|
167
197
|
var JOB_ATTACHMENT_PREFIX = "=orchestrator.JobAttachments";
|
|
168
198
|
var JSON_SCHEMA_DRAFT_7 = "http://json-schema.org/draft-07/schema#";
|
|
@@ -305,26 +335,20 @@ function mapEntryPointVariablesToInputOutput(entryPointVariables, isOutput, exis
|
|
|
305
335
|
}
|
|
306
336
|
var RESULT_OUTPUT_NAME = "output";
|
|
307
337
|
var RESULT_OUTPUT_SOURCE = "=result";
|
|
308
|
-
var HTTP_REQUEST_OUTPUT_SOURCES = {
|
|
309
|
-
code: "=response.code",
|
|
310
|
-
headers: "=response.headers",
|
|
311
|
-
body: "=response.body",
|
|
312
|
-
error: "=Error"
|
|
313
|
-
};
|
|
314
|
-
var httpRequestOutputName = (field) => {
|
|
315
|
-
const name = field.trim().replace(/^response\./i, "").toLowerCase();
|
|
316
|
-
return name in HTTP_REQUEST_OUTPUT_SOURCES ? name : undefined;
|
|
317
|
-
};
|
|
318
338
|
var WHOLE_RESULT_TASK_TYPES = new Set(["business-rule"]);
|
|
319
339
|
var outputSourceFor = (taskType, field) => {
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
340
|
+
const own = fixedOutputSource(taskType, field);
|
|
341
|
+
if (own !== undefined)
|
|
342
|
+
return own;
|
|
343
|
+
if (taskType !== undefined && CONNECTOR_CALL_TASK_TYPES.has(taskType) && !CONNECTOR_OWN_OUTPUTS.has((field.split(".")[0] ?? "").trim().toLowerCase())) {
|
|
344
|
+
return `=response.${field}`;
|
|
325
345
|
}
|
|
326
346
|
return taskType !== undefined && WHOLE_RESULT_TASK_TYPES.has(taskType) && field === RESULT_OUTPUT_NAME ? RESULT_OUTPUT_SOURCE : `=${field}`;
|
|
327
347
|
};
|
|
348
|
+
var CONNECTOR_OWN_OUTPUTS = new Set([
|
|
349
|
+
"response",
|
|
350
|
+
"error"
|
|
351
|
+
]);
|
|
328
352
|
var BUSINESS_RULE_TASK_VERSION = "v3";
|
|
329
353
|
function buildErrorOutput() {
|
|
330
354
|
return {
|
|
@@ -374,6 +398,6 @@ function addVarIdsToInputsOutputs(params) {
|
|
|
374
398
|
return { inputsWithVars, outputsWithVars };
|
|
375
399
|
}
|
|
376
400
|
|
|
377
|
-
export { transformSchemaToVariables, convertActionArgsToVariables, FILE_TYPE_JSON_SCHEMA, camelizeDisplayName, mapEntryPointVariablesToInputOutput, RESULT_OUTPUT_NAME, RESULT_OUTPUT_SOURCE,
|
|
401
|
+
export { hasFixedOutputs, fixedOutputName, transformSchemaToVariables, ERROR_OUTPUT_SCHEMA, convertActionArgsToVariables, FILE_TYPE_JSON_SCHEMA, camelizeDisplayName, mapEntryPointVariablesToInputOutput, RESULT_OUTPUT_NAME, RESULT_OUTPUT_SOURCE, outputSourceFor, BUSINESS_RULE_TASK_VERSION, buildErrorOutput, addVarIdsToInputsOutputs };
|
|
378
402
|
|
|
379
|
-
//# debugId=
|
|
403
|
+
//# debugId=13A673F9D87E42B564756E2164756E21
|