mirror of
https://github.com/IT4Change/gradido.git
synced 2026-02-06 09:56:05 +00:00
25 lines
602 B
TypeScript
25 lines
602 B
TypeScript
// https://www.npmjs.com/package/@apollo/protobufjs
|
|
|
|
import { IsObject, IsUUID, ValidateNested } from 'class-validator'
|
|
import { Field, InputType } from 'type-graphql'
|
|
|
|
import { CommunityUser } from './CommunityUser'
|
|
import { IdentifierSeed } from './IdentifierSeed'
|
|
|
|
@InputType()
|
|
export class UserIdentifier {
|
|
@Field(() => String)
|
|
@IsUUID('4')
|
|
communityUuid: string
|
|
|
|
@Field(() => CommunityUser, { nullable: true })
|
|
@IsObject()
|
|
@ValidateNested()
|
|
communityUser?: CommunityUser
|
|
|
|
@Field(() => IdentifierSeed, { nullable: true })
|
|
@IsObject()
|
|
@ValidateNested()
|
|
seed?: IdentifierSeed
|
|
}
|