mirror of
https://github.com/IT4Change/gradido.git
synced 2026-02-06 09:56:05 +00:00
60 lines
1.1 KiB
TypeScript
60 lines
1.1 KiB
TypeScript
import { IsBoolean, IsInt, IsObject, IsString } from 'class-validator'
|
|
import { ArgsType, Field, Int } from 'type-graphql'
|
|
|
|
import { Location } from '@model/Location'
|
|
|
|
@ArgsType()
|
|
export class UpdateUserInfosArgs {
|
|
@Field({ nullable: true })
|
|
@IsString()
|
|
firstName?: string
|
|
|
|
@Field({ nullable: true })
|
|
@IsString()
|
|
lastName?: string
|
|
|
|
@Field({ nullable: true })
|
|
@IsString()
|
|
alias?: string
|
|
|
|
@Field({ nullable: true })
|
|
@IsString()
|
|
language?: string
|
|
|
|
@Field(() => Int, { nullable: true })
|
|
@IsInt()
|
|
publisherId?: number | null
|
|
|
|
@Field({ nullable: true })
|
|
@IsString()
|
|
password?: string
|
|
|
|
@Field({ nullable: true })
|
|
@IsString()
|
|
passwordNew?: string
|
|
|
|
@Field({ nullable: true })
|
|
@IsBoolean()
|
|
hideAmountGDD?: boolean
|
|
|
|
@Field({ nullable: true })
|
|
@IsBoolean()
|
|
hideAmountGDT?: boolean
|
|
|
|
@Field({ nullable: false })
|
|
@IsBoolean()
|
|
gmsAllowed: boolean
|
|
|
|
@Field(() => Int, { nullable: false })
|
|
@IsInt()
|
|
gmsPublishName: number
|
|
|
|
@Field(() => Location, { nullable: true })
|
|
@IsObject()
|
|
gmsLocation?: Location | null
|
|
|
|
@Field(() => Int, { nullable: false })
|
|
@IsInt()
|
|
gmsPublishLocation: number
|
|
}
|