import { InputType, Field, GraphQLISODateTime } from "@nestjs/graphql";

@InputType()
export class UpdatePersonInput {

    @Field({ nullable: true })
    firstName?: string;

    @Field({ nullable: true })
    surname?: string;

    @Field({ nullable: true })
    middleName?: string;

    @Field({ nullable: true })
    sexCode?: string;

    @Field({ nullable: true })
    personRef?: string;

    @Field({ nullable: true })
    personTag?: string;

    @Field({ nullable: true })
    fatherName?: string;

    @Field({ nullable: true })
    motherName?: string;

    @Field({ nullable: true })
    countryCode?: string;

    @Field({ nullable: true })
    nationalIdentityId?: string;

    @Field({ nullable: true })
    birthPlace?: string;

    @Field(() => GraphQLISODateTime, { nullable: true })
    birthDate?: Date;

    @Field({ nullable: true })
    taxNo?: string;

    @Field({ nullable: true })
    birthname?: string;

    @Field(() => GraphQLISODateTime, { nullable: true })
    expiryStarts?: Date;

    @Field(() => GraphQLISODateTime, { nullable: true })
    expiryEnds?: Date;
}
