@uipath/flow-tool 1.205.0-preview.277 → 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 +74 -46
- 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-kdg7mq7z.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-0xn8fk4a.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-dcj8p7n7.js → flow-eval-run-service-5en4ahyn.js} +125 -149
- package/dist/{flow-eval-service-6c0y5a3b.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-9w8dgydd.js → flow-migrate-service-dkx85jj5.js} +33 -54
- package/dist/{flow-pack-service-5s2cthq4.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-mx8gr86x.js → governance-fetcher-h8hpcwyh.js} +17 -21
- package/dist/{headless-4x4v3sy6.js → headless-41t9wwb7.js} +2395 -43269
- package/dist/{hitl-service-d943rxgm.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-5ay0ddfj.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-xf9vf5nj.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-a5ywkf0w.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-kkwrd05c.js → packager-tool-65yf8zqb.js} +180 -1237
- package/dist/{packager-tool-1yh8g550.js → packager-tool-6an893wm.js} +12 -3
- package/dist/{packager-tool-hgfygxyj.js → packager-tool-6jpvvxyb.js} +27 -22
- package/dist/packager-tool-6vhefpmq.js +461 -0
- package/dist/{packager-tool-v9vpk48j.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-gpwnzqd9.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-143kcy6z.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-zjv3f1k3.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-3jkppykr.js → packager-tool-b2pkwwj1.js} +1273 -1300
- package/dist/{packager-tool-nhrc54tz.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-mgwzjh8c.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-z502rf8m.js → packager-tool-rxqxza90.js} +192 -183
- package/dist/{packager-tool-vzezw19a.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-c3xbcma6.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-s0srgj90.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-v1ejjevw.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-vq8cjh0x.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-b5xwf5gp.js +0 -52
- package/dist/flow-eval-run-api-xdygjzfv.js +0 -13
- package/dist/flow-init-service-z6xc9zsz.js +0 -47
- package/dist/flow-io-hf4szx79.js +0 -44
- package/dist/flow-validate-service-3974mcq1.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-cexznmfe.js +0 -667
- 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.umd.min-fqefd9kn.js +0 -7814
- package/dist/inline-entity-resolver-23tt0g1j.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-0t16wfqk.js +0 -92
- package/dist/node-sync-service-w84f66pb.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-79jnagb9.js +0 -5367
- 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-dw1bm5y7.js +0 -8809
- 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-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
|
@@ -0,0 +1,2393 @@
|
|
|
1
|
+
import {
|
|
2
|
+
RESULTS,
|
|
3
|
+
summarizePlatformBody,
|
|
4
|
+
logger,
|
|
5
|
+
getSdkUserAgentToken,
|
|
6
|
+
addSdkUserAgentHeader,
|
|
7
|
+
installSdkUserAgentHeader
|
|
8
|
+
} from "./packager-tool-8ed52y5r.js";
|
|
9
|
+
import {
|
|
10
|
+
catchError2
|
|
11
|
+
} from "./packager-tool-pxq0bwp0.js";
|
|
12
|
+
import {
|
|
13
|
+
zipSync
|
|
14
|
+
} from "./packager-tool-mphfxa9g.js";
|
|
15
|
+
import {
|
|
16
|
+
__toESM,
|
|
17
|
+
__commonJS
|
|
18
|
+
} from "./packager-tool-6an893wm.js";
|
|
19
|
+
|
|
20
|
+
// ../../node_modules/ignore/index.js
|
|
21
|
+
var require_ignore = __commonJS(function(exports, module) {
|
|
22
|
+
function makeArray(subject) {
|
|
23
|
+
return Array.isArray(subject) ? subject : [subject];
|
|
24
|
+
}
|
|
25
|
+
var EMPTY = "";
|
|
26
|
+
var SPACE = " ";
|
|
27
|
+
var ESCAPE = "\\";
|
|
28
|
+
var REGEX_TEST_BLANK_LINE = /^\s+$/;
|
|
29
|
+
var REGEX_INVALID_TRAILING_BACKSLASH = /(?:[^\\]|^)\\$/;
|
|
30
|
+
var REGEX_REPLACE_LEADING_EXCAPED_EXCLAMATION = /^\\!/;
|
|
31
|
+
var REGEX_REPLACE_LEADING_EXCAPED_HASH = /^\\#/;
|
|
32
|
+
var REGEX_SPLITALL_CRLF = /\r?\n/g;
|
|
33
|
+
var REGEX_TEST_INVALID_PATH = /^\.*\/|^\.+$/;
|
|
34
|
+
var SLASH = "/";
|
|
35
|
+
var TMP_KEY_IGNORE = "node-ignore";
|
|
36
|
+
if (typeof Symbol !== "undefined") {
|
|
37
|
+
TMP_KEY_IGNORE = Symbol.for("node-ignore");
|
|
38
|
+
}
|
|
39
|
+
var KEY_IGNORE = TMP_KEY_IGNORE;
|
|
40
|
+
var define = (object, key, value) => Object.defineProperty(object, key, { value });
|
|
41
|
+
var REGEX_REGEXP_RANGE = /([0-z])-([0-z])/g;
|
|
42
|
+
var RETURN_FALSE = () => false;
|
|
43
|
+
var sanitizeRange = (range) => range.replace(REGEX_REGEXP_RANGE, (match, from, to) => from.charCodeAt(0) <= to.charCodeAt(0) ? match : EMPTY);
|
|
44
|
+
var cleanRangeBackSlash = (slashes) => {
|
|
45
|
+
const { length } = slashes;
|
|
46
|
+
return slashes.slice(0, length - length % 2);
|
|
47
|
+
};
|
|
48
|
+
var REPLACERS = [
|
|
49
|
+
[
|
|
50
|
+
/^\uFEFF/,
|
|
51
|
+
() => EMPTY
|
|
52
|
+
],
|
|
53
|
+
[
|
|
54
|
+
/((?:\\\\)*?)(\\?\s+)$/,
|
|
55
|
+
(_, m1, m2) => m1 + (m2.indexOf("\\") === 0 ? SPACE : EMPTY)
|
|
56
|
+
],
|
|
57
|
+
[
|
|
58
|
+
/(\\+?)\s/g,
|
|
59
|
+
(_, m1) => {
|
|
60
|
+
const { length } = m1;
|
|
61
|
+
return m1.slice(0, length - length % 2) + SPACE;
|
|
62
|
+
}
|
|
63
|
+
],
|
|
64
|
+
[
|
|
65
|
+
/[\\$.|*+(){^]/g,
|
|
66
|
+
(match) => `\\${match}`
|
|
67
|
+
],
|
|
68
|
+
[
|
|
69
|
+
/(?!\\)\?/g,
|
|
70
|
+
() => "[^/]"
|
|
71
|
+
],
|
|
72
|
+
[
|
|
73
|
+
/^\//,
|
|
74
|
+
() => "^"
|
|
75
|
+
],
|
|
76
|
+
[
|
|
77
|
+
/\//g,
|
|
78
|
+
() => "\\/"
|
|
79
|
+
],
|
|
80
|
+
[
|
|
81
|
+
/^\^*\\\*\\\*\\\//,
|
|
82
|
+
() => "^(?:.*\\/)?"
|
|
83
|
+
],
|
|
84
|
+
[
|
|
85
|
+
/^(?=[^^])/,
|
|
86
|
+
function startingReplacer() {
|
|
87
|
+
return !/\/(?!$)/.test(this) ? "(?:^|\\/)" : "^";
|
|
88
|
+
}
|
|
89
|
+
],
|
|
90
|
+
[
|
|
91
|
+
/\\\/\\\*\\\*(?=\\\/|$)/g,
|
|
92
|
+
(_, index, str) => index + 6 < str.length ? "(?:\\/[^\\/]+)*" : "\\/.+"
|
|
93
|
+
],
|
|
94
|
+
[
|
|
95
|
+
/(^|[^\\]+)(\\\*)+(?=.+)/g,
|
|
96
|
+
(_, p1, p2) => {
|
|
97
|
+
const unescaped = p2.replace(/\\\*/g, "[^\\/]*");
|
|
98
|
+
return p1 + unescaped;
|
|
99
|
+
}
|
|
100
|
+
],
|
|
101
|
+
[
|
|
102
|
+
/\\\\\\(?=[$.|*+(){^])/g,
|
|
103
|
+
() => ESCAPE
|
|
104
|
+
],
|
|
105
|
+
[
|
|
106
|
+
/\\\\/g,
|
|
107
|
+
() => ESCAPE
|
|
108
|
+
],
|
|
109
|
+
[
|
|
110
|
+
/(\\)?\[([^\]/]*?)(\\*)($|\])/g,
|
|
111
|
+
(match, leadEscape, range, endEscape, close) => leadEscape === ESCAPE ? `\\[${range}${cleanRangeBackSlash(endEscape)}${close}` : close === "]" ? endEscape.length % 2 === 0 ? `[${sanitizeRange(range)}${endEscape}]` : "[]" : "[]"
|
|
112
|
+
],
|
|
113
|
+
[
|
|
114
|
+
/(?:[^*])$/,
|
|
115
|
+
(match) => /\/$/.test(match) ? `${match}$` : `${match}(?=$|\\/$)`
|
|
116
|
+
],
|
|
117
|
+
[
|
|
118
|
+
/(\^|\\\/)?\\\*$/,
|
|
119
|
+
(_, p1) => {
|
|
120
|
+
const prefix = p1 ? `${p1}[^/]+` : "[^/]*";
|
|
121
|
+
return `${prefix}(?=$|\\/$)`;
|
|
122
|
+
}
|
|
123
|
+
]
|
|
124
|
+
];
|
|
125
|
+
var regexCache = Object.create(null);
|
|
126
|
+
var makeRegex = (pattern, ignoreCase) => {
|
|
127
|
+
let source = regexCache[pattern];
|
|
128
|
+
if (!source) {
|
|
129
|
+
source = REPLACERS.reduce((prev, [matcher, replacer]) => prev.replace(matcher, replacer.bind(pattern)), pattern);
|
|
130
|
+
regexCache[pattern] = source;
|
|
131
|
+
}
|
|
132
|
+
return ignoreCase ? new RegExp(source, "i") : new RegExp(source);
|
|
133
|
+
};
|
|
134
|
+
var isString = (subject) => typeof subject === "string";
|
|
135
|
+
var checkPattern = (pattern) => pattern && isString(pattern) && !REGEX_TEST_BLANK_LINE.test(pattern) && !REGEX_INVALID_TRAILING_BACKSLASH.test(pattern) && pattern.indexOf("#") !== 0;
|
|
136
|
+
var splitPattern = (pattern) => pattern.split(REGEX_SPLITALL_CRLF);
|
|
137
|
+
|
|
138
|
+
class IgnoreRule {
|
|
139
|
+
constructor(origin, pattern, negative, regex) {
|
|
140
|
+
this.origin = origin;
|
|
141
|
+
this.pattern = pattern;
|
|
142
|
+
this.negative = negative;
|
|
143
|
+
this.regex = regex;
|
|
144
|
+
}
|
|
145
|
+
}
|
|
146
|
+
var createRule = (pattern, ignoreCase) => {
|
|
147
|
+
const origin = pattern;
|
|
148
|
+
let negative = false;
|
|
149
|
+
if (pattern.indexOf("!") === 0) {
|
|
150
|
+
negative = true;
|
|
151
|
+
pattern = pattern.substr(1);
|
|
152
|
+
}
|
|
153
|
+
pattern = pattern.replace(REGEX_REPLACE_LEADING_EXCAPED_EXCLAMATION, "!").replace(REGEX_REPLACE_LEADING_EXCAPED_HASH, "#");
|
|
154
|
+
const regex = makeRegex(pattern, ignoreCase);
|
|
155
|
+
return new IgnoreRule(origin, pattern, negative, regex);
|
|
156
|
+
};
|
|
157
|
+
var throwError = (message, Ctor) => {
|
|
158
|
+
throw new Ctor(message);
|
|
159
|
+
};
|
|
160
|
+
var checkPath = (path, originalPath, doThrow) => {
|
|
161
|
+
if (!isString(path)) {
|
|
162
|
+
return doThrow(`path must be a string, but got \`${originalPath}\``, TypeError);
|
|
163
|
+
}
|
|
164
|
+
if (!path) {
|
|
165
|
+
return doThrow(`path must not be empty`, TypeError);
|
|
166
|
+
}
|
|
167
|
+
if (checkPath.isNotRelative(path)) {
|
|
168
|
+
const r = "`path.relative()`d";
|
|
169
|
+
return doThrow(`path should be a ${r} string, but got "${originalPath}"`, RangeError);
|
|
170
|
+
}
|
|
171
|
+
return true;
|
|
172
|
+
};
|
|
173
|
+
var isNotRelative = (path) => REGEX_TEST_INVALID_PATH.test(path);
|
|
174
|
+
checkPath.isNotRelative = isNotRelative;
|
|
175
|
+
checkPath.convert = (p) => p;
|
|
176
|
+
|
|
177
|
+
class Ignore {
|
|
178
|
+
constructor({
|
|
179
|
+
ignorecase = true,
|
|
180
|
+
ignoreCase = ignorecase,
|
|
181
|
+
allowRelativePaths = false
|
|
182
|
+
} = {}) {
|
|
183
|
+
define(this, KEY_IGNORE, true);
|
|
184
|
+
this._rules = [];
|
|
185
|
+
this._ignoreCase = ignoreCase;
|
|
186
|
+
this._allowRelativePaths = allowRelativePaths;
|
|
187
|
+
this._initCache();
|
|
188
|
+
}
|
|
189
|
+
_initCache() {
|
|
190
|
+
this._ignoreCache = Object.create(null);
|
|
191
|
+
this._testCache = Object.create(null);
|
|
192
|
+
}
|
|
193
|
+
_addPattern(pattern) {
|
|
194
|
+
if (pattern && pattern[KEY_IGNORE]) {
|
|
195
|
+
this._rules = this._rules.concat(pattern._rules);
|
|
196
|
+
this._added = true;
|
|
197
|
+
return;
|
|
198
|
+
}
|
|
199
|
+
if (checkPattern(pattern)) {
|
|
200
|
+
const rule = createRule(pattern, this._ignoreCase);
|
|
201
|
+
this._added = true;
|
|
202
|
+
this._rules.push(rule);
|
|
203
|
+
}
|
|
204
|
+
}
|
|
205
|
+
add(pattern) {
|
|
206
|
+
this._added = false;
|
|
207
|
+
makeArray(isString(pattern) ? splitPattern(pattern) : pattern).forEach(this._addPattern, this);
|
|
208
|
+
if (this._added) {
|
|
209
|
+
this._initCache();
|
|
210
|
+
}
|
|
211
|
+
return this;
|
|
212
|
+
}
|
|
213
|
+
addPattern(pattern) {
|
|
214
|
+
return this.add(pattern);
|
|
215
|
+
}
|
|
216
|
+
_testOne(path, checkUnignored) {
|
|
217
|
+
let ignored = false;
|
|
218
|
+
let unignored = false;
|
|
219
|
+
this._rules.forEach((rule) => {
|
|
220
|
+
const { negative } = rule;
|
|
221
|
+
if (unignored === negative && ignored !== unignored || negative && !ignored && !unignored && !checkUnignored) {
|
|
222
|
+
return;
|
|
223
|
+
}
|
|
224
|
+
const matched = rule.regex.test(path);
|
|
225
|
+
if (matched) {
|
|
226
|
+
ignored = !negative;
|
|
227
|
+
unignored = negative;
|
|
228
|
+
}
|
|
229
|
+
});
|
|
230
|
+
return {
|
|
231
|
+
ignored,
|
|
232
|
+
unignored
|
|
233
|
+
};
|
|
234
|
+
}
|
|
235
|
+
_test(originalPath, cache, checkUnignored, slices) {
|
|
236
|
+
const path = originalPath && checkPath.convert(originalPath);
|
|
237
|
+
checkPath(path, originalPath, this._allowRelativePaths ? RETURN_FALSE : throwError);
|
|
238
|
+
return this._t(path, cache, checkUnignored, slices);
|
|
239
|
+
}
|
|
240
|
+
_t(path, cache, checkUnignored, slices) {
|
|
241
|
+
if (path in cache) {
|
|
242
|
+
return cache[path];
|
|
243
|
+
}
|
|
244
|
+
if (!slices) {
|
|
245
|
+
slices = path.split(SLASH);
|
|
246
|
+
}
|
|
247
|
+
slices.pop();
|
|
248
|
+
if (!slices.length) {
|
|
249
|
+
return cache[path] = this._testOne(path, checkUnignored);
|
|
250
|
+
}
|
|
251
|
+
const parent = this._t(slices.join(SLASH) + SLASH, cache, checkUnignored, slices);
|
|
252
|
+
return cache[path] = parent.ignored ? parent : this._testOne(path, checkUnignored);
|
|
253
|
+
}
|
|
254
|
+
ignores(path) {
|
|
255
|
+
return this._test(path, this._ignoreCache, false).ignored;
|
|
256
|
+
}
|
|
257
|
+
createFilter() {
|
|
258
|
+
return (path) => !this.ignores(path);
|
|
259
|
+
}
|
|
260
|
+
filter(paths) {
|
|
261
|
+
return makeArray(paths).filter(this.createFilter());
|
|
262
|
+
}
|
|
263
|
+
test(path) {
|
|
264
|
+
return this._test(path, this._testCache, true);
|
|
265
|
+
}
|
|
266
|
+
}
|
|
267
|
+
var factory = (options) => new Ignore(options);
|
|
268
|
+
var isPathValid = (path) => checkPath(path && checkPath.convert(path), path, RETURN_FALSE);
|
|
269
|
+
factory.isPathValid = isPathValid;
|
|
270
|
+
factory.default = factory;
|
|
271
|
+
module.exports = factory;
|
|
272
|
+
if (typeof process !== "undefined" && (process.env && process.env.IGNORE_TEST_WIN32 || process.platform === "win32")) {
|
|
273
|
+
const makePosix = (str) => /^\\\\\?\\/.test(str) || /["<>|\u0000-\u001F]+/u.test(str) ? str : str.replace(/\\/g, "/");
|
|
274
|
+
checkPath.convert = makePosix;
|
|
275
|
+
const REGIX_IS_WINDOWS_PATH_ABSOLUTE = /^[a-z]:\//i;
|
|
276
|
+
checkPath.isNotRelative = (path) => REGIX_IS_WINDOWS_PATH_ABSOLUTE.test(path) || isNotRelative(path);
|
|
277
|
+
}
|
|
278
|
+
});
|
|
279
|
+
|
|
280
|
+
// ../solution-sdk/generated/src/runtime.ts
|
|
281
|
+
var BASE_PATH = "https://alpha.uipath.com/uipattycyrhx/abizon_1/automationsolutions_".replace(/\/+$/, "");
|
|
282
|
+
|
|
283
|
+
class Configuration {
|
|
284
|
+
configuration;
|
|
285
|
+
constructor(configuration = {}) {
|
|
286
|
+
this.configuration = configuration;
|
|
287
|
+
}
|
|
288
|
+
set config(configuration) {
|
|
289
|
+
this.configuration = configuration;
|
|
290
|
+
}
|
|
291
|
+
get basePath() {
|
|
292
|
+
return this.configuration.basePath != null ? this.configuration.basePath : BASE_PATH;
|
|
293
|
+
}
|
|
294
|
+
get fetchApi() {
|
|
295
|
+
return this.configuration.fetchApi;
|
|
296
|
+
}
|
|
297
|
+
get middleware() {
|
|
298
|
+
return this.configuration.middleware || [];
|
|
299
|
+
}
|
|
300
|
+
get queryParamsStringify() {
|
|
301
|
+
return this.configuration.queryParamsStringify || querystring;
|
|
302
|
+
}
|
|
303
|
+
get username() {
|
|
304
|
+
return this.configuration.username;
|
|
305
|
+
}
|
|
306
|
+
get password() {
|
|
307
|
+
return this.configuration.password;
|
|
308
|
+
}
|
|
309
|
+
get apiKey() {
|
|
310
|
+
const apiKey = this.configuration.apiKey;
|
|
311
|
+
if (apiKey) {
|
|
312
|
+
return typeof apiKey === "function" ? apiKey : () => apiKey;
|
|
313
|
+
}
|
|
314
|
+
return;
|
|
315
|
+
}
|
|
316
|
+
get accessToken() {
|
|
317
|
+
const accessToken = this.configuration.accessToken;
|
|
318
|
+
if (accessToken) {
|
|
319
|
+
return typeof accessToken === "function" ? accessToken : async () => accessToken;
|
|
320
|
+
}
|
|
321
|
+
return;
|
|
322
|
+
}
|
|
323
|
+
get headers() {
|
|
324
|
+
return this.configuration.headers;
|
|
325
|
+
}
|
|
326
|
+
get credentials() {
|
|
327
|
+
return this.configuration.credentials;
|
|
328
|
+
}
|
|
329
|
+
}
|
|
330
|
+
var DefaultConfig = new Configuration;
|
|
331
|
+
|
|
332
|
+
class BaseAPI {
|
|
333
|
+
configuration;
|
|
334
|
+
static jsonRegex = new RegExp("^(:?application/json|[^;/ \t]+/[^;/ \t]+[+]json)[ \t]*(:?;.*)?$", "i");
|
|
335
|
+
middleware;
|
|
336
|
+
constructor(configuration = DefaultConfig) {
|
|
337
|
+
this.configuration = configuration;
|
|
338
|
+
this.middleware = configuration.middleware;
|
|
339
|
+
}
|
|
340
|
+
withMiddleware(...middlewares) {
|
|
341
|
+
const next = this.clone();
|
|
342
|
+
next.middleware = next.middleware.concat(...middlewares);
|
|
343
|
+
return next;
|
|
344
|
+
}
|
|
345
|
+
withPreMiddleware(...preMiddlewares) {
|
|
346
|
+
const middlewares = preMiddlewares.map((pre) => ({ pre }));
|
|
347
|
+
return this.withMiddleware(...middlewares);
|
|
348
|
+
}
|
|
349
|
+
withPostMiddleware(...postMiddlewares) {
|
|
350
|
+
const middlewares = postMiddlewares.map((post) => ({ post }));
|
|
351
|
+
return this.withMiddleware(...middlewares);
|
|
352
|
+
}
|
|
353
|
+
isJsonMime(mime) {
|
|
354
|
+
if (!mime) {
|
|
355
|
+
return false;
|
|
356
|
+
}
|
|
357
|
+
return BaseAPI.jsonRegex.test(mime);
|
|
358
|
+
}
|
|
359
|
+
async request(context, initOverrides) {
|
|
360
|
+
const { url, init } = await this.createFetchParams(context, initOverrides);
|
|
361
|
+
const response = await this.fetchApi(url, init);
|
|
362
|
+
if (response && (response.status >= 200 && response.status < 300)) {
|
|
363
|
+
return response;
|
|
364
|
+
}
|
|
365
|
+
throw new ResponseError(response, "Response returned an error code");
|
|
366
|
+
}
|
|
367
|
+
async createFetchParams(context, initOverrides) {
|
|
368
|
+
let url = this.configuration.basePath + context.path;
|
|
369
|
+
if (context.query !== undefined && Object.keys(context.query).length !== 0) {
|
|
370
|
+
url += "?" + this.configuration.queryParamsStringify(context.query);
|
|
371
|
+
}
|
|
372
|
+
const headers = Object.assign({}, this.configuration.headers, context.headers);
|
|
373
|
+
Object.keys(headers).forEach((key) => headers[key] === undefined ? delete headers[key] : {});
|
|
374
|
+
const initOverrideFn = typeof initOverrides === "function" ? initOverrides : async () => initOverrides;
|
|
375
|
+
const initParams = {
|
|
376
|
+
method: context.method,
|
|
377
|
+
headers,
|
|
378
|
+
body: context.body,
|
|
379
|
+
credentials: this.configuration.credentials
|
|
380
|
+
};
|
|
381
|
+
const overriddenInit = {
|
|
382
|
+
...initParams,
|
|
383
|
+
...await initOverrideFn({
|
|
384
|
+
init: initParams,
|
|
385
|
+
context
|
|
386
|
+
})
|
|
387
|
+
};
|
|
388
|
+
let body;
|
|
389
|
+
if (isFormData(overriddenInit.body) || overriddenInit.body instanceof URLSearchParams || isBlob(overriddenInit.body)) {
|
|
390
|
+
body = overriddenInit.body;
|
|
391
|
+
} else if (this.isJsonMime(headers["Content-Type"])) {
|
|
392
|
+
body = JSON.stringify(overriddenInit.body);
|
|
393
|
+
} else {
|
|
394
|
+
body = overriddenInit.body;
|
|
395
|
+
}
|
|
396
|
+
const init = {
|
|
397
|
+
...overriddenInit,
|
|
398
|
+
body
|
|
399
|
+
};
|
|
400
|
+
return { url, init };
|
|
401
|
+
}
|
|
402
|
+
fetchApi = async (url, init) => {
|
|
403
|
+
let fetchParams = { url, init };
|
|
404
|
+
for (const middleware of this.middleware) {
|
|
405
|
+
if (middleware.pre) {
|
|
406
|
+
fetchParams = await middleware.pre({
|
|
407
|
+
fetch: this.fetchApi,
|
|
408
|
+
...fetchParams
|
|
409
|
+
}) || fetchParams;
|
|
410
|
+
}
|
|
411
|
+
}
|
|
412
|
+
let response = undefined;
|
|
413
|
+
try {
|
|
414
|
+
response = await (this.configuration.fetchApi || fetch)(fetchParams.url, fetchParams.init);
|
|
415
|
+
} catch (e) {
|
|
416
|
+
for (const middleware of this.middleware) {
|
|
417
|
+
if (middleware.onError) {
|
|
418
|
+
response = await middleware.onError({
|
|
419
|
+
fetch: this.fetchApi,
|
|
420
|
+
url: fetchParams.url,
|
|
421
|
+
init: fetchParams.init,
|
|
422
|
+
error: e,
|
|
423
|
+
response: response ? response.clone() : undefined
|
|
424
|
+
}) || response;
|
|
425
|
+
}
|
|
426
|
+
}
|
|
427
|
+
if (response === undefined) {
|
|
428
|
+
if (e instanceof Error) {
|
|
429
|
+
throw new FetchError(e, "The request failed and the interceptors did not return an alternative response");
|
|
430
|
+
} else {
|
|
431
|
+
throw e;
|
|
432
|
+
}
|
|
433
|
+
}
|
|
434
|
+
}
|
|
435
|
+
for (const middleware of this.middleware) {
|
|
436
|
+
if (middleware.post) {
|
|
437
|
+
response = await middleware.post({
|
|
438
|
+
fetch: this.fetchApi,
|
|
439
|
+
url: fetchParams.url,
|
|
440
|
+
init: fetchParams.init,
|
|
441
|
+
response: response.clone()
|
|
442
|
+
}) || response;
|
|
443
|
+
}
|
|
444
|
+
}
|
|
445
|
+
return response;
|
|
446
|
+
};
|
|
447
|
+
clone() {
|
|
448
|
+
const constructor = this.constructor;
|
|
449
|
+
const next = new constructor(this.configuration);
|
|
450
|
+
next.middleware = this.middleware.slice();
|
|
451
|
+
return next;
|
|
452
|
+
}
|
|
453
|
+
}
|
|
454
|
+
function isBlob(value) {
|
|
455
|
+
return typeof Blob !== "undefined" && value instanceof Blob;
|
|
456
|
+
}
|
|
457
|
+
function isFormData(value) {
|
|
458
|
+
return typeof FormData !== "undefined" && value instanceof FormData;
|
|
459
|
+
}
|
|
460
|
+
|
|
461
|
+
class ResponseError extends Error {
|
|
462
|
+
response;
|
|
463
|
+
name = "ResponseError";
|
|
464
|
+
constructor(response, msg) {
|
|
465
|
+
super(msg);
|
|
466
|
+
this.response = response;
|
|
467
|
+
}
|
|
468
|
+
}
|
|
469
|
+
|
|
470
|
+
class FetchError extends Error {
|
|
471
|
+
cause;
|
|
472
|
+
name = "FetchError";
|
|
473
|
+
constructor(cause, msg) {
|
|
474
|
+
super(msg);
|
|
475
|
+
this.cause = cause;
|
|
476
|
+
}
|
|
477
|
+
}
|
|
478
|
+
function querystring(params, prefix = "") {
|
|
479
|
+
return Object.keys(params).map((key) => querystringSingleKey(key, params[key], prefix)).filter((part) => part.length > 0).join("&");
|
|
480
|
+
}
|
|
481
|
+
function querystringSingleKey(key, value, keyPrefix = "") {
|
|
482
|
+
const fullKey = keyPrefix + (keyPrefix.length ? `[${key}]` : key);
|
|
483
|
+
if (value instanceof Array) {
|
|
484
|
+
const multiValue = value.map((singleValue) => encodeURIComponent(String(singleValue))).join(`&${encodeURIComponent(fullKey)}=`);
|
|
485
|
+
return `${encodeURIComponent(fullKey)}=${multiValue}`;
|
|
486
|
+
}
|
|
487
|
+
if (value instanceof Set) {
|
|
488
|
+
const valueAsArray = Array.from(value);
|
|
489
|
+
return querystringSingleKey(key, valueAsArray, keyPrefix);
|
|
490
|
+
}
|
|
491
|
+
if (value instanceof Date) {
|
|
492
|
+
return `${encodeURIComponent(fullKey)}=${encodeURIComponent(value.toISOString())}`;
|
|
493
|
+
}
|
|
494
|
+
if (value instanceof Object) {
|
|
495
|
+
return querystring(value, fullKey);
|
|
496
|
+
}
|
|
497
|
+
return `${encodeURIComponent(fullKey)}=${encodeURIComponent(String(value))}`;
|
|
498
|
+
}
|
|
499
|
+
// ../solution-sdk/package.json
|
|
500
|
+
var package_default = {
|
|
501
|
+
name: "@uipath/solution-sdk",
|
|
502
|
+
author: "UiPath",
|
|
503
|
+
license: "SEE LICENSE IN LICENSE.txt",
|
|
504
|
+
version: "1.206.0-preview.279",
|
|
505
|
+
repository: {
|
|
506
|
+
type: "git",
|
|
507
|
+
url: "https://github.com/UiPath/cli.git",
|
|
508
|
+
directory: "packages/solution-sdk"
|
|
509
|
+
},
|
|
510
|
+
publishConfig: {
|
|
511
|
+
registry: "https://npm.pkg.github.com/@uipath"
|
|
512
|
+
},
|
|
513
|
+
keywords: [
|
|
514
|
+
"uipath",
|
|
515
|
+
"solution",
|
|
516
|
+
"sdk"
|
|
517
|
+
],
|
|
518
|
+
type: "module",
|
|
519
|
+
main: "./dist/index.js",
|
|
520
|
+
types: "./dist/src/index.d.ts",
|
|
521
|
+
exports: {
|
|
522
|
+
".": {
|
|
523
|
+
types: "./dist/src/index.d.ts",
|
|
524
|
+
default: "./dist/index.js"
|
|
525
|
+
},
|
|
526
|
+
"./resources": {
|
|
527
|
+
types: "./dist/src/resources/index.d.ts",
|
|
528
|
+
default: "./dist/resources/index.js"
|
|
529
|
+
},
|
|
530
|
+
"./auth": {
|
|
531
|
+
types: "./dist/src/solution-auth.d.ts",
|
|
532
|
+
default: "./dist/solution-auth.js"
|
|
533
|
+
},
|
|
534
|
+
"./deployments": {
|
|
535
|
+
types: "./dist/src/deployment-search.d.ts",
|
|
536
|
+
default: "./dist/deployment-search.js"
|
|
537
|
+
},
|
|
538
|
+
"./packages": {
|
|
539
|
+
types: "./dist/src/package-search.d.ts",
|
|
540
|
+
default: "./dist/package-search.js"
|
|
541
|
+
},
|
|
542
|
+
"./project-context": {
|
|
543
|
+
types: "./dist/src/project-context.d.ts",
|
|
544
|
+
default: "./dist/project-context.js"
|
|
545
|
+
}
|
|
546
|
+
},
|
|
547
|
+
bin: {
|
|
548
|
+
"generate-sdk": "./dist/scripts/generate-sdk.js"
|
|
549
|
+
},
|
|
550
|
+
files: [
|
|
551
|
+
"dist"
|
|
552
|
+
],
|
|
553
|
+
private: false,
|
|
554
|
+
scripts: {
|
|
555
|
+
build: "bun build ./src/index.ts ./src/resources/index.ts ./src/solution-auth.ts ./src/deployment-search.ts ./src/package-search.ts ./src/project-context.ts --outdir dist --format esm --target node --splitting --sourcemap=linked && bun build ./src/scripts/generate-sdk.ts --outdir dist/scripts --format esm --target node --sourcemap=linked && tsc -p tsconfig.build.json --noCheck",
|
|
556
|
+
generate: "bun run src/scripts/generate-sdk.ts",
|
|
557
|
+
lint: "biome check .",
|
|
558
|
+
test: "vitest run",
|
|
559
|
+
"test:coverage": "vitest run --coverage",
|
|
560
|
+
typecheck: "tsc --noEmit"
|
|
561
|
+
},
|
|
562
|
+
devDependencies: {
|
|
563
|
+
"@openapitools/openapi-generator-cli": "^2.31.1",
|
|
564
|
+
"@uipath/auth": "workspace:*",
|
|
565
|
+
"@uipath/common": "workspace:*",
|
|
566
|
+
"@uipath/filesystem": "workspace:*",
|
|
567
|
+
"@uipath/orchestrator-sdk": "workspace:*",
|
|
568
|
+
"@uipath/pipelines-sdk": "workspace:*",
|
|
569
|
+
"@uipath/resource-builder-sdk": "2025.11.0-alpha6584-4367",
|
|
570
|
+
"@uipath/solutionpackager-tool-core": "workspace:*",
|
|
571
|
+
"@uipath/studioweb-sdk": "workspace:*",
|
|
572
|
+
"@types/node": "^25.5.2",
|
|
573
|
+
fflate: "^0.8.2",
|
|
574
|
+
ignore: "^5.3.2",
|
|
575
|
+
typescript: "^7.0.2"
|
|
576
|
+
}
|
|
577
|
+
};
|
|
578
|
+
|
|
579
|
+
// ../solution-sdk/src/user-agent.ts
|
|
580
|
+
var SDK_USER_AGENT = getSdkUserAgentToken(package_default);
|
|
581
|
+
installSdkUserAgentHeader(BaseAPI, SDK_USER_AGENT);
|
|
582
|
+
|
|
583
|
+
// ../studioweb-sdk/generated/src/runtime.ts
|
|
584
|
+
var BASE_PATH2 = "https://alpha.uipath.com/studio_/backend".replace(/\/+$/, "");
|
|
585
|
+
|
|
586
|
+
class Configuration2 {
|
|
587
|
+
configuration;
|
|
588
|
+
constructor(configuration = {}) {
|
|
589
|
+
this.configuration = configuration;
|
|
590
|
+
}
|
|
591
|
+
set config(configuration) {
|
|
592
|
+
this.configuration = configuration;
|
|
593
|
+
}
|
|
594
|
+
get basePath() {
|
|
595
|
+
return this.configuration.basePath != null ? this.configuration.basePath : BASE_PATH2;
|
|
596
|
+
}
|
|
597
|
+
get fetchApi() {
|
|
598
|
+
return this.configuration.fetchApi;
|
|
599
|
+
}
|
|
600
|
+
get middleware() {
|
|
601
|
+
return this.configuration.middleware || [];
|
|
602
|
+
}
|
|
603
|
+
get queryParamsStringify() {
|
|
604
|
+
return this.configuration.queryParamsStringify || querystring2;
|
|
605
|
+
}
|
|
606
|
+
get username() {
|
|
607
|
+
return this.configuration.username;
|
|
608
|
+
}
|
|
609
|
+
get password() {
|
|
610
|
+
return this.configuration.password;
|
|
611
|
+
}
|
|
612
|
+
get apiKey() {
|
|
613
|
+
const apiKey = this.configuration.apiKey;
|
|
614
|
+
if (apiKey) {
|
|
615
|
+
return typeof apiKey === "function" ? apiKey : () => apiKey;
|
|
616
|
+
}
|
|
617
|
+
return;
|
|
618
|
+
}
|
|
619
|
+
get accessToken() {
|
|
620
|
+
const accessToken = this.configuration.accessToken;
|
|
621
|
+
if (accessToken) {
|
|
622
|
+
return typeof accessToken === "function" ? accessToken : async () => accessToken;
|
|
623
|
+
}
|
|
624
|
+
return;
|
|
625
|
+
}
|
|
626
|
+
get headers() {
|
|
627
|
+
return this.configuration.headers;
|
|
628
|
+
}
|
|
629
|
+
get credentials() {
|
|
630
|
+
return this.configuration.credentials;
|
|
631
|
+
}
|
|
632
|
+
}
|
|
633
|
+
var DefaultConfig2 = new Configuration2;
|
|
634
|
+
|
|
635
|
+
class BaseAPI2 {
|
|
636
|
+
configuration;
|
|
637
|
+
static jsonRegex = new RegExp("^(:?application/json|[^;/ \t]+/[^;/ \t]+[+]json)[ \t]*(:?;.*)?$", "i");
|
|
638
|
+
middleware;
|
|
639
|
+
constructor(configuration = DefaultConfig2) {
|
|
640
|
+
this.configuration = configuration;
|
|
641
|
+
this.middleware = configuration.middleware;
|
|
642
|
+
}
|
|
643
|
+
withMiddleware(...middlewares) {
|
|
644
|
+
const next = this.clone();
|
|
645
|
+
next.middleware = next.middleware.concat(...middlewares);
|
|
646
|
+
return next;
|
|
647
|
+
}
|
|
648
|
+
withPreMiddleware(...preMiddlewares) {
|
|
649
|
+
const middlewares = preMiddlewares.map((pre) => ({ pre }));
|
|
650
|
+
return this.withMiddleware(...middlewares);
|
|
651
|
+
}
|
|
652
|
+
withPostMiddleware(...postMiddlewares) {
|
|
653
|
+
const middlewares = postMiddlewares.map((post) => ({ post }));
|
|
654
|
+
return this.withMiddleware(...middlewares);
|
|
655
|
+
}
|
|
656
|
+
isJsonMime(mime) {
|
|
657
|
+
if (!mime) {
|
|
658
|
+
return false;
|
|
659
|
+
}
|
|
660
|
+
return BaseAPI2.jsonRegex.test(mime);
|
|
661
|
+
}
|
|
662
|
+
async request(context, initOverrides) {
|
|
663
|
+
const { url, init } = await this.createFetchParams(context, initOverrides);
|
|
664
|
+
const response = await this.fetchApi(url, init);
|
|
665
|
+
if (response && (response.status >= 200 && response.status < 300)) {
|
|
666
|
+
return response;
|
|
667
|
+
}
|
|
668
|
+
throw new ResponseError2(response, "Response returned an error code");
|
|
669
|
+
}
|
|
670
|
+
async createFetchParams(context, initOverrides) {
|
|
671
|
+
let url = this.configuration.basePath + context.path;
|
|
672
|
+
if (context.query !== undefined && Object.keys(context.query).length !== 0) {
|
|
673
|
+
url += "?" + this.configuration.queryParamsStringify(context.query);
|
|
674
|
+
}
|
|
675
|
+
const headers = Object.assign({}, this.configuration.headers, context.headers);
|
|
676
|
+
Object.keys(headers).forEach((key) => headers[key] === undefined ? delete headers[key] : {});
|
|
677
|
+
const initOverrideFn = typeof initOverrides === "function" ? initOverrides : async () => initOverrides;
|
|
678
|
+
const initParams = {
|
|
679
|
+
method: context.method,
|
|
680
|
+
headers,
|
|
681
|
+
body: context.body,
|
|
682
|
+
credentials: this.configuration.credentials
|
|
683
|
+
};
|
|
684
|
+
const overriddenInit = {
|
|
685
|
+
...initParams,
|
|
686
|
+
...await initOverrideFn({
|
|
687
|
+
init: initParams,
|
|
688
|
+
context
|
|
689
|
+
})
|
|
690
|
+
};
|
|
691
|
+
let body;
|
|
692
|
+
if (isFormData2(overriddenInit.body) || overriddenInit.body instanceof URLSearchParams || isBlob2(overriddenInit.body)) {
|
|
693
|
+
body = overriddenInit.body;
|
|
694
|
+
} else if (this.isJsonMime(headers["Content-Type"])) {
|
|
695
|
+
body = JSON.stringify(overriddenInit.body);
|
|
696
|
+
} else {
|
|
697
|
+
body = overriddenInit.body;
|
|
698
|
+
}
|
|
699
|
+
const init = {
|
|
700
|
+
...overriddenInit,
|
|
701
|
+
body
|
|
702
|
+
};
|
|
703
|
+
return { url, init };
|
|
704
|
+
}
|
|
705
|
+
fetchApi = async (url, init) => {
|
|
706
|
+
let fetchParams = { url, init };
|
|
707
|
+
for (const middleware of this.middleware) {
|
|
708
|
+
if (middleware.pre) {
|
|
709
|
+
fetchParams = await middleware.pre({
|
|
710
|
+
fetch: this.fetchApi,
|
|
711
|
+
...fetchParams
|
|
712
|
+
}) || fetchParams;
|
|
713
|
+
}
|
|
714
|
+
}
|
|
715
|
+
let response = undefined;
|
|
716
|
+
try {
|
|
717
|
+
response = await (this.configuration.fetchApi || fetch)(fetchParams.url, fetchParams.init);
|
|
718
|
+
} catch (e) {
|
|
719
|
+
for (const middleware of this.middleware) {
|
|
720
|
+
if (middleware.onError) {
|
|
721
|
+
response = await middleware.onError({
|
|
722
|
+
fetch: this.fetchApi,
|
|
723
|
+
url: fetchParams.url,
|
|
724
|
+
init: fetchParams.init,
|
|
725
|
+
error: e,
|
|
726
|
+
response: response ? response.clone() : undefined
|
|
727
|
+
}) || response;
|
|
728
|
+
}
|
|
729
|
+
}
|
|
730
|
+
if (response === undefined) {
|
|
731
|
+
if (e instanceof Error) {
|
|
732
|
+
throw new FetchError2(e, "The request failed and the interceptors did not return an alternative response");
|
|
733
|
+
} else {
|
|
734
|
+
throw e;
|
|
735
|
+
}
|
|
736
|
+
}
|
|
737
|
+
}
|
|
738
|
+
for (const middleware of this.middleware) {
|
|
739
|
+
if (middleware.post) {
|
|
740
|
+
response = await middleware.post({
|
|
741
|
+
fetch: this.fetchApi,
|
|
742
|
+
url: fetchParams.url,
|
|
743
|
+
init: fetchParams.init,
|
|
744
|
+
response: response.clone()
|
|
745
|
+
}) || response;
|
|
746
|
+
}
|
|
747
|
+
}
|
|
748
|
+
return response;
|
|
749
|
+
};
|
|
750
|
+
clone() {
|
|
751
|
+
const constructor = this.constructor;
|
|
752
|
+
const next = new constructor(this.configuration);
|
|
753
|
+
next.middleware = this.middleware.slice();
|
|
754
|
+
return next;
|
|
755
|
+
}
|
|
756
|
+
}
|
|
757
|
+
function isBlob2(value) {
|
|
758
|
+
return typeof Blob !== "undefined" && value instanceof Blob;
|
|
759
|
+
}
|
|
760
|
+
function isFormData2(value) {
|
|
761
|
+
return typeof FormData !== "undefined" && value instanceof FormData;
|
|
762
|
+
}
|
|
763
|
+
|
|
764
|
+
class ResponseError2 extends Error {
|
|
765
|
+
response;
|
|
766
|
+
name = "ResponseError";
|
|
767
|
+
constructor(response, msg) {
|
|
768
|
+
super(msg);
|
|
769
|
+
this.response = response;
|
|
770
|
+
}
|
|
771
|
+
}
|
|
772
|
+
|
|
773
|
+
class FetchError2 extends Error {
|
|
774
|
+
cause;
|
|
775
|
+
name = "FetchError";
|
|
776
|
+
constructor(cause, msg) {
|
|
777
|
+
super(msg);
|
|
778
|
+
this.cause = cause;
|
|
779
|
+
}
|
|
780
|
+
}
|
|
781
|
+
|
|
782
|
+
class RequiredError extends Error {
|
|
783
|
+
field;
|
|
784
|
+
name = "RequiredError";
|
|
785
|
+
constructor(field, msg) {
|
|
786
|
+
super(msg);
|
|
787
|
+
this.field = field;
|
|
788
|
+
}
|
|
789
|
+
}
|
|
790
|
+
function querystring2(params, prefix = "") {
|
|
791
|
+
return Object.keys(params).map((key) => querystringSingleKey2(key, params[key], prefix)).filter((part) => part.length > 0).join("&");
|
|
792
|
+
}
|
|
793
|
+
function querystringSingleKey2(key, value, keyPrefix = "") {
|
|
794
|
+
const fullKey = keyPrefix + (keyPrefix.length ? `[${key}]` : key);
|
|
795
|
+
if (value instanceof Array) {
|
|
796
|
+
const multiValue = value.map((singleValue) => encodeURIComponent(String(singleValue))).join(`&${encodeURIComponent(fullKey)}=`);
|
|
797
|
+
return `${encodeURIComponent(fullKey)}=${multiValue}`;
|
|
798
|
+
}
|
|
799
|
+
if (value instanceof Set) {
|
|
800
|
+
const valueAsArray = Array.from(value);
|
|
801
|
+
return querystringSingleKey2(key, valueAsArray, keyPrefix);
|
|
802
|
+
}
|
|
803
|
+
if (value instanceof Date) {
|
|
804
|
+
return `${encodeURIComponent(fullKey)}=${encodeURIComponent(value.toISOString())}`;
|
|
805
|
+
}
|
|
806
|
+
if (value instanceof Object) {
|
|
807
|
+
return querystring2(value, fullKey);
|
|
808
|
+
}
|
|
809
|
+
return `${encodeURIComponent(fullKey)}=${encodeURIComponent(String(value))}`;
|
|
810
|
+
}
|
|
811
|
+
function canConsumeForm(consumes) {
|
|
812
|
+
for (const consume of consumes) {
|
|
813
|
+
if (consume.contentType === "multipart/form-data") {
|
|
814
|
+
return true;
|
|
815
|
+
}
|
|
816
|
+
}
|
|
817
|
+
return false;
|
|
818
|
+
}
|
|
819
|
+
|
|
820
|
+
class JSONApiResponse {
|
|
821
|
+
raw;
|
|
822
|
+
transformer;
|
|
823
|
+
constructor(raw, transformer = (jsonValue) => jsonValue) {
|
|
824
|
+
this.raw = raw;
|
|
825
|
+
this.transformer = transformer;
|
|
826
|
+
}
|
|
827
|
+
async value() {
|
|
828
|
+
return this.transformer(await this.raw.json());
|
|
829
|
+
}
|
|
830
|
+
}
|
|
831
|
+
// ../studioweb-sdk/generated/src/models/AccessStatus.ts
|
|
832
|
+
function AccessStatusFromJSON(json) {
|
|
833
|
+
return AccessStatusFromJSONTyped(json, false);
|
|
834
|
+
}
|
|
835
|
+
function AccessStatusFromJSONTyped(json, ignoreDiscriminator) {
|
|
836
|
+
return json;
|
|
837
|
+
}
|
|
838
|
+
// ../studioweb-sdk/generated/src/models/PinnedProject.ts
|
|
839
|
+
function PinnedProjectFromJSON(json) {
|
|
840
|
+
return PinnedProjectFromJSONTyped(json, false);
|
|
841
|
+
}
|
|
842
|
+
function PinnedProjectFromJSONTyped(json, ignoreDiscriminator) {
|
|
843
|
+
if (json == null) {
|
|
844
|
+
return json;
|
|
845
|
+
}
|
|
846
|
+
return {
|
|
847
|
+
id: json["id"] == null ? undefined : json["id"],
|
|
848
|
+
projectDbModelId: json["projectDbModelId"] == null ? undefined : json["projectDbModelId"],
|
|
849
|
+
userId: json["userId"] == null ? undefined : json["userId"],
|
|
850
|
+
creationTime: json["creationTime"] == null ? undefined : new Date(json["creationTime"]),
|
|
851
|
+
project: json["project"] == null ? undefined : ProjectDbModelFromJSON(json["project"])
|
|
852
|
+
};
|
|
853
|
+
}
|
|
854
|
+
|
|
855
|
+
// ../studioweb-sdk/generated/src/models/ProjectStructure.ts
|
|
856
|
+
function ProjectStructureFromJSON(json) {
|
|
857
|
+
return ProjectStructureFromJSONTyped(json, false);
|
|
858
|
+
}
|
|
859
|
+
function ProjectStructureFromJSONTyped(json, ignoreDiscriminator) {
|
|
860
|
+
return json;
|
|
861
|
+
}
|
|
862
|
+
|
|
863
|
+
// ../studioweb-sdk/generated/src/models/ProjectAppliedProfileModel.ts
|
|
864
|
+
function ProjectAppliedProfileModelFromJSON(json) {
|
|
865
|
+
return ProjectAppliedProfileModelFromJSONTyped(json, false);
|
|
866
|
+
}
|
|
867
|
+
function ProjectAppliedProfileModelFromJSONTyped(json, ignoreDiscriminator) {
|
|
868
|
+
if (json == null) {
|
|
869
|
+
return json;
|
|
870
|
+
}
|
|
871
|
+
return {
|
|
872
|
+
projectId: json["projectId"] == null ? undefined : json["projectId"],
|
|
873
|
+
workflowId: json["workflowId"] == null ? undefined : json["workflowId"],
|
|
874
|
+
userProfileId: json["userProfileId"] == null ? undefined : json["userProfileId"],
|
|
875
|
+
project: json["project"] == null ? undefined : ProjectDbModelFromJSON(json["project"]),
|
|
876
|
+
profile: json["profile"] == null ? undefined : UserBindingProfileModelFromJSON(json["profile"])
|
|
877
|
+
};
|
|
878
|
+
}
|
|
879
|
+
|
|
880
|
+
// ../studioweb-sdk/generated/src/models/PropertyBindingModel.ts
|
|
881
|
+
function PropertyBindingModelFromJSON(json) {
|
|
882
|
+
return PropertyBindingModelFromJSONTyped(json, false);
|
|
883
|
+
}
|
|
884
|
+
function PropertyBindingModelFromJSONTyped(json, ignoreDiscriminator) {
|
|
885
|
+
if (json == null) {
|
|
886
|
+
return json;
|
|
887
|
+
}
|
|
888
|
+
return {
|
|
889
|
+
id: json["id"] == null ? undefined : json["id"],
|
|
890
|
+
profileId: json["profileId"] == null ? undefined : json["profileId"],
|
|
891
|
+
workflowId: json["workflowId"] == null ? undefined : json["workflowId"],
|
|
892
|
+
activityIdRef: json["activityIdRef"] == null ? undefined : json["activityIdRef"],
|
|
893
|
+
propertyName: json["propertyName"] == null ? undefined : json["propertyName"],
|
|
894
|
+
contractName: json["contractName"] == null ? undefined : json["contractName"],
|
|
895
|
+
resourceKey: json["resourceKey"] == null ? undefined : json["resourceKey"],
|
|
896
|
+
propertyValue: json["propertyValue"] == null ? undefined : json["propertyValue"],
|
|
897
|
+
profile: json["profile"] == null ? undefined : UserBindingProfileModelFromJSON(json["profile"])
|
|
898
|
+
};
|
|
899
|
+
}
|
|
900
|
+
|
|
901
|
+
// ../studioweb-sdk/generated/src/models/UserBindingProfileModel.ts
|
|
902
|
+
function UserBindingProfileModelFromJSON(json) {
|
|
903
|
+
return UserBindingProfileModelFromJSONTyped3(json, false);
|
|
904
|
+
}
|
|
905
|
+
function UserBindingProfileModelFromJSONTyped3(json, ignoreDiscriminator) {
|
|
906
|
+
if (json == null) {
|
|
907
|
+
return json;
|
|
908
|
+
}
|
|
909
|
+
return {
|
|
910
|
+
id: json["id"] == null ? undefined : json["id"],
|
|
911
|
+
userId: json["userId"] == null ? undefined : json["userId"],
|
|
912
|
+
tenantId: json["tenantId"] == null ? undefined : json["tenantId"],
|
|
913
|
+
projectId: json["projectId"] == null ? undefined : json["projectId"],
|
|
914
|
+
workflowId: json["workflowId"] == null ? undefined : json["workflowId"],
|
|
915
|
+
bindingsJson: json["bindingsJson"] == null ? undefined : json["bindingsJson"],
|
|
916
|
+
userPropertyBindings: json["userPropertyBindings"] == null ? undefined : json["userPropertyBindings"].map(PropertyBindingModelFromJSON),
|
|
917
|
+
project: json["project"] == null ? undefined : ProjectDbModelFromJSON(json["project"]),
|
|
918
|
+
appliedTo: json["appliedTo"] == null ? undefined : ProjectAppliedProfileModelFromJSON(json["appliedTo"])
|
|
919
|
+
};
|
|
920
|
+
}
|
|
921
|
+
|
|
922
|
+
// ../studioweb-sdk/generated/src/models/ProjectAppModel.ts
|
|
923
|
+
function ProjectAppModelFromJSON(json) {
|
|
924
|
+
return ProjectAppModelFromJSONTyped(json, false);
|
|
925
|
+
}
|
|
926
|
+
function ProjectAppModelFromJSONTyped(json, ignoreDiscriminator) {
|
|
927
|
+
if (json == null) {
|
|
928
|
+
return json;
|
|
929
|
+
}
|
|
930
|
+
return {
|
|
931
|
+
id: json["id"] == null ? undefined : json["id"],
|
|
932
|
+
projectId: json["projectId"] == null ? undefined : json["projectId"],
|
|
933
|
+
appId: json["appId"] == null ? undefined : json["appId"],
|
|
934
|
+
isFileSystemEnabled: json["isFileSystemEnabled"] == null ? undefined : json["isFileSystemEnabled"],
|
|
935
|
+
project: json["project"] == null ? undefined : ProjectDbModelFromJSON(json["project"])
|
|
936
|
+
};
|
|
937
|
+
}
|
|
938
|
+
|
|
939
|
+
// ../studioweb-sdk/generated/src/models/ProjectLockModel.ts
|
|
940
|
+
function ProjectLockModelFromJSON(json) {
|
|
941
|
+
return ProjectLockModelFromJSONTyped(json, false);
|
|
942
|
+
}
|
|
943
|
+
function ProjectLockModelFromJSONTyped(json, ignoreDiscriminator) {
|
|
944
|
+
if (json == null) {
|
|
945
|
+
return json;
|
|
946
|
+
}
|
|
947
|
+
return {
|
|
948
|
+
projectId: json["projectId"] == null ? undefined : json["projectId"],
|
|
949
|
+
key: json["key"] == null ? undefined : json["key"],
|
|
950
|
+
userId: json["userId"] == null ? undefined : json["userId"],
|
|
951
|
+
expirationDate: json["expirationDate"] == null ? undefined : new Date(json["expirationDate"]),
|
|
952
|
+
rowVersion: json["rowVersion"] == null ? undefined : json["rowVersion"],
|
|
953
|
+
project: json["project"] == null ? undefined : ProjectDbModelFromJSON(json["project"]),
|
|
954
|
+
solutionId: json["solutionId"] == null ? undefined : json["solutionId"]
|
|
955
|
+
};
|
|
956
|
+
}
|
|
957
|
+
|
|
958
|
+
// ../studioweb-sdk/generated/src/models/TestManagerMetadataModel.ts
|
|
959
|
+
function TestManagerMetadataModelFromJSON(json) {
|
|
960
|
+
return TestManagerMetadataModelFromJSONTyped(json, false);
|
|
961
|
+
}
|
|
962
|
+
function TestManagerMetadataModelFromJSONTyped(json, ignoreDiscriminator) {
|
|
963
|
+
if (json == null) {
|
|
964
|
+
return json;
|
|
965
|
+
}
|
|
966
|
+
return {
|
|
967
|
+
id: json["id"] == null ? undefined : json["id"],
|
|
968
|
+
studioWebProjectId: json["studioWebProjectId"] == null ? undefined : json["studioWebProjectId"],
|
|
969
|
+
project: json["project"] == null ? undefined : ProjectDbModelFromJSON(json["project"]),
|
|
970
|
+
testManagerProjectId: json["testManagerProjectId"] == null ? undefined : json["testManagerProjectId"],
|
|
971
|
+
creationTime: json["creationTime"] == null ? undefined : new Date(json["creationTime"])
|
|
972
|
+
};
|
|
973
|
+
}
|
|
974
|
+
|
|
975
|
+
// ../studioweb-sdk/generated/src/models/TargetFramework.ts
|
|
976
|
+
function TargetFrameworkFromJSON(json) {
|
|
977
|
+
return TargetFrameworkFromJSONTyped(json, false);
|
|
978
|
+
}
|
|
979
|
+
function TargetFrameworkFromJSONTyped(json, ignoreDiscriminator) {
|
|
980
|
+
return json;
|
|
981
|
+
}
|
|
982
|
+
|
|
983
|
+
// ../studioweb-sdk/generated/src/models/ProjectStatus.ts
|
|
984
|
+
function ProjectStatusFromJSON(json) {
|
|
985
|
+
return ProjectStatusFromJSONTyped(json, false);
|
|
986
|
+
}
|
|
987
|
+
function ProjectStatusFromJSONTyped(json, ignoreDiscriminator) {
|
|
988
|
+
return json;
|
|
989
|
+
}
|
|
990
|
+
|
|
991
|
+
// ../studioweb-sdk/generated/src/models/SharingPermissions.ts
|
|
992
|
+
function SharingPermissionsFromJSON(json) {
|
|
993
|
+
return SharingPermissionsFromJSONTyped(json, false);
|
|
994
|
+
}
|
|
995
|
+
function SharingPermissionsFromJSONTyped(json, ignoreDiscriminator) {
|
|
996
|
+
return json;
|
|
997
|
+
}
|
|
998
|
+
|
|
999
|
+
// ../studioweb-sdk/generated/src/models/SharedProject.ts
|
|
1000
|
+
function SharedProjectFromJSON(json) {
|
|
1001
|
+
return SharedProjectFromJSONTyped(json, false);
|
|
1002
|
+
}
|
|
1003
|
+
function SharedProjectFromJSONTyped(json, ignoreDiscriminator) {
|
|
1004
|
+
if (json == null) {
|
|
1005
|
+
return json;
|
|
1006
|
+
}
|
|
1007
|
+
return {
|
|
1008
|
+
id: json["id"] == null ? undefined : json["id"],
|
|
1009
|
+
projectId: json["projectId"] == null ? undefined : json["projectId"],
|
|
1010
|
+
entityId: json["entityId"] == null ? undefined : json["entityId"],
|
|
1011
|
+
organizationId: json["organizationId"] == null ? undefined : json["organizationId"],
|
|
1012
|
+
isHidden: json["isHidden"] == null ? undefined : json["isHidden"],
|
|
1013
|
+
creationTime: json["creationTime"] == null ? undefined : new Date(json["creationTime"]),
|
|
1014
|
+
isGroup: json["isGroup"] == null ? undefined : json["isGroup"],
|
|
1015
|
+
permissions: json["permissions"] == null ? undefined : SharingPermissionsFromJSON(json["permissions"]),
|
|
1016
|
+
project: json["project"] == null ? undefined : ProjectDbModelFromJSON(json["project"])
|
|
1017
|
+
};
|
|
1018
|
+
}
|
|
1019
|
+
|
|
1020
|
+
// ../studioweb-sdk/generated/src/models/UserMessageDbModel.ts
|
|
1021
|
+
function UserMessageDbModelFromJSON(json) {
|
|
1022
|
+
return UserMessageDbModelFromJSONTyped(json, false);
|
|
1023
|
+
}
|
|
1024
|
+
function UserMessageDbModelFromJSONTyped(json, ignoreDiscriminator) {
|
|
1025
|
+
if (json == null) {
|
|
1026
|
+
return json;
|
|
1027
|
+
}
|
|
1028
|
+
return {
|
|
1029
|
+
id: json["id"] == null ? undefined : json["id"],
|
|
1030
|
+
message: json["message"] == null ? undefined : json["message"],
|
|
1031
|
+
creationTime: json["creationTime"] == null ? undefined : new Date(json["creationTime"]),
|
|
1032
|
+
projectDbModelId: json["projectDbModelId"] == null ? undefined : json["projectDbModelId"],
|
|
1033
|
+
project: json["project"] == null ? undefined : ProjectDbModelFromJSON(json["project"])
|
|
1034
|
+
};
|
|
1035
|
+
}
|
|
1036
|
+
|
|
1037
|
+
// ../studioweb-sdk/generated/src/models/ProjectConnectionModel.ts
|
|
1038
|
+
function ProjectConnectionModelFromJSON(json) {
|
|
1039
|
+
return ProjectConnectionModelFromJSONTyped(json, false);
|
|
1040
|
+
}
|
|
1041
|
+
function ProjectConnectionModelFromJSONTyped(json, ignoreDiscriminator) {
|
|
1042
|
+
if (json == null) {
|
|
1043
|
+
return json;
|
|
1044
|
+
}
|
|
1045
|
+
return {
|
|
1046
|
+
connectionId: json["connectionId"] == null ? undefined : json["connectionId"],
|
|
1047
|
+
connector: json["connector"] == null ? undefined : json["connector"],
|
|
1048
|
+
projectId: json["projectId"] == null ? undefined : json["projectId"],
|
|
1049
|
+
project: json["project"] == null ? undefined : ProjectDbModelFromJSON(json["project"]),
|
|
1050
|
+
usedInWorkflow: json["usedInWorkflow"] == null ? undefined : json["usedInWorkflow"],
|
|
1051
|
+
usedInTrigger: json["usedInTrigger"] == null ? undefined : json["usedInTrigger"],
|
|
1052
|
+
workflowFileId: json["workflowFileId"] == null ? undefined : json["workflowFileId"]
|
|
1053
|
+
};
|
|
1054
|
+
}
|
|
1055
|
+
|
|
1056
|
+
// ../studioweb-sdk/generated/src/models/TriggerMetadataModel.ts
|
|
1057
|
+
function TriggerMetadataModelFromJSON(json) {
|
|
1058
|
+
return TriggerMetadataModelFromJSONTyped(json, false);
|
|
1059
|
+
}
|
|
1060
|
+
function TriggerMetadataModelFromJSONTyped(json, ignoreDiscriminator) {
|
|
1061
|
+
if (json == null) {
|
|
1062
|
+
return json;
|
|
1063
|
+
}
|
|
1064
|
+
return {
|
|
1065
|
+
projectId: json["projectId"] == null ? undefined : json["projectId"],
|
|
1066
|
+
connectionId: json["connectionId"] == null ? undefined : json["connectionId"],
|
|
1067
|
+
connection: json["connection"] == null ? undefined : ConnectionMetadataModelFromJSON(json["connection"]),
|
|
1068
|
+
projectConnection: json["projectConnection"] == null ? undefined : ProjectConnectionModelFromJSON(json["projectConnection"]),
|
|
1069
|
+
operation: json["operation"] == null ? undefined : json["operation"],
|
|
1070
|
+
triggerId: json["triggerId"] == null ? undefined : json["triggerId"],
|
|
1071
|
+
defaultDisplayName: json["defaultDisplayName"] == null ? undefined : json["defaultDisplayName"],
|
|
1072
|
+
displayName: json["displayName"] == null ? undefined : json["displayName"],
|
|
1073
|
+
project: json["project"] == null ? undefined : ProjectDbModelFromJSON(json["project"])
|
|
1074
|
+
};
|
|
1075
|
+
}
|
|
1076
|
+
|
|
1077
|
+
// ../studioweb-sdk/generated/src/models/ConnectionMetadataModel.ts
|
|
1078
|
+
function ConnectionMetadataModelFromJSON(json) {
|
|
1079
|
+
return ConnectionMetadataModelFromJSONTyped2(json, false);
|
|
1080
|
+
}
|
|
1081
|
+
function ConnectionMetadataModelFromJSONTyped2(json, ignoreDiscriminator) {
|
|
1082
|
+
if (json == null) {
|
|
1083
|
+
return json;
|
|
1084
|
+
}
|
|
1085
|
+
return {
|
|
1086
|
+
connectionId: json["connectionId"] == null ? undefined : json["connectionId"],
|
|
1087
|
+
connector: json["connector"] == null ? undefined : json["connector"],
|
|
1088
|
+
projects: json["projects"] == null ? undefined : json["projects"].map(ProjectDbModelFromJSON),
|
|
1089
|
+
triggers: json["triggers"] == null ? undefined : json["triggers"].map(TriggerMetadataModelFromJSON)
|
|
1090
|
+
};
|
|
1091
|
+
}
|
|
1092
|
+
|
|
1093
|
+
// ../studioweb-sdk/generated/src/models/ProjectMetadataModel.ts
|
|
1094
|
+
function ProjectMetadataModelFromJSON(json) {
|
|
1095
|
+
return ProjectMetadataModelFromJSONTyped(json, false);
|
|
1096
|
+
}
|
|
1097
|
+
function ProjectMetadataModelFromJSONTyped(json, ignoreDiscriminator) {
|
|
1098
|
+
if (json == null) {
|
|
1099
|
+
return json;
|
|
1100
|
+
}
|
|
1101
|
+
return {
|
|
1102
|
+
projectId: json["projectId"] == null ? undefined : json["projectId"],
|
|
1103
|
+
hasTestCases: json["hasTestCases"] == null ? undefined : json["hasTestCases"],
|
|
1104
|
+
mcIgnorableApplied: json["mcIgnorableApplied"] == null ? undefined : new Date(json["mcIgnorableApplied"]),
|
|
1105
|
+
lastScanDate: json["lastScanDate"] == null ? undefined : new Date(json["lastScanDate"]),
|
|
1106
|
+
project: json["project"] == null ? undefined : ProjectDbModelFromJSON(json["project"])
|
|
1107
|
+
};
|
|
1108
|
+
}
|
|
1109
|
+
|
|
1110
|
+
// ../studioweb-sdk/generated/src/models/PublishStatus.ts
|
|
1111
|
+
function PublishStatusFromJSON(json) {
|
|
1112
|
+
return PublishStatusFromJSONTyped(json, false);
|
|
1113
|
+
}
|
|
1114
|
+
function PublishStatusFromJSONTyped(json, ignoreDiscriminator) {
|
|
1115
|
+
return json;
|
|
1116
|
+
}
|
|
1117
|
+
|
|
1118
|
+
// ../studioweb-sdk/generated/src/models/PublishResultModel.ts
|
|
1119
|
+
function PublishResultModelFromJSON(json) {
|
|
1120
|
+
return PublishResultModelFromJSONTyped(json, false);
|
|
1121
|
+
}
|
|
1122
|
+
function PublishResultModelFromJSONTyped(json, ignoreDiscriminator) {
|
|
1123
|
+
if (json == null) {
|
|
1124
|
+
return json;
|
|
1125
|
+
}
|
|
1126
|
+
return {
|
|
1127
|
+
id: json["id"] == null ? undefined : json["id"],
|
|
1128
|
+
projectId: json["projectId"] == null ? undefined : json["projectId"],
|
|
1129
|
+
creationTime: json["creationTime"] == null ? undefined : new Date(json["creationTime"]),
|
|
1130
|
+
status: json["status"] == null ? undefined : PublishStatusFromJSON(json["status"]),
|
|
1131
|
+
message: json["message"] == null ? undefined : json["message"],
|
|
1132
|
+
tenantId: json["tenantId"] == null ? undefined : json["tenantId"],
|
|
1133
|
+
feedId: json["feedId"] == null ? undefined : json["feedId"],
|
|
1134
|
+
version: json["version"] == null ? undefined : json["version"],
|
|
1135
|
+
userId: json["userId"] == null ? undefined : json["userId"],
|
|
1136
|
+
project: json["project"] == null ? undefined : ProjectDbModelFromJSON(json["project"]),
|
|
1137
|
+
iconUrl: json["iconUrl"] == null ? undefined : json["iconUrl"]
|
|
1138
|
+
};
|
|
1139
|
+
}
|
|
1140
|
+
|
|
1141
|
+
// ../studioweb-sdk/generated/src/models/SapContext.ts
|
|
1142
|
+
function SapContextFromJSON(json) {
|
|
1143
|
+
return SapContextFromJSONTyped(json, false);
|
|
1144
|
+
}
|
|
1145
|
+
function SapContextFromJSONTyped(json, ignoreDiscriminator) {
|
|
1146
|
+
if (json == null) {
|
|
1147
|
+
return json;
|
|
1148
|
+
}
|
|
1149
|
+
return {
|
|
1150
|
+
id: json["id"] == null ? undefined : json["id"],
|
|
1151
|
+
projectId: json["projectId"] == null ? undefined : json["projectId"],
|
|
1152
|
+
tenantId: json["tenantId"] == null ? undefined : json["tenantId"],
|
|
1153
|
+
isPrimaryProject: json["isPrimaryProject"] == null ? undefined : json["isPrimaryProject"],
|
|
1154
|
+
externalProjectId: json["externalProjectId"] == null ? undefined : json["externalProjectId"],
|
|
1155
|
+
baseCallbackPath: json["baseCallbackPath"] == null ? undefined : json["baseCallbackPath"],
|
|
1156
|
+
project: json["project"] == null ? undefined : ProjectDbModelFromJSON(json["project"])
|
|
1157
|
+
};
|
|
1158
|
+
}
|
|
1159
|
+
|
|
1160
|
+
// ../studioweb-sdk/generated/src/models/ProjectPackageModel.ts
|
|
1161
|
+
function ProjectPackageModelFromJSON(json) {
|
|
1162
|
+
return ProjectPackageModelFromJSONTyped(json, false);
|
|
1163
|
+
}
|
|
1164
|
+
function ProjectPackageModelFromJSONTyped(json, ignoreDiscriminator) {
|
|
1165
|
+
if (json == null) {
|
|
1166
|
+
return json;
|
|
1167
|
+
}
|
|
1168
|
+
return {
|
|
1169
|
+
id: json["id"] == null ? undefined : json["id"],
|
|
1170
|
+
name: json["name"] == null ? undefined : json["name"],
|
|
1171
|
+
version: json["version"] == null ? undefined : json["version"],
|
|
1172
|
+
project: json["project"] == null ? undefined : ProjectDbModelFromJSON(json["project"])
|
|
1173
|
+
};
|
|
1174
|
+
}
|
|
1175
|
+
|
|
1176
|
+
// ../studioweb-sdk/generated/src/models/ProjectDbModel.ts
|
|
1177
|
+
function ProjectDbModelFromJSON(json) {
|
|
1178
|
+
return ProjectDbModelFromJSONTyped16(json, false);
|
|
1179
|
+
}
|
|
1180
|
+
function ProjectDbModelFromJSONTyped16(json, ignoreDiscriminator) {
|
|
1181
|
+
if (json == null) {
|
|
1182
|
+
return json;
|
|
1183
|
+
}
|
|
1184
|
+
return {
|
|
1185
|
+
id: json["id"] == null ? undefined : json["id"],
|
|
1186
|
+
designId: json["designId"] == null ? undefined : json["designId"],
|
|
1187
|
+
previousProjectId: json["previousProjectId"] == null ? undefined : json["previousProjectId"],
|
|
1188
|
+
userId: json["userId"] == null ? undefined : json["userId"],
|
|
1189
|
+
organisationId: json["organisationId"] == null ? undefined : json["organisationId"],
|
|
1190
|
+
name: json["name"] == null ? undefined : json["name"],
|
|
1191
|
+
solutionId: json["solutionId"] == null ? undefined : json["solutionId"],
|
|
1192
|
+
deletionDate: json["deletionDate"] == null ? undefined : new Date(json["deletionDate"]),
|
|
1193
|
+
status: json["status"] == null ? undefined : ProjectStatusFromJSON(json["status"]),
|
|
1194
|
+
fakeProjectTemplateEdit: json["fakeProjectTemplateEdit"] == null ? undefined : json["fakeProjectTemplateEdit"],
|
|
1195
|
+
isHidden: json["isHidden"] == null ? undefined : json["isHidden"],
|
|
1196
|
+
targetFramework: json["targetFramework"] == null ? undefined : TargetFrameworkFromJSON(json["targetFramework"]),
|
|
1197
|
+
projectType: json["projectType"] == null ? undefined : json["projectType"],
|
|
1198
|
+
creationTime: json["creationTime"] == null ? undefined : new Date(json["creationTime"]),
|
|
1199
|
+
lastModifiedTime: json["lastModifiedTime"] == null ? undefined : new Date(json["lastModifiedTime"]),
|
|
1200
|
+
expressionLanguage: json["expressionLanguage"] == null ? undefined : json["expressionLanguage"],
|
|
1201
|
+
nameLower: json["nameLower"] == null ? undefined : json["nameLower"],
|
|
1202
|
+
description: json["description"] == null ? undefined : json["description"],
|
|
1203
|
+
descriptionLower: json["descriptionLower"] == null ? undefined : json["descriptionLower"],
|
|
1204
|
+
jitVersion: json["jitVersion"] == null ? undefined : json["jitVersion"],
|
|
1205
|
+
dependencies: json["dependencies"] == null ? undefined : json["dependencies"].map(ProjectPackageModelFromJSON),
|
|
1206
|
+
pinDate: json["pinDate"] == null ? undefined : new Date(json["pinDate"]),
|
|
1207
|
+
lock: json["lock"] == null ? undefined : ProjectLockModelFromJSON(json["lock"]),
|
|
1208
|
+
hasTrigger: json["hasTrigger"] == null ? undefined : json["hasTrigger"],
|
|
1209
|
+
tenantId: json["tenantId"] == null ? undefined : json["tenantId"],
|
|
1210
|
+
sapContext: json["sapContext"] == null ? undefined : SapContextFromJSON(json["sapContext"]),
|
|
1211
|
+
rowVersion: json["rowVersion"] == null ? undefined : json["rowVersion"],
|
|
1212
|
+
disableAutoUpdateUntilDate: json["disableAutoUpdateUntilDate"] == null ? undefined : new Date(json["disableAutoUpdateUntilDate"]),
|
|
1213
|
+
structure: json["structure"] == null ? undefined : ProjectStructureFromJSON(json["structure"]),
|
|
1214
|
+
userMessage: json["userMessage"] == null ? undefined : UserMessageDbModelFromJSON(json["userMessage"]),
|
|
1215
|
+
triggerType: json["triggerType"] == null ? undefined : json["triggerType"],
|
|
1216
|
+
trigger: json["trigger"] == null ? undefined : TriggerMetadataModelFromJSON(json["trigger"]),
|
|
1217
|
+
connections: json["connections"] == null ? undefined : json["connections"].map(ConnectionMetadataModelFromJSON),
|
|
1218
|
+
pins: json["pins"] == null ? undefined : json["pins"].map(PinnedProjectFromJSON),
|
|
1219
|
+
bindingProfiles: json["bindingProfiles"] == null ? undefined : json["bindingProfiles"].map(UserBindingProfileModelFromJSON),
|
|
1220
|
+
lastAppliedProfileId: json["lastAppliedProfileId"] == null ? undefined : json["lastAppliedProfileId"],
|
|
1221
|
+
lastAppliedProfile: json["lastAppliedProfile"] == null ? undefined : UserBindingProfileModelFromJSON(json["lastAppliedProfile"]),
|
|
1222
|
+
hasDefaultName: json["hasDefaultName"] == null ? undefined : json["hasDefaultName"],
|
|
1223
|
+
projectAppliedProfiles: json["projectAppliedProfiles"] == null ? undefined : json["projectAppliedProfiles"].map(ProjectAppliedProfileModelFromJSON),
|
|
1224
|
+
projectConnections: json["projectConnections"] == null ? undefined : json["projectConnections"].map(ProjectConnectionModelFromJSON),
|
|
1225
|
+
additionalBindingProperties: json["additionalBindingProperties"] == null ? undefined : json["additionalBindingProperties"].map(AdditionalBindingPropertiesFromJSON),
|
|
1226
|
+
publishHistory: json["publishHistory"] == null ? undefined : json["publishHistory"].map(PublishResultModelFromJSON),
|
|
1227
|
+
projectAppMetadata: json["projectAppMetadata"] == null ? undefined : ProjectAppModelFromJSON(json["projectAppMetadata"]),
|
|
1228
|
+
testManagerMetadata: json["testManagerMetadata"] == null ? undefined : TestManagerMetadataModelFromJSON(json["testManagerMetadata"]),
|
|
1229
|
+
shares: json["shares"] == null ? undefined : json["shares"].map(SharedProjectFromJSON),
|
|
1230
|
+
metadata: json["metadata"] == null ? undefined : ProjectMetadataModelFromJSON(json["metadata"]),
|
|
1231
|
+
isPreview: json["isPreview"] == null ? undefined : json["isPreview"],
|
|
1232
|
+
errorList: json["errorList"] == null ? undefined : json["errorList"],
|
|
1233
|
+
requirePreprocessing: json["requirePreprocessing"] == null ? undefined : json["requirePreprocessing"],
|
|
1234
|
+
relativePath: json["relativePath"] == null ? undefined : json["relativePath"]
|
|
1235
|
+
};
|
|
1236
|
+
}
|
|
1237
|
+
|
|
1238
|
+
// ../studioweb-sdk/generated/src/models/AdditionalBindingProperties.ts
|
|
1239
|
+
function AdditionalBindingPropertiesFromJSON(json) {
|
|
1240
|
+
return AdditionalBindingPropertiesFromJSONTyped2(json, false);
|
|
1241
|
+
}
|
|
1242
|
+
function AdditionalBindingPropertiesFromJSONTyped2(json, ignoreDiscriminator) {
|
|
1243
|
+
if (json == null) {
|
|
1244
|
+
return json;
|
|
1245
|
+
}
|
|
1246
|
+
return {
|
|
1247
|
+
projectId: json["projectId"] == null ? undefined : json["projectId"],
|
|
1248
|
+
project: json["project"] == null ? undefined : ProjectDbModelFromJSON(json["project"]),
|
|
1249
|
+
workflowFileId: json["workflowFileId"] == null ? undefined : json["workflowFileId"],
|
|
1250
|
+
resourceType: json["resourceType"] == null ? undefined : json["resourceType"],
|
|
1251
|
+
resourceKey: json["resourceKey"] == null ? undefined : json["resourceKey"],
|
|
1252
|
+
purpose: json["purpose"] == null ? undefined : json["purpose"]
|
|
1253
|
+
};
|
|
1254
|
+
}
|
|
1255
|
+
// ../studioweb-sdk/generated/src/models/AdditionalBindingPropertiesDto.ts
|
|
1256
|
+
function AdditionalBindingPropertiesDtoFromJSON(json) {
|
|
1257
|
+
return AdditionalBindingPropertiesDtoFromJSONTyped(json, false);
|
|
1258
|
+
}
|
|
1259
|
+
function AdditionalBindingPropertiesDtoFromJSONTyped(json, ignoreDiscriminator) {
|
|
1260
|
+
if (json == null) {
|
|
1261
|
+
return json;
|
|
1262
|
+
}
|
|
1263
|
+
return {
|
|
1264
|
+
resourceType: json["resourceType"] == null ? undefined : json["resourceType"],
|
|
1265
|
+
resourceKey: json["resourceKey"] == null ? undefined : json["resourceKey"],
|
|
1266
|
+
purpose: json["purpose"] == null ? undefined : json["purpose"],
|
|
1267
|
+
workflowFileId: json["workflowFileId"] == null ? undefined : json["workflowFileId"]
|
|
1268
|
+
};
|
|
1269
|
+
}
|
|
1270
|
+
// ../studioweb-sdk/generated/src/models/AppUsageType.ts
|
|
1271
|
+
function AppUsageTypeFromJSON(json) {
|
|
1272
|
+
return AppUsageTypeFromJSONTyped(json, false);
|
|
1273
|
+
}
|
|
1274
|
+
function AppUsageTypeFromJSONTyped(json, ignoreDiscriminator) {
|
|
1275
|
+
return json;
|
|
1276
|
+
}
|
|
1277
|
+
// ../studioweb-sdk/generated/src/models/FileType.ts
|
|
1278
|
+
function FileTypeFromJSON(json) {
|
|
1279
|
+
return FileTypeFromJSONTyped(json, false);
|
|
1280
|
+
}
|
|
1281
|
+
function FileTypeFromJSONTyped(json, ignoreDiscriminator) {
|
|
1282
|
+
return json;
|
|
1283
|
+
}
|
|
1284
|
+
|
|
1285
|
+
// ../studioweb-sdk/generated/src/models/FileDto.ts
|
|
1286
|
+
function FileDtoFromJSON(json) {
|
|
1287
|
+
return FileDtoFromJSONTyped(json, false);
|
|
1288
|
+
}
|
|
1289
|
+
function FileDtoFromJSONTyped(json, ignoreDiscriminator) {
|
|
1290
|
+
if (json == null) {
|
|
1291
|
+
return json;
|
|
1292
|
+
}
|
|
1293
|
+
return {
|
|
1294
|
+
id: json["id"] == null ? undefined : json["id"],
|
|
1295
|
+
name: json["name"] == null ? undefined : json["name"],
|
|
1296
|
+
isMain: json["isMain"] == null ? undefined : json["isMain"],
|
|
1297
|
+
fileType: json["fileType"] == null ? undefined : FileTypeFromJSON(json["fileType"]),
|
|
1298
|
+
isEntryPoint: json["isEntryPoint"] == null ? undefined : json["isEntryPoint"],
|
|
1299
|
+
ignoredFromPublish: json["ignoredFromPublish"] == null ? undefined : json["ignoredFromPublish"],
|
|
1300
|
+
appFormId: json["appFormId"] == null ? undefined : json["appFormId"],
|
|
1301
|
+
externalAutomationId: json["externalAutomationId"] == null ? undefined : json["externalAutomationId"],
|
|
1302
|
+
testCaseId: json["testCaseId"] == null ? undefined : json["testCaseId"],
|
|
1303
|
+
contentSignature: json["contentSignature"] == null ? undefined : json["contentSignature"]
|
|
1304
|
+
};
|
|
1305
|
+
}
|
|
1306
|
+
// ../studioweb-sdk/generated/src/models/SpecialFolderType.ts
|
|
1307
|
+
function SpecialFolderTypeFromJSON(json) {
|
|
1308
|
+
return SpecialFolderTypeFromJSONTyped(json, false);
|
|
1309
|
+
}
|
|
1310
|
+
function SpecialFolderTypeFromJSONTyped(json, ignoreDiscriminator) {
|
|
1311
|
+
return json;
|
|
1312
|
+
}
|
|
1313
|
+
|
|
1314
|
+
// ../studioweb-sdk/generated/src/models/FolderDto.ts
|
|
1315
|
+
function FolderDtoFromJSON(json) {
|
|
1316
|
+
return FolderDtoFromJSONTyped(json, false);
|
|
1317
|
+
}
|
|
1318
|
+
function FolderDtoFromJSONTyped(json, ignoreDiscriminator) {
|
|
1319
|
+
if (json == null) {
|
|
1320
|
+
return json;
|
|
1321
|
+
}
|
|
1322
|
+
return {
|
|
1323
|
+
id: json["id"] == null ? undefined : json["id"],
|
|
1324
|
+
name: json["name"] == null ? undefined : json["name"],
|
|
1325
|
+
folders: json["folders"] == null ? undefined : json["folders"].map(FolderDtoFromJSON),
|
|
1326
|
+
files: json["files"] == null ? undefined : json["files"].map(FileDtoFromJSON),
|
|
1327
|
+
folderType: json["folderType"] == null ? undefined : SpecialFolderTypeFromJSON(json["folderType"])
|
|
1328
|
+
};
|
|
1329
|
+
}
|
|
1330
|
+
// ../studioweb-sdk/generated/src/models/MetadataConnectionDto.ts
|
|
1331
|
+
function MetadataConnectionDtoFromJSON(json) {
|
|
1332
|
+
return MetadataConnectionDtoFromJSONTyped(json, false);
|
|
1333
|
+
}
|
|
1334
|
+
function MetadataConnectionDtoFromJSONTyped(json, ignoreDiscriminator) {
|
|
1335
|
+
if (json == null) {
|
|
1336
|
+
return json;
|
|
1337
|
+
}
|
|
1338
|
+
return {
|
|
1339
|
+
connectionId: json["connectionId"] == null ? undefined : json["connectionId"],
|
|
1340
|
+
connector: json["connector"] == null ? undefined : json["connector"],
|
|
1341
|
+
purpose: json["purpose"] == null ? undefined : json["purpose"],
|
|
1342
|
+
workflowFileId: json["workflowFileId"] == null ? undefined : json["workflowFileId"]
|
|
1343
|
+
};
|
|
1344
|
+
}
|
|
1345
|
+
// ../studioweb-sdk/generated/src/models/MetadataTriggerDto.ts
|
|
1346
|
+
function MetadataTriggerDtoFromJSON(json) {
|
|
1347
|
+
return MetadataTriggerDtoFromJSONTyped(json, false);
|
|
1348
|
+
}
|
|
1349
|
+
function MetadataTriggerDtoFromJSONTyped(json, ignoreDiscriminator) {
|
|
1350
|
+
if (json == null) {
|
|
1351
|
+
return json;
|
|
1352
|
+
}
|
|
1353
|
+
return {
|
|
1354
|
+
connection: json["connection"] == null ? undefined : MetadataConnectionDtoFromJSON(json["connection"]),
|
|
1355
|
+
operation: json["operation"] == null ? undefined : json["operation"],
|
|
1356
|
+
triggerId: json["triggerId"] == null ? undefined : json["triggerId"],
|
|
1357
|
+
defaultDisplayName: json["defaultDisplayName"] == null ? undefined : json["defaultDisplayName"],
|
|
1358
|
+
displayName: json["displayName"] == null ? undefined : json["displayName"]
|
|
1359
|
+
};
|
|
1360
|
+
}
|
|
1361
|
+
// ../studioweb-sdk/generated/src/models/PackageDto.ts
|
|
1362
|
+
function PackageDtoFromJSON(json) {
|
|
1363
|
+
return PackageDtoFromJSONTyped(json, false);
|
|
1364
|
+
}
|
|
1365
|
+
function PackageDtoFromJSONTyped(json, ignoreDiscriminator) {
|
|
1366
|
+
if (json == null) {
|
|
1367
|
+
return json;
|
|
1368
|
+
}
|
|
1369
|
+
return {
|
|
1370
|
+
name: json["name"],
|
|
1371
|
+
version: json["version"],
|
|
1372
|
+
isRestricted: json["isRestricted"] == null ? undefined : json["isRestricted"]
|
|
1373
|
+
};
|
|
1374
|
+
}
|
|
1375
|
+
// ../studioweb-sdk/generated/src/models/TestManagerMetadataDto.ts
|
|
1376
|
+
function TestManagerMetadataDtoFromJSON(json) {
|
|
1377
|
+
return TestManagerMetadataDtoFromJSONTyped(json, false);
|
|
1378
|
+
}
|
|
1379
|
+
function TestManagerMetadataDtoFromJSONTyped(json, ignoreDiscriminator) {
|
|
1380
|
+
if (json == null) {
|
|
1381
|
+
return json;
|
|
1382
|
+
}
|
|
1383
|
+
return {
|
|
1384
|
+
testManagerProjectId: json["testManagerProjectId"] == null ? undefined : json["testManagerProjectId"],
|
|
1385
|
+
creationTime: json["creationTime"] == null ? undefined : new Date(json["creationTime"])
|
|
1386
|
+
};
|
|
1387
|
+
}
|
|
1388
|
+
|
|
1389
|
+
// ../studioweb-sdk/generated/src/models/TargetPlatform.ts
|
|
1390
|
+
function TargetPlatformFromJSON(json) {
|
|
1391
|
+
return TargetPlatformFromJSONTyped(json, false);
|
|
1392
|
+
}
|
|
1393
|
+
function TargetPlatformFromJSONTyped(json, ignoreDiscriminator) {
|
|
1394
|
+
return json;
|
|
1395
|
+
}
|
|
1396
|
+
|
|
1397
|
+
// ../studioweb-sdk/generated/src/models/ProjectErrorCode.ts
|
|
1398
|
+
function ProjectErrorCodeFromJSON(json) {
|
|
1399
|
+
return ProjectErrorCodeFromJSONTyped(json, false);
|
|
1400
|
+
}
|
|
1401
|
+
function ProjectErrorCodeFromJSONTyped(json, ignoreDiscriminator) {
|
|
1402
|
+
return json;
|
|
1403
|
+
}
|
|
1404
|
+
|
|
1405
|
+
// ../studioweb-sdk/generated/src/models/ProjectErrorInformation.ts
|
|
1406
|
+
function ProjectErrorInformationFromJSON(json) {
|
|
1407
|
+
return ProjectErrorInformationFromJSONTyped(json, false);
|
|
1408
|
+
}
|
|
1409
|
+
function ProjectErrorInformationFromJSONTyped(json, ignoreDiscriminator) {
|
|
1410
|
+
if (json == null) {
|
|
1411
|
+
return json;
|
|
1412
|
+
}
|
|
1413
|
+
return {
|
|
1414
|
+
errorCode: json["errorCode"] == null ? undefined : ProjectErrorCodeFromJSON(json["errorCode"]),
|
|
1415
|
+
metadata: json["metadata"] == null ? undefined : json["metadata"],
|
|
1416
|
+
errorMessage: json["errorMessage"] == null ? undefined : json["errorMessage"],
|
|
1417
|
+
locationId: json["locationId"] == null ? undefined : json["locationId"],
|
|
1418
|
+
isSpecialLocation: json["isSpecialLocation"] == null ? undefined : json["isSpecialLocation"]
|
|
1419
|
+
};
|
|
1420
|
+
}
|
|
1421
|
+
|
|
1422
|
+
// ../studioweb-sdk/generated/src/models/SapContextDto.ts
|
|
1423
|
+
function SapContextDtoFromJSON(json) {
|
|
1424
|
+
return SapContextDtoFromJSONTyped(json, false);
|
|
1425
|
+
}
|
|
1426
|
+
function SapContextDtoFromJSONTyped(json, ignoreDiscriminator) {
|
|
1427
|
+
if (json == null) {
|
|
1428
|
+
return json;
|
|
1429
|
+
}
|
|
1430
|
+
return {
|
|
1431
|
+
tenantId: json["tenantId"] == null ? undefined : json["tenantId"],
|
|
1432
|
+
isPrimaryProject: json["isPrimaryProject"] == null ? undefined : json["isPrimaryProject"],
|
|
1433
|
+
externalProjectId: json["externalProjectId"] == null ? undefined : json["externalProjectId"]
|
|
1434
|
+
};
|
|
1435
|
+
}
|
|
1436
|
+
|
|
1437
|
+
// ../studioweb-sdk/generated/src/models/PreviewProjectDto.ts
|
|
1438
|
+
function PreviewProjectDtoFromJSON(json) {
|
|
1439
|
+
return PreviewProjectDtoFromJSONTyped(json, false);
|
|
1440
|
+
}
|
|
1441
|
+
function PreviewProjectDtoFromJSONTyped(json, ignoreDiscriminator) {
|
|
1442
|
+
if (json == null) {
|
|
1443
|
+
return json;
|
|
1444
|
+
}
|
|
1445
|
+
return {
|
|
1446
|
+
id: json["id"] == null ? undefined : json["id"],
|
|
1447
|
+
designId: json["designId"] == null ? undefined : json["designId"],
|
|
1448
|
+
expressionLanguage: json["expressionLanguage"] == null ? undefined : json["expressionLanguage"],
|
|
1449
|
+
projectType: json["projectType"] == null ? undefined : json["projectType"],
|
|
1450
|
+
name: json["name"] == null ? undefined : json["name"],
|
|
1451
|
+
description: json["description"] == null ? undefined : json["description"],
|
|
1452
|
+
tenantId: json["tenantId"] == null ? undefined : json["tenantId"],
|
|
1453
|
+
status: json["status"] == null ? undefined : ProjectStatusFromJSON(json["status"]),
|
|
1454
|
+
message: json["message"] == null ? undefined : json["message"],
|
|
1455
|
+
lastModifiedTime: json["lastModifiedTime"] == null ? undefined : new Date(json["lastModifiedTime"]),
|
|
1456
|
+
pinDate: json["pinDate"] == null ? undefined : new Date(json["pinDate"]),
|
|
1457
|
+
triggerType: json["triggerType"] == null ? undefined : json["triggerType"],
|
|
1458
|
+
trigger: json["trigger"] == null ? undefined : MetadataTriggerDtoFromJSON(json["trigger"]),
|
|
1459
|
+
connections: json["connections"] == null ? undefined : json["connections"].map(MetadataConnectionDtoFromJSON),
|
|
1460
|
+
lockedBy: json["lockedBy"] == null ? undefined : json["lockedBy"],
|
|
1461
|
+
isSharedByMe: json["isSharedByMe"] == null ? undefined : json["isSharedByMe"],
|
|
1462
|
+
isSharedWithMe: json["isSharedWithMe"] == null ? undefined : json["isSharedWithMe"],
|
|
1463
|
+
projectAppId: json["projectAppId"] == null ? undefined : json["projectAppId"],
|
|
1464
|
+
isSwFileSystemEnabledForApps: json["isSwFileSystemEnabledForApps"] == null ? undefined : json["isSwFileSystemEnabledForApps"],
|
|
1465
|
+
ownerId: json["ownerId"] == null ? undefined : json["ownerId"],
|
|
1466
|
+
sapContext: json["sapContext"] == null ? undefined : SapContextDtoFromJSON(json["sapContext"]),
|
|
1467
|
+
hasDefaultName: json["hasDefaultName"] == null ? undefined : json["hasDefaultName"],
|
|
1468
|
+
errorList: json["errorList"] == null ? undefined : json["errorList"].map(ProjectErrorInformationFromJSON),
|
|
1469
|
+
solutionId: json["solutionId"] == null ? undefined : json["solutionId"],
|
|
1470
|
+
testManagerMetadata: json["testManagerMetadata"] == null ? undefined : TestManagerMetadataDtoFromJSON(json["testManagerMetadata"]),
|
|
1471
|
+
isPreview: json["isPreview"] == null ? undefined : json["isPreview"],
|
|
1472
|
+
lastPublishedVersion: json["lastPublishedVersion"] == null ? undefined : PublishResultModelFromJSON(json["lastPublishedVersion"]),
|
|
1473
|
+
publishedToFeeds: json["publishedToFeeds"] == null ? undefined : json["publishedToFeeds"],
|
|
1474
|
+
sortIndex: json["sortIndex"] == null ? undefined : json["sortIndex"],
|
|
1475
|
+
hasTestCases: json["hasTestCases"] == null ? undefined : json["hasTestCases"],
|
|
1476
|
+
isApp: json["isApp"] == null ? undefined : json["isApp"],
|
|
1477
|
+
targetPlatform: json["targetPlatform"] == null ? undefined : TargetPlatformFromJSON(json["targetPlatform"])
|
|
1478
|
+
};
|
|
1479
|
+
}
|
|
1480
|
+
// ../studioweb-sdk/generated/src/models/SolutionStatus.ts
|
|
1481
|
+
function SolutionStatusFromJSON(json) {
|
|
1482
|
+
return SolutionStatusFromJSONTyped(json, false);
|
|
1483
|
+
}
|
|
1484
|
+
function SolutionStatusFromJSONTyped(json, ignoreDiscriminator) {
|
|
1485
|
+
return json;
|
|
1486
|
+
}
|
|
1487
|
+
|
|
1488
|
+
// ../studioweb-sdk/generated/src/models/SolutionPublishStatus.ts
|
|
1489
|
+
function SolutionPublishStatusFromJSON(json) {
|
|
1490
|
+
return SolutionPublishStatusFromJSONTyped(json, false);
|
|
1491
|
+
}
|
|
1492
|
+
function SolutionPublishStatusFromJSONTyped(json, ignoreDiscriminator) {
|
|
1493
|
+
return json;
|
|
1494
|
+
}
|
|
1495
|
+
|
|
1496
|
+
// ../studioweb-sdk/generated/src/models/PreviewSolutionDto.ts
|
|
1497
|
+
function PreviewSolutionDtoFromJSON(json) {
|
|
1498
|
+
return PreviewSolutionDtoFromJSONTyped(json, false);
|
|
1499
|
+
}
|
|
1500
|
+
function PreviewSolutionDtoFromJSONTyped(json, ignoreDiscriminator) {
|
|
1501
|
+
if (json == null) {
|
|
1502
|
+
return json;
|
|
1503
|
+
}
|
|
1504
|
+
return {
|
|
1505
|
+
id: json["id"] == null ? undefined : json["id"],
|
|
1506
|
+
name: json["name"] == null ? undefined : json["name"],
|
|
1507
|
+
ownerId: json["ownerId"] == null ? undefined : json["ownerId"],
|
|
1508
|
+
creationTime: json["creationTime"] == null ? undefined : new Date(json["creationTime"]),
|
|
1509
|
+
lastModifiedTime: json["lastModifiedTime"] == null ? undefined : new Date(json["lastModifiedTime"]),
|
|
1510
|
+
pinDate: json["pinDate"] == null ? undefined : new Date(json["pinDate"]),
|
|
1511
|
+
projects: json["projects"] == null ? undefined : json["projects"].map(PreviewProjectDtoFromJSON),
|
|
1512
|
+
sortIndex: json["sortIndex"] == null ? undefined : json["sortIndex"],
|
|
1513
|
+
hasTestCases: json["hasTestCases"] == null ? undefined : json["hasTestCases"],
|
|
1514
|
+
status: json["status"] == null ? undefined : SolutionStatusFromJSON(json["status"]),
|
|
1515
|
+
lockedBy: json["lockedBy"] == null ? undefined : json["lockedBy"],
|
|
1516
|
+
isSharedByMe: json["isSharedByMe"] == null ? undefined : json["isSharedByMe"],
|
|
1517
|
+
isSharedWithMe: json["isSharedWithMe"] == null ? undefined : json["isSharedWithMe"],
|
|
1518
|
+
permissions: json["permissions"] == null ? undefined : SharingPermissionsFromJSON(json["permissions"]),
|
|
1519
|
+
publishStatus: json["publishStatus"] == null ? undefined : SolutionPublishStatusFromJSON(json["publishStatus"])
|
|
1520
|
+
};
|
|
1521
|
+
}
|
|
1522
|
+
// ../studioweb-sdk/generated/src/models/WorkflowUiState.ts
|
|
1523
|
+
function WorkflowUiStateFromJSON(json) {
|
|
1524
|
+
return WorkflowUiStateFromJSONTyped(json, false);
|
|
1525
|
+
}
|
|
1526
|
+
function WorkflowUiStateFromJSONTyped(json, ignoreDiscriminator) {
|
|
1527
|
+
if (json == null) {
|
|
1528
|
+
return json;
|
|
1529
|
+
}
|
|
1530
|
+
return {
|
|
1531
|
+
id: json["id"] == null ? undefined : json["id"],
|
|
1532
|
+
workflowId: json["workflowId"] == null ? undefined : json["workflowId"],
|
|
1533
|
+
json: json["json"] == null ? undefined : json["json"],
|
|
1534
|
+
projectId: json["projectId"] == null ? undefined : json["projectId"]
|
|
1535
|
+
};
|
|
1536
|
+
}
|
|
1537
|
+
|
|
1538
|
+
// ../studioweb-sdk/generated/src/models/ProjectDto.ts
|
|
1539
|
+
function ProjectDtoFromJSON(json) {
|
|
1540
|
+
return ProjectDtoFromJSONTyped(json, false);
|
|
1541
|
+
}
|
|
1542
|
+
function ProjectDtoFromJSONTyped(json, ignoreDiscriminator) {
|
|
1543
|
+
if (json == null) {
|
|
1544
|
+
return json;
|
|
1545
|
+
}
|
|
1546
|
+
return {
|
|
1547
|
+
id: json["id"] == null ? undefined : json["id"],
|
|
1548
|
+
designId: json["designId"] == null ? undefined : json["designId"],
|
|
1549
|
+
expressionLanguage: json["expressionLanguage"] == null ? undefined : json["expressionLanguage"],
|
|
1550
|
+
projectType: json["projectType"] == null ? undefined : json["projectType"],
|
|
1551
|
+
name: json["name"] == null ? undefined : json["name"],
|
|
1552
|
+
description: json["description"] == null ? undefined : json["description"],
|
|
1553
|
+
tenantId: json["tenantId"] == null ? undefined : json["tenantId"],
|
|
1554
|
+
status: json["status"] == null ? undefined : ProjectStatusFromJSON(json["status"]),
|
|
1555
|
+
message: json["message"] == null ? undefined : json["message"],
|
|
1556
|
+
lastModifiedTime: json["lastModifiedTime"] == null ? undefined : new Date(json["lastModifiedTime"]),
|
|
1557
|
+
pinDate: json["pinDate"] == null ? undefined : new Date(json["pinDate"]),
|
|
1558
|
+
triggerType: json["triggerType"] == null ? undefined : json["triggerType"],
|
|
1559
|
+
trigger: json["trigger"] == null ? undefined : MetadataTriggerDtoFromJSON(json["trigger"]),
|
|
1560
|
+
connections: json["connections"] == null ? undefined : json["connections"].map(MetadataConnectionDtoFromJSON),
|
|
1561
|
+
lockedBy: json["lockedBy"] == null ? undefined : json["lockedBy"],
|
|
1562
|
+
isSharedByMe: json["isSharedByMe"] == null ? undefined : json["isSharedByMe"],
|
|
1563
|
+
isSharedWithMe: json["isSharedWithMe"] == null ? undefined : json["isSharedWithMe"],
|
|
1564
|
+
projectAppId: json["projectAppId"] == null ? undefined : json["projectAppId"],
|
|
1565
|
+
isSwFileSystemEnabledForApps: json["isSwFileSystemEnabledForApps"] == null ? undefined : json["isSwFileSystemEnabledForApps"],
|
|
1566
|
+
ownerId: json["ownerId"] == null ? undefined : json["ownerId"],
|
|
1567
|
+
sapContext: json["sapContext"] == null ? undefined : SapContextDtoFromJSON(json["sapContext"]),
|
|
1568
|
+
hasDefaultName: json["hasDefaultName"] == null ? undefined : json["hasDefaultName"],
|
|
1569
|
+
errorList: json["errorList"] == null ? undefined : json["errorList"].map(ProjectErrorInformationFromJSON),
|
|
1570
|
+
solutionId: json["solutionId"] == null ? undefined : json["solutionId"],
|
|
1571
|
+
testManagerMetadata: json["testManagerMetadata"] == null ? undefined : TestManagerMetadataDtoFromJSON(json["testManagerMetadata"]),
|
|
1572
|
+
isPreview: json["isPreview"] == null ? undefined : json["isPreview"],
|
|
1573
|
+
lastPublishedVersion: json["lastPublishedVersion"] == null ? undefined : PublishResultModelFromJSON(json["lastPublishedVersion"]),
|
|
1574
|
+
publishedToFeeds: json["publishedToFeeds"] == null ? undefined : json["publishedToFeeds"],
|
|
1575
|
+
sortIndex: json["sortIndex"] == null ? undefined : json["sortIndex"],
|
|
1576
|
+
hasTestCases: json["hasTestCases"] == null ? undefined : json["hasTestCases"],
|
|
1577
|
+
isApp: json["isApp"] == null ? undefined : json["isApp"],
|
|
1578
|
+
targetPlatform: json["targetPlatform"] == null ? undefined : TargetPlatformFromJSON(json["targetPlatform"]),
|
|
1579
|
+
creationTime: json["creationTime"] == null ? undefined : new Date(json["creationTime"]),
|
|
1580
|
+
userId: json["userId"] == null ? undefined : json["userId"],
|
|
1581
|
+
rootFolder: json["rootFolder"] == null ? undefined : FolderDtoFromJSON(json["rootFolder"]),
|
|
1582
|
+
dependencies: json["dependencies"] == null ? undefined : json["dependencies"].map(PackageDtoFromJSON),
|
|
1583
|
+
uiStateWorkflows: json["uiStateWorkflows"] == null ? undefined : json["uiStateWorkflows"].map(WorkflowUiStateFromJSON),
|
|
1584
|
+
hasTrigger: json["hasTrigger"] == null ? undefined : json["hasTrigger"],
|
|
1585
|
+
disableAutoUpdate: json["disableAutoUpdate"] == null ? undefined : json["disableAutoUpdate"],
|
|
1586
|
+
userAccessStatus: json["userAccessStatus"] == null ? undefined : AccessStatusFromJSON(json["userAccessStatus"]),
|
|
1587
|
+
hasUnsavedEdits: json["hasUnsavedEdits"] == null ? undefined : json["hasUnsavedEdits"],
|
|
1588
|
+
projectJson: json["projectJson"] == null ? undefined : json["projectJson"],
|
|
1589
|
+
isReadOnly: json["isReadOnly"] == null ? undefined : json["isReadOnly"],
|
|
1590
|
+
version: json["version"] == null ? undefined : json["version"],
|
|
1591
|
+
additionalBindingProperties: json["additionalBindingProperties"] == null ? undefined : json["additionalBindingProperties"].map(AdditionalBindingPropertiesDtoFromJSON),
|
|
1592
|
+
workflowsWithErrors: json["workflowsWithErrors"] == null ? undefined : json["workflowsWithErrors"],
|
|
1593
|
+
requirePreprocessing: json["requirePreprocessing"] == null ? undefined : json["requirePreprocessing"],
|
|
1594
|
+
permissions: json["permissions"] == null ? undefined : SharingPermissionsFromJSON(json["permissions"]),
|
|
1595
|
+
projectSubType: json["projectSubType"] == null ? undefined : json["projectSubType"],
|
|
1596
|
+
appUsageType: json["appUsageType"] == null ? undefined : AppUsageTypeFromJSON(json["appUsageType"]),
|
|
1597
|
+
parentProjectId: json["parentProjectId"] == null ? undefined : json["parentProjectId"],
|
|
1598
|
+
jitVersion: json["jitVersion"] == null ? undefined : json["jitVersion"]
|
|
1599
|
+
};
|
|
1600
|
+
}
|
|
1601
|
+
// ../studioweb-sdk/generated/src/models/SolutionAndProjectSearchModelDto.ts
|
|
1602
|
+
function SolutionAndProjectSearchModelDtoFromJSON(json) {
|
|
1603
|
+
return SolutionAndProjectSearchModelDtoFromJSONTyped(json, false);
|
|
1604
|
+
}
|
|
1605
|
+
function SolutionAndProjectSearchModelDtoFromJSONTyped(json, ignoreDiscriminator) {
|
|
1606
|
+
if (json == null) {
|
|
1607
|
+
return json;
|
|
1608
|
+
}
|
|
1609
|
+
return {
|
|
1610
|
+
solutions: json["solutions"] == null ? undefined : json["solutions"].map(PreviewSolutionDtoFromJSON),
|
|
1611
|
+
standaloneProjects: json["standaloneProjects"] == null ? undefined : json["standaloneProjects"].map(PreviewProjectDtoFromJSON),
|
|
1612
|
+
totalCount: json["totalCount"] == null ? undefined : json["totalCount"]
|
|
1613
|
+
};
|
|
1614
|
+
}
|
|
1615
|
+
// ../studioweb-sdk/generated/src/models/SolutionDto.ts
|
|
1616
|
+
function SolutionDtoFromJSON(json) {
|
|
1617
|
+
return SolutionDtoFromJSONTyped(json, false);
|
|
1618
|
+
}
|
|
1619
|
+
function SolutionDtoFromJSONTyped(json, ignoreDiscriminator) {
|
|
1620
|
+
if (json == null) {
|
|
1621
|
+
return json;
|
|
1622
|
+
}
|
|
1623
|
+
return {
|
|
1624
|
+
id: json["id"] == null ? undefined : json["id"],
|
|
1625
|
+
name: json["name"] == null ? undefined : json["name"],
|
|
1626
|
+
description: json["description"] == null ? undefined : json["description"],
|
|
1627
|
+
userId: json["userId"] == null ? undefined : json["userId"],
|
|
1628
|
+
organizationId: json["organizationId"] == null ? undefined : json["organizationId"],
|
|
1629
|
+
status: json["status"] == null ? undefined : SolutionStatusFromJSON(json["status"]),
|
|
1630
|
+
projects: json["projects"] == null ? undefined : json["projects"].map(ProjectDtoFromJSON),
|
|
1631
|
+
isSharedWithMe: json["isSharedWithMe"] == null ? undefined : json["isSharedWithMe"],
|
|
1632
|
+
isSharedByMe: json["isSharedByMe"] == null ? undefined : json["isSharedByMe"],
|
|
1633
|
+
permissions: json["permissions"] == null ? undefined : SharingPermissionsFromJSON(json["permissions"]),
|
|
1634
|
+
lastModifiedTime: json["lastModifiedTime"] == null ? undefined : new Date(json["lastModifiedTime"]),
|
|
1635
|
+
resourcesLastModifiedTime: json["resourcesLastModifiedTime"] == null ? undefined : new Date(json["resourcesLastModifiedTime"]),
|
|
1636
|
+
hasDraftEdits: json["hasDraftEdits"] == null ? undefined : json["hasDraftEdits"],
|
|
1637
|
+
publishStatus: json["publishStatus"] == null ? undefined : SolutionPublishStatusFromJSON(json["publishStatus"]),
|
|
1638
|
+
lastAccessedTenantId: json["lastAccessedTenantId"] == null ? undefined : json["lastAccessedTenantId"],
|
|
1639
|
+
automationHubIdeaUrl: json["automationHubIdeaUrl"] == null ? undefined : json["automationHubIdeaUrl"]
|
|
1640
|
+
};
|
|
1641
|
+
}
|
|
1642
|
+
// ../studioweb-sdk/generated/src/apis/SolutionApi.ts
|
|
1643
|
+
class SolutionApi extends BaseAPI2 {
|
|
1644
|
+
async solutionGetSolutionRaw(requestParameters, initOverrides) {
|
|
1645
|
+
if (requestParameters["solutionId"] == null) {
|
|
1646
|
+
throw new RequiredError("solutionId", 'Required parameter "solutionId" was null or undefined when calling solutionGetSolution().');
|
|
1647
|
+
}
|
|
1648
|
+
const queryParameters = {};
|
|
1649
|
+
if (requestParameters["includeReconciliationContext"] != null) {
|
|
1650
|
+
queryParameters["includeReconciliationContext"] = requestParameters["includeReconciliationContext"];
|
|
1651
|
+
}
|
|
1652
|
+
if (requestParameters["apiVersion"] != null) {
|
|
1653
|
+
queryParameters["api-version"] = requestParameters["apiVersion"];
|
|
1654
|
+
}
|
|
1655
|
+
const headerParameters = {};
|
|
1656
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
1657
|
+
const token = this.configuration.accessToken;
|
|
1658
|
+
const tokenString = await token("Bearer", []);
|
|
1659
|
+
if (tokenString) {
|
|
1660
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
1661
|
+
}
|
|
1662
|
+
}
|
|
1663
|
+
let urlPath = `/api/Solution/{solutionId}`;
|
|
1664
|
+
urlPath = urlPath.replace(`{${"solutionId"}}`, encodeURIComponent(String(requestParameters["solutionId"])));
|
|
1665
|
+
const response = await this.request({
|
|
1666
|
+
path: urlPath,
|
|
1667
|
+
method: "GET",
|
|
1668
|
+
headers: headerParameters,
|
|
1669
|
+
query: queryParameters
|
|
1670
|
+
}, initOverrides);
|
|
1671
|
+
return new JSONApiResponse(response, (jsonValue) => SolutionDtoFromJSON(jsonValue));
|
|
1672
|
+
}
|
|
1673
|
+
async solutionGetSolution(requestParameters, initOverrides) {
|
|
1674
|
+
const response = await this.solutionGetSolutionRaw(requestParameters, initOverrides);
|
|
1675
|
+
return await response.value();
|
|
1676
|
+
}
|
|
1677
|
+
async solutionImportSolutionRaw(requestParameters, initOverrides) {
|
|
1678
|
+
if (requestParameters["uploadFile"] == null) {
|
|
1679
|
+
throw new RequiredError("uploadFile", 'Required parameter "uploadFile" was null or undefined when calling solutionImportSolution().');
|
|
1680
|
+
}
|
|
1681
|
+
const queryParameters = {};
|
|
1682
|
+
if (requestParameters["apiVersion"] != null) {
|
|
1683
|
+
queryParameters["api-version"] = requestParameters["apiVersion"];
|
|
1684
|
+
}
|
|
1685
|
+
const headerParameters = {};
|
|
1686
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
1687
|
+
const token = this.configuration.accessToken;
|
|
1688
|
+
const tokenString = await token("Bearer", []);
|
|
1689
|
+
if (tokenString) {
|
|
1690
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
1691
|
+
}
|
|
1692
|
+
}
|
|
1693
|
+
const consumes = [
|
|
1694
|
+
{ contentType: "multipart/form-data" }
|
|
1695
|
+
];
|
|
1696
|
+
const canConsumeForm2 = canConsumeForm(consumes);
|
|
1697
|
+
let formParams;
|
|
1698
|
+
let useForm = false;
|
|
1699
|
+
useForm = canConsumeForm2;
|
|
1700
|
+
if (useForm) {
|
|
1701
|
+
formParams = new FormData;
|
|
1702
|
+
} else {
|
|
1703
|
+
formParams = new URLSearchParams;
|
|
1704
|
+
}
|
|
1705
|
+
if (requestParameters["uploadFile"] != null) {
|
|
1706
|
+
formParams.append("uploadFile", requestParameters["uploadFile"]);
|
|
1707
|
+
}
|
|
1708
|
+
if (requestParameters["isHidden"] != null) {
|
|
1709
|
+
formParams.append("isHidden", requestParameters["isHidden"]);
|
|
1710
|
+
}
|
|
1711
|
+
if (requestParameters["createSnapshot"] != null) {
|
|
1712
|
+
formParams.append("createSnapshot", requestParameters["createSnapshot"]);
|
|
1713
|
+
}
|
|
1714
|
+
let urlPath = `/api/Solution/Import`;
|
|
1715
|
+
const response = await this.request({
|
|
1716
|
+
path: urlPath,
|
|
1717
|
+
method: "POST",
|
|
1718
|
+
headers: headerParameters,
|
|
1719
|
+
query: queryParameters,
|
|
1720
|
+
body: formParams
|
|
1721
|
+
}, initOverrides);
|
|
1722
|
+
return new JSONApiResponse(response, (jsonValue) => SolutionDtoFromJSON(jsonValue));
|
|
1723
|
+
}
|
|
1724
|
+
async solutionImportSolution(requestParameters, initOverrides) {
|
|
1725
|
+
const response = await this.solutionImportSolutionRaw(requestParameters, initOverrides);
|
|
1726
|
+
return await response.value();
|
|
1727
|
+
}
|
|
1728
|
+
async solutionOverwriteSolutionRaw(requestParameters, initOverrides) {
|
|
1729
|
+
if (requestParameters["solutionId"] == null) {
|
|
1730
|
+
throw new RequiredError("solutionId", 'Required parameter "solutionId" was null or undefined when calling solutionOverwriteSolution().');
|
|
1731
|
+
}
|
|
1732
|
+
if (requestParameters["uploadFile"] == null) {
|
|
1733
|
+
throw new RequiredError("uploadFile", 'Required parameter "uploadFile" was null or undefined when calling solutionOverwriteSolution().');
|
|
1734
|
+
}
|
|
1735
|
+
const queryParameters = {};
|
|
1736
|
+
if (requestParameters["apiVersion"] != null) {
|
|
1737
|
+
queryParameters["api-version"] = requestParameters["apiVersion"];
|
|
1738
|
+
}
|
|
1739
|
+
const headerParameters = {};
|
|
1740
|
+
if (requestParameters["xUiPathSWLockKey"] != null) {
|
|
1741
|
+
headerParameters["x-UiPath-SW-LockKey"] = String(requestParameters["xUiPathSWLockKey"]);
|
|
1742
|
+
}
|
|
1743
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
1744
|
+
const token = this.configuration.accessToken;
|
|
1745
|
+
const tokenString = await token("Bearer", []);
|
|
1746
|
+
if (tokenString) {
|
|
1747
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
1748
|
+
}
|
|
1749
|
+
}
|
|
1750
|
+
const consumes = [
|
|
1751
|
+
{ contentType: "multipart/form-data" }
|
|
1752
|
+
];
|
|
1753
|
+
const canConsumeForm2 = canConsumeForm(consumes);
|
|
1754
|
+
let formParams;
|
|
1755
|
+
let useForm = false;
|
|
1756
|
+
useForm = canConsumeForm2;
|
|
1757
|
+
if (useForm) {
|
|
1758
|
+
formParams = new FormData;
|
|
1759
|
+
} else {
|
|
1760
|
+
formParams = new URLSearchParams;
|
|
1761
|
+
}
|
|
1762
|
+
if (requestParameters["uploadFile"] != null) {
|
|
1763
|
+
formParams.append("uploadFile", requestParameters["uploadFile"]);
|
|
1764
|
+
}
|
|
1765
|
+
if (requestParameters["isHidden"] != null) {
|
|
1766
|
+
formParams.append("isHidden", requestParameters["isHidden"]);
|
|
1767
|
+
}
|
|
1768
|
+
if (requestParameters["createSnapshot"] != null) {
|
|
1769
|
+
formParams.append("createSnapshot", requestParameters["createSnapshot"]);
|
|
1770
|
+
}
|
|
1771
|
+
let urlPath = `/api/Solution/{solutionId}/Overwrite`;
|
|
1772
|
+
urlPath = urlPath.replace(`{${"solutionId"}}`, encodeURIComponent(String(requestParameters["solutionId"])));
|
|
1773
|
+
const response = await this.request({
|
|
1774
|
+
path: urlPath,
|
|
1775
|
+
method: "POST",
|
|
1776
|
+
headers: headerParameters,
|
|
1777
|
+
query: queryParameters,
|
|
1778
|
+
body: formParams
|
|
1779
|
+
}, initOverrides);
|
|
1780
|
+
return new JSONApiResponse(response, (jsonValue) => SolutionDtoFromJSON(jsonValue));
|
|
1781
|
+
}
|
|
1782
|
+
async solutionOverwriteSolution(requestParameters, initOverrides) {
|
|
1783
|
+
const response = await this.solutionOverwriteSolutionRaw(requestParameters, initOverrides);
|
|
1784
|
+
return await response.value();
|
|
1785
|
+
}
|
|
1786
|
+
async solutionSearchSolutionsAndProjectsRaw(requestParameters, initOverrides) {
|
|
1787
|
+
const queryParameters = {};
|
|
1788
|
+
if (requestParameters["triggerTypes"] != null) {
|
|
1789
|
+
queryParameters["triggerTypes"] = requestParameters["triggerTypes"];
|
|
1790
|
+
}
|
|
1791
|
+
if (requestParameters["owners"] != null) {
|
|
1792
|
+
queryParameters["owners"] = requestParameters["owners"];
|
|
1793
|
+
}
|
|
1794
|
+
if (requestParameters["isPublished"] != null) {
|
|
1795
|
+
queryParameters["isPublished"] = requestParameters["isPublished"];
|
|
1796
|
+
}
|
|
1797
|
+
if (requestParameters["hasTestCases"] != null) {
|
|
1798
|
+
queryParameters["hasTestCases"] = requestParameters["hasTestCases"];
|
|
1799
|
+
}
|
|
1800
|
+
if (requestParameters["publishStatus"] != null) {
|
|
1801
|
+
queryParameters["publishStatus"] = requestParameters["publishStatus"];
|
|
1802
|
+
}
|
|
1803
|
+
if (requestParameters["validIds"] != null) {
|
|
1804
|
+
queryParameters["validIds"] = requestParameters["validIds"];
|
|
1805
|
+
}
|
|
1806
|
+
if (requestParameters["keywords"] != null) {
|
|
1807
|
+
queryParameters["keywords"] = requestParameters["keywords"];
|
|
1808
|
+
}
|
|
1809
|
+
if (requestParameters["connectors"] != null) {
|
|
1810
|
+
queryParameters["connectors"] = requestParameters["connectors"];
|
|
1811
|
+
}
|
|
1812
|
+
if (requestParameters["pagingOptionsLimit"] != null) {
|
|
1813
|
+
queryParameters["pagingOptions.limit"] = requestParameters["pagingOptionsLimit"];
|
|
1814
|
+
}
|
|
1815
|
+
if (requestParameters["pagingOptionsSkip"] != null) {
|
|
1816
|
+
queryParameters["pagingOptions.skip"] = requestParameters["pagingOptionsSkip"];
|
|
1817
|
+
}
|
|
1818
|
+
if (requestParameters["sortBy"] != null) {
|
|
1819
|
+
queryParameters["sortBy"] = requestParameters["sortBy"];
|
|
1820
|
+
}
|
|
1821
|
+
if (requestParameters["sortOrder"] != null) {
|
|
1822
|
+
queryParameters["sortOrder"] = requestParameters["sortOrder"];
|
|
1823
|
+
}
|
|
1824
|
+
if (requestParameters["apiVersion"] != null) {
|
|
1825
|
+
queryParameters["api-version"] = requestParameters["apiVersion"];
|
|
1826
|
+
}
|
|
1827
|
+
const headerParameters = {};
|
|
1828
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
1829
|
+
const token = this.configuration.accessToken;
|
|
1830
|
+
const tokenString = await token("Bearer", []);
|
|
1831
|
+
if (tokenString) {
|
|
1832
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
1833
|
+
}
|
|
1834
|
+
}
|
|
1835
|
+
let urlPath = `/api/Solution/SearchSolutionsAndProjects`;
|
|
1836
|
+
const response = await this.request({
|
|
1837
|
+
path: urlPath,
|
|
1838
|
+
method: "GET",
|
|
1839
|
+
headers: headerParameters,
|
|
1840
|
+
query: queryParameters
|
|
1841
|
+
}, initOverrides);
|
|
1842
|
+
return new JSONApiResponse(response, (jsonValue) => SolutionAndProjectSearchModelDtoFromJSON(jsonValue));
|
|
1843
|
+
}
|
|
1844
|
+
async solutionSearchSolutionsAndProjects(requestParameters = {}, initOverrides) {
|
|
1845
|
+
const response = await this.solutionSearchSolutionsAndProjectsRaw(requestParameters, initOverrides);
|
|
1846
|
+
return await response.value();
|
|
1847
|
+
}
|
|
1848
|
+
}
|
|
1849
|
+
// ../studioweb-sdk/src/client.ts
|
|
1850
|
+
function studioWebBasePath(config, organizationName) {
|
|
1851
|
+
return `${config.baseUrl}/${organizationName}/studio_/backend`;
|
|
1852
|
+
}
|
|
1853
|
+
function buildStudioWebConfiguration(config, organizationName) {
|
|
1854
|
+
const headers = {};
|
|
1855
|
+
if (config.tenantId) {
|
|
1856
|
+
headers["x-uipath-tenantid"] = config.tenantId;
|
|
1857
|
+
}
|
|
1858
|
+
return new Configuration2({
|
|
1859
|
+
basePath: studioWebBasePath(config, organizationName),
|
|
1860
|
+
accessToken: config.authToken,
|
|
1861
|
+
headers
|
|
1862
|
+
});
|
|
1863
|
+
}
|
|
1864
|
+
function createSolutionApi(config, organizationName) {
|
|
1865
|
+
return new SolutionApi(buildStudioWebConfiguration(config, organizationName));
|
|
1866
|
+
}
|
|
1867
|
+
// ../solution-sdk/src/studio-web-compat.ts
|
|
1868
|
+
var API_PROJECT_TYPES = new Set(["api", "apiautomation"]);
|
|
1869
|
+
|
|
1870
|
+
// ../solution-sdk/src/zip-utils.ts
|
|
1871
|
+
var import_ignore = __toESM(require_ignore(), 1);
|
|
1872
|
+
var DEFAULT_EXCLUDED_DIR_NAMES = new Set([
|
|
1873
|
+
".venv",
|
|
1874
|
+
"node_modules",
|
|
1875
|
+
"__pycache__",
|
|
1876
|
+
".git",
|
|
1877
|
+
".local",
|
|
1878
|
+
".flow-sdk",
|
|
1879
|
+
".flow-debug"
|
|
1880
|
+
]);
|
|
1881
|
+
var DEFAULT_EXCLUDED_FILE_PATTERNS = [
|
|
1882
|
+
/^\.env($|\..+)/
|
|
1883
|
+
];
|
|
1884
|
+
function isDefaultExcludedFileName(name) {
|
|
1885
|
+
for (const pattern of DEFAULT_EXCLUDED_FILE_PATTERNS) {
|
|
1886
|
+
if (pattern.test(name)) {
|
|
1887
|
+
return true;
|
|
1888
|
+
}
|
|
1889
|
+
}
|
|
1890
|
+
return false;
|
|
1891
|
+
}
|
|
1892
|
+
var UNMATCHABLE_RELATIVE_PATH = /^\.+$|^\.*\//;
|
|
1893
|
+
function isIgnoredByRules(fs, rules, fullPath, isDirectory) {
|
|
1894
|
+
if (!rules) {
|
|
1895
|
+
return false;
|
|
1896
|
+
}
|
|
1897
|
+
for (const rule of rules) {
|
|
1898
|
+
const rel = fs.path.relative(rule.baseDir, fullPath).replace(/\\/g, "/");
|
|
1899
|
+
if (!rel || UNMATCHABLE_RELATIVE_PATH.test(rel) || fs.path.isAbsolute(rel)) {
|
|
1900
|
+
continue;
|
|
1901
|
+
}
|
|
1902
|
+
if (rule.ignores(isDirectory ? `${rel}/` : rel)) {
|
|
1903
|
+
return true;
|
|
1904
|
+
}
|
|
1905
|
+
}
|
|
1906
|
+
return false;
|
|
1907
|
+
}
|
|
1908
|
+
async function collectTree(fs, dir, options = {}) {
|
|
1909
|
+
const files = [];
|
|
1910
|
+
const emptyDirs = [];
|
|
1911
|
+
const excluded = new Set(DEFAULT_EXCLUDED_DIR_NAMES);
|
|
1912
|
+
if (options.additionalExcludeDirs) {
|
|
1913
|
+
for (const name of options.additionalExcludeDirs) {
|
|
1914
|
+
excluded.add(name);
|
|
1915
|
+
}
|
|
1916
|
+
}
|
|
1917
|
+
async function walk(current, isRoot) {
|
|
1918
|
+
const entries = await fs.readdir(current);
|
|
1919
|
+
if (entries.length === 0) {
|
|
1920
|
+
if (!isRoot) {
|
|
1921
|
+
emptyDirs.push(current);
|
|
1922
|
+
}
|
|
1923
|
+
return;
|
|
1924
|
+
}
|
|
1925
|
+
for (const entryName of entries) {
|
|
1926
|
+
const fullPath = fs.path.join(current, entryName);
|
|
1927
|
+
const entryStat = await fs.stat(fullPath);
|
|
1928
|
+
if (entryStat?.isDirectory()) {
|
|
1929
|
+
if (excluded.has(entryName) || isIgnoredByRules(fs, options.ignoreRules, fullPath, true)) {
|
|
1930
|
+
continue;
|
|
1931
|
+
}
|
|
1932
|
+
await walk(fullPath, false);
|
|
1933
|
+
} else if (entryStat?.isFile()) {
|
|
1934
|
+
if (isDefaultExcludedFileName(entryName) || isIgnoredByRules(fs, options.ignoreRules, fullPath, false)) {
|
|
1935
|
+
continue;
|
|
1936
|
+
}
|
|
1937
|
+
files.push(fullPath);
|
|
1938
|
+
}
|
|
1939
|
+
}
|
|
1940
|
+
}
|
|
1941
|
+
await walk(dir, true);
|
|
1942
|
+
return { files, emptyDirs };
|
|
1943
|
+
}
|
|
1944
|
+
async function createZipFromDir2(fs, dir, options = {}) {
|
|
1945
|
+
const { files, emptyDirs } = await collectTree(fs, dir, options);
|
|
1946
|
+
const zippable = {};
|
|
1947
|
+
for (const filePath of files) {
|
|
1948
|
+
const relPath = fs.path.relative(dir, filePath).replace(/\\/g, "/");
|
|
1949
|
+
const data = await fs.readFile(filePath);
|
|
1950
|
+
if (data) {
|
|
1951
|
+
zippable[relPath] = new Uint8Array(data);
|
|
1952
|
+
}
|
|
1953
|
+
}
|
|
1954
|
+
for (const emptyDir of emptyDirs) {
|
|
1955
|
+
const relPath = fs.path.relative(dir, emptyDir).replace(/\\/g, "/");
|
|
1956
|
+
if (!relPath) {
|
|
1957
|
+
continue;
|
|
1958
|
+
}
|
|
1959
|
+
zippable[`${relPath}/`] = new Uint8Array(0);
|
|
1960
|
+
}
|
|
1961
|
+
return finalizeZip64(zipSync(zippable, { level: 6 }));
|
|
1962
|
+
}
|
|
1963
|
+
var EOCD_SIZE = 22;
|
|
1964
|
+
var EOCD_SIGNATURE = 101010256;
|
|
1965
|
+
var CD_HEADER_SIGNATURE = 33639248;
|
|
1966
|
+
var ZIP64_EOCD_SIGNATURE = 101075792;
|
|
1967
|
+
var ZIP64_EOCD_SIZE = 56;
|
|
1968
|
+
var ZIP64_LOCATOR_SIGNATURE = 117853008;
|
|
1969
|
+
var ZIP64_LOCATOR_SIZE = 20;
|
|
1970
|
+
var MAX_ZIP32_ENTRIES = 65535;
|
|
1971
|
+
var MAX_ZIP32_OFFSET = 4294967295;
|
|
1972
|
+
function finalizeZip64(zip) {
|
|
1973
|
+
const view = new DataView(zip.buffer, zip.byteOffset, zip.byteLength);
|
|
1974
|
+
const eocdStart = zip.byteLength - EOCD_SIZE;
|
|
1975
|
+
if (eocdStart < 0 || view.getUint32(eocdStart, true) !== EOCD_SIGNATURE) {
|
|
1976
|
+
throw new Error("Cannot finalize the solution archive: it does not end with an end-of-central-directory record.");
|
|
1977
|
+
}
|
|
1978
|
+
const cdSize = view.getUint32(eocdStart + 12, true);
|
|
1979
|
+
const cdOffset = view.getUint32(eocdStart + 16, true);
|
|
1980
|
+
const entryCount = countCentralDirectoryEntries(view, cdOffset, cdSize);
|
|
1981
|
+
if (entryCount <= MAX_ZIP32_ENTRIES) {
|
|
1982
|
+
return zip;
|
|
1983
|
+
}
|
|
1984
|
+
if (cdOffset >= MAX_ZIP32_OFFSET || zip.byteLength >= MAX_ZIP32_OFFSET) {
|
|
1985
|
+
throw new Error(`The solution archive is ${zip.byteLength} bytes, past the 4 GB limit this packer supports. Exclude large directories from the solution with a .uipignore file.`);
|
|
1986
|
+
}
|
|
1987
|
+
const tail = new Uint8Array(ZIP64_EOCD_SIZE + ZIP64_LOCATOR_SIZE + EOCD_SIZE);
|
|
1988
|
+
const tailView = new DataView(tail.buffer);
|
|
1989
|
+
const count = BigInt(entryCount);
|
|
1990
|
+
tailView.setUint32(0, ZIP64_EOCD_SIGNATURE, true);
|
|
1991
|
+
tailView.setBigUint64(4, BigInt(ZIP64_EOCD_SIZE - 12), true);
|
|
1992
|
+
tailView.setUint16(12, 45, true);
|
|
1993
|
+
tailView.setUint16(14, 45, true);
|
|
1994
|
+
tailView.setUint32(16, 0, true);
|
|
1995
|
+
tailView.setUint32(20, 0, true);
|
|
1996
|
+
tailView.setBigUint64(24, count, true);
|
|
1997
|
+
tailView.setBigUint64(32, count, true);
|
|
1998
|
+
tailView.setBigUint64(40, BigInt(cdSize), true);
|
|
1999
|
+
tailView.setBigUint64(48, BigInt(cdOffset), true);
|
|
2000
|
+
const locator = ZIP64_EOCD_SIZE;
|
|
2001
|
+
tailView.setUint32(locator, ZIP64_LOCATOR_SIGNATURE, true);
|
|
2002
|
+
tailView.setUint32(locator + 4, 0, true);
|
|
2003
|
+
tailView.setBigUint64(locator + 8, BigInt(eocdStart), true);
|
|
2004
|
+
tailView.setUint32(locator + 16, 1, true);
|
|
2005
|
+
const eocd = ZIP64_EOCD_SIZE + ZIP64_LOCATOR_SIZE;
|
|
2006
|
+
tailView.setUint32(eocd, EOCD_SIGNATURE, true);
|
|
2007
|
+
tailView.setUint16(eocd + 4, 0, true);
|
|
2008
|
+
tailView.setUint16(eocd + 6, 0, true);
|
|
2009
|
+
tailView.setUint16(eocd + 8, MAX_ZIP32_ENTRIES, true);
|
|
2010
|
+
tailView.setUint16(eocd + 10, MAX_ZIP32_ENTRIES, true);
|
|
2011
|
+
tailView.setUint32(eocd + 12, cdSize, true);
|
|
2012
|
+
tailView.setUint32(eocd + 16, cdOffset, true);
|
|
2013
|
+
tailView.setUint16(eocd + 20, 0, true);
|
|
2014
|
+
const out = new Uint8Array(eocdStart + tail.byteLength);
|
|
2015
|
+
out.set(zip.subarray(0, eocdStart), 0);
|
|
2016
|
+
out.set(tail, eocdStart);
|
|
2017
|
+
return out;
|
|
2018
|
+
}
|
|
2019
|
+
function countCentralDirectoryEntries(view, cdOffset, cdSize) {
|
|
2020
|
+
const end = cdOffset + cdSize;
|
|
2021
|
+
let position = cdOffset;
|
|
2022
|
+
let count = 0;
|
|
2023
|
+
while (position + 46 <= end && view.getUint32(position, true) === CD_HEADER_SIGNATURE) {
|
|
2024
|
+
const nameLength = view.getUint16(position + 28, true);
|
|
2025
|
+
const extraLength = view.getUint16(position + 30, true);
|
|
2026
|
+
const commentLength = view.getUint16(position + 32, true);
|
|
2027
|
+
position += 46 + nameLength + extraLength + commentLength;
|
|
2028
|
+
count++;
|
|
2029
|
+
}
|
|
2030
|
+
return count;
|
|
2031
|
+
}
|
|
2032
|
+
// ../solution-sdk/src/bundle-service.ts
|
|
2033
|
+
async function mirrorTree(fs, srcDir, relativeBase, destBaseDir, ignoreRules) {
|
|
2034
|
+
const { files, emptyDirs } = await collectTree(fs, srcDir, {
|
|
2035
|
+
ignoreRules
|
|
2036
|
+
});
|
|
2037
|
+
if (files.length === 0 && emptyDirs.length === 0) {
|
|
2038
|
+
const rootRel = fs.path.relative(relativeBase, srcDir);
|
|
2039
|
+
if (rootRel) {
|
|
2040
|
+
await fs.mkdir(fs.path.join(destBaseDir, rootRel));
|
|
2041
|
+
}
|
|
2042
|
+
return;
|
|
2043
|
+
}
|
|
2044
|
+
for (const f of files) {
|
|
2045
|
+
const relPath = fs.path.relative(relativeBase, f);
|
|
2046
|
+
const destPath = fs.path.join(destBaseDir, relPath);
|
|
2047
|
+
const data = await fs.readFile(f);
|
|
2048
|
+
if (data) {
|
|
2049
|
+
await fs.writeFile(destPath, data);
|
|
2050
|
+
} else {
|
|
2051
|
+
logger.warn(`Skipping empty or unreadable file: ${f}`);
|
|
2052
|
+
}
|
|
2053
|
+
}
|
|
2054
|
+
for (const dir of emptyDirs) {
|
|
2055
|
+
const relPath = fs.path.relative(relativeBase, dir);
|
|
2056
|
+
if (!relPath) {
|
|
2057
|
+
continue;
|
|
2058
|
+
}
|
|
2059
|
+
await fs.mkdir(fs.path.join(destBaseDir, relPath));
|
|
2060
|
+
}
|
|
2061
|
+
}
|
|
2062
|
+
async function buildSolutionPackageFromDir2(fs, solutionDir) {
|
|
2063
|
+
const absoluteSolutionDir = fs.path.resolve(solutionDir);
|
|
2064
|
+
const solutionName = fs.path.basename(absoluteSolutionDir) || "Solution";
|
|
2065
|
+
const tmpDir = fs.env.tmpdir();
|
|
2066
|
+
const stagingDir = fs.path.join(tmpDir, `.debug-solution-${Date.now()}`);
|
|
2067
|
+
await fs.mkdir(stagingDir);
|
|
2068
|
+
try {
|
|
2069
|
+
await mirrorTree(fs, absoluteSolutionDir, absoluteSolutionDir, stagingDir);
|
|
2070
|
+
const storagePath = fs.path.join(stagingDir, "SolutionStorage.json");
|
|
2071
|
+
const uipxFiles = (await fs.readdir(stagingDir)).filter((f) => f.endsWith(".uipx"));
|
|
2072
|
+
if (uipxFiles.length > 0) {
|
|
2073
|
+
const uipxFile = uipxFiles[0];
|
|
2074
|
+
const uipxContent = await fs.readFile(fs.path.join(stagingDir, uipxFile), "utf-8");
|
|
2075
|
+
if (!uipxContent) {
|
|
2076
|
+
throw new Error(`Could not read ${uipxFile}; unable to create SolutionStorage.json.`);
|
|
2077
|
+
}
|
|
2078
|
+
const [parseError, uipx] = catchError2(() => JSON.parse(uipxContent));
|
|
2079
|
+
if (parseError) {
|
|
2080
|
+
throw new Error(`Could not parse ${uipxFile}; unable to create SolutionStorage.json: ${parseError.message}`);
|
|
2081
|
+
}
|
|
2082
|
+
const storageJson = {
|
|
2083
|
+
SolutionId: uipx.SolutionId ?? crypto.randomUUID(),
|
|
2084
|
+
Projects: (uipx.Projects ?? []).map((p) => ({
|
|
2085
|
+
ProjectId: p.Id ?? crypto.randomUUID(),
|
|
2086
|
+
ProjectRelativePath: p.ProjectRelativePath ?? ""
|
|
2087
|
+
}))
|
|
2088
|
+
};
|
|
2089
|
+
await fs.writeFile(storagePath, JSON.stringify(storageJson));
|
|
2090
|
+
} else if (!await fs.exists(storagePath)) {
|
|
2091
|
+
throw new Error(`SolutionStorage.json is missing and no .uipx file was found in ${absoluteSolutionDir}. Run 'uip solution init' and add/import the project into a solution, or include a valid SolutionStorage.json before uploading or debugging.`);
|
|
2092
|
+
}
|
|
2093
|
+
const uisPath = fs.path.join(tmpDir, `${solutionName}-${Date.now()}.uis`);
|
|
2094
|
+
const zipData = await createZipFromDir2(fs, stagingDir);
|
|
2095
|
+
await fs.writeFile(uisPath, zipData);
|
|
2096
|
+
return uisPath;
|
|
2097
|
+
} finally {
|
|
2098
|
+
await fs.rm(stagingDir).catch(() => {});
|
|
2099
|
+
}
|
|
2100
|
+
}
|
|
2101
|
+
// ../solution-sdk/src/project-debug-status.ts
|
|
2102
|
+
var SUCCEEDED = "creationsucceeded";
|
|
2103
|
+
var TERMINAL = new Set([SUCCEEDED, "creationfailed", "validationfailed"]);
|
|
2104
|
+
// ../solution-sdk/src/solution-info.ts
|
|
2105
|
+
async function getStudioWebSolutionProjects2(config, organizationName, solutionId) {
|
|
2106
|
+
const api = createSolutionApi(config, organizationName);
|
|
2107
|
+
try {
|
|
2108
|
+
const solution = await api.solutionGetSolution({ solutionId });
|
|
2109
|
+
return (solution.projects ?? []).flatMap((project) => project.id ? [
|
|
2110
|
+
{
|
|
2111
|
+
id: project.id,
|
|
2112
|
+
designId: project.designId ?? undefined,
|
|
2113
|
+
name: project.name ?? undefined,
|
|
2114
|
+
projectType: project.projectType ?? undefined
|
|
2115
|
+
}
|
|
2116
|
+
] : []);
|
|
2117
|
+
} catch (error) {
|
|
2118
|
+
if (error instanceof ResponseError2) {
|
|
2119
|
+
if (error.response.status === 404) {
|
|
2120
|
+
return;
|
|
2121
|
+
}
|
|
2122
|
+
const text = await error.response.text().catch(() => "");
|
|
2123
|
+
throw new Error(`Studio Web solution lookup failed (${error.response.status}): ${text}`);
|
|
2124
|
+
}
|
|
2125
|
+
throw error;
|
|
2126
|
+
}
|
|
2127
|
+
}
|
|
2128
|
+
// ../solution-sdk/src/upload-service.ts
|
|
2129
|
+
class SolutionUploadHttpError extends Error {
|
|
2130
|
+
status;
|
|
2131
|
+
operation;
|
|
2132
|
+
method;
|
|
2133
|
+
endpoint;
|
|
2134
|
+
url;
|
|
2135
|
+
body;
|
|
2136
|
+
solutionId;
|
|
2137
|
+
parsedErrorCode;
|
|
2138
|
+
parsedErrorMessage;
|
|
2139
|
+
authChallenge;
|
|
2140
|
+
constructor(details) {
|
|
2141
|
+
super(details.message);
|
|
2142
|
+
this.name = "SolutionUploadHttpError";
|
|
2143
|
+
this.status = details.status;
|
|
2144
|
+
this.operation = details.operation;
|
|
2145
|
+
this.method = details.method;
|
|
2146
|
+
this.endpoint = details.endpoint;
|
|
2147
|
+
this.url = details.url;
|
|
2148
|
+
this.body = details.body;
|
|
2149
|
+
if (details.operation === "overwrite") {
|
|
2150
|
+
this.solutionId = details.solutionId;
|
|
2151
|
+
}
|
|
2152
|
+
this.authChallenge = details.authChallenge;
|
|
2153
|
+
const parsed = parseUploadErrorBody(details.body);
|
|
2154
|
+
this.parsedErrorCode = parsed.code;
|
|
2155
|
+
this.parsedErrorMessage = parsed.message;
|
|
2156
|
+
}
|
|
2157
|
+
}
|
|
2158
|
+
function parseUploadErrorBody(body) {
|
|
2159
|
+
const [, parsed] = catchError2(() => JSON.parse(body));
|
|
2160
|
+
if (!parsed || typeof parsed !== "object")
|
|
2161
|
+
return {};
|
|
2162
|
+
const rawCode = parsed.code ?? parsed.Code;
|
|
2163
|
+
const rawMessage = parsed.message ?? parsed.Message;
|
|
2164
|
+
return {
|
|
2165
|
+
code: typeof rawCode === "string" || typeof rawCode === "number" ? String(rawCode) : undefined,
|
|
2166
|
+
message: typeof rawMessage === "string" && rawMessage.trim() ? rawMessage : undefined
|
|
2167
|
+
};
|
|
2168
|
+
}
|
|
2169
|
+
function isSolutionUploadHttpError2(error) {
|
|
2170
|
+
return error instanceof Error && error.name === "SolutionUploadHttpError" && "operation" in error && (error.operation === "import" || error.operation === "overwrite") && "status" in error && typeof error.status === "number" && "body" in error && typeof error.body === "string";
|
|
2171
|
+
}
|
|
2172
|
+
function requestPath(url) {
|
|
2173
|
+
const [, parsed] = catchError2(() => new URL(url));
|
|
2174
|
+
return parsed ? `${parsed.pathname}${parsed.search}` : url;
|
|
2175
|
+
}
|
|
2176
|
+
var TOKEN_SHAPED = /\beyJ[A-Za-z0-9_-]{6,}\.[A-Za-z0-9_-]+(?:\.[A-Za-z0-9_-]*)?|\bBearer\s+[A-Za-z0-9._~+/=-]{8,}/gi;
|
|
2177
|
+
function redactTokens(text) {
|
|
2178
|
+
return text.replace(TOKEN_SHAPED, "[REDACTED]");
|
|
2179
|
+
}
|
|
2180
|
+
var MAX_CHALLENGE_DESCRIPTION = 200;
|
|
2181
|
+
function parseAuthChallenge(header) {
|
|
2182
|
+
if (!header)
|
|
2183
|
+
return {};
|
|
2184
|
+
const code = /\berror="([^"]*)"/.exec(header)?.[1]?.trim();
|
|
2185
|
+
const raw = /\berror_description="([^"]*)"/.exec(header)?.[1]?.trim();
|
|
2186
|
+
const description = raw ? redactTokens(raw).slice(0, MAX_CHALLENGE_DESCRIPTION) : undefined;
|
|
2187
|
+
return {
|
|
2188
|
+
error: code || undefined,
|
|
2189
|
+
description: description || undefined
|
|
2190
|
+
};
|
|
2191
|
+
}
|
|
2192
|
+
function summarizeAuthRefusalBody(body) {
|
|
2193
|
+
return summarizePlatformBody(redactTokens(body));
|
|
2194
|
+
}
|
|
2195
|
+
function isAuthRefusal(status) {
|
|
2196
|
+
return status === 401 || status === 403;
|
|
2197
|
+
}
|
|
2198
|
+
function buildAuthRefusalInstructions({
|
|
2199
|
+
err,
|
|
2200
|
+
subject,
|
|
2201
|
+
target,
|
|
2202
|
+
bodySuffix,
|
|
2203
|
+
identityType,
|
|
2204
|
+
clientId
|
|
2205
|
+
}) {
|
|
2206
|
+
const refusal = err.status === 401 ? "rejected the call as unauthorized (401)" : "forbade the call (403)";
|
|
2207
|
+
const what = err.operation === "overwrite" ? `replacing the contents of solution ${target}` : "importing the solution package";
|
|
2208
|
+
const actor = identityType === "Application" ? `This session acts as external application ${clientId ?? "(client id unknown)"}, so ` + `check what that application is allowed to do: it needs the Studio ` + `Web scopes that cover writing a solution (the StudioWebS2S grants ` + `on the external application), not just the Orchestrator or ` + `Solutions ones. ` : identityType === "User" ? `This session acts as a user, so check that your account has ` + `Studio Web access in this tenant. ` : `Check what this session is allowed to do in Studio Web — an ` + `external application needs the StudioWebS2S grants that cover ` + `writing a solution, a user needs Studio Web access in the tenant. `;
|
|
2209
|
+
const tenant = err.operation === "overwrite" ? `Also confirm that ${target} is the solution this project should ` + `publish to, and that it lives in the organization and tenant ` + `this session logged into — the id comes from the SolutionId ` + `recorded in the enclosing solution file. An id this session ` + `cannot see at all is reported separately, as nothing to ` + `overwrite, so a refusal here points at the grants first. ` : `Also confirm you are logged into the organization and tenant the ` + `solution should land in. `;
|
|
2210
|
+
const challenge = parseAuthChallenge(err.authChallenge);
|
|
2211
|
+
const quoted = challenge.description ? ` ("${challenge.description}")` : "";
|
|
2212
|
+
if (challenge.error === "invalid_token") {
|
|
2213
|
+
return `Studio Web ${refusal} while ${what}, and rejected the credential ` + `itself with the reason \`invalid_token\`${quoted}. That is the ` + `platform refusing this token rather than the permissions behind ` + `it, so unlike a grants refusal this one is worth a fresh ` + `\`uip login\` — or, in a pipeline, a newly minted ` + `client-credentials token. Check too that the token was issued for ` + `the organization being called: one minted against a different ` + `environment or audience is refused this way. Nothing was uploaded ` + `and nothing ran, so the ${subject} is not the cause.${bodySuffix}`;
|
|
2214
|
+
}
|
|
2215
|
+
const authenticated = `The session is authenticated — the token was issued and had not ` + `expired when the call went out — so re-running \`uip login\` mints ` + `the same token and fails the same way. `;
|
|
2216
|
+
const diagnosis = challenge.error === "insufficient_scope" ? `Studio Web reported \`insufficient_scope\`${quoted}, so the ` + `token is valid and simply not allowed to do this: logging in ` + `again will not change it. ` : challenge.error ? `${authenticated}Studio Web gave the reason ` + `\`${challenge.error}\`${quoted}. ` : authenticated;
|
|
2217
|
+
const closing = bodySuffix ? `If the grants and the tenant are already right, report the platform ` + `response, including its traceId.${bodySuffix}` : challenge.error ? `If the grants and the tenant are already right, report that reason ` + `together with the request path and status above.` : `If the grants and the tenant are already right, report the request ` + `path and status above — Studio Web returned no response body and ` + `no authentication challenge, so there is nothing further to quote.`;
|
|
2218
|
+
return `Studio Web ${refusal} while ${what}. ${diagnosis}${actor}${tenant}` + `Nothing was uploaded and nothing ran, so the ${subject} is not the ` + `cause. ${closing}`;
|
|
2219
|
+
}
|
|
2220
|
+
function buildSolutionUploadFailureOutput2(err, options = {}) {
|
|
2221
|
+
const stage = err.operation === "overwrite" ? "overwrite-solution" : "import-solution";
|
|
2222
|
+
const authRefusal = isAuthRefusal(err.status);
|
|
2223
|
+
const parsedMessage = authRefusal && err.parsedErrorMessage ? redactTokens(err.parsedErrorMessage) : err.parsedErrorMessage;
|
|
2224
|
+
const detail = parsedMessage ? ` — ${parsedMessage}` : "";
|
|
2225
|
+
const Message = `Failed during ${stage}: HTTP ${err.status} on ${err.method} ` + `${err.endpoint}${detail}`;
|
|
2226
|
+
const quote = authRefusal ? summarizeAuthRefusalBody : summarizePlatformBody;
|
|
2227
|
+
const body = err.parsedErrorMessage ? "" : quote(err.body);
|
|
2228
|
+
const bodySuffix = body ? ` Platform response: "${body}".` : "";
|
|
2229
|
+
const importHint = options.importCheckHint ? ` ${options.importCheckHint}` : "";
|
|
2230
|
+
const subject = options.subject ?? "project";
|
|
2231
|
+
const target = err.solutionId ?? `the solution at ${err.endpoint}`;
|
|
2232
|
+
const authInstructions = isAuthRefusal(err.status) ? buildAuthRefusalInstructions({
|
|
2233
|
+
err,
|
|
2234
|
+
subject,
|
|
2235
|
+
target,
|
|
2236
|
+
bodySuffix,
|
|
2237
|
+
identityType: options.identityType,
|
|
2238
|
+
clientId: options.clientId
|
|
2239
|
+
}) : undefined;
|
|
2240
|
+
const Instructions = authInstructions ?? (err.operation === "overwrite" ? `Studio Web refused to replace the contents of solution ` + `${target}. Nothing was uploaded and nothing ran, so the ` + `${subject} is not the cause: do not re-author it, and do not ` + `copy the project into another solution. Confirm that ${target} ` + `is a solution you can still write to, and that it is the one ` + `this project should publish to — it comes from the SolutionId ` + `recorded in the enclosing solution file. If it is right, report ` + `the platform response.${bodySuffix}` : `Studio Web refused to import the solution package. Nothing was ` + `uploaded and nothing ran, so no part of the ${subject} executed ` + `— but the package itself may be what was rejected.${importHint} ` + `Report the platform response if the ${subject} is ` + `well-formed.${bodySuffix}`);
|
|
2241
|
+
const Context = {
|
|
2242
|
+
httpStatus: err.status,
|
|
2243
|
+
stage,
|
|
2244
|
+
endpoint: err.endpoint,
|
|
2245
|
+
method: err.method
|
|
2246
|
+
};
|
|
2247
|
+
if (err.parsedErrorCode !== undefined) {
|
|
2248
|
+
Context.errorCode = err.parsedErrorCode;
|
|
2249
|
+
}
|
|
2250
|
+
const output = {
|
|
2251
|
+
Result: RESULTS.Failure,
|
|
2252
|
+
Message,
|
|
2253
|
+
Instructions,
|
|
2254
|
+
Context
|
|
2255
|
+
};
|
|
2256
|
+
if (err.status === 401 && options.identityType === "Application") {
|
|
2257
|
+
output.ErrorCode = "permission_denied";
|
|
2258
|
+
}
|
|
2259
|
+
if (err.operation === "overwrite" && err.status >= 500 && err.status < 600) {
|
|
2260
|
+
output.Retry = "RetryAfter30Seconds";
|
|
2261
|
+
}
|
|
2262
|
+
return output;
|
|
2263
|
+
}
|
|
2264
|
+
var DEFAULT_UPLOAD_TIMEOUT_MS = 120000;
|
|
2265
|
+
function resolveUploadTimeoutMs() {
|
|
2266
|
+
const raw = Number(process.env?.UIPATH_SOLUTION_UPLOAD_TIMEOUT_MS);
|
|
2267
|
+
return Number.isFinite(raw) && raw > 0 ? raw : DEFAULT_UPLOAD_TIMEOUT_MS;
|
|
2268
|
+
}
|
|
2269
|
+
function formatTimeout(timeoutMs) {
|
|
2270
|
+
return timeoutMs < 1000 ? `${Math.round(timeoutMs)}ms` : `${Math.round(timeoutMs / 1000)}s`;
|
|
2271
|
+
}
|
|
2272
|
+
function timeoutMessage(what, timeoutMs) {
|
|
2273
|
+
return `${what} timed out after ${formatTimeout(timeoutMs)} — the connection ` + `stalled with no response from Studio Web. Retry the command; if it keeps ` + `timing out, check connectivity (VPN/proxy) to the tenant, or raise the ` + `ceiling with UIPATH_SOLUTION_UPLOAD_TIMEOUT_MS.`;
|
|
2274
|
+
}
|
|
2275
|
+
function isTimeoutError(error) {
|
|
2276
|
+
let current = error;
|
|
2277
|
+
for (let depth = 0;depth < 5 && current instanceof Error; depth += 1) {
|
|
2278
|
+
if (current.name === "TimeoutError")
|
|
2279
|
+
return true;
|
|
2280
|
+
current = current.cause;
|
|
2281
|
+
}
|
|
2282
|
+
return false;
|
|
2283
|
+
}
|
|
2284
|
+
async function fetchWithUploadTimeout(url, init, what) {
|
|
2285
|
+
const timeoutMs = resolveUploadTimeoutMs();
|
|
2286
|
+
const [error, response] = await catchError2(fetch(url, { ...init, signal: AbortSignal.timeout(timeoutMs) }));
|
|
2287
|
+
if (error) {
|
|
2288
|
+
if (isTimeoutError(error)) {
|
|
2289
|
+
throw new Error(timeoutMessage(what, timeoutMs));
|
|
2290
|
+
}
|
|
2291
|
+
throw error;
|
|
2292
|
+
}
|
|
2293
|
+
return response;
|
|
2294
|
+
}
|
|
2295
|
+
async function importSolution(config, organizationName, fileBuffer, fileName) {
|
|
2296
|
+
const importUrl = `${config.baseUrl}/${encodeURIComponent(organizationName)}/studio_/backend/api/Solution/Import?desktopJit=true&useFileRest=true&enableUnifiedBuild=true`;
|
|
2297
|
+
const formData = new FormData;
|
|
2298
|
+
const fileBlob = new Blob([fileBuffer], {
|
|
2299
|
+
type: "application/octet-stream"
|
|
2300
|
+
});
|
|
2301
|
+
formData.append("uploadFile", fileBlob, fileName);
|
|
2302
|
+
formData.append("telemetryData", JSON.stringify({ FirstRun: false }));
|
|
2303
|
+
const headers = addSdkUserAgentHeader({
|
|
2304
|
+
Authorization: `Bearer ${config.authToken}`
|
|
2305
|
+
}, SDK_USER_AGENT);
|
|
2306
|
+
if (config.tenantId) {
|
|
2307
|
+
headers["x-uipath-tenantid"] = config.tenantId;
|
|
2308
|
+
}
|
|
2309
|
+
const response = await fetchWithUploadTimeout(importUrl, { method: "POST", headers, body: formData }, "Studio Web solution import");
|
|
2310
|
+
if (!response.ok) {
|
|
2311
|
+
const text = await response.text().catch(() => "");
|
|
2312
|
+
throw new SolutionUploadHttpError({
|
|
2313
|
+
operation: "import",
|
|
2314
|
+
status: response.status,
|
|
2315
|
+
method: "POST",
|
|
2316
|
+
endpoint: requestPath(importUrl),
|
|
2317
|
+
url: importUrl,
|
|
2318
|
+
body: text,
|
|
2319
|
+
authChallenge: response.headers?.get("www-authenticate") ?? undefined,
|
|
2320
|
+
message: `Import failed (${response.status}): ${text}`
|
|
2321
|
+
});
|
|
2322
|
+
}
|
|
2323
|
+
return await response.json();
|
|
2324
|
+
}
|
|
2325
|
+
async function overwriteSolution(config, organizationName, fileBuffer, fileName, solutionId, createSnapshot = false) {
|
|
2326
|
+
const overwriteUrl = `${config.baseUrl}/${encodeURIComponent(organizationName)}/studio_/backend/api/Solution/${encodeURIComponent(solutionId)}/Overwrite`;
|
|
2327
|
+
const formData = new FormData;
|
|
2328
|
+
const fileBlob = new Blob([fileBuffer], {
|
|
2329
|
+
type: "application/octet-stream"
|
|
2330
|
+
});
|
|
2331
|
+
formData.append("UploadFile", fileBlob, fileName);
|
|
2332
|
+
if (createSnapshot) {
|
|
2333
|
+
formData.append("createSnapshot", "true");
|
|
2334
|
+
}
|
|
2335
|
+
const headers = addSdkUserAgentHeader({
|
|
2336
|
+
Authorization: `Bearer ${config.authToken}`
|
|
2337
|
+
}, SDK_USER_AGENT);
|
|
2338
|
+
if (config.tenantId) {
|
|
2339
|
+
headers["x-uipath-tenantid"] = config.tenantId;
|
|
2340
|
+
}
|
|
2341
|
+
const response = await fetchWithUploadTimeout(overwriteUrl, { method: "POST", headers, body: formData }, "Studio Web solution overwrite");
|
|
2342
|
+
if (!response.ok) {
|
|
2343
|
+
const text = await response.text().catch(() => "");
|
|
2344
|
+
throw new SolutionUploadHttpError({
|
|
2345
|
+
operation: "overwrite",
|
|
2346
|
+
status: response.status,
|
|
2347
|
+
method: "POST",
|
|
2348
|
+
endpoint: requestPath(overwriteUrl),
|
|
2349
|
+
url: overwriteUrl,
|
|
2350
|
+
body: text,
|
|
2351
|
+
authChallenge: response.headers?.get("www-authenticate") ?? undefined,
|
|
2352
|
+
message: `Overwrite failed (${response.status}): ${text}`,
|
|
2353
|
+
solutionId
|
|
2354
|
+
});
|
|
2355
|
+
}
|
|
2356
|
+
return await response.json();
|
|
2357
|
+
}
|
|
2358
|
+
async function uploadOrOverwriteSolution2(config, organizationName, fileBufferOrPath, solutionId, fs) {
|
|
2359
|
+
let fileBuffer;
|
|
2360
|
+
let fileName;
|
|
2361
|
+
if (typeof fileBufferOrPath === "string") {
|
|
2362
|
+
if (!fs) {
|
|
2363
|
+
throw new Error("IFileSystem is required when passing a file path to uploadOrOverwriteSolution");
|
|
2364
|
+
}
|
|
2365
|
+
const content = await fs.readFile(fileBufferOrPath);
|
|
2366
|
+
if (content === null) {
|
|
2367
|
+
throw new Error(`Failed to read file: ${fileBufferOrPath}`);
|
|
2368
|
+
}
|
|
2369
|
+
fileBuffer = new Uint8Array(content);
|
|
2370
|
+
fileName = fs.path.basename(fileBufferOrPath);
|
|
2371
|
+
} else {
|
|
2372
|
+
fileBuffer = fileBufferOrPath;
|
|
2373
|
+
fileName = "solution.uis";
|
|
2374
|
+
}
|
|
2375
|
+
if (solutionId) {
|
|
2376
|
+
logger.info(`Attempting to overwrite existing solution ${solutionId} on Studio Web...`);
|
|
2377
|
+
const [overwriteError, overwriteResult] = await catchError2(overwriteSolution(config, organizationName, fileBuffer, fileName, solutionId));
|
|
2378
|
+
if (!overwriteError) {
|
|
2379
|
+
logger.info("Solution overwritten successfully.");
|
|
2380
|
+
return overwriteResult;
|
|
2381
|
+
}
|
|
2382
|
+
if (isSolutionUploadHttpError2(overwriteError) && overwriteError.status === 404) {
|
|
2383
|
+
logger.info(`Solution ${solutionId} not found on Studio Web. Importing as new solution...`);
|
|
2384
|
+
} else {
|
|
2385
|
+
throw overwriteError;
|
|
2386
|
+
}
|
|
2387
|
+
}
|
|
2388
|
+
logger.info("Importing new solution to Studio Web...");
|
|
2389
|
+
return importSolution(config, organizationName, fileBuffer, fileName);
|
|
2390
|
+
}
|
|
2391
|
+
export { createZipFromDir2, buildSolutionPackageFromDir2, getStudioWebSolutionProjects2, isSolutionUploadHttpError2, buildSolutionUploadFailureOutput2, uploadOrOverwriteSolution2 };
|
|
2392
|
+
|
|
2393
|
+
//# debugId=4B41720B353C749F64756E2164756E21
|