mirror of
https://github.com/IT4Change/gradido.git
synced 2026-02-06 09:56:05 +00:00
22 lines
522 B
TypeScript
22 lines
522 B
TypeScript
import { IsString, IsUUID } from 'class-validator'
|
|
import { ArgsType, Field, InputType } from 'type-graphql'
|
|
|
|
import { Location } from '@/graphql/model/Location'
|
|
import { isValidLocation } from '@/graphql/validator/Location'
|
|
|
|
@ArgsType()
|
|
@InputType()
|
|
export class EditCommunityInput {
|
|
@Field(() => String)
|
|
@IsUUID('4')
|
|
uuid: string
|
|
|
|
@Field(() => String, { nullable: true })
|
|
@IsString()
|
|
gmsApiKey?: string | null
|
|
|
|
@Field(() => Location, { nullable: true })
|
|
@isValidLocation()
|
|
location?: Location | null
|
|
}
|