mirror of
https://github.com/IT4Change/gradido.git
synced 2026-02-06 09:56:05 +00:00
27 lines
618 B
TypeScript
27 lines
618 B
TypeScript
// https://www.npmjs.com/package/@apollo/protobufjs
|
|
|
|
import { IsEnum, IsObject, ValidateNested } from 'class-validator'
|
|
import { InputType, Field } from 'type-graphql'
|
|
|
|
import { isValidDateString } from '@validator/DateString'
|
|
|
|
import { AccountType } from '@/graphql/enum/AccountType'
|
|
|
|
import { UserIdentifier } from './UserIdentifier'
|
|
|
|
@InputType()
|
|
export class UserAccountDraft {
|
|
@Field(() => UserIdentifier)
|
|
@IsObject()
|
|
@ValidateNested()
|
|
user: UserIdentifier
|
|
|
|
@Field(() => String)
|
|
@isValidDateString()
|
|
createdAt: string
|
|
|
|
@Field(() => AccountType)
|
|
@IsEnum(AccountType)
|
|
accountType: AccountType
|
|
}
|