62fe1d0e88
 
17 lines
323 B
TypeScript
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;
|
|
}
|