Files
twenty/packages/twenty-server/src/engine/metadata-modules/logic-function/dtos/logic-function-source.input.ts
T
2026-02-12 11:40:49 +01:00

20 lines
448 B
TypeScript

import { Field, InputType } from '@nestjs/graphql';
import { IsObject, IsString } from 'class-validator';
import graphqlTypeJson from 'graphql-type-json';
@InputType()
export class LogicFunctionSourceInput {
@IsString()
@Field({ nullable: false })
sourceHandlerCode: string;
@Field(() => graphqlTypeJson, { nullable: false })
@IsObject()
toolInputSchema: object;
@IsString()
@Field({ nullable: false })
handlerName: string;
}