import { InputType, Field, ID } from '@nestjs/graphql';

@InputType()
export class CreateCollectionTokenInput {

    @Field()
    defaultSelection: string;

    @Field(() => [String])
    selectedBuildIDS: string[];

    @Field(() => [String])
    selectedCompanyIDS: string[];

}

@InputType()
export class CreateUserInput {

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

    @Field()
    password: string;

    @Field(() => [String], { nullable: true })
    history?: string[];

    @Field()
    tag: string;

    @Field()
    email: string;

    @Field()
    phone: string;

    @Field(() => CreateCollectionTokenInput)
    collectionTokens: CreateCollectionTokenInput;

    @Field(() => ID)
    person: string;

    @Field(() => ID, { nullable: true })
    type?: string;

    @Field(() => ID, { nullable: true })
    expiryStarts?: string;

    @Field(() => ID, { nullable: true })
    expiryEnds?: string;

    @Field(() => Boolean, { nullable: true })
    isConfirmed?: boolean;

    @Field(() => Boolean, { nullable: true })
    isNotificationSend?: boolean;

}
