@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,48 +1,42 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
3
|
-
} from "./packager-tool-
|
|
4
|
-
import {
|
|
5
|
-
JsonSerializerFactory,
|
|
6
|
-
JsonSerializerNames,
|
|
7
|
-
JsonSerializerProxy,
|
|
8
|
-
StreamSerializer
|
|
9
|
-
} from "./packager-tool-gdtpsdn7.js";
|
|
2
|
+
getFileSystem
|
|
3
|
+
} from "./packager-tool-vgrswa8p.js";
|
|
10
4
|
import {
|
|
11
|
-
|
|
12
|
-
} from "./packager-tool-
|
|
5
|
+
catchError2
|
|
6
|
+
} from "./packager-tool-pxq0bwp0.js";
|
|
13
7
|
import {
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
8
|
+
extractErrorMessage,
|
|
9
|
+
logger,
|
|
10
|
+
isGuid
|
|
11
|
+
} from "./packager-tool-8ed52y5r.js";
|
|
12
|
+
import"./packager-tool-ze3fnf3s.js";
|
|
17
13
|
import {
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
14
|
+
JsonSerializerNames2,
|
|
15
|
+
JsonSerializerFactory2,
|
|
16
|
+
JsonSerializerProxy2,
|
|
17
|
+
StreamSerializer2,
|
|
18
|
+
FirstPartyServiceApi2
|
|
19
|
+
} from "./packager-tool-mm1x18d6.js";
|
|
20
|
+
import"./packager-tool-1qg04b7q.js";
|
|
23
21
|
import {
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
toPortableRelativePath
|
|
27
|
-
} from "./packager-tool-8g5931fz.js";
|
|
28
|
-
import"./packager-tool-pacrqxv2.js";
|
|
29
|
-
import"./packager-tool-nkrmjr3a.js";
|
|
22
|
+
getLoginStatusAsync2
|
|
23
|
+
} from "./packager-tool-p123mtfx.js";
|
|
30
24
|
import {
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
} from "./packager-tool-apawc11t.js";
|
|
25
|
+
UsersApi2,
|
|
26
|
+
createApiClient2
|
|
27
|
+
} from "./packager-tool-21t17xzz.js";
|
|
35
28
|
import {
|
|
36
|
-
|
|
37
|
-
} from "./packager-tool-
|
|
29
|
+
getSolutionAuthContext2
|
|
30
|
+
} from "./packager-tool-7mxn3e7j.js";
|
|
38
31
|
import {
|
|
39
|
-
|
|
40
|
-
|
|
32
|
+
normalizeProjectType,
|
|
33
|
+
toPortableRelativePath,
|
|
34
|
+
findSolutionFileUpward
|
|
35
|
+
} from "./packager-tool-em4ppegs.js";
|
|
41
36
|
import {
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
} from "./packager-tool-1yh8g550.js";
|
|
37
|
+
__toESM,
|
|
38
|
+
__commonJS
|
|
39
|
+
} from "./packager-tool-6an893wm.js";
|
|
46
40
|
|
|
47
41
|
// ../../node_modules/reflect-metadata/Reflect.js
|
|
48
42
|
var require_Reflect = __commonJS(function() {
|
|
@@ -61,16 +55,16 @@ var require_Reflect = __commonJS(function() {
|
|
|
61
55
|
and limitations under the License.
|
|
62
56
|
***************************************************************************** */
|
|
63
57
|
var Reflect2;
|
|
64
|
-
(function(
|
|
58
|
+
(function(Reflect2) {
|
|
65
59
|
(function(factory) {
|
|
66
60
|
var root = typeof globalThis === "object" ? globalThis : typeof global === "object" ? global : typeof self === "object" ? self : typeof this === "object" ? this : sloppyModeThis();
|
|
67
|
-
var exporter = makeExporter(
|
|
61
|
+
var exporter = makeExporter(Reflect2);
|
|
68
62
|
if (typeof root.Reflect !== "undefined") {
|
|
69
63
|
exporter = makeExporter(root.Reflect, exporter);
|
|
70
64
|
}
|
|
71
65
|
factory(exporter, root);
|
|
72
66
|
if (typeof root.Reflect === "undefined") {
|
|
73
|
-
root.Reflect =
|
|
67
|
+
root.Reflect = Reflect2;
|
|
74
68
|
}
|
|
75
69
|
function makeExporter(target, previous) {
|
|
76
70
|
return function(key, value) {
|
|
@@ -254,8 +248,8 @@ var require_Reflect = __commonJS(function() {
|
|
|
254
248
|
return descriptor;
|
|
255
249
|
}
|
|
256
250
|
function OrdinaryHasMetadata(MetadataKey, O, P) {
|
|
257
|
-
var
|
|
258
|
-
if (
|
|
251
|
+
var hasOwn = OrdinaryHasOwnMetadata(MetadataKey, O, P);
|
|
252
|
+
if (hasOwn)
|
|
259
253
|
return true;
|
|
260
254
|
var parent = OrdinaryGetPrototypeOf(O);
|
|
261
255
|
if (!IsNull(parent))
|
|
@@ -269,8 +263,8 @@ var require_Reflect = __commonJS(function() {
|
|
|
269
263
|
return ToBoolean(provider.OrdinaryHasOwnMetadata(MetadataKey, O, P));
|
|
270
264
|
}
|
|
271
265
|
function OrdinaryGetMetadata(MetadataKey, O, P) {
|
|
272
|
-
var
|
|
273
|
-
if (
|
|
266
|
+
var hasOwn = OrdinaryHasOwnMetadata(MetadataKey, O, P);
|
|
267
|
+
if (hasOwn)
|
|
274
268
|
return OrdinaryGetOwnMetadata(MetadataKey, O, P);
|
|
275
269
|
var parent = OrdinaryGetPrototypeOf(O);
|
|
276
270
|
if (!IsNull(parent))
|
|
@@ -602,48 +596,48 @@ var require_Reflect = __commonJS(function() {
|
|
|
602
596
|
}
|
|
603
597
|
}
|
|
604
598
|
function GetOrCreateMetadataRegistry() {
|
|
605
|
-
var
|
|
599
|
+
var metadataRegistry;
|
|
606
600
|
if (!IsUndefined(registrySymbol) && IsObject(root.Reflect) && Object.isExtensible(root.Reflect)) {
|
|
607
|
-
|
|
601
|
+
metadataRegistry = root.Reflect[registrySymbol];
|
|
608
602
|
}
|
|
609
|
-
if (IsUndefined(
|
|
610
|
-
|
|
603
|
+
if (IsUndefined(metadataRegistry)) {
|
|
604
|
+
metadataRegistry = CreateMetadataRegistry();
|
|
611
605
|
}
|
|
612
606
|
if (!IsUndefined(registrySymbol) && IsObject(root.Reflect) && Object.isExtensible(root.Reflect)) {
|
|
613
607
|
Object.defineProperty(root.Reflect, registrySymbol, {
|
|
614
608
|
enumerable: false,
|
|
615
609
|
configurable: false,
|
|
616
610
|
writable: false,
|
|
617
|
-
value:
|
|
611
|
+
value: metadataRegistry
|
|
618
612
|
});
|
|
619
613
|
}
|
|
620
|
-
return
|
|
614
|
+
return metadataRegistry;
|
|
621
615
|
}
|
|
622
616
|
function CreateMetadataProvider(registry) {
|
|
623
|
-
var
|
|
617
|
+
var metadata = new _WeakMap;
|
|
624
618
|
var provider = {
|
|
625
619
|
isProviderFor: function(O, P) {
|
|
626
|
-
var targetMetadata =
|
|
620
|
+
var targetMetadata = metadata.get(O);
|
|
627
621
|
if (IsUndefined(targetMetadata))
|
|
628
622
|
return false;
|
|
629
623
|
return targetMetadata.has(P);
|
|
630
624
|
},
|
|
631
|
-
OrdinaryDefineOwnMetadata
|
|
632
|
-
OrdinaryHasOwnMetadata
|
|
633
|
-
OrdinaryGetOwnMetadata
|
|
634
|
-
OrdinaryOwnMetadataKeys
|
|
625
|
+
OrdinaryDefineOwnMetadata,
|
|
626
|
+
OrdinaryHasOwnMetadata,
|
|
627
|
+
OrdinaryGetOwnMetadata,
|
|
628
|
+
OrdinaryOwnMetadataKeys,
|
|
635
629
|
OrdinaryDeleteMetadata
|
|
636
630
|
};
|
|
637
631
|
metadataRegistry.registerProvider(provider);
|
|
638
632
|
return provider;
|
|
639
633
|
function GetOrCreateMetadataMap(O, P, Create) {
|
|
640
|
-
var targetMetadata =
|
|
634
|
+
var targetMetadata = metadata.get(O);
|
|
641
635
|
var createdTargetMetadata = false;
|
|
642
636
|
if (IsUndefined(targetMetadata)) {
|
|
643
637
|
if (!Create)
|
|
644
638
|
return;
|
|
645
639
|
targetMetadata = new _Map;
|
|
646
|
-
|
|
640
|
+
metadata.set(O, targetMetadata);
|
|
647
641
|
createdTargetMetadata = true;
|
|
648
642
|
}
|
|
649
643
|
var metadataMap = targetMetadata.get(P);
|
|
@@ -655,30 +649,30 @@ var require_Reflect = __commonJS(function() {
|
|
|
655
649
|
if (!registry.setProvider(O, P, provider)) {
|
|
656
650
|
targetMetadata.delete(P);
|
|
657
651
|
if (createdTargetMetadata) {
|
|
658
|
-
|
|
652
|
+
metadata.delete(O);
|
|
659
653
|
}
|
|
660
654
|
throw new Error("Wrong provider for target.");
|
|
661
655
|
}
|
|
662
656
|
}
|
|
663
657
|
return metadataMap;
|
|
664
658
|
}
|
|
665
|
-
function
|
|
659
|
+
function OrdinaryHasOwnMetadata(MetadataKey, O, P) {
|
|
666
660
|
var metadataMap = GetOrCreateMetadataMap(O, P, false);
|
|
667
661
|
if (IsUndefined(metadataMap))
|
|
668
662
|
return false;
|
|
669
663
|
return ToBoolean(metadataMap.has(MetadataKey));
|
|
670
664
|
}
|
|
671
|
-
function
|
|
665
|
+
function OrdinaryGetOwnMetadata(MetadataKey, O, P) {
|
|
672
666
|
var metadataMap = GetOrCreateMetadataMap(O, P, false);
|
|
673
667
|
if (IsUndefined(metadataMap))
|
|
674
668
|
return;
|
|
675
669
|
return metadataMap.get(MetadataKey);
|
|
676
670
|
}
|
|
677
|
-
function
|
|
671
|
+
function OrdinaryDefineOwnMetadata(MetadataKey, MetadataValue, O, P) {
|
|
678
672
|
var metadataMap = GetOrCreateMetadataMap(O, P, true);
|
|
679
673
|
metadataMap.set(MetadataKey, MetadataValue);
|
|
680
674
|
}
|
|
681
|
-
function
|
|
675
|
+
function OrdinaryOwnMetadataKeys(O, P) {
|
|
682
676
|
var keys = [];
|
|
683
677
|
var metadataMap = GetOrCreateMetadataMap(O, P, false);
|
|
684
678
|
if (IsUndefined(metadataMap))
|
|
@@ -712,11 +706,11 @@ var require_Reflect = __commonJS(function() {
|
|
|
712
706
|
if (!metadataMap.delete(MetadataKey))
|
|
713
707
|
return false;
|
|
714
708
|
if (metadataMap.size === 0) {
|
|
715
|
-
var targetMetadata =
|
|
709
|
+
var targetMetadata = metadata.get(O);
|
|
716
710
|
if (!IsUndefined(targetMetadata)) {
|
|
717
711
|
targetMetadata.delete(P);
|
|
718
712
|
if (targetMetadata.size === 0) {
|
|
719
|
-
|
|
713
|
+
metadata.delete(targetMetadata);
|
|
720
714
|
}
|
|
721
715
|
}
|
|
722
716
|
}
|
|
@@ -724,7 +718,7 @@ var require_Reflect = __commonJS(function() {
|
|
|
724
718
|
}
|
|
725
719
|
}
|
|
726
720
|
function CreateFallbackProvider(reflect) {
|
|
727
|
-
var { defineMetadata
|
|
721
|
+
var { defineMetadata, hasOwnMetadata, getOwnMetadata, getOwnMetadataKeys, deleteMetadata } = reflect;
|
|
728
722
|
var metadataOwner = new _WeakMap;
|
|
729
723
|
var provider = {
|
|
730
724
|
isProviderFor: function(O, P) {
|
|
@@ -732,7 +726,7 @@ var require_Reflect = __commonJS(function() {
|
|
|
732
726
|
if (!IsUndefined(metadataPropertySet) && metadataPropertySet.has(P)) {
|
|
733
727
|
return true;
|
|
734
728
|
}
|
|
735
|
-
if (
|
|
729
|
+
if (getOwnMetadataKeys(O, P).length) {
|
|
736
730
|
if (IsUndefined(metadataPropertySet)) {
|
|
737
731
|
metadataPropertySet = new _Set;
|
|
738
732
|
metadataOwner.set(O, metadataPropertySet);
|
|
@@ -742,11 +736,11 @@ var require_Reflect = __commonJS(function() {
|
|
|
742
736
|
}
|
|
743
737
|
return false;
|
|
744
738
|
},
|
|
745
|
-
OrdinaryDefineOwnMetadata:
|
|
746
|
-
OrdinaryHasOwnMetadata:
|
|
747
|
-
OrdinaryGetOwnMetadata:
|
|
748
|
-
OrdinaryOwnMetadataKeys:
|
|
749
|
-
OrdinaryDeleteMetadata:
|
|
739
|
+
OrdinaryDefineOwnMetadata: defineMetadata,
|
|
740
|
+
OrdinaryHasOwnMetadata: hasOwnMetadata,
|
|
741
|
+
OrdinaryGetOwnMetadata: getOwnMetadata,
|
|
742
|
+
OrdinaryOwnMetadataKeys: getOwnMetadataKeys,
|
|
743
|
+
OrdinaryDeleteMetadata: deleteMetadata
|
|
750
744
|
};
|
|
751
745
|
return provider;
|
|
752
746
|
}
|
|
@@ -767,19 +761,19 @@ var require_Reflect = __commonJS(function() {
|
|
|
767
761
|
var cacheSentinel = {};
|
|
768
762
|
var arraySentinel = [];
|
|
769
763
|
var MapIterator = function() {
|
|
770
|
-
function
|
|
764
|
+
function MapIterator(keys, values, selector) {
|
|
771
765
|
this._index = 0;
|
|
772
766
|
this._keys = keys;
|
|
773
767
|
this._values = values;
|
|
774
768
|
this._selector = selector;
|
|
775
769
|
}
|
|
776
|
-
|
|
770
|
+
MapIterator.prototype["@@iterator"] = function() {
|
|
777
771
|
return this;
|
|
778
772
|
};
|
|
779
|
-
|
|
773
|
+
MapIterator.prototype[iteratorSymbol] = function() {
|
|
780
774
|
return this;
|
|
781
775
|
};
|
|
782
|
-
|
|
776
|
+
MapIterator.prototype.next = function() {
|
|
783
777
|
var index = this._index;
|
|
784
778
|
if (index >= 0 && index < this._keys.length) {
|
|
785
779
|
var result = this._selector(this._keys[index], this._values[index]);
|
|
@@ -794,7 +788,7 @@ var require_Reflect = __commonJS(function() {
|
|
|
794
788
|
}
|
|
795
789
|
return { value: undefined, done: true };
|
|
796
790
|
};
|
|
797
|
-
|
|
791
|
+
MapIterator.prototype.throw = function(error) {
|
|
798
792
|
if (this._index >= 0) {
|
|
799
793
|
this._index = -1;
|
|
800
794
|
this._keys = arraySentinel;
|
|
@@ -802,7 +796,7 @@ var require_Reflect = __commonJS(function() {
|
|
|
802
796
|
}
|
|
803
797
|
throw error;
|
|
804
798
|
};
|
|
805
|
-
|
|
799
|
+
MapIterator.prototype.return = function(value) {
|
|
806
800
|
if (this._index >= 0) {
|
|
807
801
|
this._index = -1;
|
|
808
802
|
this._keys = arraySentinel;
|
|
@@ -810,35 +804,35 @@ var require_Reflect = __commonJS(function() {
|
|
|
810
804
|
}
|
|
811
805
|
return { value, done: true };
|
|
812
806
|
};
|
|
813
|
-
return
|
|
807
|
+
return MapIterator;
|
|
814
808
|
}();
|
|
815
809
|
var Map2 = function() {
|
|
816
|
-
function
|
|
810
|
+
function Map2() {
|
|
817
811
|
this._keys = [];
|
|
818
812
|
this._values = [];
|
|
819
813
|
this._cacheKey = cacheSentinel;
|
|
820
814
|
this._cacheIndex = -2;
|
|
821
815
|
}
|
|
822
|
-
Object.defineProperty(
|
|
816
|
+
Object.defineProperty(Map2.prototype, "size", {
|
|
823
817
|
get: function() {
|
|
824
818
|
return this._keys.length;
|
|
825
819
|
},
|
|
826
820
|
enumerable: true,
|
|
827
821
|
configurable: true
|
|
828
822
|
});
|
|
829
|
-
|
|
823
|
+
Map2.prototype.has = function(key) {
|
|
830
824
|
return this._find(key, false) >= 0;
|
|
831
825
|
};
|
|
832
|
-
|
|
826
|
+
Map2.prototype.get = function(key) {
|
|
833
827
|
var index = this._find(key, false);
|
|
834
828
|
return index >= 0 ? this._values[index] : undefined;
|
|
835
829
|
};
|
|
836
|
-
|
|
830
|
+
Map2.prototype.set = function(key, value) {
|
|
837
831
|
var index = this._find(key, true);
|
|
838
832
|
this._values[index] = value;
|
|
839
833
|
return this;
|
|
840
834
|
};
|
|
841
|
-
|
|
835
|
+
Map2.prototype.delete = function(key) {
|
|
842
836
|
var index = this._find(key, false);
|
|
843
837
|
if (index >= 0) {
|
|
844
838
|
var size = this._keys.length;
|
|
@@ -856,28 +850,28 @@ var require_Reflect = __commonJS(function() {
|
|
|
856
850
|
}
|
|
857
851
|
return false;
|
|
858
852
|
};
|
|
859
|
-
|
|
853
|
+
Map2.prototype.clear = function() {
|
|
860
854
|
this._keys.length = 0;
|
|
861
855
|
this._values.length = 0;
|
|
862
856
|
this._cacheKey = cacheSentinel;
|
|
863
857
|
this._cacheIndex = -2;
|
|
864
858
|
};
|
|
865
|
-
|
|
859
|
+
Map2.prototype.keys = function() {
|
|
866
860
|
return new MapIterator(this._keys, this._values, getKey);
|
|
867
861
|
};
|
|
868
|
-
|
|
862
|
+
Map2.prototype.values = function() {
|
|
869
863
|
return new MapIterator(this._keys, this._values, getValue);
|
|
870
864
|
};
|
|
871
|
-
|
|
865
|
+
Map2.prototype.entries = function() {
|
|
872
866
|
return new MapIterator(this._keys, this._values, getEntry);
|
|
873
867
|
};
|
|
874
|
-
|
|
868
|
+
Map2.prototype["@@iterator"] = function() {
|
|
875
869
|
return this.entries();
|
|
876
870
|
};
|
|
877
|
-
|
|
871
|
+
Map2.prototype[iteratorSymbol] = function() {
|
|
878
872
|
return this.entries();
|
|
879
873
|
};
|
|
880
|
-
|
|
874
|
+
Map2.prototype._find = function(key, insert) {
|
|
881
875
|
if (!SameValueZero(this._cacheKey, key)) {
|
|
882
876
|
this._cacheIndex = -1;
|
|
883
877
|
for (var i = 0;i < this._keys.length; i++) {
|
|
@@ -894,7 +888,7 @@ var require_Reflect = __commonJS(function() {
|
|
|
894
888
|
}
|
|
895
889
|
return this._cacheIndex;
|
|
896
890
|
};
|
|
897
|
-
return
|
|
891
|
+
return Map2;
|
|
898
892
|
}();
|
|
899
893
|
return Map2;
|
|
900
894
|
function getKey(key, _) {
|
|
@@ -909,44 +903,44 @@ var require_Reflect = __commonJS(function() {
|
|
|
909
903
|
}
|
|
910
904
|
function CreateSetPolyfill() {
|
|
911
905
|
var Set2 = function() {
|
|
912
|
-
function
|
|
906
|
+
function Set2() {
|
|
913
907
|
this._map = new _Map;
|
|
914
908
|
}
|
|
915
|
-
Object.defineProperty(
|
|
909
|
+
Object.defineProperty(Set2.prototype, "size", {
|
|
916
910
|
get: function() {
|
|
917
911
|
return this._map.size;
|
|
918
912
|
},
|
|
919
913
|
enumerable: true,
|
|
920
914
|
configurable: true
|
|
921
915
|
});
|
|
922
|
-
|
|
916
|
+
Set2.prototype.has = function(value) {
|
|
923
917
|
return this._map.has(value);
|
|
924
918
|
};
|
|
925
|
-
|
|
919
|
+
Set2.prototype.add = function(value) {
|
|
926
920
|
return this._map.set(value, value), this;
|
|
927
921
|
};
|
|
928
|
-
|
|
922
|
+
Set2.prototype.delete = function(value) {
|
|
929
923
|
return this._map.delete(value);
|
|
930
924
|
};
|
|
931
|
-
|
|
925
|
+
Set2.prototype.clear = function() {
|
|
932
926
|
this._map.clear();
|
|
933
927
|
};
|
|
934
|
-
|
|
928
|
+
Set2.prototype.keys = function() {
|
|
935
929
|
return this._map.keys();
|
|
936
930
|
};
|
|
937
|
-
|
|
931
|
+
Set2.prototype.values = function() {
|
|
938
932
|
return this._map.keys();
|
|
939
933
|
};
|
|
940
|
-
|
|
934
|
+
Set2.prototype.entries = function() {
|
|
941
935
|
return this._map.entries();
|
|
942
936
|
};
|
|
943
|
-
|
|
937
|
+
Set2.prototype["@@iterator"] = function() {
|
|
944
938
|
return this.keys();
|
|
945
939
|
};
|
|
946
|
-
|
|
940
|
+
Set2.prototype[iteratorSymbol] = function() {
|
|
947
941
|
return this.keys();
|
|
948
942
|
};
|
|
949
|
-
return
|
|
943
|
+
return Set2;
|
|
950
944
|
}();
|
|
951
945
|
return Set2;
|
|
952
946
|
}
|
|
@@ -1385,8 +1379,8 @@ var require_tslib = __commonJS(function(exports, module) {
|
|
|
1385
1379
|
};
|
|
1386
1380
|
}
|
|
1387
1381
|
function settle(resolve, reject, d, v) {
|
|
1388
|
-
Promise.resolve(v).then(function(
|
|
1389
|
-
resolve({ value:
|
|
1382
|
+
Promise.resolve(v).then(function(v) {
|
|
1383
|
+
resolve({ value: v, done: d });
|
|
1390
1384
|
}, reject);
|
|
1391
1385
|
}
|
|
1392
1386
|
};
|
|
@@ -1456,11 +1450,11 @@ var require_tslib = __commonJS(function(exports, module) {
|
|
|
1456
1450
|
var require_lifecycle = __commonJS(function(exports) {
|
|
1457
1451
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1458
1452
|
var Lifecycle;
|
|
1459
|
-
(function(
|
|
1460
|
-
|
|
1461
|
-
|
|
1462
|
-
|
|
1463
|
-
|
|
1453
|
+
(function(Lifecycle) {
|
|
1454
|
+
Lifecycle[Lifecycle["Transient"] = 0] = "Transient";
|
|
1455
|
+
Lifecycle[Lifecycle["Singleton"] = 1] = "Singleton";
|
|
1456
|
+
Lifecycle[Lifecycle["ResolutionScoped"] = 2] = "ResolutionScoped";
|
|
1457
|
+
Lifecycle[Lifecycle["ContainerScoped"] = 3] = "ContainerScoped";
|
|
1464
1458
|
})(Lifecycle || (Lifecycle = {}));
|
|
1465
1459
|
exports.default = Lifecycle;
|
|
1466
1460
|
});
|
|
@@ -1969,9 +1963,9 @@ var require_dependency_container = __commonJS(function(exports) {
|
|
|
1969
1963
|
}
|
|
1970
1964
|
this.executePreResolutionInterceptor(token, "All");
|
|
1971
1965
|
if (registrations) {
|
|
1972
|
-
const
|
|
1973
|
-
this.executePostResolutionInterceptor(token,
|
|
1974
|
-
return
|
|
1966
|
+
const result = registrations.map((item) => this.resolveRegistration(item, context));
|
|
1967
|
+
this.executePostResolutionInterceptor(token, result, "All");
|
|
1968
|
+
return result;
|
|
1975
1969
|
}
|
|
1976
1970
|
const result = [this.construct(token, context)];
|
|
1977
1971
|
this.executePostResolutionInterceptor(token, result, "All");
|
|
@@ -3491,12 +3485,12 @@ function cancellationError(signal) {
|
|
|
3491
3485
|
class MultiFileSolutionDefinitionProvider {
|
|
3492
3486
|
get caseInsensitiveSerializer() {
|
|
3493
3487
|
if (!this._caseInsensitiveSerializer)
|
|
3494
|
-
this._caseInsensitiveSerializer = this.jsonSerializerFactory.getByName(
|
|
3488
|
+
this._caseInsensitiveSerializer = this.jsonSerializerFactory.getByName(JsonSerializerNames2.CaseInsensitive);
|
|
3495
3489
|
return this._caseInsensitiveSerializer;
|
|
3496
3490
|
}
|
|
3497
3491
|
get jsonSerializer() {
|
|
3498
3492
|
if (!this._jsonSerializer)
|
|
3499
|
-
this._jsonSerializer = this.jsonSerializerFactory.getByName(
|
|
3493
|
+
this._jsonSerializer = this.jsonSerializerFactory.getByName(JsonSerializerNames2.CamelCaseIndented);
|
|
3500
3494
|
return this._jsonSerializer;
|
|
3501
3495
|
}
|
|
3502
3496
|
async getFileStorageProviderAsync(context, cancellationToken) {
|
|
@@ -4146,11 +4140,11 @@ class MultiFileSolutionDefinitionFactory {
|
|
|
4146
4140
|
|
|
4147
4141
|
// ../../node_modules/@uipath/resource-builder-sdk/dist/embedded-files-default.js
|
|
4148
4142
|
async function createDefaultEmbeddedFileReaderAsync() {
|
|
4149
|
-
const [{ EmbeddedFileReader }, { JsonSerializerFactory
|
|
4150
|
-
import("./embedded-file-reader-
|
|
4151
|
-
import("./index-
|
|
4143
|
+
const [{ EmbeddedFileReader }, { JsonSerializerFactory }] = await Promise.all([
|
|
4144
|
+
import("./embedded-file-reader-0228j82a.js"),
|
|
4145
|
+
import("./index-z2qk2qn6.js")
|
|
4152
4146
|
]);
|
|
4153
|
-
return new EmbeddedFileReader(new
|
|
4147
|
+
return new EmbeddedFileReader(new JsonSerializerFactory);
|
|
4154
4148
|
}
|
|
4155
4149
|
|
|
4156
4150
|
// ../../node_modules/@uipath/resource-builder-sdk/dist/services/artifact-resource-spec-enhancer.js
|
|
@@ -5915,7 +5909,7 @@ class ValidateSolutionDefinitionRequestHandler {
|
|
|
5915
5909
|
}
|
|
5916
5910
|
jsonContent = new TextDecoder("utf-8").decode(combined);
|
|
5917
5911
|
}
|
|
5918
|
-
const caseInsensitiveSerializer = this.jsonSerializerFactory.getByName(
|
|
5912
|
+
const caseInsensitiveSerializer = this.jsonSerializerFactory.getByName(JsonSerializerNames2.CaseInsensitive);
|
|
5919
5913
|
const solution = caseInsensitiveSerializer.deserialize(jsonContent);
|
|
5920
5914
|
if (solution == null) {
|
|
5921
5915
|
this.logger.warn("Deserialization failed: the solution definition file is not valid");
|
|
@@ -6815,7 +6809,7 @@ class ResourceOverwritesService {
|
|
|
6815
6809
|
this.useGetByKeysOverwriteValidation = useGetByKeysOverwriteValidation;
|
|
6816
6810
|
this._overwritesPath = DebugOverwritesConstants.ResourceOverwritesFileName;
|
|
6817
6811
|
this.logger = loggerFactory.create("ResourceOverwritesService");
|
|
6818
|
-
this.indentedSerializer = jsonSerializerFactory.getByName(
|
|
6812
|
+
this.indentedSerializer = jsonSerializerFactory.getByName(JsonSerializerNames2.CamelCaseIndented);
|
|
6819
6813
|
}
|
|
6820
6814
|
}
|
|
6821
6815
|
var GUID_REGEX = /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/;
|
|
@@ -7557,9 +7551,9 @@ class SolutionDefinitionHelper {
|
|
|
7557
7551
|
noOtherResourceInProjectReferencesDependency(solution, resourceToDelete, dependency) {
|
|
7558
7552
|
return !(solution.resources ?? []).some((r) => r !== resourceToDelete && r.projectKey === resourceToDelete.projectKey && (r.dependencies ?? []).some((dep) => invariantEquals(dep.name.trim(), dependency.name.trim()) && invariantEquals(dep.kind.trim(), dependency.kind.trim())));
|
|
7559
7553
|
}
|
|
7560
|
-
constructor(metadataReader,
|
|
7554
|
+
constructor(metadataReader, logger) {
|
|
7561
7555
|
this.metadataReader = metadataReader;
|
|
7562
|
-
this.logger =
|
|
7556
|
+
this.logger = logger;
|
|
7563
7557
|
}
|
|
7564
7558
|
}
|
|
7565
7559
|
|
|
@@ -7894,9 +7888,9 @@ class AllConfigurationsRequestHandler {
|
|
|
7894
7888
|
await this.collectResourceConfigurations(context, solution, depResource, visited, resources, cancellationToken);
|
|
7895
7889
|
}
|
|
7896
7890
|
}
|
|
7897
|
-
constructor(mediator,
|
|
7891
|
+
constructor(mediator, logger) {
|
|
7898
7892
|
this.mediator = mediator;
|
|
7899
|
-
this.logger =
|
|
7893
|
+
this.logger = logger;
|
|
7900
7894
|
}
|
|
7901
7895
|
}
|
|
7902
7896
|
|
|
@@ -8148,17 +8142,17 @@ class CreateVirtualResourceCommandHandler {
|
|
|
8148
8142
|
this.metadataReader = metadataReader;
|
|
8149
8143
|
}
|
|
8150
8144
|
}
|
|
8151
|
-
async function deleteResourceInternalAsync(context, resourceKey, allowProjectResourceDelete, metadataReader, resourceOverwritesService,
|
|
8145
|
+
async function deleteResourceInternalAsync(context, resourceKey, allowProjectResourceDelete, metadataReader, resourceOverwritesService, logger, cancellationToken) {
|
|
8152
8146
|
const solution = await context.loadAsync(cancellationToken);
|
|
8153
|
-
|
|
8147
|
+
logger.info("Deleting resource from solution", {
|
|
8154
8148
|
resourceKey
|
|
8155
8149
|
});
|
|
8156
8150
|
const resource = solution.resources.find((r) => r.key === resourceKey);
|
|
8157
8151
|
if (!resource)
|
|
8158
|
-
return void
|
|
8152
|
+
return void logger.warn("Resource not found in solution", {
|
|
8159
8153
|
resourceKey
|
|
8160
8154
|
});
|
|
8161
|
-
const helper = new SolutionDefinitionHelper(metadataReader,
|
|
8155
|
+
const helper = new SolutionDefinitionHelper(metadataReader, logger);
|
|
8162
8156
|
await helper.verifyIfResourceCanBeDeletedAsync(solution, resource, allowProjectResourceDelete, cancellationToken);
|
|
8163
8157
|
const resourcesToDelete = helper.getResourcesToDelete(solution, resource);
|
|
8164
8158
|
const allRemovedKeys = new Set(resourcesToDelete.map((r) => r.key));
|
|
@@ -8178,7 +8172,7 @@ async function deleteResourceInternalAsync(context, resourceKey, allowProjectRes
|
|
|
8178
8172
|
...allRemovedKeys
|
|
8179
8173
|
], cancellationToken);
|
|
8180
8174
|
} catch (error) {
|
|
8181
|
-
|
|
8175
|
+
logger.warn("Failed to remove overwrites for deleted resources", error);
|
|
8182
8176
|
}
|
|
8183
8177
|
}
|
|
8184
8178
|
|
|
@@ -9597,7 +9591,7 @@ class ValidateResourceDefinitionRequestHandler {
|
|
|
9597
9591
|
offset += chunk.length;
|
|
9598
9592
|
}
|
|
9599
9593
|
const jsonContent = new TextDecoder("utf-8").decode(combined);
|
|
9600
|
-
const caseInsensitiveSerializer = this.jsonSerializerFactory.getByName(
|
|
9594
|
+
const caseInsensitiveSerializer = this.jsonSerializerFactory.getByName(JsonSerializerNames2.CaseInsensitive);
|
|
9601
9595
|
const solution = caseInsensitiveSerializer.deserialize(jsonContent);
|
|
9602
9596
|
if (solution == null) {
|
|
9603
9597
|
this.logger.warn("Deserialization failed: the solution definition file is not valid");
|
|
@@ -9695,9 +9689,9 @@ class HttpClient {
|
|
|
9695
9689
|
};
|
|
9696
9690
|
this.createAbortSignal = (cancelToken) => {
|
|
9697
9691
|
if (this.abortControllers.has(cancelToken)) {
|
|
9698
|
-
const
|
|
9699
|
-
if (
|
|
9700
|
-
return
|
|
9692
|
+
const abortController = this.abortControllers.get(cancelToken);
|
|
9693
|
+
if (abortController)
|
|
9694
|
+
return abortController.signal;
|
|
9701
9695
|
return;
|
|
9702
9696
|
}
|
|
9703
9697
|
const abortController = new AbortController;
|
|
@@ -9732,11 +9726,11 @@ class HttpClient {
|
|
|
9732
9726
|
r.data = null;
|
|
9733
9727
|
r.error = null;
|
|
9734
9728
|
const responseToParse = responseFormat ? response.clone() : response;
|
|
9735
|
-
const data = responseFormat ? await responseToParse[responseFormat]().then((
|
|
9729
|
+
const data = responseFormat ? await responseToParse[responseFormat]().then((data) => {
|
|
9736
9730
|
if (r.ok)
|
|
9737
|
-
r.data =
|
|
9731
|
+
r.data = data;
|
|
9738
9732
|
else
|
|
9739
|
-
r.error =
|
|
9733
|
+
r.error = data;
|
|
9740
9734
|
return r;
|
|
9741
9735
|
}).catch((e) => {
|
|
9742
9736
|
r.error = e;
|
|
@@ -10650,7 +10644,7 @@ class FirstPartyServiceClientFactory {
|
|
|
10650
10644
|
throw new Error(`Unable to obtain access token for scope: ${FIRST_PARTY_SERVICE_SCOPE}`);
|
|
10651
10645
|
if (!accountKey)
|
|
10652
10646
|
throw new Error("Unable to obtain account key");
|
|
10653
|
-
const client = new
|
|
10647
|
+
const client = new FirstPartyServiceApi2({
|
|
10654
10648
|
baseUrl,
|
|
10655
10649
|
baseApiParams: {
|
|
10656
10650
|
secure: true
|
|
@@ -10746,11 +10740,11 @@ class FirstPartyServiceClientProxy {
|
|
|
10746
10740
|
});
|
|
10747
10741
|
} catch (error) {
|
|
10748
10742
|
if (isAbortError(error)) {
|
|
10749
|
-
const
|
|
10750
|
-
this.logger.error(
|
|
10751
|
-
const
|
|
10752
|
-
|
|
10753
|
-
throw
|
|
10743
|
+
const errorMessage = buildServiceExportErrorMessage(serviceName, resourceArray);
|
|
10744
|
+
this.logger.error(errorMessage, error instanceof Error ? error : new Error(errorMessage));
|
|
10745
|
+
const ex = new BadRequestException(ErrorCodes.ImportCancelled, error instanceof Error ? error.message : errorMessage, error);
|
|
10746
|
+
ex.exceptionData = getExceptionData(error, serviceName, resourceArray);
|
|
10747
|
+
throw ex;
|
|
10754
10748
|
}
|
|
10755
10749
|
if (error instanceof DisconnectedException) {
|
|
10756
10750
|
this.logger.error("Cannot export resources in disconnected mode.", error);
|
|
@@ -10788,7 +10782,7 @@ class FirstPartyServiceClientProxy {
|
|
|
10788
10782
|
const tenantKey = await this.accessProvider.getTenantKeyAsync(cancellationToken);
|
|
10789
10783
|
if (!accountKey)
|
|
10790
10784
|
throw new BadRequestException(ErrorCodes.AuthenticationFailed, "Unable to obtain account key");
|
|
10791
|
-
const client = new (await import("./first-party-service-
|
|
10785
|
+
const client = new (await import("./first-party-service-ahcc6xc6.js")).FirstPartyServiceApi({
|
|
10792
10786
|
baseUrl: fullBaseUrl,
|
|
10793
10787
|
baseApiParams: {
|
|
10794
10788
|
secure: true
|
|
@@ -10957,9 +10951,9 @@ class HttpClient2 {
|
|
|
10957
10951
|
};
|
|
10958
10952
|
this.createAbortSignal = (cancelToken) => {
|
|
10959
10953
|
if (this.abortControllers.has(cancelToken)) {
|
|
10960
|
-
const
|
|
10961
|
-
if (
|
|
10962
|
-
return
|
|
10954
|
+
const abortController = this.abortControllers.get(cancelToken);
|
|
10955
|
+
if (abortController)
|
|
10956
|
+
return abortController.signal;
|
|
10963
10957
|
return;
|
|
10964
10958
|
}
|
|
10965
10959
|
const abortController = new AbortController;
|
|
@@ -10994,11 +10988,11 @@ class HttpClient2 {
|
|
|
10994
10988
|
r.data = null;
|
|
10995
10989
|
r.error = null;
|
|
10996
10990
|
const responseToParse = responseFormat ? response.clone() : response;
|
|
10997
|
-
const data = responseFormat ? await responseToParse[responseFormat]().then((
|
|
10991
|
+
const data = responseFormat ? await responseToParse[responseFormat]().then((data) => {
|
|
10998
10992
|
if (r.ok)
|
|
10999
|
-
r.data =
|
|
10993
|
+
r.data = data;
|
|
11000
10994
|
else
|
|
11001
|
-
r.error =
|
|
10995
|
+
r.error = data;
|
|
11002
10996
|
return r;
|
|
11003
10997
|
}).catch((e) => {
|
|
11004
10998
|
r.error = e;
|
|
@@ -14623,9 +14617,9 @@ class ProjectResourcesDescriptorFactory {
|
|
|
14623
14617
|
// ../../node_modules/@uipath/resource-builder-sdk/dist/config/projects/project-configuration-service.js
|
|
14624
14618
|
class ProjectConfigurationService {
|
|
14625
14619
|
async getDefaultConfigurationAsync(cancellationToken) {
|
|
14626
|
-
const
|
|
14620
|
+
const projectsConfiguration = this.projectConfigurationReader.getAll();
|
|
14627
14621
|
const language = this.getCurrentLanguage();
|
|
14628
|
-
const entries = Object.entries(
|
|
14622
|
+
const entries = Object.entries(projectsConfiguration);
|
|
14629
14623
|
const results = {};
|
|
14630
14624
|
for (const [projectType, config] of entries) {
|
|
14631
14625
|
const supportedResources = await this.projectResourcesDescriptorFactory.createAsync(projectType, language, cancellationToken);
|
|
@@ -14869,18 +14863,18 @@ function registerServices(diContainer, embeddedFileReader) {
|
|
|
14869
14863
|
return new ResourceBuilder(metadataReader, translationsReader, mediator);
|
|
14870
14864
|
}
|
|
14871
14865
|
});
|
|
14872
|
-
diContainer.registerInstance(ServiceTokens.JsonSerializerFactory, new
|
|
14866
|
+
diContainer.registerInstance(ServiceTokens.JsonSerializerFactory, new JsonSerializerFactory2);
|
|
14873
14867
|
diContainer.register(ServiceTokens.SerializerProxy, {
|
|
14874
14868
|
useFactory: (c) => {
|
|
14875
14869
|
const jsonSerializerFactory = c.resolve(ServiceTokens.JsonSerializerFactory);
|
|
14876
14870
|
const loggerFactory = c.resolve(ServiceTokens.LoggerFactory);
|
|
14877
|
-
return new
|
|
14871
|
+
return new JsonSerializerProxy2(jsonSerializerFactory, loggerFactory);
|
|
14878
14872
|
}
|
|
14879
14873
|
});
|
|
14880
14874
|
diContainer.register(ServiceTokens.StreamSerializer, {
|
|
14881
14875
|
useFactory: (c) => {
|
|
14882
14876
|
const jsonSerializerFactory = c.resolve(ServiceTokens.JsonSerializerFactory);
|
|
14883
|
-
return new
|
|
14877
|
+
return new StreamSerializer2(jsonSerializerFactory);
|
|
14884
14878
|
}
|
|
14885
14879
|
});
|
|
14886
14880
|
}
|
|
@@ -14936,8 +14930,8 @@ function registerHandlers(diContainer) {
|
|
|
14936
14930
|
useFactory: (c) => {
|
|
14937
14931
|
const mediator = c.resolve(ServiceTokens.Mediator);
|
|
14938
14932
|
const loggerFactory = c.resolve(ServiceTokens.LoggerFactory);
|
|
14939
|
-
const
|
|
14940
|
-
return new AllConfigurationsRequestHandler(mediator,
|
|
14933
|
+
const logger = loggerFactory.create("AllConfigurationsRequestHandler");
|
|
14934
|
+
return new AllConfigurationsRequestHandler(mediator, logger);
|
|
14941
14935
|
}
|
|
14942
14936
|
});
|
|
14943
14937
|
diContainer.register(createRequestHandlerToken(RetrieveConfigurationRequest.name), {
|
|
@@ -15268,21 +15262,21 @@ class ResourceBuilderServices {
|
|
|
15268
15262
|
const factory = this._container.resolve(Tokens.ISolutionBuilderFactory);
|
|
15269
15263
|
return factory.createAsync(solutionPath, isReadOnly, cancellationToken);
|
|
15270
15264
|
}
|
|
15271
|
-
constructor(
|
|
15272
|
-
this._container =
|
|
15265
|
+
constructor(container) {
|
|
15266
|
+
this._container = container;
|
|
15273
15267
|
}
|
|
15274
15268
|
}
|
|
15275
15269
|
|
|
15276
15270
|
// ../../node_modules/@uipath/resource-builder-sdk/dist/logging/logger.js
|
|
15277
|
-
var logger_LogLevel = /* @__PURE__ */ function(
|
|
15278
|
-
|
|
15279
|
-
|
|
15280
|
-
|
|
15281
|
-
|
|
15282
|
-
|
|
15283
|
-
|
|
15284
|
-
|
|
15285
|
-
return
|
|
15271
|
+
var logger_LogLevel = /* @__PURE__ */ function(LogLevel) {
|
|
15272
|
+
LogLevel[LogLevel["Trace"] = 0] = "Trace";
|
|
15273
|
+
LogLevel[LogLevel["Debug"] = 1] = "Debug";
|
|
15274
|
+
LogLevel[LogLevel["Information"] = 2] = "Information";
|
|
15275
|
+
LogLevel[LogLevel["Warning"] = 3] = "Warning";
|
|
15276
|
+
LogLevel[LogLevel["Error"] = 4] = "Error";
|
|
15277
|
+
LogLevel[LogLevel["Critical"] = 5] = "Critical";
|
|
15278
|
+
LogLevel[LogLevel["None"] = 6] = "None";
|
|
15279
|
+
return LogLevel;
|
|
15286
15280
|
}({});
|
|
15287
15281
|
function parseLogLevel(level) {
|
|
15288
15282
|
if (level === undefined)
|
|
@@ -15522,7 +15516,7 @@ class ResourceBuilderConfiguration {
|
|
|
15522
15516
|
};
|
|
15523
15517
|
} else if (!solutionDefinitionProvider && fileStorageProviderFactory)
|
|
15524
15518
|
solutionDefinitionFactory = {
|
|
15525
|
-
instance: new MultiFileSolutionDefinitionFactory(fileStorageProviderFactory.instance, new
|
|
15519
|
+
instance: new MultiFileSolutionDefinitionFactory(fileStorageProviderFactory.instance, new JsonSerializerFactory2, loggerFactoryInstance, this._solutionContextOptions),
|
|
15526
15520
|
lifetime: service_tokens_ServiceLifetime.Scoped
|
|
15527
15521
|
};
|
|
15528
15522
|
const artifactResourceSpecEnhancerInstance = this._artifactResourceSpecEnhancerProvider ? await this.resolveGenericProvider(this._artifactResourceSpecEnhancerProvider) : new DefaultArtifactResourceSpecEnhancer;
|
|
@@ -15531,8 +15525,8 @@ class ResourceBuilderConfiguration {
|
|
|
15531
15525
|
lifetime: this._artifactResourceSpecEnhancerLifetime
|
|
15532
15526
|
};
|
|
15533
15527
|
const embeddedFileReader = await createDefaultEmbeddedFileReaderAsync();
|
|
15534
|
-
const
|
|
15535
|
-
return new ResourceBuilderServices(
|
|
15528
|
+
const container = createContainer(accessProvider, cacheProvider, secretsProvider, fileStorageProviderFactory, ipRangeBypassSecretProvider, solutionDefinitionProvider, solutionDefinitionFactory, artifactResourceSpecEnhancer, this._httpReaderOptions, loggerFactory, embeddedFileReader, this._solutionContextOptions, featureFlagProvider);
|
|
15529
|
+
return new ResourceBuilderServices(container);
|
|
15536
15530
|
}
|
|
15537
15531
|
async buildServices() {
|
|
15538
15532
|
return this.build();
|
|
@@ -15563,17 +15557,17 @@ async function assertSolutionManifest(dir) {
|
|
|
15563
15557
|
}
|
|
15564
15558
|
}
|
|
15565
15559
|
async function readSolutionManifest(fs, solutionDir) {
|
|
15566
|
-
const [readdirError, entries] = await
|
|
15560
|
+
const [readdirError, entries] = await catchError2(fs.readdir(solutionDir));
|
|
15567
15561
|
if (readdirError || !entries)
|
|
15568
15562
|
return;
|
|
15569
15563
|
const uipx = entries.find((name) => name.endsWith(".uipx"));
|
|
15570
15564
|
if (!uipx)
|
|
15571
15565
|
return;
|
|
15572
15566
|
const uipxPath = fs.path.join(solutionDir, uipx);
|
|
15573
|
-
const [readError, raw] = await
|
|
15567
|
+
const [readError, raw] = await catchError2(fs.readFile(uipxPath, "utf-8"));
|
|
15574
15568
|
if (readError || !raw)
|
|
15575
15569
|
return;
|
|
15576
|
-
const [parseError, parsed] =
|
|
15570
|
+
const [parseError, parsed] = catchError2(() => JSON.parse(raw));
|
|
15577
15571
|
if (parseError)
|
|
15578
15572
|
return;
|
|
15579
15573
|
return normalizeManifest(parsed);
|
|
@@ -15610,7 +15604,7 @@ class EntryPointSpecEnhancer {
|
|
|
15610
15604
|
if (!resource.projectKey) {
|
|
15611
15605
|
return;
|
|
15612
15606
|
}
|
|
15613
|
-
const [enhanceError] = await
|
|
15607
|
+
const [enhanceError] = await catchError2(this.applyEntryPointAsync(context, resource.projectKey, spec));
|
|
15614
15608
|
if (enhanceError) {
|
|
15615
15609
|
logger.warn(`EntryPointSpecEnhancer: failed to enhance spec for resource ${resource.key}: ${enhanceError.message}`);
|
|
15616
15610
|
}
|
|
@@ -15670,12 +15664,12 @@ class DuplicateKeysError extends Error {
|
|
|
15670
15664
|
|
|
15671
15665
|
class ArtefactPairBindingProvider extends MultiFileSolutionDefinitionProvider {
|
|
15672
15666
|
async readAsync(context, cancellationToken) {
|
|
15673
|
-
const [readError, solution] = await
|
|
15667
|
+
const [readError, solution] = await catchError2(super.readAsync(context, cancellationToken));
|
|
15674
15668
|
if (!readError)
|
|
15675
15669
|
return solution;
|
|
15676
15670
|
if (!(readError instanceof DuplicateKeysError))
|
|
15677
15671
|
throw readError;
|
|
15678
|
-
const [describeError, message] = await
|
|
15672
|
+
const [describeError, message] = await catchError2(this.describeDuplicateKeys(context, readError.keys, cancellationToken));
|
|
15679
15673
|
throw describeError ? readError : new Error(message);
|
|
15680
15674
|
}
|
|
15681
15675
|
async replaceDuplicateKeysAsync(solution) {
|
|
@@ -15688,7 +15682,7 @@ class ArtefactPairBindingProvider extends MultiFileSolutionDefinitionProvider {
|
|
|
15688
15682
|
const files = await storage.getFilesAsync(RESOURCE_FILES_FOLDER_NAME, RESOURCE_FILE_PATTERN, cancellationToken);
|
|
15689
15683
|
const pathsByKey = new Map(keys.map((key) => [key, []]));
|
|
15690
15684
|
for (const file of [...files].sort()) {
|
|
15691
|
-
const [readError, key] = await
|
|
15685
|
+
const [readError, key] = await catchError2(this.readResourceKey(storage, file, cancellationToken));
|
|
15692
15686
|
if (readError)
|
|
15693
15687
|
continue;
|
|
15694
15688
|
pathsByKey.get(key)?.push(toPortableRelativePath(file));
|
|
@@ -15714,7 +15708,15 @@ class ArtefactPairBindingProvider extends MultiFileSolutionDefinitionProvider {
|
|
|
15714
15708
|
}
|
|
15715
15709
|
}
|
|
15716
15710
|
|
|
15717
|
-
class ArtefactPairBindingSolutionDefinitionFactory
|
|
15711
|
+
class ArtefactPairBindingSolutionDefinitionFactory {
|
|
15712
|
+
fileStorageProviderFactory;
|
|
15713
|
+
jsonSerializerFactory;
|
|
15714
|
+
loggerFactory;
|
|
15715
|
+
constructor(fileStorageProviderFactory, jsonSerializerFactory, loggerFactory) {
|
|
15716
|
+
this.fileStorageProviderFactory = fileStorageProviderFactory;
|
|
15717
|
+
this.jsonSerializerFactory = jsonSerializerFactory;
|
|
15718
|
+
this.loggerFactory = loggerFactory;
|
|
15719
|
+
}
|
|
15718
15720
|
async getProviderAsync() {
|
|
15719
15721
|
return new ArtefactPairBindingProvider(this.fileStorageProviderFactory, this.jsonSerializerFactory, this.loggerFactory);
|
|
15720
15722
|
}
|
|
@@ -15841,7 +15843,7 @@ class FileSystemFileStorageProvider {
|
|
|
15841
15843
|
async deleteFileAsync(filePath, cancellationToken) {
|
|
15842
15844
|
this.throwIfCancelled(cancellationToken);
|
|
15843
15845
|
const fullPath = this.fs.path.join(this.basePath, filePath);
|
|
15844
|
-
const [deleteError] = await
|
|
15846
|
+
const [deleteError] = await catchError2(this.fs.rm(fullPath));
|
|
15845
15847
|
if (deleteError) {
|
|
15846
15848
|
logger.warn(`File not found, skipping delete: ${fullPath}`);
|
|
15847
15849
|
}
|
|
@@ -15862,13 +15864,13 @@ class FileSystemFileStorageProvider {
|
|
|
15862
15864
|
}
|
|
15863
15865
|
this.throwIfCancelled(cancellationToken);
|
|
15864
15866
|
const results = [];
|
|
15865
|
-
const [readdirError, entries] = await
|
|
15867
|
+
const [readdirError, entries] = await catchError2(this.fs.readdir(dir));
|
|
15866
15868
|
if (readdirError) {
|
|
15867
15869
|
return [];
|
|
15868
15870
|
}
|
|
15869
15871
|
for (const entryName of entries) {
|
|
15870
15872
|
const fullPath = this.fs.path.join(dir, entryName);
|
|
15871
|
-
const [statError, stat] = await
|
|
15873
|
+
const [statError, stat] = await catchError2(this.fs.stat(fullPath));
|
|
15872
15874
|
if (statError || !stat) {
|
|
15873
15875
|
continue;
|
|
15874
15876
|
}
|
|
@@ -15912,7 +15914,7 @@ class FileSystemFileStorageProviderFactory {
|
|
|
15912
15914
|
const profilePath = fs.path.join(context.path, "userProfile", userId);
|
|
15913
15915
|
const exists = await fs.exists(profilePath);
|
|
15914
15916
|
if (!exists) {
|
|
15915
|
-
await fs.mkdir(profilePath
|
|
15917
|
+
await fs.mkdir(profilePath);
|
|
15916
15918
|
}
|
|
15917
15919
|
return new FileSystemFileStorageProvider(profilePath);
|
|
15918
15920
|
}
|
|
@@ -15982,7 +15984,7 @@ class SolutionAccessProvider {
|
|
|
15982
15984
|
userKey = undefined;
|
|
15983
15985
|
async getStatus() {
|
|
15984
15986
|
if (!this.loginStatus) {
|
|
15985
|
-
this.loginStatus = await
|
|
15987
|
+
this.loginStatus = await getLoginStatusAsync2();
|
|
15986
15988
|
}
|
|
15987
15989
|
return this.loginStatus;
|
|
15988
15990
|
}
|
|
@@ -16014,12 +16016,12 @@ class SolutionAccessProvider {
|
|
|
16014
16016
|
if (this.userKey !== undefined) {
|
|
16015
16017
|
return this.userKey;
|
|
16016
16018
|
}
|
|
16017
|
-
const [apiError, api] = await
|
|
16019
|
+
const [apiError, api] = await catchError2(createApiClient2(UsersApi2));
|
|
16018
16020
|
if (apiError) {
|
|
16019
16021
|
logger.warn(`Failed to create UsersApi client: ${apiError.message}`);
|
|
16020
16022
|
return null;
|
|
16021
16023
|
}
|
|
16022
|
-
const [userError, user] = await
|
|
16024
|
+
const [userError, user] = await catchError2(api.usersGetCurrentUser());
|
|
16023
16025
|
if (userError || !user?.key) {
|
|
16024
16026
|
logger.warn(`Failed to get current user key: ${userError?.message ?? "no key in response"}`);
|
|
16025
16027
|
return null;
|
|
@@ -16044,7 +16046,7 @@ class SolutionAccessProvider {
|
|
|
16044
16046
|
async function createResourceBuilderServices() {
|
|
16045
16047
|
const loggerFactory = new CliResourceBuilderLoggerFactory;
|
|
16046
16048
|
const fileStorageProviderFactory = new FileSystemFileStorageProviderFactory;
|
|
16047
|
-
const jsonSerializerFactory = new
|
|
16049
|
+
const jsonSerializerFactory = new JsonSerializerFactory2;
|
|
16048
16050
|
return await createResourceBuilderConfiguration().addAccessProvider(new SolutionAccessProvider).addFileStorageProviderFactory(fileStorageProviderFactory).addLoggerFactory(loggerFactory).addSolutionDefinitionFactory(new ArtefactPairBindingSolutionDefinitionFactory(fileStorageProviderFactory, jsonSerializerFactory, loggerFactory)).addArtifactResourceSpecEnhancer(new EntryPointSpecEnhancer).build();
|
|
16049
16051
|
}
|
|
16050
16052
|
|
|
@@ -16111,11 +16113,11 @@ function lastPathSegment(filePath) {
|
|
|
16111
16113
|
}
|
|
16112
16114
|
async function readProjectFile(filePath, useProjectJson) {
|
|
16113
16115
|
const fs = getFileSystem();
|
|
16114
|
-
const [readError, rawContent] = await
|
|
16116
|
+
const [readError, rawContent] = await catchError2(fs.readFile(filePath, "utf-8"));
|
|
16115
16117
|
if (readError || !rawContent) {
|
|
16116
16118
|
return [readError ?? new Error("Unable to read project file"), null];
|
|
16117
16119
|
}
|
|
16118
|
-
const [parseError, content] =
|
|
16120
|
+
const [parseError, content] = catchError2(() => JSON.parse(rawContent));
|
|
16119
16121
|
if (parseError) {
|
|
16120
16122
|
return [
|
|
16121
16123
|
new ProjectManifestError(`Invalid JSON in project file: ${parseError.message}`, "invalid-json"),
|
|
@@ -16148,11 +16150,11 @@ async function readProjectFile(filePath, useProjectJson) {
|
|
|
16148
16150
|
}
|
|
16149
16151
|
async function readSolutionFile(filePath) {
|
|
16150
16152
|
const fs = getFileSystem();
|
|
16151
|
-
const [readError, rawContent] = await
|
|
16153
|
+
const [readError, rawContent] = await catchError2(fs.readFile(filePath, "utf-8"));
|
|
16152
16154
|
if (readError || !rawContent) {
|
|
16153
16155
|
return [readError ?? new Error("Unable to read solution file"), null];
|
|
16154
16156
|
}
|
|
16155
|
-
const [parseError, solution] =
|
|
16157
|
+
const [parseError, solution] = catchError2(() => JSON.parse(rawContent));
|
|
16156
16158
|
if (parseError) {
|
|
16157
16159
|
return [
|
|
16158
16160
|
new Error(`Invalid JSON in solution file: ${parseError.message}`),
|
|
@@ -16171,7 +16173,7 @@ async function resolveSolutionFilePath(solutionFileOption, searchStartDir) {
|
|
|
16171
16173
|
}
|
|
16172
16174
|
return [null, resolved];
|
|
16173
16175
|
}
|
|
16174
|
-
const [findError, found] = await
|
|
16176
|
+
const [findError, found] = await catchError2(findSolutionFileUpward(fs, searchStartDir));
|
|
16175
16177
|
if (findError) {
|
|
16176
16178
|
return [findError, null];
|
|
16177
16179
|
}
|
|
@@ -16179,32 +16181,32 @@ async function resolveSolutionFilePath(solutionFileOption, searchStartDir) {
|
|
|
16179
16181
|
}
|
|
16180
16182
|
async function writeSolutionFile(filePath, solution) {
|
|
16181
16183
|
const fs = getFileSystem();
|
|
16182
|
-
const [writeError] = await
|
|
16184
|
+
const [writeError] = await catchError2(fs.writeFile(filePath, `${JSON.stringify(solution, null, 2)}
|
|
16183
16185
|
`));
|
|
16184
|
-
return writeError;
|
|
16186
|
+
return writeError ?? null;
|
|
16185
16187
|
}
|
|
16186
16188
|
async function restoreSolutionFile(filePath, rawContent) {
|
|
16187
16189
|
const fs = getFileSystem();
|
|
16188
|
-
const [writeError] = await
|
|
16189
|
-
return writeError;
|
|
16190
|
+
const [writeError] = await catchError2(fs.writeFile(filePath, rawContent));
|
|
16191
|
+
return writeError ?? null;
|
|
16190
16192
|
}
|
|
16191
16193
|
async function createProjectInSolutionBuilder(solutionDir, projectId, projectName, projectType, subType) {
|
|
16192
|
-
const [servicesError, services] = await
|
|
16194
|
+
const [servicesError, services] = await catchError2(createResourceBuilderServices());
|
|
16193
16195
|
if (servicesError) {
|
|
16194
16196
|
return servicesError;
|
|
16195
16197
|
}
|
|
16196
|
-
const [builderError, solutionBuilder] = await
|
|
16198
|
+
const [builderError, solutionBuilder] = await catchError2(services.getSolutionBuilder(solutionDir));
|
|
16197
16199
|
if (builderError) {
|
|
16198
16200
|
return builderError;
|
|
16199
16201
|
}
|
|
16200
|
-
const [createError] = await
|
|
16202
|
+
const [createError] = await catchError2(solutionBuilder.createProjectAsync({
|
|
16201
16203
|
projectKey: projectId,
|
|
16202
16204
|
name: projectName,
|
|
16203
16205
|
type: projectType,
|
|
16204
16206
|
subType
|
|
16205
16207
|
}));
|
|
16206
|
-
await
|
|
16207
|
-
return createError;
|
|
16208
|
+
await catchError2(solutionBuilder.disposeAsync());
|
|
16209
|
+
return createError ?? null;
|
|
16208
16210
|
}
|
|
16209
16211
|
// ../solution-sdk/src/resources/services/catalog-lookup-failure.ts
|
|
16210
16212
|
var NO_CLIENT_MESSAGE = "Unable to create Resource Catalog client";
|
|
@@ -16476,7 +16478,7 @@ function parseJsonString(raw) {
|
|
|
16476
16478
|
if (typeof raw !== "string") {
|
|
16477
16479
|
return raw;
|
|
16478
16480
|
}
|
|
16479
|
-
const [error, parsed] =
|
|
16481
|
+
const [error, parsed] = catchError2(() => JSON.parse(raw));
|
|
16480
16482
|
return error ? undefined : parsed;
|
|
16481
16483
|
}
|
|
16482
16484
|
// ../solution-sdk/src/resources/services/resource-casing.ts
|
|
@@ -16498,13 +16500,13 @@ function normalizeResourceCasing(solution) {
|
|
|
16498
16500
|
return normalized;
|
|
16499
16501
|
}
|
|
16500
16502
|
async function saveCasingNormalized(builder) {
|
|
16501
|
-
const [loadError, solution] = await
|
|
16503
|
+
const [loadError, solution] = await catchError2(builder.context.loadAsync());
|
|
16502
16504
|
if (loadError) {
|
|
16503
16505
|
logger.warn(`Skipping resource casing normalization; failed to load solution: ${loadError.message}`);
|
|
16504
16506
|
} else {
|
|
16505
16507
|
normalizeResourceCasing(solution);
|
|
16506
16508
|
}
|
|
16507
|
-
const [disposeError] = await
|
|
16509
|
+
const [disposeError] = await catchError2(builder.disposeAsync());
|
|
16508
16510
|
return disposeError ?? null;
|
|
16509
16511
|
}
|
|
16510
16512
|
async function normalizeResourceFileCasing(solutionDir) {
|
|
@@ -16522,7 +16524,7 @@ async function normalizeResourceFileCasing(solutionDir) {
|
|
|
16522
16524
|
for (const path of paths) {
|
|
16523
16525
|
if (path === keep)
|
|
16524
16526
|
continue;
|
|
16525
|
-
const [removeError] = await
|
|
16527
|
+
const [removeError] = await catchError2(fs.rm(path));
|
|
16526
16528
|
if (removeError) {
|
|
16527
16529
|
logger.warn(`Could not remove case-variant resource file ${path}: ${removeError.message}`);
|
|
16528
16530
|
continue;
|
|
@@ -16535,12 +16537,12 @@ async function normalizeResourceFileCasing(solutionDir) {
|
|
|
16535
16537
|
if (keep.toLowerCase() === target.toLowerCase() && await fs.exists(target)) {
|
|
16536
16538
|
continue;
|
|
16537
16539
|
}
|
|
16538
|
-
const [makeDirError] = await
|
|
16540
|
+
const [makeDirError] = await catchError2(fs.mkdir(fs.path.dirname(target)));
|
|
16539
16541
|
if (makeDirError) {
|
|
16540
16542
|
logger.warn(`Could not create directory for resource file ${target}: ${makeDirError.message}`);
|
|
16541
16543
|
continue;
|
|
16542
16544
|
}
|
|
16543
|
-
const [renameError] = await
|
|
16545
|
+
const [renameError] = await catchError2(fs.rename(keep, target));
|
|
16544
16546
|
if (renameError) {
|
|
16545
16547
|
logger.warn(`Could not move resource file ${keep} to ${target}: ${renameError.message}`);
|
|
16546
16548
|
continue;
|
|
@@ -16570,14 +16572,14 @@ function sameIgnoringCase(a, b) {
|
|
|
16570
16572
|
}
|
|
16571
16573
|
async function collectResourceFiles(root, segments) {
|
|
16572
16574
|
const fs = getFileSystem();
|
|
16573
|
-
const [readError, names] = await
|
|
16575
|
+
const [readError, names] = await catchError2(fs.readdir(fs.path.join(root, ...segments)));
|
|
16574
16576
|
if (readError || !names)
|
|
16575
16577
|
return [];
|
|
16576
16578
|
const files = [];
|
|
16577
16579
|
for (const name of [...names].sort()) {
|
|
16578
16580
|
const childSegments = [...segments, name];
|
|
16579
16581
|
const path = fs.path.join(root, ...childSegments);
|
|
16580
|
-
const [statError, stats] = await
|
|
16582
|
+
const [statError, stats] = await catchError2(fs.stat(path));
|
|
16581
16583
|
if (statError) {
|
|
16582
16584
|
logger.warn(`Could not inspect resource path ${path}: ${statError.message}`);
|
|
16583
16585
|
continue;
|
|
@@ -16590,7 +16592,7 @@ async function collectResourceFiles(root, segments) {
|
|
|
16590
16592
|
}
|
|
16591
16593
|
if (!name.toLowerCase().endsWith(".json"))
|
|
16592
16594
|
continue;
|
|
16593
|
-
const [readFileError, content] = await
|
|
16595
|
+
const [readFileError, content] = await catchError2(fs.readFile(path, "utf-8"));
|
|
16594
16596
|
if (readFileError) {
|
|
16595
16597
|
logger.warn(`Could not read resource file ${path}: ${readFileError.message}`);
|
|
16596
16598
|
continue;
|
|
@@ -16605,13 +16607,13 @@ async function collectResourceFiles(root, segments) {
|
|
|
16605
16607
|
}
|
|
16606
16608
|
async function removeEmptyDirectories(dir, isRoot) {
|
|
16607
16609
|
const fs = getFileSystem();
|
|
16608
|
-
const [readError, names] = await
|
|
16610
|
+
const [readError, names] = await catchError2(fs.readdir(dir));
|
|
16609
16611
|
if (readError || !names)
|
|
16610
16612
|
return false;
|
|
16611
16613
|
let remaining = names.length;
|
|
16612
16614
|
for (const name of names) {
|
|
16613
16615
|
const childPath = fs.path.join(dir, name);
|
|
16614
|
-
const [statError, stats] = await
|
|
16616
|
+
const [statError, stats] = await catchError2(fs.stat(childPath));
|
|
16615
16617
|
if (statError) {
|
|
16616
16618
|
logger.warn(`Could not inspect resource path ${childPath}: ${statError.message}`);
|
|
16617
16619
|
continue;
|
|
@@ -16623,7 +16625,7 @@ async function removeEmptyDirectories(dir, isRoot) {
|
|
|
16623
16625
|
}
|
|
16624
16626
|
if (remaining > 0 || isRoot)
|
|
16625
16627
|
return false;
|
|
16626
|
-
const [removeError] = await
|
|
16628
|
+
const [removeError] = await catchError2(fs.rm(dir));
|
|
16627
16629
|
return !removeError;
|
|
16628
16630
|
}
|
|
16629
16631
|
function parseResourceHeader(content) {
|
|
@@ -16655,7 +16657,7 @@ function isResourceKeyNotFound(error, resourceKey) {
|
|
|
16655
16657
|
}
|
|
16656
16658
|
async function refreshArtefactSpecsAsync(builder, configurations) {
|
|
16657
16659
|
const resources = new Map;
|
|
16658
|
-
const [loadError, solution] = await
|
|
16660
|
+
const [loadError, solution] = await catchError2(builder.context.loadAsync());
|
|
16659
16661
|
if (loadError || !solution)
|
|
16660
16662
|
return resources;
|
|
16661
16663
|
for (const configuration of configurations) {
|
|
@@ -16700,7 +16702,7 @@ async function exportResourceConfigurationsAsync(services, resourceKey, hint = {
|
|
|
16700
16702
|
async function readLocalAsync(builder, resourceKey, read) {
|
|
16701
16703
|
if (!builder)
|
|
16702
16704
|
return;
|
|
16703
|
-
const [error, value] = await
|
|
16705
|
+
const [error, value] = await catchError2(read(builder));
|
|
16704
16706
|
if (!error)
|
|
16705
16707
|
return { builder, value };
|
|
16706
16708
|
if (isResourceKeyNotFound(error, resourceKey))
|
|
@@ -16719,10 +16721,10 @@ async function readResourceConfigurationAsync(services, builder, resourceKey) {
|
|
|
16719
16721
|
const local = await readLocalAsync(builder, resourceKey, (b) => b.getConfigurationAsync(resourceKey));
|
|
16720
16722
|
if (local) {
|
|
16721
16723
|
const configuration = local.value;
|
|
16722
|
-
const
|
|
16724
|
+
const resources = await refreshArtefactSpecsAsync(local.builder, [
|
|
16723
16725
|
configuration
|
|
16724
16726
|
]);
|
|
16725
|
-
return { configuration, resource:
|
|
16727
|
+
return { configuration, resource: resources.get(configuration.key) };
|
|
16726
16728
|
}
|
|
16727
16729
|
const { resources } = await exportResourceConfigurationsAsync(services, resourceKey);
|
|
16728
16730
|
const primary = resources.find((r) => r.key === resourceKey) ?? resources[0];
|
|
@@ -16799,6 +16801,7 @@ var TYPE_IS_IDENTITY_REPLACE_OPTIONS = new Set([
|
|
|
16799
16801
|
"SameNameAndType"
|
|
16800
16802
|
]);
|
|
16801
16803
|
var BINDINGS_JSON_FALLBACK_TYPES = new Set(["agent", "function"]);
|
|
16804
|
+
var IMPLICIT_CONNECTION = "ImplicitConnection";
|
|
16802
16805
|
|
|
16803
16806
|
class OverwriteRefreshError extends Error {
|
|
16804
16807
|
}
|
|
@@ -16806,16 +16809,20 @@ function placeholderForType(type) {
|
|
|
16806
16809
|
switch ((type ?? "string").toLowerCase()) {
|
|
16807
16810
|
case "boolean":
|
|
16808
16811
|
return false;
|
|
16809
|
-
case "
|
|
16810
|
-
case "
|
|
16812
|
+
case "int":
|
|
16813
|
+
case "long":
|
|
16814
|
+
case "float":
|
|
16815
|
+
case "double":
|
|
16811
16816
|
return 0;
|
|
16817
|
+
case "array":
|
|
16818
|
+
return [];
|
|
16812
16819
|
default:
|
|
16813
16820
|
return "";
|
|
16814
16821
|
}
|
|
16815
16822
|
}
|
|
16816
16823
|
async function buildKindResolver(metadataReader) {
|
|
16817
16824
|
const cache = new Map;
|
|
16818
|
-
const [orderedErr, ordered] = await
|
|
16825
|
+
const [orderedErr, ordered] = await catchError2((async () => metadataReader.getOrderedAsync())());
|
|
16819
16826
|
if (orderedErr || !ordered) {
|
|
16820
16827
|
logger.warn(`Failed to load SDK resource metadata; kind resolution disabled: ${orderedErr?.message ?? "unknown"}`);
|
|
16821
16828
|
return async () => {
|
|
@@ -16902,7 +16909,7 @@ function resolveBindingResourceIdentity(binding) {
|
|
|
16902
16909
|
};
|
|
16903
16910
|
}
|
|
16904
16911
|
}
|
|
16905
|
-
async function syncResourcesFromBindings(solutionDir, projectPaths, projectSubTypes, projectBindings) {
|
|
16912
|
+
async function syncResourcesFromBindings(solutionDir, projectPaths, projectSubTypes, projectBindings, selfProvisioned) {
|
|
16906
16913
|
const result = {
|
|
16907
16914
|
created: 0,
|
|
16908
16915
|
imported: 0,
|
|
@@ -16918,7 +16925,7 @@ async function syncResourcesFromBindings(solutionDir, projectPaths, projectSubTy
|
|
|
16918
16925
|
return result;
|
|
16919
16926
|
}
|
|
16920
16927
|
const bindingsJsonFallbackDirs = new Set(uipxProjects.filter((p) => BINDINGS_JSON_FALLBACK_TYPES.has(p.type.toLowerCase())).map((p) => p.path));
|
|
16921
|
-
const [servicesError, services] = await
|
|
16928
|
+
const [servicesError, services] = await catchError2(createResourceBuilderServices());
|
|
16922
16929
|
if (servicesError) {
|
|
16923
16930
|
logger.warn(`Failed to create resource builder services: ${servicesError.message}`);
|
|
16924
16931
|
return result;
|
|
@@ -16933,7 +16940,7 @@ async function syncResourcesFromBindings(solutionDir, projectPaths, projectSubTy
|
|
|
16933
16940
|
return result;
|
|
16934
16941
|
}
|
|
16935
16942
|
await normalizeResourceFileCasing(solutionDir);
|
|
16936
|
-
const [builderError, builder] = await
|
|
16943
|
+
const [builderError, builder] = await catchError2(services.getSolutionBuilder(solutionDir));
|
|
16937
16944
|
if (builderError) {
|
|
16938
16945
|
logger.warn(`Failed to get solution builder: ${builderError.message}`);
|
|
16939
16946
|
return result;
|
|
@@ -16943,9 +16950,9 @@ async function syncResourcesFromBindings(solutionDir, projectPaths, projectSubTy
|
|
|
16943
16950
|
const memberProjectKeys = new Set(uipxProjects.map((project) => project.id.toLowerCase()));
|
|
16944
16951
|
await pruneMemberClones(builder, memberProjectKeys, result);
|
|
16945
16952
|
if (allBindings.length === 0) {
|
|
16946
|
-
const
|
|
16947
|
-
if (
|
|
16948
|
-
throw new Error(`Failed to save solution changes: ${
|
|
16953
|
+
const saveError = await saveAndDisposeBuilder(builder, solutionDir);
|
|
16954
|
+
if (saveError) {
|
|
16955
|
+
throw new Error(`Failed to save solution changes: ${saveError.message}`);
|
|
16949
16956
|
}
|
|
16950
16957
|
return result;
|
|
16951
16958
|
}
|
|
@@ -16958,6 +16965,7 @@ async function syncResourcesFromBindings(solutionDir, projectPaths, projectSubTy
|
|
|
16958
16965
|
const resolvedKeys = new Set;
|
|
16959
16966
|
const overwrittenKeys = new Set;
|
|
16960
16967
|
const bindingKey = (kind, name) => `${kind}:${name ?? ""}`.toLowerCase();
|
|
16968
|
+
const selfProvisionedKeys = new Set((selfProvisioned ?? []).map((r) => bindingKey(r.kind, r.name)));
|
|
16961
16969
|
const recordUnchecked = async (error, kind, name, directCloudKey) => {
|
|
16962
16970
|
if (error) {
|
|
16963
16971
|
const failure = classifyCatalogFailure(error);
|
|
@@ -16989,7 +16997,7 @@ async function syncResourcesFromBindings(solutionDir, projectPaths, projectSubTy
|
|
|
16989
16997
|
const name = getResourceName(binding);
|
|
16990
16998
|
const folderPath = getFolderPathProperty(binding).defaultValue;
|
|
16991
16999
|
const directCloudKey = isConnection ? getConnectionKey(binding) : undefined;
|
|
16992
|
-
if (isConnection && !directCloudKey) {
|
|
17000
|
+
if (isConnection && (!directCloudKey || directCloudKey === IMPLICIT_CONNECTION)) {
|
|
16993
17001
|
continue;
|
|
16994
17002
|
}
|
|
16995
17003
|
if (!isConnection && !name) {
|
|
@@ -17005,8 +17013,20 @@ async function syncResourcesFromBindings(solutionDir, projectPaths, projectSubTy
|
|
|
17005
17013
|
logger.info(`Skipping ${kind} "${name}" — the solution provisions this project itself; its member declaration covers the binding`);
|
|
17006
17014
|
continue;
|
|
17007
17015
|
}
|
|
17016
|
+
if (!isConnection && selfProvisionedKeys.has(bindingKey(kind, name))) {
|
|
17017
|
+
virtualCandidates.push({
|
|
17018
|
+
binding,
|
|
17019
|
+
kind,
|
|
17020
|
+
type: identity.type ?? metadata?.type,
|
|
17021
|
+
metadata,
|
|
17022
|
+
name,
|
|
17023
|
+
folderPath,
|
|
17024
|
+
catalogMiss: false
|
|
17025
|
+
});
|
|
17026
|
+
continue;
|
|
17027
|
+
}
|
|
17008
17028
|
const lookupsStopped = !!result.catalogLookupFailure && stopsCatalogLookups(result.catalogLookupFailure);
|
|
17009
|
-
const [lookupError, rcsMatch] = lookupsStopped ? [undefined, undefined] : await
|
|
17029
|
+
const [lookupError, rcsMatch] = lookupsStopped ? [undefined, undefined] : await catchError2(directCloudKey ? findResourceByKeyInRcs(builder, kind, directCloudKey, folderPath, true) : findResourceInRcs(builder, kind, name, folderPath, true));
|
|
17010
17030
|
if (lookupsStopped || lookupError) {
|
|
17011
17031
|
await recordUnchecked(lookupError, kind, name, directCloudKey);
|
|
17012
17032
|
continue;
|
|
@@ -17023,7 +17043,8 @@ async function syncResourcesFromBindings(solutionDir, projectPaths, projectSubTy
|
|
|
17023
17043
|
type: resolvedType,
|
|
17024
17044
|
metadata,
|
|
17025
17045
|
name,
|
|
17026
|
-
folderPath
|
|
17046
|
+
folderPath,
|
|
17047
|
+
catalogMiss: true
|
|
17027
17048
|
});
|
|
17028
17049
|
continue;
|
|
17029
17050
|
}
|
|
@@ -17041,7 +17062,7 @@ async function syncResourcesFromBindings(solutionDir, projectPaths, projectSubTy
|
|
|
17041
17062
|
name: rcsMatch.name,
|
|
17042
17063
|
folder: rcsMatch.folder
|
|
17043
17064
|
};
|
|
17044
|
-
const [importError] = await
|
|
17065
|
+
const [importError] = await catchError2(wasKnown ? refreshKnownResource(services, builder, reference, overwrittenKeys) : builder.addOrUpdateResourceToSolutionAsync(reference, true));
|
|
17045
17066
|
if (!importError) {
|
|
17046
17067
|
resolvedKeys.add(bindingKey(kind, directCloudKey ?? name));
|
|
17047
17068
|
if (wasKnown) {
|
|
@@ -17077,7 +17098,8 @@ async function syncResourcesFromBindings(solutionDir, projectPaths, projectSubTy
|
|
|
17077
17098
|
type: resolvedType,
|
|
17078
17099
|
metadata,
|
|
17079
17100
|
name,
|
|
17080
|
-
folderPath
|
|
17101
|
+
folderPath,
|
|
17102
|
+
catalogMiss: false
|
|
17081
17103
|
});
|
|
17082
17104
|
}
|
|
17083
17105
|
const virtualCandidatesSeen = new Set;
|
|
@@ -17089,7 +17111,7 @@ async function syncResourcesFromBindings(solutionDir, projectPaths, projectSubTy
|
|
|
17089
17111
|
return true;
|
|
17090
17112
|
});
|
|
17091
17113
|
for (const candidate of dedupedVirtuals) {
|
|
17092
|
-
const [syncError, created] = await
|
|
17114
|
+
const [syncError, created] = await catchError2(createVirtualForBinding(builder, candidate.binding, candidate.kind, candidate.type, candidate.metadata, candidate.name, candidate.folderPath, result, candidate.catalogMiss));
|
|
17093
17115
|
if (syncError) {
|
|
17094
17116
|
logger.warn(`Failed to create virtual ${candidate.kind}/${candidate.name}: ${syncError.message}`);
|
|
17095
17117
|
} else if (created) {
|
|
@@ -17121,14 +17143,14 @@ async function syncResourcesFromBindings(solutionDir, projectPaths, projectSubTy
|
|
|
17121
17143
|
async function pruneMemberClones(builder, memberProjectKeys, result) {
|
|
17122
17144
|
if (memberProjectKeys.size === 0)
|
|
17123
17145
|
return;
|
|
17124
|
-
const [loadError, solution] = await
|
|
17146
|
+
const [loadError, solution] = await catchError2(builder.context.loadAsync());
|
|
17125
17147
|
if (loadError || !solution) {
|
|
17126
17148
|
logger.warn(`Skipping member clone cleanup; failed to load solution: ${loadError?.message ?? "unknown"}`);
|
|
17127
17149
|
return;
|
|
17128
17150
|
}
|
|
17129
17151
|
const clones = findMemberCloneResources(solution.resources ?? [], memberProjectKeys);
|
|
17130
17152
|
for (const clone of clones) {
|
|
17131
|
-
const [deleteError] = await
|
|
17153
|
+
const [deleteError] = await catchError2(builder.deleteSolutionResourceAsync(clone.key));
|
|
17132
17154
|
if (deleteError) {
|
|
17133
17155
|
const warning = `Could not remove duplicate ${clone.kind} "${clone.name}" (key: ${clone.key}): ${deleteError.message}`;
|
|
17134
17156
|
result.warnings.push(warning);
|
|
@@ -17157,7 +17179,7 @@ async function refreshKnownResource(services, builder, reference, overwrittenKey
|
|
|
17157
17179
|
overwrittenKeys.add(referenceKey);
|
|
17158
17180
|
return response;
|
|
17159
17181
|
}
|
|
17160
|
-
const [overwriteError] = await
|
|
17182
|
+
const [overwriteError] = await catchError2(refreshOverwrite(services, builder, reference, existing.key));
|
|
17161
17183
|
if (overwriteError)
|
|
17162
17184
|
throw new OverwriteRefreshError(overwriteError.message);
|
|
17163
17185
|
overwrittenKeys.add(referenceKey);
|
|
@@ -17182,18 +17204,18 @@ async function saveAndDisposeBuilder(builder, solutionDir) {
|
|
|
17182
17204
|
await builder.disposeAsync();
|
|
17183
17205
|
return new Error("Builder context exposes no force save method; solution changes were not persisted");
|
|
17184
17206
|
}
|
|
17185
|
-
const [loadError, solution] = await
|
|
17207
|
+
const [loadError, solution] = await catchError2(builder.context.loadAsync());
|
|
17186
17208
|
if (loadError) {
|
|
17187
17209
|
logger.warn(`Skipping resource casing normalization; failed to load solution: ${loadError.message}`);
|
|
17188
17210
|
} else {
|
|
17189
17211
|
normalizeResourceCasing(solution);
|
|
17190
17212
|
}
|
|
17191
|
-
const [saveError] = await
|
|
17213
|
+
const [saveError] = await catchError2(context.forceSaveChangesAsync.call(context));
|
|
17192
17214
|
await builder.disposeAsync();
|
|
17193
17215
|
if (!saveError) {
|
|
17194
17216
|
await normalizeResourceFileCasing(solutionDir);
|
|
17195
17217
|
}
|
|
17196
|
-
return saveError;
|
|
17218
|
+
return saveError ?? null;
|
|
17197
17219
|
}
|
|
17198
17220
|
function isConnectionBinding(binding) {
|
|
17199
17221
|
return binding.resourceType === models_BindingsResourceType.Connection || binding.resourceType === models_BindingsResourceType.EventTrigger;
|
|
@@ -17238,7 +17260,7 @@ async function mintVirtualResource(builder, kind, type, name, metadata) {
|
|
|
17238
17260
|
}
|
|
17239
17261
|
return { resource, finalName: uniqueName };
|
|
17240
17262
|
}
|
|
17241
|
-
async function createVirtualForBinding(builder, _binding, kind, type, metadata, name, folderPath, result) {
|
|
17263
|
+
async function createVirtualForBinding(builder, _binding, kind, type, metadata, name, folderPath, result, catalogMiss) {
|
|
17242
17264
|
const virtualizable = metadata?.virtualizable ?? false;
|
|
17243
17265
|
const preLoadSolution = await builder.context.loadAsync();
|
|
17244
17266
|
const alreadyVirtualized = findMatchingLocalResource(preLoadSolution.resources, kind, name, undefined);
|
|
@@ -17252,7 +17274,7 @@ async function createVirtualForBinding(builder, _binding, kind, type, metadata,
|
|
|
17252
17274
|
return false;
|
|
17253
17275
|
result.created++;
|
|
17254
17276
|
logger.info(`Created ${kind} "${name}" in solution`);
|
|
17255
|
-
if (!virtualizable) {
|
|
17277
|
+
if (!virtualizable && catalogMiss) {
|
|
17256
17278
|
const warning = `${kind} "${name}" not found in Orchestrator. Link it before deploy: uip solution deploy config link <file> "${name}" --name <existing-name>`;
|
|
17257
17279
|
result.warnings.push(warning);
|
|
17258
17280
|
logger.warn(warning);
|
|
@@ -17265,7 +17287,7 @@ async function findResourceByKeyInRcs(builder, kind, expectedKey, folderPath, pr
|
|
|
17265
17287
|
const mismatchedFolders = [];
|
|
17266
17288
|
let pageCursor;
|
|
17267
17289
|
do {
|
|
17268
|
-
const [searchError, result] = await
|
|
17290
|
+
const [searchError, result] = await catchError2(builder.searchResourcesAsync(kind, undefined, undefined, pageCursor, 100, undefined, false));
|
|
17269
17291
|
if (searchError) {
|
|
17270
17292
|
if (propagateErrors) {
|
|
17271
17293
|
throw searchError;
|
|
@@ -17304,7 +17326,7 @@ async function findResourceByKeyInRcs(builder, kind, expectedKey, folderPath, pr
|
|
|
17304
17326
|
return;
|
|
17305
17327
|
}
|
|
17306
17328
|
async function searchRcsResources(builder, kind, name) {
|
|
17307
|
-
const [searchError, matches] = await
|
|
17329
|
+
const [searchError, matches] = await catchError2(searchRcsResourcesStrict(builder, kind, name));
|
|
17308
17330
|
if (searchError) {
|
|
17309
17331
|
logger.warn(`Failed to search ${kind} resources in RCS: ${searchError.message}`);
|
|
17310
17332
|
return [];
|
|
@@ -17395,7 +17417,7 @@ async function readUipxProjects(solutionDir) {
|
|
|
17395
17417
|
const uipxPath = await findUipxFile(solutionDir);
|
|
17396
17418
|
if (!uipxPath)
|
|
17397
17419
|
return [];
|
|
17398
|
-
const [readError, content] = await
|
|
17420
|
+
const [readError, content] = await catchError2(fs.readFile(uipxPath));
|
|
17399
17421
|
if (readError || !content)
|
|
17400
17422
|
return [];
|
|
17401
17423
|
let parsed;
|
|
@@ -17423,7 +17445,7 @@ async function readUipxProjects(solutionDir) {
|
|
|
17423
17445
|
}
|
|
17424
17446
|
async function readUiprojName(uiprojPath) {
|
|
17425
17447
|
const fs = getFileSystem();
|
|
17426
|
-
const [readError, content] = await
|
|
17448
|
+
const [readError, content] = await catchError2(fs.readFile(uiprojPath));
|
|
17427
17449
|
if (readError || !content)
|
|
17428
17450
|
return;
|
|
17429
17451
|
try {
|
|
@@ -17435,7 +17457,7 @@ async function readUiprojName(uiprojPath) {
|
|
|
17435
17457
|
}
|
|
17436
17458
|
}
|
|
17437
17459
|
async function snapshotResourceIdentities(builder) {
|
|
17438
|
-
const [loadError, solution] = await
|
|
17460
|
+
const [loadError, solution] = await catchError2(builder.context.loadAsync());
|
|
17439
17461
|
if (loadError || !solution)
|
|
17440
17462
|
return;
|
|
17441
17463
|
return new Set((solution.resources ?? []).map((resource) => resource.key ? resource.key.toLowerCase() : `${resource.kind}:${resource.name}`.toLowerCase()));
|
|
@@ -17461,7 +17483,7 @@ async function reconcileSolutionProjects(builder, solutionDir, projectSubTypes)
|
|
|
17461
17483
|
return outcome;
|
|
17462
17484
|
const solutionName = fs.path.basename(solutionDir);
|
|
17463
17485
|
const before = await snapshotResourceIdentities(builder);
|
|
17464
|
-
const [reconcileError] = await
|
|
17486
|
+
const [reconcileError] = await catchError2(builder.reconcileProjectsAsync({
|
|
17465
17487
|
solutionName,
|
|
17466
17488
|
projects: projectDetails
|
|
17467
17489
|
}));
|
|
@@ -17547,14 +17569,14 @@ async function collectBindings(bindingsJsonFallbackDirs, serializer, sources) {
|
|
|
17547
17569
|
if (contribution) {
|
|
17548
17570
|
if (contribution.bindings.length === 0)
|
|
17549
17571
|
continue;
|
|
17550
|
-
const
|
|
17572
|
+
const parsed = deserializeBindings(JSON.stringify({
|
|
17551
17573
|
version: "2.0",
|
|
17552
17574
|
resources: contribution.bindings
|
|
17553
17575
|
}), `${dir} (bindings contributed by the project's tool; project ${contribution.projectId})`, serializer);
|
|
17554
|
-
if ("error" in
|
|
17555
|
-
parseErrors.push(
|
|
17576
|
+
if ("error" in parsed)
|
|
17577
|
+
parseErrors.push(parsed.error);
|
|
17556
17578
|
else
|
|
17557
|
-
allBindings.push(...
|
|
17579
|
+
allBindings.push(...parsed.resources);
|
|
17558
17580
|
continue;
|
|
17559
17581
|
}
|
|
17560
17582
|
const v2Path = fs.path.join(dir, "bindings_v2.json");
|
|
@@ -17567,7 +17589,7 @@ async function collectBindings(bindingsJsonFallbackDirs, serializer, sources) {
|
|
|
17567
17589
|
if (!exists) {
|
|
17568
17590
|
continue;
|
|
17569
17591
|
}
|
|
17570
|
-
const [readError, content] = await
|
|
17592
|
+
const [readError, content] = await catchError2(fs.readFile(bindingsPath));
|
|
17571
17593
|
if (readError || !content) {
|
|
17572
17594
|
parseErrors.push({
|
|
17573
17595
|
path: bindingsPath,
|
|
@@ -17609,7 +17631,7 @@ function deserializeBindings(decoded, source, serializer) {
|
|
|
17609
17631
|
return { resources: metadata?.resources ?? [] };
|
|
17610
17632
|
}
|
|
17611
17633
|
async function syncAndLog(solutionDir, projectSubTypes, options) {
|
|
17612
|
-
const [syncError, syncResult] = await
|
|
17634
|
+
const [syncError, syncResult] = await catchError2(syncResourcesFromBindings(solutionDir, undefined, projectSubTypes, options?.projectBindings, options?.selfProvisioned));
|
|
17613
17635
|
if (syncError) {
|
|
17614
17636
|
if (options?.failOnUnresolved)
|
|
17615
17637
|
throw syncError;
|
|
@@ -17638,7 +17660,7 @@ async function resourceRefreshAsync(solutionPath = ".", options = {}) {
|
|
|
17638
17660
|
message: `Solution directory not found: ${resolvedPath}`
|
|
17639
17661
|
};
|
|
17640
17662
|
}
|
|
17641
|
-
const [manifestError] = await
|
|
17663
|
+
const [manifestError] = await catchError2(assertSolutionManifest(resolvedPath));
|
|
17642
17664
|
if (manifestError) {
|
|
17643
17665
|
return {
|
|
17644
17666
|
ok: false,
|
|
@@ -17646,7 +17668,7 @@ async function resourceRefreshAsync(solutionPath = ".", options = {}) {
|
|
|
17646
17668
|
message: manifestError.message
|
|
17647
17669
|
};
|
|
17648
17670
|
}
|
|
17649
|
-
const [authError] = await
|
|
17671
|
+
const [authError] = await catchError2(getSolutionAuthContext2({
|
|
17650
17672
|
loginValidity: options.loginValidity,
|
|
17651
17673
|
envFilePath: options.envFilePath
|
|
17652
17674
|
}));
|
|
@@ -17657,15 +17679,15 @@ async function resourceRefreshAsync(solutionPath = ".", options = {}) {
|
|
|
17657
17679
|
message: await extractErrorMessage(authError)
|
|
17658
17680
|
};
|
|
17659
17681
|
}
|
|
17660
|
-
const [subTypesError, projectSubTypes] = await
|
|
17682
|
+
const [subTypesError, projectSubTypes] = await catchError2(options.resolveProjectSubTypesAsync?.() ?? Promise.resolve(new Map));
|
|
17661
17683
|
const resolverWarnings = subTypesError ? [
|
|
17662
17684
|
`Could not resolve project subTypes: ${subTypesError.message}. Project artefacts for types that need a variant were left as they are; fix the tool install and re-run 'uip solution resources refresh'.`
|
|
17663
17685
|
] : [];
|
|
17664
|
-
const [bindingsError, projectBindings] = await
|
|
17686
|
+
const [bindingsError, projectBindings] = await catchError2(options.resolveProjectBindingsAsync?.() ?? Promise.resolve(new Map));
|
|
17665
17687
|
if (bindingsError) {
|
|
17666
17688
|
resolverWarnings.push(`Could not read the bindings projects contribute: ${bindingsError.message}. Those projects were synced from any bindings_v2.json on disk instead; fix the tool install and re-run 'uip solution resources refresh'.`);
|
|
17667
17689
|
}
|
|
17668
|
-
const [syncError, result] = await
|
|
17690
|
+
const [syncError, result] = await catchError2(syncResourcesFromBindings(resolvedPath, undefined, projectSubTypes ?? new Map, projectBindings ?? new Map));
|
|
17669
17691
|
if (syncError) {
|
|
17670
17692
|
return {
|
|
17671
17693
|
ok: false,
|
|
@@ -17695,7 +17717,7 @@ async function resourceRemoteSyncAsync(solutionPath = ".", resourceKey, options
|
|
|
17695
17717
|
message: `Solution directory not found: ${resolvedPath}`
|
|
17696
17718
|
};
|
|
17697
17719
|
}
|
|
17698
|
-
const [manifestError] = await
|
|
17720
|
+
const [manifestError] = await catchError2(assertSolutionManifest(resolvedPath));
|
|
17699
17721
|
if (manifestError) {
|
|
17700
17722
|
return {
|
|
17701
17723
|
ok: false,
|
|
@@ -17703,7 +17725,7 @@ async function resourceRemoteSyncAsync(solutionPath = ".", resourceKey, options
|
|
|
17703
17725
|
message: manifestError.message
|
|
17704
17726
|
};
|
|
17705
17727
|
}
|
|
17706
|
-
const [authError] = await
|
|
17728
|
+
const [authError] = await catchError2(getSolutionAuthContext2({
|
|
17707
17729
|
loginValidity: options.loginValidity,
|
|
17708
17730
|
envFilePath: options.envFilePath
|
|
17709
17731
|
}));
|
|
@@ -17714,7 +17736,7 @@ async function resourceRemoteSyncAsync(solutionPath = ".", resourceKey, options
|
|
|
17714
17736
|
message: await extractErrorMessage(authError)
|
|
17715
17737
|
};
|
|
17716
17738
|
}
|
|
17717
|
-
const [servicesError, services] = await
|
|
17739
|
+
const [servicesError, services] = await catchError2(createResourceBuilderServices());
|
|
17718
17740
|
if (servicesError) {
|
|
17719
17741
|
return {
|
|
17720
17742
|
ok: false,
|
|
@@ -17723,7 +17745,7 @@ async function resourceRemoteSyncAsync(solutionPath = ".", resourceKey, options
|
|
|
17723
17745
|
};
|
|
17724
17746
|
}
|
|
17725
17747
|
await normalizeResourceFileCasing(resolvedPath);
|
|
17726
|
-
const [builderError, builder] = await
|
|
17748
|
+
const [builderError, builder] = await catchError2(services.getSolutionBuilder(resolvedPath, !options.force));
|
|
17727
17749
|
if (builderError) {
|
|
17728
17750
|
return {
|
|
17729
17751
|
ok: false,
|
|
@@ -17731,7 +17753,7 @@ async function resourceRemoteSyncAsync(solutionPath = ".", resourceKey, options
|
|
|
17731
17753
|
message: builderError.message
|
|
17732
17754
|
};
|
|
17733
17755
|
}
|
|
17734
|
-
const [runError, result] = await
|
|
17756
|
+
const [runError, result] = await catchError2(runSyncAsync(builder, resourceKey, options));
|
|
17735
17757
|
const disposeError = await saveCasingNormalized(builder);
|
|
17736
17758
|
if (!disposeError) {
|
|
17737
17759
|
await normalizeResourceFileCasing(resolvedPath);
|
|
@@ -17749,7 +17771,7 @@ async function resourceRemoteSyncAsync(solutionPath = ".", resourceKey, options
|
|
|
17749
17771
|
return result;
|
|
17750
17772
|
}
|
|
17751
17773
|
async function runSyncAsync(builder, resourceKey, options) {
|
|
17752
|
-
const [configError, before] = await
|
|
17774
|
+
const [configError, before] = await catchError2(builder.getConfigurationAsync(resourceKey));
|
|
17753
17775
|
if (configError) {
|
|
17754
17776
|
return {
|
|
17755
17777
|
ok: false,
|
|
@@ -17757,7 +17779,7 @@ async function runSyncAsync(builder, resourceKey, options) {
|
|
|
17757
17779
|
message: configError.message
|
|
17758
17780
|
};
|
|
17759
17781
|
}
|
|
17760
|
-
const [referenceError, reference] = await
|
|
17782
|
+
const [referenceError, reference] = await catchError2(builder.getResourceDebugReferenceAsync(resourceKey));
|
|
17761
17783
|
if (referenceError) {
|
|
17762
17784
|
return {
|
|
17763
17785
|
ok: false,
|
|
@@ -17772,7 +17794,7 @@ async function runSyncAsync(builder, resourceKey, options) {
|
|
|
17772
17794
|
message: `No cloud reference is recorded for resource ${resourceKey} in this solution, so there is nothing to sync from. Either the resource has no cloud counterpart at all (a '--source local' stub, or a project's own artefact resource), or it was imported by a different user or against a different tenant — the reference lives in userProfile/<your-user-id>/debug_overwrites.json and is not shared. In the second case, re-import it with 'uip solution resources add --source remote' to record the reference for your user.`
|
|
17773
17795
|
};
|
|
17774
17796
|
}
|
|
17775
|
-
const [cloudError, cloudSpec] = await
|
|
17797
|
+
const [cloudError, cloudSpec] = await catchError2(readCloudSpecAsync(builder, resourceKey));
|
|
17776
17798
|
if (cloudError) {
|
|
17777
17799
|
return {
|
|
17778
17800
|
ok: false,
|
|
@@ -17798,7 +17820,7 @@ async function runSyncAsync(builder, resourceKey, options) {
|
|
|
17798
17820
|
spec: localSpec
|
|
17799
17821
|
};
|
|
17800
17822
|
}
|
|
17801
|
-
const [writeError, after] = await
|
|
17823
|
+
const [writeError, after] = await catchError2(builder.updateConfigurationAsync(resourceKey, cloudSpec));
|
|
17802
17824
|
if (writeError) {
|
|
17803
17825
|
return {
|
|
17804
17826
|
ok: false,
|
|
@@ -17923,4 +17945,4 @@ export {
|
|
|
17923
17945
|
writeSolutionFile
|
|
17924
17946
|
};
|
|
17925
17947
|
|
|
17926
|
-
//# debugId=
|
|
17948
|
+
//# debugId=A387C7FAD9D9A40A64756E2164756E21
|