@uipath/flow-tool 1.201.0 → 1.202.0-preview.136
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{authoring-7r6g06c7.js → authoring-wpa6d0vf.js} +74 -48
- package/dist/binding-service-dh91hw9e.js +141 -0
- package/dist/{browser-strategy-rkcvc6tn.js → browser-strategy-6atc7v8s.js} +3 -3
- package/dist/connector-service-d9ph9kx1.js +948 -0
- package/dist/{conversion-H2VEEYLB-ng48mbf7.js → conversion-QANACVCM-zs0hhfjv.js} +39 -33
- package/dist/{de-5KVP66U6-f7knj511.js → de-5KVP66U6-1bnf4zt5.js} +52 -52
- package/dist/de-6U7ECGHH-xwsw33fk.js +35 -0
- package/dist/{de-5HU6GFWV-4EZK6G7N-yrh21f52.js → de-7XQXX2DK-IDWR6CAR-n4z245kt.js} +857 -845
- package/dist/{de-5HU6GFWV-zheyw6d2.js → de-7XQXX2DK-tqdy5n2b.js} +857 -845
- package/dist/{de-HKTOVV4H-d5yw5j21.js → de-HKTOVV4H-pe9w0xn8.js} +46 -46
- package/dist/{de-XLT4QPIP-0rtw349w.js → de-XLT4QPIP-kj81dxjc.js} +9 -9
- package/dist/debug-conversation-trigger-452frzyz.js +41 -0
- package/dist/debug-http-client-wd6xb8v4.js +31 -0
- package/dist/debug-service-fvyexnb1.js +58 -0
- package/dist/edge-service-e77bndbe.js +162 -0
- package/dist/{elk.bundled-pydbzeez.js → elk.bundled-vpsbxz0p.js} +3 -3
- package/dist/{en-MABQK6C4-REWE2WG2-8dp4cqdg.js → en-5ZGC5VQ3-EWX7ILY7-rmtj70fk.js} +898 -898
- package/dist/{en-MABQK6C4-nkzq2j8t.js → en-5ZGC5VQ3-h581y30k.js} +897 -897
- package/dist/en-EPWMLP2N-2wvge238.js +28 -0
- package/dist/{en-UNT7BE26-rhh65jry.js → en-LQHKFSEY-vvbe8ve9.js} +13 -11
- package/dist/{en-P4AS26D7-szrzfxz1.js → en-P4AS26D7-zptp77bm.js} +45 -45
- package/dist/{en-4KXU7N7B-66fntxa2.js → en-X3S6IZ5J-nhkg6pwn.js} +54 -60
- package/dist/{es-MX-H2EAXLYI-qwnqt48x.js → es-MX-H2EAXLYI-j42kfkxy.js} +46 -46
- package/dist/es-MX-NHTIP5YM-ar6zfx95.js +35 -0
- package/dist/{es-MX-OKNDG2NH-c1k1s1tg.js → es-MX-OKNDG2NH-tcac6j4g.js} +9 -9
- package/dist/{es-MX-POESXYP2-UW6VP5QI-cd3a79g9.js → es-MX-U2VN3SZW-KYAJ2ONK-kdram1g1.js} +857 -845
- package/dist/{es-MX-POESXYP2-9538722k.js → es-MX-U2VN3SZW-anynsmd8.js} +857 -845
- package/dist/{es-MX-XAVLOQW3-9b3cp9n8.js → es-MX-XAVLOQW3-q00km2y7.js} +52 -52
- package/dist/{es-NQICVYSQ-aa9z3nhs.js → es-NQICVYSQ-3dtqgget.js} +9 -9
- package/dist/{es-O4PAV2CR-jwfaawwk.js → es-O4PAV2CR-0g23ve3v.js} +46 -46
- package/dist/es-PQ3RA33Q-y4kxhjfr.js +35 -0
- package/dist/{es-VFPNVMP5-thm0z9sr.js → es-VFPNVMP5-bx2c337j.js} +52 -52
- package/dist/{es-LUTYN7U7-IY5QWOUF-k2aefzc0.js → es-ZGCPPOME-24PJEGPV-rn86z9kn.js} +857 -845
- package/dist/{es-LUTYN7U7-ye5zn4sn.js → es-ZGCPPOME-8gazspjj.js} +857 -845
- package/dist/flow-api-wv8p8xbd.js +36 -0
- package/dist/flow-debug-service-tfbefas6.js +741 -0
- package/dist/flow-eval-node-target-c6wea7rz.js +44 -0
- package/dist/flow-eval-run-service-01kdky72.js +961 -0
- package/dist/flow-eval-service-ft8e16jz.js +1338 -0
- package/dist/flow-init-service-mva4crty.js +35 -0
- package/dist/flow-io-r318sjrw.js +36 -0
- package/dist/flow-migrate-service-rwcdx60q.js +119 -0
- package/dist/flow-pack-service-p4hxyj9e.js +280 -0
- package/dist/flow-validate-service-j25pxpwz.js +57 -0
- package/dist/{fr-5YRGHXF5-q6b63yg0.js → fr-5YRGHXF5-kz1ywpv6.js} +46 -46
- package/dist/{fr-E5MDO4EG-exvrs7ge.js → fr-E5MDO4EG-c3mkty2t.js} +52 -52
- package/dist/{fr-PFHIL7YZ-cxnshwa8.js → fr-PFHIL7YZ-2n589p47.js} +9 -9
- package/dist/fr-R4L3OAWI-30khpsmn.js +35 -0
- package/dist/{fr-LJIK56LW-STG6QR3T-cextvv8q.js → fr-T3G5GZCT-TU4IKBEG-k6xz1s1f.js} +857 -845
- package/dist/{fr-LJIK56LW-xf3xf2kh.js → fr-T3G5GZCT-y3f7xb1q.js} +857 -845
- package/dist/governance-fetcher-j9cx4f1d.js +391 -0
- package/dist/headless-h1myzz32.js +177196 -0
- package/dist/hitl-service-kvt5wms4.js +256 -0
- package/dist/index-1kgxzh8x.js +143 -0
- package/dist/index-4zrwgb3c.js +111 -0
- package/dist/index-ev4mdg5y.js +4801 -0
- package/dist/{index-er6vy3jk.js → index-eybzsdcc.js} +295 -317
- package/dist/{index-hsadteg4.js → index-h8cph72k.js} +4 -4
- package/dist/{index-p50kx6jv.js → index-k5tbd184.js} +276 -276
- package/dist/index-n33np76r.js +630 -0
- package/dist/{index-9f8q2ege.js → index-p3vk57z7.js} +27 -27
- package/dist/{index-dhcd9b82.js → index-w0z4s69j.js} +166 -81
- package/dist/index.js +29 -32
- package/dist/{index.umd.min-drpc57vn.js → index.umd.min-fqefd9kn.js} +3 -3
- package/dist/init.js +24 -25
- package/dist/input-reader-6pwhtp8v.js +11 -0
- package/dist/{ja-FGEGLBJ3-w9byjhze.js → ja-BI5K3JDZ-77zat4z2.js} +857 -845
- package/dist/{ja-FGEGLBJ3-MG3BSWXD-vq19zt2p.js → ja-BI5K3JDZ-GTIHISTZ-s6n3r2ab.js} +857 -845
- package/dist/{ja-DPO5PPLO-s2a7j3nj.js → ja-DPO5PPLO-mysfmznx.js} +52 -52
- package/dist/{ja-P4OSE367-8ywxep9a.js → ja-P4OSE367-srr3qypg.js} +9 -9
- package/dist/{ja-SDAPAVCR-943p5gx7.js → ja-SDAPAVCR-kg39dfap.js} +46 -46
- package/dist/ja-ZHKCBE5W-x73w6x3e.js +35 -0
- package/dist/{js-yaml-cggj6w7q.js → js-yaml-87cdx6bm.js} +27 -19
- package/dist/known-types-a20evmmg.js +20 -0
- package/dist/ko-6W7OGLLB-mnmqc584.js +35 -0
- package/dist/{ko-ITOPNIYI-qz39kamf.js → ko-ITOPNIYI-hmxd2asd.js} +52 -52
- package/dist/{ko-TUAK3G3A-s25w0ckg.js → ko-JOBF5V7N-4bv0mjje.js} +857 -845
- package/dist/{ko-TUAK3G3A-TBEBKOTM-ns78t2rv.js → ko-JOBF5V7N-O7T4HKIE-ape840y0.js} +857 -845
- package/dist/{ko-NAGOZLC3-wb3y9yhh.js → ko-NAGOZLC3-gaxxsnd2.js} +46 -46
- package/dist/{ko-PYOS2KJP-5sbj5bp8.js → ko-PYOS2KJP-e7dshyxy.js} +9 -9
- package/dist/localization-h8a53z6p.js +47 -0
- package/dist/{node-gd4469ea.js → node-cnrcrrb0.js} +7973 -7166
- package/dist/node-service-8g5x5d2y.js +70 -0
- package/dist/{node-strategy-8gzp67xs.js → node-strategy-gc4sg6a2.js} +132 -16
- package/dist/node-sync-service-e2reh33c.js +42 -0
- package/dist/{packager-tool-9qecd4wb.js → packager-tool-0gctz400.js} +5 -2
- package/dist/{packager-tool-1cb0d5e0.js → packager-tool-0v3s8r01.js} +2 -2
- package/dist/{packager-tool-wckvcay0.js → packager-tool-1yh8g550.js} +9 -7
- package/dist/packager-tool-27avrkyk.js +15 -0
- package/dist/packager-tool-2wefykg9.js +106 -0
- package/dist/packager-tool-4fhgws0x.js +757 -0
- package/dist/{packager-tool-7yjpwj92.js → packager-tool-4hx14snw.js} +49 -48
- package/dist/{packager-tool-3wygxefb.js → packager-tool-58q3tvh7.js} +10 -10
- package/dist/{packager-tool-cvwr40ax.js → packager-tool-5qaxht3k.js} +1425 -550
- package/dist/packager-tool-5z1eg3ea.js +33289 -0
- package/dist/{packager-tool-17cn3xb7.js → packager-tool-6m078z5s.js} +13388 -19366
- package/dist/packager-tool-7b6tpg7y.js +77 -0
- package/dist/packager-tool-7exrv6w7.js +23 -0
- package/dist/packager-tool-8dszjcg5.js +4892 -0
- package/dist/packager-tool-8j92afwp.js +58 -0
- package/dist/packager-tool-94w17vf8.js +85 -0
- package/dist/{packager-tool-vdd02vns.js → packager-tool-9bec251q.js} +543 -1493
- package/dist/packager-tool-a1hbfmws.js +399 -0
- package/dist/{packager-tool-tq9q9m77.js → packager-tool-a42jnpy5.js} +3 -9
- package/dist/packager-tool-abbtfk2v.js +54 -0
- package/dist/packager-tool-cdwpc9fh.js +4945 -0
- package/dist/packager-tool-e0p2zsyc.js +97 -0
- package/dist/packager-tool-eebq62fq.js +540 -0
- package/dist/{packager-tool-m6x5sczh.js → packager-tool-em5r6g6j.js} +14 -21
- package/dist/packager-tool-eypvc2kv.js +23 -0
- package/dist/packager-tool-f0kd5kq4.js +2327 -0
- package/dist/packager-tool-fjaa8d3v.js +289 -0
- package/dist/packager-tool-g0eha8ge.js +121 -0
- package/dist/packager-tool-g9y14b10.js +54 -0
- package/dist/packager-tool-gbgfwx8f.js +2 -0
- package/dist/packager-tool-jc34wvrw.js +64 -0
- package/dist/packager-tool-k99nf3pq.js +25 -0
- package/dist/{packager-tool-hr0xg6q8.js → packager-tool-kn91khp6.js} +17 -13
- package/dist/{packager-tool-jysvpt8p.js → packager-tool-m3wkcxf5.js} +2 -2
- package/dist/{packager-tool-78a3szsp.js → packager-tool-m5qfverj.js} +1720 -2014
- package/dist/packager-tool-mwvbq6ef.js +79 -0
- package/dist/packager-tool-nq4rcqqg.js +87 -0
- package/dist/packager-tool-nxx8naxv.js +4234 -0
- package/dist/{packager-tool-3y0k15sv.js → packager-tool-p9stswjj.js} +2858 -19342
- package/dist/packager-tool-r0xpcqwg.js +188 -0
- package/dist/packager-tool-raq2wbwp.js +18 -0
- package/dist/{packager-tool-y3dezh8k.js → packager-tool-rs6jm14d.js} +6 -4
- package/dist/packager-tool-s9ff3kk4.js +6 -0
- package/dist/{packager-tool-pbsghbmj.js → packager-tool-sykgshez.js} +2 -2
- package/dist/packager-tool-tf3d2y8z.js +31 -0
- package/dist/packager-tool-tn5e7wnb.js +384 -0
- package/dist/packager-tool-v2rkcehq.js +457 -0
- package/dist/packager-tool-v86fdwvs.js +262 -0
- package/dist/packager-tool-v9psxdy5.js +8185 -0
- package/dist/packager-tool-v9rrz038.js +602 -0
- package/dist/packager-tool-vpqyvh4c.js +304 -0
- package/dist/packager-tool-wcha0e5r.js +443 -0
- package/dist/{packager-tool-1gt6js73.js → packager-tool-xhzfwa5p.js} +6 -4
- package/dist/{packager-tool-5arsyj36.js → packager-tool-yc4kw997.js} +4 -2
- package/dist/{packager-tool-pkq70dec.js → packager-tool-ywqc9rtf.js} +31 -3
- package/dist/{packager-tool-0567pxpm.js → packager-tool-z9bfhmm5.js} +10 -10
- package/dist/{packager-tool-gmrwvnyh.js → packager-tool-zfrp8ecz.js} +8 -58
- package/dist/{packager-tool-3vdpx9ng.js → packager-tool-zke08y39.js} +1121 -1846
- package/dist/packager-tool.js +17 -17
- package/dist/{pt-7TR74ZMB-1g8my56g.js → pt-7TR74ZMB-bmphh4x2.js} +46 -46
- package/dist/{pt-BR-7XGDXRDJ-TR5D7JYL-533wvy7p.js → pt-BR-7DYX2YPT-LZYH4YFD-bx43vx3z.js} +857 -845
- package/dist/{pt-BR-7XGDXRDJ-espnkgrj.js → pt-BR-7DYX2YPT-fqxqzqtf.js} +857 -845
- package/dist/{pt-BR-BXURWX4W-dqr4dnf9.js → pt-BR-BXURWX4W-bwfcwhk1.js} +52 -52
- package/dist/{pt-BR-DXXSYJDO-bn84ewp7.js → pt-BR-DXXSYJDO-a2tp13v7.js} +46 -46
- package/dist/pt-BR-UQCYHKMJ-q78n7q70.js +35 -0
- package/dist/{pt-BR-Z3TUDJHM-n7ngej6s.js → pt-BR-Z3TUDJHM-8v73x9s7.js} +9 -9
- package/dist/pt-D6A6MVB2-yvxca8vz.js +35 -0
- package/dist/{pt-TMVOOITK-myha14p9.js → pt-HTXGGX6Y-97t21dty.js} +857 -845
- package/dist/{pt-TMVOOITK-H2ADYHSD-ezpggv33.js → pt-HTXGGX6Y-ZHQSDFKI-vehfxadc.js} +857 -845
- package/dist/{pt-KSBWHAVQ-hd52bpsz.js → pt-KSBWHAVQ-mhvhgr2p.js} +9 -9
- package/dist/{pt-YI4VE4YQ-v7gjeg82.js → pt-YI4VE4YQ-wdkn2dcf.js} +52 -52
- package/dist/ro-4TMBHS5M-jz0anpt6.js +35 -0
- package/dist/{ro-BJFER5OI-334n28rj.js → ro-BJFER5OI-83tq8vxh.js} +46 -46
- package/dist/{ro-2VALF3S5-NXBJUEZN-nqw1zs33.js → ro-KTNQ3MNU-XIE6YPQN-gen8p82z.js} +857 -845
- package/dist/{ro-2VALF3S5-cdz5afkr.js → ro-KTNQ3MNU-y08n1x5g.js} +857 -845
- package/dist/{ro-RKXZUG7Z-cm3xn3fj.js → ro-RKXZUG7Z-nndrrsq7.js} +52 -52
- package/dist/{ro-VZUZTAMR-tccygznf.js → ro-VZUZTAMR-f4q0g3em.js} +9 -9
- package/dist/{ru-GSCT4ARZ-qj8dm4dp.js → ru-GSCT4ARZ-1sa9wbr8.js} +1 -1
- package/dist/{ru-GSCT4ARZ-FTVCGQTL-5nh4jf2e.js → ru-GSCT4ARZ-FTVCGQTL-gee86v14.js} +1 -1
- package/dist/{ru-T73OPRTC-mp5gn7gs.js → ru-T73OPRTC-4knxw497.js} +1 -1
- package/dist/{ru-WBLQ5B2U-awt245ky.js → ru-WBLQ5B2U-8r3c7v6d.js} +1 -1
- package/dist/ru-WBLQ5B2U-kdey8qa4.js +10 -0
- package/dist/{ru-WBLQ5B2U-57ezmxzz.js → ru-WBLQ5B2U-wemdzdqd.js} +1 -1
- package/dist/{serialization-GAW7UFOK-9hkdmmd2.js → serialization-J5QK3HPY-bgewpt6f.js} +158 -152
- package/dist/services/expression-validator.d.ts +28 -0
- package/dist/services/flow-eval-schema/types.d.ts +17 -0
- package/dist/services/flow-validate-service.d.ts +26 -0
- package/dist/services/node-validators/js-expression-syntax-validator.d.ts +6 -3
- package/dist/services/tidy-service.d.ts +26 -0
- package/dist/services/vars-reference-rule.d.ts +156 -0
- package/dist/shared-utils-8xdq6f04.js +20 -0
- package/dist/tidy-service-ashgyfwj.js +34 -0
- package/dist/tool.js +30 -33
- package/dist/{tr-AA6O2WSR-ga1xnymp.js → tr-AA6O2WSR-86ba4bdf.js} +52 -52
- package/dist/tr-GSQQ6SOT-hv1gyeaa.js +35 -0
- package/dist/{tr-RQTZ2DMS-bpgd4kma.js → tr-RQTZ2DMS-w3cwv8s4.js} +46 -46
- package/dist/{tr-W4AVRSQ4-bt3qqqdy.js → tr-W4AVRSQ4-hjr81xzk.js} +9 -9
- package/dist/{tr-RIFCEXFH-BZS7S7QK-q465b62g.js → tr-XHSSPNK7-GW5KVXR3-2w3f1ss6.js} +857 -845
- package/dist/{tr-RIFCEXFH-hgkb4g8y.js → tr-XHSSPNK7-cmqyc4wd.js} +857 -845
- package/dist/utils/handle-expansion.d.ts +16 -0
- package/dist/validation.js +47 -27
- package/dist/variable-service-er7ph4br.js +152 -0
- package/dist/wait-for-flow-job-45p1a444.js +134 -0
- package/dist/{zh-CN-IP3FMXWM-H3JI2XUM-ta4yac7h.js → zh-CN-2EHQT23P-T5XRQCVS-ac17dpc1.js} +857 -845
- package/dist/{zh-CN-IP3FMXWM-1cfarhcp.js → zh-CN-2EHQT23P-mr63c4xz.js} +857 -845
- package/dist/{zh-CN-6YRAN57T-j7jp34ws.js → zh-CN-6YRAN57T-rd7x2tqs.js} +9 -9
- package/dist/zh-CN-EDFRBU32-vvj7tmaq.js +35 -0
- package/dist/{zh-CN-R2KLHXQV-wttmznep.js → zh-CN-R2KLHXQV-agqr45ds.js} +52 -52
- package/dist/{zh-CN-ZC6LT4IN-vty9mvv8.js → zh-CN-ZC6LT4IN-kbzvvzz5.js} +46 -46
- package/dist/zh-TW-HAICM6DE-rh7k3cq7.js +35 -0
- package/dist/{zh-TW-AGIDXIPF-R4XZRDJZ-cgxxz5k4.js → zh-TW-MGZCE5BT-P6FLIUAR-zmq07vhs.js} +857 -845
- package/dist/{zh-TW-AGIDXIPF-n6r6w7vy.js → zh-TW-MGZCE5BT-c4ekmrz9.js} +857 -845
- package/dist/{zh-TW-R7Y5KVMU-q81f4z2p.js → zh-TW-R7Y5KVMU-m61y07e3.js} +46 -46
- package/dist/{zh-TW-RJGCQANM-gqn0aca0.js → zh-TW-RJGCQANM-w0x3qc1p.js} +52 -52
- package/dist/{zh-TW-SO2245GN-m5kh88bg.js → zh-TW-SO2245GN-n2bn1gg4.js} +9 -9
- package/package.json +2 -2
- package/dist/de-5KVP66U6-t37qr521.js +0 -161
- package/dist/de-WMKOGI7B-6dc1zdnp.js +0 -143
- package/dist/en-4KXU7N7B-24v330b5.js +0 -118
- package/dist/en-X4DLPKLJ-1h9gj5c1.js +0 -110
- package/dist/es-BVPGJUWA-0k59eqfv.js +0 -143
- package/dist/es-MX-U6YL5KQX-k4qvpgd4.js +0 -143
- package/dist/es-MX-XAVLOQW3-47a405kf.js +0 -161
- package/dist/es-VFPNVMP5-6sftsdxe.js +0 -161
- package/dist/fr-E5MDO4EG-f3x1jeqw.js +0 -161
- package/dist/fr-EKTTDR7Z-m2t68j0m.js +0 -143
- package/dist/ja-DPO5PPLO-fmbg7zt2.js +0 -161
- package/dist/ja-Y2YBTXNN-5sszk2zv.js +0 -143
- package/dist/ko-ITOPNIYI-aqy82jk8.js +0 -161
- package/dist/ko-S33XAV26-rfsv9myd.js +0 -143
- package/dist/packager-tool-0sz8se22.js +0 -10671
- package/dist/packager-tool-8mqydhz8.js +0 -9850
- package/dist/packager-tool-p9j43p8h.js +0 -115
- package/dist/packager-tool-v74yk918.js +0 -107
- package/dist/packager-tool-xj0agqpk.js +0 -11
- package/dist/pt-BR-BXURWX4W-xzyndmrx.js +0 -161
- package/dist/pt-BR-JO45SCNI-mt93s33c.js +0 -143
- package/dist/pt-W3NA4LIZ-fwd1q4j0.js +0 -143
- package/dist/pt-YI4VE4YQ-521681zf.js +0 -161
- package/dist/ro-RKXZUG7Z-pdztdafr.js +0 -161
- package/dist/ro-WLKX6HF5-b9tj8q67.js +0 -143
- package/dist/ru-WBLQ5B2U-8xd4gpv2.js +0 -10
- package/dist/ru-WBLQ5B2U-mswqs9wc.js +0 -10
- package/dist/tr-3U2W2XCA-43ptfc0m.js +0 -143
- package/dist/tr-AA6O2WSR-bj9n80k8.js +0 -161
- package/dist/zh-CN-IPZYQR3P-egjmvyjf.js +0 -143
- package/dist/zh-CN-R2KLHXQV-x6gnk2n0.js +0 -161
- package/dist/zh-TW-RJGCQANM-tt8j5wv2.js +0 -161
- package/dist/zh-TW-YPVSQVGT-b378ztph.js +0 -143
|
@@ -0,0 +1,4892 @@
|
|
|
1
|
+
import {
|
|
2
|
+
readUipxFile
|
|
3
|
+
} from "./packager-tool-eebq62fq.js";
|
|
4
|
+
import {
|
|
5
|
+
zipSync
|
|
6
|
+
} from "./packager-tool-nkrmjr3a.js";
|
|
7
|
+
import {
|
|
8
|
+
RESULTS,
|
|
9
|
+
addSdkUserAgentHeader,
|
|
10
|
+
catchError,
|
|
11
|
+
getSdkUserAgentToken,
|
|
12
|
+
installSdkUserAgentHeader,
|
|
13
|
+
logger,
|
|
14
|
+
summarizePlatformBody
|
|
15
|
+
} from "./packager-tool-5qaxht3k.js";
|
|
16
|
+
|
|
17
|
+
// ../solution-sdk/generated/src/runtime.ts
|
|
18
|
+
var BASE_PATH = "https://alpha.uipath.com/uipattycyrhx/abizon_1/automationsolutions_".replace(/\/+$/, "");
|
|
19
|
+
|
|
20
|
+
class Configuration {
|
|
21
|
+
configuration;
|
|
22
|
+
constructor(configuration = {}) {
|
|
23
|
+
this.configuration = configuration;
|
|
24
|
+
}
|
|
25
|
+
set config(configuration) {
|
|
26
|
+
this.configuration = configuration;
|
|
27
|
+
}
|
|
28
|
+
get basePath() {
|
|
29
|
+
return this.configuration.basePath != null ? this.configuration.basePath : BASE_PATH;
|
|
30
|
+
}
|
|
31
|
+
get fetchApi() {
|
|
32
|
+
return this.configuration.fetchApi;
|
|
33
|
+
}
|
|
34
|
+
get middleware() {
|
|
35
|
+
return this.configuration.middleware || [];
|
|
36
|
+
}
|
|
37
|
+
get queryParamsStringify() {
|
|
38
|
+
return this.configuration.queryParamsStringify || querystring;
|
|
39
|
+
}
|
|
40
|
+
get username() {
|
|
41
|
+
return this.configuration.username;
|
|
42
|
+
}
|
|
43
|
+
get password() {
|
|
44
|
+
return this.configuration.password;
|
|
45
|
+
}
|
|
46
|
+
get apiKey() {
|
|
47
|
+
const apiKey = this.configuration.apiKey;
|
|
48
|
+
if (apiKey) {
|
|
49
|
+
return typeof apiKey === "function" ? apiKey : () => apiKey;
|
|
50
|
+
}
|
|
51
|
+
return;
|
|
52
|
+
}
|
|
53
|
+
get accessToken() {
|
|
54
|
+
const accessToken = this.configuration.accessToken;
|
|
55
|
+
if (accessToken) {
|
|
56
|
+
return typeof accessToken === "function" ? accessToken : async () => accessToken;
|
|
57
|
+
}
|
|
58
|
+
return;
|
|
59
|
+
}
|
|
60
|
+
get headers() {
|
|
61
|
+
return this.configuration.headers;
|
|
62
|
+
}
|
|
63
|
+
get credentials() {
|
|
64
|
+
return this.configuration.credentials;
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
var DefaultConfig = new Configuration;
|
|
68
|
+
|
|
69
|
+
class BaseAPI {
|
|
70
|
+
configuration;
|
|
71
|
+
static jsonRegex = new RegExp("^(:?application/json|[^;/ \t]+/[^;/ \t]+[+]json)[ \t]*(:?;.*)?$", "i");
|
|
72
|
+
middleware;
|
|
73
|
+
constructor(configuration = DefaultConfig) {
|
|
74
|
+
this.configuration = configuration;
|
|
75
|
+
this.middleware = configuration.middleware;
|
|
76
|
+
}
|
|
77
|
+
withMiddleware(...middlewares) {
|
|
78
|
+
const next = this.clone();
|
|
79
|
+
next.middleware = next.middleware.concat(...middlewares);
|
|
80
|
+
return next;
|
|
81
|
+
}
|
|
82
|
+
withPreMiddleware(...preMiddlewares) {
|
|
83
|
+
const middlewares = preMiddlewares.map((pre) => ({ pre }));
|
|
84
|
+
return this.withMiddleware(...middlewares);
|
|
85
|
+
}
|
|
86
|
+
withPostMiddleware(...postMiddlewares) {
|
|
87
|
+
const middlewares = postMiddlewares.map((post) => ({ post }));
|
|
88
|
+
return this.withMiddleware(...middlewares);
|
|
89
|
+
}
|
|
90
|
+
isJsonMime(mime) {
|
|
91
|
+
if (!mime) {
|
|
92
|
+
return false;
|
|
93
|
+
}
|
|
94
|
+
return BaseAPI.jsonRegex.test(mime);
|
|
95
|
+
}
|
|
96
|
+
async request(context, initOverrides) {
|
|
97
|
+
const { url, init } = await this.createFetchParams(context, initOverrides);
|
|
98
|
+
const response = await this.fetchApi(url, init);
|
|
99
|
+
if (response && (response.status >= 200 && response.status < 300)) {
|
|
100
|
+
return response;
|
|
101
|
+
}
|
|
102
|
+
throw new ResponseError(response, "Response returned an error code");
|
|
103
|
+
}
|
|
104
|
+
async createFetchParams(context, initOverrides) {
|
|
105
|
+
let url = this.configuration.basePath + context.path;
|
|
106
|
+
if (context.query !== undefined && Object.keys(context.query).length !== 0) {
|
|
107
|
+
url += "?" + this.configuration.queryParamsStringify(context.query);
|
|
108
|
+
}
|
|
109
|
+
const headers = Object.assign({}, this.configuration.headers, context.headers);
|
|
110
|
+
Object.keys(headers).forEach((key) => headers[key] === undefined ? delete headers[key] : {});
|
|
111
|
+
const initOverrideFn = typeof initOverrides === "function" ? initOverrides : async () => initOverrides;
|
|
112
|
+
const initParams = {
|
|
113
|
+
method: context.method,
|
|
114
|
+
headers,
|
|
115
|
+
body: context.body,
|
|
116
|
+
credentials: this.configuration.credentials
|
|
117
|
+
};
|
|
118
|
+
const overriddenInit = {
|
|
119
|
+
...initParams,
|
|
120
|
+
...await initOverrideFn({
|
|
121
|
+
init: initParams,
|
|
122
|
+
context
|
|
123
|
+
})
|
|
124
|
+
};
|
|
125
|
+
let body;
|
|
126
|
+
if (isFormData(overriddenInit.body) || overriddenInit.body instanceof URLSearchParams || isBlob(overriddenInit.body)) {
|
|
127
|
+
body = overriddenInit.body;
|
|
128
|
+
} else if (this.isJsonMime(headers["Content-Type"])) {
|
|
129
|
+
body = JSON.stringify(overriddenInit.body);
|
|
130
|
+
} else {
|
|
131
|
+
body = overriddenInit.body;
|
|
132
|
+
}
|
|
133
|
+
const init = {
|
|
134
|
+
...overriddenInit,
|
|
135
|
+
body
|
|
136
|
+
};
|
|
137
|
+
return { url, init };
|
|
138
|
+
}
|
|
139
|
+
fetchApi = async (url, init) => {
|
|
140
|
+
let fetchParams = { url, init };
|
|
141
|
+
for (const middleware of this.middleware) {
|
|
142
|
+
if (middleware.pre) {
|
|
143
|
+
fetchParams = await middleware.pre({
|
|
144
|
+
fetch: this.fetchApi,
|
|
145
|
+
...fetchParams
|
|
146
|
+
}) || fetchParams;
|
|
147
|
+
}
|
|
148
|
+
}
|
|
149
|
+
let response = undefined;
|
|
150
|
+
try {
|
|
151
|
+
response = await (this.configuration.fetchApi || fetch)(fetchParams.url, fetchParams.init);
|
|
152
|
+
} catch (e) {
|
|
153
|
+
for (const middleware of this.middleware) {
|
|
154
|
+
if (middleware.onError) {
|
|
155
|
+
response = await middleware.onError({
|
|
156
|
+
fetch: this.fetchApi,
|
|
157
|
+
url: fetchParams.url,
|
|
158
|
+
init: fetchParams.init,
|
|
159
|
+
error: e,
|
|
160
|
+
response: response ? response.clone() : undefined
|
|
161
|
+
}) || response;
|
|
162
|
+
}
|
|
163
|
+
}
|
|
164
|
+
if (response === undefined) {
|
|
165
|
+
if (e instanceof Error) {
|
|
166
|
+
throw new FetchError(e, "The request failed and the interceptors did not return an alternative response");
|
|
167
|
+
} else {
|
|
168
|
+
throw e;
|
|
169
|
+
}
|
|
170
|
+
}
|
|
171
|
+
}
|
|
172
|
+
for (const middleware of this.middleware) {
|
|
173
|
+
if (middleware.post) {
|
|
174
|
+
response = await middleware.post({
|
|
175
|
+
fetch: this.fetchApi,
|
|
176
|
+
url: fetchParams.url,
|
|
177
|
+
init: fetchParams.init,
|
|
178
|
+
response: response.clone()
|
|
179
|
+
}) || response;
|
|
180
|
+
}
|
|
181
|
+
}
|
|
182
|
+
return response;
|
|
183
|
+
};
|
|
184
|
+
clone() {
|
|
185
|
+
const constructor = this.constructor;
|
|
186
|
+
const next = new constructor(this.configuration);
|
|
187
|
+
next.middleware = this.middleware.slice();
|
|
188
|
+
return next;
|
|
189
|
+
}
|
|
190
|
+
}
|
|
191
|
+
function isBlob(value) {
|
|
192
|
+
return typeof Blob !== "undefined" && value instanceof Blob;
|
|
193
|
+
}
|
|
194
|
+
function isFormData(value) {
|
|
195
|
+
return typeof FormData !== "undefined" && value instanceof FormData;
|
|
196
|
+
}
|
|
197
|
+
|
|
198
|
+
class ResponseError extends Error {
|
|
199
|
+
response;
|
|
200
|
+
name = "ResponseError";
|
|
201
|
+
constructor(response, msg) {
|
|
202
|
+
super(msg);
|
|
203
|
+
this.response = response;
|
|
204
|
+
}
|
|
205
|
+
}
|
|
206
|
+
|
|
207
|
+
class FetchError extends Error {
|
|
208
|
+
cause;
|
|
209
|
+
name = "FetchError";
|
|
210
|
+
constructor(cause, msg) {
|
|
211
|
+
super(msg);
|
|
212
|
+
this.cause = cause;
|
|
213
|
+
}
|
|
214
|
+
}
|
|
215
|
+
|
|
216
|
+
class RequiredError extends Error {
|
|
217
|
+
field;
|
|
218
|
+
name = "RequiredError";
|
|
219
|
+
constructor(field, msg) {
|
|
220
|
+
super(msg);
|
|
221
|
+
this.field = field;
|
|
222
|
+
}
|
|
223
|
+
}
|
|
224
|
+
var COLLECTION_FORMATS = {
|
|
225
|
+
csv: ",",
|
|
226
|
+
ssv: " ",
|
|
227
|
+
tsv: "\t",
|
|
228
|
+
pipes: "|"
|
|
229
|
+
};
|
|
230
|
+
function querystring(params, prefix = "") {
|
|
231
|
+
return Object.keys(params).map((key) => querystringSingleKey(key, params[key], prefix)).filter((part) => part.length > 0).join("&");
|
|
232
|
+
}
|
|
233
|
+
function querystringSingleKey(key, value, keyPrefix = "") {
|
|
234
|
+
const fullKey = keyPrefix + (keyPrefix.length ? `[${key}]` : key);
|
|
235
|
+
if (value instanceof Array) {
|
|
236
|
+
const multiValue = value.map((singleValue) => encodeURIComponent(String(singleValue))).join(`&${encodeURIComponent(fullKey)}=`);
|
|
237
|
+
return `${encodeURIComponent(fullKey)}=${multiValue}`;
|
|
238
|
+
}
|
|
239
|
+
if (value instanceof Set) {
|
|
240
|
+
const valueAsArray = Array.from(value);
|
|
241
|
+
return querystringSingleKey(key, valueAsArray, keyPrefix);
|
|
242
|
+
}
|
|
243
|
+
if (value instanceof Date) {
|
|
244
|
+
return `${encodeURIComponent(fullKey)}=${encodeURIComponent(value.toISOString())}`;
|
|
245
|
+
}
|
|
246
|
+
if (value instanceof Object) {
|
|
247
|
+
return querystring(value, fullKey);
|
|
248
|
+
}
|
|
249
|
+
return `${encodeURIComponent(fullKey)}=${encodeURIComponent(String(value))}`;
|
|
250
|
+
}
|
|
251
|
+
function exists(json, key) {
|
|
252
|
+
const value = json[key];
|
|
253
|
+
return value !== null && value !== undefined;
|
|
254
|
+
}
|
|
255
|
+
function mapValues(data, fn) {
|
|
256
|
+
const result = {};
|
|
257
|
+
for (const key of Object.keys(data)) {
|
|
258
|
+
result[key] = fn(data[key]);
|
|
259
|
+
}
|
|
260
|
+
return result;
|
|
261
|
+
}
|
|
262
|
+
function canConsumeForm(consumes) {
|
|
263
|
+
for (const consume of consumes) {
|
|
264
|
+
if (consume.contentType === "multipart/form-data") {
|
|
265
|
+
return true;
|
|
266
|
+
}
|
|
267
|
+
}
|
|
268
|
+
return false;
|
|
269
|
+
}
|
|
270
|
+
|
|
271
|
+
class JSONApiResponse {
|
|
272
|
+
raw;
|
|
273
|
+
transformer;
|
|
274
|
+
constructor(raw, transformer = (jsonValue) => jsonValue) {
|
|
275
|
+
this.raw = raw;
|
|
276
|
+
this.transformer = transformer;
|
|
277
|
+
}
|
|
278
|
+
async value() {
|
|
279
|
+
return this.transformer(await this.raw.json());
|
|
280
|
+
}
|
|
281
|
+
}
|
|
282
|
+
|
|
283
|
+
class VoidApiResponse {
|
|
284
|
+
raw;
|
|
285
|
+
constructor(raw) {
|
|
286
|
+
this.raw = raw;
|
|
287
|
+
}
|
|
288
|
+
async value() {
|
|
289
|
+
return;
|
|
290
|
+
}
|
|
291
|
+
}
|
|
292
|
+
|
|
293
|
+
class BlobApiResponse {
|
|
294
|
+
raw;
|
|
295
|
+
constructor(raw) {
|
|
296
|
+
this.raw = raw;
|
|
297
|
+
}
|
|
298
|
+
async value() {
|
|
299
|
+
return await this.raw.blob();
|
|
300
|
+
}
|
|
301
|
+
}
|
|
302
|
+
|
|
303
|
+
class TextApiResponse {
|
|
304
|
+
raw;
|
|
305
|
+
constructor(raw) {
|
|
306
|
+
this.raw = raw;
|
|
307
|
+
}
|
|
308
|
+
async value() {
|
|
309
|
+
return await this.raw.text();
|
|
310
|
+
}
|
|
311
|
+
}
|
|
312
|
+
// ../solution-sdk/package.json
|
|
313
|
+
var package_default = {
|
|
314
|
+
name: "@uipath/solution-sdk",
|
|
315
|
+
license: "MIT",
|
|
316
|
+
version: "1.202.0-preview.136",
|
|
317
|
+
repository: {
|
|
318
|
+
type: "git",
|
|
319
|
+
url: "https://github.com/UiPath/cli.git",
|
|
320
|
+
directory: "packages/solution-sdk"
|
|
321
|
+
},
|
|
322
|
+
publishConfig: {
|
|
323
|
+
registry: "https://npm.pkg.github.com/@uipath"
|
|
324
|
+
},
|
|
325
|
+
keywords: [
|
|
326
|
+
"uipath",
|
|
327
|
+
"solution",
|
|
328
|
+
"sdk"
|
|
329
|
+
],
|
|
330
|
+
type: "module",
|
|
331
|
+
main: "./dist/index.js",
|
|
332
|
+
types: "./dist/src/index.d.ts",
|
|
333
|
+
exports: {
|
|
334
|
+
".": {
|
|
335
|
+
types: "./dist/src/index.d.ts",
|
|
336
|
+
default: "./dist/index.js"
|
|
337
|
+
},
|
|
338
|
+
"./resources": {
|
|
339
|
+
types: "./dist/src/resources/index.d.ts",
|
|
340
|
+
default: "./dist/resources/index.js"
|
|
341
|
+
},
|
|
342
|
+
"./auth": {
|
|
343
|
+
types: "./dist/src/solution-auth.d.ts",
|
|
344
|
+
default: "./dist/solution-auth.js"
|
|
345
|
+
}
|
|
346
|
+
},
|
|
347
|
+
bin: {
|
|
348
|
+
"generate-sdk": "./dist/scripts/generate-sdk.js"
|
|
349
|
+
},
|
|
350
|
+
files: [
|
|
351
|
+
"dist"
|
|
352
|
+
],
|
|
353
|
+
private: false,
|
|
354
|
+
scripts: {
|
|
355
|
+
build: "bun build ./src/index.ts ./src/resources/index.ts ./src/solution-auth.ts --outdir dist --format esm --target node --sourcemap=linked && bun build ./src/scripts/generate-sdk.ts --outdir dist/scripts --format esm --target node --sourcemap=linked && tsc -p tsconfig.build.json --noCheck",
|
|
356
|
+
generate: "bun run src/scripts/generate-sdk.ts",
|
|
357
|
+
lint: "biome check .",
|
|
358
|
+
test: "vitest run",
|
|
359
|
+
"test:coverage": "vitest run --coverage"
|
|
360
|
+
},
|
|
361
|
+
devDependencies: {
|
|
362
|
+
"@openapitools/openapi-generator-cli": "^2.31.1",
|
|
363
|
+
"@uipath/auth": "workspace:*",
|
|
364
|
+
"@uipath/common": "workspace:*",
|
|
365
|
+
"@uipath/filesystem": "workspace:*",
|
|
366
|
+
"@uipath/orchestrator-sdk": "workspace:*",
|
|
367
|
+
"@uipath/resource-builder-sdk": "^2025.11.0-alpha4202-3459",
|
|
368
|
+
"@uipath/solutionpackager-tool-core": "workspace:*",
|
|
369
|
+
"@uipath/studioweb-sdk": "workspace:*",
|
|
370
|
+
"@types/node": "^25.5.2",
|
|
371
|
+
fflate: "^0.8.2",
|
|
372
|
+
typescript: "^7.0.2"
|
|
373
|
+
}
|
|
374
|
+
};
|
|
375
|
+
|
|
376
|
+
// ../solution-sdk/src/user-agent.ts
|
|
377
|
+
var SDK_USER_AGENT = getSdkUserAgentToken(package_default);
|
|
378
|
+
installSdkUserAgentHeader(BaseAPI, SDK_USER_AGENT);
|
|
379
|
+
|
|
380
|
+
// ../studioweb-sdk/generated/src/runtime.ts
|
|
381
|
+
var BASE_PATH2 = "https://alpha.uipath.com/studio_/backend".replace(/\/+$/, "");
|
|
382
|
+
|
|
383
|
+
class Configuration2 {
|
|
384
|
+
configuration;
|
|
385
|
+
constructor(configuration = {}) {
|
|
386
|
+
this.configuration = configuration;
|
|
387
|
+
}
|
|
388
|
+
set config(configuration) {
|
|
389
|
+
this.configuration = configuration;
|
|
390
|
+
}
|
|
391
|
+
get basePath() {
|
|
392
|
+
return this.configuration.basePath != null ? this.configuration.basePath : BASE_PATH2;
|
|
393
|
+
}
|
|
394
|
+
get fetchApi() {
|
|
395
|
+
return this.configuration.fetchApi;
|
|
396
|
+
}
|
|
397
|
+
get middleware() {
|
|
398
|
+
return this.configuration.middleware || [];
|
|
399
|
+
}
|
|
400
|
+
get queryParamsStringify() {
|
|
401
|
+
return this.configuration.queryParamsStringify || querystring2;
|
|
402
|
+
}
|
|
403
|
+
get username() {
|
|
404
|
+
return this.configuration.username;
|
|
405
|
+
}
|
|
406
|
+
get password() {
|
|
407
|
+
return this.configuration.password;
|
|
408
|
+
}
|
|
409
|
+
get apiKey() {
|
|
410
|
+
const apiKey = this.configuration.apiKey;
|
|
411
|
+
if (apiKey) {
|
|
412
|
+
return typeof apiKey === "function" ? apiKey : () => apiKey;
|
|
413
|
+
}
|
|
414
|
+
return;
|
|
415
|
+
}
|
|
416
|
+
get accessToken() {
|
|
417
|
+
const accessToken = this.configuration.accessToken;
|
|
418
|
+
if (accessToken) {
|
|
419
|
+
return typeof accessToken === "function" ? accessToken : async () => accessToken;
|
|
420
|
+
}
|
|
421
|
+
return;
|
|
422
|
+
}
|
|
423
|
+
get headers() {
|
|
424
|
+
return this.configuration.headers;
|
|
425
|
+
}
|
|
426
|
+
get credentials() {
|
|
427
|
+
return this.configuration.credentials;
|
|
428
|
+
}
|
|
429
|
+
}
|
|
430
|
+
var DefaultConfig2 = new Configuration2;
|
|
431
|
+
|
|
432
|
+
class BaseAPI2 {
|
|
433
|
+
configuration;
|
|
434
|
+
static jsonRegex = new RegExp("^(:?application/json|[^;/ \t]+/[^;/ \t]+[+]json)[ \t]*(:?;.*)?$", "i");
|
|
435
|
+
middleware;
|
|
436
|
+
constructor(configuration = DefaultConfig2) {
|
|
437
|
+
this.configuration = configuration;
|
|
438
|
+
this.middleware = configuration.middleware;
|
|
439
|
+
}
|
|
440
|
+
withMiddleware(...middlewares) {
|
|
441
|
+
const next = this.clone();
|
|
442
|
+
next.middleware = next.middleware.concat(...middlewares);
|
|
443
|
+
return next;
|
|
444
|
+
}
|
|
445
|
+
withPreMiddleware(...preMiddlewares) {
|
|
446
|
+
const middlewares = preMiddlewares.map((pre) => ({ pre }));
|
|
447
|
+
return this.withMiddleware(...middlewares);
|
|
448
|
+
}
|
|
449
|
+
withPostMiddleware(...postMiddlewares) {
|
|
450
|
+
const middlewares = postMiddlewares.map((post) => ({ post }));
|
|
451
|
+
return this.withMiddleware(...middlewares);
|
|
452
|
+
}
|
|
453
|
+
isJsonMime(mime) {
|
|
454
|
+
if (!mime) {
|
|
455
|
+
return false;
|
|
456
|
+
}
|
|
457
|
+
return BaseAPI2.jsonRegex.test(mime);
|
|
458
|
+
}
|
|
459
|
+
async request(context, initOverrides) {
|
|
460
|
+
const { url, init } = await this.createFetchParams(context, initOverrides);
|
|
461
|
+
const response = await this.fetchApi(url, init);
|
|
462
|
+
if (response && (response.status >= 200 && response.status < 300)) {
|
|
463
|
+
return response;
|
|
464
|
+
}
|
|
465
|
+
throw new ResponseError2(response, "Response returned an error code");
|
|
466
|
+
}
|
|
467
|
+
async createFetchParams(context, initOverrides) {
|
|
468
|
+
let url = this.configuration.basePath + context.path;
|
|
469
|
+
if (context.query !== undefined && Object.keys(context.query).length !== 0) {
|
|
470
|
+
url += "?" + this.configuration.queryParamsStringify(context.query);
|
|
471
|
+
}
|
|
472
|
+
const headers = Object.assign({}, this.configuration.headers, context.headers);
|
|
473
|
+
Object.keys(headers).forEach((key) => headers[key] === undefined ? delete headers[key] : {});
|
|
474
|
+
const initOverrideFn = typeof initOverrides === "function" ? initOverrides : async () => initOverrides;
|
|
475
|
+
const initParams = {
|
|
476
|
+
method: context.method,
|
|
477
|
+
headers,
|
|
478
|
+
body: context.body,
|
|
479
|
+
credentials: this.configuration.credentials
|
|
480
|
+
};
|
|
481
|
+
const overriddenInit = {
|
|
482
|
+
...initParams,
|
|
483
|
+
...await initOverrideFn({
|
|
484
|
+
init: initParams,
|
|
485
|
+
context
|
|
486
|
+
})
|
|
487
|
+
};
|
|
488
|
+
let body;
|
|
489
|
+
if (isFormData2(overriddenInit.body) || overriddenInit.body instanceof URLSearchParams || isBlob2(overriddenInit.body)) {
|
|
490
|
+
body = overriddenInit.body;
|
|
491
|
+
} else if (this.isJsonMime(headers["Content-Type"])) {
|
|
492
|
+
body = JSON.stringify(overriddenInit.body);
|
|
493
|
+
} else {
|
|
494
|
+
body = overriddenInit.body;
|
|
495
|
+
}
|
|
496
|
+
const init = {
|
|
497
|
+
...overriddenInit,
|
|
498
|
+
body
|
|
499
|
+
};
|
|
500
|
+
return { url, init };
|
|
501
|
+
}
|
|
502
|
+
fetchApi = async (url, init) => {
|
|
503
|
+
let fetchParams = { url, init };
|
|
504
|
+
for (const middleware of this.middleware) {
|
|
505
|
+
if (middleware.pre) {
|
|
506
|
+
fetchParams = await middleware.pre({
|
|
507
|
+
fetch: this.fetchApi,
|
|
508
|
+
...fetchParams
|
|
509
|
+
}) || fetchParams;
|
|
510
|
+
}
|
|
511
|
+
}
|
|
512
|
+
let response = undefined;
|
|
513
|
+
try {
|
|
514
|
+
response = await (this.configuration.fetchApi || fetch)(fetchParams.url, fetchParams.init);
|
|
515
|
+
} catch (e) {
|
|
516
|
+
for (const middleware of this.middleware) {
|
|
517
|
+
if (middleware.onError) {
|
|
518
|
+
response = await middleware.onError({
|
|
519
|
+
fetch: this.fetchApi,
|
|
520
|
+
url: fetchParams.url,
|
|
521
|
+
init: fetchParams.init,
|
|
522
|
+
error: e,
|
|
523
|
+
response: response ? response.clone() : undefined
|
|
524
|
+
}) || response;
|
|
525
|
+
}
|
|
526
|
+
}
|
|
527
|
+
if (response === undefined) {
|
|
528
|
+
if (e instanceof Error) {
|
|
529
|
+
throw new FetchError2(e, "The request failed and the interceptors did not return an alternative response");
|
|
530
|
+
} else {
|
|
531
|
+
throw e;
|
|
532
|
+
}
|
|
533
|
+
}
|
|
534
|
+
}
|
|
535
|
+
for (const middleware of this.middleware) {
|
|
536
|
+
if (middleware.post) {
|
|
537
|
+
response = await middleware.post({
|
|
538
|
+
fetch: this.fetchApi,
|
|
539
|
+
url: fetchParams.url,
|
|
540
|
+
init: fetchParams.init,
|
|
541
|
+
response: response.clone()
|
|
542
|
+
}) || response;
|
|
543
|
+
}
|
|
544
|
+
}
|
|
545
|
+
return response;
|
|
546
|
+
};
|
|
547
|
+
clone() {
|
|
548
|
+
const constructor = this.constructor;
|
|
549
|
+
const next = new constructor(this.configuration);
|
|
550
|
+
next.middleware = this.middleware.slice();
|
|
551
|
+
return next;
|
|
552
|
+
}
|
|
553
|
+
}
|
|
554
|
+
function isBlob2(value) {
|
|
555
|
+
return typeof Blob !== "undefined" && value instanceof Blob;
|
|
556
|
+
}
|
|
557
|
+
function isFormData2(value) {
|
|
558
|
+
return typeof FormData !== "undefined" && value instanceof FormData;
|
|
559
|
+
}
|
|
560
|
+
|
|
561
|
+
class ResponseError2 extends Error {
|
|
562
|
+
response;
|
|
563
|
+
name = "ResponseError";
|
|
564
|
+
constructor(response, msg) {
|
|
565
|
+
super(msg);
|
|
566
|
+
this.response = response;
|
|
567
|
+
}
|
|
568
|
+
}
|
|
569
|
+
|
|
570
|
+
class FetchError2 extends Error {
|
|
571
|
+
cause;
|
|
572
|
+
name = "FetchError";
|
|
573
|
+
constructor(cause, msg) {
|
|
574
|
+
super(msg);
|
|
575
|
+
this.cause = cause;
|
|
576
|
+
}
|
|
577
|
+
}
|
|
578
|
+
|
|
579
|
+
class RequiredError2 extends Error {
|
|
580
|
+
field;
|
|
581
|
+
name = "RequiredError";
|
|
582
|
+
constructor(field, msg) {
|
|
583
|
+
super(msg);
|
|
584
|
+
this.field = field;
|
|
585
|
+
}
|
|
586
|
+
}
|
|
587
|
+
function querystring2(params, prefix = "") {
|
|
588
|
+
return Object.keys(params).map((key) => querystringSingleKey2(key, params[key], prefix)).filter((part) => part.length > 0).join("&");
|
|
589
|
+
}
|
|
590
|
+
function querystringSingleKey2(key, value, keyPrefix = "") {
|
|
591
|
+
const fullKey = keyPrefix + (keyPrefix.length ? `[${key}]` : key);
|
|
592
|
+
if (value instanceof Array) {
|
|
593
|
+
const multiValue = value.map((singleValue) => encodeURIComponent(String(singleValue))).join(`&${encodeURIComponent(fullKey)}=`);
|
|
594
|
+
return `${encodeURIComponent(fullKey)}=${multiValue}`;
|
|
595
|
+
}
|
|
596
|
+
if (value instanceof Set) {
|
|
597
|
+
const valueAsArray = Array.from(value);
|
|
598
|
+
return querystringSingleKey2(key, valueAsArray, keyPrefix);
|
|
599
|
+
}
|
|
600
|
+
if (value instanceof Date) {
|
|
601
|
+
return `${encodeURIComponent(fullKey)}=${encodeURIComponent(value.toISOString())}`;
|
|
602
|
+
}
|
|
603
|
+
if (value instanceof Object) {
|
|
604
|
+
return querystring2(value, fullKey);
|
|
605
|
+
}
|
|
606
|
+
return `${encodeURIComponent(fullKey)}=${encodeURIComponent(String(value))}`;
|
|
607
|
+
}
|
|
608
|
+
function canConsumeForm2(consumes) {
|
|
609
|
+
for (const consume of consumes) {
|
|
610
|
+
if (consume.contentType === "multipart/form-data") {
|
|
611
|
+
return true;
|
|
612
|
+
}
|
|
613
|
+
}
|
|
614
|
+
return false;
|
|
615
|
+
}
|
|
616
|
+
|
|
617
|
+
class JSONApiResponse2 {
|
|
618
|
+
raw;
|
|
619
|
+
transformer;
|
|
620
|
+
constructor(raw, transformer = (jsonValue) => jsonValue) {
|
|
621
|
+
this.raw = raw;
|
|
622
|
+
this.transformer = transformer;
|
|
623
|
+
}
|
|
624
|
+
async value() {
|
|
625
|
+
return this.transformer(await this.raw.json());
|
|
626
|
+
}
|
|
627
|
+
}
|
|
628
|
+
// ../studioweb-sdk/generated/src/models/AccessStatus.ts
|
|
629
|
+
function AccessStatusFromJSON(json) {
|
|
630
|
+
return AccessStatusFromJSONTyped(json, false);
|
|
631
|
+
}
|
|
632
|
+
function AccessStatusFromJSONTyped(json, ignoreDiscriminator) {
|
|
633
|
+
return json;
|
|
634
|
+
}
|
|
635
|
+
// ../studioweb-sdk/generated/src/models/PinnedProject.ts
|
|
636
|
+
function PinnedProjectFromJSON(json) {
|
|
637
|
+
return PinnedProjectFromJSONTyped(json, false);
|
|
638
|
+
}
|
|
639
|
+
function PinnedProjectFromJSONTyped(json, ignoreDiscriminator) {
|
|
640
|
+
if (json == null) {
|
|
641
|
+
return json;
|
|
642
|
+
}
|
|
643
|
+
return {
|
|
644
|
+
id: json["id"] == null ? undefined : json["id"],
|
|
645
|
+
projectDbModelId: json["projectDbModelId"] == null ? undefined : json["projectDbModelId"],
|
|
646
|
+
userId: json["userId"] == null ? undefined : json["userId"],
|
|
647
|
+
creationTime: json["creationTime"] == null ? undefined : new Date(json["creationTime"]),
|
|
648
|
+
project: json["project"] == null ? undefined : ProjectDbModelFromJSON(json["project"])
|
|
649
|
+
};
|
|
650
|
+
}
|
|
651
|
+
|
|
652
|
+
// ../studioweb-sdk/generated/src/models/ProjectStructure.ts
|
|
653
|
+
function ProjectStructureFromJSON(json) {
|
|
654
|
+
return ProjectStructureFromJSONTyped(json, false);
|
|
655
|
+
}
|
|
656
|
+
function ProjectStructureFromJSONTyped(json, ignoreDiscriminator) {
|
|
657
|
+
return json;
|
|
658
|
+
}
|
|
659
|
+
|
|
660
|
+
// ../studioweb-sdk/generated/src/models/ProjectAppliedProfileModel.ts
|
|
661
|
+
function ProjectAppliedProfileModelFromJSON(json) {
|
|
662
|
+
return ProjectAppliedProfileModelFromJSONTyped(json, false);
|
|
663
|
+
}
|
|
664
|
+
function ProjectAppliedProfileModelFromJSONTyped(json, ignoreDiscriminator) {
|
|
665
|
+
if (json == null) {
|
|
666
|
+
return json;
|
|
667
|
+
}
|
|
668
|
+
return {
|
|
669
|
+
projectId: json["projectId"] == null ? undefined : json["projectId"],
|
|
670
|
+
workflowId: json["workflowId"] == null ? undefined : json["workflowId"],
|
|
671
|
+
userProfileId: json["userProfileId"] == null ? undefined : json["userProfileId"],
|
|
672
|
+
project: json["project"] == null ? undefined : ProjectDbModelFromJSON(json["project"]),
|
|
673
|
+
profile: json["profile"] == null ? undefined : UserBindingProfileModelFromJSON(json["profile"])
|
|
674
|
+
};
|
|
675
|
+
}
|
|
676
|
+
|
|
677
|
+
// ../studioweb-sdk/generated/src/models/PropertyBindingModel.ts
|
|
678
|
+
function PropertyBindingModelFromJSON(json) {
|
|
679
|
+
return PropertyBindingModelFromJSONTyped(json, false);
|
|
680
|
+
}
|
|
681
|
+
function PropertyBindingModelFromJSONTyped(json, ignoreDiscriminator) {
|
|
682
|
+
if (json == null) {
|
|
683
|
+
return json;
|
|
684
|
+
}
|
|
685
|
+
return {
|
|
686
|
+
id: json["id"] == null ? undefined : json["id"],
|
|
687
|
+
profileId: json["profileId"] == null ? undefined : json["profileId"],
|
|
688
|
+
workflowId: json["workflowId"] == null ? undefined : json["workflowId"],
|
|
689
|
+
activityIdRef: json["activityIdRef"] == null ? undefined : json["activityIdRef"],
|
|
690
|
+
propertyName: json["propertyName"] == null ? undefined : json["propertyName"],
|
|
691
|
+
contractName: json["contractName"] == null ? undefined : json["contractName"],
|
|
692
|
+
resourceKey: json["resourceKey"] == null ? undefined : json["resourceKey"],
|
|
693
|
+
propertyValue: json["propertyValue"] == null ? undefined : json["propertyValue"],
|
|
694
|
+
profile: json["profile"] == null ? undefined : UserBindingProfileModelFromJSON(json["profile"])
|
|
695
|
+
};
|
|
696
|
+
}
|
|
697
|
+
|
|
698
|
+
// ../studioweb-sdk/generated/src/models/UserBindingProfileModel.ts
|
|
699
|
+
function UserBindingProfileModelFromJSON(json) {
|
|
700
|
+
return UserBindingProfileModelFromJSONTyped3(json, false);
|
|
701
|
+
}
|
|
702
|
+
function UserBindingProfileModelFromJSONTyped3(json, ignoreDiscriminator) {
|
|
703
|
+
if (json == null) {
|
|
704
|
+
return json;
|
|
705
|
+
}
|
|
706
|
+
return {
|
|
707
|
+
id: json["id"] == null ? undefined : json["id"],
|
|
708
|
+
userId: json["userId"] == null ? undefined : json["userId"],
|
|
709
|
+
tenantId: json["tenantId"] == null ? undefined : json["tenantId"],
|
|
710
|
+
projectId: json["projectId"] == null ? undefined : json["projectId"],
|
|
711
|
+
workflowId: json["workflowId"] == null ? undefined : json["workflowId"],
|
|
712
|
+
bindingsJson: json["bindingsJson"] == null ? undefined : json["bindingsJson"],
|
|
713
|
+
userPropertyBindings: json["userPropertyBindings"] == null ? undefined : json["userPropertyBindings"].map(PropertyBindingModelFromJSON),
|
|
714
|
+
project: json["project"] == null ? undefined : ProjectDbModelFromJSON(json["project"]),
|
|
715
|
+
appliedTo: json["appliedTo"] == null ? undefined : ProjectAppliedProfileModelFromJSON(json["appliedTo"])
|
|
716
|
+
};
|
|
717
|
+
}
|
|
718
|
+
|
|
719
|
+
// ../studioweb-sdk/generated/src/models/ProjectAppModel.ts
|
|
720
|
+
function ProjectAppModelFromJSON(json) {
|
|
721
|
+
return ProjectAppModelFromJSONTyped(json, false);
|
|
722
|
+
}
|
|
723
|
+
function ProjectAppModelFromJSONTyped(json, ignoreDiscriminator) {
|
|
724
|
+
if (json == null) {
|
|
725
|
+
return json;
|
|
726
|
+
}
|
|
727
|
+
return {
|
|
728
|
+
id: json["id"] == null ? undefined : json["id"],
|
|
729
|
+
projectId: json["projectId"] == null ? undefined : json["projectId"],
|
|
730
|
+
appId: json["appId"] == null ? undefined : json["appId"],
|
|
731
|
+
isFileSystemEnabled: json["isFileSystemEnabled"] == null ? undefined : json["isFileSystemEnabled"],
|
|
732
|
+
project: json["project"] == null ? undefined : ProjectDbModelFromJSON(json["project"])
|
|
733
|
+
};
|
|
734
|
+
}
|
|
735
|
+
|
|
736
|
+
// ../studioweb-sdk/generated/src/models/ProjectLockModel.ts
|
|
737
|
+
function ProjectLockModelFromJSON(json) {
|
|
738
|
+
return ProjectLockModelFromJSONTyped(json, false);
|
|
739
|
+
}
|
|
740
|
+
function ProjectLockModelFromJSONTyped(json, ignoreDiscriminator) {
|
|
741
|
+
if (json == null) {
|
|
742
|
+
return json;
|
|
743
|
+
}
|
|
744
|
+
return {
|
|
745
|
+
projectId: json["projectId"] == null ? undefined : json["projectId"],
|
|
746
|
+
key: json["key"] == null ? undefined : json["key"],
|
|
747
|
+
userId: json["userId"] == null ? undefined : json["userId"],
|
|
748
|
+
expirationDate: json["expirationDate"] == null ? undefined : new Date(json["expirationDate"]),
|
|
749
|
+
rowVersion: json["rowVersion"] == null ? undefined : json["rowVersion"],
|
|
750
|
+
project: json["project"] == null ? undefined : ProjectDbModelFromJSON(json["project"]),
|
|
751
|
+
solutionId: json["solutionId"] == null ? undefined : json["solutionId"]
|
|
752
|
+
};
|
|
753
|
+
}
|
|
754
|
+
|
|
755
|
+
// ../studioweb-sdk/generated/src/models/TestManagerMetadataModel.ts
|
|
756
|
+
function TestManagerMetadataModelFromJSON(json) {
|
|
757
|
+
return TestManagerMetadataModelFromJSONTyped(json, false);
|
|
758
|
+
}
|
|
759
|
+
function TestManagerMetadataModelFromJSONTyped(json, ignoreDiscriminator) {
|
|
760
|
+
if (json == null) {
|
|
761
|
+
return json;
|
|
762
|
+
}
|
|
763
|
+
return {
|
|
764
|
+
id: json["id"] == null ? undefined : json["id"],
|
|
765
|
+
studioWebProjectId: json["studioWebProjectId"] == null ? undefined : json["studioWebProjectId"],
|
|
766
|
+
project: json["project"] == null ? undefined : ProjectDbModelFromJSON(json["project"]),
|
|
767
|
+
testManagerProjectId: json["testManagerProjectId"] == null ? undefined : json["testManagerProjectId"],
|
|
768
|
+
creationTime: json["creationTime"] == null ? undefined : new Date(json["creationTime"])
|
|
769
|
+
};
|
|
770
|
+
}
|
|
771
|
+
|
|
772
|
+
// ../studioweb-sdk/generated/src/models/TargetFramework.ts
|
|
773
|
+
function TargetFrameworkFromJSON(json) {
|
|
774
|
+
return TargetFrameworkFromJSONTyped(json, false);
|
|
775
|
+
}
|
|
776
|
+
function TargetFrameworkFromJSONTyped(json, ignoreDiscriminator) {
|
|
777
|
+
return json;
|
|
778
|
+
}
|
|
779
|
+
|
|
780
|
+
// ../studioweb-sdk/generated/src/models/ProjectStatus.ts
|
|
781
|
+
function ProjectStatusFromJSON(json) {
|
|
782
|
+
return ProjectStatusFromJSONTyped(json, false);
|
|
783
|
+
}
|
|
784
|
+
function ProjectStatusFromJSONTyped(json, ignoreDiscriminator) {
|
|
785
|
+
return json;
|
|
786
|
+
}
|
|
787
|
+
|
|
788
|
+
// ../studioweb-sdk/generated/src/models/SharingPermissions.ts
|
|
789
|
+
function SharingPermissionsFromJSON(json) {
|
|
790
|
+
return SharingPermissionsFromJSONTyped(json, false);
|
|
791
|
+
}
|
|
792
|
+
function SharingPermissionsFromJSONTyped(json, ignoreDiscriminator) {
|
|
793
|
+
return json;
|
|
794
|
+
}
|
|
795
|
+
|
|
796
|
+
// ../studioweb-sdk/generated/src/models/SharedProject.ts
|
|
797
|
+
function SharedProjectFromJSON(json) {
|
|
798
|
+
return SharedProjectFromJSONTyped(json, false);
|
|
799
|
+
}
|
|
800
|
+
function SharedProjectFromJSONTyped(json, ignoreDiscriminator) {
|
|
801
|
+
if (json == null) {
|
|
802
|
+
return json;
|
|
803
|
+
}
|
|
804
|
+
return {
|
|
805
|
+
id: json["id"] == null ? undefined : json["id"],
|
|
806
|
+
projectId: json["projectId"] == null ? undefined : json["projectId"],
|
|
807
|
+
entityId: json["entityId"] == null ? undefined : json["entityId"],
|
|
808
|
+
organizationId: json["organizationId"] == null ? undefined : json["organizationId"],
|
|
809
|
+
isHidden: json["isHidden"] == null ? undefined : json["isHidden"],
|
|
810
|
+
creationTime: json["creationTime"] == null ? undefined : new Date(json["creationTime"]),
|
|
811
|
+
isGroup: json["isGroup"] == null ? undefined : json["isGroup"],
|
|
812
|
+
permissions: json["permissions"] == null ? undefined : SharingPermissionsFromJSON(json["permissions"]),
|
|
813
|
+
project: json["project"] == null ? undefined : ProjectDbModelFromJSON(json["project"])
|
|
814
|
+
};
|
|
815
|
+
}
|
|
816
|
+
|
|
817
|
+
// ../studioweb-sdk/generated/src/models/UserMessageDbModel.ts
|
|
818
|
+
function UserMessageDbModelFromJSON(json) {
|
|
819
|
+
return UserMessageDbModelFromJSONTyped(json, false);
|
|
820
|
+
}
|
|
821
|
+
function UserMessageDbModelFromJSONTyped(json, ignoreDiscriminator) {
|
|
822
|
+
if (json == null) {
|
|
823
|
+
return json;
|
|
824
|
+
}
|
|
825
|
+
return {
|
|
826
|
+
id: json["id"] == null ? undefined : json["id"],
|
|
827
|
+
message: json["message"] == null ? undefined : json["message"],
|
|
828
|
+
creationTime: json["creationTime"] == null ? undefined : new Date(json["creationTime"]),
|
|
829
|
+
projectDbModelId: json["projectDbModelId"] == null ? undefined : json["projectDbModelId"],
|
|
830
|
+
project: json["project"] == null ? undefined : ProjectDbModelFromJSON(json["project"])
|
|
831
|
+
};
|
|
832
|
+
}
|
|
833
|
+
|
|
834
|
+
// ../studioweb-sdk/generated/src/models/ProjectConnectionModel.ts
|
|
835
|
+
function ProjectConnectionModelFromJSON(json) {
|
|
836
|
+
return ProjectConnectionModelFromJSONTyped(json, false);
|
|
837
|
+
}
|
|
838
|
+
function ProjectConnectionModelFromJSONTyped(json, ignoreDiscriminator) {
|
|
839
|
+
if (json == null) {
|
|
840
|
+
return json;
|
|
841
|
+
}
|
|
842
|
+
return {
|
|
843
|
+
connectionId: json["connectionId"] == null ? undefined : json["connectionId"],
|
|
844
|
+
connector: json["connector"] == null ? undefined : json["connector"],
|
|
845
|
+
projectId: json["projectId"] == null ? undefined : json["projectId"],
|
|
846
|
+
project: json["project"] == null ? undefined : ProjectDbModelFromJSON(json["project"]),
|
|
847
|
+
usedInWorkflow: json["usedInWorkflow"] == null ? undefined : json["usedInWorkflow"],
|
|
848
|
+
usedInTrigger: json["usedInTrigger"] == null ? undefined : json["usedInTrigger"],
|
|
849
|
+
workflowFileId: json["workflowFileId"] == null ? undefined : json["workflowFileId"]
|
|
850
|
+
};
|
|
851
|
+
}
|
|
852
|
+
|
|
853
|
+
// ../studioweb-sdk/generated/src/models/TriggerMetadataModel.ts
|
|
854
|
+
function TriggerMetadataModelFromJSON(json) {
|
|
855
|
+
return TriggerMetadataModelFromJSONTyped(json, false);
|
|
856
|
+
}
|
|
857
|
+
function TriggerMetadataModelFromJSONTyped(json, ignoreDiscriminator) {
|
|
858
|
+
if (json == null) {
|
|
859
|
+
return json;
|
|
860
|
+
}
|
|
861
|
+
return {
|
|
862
|
+
projectId: json["projectId"] == null ? undefined : json["projectId"],
|
|
863
|
+
connectionId: json["connectionId"] == null ? undefined : json["connectionId"],
|
|
864
|
+
connection: json["connection"] == null ? undefined : ConnectionMetadataModelFromJSON(json["connection"]),
|
|
865
|
+
projectConnection: json["projectConnection"] == null ? undefined : ProjectConnectionModelFromJSON(json["projectConnection"]),
|
|
866
|
+
operation: json["operation"] == null ? undefined : json["operation"],
|
|
867
|
+
triggerId: json["triggerId"] == null ? undefined : json["triggerId"],
|
|
868
|
+
defaultDisplayName: json["defaultDisplayName"] == null ? undefined : json["defaultDisplayName"],
|
|
869
|
+
displayName: json["displayName"] == null ? undefined : json["displayName"],
|
|
870
|
+
project: json["project"] == null ? undefined : ProjectDbModelFromJSON(json["project"])
|
|
871
|
+
};
|
|
872
|
+
}
|
|
873
|
+
|
|
874
|
+
// ../studioweb-sdk/generated/src/models/ConnectionMetadataModel.ts
|
|
875
|
+
function ConnectionMetadataModelFromJSON(json) {
|
|
876
|
+
return ConnectionMetadataModelFromJSONTyped2(json, false);
|
|
877
|
+
}
|
|
878
|
+
function ConnectionMetadataModelFromJSONTyped2(json, ignoreDiscriminator) {
|
|
879
|
+
if (json == null) {
|
|
880
|
+
return json;
|
|
881
|
+
}
|
|
882
|
+
return {
|
|
883
|
+
connectionId: json["connectionId"] == null ? undefined : json["connectionId"],
|
|
884
|
+
connector: json["connector"] == null ? undefined : json["connector"],
|
|
885
|
+
projects: json["projects"] == null ? undefined : json["projects"].map(ProjectDbModelFromJSON),
|
|
886
|
+
triggers: json["triggers"] == null ? undefined : json["triggers"].map(TriggerMetadataModelFromJSON)
|
|
887
|
+
};
|
|
888
|
+
}
|
|
889
|
+
|
|
890
|
+
// ../studioweb-sdk/generated/src/models/ProjectMetadataModel.ts
|
|
891
|
+
function ProjectMetadataModelFromJSON(json) {
|
|
892
|
+
return ProjectMetadataModelFromJSONTyped(json, false);
|
|
893
|
+
}
|
|
894
|
+
function ProjectMetadataModelFromJSONTyped(json, ignoreDiscriminator) {
|
|
895
|
+
if (json == null) {
|
|
896
|
+
return json;
|
|
897
|
+
}
|
|
898
|
+
return {
|
|
899
|
+
projectId: json["projectId"] == null ? undefined : json["projectId"],
|
|
900
|
+
hasTestCases: json["hasTestCases"] == null ? undefined : json["hasTestCases"],
|
|
901
|
+
mcIgnorableApplied: json["mcIgnorableApplied"] == null ? undefined : new Date(json["mcIgnorableApplied"]),
|
|
902
|
+
lastScanDate: json["lastScanDate"] == null ? undefined : new Date(json["lastScanDate"]),
|
|
903
|
+
project: json["project"] == null ? undefined : ProjectDbModelFromJSON(json["project"])
|
|
904
|
+
};
|
|
905
|
+
}
|
|
906
|
+
|
|
907
|
+
// ../studioweb-sdk/generated/src/models/PublishStatus.ts
|
|
908
|
+
function PublishStatusFromJSON(json) {
|
|
909
|
+
return PublishStatusFromJSONTyped(json, false);
|
|
910
|
+
}
|
|
911
|
+
function PublishStatusFromJSONTyped(json, ignoreDiscriminator) {
|
|
912
|
+
return json;
|
|
913
|
+
}
|
|
914
|
+
|
|
915
|
+
// ../studioweb-sdk/generated/src/models/PublishResultModel.ts
|
|
916
|
+
function PublishResultModelFromJSON(json) {
|
|
917
|
+
return PublishResultModelFromJSONTyped(json, false);
|
|
918
|
+
}
|
|
919
|
+
function PublishResultModelFromJSONTyped(json, ignoreDiscriminator) {
|
|
920
|
+
if (json == null) {
|
|
921
|
+
return json;
|
|
922
|
+
}
|
|
923
|
+
return {
|
|
924
|
+
id: json["id"] == null ? undefined : json["id"],
|
|
925
|
+
projectId: json["projectId"] == null ? undefined : json["projectId"],
|
|
926
|
+
creationTime: json["creationTime"] == null ? undefined : new Date(json["creationTime"]),
|
|
927
|
+
status: json["status"] == null ? undefined : PublishStatusFromJSON(json["status"]),
|
|
928
|
+
message: json["message"] == null ? undefined : json["message"],
|
|
929
|
+
tenantId: json["tenantId"] == null ? undefined : json["tenantId"],
|
|
930
|
+
feedId: json["feedId"] == null ? undefined : json["feedId"],
|
|
931
|
+
version: json["version"] == null ? undefined : json["version"],
|
|
932
|
+
userId: json["userId"] == null ? undefined : json["userId"],
|
|
933
|
+
project: json["project"] == null ? undefined : ProjectDbModelFromJSON(json["project"]),
|
|
934
|
+
iconUrl: json["iconUrl"] == null ? undefined : json["iconUrl"]
|
|
935
|
+
};
|
|
936
|
+
}
|
|
937
|
+
|
|
938
|
+
// ../studioweb-sdk/generated/src/models/SapContext.ts
|
|
939
|
+
function SapContextFromJSON(json) {
|
|
940
|
+
return SapContextFromJSONTyped(json, false);
|
|
941
|
+
}
|
|
942
|
+
function SapContextFromJSONTyped(json, ignoreDiscriminator) {
|
|
943
|
+
if (json == null) {
|
|
944
|
+
return json;
|
|
945
|
+
}
|
|
946
|
+
return {
|
|
947
|
+
id: json["id"] == null ? undefined : json["id"],
|
|
948
|
+
projectId: json["projectId"] == null ? undefined : json["projectId"],
|
|
949
|
+
tenantId: json["tenantId"] == null ? undefined : json["tenantId"],
|
|
950
|
+
isPrimaryProject: json["isPrimaryProject"] == null ? undefined : json["isPrimaryProject"],
|
|
951
|
+
externalProjectId: json["externalProjectId"] == null ? undefined : json["externalProjectId"],
|
|
952
|
+
baseCallbackPath: json["baseCallbackPath"] == null ? undefined : json["baseCallbackPath"],
|
|
953
|
+
project: json["project"] == null ? undefined : ProjectDbModelFromJSON(json["project"])
|
|
954
|
+
};
|
|
955
|
+
}
|
|
956
|
+
|
|
957
|
+
// ../studioweb-sdk/generated/src/models/ProjectPackageModel.ts
|
|
958
|
+
function ProjectPackageModelFromJSON(json) {
|
|
959
|
+
return ProjectPackageModelFromJSONTyped(json, false);
|
|
960
|
+
}
|
|
961
|
+
function ProjectPackageModelFromJSONTyped(json, ignoreDiscriminator) {
|
|
962
|
+
if (json == null) {
|
|
963
|
+
return json;
|
|
964
|
+
}
|
|
965
|
+
return {
|
|
966
|
+
id: json["id"] == null ? undefined : json["id"],
|
|
967
|
+
name: json["name"] == null ? undefined : json["name"],
|
|
968
|
+
version: json["version"] == null ? undefined : json["version"],
|
|
969
|
+
project: json["project"] == null ? undefined : ProjectDbModelFromJSON(json["project"])
|
|
970
|
+
};
|
|
971
|
+
}
|
|
972
|
+
|
|
973
|
+
// ../studioweb-sdk/generated/src/models/ProjectDbModel.ts
|
|
974
|
+
function ProjectDbModelFromJSON(json) {
|
|
975
|
+
return ProjectDbModelFromJSONTyped16(json, false);
|
|
976
|
+
}
|
|
977
|
+
function ProjectDbModelFromJSONTyped16(json, ignoreDiscriminator) {
|
|
978
|
+
if (json == null) {
|
|
979
|
+
return json;
|
|
980
|
+
}
|
|
981
|
+
return {
|
|
982
|
+
id: json["id"] == null ? undefined : json["id"],
|
|
983
|
+
designId: json["designId"] == null ? undefined : json["designId"],
|
|
984
|
+
previousProjectId: json["previousProjectId"] == null ? undefined : json["previousProjectId"],
|
|
985
|
+
userId: json["userId"] == null ? undefined : json["userId"],
|
|
986
|
+
organisationId: json["organisationId"] == null ? undefined : json["organisationId"],
|
|
987
|
+
name: json["name"] == null ? undefined : json["name"],
|
|
988
|
+
solutionId: json["solutionId"] == null ? undefined : json["solutionId"],
|
|
989
|
+
deletionDate: json["deletionDate"] == null ? undefined : new Date(json["deletionDate"]),
|
|
990
|
+
status: json["status"] == null ? undefined : ProjectStatusFromJSON(json["status"]),
|
|
991
|
+
fakeProjectTemplateEdit: json["fakeProjectTemplateEdit"] == null ? undefined : json["fakeProjectTemplateEdit"],
|
|
992
|
+
isHidden: json["isHidden"] == null ? undefined : json["isHidden"],
|
|
993
|
+
targetFramework: json["targetFramework"] == null ? undefined : TargetFrameworkFromJSON(json["targetFramework"]),
|
|
994
|
+
projectType: json["projectType"] == null ? undefined : json["projectType"],
|
|
995
|
+
creationTime: json["creationTime"] == null ? undefined : new Date(json["creationTime"]),
|
|
996
|
+
lastModifiedTime: json["lastModifiedTime"] == null ? undefined : new Date(json["lastModifiedTime"]),
|
|
997
|
+
expressionLanguage: json["expressionLanguage"] == null ? undefined : json["expressionLanguage"],
|
|
998
|
+
nameLower: json["nameLower"] == null ? undefined : json["nameLower"],
|
|
999
|
+
description: json["description"] == null ? undefined : json["description"],
|
|
1000
|
+
descriptionLower: json["descriptionLower"] == null ? undefined : json["descriptionLower"],
|
|
1001
|
+
jitVersion: json["jitVersion"] == null ? undefined : json["jitVersion"],
|
|
1002
|
+
dependencies: json["dependencies"] == null ? undefined : json["dependencies"].map(ProjectPackageModelFromJSON),
|
|
1003
|
+
pinDate: json["pinDate"] == null ? undefined : new Date(json["pinDate"]),
|
|
1004
|
+
lock: json["lock"] == null ? undefined : ProjectLockModelFromJSON(json["lock"]),
|
|
1005
|
+
hasTrigger: json["hasTrigger"] == null ? undefined : json["hasTrigger"],
|
|
1006
|
+
tenantId: json["tenantId"] == null ? undefined : json["tenantId"],
|
|
1007
|
+
sapContext: json["sapContext"] == null ? undefined : SapContextFromJSON(json["sapContext"]),
|
|
1008
|
+
rowVersion: json["rowVersion"] == null ? undefined : json["rowVersion"],
|
|
1009
|
+
disableAutoUpdateUntilDate: json["disableAutoUpdateUntilDate"] == null ? undefined : new Date(json["disableAutoUpdateUntilDate"]),
|
|
1010
|
+
structure: json["structure"] == null ? undefined : ProjectStructureFromJSON(json["structure"]),
|
|
1011
|
+
userMessage: json["userMessage"] == null ? undefined : UserMessageDbModelFromJSON(json["userMessage"]),
|
|
1012
|
+
triggerType: json["triggerType"] == null ? undefined : json["triggerType"],
|
|
1013
|
+
trigger: json["trigger"] == null ? undefined : TriggerMetadataModelFromJSON(json["trigger"]),
|
|
1014
|
+
connections: json["connections"] == null ? undefined : json["connections"].map(ConnectionMetadataModelFromJSON),
|
|
1015
|
+
pins: json["pins"] == null ? undefined : json["pins"].map(PinnedProjectFromJSON),
|
|
1016
|
+
bindingProfiles: json["bindingProfiles"] == null ? undefined : json["bindingProfiles"].map(UserBindingProfileModelFromJSON),
|
|
1017
|
+
lastAppliedProfileId: json["lastAppliedProfileId"] == null ? undefined : json["lastAppliedProfileId"],
|
|
1018
|
+
lastAppliedProfile: json["lastAppliedProfile"] == null ? undefined : UserBindingProfileModelFromJSON(json["lastAppliedProfile"]),
|
|
1019
|
+
hasDefaultName: json["hasDefaultName"] == null ? undefined : json["hasDefaultName"],
|
|
1020
|
+
projectAppliedProfiles: json["projectAppliedProfiles"] == null ? undefined : json["projectAppliedProfiles"].map(ProjectAppliedProfileModelFromJSON),
|
|
1021
|
+
projectConnections: json["projectConnections"] == null ? undefined : json["projectConnections"].map(ProjectConnectionModelFromJSON),
|
|
1022
|
+
additionalBindingProperties: json["additionalBindingProperties"] == null ? undefined : json["additionalBindingProperties"].map(AdditionalBindingPropertiesFromJSON),
|
|
1023
|
+
publishHistory: json["publishHistory"] == null ? undefined : json["publishHistory"].map(PublishResultModelFromJSON),
|
|
1024
|
+
projectAppMetadata: json["projectAppMetadata"] == null ? undefined : ProjectAppModelFromJSON(json["projectAppMetadata"]),
|
|
1025
|
+
testManagerMetadata: json["testManagerMetadata"] == null ? undefined : TestManagerMetadataModelFromJSON(json["testManagerMetadata"]),
|
|
1026
|
+
shares: json["shares"] == null ? undefined : json["shares"].map(SharedProjectFromJSON),
|
|
1027
|
+
metadata: json["metadata"] == null ? undefined : ProjectMetadataModelFromJSON(json["metadata"]),
|
|
1028
|
+
isPreview: json["isPreview"] == null ? undefined : json["isPreview"],
|
|
1029
|
+
errorList: json["errorList"] == null ? undefined : json["errorList"],
|
|
1030
|
+
requirePreprocessing: json["requirePreprocessing"] == null ? undefined : json["requirePreprocessing"],
|
|
1031
|
+
relativePath: json["relativePath"] == null ? undefined : json["relativePath"]
|
|
1032
|
+
};
|
|
1033
|
+
}
|
|
1034
|
+
|
|
1035
|
+
// ../studioweb-sdk/generated/src/models/AdditionalBindingProperties.ts
|
|
1036
|
+
function AdditionalBindingPropertiesFromJSON(json) {
|
|
1037
|
+
return AdditionalBindingPropertiesFromJSONTyped2(json, false);
|
|
1038
|
+
}
|
|
1039
|
+
function AdditionalBindingPropertiesFromJSONTyped2(json, ignoreDiscriminator) {
|
|
1040
|
+
if (json == null) {
|
|
1041
|
+
return json;
|
|
1042
|
+
}
|
|
1043
|
+
return {
|
|
1044
|
+
projectId: json["projectId"] == null ? undefined : json["projectId"],
|
|
1045
|
+
project: json["project"] == null ? undefined : ProjectDbModelFromJSON(json["project"]),
|
|
1046
|
+
workflowFileId: json["workflowFileId"] == null ? undefined : json["workflowFileId"],
|
|
1047
|
+
resourceType: json["resourceType"] == null ? undefined : json["resourceType"],
|
|
1048
|
+
resourceKey: json["resourceKey"] == null ? undefined : json["resourceKey"],
|
|
1049
|
+
purpose: json["purpose"] == null ? undefined : json["purpose"]
|
|
1050
|
+
};
|
|
1051
|
+
}
|
|
1052
|
+
// ../studioweb-sdk/generated/src/models/AdditionalBindingPropertiesDto.ts
|
|
1053
|
+
function AdditionalBindingPropertiesDtoFromJSON(json) {
|
|
1054
|
+
return AdditionalBindingPropertiesDtoFromJSONTyped(json, false);
|
|
1055
|
+
}
|
|
1056
|
+
function AdditionalBindingPropertiesDtoFromJSONTyped(json, ignoreDiscriminator) {
|
|
1057
|
+
if (json == null) {
|
|
1058
|
+
return json;
|
|
1059
|
+
}
|
|
1060
|
+
return {
|
|
1061
|
+
resourceType: json["resourceType"] == null ? undefined : json["resourceType"],
|
|
1062
|
+
resourceKey: json["resourceKey"] == null ? undefined : json["resourceKey"],
|
|
1063
|
+
purpose: json["purpose"] == null ? undefined : json["purpose"],
|
|
1064
|
+
workflowFileId: json["workflowFileId"] == null ? undefined : json["workflowFileId"]
|
|
1065
|
+
};
|
|
1066
|
+
}
|
|
1067
|
+
// ../studioweb-sdk/generated/src/models/AppUsageType.ts
|
|
1068
|
+
function AppUsageTypeFromJSON(json) {
|
|
1069
|
+
return AppUsageTypeFromJSONTyped(json, false);
|
|
1070
|
+
}
|
|
1071
|
+
function AppUsageTypeFromJSONTyped(json, ignoreDiscriminator) {
|
|
1072
|
+
return json;
|
|
1073
|
+
}
|
|
1074
|
+
// ../studioweb-sdk/generated/src/models/FileType.ts
|
|
1075
|
+
function FileTypeFromJSON(json) {
|
|
1076
|
+
return FileTypeFromJSONTyped(json, false);
|
|
1077
|
+
}
|
|
1078
|
+
function FileTypeFromJSONTyped(json, ignoreDiscriminator) {
|
|
1079
|
+
return json;
|
|
1080
|
+
}
|
|
1081
|
+
|
|
1082
|
+
// ../studioweb-sdk/generated/src/models/FileDto.ts
|
|
1083
|
+
function FileDtoFromJSON(json) {
|
|
1084
|
+
return FileDtoFromJSONTyped(json, false);
|
|
1085
|
+
}
|
|
1086
|
+
function FileDtoFromJSONTyped(json, ignoreDiscriminator) {
|
|
1087
|
+
if (json == null) {
|
|
1088
|
+
return json;
|
|
1089
|
+
}
|
|
1090
|
+
return {
|
|
1091
|
+
id: json["id"] == null ? undefined : json["id"],
|
|
1092
|
+
name: json["name"] == null ? undefined : json["name"],
|
|
1093
|
+
isMain: json["isMain"] == null ? undefined : json["isMain"],
|
|
1094
|
+
fileType: json["fileType"] == null ? undefined : FileTypeFromJSON(json["fileType"]),
|
|
1095
|
+
isEntryPoint: json["isEntryPoint"] == null ? undefined : json["isEntryPoint"],
|
|
1096
|
+
ignoredFromPublish: json["ignoredFromPublish"] == null ? undefined : json["ignoredFromPublish"],
|
|
1097
|
+
appFormId: json["appFormId"] == null ? undefined : json["appFormId"],
|
|
1098
|
+
externalAutomationId: json["externalAutomationId"] == null ? undefined : json["externalAutomationId"],
|
|
1099
|
+
testCaseId: json["testCaseId"] == null ? undefined : json["testCaseId"],
|
|
1100
|
+
contentSignature: json["contentSignature"] == null ? undefined : json["contentSignature"]
|
|
1101
|
+
};
|
|
1102
|
+
}
|
|
1103
|
+
// ../studioweb-sdk/generated/src/models/SpecialFolderType.ts
|
|
1104
|
+
function SpecialFolderTypeFromJSON(json) {
|
|
1105
|
+
return SpecialFolderTypeFromJSONTyped(json, false);
|
|
1106
|
+
}
|
|
1107
|
+
function SpecialFolderTypeFromJSONTyped(json, ignoreDiscriminator) {
|
|
1108
|
+
return json;
|
|
1109
|
+
}
|
|
1110
|
+
|
|
1111
|
+
// ../studioweb-sdk/generated/src/models/FolderDto.ts
|
|
1112
|
+
function FolderDtoFromJSON(json) {
|
|
1113
|
+
return FolderDtoFromJSONTyped(json, false);
|
|
1114
|
+
}
|
|
1115
|
+
function FolderDtoFromJSONTyped(json, ignoreDiscriminator) {
|
|
1116
|
+
if (json == null) {
|
|
1117
|
+
return json;
|
|
1118
|
+
}
|
|
1119
|
+
return {
|
|
1120
|
+
id: json["id"] == null ? undefined : json["id"],
|
|
1121
|
+
name: json["name"] == null ? undefined : json["name"],
|
|
1122
|
+
folders: json["folders"] == null ? undefined : json["folders"].map(FolderDtoFromJSON),
|
|
1123
|
+
files: json["files"] == null ? undefined : json["files"].map(FileDtoFromJSON),
|
|
1124
|
+
folderType: json["folderType"] == null ? undefined : SpecialFolderTypeFromJSON(json["folderType"])
|
|
1125
|
+
};
|
|
1126
|
+
}
|
|
1127
|
+
// ../studioweb-sdk/generated/src/models/MetadataConnectionDto.ts
|
|
1128
|
+
function MetadataConnectionDtoFromJSON(json) {
|
|
1129
|
+
return MetadataConnectionDtoFromJSONTyped(json, false);
|
|
1130
|
+
}
|
|
1131
|
+
function MetadataConnectionDtoFromJSONTyped(json, ignoreDiscriminator) {
|
|
1132
|
+
if (json == null) {
|
|
1133
|
+
return json;
|
|
1134
|
+
}
|
|
1135
|
+
return {
|
|
1136
|
+
connectionId: json["connectionId"] == null ? undefined : json["connectionId"],
|
|
1137
|
+
connector: json["connector"] == null ? undefined : json["connector"],
|
|
1138
|
+
purpose: json["purpose"] == null ? undefined : json["purpose"],
|
|
1139
|
+
workflowFileId: json["workflowFileId"] == null ? undefined : json["workflowFileId"]
|
|
1140
|
+
};
|
|
1141
|
+
}
|
|
1142
|
+
// ../studioweb-sdk/generated/src/models/MetadataTriggerDto.ts
|
|
1143
|
+
function MetadataTriggerDtoFromJSON(json) {
|
|
1144
|
+
return MetadataTriggerDtoFromJSONTyped(json, false);
|
|
1145
|
+
}
|
|
1146
|
+
function MetadataTriggerDtoFromJSONTyped(json, ignoreDiscriminator) {
|
|
1147
|
+
if (json == null) {
|
|
1148
|
+
return json;
|
|
1149
|
+
}
|
|
1150
|
+
return {
|
|
1151
|
+
connection: json["connection"] == null ? undefined : MetadataConnectionDtoFromJSON(json["connection"]),
|
|
1152
|
+
operation: json["operation"] == null ? undefined : json["operation"],
|
|
1153
|
+
triggerId: json["triggerId"] == null ? undefined : json["triggerId"],
|
|
1154
|
+
defaultDisplayName: json["defaultDisplayName"] == null ? undefined : json["defaultDisplayName"],
|
|
1155
|
+
displayName: json["displayName"] == null ? undefined : json["displayName"]
|
|
1156
|
+
};
|
|
1157
|
+
}
|
|
1158
|
+
// ../studioweb-sdk/generated/src/models/PackageDto.ts
|
|
1159
|
+
function PackageDtoFromJSON(json) {
|
|
1160
|
+
return PackageDtoFromJSONTyped(json, false);
|
|
1161
|
+
}
|
|
1162
|
+
function PackageDtoFromJSONTyped(json, ignoreDiscriminator) {
|
|
1163
|
+
if (json == null) {
|
|
1164
|
+
return json;
|
|
1165
|
+
}
|
|
1166
|
+
return {
|
|
1167
|
+
name: json["name"],
|
|
1168
|
+
version: json["version"],
|
|
1169
|
+
isRestricted: json["isRestricted"] == null ? undefined : json["isRestricted"]
|
|
1170
|
+
};
|
|
1171
|
+
}
|
|
1172
|
+
// ../studioweb-sdk/generated/src/models/TestManagerMetadataDto.ts
|
|
1173
|
+
function TestManagerMetadataDtoFromJSON(json) {
|
|
1174
|
+
return TestManagerMetadataDtoFromJSONTyped(json, false);
|
|
1175
|
+
}
|
|
1176
|
+
function TestManagerMetadataDtoFromJSONTyped(json, ignoreDiscriminator) {
|
|
1177
|
+
if (json == null) {
|
|
1178
|
+
return json;
|
|
1179
|
+
}
|
|
1180
|
+
return {
|
|
1181
|
+
testManagerProjectId: json["testManagerProjectId"] == null ? undefined : json["testManagerProjectId"],
|
|
1182
|
+
creationTime: json["creationTime"] == null ? undefined : new Date(json["creationTime"])
|
|
1183
|
+
};
|
|
1184
|
+
}
|
|
1185
|
+
|
|
1186
|
+
// ../studioweb-sdk/generated/src/models/TargetPlatform.ts
|
|
1187
|
+
function TargetPlatformFromJSON(json) {
|
|
1188
|
+
return TargetPlatformFromJSONTyped(json, false);
|
|
1189
|
+
}
|
|
1190
|
+
function TargetPlatformFromJSONTyped(json, ignoreDiscriminator) {
|
|
1191
|
+
return json;
|
|
1192
|
+
}
|
|
1193
|
+
|
|
1194
|
+
// ../studioweb-sdk/generated/src/models/ProjectErrorCode.ts
|
|
1195
|
+
function ProjectErrorCodeFromJSON(json) {
|
|
1196
|
+
return ProjectErrorCodeFromJSONTyped(json, false);
|
|
1197
|
+
}
|
|
1198
|
+
function ProjectErrorCodeFromJSONTyped(json, ignoreDiscriminator) {
|
|
1199
|
+
return json;
|
|
1200
|
+
}
|
|
1201
|
+
|
|
1202
|
+
// ../studioweb-sdk/generated/src/models/ProjectErrorInformation.ts
|
|
1203
|
+
function ProjectErrorInformationFromJSON(json) {
|
|
1204
|
+
return ProjectErrorInformationFromJSONTyped(json, false);
|
|
1205
|
+
}
|
|
1206
|
+
function ProjectErrorInformationFromJSONTyped(json, ignoreDiscriminator) {
|
|
1207
|
+
if (json == null) {
|
|
1208
|
+
return json;
|
|
1209
|
+
}
|
|
1210
|
+
return {
|
|
1211
|
+
errorCode: json["errorCode"] == null ? undefined : ProjectErrorCodeFromJSON(json["errorCode"]),
|
|
1212
|
+
metadata: json["metadata"] == null ? undefined : json["metadata"],
|
|
1213
|
+
errorMessage: json["errorMessage"] == null ? undefined : json["errorMessage"],
|
|
1214
|
+
locationId: json["locationId"] == null ? undefined : json["locationId"],
|
|
1215
|
+
isSpecialLocation: json["isSpecialLocation"] == null ? undefined : json["isSpecialLocation"]
|
|
1216
|
+
};
|
|
1217
|
+
}
|
|
1218
|
+
|
|
1219
|
+
// ../studioweb-sdk/generated/src/models/SapContextDto.ts
|
|
1220
|
+
function SapContextDtoFromJSON(json) {
|
|
1221
|
+
return SapContextDtoFromJSONTyped(json, false);
|
|
1222
|
+
}
|
|
1223
|
+
function SapContextDtoFromJSONTyped(json, ignoreDiscriminator) {
|
|
1224
|
+
if (json == null) {
|
|
1225
|
+
return json;
|
|
1226
|
+
}
|
|
1227
|
+
return {
|
|
1228
|
+
tenantId: json["tenantId"] == null ? undefined : json["tenantId"],
|
|
1229
|
+
isPrimaryProject: json["isPrimaryProject"] == null ? undefined : json["isPrimaryProject"],
|
|
1230
|
+
externalProjectId: json["externalProjectId"] == null ? undefined : json["externalProjectId"]
|
|
1231
|
+
};
|
|
1232
|
+
}
|
|
1233
|
+
|
|
1234
|
+
// ../studioweb-sdk/generated/src/models/PreviewProjectDto.ts
|
|
1235
|
+
function PreviewProjectDtoFromJSON(json) {
|
|
1236
|
+
return PreviewProjectDtoFromJSONTyped(json, false);
|
|
1237
|
+
}
|
|
1238
|
+
function PreviewProjectDtoFromJSONTyped(json, ignoreDiscriminator) {
|
|
1239
|
+
if (json == null) {
|
|
1240
|
+
return json;
|
|
1241
|
+
}
|
|
1242
|
+
return {
|
|
1243
|
+
id: json["id"] == null ? undefined : json["id"],
|
|
1244
|
+
designId: json["designId"] == null ? undefined : json["designId"],
|
|
1245
|
+
expressionLanguage: json["expressionLanguage"] == null ? undefined : json["expressionLanguage"],
|
|
1246
|
+
projectType: json["projectType"] == null ? undefined : json["projectType"],
|
|
1247
|
+
name: json["name"] == null ? undefined : json["name"],
|
|
1248
|
+
description: json["description"] == null ? undefined : json["description"],
|
|
1249
|
+
tenantId: json["tenantId"] == null ? undefined : json["tenantId"],
|
|
1250
|
+
status: json["status"] == null ? undefined : ProjectStatusFromJSON(json["status"]),
|
|
1251
|
+
message: json["message"] == null ? undefined : json["message"],
|
|
1252
|
+
lastModifiedTime: json["lastModifiedTime"] == null ? undefined : new Date(json["lastModifiedTime"]),
|
|
1253
|
+
pinDate: json["pinDate"] == null ? undefined : new Date(json["pinDate"]),
|
|
1254
|
+
triggerType: json["triggerType"] == null ? undefined : json["triggerType"],
|
|
1255
|
+
trigger: json["trigger"] == null ? undefined : MetadataTriggerDtoFromJSON(json["trigger"]),
|
|
1256
|
+
connections: json["connections"] == null ? undefined : json["connections"].map(MetadataConnectionDtoFromJSON),
|
|
1257
|
+
lockedBy: json["lockedBy"] == null ? undefined : json["lockedBy"],
|
|
1258
|
+
isSharedByMe: json["isSharedByMe"] == null ? undefined : json["isSharedByMe"],
|
|
1259
|
+
isSharedWithMe: json["isSharedWithMe"] == null ? undefined : json["isSharedWithMe"],
|
|
1260
|
+
projectAppId: json["projectAppId"] == null ? undefined : json["projectAppId"],
|
|
1261
|
+
isSwFileSystemEnabledForApps: json["isSwFileSystemEnabledForApps"] == null ? undefined : json["isSwFileSystemEnabledForApps"],
|
|
1262
|
+
ownerId: json["ownerId"] == null ? undefined : json["ownerId"],
|
|
1263
|
+
sapContext: json["sapContext"] == null ? undefined : SapContextDtoFromJSON(json["sapContext"]),
|
|
1264
|
+
hasDefaultName: json["hasDefaultName"] == null ? undefined : json["hasDefaultName"],
|
|
1265
|
+
errorList: json["errorList"] == null ? undefined : json["errorList"].map(ProjectErrorInformationFromJSON),
|
|
1266
|
+
solutionId: json["solutionId"] == null ? undefined : json["solutionId"],
|
|
1267
|
+
testManagerMetadata: json["testManagerMetadata"] == null ? undefined : TestManagerMetadataDtoFromJSON(json["testManagerMetadata"]),
|
|
1268
|
+
isPreview: json["isPreview"] == null ? undefined : json["isPreview"],
|
|
1269
|
+
lastPublishedVersion: json["lastPublishedVersion"] == null ? undefined : PublishResultModelFromJSON(json["lastPublishedVersion"]),
|
|
1270
|
+
publishedToFeeds: json["publishedToFeeds"] == null ? undefined : json["publishedToFeeds"],
|
|
1271
|
+
sortIndex: json["sortIndex"] == null ? undefined : json["sortIndex"],
|
|
1272
|
+
hasTestCases: json["hasTestCases"] == null ? undefined : json["hasTestCases"],
|
|
1273
|
+
isApp: json["isApp"] == null ? undefined : json["isApp"],
|
|
1274
|
+
targetPlatform: json["targetPlatform"] == null ? undefined : TargetPlatformFromJSON(json["targetPlatform"])
|
|
1275
|
+
};
|
|
1276
|
+
}
|
|
1277
|
+
// ../studioweb-sdk/generated/src/models/SolutionStatus.ts
|
|
1278
|
+
function SolutionStatusFromJSON(json) {
|
|
1279
|
+
return SolutionStatusFromJSONTyped(json, false);
|
|
1280
|
+
}
|
|
1281
|
+
function SolutionStatusFromJSONTyped(json, ignoreDiscriminator) {
|
|
1282
|
+
return json;
|
|
1283
|
+
}
|
|
1284
|
+
|
|
1285
|
+
// ../studioweb-sdk/generated/src/models/SolutionPublishStatus.ts
|
|
1286
|
+
function SolutionPublishStatusFromJSON(json) {
|
|
1287
|
+
return SolutionPublishStatusFromJSONTyped(json, false);
|
|
1288
|
+
}
|
|
1289
|
+
function SolutionPublishStatusFromJSONTyped(json, ignoreDiscriminator) {
|
|
1290
|
+
return json;
|
|
1291
|
+
}
|
|
1292
|
+
|
|
1293
|
+
// ../studioweb-sdk/generated/src/models/PreviewSolutionDto.ts
|
|
1294
|
+
function PreviewSolutionDtoFromJSON(json) {
|
|
1295
|
+
return PreviewSolutionDtoFromJSONTyped(json, false);
|
|
1296
|
+
}
|
|
1297
|
+
function PreviewSolutionDtoFromJSONTyped(json, ignoreDiscriminator) {
|
|
1298
|
+
if (json == null) {
|
|
1299
|
+
return json;
|
|
1300
|
+
}
|
|
1301
|
+
return {
|
|
1302
|
+
id: json["id"] == null ? undefined : json["id"],
|
|
1303
|
+
name: json["name"] == null ? undefined : json["name"],
|
|
1304
|
+
ownerId: json["ownerId"] == null ? undefined : json["ownerId"],
|
|
1305
|
+
creationTime: json["creationTime"] == null ? undefined : new Date(json["creationTime"]),
|
|
1306
|
+
lastModifiedTime: json["lastModifiedTime"] == null ? undefined : new Date(json["lastModifiedTime"]),
|
|
1307
|
+
pinDate: json["pinDate"] == null ? undefined : new Date(json["pinDate"]),
|
|
1308
|
+
projects: json["projects"] == null ? undefined : json["projects"].map(PreviewProjectDtoFromJSON),
|
|
1309
|
+
sortIndex: json["sortIndex"] == null ? undefined : json["sortIndex"],
|
|
1310
|
+
hasTestCases: json["hasTestCases"] == null ? undefined : json["hasTestCases"],
|
|
1311
|
+
status: json["status"] == null ? undefined : SolutionStatusFromJSON(json["status"]),
|
|
1312
|
+
lockedBy: json["lockedBy"] == null ? undefined : json["lockedBy"],
|
|
1313
|
+
isSharedByMe: json["isSharedByMe"] == null ? undefined : json["isSharedByMe"],
|
|
1314
|
+
isSharedWithMe: json["isSharedWithMe"] == null ? undefined : json["isSharedWithMe"],
|
|
1315
|
+
permissions: json["permissions"] == null ? undefined : SharingPermissionsFromJSON(json["permissions"]),
|
|
1316
|
+
publishStatus: json["publishStatus"] == null ? undefined : SolutionPublishStatusFromJSON(json["publishStatus"])
|
|
1317
|
+
};
|
|
1318
|
+
}
|
|
1319
|
+
// ../studioweb-sdk/generated/src/models/WorkflowUiState.ts
|
|
1320
|
+
function WorkflowUiStateFromJSON(json) {
|
|
1321
|
+
return WorkflowUiStateFromJSONTyped(json, false);
|
|
1322
|
+
}
|
|
1323
|
+
function WorkflowUiStateFromJSONTyped(json, ignoreDiscriminator) {
|
|
1324
|
+
if (json == null) {
|
|
1325
|
+
return json;
|
|
1326
|
+
}
|
|
1327
|
+
return {
|
|
1328
|
+
id: json["id"] == null ? undefined : json["id"],
|
|
1329
|
+
workflowId: json["workflowId"] == null ? undefined : json["workflowId"],
|
|
1330
|
+
json: json["json"] == null ? undefined : json["json"],
|
|
1331
|
+
projectId: json["projectId"] == null ? undefined : json["projectId"]
|
|
1332
|
+
};
|
|
1333
|
+
}
|
|
1334
|
+
|
|
1335
|
+
// ../studioweb-sdk/generated/src/models/ProjectDto.ts
|
|
1336
|
+
function ProjectDtoFromJSON(json) {
|
|
1337
|
+
return ProjectDtoFromJSONTyped(json, false);
|
|
1338
|
+
}
|
|
1339
|
+
function ProjectDtoFromJSONTyped(json, ignoreDiscriminator) {
|
|
1340
|
+
if (json == null) {
|
|
1341
|
+
return json;
|
|
1342
|
+
}
|
|
1343
|
+
return {
|
|
1344
|
+
id: json["id"] == null ? undefined : json["id"],
|
|
1345
|
+
designId: json["designId"] == null ? undefined : json["designId"],
|
|
1346
|
+
expressionLanguage: json["expressionLanguage"] == null ? undefined : json["expressionLanguage"],
|
|
1347
|
+
projectType: json["projectType"] == null ? undefined : json["projectType"],
|
|
1348
|
+
name: json["name"] == null ? undefined : json["name"],
|
|
1349
|
+
description: json["description"] == null ? undefined : json["description"],
|
|
1350
|
+
tenantId: json["tenantId"] == null ? undefined : json["tenantId"],
|
|
1351
|
+
status: json["status"] == null ? undefined : ProjectStatusFromJSON(json["status"]),
|
|
1352
|
+
message: json["message"] == null ? undefined : json["message"],
|
|
1353
|
+
lastModifiedTime: json["lastModifiedTime"] == null ? undefined : new Date(json["lastModifiedTime"]),
|
|
1354
|
+
pinDate: json["pinDate"] == null ? undefined : new Date(json["pinDate"]),
|
|
1355
|
+
triggerType: json["triggerType"] == null ? undefined : json["triggerType"],
|
|
1356
|
+
trigger: json["trigger"] == null ? undefined : MetadataTriggerDtoFromJSON(json["trigger"]),
|
|
1357
|
+
connections: json["connections"] == null ? undefined : json["connections"].map(MetadataConnectionDtoFromJSON),
|
|
1358
|
+
lockedBy: json["lockedBy"] == null ? undefined : json["lockedBy"],
|
|
1359
|
+
isSharedByMe: json["isSharedByMe"] == null ? undefined : json["isSharedByMe"],
|
|
1360
|
+
isSharedWithMe: json["isSharedWithMe"] == null ? undefined : json["isSharedWithMe"],
|
|
1361
|
+
projectAppId: json["projectAppId"] == null ? undefined : json["projectAppId"],
|
|
1362
|
+
isSwFileSystemEnabledForApps: json["isSwFileSystemEnabledForApps"] == null ? undefined : json["isSwFileSystemEnabledForApps"],
|
|
1363
|
+
ownerId: json["ownerId"] == null ? undefined : json["ownerId"],
|
|
1364
|
+
sapContext: json["sapContext"] == null ? undefined : SapContextDtoFromJSON(json["sapContext"]),
|
|
1365
|
+
hasDefaultName: json["hasDefaultName"] == null ? undefined : json["hasDefaultName"],
|
|
1366
|
+
errorList: json["errorList"] == null ? undefined : json["errorList"].map(ProjectErrorInformationFromJSON),
|
|
1367
|
+
solutionId: json["solutionId"] == null ? undefined : json["solutionId"],
|
|
1368
|
+
testManagerMetadata: json["testManagerMetadata"] == null ? undefined : TestManagerMetadataDtoFromJSON(json["testManagerMetadata"]),
|
|
1369
|
+
isPreview: json["isPreview"] == null ? undefined : json["isPreview"],
|
|
1370
|
+
lastPublishedVersion: json["lastPublishedVersion"] == null ? undefined : PublishResultModelFromJSON(json["lastPublishedVersion"]),
|
|
1371
|
+
publishedToFeeds: json["publishedToFeeds"] == null ? undefined : json["publishedToFeeds"],
|
|
1372
|
+
sortIndex: json["sortIndex"] == null ? undefined : json["sortIndex"],
|
|
1373
|
+
hasTestCases: json["hasTestCases"] == null ? undefined : json["hasTestCases"],
|
|
1374
|
+
isApp: json["isApp"] == null ? undefined : json["isApp"],
|
|
1375
|
+
targetPlatform: json["targetPlatform"] == null ? undefined : TargetPlatformFromJSON(json["targetPlatform"]),
|
|
1376
|
+
creationTime: json["creationTime"] == null ? undefined : new Date(json["creationTime"]),
|
|
1377
|
+
userId: json["userId"] == null ? undefined : json["userId"],
|
|
1378
|
+
rootFolder: json["rootFolder"] == null ? undefined : FolderDtoFromJSON(json["rootFolder"]),
|
|
1379
|
+
dependencies: json["dependencies"] == null ? undefined : json["dependencies"].map(PackageDtoFromJSON),
|
|
1380
|
+
uiStateWorkflows: json["uiStateWorkflows"] == null ? undefined : json["uiStateWorkflows"].map(WorkflowUiStateFromJSON),
|
|
1381
|
+
hasTrigger: json["hasTrigger"] == null ? undefined : json["hasTrigger"],
|
|
1382
|
+
disableAutoUpdate: json["disableAutoUpdate"] == null ? undefined : json["disableAutoUpdate"],
|
|
1383
|
+
userAccessStatus: json["userAccessStatus"] == null ? undefined : AccessStatusFromJSON(json["userAccessStatus"]),
|
|
1384
|
+
hasUnsavedEdits: json["hasUnsavedEdits"] == null ? undefined : json["hasUnsavedEdits"],
|
|
1385
|
+
projectJson: json["projectJson"] == null ? undefined : json["projectJson"],
|
|
1386
|
+
isReadOnly: json["isReadOnly"] == null ? undefined : json["isReadOnly"],
|
|
1387
|
+
version: json["version"] == null ? undefined : json["version"],
|
|
1388
|
+
additionalBindingProperties: json["additionalBindingProperties"] == null ? undefined : json["additionalBindingProperties"].map(AdditionalBindingPropertiesDtoFromJSON),
|
|
1389
|
+
workflowsWithErrors: json["workflowsWithErrors"] == null ? undefined : json["workflowsWithErrors"],
|
|
1390
|
+
requirePreprocessing: json["requirePreprocessing"] == null ? undefined : json["requirePreprocessing"],
|
|
1391
|
+
permissions: json["permissions"] == null ? undefined : SharingPermissionsFromJSON(json["permissions"]),
|
|
1392
|
+
projectSubType: json["projectSubType"] == null ? undefined : json["projectSubType"],
|
|
1393
|
+
appUsageType: json["appUsageType"] == null ? undefined : AppUsageTypeFromJSON(json["appUsageType"]),
|
|
1394
|
+
parentProjectId: json["parentProjectId"] == null ? undefined : json["parentProjectId"],
|
|
1395
|
+
jitVersion: json["jitVersion"] == null ? undefined : json["jitVersion"]
|
|
1396
|
+
};
|
|
1397
|
+
}
|
|
1398
|
+
// ../studioweb-sdk/generated/src/models/SolutionAndProjectSearchModelDto.ts
|
|
1399
|
+
function SolutionAndProjectSearchModelDtoFromJSON(json) {
|
|
1400
|
+
return SolutionAndProjectSearchModelDtoFromJSONTyped(json, false);
|
|
1401
|
+
}
|
|
1402
|
+
function SolutionAndProjectSearchModelDtoFromJSONTyped(json, ignoreDiscriminator) {
|
|
1403
|
+
if (json == null) {
|
|
1404
|
+
return json;
|
|
1405
|
+
}
|
|
1406
|
+
return {
|
|
1407
|
+
solutions: json["solutions"] == null ? undefined : json["solutions"].map(PreviewSolutionDtoFromJSON),
|
|
1408
|
+
standaloneProjects: json["standaloneProjects"] == null ? undefined : json["standaloneProjects"].map(PreviewProjectDtoFromJSON),
|
|
1409
|
+
totalCount: json["totalCount"] == null ? undefined : json["totalCount"]
|
|
1410
|
+
};
|
|
1411
|
+
}
|
|
1412
|
+
// ../studioweb-sdk/generated/src/models/SolutionDto.ts
|
|
1413
|
+
function SolutionDtoFromJSON(json) {
|
|
1414
|
+
return SolutionDtoFromJSONTyped(json, false);
|
|
1415
|
+
}
|
|
1416
|
+
function SolutionDtoFromJSONTyped(json, ignoreDiscriminator) {
|
|
1417
|
+
if (json == null) {
|
|
1418
|
+
return json;
|
|
1419
|
+
}
|
|
1420
|
+
return {
|
|
1421
|
+
id: json["id"] == null ? undefined : json["id"],
|
|
1422
|
+
name: json["name"] == null ? undefined : json["name"],
|
|
1423
|
+
description: json["description"] == null ? undefined : json["description"],
|
|
1424
|
+
userId: json["userId"] == null ? undefined : json["userId"],
|
|
1425
|
+
organizationId: json["organizationId"] == null ? undefined : json["organizationId"],
|
|
1426
|
+
status: json["status"] == null ? undefined : SolutionStatusFromJSON(json["status"]),
|
|
1427
|
+
projects: json["projects"] == null ? undefined : json["projects"].map(ProjectDtoFromJSON),
|
|
1428
|
+
isSharedWithMe: json["isSharedWithMe"] == null ? undefined : json["isSharedWithMe"],
|
|
1429
|
+
isSharedByMe: json["isSharedByMe"] == null ? undefined : json["isSharedByMe"],
|
|
1430
|
+
permissions: json["permissions"] == null ? undefined : SharingPermissionsFromJSON(json["permissions"]),
|
|
1431
|
+
lastModifiedTime: json["lastModifiedTime"] == null ? undefined : new Date(json["lastModifiedTime"]),
|
|
1432
|
+
resourcesLastModifiedTime: json["resourcesLastModifiedTime"] == null ? undefined : new Date(json["resourcesLastModifiedTime"]),
|
|
1433
|
+
hasDraftEdits: json["hasDraftEdits"] == null ? undefined : json["hasDraftEdits"],
|
|
1434
|
+
publishStatus: json["publishStatus"] == null ? undefined : SolutionPublishStatusFromJSON(json["publishStatus"]),
|
|
1435
|
+
lastAccessedTenantId: json["lastAccessedTenantId"] == null ? undefined : json["lastAccessedTenantId"],
|
|
1436
|
+
automationHubIdeaUrl: json["automationHubIdeaUrl"] == null ? undefined : json["automationHubIdeaUrl"]
|
|
1437
|
+
};
|
|
1438
|
+
}
|
|
1439
|
+
// ../studioweb-sdk/generated/src/apis/SolutionApi.ts
|
|
1440
|
+
class SolutionApi extends BaseAPI2 {
|
|
1441
|
+
async solutionGetSolutionRaw(requestParameters, initOverrides) {
|
|
1442
|
+
if (requestParameters["solutionId"] == null) {
|
|
1443
|
+
throw new RequiredError2("solutionId", 'Required parameter "solutionId" was null or undefined when calling solutionGetSolution().');
|
|
1444
|
+
}
|
|
1445
|
+
const queryParameters = {};
|
|
1446
|
+
if (requestParameters["includeReconciliationContext"] != null) {
|
|
1447
|
+
queryParameters["includeReconciliationContext"] = requestParameters["includeReconciliationContext"];
|
|
1448
|
+
}
|
|
1449
|
+
if (requestParameters["apiVersion"] != null) {
|
|
1450
|
+
queryParameters["api-version"] = requestParameters["apiVersion"];
|
|
1451
|
+
}
|
|
1452
|
+
const headerParameters = {};
|
|
1453
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
1454
|
+
const token = this.configuration.accessToken;
|
|
1455
|
+
const tokenString = await token("Bearer", []);
|
|
1456
|
+
if (tokenString) {
|
|
1457
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
1458
|
+
}
|
|
1459
|
+
}
|
|
1460
|
+
let urlPath = `/api/Solution/{solutionId}`;
|
|
1461
|
+
urlPath = urlPath.replace(`{${"solutionId"}}`, encodeURIComponent(String(requestParameters["solutionId"])));
|
|
1462
|
+
const response = await this.request({
|
|
1463
|
+
path: urlPath,
|
|
1464
|
+
method: "GET",
|
|
1465
|
+
headers: headerParameters,
|
|
1466
|
+
query: queryParameters
|
|
1467
|
+
}, initOverrides);
|
|
1468
|
+
return new JSONApiResponse2(response, (jsonValue) => SolutionDtoFromJSON(jsonValue));
|
|
1469
|
+
}
|
|
1470
|
+
async solutionGetSolution(requestParameters, initOverrides) {
|
|
1471
|
+
const response = await this.solutionGetSolutionRaw(requestParameters, initOverrides);
|
|
1472
|
+
return await response.value();
|
|
1473
|
+
}
|
|
1474
|
+
async solutionImportSolutionRaw(requestParameters, initOverrides) {
|
|
1475
|
+
if (requestParameters["uploadFile"] == null) {
|
|
1476
|
+
throw new RequiredError2("uploadFile", 'Required parameter "uploadFile" was null or undefined when calling solutionImportSolution().');
|
|
1477
|
+
}
|
|
1478
|
+
const queryParameters = {};
|
|
1479
|
+
if (requestParameters["apiVersion"] != null) {
|
|
1480
|
+
queryParameters["api-version"] = requestParameters["apiVersion"];
|
|
1481
|
+
}
|
|
1482
|
+
const headerParameters = {};
|
|
1483
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
1484
|
+
const token = this.configuration.accessToken;
|
|
1485
|
+
const tokenString = await token("Bearer", []);
|
|
1486
|
+
if (tokenString) {
|
|
1487
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
1488
|
+
}
|
|
1489
|
+
}
|
|
1490
|
+
const consumes = [
|
|
1491
|
+
{ contentType: "multipart/form-data" }
|
|
1492
|
+
];
|
|
1493
|
+
const canConsumeForm3 = canConsumeForm2(consumes);
|
|
1494
|
+
let formParams;
|
|
1495
|
+
let useForm = false;
|
|
1496
|
+
useForm = canConsumeForm3;
|
|
1497
|
+
if (useForm) {
|
|
1498
|
+
formParams = new FormData;
|
|
1499
|
+
} else {
|
|
1500
|
+
formParams = new URLSearchParams;
|
|
1501
|
+
}
|
|
1502
|
+
if (requestParameters["uploadFile"] != null) {
|
|
1503
|
+
formParams.append("uploadFile", requestParameters["uploadFile"]);
|
|
1504
|
+
}
|
|
1505
|
+
if (requestParameters["isHidden"] != null) {
|
|
1506
|
+
formParams.append("isHidden", requestParameters["isHidden"]);
|
|
1507
|
+
}
|
|
1508
|
+
if (requestParameters["createSnapshot"] != null) {
|
|
1509
|
+
formParams.append("createSnapshot", requestParameters["createSnapshot"]);
|
|
1510
|
+
}
|
|
1511
|
+
let urlPath = `/api/Solution/Import`;
|
|
1512
|
+
const response = await this.request({
|
|
1513
|
+
path: urlPath,
|
|
1514
|
+
method: "POST",
|
|
1515
|
+
headers: headerParameters,
|
|
1516
|
+
query: queryParameters,
|
|
1517
|
+
body: formParams
|
|
1518
|
+
}, initOverrides);
|
|
1519
|
+
return new JSONApiResponse2(response, (jsonValue) => SolutionDtoFromJSON(jsonValue));
|
|
1520
|
+
}
|
|
1521
|
+
async solutionImportSolution(requestParameters, initOverrides) {
|
|
1522
|
+
const response = await this.solutionImportSolutionRaw(requestParameters, initOverrides);
|
|
1523
|
+
return await response.value();
|
|
1524
|
+
}
|
|
1525
|
+
async solutionOverwriteSolutionRaw(requestParameters, initOverrides) {
|
|
1526
|
+
if (requestParameters["solutionId"] == null) {
|
|
1527
|
+
throw new RequiredError2("solutionId", 'Required parameter "solutionId" was null or undefined when calling solutionOverwriteSolution().');
|
|
1528
|
+
}
|
|
1529
|
+
if (requestParameters["uploadFile"] == null) {
|
|
1530
|
+
throw new RequiredError2("uploadFile", 'Required parameter "uploadFile" was null or undefined when calling solutionOverwriteSolution().');
|
|
1531
|
+
}
|
|
1532
|
+
const queryParameters = {};
|
|
1533
|
+
if (requestParameters["apiVersion"] != null) {
|
|
1534
|
+
queryParameters["api-version"] = requestParameters["apiVersion"];
|
|
1535
|
+
}
|
|
1536
|
+
const headerParameters = {};
|
|
1537
|
+
if (requestParameters["xUiPathSWLockKey"] != null) {
|
|
1538
|
+
headerParameters["x-UiPath-SW-LockKey"] = String(requestParameters["xUiPathSWLockKey"]);
|
|
1539
|
+
}
|
|
1540
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
1541
|
+
const token = this.configuration.accessToken;
|
|
1542
|
+
const tokenString = await token("Bearer", []);
|
|
1543
|
+
if (tokenString) {
|
|
1544
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
1545
|
+
}
|
|
1546
|
+
}
|
|
1547
|
+
const consumes = [
|
|
1548
|
+
{ contentType: "multipart/form-data" }
|
|
1549
|
+
];
|
|
1550
|
+
const canConsumeForm3 = canConsumeForm2(consumes);
|
|
1551
|
+
let formParams;
|
|
1552
|
+
let useForm = false;
|
|
1553
|
+
useForm = canConsumeForm3;
|
|
1554
|
+
if (useForm) {
|
|
1555
|
+
formParams = new FormData;
|
|
1556
|
+
} else {
|
|
1557
|
+
formParams = new URLSearchParams;
|
|
1558
|
+
}
|
|
1559
|
+
if (requestParameters["uploadFile"] != null) {
|
|
1560
|
+
formParams.append("uploadFile", requestParameters["uploadFile"]);
|
|
1561
|
+
}
|
|
1562
|
+
if (requestParameters["isHidden"] != null) {
|
|
1563
|
+
formParams.append("isHidden", requestParameters["isHidden"]);
|
|
1564
|
+
}
|
|
1565
|
+
if (requestParameters["createSnapshot"] != null) {
|
|
1566
|
+
formParams.append("createSnapshot", requestParameters["createSnapshot"]);
|
|
1567
|
+
}
|
|
1568
|
+
let urlPath = `/api/Solution/{solutionId}/Overwrite`;
|
|
1569
|
+
urlPath = urlPath.replace(`{${"solutionId"}}`, encodeURIComponent(String(requestParameters["solutionId"])));
|
|
1570
|
+
const response = await this.request({
|
|
1571
|
+
path: urlPath,
|
|
1572
|
+
method: "POST",
|
|
1573
|
+
headers: headerParameters,
|
|
1574
|
+
query: queryParameters,
|
|
1575
|
+
body: formParams
|
|
1576
|
+
}, initOverrides);
|
|
1577
|
+
return new JSONApiResponse2(response, (jsonValue) => SolutionDtoFromJSON(jsonValue));
|
|
1578
|
+
}
|
|
1579
|
+
async solutionOverwriteSolution(requestParameters, initOverrides) {
|
|
1580
|
+
const response = await this.solutionOverwriteSolutionRaw(requestParameters, initOverrides);
|
|
1581
|
+
return await response.value();
|
|
1582
|
+
}
|
|
1583
|
+
async solutionSearchSolutionsAndProjectsRaw(requestParameters, initOverrides) {
|
|
1584
|
+
const queryParameters = {};
|
|
1585
|
+
if (requestParameters["triggerTypes"] != null) {
|
|
1586
|
+
queryParameters["triggerTypes"] = requestParameters["triggerTypes"];
|
|
1587
|
+
}
|
|
1588
|
+
if (requestParameters["owners"] != null) {
|
|
1589
|
+
queryParameters["owners"] = requestParameters["owners"];
|
|
1590
|
+
}
|
|
1591
|
+
if (requestParameters["isPublished"] != null) {
|
|
1592
|
+
queryParameters["isPublished"] = requestParameters["isPublished"];
|
|
1593
|
+
}
|
|
1594
|
+
if (requestParameters["hasTestCases"] != null) {
|
|
1595
|
+
queryParameters["hasTestCases"] = requestParameters["hasTestCases"];
|
|
1596
|
+
}
|
|
1597
|
+
if (requestParameters["publishStatus"] != null) {
|
|
1598
|
+
queryParameters["publishStatus"] = requestParameters["publishStatus"];
|
|
1599
|
+
}
|
|
1600
|
+
if (requestParameters["validIds"] != null) {
|
|
1601
|
+
queryParameters["validIds"] = requestParameters["validIds"];
|
|
1602
|
+
}
|
|
1603
|
+
if (requestParameters["keywords"] != null) {
|
|
1604
|
+
queryParameters["keywords"] = requestParameters["keywords"];
|
|
1605
|
+
}
|
|
1606
|
+
if (requestParameters["connectors"] != null) {
|
|
1607
|
+
queryParameters["connectors"] = requestParameters["connectors"];
|
|
1608
|
+
}
|
|
1609
|
+
if (requestParameters["pagingOptionsLimit"] != null) {
|
|
1610
|
+
queryParameters["pagingOptions.limit"] = requestParameters["pagingOptionsLimit"];
|
|
1611
|
+
}
|
|
1612
|
+
if (requestParameters["pagingOptionsSkip"] != null) {
|
|
1613
|
+
queryParameters["pagingOptions.skip"] = requestParameters["pagingOptionsSkip"];
|
|
1614
|
+
}
|
|
1615
|
+
if (requestParameters["sortBy"] != null) {
|
|
1616
|
+
queryParameters["sortBy"] = requestParameters["sortBy"];
|
|
1617
|
+
}
|
|
1618
|
+
if (requestParameters["sortOrder"] != null) {
|
|
1619
|
+
queryParameters["sortOrder"] = requestParameters["sortOrder"];
|
|
1620
|
+
}
|
|
1621
|
+
if (requestParameters["apiVersion"] != null) {
|
|
1622
|
+
queryParameters["api-version"] = requestParameters["apiVersion"];
|
|
1623
|
+
}
|
|
1624
|
+
const headerParameters = {};
|
|
1625
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
1626
|
+
const token = this.configuration.accessToken;
|
|
1627
|
+
const tokenString = await token("Bearer", []);
|
|
1628
|
+
if (tokenString) {
|
|
1629
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
1630
|
+
}
|
|
1631
|
+
}
|
|
1632
|
+
let urlPath = `/api/Solution/SearchSolutionsAndProjects`;
|
|
1633
|
+
const response = await this.request({
|
|
1634
|
+
path: urlPath,
|
|
1635
|
+
method: "GET",
|
|
1636
|
+
headers: headerParameters,
|
|
1637
|
+
query: queryParameters
|
|
1638
|
+
}, initOverrides);
|
|
1639
|
+
return new JSONApiResponse2(response, (jsonValue) => SolutionAndProjectSearchModelDtoFromJSON(jsonValue));
|
|
1640
|
+
}
|
|
1641
|
+
async solutionSearchSolutionsAndProjects(requestParameters = {}, initOverrides) {
|
|
1642
|
+
const response = await this.solutionSearchSolutionsAndProjectsRaw(requestParameters, initOverrides);
|
|
1643
|
+
return await response.value();
|
|
1644
|
+
}
|
|
1645
|
+
}
|
|
1646
|
+
// ../studioweb-sdk/src/client.ts
|
|
1647
|
+
function studioWebBasePath(config, organizationName) {
|
|
1648
|
+
return `${config.baseUrl}/${organizationName}/studio_/backend`;
|
|
1649
|
+
}
|
|
1650
|
+
function buildStudioWebConfiguration(config, organizationName) {
|
|
1651
|
+
const headers = {};
|
|
1652
|
+
if (config.tenantId) {
|
|
1653
|
+
headers["x-uipath-tenantid"] = config.tenantId;
|
|
1654
|
+
}
|
|
1655
|
+
return new Configuration2({
|
|
1656
|
+
basePath: studioWebBasePath(config, organizationName),
|
|
1657
|
+
accessToken: config.authToken,
|
|
1658
|
+
headers
|
|
1659
|
+
});
|
|
1660
|
+
}
|
|
1661
|
+
function createSolutionApi(config, organizationName) {
|
|
1662
|
+
return new SolutionApi(buildStudioWebConfiguration(config, organizationName));
|
|
1663
|
+
}
|
|
1664
|
+
// ../studioweb-sdk/src/publish-locations.ts
|
|
1665
|
+
async function getAvailablePublishLocationsV2(config, organizationName) {
|
|
1666
|
+
const url = `${studioWebBasePath(config, organizationName)}/api/resourcebuilder/solutions/v2/publish-location`;
|
|
1667
|
+
const headers = {
|
|
1668
|
+
Authorization: `Bearer ${config.authToken}`
|
|
1669
|
+
};
|
|
1670
|
+
if (config.tenantId) {
|
|
1671
|
+
headers["x-uipath-tenantid"] = config.tenantId;
|
|
1672
|
+
}
|
|
1673
|
+
const response = await fetch(url, { method: "GET", headers });
|
|
1674
|
+
if (!response.ok) {
|
|
1675
|
+
const text = await response.text();
|
|
1676
|
+
throw new Error(`Failed to fetch publish locations (${response.status}): ${text}`);
|
|
1677
|
+
}
|
|
1678
|
+
const raw = await response.json();
|
|
1679
|
+
if (!Array.isArray(raw)) {
|
|
1680
|
+
throw new Error("Unexpected publish-locations response: expected a JSON array.");
|
|
1681
|
+
}
|
|
1682
|
+
return raw.map(toPublishLocationV2);
|
|
1683
|
+
}
|
|
1684
|
+
function toPublishLocationV2(value) {
|
|
1685
|
+
const v = value ?? {};
|
|
1686
|
+
return {
|
|
1687
|
+
name: typeof v.name === "string" ? v.name : "",
|
|
1688
|
+
key: typeof v.key === "string" ? v.key : "",
|
|
1689
|
+
isMyPersonalWorkspace: v.isMyPersonalWorkspace === true,
|
|
1690
|
+
type: normalizeType(v.type)
|
|
1691
|
+
};
|
|
1692
|
+
}
|
|
1693
|
+
function normalizeType(type) {
|
|
1694
|
+
if (typeof type !== "string") {
|
|
1695
|
+
return "Unknown";
|
|
1696
|
+
}
|
|
1697
|
+
switch (type.toLowerCase()) {
|
|
1698
|
+
case "tenant":
|
|
1699
|
+
return "Tenant";
|
|
1700
|
+
case "folder":
|
|
1701
|
+
return "Folder";
|
|
1702
|
+
case "personalworkspace":
|
|
1703
|
+
return "PersonalWorkspace";
|
|
1704
|
+
default:
|
|
1705
|
+
return "Unknown";
|
|
1706
|
+
}
|
|
1707
|
+
}
|
|
1708
|
+
// ../solution-sdk/generated/src/models/ResponseDictionaryDto.ts
|
|
1709
|
+
function instanceOfResponseDictionaryDto(value) {
|
|
1710
|
+
return true;
|
|
1711
|
+
}
|
|
1712
|
+
function ResponseDictionaryDtoFromJSON(json) {
|
|
1713
|
+
return ResponseDictionaryDtoFromJSONTyped(json, false);
|
|
1714
|
+
}
|
|
1715
|
+
function ResponseDictionaryDtoFromJSONTyped(json, ignoreDiscriminator) {
|
|
1716
|
+
if (json == null) {
|
|
1717
|
+
return json;
|
|
1718
|
+
}
|
|
1719
|
+
return {
|
|
1720
|
+
keys: json["keys"] == null ? undefined : json["keys"],
|
|
1721
|
+
values: json["values"] == null ? undefined : json["values"]
|
|
1722
|
+
};
|
|
1723
|
+
}
|
|
1724
|
+
function ResponseDictionaryDtoToJSON(json) {
|
|
1725
|
+
return ResponseDictionaryDtoToJSONTyped(json, false);
|
|
1726
|
+
}
|
|
1727
|
+
function ResponseDictionaryDtoToJSONTyped(value, ignoreDiscriminator = false) {
|
|
1728
|
+
if (value == null) {
|
|
1729
|
+
return value;
|
|
1730
|
+
}
|
|
1731
|
+
return {
|
|
1732
|
+
keys: value["keys"],
|
|
1733
|
+
values: value["values"]
|
|
1734
|
+
};
|
|
1735
|
+
}
|
|
1736
|
+
|
|
1737
|
+
// ../solution-sdk/generated/src/models/BlobFileAccessDto.ts
|
|
1738
|
+
function instanceOfBlobFileAccessDto(value) {
|
|
1739
|
+
if (!("uri" in value) || value["uri"] === undefined)
|
|
1740
|
+
return false;
|
|
1741
|
+
if (!("verb" in value) || value["verb"] === undefined)
|
|
1742
|
+
return false;
|
|
1743
|
+
return true;
|
|
1744
|
+
}
|
|
1745
|
+
function BlobFileAccessDtoFromJSON(json) {
|
|
1746
|
+
return BlobFileAccessDtoFromJSONTyped(json, false);
|
|
1747
|
+
}
|
|
1748
|
+
function BlobFileAccessDtoFromJSONTyped(json, ignoreDiscriminator) {
|
|
1749
|
+
if (json == null) {
|
|
1750
|
+
return json;
|
|
1751
|
+
}
|
|
1752
|
+
return {
|
|
1753
|
+
uri: json["uri"],
|
|
1754
|
+
verb: json["verb"],
|
|
1755
|
+
headers: json["headers"] == null ? undefined : ResponseDictionaryDtoFromJSON(json["headers"])
|
|
1756
|
+
};
|
|
1757
|
+
}
|
|
1758
|
+
function BlobFileAccessDtoToJSON(json) {
|
|
1759
|
+
return BlobFileAccessDtoToJSONTyped(json, false);
|
|
1760
|
+
}
|
|
1761
|
+
function BlobFileAccessDtoToJSONTyped(value, ignoreDiscriminator = false) {
|
|
1762
|
+
if (value == null) {
|
|
1763
|
+
return value;
|
|
1764
|
+
}
|
|
1765
|
+
return {
|
|
1766
|
+
uri: value["uri"],
|
|
1767
|
+
verb: value["verb"],
|
|
1768
|
+
headers: ResponseDictionaryDtoToJSON(value["headers"])
|
|
1769
|
+
};
|
|
1770
|
+
}
|
|
1771
|
+
// ../solution-sdk/generated/src/models/CreateConfigurationCommand.ts
|
|
1772
|
+
function instanceOfCreateConfigurationCommand(value) {
|
|
1773
|
+
if (!("packageVersionKey" in value) || value["packageVersionKey"] === undefined)
|
|
1774
|
+
return false;
|
|
1775
|
+
return true;
|
|
1776
|
+
}
|
|
1777
|
+
function CreateConfigurationCommandFromJSON(json) {
|
|
1778
|
+
return CreateConfigurationCommandFromJSONTyped(json, false);
|
|
1779
|
+
}
|
|
1780
|
+
function CreateConfigurationCommandFromJSONTyped(json, ignoreDiscriminator) {
|
|
1781
|
+
if (json == null) {
|
|
1782
|
+
return json;
|
|
1783
|
+
}
|
|
1784
|
+
return {
|
|
1785
|
+
packageVersionKey: json["packageVersionKey"],
|
|
1786
|
+
name: json["name"] == null ? undefined : json["name"]
|
|
1787
|
+
};
|
|
1788
|
+
}
|
|
1789
|
+
function CreateConfigurationCommandToJSON(json) {
|
|
1790
|
+
return CreateConfigurationCommandToJSONTyped(json, false);
|
|
1791
|
+
}
|
|
1792
|
+
function CreateConfigurationCommandToJSONTyped(value, ignoreDiscriminator = false) {
|
|
1793
|
+
if (value == null) {
|
|
1794
|
+
return value;
|
|
1795
|
+
}
|
|
1796
|
+
return {
|
|
1797
|
+
packageVersionKey: value["packageVersionKey"],
|
|
1798
|
+
name: value["name"]
|
|
1799
|
+
};
|
|
1800
|
+
}
|
|
1801
|
+
// ../solution-sdk/generated/src/models/DeploymentActivationStatus.ts
|
|
1802
|
+
var DeploymentActivationStatus = {
|
|
1803
|
+
None: "None",
|
|
1804
|
+
Active: "Active",
|
|
1805
|
+
Inactive: "Inactive",
|
|
1806
|
+
ActivationFailed: "ActivationFailed",
|
|
1807
|
+
DeactivationFailed: "DeactivationFailed",
|
|
1808
|
+
ReadyToActivate: "ReadyToActivate",
|
|
1809
|
+
NeedsSetupToActivate: "NeedsSetupToActivate"
|
|
1810
|
+
};
|
|
1811
|
+
function instanceOfDeploymentActivationStatus(value) {
|
|
1812
|
+
for (const key in DeploymentActivationStatus) {
|
|
1813
|
+
if (Object.prototype.hasOwnProperty.call(DeploymentActivationStatus, key)) {
|
|
1814
|
+
if (DeploymentActivationStatus[key] === value) {
|
|
1815
|
+
return true;
|
|
1816
|
+
}
|
|
1817
|
+
}
|
|
1818
|
+
}
|
|
1819
|
+
return false;
|
|
1820
|
+
}
|
|
1821
|
+
function DeploymentActivationStatusFromJSON(json) {
|
|
1822
|
+
return DeploymentActivationStatusFromJSONTyped(json, false);
|
|
1823
|
+
}
|
|
1824
|
+
function DeploymentActivationStatusFromJSONTyped(json, ignoreDiscriminator) {
|
|
1825
|
+
return json;
|
|
1826
|
+
}
|
|
1827
|
+
function DeploymentActivationStatusToJSON(value) {
|
|
1828
|
+
return value;
|
|
1829
|
+
}
|
|
1830
|
+
function DeploymentActivationStatusToJSONTyped(value, ignoreDiscriminator) {
|
|
1831
|
+
return value;
|
|
1832
|
+
}
|
|
1833
|
+
// ../solution-sdk/generated/src/models/OverwriteType.ts
|
|
1834
|
+
var OverwriteType = {
|
|
1835
|
+
Install: "Install",
|
|
1836
|
+
Reference: "Reference"
|
|
1837
|
+
};
|
|
1838
|
+
function instanceOfOverwriteType(value) {
|
|
1839
|
+
for (const key in OverwriteType) {
|
|
1840
|
+
if (Object.prototype.hasOwnProperty.call(OverwriteType, key)) {
|
|
1841
|
+
if (OverwriteType[key] === value) {
|
|
1842
|
+
return true;
|
|
1843
|
+
}
|
|
1844
|
+
}
|
|
1845
|
+
}
|
|
1846
|
+
return false;
|
|
1847
|
+
}
|
|
1848
|
+
function OverwriteTypeFromJSON(json) {
|
|
1849
|
+
return OverwriteTypeFromJSONTyped(json, false);
|
|
1850
|
+
}
|
|
1851
|
+
function OverwriteTypeFromJSONTyped(json, ignoreDiscriminator) {
|
|
1852
|
+
return json;
|
|
1853
|
+
}
|
|
1854
|
+
function OverwriteTypeToJSON(value) {
|
|
1855
|
+
return value;
|
|
1856
|
+
}
|
|
1857
|
+
function OverwriteTypeToJSONTyped(value, ignoreDiscriminator) {
|
|
1858
|
+
return value;
|
|
1859
|
+
}
|
|
1860
|
+
|
|
1861
|
+
// ../solution-sdk/generated/src/models/Overwrite.ts
|
|
1862
|
+
function instanceOfOverwrite(value) {
|
|
1863
|
+
if (!("resourceKey" in value) || value["resourceKey"] === undefined)
|
|
1864
|
+
return false;
|
|
1865
|
+
if (!("resourceName" in value) || value["resourceName"] === undefined)
|
|
1866
|
+
return false;
|
|
1867
|
+
if (!("type" in value) || value["type"] === undefined)
|
|
1868
|
+
return false;
|
|
1869
|
+
return true;
|
|
1870
|
+
}
|
|
1871
|
+
function OverwriteFromJSON(json) {
|
|
1872
|
+
return OverwriteFromJSONTyped(json, false);
|
|
1873
|
+
}
|
|
1874
|
+
function OverwriteFromJSONTyped(json, ignoreDiscriminator) {
|
|
1875
|
+
if (json == null) {
|
|
1876
|
+
return json;
|
|
1877
|
+
}
|
|
1878
|
+
return {
|
|
1879
|
+
resourceKey: json["resourceKey"],
|
|
1880
|
+
resourceName: json["resourceName"],
|
|
1881
|
+
folderKey: json["folderKey"] == null ? undefined : json["folderKey"],
|
|
1882
|
+
folderFullyQualifiedName: json["folderFullyQualifiedName"] == null ? undefined : json["folderFullyQualifiedName"],
|
|
1883
|
+
folderPath: json["folderPath"] == null ? undefined : json["folderPath"],
|
|
1884
|
+
type: OverwriteTypeFromJSON(json["type"])
|
|
1885
|
+
};
|
|
1886
|
+
}
|
|
1887
|
+
function OverwriteToJSON(json) {
|
|
1888
|
+
return OverwriteToJSONTyped(json, false);
|
|
1889
|
+
}
|
|
1890
|
+
function OverwriteToJSONTyped(value, ignoreDiscriminator = false) {
|
|
1891
|
+
if (value == null) {
|
|
1892
|
+
return value;
|
|
1893
|
+
}
|
|
1894
|
+
return {
|
|
1895
|
+
resourceKey: value["resourceKey"],
|
|
1896
|
+
resourceName: value["resourceName"],
|
|
1897
|
+
folderKey: value["folderKey"],
|
|
1898
|
+
folderFullyQualifiedName: value["folderFullyQualifiedName"],
|
|
1899
|
+
folderPath: value["folderPath"],
|
|
1900
|
+
type: OverwriteTypeToJSON(value["type"])
|
|
1901
|
+
};
|
|
1902
|
+
}
|
|
1903
|
+
|
|
1904
|
+
// ../solution-sdk/generated/src/models/ResourceOverwrite.ts
|
|
1905
|
+
function instanceOfResourceOverwrite(value) {
|
|
1906
|
+
if (!("solutionResourceKey" in value) || value["solutionResourceKey"] === undefined)
|
|
1907
|
+
return false;
|
|
1908
|
+
if (!("reprovisioningIndex" in value) || value["reprovisioningIndex"] === undefined)
|
|
1909
|
+
return false;
|
|
1910
|
+
return true;
|
|
1911
|
+
}
|
|
1912
|
+
function ResourceOverwriteFromJSON(json) {
|
|
1913
|
+
return ResourceOverwriteFromJSONTyped(json, false);
|
|
1914
|
+
}
|
|
1915
|
+
function ResourceOverwriteFromJSONTyped(json, ignoreDiscriminator) {
|
|
1916
|
+
if (json == null) {
|
|
1917
|
+
return json;
|
|
1918
|
+
}
|
|
1919
|
+
return {
|
|
1920
|
+
solutionResourceKey: json["solutionResourceKey"],
|
|
1921
|
+
reprovisioningIndex: json["reprovisioningIndex"],
|
|
1922
|
+
overwrite: json["overwrite"] == null ? undefined : OverwriteFromJSON(json["overwrite"])
|
|
1923
|
+
};
|
|
1924
|
+
}
|
|
1925
|
+
function ResourceOverwriteToJSON(json) {
|
|
1926
|
+
return ResourceOverwriteToJSONTyped(json, false);
|
|
1927
|
+
}
|
|
1928
|
+
function ResourceOverwriteToJSONTyped(value, ignoreDiscriminator = false) {
|
|
1929
|
+
if (value == null) {
|
|
1930
|
+
return value;
|
|
1931
|
+
}
|
|
1932
|
+
return {
|
|
1933
|
+
solutionResourceKey: value["solutionResourceKey"],
|
|
1934
|
+
reprovisioningIndex: value["reprovisioningIndex"],
|
|
1935
|
+
overwrite: OverwriteToJSON(value["overwrite"])
|
|
1936
|
+
};
|
|
1937
|
+
}
|
|
1938
|
+
|
|
1939
|
+
// ../solution-sdk/generated/src/models/RuntimeSetup.ts
|
|
1940
|
+
function instanceOfRuntimeSetup(value) {
|
|
1941
|
+
if (!("requireServerlessTemplate" in value) || value["requireServerlessTemplate"] === undefined)
|
|
1942
|
+
return false;
|
|
1943
|
+
return true;
|
|
1944
|
+
}
|
|
1945
|
+
function RuntimeSetupFromJSON(json) {
|
|
1946
|
+
return RuntimeSetupFromJSONTyped(json, false);
|
|
1947
|
+
}
|
|
1948
|
+
function RuntimeSetupFromJSONTyped(json, ignoreDiscriminator) {
|
|
1949
|
+
if (json == null) {
|
|
1950
|
+
return json;
|
|
1951
|
+
}
|
|
1952
|
+
return {
|
|
1953
|
+
requireServerlessTemplate: json["requireServerlessTemplate"]
|
|
1954
|
+
};
|
|
1955
|
+
}
|
|
1956
|
+
function RuntimeSetupToJSON(json) {
|
|
1957
|
+
return RuntimeSetupToJSONTyped(json, false);
|
|
1958
|
+
}
|
|
1959
|
+
function RuntimeSetupToJSONTyped(value, ignoreDiscriminator = false) {
|
|
1960
|
+
if (value == null) {
|
|
1961
|
+
return value;
|
|
1962
|
+
}
|
|
1963
|
+
return {
|
|
1964
|
+
requireServerlessTemplate: value["requireServerlessTemplate"]
|
|
1965
|
+
};
|
|
1966
|
+
}
|
|
1967
|
+
|
|
1968
|
+
// ../solution-sdk/generated/src/models/DeploymentAutoRequest.ts
|
|
1969
|
+
function instanceOfDeploymentAutoRequest(value) {
|
|
1970
|
+
if (!("packageVersionKey" in value) || value["packageVersionKey"] === undefined)
|
|
1971
|
+
return false;
|
|
1972
|
+
if (!("overwrites" in value) || value["overwrites"] === undefined)
|
|
1973
|
+
return false;
|
|
1974
|
+
return true;
|
|
1975
|
+
}
|
|
1976
|
+
function DeploymentAutoRequestFromJSON(json) {
|
|
1977
|
+
return DeploymentAutoRequestFromJSONTyped(json, false);
|
|
1978
|
+
}
|
|
1979
|
+
function DeploymentAutoRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
1980
|
+
if (json == null) {
|
|
1981
|
+
return json;
|
|
1982
|
+
}
|
|
1983
|
+
return {
|
|
1984
|
+
packageVersionKey: json["packageVersionKey"],
|
|
1985
|
+
folderFQN: json["folderFQN"] == null ? undefined : json["folderFQN"],
|
|
1986
|
+
overwrites: json["overwrites"].map(ResourceOverwriteFromJSON),
|
|
1987
|
+
runtimeSetup: json["runtimeSetup"] == null ? undefined : RuntimeSetupFromJSON(json["runtimeSetup"])
|
|
1988
|
+
};
|
|
1989
|
+
}
|
|
1990
|
+
function DeploymentAutoRequestToJSON(json) {
|
|
1991
|
+
return DeploymentAutoRequestToJSONTyped(json, false);
|
|
1992
|
+
}
|
|
1993
|
+
function DeploymentAutoRequestToJSONTyped(value, ignoreDiscriminator = false) {
|
|
1994
|
+
if (value == null) {
|
|
1995
|
+
return value;
|
|
1996
|
+
}
|
|
1997
|
+
return {
|
|
1998
|
+
packageVersionKey: value["packageVersionKey"],
|
|
1999
|
+
folderFQN: value["folderFQN"],
|
|
2000
|
+
overwrites: value["overwrites"].map(ResourceOverwriteToJSON),
|
|
2001
|
+
runtimeSetup: RuntimeSetupToJSON(value["runtimeSetup"])
|
|
2002
|
+
};
|
|
2003
|
+
}
|
|
2004
|
+
// ../solution-sdk/generated/src/models/DeploymentDto.ts
|
|
2005
|
+
function instanceOfDeploymentDto(value) {
|
|
2006
|
+
if (!("packageName" in value) || value["packageName"] === undefined)
|
|
2007
|
+
return false;
|
|
2008
|
+
if (!("deploymentName" in value) || value["deploymentName"] === undefined)
|
|
2009
|
+
return false;
|
|
2010
|
+
return true;
|
|
2011
|
+
}
|
|
2012
|
+
function DeploymentDtoFromJSON(json) {
|
|
2013
|
+
return DeploymentDtoFromJSONTyped(json, false);
|
|
2014
|
+
}
|
|
2015
|
+
function DeploymentDtoFromJSONTyped(json, ignoreDiscriminator) {
|
|
2016
|
+
if (json == null) {
|
|
2017
|
+
return json;
|
|
2018
|
+
}
|
|
2019
|
+
return {
|
|
2020
|
+
packageName: json["packageName"],
|
|
2021
|
+
deploymentName: json["deploymentName"]
|
|
2022
|
+
};
|
|
2023
|
+
}
|
|
2024
|
+
function DeploymentDtoToJSON(json) {
|
|
2025
|
+
return DeploymentDtoToJSONTyped(json, false);
|
|
2026
|
+
}
|
|
2027
|
+
function DeploymentDtoToJSONTyped(value, ignoreDiscriminator = false) {
|
|
2028
|
+
if (value == null) {
|
|
2029
|
+
return value;
|
|
2030
|
+
}
|
|
2031
|
+
return {
|
|
2032
|
+
packageName: value["packageName"],
|
|
2033
|
+
deploymentName: value["deploymentName"]
|
|
2034
|
+
};
|
|
2035
|
+
}
|
|
2036
|
+
// ../solution-sdk/generated/src/models/WorkflowAction.ts
|
|
2037
|
+
var WorkflowAction = {
|
|
2038
|
+
Install: "Install",
|
|
2039
|
+
Activate: "Activate",
|
|
2040
|
+
Uninstall: "Uninstall",
|
|
2041
|
+
Upgrade: "Upgrade",
|
|
2042
|
+
Delete: "Delete",
|
|
2043
|
+
SetupActivation: "SetupActivation"
|
|
2044
|
+
};
|
|
2045
|
+
function instanceOfWorkflowAction(value) {
|
|
2046
|
+
for (const key in WorkflowAction) {
|
|
2047
|
+
if (Object.prototype.hasOwnProperty.call(WorkflowAction, key)) {
|
|
2048
|
+
if (WorkflowAction[key] === value) {
|
|
2049
|
+
return true;
|
|
2050
|
+
}
|
|
2051
|
+
}
|
|
2052
|
+
}
|
|
2053
|
+
return false;
|
|
2054
|
+
}
|
|
2055
|
+
function WorkflowActionFromJSON(json) {
|
|
2056
|
+
return WorkflowActionFromJSONTyped(json, false);
|
|
2057
|
+
}
|
|
2058
|
+
function WorkflowActionFromJSONTyped(json, ignoreDiscriminator) {
|
|
2059
|
+
return json;
|
|
2060
|
+
}
|
|
2061
|
+
function WorkflowActionToJSON(value) {
|
|
2062
|
+
return value;
|
|
2063
|
+
}
|
|
2064
|
+
function WorkflowActionToJSONTyped(value, ignoreDiscriminator) {
|
|
2065
|
+
return value;
|
|
2066
|
+
}
|
|
2067
|
+
|
|
2068
|
+
// ../solution-sdk/generated/src/models/DeploymentOperation.ts
|
|
2069
|
+
var DeploymentOperation = {
|
|
2070
|
+
Install: "Install",
|
|
2071
|
+
Uninstall: "Uninstall",
|
|
2072
|
+
VersionChange: "VersionChange",
|
|
2073
|
+
ConfigurationChange: "ConfigurationChange",
|
|
2074
|
+
Rollback: "Rollback",
|
|
2075
|
+
ActivationSetup: "ActivationSetup"
|
|
2076
|
+
};
|
|
2077
|
+
function instanceOfDeploymentOperation(value) {
|
|
2078
|
+
for (const key in DeploymentOperation) {
|
|
2079
|
+
if (Object.prototype.hasOwnProperty.call(DeploymentOperation, key)) {
|
|
2080
|
+
if (DeploymentOperation[key] === value) {
|
|
2081
|
+
return true;
|
|
2082
|
+
}
|
|
2083
|
+
}
|
|
2084
|
+
}
|
|
2085
|
+
return false;
|
|
2086
|
+
}
|
|
2087
|
+
function DeploymentOperationFromJSON(json) {
|
|
2088
|
+
return DeploymentOperationFromJSONTyped(json, false);
|
|
2089
|
+
}
|
|
2090
|
+
function DeploymentOperationFromJSONTyped(json, ignoreDiscriminator) {
|
|
2091
|
+
return json;
|
|
2092
|
+
}
|
|
2093
|
+
function DeploymentOperationToJSON(value) {
|
|
2094
|
+
return value;
|
|
2095
|
+
}
|
|
2096
|
+
function DeploymentOperationToJSONTyped(value, ignoreDiscriminator) {
|
|
2097
|
+
return value;
|
|
2098
|
+
}
|
|
2099
|
+
|
|
2100
|
+
// ../solution-sdk/generated/src/models/PackageVersionOrigin.ts
|
|
2101
|
+
var PackageVersionOrigin = {
|
|
2102
|
+
SolutionBuilder: "SolutionBuilder",
|
|
2103
|
+
Accelerators: "Accelerators",
|
|
2104
|
+
CiCd: "CiCd",
|
|
2105
|
+
Studio: "Studio"
|
|
2106
|
+
};
|
|
2107
|
+
function instanceOfPackageVersionOrigin(value) {
|
|
2108
|
+
for (const key in PackageVersionOrigin) {
|
|
2109
|
+
if (Object.prototype.hasOwnProperty.call(PackageVersionOrigin, key)) {
|
|
2110
|
+
if (PackageVersionOrigin[key] === value) {
|
|
2111
|
+
return true;
|
|
2112
|
+
}
|
|
2113
|
+
}
|
|
2114
|
+
}
|
|
2115
|
+
return false;
|
|
2116
|
+
}
|
|
2117
|
+
function PackageVersionOriginFromJSON(json) {
|
|
2118
|
+
return PackageVersionOriginFromJSONTyped(json, false);
|
|
2119
|
+
}
|
|
2120
|
+
function PackageVersionOriginFromJSONTyped(json, ignoreDiscriminator) {
|
|
2121
|
+
return json;
|
|
2122
|
+
}
|
|
2123
|
+
function PackageVersionOriginToJSON(value) {
|
|
2124
|
+
return value;
|
|
2125
|
+
}
|
|
2126
|
+
function PackageVersionOriginToJSONTyped(value, ignoreDiscriminator) {
|
|
2127
|
+
return value;
|
|
2128
|
+
}
|
|
2129
|
+
|
|
2130
|
+
// ../solution-sdk/generated/src/models/DeploymentOperationStatus.ts
|
|
2131
|
+
var DeploymentOperationStatus = {
|
|
2132
|
+
Draft: "Draft",
|
|
2133
|
+
Successful: "Successful",
|
|
2134
|
+
Failed: "Failed",
|
|
2135
|
+
InProgress: "InProgress",
|
|
2136
|
+
FailedRollback: "FailedRollback"
|
|
2137
|
+
};
|
|
2138
|
+
function instanceOfDeploymentOperationStatus(value) {
|
|
2139
|
+
for (const key in DeploymentOperationStatus) {
|
|
2140
|
+
if (Object.prototype.hasOwnProperty.call(DeploymentOperationStatus, key)) {
|
|
2141
|
+
if (DeploymentOperationStatus[key] === value) {
|
|
2142
|
+
return true;
|
|
2143
|
+
}
|
|
2144
|
+
}
|
|
2145
|
+
}
|
|
2146
|
+
return false;
|
|
2147
|
+
}
|
|
2148
|
+
function DeploymentOperationStatusFromJSON(json) {
|
|
2149
|
+
return DeploymentOperationStatusFromJSONTyped(json, false);
|
|
2150
|
+
}
|
|
2151
|
+
function DeploymentOperationStatusFromJSONTyped(json, ignoreDiscriminator) {
|
|
2152
|
+
return json;
|
|
2153
|
+
}
|
|
2154
|
+
function DeploymentOperationStatusToJSON(value) {
|
|
2155
|
+
return value;
|
|
2156
|
+
}
|
|
2157
|
+
function DeploymentOperationStatusToJSONTyped(value, ignoreDiscriminator) {
|
|
2158
|
+
return value;
|
|
2159
|
+
}
|
|
2160
|
+
|
|
2161
|
+
// ../solution-sdk/generated/src/models/DeploymentUpgradeType.ts
|
|
2162
|
+
var DeploymentUpgradeType = {
|
|
2163
|
+
ConfigChange: "ConfigChange",
|
|
2164
|
+
VersionChange: "VersionChange",
|
|
2165
|
+
UpgradeRollback: "UpgradeRollback",
|
|
2166
|
+
ActivationSetup: "ActivationSetup"
|
|
2167
|
+
};
|
|
2168
|
+
function instanceOfDeploymentUpgradeType(value) {
|
|
2169
|
+
for (const key in DeploymentUpgradeType) {
|
|
2170
|
+
if (Object.prototype.hasOwnProperty.call(DeploymentUpgradeType, key)) {
|
|
2171
|
+
if (DeploymentUpgradeType[key] === value) {
|
|
2172
|
+
return true;
|
|
2173
|
+
}
|
|
2174
|
+
}
|
|
2175
|
+
}
|
|
2176
|
+
return false;
|
|
2177
|
+
}
|
|
2178
|
+
function DeploymentUpgradeTypeFromJSON(json) {
|
|
2179
|
+
return DeploymentUpgradeTypeFromJSONTyped(json, false);
|
|
2180
|
+
}
|
|
2181
|
+
function DeploymentUpgradeTypeFromJSONTyped(json, ignoreDiscriminator) {
|
|
2182
|
+
return json;
|
|
2183
|
+
}
|
|
2184
|
+
function DeploymentUpgradeTypeToJSON(value) {
|
|
2185
|
+
return value;
|
|
2186
|
+
}
|
|
2187
|
+
function DeploymentUpgradeTypeToJSONTyped(value, ignoreDiscriminator) {
|
|
2188
|
+
return value;
|
|
2189
|
+
}
|
|
2190
|
+
|
|
2191
|
+
// ../solution-sdk/generated/src/models/DeploymentStatus.ts
|
|
2192
|
+
var DeploymentStatus = {
|
|
2193
|
+
SuccessfulInstall: "SuccessfulInstall",
|
|
2194
|
+
SuccessfulUninstall: "SuccessfulUninstall",
|
|
2195
|
+
InstallProgress: "InstallProgress",
|
|
2196
|
+
UninstallProgress: "UninstallProgress",
|
|
2197
|
+
FailedInstall: "FailedInstall",
|
|
2198
|
+
FailedUninstall: "FailedUninstall",
|
|
2199
|
+
Draft: "Draft",
|
|
2200
|
+
SuccessfulActivate: "SuccessfulActivate",
|
|
2201
|
+
FailedActivate: "FailedActivate",
|
|
2202
|
+
ActivateProgress: "ActivateProgress"
|
|
2203
|
+
};
|
|
2204
|
+
function instanceOfDeploymentStatus(value) {
|
|
2205
|
+
for (const key in DeploymentStatus) {
|
|
2206
|
+
if (Object.prototype.hasOwnProperty.call(DeploymentStatus, key)) {
|
|
2207
|
+
if (DeploymentStatus[key] === value) {
|
|
2208
|
+
return true;
|
|
2209
|
+
}
|
|
2210
|
+
}
|
|
2211
|
+
}
|
|
2212
|
+
return false;
|
|
2213
|
+
}
|
|
2214
|
+
function DeploymentStatusFromJSON(json) {
|
|
2215
|
+
return DeploymentStatusFromJSONTyped(json, false);
|
|
2216
|
+
}
|
|
2217
|
+
function DeploymentStatusFromJSONTyped(json, ignoreDiscriminator) {
|
|
2218
|
+
return json;
|
|
2219
|
+
}
|
|
2220
|
+
function DeploymentStatusToJSON(value) {
|
|
2221
|
+
return value;
|
|
2222
|
+
}
|
|
2223
|
+
function DeploymentStatusToJSONTyped(value, ignoreDiscriminator) {
|
|
2224
|
+
return value;
|
|
2225
|
+
}
|
|
2226
|
+
|
|
2227
|
+
// ../solution-sdk/generated/src/models/DeploymentItemDto.ts
|
|
2228
|
+
function instanceOfDeploymentItemDto(value) {
|
|
2229
|
+
if (!("key" in value) || value["key"] === undefined)
|
|
2230
|
+
return false;
|
|
2231
|
+
if (!("installDeploymentKey" in value) || value["installDeploymentKey"] === undefined)
|
|
2232
|
+
return false;
|
|
2233
|
+
if (!("name" in value) || value["name"] === undefined)
|
|
2234
|
+
return false;
|
|
2235
|
+
if (!("configurationKey" in value) || value["configurationKey"] === undefined)
|
|
2236
|
+
return false;
|
|
2237
|
+
if (!("packageVersionKey" in value) || value["packageVersionKey"] === undefined)
|
|
2238
|
+
return false;
|
|
2239
|
+
if (!("packageKey" in value) || value["packageKey"] === undefined)
|
|
2240
|
+
return false;
|
|
2241
|
+
if (!("packageName" in value) || value["packageName"] === undefined)
|
|
2242
|
+
return false;
|
|
2243
|
+
if (!("packageVersion" in value) || value["packageVersion"] === undefined)
|
|
2244
|
+
return false;
|
|
2245
|
+
if (!("packageVersionOrigin" in value) || value["packageVersionOrigin"] === undefined)
|
|
2246
|
+
return false;
|
|
2247
|
+
if (!("deploymentCreationTime" in value) || value["deploymentCreationTime"] === undefined)
|
|
2248
|
+
return false;
|
|
2249
|
+
if (!("status" in value) || value["status"] === undefined)
|
|
2250
|
+
return false;
|
|
2251
|
+
if (!("operation" in value) || value["operation"] === undefined)
|
|
2252
|
+
return false;
|
|
2253
|
+
if (!("operationStatus" in value) || value["operationStatus"] === undefined)
|
|
2254
|
+
return false;
|
|
2255
|
+
if (!("activationStatus" in value) || value["activationStatus"] === undefined)
|
|
2256
|
+
return false;
|
|
2257
|
+
if (!("authorName" in value) || value["authorName"] === undefined)
|
|
2258
|
+
return false;
|
|
2259
|
+
if (!("actions" in value) || value["actions"] === undefined)
|
|
2260
|
+
return false;
|
|
2261
|
+
return true;
|
|
2262
|
+
}
|
|
2263
|
+
function DeploymentItemDtoFromJSON(json) {
|
|
2264
|
+
return DeploymentItemDtoFromJSONTyped(json, false);
|
|
2265
|
+
}
|
|
2266
|
+
function DeploymentItemDtoFromJSONTyped(json, ignoreDiscriminator) {
|
|
2267
|
+
if (json == null) {
|
|
2268
|
+
return json;
|
|
2269
|
+
}
|
|
2270
|
+
return {
|
|
2271
|
+
key: json["key"],
|
|
2272
|
+
installDeploymentKey: json["installDeploymentKey"],
|
|
2273
|
+
name: json["name"],
|
|
2274
|
+
configurationKey: json["configurationKey"],
|
|
2275
|
+
packageVersionKey: json["packageVersionKey"],
|
|
2276
|
+
packageKey: json["packageKey"],
|
|
2277
|
+
packageName: json["packageName"],
|
|
2278
|
+
packageVersion: json["packageVersion"],
|
|
2279
|
+
currentPackageVersion: json["currentPackageVersion"] == null ? undefined : json["currentPackageVersion"],
|
|
2280
|
+
targetPackageVersion: json["targetPackageVersion"] == null ? undefined : json["targetPackageVersion"],
|
|
2281
|
+
folderPath: json["folderPath"] == null ? undefined : json["folderPath"],
|
|
2282
|
+
installedRootFolderKey: json["installedRootFolderKey"] == null ? undefined : json["installedRootFolderKey"],
|
|
2283
|
+
installedRootFolderName: json["installedRootFolderName"] == null ? undefined : json["installedRootFolderName"],
|
|
2284
|
+
packageVersionOrigin: PackageVersionOriginFromJSON(json["packageVersionOrigin"]),
|
|
2285
|
+
deploymentCreationTime: new Date(json["deploymentCreationTime"]),
|
|
2286
|
+
status: DeploymentStatusFromJSON(json["status"]),
|
|
2287
|
+
startTime: json["startTime"] == null ? undefined : new Date(json["startTime"]),
|
|
2288
|
+
endTime: json["endTime"] == null ? undefined : new Date(json["endTime"]),
|
|
2289
|
+
upgradeType: json["upgradeType"] == null ? undefined : DeploymentUpgradeTypeFromJSON(json["upgradeType"]),
|
|
2290
|
+
operation: DeploymentOperationFromJSON(json["operation"]),
|
|
2291
|
+
operationStatus: DeploymentOperationStatusFromJSON(json["operationStatus"]),
|
|
2292
|
+
activationStatus: DeploymentActivationStatusFromJSON(json["activationStatus"]),
|
|
2293
|
+
instanceId: json["instanceId"] == null ? undefined : json["instanceId"],
|
|
2294
|
+
newPackageVersionAvailable: json["newPackageVersionAvailable"] == null ? undefined : json["newPackageVersionAvailable"],
|
|
2295
|
+
packageVersionDescription: json["packageVersionDescription"] == null ? undefined : json["packageVersionDescription"],
|
|
2296
|
+
packageVersionReleaseNotes: json["packageVersionReleaseNotes"] == null ? undefined : json["packageVersionReleaseNotes"],
|
|
2297
|
+
authorName: json["authorName"],
|
|
2298
|
+
previousDeploymentKey: json["previousDeploymentKey"] == null ? undefined : json["previousDeploymentKey"],
|
|
2299
|
+
runtimeSetup: json["runtimeSetup"] == null ? undefined : RuntimeSetupFromJSON(json["runtimeSetup"]),
|
|
2300
|
+
actions: json["actions"].map(WorkflowActionFromJSON)
|
|
2301
|
+
};
|
|
2302
|
+
}
|
|
2303
|
+
function DeploymentItemDtoToJSON(json) {
|
|
2304
|
+
return DeploymentItemDtoToJSONTyped(json, false);
|
|
2305
|
+
}
|
|
2306
|
+
function DeploymentItemDtoToJSONTyped(value, ignoreDiscriminator = false) {
|
|
2307
|
+
if (value == null) {
|
|
2308
|
+
return value;
|
|
2309
|
+
}
|
|
2310
|
+
return {
|
|
2311
|
+
key: value["key"],
|
|
2312
|
+
installDeploymentKey: value["installDeploymentKey"],
|
|
2313
|
+
name: value["name"],
|
|
2314
|
+
configurationKey: value["configurationKey"],
|
|
2315
|
+
packageVersionKey: value["packageVersionKey"],
|
|
2316
|
+
packageKey: value["packageKey"],
|
|
2317
|
+
packageName: value["packageName"],
|
|
2318
|
+
packageVersion: value["packageVersion"],
|
|
2319
|
+
currentPackageVersion: value["currentPackageVersion"],
|
|
2320
|
+
targetPackageVersion: value["targetPackageVersion"],
|
|
2321
|
+
folderPath: value["folderPath"],
|
|
2322
|
+
installedRootFolderKey: value["installedRootFolderKey"],
|
|
2323
|
+
installedRootFolderName: value["installedRootFolderName"],
|
|
2324
|
+
packageVersionOrigin: PackageVersionOriginToJSON(value["packageVersionOrigin"]),
|
|
2325
|
+
deploymentCreationTime: value["deploymentCreationTime"].toISOString(),
|
|
2326
|
+
status: DeploymentStatusToJSON(value["status"]),
|
|
2327
|
+
startTime: value["startTime"] == null ? value["startTime"] : value["startTime"].toISOString(),
|
|
2328
|
+
endTime: value["endTime"] == null ? value["endTime"] : value["endTime"].toISOString(),
|
|
2329
|
+
upgradeType: DeploymentUpgradeTypeToJSON(value["upgradeType"]),
|
|
2330
|
+
operation: DeploymentOperationToJSON(value["operation"]),
|
|
2331
|
+
operationStatus: DeploymentOperationStatusToJSON(value["operationStatus"]),
|
|
2332
|
+
activationStatus: DeploymentActivationStatusToJSON(value["activationStatus"]),
|
|
2333
|
+
instanceId: value["instanceId"],
|
|
2334
|
+
newPackageVersionAvailable: value["newPackageVersionAvailable"],
|
|
2335
|
+
packageVersionDescription: value["packageVersionDescription"],
|
|
2336
|
+
packageVersionReleaseNotes: value["packageVersionReleaseNotes"],
|
|
2337
|
+
authorName: value["authorName"],
|
|
2338
|
+
previousDeploymentKey: value["previousDeploymentKey"],
|
|
2339
|
+
runtimeSetup: RuntimeSetupToJSON(value["runtimeSetup"]),
|
|
2340
|
+
actions: value["actions"].map(WorkflowActionToJSON)
|
|
2341
|
+
};
|
|
2342
|
+
}
|
|
2343
|
+
// ../solution-sdk/generated/src/models/DeploymentRequest.ts
|
|
2344
|
+
function instanceOfDeploymentRequest(value) {
|
|
2345
|
+
if (!("configurationKey" in value) || value["configurationKey"] === undefined)
|
|
2346
|
+
return false;
|
|
2347
|
+
if (!("deploymentName" in value) || value["deploymentName"] === undefined)
|
|
2348
|
+
return false;
|
|
2349
|
+
return true;
|
|
2350
|
+
}
|
|
2351
|
+
function DeploymentRequestFromJSON(json) {
|
|
2352
|
+
return DeploymentRequestFromJSONTyped(json, false);
|
|
2353
|
+
}
|
|
2354
|
+
function DeploymentRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
2355
|
+
if (json == null) {
|
|
2356
|
+
return json;
|
|
2357
|
+
}
|
|
2358
|
+
return {
|
|
2359
|
+
configurationKey: json["configurationKey"],
|
|
2360
|
+
deploymentName: json["deploymentName"],
|
|
2361
|
+
installationFolderKey: json["installationFolderKey"] == null ? undefined : json["installationFolderKey"],
|
|
2362
|
+
pathFullyQualifiedName: json["pathFullyQualifiedName"] == null ? undefined : json["pathFullyQualifiedName"],
|
|
2363
|
+
solutionRootFolderName: json["solutionRootFolderName"] == null ? undefined : json["solutionRootFolderName"],
|
|
2364
|
+
forceActivate: json["forceActivate"] == null ? undefined : json["forceActivate"],
|
|
2365
|
+
runtimeSetup: json["runtimeSetup"] == null ? undefined : RuntimeSetupFromJSON(json["runtimeSetup"])
|
|
2366
|
+
};
|
|
2367
|
+
}
|
|
2368
|
+
function DeploymentRequestToJSON(json) {
|
|
2369
|
+
return DeploymentRequestToJSONTyped(json, false);
|
|
2370
|
+
}
|
|
2371
|
+
function DeploymentRequestToJSONTyped(value, ignoreDiscriminator = false) {
|
|
2372
|
+
if (value == null) {
|
|
2373
|
+
return value;
|
|
2374
|
+
}
|
|
2375
|
+
return {
|
|
2376
|
+
configurationKey: value["configurationKey"],
|
|
2377
|
+
deploymentName: value["deploymentName"],
|
|
2378
|
+
installationFolderKey: value["installationFolderKey"],
|
|
2379
|
+
pathFullyQualifiedName: value["pathFullyQualifiedName"],
|
|
2380
|
+
solutionRootFolderName: value["solutionRootFolderName"],
|
|
2381
|
+
forceActivate: value["forceActivate"],
|
|
2382
|
+
runtimeSetup: RuntimeSetupToJSON(value["runtimeSetup"])
|
|
2383
|
+
};
|
|
2384
|
+
}
|
|
2385
|
+
// ../solution-sdk/generated/src/models/DeploymentResourceValidationAction.ts
|
|
2386
|
+
var DeploymentResourceValidationAction = {
|
|
2387
|
+
RenameExisting: "RenameExisting",
|
|
2388
|
+
RenameInSolution: "RenameInSolution",
|
|
2389
|
+
UseExisting: "UseExisting",
|
|
2390
|
+
FixConfiguration: "FixConfiguration",
|
|
2391
|
+
Delete: "Delete",
|
|
2392
|
+
SkipDelete: "SkipDelete",
|
|
2393
|
+
MergeConfiguration: "MergeConfiguration",
|
|
2394
|
+
Replace: "Replace"
|
|
2395
|
+
};
|
|
2396
|
+
function instanceOfDeploymentResourceValidationAction(value) {
|
|
2397
|
+
for (const key in DeploymentResourceValidationAction) {
|
|
2398
|
+
if (Object.prototype.hasOwnProperty.call(DeploymentResourceValidationAction, key)) {
|
|
2399
|
+
if (DeploymentResourceValidationAction[key] === value) {
|
|
2400
|
+
return true;
|
|
2401
|
+
}
|
|
2402
|
+
}
|
|
2403
|
+
}
|
|
2404
|
+
return false;
|
|
2405
|
+
}
|
|
2406
|
+
function DeploymentResourceValidationActionFromJSON(json) {
|
|
2407
|
+
return DeploymentResourceValidationActionFromJSONTyped(json, false);
|
|
2408
|
+
}
|
|
2409
|
+
function DeploymentResourceValidationActionFromJSONTyped(json, ignoreDiscriminator) {
|
|
2410
|
+
return json;
|
|
2411
|
+
}
|
|
2412
|
+
function DeploymentResourceValidationActionToJSON(value) {
|
|
2413
|
+
return value;
|
|
2414
|
+
}
|
|
2415
|
+
function DeploymentResourceValidationActionToJSONTyped(value, ignoreDiscriminator) {
|
|
2416
|
+
return value;
|
|
2417
|
+
}
|
|
2418
|
+
// ../solution-sdk/generated/src/models/DeploymentResourceValidationErrorKind.ts
|
|
2419
|
+
var DeploymentResourceValidationErrorKind = {
|
|
2420
|
+
Conflict: "Conflict",
|
|
2421
|
+
ConfigurationError: "ConfigurationError"
|
|
2422
|
+
};
|
|
2423
|
+
function instanceOfDeploymentResourceValidationErrorKind(value) {
|
|
2424
|
+
for (const key in DeploymentResourceValidationErrorKind) {
|
|
2425
|
+
if (Object.prototype.hasOwnProperty.call(DeploymentResourceValidationErrorKind, key)) {
|
|
2426
|
+
if (DeploymentResourceValidationErrorKind[key] === value) {
|
|
2427
|
+
return true;
|
|
2428
|
+
}
|
|
2429
|
+
}
|
|
2430
|
+
}
|
|
2431
|
+
return false;
|
|
2432
|
+
}
|
|
2433
|
+
function DeploymentResourceValidationErrorKindFromJSON(json) {
|
|
2434
|
+
return DeploymentResourceValidationErrorKindFromJSONTyped(json, false);
|
|
2435
|
+
}
|
|
2436
|
+
function DeploymentResourceValidationErrorKindFromJSONTyped(json, ignoreDiscriminator) {
|
|
2437
|
+
return json;
|
|
2438
|
+
}
|
|
2439
|
+
function DeploymentResourceValidationErrorKindToJSON(value) {
|
|
2440
|
+
return value;
|
|
2441
|
+
}
|
|
2442
|
+
function DeploymentResourceValidationErrorKindToJSONTyped(value, ignoreDiscriminator) {
|
|
2443
|
+
return value;
|
|
2444
|
+
}
|
|
2445
|
+
// ../solution-sdk/generated/src/models/DeploymentResourceValidationErrorLevel.ts
|
|
2446
|
+
var DeploymentResourceValidationErrorLevel = {
|
|
2447
|
+
Error: "Error",
|
|
2448
|
+
Warning: "Warning",
|
|
2449
|
+
Info: "Info"
|
|
2450
|
+
};
|
|
2451
|
+
function instanceOfDeploymentResourceValidationErrorLevel(value) {
|
|
2452
|
+
for (const key in DeploymentResourceValidationErrorLevel) {
|
|
2453
|
+
if (Object.prototype.hasOwnProperty.call(DeploymentResourceValidationErrorLevel, key)) {
|
|
2454
|
+
if (DeploymentResourceValidationErrorLevel[key] === value) {
|
|
2455
|
+
return true;
|
|
2456
|
+
}
|
|
2457
|
+
}
|
|
2458
|
+
}
|
|
2459
|
+
return false;
|
|
2460
|
+
}
|
|
2461
|
+
function DeploymentResourceValidationErrorLevelFromJSON(json) {
|
|
2462
|
+
return DeploymentResourceValidationErrorLevelFromJSONTyped(json, false);
|
|
2463
|
+
}
|
|
2464
|
+
function DeploymentResourceValidationErrorLevelFromJSONTyped(json, ignoreDiscriminator) {
|
|
2465
|
+
return json;
|
|
2466
|
+
}
|
|
2467
|
+
function DeploymentResourceValidationErrorLevelToJSON(value) {
|
|
2468
|
+
return value;
|
|
2469
|
+
}
|
|
2470
|
+
function DeploymentResourceValidationErrorLevelToJSONTyped(value, ignoreDiscriminator) {
|
|
2471
|
+
return value;
|
|
2472
|
+
}
|
|
2473
|
+
// ../solution-sdk/generated/src/models/ServiceMessage.ts
|
|
2474
|
+
function instanceOfServiceMessage(value) {
|
|
2475
|
+
if (!("resource" in value) || value["resource"] === undefined)
|
|
2476
|
+
return false;
|
|
2477
|
+
if (!("text" in value) || value["text"] === undefined)
|
|
2478
|
+
return false;
|
|
2479
|
+
if (!("parameters" in value) || value["parameters"] === undefined)
|
|
2480
|
+
return false;
|
|
2481
|
+
return true;
|
|
2482
|
+
}
|
|
2483
|
+
function ServiceMessageFromJSON(json) {
|
|
2484
|
+
return ServiceMessageFromJSONTyped(json, false);
|
|
2485
|
+
}
|
|
2486
|
+
function ServiceMessageFromJSONTyped(json, ignoreDiscriminator) {
|
|
2487
|
+
if (json == null) {
|
|
2488
|
+
return json;
|
|
2489
|
+
}
|
|
2490
|
+
return {
|
|
2491
|
+
resource: json["resource"],
|
|
2492
|
+
text: json["text"],
|
|
2493
|
+
parameters: json["parameters"],
|
|
2494
|
+
errorCode: json["errorCode"] == null ? undefined : json["errorCode"]
|
|
2495
|
+
};
|
|
2496
|
+
}
|
|
2497
|
+
function ServiceMessageToJSON(json) {
|
|
2498
|
+
return ServiceMessageToJSONTyped(json, false);
|
|
2499
|
+
}
|
|
2500
|
+
function ServiceMessageToJSONTyped(value, ignoreDiscriminator = false) {
|
|
2501
|
+
if (value == null) {
|
|
2502
|
+
return value;
|
|
2503
|
+
}
|
|
2504
|
+
return {
|
|
2505
|
+
resource: value["resource"],
|
|
2506
|
+
text: value["text"],
|
|
2507
|
+
parameters: value["parameters"],
|
|
2508
|
+
errorCode: value["errorCode"]
|
|
2509
|
+
};
|
|
2510
|
+
}
|
|
2511
|
+
|
|
2512
|
+
// ../solution-sdk/generated/src/models/DeploymentRunResponse.ts
|
|
2513
|
+
function instanceOfDeploymentRunResponse(value) {
|
|
2514
|
+
if (!("scheduled" in value) || value["scheduled"] === undefined)
|
|
2515
|
+
return false;
|
|
2516
|
+
if (!("errors" in value) || value["errors"] === undefined)
|
|
2517
|
+
return false;
|
|
2518
|
+
if (!("complete" in value) || value["complete"] === undefined)
|
|
2519
|
+
return false;
|
|
2520
|
+
return true;
|
|
2521
|
+
}
|
|
2522
|
+
function DeploymentRunResponseFromJSON(json) {
|
|
2523
|
+
return DeploymentRunResponseFromJSONTyped(json, false);
|
|
2524
|
+
}
|
|
2525
|
+
function DeploymentRunResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
2526
|
+
if (json == null) {
|
|
2527
|
+
return json;
|
|
2528
|
+
}
|
|
2529
|
+
return {
|
|
2530
|
+
instanceId: json["instanceId"] == null ? undefined : json["instanceId"],
|
|
2531
|
+
scheduled: json["scheduled"],
|
|
2532
|
+
errors: json["errors"].map(ServiceMessageFromJSON),
|
|
2533
|
+
complete: json["complete"]
|
|
2534
|
+
};
|
|
2535
|
+
}
|
|
2536
|
+
function DeploymentRunResponseToJSON(json) {
|
|
2537
|
+
return DeploymentRunResponseToJSONTyped(json, false);
|
|
2538
|
+
}
|
|
2539
|
+
function DeploymentRunResponseToJSONTyped(value, ignoreDiscriminator = false) {
|
|
2540
|
+
if (value == null) {
|
|
2541
|
+
return value;
|
|
2542
|
+
}
|
|
2543
|
+
return {
|
|
2544
|
+
instanceId: value["instanceId"],
|
|
2545
|
+
scheduled: value["scheduled"],
|
|
2546
|
+
errors: value["errors"].map(ServiceMessageToJSON),
|
|
2547
|
+
complete: value["complete"]
|
|
2548
|
+
};
|
|
2549
|
+
}
|
|
2550
|
+
// ../solution-sdk/generated/src/models/DeploymentType.ts
|
|
2551
|
+
var DeploymentType = {
|
|
2552
|
+
Managed: "Managed",
|
|
2553
|
+
Unmanaged: "Unmanaged"
|
|
2554
|
+
};
|
|
2555
|
+
function instanceOfDeploymentType(value) {
|
|
2556
|
+
for (const key in DeploymentType) {
|
|
2557
|
+
if (Object.prototype.hasOwnProperty.call(DeploymentType, key)) {
|
|
2558
|
+
if (DeploymentType[key] === value) {
|
|
2559
|
+
return true;
|
|
2560
|
+
}
|
|
2561
|
+
}
|
|
2562
|
+
}
|
|
2563
|
+
return false;
|
|
2564
|
+
}
|
|
2565
|
+
function DeploymentTypeFromJSON(json) {
|
|
2566
|
+
return DeploymentTypeFromJSONTyped(json, false);
|
|
2567
|
+
}
|
|
2568
|
+
function DeploymentTypeFromJSONTyped(json, ignoreDiscriminator) {
|
|
2569
|
+
return json;
|
|
2570
|
+
}
|
|
2571
|
+
function DeploymentTypeToJSON(value) {
|
|
2572
|
+
return value;
|
|
2573
|
+
}
|
|
2574
|
+
function DeploymentTypeToJSONTyped(value, ignoreDiscriminator) {
|
|
2575
|
+
return value;
|
|
2576
|
+
}
|
|
2577
|
+
|
|
2578
|
+
// ../solution-sdk/generated/src/models/DeploymentSearchItemDto2.ts
|
|
2579
|
+
function instanceOfDeploymentSearchItemDto2(value) {
|
|
2580
|
+
if (!("key" in value) || value["key"] === undefined)
|
|
2581
|
+
return false;
|
|
2582
|
+
if (!("installDeploymentKey" in value) || value["installDeploymentKey"] === undefined)
|
|
2583
|
+
return false;
|
|
2584
|
+
if (!("configurationKey" in value) || value["configurationKey"] === undefined)
|
|
2585
|
+
return false;
|
|
2586
|
+
if (!("packageVersionKey" in value) || value["packageVersionKey"] === undefined)
|
|
2587
|
+
return false;
|
|
2588
|
+
if (!("packageKey" in value) || value["packageKey"] === undefined)
|
|
2589
|
+
return false;
|
|
2590
|
+
if (!("packageName" in value) || value["packageName"] === undefined)
|
|
2591
|
+
return false;
|
|
2592
|
+
if (!("packageVersion" in value) || value["packageVersion"] === undefined)
|
|
2593
|
+
return false;
|
|
2594
|
+
if (!("packageVersionOrigin" in value) || value["packageVersionOrigin"] === undefined)
|
|
2595
|
+
return false;
|
|
2596
|
+
if (!("deploymentCreationTime" in value) || value["deploymentCreationTime"] === undefined)
|
|
2597
|
+
return false;
|
|
2598
|
+
if (!("actions" in value) || value["actions"] === undefined)
|
|
2599
|
+
return false;
|
|
2600
|
+
if (!("name" in value) || value["name"] === undefined)
|
|
2601
|
+
return false;
|
|
2602
|
+
if (!("type" in value) || value["type"] === undefined)
|
|
2603
|
+
return false;
|
|
2604
|
+
if (!("operation" in value) || value["operation"] === undefined)
|
|
2605
|
+
return false;
|
|
2606
|
+
if (!("operationStatus" in value) || value["operationStatus"] === undefined)
|
|
2607
|
+
return false;
|
|
2608
|
+
if (!("activationStatus" in value) || value["activationStatus"] === undefined)
|
|
2609
|
+
return false;
|
|
2610
|
+
if (!("authorName" in value) || value["authorName"] === undefined)
|
|
2611
|
+
return false;
|
|
2612
|
+
return true;
|
|
2613
|
+
}
|
|
2614
|
+
function DeploymentSearchItemDto2FromJSON(json) {
|
|
2615
|
+
return DeploymentSearchItemDto2FromJSONTyped(json, false);
|
|
2616
|
+
}
|
|
2617
|
+
function DeploymentSearchItemDto2FromJSONTyped(json, ignoreDiscriminator) {
|
|
2618
|
+
if (json == null) {
|
|
2619
|
+
return json;
|
|
2620
|
+
}
|
|
2621
|
+
return {
|
|
2622
|
+
key: json["key"],
|
|
2623
|
+
installDeploymentKey: json["installDeploymentKey"],
|
|
2624
|
+
instanceId: json["instanceId"] == null ? undefined : json["instanceId"],
|
|
2625
|
+
configurationKey: json["configurationKey"],
|
|
2626
|
+
packageVersionKey: json["packageVersionKey"],
|
|
2627
|
+
packageKey: json["packageKey"],
|
|
2628
|
+
packageName: json["packageName"],
|
|
2629
|
+
packageVersion: json["packageVersion"],
|
|
2630
|
+
currentPackageVersion: json["currentPackageVersion"] == null ? undefined : json["currentPackageVersion"],
|
|
2631
|
+
targetPackageVersion: json["targetPackageVersion"] == null ? undefined : json["targetPackageVersion"],
|
|
2632
|
+
packageVersionOrigin: PackageVersionOriginFromJSON(json["packageVersionOrigin"]),
|
|
2633
|
+
folderPath: json["folderPath"] == null ? undefined : json["folderPath"],
|
|
2634
|
+
installedRootFolderKey: json["installedRootFolderKey"] == null ? undefined : json["installedRootFolderKey"],
|
|
2635
|
+
installedRootFolderName: json["installedRootFolderName"] == null ? undefined : json["installedRootFolderName"],
|
|
2636
|
+
deploymentCreationTime: new Date(json["deploymentCreationTime"]),
|
|
2637
|
+
startTime: json["startTime"] == null ? undefined : new Date(json["startTime"]),
|
|
2638
|
+
endTime: json["endTime"] == null ? undefined : new Date(json["endTime"]),
|
|
2639
|
+
actions: json["actions"].map(WorkflowActionFromJSON),
|
|
2640
|
+
name: json["name"],
|
|
2641
|
+
type: DeploymentTypeFromJSON(json["type"]),
|
|
2642
|
+
operation: DeploymentOperationFromJSON(json["operation"]),
|
|
2643
|
+
operationStatus: DeploymentOperationStatusFromJSON(json["operationStatus"]),
|
|
2644
|
+
activationStatus: DeploymentActivationStatusFromJSON(json["activationStatus"]),
|
|
2645
|
+
newPackageVersionAvailable: json["newPackageVersionAvailable"] == null ? undefined : json["newPackageVersionAvailable"],
|
|
2646
|
+
packageVersionDescription: json["packageVersionDescription"] == null ? undefined : json["packageVersionDescription"],
|
|
2647
|
+
packageVersionReleaseNotes: json["packageVersionReleaseNotes"] == null ? undefined : json["packageVersionReleaseNotes"],
|
|
2648
|
+
authorName: json["authorName"],
|
|
2649
|
+
previousDeploymentKey: json["previousDeploymentKey"] == null ? undefined : json["previousDeploymentKey"],
|
|
2650
|
+
previousInstanceId: json["previousInstanceId"] == null ? undefined : json["previousInstanceId"]
|
|
2651
|
+
};
|
|
2652
|
+
}
|
|
2653
|
+
function DeploymentSearchItemDto2ToJSON(json) {
|
|
2654
|
+
return DeploymentSearchItemDto2ToJSONTyped(json, false);
|
|
2655
|
+
}
|
|
2656
|
+
function DeploymentSearchItemDto2ToJSONTyped(value, ignoreDiscriminator = false) {
|
|
2657
|
+
if (value == null) {
|
|
2658
|
+
return value;
|
|
2659
|
+
}
|
|
2660
|
+
return {
|
|
2661
|
+
key: value["key"],
|
|
2662
|
+
installDeploymentKey: value["installDeploymentKey"],
|
|
2663
|
+
instanceId: value["instanceId"],
|
|
2664
|
+
configurationKey: value["configurationKey"],
|
|
2665
|
+
packageVersionKey: value["packageVersionKey"],
|
|
2666
|
+
packageKey: value["packageKey"],
|
|
2667
|
+
packageName: value["packageName"],
|
|
2668
|
+
packageVersion: value["packageVersion"],
|
|
2669
|
+
currentPackageVersion: value["currentPackageVersion"],
|
|
2670
|
+
targetPackageVersion: value["targetPackageVersion"],
|
|
2671
|
+
packageVersionOrigin: PackageVersionOriginToJSON(value["packageVersionOrigin"]),
|
|
2672
|
+
folderPath: value["folderPath"],
|
|
2673
|
+
installedRootFolderKey: value["installedRootFolderKey"],
|
|
2674
|
+
installedRootFolderName: value["installedRootFolderName"],
|
|
2675
|
+
deploymentCreationTime: value["deploymentCreationTime"].toISOString(),
|
|
2676
|
+
startTime: value["startTime"] == null ? value["startTime"] : value["startTime"].toISOString(),
|
|
2677
|
+
endTime: value["endTime"] == null ? value["endTime"] : value["endTime"].toISOString(),
|
|
2678
|
+
actions: value["actions"].map(WorkflowActionToJSON),
|
|
2679
|
+
name: value["name"],
|
|
2680
|
+
type: DeploymentTypeToJSON(value["type"]),
|
|
2681
|
+
operation: DeploymentOperationToJSON(value["operation"]),
|
|
2682
|
+
operationStatus: DeploymentOperationStatusToJSON(value["operationStatus"]),
|
|
2683
|
+
activationStatus: DeploymentActivationStatusToJSON(value["activationStatus"]),
|
|
2684
|
+
newPackageVersionAvailable: value["newPackageVersionAvailable"],
|
|
2685
|
+
packageVersionDescription: value["packageVersionDescription"],
|
|
2686
|
+
packageVersionReleaseNotes: value["packageVersionReleaseNotes"],
|
|
2687
|
+
authorName: value["authorName"],
|
|
2688
|
+
previousDeploymentKey: value["previousDeploymentKey"],
|
|
2689
|
+
previousInstanceId: value["previousInstanceId"]
|
|
2690
|
+
};
|
|
2691
|
+
}
|
|
2692
|
+
// ../solution-sdk/generated/src/models/DeploymentUpgradeRequest.ts
|
|
2693
|
+
function instanceOfDeploymentUpgradeRequest(value) {
|
|
2694
|
+
return true;
|
|
2695
|
+
}
|
|
2696
|
+
function DeploymentUpgradeRequestFromJSON(json) {
|
|
2697
|
+
return DeploymentUpgradeRequestFromJSONTyped(json, false);
|
|
2698
|
+
}
|
|
2699
|
+
function DeploymentUpgradeRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
2700
|
+
if (json == null) {
|
|
2701
|
+
return json;
|
|
2702
|
+
}
|
|
2703
|
+
return {
|
|
2704
|
+
deploymentName: json["deploymentName"] == null ? undefined : json["deploymentName"],
|
|
2705
|
+
packageVersionKey: json["packageVersionKey"] == null ? undefined : json["packageVersionKey"]
|
|
2706
|
+
};
|
|
2707
|
+
}
|
|
2708
|
+
function DeploymentUpgradeRequestToJSON(json) {
|
|
2709
|
+
return DeploymentUpgradeRequestToJSONTyped(json, false);
|
|
2710
|
+
}
|
|
2711
|
+
function DeploymentUpgradeRequestToJSONTyped(value, ignoreDiscriminator = false) {
|
|
2712
|
+
if (value == null) {
|
|
2713
|
+
return value;
|
|
2714
|
+
}
|
|
2715
|
+
return {
|
|
2716
|
+
deploymentName: value["deploymentName"],
|
|
2717
|
+
packageVersionKey: value["packageVersionKey"]
|
|
2718
|
+
};
|
|
2719
|
+
}
|
|
2720
|
+
// ../solution-sdk/generated/src/models/ResourceValidationError.ts
|
|
2721
|
+
function instanceOfResourceValidationError(value) {
|
|
2722
|
+
if (!("resource" in value) || value["resource"] === undefined)
|
|
2723
|
+
return false;
|
|
2724
|
+
if (!("text" in value) || value["text"] === undefined)
|
|
2725
|
+
return false;
|
|
2726
|
+
if (!("parameters" in value) || value["parameters"] === undefined)
|
|
2727
|
+
return false;
|
|
2728
|
+
if (!("kind" in value) || value["kind"] === undefined)
|
|
2729
|
+
return false;
|
|
2730
|
+
if (!("level" in value) || value["level"] === undefined)
|
|
2731
|
+
return false;
|
|
2732
|
+
if (!("allowedActions" in value) || value["allowedActions"] === undefined)
|
|
2733
|
+
return false;
|
|
2734
|
+
return true;
|
|
2735
|
+
}
|
|
2736
|
+
function ResourceValidationErrorFromJSON(json) {
|
|
2737
|
+
return ResourceValidationErrorFromJSONTyped(json, false);
|
|
2738
|
+
}
|
|
2739
|
+
function ResourceValidationErrorFromJSONTyped(json, ignoreDiscriminator) {
|
|
2740
|
+
if (json == null) {
|
|
2741
|
+
return json;
|
|
2742
|
+
}
|
|
2743
|
+
return {
|
|
2744
|
+
resource: json["resource"],
|
|
2745
|
+
text: json["text"],
|
|
2746
|
+
parameters: json["parameters"],
|
|
2747
|
+
errorCode: json["errorCode"] == null ? undefined : json["errorCode"],
|
|
2748
|
+
kind: DeploymentResourceValidationErrorKindFromJSON(json["kind"]),
|
|
2749
|
+
level: DeploymentResourceValidationErrorLevelFromJSON(json["level"]),
|
|
2750
|
+
propertyName: json["propertyName"] == null ? undefined : json["propertyName"],
|
|
2751
|
+
allowedActions: json["allowedActions"].map(DeploymentResourceValidationActionFromJSON)
|
|
2752
|
+
};
|
|
2753
|
+
}
|
|
2754
|
+
function ResourceValidationErrorToJSON(json) {
|
|
2755
|
+
return ResourceValidationErrorToJSONTyped(json, false);
|
|
2756
|
+
}
|
|
2757
|
+
function ResourceValidationErrorToJSONTyped(value, ignoreDiscriminator = false) {
|
|
2758
|
+
if (value == null) {
|
|
2759
|
+
return value;
|
|
2760
|
+
}
|
|
2761
|
+
return {
|
|
2762
|
+
resource: value["resource"],
|
|
2763
|
+
text: value["text"],
|
|
2764
|
+
parameters: value["parameters"],
|
|
2765
|
+
errorCode: value["errorCode"],
|
|
2766
|
+
kind: DeploymentResourceValidationErrorKindToJSON(value["kind"]),
|
|
2767
|
+
level: DeploymentResourceValidationErrorLevelToJSON(value["level"]),
|
|
2768
|
+
propertyName: value["propertyName"],
|
|
2769
|
+
allowedActions: value["allowedActions"].map(DeploymentResourceValidationActionToJSON)
|
|
2770
|
+
};
|
|
2771
|
+
}
|
|
2772
|
+
|
|
2773
|
+
// ../solution-sdk/generated/src/models/ResourceValidationDto.ts
|
|
2774
|
+
function instanceOfResourceValidationDto(value) {
|
|
2775
|
+
if (!("key" in value) || value["key"] === undefined)
|
|
2776
|
+
return false;
|
|
2777
|
+
if (!("name" in value) || value["name"] === undefined)
|
|
2778
|
+
return false;
|
|
2779
|
+
if (!("kind" in value) || value["kind"] === undefined)
|
|
2780
|
+
return false;
|
|
2781
|
+
if (!("serviceName" in value) || value["serviceName"] === undefined)
|
|
2782
|
+
return false;
|
|
2783
|
+
if (!("errors" in value) || value["errors"] === undefined)
|
|
2784
|
+
return false;
|
|
2785
|
+
return true;
|
|
2786
|
+
}
|
|
2787
|
+
function ResourceValidationDtoFromJSON(json) {
|
|
2788
|
+
return ResourceValidationDtoFromJSONTyped(json, false);
|
|
2789
|
+
}
|
|
2790
|
+
function ResourceValidationDtoFromJSONTyped(json, ignoreDiscriminator) {
|
|
2791
|
+
if (json == null) {
|
|
2792
|
+
return json;
|
|
2793
|
+
}
|
|
2794
|
+
return {
|
|
2795
|
+
key: json["key"],
|
|
2796
|
+
name: json["name"],
|
|
2797
|
+
kind: json["kind"],
|
|
2798
|
+
serviceName: json["serviceName"],
|
|
2799
|
+
type: json["type"] == null ? undefined : json["type"],
|
|
2800
|
+
errors: json["errors"].map(ResourceValidationErrorFromJSON)
|
|
2801
|
+
};
|
|
2802
|
+
}
|
|
2803
|
+
function ResourceValidationDtoToJSON(json) {
|
|
2804
|
+
return ResourceValidationDtoToJSONTyped(json, false);
|
|
2805
|
+
}
|
|
2806
|
+
function ResourceValidationDtoToJSONTyped(value, ignoreDiscriminator = false) {
|
|
2807
|
+
if (value == null) {
|
|
2808
|
+
return value;
|
|
2809
|
+
}
|
|
2810
|
+
return {
|
|
2811
|
+
key: value["key"],
|
|
2812
|
+
name: value["name"],
|
|
2813
|
+
kind: value["kind"],
|
|
2814
|
+
serviceName: value["serviceName"],
|
|
2815
|
+
type: value["type"],
|
|
2816
|
+
errors: value["errors"].map(ResourceValidationErrorToJSON)
|
|
2817
|
+
};
|
|
2818
|
+
}
|
|
2819
|
+
|
|
2820
|
+
// ../solution-sdk/generated/src/models/DeploymentValidationResultDto.ts
|
|
2821
|
+
function instanceOfDeploymentValidationResultDto(value) {
|
|
2822
|
+
if (!("validationErrors" in value) || value["validationErrors"] === undefined)
|
|
2823
|
+
return false;
|
|
2824
|
+
if (!("resourceValidationErrors" in value) || value["resourceValidationErrors"] === undefined)
|
|
2825
|
+
return false;
|
|
2826
|
+
return true;
|
|
2827
|
+
}
|
|
2828
|
+
function DeploymentValidationResultDtoFromJSON(json) {
|
|
2829
|
+
return DeploymentValidationResultDtoFromJSONTyped(json, false);
|
|
2830
|
+
}
|
|
2831
|
+
function DeploymentValidationResultDtoFromJSONTyped(json, ignoreDiscriminator) {
|
|
2832
|
+
if (json == null) {
|
|
2833
|
+
return json;
|
|
2834
|
+
}
|
|
2835
|
+
return {
|
|
2836
|
+
success: json["success"] == null ? undefined : json["success"],
|
|
2837
|
+
validationErrors: json["validationErrors"].map(ServiceMessageFromJSON),
|
|
2838
|
+
resourceValidationErrors: json["resourceValidationErrors"].map(ResourceValidationDtoFromJSON)
|
|
2839
|
+
};
|
|
2840
|
+
}
|
|
2841
|
+
function DeploymentValidationResultDtoToJSON(json) {
|
|
2842
|
+
return DeploymentValidationResultDtoToJSONTyped(json, false);
|
|
2843
|
+
}
|
|
2844
|
+
function DeploymentValidationResultDtoToJSONTyped(value, ignoreDiscriminator = false) {
|
|
2845
|
+
if (value == null) {
|
|
2846
|
+
return value;
|
|
2847
|
+
}
|
|
2848
|
+
return {
|
|
2849
|
+
success: value["success"],
|
|
2850
|
+
validationErrors: value["validationErrors"].map(ServiceMessageToJSON),
|
|
2851
|
+
resourceValidationErrors: value["resourceValidationErrors"].map(ResourceValidationDtoToJSON)
|
|
2852
|
+
};
|
|
2853
|
+
}
|
|
2854
|
+
// ../solution-sdk/generated/src/models/OrderByDirection.ts
|
|
2855
|
+
var OrderByDirection = {
|
|
2856
|
+
Ascending: "Ascending",
|
|
2857
|
+
Descending: "Descending"
|
|
2858
|
+
};
|
|
2859
|
+
function instanceOfOrderByDirection(value) {
|
|
2860
|
+
for (const key in OrderByDirection) {
|
|
2861
|
+
if (Object.prototype.hasOwnProperty.call(OrderByDirection, key)) {
|
|
2862
|
+
if (OrderByDirection[key] === value) {
|
|
2863
|
+
return true;
|
|
2864
|
+
}
|
|
2865
|
+
}
|
|
2866
|
+
}
|
|
2867
|
+
return false;
|
|
2868
|
+
}
|
|
2869
|
+
function OrderByDirectionFromJSON(json) {
|
|
2870
|
+
return OrderByDirectionFromJSONTyped(json, false);
|
|
2871
|
+
}
|
|
2872
|
+
function OrderByDirectionFromJSONTyped(json, ignoreDiscriminator) {
|
|
2873
|
+
return json;
|
|
2874
|
+
}
|
|
2875
|
+
function OrderByDirectionToJSON(value) {
|
|
2876
|
+
return value;
|
|
2877
|
+
}
|
|
2878
|
+
function OrderByDirectionToJSONTyped(value, ignoreDiscriminator) {
|
|
2879
|
+
return value;
|
|
2880
|
+
}
|
|
2881
|
+
|
|
2882
|
+
// ../solution-sdk/generated/src/models/DeploymentsSearchRequest2.ts
|
|
2883
|
+
function instanceOfDeploymentsSearchRequest2(value) {
|
|
2884
|
+
if (!("operationStatuses" in value) || value["operationStatuses"] === undefined)
|
|
2885
|
+
return false;
|
|
2886
|
+
if (!("activationStatuses" in value) || value["activationStatuses"] === undefined)
|
|
2887
|
+
return false;
|
|
2888
|
+
return true;
|
|
2889
|
+
}
|
|
2890
|
+
function DeploymentsSearchRequest2FromJSON(json) {
|
|
2891
|
+
return DeploymentsSearchRequest2FromJSONTyped(json, false);
|
|
2892
|
+
}
|
|
2893
|
+
function DeploymentsSearchRequest2FromJSONTyped(json, ignoreDiscriminator) {
|
|
2894
|
+
if (json == null) {
|
|
2895
|
+
return json;
|
|
2896
|
+
}
|
|
2897
|
+
return {
|
|
2898
|
+
orderByColumn: json["orderByColumn"] == null ? undefined : json["orderByColumn"],
|
|
2899
|
+
orderByDirection: json["orderByDirection"] == null ? undefined : OrderByDirectionFromJSON(json["orderByDirection"]),
|
|
2900
|
+
searchTerm: json["searchTerm"] == null ? undefined : json["searchTerm"],
|
|
2901
|
+
skip: json["skip"] == null ? undefined : json["skip"],
|
|
2902
|
+
take: json["take"] == null ? undefined : json["take"],
|
|
2903
|
+
operationStatuses: json["operationStatuses"].map(DeploymentOperationStatusFromJSON),
|
|
2904
|
+
operation: json["operation"] == null ? undefined : DeploymentOperationFromJSON(json["operation"]),
|
|
2905
|
+
activationStatuses: json["activationStatuses"].map(DeploymentActivationStatusFromJSON),
|
|
2906
|
+
packageName: json["packageName"] == null ? undefined : json["packageName"],
|
|
2907
|
+
packageVersion: json["packageVersion"] == null ? undefined : json["packageVersion"],
|
|
2908
|
+
currentPackageVersion: json["currentPackageVersion"] == null ? undefined : json["currentPackageVersion"],
|
|
2909
|
+
targetPackageVersion: json["targetPackageVersion"] == null ? undefined : json["targetPackageVersion"],
|
|
2910
|
+
targetFolderName: json["targetFolderName"] == null ? undefined : json["targetFolderName"],
|
|
2911
|
+
packageVersionKey: json["packageVersionKey"] == null ? undefined : json["packageVersionKey"]
|
|
2912
|
+
};
|
|
2913
|
+
}
|
|
2914
|
+
function DeploymentsSearchRequest2ToJSON(json) {
|
|
2915
|
+
return DeploymentsSearchRequest2ToJSONTyped(json, false);
|
|
2916
|
+
}
|
|
2917
|
+
function DeploymentsSearchRequest2ToJSONTyped(value, ignoreDiscriminator = false) {
|
|
2918
|
+
if (value == null) {
|
|
2919
|
+
return value;
|
|
2920
|
+
}
|
|
2921
|
+
return {
|
|
2922
|
+
orderByColumn: value["orderByColumn"],
|
|
2923
|
+
orderByDirection: OrderByDirectionToJSON(value["orderByDirection"]),
|
|
2924
|
+
searchTerm: value["searchTerm"],
|
|
2925
|
+
skip: value["skip"],
|
|
2926
|
+
take: value["take"],
|
|
2927
|
+
operationStatuses: value["operationStatuses"].map(DeploymentOperationStatusToJSON),
|
|
2928
|
+
operation: DeploymentOperationToJSON(value["operation"]),
|
|
2929
|
+
activationStatuses: value["activationStatuses"].map(DeploymentActivationStatusToJSON),
|
|
2930
|
+
packageName: value["packageName"],
|
|
2931
|
+
packageVersion: value["packageVersion"],
|
|
2932
|
+
currentPackageVersion: value["currentPackageVersion"],
|
|
2933
|
+
targetPackageVersion: value["targetPackageVersion"],
|
|
2934
|
+
targetFolderName: value["targetFolderName"],
|
|
2935
|
+
packageVersionKey: value["packageVersionKey"]
|
|
2936
|
+
};
|
|
2937
|
+
}
|
|
2938
|
+
// ../solution-sdk/generated/src/models/ExtendedPackageVersionState.ts
|
|
2939
|
+
var ExtendedPackageVersionState = {
|
|
2940
|
+
Pending: "Pending",
|
|
2941
|
+
Ready: "Ready",
|
|
2942
|
+
Failed: "Failed",
|
|
2943
|
+
Active: "Active"
|
|
2944
|
+
};
|
|
2945
|
+
function instanceOfExtendedPackageVersionState(value) {
|
|
2946
|
+
for (const key in ExtendedPackageVersionState) {
|
|
2947
|
+
if (Object.prototype.hasOwnProperty.call(ExtendedPackageVersionState, key)) {
|
|
2948
|
+
if (ExtendedPackageVersionState[key] === value) {
|
|
2949
|
+
return true;
|
|
2950
|
+
}
|
|
2951
|
+
}
|
|
2952
|
+
}
|
|
2953
|
+
return false;
|
|
2954
|
+
}
|
|
2955
|
+
function ExtendedPackageVersionStateFromJSON(json) {
|
|
2956
|
+
return ExtendedPackageVersionStateFromJSONTyped(json, false);
|
|
2957
|
+
}
|
|
2958
|
+
function ExtendedPackageVersionStateFromJSONTyped(json, ignoreDiscriminator) {
|
|
2959
|
+
return json;
|
|
2960
|
+
}
|
|
2961
|
+
function ExtendedPackageVersionStateToJSON(value) {
|
|
2962
|
+
return value;
|
|
2963
|
+
}
|
|
2964
|
+
function ExtendedPackageVersionStateToJSONTyped(value, ignoreDiscriminator) {
|
|
2965
|
+
return value;
|
|
2966
|
+
}
|
|
2967
|
+
// ../solution-sdk/generated/src/models/FolderInfo.ts
|
|
2968
|
+
function instanceOfFolderInfo(value) {
|
|
2969
|
+
if (!("fullyQualifiedName" in value) || value["fullyQualifiedName"] === undefined)
|
|
2970
|
+
return false;
|
|
2971
|
+
return true;
|
|
2972
|
+
}
|
|
2973
|
+
function FolderInfoFromJSON(json) {
|
|
2974
|
+
return FolderInfoFromJSONTyped(json, false);
|
|
2975
|
+
}
|
|
2976
|
+
function FolderInfoFromJSONTyped(json, ignoreDiscriminator) {
|
|
2977
|
+
if (json == null) {
|
|
2978
|
+
return json;
|
|
2979
|
+
}
|
|
2980
|
+
return {
|
|
2981
|
+
fullyQualifiedName: json["fullyQualifiedName"],
|
|
2982
|
+
path: json["path"] == null ? undefined : json["path"],
|
|
2983
|
+
folderKey: json["folderKey"] == null ? undefined : json["folderKey"]
|
|
2984
|
+
};
|
|
2985
|
+
}
|
|
2986
|
+
function FolderInfoToJSON(json) {
|
|
2987
|
+
return FolderInfoToJSONTyped(json, false);
|
|
2988
|
+
}
|
|
2989
|
+
function FolderInfoToJSONTyped(value, ignoreDiscriminator = false) {
|
|
2990
|
+
if (value == null) {
|
|
2991
|
+
return value;
|
|
2992
|
+
}
|
|
2993
|
+
return {
|
|
2994
|
+
fullyQualifiedName: value["fullyQualifiedName"],
|
|
2995
|
+
path: value["path"],
|
|
2996
|
+
folderKey: value["folderKey"]
|
|
2997
|
+
};
|
|
2998
|
+
}
|
|
2999
|
+
// ../solution-sdk/generated/src/models/LocationDto.ts
|
|
3000
|
+
function instanceOfLocationDto(value) {
|
|
3001
|
+
if (!("name" in value) || value["name"] === undefined)
|
|
3002
|
+
return false;
|
|
3003
|
+
if (!("key" in value) || value["key"] === undefined)
|
|
3004
|
+
return false;
|
|
3005
|
+
if (!("isPersonalWorkspace" in value) || value["isPersonalWorkspace"] === undefined)
|
|
3006
|
+
return false;
|
|
3007
|
+
return true;
|
|
3008
|
+
}
|
|
3009
|
+
function LocationDtoFromJSON(json) {
|
|
3010
|
+
return LocationDtoFromJSONTyped(json, false);
|
|
3011
|
+
}
|
|
3012
|
+
function LocationDtoFromJSONTyped(json, ignoreDiscriminator) {
|
|
3013
|
+
if (json == null) {
|
|
3014
|
+
return json;
|
|
3015
|
+
}
|
|
3016
|
+
return {
|
|
3017
|
+
name: json["name"],
|
|
3018
|
+
key: json["key"],
|
|
3019
|
+
isPersonalWorkspace: json["isPersonalWorkspace"]
|
|
3020
|
+
};
|
|
3021
|
+
}
|
|
3022
|
+
function LocationDtoToJSON(json) {
|
|
3023
|
+
return LocationDtoToJSONTyped(json, false);
|
|
3024
|
+
}
|
|
3025
|
+
function LocationDtoToJSONTyped(value, ignoreDiscriminator = false) {
|
|
3026
|
+
if (value == null) {
|
|
3027
|
+
return value;
|
|
3028
|
+
}
|
|
3029
|
+
return {
|
|
3030
|
+
name: value["name"],
|
|
3031
|
+
key: value["key"],
|
|
3032
|
+
isPersonalWorkspace: value["isPersonalWorkspace"]
|
|
3033
|
+
};
|
|
3034
|
+
}
|
|
3035
|
+
// ../solution-sdk/generated/src/models/PackageInfo.ts
|
|
3036
|
+
function instanceOfPackageInfo(value) {
|
|
3037
|
+
if (!("key" in value) || value["key"] === undefined)
|
|
3038
|
+
return false;
|
|
3039
|
+
if (!("name" in value) || value["name"] === undefined)
|
|
3040
|
+
return false;
|
|
3041
|
+
if (!("latestVersion" in value) || value["latestVersion"] === undefined)
|
|
3042
|
+
return false;
|
|
3043
|
+
if (!("packageVersionKey" in value) || value["packageVersionKey"] === undefined)
|
|
3044
|
+
return false;
|
|
3045
|
+
if (!("authorName" in value) || value["authorName"] === undefined)
|
|
3046
|
+
return false;
|
|
3047
|
+
if (!("publishDate" in value) || value["publishDate"] === undefined)
|
|
3048
|
+
return false;
|
|
3049
|
+
if (!("state" in value) || value["state"] === undefined)
|
|
3050
|
+
return false;
|
|
3051
|
+
if (!("solutionRootFolderName" in value) || value["solutionRootFolderName"] === undefined)
|
|
3052
|
+
return false;
|
|
3053
|
+
if (!("hasUpgradeableDeployments" in value) || value["hasUpgradeableDeployments"] === undefined)
|
|
3054
|
+
return false;
|
|
3055
|
+
return true;
|
|
3056
|
+
}
|
|
3057
|
+
function PackageInfoFromJSON(json) {
|
|
3058
|
+
return PackageInfoFromJSONTyped(json, false);
|
|
3059
|
+
}
|
|
3060
|
+
function PackageInfoFromJSONTyped(json, ignoreDiscriminator) {
|
|
3061
|
+
if (json == null) {
|
|
3062
|
+
return json;
|
|
3063
|
+
}
|
|
3064
|
+
return {
|
|
3065
|
+
key: json["key"],
|
|
3066
|
+
name: json["name"],
|
|
3067
|
+
latestVersion: json["latestVersion"],
|
|
3068
|
+
packageVersionKey: json["packageVersionKey"],
|
|
3069
|
+
authorName: json["authorName"],
|
|
3070
|
+
authorEmail: json["authorEmail"] == null ? undefined : json["authorEmail"],
|
|
3071
|
+
publishDate: new Date(json["publishDate"]),
|
|
3072
|
+
description: json["description"] == null ? undefined : json["description"],
|
|
3073
|
+
releaseNotes: json["releaseNotes"] == null ? undefined : json["releaseNotes"],
|
|
3074
|
+
state: ExtendedPackageVersionStateFromJSON(json["state"]),
|
|
3075
|
+
solutionRootFolderName: json["solutionRootFolderName"],
|
|
3076
|
+
hasUpgradeableDeployments: json["hasUpgradeableDeployments"]
|
|
3077
|
+
};
|
|
3078
|
+
}
|
|
3079
|
+
function PackageInfoToJSON(json) {
|
|
3080
|
+
return PackageInfoToJSONTyped(json, false);
|
|
3081
|
+
}
|
|
3082
|
+
function PackageInfoToJSONTyped(value, ignoreDiscriminator = false) {
|
|
3083
|
+
if (value == null) {
|
|
3084
|
+
return value;
|
|
3085
|
+
}
|
|
3086
|
+
return {
|
|
3087
|
+
key: value["key"],
|
|
3088
|
+
name: value["name"],
|
|
3089
|
+
latestVersion: value["latestVersion"],
|
|
3090
|
+
packageVersionKey: value["packageVersionKey"],
|
|
3091
|
+
authorName: value["authorName"],
|
|
3092
|
+
authorEmail: value["authorEmail"],
|
|
3093
|
+
publishDate: value["publishDate"].toISOString(),
|
|
3094
|
+
description: value["description"],
|
|
3095
|
+
releaseNotes: value["releaseNotes"],
|
|
3096
|
+
state: ExtendedPackageVersionStateToJSON(value["state"]),
|
|
3097
|
+
solutionRootFolderName: value["solutionRootFolderName"],
|
|
3098
|
+
hasUpgradeableDeployments: value["hasUpgradeableDeployments"]
|
|
3099
|
+
};
|
|
3100
|
+
}
|
|
3101
|
+
// ../solution-sdk/generated/src/models/ResourceStats.ts
|
|
3102
|
+
function instanceOfResourceStats(value) {
|
|
3103
|
+
if (!("count" in value) || value["count"] === undefined)
|
|
3104
|
+
return false;
|
|
3105
|
+
if (!("kind" in value) || value["kind"] === undefined)
|
|
3106
|
+
return false;
|
|
3107
|
+
if (!("serviceName" in value) || value["serviceName"] === undefined)
|
|
3108
|
+
return false;
|
|
3109
|
+
return true;
|
|
3110
|
+
}
|
|
3111
|
+
function ResourceStatsFromJSON(json) {
|
|
3112
|
+
return ResourceStatsFromJSONTyped(json, false);
|
|
3113
|
+
}
|
|
3114
|
+
function ResourceStatsFromJSONTyped(json, ignoreDiscriminator) {
|
|
3115
|
+
if (json == null) {
|
|
3116
|
+
return json;
|
|
3117
|
+
}
|
|
3118
|
+
return {
|
|
3119
|
+
count: json["count"],
|
|
3120
|
+
kind: json["kind"],
|
|
3121
|
+
serviceName: json["serviceName"]
|
|
3122
|
+
};
|
|
3123
|
+
}
|
|
3124
|
+
function ResourceStatsToJSON(json) {
|
|
3125
|
+
return ResourceStatsToJSONTyped(json, false);
|
|
3126
|
+
}
|
|
3127
|
+
function ResourceStatsToJSONTyped(value, ignoreDiscriminator = false) {
|
|
3128
|
+
if (value == null) {
|
|
3129
|
+
return value;
|
|
3130
|
+
}
|
|
3131
|
+
return {
|
|
3132
|
+
count: value["count"],
|
|
3133
|
+
kind: value["kind"],
|
|
3134
|
+
serviceName: value["serviceName"]
|
|
3135
|
+
};
|
|
3136
|
+
}
|
|
3137
|
+
|
|
3138
|
+
// ../solution-sdk/generated/src/models/PackageVersionResourceDto.ts
|
|
3139
|
+
function instanceOfPackageVersionResourceDto(value) {
|
|
3140
|
+
if (!("key" in value) || value["key"] === undefined)
|
|
3141
|
+
return false;
|
|
3142
|
+
if (!("name" in value) || value["name"] === undefined)
|
|
3143
|
+
return false;
|
|
3144
|
+
if (!("kind" in value) || value["kind"] === undefined)
|
|
3145
|
+
return false;
|
|
3146
|
+
if (!("apiVersion" in value) || value["apiVersion"] === undefined)
|
|
3147
|
+
return false;
|
|
3148
|
+
if (!("folders" in value) || value["folders"] === undefined)
|
|
3149
|
+
return false;
|
|
3150
|
+
return true;
|
|
3151
|
+
}
|
|
3152
|
+
function PackageVersionResourceDtoFromJSON(json) {
|
|
3153
|
+
return PackageVersionResourceDtoFromJSONTyped(json, false);
|
|
3154
|
+
}
|
|
3155
|
+
function PackageVersionResourceDtoFromJSONTyped(json, ignoreDiscriminator) {
|
|
3156
|
+
if (json == null) {
|
|
3157
|
+
return json;
|
|
3158
|
+
}
|
|
3159
|
+
return {
|
|
3160
|
+
key: json["key"],
|
|
3161
|
+
name: json["name"],
|
|
3162
|
+
kind: json["kind"],
|
|
3163
|
+
type: json["type"] == null ? undefined : json["type"],
|
|
3164
|
+
apiVersion: json["apiVersion"],
|
|
3165
|
+
folders: json["folders"].map(FolderInfoFromJSON)
|
|
3166
|
+
};
|
|
3167
|
+
}
|
|
3168
|
+
function PackageVersionResourceDtoToJSON(json) {
|
|
3169
|
+
return PackageVersionResourceDtoToJSONTyped(json, false);
|
|
3170
|
+
}
|
|
3171
|
+
function PackageVersionResourceDtoToJSONTyped(value, ignoreDiscriminator = false) {
|
|
3172
|
+
if (value == null) {
|
|
3173
|
+
return value;
|
|
3174
|
+
}
|
|
3175
|
+
return {
|
|
3176
|
+
key: value["key"],
|
|
3177
|
+
name: value["name"],
|
|
3178
|
+
kind: value["kind"],
|
|
3179
|
+
type: value["type"],
|
|
3180
|
+
apiVersion: value["apiVersion"],
|
|
3181
|
+
folders: value["folders"].map(FolderInfoToJSON)
|
|
3182
|
+
};
|
|
3183
|
+
}
|
|
3184
|
+
|
|
3185
|
+
// ../solution-sdk/generated/src/models/PackageVersionComponentsDto.ts
|
|
3186
|
+
function instanceOfPackageVersionComponentsDto(value) {
|
|
3187
|
+
if (!("count" in value) || value["count"] === undefined)
|
|
3188
|
+
return false;
|
|
3189
|
+
if (!("resources" in value) || value["resources"] === undefined)
|
|
3190
|
+
return false;
|
|
3191
|
+
if (!("stats" in value) || value["stats"] === undefined)
|
|
3192
|
+
return false;
|
|
3193
|
+
return true;
|
|
3194
|
+
}
|
|
3195
|
+
function PackageVersionComponentsDtoFromJSON(json) {
|
|
3196
|
+
return PackageVersionComponentsDtoFromJSONTyped(json, false);
|
|
3197
|
+
}
|
|
3198
|
+
function PackageVersionComponentsDtoFromJSONTyped(json, ignoreDiscriminator) {
|
|
3199
|
+
if (json == null) {
|
|
3200
|
+
return json;
|
|
3201
|
+
}
|
|
3202
|
+
return {
|
|
3203
|
+
count: json["count"],
|
|
3204
|
+
resources: json["resources"].map(PackageVersionResourceDtoFromJSON),
|
|
3205
|
+
stats: json["stats"].map(ResourceStatsFromJSON)
|
|
3206
|
+
};
|
|
3207
|
+
}
|
|
3208
|
+
function PackageVersionComponentsDtoToJSON(json) {
|
|
3209
|
+
return PackageVersionComponentsDtoToJSONTyped(json, false);
|
|
3210
|
+
}
|
|
3211
|
+
function PackageVersionComponentsDtoToJSONTyped(value, ignoreDiscriminator = false) {
|
|
3212
|
+
if (value == null) {
|
|
3213
|
+
return value;
|
|
3214
|
+
}
|
|
3215
|
+
return {
|
|
3216
|
+
count: value["count"],
|
|
3217
|
+
resources: value["resources"].map(PackageVersionResourceDtoToJSON),
|
|
3218
|
+
stats: value["stats"].map(ResourceStatsToJSON)
|
|
3219
|
+
};
|
|
3220
|
+
}
|
|
3221
|
+
// ../solution-sdk/generated/src/models/PackageVersionInfoDto.ts
|
|
3222
|
+
function instanceOfPackageVersionInfoDto(value) {
|
|
3223
|
+
if (!("key" in value) || value["key"] === undefined)
|
|
3224
|
+
return false;
|
|
3225
|
+
if (!("packageName" in value) || value["packageName"] === undefined)
|
|
3226
|
+
return false;
|
|
3227
|
+
if (!("packageVersion" in value) || value["packageVersion"] === undefined)
|
|
3228
|
+
return false;
|
|
3229
|
+
if (!("publishDate" in value) || value["publishDate"] === undefined)
|
|
3230
|
+
return false;
|
|
3231
|
+
if (!("authorName" in value) || value["authorName"] === undefined)
|
|
3232
|
+
return false;
|
|
3233
|
+
if (!("state" in value) || value["state"] === undefined)
|
|
3234
|
+
return false;
|
|
3235
|
+
if (!("solutionRootFolderName" in value) || value["solutionRootFolderName"] === undefined)
|
|
3236
|
+
return false;
|
|
3237
|
+
return true;
|
|
3238
|
+
}
|
|
3239
|
+
function PackageVersionInfoDtoFromJSON(json) {
|
|
3240
|
+
return PackageVersionInfoDtoFromJSONTyped(json, false);
|
|
3241
|
+
}
|
|
3242
|
+
function PackageVersionInfoDtoFromJSONTyped(json, ignoreDiscriminator) {
|
|
3243
|
+
if (json == null) {
|
|
3244
|
+
return json;
|
|
3245
|
+
}
|
|
3246
|
+
return {
|
|
3247
|
+
key: json["key"],
|
|
3248
|
+
packageName: json["packageName"],
|
|
3249
|
+
packageVersion: json["packageVersion"],
|
|
3250
|
+
publishDate: new Date(json["publishDate"]),
|
|
3251
|
+
authorName: json["authorName"],
|
|
3252
|
+
authorEmail: json["authorEmail"] == null ? undefined : json["authorEmail"],
|
|
3253
|
+
description: json["description"] == null ? undefined : json["description"],
|
|
3254
|
+
releaseNotes: json["releaseNotes"] == null ? undefined : json["releaseNotes"],
|
|
3255
|
+
state: ExtendedPackageVersionStateFromJSON(json["state"]),
|
|
3256
|
+
solutionRootFolderName: json["solutionRootFolderName"],
|
|
3257
|
+
locationKey: json["locationKey"] == null ? undefined : json["locationKey"],
|
|
3258
|
+
components: json["components"] == null ? undefined : PackageVersionComponentsDtoFromJSON(json["components"])
|
|
3259
|
+
};
|
|
3260
|
+
}
|
|
3261
|
+
function PackageVersionInfoDtoToJSON(json) {
|
|
3262
|
+
return PackageVersionInfoDtoToJSONTyped(json, false);
|
|
3263
|
+
}
|
|
3264
|
+
function PackageVersionInfoDtoToJSONTyped(value, ignoreDiscriminator = false) {
|
|
3265
|
+
if (value == null) {
|
|
3266
|
+
return value;
|
|
3267
|
+
}
|
|
3268
|
+
return {
|
|
3269
|
+
key: value["key"],
|
|
3270
|
+
packageName: value["packageName"],
|
|
3271
|
+
packageVersion: value["packageVersion"],
|
|
3272
|
+
publishDate: value["publishDate"].toISOString(),
|
|
3273
|
+
authorName: value["authorName"],
|
|
3274
|
+
authorEmail: value["authorEmail"],
|
|
3275
|
+
description: value["description"],
|
|
3276
|
+
releaseNotes: value["releaseNotes"],
|
|
3277
|
+
state: ExtendedPackageVersionStateToJSON(value["state"]),
|
|
3278
|
+
solutionRootFolderName: value["solutionRootFolderName"],
|
|
3279
|
+
locationKey: value["locationKey"],
|
|
3280
|
+
components: PackageVersionComponentsDtoToJSON(value["components"])
|
|
3281
|
+
};
|
|
3282
|
+
}
|
|
3283
|
+
// ../solution-sdk/generated/src/models/PageInfoDtoOfDeploymentSearchItemDto2.ts
|
|
3284
|
+
function instanceOfPageInfoDtoOfDeploymentSearchItemDto2(value) {
|
|
3285
|
+
if (!("count" in value) || value["count"] === undefined)
|
|
3286
|
+
return false;
|
|
3287
|
+
if (!("values" in value) || value["values"] === undefined)
|
|
3288
|
+
return false;
|
|
3289
|
+
return true;
|
|
3290
|
+
}
|
|
3291
|
+
function PageInfoDtoOfDeploymentSearchItemDto2FromJSON(json) {
|
|
3292
|
+
return PageInfoDtoOfDeploymentSearchItemDto2FromJSONTyped(json, false);
|
|
3293
|
+
}
|
|
3294
|
+
function PageInfoDtoOfDeploymentSearchItemDto2FromJSONTyped(json, ignoreDiscriminator) {
|
|
3295
|
+
if (json == null) {
|
|
3296
|
+
return json;
|
|
3297
|
+
}
|
|
3298
|
+
return {
|
|
3299
|
+
count: json["count"],
|
|
3300
|
+
values: json["values"].map(DeploymentSearchItemDto2FromJSON)
|
|
3301
|
+
};
|
|
3302
|
+
}
|
|
3303
|
+
function PageInfoDtoOfDeploymentSearchItemDto2ToJSON(json) {
|
|
3304
|
+
return PageInfoDtoOfDeploymentSearchItemDto2ToJSONTyped(json, false);
|
|
3305
|
+
}
|
|
3306
|
+
function PageInfoDtoOfDeploymentSearchItemDto2ToJSONTyped(value, ignoreDiscriminator = false) {
|
|
3307
|
+
if (value == null) {
|
|
3308
|
+
return value;
|
|
3309
|
+
}
|
|
3310
|
+
return {
|
|
3311
|
+
count: value["count"],
|
|
3312
|
+
values: value["values"].map(DeploymentSearchItemDto2ToJSON)
|
|
3313
|
+
};
|
|
3314
|
+
}
|
|
3315
|
+
// ../solution-sdk/generated/src/models/PageInfoDtoOfPackageInfo.ts
|
|
3316
|
+
function instanceOfPageInfoDtoOfPackageInfo(value) {
|
|
3317
|
+
if (!("count" in value) || value["count"] === undefined)
|
|
3318
|
+
return false;
|
|
3319
|
+
if (!("values" in value) || value["values"] === undefined)
|
|
3320
|
+
return false;
|
|
3321
|
+
return true;
|
|
3322
|
+
}
|
|
3323
|
+
function PageInfoDtoOfPackageInfoFromJSON(json) {
|
|
3324
|
+
return PageInfoDtoOfPackageInfoFromJSONTyped(json, false);
|
|
3325
|
+
}
|
|
3326
|
+
function PageInfoDtoOfPackageInfoFromJSONTyped(json, ignoreDiscriminator) {
|
|
3327
|
+
if (json == null) {
|
|
3328
|
+
return json;
|
|
3329
|
+
}
|
|
3330
|
+
return {
|
|
3331
|
+
count: json["count"],
|
|
3332
|
+
values: json["values"].map(PackageInfoFromJSON)
|
|
3333
|
+
};
|
|
3334
|
+
}
|
|
3335
|
+
function PageInfoDtoOfPackageInfoToJSON(json) {
|
|
3336
|
+
return PageInfoDtoOfPackageInfoToJSONTyped(json, false);
|
|
3337
|
+
}
|
|
3338
|
+
function PageInfoDtoOfPackageInfoToJSONTyped(value, ignoreDiscriminator = false) {
|
|
3339
|
+
if (value == null) {
|
|
3340
|
+
return value;
|
|
3341
|
+
}
|
|
3342
|
+
return {
|
|
3343
|
+
count: value["count"],
|
|
3344
|
+
values: value["values"].map(PackageInfoToJSON)
|
|
3345
|
+
};
|
|
3346
|
+
}
|
|
3347
|
+
// ../solution-sdk/generated/src/models/ProblemDetails.ts
|
|
3348
|
+
function instanceOfProblemDetails(value) {
|
|
3349
|
+
return true;
|
|
3350
|
+
}
|
|
3351
|
+
function ProblemDetailsFromJSON(json) {
|
|
3352
|
+
return ProblemDetailsFromJSONTyped(json, false);
|
|
3353
|
+
}
|
|
3354
|
+
function ProblemDetailsFromJSONTyped(json, ignoreDiscriminator) {
|
|
3355
|
+
if (json == null) {
|
|
3356
|
+
return json;
|
|
3357
|
+
}
|
|
3358
|
+
return {
|
|
3359
|
+
...json,
|
|
3360
|
+
type: json["type"] == null ? undefined : json["type"],
|
|
3361
|
+
title: json["title"] == null ? undefined : json["title"],
|
|
3362
|
+
status: json["status"] == null ? undefined : json["status"],
|
|
3363
|
+
detail: json["detail"] == null ? undefined : json["detail"],
|
|
3364
|
+
instance: json["instance"] == null ? undefined : json["instance"]
|
|
3365
|
+
};
|
|
3366
|
+
}
|
|
3367
|
+
function ProblemDetailsToJSON(json) {
|
|
3368
|
+
return ProblemDetailsToJSONTyped(json, false);
|
|
3369
|
+
}
|
|
3370
|
+
function ProblemDetailsToJSONTyped(value, ignoreDiscriminator = false) {
|
|
3371
|
+
if (value == null) {
|
|
3372
|
+
return value;
|
|
3373
|
+
}
|
|
3374
|
+
return {
|
|
3375
|
+
...value,
|
|
3376
|
+
type: value["type"],
|
|
3377
|
+
title: value["title"],
|
|
3378
|
+
status: value["status"],
|
|
3379
|
+
detail: value["detail"],
|
|
3380
|
+
instance: value["instance"]
|
|
3381
|
+
};
|
|
3382
|
+
}
|
|
3383
|
+
// ../solution-sdk/generated/src/models/ProjectCreateRequest.ts
|
|
3384
|
+
function instanceOfProjectCreateRequest(value) {
|
|
3385
|
+
if (!("name" in value) || value["name"] === undefined)
|
|
3386
|
+
return false;
|
|
3387
|
+
return true;
|
|
3388
|
+
}
|
|
3389
|
+
function ProjectCreateRequestFromJSON(json) {
|
|
3390
|
+
return ProjectCreateRequestFromJSONTyped(json, false);
|
|
3391
|
+
}
|
|
3392
|
+
function ProjectCreateRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
3393
|
+
if (json == null) {
|
|
3394
|
+
return json;
|
|
3395
|
+
}
|
|
3396
|
+
return {
|
|
3397
|
+
name: json["name"],
|
|
3398
|
+
description: json["description"] == null ? undefined : json["description"]
|
|
3399
|
+
};
|
|
3400
|
+
}
|
|
3401
|
+
function ProjectCreateRequestToJSON(json) {
|
|
3402
|
+
return ProjectCreateRequestToJSONTyped(json, false);
|
|
3403
|
+
}
|
|
3404
|
+
function ProjectCreateRequestToJSONTyped(value, ignoreDiscriminator = false) {
|
|
3405
|
+
if (value == null) {
|
|
3406
|
+
return value;
|
|
3407
|
+
}
|
|
3408
|
+
return {
|
|
3409
|
+
name: value["name"],
|
|
3410
|
+
description: value["description"]
|
|
3411
|
+
};
|
|
3412
|
+
}
|
|
3413
|
+
// ../solution-sdk/generated/src/models/ProjectImportStatus.ts
|
|
3414
|
+
var ProjectImportStatus = {
|
|
3415
|
+
InProgress: "InProgress",
|
|
3416
|
+
Completed: "Completed",
|
|
3417
|
+
Failed: "Failed",
|
|
3418
|
+
NotApplicable: "NotApplicable"
|
|
3419
|
+
};
|
|
3420
|
+
function instanceOfProjectImportStatus(value) {
|
|
3421
|
+
for (const key in ProjectImportStatus) {
|
|
3422
|
+
if (Object.prototype.hasOwnProperty.call(ProjectImportStatus, key)) {
|
|
3423
|
+
if (ProjectImportStatus[key] === value) {
|
|
3424
|
+
return true;
|
|
3425
|
+
}
|
|
3426
|
+
}
|
|
3427
|
+
}
|
|
3428
|
+
return false;
|
|
3429
|
+
}
|
|
3430
|
+
function ProjectImportStatusFromJSON(json) {
|
|
3431
|
+
return ProjectImportStatusFromJSONTyped(json, false);
|
|
3432
|
+
}
|
|
3433
|
+
function ProjectImportStatusFromJSONTyped(json, ignoreDiscriminator) {
|
|
3434
|
+
return json;
|
|
3435
|
+
}
|
|
3436
|
+
function ProjectImportStatusToJSON(value) {
|
|
3437
|
+
return value;
|
|
3438
|
+
}
|
|
3439
|
+
function ProjectImportStatusToJSONTyped(value, ignoreDiscriminator) {
|
|
3440
|
+
return value;
|
|
3441
|
+
}
|
|
3442
|
+
|
|
3443
|
+
// ../solution-sdk/generated/src/models/ProjectDto.ts
|
|
3444
|
+
function instanceOfProjectDto(value) {
|
|
3445
|
+
if (!("key" in value) || value["key"] === undefined)
|
|
3446
|
+
return false;
|
|
3447
|
+
if (!("name" in value) || value["name"] === undefined)
|
|
3448
|
+
return false;
|
|
3449
|
+
if (!("isEmpty" in value) || value["isEmpty"] === undefined)
|
|
3450
|
+
return false;
|
|
3451
|
+
if (!("importStatus" in value) || value["importStatus"] === undefined)
|
|
3452
|
+
return false;
|
|
3453
|
+
return true;
|
|
3454
|
+
}
|
|
3455
|
+
function ProjectDtoFromJSON2(json) {
|
|
3456
|
+
return ProjectDtoFromJSONTyped3(json, false);
|
|
3457
|
+
}
|
|
3458
|
+
function ProjectDtoFromJSONTyped3(json, ignoreDiscriminator) {
|
|
3459
|
+
if (json == null) {
|
|
3460
|
+
return json;
|
|
3461
|
+
}
|
|
3462
|
+
return {
|
|
3463
|
+
key: json["key"],
|
|
3464
|
+
name: json["name"],
|
|
3465
|
+
description: json["description"] == null ? undefined : json["description"],
|
|
3466
|
+
solutionRootFolderName: json["solutionRootFolderName"] == null ? undefined : json["solutionRootFolderName"],
|
|
3467
|
+
isEmpty: json["isEmpty"],
|
|
3468
|
+
originatedPackageVersionKey: json["originatedPackageVersionKey"] == null ? undefined : json["originatedPackageVersionKey"],
|
|
3469
|
+
latestPublishedPackageVersionKey: json["latestPublishedPackageVersionKey"] == null ? undefined : json["latestPublishedPackageVersionKey"],
|
|
3470
|
+
importStatus: ProjectImportStatusFromJSON(json["importStatus"])
|
|
3471
|
+
};
|
|
3472
|
+
}
|
|
3473
|
+
function ProjectDtoToJSON2(json) {
|
|
3474
|
+
return ProjectDtoToJSONTyped2(json, false);
|
|
3475
|
+
}
|
|
3476
|
+
function ProjectDtoToJSONTyped2(value, ignoreDiscriminator = false) {
|
|
3477
|
+
if (value == null) {
|
|
3478
|
+
return value;
|
|
3479
|
+
}
|
|
3480
|
+
return {
|
|
3481
|
+
key: value["key"],
|
|
3482
|
+
name: value["name"],
|
|
3483
|
+
description: value["description"],
|
|
3484
|
+
solutionRootFolderName: value["solutionRootFolderName"],
|
|
3485
|
+
isEmpty: value["isEmpty"],
|
|
3486
|
+
originatedPackageVersionKey: value["originatedPackageVersionKey"],
|
|
3487
|
+
latestPublishedPackageVersionKey: value["latestPublishedPackageVersionKey"],
|
|
3488
|
+
importStatus: ProjectImportStatusToJSON(value["importStatus"])
|
|
3489
|
+
};
|
|
3490
|
+
}
|
|
3491
|
+
// ../solution-sdk/generated/src/models/SearchFilter.ts
|
|
3492
|
+
function instanceOfSearchFilter(value) {
|
|
3493
|
+
return true;
|
|
3494
|
+
}
|
|
3495
|
+
function SearchFilterFromJSON(json) {
|
|
3496
|
+
return SearchFilterFromJSONTyped(json, false);
|
|
3497
|
+
}
|
|
3498
|
+
function SearchFilterFromJSONTyped(json, ignoreDiscriminator) {
|
|
3499
|
+
if (json == null) {
|
|
3500
|
+
return json;
|
|
3501
|
+
}
|
|
3502
|
+
return {
|
|
3503
|
+
skip: json["skip"] == null ? undefined : json["skip"],
|
|
3504
|
+
take: json["take"] == null ? undefined : json["take"],
|
|
3505
|
+
orderByColumn: json["orderByColumn"] == null ? undefined : json["orderByColumn"],
|
|
3506
|
+
orderByDirection: json["orderByDirection"] == null ? undefined : OrderByDirectionFromJSON(json["orderByDirection"]),
|
|
3507
|
+
searchTerm: json["searchTerm"] == null ? undefined : json["searchTerm"]
|
|
3508
|
+
};
|
|
3509
|
+
}
|
|
3510
|
+
function SearchFilterToJSON(json) {
|
|
3511
|
+
return SearchFilterToJSONTyped(json, false);
|
|
3512
|
+
}
|
|
3513
|
+
function SearchFilterToJSONTyped(value, ignoreDiscriminator = false) {
|
|
3514
|
+
if (value == null) {
|
|
3515
|
+
return value;
|
|
3516
|
+
}
|
|
3517
|
+
return {
|
|
3518
|
+
skip: value["skip"],
|
|
3519
|
+
take: value["take"],
|
|
3520
|
+
orderByColumn: value["orderByColumn"],
|
|
3521
|
+
orderByDirection: OrderByDirectionToJSON(value["orderByDirection"]),
|
|
3522
|
+
searchTerm: value["searchTerm"]
|
|
3523
|
+
};
|
|
3524
|
+
}
|
|
3525
|
+
// ../solution-sdk/generated/src/models/SolutionDeploymentAction.ts
|
|
3526
|
+
var SolutionDeploymentAction = {
|
|
3527
|
+
Install: "Install",
|
|
3528
|
+
Uninstall: "Uninstall",
|
|
3529
|
+
Upgrade: "Upgrade",
|
|
3530
|
+
Rollback: "Rollback",
|
|
3531
|
+
Activate: "Activate"
|
|
3532
|
+
};
|
|
3533
|
+
function instanceOfSolutionDeploymentAction(value) {
|
|
3534
|
+
for (const key in SolutionDeploymentAction) {
|
|
3535
|
+
if (Object.prototype.hasOwnProperty.call(SolutionDeploymentAction, key)) {
|
|
3536
|
+
if (SolutionDeploymentAction[key] === value) {
|
|
3537
|
+
return true;
|
|
3538
|
+
}
|
|
3539
|
+
}
|
|
3540
|
+
}
|
|
3541
|
+
return false;
|
|
3542
|
+
}
|
|
3543
|
+
function SolutionDeploymentActionFromJSON(json) {
|
|
3544
|
+
return SolutionDeploymentActionFromJSONTyped(json, false);
|
|
3545
|
+
}
|
|
3546
|
+
function SolutionDeploymentActionFromJSONTyped(json, ignoreDiscriminator) {
|
|
3547
|
+
return json;
|
|
3548
|
+
}
|
|
3549
|
+
function SolutionDeploymentActionToJSON(value) {
|
|
3550
|
+
return value;
|
|
3551
|
+
}
|
|
3552
|
+
function SolutionDeploymentActionToJSONTyped(value, ignoreDiscriminator) {
|
|
3553
|
+
return value;
|
|
3554
|
+
}
|
|
3555
|
+
// ../solution-sdk/generated/src/apis/ConfigurationsApi.ts
|
|
3556
|
+
class ConfigurationsApi extends BaseAPI {
|
|
3557
|
+
async configurationsPostRaw(requestParameters, initOverrides) {
|
|
3558
|
+
if (requestParameters["createConfigurationCommand"] == null) {
|
|
3559
|
+
throw new RequiredError("createConfigurationCommand", 'Required parameter "createConfigurationCommand" was null or undefined when calling configurationsPost().');
|
|
3560
|
+
}
|
|
3561
|
+
const queryParameters = {};
|
|
3562
|
+
const headerParameters = {};
|
|
3563
|
+
headerParameters["Content-Type"] = "application/json";
|
|
3564
|
+
if (requestParameters["xUipathAsVersion"] != null) {
|
|
3565
|
+
headerParameters["x-uipath-as-version"] = String(requestParameters["xUipathAsVersion"]);
|
|
3566
|
+
}
|
|
3567
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
3568
|
+
const token = this.configuration.accessToken;
|
|
3569
|
+
const tokenString = await token("Bearer", []);
|
|
3570
|
+
if (tokenString) {
|
|
3571
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
3572
|
+
}
|
|
3573
|
+
}
|
|
3574
|
+
let urlPath = `/api/configurations`;
|
|
3575
|
+
const response = await this.request({
|
|
3576
|
+
path: urlPath,
|
|
3577
|
+
method: "POST",
|
|
3578
|
+
headers: headerParameters,
|
|
3579
|
+
query: queryParameters,
|
|
3580
|
+
body: CreateConfigurationCommandToJSON(requestParameters["createConfigurationCommand"])
|
|
3581
|
+
}, initOverrides);
|
|
3582
|
+
if (this.isJsonMime(response.headers.get("content-type"))) {
|
|
3583
|
+
return new JSONApiResponse(response);
|
|
3584
|
+
} else {
|
|
3585
|
+
return new TextApiResponse(response);
|
|
3586
|
+
}
|
|
3587
|
+
}
|
|
3588
|
+
async configurationsPost(requestParameters, initOverrides) {
|
|
3589
|
+
const response = await this.configurationsPostRaw(requestParameters, initOverrides);
|
|
3590
|
+
return await response.value();
|
|
3591
|
+
}
|
|
3592
|
+
}
|
|
3593
|
+
// ../solution-sdk/generated/src/apis/DeploymentsApi.ts
|
|
3594
|
+
class DeploymentsApi extends BaseAPI {
|
|
3595
|
+
async deploymentsDeployRaw(requestParameters, initOverrides) {
|
|
3596
|
+
if (requestParameters["deploymentAutoRequest"] == null) {
|
|
3597
|
+
throw new RequiredError("deploymentAutoRequest", 'Required parameter "deploymentAutoRequest" was null or undefined when calling deploymentsDeploy().');
|
|
3598
|
+
}
|
|
3599
|
+
const queryParameters = {};
|
|
3600
|
+
const headerParameters = {};
|
|
3601
|
+
headerParameters["Content-Type"] = "application/json";
|
|
3602
|
+
if (requestParameters["xUIPATHFolderKey"] != null) {
|
|
3603
|
+
headerParameters["X-UIPATH-FolderKey"] = String(requestParameters["xUIPATHFolderKey"]);
|
|
3604
|
+
}
|
|
3605
|
+
if (requestParameters["xUipathAsVersion"] != null) {
|
|
3606
|
+
headerParameters["x-uipath-as-version"] = String(requestParameters["xUipathAsVersion"]);
|
|
3607
|
+
}
|
|
3608
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
3609
|
+
const token = this.configuration.accessToken;
|
|
3610
|
+
const tokenString = await token("Bearer", []);
|
|
3611
|
+
if (tokenString) {
|
|
3612
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
3613
|
+
}
|
|
3614
|
+
}
|
|
3615
|
+
let urlPath = `/api/deployments/deploy`;
|
|
3616
|
+
const response = await this.request({
|
|
3617
|
+
path: urlPath,
|
|
3618
|
+
method: "POST",
|
|
3619
|
+
headers: headerParameters,
|
|
3620
|
+
query: queryParameters,
|
|
3621
|
+
body: DeploymentAutoRequestToJSON(requestParameters["deploymentAutoRequest"])
|
|
3622
|
+
}, initOverrides);
|
|
3623
|
+
return new JSONApiResponse(response, (jsonValue) => DeploymentDtoFromJSON(jsonValue));
|
|
3624
|
+
}
|
|
3625
|
+
async deploymentsDeploy(requestParameters, initOverrides) {
|
|
3626
|
+
const response = await this.deploymentsDeployRaw(requestParameters, initOverrides);
|
|
3627
|
+
return await response.value();
|
|
3628
|
+
}
|
|
3629
|
+
async deploymentsGetByKeyRaw(requestParameters, initOverrides) {
|
|
3630
|
+
if (requestParameters["deploymentKey"] == null) {
|
|
3631
|
+
throw new RequiredError("deploymentKey", 'Required parameter "deploymentKey" was null or undefined when calling deploymentsGetByKey().');
|
|
3632
|
+
}
|
|
3633
|
+
const queryParameters = {};
|
|
3634
|
+
const headerParameters = {};
|
|
3635
|
+
if (requestParameters["xUipathAsVersion"] != null) {
|
|
3636
|
+
headerParameters["x-uipath-as-version"] = String(requestParameters["xUipathAsVersion"]);
|
|
3637
|
+
}
|
|
3638
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
3639
|
+
const token = this.configuration.accessToken;
|
|
3640
|
+
const tokenString = await token("Bearer", []);
|
|
3641
|
+
if (tokenString) {
|
|
3642
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
3643
|
+
}
|
|
3644
|
+
}
|
|
3645
|
+
let urlPath = `/api/deployments/{deploymentKey}`;
|
|
3646
|
+
urlPath = urlPath.replace(`{${"deploymentKey"}}`, encodeURIComponent(String(requestParameters["deploymentKey"])));
|
|
3647
|
+
const response = await this.request({
|
|
3648
|
+
path: urlPath,
|
|
3649
|
+
method: "GET",
|
|
3650
|
+
headers: headerParameters,
|
|
3651
|
+
query: queryParameters
|
|
3652
|
+
}, initOverrides);
|
|
3653
|
+
return new JSONApiResponse(response, (jsonValue) => DeploymentItemDtoFromJSON(jsonValue));
|
|
3654
|
+
}
|
|
3655
|
+
async deploymentsGetByKey(requestParameters, initOverrides) {
|
|
3656
|
+
const response = await this.deploymentsGetByKeyRaw(requestParameters, initOverrides);
|
|
3657
|
+
return await response.value();
|
|
3658
|
+
}
|
|
3659
|
+
async deploymentsGetValidationResultRaw(requestParameters, initOverrides) {
|
|
3660
|
+
if (requestParameters["deploymentKey"] == null) {
|
|
3661
|
+
throw new RequiredError("deploymentKey", 'Required parameter "deploymentKey" was null or undefined when calling deploymentsGetValidationResult().');
|
|
3662
|
+
}
|
|
3663
|
+
const queryParameters = {};
|
|
3664
|
+
if (requestParameters["deploymentAction"] != null) {
|
|
3665
|
+
queryParameters["deploymentAction"] = requestParameters["deploymentAction"];
|
|
3666
|
+
}
|
|
3667
|
+
const headerParameters = {};
|
|
3668
|
+
if (requestParameters["xUipathAsVersion"] != null) {
|
|
3669
|
+
headerParameters["x-uipath-as-version"] = String(requestParameters["xUipathAsVersion"]);
|
|
3670
|
+
}
|
|
3671
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
3672
|
+
const token = this.configuration.accessToken;
|
|
3673
|
+
const tokenString = await token("Bearer", []);
|
|
3674
|
+
if (tokenString) {
|
|
3675
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
3676
|
+
}
|
|
3677
|
+
}
|
|
3678
|
+
let urlPath = `/api/deployments/{deploymentKey}/validation-result`;
|
|
3679
|
+
urlPath = urlPath.replace(`{${"deploymentKey"}}`, encodeURIComponent(String(requestParameters["deploymentKey"])));
|
|
3680
|
+
const response = await this.request({
|
|
3681
|
+
path: urlPath,
|
|
3682
|
+
method: "GET",
|
|
3683
|
+
headers: headerParameters,
|
|
3684
|
+
query: queryParameters
|
|
3685
|
+
}, initOverrides);
|
|
3686
|
+
return new JSONApiResponse(response, (jsonValue) => DeploymentValidationResultDtoFromJSON(jsonValue));
|
|
3687
|
+
}
|
|
3688
|
+
async deploymentsGetValidationResult(requestParameters, initOverrides) {
|
|
3689
|
+
const response = await this.deploymentsGetValidationResultRaw(requestParameters, initOverrides);
|
|
3690
|
+
return await response.value();
|
|
3691
|
+
}
|
|
3692
|
+
async deploymentsPostRaw(requestParameters, initOverrides) {
|
|
3693
|
+
if (requestParameters["deploymentRequest"] == null) {
|
|
3694
|
+
throw new RequiredError("deploymentRequest", 'Required parameter "deploymentRequest" was null or undefined when calling deploymentsPost().');
|
|
3695
|
+
}
|
|
3696
|
+
const queryParameters = {};
|
|
3697
|
+
const headerParameters = {};
|
|
3698
|
+
headerParameters["Content-Type"] = "application/json";
|
|
3699
|
+
if (requestParameters["xUipathAsVersion"] != null) {
|
|
3700
|
+
headerParameters["x-uipath-as-version"] = String(requestParameters["xUipathAsVersion"]);
|
|
3701
|
+
}
|
|
3702
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
3703
|
+
const token = this.configuration.accessToken;
|
|
3704
|
+
const tokenString = await token("Bearer", []);
|
|
3705
|
+
if (tokenString) {
|
|
3706
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
3707
|
+
}
|
|
3708
|
+
}
|
|
3709
|
+
let urlPath = `/api/deployments`;
|
|
3710
|
+
const response = await this.request({
|
|
3711
|
+
path: urlPath,
|
|
3712
|
+
method: "POST",
|
|
3713
|
+
headers: headerParameters,
|
|
3714
|
+
query: queryParameters,
|
|
3715
|
+
body: DeploymentRequestToJSON(requestParameters["deploymentRequest"])
|
|
3716
|
+
}, initOverrides);
|
|
3717
|
+
return new JSONApiResponse(response, (jsonValue) => DeploymentItemDtoFromJSON(jsonValue));
|
|
3718
|
+
}
|
|
3719
|
+
async deploymentsPost(requestParameters, initOverrides) {
|
|
3720
|
+
const response = await this.deploymentsPostRaw(requestParameters, initOverrides);
|
|
3721
|
+
return await response.value();
|
|
3722
|
+
}
|
|
3723
|
+
async deploymentsRunRaw(requestParameters, initOverrides) {
|
|
3724
|
+
if (requestParameters["deploymentKey"] == null) {
|
|
3725
|
+
throw new RequiredError("deploymentKey", 'Required parameter "deploymentKey" was null or undefined when calling deploymentsRun().');
|
|
3726
|
+
}
|
|
3727
|
+
const queryParameters = {};
|
|
3728
|
+
const headerParameters = {};
|
|
3729
|
+
if (requestParameters["xUipathAsVersion"] != null) {
|
|
3730
|
+
headerParameters["x-uipath-as-version"] = String(requestParameters["xUipathAsVersion"]);
|
|
3731
|
+
}
|
|
3732
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
3733
|
+
const token = this.configuration.accessToken;
|
|
3734
|
+
const tokenString = await token("Bearer", []);
|
|
3735
|
+
if (tokenString) {
|
|
3736
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
3737
|
+
}
|
|
3738
|
+
}
|
|
3739
|
+
let urlPath = `/api/deployments/{deploymentKey}/run`;
|
|
3740
|
+
urlPath = urlPath.replace(`{${"deploymentKey"}}`, encodeURIComponent(String(requestParameters["deploymentKey"])));
|
|
3741
|
+
const response = await this.request({
|
|
3742
|
+
path: urlPath,
|
|
3743
|
+
method: "POST",
|
|
3744
|
+
headers: headerParameters,
|
|
3745
|
+
query: queryParameters
|
|
3746
|
+
}, initOverrides);
|
|
3747
|
+
return new JSONApiResponse(response, (jsonValue) => DeploymentRunResponseFromJSON(jsonValue));
|
|
3748
|
+
}
|
|
3749
|
+
async deploymentsRun(requestParameters, initOverrides) {
|
|
3750
|
+
const response = await this.deploymentsRunRaw(requestParameters, initOverrides);
|
|
3751
|
+
return await response.value();
|
|
3752
|
+
}
|
|
3753
|
+
async deploymentsUpgradeRaw(requestParameters, initOverrides) {
|
|
3754
|
+
if (requestParameters["deploymentKey"] == null) {
|
|
3755
|
+
throw new RequiredError("deploymentKey", 'Required parameter "deploymentKey" was null or undefined when calling deploymentsUpgrade().');
|
|
3756
|
+
}
|
|
3757
|
+
const queryParameters = {};
|
|
3758
|
+
if (requestParameters["packageVersionKey"] != null) {
|
|
3759
|
+
queryParameters["packageVersionKey"] = requestParameters["packageVersionKey"];
|
|
3760
|
+
}
|
|
3761
|
+
const headerParameters = {};
|
|
3762
|
+
headerParameters["Content-Type"] = "application/json";
|
|
3763
|
+
if (requestParameters["xUipathAsVersion"] != null) {
|
|
3764
|
+
headerParameters["x-uipath-as-version"] = String(requestParameters["xUipathAsVersion"]);
|
|
3765
|
+
}
|
|
3766
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
3767
|
+
const token = this.configuration.accessToken;
|
|
3768
|
+
const tokenString = await token("Bearer", []);
|
|
3769
|
+
if (tokenString) {
|
|
3770
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
3771
|
+
}
|
|
3772
|
+
}
|
|
3773
|
+
let urlPath = `/api/deployments/{deploymentKey}/upgrade`;
|
|
3774
|
+
urlPath = urlPath.replace(`{${"deploymentKey"}}`, encodeURIComponent(String(requestParameters["deploymentKey"])));
|
|
3775
|
+
const response = await this.request({
|
|
3776
|
+
path: urlPath,
|
|
3777
|
+
method: "POST",
|
|
3778
|
+
headers: headerParameters,
|
|
3779
|
+
query: queryParameters,
|
|
3780
|
+
body: DeploymentUpgradeRequestToJSON(requestParameters["deploymentUpgradeRequest"])
|
|
3781
|
+
}, initOverrides);
|
|
3782
|
+
return new JSONApiResponse(response, (jsonValue) => DeploymentItemDtoFromJSON(jsonValue));
|
|
3783
|
+
}
|
|
3784
|
+
async deploymentsUpgrade(requestParameters, initOverrides) {
|
|
3785
|
+
const response = await this.deploymentsUpgradeRaw(requestParameters, initOverrides);
|
|
3786
|
+
return await response.value();
|
|
3787
|
+
}
|
|
3788
|
+
}
|
|
3789
|
+
// ../solution-sdk/generated/src/apis/PackagesApi.ts
|
|
3790
|
+
class PackagesApi extends BaseAPI {
|
|
3791
|
+
async packagesDeletePackageRaw(requestParameters, initOverrides) {
|
|
3792
|
+
if (requestParameters["packageKey"] == null) {
|
|
3793
|
+
throw new RequiredError("packageKey", 'Required parameter "packageKey" was null or undefined when calling packagesDeletePackage().');
|
|
3794
|
+
}
|
|
3795
|
+
const queryParameters = {};
|
|
3796
|
+
const headerParameters = {};
|
|
3797
|
+
if (requestParameters["xUipathAsVersion"] != null) {
|
|
3798
|
+
headerParameters["x-uipath-as-version"] = String(requestParameters["xUipathAsVersion"]);
|
|
3799
|
+
}
|
|
3800
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
3801
|
+
const token = this.configuration.accessToken;
|
|
3802
|
+
const tokenString = await token("Bearer", []);
|
|
3803
|
+
if (tokenString) {
|
|
3804
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
3805
|
+
}
|
|
3806
|
+
}
|
|
3807
|
+
let urlPath = `/api/packages/{packageKey}`;
|
|
3808
|
+
urlPath = urlPath.replace(`{${"packageKey"}}`, encodeURIComponent(String(requestParameters["packageKey"])));
|
|
3809
|
+
const response = await this.request({
|
|
3810
|
+
path: urlPath,
|
|
3811
|
+
method: "DELETE",
|
|
3812
|
+
headers: headerParameters,
|
|
3813
|
+
query: queryParameters
|
|
3814
|
+
}, initOverrides);
|
|
3815
|
+
return new VoidApiResponse(response);
|
|
3816
|
+
}
|
|
3817
|
+
async packagesDeletePackage(requestParameters, initOverrides) {
|
|
3818
|
+
await this.packagesDeletePackageRaw(requestParameters, initOverrides);
|
|
3819
|
+
}
|
|
3820
|
+
async packagesDeleteVersionRaw(requestParameters, initOverrides) {
|
|
3821
|
+
if (requestParameters["packageVersionKey"] == null) {
|
|
3822
|
+
throw new RequiredError("packageVersionKey", 'Required parameter "packageVersionKey" was null or undefined when calling packagesDeleteVersion().');
|
|
3823
|
+
}
|
|
3824
|
+
const queryParameters = {};
|
|
3825
|
+
const headerParameters = {};
|
|
3826
|
+
if (requestParameters["xUipathAsVersion"] != null) {
|
|
3827
|
+
headerParameters["x-uipath-as-version"] = String(requestParameters["xUipathAsVersion"]);
|
|
3828
|
+
}
|
|
3829
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
3830
|
+
const token = this.configuration.accessToken;
|
|
3831
|
+
const tokenString = await token("Bearer", []);
|
|
3832
|
+
if (tokenString) {
|
|
3833
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
3834
|
+
}
|
|
3835
|
+
}
|
|
3836
|
+
let urlPath = `/api/packages/versions/{packageVersionKey}`;
|
|
3837
|
+
urlPath = urlPath.replace(`{${"packageVersionKey"}}`, encodeURIComponent(String(requestParameters["packageVersionKey"])));
|
|
3838
|
+
const response = await this.request({
|
|
3839
|
+
path: urlPath,
|
|
3840
|
+
method: "DELETE",
|
|
3841
|
+
headers: headerParameters,
|
|
3842
|
+
query: queryParameters
|
|
3843
|
+
}, initOverrides);
|
|
3844
|
+
return new VoidApiResponse(response);
|
|
3845
|
+
}
|
|
3846
|
+
async packagesDeleteVersion(requestParameters, initOverrides) {
|
|
3847
|
+
await this.packagesDeleteVersionRaw(requestParameters, initOverrides);
|
|
3848
|
+
}
|
|
3849
|
+
async packagesDownloadRaw(requestParameters, initOverrides) {
|
|
3850
|
+
if (requestParameters["packageVersionKey"] == null) {
|
|
3851
|
+
throw new RequiredError("packageVersionKey", 'Required parameter "packageVersionKey" was null or undefined when calling packagesDownload().');
|
|
3852
|
+
}
|
|
3853
|
+
const queryParameters = {};
|
|
3854
|
+
const headerParameters = {};
|
|
3855
|
+
if (requestParameters["xUipathAsVersion"] != null) {
|
|
3856
|
+
headerParameters["x-uipath-as-version"] = String(requestParameters["xUipathAsVersion"]);
|
|
3857
|
+
}
|
|
3858
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
3859
|
+
const token = this.configuration.accessToken;
|
|
3860
|
+
const tokenString = await token("Bearer", []);
|
|
3861
|
+
if (tokenString) {
|
|
3862
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
3863
|
+
}
|
|
3864
|
+
}
|
|
3865
|
+
let urlPath = `/api/packages/{packageVersionKey}/download`;
|
|
3866
|
+
urlPath = urlPath.replace(`{${"packageVersionKey"}}`, encodeURIComponent(String(requestParameters["packageVersionKey"])));
|
|
3867
|
+
const response = await this.request({
|
|
3868
|
+
path: urlPath,
|
|
3869
|
+
method: "GET",
|
|
3870
|
+
headers: headerParameters,
|
|
3871
|
+
query: queryParameters
|
|
3872
|
+
}, initOverrides);
|
|
3873
|
+
return new JSONApiResponse(response, (jsonValue) => BlobFileAccessDtoFromJSON(jsonValue));
|
|
3874
|
+
}
|
|
3875
|
+
async packagesDownload(requestParameters, initOverrides) {
|
|
3876
|
+
const response = await this.packagesDownloadRaw(requestParameters, initOverrides);
|
|
3877
|
+
return await response.value();
|
|
3878
|
+
}
|
|
3879
|
+
async packagesGetPackageRaw(requestParameters, initOverrides) {
|
|
3880
|
+
if (requestParameters["packageKey"] == null) {
|
|
3881
|
+
throw new RequiredError("packageKey", 'Required parameter "packageKey" was null or undefined when calling packagesGetPackage().');
|
|
3882
|
+
}
|
|
3883
|
+
const queryParameters = {};
|
|
3884
|
+
const headerParameters = {};
|
|
3885
|
+
if (requestParameters["xUipathAsVersion"] != null) {
|
|
3886
|
+
headerParameters["x-uipath-as-version"] = String(requestParameters["xUipathAsVersion"]);
|
|
3887
|
+
}
|
|
3888
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
3889
|
+
const token = this.configuration.accessToken;
|
|
3890
|
+
const tokenString = await token("Bearer", []);
|
|
3891
|
+
if (tokenString) {
|
|
3892
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
3893
|
+
}
|
|
3894
|
+
}
|
|
3895
|
+
let urlPath = `/api/packages/{packageKey}`;
|
|
3896
|
+
urlPath = urlPath.replace(`{${"packageKey"}}`, encodeURIComponent(String(requestParameters["packageKey"])));
|
|
3897
|
+
const response = await this.request({
|
|
3898
|
+
path: urlPath,
|
|
3899
|
+
method: "GET",
|
|
3900
|
+
headers: headerParameters,
|
|
3901
|
+
query: queryParameters
|
|
3902
|
+
}, initOverrides);
|
|
3903
|
+
return new JSONApiResponse(response, (jsonValue) => PackageInfoFromJSON(jsonValue));
|
|
3904
|
+
}
|
|
3905
|
+
async packagesGetPackage(requestParameters, initOverrides) {
|
|
3906
|
+
const response = await this.packagesGetPackageRaw(requestParameters, initOverrides);
|
|
3907
|
+
return await response.value();
|
|
3908
|
+
}
|
|
3909
|
+
async packagesGetPublishLocationsRaw(requestParameters, initOverrides) {
|
|
3910
|
+
const queryParameters = {};
|
|
3911
|
+
const headerParameters = {};
|
|
3912
|
+
if (requestParameters["xUipathAsVersion"] != null) {
|
|
3913
|
+
headerParameters["x-uipath-as-version"] = String(requestParameters["xUipathAsVersion"]);
|
|
3914
|
+
}
|
|
3915
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
3916
|
+
const token = this.configuration.accessToken;
|
|
3917
|
+
const tokenString = await token("Bearer", []);
|
|
3918
|
+
if (tokenString) {
|
|
3919
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
3920
|
+
}
|
|
3921
|
+
}
|
|
3922
|
+
let urlPath = `/api/packages/publish-locations`;
|
|
3923
|
+
const response = await this.request({
|
|
3924
|
+
path: urlPath,
|
|
3925
|
+
method: "GET",
|
|
3926
|
+
headers: headerParameters,
|
|
3927
|
+
query: queryParameters
|
|
3928
|
+
}, initOverrides);
|
|
3929
|
+
return new JSONApiResponse(response, (jsonValue) => jsonValue.map(LocationDtoFromJSON));
|
|
3930
|
+
}
|
|
3931
|
+
async packagesGetPublishLocations(requestParameters = {}, initOverrides) {
|
|
3932
|
+
const response = await this.packagesGetPublishLocationsRaw(requestParameters, initOverrides);
|
|
3933
|
+
return await response.value();
|
|
3934
|
+
}
|
|
3935
|
+
async packagesGetVersionRaw(requestParameters, initOverrides) {
|
|
3936
|
+
if (requestParameters["packageVersionKey"] == null) {
|
|
3937
|
+
throw new RequiredError("packageVersionKey", 'Required parameter "packageVersionKey" was null or undefined when calling packagesGetVersion().');
|
|
3938
|
+
}
|
|
3939
|
+
const queryParameters = {};
|
|
3940
|
+
const headerParameters = {};
|
|
3941
|
+
if (requestParameters["xUipathAsVersion"] != null) {
|
|
3942
|
+
headerParameters["x-uipath-as-version"] = String(requestParameters["xUipathAsVersion"]);
|
|
3943
|
+
}
|
|
3944
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
3945
|
+
const token = this.configuration.accessToken;
|
|
3946
|
+
const tokenString = await token("Bearer", []);
|
|
3947
|
+
if (tokenString) {
|
|
3948
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
3949
|
+
}
|
|
3950
|
+
}
|
|
3951
|
+
let urlPath = `/api/packages/versions/{packageVersionKey}`;
|
|
3952
|
+
urlPath = urlPath.replace(`{${"packageVersionKey"}}`, encodeURIComponent(String(requestParameters["packageVersionKey"])));
|
|
3953
|
+
const response = await this.request({
|
|
3954
|
+
path: urlPath,
|
|
3955
|
+
method: "GET",
|
|
3956
|
+
headers: headerParameters,
|
|
3957
|
+
query: queryParameters
|
|
3958
|
+
}, initOverrides);
|
|
3959
|
+
return new JSONApiResponse(response, (jsonValue) => PackageVersionInfoDtoFromJSON(jsonValue));
|
|
3960
|
+
}
|
|
3961
|
+
async packagesGetVersion(requestParameters, initOverrides) {
|
|
3962
|
+
const response = await this.packagesGetVersionRaw(requestParameters, initOverrides);
|
|
3963
|
+
return await response.value();
|
|
3964
|
+
}
|
|
3965
|
+
async packagesUploadRaw(requestParameters, initOverrides) {
|
|
3966
|
+
const queryParameters = {};
|
|
3967
|
+
if (requestParameters["locationKey"] != null) {
|
|
3968
|
+
queryParameters["locationKey"] = requestParameters["locationKey"];
|
|
3969
|
+
}
|
|
3970
|
+
const headerParameters = {};
|
|
3971
|
+
headerParameters["Content-Type"] = "application/zip";
|
|
3972
|
+
if (requestParameters["xUipathAsVersion"] != null) {
|
|
3973
|
+
headerParameters["x-uipath-as-version"] = String(requestParameters["xUipathAsVersion"]);
|
|
3974
|
+
}
|
|
3975
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
3976
|
+
const token = this.configuration.accessToken;
|
|
3977
|
+
const tokenString = await token("Bearer", []);
|
|
3978
|
+
if (tokenString) {
|
|
3979
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
3980
|
+
}
|
|
3981
|
+
}
|
|
3982
|
+
let urlPath = `/api/packages/upload`;
|
|
3983
|
+
const response = await this.request({
|
|
3984
|
+
path: urlPath,
|
|
3985
|
+
method: "POST",
|
|
3986
|
+
headers: headerParameters,
|
|
3987
|
+
query: queryParameters,
|
|
3988
|
+
body: requestParameters["body"]
|
|
3989
|
+
}, initOverrides);
|
|
3990
|
+
if (this.isJsonMime(response.headers.get("content-type"))) {
|
|
3991
|
+
return new JSONApiResponse(response);
|
|
3992
|
+
} else {
|
|
3993
|
+
return new TextApiResponse(response);
|
|
3994
|
+
}
|
|
3995
|
+
}
|
|
3996
|
+
async packagesUpload(requestParameters = {}, initOverrides) {
|
|
3997
|
+
const response = await this.packagesUploadRaw(requestParameters, initOverrides);
|
|
3998
|
+
return await response.value();
|
|
3999
|
+
}
|
|
4000
|
+
}
|
|
4001
|
+
// ../solution-sdk/generated/src/apis/ProjectsApi.ts
|
|
4002
|
+
class ProjectsApi extends BaseAPI {
|
|
4003
|
+
async projectsPostRaw(requestParameters, initOverrides) {
|
|
4004
|
+
if (requestParameters["projectCreateRequest"] == null) {
|
|
4005
|
+
throw new RequiredError("projectCreateRequest", 'Required parameter "projectCreateRequest" was null or undefined when calling projectsPost().');
|
|
4006
|
+
}
|
|
4007
|
+
const queryParameters = {};
|
|
4008
|
+
const headerParameters = {};
|
|
4009
|
+
headerParameters["Content-Type"] = "application/json";
|
|
4010
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
4011
|
+
const token = this.configuration.accessToken;
|
|
4012
|
+
const tokenString = await token("Bearer", []);
|
|
4013
|
+
if (tokenString) {
|
|
4014
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
4015
|
+
}
|
|
4016
|
+
}
|
|
4017
|
+
let urlPath = `/api/v1/projects`;
|
|
4018
|
+
const response = await this.request({
|
|
4019
|
+
path: urlPath,
|
|
4020
|
+
method: "POST",
|
|
4021
|
+
headers: headerParameters,
|
|
4022
|
+
query: queryParameters,
|
|
4023
|
+
body: ProjectCreateRequestToJSON(requestParameters["projectCreateRequest"])
|
|
4024
|
+
}, initOverrides);
|
|
4025
|
+
return new JSONApiResponse(response, (jsonValue) => ProjectDtoFromJSON2(jsonValue));
|
|
4026
|
+
}
|
|
4027
|
+
async projectsPost(requestParameters, initOverrides) {
|
|
4028
|
+
const response = await this.projectsPostRaw(requestParameters, initOverrides);
|
|
4029
|
+
return await response.value();
|
|
4030
|
+
}
|
|
4031
|
+
async projectsPost2Raw(requestParameters, initOverrides) {
|
|
4032
|
+
if (requestParameters["projectCreateRequest"] == null) {
|
|
4033
|
+
throw new RequiredError("projectCreateRequest", 'Required parameter "projectCreateRequest" was null or undefined when calling projectsPost2().');
|
|
4034
|
+
}
|
|
4035
|
+
const queryParameters = {};
|
|
4036
|
+
const headerParameters = {};
|
|
4037
|
+
headerParameters["Content-Type"] = "application/json";
|
|
4038
|
+
if (requestParameters["xUipathAsVersion"] != null) {
|
|
4039
|
+
headerParameters["x-uipath-as-version"] = String(requestParameters["xUipathAsVersion"]);
|
|
4040
|
+
}
|
|
4041
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
4042
|
+
const token = this.configuration.accessToken;
|
|
4043
|
+
const tokenString = await token("Bearer", []);
|
|
4044
|
+
if (tokenString) {
|
|
4045
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
4046
|
+
}
|
|
4047
|
+
}
|
|
4048
|
+
let urlPath = `/api/projects`;
|
|
4049
|
+
const response = await this.request({
|
|
4050
|
+
path: urlPath,
|
|
4051
|
+
method: "POST",
|
|
4052
|
+
headers: headerParameters,
|
|
4053
|
+
query: queryParameters,
|
|
4054
|
+
body: ProjectCreateRequestToJSON(requestParameters["projectCreateRequest"])
|
|
4055
|
+
}, initOverrides);
|
|
4056
|
+
return new JSONApiResponse(response, (jsonValue) => ProjectDtoFromJSON2(jsonValue));
|
|
4057
|
+
}
|
|
4058
|
+
async projectsPost2(requestParameters, initOverrides) {
|
|
4059
|
+
const response = await this.projectsPost2Raw(requestParameters, initOverrides);
|
|
4060
|
+
return await response.value();
|
|
4061
|
+
}
|
|
4062
|
+
}
|
|
4063
|
+
// ../solution-sdk/generated/src/apis/SearchApi.ts
|
|
4064
|
+
class SearchApi extends BaseAPI {
|
|
4065
|
+
async searchSearchDeployments22Raw(requestParameters, initOverrides) {
|
|
4066
|
+
if (requestParameters["deploymentsSearchRequest2"] == null) {
|
|
4067
|
+
throw new RequiredError("deploymentsSearchRequest2", 'Required parameter "deploymentsSearchRequest2" was null or undefined when calling searchSearchDeployments22().');
|
|
4068
|
+
}
|
|
4069
|
+
const queryParameters = {};
|
|
4070
|
+
const headerParameters = {};
|
|
4071
|
+
headerParameters["Content-Type"] = "application/json";
|
|
4072
|
+
if (requestParameters["xUipathAsVersion"] != null) {
|
|
4073
|
+
headerParameters["x-uipath-as-version"] = String(requestParameters["xUipathAsVersion"]);
|
|
4074
|
+
}
|
|
4075
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
4076
|
+
const token = this.configuration.accessToken;
|
|
4077
|
+
const tokenString = await token("Bearer", []);
|
|
4078
|
+
if (tokenString) {
|
|
4079
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
4080
|
+
}
|
|
4081
|
+
}
|
|
4082
|
+
let urlPath = `/api/v3/search/deployments`;
|
|
4083
|
+
const response = await this.request({
|
|
4084
|
+
path: urlPath,
|
|
4085
|
+
method: "POST",
|
|
4086
|
+
headers: headerParameters,
|
|
4087
|
+
query: queryParameters,
|
|
4088
|
+
body: DeploymentsSearchRequest2ToJSON(requestParameters["deploymentsSearchRequest2"])
|
|
4089
|
+
}, initOverrides);
|
|
4090
|
+
return new JSONApiResponse(response, (jsonValue) => PageInfoDtoOfDeploymentSearchItemDto2FromJSON(jsonValue));
|
|
4091
|
+
}
|
|
4092
|
+
async searchSearchDeployments22(requestParameters, initOverrides) {
|
|
4093
|
+
const response = await this.searchSearchDeployments22Raw(requestParameters, initOverrides);
|
|
4094
|
+
return await response.value();
|
|
4095
|
+
}
|
|
4096
|
+
async searchSearchPackagesRaw(requestParameters, initOverrides) {
|
|
4097
|
+
if (requestParameters["searchFilter"] == null) {
|
|
4098
|
+
throw new RequiredError("searchFilter", 'Required parameter "searchFilter" was null or undefined when calling searchSearchPackages().');
|
|
4099
|
+
}
|
|
4100
|
+
const queryParameters = {};
|
|
4101
|
+
const headerParameters = {};
|
|
4102
|
+
headerParameters["Content-Type"] = "application/json";
|
|
4103
|
+
if (requestParameters["xUipathAsVersion"] != null) {
|
|
4104
|
+
headerParameters["x-uipath-as-version"] = String(requestParameters["xUipathAsVersion"]);
|
|
4105
|
+
}
|
|
4106
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
4107
|
+
const token = this.configuration.accessToken;
|
|
4108
|
+
const tokenString = await token("Bearer", []);
|
|
4109
|
+
if (tokenString) {
|
|
4110
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
4111
|
+
}
|
|
4112
|
+
}
|
|
4113
|
+
let urlPath = `/api/search/packages`;
|
|
4114
|
+
const response = await this.request({
|
|
4115
|
+
path: urlPath,
|
|
4116
|
+
method: "POST",
|
|
4117
|
+
headers: headerParameters,
|
|
4118
|
+
query: queryParameters,
|
|
4119
|
+
body: SearchFilterToJSON(requestParameters["searchFilter"])
|
|
4120
|
+
}, initOverrides);
|
|
4121
|
+
return new JSONApiResponse(response, (jsonValue) => PageInfoDtoOfPackageInfoFromJSON(jsonValue));
|
|
4122
|
+
}
|
|
4123
|
+
async searchSearchPackages(requestParameters, initOverrides) {
|
|
4124
|
+
const response = await this.searchSearchPackagesRaw(requestParameters, initOverrides);
|
|
4125
|
+
return await response.value();
|
|
4126
|
+
}
|
|
4127
|
+
}
|
|
4128
|
+
// ../solution-sdk/generated/src/apis/SettingsApi.ts
|
|
4129
|
+
class SettingsApi extends BaseAPI {
|
|
4130
|
+
async settingsGetSettingsRaw(requestParameters, initOverrides) {
|
|
4131
|
+
const queryParameters = {};
|
|
4132
|
+
if (requestParameters["nameSpace"] != null) {
|
|
4133
|
+
queryParameters["nameSpace"] = requestParameters["nameSpace"];
|
|
4134
|
+
}
|
|
4135
|
+
if (requestParameters["ngVersion"] != null) {
|
|
4136
|
+
queryParameters["ngVersion"] = requestParameters["ngVersion"];
|
|
4137
|
+
}
|
|
4138
|
+
const headerParameters = {};
|
|
4139
|
+
if (requestParameters["xUipathAsVersion"] != null) {
|
|
4140
|
+
headerParameters["x-uipath-as-version"] = String(requestParameters["xUipathAsVersion"]);
|
|
4141
|
+
}
|
|
4142
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
4143
|
+
const token = this.configuration.accessToken;
|
|
4144
|
+
const tokenString = await token("Bearer", []);
|
|
4145
|
+
if (tokenString) {
|
|
4146
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
4147
|
+
}
|
|
4148
|
+
}
|
|
4149
|
+
let urlPath = `/api/settings`;
|
|
4150
|
+
const response = await this.request({
|
|
4151
|
+
path: urlPath,
|
|
4152
|
+
method: "GET",
|
|
4153
|
+
headers: headerParameters,
|
|
4154
|
+
query: queryParameters
|
|
4155
|
+
}, initOverrides);
|
|
4156
|
+
return new JSONApiResponse(response);
|
|
4157
|
+
}
|
|
4158
|
+
async settingsGetSettings(requestParameters = {}, initOverrides) {
|
|
4159
|
+
const response = await this.settingsGetSettingsRaw(requestParameters, initOverrides);
|
|
4160
|
+
return await response.value();
|
|
4161
|
+
}
|
|
4162
|
+
}
|
|
4163
|
+
// ../solution-sdk/src/studio-web-compat.ts
|
|
4164
|
+
var API_PROJECT_TYPES = new Set(["api", "apiautomation"]);
|
|
4165
|
+
|
|
4166
|
+
class StudioWebIncompatibleProjectError extends Error {
|
|
4167
|
+
offendingProjects;
|
|
4168
|
+
constructor(offendingProjects) {
|
|
4169
|
+
super(`Studio Web cannot import API Workflow project(s) manifested by project.json: ${offendingProjects.join(", ")}. Studio Web's solution import accepts only project.uiproj-manifested projects.`);
|
|
4170
|
+
this.offendingProjects = offendingProjects;
|
|
4171
|
+
this.name = "StudioWebIncompatibleProjectError";
|
|
4172
|
+
}
|
|
4173
|
+
}
|
|
4174
|
+
function assertStudioWebCompatibleProjects(projects) {
|
|
4175
|
+
const incompatible = projects.filter((p) => typeof p.Type === "string" && API_PROJECT_TYPES.has(p.Type.toLowerCase()) && p.ProjectRelativePath.replace(/\\/g, "/").split("/").pop() === "project.json");
|
|
4176
|
+
if (incompatible.length > 0) {
|
|
4177
|
+
throw new StudioWebIncompatibleProjectError(incompatible.map((p) => p.ProjectRelativePath));
|
|
4178
|
+
}
|
|
4179
|
+
}
|
|
4180
|
+
|
|
4181
|
+
// ../solution-sdk/src/zip-utils.ts
|
|
4182
|
+
var DEFAULT_EXCLUDED_DIR_NAMES = new Set([
|
|
4183
|
+
".venv",
|
|
4184
|
+
"node_modules",
|
|
4185
|
+
"__pycache__",
|
|
4186
|
+
".git",
|
|
4187
|
+
".local"
|
|
4188
|
+
]);
|
|
4189
|
+
var DEFAULT_EXCLUDED_FILE_PATTERNS = [
|
|
4190
|
+
/^\.env($|\..+)/
|
|
4191
|
+
];
|
|
4192
|
+
function isDefaultExcludedFileName(name) {
|
|
4193
|
+
for (const pattern of DEFAULT_EXCLUDED_FILE_PATTERNS) {
|
|
4194
|
+
if (pattern.test(name)) {
|
|
4195
|
+
return true;
|
|
4196
|
+
}
|
|
4197
|
+
}
|
|
4198
|
+
return false;
|
|
4199
|
+
}
|
|
4200
|
+
var UIPIGNORE_FILENAME = ".uipignore";
|
|
4201
|
+
function parseUipignore(body) {
|
|
4202
|
+
const names = new Set;
|
|
4203
|
+
for (const rawLine of body.split(/\r?\n/)) {
|
|
4204
|
+
const line = rawLine.split("#")[0]?.trim();
|
|
4205
|
+
if (!line) {
|
|
4206
|
+
continue;
|
|
4207
|
+
}
|
|
4208
|
+
if (line.includes("/") || line.includes("\\")) {
|
|
4209
|
+
continue;
|
|
4210
|
+
}
|
|
4211
|
+
names.add(line);
|
|
4212
|
+
}
|
|
4213
|
+
return names;
|
|
4214
|
+
}
|
|
4215
|
+
async function collectTree(fs, dir, options = {}) {
|
|
4216
|
+
const files = [];
|
|
4217
|
+
const emptyDirs = [];
|
|
4218
|
+
const excluded = new Set(DEFAULT_EXCLUDED_DIR_NAMES);
|
|
4219
|
+
if (options.additionalExcludeDirs) {
|
|
4220
|
+
for (const name of options.additionalExcludeDirs) {
|
|
4221
|
+
excluded.add(name);
|
|
4222
|
+
}
|
|
4223
|
+
}
|
|
4224
|
+
async function walk(current, isRoot) {
|
|
4225
|
+
const entries = await fs.readdir(current);
|
|
4226
|
+
if (entries.length === 0) {
|
|
4227
|
+
if (!isRoot) {
|
|
4228
|
+
emptyDirs.push(current);
|
|
4229
|
+
}
|
|
4230
|
+
return;
|
|
4231
|
+
}
|
|
4232
|
+
for (const entryName of entries) {
|
|
4233
|
+
const fullPath = fs.path.join(current, entryName);
|
|
4234
|
+
const entryStat = await fs.stat(fullPath);
|
|
4235
|
+
if (entryStat?.isDirectory()) {
|
|
4236
|
+
if (excluded.has(entryName)) {
|
|
4237
|
+
continue;
|
|
4238
|
+
}
|
|
4239
|
+
await walk(fullPath, false);
|
|
4240
|
+
} else if (entryStat?.isFile()) {
|
|
4241
|
+
if (isDefaultExcludedFileName(entryName)) {
|
|
4242
|
+
continue;
|
|
4243
|
+
}
|
|
4244
|
+
files.push(fullPath);
|
|
4245
|
+
}
|
|
4246
|
+
}
|
|
4247
|
+
}
|
|
4248
|
+
await walk(dir, true);
|
|
4249
|
+
return { files, emptyDirs };
|
|
4250
|
+
}
|
|
4251
|
+
async function collectFiles(fs, dir, options = {}) {
|
|
4252
|
+
return (await collectTree(fs, dir, options)).files;
|
|
4253
|
+
}
|
|
4254
|
+
async function createZipFromDir(fs, dir, options = {}) {
|
|
4255
|
+
const { files, emptyDirs } = await collectTree(fs, dir, options);
|
|
4256
|
+
const zippable = {};
|
|
4257
|
+
for (const filePath of files) {
|
|
4258
|
+
const relPath = fs.path.relative(dir, filePath).replace(/\\/g, "/");
|
|
4259
|
+
const data = await fs.readFile(filePath);
|
|
4260
|
+
if (data) {
|
|
4261
|
+
zippable[relPath] = new Uint8Array(data);
|
|
4262
|
+
}
|
|
4263
|
+
}
|
|
4264
|
+
for (const emptyDir of emptyDirs) {
|
|
4265
|
+
const relPath = fs.path.relative(dir, emptyDir).replace(/\\/g, "/");
|
|
4266
|
+
if (!relPath) {
|
|
4267
|
+
continue;
|
|
4268
|
+
}
|
|
4269
|
+
zippable[`${relPath}/`] = new Uint8Array(0);
|
|
4270
|
+
}
|
|
4271
|
+
return finalizeZip64(zipSync(zippable, { level: 6 }));
|
|
4272
|
+
}
|
|
4273
|
+
var EOCD_SIZE = 22;
|
|
4274
|
+
var EOCD_SIGNATURE = 101010256;
|
|
4275
|
+
var CD_HEADER_SIGNATURE = 33639248;
|
|
4276
|
+
var ZIP64_EOCD_SIGNATURE = 101075792;
|
|
4277
|
+
var ZIP64_EOCD_SIZE = 56;
|
|
4278
|
+
var ZIP64_LOCATOR_SIGNATURE = 117853008;
|
|
4279
|
+
var ZIP64_LOCATOR_SIZE = 20;
|
|
4280
|
+
var MAX_ZIP32_ENTRIES = 65535;
|
|
4281
|
+
var MAX_ZIP32_OFFSET = 4294967295;
|
|
4282
|
+
function finalizeZip64(zip) {
|
|
4283
|
+
const view = new DataView(zip.buffer, zip.byteOffset, zip.byteLength);
|
|
4284
|
+
const eocdStart = zip.byteLength - EOCD_SIZE;
|
|
4285
|
+
if (eocdStart < 0 || view.getUint32(eocdStart, true) !== EOCD_SIGNATURE) {
|
|
4286
|
+
throw new Error("Cannot finalize the solution archive: it does not end with an end-of-central-directory record.");
|
|
4287
|
+
}
|
|
4288
|
+
const cdSize = view.getUint32(eocdStart + 12, true);
|
|
4289
|
+
const cdOffset = view.getUint32(eocdStart + 16, true);
|
|
4290
|
+
const entryCount = countCentralDirectoryEntries(view, cdOffset, cdSize);
|
|
4291
|
+
if (entryCount <= MAX_ZIP32_ENTRIES) {
|
|
4292
|
+
return zip;
|
|
4293
|
+
}
|
|
4294
|
+
if (cdOffset >= MAX_ZIP32_OFFSET || zip.byteLength >= MAX_ZIP32_OFFSET) {
|
|
4295
|
+
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.`);
|
|
4296
|
+
}
|
|
4297
|
+
const tail = new Uint8Array(ZIP64_EOCD_SIZE + ZIP64_LOCATOR_SIZE + EOCD_SIZE);
|
|
4298
|
+
const tailView = new DataView(tail.buffer);
|
|
4299
|
+
const count = BigInt(entryCount);
|
|
4300
|
+
tailView.setUint32(0, ZIP64_EOCD_SIGNATURE, true);
|
|
4301
|
+
tailView.setBigUint64(4, BigInt(ZIP64_EOCD_SIZE - 12), true);
|
|
4302
|
+
tailView.setUint16(12, 45, true);
|
|
4303
|
+
tailView.setUint16(14, 45, true);
|
|
4304
|
+
tailView.setUint32(16, 0, true);
|
|
4305
|
+
tailView.setUint32(20, 0, true);
|
|
4306
|
+
tailView.setBigUint64(24, count, true);
|
|
4307
|
+
tailView.setBigUint64(32, count, true);
|
|
4308
|
+
tailView.setBigUint64(40, BigInt(cdSize), true);
|
|
4309
|
+
tailView.setBigUint64(48, BigInt(cdOffset), true);
|
|
4310
|
+
const locator = ZIP64_EOCD_SIZE;
|
|
4311
|
+
tailView.setUint32(locator, ZIP64_LOCATOR_SIGNATURE, true);
|
|
4312
|
+
tailView.setUint32(locator + 4, 0, true);
|
|
4313
|
+
tailView.setBigUint64(locator + 8, BigInt(eocdStart), true);
|
|
4314
|
+
tailView.setUint32(locator + 16, 1, true);
|
|
4315
|
+
const eocd = ZIP64_EOCD_SIZE + ZIP64_LOCATOR_SIZE;
|
|
4316
|
+
tailView.setUint32(eocd, EOCD_SIGNATURE, true);
|
|
4317
|
+
tailView.setUint16(eocd + 4, 0, true);
|
|
4318
|
+
tailView.setUint16(eocd + 6, 0, true);
|
|
4319
|
+
tailView.setUint16(eocd + 8, MAX_ZIP32_ENTRIES, true);
|
|
4320
|
+
tailView.setUint16(eocd + 10, MAX_ZIP32_ENTRIES, true);
|
|
4321
|
+
tailView.setUint32(eocd + 12, cdSize, true);
|
|
4322
|
+
tailView.setUint32(eocd + 16, cdOffset, true);
|
|
4323
|
+
tailView.setUint16(eocd + 20, 0, true);
|
|
4324
|
+
const out = new Uint8Array(eocdStart + tail.byteLength);
|
|
4325
|
+
out.set(zip.subarray(0, eocdStart), 0);
|
|
4326
|
+
out.set(tail, eocdStart);
|
|
4327
|
+
return out;
|
|
4328
|
+
}
|
|
4329
|
+
function countCentralDirectoryEntries(view, cdOffset, cdSize) {
|
|
4330
|
+
const end = cdOffset + cdSize;
|
|
4331
|
+
let position = cdOffset;
|
|
4332
|
+
let count = 0;
|
|
4333
|
+
while (position + 46 <= end && view.getUint32(position, true) === CD_HEADER_SIGNATURE) {
|
|
4334
|
+
const nameLength = view.getUint16(position + 28, true);
|
|
4335
|
+
const extraLength = view.getUint16(position + 30, true);
|
|
4336
|
+
const commentLength = view.getUint16(position + 32, true);
|
|
4337
|
+
position += 46 + nameLength + extraLength + commentLength;
|
|
4338
|
+
count++;
|
|
4339
|
+
}
|
|
4340
|
+
return count;
|
|
4341
|
+
}
|
|
4342
|
+
|
|
4343
|
+
// ../solution-sdk/src/bundle-service.ts
|
|
4344
|
+
async function readUipignore(fs, dir) {
|
|
4345
|
+
const ignorePath = fs.path.join(dir, UIPIGNORE_FILENAME);
|
|
4346
|
+
if (!await fs.exists(ignorePath)) {
|
|
4347
|
+
return new Set;
|
|
4348
|
+
}
|
|
4349
|
+
try {
|
|
4350
|
+
const body = await fs.readFile(ignorePath, "utf-8");
|
|
4351
|
+
if (!body) {
|
|
4352
|
+
return new Set;
|
|
4353
|
+
}
|
|
4354
|
+
return parseUipignore(body);
|
|
4355
|
+
} catch (err) {
|
|
4356
|
+
logger.warn(`Could not read ${UIPIGNORE_FILENAME}; ignoring it: ${String(err)}`);
|
|
4357
|
+
return new Set;
|
|
4358
|
+
}
|
|
4359
|
+
}
|
|
4360
|
+
async function mergeProjectUipignore(fs, projectPath, projectLabel, solutionExcludeDirs) {
|
|
4361
|
+
const projectExtra = await readUipignore(fs, projectPath);
|
|
4362
|
+
if (projectExtra.size === 0) {
|
|
4363
|
+
return solutionExcludeDirs;
|
|
4364
|
+
}
|
|
4365
|
+
const merged = new Set(solutionExcludeDirs);
|
|
4366
|
+
for (const name of projectExtra) {
|
|
4367
|
+
merged.add(name);
|
|
4368
|
+
}
|
|
4369
|
+
logger.info(`[${projectLabel}] Applying ${projectExtra.size} extra exclude(s) from project ${UIPIGNORE_FILENAME}: ${[...projectExtra].join(", ")}`);
|
|
4370
|
+
return merged;
|
|
4371
|
+
}
|
|
4372
|
+
var toForwardSlash = (p) => p.replace(/\\/g, "/");
|
|
4373
|
+
async function mirrorTree(fs, srcDir, relativeBase, destBaseDir, additionalExcludeDirs) {
|
|
4374
|
+
const { files, emptyDirs } = await collectTree(fs, srcDir, {
|
|
4375
|
+
additionalExcludeDirs
|
|
4376
|
+
});
|
|
4377
|
+
if (files.length === 0 && emptyDirs.length === 0) {
|
|
4378
|
+
const rootRel = fs.path.relative(relativeBase, srcDir);
|
|
4379
|
+
if (rootRel) {
|
|
4380
|
+
await fs.mkdir(fs.path.join(destBaseDir, rootRel));
|
|
4381
|
+
}
|
|
4382
|
+
return;
|
|
4383
|
+
}
|
|
4384
|
+
for (const f of files) {
|
|
4385
|
+
const relPath = fs.path.relative(relativeBase, f);
|
|
4386
|
+
const destPath = fs.path.join(destBaseDir, relPath);
|
|
4387
|
+
const data = await fs.readFile(f);
|
|
4388
|
+
if (data) {
|
|
4389
|
+
await fs.writeFile(destPath, data);
|
|
4390
|
+
} else {
|
|
4391
|
+
logger.warn(`Skipping empty or unreadable file: ${f}`);
|
|
4392
|
+
}
|
|
4393
|
+
}
|
|
4394
|
+
for (const dir of emptyDirs) {
|
|
4395
|
+
const relPath = fs.path.relative(relativeBase, dir);
|
|
4396
|
+
if (!relPath) {
|
|
4397
|
+
continue;
|
|
4398
|
+
}
|
|
4399
|
+
await fs.mkdir(fs.path.join(destBaseDir, relPath));
|
|
4400
|
+
}
|
|
4401
|
+
}
|
|
4402
|
+
async function flattenProjectDir(fs, srcProjectDir, destProjectDir, additionalExcludeDirs) {
|
|
4403
|
+
await fs.mkdir(destProjectDir);
|
|
4404
|
+
const topLevelExclude = new Set(DEFAULT_EXCLUDED_DIR_NAMES);
|
|
4405
|
+
if (additionalExcludeDirs) {
|
|
4406
|
+
for (const name of additionalExcludeDirs) {
|
|
4407
|
+
topLevelExclude.add(name);
|
|
4408
|
+
}
|
|
4409
|
+
}
|
|
4410
|
+
const entries = await fs.readdir(srcProjectDir);
|
|
4411
|
+
for (const entryName of entries) {
|
|
4412
|
+
const srcPath = fs.path.join(srcProjectDir, entryName);
|
|
4413
|
+
const entryStat = await fs.stat(srcPath);
|
|
4414
|
+
if (!entryStat) {
|
|
4415
|
+
continue;
|
|
4416
|
+
}
|
|
4417
|
+
if (entryStat.isFile()) {
|
|
4418
|
+
if (isDefaultExcludedFileName(entryName)) {
|
|
4419
|
+
continue;
|
|
4420
|
+
}
|
|
4421
|
+
const data = await fs.readFile(srcPath);
|
|
4422
|
+
if (data) {
|
|
4423
|
+
await fs.writeFile(fs.path.join(destProjectDir, entryName), data);
|
|
4424
|
+
}
|
|
4425
|
+
} else if (entryStat.isDirectory()) {
|
|
4426
|
+
if (topLevelExclude.has(entryName)) {
|
|
4427
|
+
continue;
|
|
4428
|
+
}
|
|
4429
|
+
if (entryName === "content" || entryName === "flow_files") {
|
|
4430
|
+
await mirrorTree(fs, srcPath, srcPath, destProjectDir, additionalExcludeDirs);
|
|
4431
|
+
} else {
|
|
4432
|
+
await mirrorTree(fs, srcPath, srcProjectDir, destProjectDir, additionalExcludeDirs);
|
|
4433
|
+
}
|
|
4434
|
+
}
|
|
4435
|
+
}
|
|
4436
|
+
}
|
|
4437
|
+
async function bundleSolution(fs, solutionDir, outputDir, outputName) {
|
|
4438
|
+
const resolvedPath = fs.path.resolve(solutionDir);
|
|
4439
|
+
const solStat = await fs.stat(resolvedPath);
|
|
4440
|
+
if (!solStat) {
|
|
4441
|
+
throw new Error(`Path not found: ${resolvedPath}`);
|
|
4442
|
+
}
|
|
4443
|
+
if (!solStat.isDirectory()) {
|
|
4444
|
+
throw new Error(`Not a directory: ${resolvedPath}. Provide the solution directory containing a .uipx file.`);
|
|
4445
|
+
}
|
|
4446
|
+
const { uipx, uipxFileName } = await readUipxFile(fs, resolvedPath);
|
|
4447
|
+
const additionalExcludeDirs = await readUipignore(fs, resolvedPath);
|
|
4448
|
+
if (additionalExcludeDirs.size > 0) {
|
|
4449
|
+
logger.info(`Applying ${additionalExcludeDirs.size} extra exclude(s) from .uipignore: ${[...additionalExcludeDirs].join(", ")}`);
|
|
4450
|
+
}
|
|
4451
|
+
const effectiveExclude = new Set(DEFAULT_EXCLUDED_DIR_NAMES);
|
|
4452
|
+
for (const name of additionalExcludeDirs) {
|
|
4453
|
+
effectiveExclude.add(name);
|
|
4454
|
+
}
|
|
4455
|
+
for (const project of uipx.Projects) {
|
|
4456
|
+
project.ProjectRelativePath = toForwardSlash(project.ProjectRelativePath);
|
|
4457
|
+
}
|
|
4458
|
+
assertStudioWebCompatibleProjects(uipx.Projects);
|
|
4459
|
+
const solutionStorage = {
|
|
4460
|
+
SolutionId: uipx.SolutionId,
|
|
4461
|
+
Projects: uipx.Projects.map((p) => ({
|
|
4462
|
+
ProjectId: p.Id,
|
|
4463
|
+
ProjectRelativePath: p.ProjectRelativePath
|
|
4464
|
+
}))
|
|
4465
|
+
};
|
|
4466
|
+
const solutionName = outputName || fs.path.basename(uipxFileName, ".uipx");
|
|
4467
|
+
const stagingDir = fs.path.join(resolvedPath, `.uis-staging-${Date.now()}`);
|
|
4468
|
+
await fs.mkdir(stagingDir);
|
|
4469
|
+
try {
|
|
4470
|
+
await fs.writeFile(fs.path.join(stagingDir, "SolutionStorage.json"), JSON.stringify(solutionStorage));
|
|
4471
|
+
await fs.writeFile(fs.path.join(stagingDir, uipxFileName), JSON.stringify(uipx));
|
|
4472
|
+
for (const project of uipx.Projects) {
|
|
4473
|
+
const projectDir = fs.path.dirname(project.ProjectRelativePath);
|
|
4474
|
+
const srcProjectPath = fs.path.join(resolvedPath, projectDir);
|
|
4475
|
+
const projectStat = await fs.stat(srcProjectPath);
|
|
4476
|
+
if (!projectStat) {
|
|
4477
|
+
throw new Error(`Project directory not found: ${srcProjectPath}`);
|
|
4478
|
+
}
|
|
4479
|
+
const projectExcludeDirs = await mergeProjectUipignore(fs, srcProjectPath, projectDir, additionalExcludeDirs);
|
|
4480
|
+
await flattenProjectDir(fs, srcProjectPath, fs.path.join(stagingDir, projectDir), projectExcludeDirs);
|
|
4481
|
+
}
|
|
4482
|
+
const resourcesPath = fs.path.join(resolvedPath, "resources");
|
|
4483
|
+
if (!effectiveExclude.has("resources") && await fs.exists(resourcesPath)) {
|
|
4484
|
+
await mirrorTree(fs, resourcesPath, resolvedPath, stagingDir, additionalExcludeDirs);
|
|
4485
|
+
}
|
|
4486
|
+
const userProfilePath = fs.path.join(resolvedPath, "userProfile");
|
|
4487
|
+
if (!effectiveExclude.has("userProfile") && await fs.exists(userProfilePath)) {
|
|
4488
|
+
await mirrorTree(fs, userProfilePath, resolvedPath, stagingDir, additionalExcludeDirs);
|
|
4489
|
+
}
|
|
4490
|
+
const resolvedOutputDir = fs.path.resolve(outputDir);
|
|
4491
|
+
if (!await fs.exists(resolvedOutputDir)) {
|
|
4492
|
+
await fs.mkdir(resolvedOutputDir);
|
|
4493
|
+
}
|
|
4494
|
+
const uisPath = fs.path.join(resolvedOutputDir, `${solutionName}.uis`);
|
|
4495
|
+
const zipData = await createZipFromDir(fs, stagingDir);
|
|
4496
|
+
await fs.writeFile(uisPath, zipData);
|
|
4497
|
+
const uipxPath = fs.path.join(resolvedPath, uipxFileName);
|
|
4498
|
+
return {
|
|
4499
|
+
uisPath,
|
|
4500
|
+
solutionName,
|
|
4501
|
+
solutionId: uipx.SolutionId,
|
|
4502
|
+
uipxPath,
|
|
4503
|
+
projects: uipx.Projects.map((p) => ({
|
|
4504
|
+
Name: fs.path.dirname(p.ProjectRelativePath),
|
|
4505
|
+
Type: p.Type
|
|
4506
|
+
}))
|
|
4507
|
+
};
|
|
4508
|
+
} finally {
|
|
4509
|
+
await fs.rm(stagingDir);
|
|
4510
|
+
}
|
|
4511
|
+
}
|
|
4512
|
+
async function buildSolutionPackageFromDir(fs, solutionDir) {
|
|
4513
|
+
const absoluteSolutionDir = fs.path.resolve(solutionDir);
|
|
4514
|
+
const solutionName = fs.path.basename(absoluteSolutionDir) || "Solution";
|
|
4515
|
+
const tmpDir = fs.env.tmpdir();
|
|
4516
|
+
const stagingDir = fs.path.join(tmpDir, `.debug-solution-${Date.now()}`);
|
|
4517
|
+
await fs.mkdir(stagingDir);
|
|
4518
|
+
try {
|
|
4519
|
+
await mirrorTree(fs, absoluteSolutionDir, absoluteSolutionDir, stagingDir);
|
|
4520
|
+
const storagePath = fs.path.join(stagingDir, "SolutionStorage.json");
|
|
4521
|
+
const uipxFiles = (await fs.readdir(stagingDir)).filter((f) => f.endsWith(".uipx"));
|
|
4522
|
+
if (uipxFiles.length > 0) {
|
|
4523
|
+
const uipxFile = uipxFiles[0];
|
|
4524
|
+
const uipxContent = await fs.readFile(fs.path.join(stagingDir, uipxFile), "utf-8");
|
|
4525
|
+
if (!uipxContent) {
|
|
4526
|
+
throw new Error(`Could not read ${uipxFile}; unable to create SolutionStorage.json.`);
|
|
4527
|
+
}
|
|
4528
|
+
const [parseError, uipx] = catchError(() => JSON.parse(uipxContent));
|
|
4529
|
+
if (parseError) {
|
|
4530
|
+
throw new Error(`Could not parse ${uipxFile}; unable to create SolutionStorage.json: ${parseError.message}`);
|
|
4531
|
+
}
|
|
4532
|
+
const storageJson = {
|
|
4533
|
+
SolutionId: uipx.SolutionId ?? crypto.randomUUID(),
|
|
4534
|
+
Projects: (uipx.Projects ?? []).map((p) => ({
|
|
4535
|
+
ProjectId: p.Id ?? crypto.randomUUID(),
|
|
4536
|
+
ProjectRelativePath: p.ProjectRelativePath ?? ""
|
|
4537
|
+
}))
|
|
4538
|
+
};
|
|
4539
|
+
await fs.writeFile(storagePath, JSON.stringify(storageJson));
|
|
4540
|
+
} else if (!await fs.exists(storagePath)) {
|
|
4541
|
+
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.`);
|
|
4542
|
+
}
|
|
4543
|
+
const uisPath = fs.path.join(tmpDir, `${solutionName}-${Date.now()}.uis`);
|
|
4544
|
+
const zipData = await createZipFromDir(fs, stagingDir);
|
|
4545
|
+
await fs.writeFile(uisPath, zipData);
|
|
4546
|
+
return uisPath;
|
|
4547
|
+
} finally {
|
|
4548
|
+
await fs.rm(stagingDir).catch(() => {});
|
|
4549
|
+
}
|
|
4550
|
+
}
|
|
4551
|
+
// ../solution-sdk/src/deployments-auto-install.ts
|
|
4552
|
+
async function deploymentsAutoInstall(config, request, feedFolderKey) {
|
|
4553
|
+
const url = `${config.basePath}/api/v2/deployments/auto-install`;
|
|
4554
|
+
const response = await fetch(url, {
|
|
4555
|
+
method: "POST",
|
|
4556
|
+
headers: {
|
|
4557
|
+
Authorization: `Bearer ${config.accessToken}`,
|
|
4558
|
+
"Content-Type": "application/json",
|
|
4559
|
+
"X-UIPATH-FolderKey": feedFolderKey
|
|
4560
|
+
},
|
|
4561
|
+
body: JSON.stringify(request)
|
|
4562
|
+
});
|
|
4563
|
+
if (!response.ok) {
|
|
4564
|
+
throw new ResponseError(response, "Response returned an error code");
|
|
4565
|
+
}
|
|
4566
|
+
const text = await response.text();
|
|
4567
|
+
if (!text) {
|
|
4568
|
+
return {};
|
|
4569
|
+
}
|
|
4570
|
+
try {
|
|
4571
|
+
const parsed = JSON.parse(text);
|
|
4572
|
+
return parsed !== null && typeof parsed === "object" ? parsed : {};
|
|
4573
|
+
} catch {
|
|
4574
|
+
return {};
|
|
4575
|
+
}
|
|
4576
|
+
}
|
|
4577
|
+
// ../solution-sdk/src/project-debug-status.ts
|
|
4578
|
+
var SUCCEEDED = "creationsucceeded";
|
|
4579
|
+
var TERMINAL = new Set([SUCCEEDED, "creationfailed", "validationfailed"]);
|
|
4580
|
+
var isDebugProvisioningTerminal = (status) => TERMINAL.has((status ?? "").toLowerCase());
|
|
4581
|
+
var isDebugProvisioningSucceeded = (status) => (status ?? "").toLowerCase() === SUCCEEDED;
|
|
4582
|
+
async function getProjectDebugStatus(config, solutionKey, debugSessionId) {
|
|
4583
|
+
const url = `${config.basePath}/api/v1/solutions/${encodeURIComponent(solutionKey)}` + `/projects/debug/status?debugSessionId=${encodeURIComponent(debugSessionId)}`;
|
|
4584
|
+
const response = await fetch(url, {
|
|
4585
|
+
headers: { Authorization: `Bearer ${config.accessToken}` }
|
|
4586
|
+
});
|
|
4587
|
+
if (!response.ok) {
|
|
4588
|
+
throw new ResponseError(response, "Response returned an error code");
|
|
4589
|
+
}
|
|
4590
|
+
return await response.json();
|
|
4591
|
+
}
|
|
4592
|
+
// ../solution-sdk/src/search-package-versions.ts
|
|
4593
|
+
async function searchPackageVersions(config, packageKey, filter, feedFolderKey) {
|
|
4594
|
+
const url = `${config.basePath}/api/search/packages/${encodeURIComponent(packageKey)}/versions`;
|
|
4595
|
+
const headers = {
|
|
4596
|
+
Authorization: `Bearer ${config.accessToken}`,
|
|
4597
|
+
"Content-Type": "application/json"
|
|
4598
|
+
};
|
|
4599
|
+
if (feedFolderKey) {
|
|
4600
|
+
headers["X-UIPATH-FolderKey"] = feedFolderKey;
|
|
4601
|
+
}
|
|
4602
|
+
const response = await fetch(url, {
|
|
4603
|
+
method: "POST",
|
|
4604
|
+
headers,
|
|
4605
|
+
body: JSON.stringify(filter)
|
|
4606
|
+
});
|
|
4607
|
+
if (!response.ok) {
|
|
4608
|
+
throw new ResponseError(response, "Response returned an error code");
|
|
4609
|
+
}
|
|
4610
|
+
const raw = await response.json();
|
|
4611
|
+
return { count: raw.count, values: raw.values ?? [] };
|
|
4612
|
+
}
|
|
4613
|
+
// ../solution-sdk/src/solution-info.ts
|
|
4614
|
+
async function getStudioWebSolutionProjects(config, organizationName, solutionId) {
|
|
4615
|
+
const api = createSolutionApi(config, organizationName);
|
|
4616
|
+
try {
|
|
4617
|
+
const solution = await api.solutionGetSolution({ solutionId });
|
|
4618
|
+
return (solution.projects ?? []).flatMap((project) => project.id ? [
|
|
4619
|
+
{
|
|
4620
|
+
id: project.id,
|
|
4621
|
+
designId: project.designId ?? undefined,
|
|
4622
|
+
name: project.name ?? undefined,
|
|
4623
|
+
projectType: project.projectType ?? undefined
|
|
4624
|
+
}
|
|
4625
|
+
] : []);
|
|
4626
|
+
} catch (error) {
|
|
4627
|
+
if (error instanceof ResponseError2) {
|
|
4628
|
+
if (error.response.status === 404) {
|
|
4629
|
+
return;
|
|
4630
|
+
}
|
|
4631
|
+
const text = await error.response.text().catch(() => "");
|
|
4632
|
+
throw new Error(`Studio Web solution lookup failed (${error.response.status}): ${text}`);
|
|
4633
|
+
}
|
|
4634
|
+
throw error;
|
|
4635
|
+
}
|
|
4636
|
+
}
|
|
4637
|
+
async function listStudioWebSolutions(config, organizationName, options = {}) {
|
|
4638
|
+
const api = createSolutionApi(config, organizationName);
|
|
4639
|
+
try {
|
|
4640
|
+
const result = await api.solutionSearchSolutionsAndProjects({
|
|
4641
|
+
keywords: options.name === undefined ? undefined : [options.name],
|
|
4642
|
+
pagingOptionsLimit: options.limit,
|
|
4643
|
+
pagingOptionsSkip: options.skip,
|
|
4644
|
+
sortBy: options.sortBy,
|
|
4645
|
+
sortOrder: options.sortOrder
|
|
4646
|
+
});
|
|
4647
|
+
const solutions = result.solutions ?? [];
|
|
4648
|
+
return {
|
|
4649
|
+
solutions,
|
|
4650
|
+
combinedCount: solutions.length + (result.standaloneProjects?.length ?? 0),
|
|
4651
|
+
totalCount: result.totalCount
|
|
4652
|
+
};
|
|
4653
|
+
} catch (error) {
|
|
4654
|
+
if (error instanceof ResponseError2) {
|
|
4655
|
+
const text = await error.response.text().catch(() => "");
|
|
4656
|
+
throw new Error(`Studio Web solution listing failed (${error.response.status}): ${text}`);
|
|
4657
|
+
}
|
|
4658
|
+
throw error;
|
|
4659
|
+
}
|
|
4660
|
+
}
|
|
4661
|
+
// ../solution-sdk/src/upload-service.ts
|
|
4662
|
+
class HttpError extends Error {
|
|
4663
|
+
status;
|
|
4664
|
+
constructor(status, message) {
|
|
4665
|
+
super(message);
|
|
4666
|
+
this.status = status;
|
|
4667
|
+
}
|
|
4668
|
+
}
|
|
4669
|
+
|
|
4670
|
+
class SolutionUploadHttpError extends Error {
|
|
4671
|
+
status;
|
|
4672
|
+
operation;
|
|
4673
|
+
method;
|
|
4674
|
+
endpoint;
|
|
4675
|
+
url;
|
|
4676
|
+
body;
|
|
4677
|
+
solutionId;
|
|
4678
|
+
parsedErrorCode;
|
|
4679
|
+
parsedErrorMessage;
|
|
4680
|
+
constructor(details) {
|
|
4681
|
+
super(details.message);
|
|
4682
|
+
this.name = "SolutionUploadHttpError";
|
|
4683
|
+
this.status = details.status;
|
|
4684
|
+
this.operation = details.operation;
|
|
4685
|
+
this.method = details.method;
|
|
4686
|
+
this.endpoint = details.endpoint;
|
|
4687
|
+
this.url = details.url;
|
|
4688
|
+
this.body = details.body;
|
|
4689
|
+
if (details.operation === "overwrite") {
|
|
4690
|
+
this.solutionId = details.solutionId;
|
|
4691
|
+
}
|
|
4692
|
+
const parsed = parseUploadErrorBody(details.body);
|
|
4693
|
+
this.parsedErrorCode = parsed.code;
|
|
4694
|
+
this.parsedErrorMessage = parsed.message;
|
|
4695
|
+
}
|
|
4696
|
+
}
|
|
4697
|
+
function parseUploadErrorBody(body) {
|
|
4698
|
+
const [, parsed] = catchError(() => JSON.parse(body));
|
|
4699
|
+
if (!parsed || typeof parsed !== "object")
|
|
4700
|
+
return {};
|
|
4701
|
+
const rawCode = parsed.code ?? parsed.Code;
|
|
4702
|
+
const rawMessage = parsed.message ?? parsed.Message;
|
|
4703
|
+
return {
|
|
4704
|
+
code: typeof rawCode === "string" || typeof rawCode === "number" ? String(rawCode) : undefined,
|
|
4705
|
+
message: typeof rawMessage === "string" && rawMessage.trim() ? rawMessage : undefined
|
|
4706
|
+
};
|
|
4707
|
+
}
|
|
4708
|
+
function isSolutionUploadHttpError(error) {
|
|
4709
|
+
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";
|
|
4710
|
+
}
|
|
4711
|
+
function requestPath(url) {
|
|
4712
|
+
const [, parsed] = catchError(() => new URL(url));
|
|
4713
|
+
return parsed ? `${parsed.pathname}${parsed.search}` : url;
|
|
4714
|
+
}
|
|
4715
|
+
function buildSolutionUploadFailureOutput(err, options = {}) {
|
|
4716
|
+
const stage = err.operation === "overwrite" ? "overwrite-solution" : "import-solution";
|
|
4717
|
+
const detail = err.parsedErrorMessage ? ` — ${err.parsedErrorMessage}` : "";
|
|
4718
|
+
const Message = `Failed during ${stage}: HTTP ${err.status} on ${err.method} ` + `${err.endpoint}${detail}`;
|
|
4719
|
+
const body = err.parsedErrorMessage ? "" : summarizePlatformBody(err.body);
|
|
4720
|
+
const bodySuffix = body ? ` Platform response: "${body}".` : "";
|
|
4721
|
+
const importHint = options.importCheckHint ? ` ${options.importCheckHint}` : "";
|
|
4722
|
+
const subject = options.subject ?? "project";
|
|
4723
|
+
const target = err.solutionId ?? `the solution at ${err.endpoint}`;
|
|
4724
|
+
const Instructions = 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}`;
|
|
4725
|
+
const Context = {
|
|
4726
|
+
httpStatus: err.status,
|
|
4727
|
+
stage,
|
|
4728
|
+
endpoint: err.endpoint,
|
|
4729
|
+
method: err.method
|
|
4730
|
+
};
|
|
4731
|
+
if (err.parsedErrorCode !== undefined) {
|
|
4732
|
+
Context.errorCode = err.parsedErrorCode;
|
|
4733
|
+
}
|
|
4734
|
+
const output = {
|
|
4735
|
+
Result: RESULTS.Failure,
|
|
4736
|
+
Message,
|
|
4737
|
+
Instructions,
|
|
4738
|
+
Context
|
|
4739
|
+
};
|
|
4740
|
+
if (err.operation === "overwrite" && err.status >= 500 && err.status < 600) {
|
|
4741
|
+
output.Retry = "RetryAfter30Seconds";
|
|
4742
|
+
}
|
|
4743
|
+
return output;
|
|
4744
|
+
}
|
|
4745
|
+
var DEFAULT_UPLOAD_TIMEOUT_MS = 120000;
|
|
4746
|
+
function resolveUploadTimeoutMs() {
|
|
4747
|
+
const raw = Number(process.env?.UIPATH_SOLUTION_UPLOAD_TIMEOUT_MS);
|
|
4748
|
+
return Number.isFinite(raw) && raw > 0 ? raw : DEFAULT_UPLOAD_TIMEOUT_MS;
|
|
4749
|
+
}
|
|
4750
|
+
function formatTimeout(timeoutMs) {
|
|
4751
|
+
return timeoutMs < 1000 ? `${Math.round(timeoutMs)}ms` : `${Math.round(timeoutMs / 1000)}s`;
|
|
4752
|
+
}
|
|
4753
|
+
function timeoutMessage(what, timeoutMs) {
|
|
4754
|
+
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.`;
|
|
4755
|
+
}
|
|
4756
|
+
function isTimeoutError(error) {
|
|
4757
|
+
let current = error;
|
|
4758
|
+
for (let depth = 0;depth < 5 && current instanceof Error; depth += 1) {
|
|
4759
|
+
if (current.name === "TimeoutError")
|
|
4760
|
+
return true;
|
|
4761
|
+
current = current.cause;
|
|
4762
|
+
}
|
|
4763
|
+
return false;
|
|
4764
|
+
}
|
|
4765
|
+
async function fetchWithUploadTimeout(url, init, what) {
|
|
4766
|
+
const timeoutMs = resolveUploadTimeoutMs();
|
|
4767
|
+
const [error, response] = await catchError(fetch(url, { ...init, signal: AbortSignal.timeout(timeoutMs) }));
|
|
4768
|
+
if (error) {
|
|
4769
|
+
if (isTimeoutError(error)) {
|
|
4770
|
+
throw new Error(timeoutMessage(what, timeoutMs));
|
|
4771
|
+
}
|
|
4772
|
+
throw error;
|
|
4773
|
+
}
|
|
4774
|
+
return response;
|
|
4775
|
+
}
|
|
4776
|
+
async function solutionExistsOnStudioWeb(config, organizationName, solutionId) {
|
|
4777
|
+
const api = createSolutionApi(config, organizationName);
|
|
4778
|
+
const timeoutMs = resolveUploadTimeoutMs();
|
|
4779
|
+
try {
|
|
4780
|
+
await api.solutionGetSolutionRaw({ solutionId }, { signal: AbortSignal.timeout(timeoutMs) });
|
|
4781
|
+
return true;
|
|
4782
|
+
} catch (error) {
|
|
4783
|
+
if (isTimeoutError(error)) {
|
|
4784
|
+
throw new Error(timeoutMessage("Studio Web solution existence probe", timeoutMs));
|
|
4785
|
+
}
|
|
4786
|
+
if (error instanceof ResponseError2) {
|
|
4787
|
+
if (error.response.status === 404) {
|
|
4788
|
+
return false;
|
|
4789
|
+
}
|
|
4790
|
+
const text = await error.response.text().catch(() => "");
|
|
4791
|
+
throw new HttpError(error.response.status, `Studio Web solution existence probe failed (${error.response.status}): ${text}`);
|
|
4792
|
+
}
|
|
4793
|
+
throw error;
|
|
4794
|
+
}
|
|
4795
|
+
}
|
|
4796
|
+
async function importSolution(config, organizationName, fileBuffer, fileName) {
|
|
4797
|
+
const importUrl = `${config.baseUrl}/${encodeURIComponent(organizationName)}/studio_/backend/api/Solution/Import?desktopJit=true&useFileRest=true&enableUnifiedBuild=true`;
|
|
4798
|
+
const formData = new FormData;
|
|
4799
|
+
const fileBlob = new Blob([fileBuffer], {
|
|
4800
|
+
type: "application/octet-stream"
|
|
4801
|
+
});
|
|
4802
|
+
formData.append("uploadFile", fileBlob, fileName);
|
|
4803
|
+
formData.append("telemetryData", JSON.stringify({ FirstRun: false }));
|
|
4804
|
+
const headers = addSdkUserAgentHeader({
|
|
4805
|
+
Authorization: `Bearer ${config.authToken}`
|
|
4806
|
+
}, SDK_USER_AGENT);
|
|
4807
|
+
if (config.tenantId) {
|
|
4808
|
+
headers["x-uipath-tenantid"] = config.tenantId;
|
|
4809
|
+
}
|
|
4810
|
+
const response = await fetchWithUploadTimeout(importUrl, { method: "POST", headers, body: formData }, "Studio Web solution import");
|
|
4811
|
+
if (!response.ok) {
|
|
4812
|
+
const text = await response.text().catch(() => "");
|
|
4813
|
+
throw new SolutionUploadHttpError({
|
|
4814
|
+
operation: "import",
|
|
4815
|
+
status: response.status,
|
|
4816
|
+
method: "POST",
|
|
4817
|
+
endpoint: requestPath(importUrl),
|
|
4818
|
+
url: importUrl,
|
|
4819
|
+
body: text,
|
|
4820
|
+
message: `Import failed (${response.status}): ${text}`
|
|
4821
|
+
});
|
|
4822
|
+
}
|
|
4823
|
+
return await response.json();
|
|
4824
|
+
}
|
|
4825
|
+
async function overwriteSolution(config, organizationName, fileBuffer, fileName, solutionId, createSnapshot = false) {
|
|
4826
|
+
const overwriteUrl = `${config.baseUrl}/${encodeURIComponent(organizationName)}/studio_/backend/api/Solution/${encodeURIComponent(solutionId)}/Overwrite`;
|
|
4827
|
+
const formData = new FormData;
|
|
4828
|
+
const fileBlob = new Blob([fileBuffer], {
|
|
4829
|
+
type: "application/octet-stream"
|
|
4830
|
+
});
|
|
4831
|
+
formData.append("UploadFile", fileBlob, fileName);
|
|
4832
|
+
if (createSnapshot) {
|
|
4833
|
+
formData.append("createSnapshot", "true");
|
|
4834
|
+
}
|
|
4835
|
+
const headers = addSdkUserAgentHeader({
|
|
4836
|
+
Authorization: `Bearer ${config.authToken}`
|
|
4837
|
+
}, SDK_USER_AGENT);
|
|
4838
|
+
if (config.tenantId) {
|
|
4839
|
+
headers["x-uipath-tenantid"] = config.tenantId;
|
|
4840
|
+
}
|
|
4841
|
+
const response = await fetchWithUploadTimeout(overwriteUrl, { method: "POST", headers, body: formData }, "Studio Web solution overwrite");
|
|
4842
|
+
if (!response.ok) {
|
|
4843
|
+
const text = await response.text().catch(() => "");
|
|
4844
|
+
throw new SolutionUploadHttpError({
|
|
4845
|
+
operation: "overwrite",
|
|
4846
|
+
status: response.status,
|
|
4847
|
+
method: "POST",
|
|
4848
|
+
endpoint: requestPath(overwriteUrl),
|
|
4849
|
+
url: overwriteUrl,
|
|
4850
|
+
body: text,
|
|
4851
|
+
message: `Overwrite failed (${response.status}): ${text}`,
|
|
4852
|
+
solutionId
|
|
4853
|
+
});
|
|
4854
|
+
}
|
|
4855
|
+
return await response.json();
|
|
4856
|
+
}
|
|
4857
|
+
async function uploadOrOverwriteSolution(config, organizationName, fileBufferOrPath, solutionId, fs) {
|
|
4858
|
+
let fileBuffer;
|
|
4859
|
+
let fileName;
|
|
4860
|
+
if (typeof fileBufferOrPath === "string") {
|
|
4861
|
+
if (!fs) {
|
|
4862
|
+
throw new Error("IFileSystem is required when passing a file path to uploadOrOverwriteSolution");
|
|
4863
|
+
}
|
|
4864
|
+
const content = await fs.readFile(fileBufferOrPath);
|
|
4865
|
+
if (content === null) {
|
|
4866
|
+
throw new Error(`Failed to read file: ${fileBufferOrPath}`);
|
|
4867
|
+
}
|
|
4868
|
+
fileBuffer = new Uint8Array(content);
|
|
4869
|
+
fileName = fs.path.basename(fileBufferOrPath);
|
|
4870
|
+
} else {
|
|
4871
|
+
fileBuffer = fileBufferOrPath;
|
|
4872
|
+
fileName = "solution.uis";
|
|
4873
|
+
}
|
|
4874
|
+
if (solutionId) {
|
|
4875
|
+
logger.info(`Attempting to overwrite existing solution ${solutionId} on Studio Web...`);
|
|
4876
|
+
const [overwriteError, overwriteResult] = await catchError(overwriteSolution(config, organizationName, fileBuffer, fileName, solutionId));
|
|
4877
|
+
if (!overwriteError) {
|
|
4878
|
+
logger.info("Solution overwritten successfully.");
|
|
4879
|
+
return overwriteResult;
|
|
4880
|
+
}
|
|
4881
|
+
if (isSolutionUploadHttpError(overwriteError) && overwriteError.status === 404) {
|
|
4882
|
+
logger.info(`Solution ${solutionId} not found on Studio Web. Importing as new solution...`);
|
|
4883
|
+
} else {
|
|
4884
|
+
throw overwriteError;
|
|
4885
|
+
}
|
|
4886
|
+
}
|
|
4887
|
+
logger.info("Importing new solution to Studio Web...");
|
|
4888
|
+
return importSolution(config, organizationName, fileBuffer, fileName);
|
|
4889
|
+
}
|
|
4890
|
+
export { BASE_PATH, Configuration, DefaultConfig, BaseAPI, ResponseError, FetchError, RequiredError, COLLECTION_FORMATS, querystring, exists, mapValues, canConsumeForm, JSONApiResponse, VoidApiResponse, BlobApiResponse, TextApiResponse, SDK_USER_AGENT, getAvailablePublishLocationsV2, instanceOfResponseDictionaryDto, ResponseDictionaryDtoFromJSON, ResponseDictionaryDtoFromJSONTyped, ResponseDictionaryDtoToJSON, ResponseDictionaryDtoToJSONTyped, instanceOfBlobFileAccessDto, BlobFileAccessDtoFromJSON, BlobFileAccessDtoFromJSONTyped, BlobFileAccessDtoToJSON, BlobFileAccessDtoToJSONTyped, instanceOfCreateConfigurationCommand, CreateConfigurationCommandFromJSON, CreateConfigurationCommandFromJSONTyped, CreateConfigurationCommandToJSON, CreateConfigurationCommandToJSONTyped, DeploymentActivationStatus, instanceOfDeploymentActivationStatus, DeploymentActivationStatusFromJSON, DeploymentActivationStatusFromJSONTyped, DeploymentActivationStatusToJSON, DeploymentActivationStatusToJSONTyped, OverwriteType, instanceOfOverwriteType, OverwriteTypeFromJSON, OverwriteTypeFromJSONTyped, OverwriteTypeToJSON, OverwriteTypeToJSONTyped, instanceOfOverwrite, OverwriteFromJSON, OverwriteFromJSONTyped, OverwriteToJSON, OverwriteToJSONTyped, instanceOfResourceOverwrite, ResourceOverwriteFromJSON, ResourceOverwriteFromJSONTyped, ResourceOverwriteToJSON, ResourceOverwriteToJSONTyped, instanceOfRuntimeSetup, RuntimeSetupFromJSON, RuntimeSetupFromJSONTyped, RuntimeSetupToJSON, RuntimeSetupToJSONTyped, instanceOfDeploymentAutoRequest, DeploymentAutoRequestFromJSON, DeploymentAutoRequestFromJSONTyped, DeploymentAutoRequestToJSON, DeploymentAutoRequestToJSONTyped, instanceOfDeploymentDto, DeploymentDtoFromJSON, DeploymentDtoFromJSONTyped, DeploymentDtoToJSON, DeploymentDtoToJSONTyped, WorkflowAction, instanceOfWorkflowAction, WorkflowActionFromJSON, WorkflowActionFromJSONTyped, WorkflowActionToJSON, WorkflowActionToJSONTyped, DeploymentOperation, instanceOfDeploymentOperation, DeploymentOperationFromJSON, DeploymentOperationFromJSONTyped, DeploymentOperationToJSON, DeploymentOperationToJSONTyped, PackageVersionOrigin, instanceOfPackageVersionOrigin, PackageVersionOriginFromJSON, PackageVersionOriginFromJSONTyped, PackageVersionOriginToJSON, PackageVersionOriginToJSONTyped, DeploymentOperationStatus, instanceOfDeploymentOperationStatus, DeploymentOperationStatusFromJSON, DeploymentOperationStatusFromJSONTyped, DeploymentOperationStatusToJSON, DeploymentOperationStatusToJSONTyped, DeploymentUpgradeType, instanceOfDeploymentUpgradeType, DeploymentUpgradeTypeFromJSON, DeploymentUpgradeTypeFromJSONTyped, DeploymentUpgradeTypeToJSON, DeploymentUpgradeTypeToJSONTyped, DeploymentStatus, instanceOfDeploymentStatus, DeploymentStatusFromJSON, DeploymentStatusFromJSONTyped, DeploymentStatusToJSON, DeploymentStatusToJSONTyped, instanceOfDeploymentItemDto, DeploymentItemDtoFromJSON, DeploymentItemDtoFromJSONTyped, DeploymentItemDtoToJSON, DeploymentItemDtoToJSONTyped, instanceOfDeploymentRequest, DeploymentRequestFromJSON, DeploymentRequestFromJSONTyped, DeploymentRequestToJSON, DeploymentRequestToJSONTyped, DeploymentResourceValidationAction, instanceOfDeploymentResourceValidationAction, DeploymentResourceValidationActionFromJSON, DeploymentResourceValidationActionFromJSONTyped, DeploymentResourceValidationActionToJSON, DeploymentResourceValidationActionToJSONTyped, DeploymentResourceValidationErrorKind, instanceOfDeploymentResourceValidationErrorKind, DeploymentResourceValidationErrorKindFromJSON, DeploymentResourceValidationErrorKindFromJSONTyped, DeploymentResourceValidationErrorKindToJSON, DeploymentResourceValidationErrorKindToJSONTyped, DeploymentResourceValidationErrorLevel, instanceOfDeploymentResourceValidationErrorLevel, DeploymentResourceValidationErrorLevelFromJSON, DeploymentResourceValidationErrorLevelFromJSONTyped, DeploymentResourceValidationErrorLevelToJSON, DeploymentResourceValidationErrorLevelToJSONTyped, instanceOfServiceMessage, ServiceMessageFromJSON, ServiceMessageFromJSONTyped, ServiceMessageToJSON, ServiceMessageToJSONTyped, instanceOfDeploymentRunResponse, DeploymentRunResponseFromJSON, DeploymentRunResponseFromJSONTyped, DeploymentRunResponseToJSON, DeploymentRunResponseToJSONTyped, DeploymentType, instanceOfDeploymentType, DeploymentTypeFromJSON, DeploymentTypeFromJSONTyped, DeploymentTypeToJSON, DeploymentTypeToJSONTyped, instanceOfDeploymentSearchItemDto2, DeploymentSearchItemDto2FromJSON, DeploymentSearchItemDto2FromJSONTyped, DeploymentSearchItemDto2ToJSON, DeploymentSearchItemDto2ToJSONTyped, instanceOfDeploymentUpgradeRequest, DeploymentUpgradeRequestFromJSON, DeploymentUpgradeRequestFromJSONTyped, DeploymentUpgradeRequestToJSON, DeploymentUpgradeRequestToJSONTyped, instanceOfResourceValidationError, ResourceValidationErrorFromJSON, ResourceValidationErrorFromJSONTyped, ResourceValidationErrorToJSON, ResourceValidationErrorToJSONTyped, instanceOfResourceValidationDto, ResourceValidationDtoFromJSON, ResourceValidationDtoFromJSONTyped, ResourceValidationDtoToJSON, ResourceValidationDtoToJSONTyped, instanceOfDeploymentValidationResultDto, DeploymentValidationResultDtoFromJSON, DeploymentValidationResultDtoFromJSONTyped, DeploymentValidationResultDtoToJSON, DeploymentValidationResultDtoToJSONTyped, OrderByDirection, instanceOfOrderByDirection, OrderByDirectionFromJSON, OrderByDirectionFromJSONTyped, OrderByDirectionToJSON, OrderByDirectionToJSONTyped, instanceOfDeploymentsSearchRequest2, DeploymentsSearchRequest2FromJSON, DeploymentsSearchRequest2FromJSONTyped, DeploymentsSearchRequest2ToJSON, DeploymentsSearchRequest2ToJSONTyped, ExtendedPackageVersionState, instanceOfExtendedPackageVersionState, ExtendedPackageVersionStateFromJSON, ExtendedPackageVersionStateFromJSONTyped, ExtendedPackageVersionStateToJSON, ExtendedPackageVersionStateToJSONTyped, instanceOfFolderInfo, FolderInfoFromJSON, FolderInfoFromJSONTyped, FolderInfoToJSON, FolderInfoToJSONTyped, instanceOfLocationDto, LocationDtoFromJSON, LocationDtoFromJSONTyped, LocationDtoToJSON, LocationDtoToJSONTyped, instanceOfPackageInfo, PackageInfoFromJSON, PackageInfoFromJSONTyped, PackageInfoToJSON, PackageInfoToJSONTyped, instanceOfResourceStats, ResourceStatsFromJSON, ResourceStatsFromJSONTyped, ResourceStatsToJSON, ResourceStatsToJSONTyped, instanceOfPackageVersionResourceDto, PackageVersionResourceDtoFromJSON, PackageVersionResourceDtoFromJSONTyped, PackageVersionResourceDtoToJSON, PackageVersionResourceDtoToJSONTyped, instanceOfPackageVersionComponentsDto, PackageVersionComponentsDtoFromJSON, PackageVersionComponentsDtoFromJSONTyped, PackageVersionComponentsDtoToJSON, PackageVersionComponentsDtoToJSONTyped, instanceOfPackageVersionInfoDto, PackageVersionInfoDtoFromJSON, PackageVersionInfoDtoFromJSONTyped, PackageVersionInfoDtoToJSON, PackageVersionInfoDtoToJSONTyped, instanceOfPageInfoDtoOfDeploymentSearchItemDto2, PageInfoDtoOfDeploymentSearchItemDto2FromJSON, PageInfoDtoOfDeploymentSearchItemDto2FromJSONTyped, PageInfoDtoOfDeploymentSearchItemDto2ToJSON, PageInfoDtoOfDeploymentSearchItemDto2ToJSONTyped, instanceOfPageInfoDtoOfPackageInfo, PageInfoDtoOfPackageInfoFromJSON, PageInfoDtoOfPackageInfoFromJSONTyped, PageInfoDtoOfPackageInfoToJSON, PageInfoDtoOfPackageInfoToJSONTyped, instanceOfProblemDetails, ProblemDetailsFromJSON, ProblemDetailsFromJSONTyped, ProblemDetailsToJSON, ProblemDetailsToJSONTyped, instanceOfProjectCreateRequest, ProjectCreateRequestFromJSON, ProjectCreateRequestFromJSONTyped, ProjectCreateRequestToJSON, ProjectCreateRequestToJSONTyped, ProjectImportStatus, instanceOfProjectImportStatus, ProjectImportStatusFromJSON, ProjectImportStatusFromJSONTyped, ProjectImportStatusToJSON, ProjectImportStatusToJSONTyped, instanceOfProjectDto, ProjectDtoFromJSON2 as ProjectDtoFromJSON, ProjectDtoFromJSONTyped3 as ProjectDtoFromJSONTyped, ProjectDtoToJSON2 as ProjectDtoToJSON, ProjectDtoToJSONTyped2 as ProjectDtoToJSONTyped, instanceOfSearchFilter, SearchFilterFromJSON, SearchFilterFromJSONTyped, SearchFilterToJSON, SearchFilterToJSONTyped, SolutionDeploymentAction, instanceOfSolutionDeploymentAction, SolutionDeploymentActionFromJSON, SolutionDeploymentActionFromJSONTyped, SolutionDeploymentActionToJSON, SolutionDeploymentActionToJSONTyped, ConfigurationsApi, DeploymentsApi, PackagesApi, ProjectsApi, SearchApi, SettingsApi, StudioWebIncompatibleProjectError, collectFiles, createZipFromDir, bundleSolution, buildSolutionPackageFromDir, deploymentsAutoInstall, isDebugProvisioningTerminal, isDebugProvisioningSucceeded, getProjectDebugStatus, searchPackageVersions, getStudioWebSolutionProjects, listStudioWebSolutions, SolutionUploadHttpError, isSolutionUploadHttpError, buildSolutionUploadFailureOutput, solutionExistsOnStudioWeb, importSolution, overwriteSolution, uploadOrOverwriteSolution };
|
|
4891
|
+
|
|
4892
|
+
//# debugId=AFF7658EF510F44964756E2164756E21
|