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


@InputType()
export class UpdateCollectionTokenInput {

    @Field()
    defaultSelection: string;

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

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

}


@InputType()
export class UpdateUserInput {

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

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

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

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

    @Field(() => UpdateCollectionTokenInput, { nullable: true })
    collectionTokens?: UpdateCollectionTokenInput;

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

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

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

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

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

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