chore: refacto NestJS in modules (#308)
* 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
This commit is contained in:
@ -0,0 +1,63 @@
|
||||
import { Field } from '@nestjs/graphql';
|
||||
import { InputType } from '@nestjs/graphql';
|
||||
import { GraphQLJSON } from 'graphql-type-json';
|
||||
import { WorkspaceMemberCreateNestedOneWithoutUserInput } from '../workspace-member/workspace-member-create-nested-one-without-user.input';
|
||||
import { HideField } from '@nestjs/graphql';
|
||||
import { CompanyCreateNestedManyWithoutAccountOwnerInput } from '../company/company-create-nested-many-without-account-owner.input';
|
||||
import { RefreshTokenCreateNestedManyWithoutUserInput } from '../refresh-token/refresh-token-create-nested-many-without-user.input';
|
||||
|
||||
@InputType()
|
||||
export class UserCreateWithoutCommentsInput {
|
||||
@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?: WorkspaceMemberCreateNestedOneWithoutUserInput;
|
||||
|
||||
@Field(() => CompanyCreateNestedManyWithoutAccountOwnerInput, {
|
||||
nullable: true,
|
||||
})
|
||||
companies?: CompanyCreateNestedManyWithoutAccountOwnerInput;
|
||||
|
||||
@HideField()
|
||||
refreshTokens?: RefreshTokenCreateNestedManyWithoutUserInput;
|
||||
}
|
||||
Reference in New Issue
Block a user