@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
|
@@ -1,3 +1,16 @@
|
|
|
1
|
+
import {
|
|
2
|
+
en_default
|
|
3
|
+
} from "./packager-tool-z9bfhmm5.js";
|
|
4
|
+
import {
|
|
5
|
+
__export as __export2,
|
|
6
|
+
__glob,
|
|
7
|
+
init_esm_shims
|
|
8
|
+
} from "./packager-tool-6ejqwbw9.js";
|
|
9
|
+
import {
|
|
10
|
+
__commonJS,
|
|
11
|
+
__export,
|
|
12
|
+
__toESM
|
|
13
|
+
} from "./packager-tool-mcaf4ewf.js";
|
|
1
14
|
import {
|
|
2
15
|
CONNECTOR_NODE_PREFIX,
|
|
3
16
|
CONVERSATIONAL_AGENT_ICON,
|
|
@@ -17,31 +30,20 @@ import {
|
|
|
17
30
|
buildConnectorNodeType,
|
|
18
31
|
coerceToExpressionValue,
|
|
19
32
|
constraintWithAddNodePanel,
|
|
20
|
-
createI18nRegistrar,
|
|
21
33
|
getDefaultAgentContent,
|
|
22
34
|
isExpressionValue,
|
|
23
35
|
isHitlNodeType,
|
|
24
36
|
nodeManifestSchema,
|
|
25
37
|
workflowManifestSchema
|
|
26
|
-
} from "./packager-tool-
|
|
38
|
+
} from "./packager-tool-m5qfverj.js";
|
|
27
39
|
import {
|
|
28
|
-
|
|
29
|
-
} from "./packager-tool-
|
|
30
|
-
import {
|
|
31
|
-
__export as __export2,
|
|
32
|
-
__glob,
|
|
33
|
-
init_esm_shims
|
|
34
|
-
} from "./packager-tool-6ejqwbw9.js";
|
|
35
|
-
import {
|
|
36
|
-
__commonJS,
|
|
37
|
-
__export,
|
|
38
|
-
__toESM
|
|
39
|
-
} from "./packager-tool-mcaf4ewf.js";
|
|
40
|
+
createI18nRegistrar
|
|
41
|
+
} from "./packager-tool-e0p2zsyc.js";
|
|
40
42
|
import {
|
|
41
43
|
__require
|
|
42
|
-
} from "./packager-tool-
|
|
44
|
+
} from "./packager-tool-1yh8g550.js";
|
|
43
45
|
|
|
44
|
-
// ../../node_modules/@uipath/flow-converter/dist/chunk-
|
|
46
|
+
// ../../node_modules/@uipath/flow-converter/dist/chunk-PWOKCJ2I.js
|
|
45
47
|
var require_listCacheClear = __commonJS({
|
|
46
48
|
"../../node_modules/.pnpm/lodash@4.18.1/node_modules/lodash/_listCacheClear.js"(exports, module) {
|
|
47
49
|
init_esm_shims();
|
|
@@ -1464,8 +1466,8 @@ function stripWildcard(name) {
|
|
|
1464
1466
|
function hasWildcardKey(record2) {
|
|
1465
1467
|
return record2 ? Object.keys(record2).some((key) => key.includes("[*]")) : false;
|
|
1466
1468
|
}
|
|
1467
|
-
function hasWildcard(
|
|
1468
|
-
return hasWildcardKey(
|
|
1469
|
+
function hasWildcard(schema117) {
|
|
1470
|
+
return hasWildcardKey(schema117.properties) || hasWildcardKey(schema117.definitions) || hasWildcardKey(schema117.$defs);
|
|
1469
1471
|
}
|
|
1470
1472
|
function rewriteKeyedSchemas(record2) {
|
|
1471
1473
|
const result = {};
|
|
@@ -1492,14 +1494,14 @@ function sanitizeNode(node) {
|
|
|
1492
1494
|
}
|
|
1493
1495
|
return result;
|
|
1494
1496
|
}
|
|
1495
|
-
function sanitizeConnectorSchema(
|
|
1496
|
-
if (!
|
|
1497
|
-
return
|
|
1498
|
-
const result = sanitizeNode(
|
|
1499
|
-
if (
|
|
1500
|
-
result.definitions = rewriteKeyedSchemas(
|
|
1501
|
-
if (
|
|
1502
|
-
result.$defs = rewriteKeyedSchemas(
|
|
1497
|
+
function sanitizeConnectorSchema(schema117) {
|
|
1498
|
+
if (!schema117 || !hasWildcard(schema117))
|
|
1499
|
+
return schema117;
|
|
1500
|
+
const result = sanitizeNode(schema117);
|
|
1501
|
+
if (schema117.definitions)
|
|
1502
|
+
result.definitions = rewriteKeyedSchemas(schema117.definitions);
|
|
1503
|
+
if (schema117.$defs)
|
|
1504
|
+
result.$defs = rewriteKeyedSchemas(schema117.$defs);
|
|
1503
1505
|
return result;
|
|
1504
1506
|
}
|
|
1505
1507
|
var JSON_STRING_PREFIX = "=jsonString:";
|
|
@@ -1539,9 +1541,9 @@ function parseConfigurationJson(configuration) {
|
|
|
1539
1541
|
return null;
|
|
1540
1542
|
}
|
|
1541
1543
|
}
|
|
1542
|
-
function resolveJsonSchema(
|
|
1544
|
+
function resolveJsonSchema(schema117, options = {}) {
|
|
1543
1545
|
const { maxDepth = 25 } = options;
|
|
1544
|
-
const definitions =
|
|
1546
|
+
const definitions = schema117.definitions || schema117.$defs || {};
|
|
1545
1547
|
function resolveRef2(ref) {
|
|
1546
1548
|
const match = ref.match(/^#\/(?:definitions|\$defs)\/(.+)$/);
|
|
1547
1549
|
if (!match)
|
|
@@ -1574,10 +1576,10 @@ function resolveJsonSchema(schema124, options = {}) {
|
|
|
1574
1576
|
}
|
|
1575
1577
|
return result;
|
|
1576
1578
|
}
|
|
1577
|
-
const isArray =
|
|
1578
|
-
let rootSchema =
|
|
1579
|
-
if (isArray &&
|
|
1580
|
-
rootSchema =
|
|
1579
|
+
const isArray = schema117.type === "array";
|
|
1580
|
+
let rootSchema = schema117;
|
|
1581
|
+
if (isArray && schema117.items && !Array.isArray(schema117.items)) {
|
|
1582
|
+
rootSchema = schema117.items;
|
|
1581
1583
|
}
|
|
1582
1584
|
return {
|
|
1583
1585
|
schema: resolve2(rootSchema, /* @__PURE__ */ new Set, 0),
|
|
@@ -1596,13 +1598,13 @@ function resolveLocalRef(root, node) {
|
|
|
1596
1598
|
function resolveConnectorOutputSchema(rawOutputJsonSchema, fieldsContainer) {
|
|
1597
1599
|
if (!rawOutputJsonSchema || typeof rawOutputJsonSchema !== "object")
|
|
1598
1600
|
return;
|
|
1599
|
-
const
|
|
1600
|
-
if (!
|
|
1601
|
+
const schema117 = sanitizeConnectorSchema(rawOutputJsonSchema);
|
|
1602
|
+
if (!schema117.type && !schema117.properties && !schema117.$ref && !schema117.definitions && !schema117.$defs)
|
|
1601
1603
|
return;
|
|
1602
|
-
const jsonSchemaType = typeof
|
|
1604
|
+
const jsonSchemaType = typeof schema117.type === "string" ? schema117.type : "object";
|
|
1603
1605
|
const formatFields = fieldsContainer ? collectResponseFieldFormats(fieldsContainer) : [];
|
|
1604
1606
|
if (formatFields.length > 0) {
|
|
1605
|
-
const stamped = structuredClone(
|
|
1607
|
+
const stamped = structuredClone(schema117);
|
|
1606
1608
|
for (const field of formatFields) {
|
|
1607
1609
|
const target = findSchemaNodeByFieldPath(stamped, field.name.split("."));
|
|
1608
1610
|
if (target)
|
|
@@ -1610,7 +1612,7 @@ function resolveConnectorOutputSchema(rawOutputJsonSchema, fieldsContainer) {
|
|
|
1610
1612
|
}
|
|
1611
1613
|
return { jsonSchemaType, schema: stamped };
|
|
1612
1614
|
}
|
|
1613
|
-
return { jsonSchemaType, schema:
|
|
1615
|
+
return { jsonSchemaType, schema: schema117 };
|
|
1614
1616
|
}
|
|
1615
1617
|
function resolveConnectorOutputTypeSchema(inputsDetail) {
|
|
1616
1618
|
if (!inputsDetail || typeof inputsDetail !== "object")
|
|
@@ -1708,20 +1710,20 @@ function generateNodeVariables(nodes, definitions) {
|
|
|
1708
1710
|
init_esm_shims();
|
|
1709
1711
|
init_esm_shims();
|
|
1710
1712
|
var globImport_locales_json = __glob({
|
|
1711
|
-
"../../locales/de.json": () => import("./de-
|
|
1712
|
-
"../../locales/en.json": () => import("./en-
|
|
1713
|
-
"../../locales/es-MX.json": () => import("./es-MX-
|
|
1714
|
-
"../../locales/es.json": () => import("./es-
|
|
1715
|
-
"../../locales/fr.json": () => import("./fr-
|
|
1716
|
-
"../../locales/ja.json": () => import("./ja-
|
|
1717
|
-
"../../locales/ko.json": () => import("./ko-
|
|
1718
|
-
"../../locales/pt-BR.json": () => import("./pt-BR-
|
|
1719
|
-
"../../locales/pt.json": () => import("./pt-
|
|
1720
|
-
"../../locales/ro.json": () => import("./ro-
|
|
1721
|
-
"../../locales/ru.json": () => import("./ru-GSCT4ARZ-FTVCGQTL-
|
|
1722
|
-
"../../locales/tr.json": () => import("./tr-
|
|
1723
|
-
"../../locales/zh-CN.json": () => import("./zh-CN-
|
|
1724
|
-
"../../locales/zh-TW.json": () => import("./zh-TW-
|
|
1713
|
+
"../../locales/de.json": () => import("./de-7XQXX2DK-IDWR6CAR-n4z245kt.js"),
|
|
1714
|
+
"../../locales/en.json": () => import("./en-5ZGC5VQ3-EWX7ILY7-rmtj70fk.js"),
|
|
1715
|
+
"../../locales/es-MX.json": () => import("./es-MX-U2VN3SZW-KYAJ2ONK-kdram1g1.js"),
|
|
1716
|
+
"../../locales/es.json": () => import("./es-ZGCPPOME-24PJEGPV-rn86z9kn.js"),
|
|
1717
|
+
"../../locales/fr.json": () => import("./fr-T3G5GZCT-TU4IKBEG-k6xz1s1f.js"),
|
|
1718
|
+
"../../locales/ja.json": () => import("./ja-BI5K3JDZ-GTIHISTZ-s6n3r2ab.js"),
|
|
1719
|
+
"../../locales/ko.json": () => import("./ko-JOBF5V7N-O7T4HKIE-ape840y0.js"),
|
|
1720
|
+
"../../locales/pt-BR.json": () => import("./pt-BR-7DYX2YPT-LZYH4YFD-bx43vx3z.js"),
|
|
1721
|
+
"../../locales/pt.json": () => import("./pt-HTXGGX6Y-ZHQSDFKI-vehfxadc.js"),
|
|
1722
|
+
"../../locales/ro.json": () => import("./ro-KTNQ3MNU-XIE6YPQN-gen8p82z.js"),
|
|
1723
|
+
"../../locales/ru.json": () => import("./ru-GSCT4ARZ-FTVCGQTL-gee86v14.js"),
|
|
1724
|
+
"../../locales/tr.json": () => import("./tr-XHSSPNK7-GW5KVXR3-2w3f1ss6.js"),
|
|
1725
|
+
"../../locales/zh-CN.json": () => import("./zh-CN-2EHQT23P-T5XRQCVS-ac17dpc1.js"),
|
|
1726
|
+
"../../locales/zh-TW.json": () => import("./zh-TW-MGZCE5BT-P6FLIUAR-zmq07vhs.js")
|
|
1725
1727
|
});
|
|
1726
1728
|
var MANIFEST_NAMESPACE = "manifest";
|
|
1727
1729
|
var registerFlowCoreI18n = createI18nRegistrar({
|
|
@@ -4902,8 +4904,8 @@ function mergeDefs(...defs) {
|
|
|
4902
4904
|
}
|
|
4903
4905
|
return Object.defineProperties({}, mergedDescriptors);
|
|
4904
4906
|
}
|
|
4905
|
-
function cloneDef(
|
|
4906
|
-
return mergeDefs(
|
|
4907
|
+
function cloneDef(schema117) {
|
|
4908
|
+
return mergeDefs(schema117._zod.def);
|
|
4907
4909
|
}
|
|
4908
4910
|
function getElementAtPath(obj, path) {
|
|
4909
4911
|
if (!path)
|
|
@@ -5124,14 +5126,14 @@ var BIGINT_FORMAT_RANGES = {
|
|
|
5124
5126
|
int64: [/* @__PURE__ */ BigInt("-9223372036854775808"), /* @__PURE__ */ BigInt("9223372036854775807")],
|
|
5125
5127
|
uint64: [/* @__PURE__ */ BigInt(0), /* @__PURE__ */ BigInt("18446744073709551615")]
|
|
5126
5128
|
};
|
|
5127
|
-
function pick(
|
|
5128
|
-
const currDef =
|
|
5129
|
+
function pick(schema117, mask) {
|
|
5130
|
+
const currDef = schema117._zod.def;
|
|
5129
5131
|
const checks = currDef.checks;
|
|
5130
5132
|
const hasChecks = checks && checks.length > 0;
|
|
5131
5133
|
if (hasChecks) {
|
|
5132
5134
|
throw new Error(".pick() cannot be used on object schemas containing refinements");
|
|
5133
5135
|
}
|
|
5134
|
-
const def = mergeDefs(
|
|
5136
|
+
const def = mergeDefs(schema117._zod.def, {
|
|
5135
5137
|
get shape() {
|
|
5136
5138
|
const newShape = {};
|
|
5137
5139
|
for (const key in mask) {
|
|
@@ -5147,18 +5149,18 @@ function pick(schema124, mask) {
|
|
|
5147
5149
|
},
|
|
5148
5150
|
checks: []
|
|
5149
5151
|
});
|
|
5150
|
-
return clone(
|
|
5152
|
+
return clone(schema117, def);
|
|
5151
5153
|
}
|
|
5152
|
-
function omit(
|
|
5153
|
-
const currDef =
|
|
5154
|
+
function omit(schema117, mask) {
|
|
5155
|
+
const currDef = schema117._zod.def;
|
|
5154
5156
|
const checks = currDef.checks;
|
|
5155
5157
|
const hasChecks = checks && checks.length > 0;
|
|
5156
5158
|
if (hasChecks) {
|
|
5157
5159
|
throw new Error(".omit() cannot be used on object schemas containing refinements");
|
|
5158
5160
|
}
|
|
5159
|
-
const def = mergeDefs(
|
|
5161
|
+
const def = mergeDefs(schema117._zod.def, {
|
|
5160
5162
|
get shape() {
|
|
5161
|
-
const newShape = { ...
|
|
5163
|
+
const newShape = { ...schema117._zod.def.shape };
|
|
5162
5164
|
for (const key in mask) {
|
|
5163
5165
|
if (!(key in currDef.shape)) {
|
|
5164
5166
|
throw new Error(`Unrecognized key: "${key}"`);
|
|
@@ -5172,43 +5174,43 @@ function omit(schema124, mask) {
|
|
|
5172
5174
|
},
|
|
5173
5175
|
checks: []
|
|
5174
5176
|
});
|
|
5175
|
-
return clone(
|
|
5177
|
+
return clone(schema117, def);
|
|
5176
5178
|
}
|
|
5177
|
-
function extend(
|
|
5179
|
+
function extend(schema117, shape) {
|
|
5178
5180
|
if (!isPlainObject(shape)) {
|
|
5179
5181
|
throw new Error("Invalid input to extend: expected a plain object");
|
|
5180
5182
|
}
|
|
5181
|
-
const checks =
|
|
5183
|
+
const checks = schema117._zod.def.checks;
|
|
5182
5184
|
const hasChecks = checks && checks.length > 0;
|
|
5183
5185
|
if (hasChecks) {
|
|
5184
|
-
const existingShape =
|
|
5186
|
+
const existingShape = schema117._zod.def.shape;
|
|
5185
5187
|
for (const key in shape) {
|
|
5186
5188
|
if (Object.getOwnPropertyDescriptor(existingShape, key) !== undefined) {
|
|
5187
5189
|
throw new Error("Cannot overwrite keys on object schemas containing refinements. Use `.safeExtend()` instead.");
|
|
5188
5190
|
}
|
|
5189
5191
|
}
|
|
5190
5192
|
}
|
|
5191
|
-
const def = mergeDefs(
|
|
5193
|
+
const def = mergeDefs(schema117._zod.def, {
|
|
5192
5194
|
get shape() {
|
|
5193
|
-
const _shape = { ...
|
|
5195
|
+
const _shape = { ...schema117._zod.def.shape, ...shape };
|
|
5194
5196
|
assignProp(this, "shape", _shape);
|
|
5195
5197
|
return _shape;
|
|
5196
5198
|
}
|
|
5197
5199
|
});
|
|
5198
|
-
return clone(
|
|
5200
|
+
return clone(schema117, def);
|
|
5199
5201
|
}
|
|
5200
|
-
function safeExtend(
|
|
5202
|
+
function safeExtend(schema117, shape) {
|
|
5201
5203
|
if (!isPlainObject(shape)) {
|
|
5202
5204
|
throw new Error("Invalid input to safeExtend: expected a plain object");
|
|
5203
5205
|
}
|
|
5204
|
-
const def = mergeDefs(
|
|
5206
|
+
const def = mergeDefs(schema117._zod.def, {
|
|
5205
5207
|
get shape() {
|
|
5206
|
-
const _shape = { ...
|
|
5208
|
+
const _shape = { ...schema117._zod.def.shape, ...shape };
|
|
5207
5209
|
assignProp(this, "shape", _shape);
|
|
5208
5210
|
return _shape;
|
|
5209
5211
|
}
|
|
5210
5212
|
});
|
|
5211
|
-
return clone(
|
|
5213
|
+
return clone(schema117, def);
|
|
5212
5214
|
}
|
|
5213
5215
|
function merge(a, b) {
|
|
5214
5216
|
if (a._zod.def.checks?.length) {
|
|
@@ -5227,16 +5229,16 @@ function merge(a, b) {
|
|
|
5227
5229
|
});
|
|
5228
5230
|
return clone(a, def);
|
|
5229
5231
|
}
|
|
5230
|
-
function partial(Class2,
|
|
5231
|
-
const currDef =
|
|
5232
|
+
function partial(Class2, schema117, mask) {
|
|
5233
|
+
const currDef = schema117._zod.def;
|
|
5232
5234
|
const checks = currDef.checks;
|
|
5233
5235
|
const hasChecks = checks && checks.length > 0;
|
|
5234
5236
|
if (hasChecks) {
|
|
5235
5237
|
throw new Error(".partial() cannot be used on object schemas containing refinements");
|
|
5236
5238
|
}
|
|
5237
|
-
const def = mergeDefs(
|
|
5239
|
+
const def = mergeDefs(schema117._zod.def, {
|
|
5238
5240
|
get shape() {
|
|
5239
|
-
const oldShape =
|
|
5241
|
+
const oldShape = schema117._zod.def.shape;
|
|
5240
5242
|
const shape = { ...oldShape };
|
|
5241
5243
|
if (mask) {
|
|
5242
5244
|
for (const key in mask) {
|
|
@@ -5263,12 +5265,12 @@ function partial(Class2, schema124, mask) {
|
|
|
5263
5265
|
},
|
|
5264
5266
|
checks: []
|
|
5265
5267
|
});
|
|
5266
|
-
return clone(
|
|
5268
|
+
return clone(schema117, def);
|
|
5267
5269
|
}
|
|
5268
|
-
function required(Class2,
|
|
5269
|
-
const def = mergeDefs(
|
|
5270
|
+
function required(Class2, schema117, mask) {
|
|
5271
|
+
const def = mergeDefs(schema117._zod.def, {
|
|
5270
5272
|
get shape() {
|
|
5271
|
-
const oldShape =
|
|
5273
|
+
const oldShape = schema117._zod.def.shape;
|
|
5272
5274
|
const shape = { ...oldShape };
|
|
5273
5275
|
if (mask) {
|
|
5274
5276
|
for (const key in mask) {
|
|
@@ -5294,7 +5296,7 @@ function required(Class2, schema124, mask) {
|
|
|
5294
5296
|
return shape;
|
|
5295
5297
|
}
|
|
5296
5298
|
});
|
|
5297
|
-
return clone(
|
|
5299
|
+
return clone(schema117, def);
|
|
5298
5300
|
}
|
|
5299
5301
|
function aborted(x, startIndex = 0) {
|
|
5300
5302
|
if (x.aborted === true)
|
|
@@ -5569,9 +5571,9 @@ function prettifyError(error51) {
|
|
|
5569
5571
|
return lines.join(`
|
|
5570
5572
|
`);
|
|
5571
5573
|
}
|
|
5572
|
-
var _parse = (_Err) => (
|
|
5574
|
+
var _parse = (_Err) => (schema117, value, _ctx, _params) => {
|
|
5573
5575
|
const ctx = _ctx ? { ..._ctx, async: false } : { async: false };
|
|
5574
|
-
const result =
|
|
5576
|
+
const result = schema117._zod.run({ value, issues: [] }, ctx);
|
|
5575
5577
|
if (result instanceof Promise) {
|
|
5576
5578
|
throw new $ZodAsyncError;
|
|
5577
5579
|
}
|
|
@@ -5583,9 +5585,9 @@ var _parse = (_Err) => (schema124, value, _ctx, _params) => {
|
|
|
5583
5585
|
return result.value;
|
|
5584
5586
|
};
|
|
5585
5587
|
var parse = /* @__PURE__ */ _parse($ZodRealError);
|
|
5586
|
-
var _parseAsync = (_Err) => async (
|
|
5588
|
+
var _parseAsync = (_Err) => async (schema117, value, _ctx, params) => {
|
|
5587
5589
|
const ctx = _ctx ? { ..._ctx, async: true } : { async: true };
|
|
5588
|
-
let result =
|
|
5590
|
+
let result = schema117._zod.run({ value, issues: [] }, ctx);
|
|
5589
5591
|
if (result instanceof Promise)
|
|
5590
5592
|
result = await result;
|
|
5591
5593
|
if (result.issues.length) {
|
|
@@ -5596,9 +5598,9 @@ var _parseAsync = (_Err) => async (schema124, value, _ctx, params) => {
|
|
|
5596
5598
|
return result.value;
|
|
5597
5599
|
};
|
|
5598
5600
|
var parseAsync = /* @__PURE__ */ _parseAsync($ZodRealError);
|
|
5599
|
-
var _safeParse = (_Err) => (
|
|
5601
|
+
var _safeParse = (_Err) => (schema117, value, _ctx) => {
|
|
5600
5602
|
const ctx = _ctx ? { ..._ctx, async: false } : { async: false };
|
|
5601
|
-
const result =
|
|
5603
|
+
const result = schema117._zod.run({ value, issues: [] }, ctx);
|
|
5602
5604
|
if (result instanceof Promise) {
|
|
5603
5605
|
throw new $ZodAsyncError;
|
|
5604
5606
|
}
|
|
@@ -5608,9 +5610,9 @@ var _safeParse = (_Err) => (schema124, value, _ctx) => {
|
|
|
5608
5610
|
} : { success: true, data: result.value };
|
|
5609
5611
|
};
|
|
5610
5612
|
var safeParse = /* @__PURE__ */ _safeParse($ZodRealError);
|
|
5611
|
-
var _safeParseAsync = (_Err) => async (
|
|
5613
|
+
var _safeParseAsync = (_Err) => async (schema117, value, _ctx) => {
|
|
5612
5614
|
const ctx = _ctx ? { ..._ctx, async: true } : { async: true };
|
|
5613
|
-
let result =
|
|
5615
|
+
let result = schema117._zod.run({ value, issues: [] }, ctx);
|
|
5614
5616
|
if (result instanceof Promise)
|
|
5615
5617
|
result = await result;
|
|
5616
5618
|
return result.issues.length ? {
|
|
@@ -5619,40 +5621,40 @@ var _safeParseAsync = (_Err) => async (schema124, value, _ctx) => {
|
|
|
5619
5621
|
} : { success: true, data: result.value };
|
|
5620
5622
|
};
|
|
5621
5623
|
var safeParseAsync = /* @__PURE__ */ _safeParseAsync($ZodRealError);
|
|
5622
|
-
var _encode = (_Err) => (
|
|
5624
|
+
var _encode = (_Err) => (schema117, value, _ctx) => {
|
|
5623
5625
|
const ctx = _ctx ? { ..._ctx, direction: "backward" } : { direction: "backward" };
|
|
5624
|
-
return _parse(_Err)(
|
|
5626
|
+
return _parse(_Err)(schema117, value, ctx);
|
|
5625
5627
|
};
|
|
5626
5628
|
var encode = /* @__PURE__ */ _encode($ZodRealError);
|
|
5627
|
-
var _decode = (_Err) => (
|
|
5628
|
-
return _parse(_Err)(
|
|
5629
|
+
var _decode = (_Err) => (schema117, value, _ctx) => {
|
|
5630
|
+
return _parse(_Err)(schema117, value, _ctx);
|
|
5629
5631
|
};
|
|
5630
5632
|
var decode = /* @__PURE__ */ _decode($ZodRealError);
|
|
5631
|
-
var _encodeAsync = (_Err) => async (
|
|
5633
|
+
var _encodeAsync = (_Err) => async (schema117, value, _ctx) => {
|
|
5632
5634
|
const ctx = _ctx ? { ..._ctx, direction: "backward" } : { direction: "backward" };
|
|
5633
|
-
return _parseAsync(_Err)(
|
|
5635
|
+
return _parseAsync(_Err)(schema117, value, ctx);
|
|
5634
5636
|
};
|
|
5635
5637
|
var encodeAsync = /* @__PURE__ */ _encodeAsync($ZodRealError);
|
|
5636
|
-
var _decodeAsync = (_Err) => async (
|
|
5637
|
-
return _parseAsync(_Err)(
|
|
5638
|
+
var _decodeAsync = (_Err) => async (schema117, value, _ctx) => {
|
|
5639
|
+
return _parseAsync(_Err)(schema117, value, _ctx);
|
|
5638
5640
|
};
|
|
5639
5641
|
var decodeAsync = /* @__PURE__ */ _decodeAsync($ZodRealError);
|
|
5640
|
-
var _safeEncode = (_Err) => (
|
|
5642
|
+
var _safeEncode = (_Err) => (schema117, value, _ctx) => {
|
|
5641
5643
|
const ctx = _ctx ? { ..._ctx, direction: "backward" } : { direction: "backward" };
|
|
5642
|
-
return _safeParse(_Err)(
|
|
5644
|
+
return _safeParse(_Err)(schema117, value, ctx);
|
|
5643
5645
|
};
|
|
5644
5646
|
var safeEncode = /* @__PURE__ */ _safeEncode($ZodRealError);
|
|
5645
|
-
var _safeDecode = (_Err) => (
|
|
5646
|
-
return _safeParse(_Err)(
|
|
5647
|
+
var _safeDecode = (_Err) => (schema117, value, _ctx) => {
|
|
5648
|
+
return _safeParse(_Err)(schema117, value, _ctx);
|
|
5647
5649
|
};
|
|
5648
5650
|
var safeDecode = /* @__PURE__ */ _safeDecode($ZodRealError);
|
|
5649
|
-
var _safeEncodeAsync = (_Err) => async (
|
|
5651
|
+
var _safeEncodeAsync = (_Err) => async (schema117, value, _ctx) => {
|
|
5650
5652
|
const ctx = _ctx ? { ..._ctx, direction: "backward" } : { direction: "backward" };
|
|
5651
|
-
return _safeParseAsync(_Err)(
|
|
5653
|
+
return _safeParseAsync(_Err)(schema117, value, ctx);
|
|
5652
5654
|
};
|
|
5653
5655
|
var safeEncodeAsync = /* @__PURE__ */ _safeEncodeAsync($ZodRealError);
|
|
5654
|
-
var _safeDecodeAsync = (_Err) => async (
|
|
5655
|
-
return _safeParseAsync(_Err)(
|
|
5656
|
+
var _safeDecodeAsync = (_Err) => async (schema117, value, _ctx) => {
|
|
5657
|
+
return _safeParseAsync(_Err)(schema117, value, _ctx);
|
|
5656
5658
|
};
|
|
5657
5659
|
var safeDecodeAsync = /* @__PURE__ */ _safeDecodeAsync($ZodRealError);
|
|
5658
5660
|
init_esm_shims();
|
|
@@ -7219,9 +7221,9 @@ var $ZodObjectJIT = /* @__PURE__ */ $constructor("$ZodObjectJIT", (inst, def) =>
|
|
|
7219
7221
|
for (const key of normalized.keys) {
|
|
7220
7222
|
const id = ids[key];
|
|
7221
7223
|
const k = esc(key);
|
|
7222
|
-
const
|
|
7223
|
-
const isOptionalIn =
|
|
7224
|
-
const isOptionalOut =
|
|
7224
|
+
const schema117 = shape[key];
|
|
7225
|
+
const isOptionalIn = schema117?._zod?.optin === "optional";
|
|
7226
|
+
const isOptionalOut = schema117?._zod?.optout === "optional";
|
|
7225
7227
|
doc.write(`const ${id} = ${parseStr(key)};`);
|
|
7226
7228
|
if (isOptionalIn && isOptionalOut) {
|
|
7227
7229
|
doc.write(`
|
|
@@ -14393,11 +14395,11 @@ var $ZodRegistry = class {
|
|
|
14393
14395
|
this._map = /* @__PURE__ */ new WeakMap;
|
|
14394
14396
|
this._idmap = /* @__PURE__ */ new Map;
|
|
14395
14397
|
}
|
|
14396
|
-
add(
|
|
14398
|
+
add(schema117, ..._meta) {
|
|
14397
14399
|
const meta3 = _meta[0];
|
|
14398
|
-
this._map.set(
|
|
14400
|
+
this._map.set(schema117, meta3);
|
|
14399
14401
|
if (meta3 && typeof meta3 === "object" && "id" in meta3) {
|
|
14400
|
-
this._idmap.set(meta3.id,
|
|
14402
|
+
this._idmap.set(meta3.id, schema117);
|
|
14401
14403
|
}
|
|
14402
14404
|
return this;
|
|
14403
14405
|
}
|
|
@@ -14406,26 +14408,26 @@ var $ZodRegistry = class {
|
|
|
14406
14408
|
this._idmap = /* @__PURE__ */ new Map;
|
|
14407
14409
|
return this;
|
|
14408
14410
|
}
|
|
14409
|
-
remove(
|
|
14410
|
-
const meta3 = this._map.get(
|
|
14411
|
+
remove(schema117) {
|
|
14412
|
+
const meta3 = this._map.get(schema117);
|
|
14411
14413
|
if (meta3 && typeof meta3 === "object" && "id" in meta3) {
|
|
14412
14414
|
this._idmap.delete(meta3.id);
|
|
14413
14415
|
}
|
|
14414
|
-
this._map.delete(
|
|
14416
|
+
this._map.delete(schema117);
|
|
14415
14417
|
return this;
|
|
14416
14418
|
}
|
|
14417
|
-
get(
|
|
14418
|
-
const p =
|
|
14419
|
+
get(schema117) {
|
|
14420
|
+
const p = schema117._zod.parent;
|
|
14419
14421
|
if (p) {
|
|
14420
14422
|
const pm = { ...this.get(p) ?? {} };
|
|
14421
14423
|
delete pm.id;
|
|
14422
|
-
const f = { ...pm, ...this._map.get(
|
|
14424
|
+
const f = { ...pm, ...this._map.get(schema117) };
|
|
14423
14425
|
return Object.keys(f).length ? f : undefined;
|
|
14424
14426
|
}
|
|
14425
|
-
return this._map.get(
|
|
14427
|
+
return this._map.get(schema117);
|
|
14426
14428
|
}
|
|
14427
|
-
has(
|
|
14428
|
-
return this._map.has(
|
|
14429
|
+
has(schema117) {
|
|
14430
|
+
return this._map.has(schema117);
|
|
14429
14431
|
}
|
|
14430
14432
|
};
|
|
14431
14433
|
function registry() {
|
|
@@ -15003,11 +15005,11 @@ function _endsWith(suffix, params) {
|
|
|
15003
15005
|
suffix
|
|
15004
15006
|
});
|
|
15005
15007
|
}
|
|
15006
|
-
function _property(property,
|
|
15008
|
+
function _property(property, schema117, params) {
|
|
15007
15009
|
return new $ZodCheckProperty({
|
|
15008
15010
|
check: "property",
|
|
15009
15011
|
property,
|
|
15010
|
-
schema:
|
|
15012
|
+
schema: schema117,
|
|
15011
15013
|
...normalizeParams(params)
|
|
15012
15014
|
});
|
|
15013
15015
|
}
|
|
@@ -15220,22 +15222,22 @@ function _promise(Class2, innerType) {
|
|
|
15220
15222
|
function _custom(Class2, fn, _params) {
|
|
15221
15223
|
const norm = normalizeParams(_params);
|
|
15222
15224
|
norm.abort ?? (norm.abort = true);
|
|
15223
|
-
const
|
|
15225
|
+
const schema117 = new Class2({
|
|
15224
15226
|
type: "custom",
|
|
15225
15227
|
check: "custom",
|
|
15226
15228
|
fn,
|
|
15227
15229
|
...norm
|
|
15228
15230
|
});
|
|
15229
|
-
return
|
|
15231
|
+
return schema117;
|
|
15230
15232
|
}
|
|
15231
15233
|
function _refine(Class2, fn, _params) {
|
|
15232
|
-
const
|
|
15234
|
+
const schema117 = new Class2({
|
|
15233
15235
|
type: "custom",
|
|
15234
15236
|
check: "custom",
|
|
15235
15237
|
fn,
|
|
15236
15238
|
...normalizeParams(_params)
|
|
15237
15239
|
});
|
|
15238
|
-
return
|
|
15240
|
+
return schema117;
|
|
15239
15241
|
}
|
|
15240
15242
|
function _superRefine(fn, params) {
|
|
15241
15243
|
const ch = /* @__PURE__ */ _check((payload) => {
|
|
@@ -15374,40 +15376,40 @@ function initializeContext(params) {
|
|
|
15374
15376
|
external: params?.external ?? undefined
|
|
15375
15377
|
};
|
|
15376
15378
|
}
|
|
15377
|
-
function process(
|
|
15379
|
+
function process(schema117, ctx, _params = { path: [], schemaPath: [] }) {
|
|
15378
15380
|
var _a3;
|
|
15379
|
-
const def =
|
|
15380
|
-
const seen = ctx.seen.get(
|
|
15381
|
+
const def = schema117._zod.def;
|
|
15382
|
+
const seen = ctx.seen.get(schema117);
|
|
15381
15383
|
if (seen) {
|
|
15382
15384
|
seen.count++;
|
|
15383
|
-
const isCycle = _params.schemaPath.includes(
|
|
15385
|
+
const isCycle = _params.schemaPath.includes(schema117);
|
|
15384
15386
|
if (isCycle) {
|
|
15385
15387
|
seen.cycle = _params.path;
|
|
15386
15388
|
}
|
|
15387
15389
|
return seen.schema;
|
|
15388
15390
|
}
|
|
15389
15391
|
const result = { schema: {}, count: 1, cycle: undefined, path: _params.path };
|
|
15390
|
-
ctx.seen.set(
|
|
15391
|
-
const overrideSchema =
|
|
15392
|
+
ctx.seen.set(schema117, result);
|
|
15393
|
+
const overrideSchema = schema117._zod.toJSONSchema?.();
|
|
15392
15394
|
if (overrideSchema) {
|
|
15393
15395
|
result.schema = overrideSchema;
|
|
15394
15396
|
} else {
|
|
15395
15397
|
const params = {
|
|
15396
15398
|
..._params,
|
|
15397
|
-
schemaPath: [..._params.schemaPath,
|
|
15399
|
+
schemaPath: [..._params.schemaPath, schema117],
|
|
15398
15400
|
path: _params.path
|
|
15399
15401
|
};
|
|
15400
|
-
if (
|
|
15401
|
-
|
|
15402
|
+
if (schema117._zod.processJSONSchema) {
|
|
15403
|
+
schema117._zod.processJSONSchema(ctx, result.schema, params);
|
|
15402
15404
|
} else {
|
|
15403
15405
|
const _json = result.schema;
|
|
15404
15406
|
const processor = ctx.processors[def.type];
|
|
15405
15407
|
if (!processor) {
|
|
15406
15408
|
throw new Error(`[toJSONSchema]: Non-representable type encountered: ${def.type}`);
|
|
15407
15409
|
}
|
|
15408
|
-
processor(
|
|
15410
|
+
processor(schema117, ctx, _json, params);
|
|
15409
15411
|
}
|
|
15410
|
-
const parent =
|
|
15412
|
+
const parent = schema117._zod.parent;
|
|
15411
15413
|
if (parent) {
|
|
15412
15414
|
if (!result.ref)
|
|
15413
15415
|
result.ref = parent;
|
|
@@ -15415,21 +15417,21 @@ function process(schema124, ctx, _params = { path: [], schemaPath: [] }) {
|
|
|
15415
15417
|
ctx.seen.get(parent).isParent = true;
|
|
15416
15418
|
}
|
|
15417
15419
|
}
|
|
15418
|
-
const meta3 = ctx.metadataRegistry.get(
|
|
15420
|
+
const meta3 = ctx.metadataRegistry.get(schema117);
|
|
15419
15421
|
if (meta3)
|
|
15420
15422
|
Object.assign(result.schema, meta3);
|
|
15421
|
-
if (ctx.io === "input" && isTransforming(
|
|
15423
|
+
if (ctx.io === "input" && isTransforming(schema117)) {
|
|
15422
15424
|
delete result.schema.examples;
|
|
15423
15425
|
delete result.schema.default;
|
|
15424
15426
|
}
|
|
15425
15427
|
if (ctx.io === "input" && "_prefault" in result.schema)
|
|
15426
15428
|
(_a3 = result.schema).default ?? (_a3.default = result.schema._prefault);
|
|
15427
15429
|
delete result.schema._prefault;
|
|
15428
|
-
const _result = ctx.seen.get(
|
|
15430
|
+
const _result = ctx.seen.get(schema117);
|
|
15429
15431
|
return _result.schema;
|
|
15430
15432
|
}
|
|
15431
|
-
function extractDefs(ctx,
|
|
15432
|
-
const root = ctx.seen.get(
|
|
15433
|
+
function extractDefs(ctx, schema117) {
|
|
15434
|
+
const root = ctx.seen.get(schema117);
|
|
15433
15435
|
if (!root)
|
|
15434
15436
|
throw new Error("Unprocessed schema. This is a bug in Zod.");
|
|
15435
15437
|
const idToSchema = /* @__PURE__ */ new Map;
|
|
@@ -15472,11 +15474,11 @@ function extractDefs(ctx, schema124) {
|
|
|
15472
15474
|
seen.def = { ...seen.schema };
|
|
15473
15475
|
if (defId)
|
|
15474
15476
|
seen.defId = defId;
|
|
15475
|
-
const
|
|
15476
|
-
for (const key in
|
|
15477
|
-
delete
|
|
15477
|
+
const schema118 = seen.schema;
|
|
15478
|
+
for (const key in schema118) {
|
|
15479
|
+
delete schema118[key];
|
|
15478
15480
|
}
|
|
15479
|
-
|
|
15481
|
+
schema118.$ref = ref;
|
|
15480
15482
|
};
|
|
15481
15483
|
if (ctx.cycles === "throw") {
|
|
15482
15484
|
for (const entry of ctx.seen.entries()) {
|
|
@@ -15490,13 +15492,13 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
15490
15492
|
}
|
|
15491
15493
|
for (const entry of ctx.seen.entries()) {
|
|
15492
15494
|
const seen = entry[1];
|
|
15493
|
-
if (
|
|
15495
|
+
if (schema117 === entry[0]) {
|
|
15494
15496
|
extractToDef(entry);
|
|
15495
15497
|
continue;
|
|
15496
15498
|
}
|
|
15497
15499
|
if (ctx.external) {
|
|
15498
15500
|
const ext = ctx.external.registry.get(entry[0])?.id;
|
|
15499
|
-
if (
|
|
15501
|
+
if (schema117 !== entry[0] && ext) {
|
|
15500
15502
|
extractToDef(entry);
|
|
15501
15503
|
continue;
|
|
15502
15504
|
}
|
|
@@ -15518,16 +15520,16 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
15518
15520
|
}
|
|
15519
15521
|
}
|
|
15520
15522
|
}
|
|
15521
|
-
function finalize(ctx,
|
|
15522
|
-
const root = ctx.seen.get(
|
|
15523
|
+
function finalize(ctx, schema117) {
|
|
15524
|
+
const root = ctx.seen.get(schema117);
|
|
15523
15525
|
if (!root)
|
|
15524
15526
|
throw new Error("Unprocessed schema. This is a bug in Zod.");
|
|
15525
15527
|
const flattenRef = (zodSchema) => {
|
|
15526
15528
|
const seen = ctx.seen.get(zodSchema);
|
|
15527
15529
|
if (seen.ref === null)
|
|
15528
15530
|
return;
|
|
15529
|
-
const
|
|
15530
|
-
const _cached = { ...
|
|
15531
|
+
const schema118 = seen.def ?? seen.schema;
|
|
15532
|
+
const _cached = { ...schema118 };
|
|
15531
15533
|
const ref = seen.ref;
|
|
15532
15534
|
seen.ref = null;
|
|
15533
15535
|
if (ref) {
|
|
@@ -15535,28 +15537,28 @@ function finalize(ctx, schema124) {
|
|
|
15535
15537
|
const refSeen = ctx.seen.get(ref);
|
|
15536
15538
|
const refSchema = refSeen.schema;
|
|
15537
15539
|
if (refSchema.$ref && (ctx.target === "draft-07" || ctx.target === "draft-04" || ctx.target === "openapi-3.0")) {
|
|
15538
|
-
|
|
15539
|
-
|
|
15540
|
+
schema118.allOf = schema118.allOf ?? [];
|
|
15541
|
+
schema118.allOf.push(refSchema);
|
|
15540
15542
|
} else {
|
|
15541
|
-
Object.assign(
|
|
15543
|
+
Object.assign(schema118, refSchema);
|
|
15542
15544
|
}
|
|
15543
|
-
Object.assign(
|
|
15545
|
+
Object.assign(schema118, _cached);
|
|
15544
15546
|
const isParentRef = zodSchema._zod.parent === ref;
|
|
15545
15547
|
if (isParentRef) {
|
|
15546
|
-
for (const key in
|
|
15548
|
+
for (const key in schema118) {
|
|
15547
15549
|
if (key === "$ref" || key === "allOf")
|
|
15548
15550
|
continue;
|
|
15549
15551
|
if (!(key in _cached)) {
|
|
15550
|
-
delete
|
|
15552
|
+
delete schema118[key];
|
|
15551
15553
|
}
|
|
15552
15554
|
}
|
|
15553
15555
|
}
|
|
15554
15556
|
if (refSchema.$ref && refSeen.def) {
|
|
15555
|
-
for (const key in
|
|
15557
|
+
for (const key in schema118) {
|
|
15556
15558
|
if (key === "$ref" || key === "allOf")
|
|
15557
15559
|
continue;
|
|
15558
|
-
if (key in refSeen.def && JSON.stringify(
|
|
15559
|
-
delete
|
|
15560
|
+
if (key in refSeen.def && JSON.stringify(schema118[key]) === JSON.stringify(refSeen.def[key])) {
|
|
15561
|
+
delete schema118[key];
|
|
15560
15562
|
}
|
|
15561
15563
|
}
|
|
15562
15564
|
}
|
|
@@ -15566,13 +15568,13 @@ function finalize(ctx, schema124) {
|
|
|
15566
15568
|
flattenRef(parent);
|
|
15567
15569
|
const parentSeen = ctx.seen.get(parent);
|
|
15568
15570
|
if (parentSeen?.schema.$ref) {
|
|
15569
|
-
|
|
15571
|
+
schema118.$ref = parentSeen.schema.$ref;
|
|
15570
15572
|
if (parentSeen.def) {
|
|
15571
|
-
for (const key in
|
|
15573
|
+
for (const key in schema118) {
|
|
15572
15574
|
if (key === "$ref" || key === "allOf")
|
|
15573
15575
|
continue;
|
|
15574
|
-
if (key in parentSeen.def && JSON.stringify(
|
|
15575
|
-
delete
|
|
15576
|
+
if (key in parentSeen.def && JSON.stringify(schema118[key]) === JSON.stringify(parentSeen.def[key])) {
|
|
15577
|
+
delete schema118[key];
|
|
15576
15578
|
}
|
|
15577
15579
|
}
|
|
15578
15580
|
}
|
|
@@ -15580,7 +15582,7 @@ function finalize(ctx, schema124) {
|
|
|
15580
15582
|
}
|
|
15581
15583
|
ctx.override({
|
|
15582
15584
|
zodSchema,
|
|
15583
|
-
jsonSchema:
|
|
15585
|
+
jsonSchema: schema118,
|
|
15584
15586
|
path: seen.path ?? []
|
|
15585
15587
|
});
|
|
15586
15588
|
};
|
|
@@ -15596,13 +15598,13 @@ function finalize(ctx, schema124) {
|
|
|
15596
15598
|
result.$schema = "http://json-schema.org/draft-04/schema#";
|
|
15597
15599
|
} else if (ctx.target === "openapi-3.0") {}
|
|
15598
15600
|
if (ctx.external?.uri) {
|
|
15599
|
-
const id = ctx.external.registry.get(
|
|
15601
|
+
const id = ctx.external.registry.get(schema117)?.id;
|
|
15600
15602
|
if (!id)
|
|
15601
15603
|
throw new Error("Schema is missing an `id` property");
|
|
15602
15604
|
result.$id = ctx.external.uri(id);
|
|
15603
15605
|
}
|
|
15604
15606
|
Object.assign(result, root.def ?? root.schema);
|
|
15605
|
-
const rootMetaId = ctx.metadataRegistry.get(
|
|
15607
|
+
const rootMetaId = ctx.metadataRegistry.get(schema117)?.id;
|
|
15606
15608
|
if (rootMetaId !== undefined && result.id === rootMetaId)
|
|
15607
15609
|
delete result.id;
|
|
15608
15610
|
const defs = ctx.external?.defs ?? {};
|
|
@@ -15627,10 +15629,10 @@ function finalize(ctx, schema124) {
|
|
|
15627
15629
|
const finalized = JSON.parse(JSON.stringify(result));
|
|
15628
15630
|
Object.defineProperty(finalized, "~standard", {
|
|
15629
15631
|
value: {
|
|
15630
|
-
...
|
|
15632
|
+
...schema117["~standard"],
|
|
15631
15633
|
jsonSchema: {
|
|
15632
|
-
input: createStandardJSONSchemaMethod(
|
|
15633
|
-
output: createStandardJSONSchemaMethod(
|
|
15634
|
+
input: createStandardJSONSchemaMethod(schema117, "input", ctx.processors),
|
|
15635
|
+
output: createStandardJSONSchemaMethod(schema117, "output", ctx.processors)
|
|
15634
15636
|
}
|
|
15635
15637
|
},
|
|
15636
15638
|
enumerable: false,
|
|
@@ -15694,18 +15696,18 @@ function isTransforming(_schema, _ctx) {
|
|
|
15694
15696
|
}
|
|
15695
15697
|
return false;
|
|
15696
15698
|
}
|
|
15697
|
-
var createToJSONSchemaMethod = (
|
|
15699
|
+
var createToJSONSchemaMethod = (schema117, processors = {}) => (params) => {
|
|
15698
15700
|
const ctx = initializeContext({ ...params, processors });
|
|
15699
|
-
process(
|
|
15700
|
-
extractDefs(ctx,
|
|
15701
|
-
return finalize(ctx,
|
|
15701
|
+
process(schema117, ctx);
|
|
15702
|
+
extractDefs(ctx, schema117);
|
|
15703
|
+
return finalize(ctx, schema117);
|
|
15702
15704
|
};
|
|
15703
|
-
var createStandardJSONSchemaMethod = (
|
|
15705
|
+
var createStandardJSONSchemaMethod = (schema117, io, processors = {}) => (params) => {
|
|
15704
15706
|
const { libraryOptions, target } = params ?? {};
|
|
15705
15707
|
const ctx = initializeContext({ ...libraryOptions ?? {}, target, io, processors });
|
|
15706
|
-
process(
|
|
15707
|
-
extractDefs(ctx,
|
|
15708
|
-
return finalize(ctx,
|
|
15708
|
+
process(schema117, ctx);
|
|
15709
|
+
extractDefs(ctx, schema117);
|
|
15710
|
+
return finalize(ctx, schema117);
|
|
15709
15711
|
};
|
|
15710
15712
|
init_esm_shims();
|
|
15711
15713
|
var formatMap = {
|
|
@@ -15715,10 +15717,10 @@ var formatMap = {
|
|
|
15715
15717
|
json_string: "json-string",
|
|
15716
15718
|
regex: ""
|
|
15717
15719
|
};
|
|
15718
|
-
var stringProcessor = (
|
|
15720
|
+
var stringProcessor = (schema117, ctx, _json, _params) => {
|
|
15719
15721
|
const json2 = _json;
|
|
15720
15722
|
json2.type = "string";
|
|
15721
|
-
const { minimum, maximum, format, patterns, contentEncoding } =
|
|
15723
|
+
const { minimum, maximum, format, patterns, contentEncoding } = schema117._zod.bag;
|
|
15722
15724
|
if (typeof minimum === "number")
|
|
15723
15725
|
json2.minLength = minimum;
|
|
15724
15726
|
if (typeof maximum === "number")
|
|
@@ -15747,9 +15749,9 @@ var stringProcessor = (schema124, ctx, _json, _params) => {
|
|
|
15747
15749
|
}
|
|
15748
15750
|
}
|
|
15749
15751
|
};
|
|
15750
|
-
var numberProcessor = (
|
|
15752
|
+
var numberProcessor = (schema117, ctx, _json, _params) => {
|
|
15751
15753
|
const json2 = _json;
|
|
15752
|
-
const { minimum, maximum, format, multipleOf, exclusiveMaximum, exclusiveMinimum } =
|
|
15754
|
+
const { minimum, maximum, format, multipleOf, exclusiveMaximum, exclusiveMinimum } = schema117._zod.bag;
|
|
15753
15755
|
if (typeof format === "string" && format.includes("int"))
|
|
15754
15756
|
json2.type = "integer";
|
|
15755
15757
|
else
|
|
@@ -15822,8 +15824,8 @@ var dateProcessor = (_schema, ctx, _json, _params) => {
|
|
|
15822
15824
|
throw new Error("Date cannot be represented in JSON Schema");
|
|
15823
15825
|
}
|
|
15824
15826
|
};
|
|
15825
|
-
var enumProcessor = (
|
|
15826
|
-
const def =
|
|
15827
|
+
var enumProcessor = (schema117, _ctx, json2, _params) => {
|
|
15828
|
+
const def = schema117._zod.def;
|
|
15827
15829
|
const values = getEnumValues(def.entries);
|
|
15828
15830
|
if (values.every((v) => typeof v === "number"))
|
|
15829
15831
|
json2.type = "number";
|
|
@@ -15831,8 +15833,8 @@ var enumProcessor = (schema124, _ctx, json2, _params) => {
|
|
|
15831
15833
|
json2.type = "string";
|
|
15832
15834
|
json2.enum = values;
|
|
15833
15835
|
};
|
|
15834
|
-
var literalProcessor = (
|
|
15835
|
-
const def =
|
|
15836
|
+
var literalProcessor = (schema117, ctx, json2, _params) => {
|
|
15837
|
+
const def = schema117._zod.def;
|
|
15836
15838
|
const vals = [];
|
|
15837
15839
|
for (const val of def.values) {
|
|
15838
15840
|
if (val === undefined) {
|
|
@@ -15874,22 +15876,22 @@ var nanProcessor = (_schema, ctx, _json, _params) => {
|
|
|
15874
15876
|
throw new Error("NaN cannot be represented in JSON Schema");
|
|
15875
15877
|
}
|
|
15876
15878
|
};
|
|
15877
|
-
var templateLiteralProcessor = (
|
|
15879
|
+
var templateLiteralProcessor = (schema117, _ctx, json2, _params) => {
|
|
15878
15880
|
const _json = json2;
|
|
15879
|
-
const pattern =
|
|
15881
|
+
const pattern = schema117._zod.pattern;
|
|
15880
15882
|
if (!pattern)
|
|
15881
15883
|
throw new Error("Pattern not found in template literal");
|
|
15882
15884
|
_json.type = "string";
|
|
15883
15885
|
_json.pattern = pattern.source;
|
|
15884
15886
|
};
|
|
15885
|
-
var fileProcessor = (
|
|
15887
|
+
var fileProcessor = (schema117, _ctx, json2, _params) => {
|
|
15886
15888
|
const _json = json2;
|
|
15887
15889
|
const file2 = {
|
|
15888
15890
|
type: "string",
|
|
15889
15891
|
format: "binary",
|
|
15890
15892
|
contentEncoding: "binary"
|
|
15891
15893
|
};
|
|
15892
|
-
const { minimum, maximum, mime } =
|
|
15894
|
+
const { minimum, maximum, mime } = schema117._zod.bag;
|
|
15893
15895
|
if (minimum !== undefined)
|
|
15894
15896
|
file2.minLength = minimum;
|
|
15895
15897
|
if (maximum !== undefined)
|
|
@@ -15934,10 +15936,10 @@ var setProcessor = (_schema, ctx, _json, _params) => {
|
|
|
15934
15936
|
throw new Error("Set cannot be represented in JSON Schema");
|
|
15935
15937
|
}
|
|
15936
15938
|
};
|
|
15937
|
-
var arrayProcessor = (
|
|
15939
|
+
var arrayProcessor = (schema117, ctx, _json, params) => {
|
|
15938
15940
|
const json2 = _json;
|
|
15939
|
-
const def =
|
|
15940
|
-
const { minimum, maximum } =
|
|
15941
|
+
const def = schema117._zod.def;
|
|
15942
|
+
const { minimum, maximum } = schema117._zod.bag;
|
|
15941
15943
|
if (typeof minimum === "number")
|
|
15942
15944
|
json2.minItems = minimum;
|
|
15943
15945
|
if (typeof maximum === "number")
|
|
@@ -15948,9 +15950,9 @@ var arrayProcessor = (schema124, ctx, _json, params) => {
|
|
|
15948
15950
|
path: [...params.path, "items"]
|
|
15949
15951
|
});
|
|
15950
15952
|
};
|
|
15951
|
-
var objectProcessor = (
|
|
15953
|
+
var objectProcessor = (schema117, ctx, _json, params) => {
|
|
15952
15954
|
const json2 = _json;
|
|
15953
|
-
const def =
|
|
15955
|
+
const def = schema117._zod.def;
|
|
15954
15956
|
json2.type = "object";
|
|
15955
15957
|
json2.properties = {};
|
|
15956
15958
|
const shape = def.shape;
|
|
@@ -15984,8 +15986,8 @@ var objectProcessor = (schema124, ctx, _json, params) => {
|
|
|
15984
15986
|
});
|
|
15985
15987
|
}
|
|
15986
15988
|
};
|
|
15987
|
-
var unionProcessor = (
|
|
15988
|
-
const def =
|
|
15989
|
+
var unionProcessor = (schema117, ctx, json2, params) => {
|
|
15990
|
+
const def = schema117._zod.def;
|
|
15989
15991
|
const isExclusive = def.inclusive === false;
|
|
15990
15992
|
const options = def.options.map((x, i) => process(x, ctx, {
|
|
15991
15993
|
...params,
|
|
@@ -15997,8 +15999,8 @@ var unionProcessor = (schema124, ctx, json2, params) => {
|
|
|
15997
15999
|
json2.anyOf = options;
|
|
15998
16000
|
}
|
|
15999
16001
|
};
|
|
16000
|
-
var intersectionProcessor = (
|
|
16001
|
-
const def =
|
|
16002
|
+
var intersectionProcessor = (schema117, ctx, json2, params) => {
|
|
16003
|
+
const def = schema117._zod.def;
|
|
16002
16004
|
const a = process(def.left, ctx, {
|
|
16003
16005
|
...params,
|
|
16004
16006
|
path: [...params.path, "allOf", 0]
|
|
@@ -16014,9 +16016,9 @@ var intersectionProcessor = (schema124, ctx, json2, params) => {
|
|
|
16014
16016
|
];
|
|
16015
16017
|
json2.allOf = allOf;
|
|
16016
16018
|
};
|
|
16017
|
-
var tupleProcessor = (
|
|
16019
|
+
var tupleProcessor = (schema117, ctx, _json, params) => {
|
|
16018
16020
|
const json2 = _json;
|
|
16019
|
-
const def =
|
|
16021
|
+
const def = schema117._zod.def;
|
|
16020
16022
|
json2.type = "array";
|
|
16021
16023
|
const prefixPath = ctx.target === "draft-2020-12" ? "prefixItems" : "items";
|
|
16022
16024
|
const restPath = ctx.target === "draft-2020-12" ? "items" : ctx.target === "openapi-3.0" ? "items" : "additionalItems";
|
|
@@ -16050,15 +16052,15 @@ var tupleProcessor = (schema124, ctx, _json, params) => {
|
|
|
16050
16052
|
json2.additionalItems = rest;
|
|
16051
16053
|
}
|
|
16052
16054
|
}
|
|
16053
|
-
const { minimum, maximum } =
|
|
16055
|
+
const { minimum, maximum } = schema117._zod.bag;
|
|
16054
16056
|
if (typeof minimum === "number")
|
|
16055
16057
|
json2.minItems = minimum;
|
|
16056
16058
|
if (typeof maximum === "number")
|
|
16057
16059
|
json2.maxItems = maximum;
|
|
16058
16060
|
};
|
|
16059
|
-
var recordProcessor = (
|
|
16061
|
+
var recordProcessor = (schema117, ctx, _json, params) => {
|
|
16060
16062
|
const json2 = _json;
|
|
16061
|
-
const def =
|
|
16063
|
+
const def = schema117._zod.def;
|
|
16062
16064
|
json2.type = "object";
|
|
16063
16065
|
const keyType = def.keyType;
|
|
16064
16066
|
const keyBag = keyType._zod.bag;
|
|
@@ -16092,10 +16094,10 @@ var recordProcessor = (schema124, ctx, _json, params) => {
|
|
|
16092
16094
|
}
|
|
16093
16095
|
}
|
|
16094
16096
|
};
|
|
16095
|
-
var nullableProcessor = (
|
|
16096
|
-
const def =
|
|
16097
|
+
var nullableProcessor = (schema117, ctx, json2, params) => {
|
|
16098
|
+
const def = schema117._zod.def;
|
|
16097
16099
|
const inner = process(def.innerType, ctx, params);
|
|
16098
|
-
const seen = ctx.seen.get(
|
|
16100
|
+
const seen = ctx.seen.get(schema117);
|
|
16099
16101
|
if (ctx.target === "openapi-3.0") {
|
|
16100
16102
|
seen.ref = def.innerType;
|
|
16101
16103
|
json2.nullable = true;
|
|
@@ -16103,31 +16105,31 @@ var nullableProcessor = (schema124, ctx, json2, params) => {
|
|
|
16103
16105
|
json2.anyOf = [inner, { type: "null" }];
|
|
16104
16106
|
}
|
|
16105
16107
|
};
|
|
16106
|
-
var nonoptionalProcessor = (
|
|
16107
|
-
const def =
|
|
16108
|
+
var nonoptionalProcessor = (schema117, ctx, _json, params) => {
|
|
16109
|
+
const def = schema117._zod.def;
|
|
16108
16110
|
process(def.innerType, ctx, params);
|
|
16109
|
-
const seen = ctx.seen.get(
|
|
16111
|
+
const seen = ctx.seen.get(schema117);
|
|
16110
16112
|
seen.ref = def.innerType;
|
|
16111
16113
|
};
|
|
16112
|
-
var defaultProcessor = (
|
|
16113
|
-
const def =
|
|
16114
|
+
var defaultProcessor = (schema117, ctx, json2, params) => {
|
|
16115
|
+
const def = schema117._zod.def;
|
|
16114
16116
|
process(def.innerType, ctx, params);
|
|
16115
|
-
const seen = ctx.seen.get(
|
|
16117
|
+
const seen = ctx.seen.get(schema117);
|
|
16116
16118
|
seen.ref = def.innerType;
|
|
16117
16119
|
json2.default = JSON.parse(JSON.stringify(def.defaultValue));
|
|
16118
16120
|
};
|
|
16119
|
-
var prefaultProcessor = (
|
|
16120
|
-
const def =
|
|
16121
|
+
var prefaultProcessor = (schema117, ctx, json2, params) => {
|
|
16122
|
+
const def = schema117._zod.def;
|
|
16121
16123
|
process(def.innerType, ctx, params);
|
|
16122
|
-
const seen = ctx.seen.get(
|
|
16124
|
+
const seen = ctx.seen.get(schema117);
|
|
16123
16125
|
seen.ref = def.innerType;
|
|
16124
16126
|
if (ctx.io === "input")
|
|
16125
16127
|
json2._prefault = JSON.parse(JSON.stringify(def.defaultValue));
|
|
16126
16128
|
};
|
|
16127
|
-
var catchProcessor = (
|
|
16128
|
-
const def =
|
|
16129
|
+
var catchProcessor = (schema117, ctx, json2, params) => {
|
|
16130
|
+
const def = schema117._zod.def;
|
|
16129
16131
|
process(def.innerType, ctx, params);
|
|
16130
|
-
const seen = ctx.seen.get(
|
|
16132
|
+
const seen = ctx.seen.get(schema117);
|
|
16131
16133
|
seen.ref = def.innerType;
|
|
16132
16134
|
let catchValue;
|
|
16133
16135
|
try {
|
|
@@ -16137,37 +16139,37 @@ var catchProcessor = (schema124, ctx, json2, params) => {
|
|
|
16137
16139
|
}
|
|
16138
16140
|
json2.default = catchValue;
|
|
16139
16141
|
};
|
|
16140
|
-
var pipeProcessor = (
|
|
16141
|
-
const def =
|
|
16142
|
+
var pipeProcessor = (schema117, ctx, _json, params) => {
|
|
16143
|
+
const def = schema117._zod.def;
|
|
16142
16144
|
const inIsTransform = def.in._zod.traits.has("$ZodTransform");
|
|
16143
16145
|
const innerType = ctx.io === "input" ? inIsTransform ? def.out : def.in : def.out;
|
|
16144
16146
|
process(innerType, ctx, params);
|
|
16145
|
-
const seen = ctx.seen.get(
|
|
16147
|
+
const seen = ctx.seen.get(schema117);
|
|
16146
16148
|
seen.ref = innerType;
|
|
16147
16149
|
};
|
|
16148
|
-
var readonlyProcessor = (
|
|
16149
|
-
const def =
|
|
16150
|
+
var readonlyProcessor = (schema117, ctx, json2, params) => {
|
|
16151
|
+
const def = schema117._zod.def;
|
|
16150
16152
|
process(def.innerType, ctx, params);
|
|
16151
|
-
const seen = ctx.seen.get(
|
|
16153
|
+
const seen = ctx.seen.get(schema117);
|
|
16152
16154
|
seen.ref = def.innerType;
|
|
16153
16155
|
json2.readOnly = true;
|
|
16154
16156
|
};
|
|
16155
|
-
var promiseProcessor = (
|
|
16156
|
-
const def =
|
|
16157
|
+
var promiseProcessor = (schema117, ctx, _json, params) => {
|
|
16158
|
+
const def = schema117._zod.def;
|
|
16157
16159
|
process(def.innerType, ctx, params);
|
|
16158
|
-
const seen = ctx.seen.get(
|
|
16160
|
+
const seen = ctx.seen.get(schema117);
|
|
16159
16161
|
seen.ref = def.innerType;
|
|
16160
16162
|
};
|
|
16161
|
-
var optionalProcessor = (
|
|
16162
|
-
const def =
|
|
16163
|
+
var optionalProcessor = (schema117, ctx, _json, params) => {
|
|
16164
|
+
const def = schema117._zod.def;
|
|
16163
16165
|
process(def.innerType, ctx, params);
|
|
16164
|
-
const seen = ctx.seen.get(
|
|
16166
|
+
const seen = ctx.seen.get(schema117);
|
|
16165
16167
|
seen.ref = def.innerType;
|
|
16166
16168
|
};
|
|
16167
|
-
var lazyProcessor = (
|
|
16168
|
-
const innerType =
|
|
16169
|
+
var lazyProcessor = (schema117, ctx, _json, params) => {
|
|
16170
|
+
const innerType = schema117._zod.innerType;
|
|
16169
16171
|
process(innerType, ctx, params);
|
|
16170
|
-
const seen = ctx.seen.get(
|
|
16172
|
+
const seen = ctx.seen.get(schema117);
|
|
16171
16173
|
seen.ref = innerType;
|
|
16172
16174
|
};
|
|
16173
16175
|
var allProcessors = {
|
|
@@ -16217,8 +16219,8 @@ function toJSONSchema(input, params) {
|
|
|
16217
16219
|
const ctx2 = initializeContext({ ...params, processors: allProcessors });
|
|
16218
16220
|
const defs = {};
|
|
16219
16221
|
for (const entry of registry2._idmap.entries()) {
|
|
16220
|
-
const [_,
|
|
16221
|
-
process(
|
|
16222
|
+
const [_, schema117] = entry;
|
|
16223
|
+
process(schema117, ctx2);
|
|
16222
16224
|
}
|
|
16223
16225
|
const schemas = {};
|
|
16224
16226
|
const external = {
|
|
@@ -16228,9 +16230,9 @@ function toJSONSchema(input, params) {
|
|
|
16228
16230
|
};
|
|
16229
16231
|
ctx2.external = external;
|
|
16230
16232
|
for (const entry of registry2._idmap.entries()) {
|
|
16231
|
-
const [key,
|
|
16232
|
-
extractDefs(ctx2,
|
|
16233
|
-
schemas[key] = finalize(ctx2,
|
|
16233
|
+
const [key, schema117] = entry;
|
|
16234
|
+
extractDefs(ctx2, schema117);
|
|
16235
|
+
schemas[key] = finalize(ctx2, schema117);
|
|
16234
16236
|
}
|
|
16235
16237
|
if (Object.keys(defs).length > 0) {
|
|
16236
16238
|
const defsSegment = ctx2.target === "draft-2020-12" ? "$defs" : "definitions";
|
|
@@ -16286,10 +16288,10 @@ var JSONSchemaGenerator = class {
|
|
|
16286
16288
|
...params?.io && { io: params.io }
|
|
16287
16289
|
});
|
|
16288
16290
|
}
|
|
16289
|
-
process(
|
|
16290
|
-
return process(
|
|
16291
|
+
process(schema117, _params = { path: [], schemaPath: [] }) {
|
|
16292
|
+
return process(schema117, this.ctx, _params);
|
|
16291
16293
|
}
|
|
16292
|
-
emit(
|
|
16294
|
+
emit(schema117, _params) {
|
|
16293
16295
|
if (_params) {
|
|
16294
16296
|
if (_params.cycles)
|
|
16295
16297
|
this.ctx.cycles = _params.cycles;
|
|
@@ -16298,8 +16300,8 @@ var JSONSchemaGenerator = class {
|
|
|
16298
16300
|
if (_params.external)
|
|
16299
16301
|
this.ctx.external = _params.external;
|
|
16300
16302
|
}
|
|
16301
|
-
extractDefs(this.ctx,
|
|
16302
|
-
const result = finalize(this.ctx,
|
|
16303
|
+
extractDefs(this.ctx, schema117);
|
|
16304
|
+
const result = finalize(this.ctx, schema117);
|
|
16303
16305
|
const { "~standard": _, ...plainResult } = result;
|
|
16304
16306
|
return plainResult;
|
|
16305
16307
|
}
|
|
@@ -17251,8 +17253,8 @@ var ZodArray = /* @__PURE__ */ $constructor("ZodArray", (inst, def) => {
|
|
|
17251
17253
|
function array(element, params) {
|
|
17252
17254
|
return _array(ZodArray, element, params);
|
|
17253
17255
|
}
|
|
17254
|
-
function keyof(
|
|
17255
|
-
const shape =
|
|
17256
|
+
function keyof(schema117) {
|
|
17257
|
+
const shape = schema117._zod.def.shape;
|
|
17256
17258
|
return _enum2(Object.keys(shape));
|
|
17257
17259
|
}
|
|
17258
17260
|
var ZodObject = /* @__PURE__ */ $constructor("ZodObject", (inst, def) => {
|
|
@@ -17875,11 +17877,11 @@ function json(params) {
|
|
|
17875
17877
|
});
|
|
17876
17878
|
return jsonSchema;
|
|
17877
17879
|
}
|
|
17878
|
-
function preprocess(fn,
|
|
17880
|
+
function preprocess(fn, schema117) {
|
|
17879
17881
|
return new ZodPreprocess({
|
|
17880
17882
|
type: "pipe",
|
|
17881
17883
|
in: transform(fn),
|
|
17882
|
-
out:
|
|
17884
|
+
out: schema117
|
|
17883
17885
|
});
|
|
17884
17886
|
}
|
|
17885
17887
|
init_esm_shims();
|
|
@@ -17971,8 +17973,8 @@ var RECOGNIZED_KEYS = /* @__PURE__ */ new Set([
|
|
|
17971
17973
|
"nullable",
|
|
17972
17974
|
"readOnly"
|
|
17973
17975
|
]);
|
|
17974
|
-
function detectVersion(
|
|
17975
|
-
const $schema =
|
|
17976
|
+
function detectVersion(schema117, defaultTarget) {
|
|
17977
|
+
const $schema = schema117.$schema;
|
|
17976
17978
|
if ($schema === "https://json-schema.org/draft/2020-12/schema") {
|
|
17977
17979
|
return "draft-2020-12";
|
|
17978
17980
|
}
|
|
@@ -18002,27 +18004,27 @@ function resolveRef(ref, ctx) {
|
|
|
18002
18004
|
}
|
|
18003
18005
|
throw new Error(`Reference not found: ${ref}`);
|
|
18004
18006
|
}
|
|
18005
|
-
function convertBaseSchema(
|
|
18006
|
-
if (
|
|
18007
|
-
if (typeof
|
|
18007
|
+
function convertBaseSchema(schema117, ctx) {
|
|
18008
|
+
if (schema117.not !== undefined) {
|
|
18009
|
+
if (typeof schema117.not === "object" && Object.keys(schema117.not).length === 0) {
|
|
18008
18010
|
return z.never();
|
|
18009
18011
|
}
|
|
18010
18012
|
throw new Error("not is not supported in Zod (except { not: {} } for never)");
|
|
18011
18013
|
}
|
|
18012
|
-
if (
|
|
18014
|
+
if (schema117.unevaluatedItems !== undefined) {
|
|
18013
18015
|
throw new Error("unevaluatedItems is not supported");
|
|
18014
18016
|
}
|
|
18015
|
-
if (
|
|
18017
|
+
if (schema117.unevaluatedProperties !== undefined) {
|
|
18016
18018
|
throw new Error("unevaluatedProperties is not supported");
|
|
18017
18019
|
}
|
|
18018
|
-
if (
|
|
18020
|
+
if (schema117.if !== undefined || schema117.then !== undefined || schema117.else !== undefined) {
|
|
18019
18021
|
throw new Error("Conditional schemas (if/then/else) are not supported");
|
|
18020
18022
|
}
|
|
18021
|
-
if (
|
|
18023
|
+
if (schema117.dependentSchemas !== undefined || schema117.dependentRequired !== undefined) {
|
|
18022
18024
|
throw new Error("dependentSchemas and dependentRequired are not supported");
|
|
18023
18025
|
}
|
|
18024
|
-
if (
|
|
18025
|
-
const refPath =
|
|
18026
|
+
if (schema117.$ref) {
|
|
18027
|
+
const refPath = schema117.$ref;
|
|
18026
18028
|
if (ctx.refs.has(refPath)) {
|
|
18027
18029
|
return ctx.refs.get(refPath);
|
|
18028
18030
|
}
|
|
@@ -18041,9 +18043,9 @@ function convertBaseSchema(schema124, ctx) {
|
|
|
18041
18043
|
ctx.processing.delete(refPath);
|
|
18042
18044
|
return zodSchema2;
|
|
18043
18045
|
}
|
|
18044
|
-
if (
|
|
18045
|
-
const enumValues =
|
|
18046
|
-
if (ctx.version === "openapi-3.0" &&
|
|
18046
|
+
if (schema117.enum !== undefined) {
|
|
18047
|
+
const enumValues = schema117.enum;
|
|
18048
|
+
if (ctx.version === "openapi-3.0" && schema117.nullable === true && enumValues.length === 1 && enumValues[0] === null) {
|
|
18047
18049
|
return z.null();
|
|
18048
18050
|
}
|
|
18049
18051
|
if (enumValues.length === 0) {
|
|
@@ -18061,13 +18063,13 @@ function convertBaseSchema(schema124, ctx) {
|
|
|
18061
18063
|
}
|
|
18062
18064
|
return z.union([literalSchemas[0], literalSchemas[1], ...literalSchemas.slice(2)]);
|
|
18063
18065
|
}
|
|
18064
|
-
if (
|
|
18065
|
-
return z.literal(
|
|
18066
|
+
if (schema117.const !== undefined) {
|
|
18067
|
+
return z.literal(schema117.const);
|
|
18066
18068
|
}
|
|
18067
|
-
const type =
|
|
18069
|
+
const type = schema117.type;
|
|
18068
18070
|
if (Array.isArray(type)) {
|
|
18069
18071
|
const typeSchemas = type.map((t8) => {
|
|
18070
|
-
const typeSchema = { ...
|
|
18072
|
+
const typeSchema = { ...schema117, type: t8 };
|
|
18071
18073
|
return convertBaseSchema(typeSchema, ctx);
|
|
18072
18074
|
});
|
|
18073
18075
|
if (typeSchemas.length === 0) {
|
|
@@ -18085,8 +18087,8 @@ function convertBaseSchema(schema124, ctx) {
|
|
|
18085
18087
|
switch (type) {
|
|
18086
18088
|
case "string": {
|
|
18087
18089
|
let stringSchema = z.string();
|
|
18088
|
-
if (
|
|
18089
|
-
const format =
|
|
18090
|
+
if (schema117.format) {
|
|
18091
|
+
const format = schema117.format;
|
|
18090
18092
|
if (format === "email") {
|
|
18091
18093
|
stringSchema = stringSchema.check(z.email());
|
|
18092
18094
|
} else if (format === "uri" || format === "uri-reference") {
|
|
@@ -18135,14 +18137,14 @@ function convertBaseSchema(schema124, ctx) {
|
|
|
18135
18137
|
stringSchema = stringSchema.check(z.ksuid());
|
|
18136
18138
|
}
|
|
18137
18139
|
}
|
|
18138
|
-
if (typeof
|
|
18139
|
-
stringSchema = stringSchema.min(
|
|
18140
|
+
if (typeof schema117.minLength === "number") {
|
|
18141
|
+
stringSchema = stringSchema.min(schema117.minLength);
|
|
18140
18142
|
}
|
|
18141
|
-
if (typeof
|
|
18142
|
-
stringSchema = stringSchema.max(
|
|
18143
|
+
if (typeof schema117.maxLength === "number") {
|
|
18144
|
+
stringSchema = stringSchema.max(schema117.maxLength);
|
|
18143
18145
|
}
|
|
18144
|
-
if (
|
|
18145
|
-
stringSchema = stringSchema.regex(new RegExp(
|
|
18146
|
+
if (schema117.pattern) {
|
|
18147
|
+
stringSchema = stringSchema.regex(new RegExp(schema117.pattern));
|
|
18146
18148
|
}
|
|
18147
18149
|
zodSchema = stringSchema;
|
|
18148
18150
|
break;
|
|
@@ -18150,24 +18152,24 @@ function convertBaseSchema(schema124, ctx) {
|
|
|
18150
18152
|
case "number":
|
|
18151
18153
|
case "integer": {
|
|
18152
18154
|
let numberSchema = type === "integer" ? z.number().int() : z.number();
|
|
18153
|
-
if (typeof
|
|
18154
|
-
numberSchema = numberSchema.min(
|
|
18155
|
+
if (typeof schema117.minimum === "number") {
|
|
18156
|
+
numberSchema = numberSchema.min(schema117.minimum);
|
|
18155
18157
|
}
|
|
18156
|
-
if (typeof
|
|
18157
|
-
numberSchema = numberSchema.max(
|
|
18158
|
+
if (typeof schema117.maximum === "number") {
|
|
18159
|
+
numberSchema = numberSchema.max(schema117.maximum);
|
|
18158
18160
|
}
|
|
18159
|
-
if (typeof
|
|
18160
|
-
numberSchema = numberSchema.gt(
|
|
18161
|
-
} else if (
|
|
18162
|
-
numberSchema = numberSchema.gt(
|
|
18161
|
+
if (typeof schema117.exclusiveMinimum === "number") {
|
|
18162
|
+
numberSchema = numberSchema.gt(schema117.exclusiveMinimum);
|
|
18163
|
+
} else if (schema117.exclusiveMinimum === true && typeof schema117.minimum === "number") {
|
|
18164
|
+
numberSchema = numberSchema.gt(schema117.minimum);
|
|
18163
18165
|
}
|
|
18164
|
-
if (typeof
|
|
18165
|
-
numberSchema = numberSchema.lt(
|
|
18166
|
-
} else if (
|
|
18167
|
-
numberSchema = numberSchema.lt(
|
|
18166
|
+
if (typeof schema117.exclusiveMaximum === "number") {
|
|
18167
|
+
numberSchema = numberSchema.lt(schema117.exclusiveMaximum);
|
|
18168
|
+
} else if (schema117.exclusiveMaximum === true && typeof schema117.maximum === "number") {
|
|
18169
|
+
numberSchema = numberSchema.lt(schema117.maximum);
|
|
18168
18170
|
}
|
|
18169
|
-
if (typeof
|
|
18170
|
-
numberSchema = numberSchema.multipleOf(
|
|
18171
|
+
if (typeof schema117.multipleOf === "number") {
|
|
18172
|
+
numberSchema = numberSchema.multipleOf(schema117.multipleOf);
|
|
18171
18173
|
}
|
|
18172
18174
|
zodSchema = numberSchema;
|
|
18173
18175
|
break;
|
|
@@ -18182,15 +18184,15 @@ function convertBaseSchema(schema124, ctx) {
|
|
|
18182
18184
|
}
|
|
18183
18185
|
case "object": {
|
|
18184
18186
|
const shape = {};
|
|
18185
|
-
const properties =
|
|
18186
|
-
const requiredSet = new Set(
|
|
18187
|
+
const properties = schema117.properties || {};
|
|
18188
|
+
const requiredSet = new Set(schema117.required || []);
|
|
18187
18189
|
for (const [key, propSchema] of Object.entries(properties)) {
|
|
18188
18190
|
const propZodSchema = convertSchema(propSchema, ctx);
|
|
18189
18191
|
shape[key] = requiredSet.has(key) ? propZodSchema : propZodSchema.optional();
|
|
18190
18192
|
}
|
|
18191
|
-
if (
|
|
18192
|
-
const keySchema = convertSchema(
|
|
18193
|
-
const valueSchema =
|
|
18193
|
+
if (schema117.propertyNames) {
|
|
18194
|
+
const keySchema = convertSchema(schema117.propertyNames, ctx);
|
|
18195
|
+
const valueSchema = schema117.additionalProperties && typeof schema117.additionalProperties === "object" ? convertSchema(schema117.additionalProperties, ctx) : z.any();
|
|
18194
18196
|
if (Object.keys(shape).length === 0) {
|
|
18195
18197
|
zodSchema = z.record(keySchema, valueSchema);
|
|
18196
18198
|
break;
|
|
@@ -18200,8 +18202,8 @@ function convertBaseSchema(schema124, ctx) {
|
|
|
18200
18202
|
zodSchema = z.intersection(objectSchema2, recordSchema);
|
|
18201
18203
|
break;
|
|
18202
18204
|
}
|
|
18203
|
-
if (
|
|
18204
|
-
const patternProps =
|
|
18205
|
+
if (schema117.patternProperties) {
|
|
18206
|
+
const patternProps = schema117.patternProperties;
|
|
18205
18207
|
const patternKeys = Object.keys(patternProps);
|
|
18206
18208
|
const looseRecords = [];
|
|
18207
18209
|
for (const pattern of patternKeys) {
|
|
@@ -18228,18 +18230,18 @@ function convertBaseSchema(schema124, ctx) {
|
|
|
18228
18230
|
break;
|
|
18229
18231
|
}
|
|
18230
18232
|
const objectSchema = z.object(shape);
|
|
18231
|
-
if (
|
|
18233
|
+
if (schema117.additionalProperties === false) {
|
|
18232
18234
|
zodSchema = objectSchema.strict();
|
|
18233
|
-
} else if (typeof
|
|
18234
|
-
zodSchema = objectSchema.catchall(convertSchema(
|
|
18235
|
+
} else if (typeof schema117.additionalProperties === "object") {
|
|
18236
|
+
zodSchema = objectSchema.catchall(convertSchema(schema117.additionalProperties, ctx));
|
|
18235
18237
|
} else {
|
|
18236
18238
|
zodSchema = objectSchema.passthrough();
|
|
18237
18239
|
}
|
|
18238
18240
|
break;
|
|
18239
18241
|
}
|
|
18240
18242
|
case "array": {
|
|
18241
|
-
const prefixItems =
|
|
18242
|
-
const items =
|
|
18243
|
+
const prefixItems = schema117.prefixItems;
|
|
18244
|
+
const items = schema117.items;
|
|
18243
18245
|
if (prefixItems && Array.isArray(prefixItems)) {
|
|
18244
18246
|
const tupleItems = prefixItems.map((item) => convertSchema(item, ctx));
|
|
18245
18247
|
const rest = items && typeof items === "object" && !Array.isArray(items) ? convertSchema(items, ctx) : undefined;
|
|
@@ -18248,34 +18250,34 @@ function convertBaseSchema(schema124, ctx) {
|
|
|
18248
18250
|
} else {
|
|
18249
18251
|
zodSchema = z.tuple(tupleItems);
|
|
18250
18252
|
}
|
|
18251
|
-
if (typeof
|
|
18252
|
-
zodSchema = zodSchema.check(z.minLength(
|
|
18253
|
+
if (typeof schema117.minItems === "number") {
|
|
18254
|
+
zodSchema = zodSchema.check(z.minLength(schema117.minItems));
|
|
18253
18255
|
}
|
|
18254
|
-
if (typeof
|
|
18255
|
-
zodSchema = zodSchema.check(z.maxLength(
|
|
18256
|
+
if (typeof schema117.maxItems === "number") {
|
|
18257
|
+
zodSchema = zodSchema.check(z.maxLength(schema117.maxItems));
|
|
18256
18258
|
}
|
|
18257
18259
|
} else if (Array.isArray(items)) {
|
|
18258
18260
|
const tupleItems = items.map((item) => convertSchema(item, ctx));
|
|
18259
|
-
const rest =
|
|
18261
|
+
const rest = schema117.additionalItems && typeof schema117.additionalItems === "object" ? convertSchema(schema117.additionalItems, ctx) : undefined;
|
|
18260
18262
|
if (rest) {
|
|
18261
18263
|
zodSchema = z.tuple(tupleItems).rest(rest);
|
|
18262
18264
|
} else {
|
|
18263
18265
|
zodSchema = z.tuple(tupleItems);
|
|
18264
18266
|
}
|
|
18265
|
-
if (typeof
|
|
18266
|
-
zodSchema = zodSchema.check(z.minLength(
|
|
18267
|
+
if (typeof schema117.minItems === "number") {
|
|
18268
|
+
zodSchema = zodSchema.check(z.minLength(schema117.minItems));
|
|
18267
18269
|
}
|
|
18268
|
-
if (typeof
|
|
18269
|
-
zodSchema = zodSchema.check(z.maxLength(
|
|
18270
|
+
if (typeof schema117.maxItems === "number") {
|
|
18271
|
+
zodSchema = zodSchema.check(z.maxLength(schema117.maxItems));
|
|
18270
18272
|
}
|
|
18271
18273
|
} else if (items !== undefined) {
|
|
18272
18274
|
const element = convertSchema(items, ctx);
|
|
18273
18275
|
let arraySchema = z.array(element);
|
|
18274
|
-
if (typeof
|
|
18275
|
-
arraySchema = arraySchema.min(
|
|
18276
|
+
if (typeof schema117.minItems === "number") {
|
|
18277
|
+
arraySchema = arraySchema.min(schema117.minItems);
|
|
18276
18278
|
}
|
|
18277
|
-
if (typeof
|
|
18278
|
-
arraySchema = arraySchema.max(
|
|
18279
|
+
if (typeof schema117.maxItems === "number") {
|
|
18280
|
+
arraySchema = arraySchema.max(schema117.maxItems);
|
|
18279
18281
|
}
|
|
18280
18282
|
zodSchema = arraySchema;
|
|
18281
18283
|
} else {
|
|
@@ -18288,76 +18290,76 @@ function convertBaseSchema(schema124, ctx) {
|
|
|
18288
18290
|
}
|
|
18289
18291
|
return zodSchema;
|
|
18290
18292
|
}
|
|
18291
|
-
function convertSchema(
|
|
18292
|
-
if (typeof
|
|
18293
|
-
return
|
|
18293
|
+
function convertSchema(schema117, ctx) {
|
|
18294
|
+
if (typeof schema117 === "boolean") {
|
|
18295
|
+
return schema117 ? z.any() : z.never();
|
|
18294
18296
|
}
|
|
18295
|
-
let baseSchema = convertBaseSchema(
|
|
18296
|
-
const hasExplicitType =
|
|
18297
|
-
if (
|
|
18298
|
-
const options =
|
|
18297
|
+
let baseSchema = convertBaseSchema(schema117, ctx);
|
|
18298
|
+
const hasExplicitType = schema117.type || schema117.enum !== undefined || schema117.const !== undefined;
|
|
18299
|
+
if (schema117.anyOf && Array.isArray(schema117.anyOf)) {
|
|
18300
|
+
const options = schema117.anyOf.map((s) => convertSchema(s, ctx));
|
|
18299
18301
|
const anyOfUnion = z.union(options);
|
|
18300
18302
|
baseSchema = hasExplicitType ? z.intersection(baseSchema, anyOfUnion) : anyOfUnion;
|
|
18301
18303
|
}
|
|
18302
|
-
if (
|
|
18303
|
-
const options =
|
|
18304
|
+
if (schema117.oneOf && Array.isArray(schema117.oneOf)) {
|
|
18305
|
+
const options = schema117.oneOf.map((s) => convertSchema(s, ctx));
|
|
18304
18306
|
const oneOfUnion = z.xor(options);
|
|
18305
18307
|
baseSchema = hasExplicitType ? z.intersection(baseSchema, oneOfUnion) : oneOfUnion;
|
|
18306
18308
|
}
|
|
18307
|
-
if (
|
|
18308
|
-
if (
|
|
18309
|
+
if (schema117.allOf && Array.isArray(schema117.allOf)) {
|
|
18310
|
+
if (schema117.allOf.length === 0) {
|
|
18309
18311
|
baseSchema = hasExplicitType ? baseSchema : z.any();
|
|
18310
18312
|
} else {
|
|
18311
|
-
let result = hasExplicitType ? baseSchema : convertSchema(
|
|
18313
|
+
let result = hasExplicitType ? baseSchema : convertSchema(schema117.allOf[0], ctx);
|
|
18312
18314
|
const startIdx = hasExplicitType ? 0 : 1;
|
|
18313
|
-
for (let i = startIdx;i <
|
|
18314
|
-
result = z.intersection(result, convertSchema(
|
|
18315
|
+
for (let i = startIdx;i < schema117.allOf.length; i++) {
|
|
18316
|
+
result = z.intersection(result, convertSchema(schema117.allOf[i], ctx));
|
|
18315
18317
|
}
|
|
18316
18318
|
baseSchema = result;
|
|
18317
18319
|
}
|
|
18318
18320
|
}
|
|
18319
|
-
if (
|
|
18321
|
+
if (schema117.nullable === true && ctx.version === "openapi-3.0") {
|
|
18320
18322
|
baseSchema = z.nullable(baseSchema);
|
|
18321
18323
|
}
|
|
18322
|
-
if (
|
|
18324
|
+
if (schema117.readOnly === true) {
|
|
18323
18325
|
baseSchema = z.readonly(baseSchema);
|
|
18324
18326
|
}
|
|
18325
|
-
if (
|
|
18326
|
-
baseSchema = baseSchema.default(
|
|
18327
|
+
if (schema117.default !== undefined) {
|
|
18328
|
+
baseSchema = baseSchema.default(schema117.default);
|
|
18327
18329
|
}
|
|
18328
18330
|
const extraMeta = {};
|
|
18329
18331
|
const coreMetadataKeys = ["$id", "id", "$comment", "$anchor", "$vocabulary", "$dynamicRef", "$dynamicAnchor"];
|
|
18330
18332
|
for (const key of coreMetadataKeys) {
|
|
18331
|
-
if (key in
|
|
18332
|
-
extraMeta[key] =
|
|
18333
|
+
if (key in schema117) {
|
|
18334
|
+
extraMeta[key] = schema117[key];
|
|
18333
18335
|
}
|
|
18334
18336
|
}
|
|
18335
18337
|
const contentMetadataKeys = ["contentEncoding", "contentMediaType", "contentSchema"];
|
|
18336
18338
|
for (const key of contentMetadataKeys) {
|
|
18337
|
-
if (key in
|
|
18338
|
-
extraMeta[key] =
|
|
18339
|
+
if (key in schema117) {
|
|
18340
|
+
extraMeta[key] = schema117[key];
|
|
18339
18341
|
}
|
|
18340
18342
|
}
|
|
18341
|
-
for (const key of Object.keys(
|
|
18343
|
+
for (const key of Object.keys(schema117)) {
|
|
18342
18344
|
if (!RECOGNIZED_KEYS.has(key)) {
|
|
18343
|
-
extraMeta[key] =
|
|
18345
|
+
extraMeta[key] = schema117[key];
|
|
18344
18346
|
}
|
|
18345
18347
|
}
|
|
18346
18348
|
if (Object.keys(extraMeta).length > 0) {
|
|
18347
18349
|
ctx.registry.add(baseSchema, extraMeta);
|
|
18348
18350
|
}
|
|
18349
|
-
if (
|
|
18350
|
-
baseSchema = baseSchema.describe(
|
|
18351
|
+
if (schema117.description) {
|
|
18352
|
+
baseSchema = baseSchema.describe(schema117.description);
|
|
18351
18353
|
}
|
|
18352
18354
|
return baseSchema;
|
|
18353
18355
|
}
|
|
18354
|
-
function fromJSONSchema(
|
|
18355
|
-
if (typeof
|
|
18356
|
-
return
|
|
18356
|
+
function fromJSONSchema(schema117, params) {
|
|
18357
|
+
if (typeof schema117 === "boolean") {
|
|
18358
|
+
return schema117 ? z.any() : z.never();
|
|
18357
18359
|
}
|
|
18358
18360
|
let normalized;
|
|
18359
18361
|
try {
|
|
18360
|
-
normalized = JSON.parse(JSON.stringify(
|
|
18362
|
+
normalized = JSON.parse(JSON.stringify(schema117));
|
|
18361
18363
|
} catch {
|
|
18362
18364
|
throw new Error("fromJSONSchema input is not valid JSON (possibly cyclic); use $defs/$ref for recursive schemas");
|
|
18363
18365
|
}
|
|
@@ -45516,9 +45518,9 @@ var migration86 = {
|
|
|
45516
45518
|
const d = def;
|
|
45517
45519
|
const voiceProps = d.inputDefinition?.properties?.voice;
|
|
45518
45520
|
if (voiceProps?.properties) {
|
|
45519
|
-
for (const [name,
|
|
45521
|
+
for (const [name, schema117] of Object.entries(NEW_VOICE_INPUT_PROPERTIES)) {
|
|
45520
45522
|
if (!voiceProps.properties[name])
|
|
45521
|
-
voiceProps.properties[name] =
|
|
45523
|
+
voiceProps.properties[name] = schema117;
|
|
45522
45524
|
}
|
|
45523
45525
|
}
|
|
45524
45526
|
const advanced = d.form?.sections?.find((section) => section.id === "section-advanced");
|
|
@@ -47762,7 +47764,6 @@ __export2(core_datafabric_read_exports, {
|
|
|
47762
47764
|
migrations: () => migrations47,
|
|
47763
47765
|
v1_0: () => definition136,
|
|
47764
47766
|
v1_1: () => definition137,
|
|
47765
|
-
v1_2: () => definition138,
|
|
47766
47767
|
versionHashes: () => versionHashes48
|
|
47767
47768
|
});
|
|
47768
47769
|
var inputDefinitionSchema91 = external_exports.object({
|
|
@@ -47966,123 +47967,6 @@ var definition137 = {
|
|
|
47966
47967
|
]
|
|
47967
47968
|
}
|
|
47968
47969
|
};
|
|
47969
|
-
var inputDefinitionSchema93 = external_exports.object({
|
|
47970
|
-
type: external_exports.literal("object"),
|
|
47971
|
-
properties: external_exports.object({
|
|
47972
|
-
entityConfig: external_exports.object({ type: external_exports.literal("object") }).passthrough()
|
|
47973
|
-
}).passthrough()
|
|
47974
|
-
}).passthrough();
|
|
47975
|
-
var formSchema103 = external_exports.object({
|
|
47976
|
-
id: external_exports.literal("read-entity-properties"),
|
|
47977
|
-
title: external_exports.string(),
|
|
47978
|
-
sections: external_exports.tuple([
|
|
47979
|
-
external_exports.object({
|
|
47980
|
-
id: external_exports.literal("entity-config"),
|
|
47981
|
-
fields: external_exports.tuple([
|
|
47982
|
-
external_exports.object({
|
|
47983
|
-
name: external_exports.literal("inputs.entityConfig"),
|
|
47984
|
-
type: external_exports.literal("custom"),
|
|
47985
|
-
component: external_exports.literal("entity-config")
|
|
47986
|
-
}).passthrough()
|
|
47987
|
-
])
|
|
47988
|
-
}).passthrough()
|
|
47989
|
-
])
|
|
47990
|
-
}).passthrough();
|
|
47991
|
-
var schema112 = nodeManifestSchema.extend({
|
|
47992
|
-
nodeType: external_exports.literal("core.datafabric.read"),
|
|
47993
|
-
version: external_exports.literal("1.2"),
|
|
47994
|
-
inputDefinition: inputDefinitionSchema93,
|
|
47995
|
-
form: formSchema103
|
|
47996
|
-
});
|
|
47997
|
-
var LABEL = "Read entity records";
|
|
47998
|
-
var LEGACY_LABEL = /^Read (?:Entity|entity)( \d+)?$/;
|
|
47999
|
-
var migration90 = {
|
|
48000
|
-
nodeType: "core.datafabric.read",
|
|
48001
|
-
from: "1.1",
|
|
48002
|
-
to: "1.2",
|
|
48003
|
-
description: "This node is now called Read entity records, so it reads as acting on records inside an entity rather than on the entity itself.",
|
|
48004
|
-
applyDefinition(_def) {
|
|
48005
|
-
return structuredClone(definition138);
|
|
48006
|
-
},
|
|
48007
|
-
applyInstance(node) {
|
|
48008
|
-
const display = node.display;
|
|
48009
|
-
if (typeof display?.label !== "string")
|
|
48010
|
-
return node;
|
|
48011
|
-
const match = LEGACY_LABEL.exec(display.label);
|
|
48012
|
-
return match ? { ...node, display: { ...display, label: `${LABEL}${match[1] ?? ""}` } } : node;
|
|
48013
|
-
}
|
|
48014
|
-
};
|
|
48015
|
-
var definition138 = {
|
|
48016
|
-
nodeType: "core.datafabric.read",
|
|
48017
|
-
version: "1.2",
|
|
48018
|
-
category: "data",
|
|
48019
|
-
description: "Read one or more entity records from Data Fabric",
|
|
48020
|
-
tags: ["datafabric", "entity", "data", "read", "query"],
|
|
48021
|
-
sortOrder: categorySortOrders["data"] + 5,
|
|
48022
|
-
display: {
|
|
48023
|
-
label: LABEL,
|
|
48024
|
-
icon: "layers-arrow-up-right"
|
|
48025
|
-
},
|
|
48026
|
-
handleConfiguration: [
|
|
48027
|
-
{
|
|
48028
|
-
position: "left",
|
|
48029
|
-
handles: [{ id: "input", type: "target", handleType: "input" }]
|
|
48030
|
-
},
|
|
48031
|
-
{
|
|
48032
|
-
position: "right",
|
|
48033
|
-
handles: [{ id: "output", type: "source", handleType: "output" }]
|
|
48034
|
-
}
|
|
48035
|
-
],
|
|
48036
|
-
model: {
|
|
48037
|
-
type: "bpmn:Task",
|
|
48038
|
-
debug: { runtime: "bpmnEngine" }
|
|
48039
|
-
},
|
|
48040
|
-
runtimeConstraints: { exclude: ["api-function"] },
|
|
48041
|
-
inputDefinition: {
|
|
48042
|
-
type: "object",
|
|
48043
|
-
properties: {
|
|
48044
|
-
entityConfig: {
|
|
48045
|
-
type: "object",
|
|
48046
|
-
properties: {
|
|
48047
|
-
entityName: { type: "string", minLength: 1, errorMessage: "An entity must be selected" },
|
|
48048
|
-
resultMode: {
|
|
48049
|
-
type: "string",
|
|
48050
|
-
enum: ["single", "multiple"],
|
|
48051
|
-
description: "Whether the node reads one record or a list of records",
|
|
48052
|
-
errorMessage: "Choose whether to read one record or multiple records"
|
|
48053
|
-
}
|
|
48054
|
-
},
|
|
48055
|
-
required: ["entityName"],
|
|
48056
|
-
errorMessage: { required: "An entity must be selected" }
|
|
48057
|
-
}
|
|
48058
|
-
},
|
|
48059
|
-
required: ["entityConfig"]
|
|
48060
|
-
},
|
|
48061
|
-
inputDefaults: {
|
|
48062
|
-
entityConfig: { resultMode: "single" }
|
|
48063
|
-
},
|
|
48064
|
-
outputDefinition: {
|
|
48065
|
-
output: {
|
|
48066
|
-
type: "jsonSchema",
|
|
48067
|
-
description: 'Entity record read by this node, or the matching records under "results"',
|
|
48068
|
-
source: "=response",
|
|
48069
|
-
var: "output"
|
|
48070
|
-
}
|
|
48071
|
-
},
|
|
48072
|
-
form: {
|
|
48073
|
-
id: "read-entity-properties",
|
|
48074
|
-
title: "Read entity records configuration",
|
|
48075
|
-
sections: [
|
|
48076
|
-
{
|
|
48077
|
-
id: "entity-config",
|
|
48078
|
-
title: "Entity configuration",
|
|
48079
|
-
collapsible: true,
|
|
48080
|
-
defaultExpanded: true,
|
|
48081
|
-
fields: [{ name: "inputs.entityConfig", type: "custom", component: "entity-config", label: "" }]
|
|
48082
|
-
}
|
|
48083
|
-
]
|
|
48084
|
-
}
|
|
48085
|
-
};
|
|
48086
47970
|
var NODE_I18N48 = {
|
|
48087
47971
|
description: "manifest_node_readEntity_description",
|
|
48088
47972
|
display: {
|
|
@@ -48103,15 +47987,14 @@ var NODE_I18N48 = {
|
|
|
48103
47987
|
}
|
|
48104
47988
|
};
|
|
48105
47989
|
var NODE_I18N_OVERLAYS48 = {};
|
|
48106
|
-
var core_datafabric_read_default =
|
|
48107
|
-
var latest48 =
|
|
48108
|
-
var allVersions48 = [definition136, definition137
|
|
48109
|
-
var latestSchema37 =
|
|
48110
|
-
var migrations47 = [migration89
|
|
47990
|
+
var core_datafabric_read_default = definition137;
|
|
47991
|
+
var latest48 = definition137;
|
|
47992
|
+
var allVersions48 = [definition136, definition137];
|
|
47993
|
+
var latestSchema37 = schema111;
|
|
47994
|
+
var migrations47 = [migration89];
|
|
48111
47995
|
var versionHashes48 = {
|
|
48112
47996
|
"1.0": "ad95a30a0bb6612a808ee0508cb2298379f535e33a8cf1a1502c7f312216a1e5",
|
|
48113
|
-
"1.1": "b651e40bd3ad016730662b4519124b15d3fcf8371e89ff847b23bddb46fa6620"
|
|
48114
|
-
"1.2": "b6f55a3978936568149c73a4c0bb2c518c41e8cf2a3c81a1dd168ca0be4d42f3"
|
|
47997
|
+
"1.1": "b651e40bd3ad016730662b4519124b15d3fcf8371e89ff847b23bddb46fa6620"
|
|
48115
47998
|
};
|
|
48116
47999
|
var uipath_document_classify_exports = {};
|
|
48117
48000
|
__export2(uipath_document_classify_exports, {
|
|
@@ -48125,7 +48008,7 @@ __export2(uipath_document_classify_exports, {
|
|
|
48125
48008
|
latest: () => latest49,
|
|
48126
48009
|
latestSchema: () => latestSchema38,
|
|
48127
48010
|
migrations: () => migrations48,
|
|
48128
|
-
v1_0: () =>
|
|
48011
|
+
v1_0: () => definition138,
|
|
48129
48012
|
versionHashes: () => versionHashes49
|
|
48130
48013
|
});
|
|
48131
48014
|
function hasFileResource(prop) {
|
|
@@ -48271,8 +48154,8 @@ function mapOutputTypes(props) {
|
|
|
48271
48154
|
function parseOrchestratorIO(release) {
|
|
48272
48155
|
let inputs;
|
|
48273
48156
|
let inputProperties;
|
|
48274
|
-
const resolveSchemaProperties = (
|
|
48275
|
-
const parsed = toSchema(
|
|
48157
|
+
const resolveSchemaProperties = (schema117) => {
|
|
48158
|
+
const parsed = toSchema(schema117);
|
|
48276
48159
|
const resolved = resolveJsonSchema(parsed).schema;
|
|
48277
48160
|
return resolved.properties;
|
|
48278
48161
|
};
|
|
@@ -48308,7 +48191,7 @@ function normalizeTags(tags) {
|
|
|
48308
48191
|
function sanitizeNodeType(value) {
|
|
48309
48192
|
return value.replace(/[^a-zA-Z0-9.]+/g, "-").toLowerCase();
|
|
48310
48193
|
}
|
|
48311
|
-
var
|
|
48194
|
+
var schema112 = {
|
|
48312
48195
|
$schema: "http://json-schema.org/draft-07/schema#",
|
|
48313
48196
|
definitions: {
|
|
48314
48197
|
"UiPath.DocumentProcessing.Contracts.Actions.DocumentActionPriority": {
|
|
@@ -51547,7 +51430,7 @@ var DOCUMENT_CLASSIFY_EVALUATION_TARGET = {
|
|
|
51547
51430
|
attachmentPolicy: { acceptedExtensions: [".pdf", ".png", ".jpg", ".jpeg", ".tif", ".tiff"] }
|
|
51548
51431
|
};
|
|
51549
51432
|
var CLASSIFICATION_RESULT_SCHEMA = resolveJsonSchema({
|
|
51550
|
-
...
|
|
51433
|
+
...schema112,
|
|
51551
51434
|
$ref: "#/definitions/UiPath.DocumentProcessing.Contracts.Results.ClassificationResult"
|
|
51552
51435
|
}).schema;
|
|
51553
51436
|
var DEFAULT_CLASSIFY_MODEL_CONFIG = {
|
|
@@ -51561,7 +51444,7 @@ var DEFAULT_CLASSIFICATION_SCHEMA = {
|
|
|
51561
51444
|
generalInstructions: "",
|
|
51562
51445
|
classes: []
|
|
51563
51446
|
};
|
|
51564
|
-
var
|
|
51447
|
+
var inputDefinitionSchema93 = external_exports.object({
|
|
51565
51448
|
type: external_exports.literal("object"),
|
|
51566
51449
|
properties: external_exports.object({
|
|
51567
51450
|
modelConfig: external_exports.object({ type: external_exports.literal("object") }).passthrough(),
|
|
@@ -51575,7 +51458,7 @@ var outputDefinitionSchema70 = external_exports.object({
|
|
|
51575
51458
|
output: external_exports.object({ type: external_exports.literal("object") }).passthrough(),
|
|
51576
51459
|
error: external_exports.object({ type: external_exports.literal("object") }).passthrough()
|
|
51577
51460
|
});
|
|
51578
|
-
var
|
|
51461
|
+
var formSchema103 = external_exports.object({
|
|
51579
51462
|
id: external_exports.literal("classify-document-properties"),
|
|
51580
51463
|
title: external_exports.string(),
|
|
51581
51464
|
sections: external_exports.tuple([
|
|
@@ -51599,14 +51482,14 @@ var formSchema104 = external_exports.object({
|
|
|
51599
51482
|
}).passthrough()
|
|
51600
51483
|
])
|
|
51601
51484
|
}).passthrough();
|
|
51602
|
-
var
|
|
51485
|
+
var schema113 = nodeManifestSchema.extend({
|
|
51603
51486
|
nodeType: external_exports.literal("uipath.document.classify"),
|
|
51604
51487
|
version: external_exports.literal("1.0"),
|
|
51605
|
-
inputDefinition:
|
|
51488
|
+
inputDefinition: inputDefinitionSchema93,
|
|
51606
51489
|
outputDefinition: outputDefinitionSchema70,
|
|
51607
|
-
form:
|
|
51490
|
+
form: formSchema103
|
|
51608
51491
|
});
|
|
51609
|
-
var
|
|
51492
|
+
var definition138 = {
|
|
51610
51493
|
nodeType: "uipath.document.classify",
|
|
51611
51494
|
version: "1.0",
|
|
51612
51495
|
category: "document-processing",
|
|
@@ -51760,10 +51643,10 @@ var NODE_I18N49 = {
|
|
|
51760
51643
|
}
|
|
51761
51644
|
};
|
|
51762
51645
|
var NODE_I18N_OVERLAYS49 = {};
|
|
51763
|
-
var uipath_document_classify_default =
|
|
51764
|
-
var latest49 =
|
|
51765
|
-
var allVersions49 = [
|
|
51766
|
-
var latestSchema38 =
|
|
51646
|
+
var uipath_document_classify_default = definition138;
|
|
51647
|
+
var latest49 = definition138;
|
|
51648
|
+
var allVersions49 = [definition138];
|
|
51649
|
+
var latestSchema38 = schema113;
|
|
51767
51650
|
var migrations48 = [];
|
|
51768
51651
|
var versionHashes49 = {
|
|
51769
51652
|
"1.0": "6ee9b556527bb29d35f58f67efa522cda1d3e1b136e4bb0f4766ce66683fe7fb"
|
|
@@ -51777,18 +51660,16 @@ __export2(core_datafabric_update_exports, {
|
|
|
51777
51660
|
latest: () => latest50,
|
|
51778
51661
|
latestSchema: () => latestSchema39,
|
|
51779
51662
|
migrations: () => migrations49,
|
|
51780
|
-
v1_0: () =>
|
|
51781
|
-
v1_1: () => definition141,
|
|
51782
|
-
v1_2: () => definition142,
|
|
51663
|
+
v1_0: () => definition139,
|
|
51783
51664
|
versionHashes: () => versionHashes50
|
|
51784
51665
|
});
|
|
51785
|
-
var
|
|
51666
|
+
var inputDefinitionSchema94 = external_exports.object({
|
|
51786
51667
|
type: external_exports.literal("object"),
|
|
51787
51668
|
properties: external_exports.object({
|
|
51788
51669
|
entityConfig: external_exports.object({ type: external_exports.literal("object") }).passthrough()
|
|
51789
51670
|
}).passthrough()
|
|
51790
51671
|
}).passthrough();
|
|
51791
|
-
var
|
|
51672
|
+
var formSchema104 = external_exports.object({
|
|
51792
51673
|
id: external_exports.literal("update-entity-properties"),
|
|
51793
51674
|
title: external_exports.string(),
|
|
51794
51675
|
sections: external_exports.tuple([
|
|
@@ -51804,13 +51685,13 @@ var formSchema105 = external_exports.object({
|
|
|
51804
51685
|
}).passthrough()
|
|
51805
51686
|
])
|
|
51806
51687
|
}).passthrough();
|
|
51807
|
-
var
|
|
51688
|
+
var schema114 = nodeManifestSchema.extend({
|
|
51808
51689
|
nodeType: external_exports.literal("core.datafabric.update"),
|
|
51809
51690
|
version: external_exports.literal("1.0"),
|
|
51810
|
-
inputDefinition:
|
|
51811
|
-
form:
|
|
51691
|
+
inputDefinition: inputDefinitionSchema94,
|
|
51692
|
+
form: formSchema104
|
|
51812
51693
|
});
|
|
51813
|
-
var
|
|
51694
|
+
var definition139 = {
|
|
51814
51695
|
nodeType: "core.datafabric.update",
|
|
51815
51696
|
version: "1.0",
|
|
51816
51697
|
category: "data",
|
|
@@ -51844,749 +51725,25 @@ var definition140 = {
|
|
|
51844
51725
|
type: "object",
|
|
51845
51726
|
properties: {
|
|
51846
51727
|
entityName: { type: "string", minLength: 1, errorMessage: "An entity must be selected" },
|
|
51847
|
-
recordId: { type: "string" },
|
|
51848
|
-
readEntityNodeId: { type: "string" },
|
|
51849
|
-
fieldUpdates: {
|
|
51850
|
-
type: "array",
|
|
51851
|
-
contains: {
|
|
51852
|
-
type: "object",
|
|
51853
|
-
properties: { field: { type: "string", pattern: "\\S" } },
|
|
51854
|
-
required: ["field"]
|
|
51855
|
-
},
|
|
51856
|
-
errorMessage: "Select a field to update"
|
|
51857
|
-
}
|
|
51858
|
-
},
|
|
51859
|
-
required: ["entityName", "fieldUpdates"],
|
|
51860
|
-
allOf: [
|
|
51861
|
-
{
|
|
51862
|
-
if: { properties: { recordSource: { const: "byId" } }, required: ["recordSource"] },
|
|
51863
|
-
then: {
|
|
51864
|
-
required: ["recordId"],
|
|
51865
|
-
properties: { recordId: { type: "string", pattern: "\\S" } },
|
|
51866
|
-
errorMessage: "A record ID is required"
|
|
51867
|
-
}
|
|
51868
|
-
},
|
|
51869
|
-
{
|
|
51870
|
-
if: { properties: { recordSource: { const: "fromRead" } }, required: ["recordSource"] },
|
|
51871
|
-
then: {
|
|
51872
|
-
required: ["readEntityNodeId"],
|
|
51873
|
-
properties: { readEntityNodeId: { type: "string", pattern: "\\S" } },
|
|
51874
|
-
errorMessage: "A Read entity node must be selected"
|
|
51875
|
-
}
|
|
51876
|
-
}
|
|
51877
|
-
],
|
|
51878
|
-
errorMessage: {
|
|
51879
|
-
required: {
|
|
51880
|
-
entityName: "An entity must be selected",
|
|
51881
|
-
fieldUpdates: "Select a field to update"
|
|
51882
|
-
}
|
|
51883
|
-
}
|
|
51884
|
-
}
|
|
51885
|
-
},
|
|
51886
|
-
required: ["entityConfig"]
|
|
51887
|
-
},
|
|
51888
|
-
inputDefaults: {
|
|
51889
|
-
entityConfig: {}
|
|
51890
|
-
},
|
|
51891
|
-
outputDefinition: {
|
|
51892
|
-
output: { type: "jsonSchema", description: "Entity record after the update", source: "=response", var: "output" }
|
|
51893
|
-
},
|
|
51894
|
-
form: {
|
|
51895
|
-
id: "update-entity-properties",
|
|
51896
|
-
title: "Update entity configuration",
|
|
51897
|
-
sections: [
|
|
51898
|
-
{
|
|
51899
|
-
id: "entity-config",
|
|
51900
|
-
title: "Entity configuration",
|
|
51901
|
-
collapsible: true,
|
|
51902
|
-
defaultExpanded: true,
|
|
51903
|
-
fields: [{ name: "inputs.entityConfig", type: "custom", component: "update-entity-config", label: "" }]
|
|
51904
|
-
}
|
|
51905
|
-
]
|
|
51906
|
-
}
|
|
51907
|
-
};
|
|
51908
|
-
var inputDefinitionSchema96 = external_exports.object({
|
|
51909
|
-
type: external_exports.literal("object"),
|
|
51910
|
-
properties: external_exports.object({
|
|
51911
|
-
entityConfig: external_exports.object({ type: external_exports.literal("object") }).passthrough()
|
|
51912
|
-
}).passthrough()
|
|
51913
|
-
}).passthrough();
|
|
51914
|
-
var formSchema106 = external_exports.object({
|
|
51915
|
-
id: external_exports.literal("update-entity-properties"),
|
|
51916
|
-
title: external_exports.string(),
|
|
51917
|
-
sections: external_exports.tuple([
|
|
51918
|
-
external_exports.object({
|
|
51919
|
-
id: external_exports.literal("entity-config"),
|
|
51920
|
-
fields: external_exports.tuple([
|
|
51921
|
-
external_exports.object({
|
|
51922
|
-
name: external_exports.literal("inputs.entityConfig"),
|
|
51923
|
-
type: external_exports.literal("custom"),
|
|
51924
|
-
component: external_exports.literal("update-entity-config")
|
|
51925
|
-
}).passthrough()
|
|
51926
|
-
])
|
|
51927
|
-
}).passthrough()
|
|
51928
|
-
])
|
|
51929
|
-
}).passthrough();
|
|
51930
|
-
var schema116 = nodeManifestSchema.extend({
|
|
51931
|
-
nodeType: external_exports.literal("core.datafabric.update"),
|
|
51932
|
-
version: external_exports.literal("1.1"),
|
|
51933
|
-
inputDefinition: inputDefinitionSchema96,
|
|
51934
|
-
form: formSchema106
|
|
51935
|
-
});
|
|
51936
|
-
var NON_BLANK_EXPRESSION = {
|
|
51937
|
-
type: "object",
|
|
51938
|
-
properties: { type: { const: "jsExpression" }, expression: { type: "string", pattern: "\\S" } },
|
|
51939
|
-
required: ["type", "expression"]
|
|
51940
|
-
};
|
|
51941
|
-
var RECORD_ID_TYPE = { anyOf: [{ type: "string" }, NON_BLANK_EXPRESSION] };
|
|
51942
|
-
var RECORD_ID_PRESENT = { anyOf: [{ type: "string", pattern: "\\S" }, NON_BLANK_EXPRESSION] };
|
|
51943
|
-
var migration91 = {
|
|
51944
|
-
nodeType: "core.datafabric.update",
|
|
51945
|
-
from: "1.0",
|
|
51946
|
-
to: "1.1",
|
|
51947
|
-
description: "The values you write accept any expression, and the record ID accepts a variable or a single-term one.",
|
|
51948
|
-
applyDefinition(_def) {
|
|
51949
|
-
return structuredClone(definition141);
|
|
51950
|
-
},
|
|
51951
|
-
applyInstance(node) {
|
|
51952
|
-
return node;
|
|
51953
|
-
}
|
|
51954
|
-
};
|
|
51955
|
-
var definition141 = {
|
|
51956
|
-
nodeType: "core.datafabric.update",
|
|
51957
|
-
version: "1.1",
|
|
51958
|
-
category: "data",
|
|
51959
|
-
description: "Update an entity record in Data Fabric",
|
|
51960
|
-
tags: ["datafabric", "entity", "data", "update", "write"],
|
|
51961
|
-
sortOrder: categorySortOrders["data"] + 6,
|
|
51962
|
-
display: {
|
|
51963
|
-
label: "Update entity",
|
|
51964
|
-
canvasLabel: "Update entity",
|
|
51965
|
-
icon: "layers-arrow-up-right"
|
|
51966
|
-
},
|
|
51967
|
-
handleConfiguration: [
|
|
51968
|
-
{
|
|
51969
|
-
position: "left",
|
|
51970
|
-
handles: [{ id: "input", type: "target", handleType: "input" }]
|
|
51971
|
-
},
|
|
51972
|
-
{
|
|
51973
|
-
position: "right",
|
|
51974
|
-
handles: [{ id: "output", type: "source", handleType: "output" }]
|
|
51975
|
-
}
|
|
51976
|
-
],
|
|
51977
|
-
model: {
|
|
51978
|
-
type: "bpmn:Task",
|
|
51979
|
-
debug: { runtime: "bpmnEngine" }
|
|
51980
|
-
},
|
|
51981
|
-
runtimeConstraints: { exclude: ["api-function"] },
|
|
51982
|
-
inputDefinition: {
|
|
51983
|
-
type: "object",
|
|
51984
|
-
properties: {
|
|
51985
|
-
entityConfig: {
|
|
51986
|
-
type: "object",
|
|
51987
|
-
properties: {
|
|
51988
|
-
entityName: { type: "string", minLength: 1, errorMessage: "An entity must be selected" },
|
|
51989
|
-
recordId: RECORD_ID_TYPE,
|
|
51990
|
-
readEntityNodeId: { type: "string" },
|
|
51991
|
-
fieldUpdates: {
|
|
51992
|
-
type: "array",
|
|
51993
|
-
contains: {
|
|
51994
|
-
type: "object",
|
|
51995
|
-
properties: { field: { type: "string", pattern: "\\S" } },
|
|
51996
|
-
required: ["field"]
|
|
51997
|
-
},
|
|
51998
|
-
errorMessage: "Select a field to update"
|
|
51999
|
-
}
|
|
52000
|
-
},
|
|
52001
|
-
required: ["entityName", "fieldUpdates"],
|
|
52002
|
-
allOf: [
|
|
52003
|
-
{
|
|
52004
|
-
if: { properties: { recordSource: { const: "byId" } }, required: ["recordSource"] },
|
|
52005
|
-
then: {
|
|
52006
|
-
required: ["recordId"],
|
|
52007
|
-
properties: { recordId: RECORD_ID_PRESENT },
|
|
52008
|
-
errorMessage: "A record ID is required"
|
|
52009
|
-
}
|
|
52010
|
-
},
|
|
52011
|
-
{
|
|
52012
|
-
if: { properties: { recordSource: { const: "fromRead" } }, required: ["recordSource"] },
|
|
52013
|
-
then: {
|
|
52014
|
-
required: ["readEntityNodeId"],
|
|
52015
|
-
properties: { readEntityNodeId: { type: "string", pattern: "\\S" } },
|
|
52016
|
-
errorMessage: "A Read entity node must be selected"
|
|
52017
|
-
}
|
|
52018
|
-
}
|
|
52019
|
-
],
|
|
52020
|
-
errorMessage: {
|
|
52021
|
-
required: {
|
|
52022
|
-
entityName: "An entity must be selected",
|
|
52023
|
-
fieldUpdates: "Select a field to update"
|
|
52024
|
-
}
|
|
52025
|
-
}
|
|
52026
|
-
}
|
|
52027
|
-
},
|
|
52028
|
-
required: ["entityConfig"]
|
|
52029
|
-
},
|
|
52030
|
-
inputDefaults: {
|
|
52031
|
-
entityConfig: {}
|
|
52032
|
-
},
|
|
52033
|
-
outputDefinition: {
|
|
52034
|
-
output: { type: "jsonSchema", description: "Entity record after the update", source: "=response", var: "output" }
|
|
52035
|
-
},
|
|
52036
|
-
form: {
|
|
52037
|
-
id: "update-entity-properties",
|
|
52038
|
-
title: "Update entity configuration",
|
|
52039
|
-
sections: [
|
|
52040
|
-
{
|
|
52041
|
-
id: "entity-config",
|
|
52042
|
-
title: "Entity configuration",
|
|
52043
|
-
collapsible: true,
|
|
52044
|
-
defaultExpanded: true,
|
|
52045
|
-
fields: [{ name: "inputs.entityConfig", type: "custom", component: "update-entity-config", label: "" }]
|
|
52046
|
-
}
|
|
52047
|
-
]
|
|
52048
|
-
}
|
|
52049
|
-
};
|
|
52050
|
-
var inputDefinitionSchema97 = external_exports.object({
|
|
52051
|
-
type: external_exports.literal("object"),
|
|
52052
|
-
properties: external_exports.object({
|
|
52053
|
-
entityConfig: external_exports.object({ type: external_exports.literal("object") }).passthrough()
|
|
52054
|
-
}).passthrough()
|
|
52055
|
-
}).passthrough();
|
|
52056
|
-
var formSchema107 = external_exports.object({
|
|
52057
|
-
id: external_exports.literal("update-entity-properties"),
|
|
52058
|
-
title: external_exports.string(),
|
|
52059
|
-
sections: external_exports.tuple([
|
|
52060
|
-
external_exports.object({
|
|
52061
|
-
id: external_exports.literal("entity-config"),
|
|
52062
|
-
fields: external_exports.tuple([
|
|
52063
|
-
external_exports.object({
|
|
52064
|
-
name: external_exports.literal("inputs.entityConfig"),
|
|
52065
|
-
type: external_exports.literal("custom"),
|
|
52066
|
-
component: external_exports.literal("update-entity-config")
|
|
52067
|
-
}).passthrough()
|
|
52068
|
-
])
|
|
52069
|
-
}).passthrough()
|
|
52070
|
-
])
|
|
52071
|
-
}).passthrough();
|
|
52072
|
-
var schema117 = nodeManifestSchema.extend({
|
|
52073
|
-
nodeType: external_exports.literal("core.datafabric.update"),
|
|
52074
|
-
version: external_exports.literal("1.2"),
|
|
52075
|
-
inputDefinition: inputDefinitionSchema97,
|
|
52076
|
-
form: formSchema107
|
|
52077
|
-
});
|
|
52078
|
-
var NON_BLANK_EXPRESSION2 = {
|
|
52079
|
-
type: "object",
|
|
52080
|
-
properties: { type: { const: "jsExpression" }, expression: { type: "string", pattern: "\\S" } },
|
|
52081
|
-
required: ["type", "expression"]
|
|
52082
|
-
};
|
|
52083
|
-
var RECORD_ID_TYPE2 = { anyOf: [{ type: "string" }, NON_BLANK_EXPRESSION2] };
|
|
52084
|
-
var RECORD_ID_PRESENT2 = { anyOf: [{ type: "string", pattern: "\\S" }, NON_BLANK_EXPRESSION2] };
|
|
52085
|
-
var LABEL2 = "Update entity record";
|
|
52086
|
-
var LEGACY_LABEL2 = /^Update entity( \d+)?$/;
|
|
52087
|
-
var migration92 = {
|
|
52088
|
-
nodeType: "core.datafabric.update",
|
|
52089
|
-
from: "1.1",
|
|
52090
|
-
to: "1.2",
|
|
52091
|
-
description: "This node is now called Update entity record, so it reads as changing a record inside an entity rather than the entity itself.",
|
|
52092
|
-
applyDefinition(_def) {
|
|
52093
|
-
return structuredClone(definition142);
|
|
52094
|
-
},
|
|
52095
|
-
applyInstance(node) {
|
|
52096
|
-
const display = node.display;
|
|
52097
|
-
if (typeof display?.label !== "string")
|
|
52098
|
-
return node;
|
|
52099
|
-
const match = LEGACY_LABEL2.exec(display.label);
|
|
52100
|
-
return match ? { ...node, display: { ...display, label: `${LABEL2}${match[1] ?? ""}` } } : node;
|
|
52101
|
-
}
|
|
52102
|
-
};
|
|
52103
|
-
var definition142 = {
|
|
52104
|
-
nodeType: "core.datafabric.update",
|
|
52105
|
-
version: "1.2",
|
|
52106
|
-
category: "data",
|
|
52107
|
-
description: "Update an entity record in Data Fabric",
|
|
52108
|
-
tags: ["datafabric", "entity", "data", "update", "write"],
|
|
52109
|
-
sortOrder: categorySortOrders["data"] + 6,
|
|
52110
|
-
display: {
|
|
52111
|
-
label: LABEL2,
|
|
52112
|
-
icon: "layers-arrow-up-right"
|
|
52113
|
-
},
|
|
52114
|
-
handleConfiguration: [
|
|
52115
|
-
{
|
|
52116
|
-
position: "left",
|
|
52117
|
-
handles: [{ id: "input", type: "target", handleType: "input" }]
|
|
52118
|
-
},
|
|
52119
|
-
{
|
|
52120
|
-
position: "right",
|
|
52121
|
-
handles: [{ id: "output", type: "source", handleType: "output" }]
|
|
52122
|
-
}
|
|
52123
|
-
],
|
|
52124
|
-
model: {
|
|
52125
|
-
type: "bpmn:Task",
|
|
52126
|
-
debug: { runtime: "bpmnEngine" }
|
|
52127
|
-
},
|
|
52128
|
-
runtimeConstraints: { exclude: ["api-function"] },
|
|
52129
|
-
inputDefinition: {
|
|
52130
|
-
type: "object",
|
|
52131
|
-
properties: {
|
|
52132
|
-
entityConfig: {
|
|
52133
|
-
type: "object",
|
|
52134
|
-
properties: {
|
|
52135
|
-
entityName: { type: "string", minLength: 1, errorMessage: "An entity must be selected" },
|
|
52136
|
-
recordId: RECORD_ID_TYPE2,
|
|
52137
|
-
readEntityNodeId: { type: "string" },
|
|
52138
|
-
fieldUpdates: {
|
|
52139
|
-
type: "array",
|
|
52140
|
-
contains: {
|
|
52141
|
-
type: "object",
|
|
52142
|
-
properties: { field: { type: "string", pattern: "\\S" } },
|
|
52143
|
-
required: ["field"]
|
|
52144
|
-
},
|
|
52145
|
-
errorMessage: "Select a field to update"
|
|
52146
|
-
}
|
|
52147
|
-
},
|
|
52148
|
-
required: ["entityName", "fieldUpdates"],
|
|
52149
|
-
allOf: [
|
|
52150
|
-
{
|
|
52151
|
-
if: { properties: { recordSource: { const: "byId" } }, required: ["recordSource"] },
|
|
52152
|
-
then: {
|
|
52153
|
-
required: ["recordId"],
|
|
52154
|
-
properties: { recordId: RECORD_ID_PRESENT2 },
|
|
52155
|
-
errorMessage: "A record ID is required"
|
|
52156
|
-
}
|
|
52157
|
-
},
|
|
52158
|
-
{
|
|
52159
|
-
if: { properties: { recordSource: { const: "fromRead" } }, required: ["recordSource"] },
|
|
52160
|
-
then: {
|
|
52161
|
-
required: ["readEntityNodeId"],
|
|
52162
|
-
properties: { readEntityNodeId: { type: "string", pattern: "\\S" } },
|
|
52163
|
-
errorMessage: "Select a Read entity records node"
|
|
52164
|
-
}
|
|
52165
|
-
}
|
|
52166
|
-
],
|
|
52167
|
-
errorMessage: {
|
|
52168
|
-
required: {
|
|
52169
|
-
entityName: "An entity must be selected",
|
|
52170
|
-
fieldUpdates: "Select a field to update"
|
|
52171
|
-
}
|
|
52172
|
-
}
|
|
52173
|
-
}
|
|
52174
|
-
},
|
|
52175
|
-
required: ["entityConfig"]
|
|
52176
|
-
},
|
|
52177
|
-
inputDefaults: {
|
|
52178
|
-
entityConfig: {}
|
|
52179
|
-
},
|
|
52180
|
-
outputDefinition: {
|
|
52181
|
-
output: { type: "jsonSchema", description: "Entity record after the update", source: "=response", var: "output" }
|
|
52182
|
-
},
|
|
52183
|
-
form: {
|
|
52184
|
-
id: "update-entity-properties",
|
|
52185
|
-
title: "Update entity record configuration",
|
|
52186
|
-
sections: [
|
|
52187
|
-
{
|
|
52188
|
-
id: "entity-config",
|
|
52189
|
-
title: "Entity configuration",
|
|
52190
|
-
collapsible: true,
|
|
52191
|
-
defaultExpanded: true,
|
|
52192
|
-
fields: [{ name: "inputs.entityConfig", type: "custom", component: "update-entity-config", label: "" }]
|
|
52193
|
-
}
|
|
52194
|
-
]
|
|
52195
|
-
}
|
|
52196
|
-
};
|
|
52197
|
-
var NODE_I18N50 = {
|
|
52198
|
-
description: "manifest_node_updateEntity_description",
|
|
52199
|
-
display: {
|
|
52200
|
-
label: "manifest_node_updateEntity_display_label"
|
|
52201
|
-
},
|
|
52202
|
-
outputDefinition: {
|
|
52203
|
-
output: {
|
|
52204
|
-
description: "manifest_node_updateEntity_output_output_description"
|
|
52205
|
-
}
|
|
52206
|
-
},
|
|
52207
|
-
form: {
|
|
52208
|
-
title: "manifest_node_updateEntity_form_title",
|
|
52209
|
-
sections: {
|
|
52210
|
-
"entity-config": {
|
|
52211
|
-
title: "manifest_node_updateEntity_form_entityConfig_title"
|
|
52212
|
-
}
|
|
52213
|
-
}
|
|
52214
|
-
}
|
|
52215
|
-
};
|
|
52216
|
-
var NODE_I18N_OVERLAYS50 = {};
|
|
52217
|
-
var core_datafabric_update_default = definition142;
|
|
52218
|
-
var latest50 = definition142;
|
|
52219
|
-
var allVersions50 = [definition140, definition141, definition142];
|
|
52220
|
-
var latestSchema39 = schema117;
|
|
52221
|
-
var migrations49 = [migration91, migration92];
|
|
52222
|
-
var versionHashes50 = {
|
|
52223
|
-
"1.0": "bd31f98cd75b1db33103e3e5ead539ed527f9b58cee62129798ae2663a1ed3b6",
|
|
52224
|
-
"1.1": "920799f60ff251a9ed2401e14d2b79eabdc4cbd656b4bd7a4fcceff6e1a3c3c8",
|
|
52225
|
-
"1.2": "0e2e94ff1a6b85bd1d5f40f22e8bb606ad2c2d9f4519bbaf28b17715a7a8db23"
|
|
52226
|
-
};
|
|
52227
|
-
var core_datafabric_delete_exports = {};
|
|
52228
|
-
__export2(core_datafabric_delete_exports, {
|
|
52229
|
-
NODE_I18N: () => NODE_I18N51,
|
|
52230
|
-
NODE_I18N_OVERLAYS: () => NODE_I18N_OVERLAYS51,
|
|
52231
|
-
allVersions: () => allVersions51,
|
|
52232
|
-
default: () => core_datafabric_delete_default,
|
|
52233
|
-
latest: () => latest51,
|
|
52234
|
-
latestSchema: () => latestSchema40,
|
|
52235
|
-
migrations: () => migrations50,
|
|
52236
|
-
v1_0: () => definition143,
|
|
52237
|
-
v1_1: () => definition144,
|
|
52238
|
-
v1_2: () => definition145,
|
|
52239
|
-
versionHashes: () => versionHashes51
|
|
52240
|
-
});
|
|
52241
|
-
var inputDefinitionSchema98 = external_exports.object({
|
|
52242
|
-
type: external_exports.literal("object"),
|
|
52243
|
-
properties: external_exports.object({
|
|
52244
|
-
entityConfig: external_exports.object({ type: external_exports.literal("object") }).passthrough()
|
|
52245
|
-
}).passthrough()
|
|
52246
|
-
}).passthrough();
|
|
52247
|
-
var formSchema108 = external_exports.object({
|
|
52248
|
-
id: external_exports.literal("delete-entity-properties"),
|
|
52249
|
-
title: external_exports.string(),
|
|
52250
|
-
sections: external_exports.tuple([
|
|
52251
|
-
external_exports.object({
|
|
52252
|
-
id: external_exports.literal("entity-config"),
|
|
52253
|
-
fields: external_exports.tuple([
|
|
52254
|
-
external_exports.object({
|
|
52255
|
-
name: external_exports.literal("inputs.entityConfig"),
|
|
52256
|
-
type: external_exports.literal("custom"),
|
|
52257
|
-
component: external_exports.literal("delete-entity-config")
|
|
52258
|
-
}).passthrough()
|
|
52259
|
-
])
|
|
52260
|
-
}).passthrough()
|
|
52261
|
-
])
|
|
52262
|
-
}).passthrough();
|
|
52263
|
-
var schema118 = nodeManifestSchema.extend({
|
|
52264
|
-
nodeType: external_exports.literal("core.datafabric.delete"),
|
|
52265
|
-
version: external_exports.literal("1.0"),
|
|
52266
|
-
inputDefinition: inputDefinitionSchema98,
|
|
52267
|
-
form: formSchema108
|
|
52268
|
-
});
|
|
52269
|
-
var definition143 = {
|
|
52270
|
-
nodeType: "core.datafabric.delete",
|
|
52271
|
-
version: "1.0",
|
|
52272
|
-
category: "data",
|
|
52273
|
-
description: "Delete an entity record in Data Fabric",
|
|
52274
|
-
tags: ["datafabric", "entity", "data", "delete", "write"],
|
|
52275
|
-
sortOrder: categorySortOrders["data"] + 8,
|
|
52276
|
-
display: {
|
|
52277
|
-
label: "Delete entity",
|
|
52278
|
-
canvasLabel: "Delete entity",
|
|
52279
|
-
icon: "layers-arrow-up-right"
|
|
52280
|
-
},
|
|
52281
|
-
handleConfiguration: [
|
|
52282
|
-
{
|
|
52283
|
-
position: "left",
|
|
52284
|
-
handles: [{ id: "input", type: "target", handleType: "input" }]
|
|
52285
|
-
},
|
|
52286
|
-
{
|
|
52287
|
-
position: "right",
|
|
52288
|
-
handles: [{ id: "output", type: "source", handleType: "output" }]
|
|
52289
|
-
}
|
|
52290
|
-
],
|
|
52291
|
-
model: {
|
|
52292
|
-
type: "bpmn:Task",
|
|
52293
|
-
debug: { runtime: "bpmnEngine" }
|
|
52294
|
-
},
|
|
52295
|
-
runtimeConstraints: { exclude: ["api-function"] },
|
|
52296
|
-
inputDefinition: {
|
|
52297
|
-
type: "object",
|
|
52298
|
-
properties: {
|
|
52299
|
-
entityConfig: {
|
|
52300
|
-
type: "object",
|
|
52301
|
-
properties: {
|
|
52302
|
-
entityName: { type: "string", minLength: 1, errorMessage: "An entity must be selected" },
|
|
52303
|
-
recordId: { type: "string" },
|
|
52304
|
-
readEntityNodeId: { type: "string" }
|
|
52305
|
-
},
|
|
52306
|
-
required: ["entityName", "recordSource"],
|
|
52307
|
-
allOf: [
|
|
52308
|
-
{
|
|
52309
|
-
properties: { recordSource: { type: "string", enum: ["byId", "fromRead"] } },
|
|
52310
|
-
errorMessage: "Choose how to identify the record"
|
|
52311
|
-
},
|
|
52312
|
-
{
|
|
52313
|
-
if: { properties: { recordSource: { const: "byId" } }, required: ["recordSource"] },
|
|
52314
|
-
then: {
|
|
52315
|
-
required: ["recordId"],
|
|
52316
|
-
properties: { recordId: { type: "string", pattern: "\\S" } },
|
|
52317
|
-
errorMessage: "A record ID is required"
|
|
52318
|
-
}
|
|
52319
|
-
},
|
|
52320
|
-
{
|
|
52321
|
-
if: { properties: { recordSource: { const: "fromRead" } }, required: ["recordSource"] },
|
|
52322
|
-
then: {
|
|
52323
|
-
required: ["readEntityNodeId"],
|
|
52324
|
-
properties: { readEntityNodeId: { type: "string", pattern: "\\S" } },
|
|
52325
|
-
errorMessage: "A Read entity node must be selected"
|
|
52326
|
-
}
|
|
52327
|
-
}
|
|
52328
|
-
],
|
|
52329
|
-
errorMessage: {
|
|
52330
|
-
required: {
|
|
52331
|
-
entityName: "An entity must be selected",
|
|
52332
|
-
recordSource: "Choose how to identify the record"
|
|
52333
|
-
}
|
|
52334
|
-
}
|
|
52335
|
-
}
|
|
52336
|
-
},
|
|
52337
|
-
required: ["entityConfig"]
|
|
52338
|
-
},
|
|
52339
|
-
inputDefaults: {
|
|
52340
|
-
entityConfig: {}
|
|
52341
|
-
},
|
|
52342
|
-
form: {
|
|
52343
|
-
id: "delete-entity-properties",
|
|
52344
|
-
title: "Delete entity configuration",
|
|
52345
|
-
sections: [
|
|
52346
|
-
{
|
|
52347
|
-
id: "entity-config",
|
|
52348
|
-
title: "Entity configuration",
|
|
52349
|
-
collapsible: true,
|
|
52350
|
-
defaultExpanded: true,
|
|
52351
|
-
fields: [{ name: "inputs.entityConfig", type: "custom", component: "delete-entity-config", label: "" }]
|
|
52352
|
-
}
|
|
52353
|
-
]
|
|
52354
|
-
}
|
|
52355
|
-
};
|
|
52356
|
-
var inputDefinitionSchema99 = external_exports.object({
|
|
52357
|
-
type: external_exports.literal("object"),
|
|
52358
|
-
properties: external_exports.object({
|
|
52359
|
-
entityConfig: external_exports.object({ type: external_exports.literal("object") }).passthrough()
|
|
52360
|
-
}).passthrough()
|
|
52361
|
-
}).passthrough();
|
|
52362
|
-
var formSchema109 = external_exports.object({
|
|
52363
|
-
id: external_exports.literal("delete-entity-properties"),
|
|
52364
|
-
title: external_exports.string(),
|
|
52365
|
-
sections: external_exports.tuple([
|
|
52366
|
-
external_exports.object({
|
|
52367
|
-
id: external_exports.literal("entity-config"),
|
|
52368
|
-
fields: external_exports.tuple([
|
|
52369
|
-
external_exports.object({
|
|
52370
|
-
name: external_exports.literal("inputs.entityConfig"),
|
|
52371
|
-
type: external_exports.literal("custom"),
|
|
52372
|
-
component: external_exports.literal("delete-entity-config")
|
|
52373
|
-
}).passthrough()
|
|
52374
|
-
])
|
|
52375
|
-
}).passthrough()
|
|
52376
|
-
])
|
|
52377
|
-
}).passthrough();
|
|
52378
|
-
var schema119 = nodeManifestSchema.extend({
|
|
52379
|
-
nodeType: external_exports.literal("core.datafabric.delete"),
|
|
52380
|
-
version: external_exports.literal("1.1"),
|
|
52381
|
-
inputDefinition: inputDefinitionSchema99,
|
|
52382
|
-
form: formSchema109
|
|
52383
|
-
});
|
|
52384
|
-
var NON_BLANK_EXPRESSION3 = {
|
|
52385
|
-
type: "object",
|
|
52386
|
-
properties: { type: { const: "jsExpression" }, expression: { type: "string", pattern: "\\S" } },
|
|
52387
|
-
required: ["type", "expression"]
|
|
52388
|
-
};
|
|
52389
|
-
var RECORD_ID_TYPE3 = { anyOf: [{ type: "string" }, NON_BLANK_EXPRESSION3] };
|
|
52390
|
-
var RECORD_ID_PRESENT3 = { anyOf: [{ type: "string", pattern: "\\S" }, NON_BLANK_EXPRESSION3] };
|
|
52391
|
-
var migration93 = {
|
|
52392
|
-
nodeType: "core.datafabric.delete",
|
|
52393
|
-
from: "1.0",
|
|
52394
|
-
to: "1.1",
|
|
52395
|
-
description: "The record ID accepts a variable or a single-term expression as well as a fixed value.",
|
|
52396
|
-
applyDefinition(_def) {
|
|
52397
|
-
return structuredClone(definition144);
|
|
52398
|
-
},
|
|
52399
|
-
applyInstance(node) {
|
|
52400
|
-
return node;
|
|
52401
|
-
}
|
|
52402
|
-
};
|
|
52403
|
-
var definition144 = {
|
|
52404
|
-
nodeType: "core.datafabric.delete",
|
|
52405
|
-
version: "1.1",
|
|
52406
|
-
category: "data",
|
|
52407
|
-
description: "Delete an entity record in Data Fabric",
|
|
52408
|
-
tags: ["datafabric", "entity", "data", "delete", "write"],
|
|
52409
|
-
sortOrder: categorySortOrders["data"] + 8,
|
|
52410
|
-
display: {
|
|
52411
|
-
label: "Delete entity",
|
|
52412
|
-
canvasLabel: "Delete entity",
|
|
52413
|
-
icon: "layers-arrow-up-right"
|
|
52414
|
-
},
|
|
52415
|
-
handleConfiguration: [
|
|
52416
|
-
{
|
|
52417
|
-
position: "left",
|
|
52418
|
-
handles: [{ id: "input", type: "target", handleType: "input" }]
|
|
52419
|
-
},
|
|
52420
|
-
{
|
|
52421
|
-
position: "right",
|
|
52422
|
-
handles: [{ id: "output", type: "source", handleType: "output" }]
|
|
52423
|
-
}
|
|
52424
|
-
],
|
|
52425
|
-
model: {
|
|
52426
|
-
type: "bpmn:Task",
|
|
52427
|
-
debug: { runtime: "bpmnEngine" }
|
|
52428
|
-
},
|
|
52429
|
-
runtimeConstraints: { exclude: ["api-function"] },
|
|
52430
|
-
inputDefinition: {
|
|
52431
|
-
type: "object",
|
|
52432
|
-
properties: {
|
|
52433
|
-
entityConfig: {
|
|
52434
|
-
type: "object",
|
|
52435
|
-
properties: {
|
|
52436
|
-
entityName: { type: "string", minLength: 1, errorMessage: "An entity must be selected" },
|
|
52437
|
-
recordId: RECORD_ID_TYPE3,
|
|
52438
|
-
readEntityNodeId: { type: "string" }
|
|
52439
|
-
},
|
|
52440
|
-
required: ["entityName", "recordSource"],
|
|
52441
|
-
allOf: [
|
|
52442
|
-
{
|
|
52443
|
-
properties: { recordSource: { type: "string", enum: ["byId", "fromRead"] } },
|
|
52444
|
-
errorMessage: "Choose how to identify the record"
|
|
52445
|
-
},
|
|
52446
|
-
{
|
|
52447
|
-
if: { properties: { recordSource: { const: "byId" } }, required: ["recordSource"] },
|
|
52448
|
-
then: {
|
|
52449
|
-
required: ["recordId"],
|
|
52450
|
-
properties: { recordId: RECORD_ID_PRESENT3 },
|
|
52451
|
-
errorMessage: "A record ID is required"
|
|
52452
|
-
}
|
|
52453
|
-
},
|
|
52454
|
-
{
|
|
52455
|
-
if: { properties: { recordSource: { const: "fromRead" } }, required: ["recordSource"] },
|
|
52456
|
-
then: {
|
|
52457
|
-
required: ["readEntityNodeId"],
|
|
52458
|
-
properties: { readEntityNodeId: { type: "string", pattern: "\\S" } },
|
|
52459
|
-
errorMessage: "A Read entity node must be selected"
|
|
52460
|
-
}
|
|
52461
|
-
}
|
|
52462
|
-
],
|
|
52463
|
-
errorMessage: {
|
|
52464
|
-
required: {
|
|
52465
|
-
entityName: "An entity must be selected",
|
|
52466
|
-
recordSource: "Choose how to identify the record"
|
|
52467
|
-
}
|
|
52468
|
-
}
|
|
52469
|
-
}
|
|
52470
|
-
},
|
|
52471
|
-
required: ["entityConfig"]
|
|
52472
|
-
},
|
|
52473
|
-
inputDefaults: {
|
|
52474
|
-
entityConfig: {}
|
|
52475
|
-
},
|
|
52476
|
-
form: {
|
|
52477
|
-
id: "delete-entity-properties",
|
|
52478
|
-
title: "Delete entity configuration",
|
|
52479
|
-
sections: [
|
|
52480
|
-
{
|
|
52481
|
-
id: "entity-config",
|
|
52482
|
-
title: "Entity configuration",
|
|
52483
|
-
collapsible: true,
|
|
52484
|
-
defaultExpanded: true,
|
|
52485
|
-
fields: [{ name: "inputs.entityConfig", type: "custom", component: "delete-entity-config", label: "" }]
|
|
52486
|
-
}
|
|
52487
|
-
]
|
|
52488
|
-
}
|
|
52489
|
-
};
|
|
52490
|
-
var inputDefinitionSchema100 = external_exports.object({
|
|
52491
|
-
type: external_exports.literal("object"),
|
|
52492
|
-
properties: external_exports.object({
|
|
52493
|
-
entityConfig: external_exports.object({ type: external_exports.literal("object") }).passthrough()
|
|
52494
|
-
}).passthrough()
|
|
52495
|
-
}).passthrough();
|
|
52496
|
-
var formSchema110 = external_exports.object({
|
|
52497
|
-
id: external_exports.literal("delete-entity-properties"),
|
|
52498
|
-
title: external_exports.string(),
|
|
52499
|
-
sections: external_exports.tuple([
|
|
52500
|
-
external_exports.object({
|
|
52501
|
-
id: external_exports.literal("entity-config"),
|
|
52502
|
-
fields: external_exports.tuple([
|
|
52503
|
-
external_exports.object({
|
|
52504
|
-
name: external_exports.literal("inputs.entityConfig"),
|
|
52505
|
-
type: external_exports.literal("custom"),
|
|
52506
|
-
component: external_exports.literal("delete-entity-config")
|
|
52507
|
-
}).passthrough()
|
|
52508
|
-
])
|
|
52509
|
-
}).passthrough()
|
|
52510
|
-
])
|
|
52511
|
-
}).passthrough();
|
|
52512
|
-
var schema120 = nodeManifestSchema.extend({
|
|
52513
|
-
nodeType: external_exports.literal("core.datafabric.delete"),
|
|
52514
|
-
version: external_exports.literal("1.2"),
|
|
52515
|
-
inputDefinition: inputDefinitionSchema100,
|
|
52516
|
-
form: formSchema110
|
|
52517
|
-
});
|
|
52518
|
-
var NON_BLANK_EXPRESSION4 = {
|
|
52519
|
-
type: "object",
|
|
52520
|
-
properties: { type: { const: "jsExpression" }, expression: { type: "string", pattern: "\\S" } },
|
|
52521
|
-
required: ["type", "expression"]
|
|
52522
|
-
};
|
|
52523
|
-
var RECORD_ID_TYPE4 = { anyOf: [{ type: "string" }, NON_BLANK_EXPRESSION4] };
|
|
52524
|
-
var RECORD_ID_PRESENT4 = { anyOf: [{ type: "string", pattern: "\\S" }, NON_BLANK_EXPRESSION4] };
|
|
52525
|
-
var LABEL3 = "Delete entity record";
|
|
52526
|
-
var LEGACY_LABEL3 = /^Delete entity( \d+)?$/;
|
|
52527
|
-
var migration94 = {
|
|
52528
|
-
nodeType: "core.datafabric.delete",
|
|
52529
|
-
from: "1.1",
|
|
52530
|
-
to: "1.2",
|
|
52531
|
-
description: "This node is now called Delete entity record, so it reads as removing a record from an entity rather than deleting the entity itself.",
|
|
52532
|
-
applyDefinition(_def) {
|
|
52533
|
-
return structuredClone(definition145);
|
|
52534
|
-
},
|
|
52535
|
-
applyInstance(node) {
|
|
52536
|
-
const display = node.display;
|
|
52537
|
-
if (typeof display?.label !== "string")
|
|
52538
|
-
return node;
|
|
52539
|
-
const match = LEGACY_LABEL3.exec(display.label);
|
|
52540
|
-
return match ? { ...node, display: { ...display, label: `${LABEL3}${match[1] ?? ""}` } } : node;
|
|
52541
|
-
}
|
|
52542
|
-
};
|
|
52543
|
-
var definition145 = {
|
|
52544
|
-
nodeType: "core.datafabric.delete",
|
|
52545
|
-
version: "1.2",
|
|
52546
|
-
category: "data",
|
|
52547
|
-
description: "Delete an entity record in Data Fabric",
|
|
52548
|
-
tags: ["datafabric", "entity", "data", "delete", "write"],
|
|
52549
|
-
sortOrder: categorySortOrders["data"] + 8,
|
|
52550
|
-
display: {
|
|
52551
|
-
label: LABEL3,
|
|
52552
|
-
icon: "layers-arrow-up-right"
|
|
52553
|
-
},
|
|
52554
|
-
handleConfiguration: [
|
|
52555
|
-
{
|
|
52556
|
-
position: "left",
|
|
52557
|
-
handles: [{ id: "input", type: "target", handleType: "input" }]
|
|
52558
|
-
},
|
|
52559
|
-
{
|
|
52560
|
-
position: "right",
|
|
52561
|
-
handles: [{ id: "output", type: "source", handleType: "output" }]
|
|
52562
|
-
}
|
|
52563
|
-
],
|
|
52564
|
-
model: {
|
|
52565
|
-
type: "bpmn:Task",
|
|
52566
|
-
debug: { runtime: "bpmnEngine" }
|
|
52567
|
-
},
|
|
52568
|
-
runtimeConstraints: { exclude: ["api-function"] },
|
|
52569
|
-
inputDefinition: {
|
|
52570
|
-
type: "object",
|
|
52571
|
-
properties: {
|
|
52572
|
-
entityConfig: {
|
|
52573
|
-
type: "object",
|
|
52574
|
-
properties: {
|
|
52575
|
-
entityName: { type: "string", minLength: 1, errorMessage: "An entity must be selected" },
|
|
52576
|
-
recordId: RECORD_ID_TYPE4,
|
|
52577
|
-
readEntityNodeId: { type: "string" }
|
|
51728
|
+
recordId: { type: "string" },
|
|
51729
|
+
readEntityNodeId: { type: "string" },
|
|
51730
|
+
fieldUpdates: {
|
|
51731
|
+
type: "array",
|
|
51732
|
+
contains: {
|
|
51733
|
+
type: "object",
|
|
51734
|
+
properties: { field: { type: "string", pattern: "\\S" } },
|
|
51735
|
+
required: ["field"]
|
|
51736
|
+
},
|
|
51737
|
+
errorMessage: "Select a field to update"
|
|
51738
|
+
}
|
|
52578
51739
|
},
|
|
52579
|
-
required: ["entityName", "
|
|
51740
|
+
required: ["entityName", "fieldUpdates"],
|
|
52580
51741
|
allOf: [
|
|
52581
|
-
{
|
|
52582
|
-
properties: { recordSource: { type: "string", enum: ["byId", "fromRead"] } },
|
|
52583
|
-
errorMessage: "Choose how to identify the record"
|
|
52584
|
-
},
|
|
52585
51742
|
{
|
|
52586
51743
|
if: { properties: { recordSource: { const: "byId" } }, required: ["recordSource"] },
|
|
52587
51744
|
then: {
|
|
52588
51745
|
required: ["recordId"],
|
|
52589
|
-
properties: { recordId:
|
|
51746
|
+
properties: { recordId: { type: "string", pattern: "\\S" } },
|
|
52590
51747
|
errorMessage: "A record ID is required"
|
|
52591
51748
|
}
|
|
52592
51749
|
},
|
|
@@ -52595,14 +51752,14 @@ var definition145 = {
|
|
|
52595
51752
|
then: {
|
|
52596
51753
|
required: ["readEntityNodeId"],
|
|
52597
51754
|
properties: { readEntityNodeId: { type: "string", pattern: "\\S" } },
|
|
52598
|
-
errorMessage: "
|
|
51755
|
+
errorMessage: "A Read entity node must be selected"
|
|
52599
51756
|
}
|
|
52600
51757
|
}
|
|
52601
51758
|
],
|
|
52602
51759
|
errorMessage: {
|
|
52603
51760
|
required: {
|
|
52604
51761
|
entityName: "An entity must be selected",
|
|
52605
|
-
|
|
51762
|
+
fieldUpdates: "Select a field to update"
|
|
52606
51763
|
}
|
|
52607
51764
|
}
|
|
52608
51765
|
}
|
|
@@ -52612,67 +51769,71 @@ var definition145 = {
|
|
|
52612
51769
|
inputDefaults: {
|
|
52613
51770
|
entityConfig: {}
|
|
52614
51771
|
},
|
|
51772
|
+
outputDefinition: {
|
|
51773
|
+
output: { type: "jsonSchema", description: "Entity record after the update", source: "=response", var: "output" }
|
|
51774
|
+
},
|
|
52615
51775
|
form: {
|
|
52616
|
-
id: "
|
|
52617
|
-
title: "
|
|
51776
|
+
id: "update-entity-properties",
|
|
51777
|
+
title: "Update entity configuration",
|
|
52618
51778
|
sections: [
|
|
52619
51779
|
{
|
|
52620
51780
|
id: "entity-config",
|
|
52621
51781
|
title: "Entity configuration",
|
|
52622
51782
|
collapsible: true,
|
|
52623
51783
|
defaultExpanded: true,
|
|
52624
|
-
fields: [{ name: "inputs.entityConfig", type: "custom", component: "
|
|
51784
|
+
fields: [{ name: "inputs.entityConfig", type: "custom", component: "update-entity-config", label: "" }]
|
|
52625
51785
|
}
|
|
52626
51786
|
]
|
|
52627
51787
|
}
|
|
52628
51788
|
};
|
|
52629
|
-
var
|
|
52630
|
-
description: "
|
|
51789
|
+
var NODE_I18N50 = {
|
|
51790
|
+
description: "manifest_node_updateEntity_description",
|
|
52631
51791
|
display: {
|
|
52632
|
-
label: "
|
|
51792
|
+
label: "manifest_node_updateEntity_display_label"
|
|
51793
|
+
},
|
|
51794
|
+
outputDefinition: {
|
|
51795
|
+
output: {
|
|
51796
|
+
description: "manifest_node_updateEntity_output_output_description"
|
|
51797
|
+
}
|
|
52633
51798
|
},
|
|
52634
51799
|
form: {
|
|
52635
|
-
title: "
|
|
51800
|
+
title: "manifest_node_updateEntity_form_title",
|
|
52636
51801
|
sections: {
|
|
52637
51802
|
"entity-config": {
|
|
52638
|
-
title: "
|
|
51803
|
+
title: "manifest_node_updateEntity_form_entityConfig_title"
|
|
52639
51804
|
}
|
|
52640
51805
|
}
|
|
52641
51806
|
}
|
|
52642
51807
|
};
|
|
52643
|
-
var
|
|
52644
|
-
var
|
|
52645
|
-
var
|
|
52646
|
-
var
|
|
52647
|
-
var
|
|
52648
|
-
var
|
|
52649
|
-
var
|
|
52650
|
-
"1.0": "
|
|
52651
|
-
"1.1": "ee47da9599a22e1309aed622533cf769314db5e0648c0d734dcdaf4ee5d0819b",
|
|
52652
|
-
"1.2": "79403f2b61af692b3ef3de76e28cd1f92ac7cc74906e4a34674df8fdf0b69951"
|
|
51808
|
+
var NODE_I18N_OVERLAYS50 = {};
|
|
51809
|
+
var core_datafabric_update_default = definition139;
|
|
51810
|
+
var latest50 = definition139;
|
|
51811
|
+
var allVersions50 = [definition139];
|
|
51812
|
+
var latestSchema39 = schema114;
|
|
51813
|
+
var migrations49 = [];
|
|
51814
|
+
var versionHashes50 = {
|
|
51815
|
+
"1.0": "bd31f98cd75b1db33103e3e5ead539ed527f9b58cee62129798ae2663a1ed3b6"
|
|
52653
51816
|
};
|
|
52654
|
-
var
|
|
52655
|
-
__export2(
|
|
52656
|
-
NODE_I18N: () =>
|
|
52657
|
-
NODE_I18N_OVERLAYS: () =>
|
|
52658
|
-
allVersions: () =>
|
|
52659
|
-
default: () =>
|
|
52660
|
-
latest: () =>
|
|
52661
|
-
latestSchema: () =>
|
|
52662
|
-
migrations: () =>
|
|
52663
|
-
v1_0: () =>
|
|
52664
|
-
|
|
52665
|
-
v1_2: () => definition148,
|
|
52666
|
-
versionHashes: () => versionHashes52
|
|
51817
|
+
var core_datafabric_delete_exports = {};
|
|
51818
|
+
__export2(core_datafabric_delete_exports, {
|
|
51819
|
+
NODE_I18N: () => NODE_I18N51,
|
|
51820
|
+
NODE_I18N_OVERLAYS: () => NODE_I18N_OVERLAYS51,
|
|
51821
|
+
allVersions: () => allVersions51,
|
|
51822
|
+
default: () => core_datafabric_delete_default,
|
|
51823
|
+
latest: () => latest51,
|
|
51824
|
+
latestSchema: () => latestSchema40,
|
|
51825
|
+
migrations: () => migrations50,
|
|
51826
|
+
v1_0: () => definition140,
|
|
51827
|
+
versionHashes: () => versionHashes51
|
|
52667
51828
|
});
|
|
52668
|
-
var
|
|
51829
|
+
var inputDefinitionSchema95 = external_exports.object({
|
|
52669
51830
|
type: external_exports.literal("object"),
|
|
52670
51831
|
properties: external_exports.object({
|
|
52671
51832
|
entityConfig: external_exports.object({ type: external_exports.literal("object") }).passthrough()
|
|
52672
51833
|
}).passthrough()
|
|
52673
51834
|
}).passthrough();
|
|
52674
|
-
var
|
|
52675
|
-
id: external_exports.literal("
|
|
51835
|
+
var formSchema105 = external_exports.object({
|
|
51836
|
+
id: external_exports.literal("delete-entity-properties"),
|
|
52676
51837
|
title: external_exports.string(),
|
|
52677
51838
|
sections: external_exports.tuple([
|
|
52678
51839
|
external_exports.object({
|
|
@@ -52681,28 +51842,28 @@ var formSchema111 = external_exports.object({
|
|
|
52681
51842
|
external_exports.object({
|
|
52682
51843
|
name: external_exports.literal("inputs.entityConfig"),
|
|
52683
51844
|
type: external_exports.literal("custom"),
|
|
52684
|
-
component: external_exports.literal("
|
|
51845
|
+
component: external_exports.literal("delete-entity-config")
|
|
52685
51846
|
}).passthrough()
|
|
52686
51847
|
])
|
|
52687
51848
|
}).passthrough()
|
|
52688
51849
|
])
|
|
52689
51850
|
}).passthrough();
|
|
52690
|
-
var
|
|
52691
|
-
nodeType: external_exports.literal("core.datafabric.
|
|
51851
|
+
var schema115 = nodeManifestSchema.extend({
|
|
51852
|
+
nodeType: external_exports.literal("core.datafabric.delete"),
|
|
52692
51853
|
version: external_exports.literal("1.0"),
|
|
52693
|
-
inputDefinition:
|
|
52694
|
-
form:
|
|
51854
|
+
inputDefinition: inputDefinitionSchema95,
|
|
51855
|
+
form: formSchema105
|
|
52695
51856
|
});
|
|
52696
|
-
var
|
|
52697
|
-
nodeType: "core.datafabric.
|
|
51857
|
+
var definition140 = {
|
|
51858
|
+
nodeType: "core.datafabric.delete",
|
|
52698
51859
|
version: "1.0",
|
|
52699
51860
|
category: "data",
|
|
52700
|
-
description: "
|
|
52701
|
-
tags: ["datafabric", "entity", "data", "
|
|
52702
|
-
sortOrder: categorySortOrders["data"] +
|
|
51861
|
+
description: "Delete an entity record in Data Fabric",
|
|
51862
|
+
tags: ["datafabric", "entity", "data", "delete", "write"],
|
|
51863
|
+
sortOrder: categorySortOrders["data"] + 8,
|
|
52703
51864
|
display: {
|
|
52704
|
-
label: "
|
|
52705
|
-
canvasLabel: "
|
|
51865
|
+
label: "Delete entity",
|
|
51866
|
+
canvasLabel: "Delete entity",
|
|
52706
51867
|
icon: "layers-arrow-up-right"
|
|
52707
51868
|
},
|
|
52708
51869
|
handleConfiguration: [
|
|
@@ -52727,21 +51888,36 @@ var definition146 = {
|
|
|
52727
51888
|
type: "object",
|
|
52728
51889
|
properties: {
|
|
52729
51890
|
entityName: { type: "string", minLength: 1, errorMessage: "An entity must be selected" },
|
|
52730
|
-
|
|
52731
|
-
|
|
52732
|
-
contains: {
|
|
52733
|
-
type: "object",
|
|
52734
|
-
properties: { field: { type: "string", pattern: "\\S" }, value: { type: "string", pattern: "\\S" } },
|
|
52735
|
-
required: ["field", "value"]
|
|
52736
|
-
},
|
|
52737
|
-
errorMessage: "Set a value for at least one field"
|
|
52738
|
-
}
|
|
51891
|
+
recordId: { type: "string" },
|
|
51892
|
+
readEntityNodeId: { type: "string" }
|
|
52739
51893
|
},
|
|
52740
|
-
required: ["entityName", "
|
|
51894
|
+
required: ["entityName", "recordSource"],
|
|
51895
|
+
allOf: [
|
|
51896
|
+
{
|
|
51897
|
+
properties: { recordSource: { type: "string", enum: ["byId", "fromRead"] } },
|
|
51898
|
+
errorMessage: "Choose how to identify the record"
|
|
51899
|
+
},
|
|
51900
|
+
{
|
|
51901
|
+
if: { properties: { recordSource: { const: "byId" } }, required: ["recordSource"] },
|
|
51902
|
+
then: {
|
|
51903
|
+
required: ["recordId"],
|
|
51904
|
+
properties: { recordId: { type: "string", pattern: "\\S" } },
|
|
51905
|
+
errorMessage: "A record ID is required"
|
|
51906
|
+
}
|
|
51907
|
+
},
|
|
51908
|
+
{
|
|
51909
|
+
if: { properties: { recordSource: { const: "fromRead" } }, required: ["recordSource"] },
|
|
51910
|
+
then: {
|
|
51911
|
+
required: ["readEntityNodeId"],
|
|
51912
|
+
properties: { readEntityNodeId: { type: "string", pattern: "\\S" } },
|
|
51913
|
+
errorMessage: "A Read entity node must be selected"
|
|
51914
|
+
}
|
|
51915
|
+
}
|
|
51916
|
+
],
|
|
52741
51917
|
errorMessage: {
|
|
52742
51918
|
required: {
|
|
52743
51919
|
entityName: "An entity must be selected",
|
|
52744
|
-
|
|
51920
|
+
recordSource: "Choose how to identify the record"
|
|
52745
51921
|
}
|
|
52746
51922
|
}
|
|
52747
51923
|
}
|
|
@@ -52751,151 +51927,62 @@ var definition146 = {
|
|
|
52751
51927
|
inputDefaults: {
|
|
52752
51928
|
entityConfig: {}
|
|
52753
51929
|
},
|
|
52754
|
-
outputDefinition: {
|
|
52755
|
-
output: { type: "jsonSchema", description: "Fields written by this node", source: "=response", var: "output" }
|
|
52756
|
-
},
|
|
52757
51930
|
form: {
|
|
52758
|
-
id: "
|
|
52759
|
-
title: "
|
|
51931
|
+
id: "delete-entity-properties",
|
|
51932
|
+
title: "Delete entity configuration",
|
|
52760
51933
|
sections: [
|
|
52761
51934
|
{
|
|
52762
51935
|
id: "entity-config",
|
|
52763
51936
|
title: "Entity configuration",
|
|
52764
51937
|
collapsible: true,
|
|
52765
51938
|
defaultExpanded: true,
|
|
52766
|
-
fields: [{ name: "inputs.entityConfig", type: "custom", component: "
|
|
51939
|
+
fields: [{ name: "inputs.entityConfig", type: "custom", component: "delete-entity-config", label: "" }]
|
|
52767
51940
|
}
|
|
52768
51941
|
]
|
|
52769
51942
|
}
|
|
52770
51943
|
};
|
|
52771
|
-
var
|
|
52772
|
-
|
|
52773
|
-
properties: external_exports.object({
|
|
52774
|
-
entityConfig: external_exports.object({ type: external_exports.literal("object") }).passthrough()
|
|
52775
|
-
}).passthrough()
|
|
52776
|
-
}).passthrough();
|
|
52777
|
-
var formSchema112 = external_exports.object({
|
|
52778
|
-
id: external_exports.literal("create-entity-properties"),
|
|
52779
|
-
title: external_exports.string(),
|
|
52780
|
-
sections: external_exports.tuple([
|
|
52781
|
-
external_exports.object({
|
|
52782
|
-
id: external_exports.literal("entity-config"),
|
|
52783
|
-
fields: external_exports.tuple([
|
|
52784
|
-
external_exports.object({
|
|
52785
|
-
name: external_exports.literal("inputs.entityConfig"),
|
|
52786
|
-
type: external_exports.literal("custom"),
|
|
52787
|
-
component: external_exports.literal("create-entity-config")
|
|
52788
|
-
}).passthrough()
|
|
52789
|
-
])
|
|
52790
|
-
}).passthrough()
|
|
52791
|
-
])
|
|
52792
|
-
}).passthrough();
|
|
52793
|
-
var schema122 = nodeManifestSchema.extend({
|
|
52794
|
-
nodeType: external_exports.literal("core.datafabric.create"),
|
|
52795
|
-
version: external_exports.literal("1.1"),
|
|
52796
|
-
inputDefinition: inputDefinitionSchema102,
|
|
52797
|
-
form: formSchema112
|
|
52798
|
-
});
|
|
52799
|
-
var NON_BLANK_EXPRESSION5 = {
|
|
52800
|
-
type: "object",
|
|
52801
|
-
properties: { type: { const: "jsExpression" }, expression: { type: "string", pattern: "\\S" } },
|
|
52802
|
-
required: ["type", "expression"]
|
|
52803
|
-
};
|
|
52804
|
-
var FIELD_VALUE_PRESENT = { anyOf: [{ type: "string", pattern: "\\S" }, NON_BLANK_EXPRESSION5] };
|
|
52805
|
-
var migration95 = {
|
|
52806
|
-
nodeType: "core.datafabric.create",
|
|
52807
|
-
from: "1.0",
|
|
52808
|
-
to: "1.1",
|
|
52809
|
-
description: "The values you write accept an expression as well as a fixed value.",
|
|
52810
|
-
applyDefinition(_def) {
|
|
52811
|
-
return structuredClone(definition147);
|
|
52812
|
-
},
|
|
52813
|
-
applyInstance(node) {
|
|
52814
|
-
return node;
|
|
52815
|
-
}
|
|
52816
|
-
};
|
|
52817
|
-
var definition147 = {
|
|
52818
|
-
nodeType: "core.datafabric.create",
|
|
52819
|
-
version: "1.1",
|
|
52820
|
-
category: "data",
|
|
52821
|
-
description: "Create an entity record in Data Fabric",
|
|
52822
|
-
tags: ["datafabric", "entity", "data", "create", "insert", "write"],
|
|
52823
|
-
sortOrder: categorySortOrders["data"] + 7,
|
|
51944
|
+
var NODE_I18N51 = {
|
|
51945
|
+
description: "manifest_node_deleteEntity_description",
|
|
52824
51946
|
display: {
|
|
52825
|
-
label: "
|
|
52826
|
-
canvasLabel: "Create entity",
|
|
52827
|
-
icon: "layers-arrow-up-right"
|
|
52828
|
-
},
|
|
52829
|
-
handleConfiguration: [
|
|
52830
|
-
{
|
|
52831
|
-
position: "left",
|
|
52832
|
-
handles: [{ id: "input", type: "target", handleType: "input" }]
|
|
52833
|
-
},
|
|
52834
|
-
{
|
|
52835
|
-
position: "right",
|
|
52836
|
-
handles: [{ id: "output", type: "source", handleType: "output" }]
|
|
52837
|
-
}
|
|
52838
|
-
],
|
|
52839
|
-
model: {
|
|
52840
|
-
type: "bpmn:Task",
|
|
52841
|
-
debug: { runtime: "bpmnEngine" }
|
|
52842
|
-
},
|
|
52843
|
-
runtimeConstraints: { exclude: ["api-function"] },
|
|
52844
|
-
inputDefinition: {
|
|
52845
|
-
type: "object",
|
|
52846
|
-
properties: {
|
|
52847
|
-
entityConfig: {
|
|
52848
|
-
type: "object",
|
|
52849
|
-
properties: {
|
|
52850
|
-
entityName: { type: "string", minLength: 1, errorMessage: "An entity must be selected" },
|
|
52851
|
-
fieldValues: {
|
|
52852
|
-
type: "array",
|
|
52853
|
-
contains: {
|
|
52854
|
-
type: "object",
|
|
52855
|
-
properties: { field: { type: "string", pattern: "\\S" }, value: FIELD_VALUE_PRESENT },
|
|
52856
|
-
required: ["field", "value"]
|
|
52857
|
-
},
|
|
52858
|
-
errorMessage: "Set a value for at least one field"
|
|
52859
|
-
}
|
|
52860
|
-
},
|
|
52861
|
-
required: ["entityName", "fieldValues"],
|
|
52862
|
-
errorMessage: {
|
|
52863
|
-
required: {
|
|
52864
|
-
entityName: "An entity must be selected",
|
|
52865
|
-
fieldValues: "Set a value for at least one field"
|
|
52866
|
-
}
|
|
52867
|
-
}
|
|
52868
|
-
}
|
|
52869
|
-
},
|
|
52870
|
-
required: ["entityConfig"]
|
|
52871
|
-
},
|
|
52872
|
-
inputDefaults: {
|
|
52873
|
-
entityConfig: {}
|
|
52874
|
-
},
|
|
52875
|
-
outputDefinition: {
|
|
52876
|
-
output: { type: "jsonSchema", description: "Fields written by this node", source: "=response", var: "output" }
|
|
51947
|
+
label: "manifest_node_deleteEntity_display_label"
|
|
52877
51948
|
},
|
|
52878
51949
|
form: {
|
|
52879
|
-
|
|
52880
|
-
|
|
52881
|
-
|
|
52882
|
-
|
|
52883
|
-
id: "entity-config",
|
|
52884
|
-
title: "Entity configuration",
|
|
52885
|
-
collapsible: true,
|
|
52886
|
-
defaultExpanded: true,
|
|
52887
|
-
fields: [{ name: "inputs.entityConfig", type: "custom", component: "create-entity-config", label: "" }]
|
|
51950
|
+
title: "manifest_node_deleteEntity_form_title",
|
|
51951
|
+
sections: {
|
|
51952
|
+
"entity-config": {
|
|
51953
|
+
title: "manifest_node_deleteEntity_form_entityConfig_title"
|
|
52888
51954
|
}
|
|
52889
|
-
|
|
51955
|
+
}
|
|
52890
51956
|
}
|
|
52891
51957
|
};
|
|
52892
|
-
var
|
|
51958
|
+
var NODE_I18N_OVERLAYS51 = {};
|
|
51959
|
+
var core_datafabric_delete_default = definition140;
|
|
51960
|
+
var latest51 = definition140;
|
|
51961
|
+
var allVersions51 = [definition140];
|
|
51962
|
+
var latestSchema40 = schema115;
|
|
51963
|
+
var migrations50 = [];
|
|
51964
|
+
var versionHashes51 = {
|
|
51965
|
+
"1.0": "50a06db83b00fbe4e2aaf3c4aa3552106bc42c588c167c4a2293005f9d88954e"
|
|
51966
|
+
};
|
|
51967
|
+
var core_datafabric_create_exports = {};
|
|
51968
|
+
__export2(core_datafabric_create_exports, {
|
|
51969
|
+
NODE_I18N: () => NODE_I18N52,
|
|
51970
|
+
NODE_I18N_OVERLAYS: () => NODE_I18N_OVERLAYS52,
|
|
51971
|
+
allVersions: () => allVersions52,
|
|
51972
|
+
default: () => core_datafabric_create_default,
|
|
51973
|
+
latest: () => latest52,
|
|
51974
|
+
latestSchema: () => latestSchema41,
|
|
51975
|
+
migrations: () => migrations51,
|
|
51976
|
+
v1_0: () => definition141,
|
|
51977
|
+
versionHashes: () => versionHashes52
|
|
51978
|
+
});
|
|
51979
|
+
var inputDefinitionSchema96 = external_exports.object({
|
|
52893
51980
|
type: external_exports.literal("object"),
|
|
52894
51981
|
properties: external_exports.object({
|
|
52895
51982
|
entityConfig: external_exports.object({ type: external_exports.literal("object") }).passthrough()
|
|
52896
51983
|
}).passthrough()
|
|
52897
51984
|
}).passthrough();
|
|
52898
|
-
var
|
|
51985
|
+
var formSchema106 = external_exports.object({
|
|
52899
51986
|
id: external_exports.literal("create-entity-properties"),
|
|
52900
51987
|
title: external_exports.string(),
|
|
52901
51988
|
sections: external_exports.tuple([
|
|
@@ -52911,45 +51998,22 @@ var formSchema113 = external_exports.object({
|
|
|
52911
51998
|
}).passthrough()
|
|
52912
51999
|
])
|
|
52913
52000
|
}).passthrough();
|
|
52914
|
-
var
|
|
52001
|
+
var schema116 = nodeManifestSchema.extend({
|
|
52915
52002
|
nodeType: external_exports.literal("core.datafabric.create"),
|
|
52916
|
-
version: external_exports.literal("1.
|
|
52917
|
-
inputDefinition:
|
|
52918
|
-
form:
|
|
52003
|
+
version: external_exports.literal("1.0"),
|
|
52004
|
+
inputDefinition: inputDefinitionSchema96,
|
|
52005
|
+
form: formSchema106
|
|
52919
52006
|
});
|
|
52920
|
-
var
|
|
52921
|
-
type: "object",
|
|
52922
|
-
properties: { type: { const: "jsExpression" }, expression: { type: "string", pattern: "\\S" } },
|
|
52923
|
-
required: ["type", "expression"]
|
|
52924
|
-
};
|
|
52925
|
-
var FIELD_VALUE_PRESENT2 = { anyOf: [{ type: "string", pattern: "\\S" }, NON_BLANK_EXPRESSION6] };
|
|
52926
|
-
var LABEL4 = "Create entity record";
|
|
52927
|
-
var LEGACY_LABEL4 = /^Create entity( \d+)?$/;
|
|
52928
|
-
var migration96 = {
|
|
52929
|
-
nodeType: "core.datafabric.create",
|
|
52930
|
-
from: "1.1",
|
|
52931
|
-
to: "1.2",
|
|
52932
|
-
description: "This node is now called Create entity record, so it reads as adding a record to an entity rather than creating the entity itself.",
|
|
52933
|
-
applyDefinition(_def) {
|
|
52934
|
-
return structuredClone(definition148);
|
|
52935
|
-
},
|
|
52936
|
-
applyInstance(node) {
|
|
52937
|
-
const display = node.display;
|
|
52938
|
-
if (typeof display?.label !== "string")
|
|
52939
|
-
return node;
|
|
52940
|
-
const match = LEGACY_LABEL4.exec(display.label);
|
|
52941
|
-
return match ? { ...node, display: { ...display, label: `${LABEL4}${match[1] ?? ""}` } } : node;
|
|
52942
|
-
}
|
|
52943
|
-
};
|
|
52944
|
-
var definition148 = {
|
|
52007
|
+
var definition141 = {
|
|
52945
52008
|
nodeType: "core.datafabric.create",
|
|
52946
|
-
version: "1.
|
|
52009
|
+
version: "1.0",
|
|
52947
52010
|
category: "data",
|
|
52948
52011
|
description: "Create an entity record in Data Fabric",
|
|
52949
52012
|
tags: ["datafabric", "entity", "data", "create", "insert", "write"],
|
|
52950
52013
|
sortOrder: categorySortOrders["data"] + 7,
|
|
52951
52014
|
display: {
|
|
52952
|
-
label:
|
|
52015
|
+
label: "Create entity",
|
|
52016
|
+
canvasLabel: "Create entity",
|
|
52953
52017
|
icon: "layers-arrow-up-right"
|
|
52954
52018
|
},
|
|
52955
52019
|
handleConfiguration: [
|
|
@@ -52978,7 +52042,7 @@ var definition148 = {
|
|
|
52978
52042
|
type: "array",
|
|
52979
52043
|
contains: {
|
|
52980
52044
|
type: "object",
|
|
52981
|
-
properties: { field: { type: "string", pattern: "\\S" }, value:
|
|
52045
|
+
properties: { field: { type: "string", pattern: "\\S" }, value: { type: "string", pattern: "\\S" } },
|
|
52982
52046
|
required: ["field", "value"]
|
|
52983
52047
|
},
|
|
52984
52048
|
errorMessage: "Set a value for at least one field"
|
|
@@ -53003,7 +52067,7 @@ var definition148 = {
|
|
|
53003
52067
|
},
|
|
53004
52068
|
form: {
|
|
53005
52069
|
id: "create-entity-properties",
|
|
53006
|
-
title: "Create entity
|
|
52070
|
+
title: "Create entity configuration",
|
|
53007
52071
|
sections: [
|
|
53008
52072
|
{
|
|
53009
52073
|
id: "entity-config",
|
|
@@ -53035,15 +52099,13 @@ var NODE_I18N52 = {
|
|
|
53035
52099
|
}
|
|
53036
52100
|
};
|
|
53037
52101
|
var NODE_I18N_OVERLAYS52 = {};
|
|
53038
|
-
var core_datafabric_create_default =
|
|
53039
|
-
var latest52 =
|
|
53040
|
-
var allVersions52 = [
|
|
53041
|
-
var latestSchema41 =
|
|
53042
|
-
var migrations51 = [
|
|
52102
|
+
var core_datafabric_create_default = definition141;
|
|
52103
|
+
var latest52 = definition141;
|
|
52104
|
+
var allVersions52 = [definition141];
|
|
52105
|
+
var latestSchema41 = schema116;
|
|
52106
|
+
var migrations51 = [];
|
|
53043
52107
|
var versionHashes52 = {
|
|
53044
|
-
"1.0": "b1dbd6e0f4c7be63dec257c588231ed0f75e29bf18dda1b4fb3fee41184e2f1e"
|
|
53045
|
-
"1.1": "f85e7ff94c525e6add9d2f4d5add0add5e0ed82e53f40bfe608781bad8e24535",
|
|
53046
|
-
"1.2": "07eda33f78b688ad3cefb6f971f33a60810d335636202bc85900fde35c7e9dc1"
|
|
52108
|
+
"1.0": "b1dbd6e0f4c7be63dec257c588231ed0f75e29bf18dda1b4fb3fee41184e2f1e"
|
|
53047
52109
|
};
|
|
53048
52110
|
var allNodeModules = [
|
|
53049
52111
|
core_action_script_exports,
|
|
@@ -53102,14 +52164,14 @@ var allNodeModules = [
|
|
|
53102
52164
|
var nodeModuleRegistry = Object.fromEntries(allNodeModules.map((m) => [m.latest.nodeType, m]));
|
|
53103
52165
|
var allDefinitions = allNodeModules.flatMap((m) => m.allVersions);
|
|
53104
52166
|
var latestDefinitions = allNodeModules.map((m) => m.latest);
|
|
53105
|
-
var latestDefinitionsByNodeType = new Map(latestDefinitions.map((
|
|
52167
|
+
var latestDefinitionsByNodeType = new Map(latestDefinitions.map((definition142) => [definition142.nodeType, definition142]));
|
|
53106
52168
|
function getLatestDefinitionByNodeType(nodeType) {
|
|
53107
52169
|
return latestDefinitionsByNodeType.get(nodeType);
|
|
53108
52170
|
}
|
|
53109
52171
|
function getManifestKey(nodeType, version2) {
|
|
53110
52172
|
return `${nodeType}:${version2}`;
|
|
53111
52173
|
}
|
|
53112
|
-
var definitionsByKey = new Map(allDefinitions.map((
|
|
52174
|
+
var definitionsByKey = new Map(allDefinitions.map((definition142) => [getManifestKey(definition142.nodeType, definition142.version), definition142]));
|
|
53113
52175
|
var publicOotbModules = [
|
|
53114
52176
|
core_logic_mock_exports,
|
|
53115
52177
|
core_logic_decision_exports,
|
|
@@ -53406,9 +52468,9 @@ function createModel(input) {
|
|
|
53406
52468
|
]
|
|
53407
52469
|
};
|
|
53408
52470
|
}
|
|
53409
|
-
function buildInputField(key, formType,
|
|
52471
|
+
function buildInputField(key, formType, schema117) {
|
|
53410
52472
|
if (formType === "object" || formType === "array") {
|
|
53411
|
-
const effectiveSchema =
|
|
52473
|
+
const effectiveSchema = schema117 ?? (formType === "array" ? { type: "array" } : undefined);
|
|
53412
52474
|
return {
|
|
53413
52475
|
name: "inputs." + key,
|
|
53414
52476
|
type: "custom",
|
|
@@ -53716,11 +52778,11 @@ var DYNAMIC_EXTRACT_INPUT_DEFINITION = {
|
|
|
53716
52778
|
required: ["fileRef"]
|
|
53717
52779
|
};
|
|
53718
52780
|
var TAXONOMY_SCHEMA = resolveJsonSchema({
|
|
53719
|
-
...
|
|
52781
|
+
...schema112,
|
|
53720
52782
|
$ref: "#/definitions/UiPath.DocumentProcessing.Contracts.Taxonomy.DocumentTaxonomy"
|
|
53721
52783
|
}).schema;
|
|
53722
52784
|
var EXTRACTION_RESULT_SCHEMA = resolveJsonSchema({
|
|
53723
|
-
...
|
|
52785
|
+
...schema112,
|
|
53724
52786
|
$ref: "#/definitions/UiPath.DocumentProcessing.Contracts.Results.ExtractionResult"
|
|
53725
52787
|
}).schema;
|
|
53726
52788
|
var IXP_OUTPUT_DEFINITION = {
|
|
@@ -55058,7 +54120,7 @@ function mapRelease(release, isAsync = false) {
|
|
|
55058
54120
|
};
|
|
55059
54121
|
}
|
|
55060
54122
|
async function fetchOrchestratorPage(baseUrl, organizationId, tenantName, token, processType, skip, top) {
|
|
55061
|
-
const url2 = `${baseUrl}/${organizationId}/${tenantName}/orchestrator_/odata/Releases/UiPath.Server.Configuration.OData.ListReleases?$select=${ORCH_SELECT}&$top=${top}&$skip=${skip}&$expand=${ORCH_EXPAND}&$orderby=Name%20asc&$filter=((ProcessType eq '${processType}'))&$count=true`;
|
|
54123
|
+
const url2 = `${baseUrl}/${organizationId}/${tenantName}/orchestrator_/odata/Releases/UiPath.Server.Configuration.OData.ListReleases?$select=${ORCH_SELECT}&$top=${top}&$skip=${skip}&$expand=${ORCH_EXPAND}&$orderby=Name%20asc&$filter=((ProcessType eq '${processType}') and (OrganizationUnitType ne 'DebugSolution'))&$count=true`;
|
|
55062
54124
|
const response = await fetch(url2, { headers: { Authorization: `Bearer ${token}` } });
|
|
55063
54125
|
if (!response.ok)
|
|
55064
54126
|
throw new Error(`Orchestrator ${processType} fetch failed: ${response.status}`);
|
|
@@ -55077,9 +54139,11 @@ async function fetchAllReleasesForType(baseUrl, organizationId, tenantName, toke
|
|
|
55077
54139
|
const totalPages = Math.ceil(first.totalCount / pageSize);
|
|
55078
54140
|
if (totalPages > 1) {
|
|
55079
54141
|
const remaining = await Promise.allSettled(Array.from({ length: totalPages - 1 }, (_, i) => fetchOrchestratorPage(baseUrl, organizationId, tenantName, token, processType, (i + 1) * pageSize, pageSize)));
|
|
55080
|
-
for (const result of remaining) {
|
|
54142
|
+
for (const [i, result] of remaining.entries()) {
|
|
55081
54143
|
if (result.status === "fulfilled")
|
|
55082
54144
|
Object.assign(all, result.value.items);
|
|
54145
|
+
else
|
|
54146
|
+
console.warn(`[fetchAllReleasesForType] ${processType} page ${i + 1} dropped:`, result.reason);
|
|
55083
54147
|
}
|
|
55084
54148
|
}
|
|
55085
54149
|
return all;
|
|
@@ -55722,7 +54786,13 @@ var _ManifestClient = class _ManifestClient2 {
|
|
|
55722
54786
|
branches.push({
|
|
55723
54787
|
name: "orchestrator",
|
|
55724
54788
|
run: async () => {
|
|
55725
|
-
const { nodes } = await this.fetchers.fetchOrchestratorNodes({
|
|
54789
|
+
const { nodes, failures } = await this.fetchers.fetchOrchestratorNodes({
|
|
54790
|
+
...config2,
|
|
54791
|
+
disabledResourceTypes: options.disabledResourceTypes
|
|
54792
|
+
});
|
|
54793
|
+
if (failures.length) {
|
|
54794
|
+
console.warn(`[ManifestClient] orchestrator partial fetch: ${failures.map((f) => f.source).join(", ")}`, failures);
|
|
54795
|
+
}
|
|
55726
54796
|
return { nodes, categories: [] };
|
|
55727
54797
|
}
|
|
55728
54798
|
});
|
|
@@ -55772,26 +54842,12 @@ init_esm_shims();
|
|
|
55772
54842
|
var VARS_PREFIX = "$vars";
|
|
55773
54843
|
var METADATA_PREFIX = "$metadata";
|
|
55774
54844
|
var SELF_PREFIX = "$self";
|
|
54845
|
+
var AGENT_PREFIX = "$agent";
|
|
55775
54846
|
var VARS_IDENTIFIER = "vars";
|
|
55776
54847
|
var METADATA_IDENTIFIER = "metadata";
|
|
55777
54848
|
var VARIABLE_PATH_IDENTIFIER_PATTERN = String.raw`[a-zA-Z_]\w*`;
|
|
55778
54849
|
var VARIABLE_PATH_SELECTOR_PATTERN = String.raw`(?:\[\d+\]|\.${VARIABLE_PATH_IDENTIFIER_PATTERN})*`;
|
|
55779
54850
|
var VARIABLE_PATH_PATTERN = String.raw`${VARIABLE_PATH_IDENTIFIER_PATTERN}${VARIABLE_PATH_SELECTOR_PATTERN}`;
|
|
55780
|
-
function asExpressionValue(value) {
|
|
55781
|
-
if (!value || typeof value !== "object" || Array.isArray(value))
|
|
55782
|
-
return;
|
|
55783
|
-
const ev = value;
|
|
55784
|
-
return typeof ev.expression === "string" ? ev : undefined;
|
|
55785
|
-
}
|
|
55786
|
-
function expressionText(value) {
|
|
55787
|
-
if (typeof value === "string")
|
|
55788
|
-
return value;
|
|
55789
|
-
const ev = asExpressionValue(value);
|
|
55790
|
-
return typeof ev?.expression === "string" ? ev.expression : "";
|
|
55791
|
-
}
|
|
55792
|
-
function isJsExpressionValue(value) {
|
|
55793
|
-
return asExpressionValue(value)?.type === "jsExpression";
|
|
55794
|
-
}
|
|
55795
54851
|
var ENGINE_NAMESPACES = ["vars", "metadata", "iterator"];
|
|
55796
54852
|
var ENGINE_REF = new RegExp(`^(?:${ENGINE_NAMESPACES.join("|")})(?:\\.[A-Za-z_$][\\w$]*|\\[\\d+\\])+$`);
|
|
55797
54853
|
var RESOLVABLE_BY_ACCESSOR_WALK = new RegExp(`^(?:${ENGINE_NAMESPACES.join("|")})\\.[A-Za-z_$][\\w$]*(?:\\[\\d+\\])*$`);
|
|
@@ -55815,7 +54871,7 @@ var MULTI_RECORD_MIN_LIMIT = 1;
|
|
|
55815
54871
|
var MULTI_RECORD_MAX_LIMIT = 1000;
|
|
55816
54872
|
var MULTI_RECORD_MIN_SKIP = 0;
|
|
55817
54873
|
function isRecordWindowVariable(value) {
|
|
55818
|
-
return isEngineRef(
|
|
54874
|
+
return isEngineRef(value);
|
|
55819
54875
|
}
|
|
55820
54876
|
function clampRecordLimit(limit) {
|
|
55821
54877
|
if (typeof limit === "string" && limit.trim() !== "" && !isRecordWindowVariable(limit)) {
|
|
@@ -55841,24 +54897,18 @@ var IN_FILTER_OPERATOR = "is any of";
|
|
|
55841
54897
|
function splitInValues(raw) {
|
|
55842
54898
|
return raw.split(",").map((part) => part.trim()).filter(Boolean);
|
|
55843
54899
|
}
|
|
55844
|
-
function rowInValues(row) {
|
|
55845
|
-
const text = expressionText(row.value);
|
|
55846
|
-
if (isJsExpressionValue(row.value))
|
|
55847
|
-
return text.trim() ? [text] : [];
|
|
55848
|
-
return splitInValues(text);
|
|
55849
|
-
}
|
|
55850
54900
|
function filterRowWasAuthored(row) {
|
|
55851
|
-
return Boolean(row?.field ||
|
|
54901
|
+
return Boolean(row?.field || row?.value?.trim());
|
|
55852
54902
|
}
|
|
55853
54903
|
function filterRowYieldsPredicate(row, multiRecord) {
|
|
55854
|
-
if (!row?.field || !
|
|
54904
|
+
if (!row?.field || !row.value?.trim())
|
|
55855
54905
|
return false;
|
|
55856
54906
|
if (row.operator !== IN_FILTER_OPERATOR)
|
|
55857
54907
|
return true;
|
|
55858
|
-
return multiRecord &&
|
|
54908
|
+
return multiRecord && splitInValues(row.value).length > 0;
|
|
55859
54909
|
}
|
|
55860
54910
|
function filterRowDropWouldWiden(row, multiRecord) {
|
|
55861
|
-
if (!row?.field || !
|
|
54911
|
+
if (!row?.field || !row.value?.trim())
|
|
55862
54912
|
return false;
|
|
55863
54913
|
return !filterRowYieldsPredicate(row, multiRecord);
|
|
55864
54914
|
}
|
|
@@ -55870,7 +54920,7 @@ function resolveUpdateRecordSource(cfg) {
|
|
|
55870
54920
|
return cfg.recordSource;
|
|
55871
54921
|
if (cfg.readEntityNodeId)
|
|
55872
54922
|
return "fromRead";
|
|
55873
|
-
if (
|
|
54923
|
+
if (cfg.recordId)
|
|
55874
54924
|
return "byId";
|
|
55875
54925
|
return;
|
|
55876
54926
|
}
|
|
@@ -55919,6 +54969,6 @@ function findTerminalNodes(nodes, edges, isStartEvent) {
|
|
|
55919
54969
|
}
|
|
55920
54970
|
init_esm_shims();
|
|
55921
54971
|
|
|
55922
|
-
export { JSON_STRING_PREFIX, JIT_OBJECT_INPUT_MODE, parseConfigurationJson, resolveNodeOutputTypeSchema, createNodeVariable, generateNodeVariables, instance, NodeType, FIRE_AND_FORGET_INPUT, getResourceByServiceType, MANAGED_HTTP_NODE_TYPE, buildConnectorHttpRequestDetail, getLatestDefinitionByNodeType, getManifestKey, getConnectorHttpRequestKey, VARS_PREFIX, METADATA_PREFIX, SELF_PREFIX, VARS_IDENTIFIER, METADATA_IDENTIFIER, VARIABLE_PATH_IDENTIFIER_PATTERN, VARIABLE_PATH_SELECTOR_PATTERN, VARIABLE_PATH_PATTERN, toEngineRefPath, isEngineRef, engineRefNeedsJsEvaluator, isMultiRecordRead, clampRecordLimit, clampRecordSkip, IN_FILTER_OPERATOR, splitInValues, filterRowWasAuthored, filterRowYieldsPredicate, filterRowDropWouldWiden, isFileType, resolveUpdateRecordSource, stripVarsPrefix, findTerminalNodes };
|
|
54972
|
+
export { JSON_STRING_PREFIX, JIT_OBJECT_INPUT_MODE, parseConfigurationJson, resolveNodeOutputTypeSchema, createNodeVariable, generateNodeVariables, instance, NodeType, FIRE_AND_FORGET_INPUT, getResourceByServiceType, MANAGED_HTTP_NODE_TYPE, buildConnectorHttpRequestDetail, getLatestDefinitionByNodeType, getManifestKey, getConnectorHttpRequestKey, VARS_PREFIX, METADATA_PREFIX, SELF_PREFIX, AGENT_PREFIX, VARS_IDENTIFIER, METADATA_IDENTIFIER, VARIABLE_PATH_IDENTIFIER_PATTERN, VARIABLE_PATH_SELECTOR_PATTERN, VARIABLE_PATH_PATTERN, toEngineRefPath, isEngineRef, engineRefNeedsJsEvaluator, isMultiRecordRead, clampRecordLimit, clampRecordSkip, IN_FILTER_OPERATOR, splitInValues, filterRowWasAuthored, filterRowYieldsPredicate, filterRowDropWouldWiden, isFileType, resolveUpdateRecordSource, stripVarsPrefix, findTerminalNodes };
|
|
55923
54973
|
|
|
55924
|
-
//# debugId=
|
|
54974
|
+
//# debugId=C2A3AB055ADBE93B64756E2164756E21
|