Files
twenty/packages/twenty-server/src/engine/metadata-modules/serverless-function/dtos/create-serverless-function.input.ts
T

17 lines
323 B
TypeScript

import { Field, InputType } from '@nestjs/graphql';
import { IsNotEmpty, IsOptional, IsString } from 'class-validator';
@InputType()
export class CreateServerlessFunctionInput {
@IsString()
@IsNotEmpty()
@Field()
name: string;
@IsString()
@IsOptional()
@Field({ nullable: true })
description?: string;
}