@uipath/flow-tool 1.205.0-preview.276 → 1.206.0-preview.279
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +14 -12
- package/dist/THIRD-PARTY-NOTICES.md +77 -49
- package/dist/applicationinsights-web-8m26566f.js +17209 -0
- package/dist/authoring-x84r2a2j.js +23 -0
- package/dist/binding-service-s0wvr2xm.js +114 -0
- package/dist/{browser-strategy-6atc7v8s.js → browser-strategy-gnftxwsf.js} +5 -6
- package/dist/connector-library-1yw5r47w.js +99 -0
- package/dist/{connector-service-m08dysc2.js → connector-service-r86mtxwn.js} +270 -275
- package/dist/{conversion-FQTRFHRX-e5wr281j.js → conversion-7O2PDOQB-3wwppx87.js} +477 -472
- package/dist/{de-FGHEJRCI-PK6WALXW-0dnvnmke.js → de-2BEKRUMY-MD7L477H-rj1rmtav.js} +425 -37
- package/dist/{de-WLW6KWOJ-2qnsqdtw.js → de-2BEKRUMY-x4dx0nn9.js} +190 -10
- package/dist/{de-VMMG2MN7-2ecwpg1b.js → de-3CU65EDB-r7r10am9.js} +82 -7
- package/dist/{de-UZI7FJDO-awjpqfz0.js → de-AI7ML6JM-km47f8k4.js} +20 -5
- package/dist/{de-B3EKCNFC-zdwybhh7.js → de-VQWT6L5Y-mch4qwyv.js} +38 -5
- package/dist/{de-XNTCMP5Z-xfkfqg20.js → de-XNTCMP5Z-nd4scb43.js} +1 -4
- package/dist/debug-conversation-trigger-3wzy90kj.js +23 -0
- package/dist/debug-http-client-zydr7tna.js +31 -0
- package/dist/debug-service-hdktqeek.js +60 -0
- package/dist/edge-service-zck3s9ss.js +267 -0
- package/dist/{elk.bundled-vpsbxz0p.js → elk.bundled-phy0zc81.js} +6860 -6860
- package/dist/{embedded-file-reader-r66242ey.js → embedded-file-reader-0228j82a.js} +1 -4
- package/dist/en-LAVDF7IQ-ba7wzsxp.js +254 -0
- package/dist/en-LQHKFSEY-zf6a2myg.js +24 -0
- package/dist/en-U2NSIIZN-whenw6wh.js +58 -0
- package/dist/en-WPCQ4JKF-t3x07ggr.js +148 -0
- package/dist/en-X6T4SP2Y-FPGCJIFV-qdfapfzs.js +2756 -0
- package/dist/en-X6T4SP2Y-xe57av1w.js +2752 -0
- package/dist/{es-5THCNRFN-tqwyrdgy.js → es-7ZTQTGKN-11sj0yjx.js} +190 -10
- package/dist/{es-KR3ZSNMP-QLWVVWKJ-5egs0gj9.js → es-7ZTQTGKN-TXQBFYRA-bzh1e1gq.js} +422 -34
- package/dist/{es-EKHIPSW6-ya88nvm0.js → es-EKHIPSW6-asfceac2.js} +1 -4
- package/dist/{es-KEBF3AIM-g5rszh8f.js → es-EP563JWQ-1agj5n4e.js} +38 -5
- package/dist/{es-WY6FZ3HO-zksnn6dp.js → es-KHVY67FO-natcvmmm.js} +82 -7
- package/dist/{es-MX-5RELIXKI-jtjbcxbb.js → es-MX-7KJZPEQN-1fq0a9jr.js} +20 -5
- package/dist/{es-MX-ZP2LJ3V7-k4brnfa9.js → es-MX-F7ZEHSNE-gxpm47vv.js} +82 -7
- package/dist/{es-MX-XXZJGC4R-W6EEIHXR-c2m4yjpj.js → es-MX-IHGRIEWH-23X37OPS-7cqdzpcy.js} +425 -37
- package/dist/{es-MX-TWZBRAXK-gqd9swzw.js → es-MX-IHGRIEWH-g63p0gb4.js} +191 -11
- package/dist/{es-MX-OR6G2SFR-7yykk5ma.js → es-MX-OR6G2SFR-02t13sen.js} +1 -4
- package/dist/{es-MX-EL3CDS3F-sh84yvjr.js → es-MX-S2RFDGDE-x9r0tv30.js} +38 -5
- package/dist/{es-4UBUTCQA-t7hsackg.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/flow-api-d4dvmadm.js +38 -0
- package/dist/{flow-debug-service-gc2ky1ve.js → flow-debug-service-hy21ddd9.js} +151 -195
- package/dist/flow-eval-node-target-tdrwqca7.js +29 -0
- package/dist/flow-eval-run-api-w4j8ra60.js +9 -0
- package/dist/{flow-eval-run-service-2cbr0jtw.js → flow-eval-run-service-5en4ahyn.js} +125 -149
- package/dist/{flow-eval-service-24jbkhhz.js → flow-eval-service-2j28ect1.js} +57 -81
- package/dist/{flow-init-sdk-source-xvdvkq7d.js → flow-init-sdk-source-xnr4bg25.js} +8 -11
- package/dist/flow-init-service-bj3ev9bz.js +26 -0
- package/dist/flow-io-9q6xk473.js +24 -0
- package/dist/{flow-migrate-service-t3pnd2r3.js → flow-migrate-service-dkx85jj5.js} +33 -54
- package/dist/{flow-pack-service-b910q207.js → flow-pack-service-58m51sp8.js} +79 -103
- package/dist/flow-validate-service-9a3zate4.js +46 -0
- package/dist/{fr-DPD4GHX3-exeypjwk.js → fr-7LK3QUWT-a94yejcs.js} +38 -5
- package/dist/{fr-Y6NPVODW-AS7T42TR-v4qe2tha.js → fr-7ZDL4MVO-CXMRZDOF-qjkg6y2r.js} +425 -37
- package/dist/{fr-CERONSRC-edpxhbmb.js → fr-7ZDL4MVO-pd27vwh6.js} +191 -11
- package/dist/{fr-VBM5WRC2-707ha692.js → fr-AXJGUT53-hdg3pmd4.js} +20 -5
- package/dist/{fr-PRMYCRDC-0bk078by.js → fr-I42FODC5-p80x5v4b.js} +83 -8
- package/dist/{fr-IHD66TVT-vfvmefbx.js → fr-IHD66TVT-eq8h0d6c.js} +1 -4
- package/dist/{governance-fetcher-ffvbtwbd.js → governance-fetcher-h8hpcwyh.js} +17 -21
- package/dist/{headless-4x4v3sy6.js → headless-41t9wwb7.js} +2395 -43269
- package/dist/{hitl-service-3m4ce3mt.js → hitl-service-hccqhm63.js} +22 -42
- package/dist/index-4e3w8x62.js +31 -0
- package/dist/{index-fyc0k5dd.js → index-5pzp2qeb.js} +5350 -3271
- package/dist/index-5xh0cjag.js +82 -0
- package/dist/index-7fet3f0s.js +10 -0
- package/dist/index-d4bdedx3.js +32 -0
- package/dist/index-f5kq7265.js +24 -0
- package/dist/index-g2p2ww34.js +39 -0
- package/dist/index-ng011fzs.js +974 -0
- package/dist/{index-h8cph72k.js → index-nzr4mx5p.js} +2 -22
- package/dist/{index-1b2je9n2.js → index-px95xmkg.js} +290 -268
- package/dist/index-tdwpejt6.js +22 -0
- package/dist/index-z2qk2qn6.js +24 -0
- package/dist/index.js +19 -28
- package/dist/index.umd.min-ttg1qc0x.js +7814 -0
- package/dist/init.js +22 -43
- package/dist/inline-entity-resolver-0neh2b43.js +25 -0
- package/dist/input-reader-zqaep7k7.js +11 -0
- package/dist/{ja-43QL7CGO-c3q8gre9.js → ja-C7GZV6YP-hvtbngr5.js} +20 -5
- package/dist/{ja-HFEQKCZF-hb2f25p8.js → ja-GI3OUHPZ-28fy60r0.js} +83 -8
- package/dist/{ja-JE5ZL7EY-hacj2m31.js → ja-JE5ZL7EY-607k4c7p.js} +1 -4
- package/dist/{ja-Q5PXKJ2V-BR5GRIDQ-fgqqpryf.js → ja-LGAM5HKR-NTPKIZEM-nv67917s.js} +422 -34
- package/dist/{ja-U2MCNHGT-gz0ap1jk.js → ja-LGAM5HKR-sgrtjqjh.js} +190 -10
- package/dist/ja-WY2W6733-ayr36h1f.js +71 -0
- 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-v9sxcq1c.js +13 -0
- package/dist/{ko-AYBDSRZG-G43C3XUW-kng13fsg.js → ko-7B4SUZB7-2SLI636D-grbtfrcv.js} +424 -36
- package/dist/{ko-XAUYQWDR-zp81gjp4.js → ko-7B4SUZB7-c8wr20sc.js} +190 -10
- package/dist/{ko-DJJRKCG5-5h3k9csc.js → ko-DJJRKCG5-4fekzjn4.js} +1 -4
- package/dist/{ko-LA5OSS5P-mq5h8sbk.js → ko-H2RGQWKJ-9696w762.js} +38 -5
- package/dist/{ko-TLL6Z6CD-wrt3n8a9.js → ko-Q24HSSL4-5vn55pte.js} +20 -5
- package/dist/{ko-B4SEC7QX-thq2wt6a.js → ko-RYKAL74T-10m4z8vw.js} +83 -8
- package/dist/localization-skqjy9nr.js +45 -0
- package/dist/maestro-automate-entry-d1v5q5mv.js +14 -0
- package/dist/{node-xqc0h091.js → node-0jy3qx5b.js} +69 -638
- package/dist/node-service-2nxpk751.js +64 -0
- package/dist/{node-strategy-1dmmhvf3.js → node-strategy-wrjxmbzt.js} +9 -12
- package/dist/node-sync-service-68vq10je.js +56 -0
- package/dist/packager-tool-14rdgz3c.js +55 -0
- package/dist/packager-tool-1rhch6b5.js +496 -0
- package/dist/packager-tool-21t17xzz.js +5073 -0
- package/dist/{packager-tool-pvhx9e12.js → packager-tool-2b0tn4p4.js} +58 -176
- package/dist/{packager-tool-f9jxca9z.js → packager-tool-368bft50.js} +11 -11
- package/dist/{packager-tool-a5afh1dc.js → packager-tool-4fv0sq2h.js} +61 -67
- package/dist/packager-tool-4g87fbz6.js +273 -0
- package/dist/packager-tool-4zt1s51a.js +53 -0
- package/dist/{packager-tool-frjt46rb.js → packager-tool-508ka40b.js} +23 -23
- package/dist/{packager-tool-gbv6f0ac.js → packager-tool-5104bnpv.js} +22 -21
- package/dist/packager-tool-5dgpfh5e.js +1274 -0
- package/dist/packager-tool-5ve5ms3b.js +2393 -0
- package/dist/{packager-tool-dxgrhfq5.js → packager-tool-64r7e4ek.js} +8 -8
- package/dist/{packager-tool-h6pf3qxq.js → packager-tool-65yf8zqb.js} +180 -1237
- package/dist/{packager-tool-1yh8g550.js → packager-tool-6an893wm.js} +12 -3
- package/dist/{packager-tool-htrt75v4.js → packager-tool-6jpvvxyb.js} +27 -22
- package/dist/packager-tool-6vhefpmq.js +461 -0
- package/dist/{packager-tool-1nfbzy0h.js → packager-tool-72xwbsmw.js} +441 -556
- package/dist/packager-tool-7atc775f.js +30 -0
- package/dist/packager-tool-7mxn3e7j.js +27 -0
- package/dist/{packager-tool-wvmtp8zt.js → packager-tool-7qtnffkc.js} +8 -7
- package/dist/{packager-tool-ymma2s85.js → packager-tool-8ba22j6n.js} +9 -6
- package/dist/{packager-tool-apawc11t.js → packager-tool-8ed52y5r.js} +1584 -1261
- package/dist/{packager-tool-v11fm907.js → packager-tool-8n4bdvke.js} +13 -13
- package/dist/{packager-tool-p8gab24q.js → packager-tool-8qypzm9v.js} +424 -404
- package/dist/packager-tool-9217bxm2.js +6 -0
- package/dist/{packager-tool-zfrp8ecz.js → packager-tool-951nhh3e.js} +82 -82
- package/dist/{packager-tool-ap0zt7de.js → packager-tool-99d2kj94.js} +8 -11
- package/dist/{packager-tool-z21c6mbp.js → packager-tool-a1h0q79w.js} +48 -48
- package/dist/{packager-tool-xk78j7dz.js → packager-tool-ac6rvny7.js} +52 -57
- package/dist/{packager-tool-1d64q5s5.js → packager-tool-b2pkwwj1.js} +1273 -1300
- package/dist/{packager-tool-yetpbbey.js → packager-tool-bbkkxbyq.js} +9 -8
- package/dist/{packager-tool-409n51pv.js → packager-tool-d07g2kpn.js} +7 -7
- package/dist/{packager-tool-8zzmg2f3.js → packager-tool-dx6sjbkd.js} +19 -19
- package/dist/{packager-tool-8g5931fz.js → packager-tool-em4ppegs.js} +36 -43
- package/dist/{packager-tool-zgsvggdr.js → packager-tool-f7rk9xhv.js} +4 -4
- package/dist/{packager-tool-jrnjzs5t.js → packager-tool-fzgfb0jt.js} +32175 -36281
- package/dist/{packager-tool-9rmaeaww.js → packager-tool-gdpw0daf.js} +25211 -11966
- package/dist/packager-tool-hk0fnvz5.js +14 -0
- package/dist/{packager-tool-dbsdy4xx.js → packager-tool-jd3v0bh1.js} +4 -4
- package/dist/{packager-tool-tqjfdpda.js → packager-tool-jmrhzfyj.js} +106 -80
- package/dist/{packager-tool-2px5qqm4.js → packager-tool-kz3t4raw.js} +490 -246
- package/dist/{packager-tool-7bam8cjq.js → packager-tool-mdf7bws6.js} +53255 -27261
- package/dist/{packager-tool-gdtpsdn7.js → packager-tool-mm1x18d6.js} +223 -28
- package/dist/{packager-tool-nkrmjr3a.js → packager-tool-mphfxa9g.js} +125 -125
- package/dist/{packager-tool-kn86394c.js → packager-tool-p123mtfx.js} +66 -692
- package/dist/{packager-tool-t7ahhaer.js → packager-tool-pxq0bwp0.js} +208 -138
- package/dist/{packager-tool-j95w4fj3.js → packager-tool-q0f1dvtd.js} +11 -11
- package/dist/{packager-tool-8qp60s20.js → packager-tool-q2f18crb.js} +3 -3
- package/dist/packager-tool-q2kwk5bf.js +57 -0
- package/dist/{packager-tool-09rvpfjd.js → packager-tool-rxqxza90.js} +192 -183
- package/dist/{packager-tool-3m4ve01f.js → packager-tool-ryds9860.js} +33 -36
- package/dist/{packager-tool-ykbahxma.js → packager-tool-t17t9svg.js} +6 -6
- package/dist/{packager-tool-myhbp761.js → packager-tool-vgrswa8p.js} +53 -8
- package/dist/{packager-tool-7hw344bt.js → packager-tool-xb16e3tz.js} +5 -5
- package/dist/{packager-tool-1frs4sr4.js → packager-tool-yewnsyag.js} +37 -5
- package/dist/packager-tool-zdqbp34f.js +14 -0
- package/dist/{packager-tool-pacrqxv2.js → packager-tool-ze3fnf3s.js} +52 -34
- package/dist/packager-tool.js +12 -32
- package/dist/prepare-uip-ad7mfs8t.js +92 -0
- package/dist/{pt-3KUMINBZ-d0fexmny.js → pt-2RGHDOG4-gwe2ptvg.js} +38 -5
- package/dist/{pt-BR-3LGIH33I-tqbrd89y.js → pt-BR-3LGIH33I-hdf332je.js} +1 -4
- package/dist/{pt-BR-USP2T7GD-pedn77m1.js → pt-BR-BIUJXIPU-2sqzhr8y.js} +20 -5
- package/dist/{pt-BR-6VFBW5QT-hsck9gjj.js → pt-BR-IL3KLBID-m1mvqqzb.js} +83 -8
- package/dist/{pt-BR-WNNZTIMN-6fent688.js → pt-BR-JWHVZE6H-gvkknv49.js} +38 -5
- package/dist/{pt-BR-TKHNHMET-4Z5H4N5G-pzw3328h.js → pt-BR-PHLFHMXZ-JFPKUXIZ-gyb27t6e.js} +425 -37
- package/dist/{pt-BR-GNQNAAZ2-xadharv4.js → pt-BR-PHLFHMXZ-n6de4s7z.js} +191 -11
- package/dist/{pt-RMIAKZB4-t80exmp7.js → pt-MHX6JGAX-xfgvdqwg.js} +20 -5
- package/dist/{pt-ROXU257Y-OWZOS54V-ywap2t39.js → pt-N7ZTJT4W-GVODJMRX-p5b51p0b.js} +424 -36
- package/dist/{pt-TO2DARY2-ftcce1bv.js → pt-N7ZTJT4W-d6c67xcn.js} +190 -10
- package/dist/{pt-PFZXVOQH-qshq0b2m.js → pt-PFZXVOQH-xvcm5b61.js} +1 -4
- package/dist/{pt-WOTPKWPZ-1rxcy8hs.js → pt-VLA5IOHO-8t4pze0h.js} +83 -8
- package/dist/{ro-GHOBYW2S-4zevc9dy.js → ro-3RKJNGJZ-xqj14e3d.js} +20 -5
- package/dist/{ro-KMDT7LYJ-yhpnsdvw.js → ro-53TS7SWG-hnjx1c7b.js} +38 -5
- package/dist/{ro-AN5G62WQ-kcj00jwq.js → ro-AN5G62WQ-fzsv2ymm.js} +1 -4
- package/dist/{ro-AVAWPKOO-6WCG756B-v7pjv1hc.js → ro-FLNXVYJI-ZN43XZKK-2tajkc94.js} +422 -34
- package/dist/{ro-WUYJV6OW-a8d9qy1n.js → ro-FLNXVYJI-ytrwabg2.js} +190 -10
- package/dist/{ro-PB44YXML-zmhhwp5h.js → ro-IRNFX376-mh84zk3n.js} +82 -7
- package/dist/{ru-GSCT4ARZ-FTVCGQTL-gee86v14.js → ru-GSCT4ARZ-FTVCGQTL-v3d4ag31.js} +2 -4
- package/dist/ru-GSCT4ARZ-c2cfq4h1.js +7 -0
- package/dist/{ru-T73OPRTC-4knxw497.js → ru-T73OPRTC-50m7tty9.js} +1 -4
- package/dist/{ru-WBLQ5B2U-wemdzdqd.js → ru-WBLQ5B2U-5qpt0mvh.js} +1 -4
- package/dist/{ru-WBLQ5B2U-8r3c7v6d.js → ru-WBLQ5B2U-bf20yr5y.js} +1 -4
- package/dist/{ru-WBLQ5B2U-kdey8qa4.js → ru-WBLQ5B2U-w2wmp3xb.js} +1 -4
- package/dist/{serialization-BXU6AKAN-vdqyr29x.js → serialization-Z3UYT6BW-y9gb55mp.js} +1638 -761
- package/dist/services/extract-schema/default-schema-document.d.ts +31 -0
- package/dist/services/node-service.d.ts +6 -3
- package/dist/services/node-validators/file-node-connection-validator.d.ts +2 -0
- package/dist/services/node-validators/index.d.ts +1 -0
- package/dist/services/orchestrator-connection-field.d.ts +24 -0
- package/dist/services/packaging-utils.d.ts +2 -2
- package/dist/services/vars-reference-rule.d.ts +4 -3
- package/dist/solution-auth-j8x84n5z.js +11 -0
- package/dist/solution-discovery-vn4q32bf.js +38 -0
- package/dist/{tidy-service-hz61ypyj.js → tidy-service-m33hhtc7.js} +37 -55
- package/dist/tool.js +18 -27
- package/dist/{tr-JMIP7ZSL-G3QYPVT2-gswngwcr.js → tr-7AIZZWZ6-ESAESUPL-77g9b7jb.js} +422 -34
- package/dist/{tr-M3F5A6AU-bb0tg39m.js → tr-7AIZZWZ6-pdzp9n0p.js} +190 -10
- package/dist/{tr-SEC6RGZ4-0ttavjya.js → tr-EJKY7DVQ-rkctqva4.js} +83 -8
- package/dist/{tr-KHOCWWLF-8apf5y44.js → tr-KHOCWWLF-m9t24j5y.js} +1 -4
- package/dist/{tr-SC55DYHY-e4zgcd4t.js → tr-PIQY7JIT-2mkwk0kq.js} +38 -5
- package/dist/{tr-GDTLECMM-kngksm3r.js → tr-PQLUUHPC-qsb7btxn.js} +20 -5
- package/dist/utils/container-ports.d.ts +22 -0
- package/dist/utils/handle-expansion.d.ts +57 -3
- package/dist/utils/workflow-file-format.d.ts +14 -0
- package/dist/validation.js +44 -68
- package/dist/{variable-service-9ex4a93n.js → variable-service-ea1erf93.js} +28 -49
- package/dist/{wait-for-flow-job-b0vj8828.js → wait-for-flow-job-a4xtda36.js} +29 -36
- package/dist/{zh-CN-MX7VIOF2-xznrtchf.js → zh-CN-4FH7E7UL-84y6j2ea.js} +82 -7
- package/dist/{zh-CN-4NI2EGMV-8g027vv3.js → zh-CN-4NI2EGMV-dt0wg0wh.js} +1 -4
- package/dist/{zh-CN-IFFXSEJS-MZQ4HU3Z-ge1ynmtz.js → zh-CN-CN2ARPFS-NIQTWDK2-b5c91fwn.js} +422 -34
- package/dist/{zh-CN-C5G4PC7C-ds9gkptg.js → zh-CN-CN2ARPFS-e0p2qrxf.js} +190 -10
- package/dist/{en-BPJVY3U7-xkpj5xc5.js → zh-CN-NIEVKROA-q4tbbwqz.js} +26 -7
- package/dist/{zh-CN-I5D7WHBD-ge92tbx9.js → zh-CN-OHNTHZRI-b0hjkfqn.js} +20 -5
- package/dist/{zh-TW-53SU6EH4-33x57egq.js → zh-TW-53SU6EH4-w0wz3nwg.js} +1 -4
- package/dist/{zh-TW-5SJ3GZT2-bsg054mw.js → zh-TW-5WQA6QTM-hns69sd4.js} +83 -8
- package/dist/{zh-TW-IYBNYAMG-J7FWTQTK-sx8d4ymg.js → zh-TW-7RUFEVFK-VKVRSVTP-jq2pcmar.js} +421 -33
- 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/dist/{zh-TW-TN3MPNXL-jcgg2hcs.js → zh-TW-MSQM7YTT-m7r7nwnj.js} +38 -5
- package/package.json +2 -2
- package/dist/authoring-e1k40hyw.js +0 -24
- package/dist/binding-service-0qffbxg7.js +0 -157
- package/dist/de-FGHEJRCI-gn4cf5gh.js +0 -2697
- package/dist/de-MUJPA4EB-209jpeqe.js +0 -173
- package/dist/de-UZI7FJDO-mwvc4cxe.js +0 -200
- package/dist/debug-conversation-trigger-2crr9w4n.js +0 -30
- package/dist/debug-http-client-yqjzsnhw.js +0 -32
- package/dist/debug-service-nra3n02y.js +0 -61
- package/dist/edge-service-y44f2rgd.js +0 -170
- package/dist/en-E454CJNK-ytfw06kj.js +0 -98
- package/dist/en-EJCBA3LK-0wb3b1xy.js +0 -146
- package/dist/en-EJCBA3LK-dtpdghgj.js +0 -146
- package/dist/en-GN2ZGWUE-03z2df4k.js +0 -136
- package/dist/en-LQHKFSEY-vvbe8ve9.js +0 -26
- package/dist/en-M7GQYBV2-5nfmpnfz.js +0 -2018
- package/dist/en-TBNO2WUV-77KTKLDE-4ktf0pqw.js +0 -1942
- package/dist/en-TBNO2WUV-9nan43e5.js +0 -1936
- package/dist/es-4UBUTCQA-m1ytpyx2.js +0 -200
- package/dist/es-7SE7HX2X-qda7whn6.js +0 -173
- package/dist/es-KR3ZSNMP-0cszm2n3.js +0 -2697
- package/dist/es-MX-2MYFZU7X-6v0q5rbn.js +0 -173
- package/dist/es-MX-5RELIXKI-9jhqtddc.js +0 -200
- package/dist/es-MX-XXZJGC4R-b4fbwe9d.js +0 -2697
- package/dist/filter-engine-7ep90g7f.js +0 -11
- package/dist/first-party-service-srxaftkn.js +0 -27
- package/dist/flow-api-sat010z1.js +0 -42
- package/dist/flow-eval-node-target-cwxb4kfe.js +0 -52
- package/dist/flow-eval-run-api-xdygjzfv.js +0 -13
- package/dist/flow-init-service-k7k5vx2z.js +0 -47
- package/dist/flow-io-2qdyj5e0.js +0 -44
- package/dist/flow-validate-service-x2mbk3et.js +0 -70
- package/dist/fr-MDFKNZ4C-qmypp92m.js +0 -173
- package/dist/fr-VBM5WRC2-63z7w4mh.js +0 -200
- package/dist/fr-Y6NPVODW-q5ef3htr.js +0 -2697
- package/dist/index-cg9qhfb1.js +0 -635
- package/dist/index-d090f35d.js +0 -66
- package/dist/index-gxcjq6ns.js +0 -110
- package/dist/index-kmp9fmhb.js +0 -25
- package/dist/index-nsn889vf.js +0 -27
- package/dist/index-sqhbn7ew.js +0 -157
- package/dist/index-wycgq0ff.js +0 -3178
- package/dist/index-y1ym28vg.js +0 -667
- package/dist/index.umd.min-fqefd9kn.js +0 -7814
- package/dist/inline-entity-resolver-c854cqma.js +0 -45
- package/dist/input-reader-n7kzdrev.js +0 -12
- package/dist/ja-43QL7CGO-h6qfxfay.js +0 -200
- package/dist/ja-MDG4BKZQ-gayaca2c.js +0 -38
- package/dist/ja-Q5PXKJ2V-tzf2rvz2.js +0 -2697
- package/dist/ja-UTQEAP34-hvyf683h.js +0 -173
- package/dist/known-types-r51zxb9g.js +0 -19
- package/dist/ko-AXCHW2OK-pkwdcbmx.js +0 -173
- package/dist/ko-AYBDSRZG-am0h0m2r.js +0 -2697
- package/dist/ko-TLL6Z6CD-ag6gjynr.js +0 -200
- package/dist/localization-d6gjmrsw.js +0 -47
- package/dist/maestro-automate-entry-6f9act3w.js +0 -22
- package/dist/node-service-d4xpqs0z.js +0 -92
- package/dist/node-sync-service-76b9e4r5.js +0 -61
- package/dist/packager-tool-0gctz400.js +0 -17
- package/dist/packager-tool-4mna26cc.js +0 -133
- package/dist/packager-tool-4x7tzvv0.js +0 -1176
- package/dist/packager-tool-53w8skv5.js +0 -262
- package/dist/packager-tool-6ejqwbw9.js +0 -26
- package/dist/packager-tool-6z1hsm2h.js +0 -143
- package/dist/packager-tool-7ja1b5hh.js +0 -8809
- package/dist/packager-tool-9era57c0.js +0 -28
- package/dist/packager-tool-9jxzgsxc.js +0 -14
- package/dist/packager-tool-c23zrhj8.js +0 -11
- package/dist/packager-tool-d6qf5qmb.js +0 -49
- package/dist/packager-tool-e3yks66r.js +0 -95
- package/dist/packager-tool-e5hj89zm.js +0 -6
- package/dist/packager-tool-e87tzg4y.js +0 -1937
- package/dist/packager-tool-eypvc2kv.js +0 -23
- package/dist/packager-tool-gbgfwx8f.js +0 -2
- package/dist/packager-tool-hk1gxnth.js +0 -11
- package/dist/packager-tool-hxyjn885.js +0 -24
- package/dist/packager-tool-j78fwwhq.js +0 -16
- package/dist/packager-tool-jgfzfqjm.js +0 -53
- package/dist/packager-tool-jysvpt8p.js +0 -11
- package/dist/packager-tool-m3wkcxf5.js +0 -11
- package/dist/packager-tool-mcaf4ewf.js +0 -46
- package/dist/packager-tool-mgcz986r.js +0 -143
- package/dist/packager-tool-p79yh9ww.js +0 -97
- package/dist/packager-tool-paq9c70w.js +0 -1332
- package/dist/packager-tool-pcvhcn2k.js +0 -2019
- package/dist/packager-tool-qkn0c042.js +0 -1922
- package/dist/packager-tool-qszay16r.js +0 -180
- package/dist/packager-tool-red2crtp.js +0 -5367
- package/dist/packager-tool-rs6jm14d.js +0 -23
- package/dist/packager-tool-s7wb0s9n.js +0 -6297
- package/dist/packager-tool-sc961w0q.js +0 -16
- package/dist/packager-tool-skcjythd.js +0 -22085
- package/dist/packager-tool-t07ev0jj.js +0 -1083
- package/dist/packager-tool-xj0agqpk.js +0 -11
- package/dist/packager-tool-z83pga0z.js +0 -1942
- package/dist/pt-3DIO5QWG-hb763vct.js +0 -173
- package/dist/pt-BR-TKHNHMET-dn6zxk1d.js +0 -2697
- package/dist/pt-BR-USP2T7GD-rppy42ym.js +0 -200
- package/dist/pt-BR-Y6K6XHXK-37a932vp.js +0 -173
- package/dist/pt-RMIAKZB4-67enhx3m.js +0 -200
- package/dist/pt-ROXU257Y-yd80gx6s.js +0 -2697
- package/dist/ro-AVAWPKOO-42m6am1w.js +0 -2697
- package/dist/ro-BWR3ONRR-jmap5ajd.js +0 -173
- package/dist/ro-GHOBYW2S-mhnqsgaa.js +0 -200
- package/dist/ru-GSCT4ARZ-1sa9wbr8.js +0 -10
- package/dist/ru-GSCT4ARZ-jrxwev63.js +0 -10
- package/dist/ru-WBLQ5B2U-dpqvtfwr.js +0 -10
- package/dist/ru-WBLQ5B2U-s4em88p0.js +0 -10
- package/dist/shared-utils-tqnx96mg.js +0 -21
- package/dist/solution-auth-8qz5pw7z.js +0 -14
- package/dist/solution-discovery-6t0z143v.js +0 -44
- package/dist/tr-5IIHSFW5-stsb3dar.js +0 -173
- package/dist/tr-GDTLECMM-k5fhmq13.js +0 -200
- package/dist/tr-JMIP7ZSL-fb67ft9w.js +0 -2696
- package/dist/zh-CN-I5D7WHBD-sr5h0a98.js +0 -200
- package/dist/zh-CN-IFFXSEJS-tke4mzty.js +0 -2697
- package/dist/zh-CN-OUMLDKDS-q3a1rr5c.js +0 -38
- package/dist/zh-CN-R2KU4U5L-q4yhc33t.js +0 -173
- package/dist/zh-TW-2AVLM723-xsmap3gk.js +0 -200
- package/dist/zh-TW-GNKMELBF-r4ay2475.js +0 -173
- package/dist/zh-TW-IYBNYAMG-wcan0qpb.js +0 -2697
- /package/dist/{packager-tool-yc4kw997.js → packager-tool-1qg04b7q.js} +0 -0
- /package/dist/{packager-tool-cqtsj6yh.js → packager-tool-2sazb7th.js} +0 -0
- /package/dist/{packager-tool-s9ff3kk4.js → packager-tool-887wr6jm.js} +0 -0
- /package/dist/{packager-tool-aw9v0raw.js → packager-tool-8c7nddd1.js} +0 -0
- /package/dist/{packager-tool-9cq9atem.js → packager-tool-a9xgmn1q.js} +0 -0
- /package/dist/{packager-tool-4kr6g0zw.js → packager-tool-cvh1a0nm.js} +0 -0
- /package/dist/{packager-tool-27avrkyk.js → packager-tool-k3egwd1m.js} +0 -0
- /package/dist/{packager-tool-qa9gftnj.js → packager-tool-mxgybnmt.js} +0 -0
- /package/dist/{packager-tool-10vc8pq4.js → packager-tool-wr7gn964.js} +0 -0
|
@@ -1,47 +1,45 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
searchWithFilters
|
|
6
|
-
} from "./packager-tool-7hw344bt.js";
|
|
2
|
+
getLoginStatusAsync2,
|
|
3
|
+
getAuthContext2
|
|
4
|
+
} from "./packager-tool-p123mtfx.js";
|
|
7
5
|
import {
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
unknownContractWarning
|
|
11
|
-
} from "./packager-tool-z21c6mbp.js";
|
|
12
|
-
import {
|
|
13
|
-
listKnownSdkNodes
|
|
14
|
-
} from "./packager-tool-409n51pv.js";
|
|
6
|
+
getFileSystem
|
|
7
|
+
} from "./packager-tool-vgrswa8p.js";
|
|
15
8
|
import {
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
} from "./packager-tool-kn86394c.js";
|
|
9
|
+
catchError2
|
|
10
|
+
} from "./packager-tool-pxq0bwp0.js";
|
|
19
11
|
import {
|
|
20
|
-
|
|
21
|
-
|
|
12
|
+
httpStatusOf,
|
|
13
|
+
classifyThrownError,
|
|
14
|
+
extractErrorMessage,
|
|
15
|
+
logger,
|
|
16
|
+
UIPATH_HOME_DIR2,
|
|
17
|
+
hashContent,
|
|
18
|
+
getSdkUserAgentToken,
|
|
19
|
+
addSdkUserAgentHeader,
|
|
20
|
+
installSdkUserAgentHeader
|
|
21
|
+
} from "./packager-tool-8ed52y5r.js";
|
|
22
22
|
import {
|
|
23
23
|
MANIFEST_FEATURE_FLAGS,
|
|
24
24
|
ManifestClient
|
|
25
|
-
} from "./packager-tool-
|
|
25
|
+
} from "./packager-tool-gdpw0daf.js";
|
|
26
26
|
import {
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
extractErrorMessage,
|
|
30
|
-
getSdkUserAgentToken,
|
|
31
|
-
hashContent,
|
|
32
|
-
httpStatusOf,
|
|
33
|
-
installSdkUserAgentHeader,
|
|
34
|
-
logger
|
|
35
|
-
} from "./packager-tool-apawc11t.js";
|
|
27
|
+
searchWithFilters2
|
|
28
|
+
} from "./packager-tool-xb16e3tz.js";
|
|
36
29
|
import {
|
|
37
|
-
|
|
38
|
-
} from "./packager-tool-
|
|
30
|
+
listKnownSdkNodes2
|
|
31
|
+
} from "./packager-tool-d07g2kpn.js";
|
|
39
32
|
import {
|
|
40
|
-
|
|
41
|
-
|
|
33
|
+
findSolutionFromCwd2,
|
|
34
|
+
buildInSolutionNodes2,
|
|
35
|
+
unknownContractWarning2
|
|
36
|
+
} from "./packager-tool-a1h0q79w.js";
|
|
42
37
|
import {
|
|
43
|
-
|
|
44
|
-
} from "./packager-tool-
|
|
38
|
+
resolveMaestroRegistry
|
|
39
|
+
} from "./packager-tool-64r7e4ek.js";
|
|
40
|
+
import {
|
|
41
|
+
isBrowser2
|
|
42
|
+
} from "./packager-tool-zdqbp34f.js";
|
|
45
43
|
|
|
46
44
|
// ../integrationservice-sdk/generated/connections/src/runtime.ts
|
|
47
45
|
var BASE_PATH = "https://alpha.uipath.com/entity/Azure/connections_".replace(/\/+$/, "");
|
|
@@ -574,7 +572,7 @@ var package_default = {
|
|
|
574
572
|
name: "@uipath/integrationservice-sdk",
|
|
575
573
|
author: "UiPath",
|
|
576
574
|
license: "SEE LICENSE IN LICENSE.txt",
|
|
577
|
-
version: "1.
|
|
575
|
+
version: "1.206.0-preview.279",
|
|
578
576
|
repository: {
|
|
579
577
|
type: "git",
|
|
580
578
|
url: "https://github.com/UiPath/cli.git",
|
|
@@ -595,17 +593,26 @@ var package_default = {
|
|
|
595
593
|
".": {
|
|
596
594
|
types: "./dist/src/index.d.ts",
|
|
597
595
|
default: "./dist/index.js"
|
|
596
|
+
},
|
|
597
|
+
"./bindings": {
|
|
598
|
+
types: "./dist/src/bindings.d.ts",
|
|
599
|
+
default: "./dist/bindings.js"
|
|
600
|
+
},
|
|
601
|
+
"./connections": {
|
|
602
|
+
types: "./dist/src/connections.d.ts",
|
|
603
|
+
default: "./dist/connections.js"
|
|
598
604
|
}
|
|
599
605
|
},
|
|
600
606
|
files: [
|
|
601
607
|
"dist"
|
|
602
608
|
],
|
|
603
609
|
scripts: {
|
|
604
|
-
build: "bun build ./src/index.ts --outdir dist --format esm --target node --sourcemap=linked && tsc -p tsconfig.build.json --noCheck",
|
|
610
|
+
build: "bun build ./src/index.ts ./src/bindings.ts ./src/connections.ts --outdir dist --root ./src --format esm --target node --sourcemap=linked && tsc -p tsconfig.build.json --noCheck",
|
|
605
611
|
generate: "bun run src/scripts/generate-sdk.ts",
|
|
606
612
|
lint: "biome check .",
|
|
607
613
|
test: "vitest run",
|
|
608
|
-
"test:coverage": "vitest run --coverage"
|
|
614
|
+
"test:coverage": "vitest run --coverage",
|
|
615
|
+
typecheck: "tsc --noEmit"
|
|
609
616
|
},
|
|
610
617
|
devDependencies: {
|
|
611
618
|
"@uipath/auth": "workspace:*",
|
|
@@ -616,7 +623,7 @@ var package_default = {
|
|
|
616
623
|
typescript: "^7.0.2"
|
|
617
624
|
},
|
|
618
625
|
dependencies: {
|
|
619
|
-
"@uipath/integration-service-design-time": "
|
|
626
|
+
"@uipath/integration-service-design-time": "3.3.0"
|
|
620
627
|
}
|
|
621
628
|
};
|
|
622
629
|
|
|
@@ -6338,7 +6345,7 @@ function resolveApiDomain(ApiClass) {
|
|
|
6338
6345
|
return API_DOMAIN_MAP.get(ApiClass) ?? API_DOMAIN_BY_NAME.get(baseApiClassName(ApiClass.name));
|
|
6339
6346
|
}
|
|
6340
6347
|
async function getValidatedAuthContext(options) {
|
|
6341
|
-
const ctx = await
|
|
6348
|
+
const ctx = await getAuthContext2({
|
|
6342
6349
|
tenant: options?.tenant,
|
|
6343
6350
|
ensureTokenValidityMinutes: options?.loginValidity,
|
|
6344
6351
|
requireOrganizationId: true,
|
|
@@ -6352,10 +6359,13 @@ async function getValidatedAuthContext(options) {
|
|
|
6352
6359
|
tenantName: ctx.tenantName
|
|
6353
6360
|
};
|
|
6354
6361
|
}
|
|
6362
|
+
function tenantServiceRoot(baseUrl, organizationId, tenantName) {
|
|
6363
|
+
return `${baseUrl}/${encodeURIComponent(organizationId)}/${encodeURIComponent(tenantName)}`;
|
|
6364
|
+
}
|
|
6355
6365
|
async function createConnectionsConfig(options) {
|
|
6356
6366
|
const { baseUrl, accessToken, organizationId, tenantName } = await getValidatedAuthContext(options);
|
|
6357
6367
|
return new Configuration({
|
|
6358
|
-
basePath: `${baseUrl
|
|
6368
|
+
basePath: `${tenantServiceRoot(baseUrl, organizationId, tenantName)}/connections_`,
|
|
6359
6369
|
accessToken: async () => accessToken,
|
|
6360
6370
|
headers: addSdkUserAgentHeader({
|
|
6361
6371
|
"x-uipath-source": "UiPath.CodingAgent"
|
|
@@ -6365,7 +6375,7 @@ async function createConnectionsConfig(options) {
|
|
|
6365
6375
|
async function createElementsConfig(options) {
|
|
6366
6376
|
const { baseUrl, accessToken, organizationId, tenantName } = await getValidatedAuthContext(options);
|
|
6367
6377
|
return new Configuration2({
|
|
6368
|
-
basePath: `${baseUrl
|
|
6378
|
+
basePath: `${tenantServiceRoot(baseUrl, organizationId, tenantName)}/elements_/v3/element`,
|
|
6369
6379
|
accessToken: async () => accessToken,
|
|
6370
6380
|
headers: addSdkUserAgentHeader({
|
|
6371
6381
|
"x-uipath-source": "UiPath.CodingAgent"
|
|
@@ -6377,18 +6387,22 @@ async function createApiClient(ApiClass, options) {
|
|
|
6377
6387
|
if (!domain) {
|
|
6378
6388
|
throw new Error(`Unknown API class: ${ApiClass.name}`);
|
|
6379
6389
|
}
|
|
6380
|
-
|
|
6390
|
+
if (domain === "connections") {
|
|
6391
|
+
const config = await createConnectionsConfig(options);
|
|
6392
|
+
return new ApiClass(config);
|
|
6393
|
+
}
|
|
6394
|
+
const config = await createElementsConfig(options);
|
|
6381
6395
|
return new ApiClass(config);
|
|
6382
6396
|
}
|
|
6383
|
-
var
|
|
6384
|
-
function
|
|
6397
|
+
var ACTIVITY_VERSION_V42 = "4.0.0";
|
|
6398
|
+
function isV4ActivityConfiguration2(instanceParameters) {
|
|
6385
6399
|
if (!instanceParameters)
|
|
6386
6400
|
return false;
|
|
6387
|
-
return instanceParameters.version ===
|
|
6401
|
+
return instanceParameters.version === ACTIVITY_VERSION_V42;
|
|
6388
6402
|
}
|
|
6389
6403
|
async function getConnectorActivityMetadataV4(options, connectorKey, objectName) {
|
|
6390
6404
|
const { baseUrl, accessToken, organizationId, tenantName } = await getValidatedAuthContext(options);
|
|
6391
|
-
const url = `${baseUrl
|
|
6405
|
+
const url = `${tenantServiceRoot(baseUrl, organizationId, tenantName)}/elements_/v4/element/connectors/${encodeURIComponent(connectorKey)}/objects/${encodeURIComponent(objectName)}/metadata`;
|
|
6392
6406
|
const response = await fetch(url, {
|
|
6393
6407
|
headers: addSdkUserAgentHeader({
|
|
6394
6408
|
Authorization: `Bearer ${accessToken}`,
|
|
@@ -6548,7 +6562,7 @@ function shortHash(input) {
|
|
|
6548
6562
|
// ../integrationservice-sdk/src/dap/live-connection-provider.ts
|
|
6549
6563
|
var _locationShimmed = false;
|
|
6550
6564
|
function ensureLocationShim(origin) {
|
|
6551
|
-
if (_locationShimmed ||
|
|
6565
|
+
if (_locationShimmed || isBrowser2()) {
|
|
6552
6566
|
return;
|
|
6553
6567
|
}
|
|
6554
6568
|
const url = new URL(origin);
|
|
@@ -6566,7 +6580,7 @@ function ensureLocationShim(origin) {
|
|
|
6566
6580
|
function createLiveConnectionsProvider() {
|
|
6567
6581
|
return {
|
|
6568
6582
|
getConnectionInfo: async (connectionId) => {
|
|
6569
|
-
const ctx = await
|
|
6583
|
+
const ctx = await getAuthContext2({
|
|
6570
6584
|
requireOrganizationId: true,
|
|
6571
6585
|
requireTenantName: true,
|
|
6572
6586
|
requireTenantId: true
|
|
@@ -6583,6 +6597,98 @@ function createLiveConnectionsProvider() {
|
|
|
6583
6597
|
};
|
|
6584
6598
|
}
|
|
6585
6599
|
|
|
6600
|
+
// ../integrationservice-sdk/src/dap/managed-http.ts
|
|
6601
|
+
var MANAGED_HTTP_CONNECTOR_KEY2 = "uipath-uipath-http";
|
|
6602
|
+
var MANAGED_HTTP_OBJECT_NAME = "http-request";
|
|
6603
|
+
var MANAGED_HTTP_ENDPOINT = "/http-request";
|
|
6604
|
+
var IMPLICIT_CONNECTION = "ImplicitConnection";
|
|
6605
|
+
var MANAGED_HTTP_METHODS = new Set([
|
|
6606
|
+
"GET",
|
|
6607
|
+
"POST",
|
|
6608
|
+
"PUT",
|
|
6609
|
+
"PATCH",
|
|
6610
|
+
"DELETE",
|
|
6611
|
+
"OPTIONS",
|
|
6612
|
+
"HEAD"
|
|
6613
|
+
]);
|
|
6614
|
+
var MANAGED_HTTP_KEYS = new Set([
|
|
6615
|
+
"authentication",
|
|
6616
|
+
"method",
|
|
6617
|
+
"url",
|
|
6618
|
+
"connectionId",
|
|
6619
|
+
"folderKey",
|
|
6620
|
+
"targetConnector",
|
|
6621
|
+
"headers",
|
|
6622
|
+
"query",
|
|
6623
|
+
"body"
|
|
6624
|
+
]);
|
|
6625
|
+
var isRecord = (value) => typeof value === "object" && value !== null && !Array.isArray(value);
|
|
6626
|
+
function managedHttpDetailErrors(config) {
|
|
6627
|
+
const errors = [];
|
|
6628
|
+
const auth = config.authentication;
|
|
6629
|
+
if (auth !== "connector" && auth !== "manual") {
|
|
6630
|
+
errors.push('authentication is required ("connector" or "manual")');
|
|
6631
|
+
}
|
|
6632
|
+
if (typeof config.method !== "string" || !MANAGED_HTTP_METHODS.has(config.method)) {
|
|
6633
|
+
errors.push(`method must be one of: ${[...MANAGED_HTTP_METHODS].join(", ")}`);
|
|
6634
|
+
}
|
|
6635
|
+
if (auth === "connector") {
|
|
6636
|
+
for (const key of ["connectionId", "folderKey", "targetConnector"]) {
|
|
6637
|
+
if (typeof config[key] !== "string" || !config[key]) {
|
|
6638
|
+
errors.push(`${key} is required for connector mode`);
|
|
6639
|
+
}
|
|
6640
|
+
}
|
|
6641
|
+
if (config.url !== undefined && typeof config.url !== "string") {
|
|
6642
|
+
errors.push("url must be a string");
|
|
6643
|
+
}
|
|
6644
|
+
} else if (auth === "manual") {
|
|
6645
|
+
if (typeof config.url !== "string" || !config.url) {
|
|
6646
|
+
errors.push("url is required for manual mode");
|
|
6647
|
+
}
|
|
6648
|
+
}
|
|
6649
|
+
for (const key of ["headers", "query"]) {
|
|
6650
|
+
if (config[key] !== undefined && !isRecord(config[key])) {
|
|
6651
|
+
errors.push(`${key} must be a JSON object`);
|
|
6652
|
+
}
|
|
6653
|
+
}
|
|
6654
|
+
const unknownKeys = Object.keys(config).filter((key) => !MANAGED_HTTP_KEYS.has(key));
|
|
6655
|
+
if (unknownKeys.length > 0) {
|
|
6656
|
+
errors.push(`Unknown keys: ${unknownKeys.join(", ")}. Valid keys: ${[...MANAGED_HTTP_KEYS].join(", ")}`);
|
|
6657
|
+
}
|
|
6658
|
+
return errors;
|
|
6659
|
+
}
|
|
6660
|
+
function buildManagedHttpBodyParameters(detail) {
|
|
6661
|
+
const body = {
|
|
6662
|
+
authentication: detail.authentication,
|
|
6663
|
+
method: detail.method
|
|
6664
|
+
};
|
|
6665
|
+
if (detail.authentication === "connector") {
|
|
6666
|
+
body.targetConnector = detail.targetConnector;
|
|
6667
|
+
body.connection = detail.connectionId;
|
|
6668
|
+
if (detail.url !== undefined) {
|
|
6669
|
+
body.path = detail.url;
|
|
6670
|
+
body.url = detail.url;
|
|
6671
|
+
}
|
|
6672
|
+
} else {
|
|
6673
|
+
body.url = detail.url;
|
|
6674
|
+
}
|
|
6675
|
+
if (detail.headers !== undefined)
|
|
6676
|
+
body.headers = detail.headers;
|
|
6677
|
+
if (detail.query !== undefined)
|
|
6678
|
+
body.query = detail.query;
|
|
6679
|
+
if (detail.body !== undefined)
|
|
6680
|
+
body.body = detail.body;
|
|
6681
|
+
return body;
|
|
6682
|
+
}
|
|
6683
|
+
var MANAGED_HTTP_TELEMETRY = {
|
|
6684
|
+
connectorKey: MANAGED_HTTP_CONNECTOR_KEY2,
|
|
6685
|
+
connectorName: "HTTP",
|
|
6686
|
+
operationType: "create",
|
|
6687
|
+
objectName: MANAGED_HTTP_OBJECT_NAME,
|
|
6688
|
+
objectDisplayName: "HTTP Request",
|
|
6689
|
+
primaryKeyName: ""
|
|
6690
|
+
};
|
|
6691
|
+
|
|
6586
6692
|
// ../integrationservice-sdk/src/dap/resource-field-resolver.ts
|
|
6587
6693
|
var FIELD_ARRAY_MARKER = "[*]";
|
|
6588
6694
|
function resourceFolderKeyFieldName(fieldName) {
|
|
@@ -6594,8 +6700,10 @@ function isResourceSelection(value) {
|
|
|
6594
6700
|
}
|
|
6595
6701
|
|
|
6596
6702
|
class ResourceFieldResolutionError extends Error {
|
|
6597
|
-
|
|
6703
|
+
fromInput;
|
|
6704
|
+
constructor(message, fromInput = false) {
|
|
6598
6705
|
super(message);
|
|
6706
|
+
this.fromInput = fromInput;
|
|
6599
6707
|
this.name = "ResourceFieldResolutionError";
|
|
6600
6708
|
}
|
|
6601
6709
|
}
|
|
@@ -6605,7 +6713,7 @@ async function resolveResourceFieldValues(fieldValues, resourceFields, solutionD
|
|
|
6605
6713
|
solution ??= await openSolution(solutionDir);
|
|
6606
6714
|
return solution;
|
|
6607
6715
|
};
|
|
6608
|
-
const [resolveError, resolved] = await
|
|
6716
|
+
const [resolveError, resolved] = await catchError2(resolveEach(fieldValues, resourceFields, openOnce));
|
|
6609
6717
|
const saveError = solution ? await saveSolution(solution, solutionDir) : null;
|
|
6610
6718
|
if (resolveError) {
|
|
6611
6719
|
if (saveError) {
|
|
@@ -6626,10 +6734,10 @@ async function resolveEach(fieldValues, resourceFields, openOnce) {
|
|
|
6626
6734
|
continue;
|
|
6627
6735
|
}
|
|
6628
6736
|
if (Array.isArray(value)) {
|
|
6629
|
-
throw new ResourceFieldResolutionError(`'${field.name}' is a multi-select ${field.kind} picker, which the CLI cannot resolve yet — pick one ${field.kind} by name
|
|
6737
|
+
throw new ResourceFieldResolutionError(`'${field.name}' is a multi-select ${field.kind} picker, which the CLI cannot resolve yet — pick one ${field.kind} by name.`, true);
|
|
6630
6738
|
}
|
|
6631
6739
|
if (typeof value !== "string") {
|
|
6632
|
-
throw new ResourceFieldResolutionError(`'${field.name}' is a ${field.kind} picker on this activity — pass the ${field.kind} name as a string
|
|
6740
|
+
throw new ResourceFieldResolutionError(`'${field.name}' is a ${field.kind} picker on this activity — pass the ${field.kind} name as a string.`, true);
|
|
6633
6741
|
}
|
|
6634
6742
|
const companion = resourceFolderKeyFieldName(field.name);
|
|
6635
6743
|
const folderHint = fieldValues[companion];
|
|
@@ -6641,10 +6749,10 @@ async function resolveEach(fieldValues, resourceFields, openOnce) {
|
|
|
6641
6749
|
return resolved;
|
|
6642
6750
|
}
|
|
6643
6751
|
async function openSolution(solutionDir) {
|
|
6644
|
-
const [error, solution] = await
|
|
6645
|
-
const { getSolutionAuthContext } = await import("./solution-auth-
|
|
6752
|
+
const [error, solution] = await catchError2((async () => {
|
|
6753
|
+
const { getSolutionAuthContext } = await import("./solution-auth-j8x84n5z.js");
|
|
6646
6754
|
await getSolutionAuthContext({});
|
|
6647
|
-
const resources = await import("./index-
|
|
6755
|
+
const resources = await import("./index-px95xmkg.js");
|
|
6648
6756
|
await resources.normalizeResourceFileCasing(solutionDir);
|
|
6649
6757
|
const services = await resources.createResourceBuilderServices();
|
|
6650
6758
|
return {
|
|
@@ -6665,18 +6773,18 @@ async function saveSolution({ resources, builder }, solutionDir) {
|
|
|
6665
6773
|
}
|
|
6666
6774
|
async function referenceResource({ resources, builder }, field, name, folderHint, companion) {
|
|
6667
6775
|
const matches = await resources.searchRcsResources(builder, field.kind, name);
|
|
6668
|
-
const candidates = matches.filter((
|
|
6776
|
+
const candidates = matches.filter((match) => match.name.toLowerCase() === name.toLowerCase() && (folderHint === undefined || matchesFolder(resources, match, folderHint)));
|
|
6669
6777
|
if (candidates.length === 0) {
|
|
6670
6778
|
throw new ResourceFieldResolutionError(`No ${field.kind} named '${name}'${folderHint ? ` in folder '${folderHint}'` : ""} was found. ` + "If a failed resource catalog lookup was logged above, check your login and retry. " + `Otherwise run 'uip solution resources list --source remote --kind ${field.kind} --search "${name}"' to discover candidates.`);
|
|
6671
6779
|
}
|
|
6672
6780
|
if (candidates.length > 1) {
|
|
6673
|
-
const folders = candidates.map((
|
|
6781
|
+
const folders = candidates.map((match) => ` - ${match.folder?.fullyQualifiedName ?? "<tenant>"} (folder key ${match.folder?.folderKey ?? "<none>"})`).join(`
|
|
6674
6782
|
`);
|
|
6675
6783
|
throw new ResourceFieldResolutionError(`${candidates.length} ${field.kind} resources are named '${name}'. Pass the folder key or path as '${companion}' to pick one:
|
|
6676
|
-
${folders}
|
|
6784
|
+
${folders}`, true);
|
|
6677
6785
|
}
|
|
6678
6786
|
const [match] = candidates;
|
|
6679
|
-
const [loadError, solution] = await
|
|
6787
|
+
const [loadError, solution] = await catchError2(builder.context.loadAsync());
|
|
6680
6788
|
if (loadError) {
|
|
6681
6789
|
throw new ResourceFieldResolutionError(`Failed to read the solution before referencing ${field.kind} '${name}': ${loadError.message}`);
|
|
6682
6790
|
}
|
|
@@ -6689,7 +6797,7 @@ ${folders}`);
|
|
|
6689
6797
|
folderPath: match.folder?.fullyQualifiedName
|
|
6690
6798
|
};
|
|
6691
6799
|
}
|
|
6692
|
-
const [referenceError, response] = await
|
|
6800
|
+
const [referenceError, response] = await catchError2(builder.addOrUpdateResourceToSolutionAsync({
|
|
6693
6801
|
kind: field.kind,
|
|
6694
6802
|
type: match.type,
|
|
6695
6803
|
key: match.key,
|
|
@@ -6732,7 +6840,7 @@ function createSolutionResourceConfigurationsProvider(solutionDir, namesByKey =
|
|
|
6732
6840
|
async getAllConfigurations(resourceKey) {
|
|
6733
6841
|
const { resources, services } = await ensureEngine();
|
|
6734
6842
|
const builder = solutionDir ? await services.getSolutionBuilder(solutionDir, true) : undefined;
|
|
6735
|
-
const [error, graph] = await
|
|
6843
|
+
const [error, graph] = await catchError2(resources.readResourceConfigurationsAsync(services, builder, resourceKey, { name: namesByKey.get(resourceKey) }));
|
|
6736
6844
|
await builder?.disposeAsync();
|
|
6737
6845
|
if (error) {
|
|
6738
6846
|
const status = httpStatusOf(error) ?? (error.message.endsWith(CATALOG_MISS) ? 404 : undefined);
|
|
@@ -6745,9 +6853,9 @@ function createSolutionResourceConfigurationsProvider(solutionDir, namesByKey =
|
|
|
6745
6853
|
};
|
|
6746
6854
|
}
|
|
6747
6855
|
async function openEngine() {
|
|
6748
|
-
const { getSolutionAuthContext } = await import("./solution-auth-
|
|
6856
|
+
const { getSolutionAuthContext } = await import("./solution-auth-j8x84n5z.js");
|
|
6749
6857
|
await getSolutionAuthContext({});
|
|
6750
|
-
const resources = await import("./index-
|
|
6858
|
+
const resources = await import("./index-px95xmkg.js");
|
|
6751
6859
|
return {
|
|
6752
6860
|
resources,
|
|
6753
6861
|
services: await resources.createResourceBuilderServices()
|
|
@@ -6755,9 +6863,8 @@ async function openEngine() {
|
|
|
6755
6863
|
}
|
|
6756
6864
|
|
|
6757
6865
|
// ../integrationservice-sdk/src/dap/essential-config.ts
|
|
6758
|
-
var MANAGED_HTTP_CONNECTOR_KEY = "uipath-uipath-http";
|
|
6759
6866
|
var MANAGED_HTTP_CONNECTOR_VERSION = "1.4.50";
|
|
6760
|
-
function
|
|
6867
|
+
function buildActivityEssentialConfiguration2(instanceParameters, methodInfo, savedFilterTrees = null, customFieldsRequestDetails = null) {
|
|
6761
6868
|
const operation = methodInfo.operation.toLowerCase();
|
|
6762
6869
|
const savedJitInputFieldId = computeSavedJitInputFieldId(operation, methodInfo.parameters, instanceParameters.objectName);
|
|
6763
6870
|
const essentialConfiguration = {
|
|
@@ -6801,7 +6908,7 @@ async function configureActivityClient({
|
|
|
6801
6908
|
assertFilterTreeSupported(tree);
|
|
6802
6909
|
}
|
|
6803
6910
|
}
|
|
6804
|
-
const { DesignTimeActivityClient } = await import("./index-
|
|
6911
|
+
const { DesignTimeActivityClient } = await import("./index-5pzp2qeb.js");
|
|
6805
6912
|
const initiateOptions = {
|
|
6806
6913
|
connectionsProvider: createLiveConnectionsProvider(),
|
|
6807
6914
|
...solutionDir ? {
|
|
@@ -6838,30 +6945,30 @@ async function configureActivityClient({
|
|
|
6838
6945
|
}
|
|
6839
6946
|
if (savedFilterTrees) {
|
|
6840
6947
|
for (const [filterParam, tree] of Object.entries(savedFilterTrees)) {
|
|
6841
|
-
await
|
|
6948
|
+
await applySavedFilterTree2(client, filterParam, tree);
|
|
6842
6949
|
}
|
|
6843
6950
|
}
|
|
6844
6951
|
return { client, resolvedResources };
|
|
6845
6952
|
}
|
|
6846
|
-
async function
|
|
6953
|
+
async function applySavedFilterTree2(client, propertyName, tree) {
|
|
6847
6954
|
await client.updateProperty({
|
|
6848
6955
|
propertyName,
|
|
6849
6956
|
valueType: "widget",
|
|
6850
6957
|
widget: { type: "filter", widgetValue: tree }
|
|
6851
6958
|
});
|
|
6852
6959
|
}
|
|
6853
|
-
function
|
|
6960
|
+
function assertActivityMetadataResolved2(essentialConfiguration, connectionId) {
|
|
6854
6961
|
if (essentialConfiguration.connectorVersion == null) {
|
|
6855
6962
|
throw new Error(`Connector activity metadata was not resolved for connection '${connectionId}' (no connectorVersion). Check the connection is enabled and you are logged in (run 'uip login').`);
|
|
6856
6963
|
}
|
|
6857
6964
|
}
|
|
6858
|
-
function
|
|
6965
|
+
function buildManagedHttpEssentialConfiguration2() {
|
|
6859
6966
|
const essentialConfiguration = {
|
|
6860
6967
|
connectorVersion: MANAGED_HTTP_CONNECTOR_VERSION,
|
|
6861
6968
|
executionType: null,
|
|
6862
6969
|
customFieldsRequestDetails: null,
|
|
6863
6970
|
instanceParameters: {
|
|
6864
|
-
connectorKey:
|
|
6971
|
+
connectorKey: MANAGED_HTTP_CONNECTOR_KEY2,
|
|
6865
6972
|
objectName: "http-request",
|
|
6866
6973
|
httpMethod: "POST",
|
|
6867
6974
|
activityType: "Curated",
|
|
@@ -6877,14 +6984,44 @@ function buildManagedHttpEssentialConfiguration() {
|
|
|
6877
6984
|
};
|
|
6878
6985
|
return { essentialConfiguration };
|
|
6879
6986
|
}
|
|
6987
|
+
// ../integrationservice-sdk/src/dap/external-execution.ts
|
|
6988
|
+
function externalExecutionOf(metadata) {
|
|
6989
|
+
if (typeof metadata !== "object" || metadata === null)
|
|
6990
|
+
return;
|
|
6991
|
+
const record = metadata;
|
|
6992
|
+
const executionType = record.executionType;
|
|
6993
|
+
if (typeof executionType !== "string" || executionType === "") {
|
|
6994
|
+
return;
|
|
6995
|
+
}
|
|
6996
|
+
if (executionType !== "async" && executionType !== "hybrid") {
|
|
6997
|
+
return { executionType };
|
|
6998
|
+
}
|
|
6999
|
+
const events = record.metadata?.events;
|
|
7000
|
+
const eventMode = Array.isArray(events?.eventMode) ? String(events.eventMode[0] ?? "") : undefined;
|
|
7001
|
+
const source = eventMode === "webhooks" ? events?.webhook : eventMode === "polling" ? events?.polling : undefined;
|
|
7002
|
+
const eventTypes = source?.eventTypes;
|
|
7003
|
+
return {
|
|
7004
|
+
executionType,
|
|
7005
|
+
...eventMode && { eventMode },
|
|
7006
|
+
...eventTypes?.[0]?.operation && {
|
|
7007
|
+
eventType: eventTypes[0].operation
|
|
7008
|
+
}
|
|
7009
|
+
};
|
|
7010
|
+
}
|
|
7011
|
+
function externalExecutionWarning(external, target) {
|
|
7012
|
+
const { executionType, eventType } = external;
|
|
7013
|
+
if (executionType === "sync" || eventType)
|
|
7014
|
+
return;
|
|
7015
|
+
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.`;
|
|
7016
|
+
}
|
|
6880
7017
|
// ../integrationservice-sdk/src/dap/input-metadata.ts
|
|
6881
7018
|
function findMultipartBodyField(params) {
|
|
6882
7019
|
return params.find((param) => param.dataType === "string")?.name;
|
|
6883
7020
|
}
|
|
6884
|
-
function
|
|
7021
|
+
function extractMultipartParameters2(params) {
|
|
6885
7022
|
return params.filter((p) => p.type === "multipart").map((p) => ({ name: p.name, dataType: p.dataType }));
|
|
6886
7023
|
}
|
|
6887
|
-
function
|
|
7024
|
+
function inlineMultipartFileValues2(multipartParams, bodyParameters) {
|
|
6888
7025
|
if (!bodyParameters || multipartParams.length === 0) {
|
|
6889
7026
|
return { multipartParams, bodyParameters };
|
|
6890
7027
|
}
|
|
@@ -6907,7 +7044,7 @@ var DEFAULT_MAX_PAGE_SIZE = 1000;
|
|
|
6907
7044
|
function isListOperation(operation) {
|
|
6908
7045
|
return typeof operation === "string" && operation.toLowerCase() === "list";
|
|
6909
7046
|
}
|
|
6910
|
-
function
|
|
7047
|
+
function buildInputMetadata2(multipartParams, operation, maxPageSize, expressionResolutionFields) {
|
|
6911
7048
|
const metadata = {};
|
|
6912
7049
|
let hasContent = false;
|
|
6913
7050
|
if (multipartParams.length > 0) {
|
|
@@ -6930,6 +7067,32 @@ function buildInputMetadata(multipartParams, operation, maxPageSize, expressionR
|
|
|
6930
7067
|
}
|
|
6931
7068
|
return hasContent ? metadata : undefined;
|
|
6932
7069
|
}
|
|
7070
|
+
// ../integrationservice-sdk/src/dap/bindings-v2.ts
|
|
7071
|
+
var JSON_STRING_PREFIX = "=jsonString:";
|
|
7072
|
+
var guardJsonString = (json) => `${JSON_STRING_PREFIX}${json}`;
|
|
7073
|
+
var stripJsonStringGuard = (value) => value.startsWith(JSON_STRING_PREFIX) ? value.slice(JSON_STRING_PREFIX.length) : value;
|
|
7074
|
+
function upsertResourceBinding(bindings, row, mintId) {
|
|
7075
|
+
const existing = bindings.find((binding) => binding.resource === row.resource && binding.resourceKey === row.resourceKey && binding.propertyAttribute === row.propertyAttribute);
|
|
7076
|
+
if (existing) {
|
|
7077
|
+
if (typeof existing.id !== "string" || existing.id === "") {
|
|
7078
|
+
existing.id = mintId();
|
|
7079
|
+
}
|
|
7080
|
+
existing.name = row.name;
|
|
7081
|
+
existing.default = row.default;
|
|
7082
|
+
return { binding: existing, created: false };
|
|
7083
|
+
}
|
|
7084
|
+
const binding = {
|
|
7085
|
+
id: mintId(),
|
|
7086
|
+
name: row.name,
|
|
7087
|
+
type: "string",
|
|
7088
|
+
resource: row.resource,
|
|
7089
|
+
resourceKey: row.resourceKey,
|
|
7090
|
+
...row.default ? { default: row.default } : {},
|
|
7091
|
+
propertyAttribute: row.propertyAttribute
|
|
7092
|
+
};
|
|
7093
|
+
return { binding, created: true };
|
|
7094
|
+
}
|
|
7095
|
+
|
|
6933
7096
|
// ../integrationservice-sdk/src/dap/validation/rules.ts
|
|
6934
7097
|
var counter = 0;
|
|
6935
7098
|
function uid() {
|
|
@@ -7001,12 +7164,12 @@ function validateMethodMatchesOperation(context) {
|
|
|
7001
7164
|
return [];
|
|
7002
7165
|
if (!VALID_HTTP_METHODS.has(context.httpMethod.toUpperCase()))
|
|
7003
7166
|
return [];
|
|
7004
|
-
const jsonStr =
|
|
7167
|
+
const jsonStr = stripJsonStringGuard(context.configuration);
|
|
7005
7168
|
let operation;
|
|
7006
7169
|
try {
|
|
7007
7170
|
const parsed = JSON.parse(jsonStr);
|
|
7008
7171
|
const instanceParameters = parsed?.essentialConfiguration?.instanceParameters;
|
|
7009
|
-
if (
|
|
7172
|
+
if (isV4ActivityConfiguration2(instanceParameters)) {
|
|
7010
7173
|
return [];
|
|
7011
7174
|
}
|
|
7012
7175
|
operation = instanceParameters?.operation;
|
|
@@ -7075,7 +7238,7 @@ function validateConfiguration(context) {
|
|
|
7075
7238
|
issue(context, "configuration", "Error", 'Configuration is missing or empty. Expected `=jsonString:` prefix wrapping a JSON string with shape `{"essentialConfiguration": {"objectName": "...", "connectionId": "...", ...}}`. Re-run `uip maestro flow nodes configure` to populate this field correctly.')
|
|
7076
7239
|
];
|
|
7077
7240
|
}
|
|
7078
|
-
const jsonStr =
|
|
7241
|
+
const jsonStr = stripJsonStringGuard(context.configuration);
|
|
7079
7242
|
try {
|
|
7080
7243
|
const parsed = JSON.parse(jsonStr);
|
|
7081
7244
|
if (!parsed.essentialConfiguration) {
|
|
@@ -7262,7 +7425,7 @@ function extractFields(metadata, method, requestOnly) {
|
|
|
7262
7425
|
return compact;
|
|
7263
7426
|
});
|
|
7264
7427
|
}
|
|
7265
|
-
function
|
|
7428
|
+
function isConnectorNode2(node) {
|
|
7266
7429
|
const nodeType = node.nodeType;
|
|
7267
7430
|
return nodeType?.startsWith("uipath.connector") || false;
|
|
7268
7431
|
}
|
|
@@ -7349,10 +7512,10 @@ function getConnectorConfiguration(node) {
|
|
|
7349
7512
|
const configStr = getConfigurationString(node);
|
|
7350
7513
|
if (!configStr)
|
|
7351
7514
|
return null;
|
|
7352
|
-
const [err, parsed] =
|
|
7515
|
+
const [err, parsed] = catchError2(() => JSON.parse(configStr));
|
|
7353
7516
|
return err ? null : parsed;
|
|
7354
7517
|
}
|
|
7355
|
-
function
|
|
7518
|
+
function getConnectorInfo2(node) {
|
|
7356
7519
|
const context = parseContext(node);
|
|
7357
7520
|
const config = getConnectorConfiguration(node);
|
|
7358
7521
|
if (!context && !config)
|
|
@@ -7368,7 +7531,22 @@ function getConnectorInfo(node) {
|
|
|
7368
7531
|
activityType: config?.activityType ?? ""
|
|
7369
7532
|
};
|
|
7370
7533
|
}
|
|
7371
|
-
|
|
7534
|
+
|
|
7535
|
+
class ConnectionConnectorMismatchError2 extends Error {
|
|
7536
|
+
instructions;
|
|
7537
|
+
constructor(message, instructions) {
|
|
7538
|
+
super(message);
|
|
7539
|
+
this.instructions = instructions;
|
|
7540
|
+
this.name = "ConnectionConnectorMismatchError";
|
|
7541
|
+
}
|
|
7542
|
+
}
|
|
7543
|
+
function assertConnectionConnector2(connectionId, info, connectorKey, subject) {
|
|
7544
|
+
if (!info.connectorKey || !connectorKey || info.connectorKey.toLowerCase() === connectorKey.toLowerCase()) {
|
|
7545
|
+
return;
|
|
7546
|
+
}
|
|
7547
|
+
throw new ConnectionConnectorMismatchError2(`Connection "${connectionId}" is a ${info.connectorKey} connection, but ${subject} runs on ${connectorKey}.`, `Pass a ${connectorKey} connection: 'uip is connections list ${connectorKey} --all-folders'.`);
|
|
7548
|
+
}
|
|
7549
|
+
async function fetchConnectionInfo2(connectionId) {
|
|
7372
7550
|
const api = await createApiClient(ConnectionsApi);
|
|
7373
7551
|
const response = await api.apiV1ConnectionsConnectionIdGet({
|
|
7374
7552
|
connectionId
|
|
@@ -7386,16 +7564,16 @@ async function fetchConnectionInfo(connectionId) {
|
|
|
7386
7564
|
folderKey: response.folder?.key ?? null
|
|
7387
7565
|
};
|
|
7388
7566
|
}
|
|
7389
|
-
async function
|
|
7567
|
+
async function fetchConnectorMetadata2(connectorKey, objectName, connectionId) {
|
|
7390
7568
|
const api = await createApiClient(ElementsApi);
|
|
7391
7569
|
if (connectionId) {
|
|
7392
|
-
const
|
|
7570
|
+
const response = await api.getInstanceObjectMetadataRaw({
|
|
7393
7571
|
connectionOrInstanceId: connectionId,
|
|
7394
7572
|
elementKey: connectorKey,
|
|
7395
7573
|
objectName,
|
|
7396
7574
|
includeParentArray: true
|
|
7397
7575
|
});
|
|
7398
|
-
return await
|
|
7576
|
+
return await response.raw.json();
|
|
7399
7577
|
}
|
|
7400
7578
|
const response = await api.getObjectMetadataRaw({
|
|
7401
7579
|
elementKey: connectorKey,
|
|
@@ -7404,7 +7582,7 @@ async function fetchConnectorMetadata(connectorKey, objectName, connectionId) {
|
|
|
7404
7582
|
});
|
|
7405
7583
|
return await response.raw.json();
|
|
7406
7584
|
}
|
|
7407
|
-
async function
|
|
7585
|
+
async function fetchConnectorActivityMetadataV42(connectorKey, objectName) {
|
|
7408
7586
|
return await getConnectorActivityMetadataV4(undefined, connectorKey, objectName);
|
|
7409
7587
|
}
|
|
7410
7588
|
function buildEnrichedActivityNode(node, metadata, method) {
|
|
@@ -7425,13 +7603,13 @@ function buildEnrichedActivityNode(node, metadata, method) {
|
|
|
7425
7603
|
async function enrichConnectorActivityNode(node, connectionId) {
|
|
7426
7604
|
const parsed = parseContext(node);
|
|
7427
7605
|
const config = getConnectorConfiguration(node);
|
|
7428
|
-
if (
|
|
7606
|
+
if (isV4ActivityConfiguration2(config)) {
|
|
7429
7607
|
return enrichV4ConnectorActivityNode(node, connectionId, config);
|
|
7430
7608
|
}
|
|
7431
7609
|
if (!parsed)
|
|
7432
7610
|
return node;
|
|
7433
7611
|
const { connectorKey, objectName, method } = parsed;
|
|
7434
|
-
const [error, metadata] = await
|
|
7612
|
+
const [error, metadata] = await catchError2(fetchConnectorMetadata2(connectorKey, objectName, connectionId));
|
|
7435
7613
|
if (error) {
|
|
7436
7614
|
return node;
|
|
7437
7615
|
}
|
|
@@ -7448,7 +7626,7 @@ async function enrichV4ConnectorActivityNode(node, connectionId, config) {
|
|
|
7448
7626
|
if (connectionId) {
|
|
7449
7627
|
logger.warn("v4 metadata endpoints are not connection-scoped — --connection-id is ignored for 4.0.0 enrichment.");
|
|
7450
7628
|
}
|
|
7451
|
-
const [error, metadata] = await
|
|
7629
|
+
const [error, metadata] = await catchError2(fetchConnectorActivityMetadataV42(connectorKey, objectName));
|
|
7452
7630
|
if (error) {
|
|
7453
7631
|
logger.warn(`IS v4 enrichment failed: ${error.message}`);
|
|
7454
7632
|
return node;
|
|
@@ -7456,7 +7634,7 @@ async function enrichV4ConnectorActivityNode(node, connectionId, config) {
|
|
|
7456
7634
|
return buildEnrichedActivityNode(node, metadata, method);
|
|
7457
7635
|
}
|
|
7458
7636
|
async function enrichConnectorNode(node, connectionId) {
|
|
7459
|
-
if (!
|
|
7637
|
+
if (!isConnectorNode2(node))
|
|
7460
7638
|
return node;
|
|
7461
7639
|
return isConnectorTriggerNode(node) ? enrichConnectorTriggerNode(node, connectionId) : enrichConnectorActivityNode(node, connectionId);
|
|
7462
7640
|
}
|
|
@@ -7475,7 +7653,7 @@ async function enrichConnectorTriggerNode(node, connectionId) {
|
|
|
7475
7653
|
let byoaConnection = false;
|
|
7476
7654
|
let elementInstanceId = null;
|
|
7477
7655
|
if (connectionId) {
|
|
7478
|
-
const [connErr, connInfo] = await
|
|
7656
|
+
const [connErr, connInfo] = await catchError2(fetchConnectionInfo2(connectionId));
|
|
7479
7657
|
if (!connErr) {
|
|
7480
7658
|
byoaConnection = connInfo.byoaConnection;
|
|
7481
7659
|
elementInstanceId = connInfo.elementInstanceId;
|
|
@@ -7505,10 +7683,10 @@ async function readIndex() {
|
|
|
7505
7683
|
if (!dir)
|
|
7506
7684
|
return null;
|
|
7507
7685
|
const indexPath = fs.path.join(dir, "index.json");
|
|
7508
|
-
const [readError, content] = await
|
|
7686
|
+
const [readError, content] = await catchError2(fs.readFile(indexPath, "utf-8"));
|
|
7509
7687
|
if (readError || content === null)
|
|
7510
7688
|
return null;
|
|
7511
|
-
const [parseError, parsed] =
|
|
7689
|
+
const [parseError, parsed] = catchError2(() => JSON.parse(content));
|
|
7512
7690
|
if (parseError || !parsed || !Array.isArray(parsed.entries))
|
|
7513
7691
|
return null;
|
|
7514
7692
|
return parsed.entries;
|
|
@@ -7523,10 +7701,10 @@ async function getPrecacheNode(nodeType, options) {
|
|
|
7523
7701
|
if (!dir)
|
|
7524
7702
|
return null;
|
|
7525
7703
|
const indexPath = fs.path.join(dir, "index.json");
|
|
7526
|
-
const [indexReadError, indexContent] = await
|
|
7704
|
+
const [indexReadError, indexContent] = await catchError2(fs.readFile(indexPath, "utf-8"));
|
|
7527
7705
|
if (indexReadError || indexContent === null)
|
|
7528
7706
|
return null;
|
|
7529
|
-
const [indexParseError, parsed] =
|
|
7707
|
+
const [indexParseError, parsed] = catchError2(() => JSON.parse(indexContent));
|
|
7530
7708
|
if (indexParseError || !parsed || !Array.isArray(parsed.entries))
|
|
7531
7709
|
return null;
|
|
7532
7710
|
const lowerNodeType = nodeType.toLowerCase();
|
|
@@ -7539,17 +7717,17 @@ async function getPrecacheNode(nodeType, options) {
|
|
|
7539
7717
|
return null;
|
|
7540
7718
|
const entry = matches[0];
|
|
7541
7719
|
const v1defPath = fs.path.join(dir, entry.path.replace(/\.json$/, ".v1def.json"));
|
|
7542
|
-
const [readError, content] = await
|
|
7720
|
+
const [readError, content] = await catchError2(fs.readFile(v1defPath, "utf-8"));
|
|
7543
7721
|
if (readError || content === null)
|
|
7544
7722
|
return null;
|
|
7545
|
-
const [parseError, manifest] =
|
|
7723
|
+
const [parseError, manifest] = catchError2(() => JSON.parse(content));
|
|
7546
7724
|
if (parseError || !manifest)
|
|
7547
7725
|
return null;
|
|
7548
7726
|
return manifest;
|
|
7549
7727
|
}
|
|
7550
7728
|
|
|
7551
7729
|
// ../maestro-sdk/src/registry/node-storage.ts
|
|
7552
|
-
var CACHE_FORMAT_VERSION =
|
|
7730
|
+
var CACHE_FORMAT_VERSION = 7;
|
|
7553
7731
|
var INDEX_FILE = "index.json";
|
|
7554
7732
|
var METADATA_FILE = "index.meta.json";
|
|
7555
7733
|
var SEARCH_INDEX_FILE = "search-index.json";
|
|
@@ -7565,7 +7743,7 @@ function nodeCacheScope(login) {
|
|
|
7565
7743
|
}
|
|
7566
7744
|
async function resolveNodeStorageDir() {
|
|
7567
7745
|
const fs = getFileSystem();
|
|
7568
|
-
return fs.path.join(fs.env.homedir(),
|
|
7746
|
+
return fs.path.join(fs.env.homedir(), UIPATH_HOME_DIR2, "nodes");
|
|
7569
7747
|
}
|
|
7570
7748
|
function buildSearchIndex(nodes) {
|
|
7571
7749
|
return nodes.map((node) => ({
|
|
@@ -7631,54 +7809,55 @@ async function writeNodeArtifacts(fs, dir, nodes, scope, missingSources) {
|
|
|
7631
7809
|
await writeTempAndRename(fs, metaPath, metadataContent);
|
|
7632
7810
|
return nodes.length;
|
|
7633
7811
|
}
|
|
7634
|
-
async function
|
|
7635
|
-
const fs = getFileSystem();
|
|
7636
|
-
const dir = await resolveNodeStorageDir();
|
|
7637
|
-
await fs.mkdir(dir);
|
|
7638
|
-
const lockPath = fs.path.join(dir, WRITE_LOCK_FILE);
|
|
7639
|
-
const releaseLock = await fs.acquireLock(lockPath);
|
|
7640
|
-
let result;
|
|
7641
|
-
let writeError;
|
|
7642
|
-
try {
|
|
7643
|
-
result = await writeNodeArtifacts(fs, dir, nodes, scope, missingSources);
|
|
7644
|
-
} catch (error) {
|
|
7645
|
-
writeError = error;
|
|
7646
|
-
}
|
|
7647
|
-
const [releaseError] = await catchError(releaseLock());
|
|
7648
|
-
if (writeError)
|
|
7649
|
-
throw writeError;
|
|
7650
|
-
if (releaseError)
|
|
7651
|
-
throw releaseError;
|
|
7652
|
-
if (result === undefined) {
|
|
7653
|
-
throw new Error("Node index write did not complete.");
|
|
7654
|
-
}
|
|
7655
|
-
return result;
|
|
7656
|
-
}
|
|
7657
|
-
async function commitNodeIndex(nodes, scope, missingSources) {
|
|
7812
|
+
async function commitNodeIndexUnderLock(nodes, scope, missingSources, protectExistingSources = false) {
|
|
7658
7813
|
const fs = getFileSystem();
|
|
7659
7814
|
const dir = await resolveNodeStorageDir();
|
|
7660
7815
|
await fs.mkdir(dir);
|
|
7661
7816
|
const releaseLock = await fs.acquireLock(fs.path.join(dir, WRITE_LOCK_FILE));
|
|
7662
|
-
const [writeError,
|
|
7817
|
+
const [writeError, result] = await catchError2((async () => {
|
|
7663
7818
|
const current = await loadIndexMetadata();
|
|
7819
|
+
const scopedSnapshot = scope !== undefined && current?.scope === scope ? await loadScopedNodeIndex(scope) : null;
|
|
7820
|
+
if (protectExistingSources && scopedSnapshot !== null) {
|
|
7821
|
+
const previouslyMissing = new Set(scopedSnapshot.metadata.missingSources?.map((failure) => failure.source) ?? []);
|
|
7822
|
+
const newlyMissingSources = missingSources?.filter((failure) => !previouslyMissing.has(failure.source)) ?? [];
|
|
7823
|
+
if (newlyMissingSources.length > 0) {
|
|
7824
|
+
return { committed: false, newlyMissingSources };
|
|
7825
|
+
}
|
|
7826
|
+
}
|
|
7664
7827
|
const hash = await hashContent(JSON.stringify(nodes));
|
|
7665
|
-
if (current && current.cacheVersion === CACHE_FORMAT_VERSION && current.hash === hash && current.scope === scope && await areDerivedArtifactsCurrent()) {
|
|
7828
|
+
if (current && current.cacheVersion === CACHE_FORMAT_VERSION && current.hash === hash && current.scope === scope && (scope === undefined || scopedSnapshot !== null) && await areDerivedArtifactsCurrent()) {
|
|
7666
7829
|
const { missingSources: _previous, ...rest } = current;
|
|
7667
7830
|
await writeTempAndRename(fs, fs.path.join(dir, METADATA_FILE), JSON.stringify({
|
|
7668
7831
|
...rest,
|
|
7832
|
+
cacheVersion: CACHE_FORMAT_VERSION,
|
|
7669
7833
|
lastSync: Date.now(),
|
|
7670
7834
|
...missingSources?.length && { missingSources }
|
|
7671
7835
|
}));
|
|
7672
|
-
return
|
|
7836
|
+
return {
|
|
7837
|
+
committed: true,
|
|
7838
|
+
nodeCount: current.nodeCount
|
|
7839
|
+
};
|
|
7673
7840
|
}
|
|
7674
|
-
return
|
|
7841
|
+
return {
|
|
7842
|
+
committed: true,
|
|
7843
|
+
nodeCount: await writeNodeArtifacts(fs, dir, nodes, scope, missingSources)
|
|
7844
|
+
};
|
|
7675
7845
|
})());
|
|
7676
|
-
const [releaseError] = await
|
|
7846
|
+
const [releaseError] = await catchError2(releaseLock());
|
|
7677
7847
|
if (writeError)
|
|
7678
7848
|
throw writeError;
|
|
7679
7849
|
if (releaseError)
|
|
7680
7850
|
throw releaseError;
|
|
7681
|
-
return
|
|
7851
|
+
return result;
|
|
7852
|
+
}
|
|
7853
|
+
async function commitNodeIndex(nodes, scope, missingSources) {
|
|
7854
|
+
const result = await commitNodeIndexUnderLock(nodes, scope, missingSources);
|
|
7855
|
+
if (!result.committed)
|
|
7856
|
+
throw new Error("Unexpected refused node index commit");
|
|
7857
|
+
return result.nodeCount;
|
|
7858
|
+
}
|
|
7859
|
+
async function commitNodeIndexForReader(nodes, scope, missingSources) {
|
|
7860
|
+
return commitNodeIndexUnderLock(nodes, scope, missingSources, true);
|
|
7682
7861
|
}
|
|
7683
7862
|
async function loadScopedNodeIndex(scope) {
|
|
7684
7863
|
const metadata = await loadIndexMetadata();
|
|
@@ -7687,12 +7866,12 @@ async function loadScopedNodeIndex(scope) {
|
|
|
7687
7866
|
}
|
|
7688
7867
|
const fs = getFileSystem();
|
|
7689
7868
|
const indexPath = fs.path.join(await resolveNodeStorageDir(), INDEX_FILE);
|
|
7690
|
-
const [readError, content] = await
|
|
7869
|
+
const [readError, content] = await catchError2(fs.readFile(indexPath, "utf-8"));
|
|
7691
7870
|
if (readError || content === null)
|
|
7692
7871
|
return null;
|
|
7693
7872
|
if (await hashContent(content) !== metadata.hash)
|
|
7694
7873
|
return null;
|
|
7695
|
-
const [parseError, nodes] =
|
|
7874
|
+
const [parseError, nodes] = catchError2(() => JSON.parse(content));
|
|
7696
7875
|
if (parseError || !Array.isArray(nodes))
|
|
7697
7876
|
return null;
|
|
7698
7877
|
return { nodes, metadata };
|
|
@@ -7708,14 +7887,14 @@ async function loadNodeIndex() {
|
|
|
7708
7887
|
if (!metadata || metadata.cacheVersion !== CACHE_FORMAT_VERSION) {
|
|
7709
7888
|
throw new Error("Node index is outdated. Please run 'uip [flow|maestro] registry pull' to sync nodes first.");
|
|
7710
7889
|
}
|
|
7711
|
-
const [error, content] = await
|
|
7890
|
+
const [error, content] = await catchError2(fs.readFile(indexPath, "utf-8"));
|
|
7712
7891
|
if (error) {
|
|
7713
7892
|
throw new Error(`Failed to load node index: ${error.message}`);
|
|
7714
7893
|
}
|
|
7715
7894
|
if (content === null) {
|
|
7716
7895
|
throw new Error("No node index found. Please run 'uip [flow|maestro] registry pull' to sync nodes first.");
|
|
7717
7896
|
}
|
|
7718
|
-
const [parseError, parsed] =
|
|
7897
|
+
const [parseError, parsed] = catchError2(() => JSON.parse(content));
|
|
7719
7898
|
if (parseError) {
|
|
7720
7899
|
throw new Error(`Failed to load node index: ${parseError.message}`);
|
|
7721
7900
|
}
|
|
@@ -7728,11 +7907,11 @@ async function loadIndexMetadata() {
|
|
|
7728
7907
|
if (!await fs.exists(metaPath)) {
|
|
7729
7908
|
return null;
|
|
7730
7909
|
}
|
|
7731
|
-
const [error, content] = await
|
|
7910
|
+
const [error, content] = await catchError2(fs.readFile(metaPath, "utf-8"));
|
|
7732
7911
|
if (error || content === null) {
|
|
7733
7912
|
return null;
|
|
7734
7913
|
}
|
|
7735
|
-
const [parseError, parsed] =
|
|
7914
|
+
const [parseError, parsed] = catchError2(() => JSON.parse(content));
|
|
7736
7915
|
if (parseError || parsed === null) {
|
|
7737
7916
|
return null;
|
|
7738
7917
|
}
|
|
@@ -7744,7 +7923,7 @@ function isDerivedArtifact(value) {
|
|
|
7744
7923
|
const artifact = value;
|
|
7745
7924
|
return typeof artifact.cacheVersion === "number" && typeof artifact.sourceHash === "string" && typeof artifact.generatedAt === "number" && Array.isArray(artifact.nodes);
|
|
7746
7925
|
}
|
|
7747
|
-
async function loadValidDerivedArtifact(fileName) {
|
|
7926
|
+
async function loadValidDerivedArtifact(fileName, scope) {
|
|
7748
7927
|
const fs = getFileSystem();
|
|
7749
7928
|
const dir = await resolveNodeStorageDir();
|
|
7750
7929
|
const indexPath = fs.path.join(dir, INDEX_FILE);
|
|
@@ -7752,28 +7931,34 @@ async function loadValidDerivedArtifact(fileName) {
|
|
|
7752
7931
|
return null;
|
|
7753
7932
|
}
|
|
7754
7933
|
const metadata = await loadIndexMetadata();
|
|
7755
|
-
if (!metadata || metadata.cacheVersion !== CACHE_FORMAT_VERSION || typeof metadata.hash !== "string") {
|
|
7934
|
+
if (!metadata || metadata.cacheVersion !== CACHE_FORMAT_VERSION || typeof metadata.hash !== "string" || scope !== undefined && metadata.scope !== scope) {
|
|
7756
7935
|
return null;
|
|
7757
7936
|
}
|
|
7758
7937
|
const artifactPath = fs.path.join(dir, fileName);
|
|
7759
|
-
const [readError, content] = await
|
|
7938
|
+
const [readError, content] = await catchError2(fs.readFile(artifactPath, "utf-8"));
|
|
7760
7939
|
if (readError || content === null) {
|
|
7761
7940
|
return null;
|
|
7762
7941
|
}
|
|
7763
|
-
const [parseError, parsed] =
|
|
7942
|
+
const [parseError, parsed] = catchError2(() => JSON.parse(content));
|
|
7764
7943
|
if (parseError || !isDerivedArtifact(parsed)) {
|
|
7765
7944
|
return null;
|
|
7766
7945
|
}
|
|
7767
7946
|
if (parsed.cacheVersion !== CACHE_FORMAT_VERSION || parsed.sourceHash !== metadata.hash) {
|
|
7768
7947
|
return null;
|
|
7769
7948
|
}
|
|
7770
|
-
return parsed.nodes;
|
|
7949
|
+
return { nodes: parsed.nodes, metadata };
|
|
7771
7950
|
}
|
|
7772
7951
|
async function loadValidSearchIndex() {
|
|
7773
|
-
return loadValidDerivedArtifact(SEARCH_INDEX_FILE);
|
|
7952
|
+
return (await loadValidDerivedArtifact(SEARCH_INDEX_FILE))?.nodes ?? null;
|
|
7774
7953
|
}
|
|
7775
7954
|
async function loadValidEssentialsIndex() {
|
|
7776
|
-
return loadValidDerivedArtifact(ESSENTIALS_INDEX_FILE);
|
|
7955
|
+
return (await loadValidDerivedArtifact(ESSENTIALS_INDEX_FILE))?.nodes ?? null;
|
|
7956
|
+
}
|
|
7957
|
+
async function loadScopedSearchIndex(scope) {
|
|
7958
|
+
return loadValidDerivedArtifact(SEARCH_INDEX_FILE, scope);
|
|
7959
|
+
}
|
|
7960
|
+
async function loadScopedEssentialsIndex(scope) {
|
|
7961
|
+
return loadValidDerivedArtifact(ESSENTIALS_INDEX_FILE, scope);
|
|
7777
7962
|
}
|
|
7778
7963
|
async function areDerivedArtifactsCurrent() {
|
|
7779
7964
|
const searchIndex = await loadValidSearchIndex();
|
|
@@ -7787,7 +7972,7 @@ async function rederiveNodeIndexArtifacts() {
|
|
|
7787
7972
|
const dir = await resolveNodeStorageDir();
|
|
7788
7973
|
await fs.mkdir(dir);
|
|
7789
7974
|
const releaseLock = await fs.acquireLock(fs.path.join(dir, WRITE_LOCK_FILE));
|
|
7790
|
-
const [rederiveError, count] = await
|
|
7975
|
+
const [rederiveError, count] = await catchError2((async () => {
|
|
7791
7976
|
const nodes = await loadNodeIndex();
|
|
7792
7977
|
const metadata = await loadIndexMetadata();
|
|
7793
7978
|
const hash = await hashContent(JSON.stringify(nodes));
|
|
@@ -7795,7 +7980,7 @@ async function rederiveNodeIndexArtifacts() {
|
|
|
7795
7980
|
const scope = sameNodes ? metadata.scope : undefined;
|
|
7796
7981
|
return writeNodeArtifacts(fs, dir, nodes, scope, sameNodes ? metadata.missingSources : undefined);
|
|
7797
7982
|
})());
|
|
7798
|
-
const [releaseError] = await
|
|
7983
|
+
const [releaseError] = await catchError2(releaseLock());
|
|
7799
7984
|
if (rederiveError)
|
|
7800
7985
|
throw rederiveError;
|
|
7801
7986
|
if (releaseError)
|
|
@@ -7805,21 +7990,62 @@ async function rederiveNodeIndexArtifacts() {
|
|
|
7805
7990
|
|
|
7806
7991
|
// ../maestro-sdk/src/registry/node-sync-service.ts
|
|
7807
7992
|
var MANIFEST_VALIDATION_SOURCE = "manifest validation";
|
|
7808
|
-
var
|
|
7993
|
+
var MANIFEST_VALIDATION_NEXT_STEP2 = "Fix or remove the tenant resource named in the validation error, then run 'registry pull' again.";
|
|
7809
7994
|
var TENANT_MANIFEST_INVALID = "TenantManifestInvalid";
|
|
7810
7995
|
|
|
7811
|
-
class
|
|
7996
|
+
class TenantManifestInvalidError2 extends Error {
|
|
7812
7997
|
code = TENANT_MANIFEST_INVALID;
|
|
7813
7998
|
ootbNodes;
|
|
7814
7999
|
constructor(failures, ootbNodes = []) {
|
|
7815
|
-
super(`The tenant manifest failed validation, so only OOTB nodes are available (${failures.map((f) => `${f.source}: ${f.reason}`).join("; ")}). ${
|
|
8000
|
+
super(`The tenant manifest failed validation, so only OOTB nodes are available (${failures.map((f) => `${f.source}: ${f.reason}`).join("; ")}). ${MANIFEST_VALIDATION_NEXT_STEP2}`);
|
|
7816
8001
|
this.name = "TenantManifestInvalidError";
|
|
7817
8002
|
this.ootbNodes = ootbNodes;
|
|
7818
8003
|
}
|
|
7819
8004
|
}
|
|
7820
|
-
function
|
|
8005
|
+
function isTenantManifestInvalidError2(error) {
|
|
7821
8006
|
return error instanceof Error && error.code === TENANT_MANIFEST_INVALID;
|
|
7822
8007
|
}
|
|
8008
|
+
var TENANT_MANIFEST_UNAVAILABLE = "TenantManifestUnavailable";
|
|
8009
|
+
|
|
8010
|
+
class PartialNodeSourcesError extends Error {
|
|
8011
|
+
errorCode;
|
|
8012
|
+
retry;
|
|
8013
|
+
constructor(failures) {
|
|
8014
|
+
super(`Unavailable node sources: ${failures.map((failure) => `${failure.source}: ${failure.reason}`).join("; ")}`);
|
|
8015
|
+
this.name = "PartialNodeSourcesError";
|
|
8016
|
+
this.errorCode = failures.some((failure) => /(?:\bHTTP\s+|\bfetch failed:\s*)401\b/i.test(failure.reason)) ? "authentication_required" : failures.some((failure) => /(?:\bHTTP\s+|\bfetch failed:\s*)403\b/i.test(failure.reason)) ? "permission_denied" : undefined;
|
|
8017
|
+
this.retry = this.errorCode ? "RetryWillNotFix" : "RetryLater";
|
|
8018
|
+
}
|
|
8019
|
+
}
|
|
8020
|
+
|
|
8021
|
+
class TenantManifestUnavailableError2 extends Error {
|
|
8022
|
+
code = TENANT_MANIFEST_UNAVAILABLE;
|
|
8023
|
+
errorCode;
|
|
8024
|
+
retry;
|
|
8025
|
+
ootbNodes;
|
|
8026
|
+
constructor(cause, ootbNodes = []) {
|
|
8027
|
+
const inferred = classifyThrownError(cause);
|
|
8028
|
+
const nextStep = inferred.errorCode === "authentication_required" ? "Run 'uip login', then run the command again." : inferred.errorCode === "permission_denied" ? "Ask for access to the missing node sources, then run the command again." : "Check your connection and run the command again; if your session expired, run 'uip login' first.";
|
|
8029
|
+
const partialCacheStep = cause instanceof PartialNodeSourcesError ? " If this persists, run 'uip maestro flow registry pull --force' to cache the nodes that are available." : "";
|
|
8030
|
+
super(`Could not refresh this tenant's nodes (${describeFailureReason(cause)}), so only OOTB nodes are available. ${nextStep}${partialCacheStep}`, { cause });
|
|
8031
|
+
this.name = "TenantManifestUnavailableError";
|
|
8032
|
+
this.ootbNodes = ootbNodes;
|
|
8033
|
+
this.errorCode = inferred.errorCode;
|
|
8034
|
+
this.retry = inferred.errorCode === "unknown_error" ? "RetryLater" : inferred.retry;
|
|
8035
|
+
}
|
|
8036
|
+
}
|
|
8037
|
+
function isTenantManifestUnavailableError2(error) {
|
|
8038
|
+
return error instanceof Error && error.code === TENANT_MANIFEST_UNAVAILABLE;
|
|
8039
|
+
}
|
|
8040
|
+
|
|
8041
|
+
class SessionExpiredError extends Error {
|
|
8042
|
+
errorCode = "authentication_required";
|
|
8043
|
+
retry = "RetryWillNotFix";
|
|
8044
|
+
constructor(loginStatus) {
|
|
8045
|
+
super(loginStatus === "Refresh Failed" ? "your session could not be refreshed" : "your session expired");
|
|
8046
|
+
this.name = "SessionExpiredError";
|
|
8047
|
+
}
|
|
8048
|
+
}
|
|
7823
8049
|
var MAX_FAILURE_REASON_LENGTH = 500;
|
|
7824
8050
|
function stringifyReason(reason) {
|
|
7825
8051
|
if (reason instanceof Error)
|
|
@@ -7843,6 +8069,10 @@ function toPullFailures(failures) {
|
|
|
7843
8069
|
}));
|
|
7844
8070
|
}
|
|
7845
8071
|
var CACHE_EXPIRATION = 30 * 60 * 1000;
|
|
8072
|
+
async function readLoginStatus() {
|
|
8073
|
+
const [loginError, loginStatus] = await catchError2(getLoginStatusAsync2());
|
|
8074
|
+
return loginError ? { loginStatus: "Not logged in" } : loginStatus;
|
|
8075
|
+
}
|
|
7846
8076
|
function loginScope(loginStatus) {
|
|
7847
8077
|
if (loginStatus.loginStatus !== "Logged in" || !loginStatus.accessToken) {
|
|
7848
8078
|
return;
|
|
@@ -7855,20 +8085,20 @@ function isFreshFor(meta, scope) {
|
|
|
7855
8085
|
function isMissingIndexError(error) {
|
|
7856
8086
|
return error.message.includes("No node index found") || error.message.includes("Node index is outdated");
|
|
7857
8087
|
}
|
|
7858
|
-
async function
|
|
8088
|
+
async function pullNodes2(options = {}) {
|
|
7859
8089
|
const { force = false } = options;
|
|
7860
|
-
const loginStatus = await
|
|
8090
|
+
const loginStatus = await getLoginStatusAsync2();
|
|
7861
8091
|
if (force) {
|
|
7862
|
-
const
|
|
7863
|
-
const
|
|
8092
|
+
const refreshResult = await refreshNodes(loginStatus);
|
|
8093
|
+
const meta = await loadIndexMetadata();
|
|
7864
8094
|
return {
|
|
7865
|
-
syncedCount:
|
|
8095
|
+
syncedCount: refreshResult.nodeCount || meta?.nodeCount || 0,
|
|
7866
8096
|
fromCache: false,
|
|
7867
|
-
source:
|
|
7868
|
-
cacheWritten:
|
|
7869
|
-
info:
|
|
7870
|
-
failures:
|
|
7871
|
-
missingSources:
|
|
8097
|
+
source: refreshResult.source,
|
|
8098
|
+
cacheWritten: refreshResult.cacheWritten,
|
|
8099
|
+
info: refreshResult.info,
|
|
8100
|
+
failures: refreshResult.failures,
|
|
8101
|
+
missingSources: refreshResult.missingSources
|
|
7872
8102
|
};
|
|
7873
8103
|
}
|
|
7874
8104
|
const meta = await loadIndexMetadata();
|
|
@@ -7879,7 +8109,7 @@ async function pullNodes(options = {}) {
|
|
|
7879
8109
|
if (isFreshFor(meta, scope)) {
|
|
7880
8110
|
let syncedCount = meta.nodeCount;
|
|
7881
8111
|
if (!await areDerivedArtifactsCurrent()) {
|
|
7882
|
-
const [rederiveError, nodeCount] = await
|
|
8112
|
+
const [rederiveError, nodeCount] = await catchError2(rederiveNodeIndexArtifacts());
|
|
7883
8113
|
if (rederiveError) {
|
|
7884
8114
|
if (!isMissingIndexError(rederiveError)) {
|
|
7885
8115
|
throw rederiveError;
|
|
@@ -7913,7 +8143,7 @@ async function pullNodes(options = {}) {
|
|
|
7913
8143
|
};
|
|
7914
8144
|
}
|
|
7915
8145
|
async function refreshNodes(loginStatus) {
|
|
7916
|
-
const pullResult = await
|
|
8146
|
+
const pullResult = await pullRemoteNodes2(loginStatus);
|
|
7917
8147
|
if (!pullResult.cacheable) {
|
|
7918
8148
|
return {
|
|
7919
8149
|
cacheWritten: false,
|
|
@@ -7932,30 +8162,37 @@ async function refreshNodes(loginStatus) {
|
|
|
7932
8162
|
};
|
|
7933
8163
|
}
|
|
7934
8164
|
var ENABLED_MANIFEST_FLAGS = new Set([
|
|
7935
|
-
MANIFEST_FEATURE_FLAGS.CONNECTOR_NODES,
|
|
7936
8165
|
MANIFEST_FEATURE_FLAGS.EXTRACT_DOCUMENT,
|
|
7937
|
-
MANIFEST_FEATURE_FLAGS.HITL,
|
|
7938
|
-
MANIFEST_FEATURE_FLAGS.LOOP_CONTAINER,
|
|
7939
|
-
MANIFEST_FEATURE_FLAGS.BATCH_TRANSFORM,
|
|
7940
|
-
MANIFEST_FEATURE_FLAGS.SUMMARIZE,
|
|
7941
8166
|
MANIFEST_FEATURE_FLAGS.CONVERSATION_TRIGGER,
|
|
7942
8167
|
MANIFEST_FEATURE_FLAGS.CONVERSATIONAL_WAIT_FOR_MESSAGE,
|
|
7943
8168
|
MANIFEST_FEATURE_FLAGS.CONVERSATIONAL_SEND_MESSAGE,
|
|
7944
8169
|
MANIFEST_FEATURE_FLAGS.CONVERSATIONAL_GET_CONVERSATION_CONTEXT,
|
|
7945
|
-
MANIFEST_FEATURE_FLAGS.CONVERSATIONAL_VOICE_INCOMING_CALL_TRIGGER,
|
|
7946
|
-
MANIFEST_FEATURE_FLAGS.CONVERSATIONAL_VOICE_CREATE_OUTGOING_CALL,
|
|
7947
|
-
MANIFEST_FEATURE_FLAGS.CONVERSATIONAL_VOICE_END_CALL,
|
|
7948
8170
|
MANIFEST_FEATURE_FLAGS.READ_ENTITY,
|
|
7949
8171
|
MANIFEST_FEATURE_FLAGS.CREATE_ENTITY,
|
|
7950
8172
|
MANIFEST_FEATURE_FLAGS.UPDATE_ENTITY,
|
|
7951
|
-
MANIFEST_FEATURE_FLAGS.DELETE_ENTITY
|
|
8173
|
+
MANIFEST_FEATURE_FLAGS.DELETE_ENTITY,
|
|
8174
|
+
MANIFEST_FEATURE_FLAGS.READ_FILE,
|
|
8175
|
+
MANIFEST_FEATURE_FLAGS.CREATE_FILE
|
|
7952
8176
|
]);
|
|
7953
|
-
async function
|
|
7954
|
-
loginStatus ??= await
|
|
8177
|
+
async function pullRemoteNodes2(loginStatus) {
|
|
8178
|
+
loginStatus ??= await getLoginStatusAsync2();
|
|
7955
8179
|
const client = new ManifestClient({
|
|
7956
8180
|
baseUrl: loginStatus.baseUrl || "localhost",
|
|
7957
8181
|
getFeatureFlag: (flag) => ENABLED_MANIFEST_FLAGS.has(flag)
|
|
7958
8182
|
});
|
|
8183
|
+
if (loginStatus.loginStatus === "Expired" || loginStatus.loginStatus === "Refresh Failed") {
|
|
8184
|
+
const sessionError = new SessionExpiredError(loginStatus.loginStatus);
|
|
8185
|
+
const manifest = await client.getManifest({
|
|
8186
|
+
inlineAgentNodes: true
|
|
8187
|
+
});
|
|
8188
|
+
return {
|
|
8189
|
+
nodes: manifest.nodes || [],
|
|
8190
|
+
source: "ootb",
|
|
8191
|
+
cacheable: false,
|
|
8192
|
+
info: `Using OOTB nodes because ${sessionError.message}. Run 'uip login' to get this tenant's nodes. Cache was not updated.`,
|
|
8193
|
+
refreshError: sessionError
|
|
8194
|
+
};
|
|
8195
|
+
}
|
|
7959
8196
|
if (loginStatus.loginStatus !== "Logged in" || !loginStatus.baseUrl || !loginStatus.accessToken || !loginStatus.tenantId || !loginStatus.organizationId) {
|
|
7960
8197
|
const manifest = await client.getManifest({
|
|
7961
8198
|
inlineAgentNodes: true
|
|
@@ -7972,7 +8209,7 @@ async function pullRemoteNodes(loginStatus) {
|
|
|
7972
8209
|
tenantId: loginStatus.tenantId,
|
|
7973
8210
|
organizationId: loginStatus.organizationId
|
|
7974
8211
|
};
|
|
7975
|
-
const [manifestError, diagnostics] = await
|
|
8212
|
+
const [manifestError, diagnostics] = await catchError2(client.getManifestWithDiagnostics({
|
|
7976
8213
|
auth: authContext,
|
|
7977
8214
|
includeIntegrationTriggers: true,
|
|
7978
8215
|
inlineAgentNodes: true,
|
|
@@ -8015,62 +8252,87 @@ async function pullRemoteNodes(loginStatus) {
|
|
|
8015
8252
|
nodes: fallbackManifest.nodes || [],
|
|
8016
8253
|
source: "ootb",
|
|
8017
8254
|
cacheable: false,
|
|
8018
|
-
info: `Failed to refresh authenticated nodes with error: ${manifestError}. Using OOTB nodes without updating cache
|
|
8255
|
+
info: `Failed to refresh authenticated nodes with error: ${manifestError}. Using OOTB nodes without updating cache.`,
|
|
8256
|
+
refreshError: manifestError
|
|
8019
8257
|
};
|
|
8020
8258
|
}
|
|
8021
8259
|
async function getNodesWithCacheFallback() {
|
|
8022
|
-
const
|
|
8023
|
-
if (
|
|
8024
|
-
|
|
8025
|
-
|
|
8026
|
-
|
|
8027
|
-
|
|
8028
|
-
if (pullResult.failures?.length) {
|
|
8029
|
-
throw new TenantManifestInvalidError(pullResult.failures, pullResult.nodes);
|
|
8030
|
-
}
|
|
8031
|
-
if (pullResult.cacheable) {
|
|
8032
|
-
await saveNodeIndex(pullResult.nodes, pullResult.scope, pullResult.missingSources);
|
|
8033
|
-
}
|
|
8034
|
-
return pullResult.nodes;
|
|
8260
|
+
const { nodes, failures, refreshError } = await loadCurrentTenantNodes2();
|
|
8261
|
+
if (failures?.length) {
|
|
8262
|
+
throw new TenantManifestInvalidError2(failures, nodes);
|
|
8263
|
+
}
|
|
8264
|
+
if (refreshError) {
|
|
8265
|
+
throw new TenantManifestUnavailableError2(refreshError, nodes);
|
|
8035
8266
|
}
|
|
8036
8267
|
return nodes;
|
|
8037
8268
|
}
|
|
8038
|
-
async function
|
|
8039
|
-
const
|
|
8040
|
-
|
|
8269
|
+
async function loadFreshDerivedIndex(load) {
|
|
8270
|
+
const scope = loginScope(await readLoginStatus());
|
|
8271
|
+
if (scope === undefined)
|
|
8272
|
+
return null;
|
|
8273
|
+
const [, cached] = await catchError2(load(scope));
|
|
8274
|
+
return cached && isFreshFor(cached.metadata, scope) ? cached.nodes : null;
|
|
8275
|
+
}
|
|
8276
|
+
async function loadCurrentTenantNodes2(options = {}) {
|
|
8277
|
+
const loginStatus = await readLoginStatus();
|
|
8041
8278
|
const scope = loginScope(loginStatus);
|
|
8042
|
-
if (
|
|
8043
|
-
const [,
|
|
8044
|
-
if (
|
|
8045
|
-
return { nodes:
|
|
8279
|
+
if (scope !== undefined) {
|
|
8280
|
+
const [, scoped] = await catchError2(loadScopedNodeIndex(scope));
|
|
8281
|
+
if (!options.force && scoped && isFreshFor(scoped.metadata, scope)) {
|
|
8282
|
+
return { nodes: scoped.nodes, fromCache: true, source: "cache" };
|
|
8046
8283
|
}
|
|
8047
8284
|
}
|
|
8048
|
-
const pullResult = await
|
|
8285
|
+
const pullResult = await pullRemoteNodes2(loginStatus);
|
|
8049
8286
|
if (pullResult.cacheable) {
|
|
8050
|
-
await
|
|
8287
|
+
const [commitError, commit] = await catchError2(commitNodeIndexForReader(pullResult.nodes, pullResult.scope, pullResult.missingSources));
|
|
8288
|
+
const unavailableSources = commit && !commit.committed ? commit.newlyMissingSources : commitError ? pullResult.missingSources : undefined;
|
|
8289
|
+
if (unavailableSources?.length) {
|
|
8290
|
+
if (commit && !commit.committed && scope !== undefined) {
|
|
8291
|
+
const [, latest] = await catchError2(loadScopedNodeIndex(scope));
|
|
8292
|
+
if (latest && isFreshFor(latest.metadata, scope) && !latest.metadata.missingSources?.length) {
|
|
8293
|
+
return {
|
|
8294
|
+
nodes: latest.nodes,
|
|
8295
|
+
fromCache: true,
|
|
8296
|
+
source: "cache"
|
|
8297
|
+
};
|
|
8298
|
+
}
|
|
8299
|
+
}
|
|
8300
|
+
const fallback = await pullRemoteNodes2({
|
|
8301
|
+
loginStatus: "Not logged in"
|
|
8302
|
+
});
|
|
8303
|
+
const refreshError = new PartialNodeSourcesError(unavailableSources);
|
|
8304
|
+
return {
|
|
8305
|
+
nodes: fallback.nodes,
|
|
8306
|
+
fromCache: false,
|
|
8307
|
+
source: "ootb",
|
|
8308
|
+
refreshError
|
|
8309
|
+
};
|
|
8310
|
+
}
|
|
8051
8311
|
}
|
|
8052
8312
|
return {
|
|
8053
8313
|
nodes: pullResult.nodes,
|
|
8054
8314
|
fromCache: false,
|
|
8055
8315
|
source: pullResult.source,
|
|
8056
|
-
info: pullResult.info
|
|
8316
|
+
info: pullResult.info,
|
|
8317
|
+
failures: pullResult.failures,
|
|
8318
|
+
refreshError: pullResult.refreshError
|
|
8057
8319
|
};
|
|
8058
8320
|
}
|
|
8059
|
-
async function
|
|
8060
|
-
const ctx = await
|
|
8321
|
+
async function getLocalSolutionSnapshot2() {
|
|
8322
|
+
const ctx = await findSolutionFromCwd2();
|
|
8061
8323
|
if (!ctx) {
|
|
8062
8324
|
throw new Error("No .uipx solution file found in current directory, its parent, or its grandparent. " + "Run this command from inside a solution project directory.");
|
|
8063
8325
|
}
|
|
8064
|
-
return
|
|
8326
|
+
return buildInSolutionNodes2(ctx);
|
|
8065
8327
|
}
|
|
8066
8328
|
async function getLocalSolutionNodes() {
|
|
8067
|
-
return (await
|
|
8329
|
+
return (await getLocalSolutionSnapshot2()).manifests;
|
|
8068
8330
|
}
|
|
8069
|
-
function
|
|
8331
|
+
function localContractWarning2(snapshot, shown) {
|
|
8070
8332
|
const types = new Set(shown.map((n) => n.nodeType).filter((t) => typeof t === "string").map((t) => t.toLowerCase()));
|
|
8071
|
-
return
|
|
8333
|
+
return unknownContractWarning2(snapshot.unknownContracts.filter((p) => p.nodeTypes.some((t) => types.has(t.toLowerCase()))));
|
|
8072
8334
|
}
|
|
8073
|
-
function
|
|
8335
|
+
function filterNodesByKeyword2(nodes, keyword) {
|
|
8074
8336
|
const lowerKeyword = keyword.toLowerCase();
|
|
8075
8337
|
return nodes.filter((node) => {
|
|
8076
8338
|
if (node.nodeType?.toLowerCase().includes(lowerKeyword)) {
|
|
@@ -8094,11 +8356,11 @@ function filterNodesByKeyword(nodes, keyword) {
|
|
|
8094
8356
|
return false;
|
|
8095
8357
|
});
|
|
8096
8358
|
}
|
|
8097
|
-
function
|
|
8359
|
+
function findNodeByType2(nodes, nodeType) {
|
|
8098
8360
|
const lowerNodeType = nodeType.toLowerCase();
|
|
8099
8361
|
return nodes.find((node) => node.nodeType?.toLowerCase() === lowerNodeType) ?? null;
|
|
8100
8362
|
}
|
|
8101
|
-
async function
|
|
8363
|
+
async function listNodes2(options) {
|
|
8102
8364
|
if (options?.local)
|
|
8103
8365
|
return getLocalSolutionNodes();
|
|
8104
8366
|
const precacheEntries = await listPrecacheEntries();
|
|
@@ -8143,7 +8405,7 @@ function unionWithKnownSdkNodes(tenantNodes) {
|
|
|
8143
8405
|
}
|
|
8144
8406
|
result.push(node);
|
|
8145
8407
|
}
|
|
8146
|
-
for (const known of
|
|
8408
|
+
for (const known of listKnownSdkNodes2()) {
|
|
8147
8409
|
const type = typeof known.nodeType === "string" ? known.nodeType.toLowerCase() : null;
|
|
8148
8410
|
if (type === null || seen.has(type))
|
|
8149
8411
|
continue;
|
|
@@ -8153,34 +8415,16 @@ function unionWithKnownSdkNodes(tenantNodes) {
|
|
|
8153
8415
|
return result;
|
|
8154
8416
|
}
|
|
8155
8417
|
async function loadSearchSummariesWithCacheFallback() {
|
|
8156
|
-
|
|
8157
|
-
if (validSearchIndex)
|
|
8158
|
-
return validSearchIndex;
|
|
8159
|
-
const [repairError] = await catchError(rederiveNodeIndexArtifacts());
|
|
8160
|
-
if (!repairError) {
|
|
8161
|
-
const repairedSearchIndex = await loadValidSearchIndex();
|
|
8162
|
-
if (repairedSearchIndex)
|
|
8163
|
-
return repairedSearchIndex;
|
|
8164
|
-
}
|
|
8165
|
-
return buildSearchIndex(await getNodesWithCacheFallback());
|
|
8166
|
-
}
|
|
8167
|
-
async function loadEssentialsIndexWithRepair() {
|
|
8168
|
-
const validEssentialsIndex = await loadValidEssentialsIndex();
|
|
8169
|
-
if (validEssentialsIndex)
|
|
8170
|
-
return validEssentialsIndex;
|
|
8171
|
-
const [repairError] = await catchError(rederiveNodeIndexArtifacts());
|
|
8172
|
-
if (repairError)
|
|
8173
|
-
return null;
|
|
8174
|
-
return loadValidEssentialsIndex();
|
|
8418
|
+
return await loadFreshDerivedIndex(loadScopedSearchIndex) ?? buildSearchIndex(await getNodesWithCacheFallback());
|
|
8175
8419
|
}
|
|
8176
|
-
async function
|
|
8420
|
+
async function searchNodeSummariesWithAvailability2(keyword, filters) {
|
|
8177
8421
|
const tenantNodes = await loadSearchSummariesWithCacheFallback();
|
|
8178
8422
|
const tenantTypes = new Set(tenantNodes.map((node) => node.nodeType?.toLowerCase()).filter((type) => typeof type === "string"));
|
|
8179
8423
|
const merged = tenantNodes.map((node) => ({
|
|
8180
8424
|
node,
|
|
8181
8425
|
availableOnTenant: true
|
|
8182
8426
|
}));
|
|
8183
|
-
for (const knownNode of
|
|
8427
|
+
for (const knownNode of listKnownSdkNodes2()) {
|
|
8184
8428
|
const type = knownNode.nodeType?.toLowerCase();
|
|
8185
8429
|
if (typeof type !== "string" || tenantTypes.has(type))
|
|
8186
8430
|
continue;
|
|
@@ -8194,12 +8438,12 @@ async function searchNodeSummariesWithAvailability(keyword, filters) {
|
|
|
8194
8438
|
entry.node.nodeType.toLowerCase(),
|
|
8195
8439
|
entry.availableOnTenant
|
|
8196
8440
|
] : null).filter((entry) => entry !== null));
|
|
8197
|
-
return
|
|
8441
|
+
return searchWithFilters2(merged.map((entry) => entry.node), keyword, filters).map((node) => ({
|
|
8198
8442
|
node,
|
|
8199
8443
|
availableOnTenant: typeof node.nodeType === "string" ? availabilityByType.get(node.nodeType.toLowerCase()) ?? true : true
|
|
8200
8444
|
}));
|
|
8201
8445
|
}
|
|
8202
|
-
async function
|
|
8446
|
+
async function searchNodes2(keyword, options) {
|
|
8203
8447
|
let nodes;
|
|
8204
8448
|
if (options?.local) {
|
|
8205
8449
|
nodes = await getLocalSolutionNodes();
|
|
@@ -8207,9 +8451,9 @@ async function searchNodes(keyword, options) {
|
|
|
8207
8451
|
const tenantNodes = await getNodesWithCacheFallback();
|
|
8208
8452
|
nodes = unionWithKnownSdkNodes(tenantNodes);
|
|
8209
8453
|
}
|
|
8210
|
-
return
|
|
8454
|
+
return filterNodesByKeyword2(nodes, keyword);
|
|
8211
8455
|
}
|
|
8212
|
-
async function
|
|
8456
|
+
async function getNode2(nodeType, options) {
|
|
8213
8457
|
const lowerNodeType = nodeType.toLowerCase();
|
|
8214
8458
|
if (!options?.local && lowerNodeType.startsWith("uipath.connector.")) {
|
|
8215
8459
|
const precached = await getPrecacheNode(nodeType);
|
|
@@ -8217,43 +8461,43 @@ async function getNode(nodeType, options) {
|
|
|
8217
8461
|
return precached;
|
|
8218
8462
|
}
|
|
8219
8463
|
if (!options?.local && isEssentialNodeType(nodeType)) {
|
|
8220
|
-
const essentials = await
|
|
8221
|
-
const node = essentials?.find((
|
|
8464
|
+
const essentials = await loadFreshDerivedIndex(loadScopedEssentialsIndex);
|
|
8465
|
+
const node = essentials?.find((node) => node.nodeType?.toLowerCase() === lowerNodeType) ?? null;
|
|
8222
8466
|
if (node)
|
|
8223
8467
|
return node;
|
|
8224
8468
|
}
|
|
8225
8469
|
if (options?.local) {
|
|
8226
|
-
return
|
|
8470
|
+
return findNodeByType2(await getLocalSolutionNodes(), nodeType);
|
|
8227
8471
|
}
|
|
8228
|
-
const [error, nodes] = await
|
|
8472
|
+
const [error, nodes] = await catchError2(getNodesWithCacheFallback());
|
|
8229
8473
|
if (error) {
|
|
8230
|
-
if (error instanceof
|
|
8231
|
-
const ootbNode =
|
|
8474
|
+
if (error instanceof TenantManifestInvalidError2 || error instanceof TenantManifestUnavailableError2) {
|
|
8475
|
+
const ootbNode = findNodeByType2(error.ootbNodes, nodeType);
|
|
8232
8476
|
if (ootbNode)
|
|
8233
8477
|
return ootbNode;
|
|
8234
8478
|
}
|
|
8235
8479
|
throw error;
|
|
8236
8480
|
}
|
|
8237
|
-
return
|
|
8481
|
+
return findNodeByType2(nodes, nodeType);
|
|
8238
8482
|
}
|
|
8239
|
-
async function
|
|
8240
|
-
const node = await
|
|
8483
|
+
async function getNodeEnriched2(nodeType, connectionId, options) {
|
|
8484
|
+
const node = await getNode2(nodeType, options);
|
|
8241
8485
|
if (!node) {
|
|
8242
8486
|
return null;
|
|
8243
8487
|
}
|
|
8244
8488
|
return await enrichConnectorNode(node, connectionId);
|
|
8245
8489
|
}
|
|
8246
|
-
async function
|
|
8247
|
-
const snapshot = await
|
|
8248
|
-
const node =
|
|
8490
|
+
async function getLocalNodeEnriched2(nodeType, connectionId) {
|
|
8491
|
+
const snapshot = await getLocalSolutionSnapshot2();
|
|
8492
|
+
const node = findNodeByType2(snapshot.manifests, nodeType);
|
|
8249
8493
|
if (!node)
|
|
8250
8494
|
return { node: null };
|
|
8251
8495
|
return {
|
|
8252
8496
|
node: await enrichConnectorNode(node, connectionId),
|
|
8253
|
-
warning:
|
|
8497
|
+
warning: localContractWarning2(snapshot, [node])
|
|
8254
8498
|
};
|
|
8255
8499
|
}
|
|
8256
|
-
async function
|
|
8500
|
+
async function searchNodesWithFilters2(keyword, filters, options) {
|
|
8257
8501
|
let nodes;
|
|
8258
8502
|
if (options?.local) {
|
|
8259
8503
|
nodes = await getLocalSolutionNodes();
|
|
@@ -8261,9 +8505,9 @@ async function searchNodesWithFilters(keyword, filters, options) {
|
|
|
8261
8505
|
const tenantNodes = await getNodesWithCacheFallback();
|
|
8262
8506
|
nodes = unionWithKnownSdkNodes(tenantNodes);
|
|
8263
8507
|
}
|
|
8264
|
-
return
|
|
8508
|
+
return searchWithFilters2(nodes, keyword, filters);
|
|
8265
8509
|
}
|
|
8266
8510
|
|
|
8267
|
-
export {
|
|
8511
|
+
export { storedActivityBindings, planResourceBindings, guardJsonString, stripJsonStringGuard, upsertResourceBinding, externalExecutionOf, externalExecutionWarning, MANAGED_HTTP_CONNECTOR_KEY2, MANAGED_HTTP_ENDPOINT, IMPLICIT_CONNECTION, managedHttpDetailErrors, buildManagedHttpBodyParameters, MANAGED_HTTP_TELEMETRY, ACTIVITY_VERSION_V42, isV4ActivityConfiguration2, FilterNotSupportedError, substituteFilterVariables, buildActivityEssentialConfiguration2, configureActivityClient, applySavedFilterTree2, assertActivityMetadataResolved2, buildManagedHttpEssentialConfiguration2, extractMultipartParameters2, inlineMultipartFileValues2, isListOperation, buildInputMetadata2, normalizeHttpMethod, validateIntSvcNode, isConnectorNode2, getConnectorInfo2, ConnectionConnectorMismatchError2, assertConnectionConnector2, fetchConnectionInfo2, fetchConnectorMetadata2, fetchConnectorActivityMetadataV42, MANIFEST_VALIDATION_NEXT_STEP2, TenantManifestInvalidError2, isTenantManifestInvalidError2, TenantManifestUnavailableError2, isTenantManifestUnavailableError2, pullNodes2, pullRemoteNodes2, loadCurrentTenantNodes2, getLocalSolutionSnapshot2, localContractWarning2, filterNodesByKeyword2, findNodeByType2, listNodes2, searchNodeSummariesWithAvailability2, searchNodes2, getNode2, getNodeEnriched2, getLocalNodeEnriched2, searchNodesWithFilters2 };
|
|
8268
8512
|
|
|
8269
|
-
//# debugId=
|
|
8513
|
+
//# debugId=7D41A254E4F48E4464756E2164756E21
|