e488a87ce4
Closes #2161 Co-authored-by: Lucas Bordeau <bordeau.lucas@gmail.com>
32 lines
566 B
TypeScript
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;
|
|
}
|