Support define is tool logic function (#17926)
- supports isTool and timeout settings in defineLogicFunction in apps and in setting tabs definition - compute for all toolInputSchema for logic funciton, in settings and in code steps <img width="991" height="802" alt="image" src="https://github.com/user-attachments/assets/05dc1221-cac9-45a3-87b0-3b13161446fd" />
This commit is contained in:
+3
-7
@@ -17,10 +17,8 @@ import { isNonEmptyString } from '@sniptt/guards';
|
||||
import { useState } from 'react';
|
||||
import { useRecoilValue } from 'recoil';
|
||||
import { isDefined } from 'twenty-shared/utils';
|
||||
import {
|
||||
buildOutputSchemaFromValue,
|
||||
TRIGGER_STEP_ID,
|
||||
} from 'twenty-shared/workflow';
|
||||
import { getOutputSchemaFromValue } from 'twenty-shared/logic-function';
|
||||
import { TRIGGER_STEP_ID } from 'twenty-shared/workflow';
|
||||
import { t } from '@lingui/core/macro';
|
||||
import { IconCopy } from 'twenty-ui/display';
|
||||
|
||||
@@ -153,9 +151,7 @@ export const WorkflowEditTriggerWebhookForm = ({
|
||||
expectedBody: undefined,
|
||||
}));
|
||||
|
||||
const outputSchema = buildOutputSchemaFromValue(
|
||||
parsingResult.data,
|
||||
);
|
||||
const outputSchema = getOutputSchemaFromValue(parsingResult.data);
|
||||
|
||||
triggerOptions.onTriggerUpdate(
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user