From ba4ea9c024307dcb248c71bf2702371d733d42ce Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E0=A4=95=E0=A4=BE=E0=A4=B0=E0=A4=A4=E0=A5=8B=E0=A4=AB?= =?UTF-8?q?=E0=A5=8D=E0=A4=AB=E0=A5=87=E0=A4=B2=E0=A4=B8=E0=A5=8D=E0=A4=95?= =?UTF-8?q?=E0=A5=8D=E0=A4=B0=E0=A4=BF=E0=A4=AA=E0=A5=8D=E0=A4=9F=E2=84=A2?= Date: Thu, 24 Nov 2022 15:52:15 +0100 Subject: [PATCH] fix: Apply SpecialNodeParameters to the types generated for the frontend (no-changelog) (#4715) fix: apply SpecialNodeParameters to the types generated for the frontend (no-changelog) --- packages/core/bin/generate-ui-types | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/packages/core/bin/generate-ui-types b/packages/core/bin/generate-ui-types index f8377a21b1..e57dd4885b 100755 --- a/packages/core/bin/generate-ui-types +++ b/packages/core/bin/generate-ui-types @@ -16,7 +16,14 @@ LoggerProxy.init({ const credentialTypes = Object.values(loader.credentialTypes).map((data) => data.type); const nodeTypes = Object.values(loader.nodeTypes) - .map((data) => data.type) + .map((data) => { + const nodeType = NodeHelpers.getVersionedNodeType(data.type); + const applyParameters = NodeHelpers.getSpecialNodeParameters(nodeType); + if (applyParameters.length) { + nodeType.description.properties.unshift(...applyParameters); + } + return data.type; + }) .flatMap((nodeData) => { const allNodeTypes = NodeHelpers.getVersionedNodeTypeAll(nodeData); return allNodeTypes.map((element) => element.description);