feat: refactoring auth & add email password login (#318)
* feat: wip * fix: issues * feat: clean controllers and services * fix: test * Fix auth --------- Co-authored-by: Charles Bochet <charles@twenty.com>
This commit is contained in:
@ -1,5 +1,6 @@
|
||||
import { Field } from '@nestjs/graphql';
|
||||
import { InputType } from '@nestjs/graphql';
|
||||
import { HideField } from '@nestjs/graphql';
|
||||
|
||||
@InputType()
|
||||
export class UserCountAggregateInput {
|
||||
@ -36,7 +37,7 @@ export class UserCountAggregateInput {
|
||||
@Field(() => Boolean, { nullable: true })
|
||||
phoneNumber?: true;
|
||||
|
||||
@Field(() => Boolean, { nullable: true })
|
||||
@HideField()
|
||||
passwordHash?: true;
|
||||
|
||||
@Field(() => Boolean, { nullable: true })
|
||||
|
||||
@ -1,6 +1,7 @@
|
||||
import { Field } from '@nestjs/graphql';
|
||||
import { ObjectType } from '@nestjs/graphql';
|
||||
import { Int } from '@nestjs/graphql';
|
||||
import { HideField } from '@nestjs/graphql';
|
||||
|
||||
@ObjectType()
|
||||
export class UserCountAggregate {
|
||||
@ -37,7 +38,7 @@ export class UserCountAggregate {
|
||||
@Field(() => Int, { nullable: false })
|
||||
phoneNumber!: number;
|
||||
|
||||
@Field(() => Int, { nullable: false })
|
||||
@HideField()
|
||||
passwordHash!: number;
|
||||
|
||||
@Field(() => Int, { nullable: false })
|
||||
|
||||
@ -1,6 +1,7 @@
|
||||
import { Field } from '@nestjs/graphql';
|
||||
import { InputType } from '@nestjs/graphql';
|
||||
import { SortOrder } from '../prisma/sort-order.enum';
|
||||
import { HideField } from '@nestjs/graphql';
|
||||
|
||||
@InputType()
|
||||
export class UserCountOrderByAggregateInput {
|
||||
@ -37,7 +38,7 @@ export class UserCountOrderByAggregateInput {
|
||||
@Field(() => SortOrder, { nullable: true })
|
||||
phoneNumber?: keyof typeof SortOrder;
|
||||
|
||||
@Field(() => SortOrder, { nullable: true })
|
||||
@HideField()
|
||||
passwordHash?: keyof typeof SortOrder;
|
||||
|
||||
@Field(() => SortOrder, { nullable: true })
|
||||
|
||||
@ -1,11 +1,12 @@
|
||||
import { Field } from '@nestjs/graphql';
|
||||
import { InputType } from '@nestjs/graphql';
|
||||
import { HideField } from '@nestjs/graphql';
|
||||
import { GraphQLJSON } from 'graphql-type-json';
|
||||
|
||||
@InputType()
|
||||
export class UserCreateManyInput {
|
||||
@Field(() => String, { nullable: false })
|
||||
id!: string;
|
||||
@Field(() => String, { nullable: true })
|
||||
id?: string;
|
||||
|
||||
@Field(() => Date, { nullable: true })
|
||||
createdAt?: Date | string;
|
||||
@ -37,7 +38,7 @@ export class UserCreateManyInput {
|
||||
@Field(() => String, { nullable: true })
|
||||
phoneNumber?: string;
|
||||
|
||||
@Field(() => String, { nullable: true })
|
||||
@HideField()
|
||||
passwordHash?: string;
|
||||
|
||||
@Field(() => Boolean, { nullable: true })
|
||||
|
||||
@ -1,15 +1,15 @@
|
||||
import { Field } from '@nestjs/graphql';
|
||||
import { InputType } from '@nestjs/graphql';
|
||||
import { HideField } 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(() => String, { nullable: true })
|
||||
id?: string;
|
||||
|
||||
@Field(() => Date, { nullable: true })
|
||||
createdAt?: Date | string;
|
||||
@ -41,7 +41,7 @@ export class UserCreateWithoutCommentsInput {
|
||||
@Field(() => String, { nullable: true })
|
||||
phoneNumber?: string;
|
||||
|
||||
@Field(() => String, { nullable: true })
|
||||
@HideField()
|
||||
passwordHash?: string;
|
||||
|
||||
@Field(() => Boolean, { nullable: true })
|
||||
|
||||
@ -1,15 +1,15 @@
|
||||
import { Field } from '@nestjs/graphql';
|
||||
import { InputType } from '@nestjs/graphql';
|
||||
import { HideField } 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 { RefreshTokenCreateNestedManyWithoutUserInput } from '../refresh-token/refresh-token-create-nested-many-without-user.input';
|
||||
import { CommentCreateNestedManyWithoutAuthorInput } from '../comment/comment-create-nested-many-without-author.input';
|
||||
|
||||
@InputType()
|
||||
export class UserCreateWithoutCompaniesInput {
|
||||
@Field(() => String, { nullable: false })
|
||||
id!: string;
|
||||
@Field(() => String, { nullable: true })
|
||||
id?: string;
|
||||
|
||||
@Field(() => Date, { nullable: true })
|
||||
createdAt?: Date | string;
|
||||
@ -41,7 +41,7 @@ export class UserCreateWithoutCompaniesInput {
|
||||
@Field(() => String, { nullable: true })
|
||||
phoneNumber?: string;
|
||||
|
||||
@Field(() => String, { nullable: true })
|
||||
@HideField()
|
||||
passwordHash?: string;
|
||||
|
||||
@Field(() => Boolean, { nullable: true })
|
||||
|
||||
@ -1,15 +1,15 @@
|
||||
import { Field } from '@nestjs/graphql';
|
||||
import { InputType } from '@nestjs/graphql';
|
||||
import { HideField } 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 { CommentCreateNestedManyWithoutAuthorInput } from '../comment/comment-create-nested-many-without-author.input';
|
||||
|
||||
@InputType()
|
||||
export class UserCreateWithoutRefreshTokensInput {
|
||||
@Field(() => String, { nullable: false })
|
||||
id!: string;
|
||||
@Field(() => String, { nullable: true })
|
||||
id?: string;
|
||||
|
||||
@Field(() => Date, { nullable: true })
|
||||
createdAt?: Date | string;
|
||||
@ -41,7 +41,7 @@ export class UserCreateWithoutRefreshTokensInput {
|
||||
@Field(() => String, { nullable: true })
|
||||
phoneNumber?: string;
|
||||
|
||||
@Field(() => String, { nullable: true })
|
||||
@HideField()
|
||||
passwordHash?: string;
|
||||
|
||||
@Field(() => Boolean, { nullable: true })
|
||||
|
||||
@ -1,15 +1,15 @@
|
||||
import { Field } from '@nestjs/graphql';
|
||||
import { InputType } from '@nestjs/graphql';
|
||||
import { HideField } from '@nestjs/graphql';
|
||||
import { GraphQLJSON } from 'graphql-type-json';
|
||||
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';
|
||||
import { HideField } from '@nestjs/graphql';
|
||||
import { CommentCreateNestedManyWithoutAuthorInput } from '../comment/comment-create-nested-many-without-author.input';
|
||||
|
||||
@InputType()
|
||||
export class UserCreateWithoutWorkspaceMemberInput {
|
||||
@Field(() => String, { nullable: false })
|
||||
id!: string;
|
||||
@Field(() => String, { nullable: true })
|
||||
id?: string;
|
||||
|
||||
@Field(() => Date, { nullable: true })
|
||||
createdAt?: Date | string;
|
||||
@ -41,7 +41,7 @@ export class UserCreateWithoutWorkspaceMemberInput {
|
||||
@Field(() => String, { nullable: true })
|
||||
phoneNumber?: string;
|
||||
|
||||
@Field(() => String, { nullable: true })
|
||||
@HideField()
|
||||
passwordHash?: string;
|
||||
|
||||
@Field(() => Boolean, { nullable: true })
|
||||
|
||||
@ -1,16 +1,16 @@
|
||||
import { Field } from '@nestjs/graphql';
|
||||
import { InputType } from '@nestjs/graphql';
|
||||
import { HideField } 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';
|
||||
import { CommentCreateNestedManyWithoutAuthorInput } from '../comment/comment-create-nested-many-without-author.input';
|
||||
|
||||
@InputType()
|
||||
export class UserCreateInput {
|
||||
@Field(() => String, { nullable: false })
|
||||
id!: string;
|
||||
@Field(() => String, { nullable: true })
|
||||
id?: string;
|
||||
|
||||
@Field(() => Date, { nullable: true })
|
||||
createdAt?: Date | string;
|
||||
@ -42,7 +42,7 @@ export class UserCreateInput {
|
||||
@Field(() => String, { nullable: true })
|
||||
phoneNumber?: string;
|
||||
|
||||
@Field(() => String, { nullable: true })
|
||||
@HideField()
|
||||
passwordHash?: string;
|
||||
|
||||
@Field(() => Boolean, { nullable: true })
|
||||
|
||||
@ -1,5 +1,6 @@
|
||||
import { Field } from '@nestjs/graphql';
|
||||
import { ObjectType } from '@nestjs/graphql';
|
||||
import { HideField } from '@nestjs/graphql';
|
||||
import { GraphQLJSON } from 'graphql-type-json';
|
||||
import { UserCountAggregate } from './user-count-aggregate.output';
|
||||
import { UserMinAggregate } from './user-min-aggregate.output';
|
||||
@ -40,7 +41,7 @@ export class UserGroupBy {
|
||||
@Field(() => String, { nullable: true })
|
||||
phoneNumber?: string;
|
||||
|
||||
@Field(() => String, { nullable: true })
|
||||
@HideField()
|
||||
passwordHash?: string;
|
||||
|
||||
@Field(() => Boolean, { nullable: false })
|
||||
|
||||
@ -1,5 +1,6 @@
|
||||
import { Field } from '@nestjs/graphql';
|
||||
import { InputType } from '@nestjs/graphql';
|
||||
import { HideField } from '@nestjs/graphql';
|
||||
|
||||
@InputType()
|
||||
export class UserMaxAggregateInput {
|
||||
@ -36,7 +37,7 @@ export class UserMaxAggregateInput {
|
||||
@Field(() => Boolean, { nullable: true })
|
||||
phoneNumber?: true;
|
||||
|
||||
@Field(() => Boolean, { nullable: true })
|
||||
@HideField()
|
||||
passwordHash?: true;
|
||||
|
||||
@Field(() => Boolean, { nullable: true })
|
||||
|
||||
@ -1,5 +1,6 @@
|
||||
import { Field } from '@nestjs/graphql';
|
||||
import { ObjectType } from '@nestjs/graphql';
|
||||
import { HideField } from '@nestjs/graphql';
|
||||
|
||||
@ObjectType()
|
||||
export class UserMaxAggregate {
|
||||
@ -36,7 +37,7 @@ export class UserMaxAggregate {
|
||||
@Field(() => String, { nullable: true })
|
||||
phoneNumber?: string;
|
||||
|
||||
@Field(() => String, { nullable: true })
|
||||
@HideField()
|
||||
passwordHash?: string;
|
||||
|
||||
@Field(() => Boolean, { nullable: true })
|
||||
|
||||
@ -1,6 +1,7 @@
|
||||
import { Field } from '@nestjs/graphql';
|
||||
import { InputType } from '@nestjs/graphql';
|
||||
import { SortOrder } from '../prisma/sort-order.enum';
|
||||
import { HideField } from '@nestjs/graphql';
|
||||
|
||||
@InputType()
|
||||
export class UserMaxOrderByAggregateInput {
|
||||
@ -37,7 +38,7 @@ export class UserMaxOrderByAggregateInput {
|
||||
@Field(() => SortOrder, { nullable: true })
|
||||
phoneNumber?: keyof typeof SortOrder;
|
||||
|
||||
@Field(() => SortOrder, { nullable: true })
|
||||
@HideField()
|
||||
passwordHash?: keyof typeof SortOrder;
|
||||
|
||||
@Field(() => SortOrder, { nullable: true })
|
||||
|
||||
@ -1,5 +1,6 @@
|
||||
import { Field } from '@nestjs/graphql';
|
||||
import { InputType } from '@nestjs/graphql';
|
||||
import { HideField } from '@nestjs/graphql';
|
||||
|
||||
@InputType()
|
||||
export class UserMinAggregateInput {
|
||||
@ -36,7 +37,7 @@ export class UserMinAggregateInput {
|
||||
@Field(() => Boolean, { nullable: true })
|
||||
phoneNumber?: true;
|
||||
|
||||
@Field(() => Boolean, { nullable: true })
|
||||
@HideField()
|
||||
passwordHash?: true;
|
||||
|
||||
@Field(() => Boolean, { nullable: true })
|
||||
|
||||
@ -1,5 +1,6 @@
|
||||
import { Field } from '@nestjs/graphql';
|
||||
import { ObjectType } from '@nestjs/graphql';
|
||||
import { HideField } from '@nestjs/graphql';
|
||||
|
||||
@ObjectType()
|
||||
export class UserMinAggregate {
|
||||
@ -36,7 +37,7 @@ export class UserMinAggregate {
|
||||
@Field(() => String, { nullable: true })
|
||||
phoneNumber?: string;
|
||||
|
||||
@Field(() => String, { nullable: true })
|
||||
@HideField()
|
||||
passwordHash?: string;
|
||||
|
||||
@Field(() => Boolean, { nullable: true })
|
||||
|
||||
@ -1,6 +1,7 @@
|
||||
import { Field } from '@nestjs/graphql';
|
||||
import { InputType } from '@nestjs/graphql';
|
||||
import { SortOrder } from '../prisma/sort-order.enum';
|
||||
import { HideField } from '@nestjs/graphql';
|
||||
|
||||
@InputType()
|
||||
export class UserMinOrderByAggregateInput {
|
||||
@ -37,7 +38,7 @@ export class UserMinOrderByAggregateInput {
|
||||
@Field(() => SortOrder, { nullable: true })
|
||||
phoneNumber?: keyof typeof SortOrder;
|
||||
|
||||
@Field(() => SortOrder, { nullable: true })
|
||||
@HideField()
|
||||
passwordHash?: keyof typeof SortOrder;
|
||||
|
||||
@Field(() => SortOrder, { nullable: true })
|
||||
|
||||
@ -1,6 +1,7 @@
|
||||
import { Field } from '@nestjs/graphql';
|
||||
import { InputType } from '@nestjs/graphql';
|
||||
import { SortOrder } from '../prisma/sort-order.enum';
|
||||
import { HideField } from '@nestjs/graphql';
|
||||
import { UserCountOrderByAggregateInput } from './user-count-order-by-aggregate.input';
|
||||
import { UserMaxOrderByAggregateInput } from './user-max-order-by-aggregate.input';
|
||||
import { UserMinOrderByAggregateInput } from './user-min-order-by-aggregate.input';
|
||||
@ -40,7 +41,7 @@ export class UserOrderByWithAggregationInput {
|
||||
@Field(() => SortOrder, { nullable: true })
|
||||
phoneNumber?: keyof typeof SortOrder;
|
||||
|
||||
@Field(() => SortOrder, { nullable: true })
|
||||
@HideField()
|
||||
passwordHash?: keyof typeof SortOrder;
|
||||
|
||||
@Field(() => SortOrder, { nullable: true })
|
||||
|
||||
@ -1,8 +1,8 @@
|
||||
import { Field } from '@nestjs/graphql';
|
||||
import { InputType } from '@nestjs/graphql';
|
||||
import { SortOrder } from '../prisma/sort-order.enum';
|
||||
import { WorkspaceMemberOrderByWithRelationInput } from '../workspace-member/workspace-member-order-by-with-relation.input';
|
||||
import { HideField } from '@nestjs/graphql';
|
||||
import { WorkspaceMemberOrderByWithRelationInput } from '../workspace-member/workspace-member-order-by-with-relation.input';
|
||||
import { CompanyOrderByRelationAggregateInput } from '../company/company-order-by-relation-aggregate.input';
|
||||
import { RefreshTokenOrderByRelationAggregateInput } from '../refresh-token/refresh-token-order-by-relation-aggregate.input';
|
||||
import { CommentOrderByRelationAggregateInput } from '../comment/comment-order-by-relation-aggregate.input';
|
||||
@ -42,7 +42,7 @@ export class UserOrderByWithRelationInput {
|
||||
@Field(() => SortOrder, { nullable: true })
|
||||
phoneNumber?: keyof typeof SortOrder;
|
||||
|
||||
@Field(() => SortOrder, { nullable: true })
|
||||
@HideField()
|
||||
passwordHash?: keyof typeof SortOrder;
|
||||
|
||||
@Field(() => SortOrder, { nullable: true })
|
||||
|
||||
@ -5,6 +5,7 @@ import { DateTimeWithAggregatesFilter } from '../prisma/date-time-with-aggregate
|
||||
import { DateTimeNullableWithAggregatesFilter } from '../prisma/date-time-nullable-with-aggregates-filter.input';
|
||||
import { BoolWithAggregatesFilter } from '../prisma/bool-with-aggregates-filter.input';
|
||||
import { StringNullableWithAggregatesFilter } from '../prisma/string-nullable-with-aggregates-filter.input';
|
||||
import { HideField } from '@nestjs/graphql';
|
||||
import { JsonNullableWithAggregatesFilter } from '../prisma/json-nullable-with-aggregates-filter.input';
|
||||
|
||||
@InputType()
|
||||
@ -51,7 +52,7 @@ export class UserScalarWhereWithAggregatesInput {
|
||||
@Field(() => StringNullableWithAggregatesFilter, { nullable: true })
|
||||
phoneNumber?: StringNullableWithAggregatesFilter;
|
||||
|
||||
@Field(() => StringNullableWithAggregatesFilter, { nullable: true })
|
||||
@HideField()
|
||||
passwordHash?: StringNullableWithAggregatesFilter;
|
||||
|
||||
@Field(() => BoolWithAggregatesFilter, { nullable: true })
|
||||
|
||||
@ -1,15 +1,15 @@
|
||||
import { Field } from '@nestjs/graphql';
|
||||
import { InputType } from '@nestjs/graphql';
|
||||
import { HideField } 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 { RefreshTokenUncheckedCreateNestedManyWithoutUserInput } from '../refresh-token/refresh-token-unchecked-create-nested-many-without-user.input';
|
||||
|
||||
@InputType()
|
||||
export class UserUncheckedCreateWithoutCommentsInput {
|
||||
@Field(() => String, { nullable: false })
|
||||
id!: string;
|
||||
@Field(() => String, { nullable: true })
|
||||
id?: string;
|
||||
|
||||
@Field(() => Date, { nullable: true })
|
||||
createdAt?: Date | string;
|
||||
@ -41,7 +41,7 @@ export class UserUncheckedCreateWithoutCommentsInput {
|
||||
@Field(() => String, { nullable: true })
|
||||
phoneNumber?: string;
|
||||
|
||||
@Field(() => String, { nullable: true })
|
||||
@HideField()
|
||||
passwordHash?: string;
|
||||
|
||||
@Field(() => Boolean, { nullable: true })
|
||||
|
||||
@ -1,15 +1,15 @@
|
||||
import { Field } from '@nestjs/graphql';
|
||||
import { InputType } from '@nestjs/graphql';
|
||||
import { HideField } 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 { RefreshTokenUncheckedCreateNestedManyWithoutUserInput } from '../refresh-token/refresh-token-unchecked-create-nested-many-without-user.input';
|
||||
import { CommentUncheckedCreateNestedManyWithoutAuthorInput } from '../comment/comment-unchecked-create-nested-many-without-author.input';
|
||||
|
||||
@InputType()
|
||||
export class UserUncheckedCreateWithoutCompaniesInput {
|
||||
@Field(() => String, { nullable: false })
|
||||
id!: string;
|
||||
@Field(() => String, { nullable: true })
|
||||
id?: string;
|
||||
|
||||
@Field(() => Date, { nullable: true })
|
||||
createdAt?: Date | string;
|
||||
@ -41,7 +41,7 @@ export class UserUncheckedCreateWithoutCompaniesInput {
|
||||
@Field(() => String, { nullable: true })
|
||||
phoneNumber?: string;
|
||||
|
||||
@Field(() => String, { nullable: true })
|
||||
@HideField()
|
||||
passwordHash?: string;
|
||||
|
||||
@Field(() => Boolean, { nullable: true })
|
||||
|
||||
@ -1,15 +1,15 @@
|
||||
import { Field } from '@nestjs/graphql';
|
||||
import { InputType } from '@nestjs/graphql';
|
||||
import { HideField } 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(() => String, { nullable: true })
|
||||
id?: string;
|
||||
|
||||
@Field(() => Date, { nullable: true })
|
||||
createdAt?: Date | string;
|
||||
@ -41,7 +41,7 @@ export class UserUncheckedCreateWithoutRefreshTokensInput {
|
||||
@Field(() => String, { nullable: true })
|
||||
phoneNumber?: string;
|
||||
|
||||
@Field(() => String, { nullable: true })
|
||||
@HideField()
|
||||
passwordHash?: string;
|
||||
|
||||
@Field(() => Boolean, { nullable: true })
|
||||
|
||||
@ -1,15 +1,15 @@
|
||||
import { Field } from '@nestjs/graphql';
|
||||
import { InputType } from '@nestjs/graphql';
|
||||
import { HideField } from '@nestjs/graphql';
|
||||
import { GraphQLJSON } from 'graphql-type-json';
|
||||
import { CompanyUncheckedCreateNestedManyWithoutAccountOwnerInput } from '../company/company-unchecked-create-nested-many-without-account-owner.input';
|
||||
import { RefreshTokenUncheckedCreateNestedManyWithoutUserInput } from '../refresh-token/refresh-token-unchecked-create-nested-many-without-user.input';
|
||||
import { HideField } from '@nestjs/graphql';
|
||||
import { CommentUncheckedCreateNestedManyWithoutAuthorInput } from '../comment/comment-unchecked-create-nested-many-without-author.input';
|
||||
|
||||
@InputType()
|
||||
export class UserUncheckedCreateWithoutWorkspaceMemberInput {
|
||||
@Field(() => String, { nullable: false })
|
||||
id!: string;
|
||||
@Field(() => String, { nullable: true })
|
||||
id?: string;
|
||||
|
||||
@Field(() => Date, { nullable: true })
|
||||
createdAt?: Date | string;
|
||||
@ -41,7 +41,7 @@ export class UserUncheckedCreateWithoutWorkspaceMemberInput {
|
||||
@Field(() => String, { nullable: true })
|
||||
phoneNumber?: string;
|
||||
|
||||
@Field(() => String, { nullable: true })
|
||||
@HideField()
|
||||
passwordHash?: string;
|
||||
|
||||
@Field(() => Boolean, { nullable: true })
|
||||
|
||||
@ -1,16 +1,16 @@
|
||||
import { Field } from '@nestjs/graphql';
|
||||
import { InputType } from '@nestjs/graphql';
|
||||
import { HideField } 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 { RefreshTokenUncheckedCreateNestedManyWithoutUserInput } from '../refresh-token/refresh-token-unchecked-create-nested-many-without-user.input';
|
||||
import { CommentUncheckedCreateNestedManyWithoutAuthorInput } from '../comment/comment-unchecked-create-nested-many-without-author.input';
|
||||
|
||||
@InputType()
|
||||
export class UserUncheckedCreateInput {
|
||||
@Field(() => String, { nullable: false })
|
||||
id!: string;
|
||||
@Field(() => String, { nullable: true })
|
||||
id?: string;
|
||||
|
||||
@Field(() => Date, { nullable: true })
|
||||
createdAt?: Date | string;
|
||||
@ -42,7 +42,7 @@ export class UserUncheckedCreateInput {
|
||||
@Field(() => String, { nullable: true })
|
||||
phoneNumber?: string;
|
||||
|
||||
@Field(() => String, { nullable: true })
|
||||
@HideField()
|
||||
passwordHash?: string;
|
||||
|
||||
@Field(() => Boolean, { nullable: true })
|
||||
|
||||
@ -5,6 +5,7 @@ import { DateTimeFieldUpdateOperationsInput } from '../prisma/date-time-field-up
|
||||
import { NullableDateTimeFieldUpdateOperationsInput } from '../prisma/nullable-date-time-field-update-operations.input';
|
||||
import { BoolFieldUpdateOperationsInput } from '../prisma/bool-field-update-operations.input';
|
||||
import { NullableStringFieldUpdateOperationsInput } from '../prisma/nullable-string-field-update-operations.input';
|
||||
import { HideField } from '@nestjs/graphql';
|
||||
import { GraphQLJSON } from 'graphql-type-json';
|
||||
|
||||
@InputType()
|
||||
@ -42,7 +43,7 @@ export class UserUncheckedUpdateManyInput {
|
||||
@Field(() => NullableStringFieldUpdateOperationsInput, { nullable: true })
|
||||
phoneNumber?: NullableStringFieldUpdateOperationsInput;
|
||||
|
||||
@Field(() => NullableStringFieldUpdateOperationsInput, { nullable: true })
|
||||
@HideField()
|
||||
passwordHash?: NullableStringFieldUpdateOperationsInput;
|
||||
|
||||
@Field(() => BoolFieldUpdateOperationsInput, { nullable: true })
|
||||
|
||||
@ -5,9 +5,9 @@ import { DateTimeFieldUpdateOperationsInput } from '../prisma/date-time-field-up
|
||||
import { NullableDateTimeFieldUpdateOperationsInput } from '../prisma/nullable-date-time-field-update-operations.input';
|
||||
import { BoolFieldUpdateOperationsInput } from '../prisma/bool-field-update-operations.input';
|
||||
import { NullableStringFieldUpdateOperationsInput } from '../prisma/nullable-string-field-update-operations.input';
|
||||
import { HideField } from '@nestjs/graphql';
|
||||
import { GraphQLJSON } from 'graphql-type-json';
|
||||
import { WorkspaceMemberUncheckedUpdateOneWithoutUserNestedInput } from '../workspace-member/workspace-member-unchecked-update-one-without-user-nested.input';
|
||||
import { HideField } from '@nestjs/graphql';
|
||||
import { CompanyUncheckedUpdateManyWithoutAccountOwnerNestedInput } from '../company/company-unchecked-update-many-without-account-owner-nested.input';
|
||||
import { RefreshTokenUncheckedUpdateManyWithoutUserNestedInput } from '../refresh-token/refresh-token-unchecked-update-many-without-user-nested.input';
|
||||
|
||||
@ -46,7 +46,7 @@ export class UserUncheckedUpdateWithoutCommentsInput {
|
||||
@Field(() => NullableStringFieldUpdateOperationsInput, { nullable: true })
|
||||
phoneNumber?: NullableStringFieldUpdateOperationsInput;
|
||||
|
||||
@Field(() => NullableStringFieldUpdateOperationsInput, { nullable: true })
|
||||
@HideField()
|
||||
passwordHash?: NullableStringFieldUpdateOperationsInput;
|
||||
|
||||
@Field(() => BoolFieldUpdateOperationsInput, { nullable: true })
|
||||
|
||||
@ -5,9 +5,9 @@ import { DateTimeFieldUpdateOperationsInput } from '../prisma/date-time-field-up
|
||||
import { NullableDateTimeFieldUpdateOperationsInput } from '../prisma/nullable-date-time-field-update-operations.input';
|
||||
import { BoolFieldUpdateOperationsInput } from '../prisma/bool-field-update-operations.input';
|
||||
import { NullableStringFieldUpdateOperationsInput } from '../prisma/nullable-string-field-update-operations.input';
|
||||
import { HideField } from '@nestjs/graphql';
|
||||
import { GraphQLJSON } from 'graphql-type-json';
|
||||
import { WorkspaceMemberUncheckedUpdateOneWithoutUserNestedInput } from '../workspace-member/workspace-member-unchecked-update-one-without-user-nested.input';
|
||||
import { HideField } from '@nestjs/graphql';
|
||||
import { RefreshTokenUncheckedUpdateManyWithoutUserNestedInput } from '../refresh-token/refresh-token-unchecked-update-many-without-user-nested.input';
|
||||
import { CommentUncheckedUpdateManyWithoutAuthorNestedInput } from '../comment/comment-unchecked-update-many-without-author-nested.input';
|
||||
|
||||
@ -46,7 +46,7 @@ export class UserUncheckedUpdateWithoutCompaniesInput {
|
||||
@Field(() => NullableStringFieldUpdateOperationsInput, { nullable: true })
|
||||
phoneNumber?: NullableStringFieldUpdateOperationsInput;
|
||||
|
||||
@Field(() => NullableStringFieldUpdateOperationsInput, { nullable: true })
|
||||
@HideField()
|
||||
passwordHash?: NullableStringFieldUpdateOperationsInput;
|
||||
|
||||
@Field(() => BoolFieldUpdateOperationsInput, { nullable: true })
|
||||
|
||||
@ -5,9 +5,9 @@ import { DateTimeFieldUpdateOperationsInput } from '../prisma/date-time-field-up
|
||||
import { NullableDateTimeFieldUpdateOperationsInput } from '../prisma/nullable-date-time-field-update-operations.input';
|
||||
import { BoolFieldUpdateOperationsInput } from '../prisma/bool-field-update-operations.input';
|
||||
import { NullableStringFieldUpdateOperationsInput } from '../prisma/nullable-string-field-update-operations.input';
|
||||
import { HideField } from '@nestjs/graphql';
|
||||
import { GraphQLJSON } from 'graphql-type-json';
|
||||
import { WorkspaceMemberUncheckedUpdateOneWithoutUserNestedInput } from '../workspace-member/workspace-member-unchecked-update-one-without-user-nested.input';
|
||||
import { HideField } from '@nestjs/graphql';
|
||||
import { CompanyUncheckedUpdateManyWithoutAccountOwnerNestedInput } from '../company/company-unchecked-update-many-without-account-owner-nested.input';
|
||||
import { CommentUncheckedUpdateManyWithoutAuthorNestedInput } from '../comment/comment-unchecked-update-many-without-author-nested.input';
|
||||
|
||||
@ -46,7 +46,7 @@ export class UserUncheckedUpdateWithoutRefreshTokensInput {
|
||||
@Field(() => NullableStringFieldUpdateOperationsInput, { nullable: true })
|
||||
phoneNumber?: NullableStringFieldUpdateOperationsInput;
|
||||
|
||||
@Field(() => NullableStringFieldUpdateOperationsInput, { nullable: true })
|
||||
@HideField()
|
||||
passwordHash?: NullableStringFieldUpdateOperationsInput;
|
||||
|
||||
@Field(() => BoolFieldUpdateOperationsInput, { nullable: true })
|
||||
|
||||
@ -5,10 +5,10 @@ import { DateTimeFieldUpdateOperationsInput } from '../prisma/date-time-field-up
|
||||
import { NullableDateTimeFieldUpdateOperationsInput } from '../prisma/nullable-date-time-field-update-operations.input';
|
||||
import { BoolFieldUpdateOperationsInput } from '../prisma/bool-field-update-operations.input';
|
||||
import { NullableStringFieldUpdateOperationsInput } from '../prisma/nullable-string-field-update-operations.input';
|
||||
import { HideField } from '@nestjs/graphql';
|
||||
import { GraphQLJSON } from 'graphql-type-json';
|
||||
import { CompanyUncheckedUpdateManyWithoutAccountOwnerNestedInput } from '../company/company-unchecked-update-many-without-account-owner-nested.input';
|
||||
import { RefreshTokenUncheckedUpdateManyWithoutUserNestedInput } from '../refresh-token/refresh-token-unchecked-update-many-without-user-nested.input';
|
||||
import { HideField } from '@nestjs/graphql';
|
||||
import { CommentUncheckedUpdateManyWithoutAuthorNestedInput } from '../comment/comment-unchecked-update-many-without-author-nested.input';
|
||||
|
||||
@InputType()
|
||||
@ -46,7 +46,7 @@ export class UserUncheckedUpdateWithoutWorkspaceMemberInput {
|
||||
@Field(() => NullableStringFieldUpdateOperationsInput, { nullable: true })
|
||||
phoneNumber?: NullableStringFieldUpdateOperationsInput;
|
||||
|
||||
@Field(() => NullableStringFieldUpdateOperationsInput, { nullable: true })
|
||||
@HideField()
|
||||
passwordHash?: NullableStringFieldUpdateOperationsInput;
|
||||
|
||||
@Field(() => BoolFieldUpdateOperationsInput, { nullable: true })
|
||||
|
||||
@ -5,9 +5,9 @@ import { DateTimeFieldUpdateOperationsInput } from '../prisma/date-time-field-up
|
||||
import { NullableDateTimeFieldUpdateOperationsInput } from '../prisma/nullable-date-time-field-update-operations.input';
|
||||
import { BoolFieldUpdateOperationsInput } from '../prisma/bool-field-update-operations.input';
|
||||
import { NullableStringFieldUpdateOperationsInput } from '../prisma/nullable-string-field-update-operations.input';
|
||||
import { HideField } from '@nestjs/graphql';
|
||||
import { GraphQLJSON } from 'graphql-type-json';
|
||||
import { WorkspaceMemberUncheckedUpdateOneWithoutUserNestedInput } from '../workspace-member/workspace-member-unchecked-update-one-without-user-nested.input';
|
||||
import { HideField } from '@nestjs/graphql';
|
||||
import { CompanyUncheckedUpdateManyWithoutAccountOwnerNestedInput } from '../company/company-unchecked-update-many-without-account-owner-nested.input';
|
||||
import { RefreshTokenUncheckedUpdateManyWithoutUserNestedInput } from '../refresh-token/refresh-token-unchecked-update-many-without-user-nested.input';
|
||||
import { CommentUncheckedUpdateManyWithoutAuthorNestedInput } from '../comment/comment-unchecked-update-many-without-author-nested.input';
|
||||
@ -47,7 +47,7 @@ export class UserUncheckedUpdateInput {
|
||||
@Field(() => NullableStringFieldUpdateOperationsInput, { nullable: true })
|
||||
phoneNumber?: NullableStringFieldUpdateOperationsInput;
|
||||
|
||||
@Field(() => NullableStringFieldUpdateOperationsInput, { nullable: true })
|
||||
@HideField()
|
||||
passwordHash?: NullableStringFieldUpdateOperationsInput;
|
||||
|
||||
@Field(() => BoolFieldUpdateOperationsInput, { nullable: true })
|
||||
|
||||
@ -5,6 +5,7 @@ import { DateTimeFieldUpdateOperationsInput } from '../prisma/date-time-field-up
|
||||
import { NullableDateTimeFieldUpdateOperationsInput } from '../prisma/nullable-date-time-field-update-operations.input';
|
||||
import { BoolFieldUpdateOperationsInput } from '../prisma/bool-field-update-operations.input';
|
||||
import { NullableStringFieldUpdateOperationsInput } from '../prisma/nullable-string-field-update-operations.input';
|
||||
import { HideField } from '@nestjs/graphql';
|
||||
import { GraphQLJSON } from 'graphql-type-json';
|
||||
|
||||
@InputType()
|
||||
@ -42,7 +43,7 @@ export class UserUpdateManyMutationInput {
|
||||
@Field(() => NullableStringFieldUpdateOperationsInput, { nullable: true })
|
||||
phoneNumber?: NullableStringFieldUpdateOperationsInput;
|
||||
|
||||
@Field(() => NullableStringFieldUpdateOperationsInput, { nullable: true })
|
||||
@HideField()
|
||||
passwordHash?: NullableStringFieldUpdateOperationsInput;
|
||||
|
||||
@Field(() => BoolFieldUpdateOperationsInput, { nullable: true })
|
||||
|
||||
@ -5,9 +5,9 @@ import { DateTimeFieldUpdateOperationsInput } from '../prisma/date-time-field-up
|
||||
import { NullableDateTimeFieldUpdateOperationsInput } from '../prisma/nullable-date-time-field-update-operations.input';
|
||||
import { BoolFieldUpdateOperationsInput } from '../prisma/bool-field-update-operations.input';
|
||||
import { NullableStringFieldUpdateOperationsInput } from '../prisma/nullable-string-field-update-operations.input';
|
||||
import { HideField } from '@nestjs/graphql';
|
||||
import { GraphQLJSON } from 'graphql-type-json';
|
||||
import { WorkspaceMemberUpdateOneWithoutUserNestedInput } from '../workspace-member/workspace-member-update-one-without-user-nested.input';
|
||||
import { HideField } from '@nestjs/graphql';
|
||||
import { CompanyUpdateManyWithoutAccountOwnerNestedInput } from '../company/company-update-many-without-account-owner-nested.input';
|
||||
import { RefreshTokenUpdateManyWithoutUserNestedInput } from '../refresh-token/refresh-token-update-many-without-user-nested.input';
|
||||
|
||||
@ -46,7 +46,7 @@ export class UserUpdateWithoutCommentsInput {
|
||||
@Field(() => NullableStringFieldUpdateOperationsInput, { nullable: true })
|
||||
phoneNumber?: NullableStringFieldUpdateOperationsInput;
|
||||
|
||||
@Field(() => NullableStringFieldUpdateOperationsInput, { nullable: true })
|
||||
@HideField()
|
||||
passwordHash?: NullableStringFieldUpdateOperationsInput;
|
||||
|
||||
@Field(() => BoolFieldUpdateOperationsInput, { nullable: true })
|
||||
|
||||
@ -5,9 +5,9 @@ import { DateTimeFieldUpdateOperationsInput } from '../prisma/date-time-field-up
|
||||
import { NullableDateTimeFieldUpdateOperationsInput } from '../prisma/nullable-date-time-field-update-operations.input';
|
||||
import { BoolFieldUpdateOperationsInput } from '../prisma/bool-field-update-operations.input';
|
||||
import { NullableStringFieldUpdateOperationsInput } from '../prisma/nullable-string-field-update-operations.input';
|
||||
import { HideField } from '@nestjs/graphql';
|
||||
import { GraphQLJSON } from 'graphql-type-json';
|
||||
import { WorkspaceMemberUpdateOneWithoutUserNestedInput } from '../workspace-member/workspace-member-update-one-without-user-nested.input';
|
||||
import { HideField } from '@nestjs/graphql';
|
||||
import { RefreshTokenUpdateManyWithoutUserNestedInput } from '../refresh-token/refresh-token-update-many-without-user-nested.input';
|
||||
import { CommentUpdateManyWithoutAuthorNestedInput } from '../comment/comment-update-many-without-author-nested.input';
|
||||
|
||||
@ -46,7 +46,7 @@ export class UserUpdateWithoutCompaniesInput {
|
||||
@Field(() => NullableStringFieldUpdateOperationsInput, { nullable: true })
|
||||
phoneNumber?: NullableStringFieldUpdateOperationsInput;
|
||||
|
||||
@Field(() => NullableStringFieldUpdateOperationsInput, { nullable: true })
|
||||
@HideField()
|
||||
passwordHash?: NullableStringFieldUpdateOperationsInput;
|
||||
|
||||
@Field(() => BoolFieldUpdateOperationsInput, { nullable: true })
|
||||
|
||||
@ -5,9 +5,9 @@ import { DateTimeFieldUpdateOperationsInput } from '../prisma/date-time-field-up
|
||||
import { NullableDateTimeFieldUpdateOperationsInput } from '../prisma/nullable-date-time-field-update-operations.input';
|
||||
import { BoolFieldUpdateOperationsInput } from '../prisma/bool-field-update-operations.input';
|
||||
import { NullableStringFieldUpdateOperationsInput } from '../prisma/nullable-string-field-update-operations.input';
|
||||
import { HideField } from '@nestjs/graphql';
|
||||
import { GraphQLJSON } from 'graphql-type-json';
|
||||
import { WorkspaceMemberUpdateOneWithoutUserNestedInput } from '../workspace-member/workspace-member-update-one-without-user-nested.input';
|
||||
import { HideField } from '@nestjs/graphql';
|
||||
import { CompanyUpdateManyWithoutAccountOwnerNestedInput } from '../company/company-update-many-without-account-owner-nested.input';
|
||||
import { CommentUpdateManyWithoutAuthorNestedInput } from '../comment/comment-update-many-without-author-nested.input';
|
||||
|
||||
@ -46,7 +46,7 @@ export class UserUpdateWithoutRefreshTokensInput {
|
||||
@Field(() => NullableStringFieldUpdateOperationsInput, { nullable: true })
|
||||
phoneNumber?: NullableStringFieldUpdateOperationsInput;
|
||||
|
||||
@Field(() => NullableStringFieldUpdateOperationsInput, { nullable: true })
|
||||
@HideField()
|
||||
passwordHash?: NullableStringFieldUpdateOperationsInput;
|
||||
|
||||
@Field(() => BoolFieldUpdateOperationsInput, { nullable: true })
|
||||
|
||||
@ -5,10 +5,10 @@ import { DateTimeFieldUpdateOperationsInput } from '../prisma/date-time-field-up
|
||||
import { NullableDateTimeFieldUpdateOperationsInput } from '../prisma/nullable-date-time-field-update-operations.input';
|
||||
import { BoolFieldUpdateOperationsInput } from '../prisma/bool-field-update-operations.input';
|
||||
import { NullableStringFieldUpdateOperationsInput } from '../prisma/nullable-string-field-update-operations.input';
|
||||
import { HideField } from '@nestjs/graphql';
|
||||
import { GraphQLJSON } from 'graphql-type-json';
|
||||
import { CompanyUpdateManyWithoutAccountOwnerNestedInput } from '../company/company-update-many-without-account-owner-nested.input';
|
||||
import { RefreshTokenUpdateManyWithoutUserNestedInput } from '../refresh-token/refresh-token-update-many-without-user-nested.input';
|
||||
import { HideField } from '@nestjs/graphql';
|
||||
import { CommentUpdateManyWithoutAuthorNestedInput } from '../comment/comment-update-many-without-author-nested.input';
|
||||
|
||||
@InputType()
|
||||
@ -46,7 +46,7 @@ export class UserUpdateWithoutWorkspaceMemberInput {
|
||||
@Field(() => NullableStringFieldUpdateOperationsInput, { nullable: true })
|
||||
phoneNumber?: NullableStringFieldUpdateOperationsInput;
|
||||
|
||||
@Field(() => NullableStringFieldUpdateOperationsInput, { nullable: true })
|
||||
@HideField()
|
||||
passwordHash?: NullableStringFieldUpdateOperationsInput;
|
||||
|
||||
@Field(() => BoolFieldUpdateOperationsInput, { nullable: true })
|
||||
|
||||
@ -5,9 +5,9 @@ import { DateTimeFieldUpdateOperationsInput } from '../prisma/date-time-field-up
|
||||
import { NullableDateTimeFieldUpdateOperationsInput } from '../prisma/nullable-date-time-field-update-operations.input';
|
||||
import { BoolFieldUpdateOperationsInput } from '../prisma/bool-field-update-operations.input';
|
||||
import { NullableStringFieldUpdateOperationsInput } from '../prisma/nullable-string-field-update-operations.input';
|
||||
import { HideField } from '@nestjs/graphql';
|
||||
import { GraphQLJSON } from 'graphql-type-json';
|
||||
import { WorkspaceMemberUpdateOneWithoutUserNestedInput } from '../workspace-member/workspace-member-update-one-without-user-nested.input';
|
||||
import { HideField } from '@nestjs/graphql';
|
||||
import { CompanyUpdateManyWithoutAccountOwnerNestedInput } from '../company/company-update-many-without-account-owner-nested.input';
|
||||
import { RefreshTokenUpdateManyWithoutUserNestedInput } from '../refresh-token/refresh-token-update-many-without-user-nested.input';
|
||||
import { CommentUpdateManyWithoutAuthorNestedInput } from '../comment/comment-update-many-without-author-nested.input';
|
||||
@ -47,7 +47,7 @@ export class UserUpdateInput {
|
||||
@Field(() => NullableStringFieldUpdateOperationsInput, { nullable: true })
|
||||
phoneNumber?: NullableStringFieldUpdateOperationsInput;
|
||||
|
||||
@Field(() => NullableStringFieldUpdateOperationsInput, { nullable: true })
|
||||
@HideField()
|
||||
passwordHash?: NullableStringFieldUpdateOperationsInput;
|
||||
|
||||
@Field(() => BoolFieldUpdateOperationsInput, { nullable: true })
|
||||
|
||||
@ -5,9 +5,9 @@ import { DateTimeFilter } from '../prisma/date-time-filter.input';
|
||||
import { DateTimeNullableFilter } from '../prisma/date-time-nullable-filter.input';
|
||||
import { BoolFilter } from '../prisma/bool-filter.input';
|
||||
import { StringNullableFilter } from '../prisma/string-nullable-filter.input';
|
||||
import { HideField } from '@nestjs/graphql';
|
||||
import { JsonNullableFilter } from '../prisma/json-nullable-filter.input';
|
||||
import { WorkspaceMemberRelationFilter } from '../workspace-member/workspace-member-relation-filter.input';
|
||||
import { HideField } from '@nestjs/graphql';
|
||||
import { CompanyListRelationFilter } from '../company/company-list-relation-filter.input';
|
||||
import { RefreshTokenListRelationFilter } from '../refresh-token/refresh-token-list-relation-filter.input';
|
||||
import { CommentListRelationFilter } from '../comment/comment-list-relation-filter.input';
|
||||
@ -56,7 +56,7 @@ export class UserWhereInput {
|
||||
@Field(() => StringNullableFilter, { nullable: true })
|
||||
phoneNumber?: StringNullableFilter;
|
||||
|
||||
@Field(() => StringNullableFilter, { nullable: true })
|
||||
@HideField()
|
||||
passwordHash?: StringNullableFilter;
|
||||
|
||||
@Field(() => BoolFilter, { nullable: true })
|
||||
|
||||
@ -1,11 +1,11 @@
|
||||
import { Field } from '@nestjs/graphql';
|
||||
import { ObjectType } from '@nestjs/graphql';
|
||||
import { ID } from '@nestjs/graphql';
|
||||
import { HideField } from '@nestjs/graphql';
|
||||
import { GraphQLJSON } from 'graphql-type-json';
|
||||
import { WorkspaceMember } from '../workspace-member/workspace-member.model';
|
||||
import { Company } from '../company/company.model';
|
||||
import { RefreshToken } from '../refresh-token/refresh-token.model';
|
||||
import { HideField } from '@nestjs/graphql';
|
||||
import { Comment } from '../comment/comment.model';
|
||||
import { UserCount } from './user-count.output';
|
||||
|
||||
@ -44,7 +44,7 @@ export class User {
|
||||
@Field(() => String, { nullable: true })
|
||||
phoneNumber!: string | null;
|
||||
|
||||
@Field(() => String, { nullable: true })
|
||||
@HideField()
|
||||
passwordHash!: string | null;
|
||||
|
||||
@Field(() => Boolean, { nullable: false, defaultValue: false })
|
||||
|
||||
Reference in New Issue
Block a user