Files
twenty/server/src/core/@generated/user/user-create-without-companies.input.ts
Jérémy M 2cd081234f 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
2023-06-16 10:38:11 +02:00

62 lines
1.8 KiB
TypeScript

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 { 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(() => 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;
@HideField()
refreshTokens?: RefreshTokenCreateNestedManyWithoutUserInput;
@Field(() => CommentCreateNestedManyWithoutAuthorInput, { nullable: true })
comments?: CommentCreateNestedManyWithoutAuthorInput;
}