import { Field, ObjectType, registerEnumType } from 'type-graphql'; export enum VerificationRequestKind { Email = 'Email', } registerEnumType(VerificationRequestKind, { name: 'VerificationRequestKind', }); @ObjectType() export class VerificationRequest { @Field(() => Boolean) requested!: boolean; @Field(() => String, { description: 'Indicates where the verification request was sent to', }) sentTo!: string; @Field(() => VerificationRequestKind, { description: 'Indicates the type of verification request this was', }) type!: VerificationRequestKind; @Field(() => Date, { description: 'When the verification request will expire', }) expiresAt!: Date; }