* chore: wip refacto in modules * fix: rollback port * fix: jwt guard in wrong folder * chore: rename folder exception-filter in filters * fix: tests are running * fix: excessive stack depth comparing types * fix: auth issue * chore: move createUser in UserService * fix: test * fix: guards * fix: jwt guard don't handle falsy user
66 lines
2.0 KiB
TypeScript
66 lines
2.0 KiB
TypeScript
import { Field } from '@nestjs/graphql';
|
|
import { InputType } from '@nestjs/graphql';
|
|
import { GraphQLJSON } from 'graphql-type-json';
|
|
import { WorkspaceMemberUncheckedCreateNestedOneWithoutUserInput } from '../workspace-member/workspace-member-unchecked-create-nested-one-without-user.input';
|
|
import { HideField } from '@nestjs/graphql';
|
|
import { CompanyUncheckedCreateNestedManyWithoutAccountOwnerInput } from '../company/company-unchecked-create-nested-many-without-account-owner.input';
|
|
import { CommentUncheckedCreateNestedManyWithoutAuthorInput } from '../comment/comment-unchecked-create-nested-many-without-author.input';
|
|
|
|
@InputType()
|
|
export class UserUncheckedCreateWithoutRefreshTokensInput {
|
|
@Field(() => String, { nullable: false })
|
|
id!: string;
|
|
|
|
@Field(() => Date, { nullable: true })
|
|
createdAt?: Date | string;
|
|
|
|
@Field(() => Date, { nullable: true })
|
|
updatedAt?: Date | string;
|
|
|
|
@Field(() => Date, { nullable: true })
|
|
deletedAt?: Date | string;
|
|
|
|
@Field(() => Date, { nullable: true })
|
|
lastSeen?: Date | string;
|
|
|
|
@Field(() => Boolean, { nullable: true })
|
|
disabled?: boolean;
|
|
|
|
@Field(() => String, { nullable: false })
|
|
displayName!: string;
|
|
|
|
@Field(() => String, { nullable: false })
|
|
email!: string;
|
|
|
|
@Field(() => String, { nullable: true })
|
|
avatarUrl?: string;
|
|
|
|
@Field(() => String, { nullable: false })
|
|
locale!: string;
|
|
|
|
@Field(() => String, { nullable: true })
|
|
phoneNumber?: string;
|
|
|
|
@Field(() => String, { nullable: true })
|
|
passwordHash?: string;
|
|
|
|
@Field(() => Boolean, { nullable: true })
|
|
emailVerified?: boolean;
|
|
|
|
@Field(() => GraphQLJSON, { nullable: true })
|
|
metadata?: any;
|
|
|
|
@HideField()
|
|
workspaceMember?: WorkspaceMemberUncheckedCreateNestedOneWithoutUserInput;
|
|
|
|
@Field(() => CompanyUncheckedCreateNestedManyWithoutAccountOwnerInput, {
|
|
nullable: true,
|
|
})
|
|
companies?: CompanyUncheckedCreateNestedManyWithoutAccountOwnerInput;
|
|
|
|
@Field(() => CommentUncheckedCreateNestedManyWithoutAuthorInput, {
|
|
nullable: true,
|
|
})
|
|
comments?: CommentUncheckedCreateNestedManyWithoutAuthorInput;
|
|
}
|