Files
twenty/server/src/metadata/field-metadata/dtos/update-field.input.ts
T
Thaïs e488a87ce4 feat: save edited custom field (#2245)
Closes #2161

Co-authored-by: Lucas Bordeau <bordeau.lucas@gmail.com>
2023-10-27 18:06:31 +02:00

32 lines
566 B
TypeScript

import { Field, InputType } from '@nestjs/graphql';
import { IsBoolean, IsOptional, IsString } from 'class-validator';
@InputType()
export class UpdateFieldInput {
@IsString()
@IsOptional()
@Field({ nullable: true })
label?: string;
@IsString()
@IsOptional()
@Field({ nullable: true })
name?: string;
@IsString()
@IsOptional()
@Field({ nullable: true })
description?: string;
@IsString()
@IsOptional()
@Field({ nullable: true })
icon?: string;
@IsBoolean()
@IsOptional()
@Field({ nullable: true })
isActive?: boolean;
}