da064d5e88
- 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" />
17 lines
476 B
TypeScript
17 lines
476 B
TypeScript
import { type LogicFunctionManifest } from 'twenty-shared/application';
|
|
import { type InputJsonSchema } from 'twenty-shared/logic-function';
|
|
|
|
export type LogicFunctionHandler = (...args: any[]) => any | Promise<any>;
|
|
|
|
export type LogicFunctionConfig = Omit<
|
|
LogicFunctionManifest,
|
|
| 'sourceHandlerPath'
|
|
| 'builtHandlerPath'
|
|
| 'builtHandlerChecksum'
|
|
| 'handlerName'
|
|
| 'toolInputSchema'
|
|
> & {
|
|
handler: LogicFunctionHandler;
|
|
toolInputSchema?: InputJsonSchema;
|
|
};
|