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:
17
server/src/core/@generated/user/aggregate-user.output.ts
Normal file
17
server/src/core/@generated/user/aggregate-user.output.ts
Normal file
@ -0,0 +1,17 @@
|
||||
import { Field } from '@nestjs/graphql';
|
||||
import { ObjectType } from '@nestjs/graphql';
|
||||
import { UserCountAggregate } from './user-count-aggregate.output';
|
||||
import { UserMinAggregate } from './user-min-aggregate.output';
|
||||
import { UserMaxAggregate } from './user-max-aggregate.output';
|
||||
|
||||
@ObjectType()
|
||||
export class AggregateUser {
|
||||
@Field(() => UserCountAggregate, { nullable: true })
|
||||
_count?: UserCountAggregate;
|
||||
|
||||
@Field(() => UserMinAggregate, { nullable: true })
|
||||
_min?: UserMinAggregate;
|
||||
|
||||
@Field(() => UserMaxAggregate, { nullable: true })
|
||||
_max?: UserMaxAggregate;
|
||||
}
|
||||
14
server/src/core/@generated/user/create-many-user.args.ts
Normal file
14
server/src/core/@generated/user/create-many-user.args.ts
Normal file
@ -0,0 +1,14 @@
|
||||
import { Field } from '@nestjs/graphql';
|
||||
import { ArgsType } from '@nestjs/graphql';
|
||||
import { UserCreateManyInput } from './user-create-many.input';
|
||||
import { Type } from 'class-transformer';
|
||||
|
||||
@ArgsType()
|
||||
export class CreateManyUserArgs {
|
||||
@Field(() => [UserCreateManyInput], { nullable: false })
|
||||
@Type(() => UserCreateManyInput)
|
||||
data!: Array<UserCreateManyInput>;
|
||||
|
||||
@Field(() => Boolean, { nullable: true })
|
||||
skipDuplicates?: boolean;
|
||||
}
|
||||
11
server/src/core/@generated/user/create-one-user.args.ts
Normal file
11
server/src/core/@generated/user/create-one-user.args.ts
Normal file
@ -0,0 +1,11 @@
|
||||
import { Field } from '@nestjs/graphql';
|
||||
import { ArgsType } from '@nestjs/graphql';
|
||||
import { UserCreateInput } from './user-create.input';
|
||||
import { Type } from 'class-transformer';
|
||||
|
||||
@ArgsType()
|
||||
export class CreateOneUserArgs {
|
||||
@Field(() => UserCreateInput, { nullable: false })
|
||||
@Type(() => UserCreateInput)
|
||||
data!: UserCreateInput;
|
||||
}
|
||||
11
server/src/core/@generated/user/delete-many-user.args.ts
Normal file
11
server/src/core/@generated/user/delete-many-user.args.ts
Normal file
@ -0,0 +1,11 @@
|
||||
import { Field } from '@nestjs/graphql';
|
||||
import { ArgsType } from '@nestjs/graphql';
|
||||
import { UserWhereInput } from './user-where.input';
|
||||
import { Type } from 'class-transformer';
|
||||
|
||||
@ArgsType()
|
||||
export class DeleteManyUserArgs {
|
||||
@Field(() => UserWhereInput, { nullable: true })
|
||||
@Type(() => UserWhereInput)
|
||||
where?: UserWhereInput;
|
||||
}
|
||||
11
server/src/core/@generated/user/delete-one-user.args.ts
Normal file
11
server/src/core/@generated/user/delete-one-user.args.ts
Normal file
@ -0,0 +1,11 @@
|
||||
import { Field } from '@nestjs/graphql';
|
||||
import { ArgsType } from '@nestjs/graphql';
|
||||
import { UserWhereUniqueInput } from './user-where-unique.input';
|
||||
import { Type } from 'class-transformer';
|
||||
|
||||
@ArgsType()
|
||||
export class DeleteOneUserArgs {
|
||||
@Field(() => UserWhereUniqueInput, { nullable: false })
|
||||
@Type(() => UserWhereUniqueInput)
|
||||
where!: UserWhereUniqueInput;
|
||||
}
|
||||
@ -0,0 +1,30 @@
|
||||
import { Field } from '@nestjs/graphql';
|
||||
import { ArgsType } from '@nestjs/graphql';
|
||||
import { UserWhereInput } from './user-where.input';
|
||||
import { Type } from 'class-transformer';
|
||||
import { UserOrderByWithRelationInput } from './user-order-by-with-relation.input';
|
||||
import { UserWhereUniqueInput } from './user-where-unique.input';
|
||||
import { Int } from '@nestjs/graphql';
|
||||
import { UserScalarFieldEnum } from './user-scalar-field.enum';
|
||||
|
||||
@ArgsType()
|
||||
export class FindFirstUserOrThrowArgs {
|
||||
@Field(() => UserWhereInput, { nullable: true })
|
||||
@Type(() => UserWhereInput)
|
||||
where?: UserWhereInput;
|
||||
|
||||
@Field(() => [UserOrderByWithRelationInput], { nullable: true })
|
||||
orderBy?: Array<UserOrderByWithRelationInput>;
|
||||
|
||||
@Field(() => UserWhereUniqueInput, { nullable: true })
|
||||
cursor?: UserWhereUniqueInput;
|
||||
|
||||
@Field(() => Int, { nullable: true })
|
||||
take?: number;
|
||||
|
||||
@Field(() => Int, { nullable: true })
|
||||
skip?: number;
|
||||
|
||||
@Field(() => [UserScalarFieldEnum], { nullable: true })
|
||||
distinct?: Array<keyof typeof UserScalarFieldEnum>;
|
||||
}
|
||||
30
server/src/core/@generated/user/find-first-user.args.ts
Normal file
30
server/src/core/@generated/user/find-first-user.args.ts
Normal file
@ -0,0 +1,30 @@
|
||||
import { Field } from '@nestjs/graphql';
|
||||
import { ArgsType } from '@nestjs/graphql';
|
||||
import { UserWhereInput } from './user-where.input';
|
||||
import { Type } from 'class-transformer';
|
||||
import { UserOrderByWithRelationInput } from './user-order-by-with-relation.input';
|
||||
import { UserWhereUniqueInput } from './user-where-unique.input';
|
||||
import { Int } from '@nestjs/graphql';
|
||||
import { UserScalarFieldEnum } from './user-scalar-field.enum';
|
||||
|
||||
@ArgsType()
|
||||
export class FindFirstUserArgs {
|
||||
@Field(() => UserWhereInput, { nullable: true })
|
||||
@Type(() => UserWhereInput)
|
||||
where?: UserWhereInput;
|
||||
|
||||
@Field(() => [UserOrderByWithRelationInput], { nullable: true })
|
||||
orderBy?: Array<UserOrderByWithRelationInput>;
|
||||
|
||||
@Field(() => UserWhereUniqueInput, { nullable: true })
|
||||
cursor?: UserWhereUniqueInput;
|
||||
|
||||
@Field(() => Int, { nullable: true })
|
||||
take?: number;
|
||||
|
||||
@Field(() => Int, { nullable: true })
|
||||
skip?: number;
|
||||
|
||||
@Field(() => [UserScalarFieldEnum], { nullable: true })
|
||||
distinct?: Array<keyof typeof UserScalarFieldEnum>;
|
||||
}
|
||||
30
server/src/core/@generated/user/find-many-user.args.ts
Normal file
30
server/src/core/@generated/user/find-many-user.args.ts
Normal file
@ -0,0 +1,30 @@
|
||||
import { Field } from '@nestjs/graphql';
|
||||
import { ArgsType } from '@nestjs/graphql';
|
||||
import { UserWhereInput } from './user-where.input';
|
||||
import { Type } from 'class-transformer';
|
||||
import { UserOrderByWithRelationInput } from './user-order-by-with-relation.input';
|
||||
import { UserWhereUniqueInput } from './user-where-unique.input';
|
||||
import { Int } from '@nestjs/graphql';
|
||||
import { UserScalarFieldEnum } from './user-scalar-field.enum';
|
||||
|
||||
@ArgsType()
|
||||
export class FindManyUserArgs {
|
||||
@Field(() => UserWhereInput, { nullable: true })
|
||||
@Type(() => UserWhereInput)
|
||||
where?: UserWhereInput;
|
||||
|
||||
@Field(() => [UserOrderByWithRelationInput], { nullable: true })
|
||||
orderBy?: Array<UserOrderByWithRelationInput>;
|
||||
|
||||
@Field(() => UserWhereUniqueInput, { nullable: true })
|
||||
cursor?: UserWhereUniqueInput;
|
||||
|
||||
@Field(() => Int, { nullable: true })
|
||||
take?: number;
|
||||
|
||||
@Field(() => Int, { nullable: true })
|
||||
skip?: number;
|
||||
|
||||
@Field(() => [UserScalarFieldEnum], { nullable: true })
|
||||
distinct?: Array<keyof typeof UserScalarFieldEnum>;
|
||||
}
|
||||
@ -0,0 +1,11 @@
|
||||
import { Field } from '@nestjs/graphql';
|
||||
import { ArgsType } from '@nestjs/graphql';
|
||||
import { UserWhereUniqueInput } from './user-where-unique.input';
|
||||
import { Type } from 'class-transformer';
|
||||
|
||||
@ArgsType()
|
||||
export class FindUniqueUserOrThrowArgs {
|
||||
@Field(() => UserWhereUniqueInput, { nullable: false })
|
||||
@Type(() => UserWhereUniqueInput)
|
||||
where!: UserWhereUniqueInput;
|
||||
}
|
||||
11
server/src/core/@generated/user/find-unique-user.args.ts
Normal file
11
server/src/core/@generated/user/find-unique-user.args.ts
Normal file
@ -0,0 +1,11 @@
|
||||
import { Field } from '@nestjs/graphql';
|
||||
import { ArgsType } from '@nestjs/graphql';
|
||||
import { UserWhereUniqueInput } from './user-where-unique.input';
|
||||
import { Type } from 'class-transformer';
|
||||
|
||||
@ArgsType()
|
||||
export class FindUniqueUserArgs {
|
||||
@Field(() => UserWhereUniqueInput, { nullable: false })
|
||||
@Type(() => UserWhereUniqueInput)
|
||||
where!: UserWhereUniqueInput;
|
||||
}
|
||||
16
server/src/core/@generated/user/update-many-user.args.ts
Normal file
16
server/src/core/@generated/user/update-many-user.args.ts
Normal file
@ -0,0 +1,16 @@
|
||||
import { Field } from '@nestjs/graphql';
|
||||
import { ArgsType } from '@nestjs/graphql';
|
||||
import { UserUpdateManyMutationInput } from './user-update-many-mutation.input';
|
||||
import { Type } from 'class-transformer';
|
||||
import { UserWhereInput } from './user-where.input';
|
||||
|
||||
@ArgsType()
|
||||
export class UpdateManyUserArgs {
|
||||
@Field(() => UserUpdateManyMutationInput, { nullable: false })
|
||||
@Type(() => UserUpdateManyMutationInput)
|
||||
data!: UserUpdateManyMutationInput;
|
||||
|
||||
@Field(() => UserWhereInput, { nullable: true })
|
||||
@Type(() => UserWhereInput)
|
||||
where?: UserWhereInput;
|
||||
}
|
||||
16
server/src/core/@generated/user/update-one-user.args.ts
Normal file
16
server/src/core/@generated/user/update-one-user.args.ts
Normal file
@ -0,0 +1,16 @@
|
||||
import { Field } from '@nestjs/graphql';
|
||||
import { ArgsType } from '@nestjs/graphql';
|
||||
import { UserUpdateInput } from './user-update.input';
|
||||
import { Type } from 'class-transformer';
|
||||
import { UserWhereUniqueInput } from './user-where-unique.input';
|
||||
|
||||
@ArgsType()
|
||||
export class UpdateOneUserArgs {
|
||||
@Field(() => UserUpdateInput, { nullable: false })
|
||||
@Type(() => UserUpdateInput)
|
||||
data!: UserUpdateInput;
|
||||
|
||||
@Field(() => UserWhereUniqueInput, { nullable: false })
|
||||
@Type(() => UserWhereUniqueInput)
|
||||
where!: UserWhereUniqueInput;
|
||||
}
|
||||
21
server/src/core/@generated/user/upsert-one-user.args.ts
Normal file
21
server/src/core/@generated/user/upsert-one-user.args.ts
Normal file
@ -0,0 +1,21 @@
|
||||
import { Field } from '@nestjs/graphql';
|
||||
import { ArgsType } from '@nestjs/graphql';
|
||||
import { UserWhereUniqueInput } from './user-where-unique.input';
|
||||
import { Type } from 'class-transformer';
|
||||
import { UserCreateInput } from './user-create.input';
|
||||
import { UserUpdateInput } from './user-update.input';
|
||||
|
||||
@ArgsType()
|
||||
export class UpsertOneUserArgs {
|
||||
@Field(() => UserWhereUniqueInput, { nullable: false })
|
||||
@Type(() => UserWhereUniqueInput)
|
||||
where!: UserWhereUniqueInput;
|
||||
|
||||
@Field(() => UserCreateInput, { nullable: false })
|
||||
@Type(() => UserCreateInput)
|
||||
create!: UserCreateInput;
|
||||
|
||||
@Field(() => UserUpdateInput, { nullable: false })
|
||||
@Type(() => UserUpdateInput)
|
||||
update!: UserUpdateInput;
|
||||
}
|
||||
38
server/src/core/@generated/user/user-aggregate.args.ts
Normal file
38
server/src/core/@generated/user/user-aggregate.args.ts
Normal file
@ -0,0 +1,38 @@
|
||||
import { Field } from '@nestjs/graphql';
|
||||
import { ArgsType } from '@nestjs/graphql';
|
||||
import { UserWhereInput } from './user-where.input';
|
||||
import { Type } from 'class-transformer';
|
||||
import { UserOrderByWithRelationInput } from './user-order-by-with-relation.input';
|
||||
import { UserWhereUniqueInput } from './user-where-unique.input';
|
||||
import { Int } from '@nestjs/graphql';
|
||||
import { UserCountAggregateInput } from './user-count-aggregate.input';
|
||||
import { UserMinAggregateInput } from './user-min-aggregate.input';
|
||||
import { UserMaxAggregateInput } from './user-max-aggregate.input';
|
||||
|
||||
@ArgsType()
|
||||
export class UserAggregateArgs {
|
||||
@Field(() => UserWhereInput, { nullable: true })
|
||||
@Type(() => UserWhereInput)
|
||||
where?: UserWhereInput;
|
||||
|
||||
@Field(() => [UserOrderByWithRelationInput], { nullable: true })
|
||||
orderBy?: Array<UserOrderByWithRelationInput>;
|
||||
|
||||
@Field(() => UserWhereUniqueInput, { nullable: true })
|
||||
cursor?: UserWhereUniqueInput;
|
||||
|
||||
@Field(() => Int, { nullable: true })
|
||||
take?: number;
|
||||
|
||||
@Field(() => Int, { nullable: true })
|
||||
skip?: number;
|
||||
|
||||
@Field(() => UserCountAggregateInput, { nullable: true })
|
||||
_count?: UserCountAggregateInput;
|
||||
|
||||
@Field(() => UserMinAggregateInput, { nullable: true })
|
||||
_min?: UserMinAggregateInput;
|
||||
|
||||
@Field(() => UserMaxAggregateInput, { nullable: true })
|
||||
_max?: UserMaxAggregateInput;
|
||||
}
|
||||
@ -0,0 +1,50 @@
|
||||
import { Field } from '@nestjs/graphql';
|
||||
import { InputType } from '@nestjs/graphql';
|
||||
|
||||
@InputType()
|
||||
export class UserCountAggregateInput {
|
||||
@Field(() => Boolean, { nullable: true })
|
||||
id?: true;
|
||||
|
||||
@Field(() => Boolean, { nullable: true })
|
||||
createdAt?: true;
|
||||
|
||||
@Field(() => Boolean, { nullable: true })
|
||||
updatedAt?: true;
|
||||
|
||||
@Field(() => Boolean, { nullable: true })
|
||||
deletedAt?: true;
|
||||
|
||||
@Field(() => Boolean, { nullable: true })
|
||||
lastSeen?: true;
|
||||
|
||||
@Field(() => Boolean, { nullable: true })
|
||||
disabled?: true;
|
||||
|
||||
@Field(() => Boolean, { nullable: true })
|
||||
displayName?: true;
|
||||
|
||||
@Field(() => Boolean, { nullable: true })
|
||||
email?: true;
|
||||
|
||||
@Field(() => Boolean, { nullable: true })
|
||||
avatarUrl?: true;
|
||||
|
||||
@Field(() => Boolean, { nullable: true })
|
||||
locale?: true;
|
||||
|
||||
@Field(() => Boolean, { nullable: true })
|
||||
phoneNumber?: true;
|
||||
|
||||
@Field(() => Boolean, { nullable: true })
|
||||
passwordHash?: true;
|
||||
|
||||
@Field(() => Boolean, { nullable: true })
|
||||
emailVerified?: true;
|
||||
|
||||
@Field(() => Boolean, { nullable: true })
|
||||
metadata?: true;
|
||||
|
||||
@Field(() => Boolean, { nullable: true })
|
||||
_all?: true;
|
||||
}
|
||||
@ -0,0 +1,51 @@
|
||||
import { Field } from '@nestjs/graphql';
|
||||
import { ObjectType } from '@nestjs/graphql';
|
||||
import { Int } from '@nestjs/graphql';
|
||||
|
||||
@ObjectType()
|
||||
export class UserCountAggregate {
|
||||
@Field(() => Int, { nullable: false })
|
||||
id!: number;
|
||||
|
||||
@Field(() => Int, { nullable: false })
|
||||
createdAt!: number;
|
||||
|
||||
@Field(() => Int, { nullable: false })
|
||||
updatedAt!: number;
|
||||
|
||||
@Field(() => Int, { nullable: false })
|
||||
deletedAt!: number;
|
||||
|
||||
@Field(() => Int, { nullable: false })
|
||||
lastSeen!: number;
|
||||
|
||||
@Field(() => Int, { nullable: false })
|
||||
disabled!: number;
|
||||
|
||||
@Field(() => Int, { nullable: false })
|
||||
displayName!: number;
|
||||
|
||||
@Field(() => Int, { nullable: false })
|
||||
email!: number;
|
||||
|
||||
@Field(() => Int, { nullable: false })
|
||||
avatarUrl!: number;
|
||||
|
||||
@Field(() => Int, { nullable: false })
|
||||
locale!: number;
|
||||
|
||||
@Field(() => Int, { nullable: false })
|
||||
phoneNumber!: number;
|
||||
|
||||
@Field(() => Int, { nullable: false })
|
||||
passwordHash!: number;
|
||||
|
||||
@Field(() => Int, { nullable: false })
|
||||
emailVerified!: number;
|
||||
|
||||
@Field(() => Int, { nullable: false })
|
||||
metadata!: number;
|
||||
|
||||
@Field(() => Int, { nullable: false })
|
||||
_all!: number;
|
||||
}
|
||||
@ -0,0 +1,48 @@
|
||||
import { Field } from '@nestjs/graphql';
|
||||
import { InputType } from '@nestjs/graphql';
|
||||
import { SortOrder } from '../prisma/sort-order.enum';
|
||||
|
||||
@InputType()
|
||||
export class UserCountOrderByAggregateInput {
|
||||
@Field(() => SortOrder, { nullable: true })
|
||||
id?: keyof typeof SortOrder;
|
||||
|
||||
@Field(() => SortOrder, { nullable: true })
|
||||
createdAt?: keyof typeof SortOrder;
|
||||
|
||||
@Field(() => SortOrder, { nullable: true })
|
||||
updatedAt?: keyof typeof SortOrder;
|
||||
|
||||
@Field(() => SortOrder, { nullable: true })
|
||||
deletedAt?: keyof typeof SortOrder;
|
||||
|
||||
@Field(() => SortOrder, { nullable: true })
|
||||
lastSeen?: keyof typeof SortOrder;
|
||||
|
||||
@Field(() => SortOrder, { nullable: true })
|
||||
disabled?: keyof typeof SortOrder;
|
||||
|
||||
@Field(() => SortOrder, { nullable: true })
|
||||
displayName?: keyof typeof SortOrder;
|
||||
|
||||
@Field(() => SortOrder, { nullable: true })
|
||||
email?: keyof typeof SortOrder;
|
||||
|
||||
@Field(() => SortOrder, { nullable: true })
|
||||
avatarUrl?: keyof typeof SortOrder;
|
||||
|
||||
@Field(() => SortOrder, { nullable: true })
|
||||
locale?: keyof typeof SortOrder;
|
||||
|
||||
@Field(() => SortOrder, { nullable: true })
|
||||
phoneNumber?: keyof typeof SortOrder;
|
||||
|
||||
@Field(() => SortOrder, { nullable: true })
|
||||
passwordHash?: keyof typeof SortOrder;
|
||||
|
||||
@Field(() => SortOrder, { nullable: true })
|
||||
emailVerified?: keyof typeof SortOrder;
|
||||
|
||||
@Field(() => SortOrder, { nullable: true })
|
||||
metadata?: keyof typeof SortOrder;
|
||||
}
|
||||
15
server/src/core/@generated/user/user-count.output.ts
Normal file
15
server/src/core/@generated/user/user-count.output.ts
Normal file
@ -0,0 +1,15 @@
|
||||
import { Field } from '@nestjs/graphql';
|
||||
import { ObjectType } from '@nestjs/graphql';
|
||||
import { Int } from '@nestjs/graphql';
|
||||
|
||||
@ObjectType()
|
||||
export class UserCount {
|
||||
@Field(() => Int, { nullable: false })
|
||||
companies?: number;
|
||||
|
||||
@Field(() => Int, { nullable: false })
|
||||
refreshTokens?: number;
|
||||
|
||||
@Field(() => Int, { nullable: false })
|
||||
comments?: number;
|
||||
}
|
||||
48
server/src/core/@generated/user/user-create-many.input.ts
Normal file
48
server/src/core/@generated/user/user-create-many.input.ts
Normal file
@ -0,0 +1,48 @@
|
||||
import { Field } from '@nestjs/graphql';
|
||||
import { InputType } from '@nestjs/graphql';
|
||||
import { GraphQLJSON } from 'graphql-type-json';
|
||||
|
||||
@InputType()
|
||||
export class UserCreateManyInput {
|
||||
@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;
|
||||
}
|
||||
@ -0,0 +1,20 @@
|
||||
import { Field } from '@nestjs/graphql';
|
||||
import { InputType } from '@nestjs/graphql';
|
||||
import { UserCreateWithoutCommentsInput } from './user-create-without-comments.input';
|
||||
import { HideField } from '@nestjs/graphql';
|
||||
import { UserCreateOrConnectWithoutCommentsInput } from './user-create-or-connect-without-comments.input';
|
||||
import { UserWhereUniqueInput } from './user-where-unique.input';
|
||||
import { Type } from 'class-transformer';
|
||||
|
||||
@InputType()
|
||||
export class UserCreateNestedOneWithoutCommentsInput {
|
||||
@HideField()
|
||||
create?: UserCreateWithoutCommentsInput;
|
||||
|
||||
@HideField()
|
||||
connectOrCreate?: UserCreateOrConnectWithoutCommentsInput;
|
||||
|
||||
@Field(() => UserWhereUniqueInput, { nullable: true })
|
||||
@Type(() => UserWhereUniqueInput)
|
||||
connect?: UserWhereUniqueInput;
|
||||
}
|
||||
@ -0,0 +1,20 @@
|
||||
import { Field } from '@nestjs/graphql';
|
||||
import { InputType } from '@nestjs/graphql';
|
||||
import { UserCreateWithoutCompaniesInput } from './user-create-without-companies.input';
|
||||
import { HideField } from '@nestjs/graphql';
|
||||
import { UserCreateOrConnectWithoutCompaniesInput } from './user-create-or-connect-without-companies.input';
|
||||
import { UserWhereUniqueInput } from './user-where-unique.input';
|
||||
import { Type } from 'class-transformer';
|
||||
|
||||
@InputType()
|
||||
export class UserCreateNestedOneWithoutCompaniesInput {
|
||||
@HideField()
|
||||
create?: UserCreateWithoutCompaniesInput;
|
||||
|
||||
@HideField()
|
||||
connectOrCreate?: UserCreateOrConnectWithoutCompaniesInput;
|
||||
|
||||
@Field(() => UserWhereUniqueInput, { nullable: true })
|
||||
@Type(() => UserWhereUniqueInput)
|
||||
connect?: UserWhereUniqueInput;
|
||||
}
|
||||
@ -0,0 +1,21 @@
|
||||
import { Field } from '@nestjs/graphql';
|
||||
import { InputType } from '@nestjs/graphql';
|
||||
import { UserCreateWithoutRefreshTokensInput } from './user-create-without-refresh-tokens.input';
|
||||
import { Type } from 'class-transformer';
|
||||
import { UserCreateOrConnectWithoutRefreshTokensInput } from './user-create-or-connect-without-refresh-tokens.input';
|
||||
import { UserWhereUniqueInput } from './user-where-unique.input';
|
||||
|
||||
@InputType()
|
||||
export class UserCreateNestedOneWithoutRefreshTokensInput {
|
||||
@Field(() => UserCreateWithoutRefreshTokensInput, { nullable: true })
|
||||
@Type(() => UserCreateWithoutRefreshTokensInput)
|
||||
create?: UserCreateWithoutRefreshTokensInput;
|
||||
|
||||
@Field(() => UserCreateOrConnectWithoutRefreshTokensInput, { nullable: true })
|
||||
@Type(() => UserCreateOrConnectWithoutRefreshTokensInput)
|
||||
connectOrCreate?: UserCreateOrConnectWithoutRefreshTokensInput;
|
||||
|
||||
@Field(() => UserWhereUniqueInput, { nullable: true })
|
||||
@Type(() => UserWhereUniqueInput)
|
||||
connect?: UserWhereUniqueInput;
|
||||
}
|
||||
@ -0,0 +1,23 @@
|
||||
import { Field } from '@nestjs/graphql';
|
||||
import { InputType } from '@nestjs/graphql';
|
||||
import { UserCreateWithoutWorkspaceMemberInput } from './user-create-without-workspace-member.input';
|
||||
import { Type } from 'class-transformer';
|
||||
import { UserCreateOrConnectWithoutWorkspaceMemberInput } from './user-create-or-connect-without-workspace-member.input';
|
||||
import { UserWhereUniqueInput } from './user-where-unique.input';
|
||||
|
||||
@InputType()
|
||||
export class UserCreateNestedOneWithoutWorkspaceMemberInput {
|
||||
@Field(() => UserCreateWithoutWorkspaceMemberInput, { nullable: true })
|
||||
@Type(() => UserCreateWithoutWorkspaceMemberInput)
|
||||
create?: UserCreateWithoutWorkspaceMemberInput;
|
||||
|
||||
@Field(() => UserCreateOrConnectWithoutWorkspaceMemberInput, {
|
||||
nullable: true,
|
||||
})
|
||||
@Type(() => UserCreateOrConnectWithoutWorkspaceMemberInput)
|
||||
connectOrCreate?: UserCreateOrConnectWithoutWorkspaceMemberInput;
|
||||
|
||||
@Field(() => UserWhereUniqueInput, { nullable: true })
|
||||
@Type(() => UserWhereUniqueInput)
|
||||
connect?: UserWhereUniqueInput;
|
||||
}
|
||||
@ -0,0 +1,16 @@
|
||||
import { Field } from '@nestjs/graphql';
|
||||
import { InputType } from '@nestjs/graphql';
|
||||
import { UserWhereUniqueInput } from './user-where-unique.input';
|
||||
import { Type } from 'class-transformer';
|
||||
import { UserCreateWithoutCommentsInput } from './user-create-without-comments.input';
|
||||
|
||||
@InputType()
|
||||
export class UserCreateOrConnectWithoutCommentsInput {
|
||||
@Field(() => UserWhereUniqueInput, { nullable: false })
|
||||
@Type(() => UserWhereUniqueInput)
|
||||
where!: UserWhereUniqueInput;
|
||||
|
||||
@Field(() => UserCreateWithoutCommentsInput, { nullable: false })
|
||||
@Type(() => UserCreateWithoutCommentsInput)
|
||||
create!: UserCreateWithoutCommentsInput;
|
||||
}
|
||||
@ -0,0 +1,16 @@
|
||||
import { Field } from '@nestjs/graphql';
|
||||
import { InputType } from '@nestjs/graphql';
|
||||
import { UserWhereUniqueInput } from './user-where-unique.input';
|
||||
import { Type } from 'class-transformer';
|
||||
import { UserCreateWithoutCompaniesInput } from './user-create-without-companies.input';
|
||||
|
||||
@InputType()
|
||||
export class UserCreateOrConnectWithoutCompaniesInput {
|
||||
@Field(() => UserWhereUniqueInput, { nullable: false })
|
||||
@Type(() => UserWhereUniqueInput)
|
||||
where!: UserWhereUniqueInput;
|
||||
|
||||
@Field(() => UserCreateWithoutCompaniesInput, { nullable: false })
|
||||
@Type(() => UserCreateWithoutCompaniesInput)
|
||||
create!: UserCreateWithoutCompaniesInput;
|
||||
}
|
||||
@ -0,0 +1,16 @@
|
||||
import { Field } from '@nestjs/graphql';
|
||||
import { InputType } from '@nestjs/graphql';
|
||||
import { UserWhereUniqueInput } from './user-where-unique.input';
|
||||
import { Type } from 'class-transformer';
|
||||
import { UserCreateWithoutRefreshTokensInput } from './user-create-without-refresh-tokens.input';
|
||||
|
||||
@InputType()
|
||||
export class UserCreateOrConnectWithoutRefreshTokensInput {
|
||||
@Field(() => UserWhereUniqueInput, { nullable: false })
|
||||
@Type(() => UserWhereUniqueInput)
|
||||
where!: UserWhereUniqueInput;
|
||||
|
||||
@Field(() => UserCreateWithoutRefreshTokensInput, { nullable: false })
|
||||
@Type(() => UserCreateWithoutRefreshTokensInput)
|
||||
create!: UserCreateWithoutRefreshTokensInput;
|
||||
}
|
||||
@ -0,0 +1,16 @@
|
||||
import { Field } from '@nestjs/graphql';
|
||||
import { InputType } from '@nestjs/graphql';
|
||||
import { UserWhereUniqueInput } from './user-where-unique.input';
|
||||
import { Type } from 'class-transformer';
|
||||
import { UserCreateWithoutWorkspaceMemberInput } from './user-create-without-workspace-member.input';
|
||||
|
||||
@InputType()
|
||||
export class UserCreateOrConnectWithoutWorkspaceMemberInput {
|
||||
@Field(() => UserWhereUniqueInput, { nullable: false })
|
||||
@Type(() => UserWhereUniqueInput)
|
||||
where!: UserWhereUniqueInput;
|
||||
|
||||
@Field(() => UserCreateWithoutWorkspaceMemberInput, { nullable: false })
|
||||
@Type(() => UserCreateWithoutWorkspaceMemberInput)
|
||||
create!: UserCreateWithoutWorkspaceMemberInput;
|
||||
}
|
||||
@ -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;
|
||||
}
|
||||
@ -0,0 +1,61 @@
|
||||
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;
|
||||
}
|
||||
@ -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 { CommentCreateNestedManyWithoutAuthorInput } from '../comment/comment-create-nested-many-without-author.input';
|
||||
|
||||
@InputType()
|
||||
export class UserCreateWithoutRefreshTokensInput {
|
||||
@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;
|
||||
|
||||
@Field(() => CommentCreateNestedManyWithoutAuthorInput, { nullable: true })
|
||||
comments?: CommentCreateNestedManyWithoutAuthorInput;
|
||||
}
|
||||
@ -0,0 +1,63 @@
|
||||
import { Field } from '@nestjs/graphql';
|
||||
import { InputType } 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(() => 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;
|
||||
|
||||
@Field(() => CompanyCreateNestedManyWithoutAccountOwnerInput, {
|
||||
nullable: true,
|
||||
})
|
||||
companies?: CompanyCreateNestedManyWithoutAccountOwnerInput;
|
||||
|
||||
@HideField()
|
||||
refreshTokens?: RefreshTokenCreateNestedManyWithoutUserInput;
|
||||
|
||||
@Field(() => CommentCreateNestedManyWithoutAuthorInput, { nullable: true })
|
||||
comments?: CommentCreateNestedManyWithoutAuthorInput;
|
||||
}
|
||||
67
server/src/core/@generated/user/user-create.input.ts
Normal file
67
server/src/core/@generated/user/user-create.input.ts
Normal file
@ -0,0 +1,67 @@
|
||||
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';
|
||||
import { CommentCreateNestedManyWithoutAuthorInput } from '../comment/comment-create-nested-many-without-author.input';
|
||||
|
||||
@InputType()
|
||||
export class UserCreateInput {
|
||||
@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;
|
||||
|
||||
@Field(() => CommentCreateNestedManyWithoutAuthorInput, { nullable: true })
|
||||
comments?: CommentCreateNestedManyWithoutAuthorInput;
|
||||
}
|
||||
42
server/src/core/@generated/user/user-group-by.args.ts
Normal file
42
server/src/core/@generated/user/user-group-by.args.ts
Normal file
@ -0,0 +1,42 @@
|
||||
import { Field } from '@nestjs/graphql';
|
||||
import { ArgsType } from '@nestjs/graphql';
|
||||
import { UserWhereInput } from './user-where.input';
|
||||
import { Type } from 'class-transformer';
|
||||
import { UserOrderByWithAggregationInput } from './user-order-by-with-aggregation.input';
|
||||
import { UserScalarFieldEnum } from './user-scalar-field.enum';
|
||||
import { UserScalarWhereWithAggregatesInput } from './user-scalar-where-with-aggregates.input';
|
||||
import { Int } from '@nestjs/graphql';
|
||||
import { UserCountAggregateInput } from './user-count-aggregate.input';
|
||||
import { UserMinAggregateInput } from './user-min-aggregate.input';
|
||||
import { UserMaxAggregateInput } from './user-max-aggregate.input';
|
||||
|
||||
@ArgsType()
|
||||
export class UserGroupByArgs {
|
||||
@Field(() => UserWhereInput, { nullable: true })
|
||||
@Type(() => UserWhereInput)
|
||||
where?: UserWhereInput;
|
||||
|
||||
@Field(() => [UserOrderByWithAggregationInput], { nullable: true })
|
||||
orderBy?: Array<UserOrderByWithAggregationInput>;
|
||||
|
||||
@Field(() => [UserScalarFieldEnum], { nullable: false })
|
||||
by!: Array<keyof typeof UserScalarFieldEnum>;
|
||||
|
||||
@Field(() => UserScalarWhereWithAggregatesInput, { nullable: true })
|
||||
having?: UserScalarWhereWithAggregatesInput;
|
||||
|
||||
@Field(() => Int, { nullable: true })
|
||||
take?: number;
|
||||
|
||||
@Field(() => Int, { nullable: true })
|
||||
skip?: number;
|
||||
|
||||
@Field(() => UserCountAggregateInput, { nullable: true })
|
||||
_count?: UserCountAggregateInput;
|
||||
|
||||
@Field(() => UserMinAggregateInput, { nullable: true })
|
||||
_min?: UserMinAggregateInput;
|
||||
|
||||
@Field(() => UserMaxAggregateInput, { nullable: true })
|
||||
_max?: UserMaxAggregateInput;
|
||||
}
|
||||
60
server/src/core/@generated/user/user-group-by.output.ts
Normal file
60
server/src/core/@generated/user/user-group-by.output.ts
Normal file
@ -0,0 +1,60 @@
|
||||
import { Field } from '@nestjs/graphql';
|
||||
import { ObjectType } from '@nestjs/graphql';
|
||||
import { GraphQLJSON } from 'graphql-type-json';
|
||||
import { UserCountAggregate } from './user-count-aggregate.output';
|
||||
import { UserMinAggregate } from './user-min-aggregate.output';
|
||||
import { UserMaxAggregate } from './user-max-aggregate.output';
|
||||
|
||||
@ObjectType()
|
||||
export class UserGroupBy {
|
||||
@Field(() => String, { nullable: false })
|
||||
id!: string;
|
||||
|
||||
@Field(() => Date, { nullable: false })
|
||||
createdAt!: Date | string;
|
||||
|
||||
@Field(() => Date, { nullable: false })
|
||||
updatedAt!: Date | string;
|
||||
|
||||
@Field(() => Date, { nullable: true })
|
||||
deletedAt?: Date | string;
|
||||
|
||||
@Field(() => Date, { nullable: true })
|
||||
lastSeen?: Date | string;
|
||||
|
||||
@Field(() => Boolean, { nullable: false })
|
||||
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: false })
|
||||
emailVerified!: boolean;
|
||||
|
||||
@Field(() => GraphQLJSON, { nullable: true })
|
||||
metadata?: any;
|
||||
|
||||
@Field(() => UserCountAggregate, { nullable: true })
|
||||
_count?: UserCountAggregate;
|
||||
|
||||
@Field(() => UserMinAggregate, { nullable: true })
|
||||
_min?: UserMinAggregate;
|
||||
|
||||
@Field(() => UserMaxAggregate, { nullable: true })
|
||||
_max?: UserMaxAggregate;
|
||||
}
|
||||
44
server/src/core/@generated/user/user-max-aggregate.input.ts
Normal file
44
server/src/core/@generated/user/user-max-aggregate.input.ts
Normal file
@ -0,0 +1,44 @@
|
||||
import { Field } from '@nestjs/graphql';
|
||||
import { InputType } from '@nestjs/graphql';
|
||||
|
||||
@InputType()
|
||||
export class UserMaxAggregateInput {
|
||||
@Field(() => Boolean, { nullable: true })
|
||||
id?: true;
|
||||
|
||||
@Field(() => Boolean, { nullable: true })
|
||||
createdAt?: true;
|
||||
|
||||
@Field(() => Boolean, { nullable: true })
|
||||
updatedAt?: true;
|
||||
|
||||
@Field(() => Boolean, { nullable: true })
|
||||
deletedAt?: true;
|
||||
|
||||
@Field(() => Boolean, { nullable: true })
|
||||
lastSeen?: true;
|
||||
|
||||
@Field(() => Boolean, { nullable: true })
|
||||
disabled?: true;
|
||||
|
||||
@Field(() => Boolean, { nullable: true })
|
||||
displayName?: true;
|
||||
|
||||
@Field(() => Boolean, { nullable: true })
|
||||
email?: true;
|
||||
|
||||
@Field(() => Boolean, { nullable: true })
|
||||
avatarUrl?: true;
|
||||
|
||||
@Field(() => Boolean, { nullable: true })
|
||||
locale?: true;
|
||||
|
||||
@Field(() => Boolean, { nullable: true })
|
||||
phoneNumber?: true;
|
||||
|
||||
@Field(() => Boolean, { nullable: true })
|
||||
passwordHash?: true;
|
||||
|
||||
@Field(() => Boolean, { nullable: true })
|
||||
emailVerified?: true;
|
||||
}
|
||||
44
server/src/core/@generated/user/user-max-aggregate.output.ts
Normal file
44
server/src/core/@generated/user/user-max-aggregate.output.ts
Normal file
@ -0,0 +1,44 @@
|
||||
import { Field } from '@nestjs/graphql';
|
||||
import { ObjectType } from '@nestjs/graphql';
|
||||
|
||||
@ObjectType()
|
||||
export class UserMaxAggregate {
|
||||
@Field(() => String, { nullable: true })
|
||||
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: true })
|
||||
displayName?: string;
|
||||
|
||||
@Field(() => String, { nullable: true })
|
||||
email?: string;
|
||||
|
||||
@Field(() => String, { nullable: true })
|
||||
avatarUrl?: string;
|
||||
|
||||
@Field(() => String, { nullable: true })
|
||||
locale?: string;
|
||||
|
||||
@Field(() => String, { nullable: true })
|
||||
phoneNumber?: string;
|
||||
|
||||
@Field(() => String, { nullable: true })
|
||||
passwordHash?: string;
|
||||
|
||||
@Field(() => Boolean, { nullable: true })
|
||||
emailVerified?: boolean;
|
||||
}
|
||||
@ -0,0 +1,45 @@
|
||||
import { Field } from '@nestjs/graphql';
|
||||
import { InputType } from '@nestjs/graphql';
|
||||
import { SortOrder } from '../prisma/sort-order.enum';
|
||||
|
||||
@InputType()
|
||||
export class UserMaxOrderByAggregateInput {
|
||||
@Field(() => SortOrder, { nullable: true })
|
||||
id?: keyof typeof SortOrder;
|
||||
|
||||
@Field(() => SortOrder, { nullable: true })
|
||||
createdAt?: keyof typeof SortOrder;
|
||||
|
||||
@Field(() => SortOrder, { nullable: true })
|
||||
updatedAt?: keyof typeof SortOrder;
|
||||
|
||||
@Field(() => SortOrder, { nullable: true })
|
||||
deletedAt?: keyof typeof SortOrder;
|
||||
|
||||
@Field(() => SortOrder, { nullable: true })
|
||||
lastSeen?: keyof typeof SortOrder;
|
||||
|
||||
@Field(() => SortOrder, { nullable: true })
|
||||
disabled?: keyof typeof SortOrder;
|
||||
|
||||
@Field(() => SortOrder, { nullable: true })
|
||||
displayName?: keyof typeof SortOrder;
|
||||
|
||||
@Field(() => SortOrder, { nullable: true })
|
||||
email?: keyof typeof SortOrder;
|
||||
|
||||
@Field(() => SortOrder, { nullable: true })
|
||||
avatarUrl?: keyof typeof SortOrder;
|
||||
|
||||
@Field(() => SortOrder, { nullable: true })
|
||||
locale?: keyof typeof SortOrder;
|
||||
|
||||
@Field(() => SortOrder, { nullable: true })
|
||||
phoneNumber?: keyof typeof SortOrder;
|
||||
|
||||
@Field(() => SortOrder, { nullable: true })
|
||||
passwordHash?: keyof typeof SortOrder;
|
||||
|
||||
@Field(() => SortOrder, { nullable: true })
|
||||
emailVerified?: keyof typeof SortOrder;
|
||||
}
|
||||
44
server/src/core/@generated/user/user-min-aggregate.input.ts
Normal file
44
server/src/core/@generated/user/user-min-aggregate.input.ts
Normal file
@ -0,0 +1,44 @@
|
||||
import { Field } from '@nestjs/graphql';
|
||||
import { InputType } from '@nestjs/graphql';
|
||||
|
||||
@InputType()
|
||||
export class UserMinAggregateInput {
|
||||
@Field(() => Boolean, { nullable: true })
|
||||
id?: true;
|
||||
|
||||
@Field(() => Boolean, { nullable: true })
|
||||
createdAt?: true;
|
||||
|
||||
@Field(() => Boolean, { nullable: true })
|
||||
updatedAt?: true;
|
||||
|
||||
@Field(() => Boolean, { nullable: true })
|
||||
deletedAt?: true;
|
||||
|
||||
@Field(() => Boolean, { nullable: true })
|
||||
lastSeen?: true;
|
||||
|
||||
@Field(() => Boolean, { nullable: true })
|
||||
disabled?: true;
|
||||
|
||||
@Field(() => Boolean, { nullable: true })
|
||||
displayName?: true;
|
||||
|
||||
@Field(() => Boolean, { nullable: true })
|
||||
email?: true;
|
||||
|
||||
@Field(() => Boolean, { nullable: true })
|
||||
avatarUrl?: true;
|
||||
|
||||
@Field(() => Boolean, { nullable: true })
|
||||
locale?: true;
|
||||
|
||||
@Field(() => Boolean, { nullable: true })
|
||||
phoneNumber?: true;
|
||||
|
||||
@Field(() => Boolean, { nullable: true })
|
||||
passwordHash?: true;
|
||||
|
||||
@Field(() => Boolean, { nullable: true })
|
||||
emailVerified?: true;
|
||||
}
|
||||
44
server/src/core/@generated/user/user-min-aggregate.output.ts
Normal file
44
server/src/core/@generated/user/user-min-aggregate.output.ts
Normal file
@ -0,0 +1,44 @@
|
||||
import { Field } from '@nestjs/graphql';
|
||||
import { ObjectType } from '@nestjs/graphql';
|
||||
|
||||
@ObjectType()
|
||||
export class UserMinAggregate {
|
||||
@Field(() => String, { nullable: true })
|
||||
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: true })
|
||||
displayName?: string;
|
||||
|
||||
@Field(() => String, { nullable: true })
|
||||
email?: string;
|
||||
|
||||
@Field(() => String, { nullable: true })
|
||||
avatarUrl?: string;
|
||||
|
||||
@Field(() => String, { nullable: true })
|
||||
locale?: string;
|
||||
|
||||
@Field(() => String, { nullable: true })
|
||||
phoneNumber?: string;
|
||||
|
||||
@Field(() => String, { nullable: true })
|
||||
passwordHash?: string;
|
||||
|
||||
@Field(() => Boolean, { nullable: true })
|
||||
emailVerified?: boolean;
|
||||
}
|
||||
@ -0,0 +1,45 @@
|
||||
import { Field } from '@nestjs/graphql';
|
||||
import { InputType } from '@nestjs/graphql';
|
||||
import { SortOrder } from '../prisma/sort-order.enum';
|
||||
|
||||
@InputType()
|
||||
export class UserMinOrderByAggregateInput {
|
||||
@Field(() => SortOrder, { nullable: true })
|
||||
id?: keyof typeof SortOrder;
|
||||
|
||||
@Field(() => SortOrder, { nullable: true })
|
||||
createdAt?: keyof typeof SortOrder;
|
||||
|
||||
@Field(() => SortOrder, { nullable: true })
|
||||
updatedAt?: keyof typeof SortOrder;
|
||||
|
||||
@Field(() => SortOrder, { nullable: true })
|
||||
deletedAt?: keyof typeof SortOrder;
|
||||
|
||||
@Field(() => SortOrder, { nullable: true })
|
||||
lastSeen?: keyof typeof SortOrder;
|
||||
|
||||
@Field(() => SortOrder, { nullable: true })
|
||||
disabled?: keyof typeof SortOrder;
|
||||
|
||||
@Field(() => SortOrder, { nullable: true })
|
||||
displayName?: keyof typeof SortOrder;
|
||||
|
||||
@Field(() => SortOrder, { nullable: true })
|
||||
email?: keyof typeof SortOrder;
|
||||
|
||||
@Field(() => SortOrder, { nullable: true })
|
||||
avatarUrl?: keyof typeof SortOrder;
|
||||
|
||||
@Field(() => SortOrder, { nullable: true })
|
||||
locale?: keyof typeof SortOrder;
|
||||
|
||||
@Field(() => SortOrder, { nullable: true })
|
||||
phoneNumber?: keyof typeof SortOrder;
|
||||
|
||||
@Field(() => SortOrder, { nullable: true })
|
||||
passwordHash?: keyof typeof SortOrder;
|
||||
|
||||
@Field(() => SortOrder, { nullable: true })
|
||||
emailVerified?: keyof typeof SortOrder;
|
||||
}
|
||||
@ -0,0 +1,60 @@
|
||||
import { Field } from '@nestjs/graphql';
|
||||
import { InputType } from '@nestjs/graphql';
|
||||
import { SortOrder } from '../prisma/sort-order.enum';
|
||||
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';
|
||||
|
||||
@InputType()
|
||||
export class UserOrderByWithAggregationInput {
|
||||
@Field(() => SortOrder, { nullable: true })
|
||||
id?: keyof typeof SortOrder;
|
||||
|
||||
@Field(() => SortOrder, { nullable: true })
|
||||
createdAt?: keyof typeof SortOrder;
|
||||
|
||||
@Field(() => SortOrder, { nullable: true })
|
||||
updatedAt?: keyof typeof SortOrder;
|
||||
|
||||
@Field(() => SortOrder, { nullable: true })
|
||||
deletedAt?: keyof typeof SortOrder;
|
||||
|
||||
@Field(() => SortOrder, { nullable: true })
|
||||
lastSeen?: keyof typeof SortOrder;
|
||||
|
||||
@Field(() => SortOrder, { nullable: true })
|
||||
disabled?: keyof typeof SortOrder;
|
||||
|
||||
@Field(() => SortOrder, { nullable: true })
|
||||
displayName?: keyof typeof SortOrder;
|
||||
|
||||
@Field(() => SortOrder, { nullable: true })
|
||||
email?: keyof typeof SortOrder;
|
||||
|
||||
@Field(() => SortOrder, { nullable: true })
|
||||
avatarUrl?: keyof typeof SortOrder;
|
||||
|
||||
@Field(() => SortOrder, { nullable: true })
|
||||
locale?: keyof typeof SortOrder;
|
||||
|
||||
@Field(() => SortOrder, { nullable: true })
|
||||
phoneNumber?: keyof typeof SortOrder;
|
||||
|
||||
@Field(() => SortOrder, { nullable: true })
|
||||
passwordHash?: keyof typeof SortOrder;
|
||||
|
||||
@Field(() => SortOrder, { nullable: true })
|
||||
emailVerified?: keyof typeof SortOrder;
|
||||
|
||||
@Field(() => SortOrder, { nullable: true })
|
||||
metadata?: keyof typeof SortOrder;
|
||||
|
||||
@Field(() => UserCountOrderByAggregateInput, { nullable: true })
|
||||
_count?: UserCountOrderByAggregateInput;
|
||||
|
||||
@Field(() => UserMaxOrderByAggregateInput, { nullable: true })
|
||||
_max?: UserMaxOrderByAggregateInput;
|
||||
|
||||
@Field(() => UserMinOrderByAggregateInput, { nullable: true })
|
||||
_min?: UserMinOrderByAggregateInput;
|
||||
}
|
||||
@ -0,0 +1,65 @@
|
||||
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 { 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';
|
||||
|
||||
@InputType()
|
||||
export class UserOrderByWithRelationInput {
|
||||
@Field(() => SortOrder, { nullable: true })
|
||||
id?: keyof typeof SortOrder;
|
||||
|
||||
@Field(() => SortOrder, { nullable: true })
|
||||
createdAt?: keyof typeof SortOrder;
|
||||
|
||||
@Field(() => SortOrder, { nullable: true })
|
||||
updatedAt?: keyof typeof SortOrder;
|
||||
|
||||
@Field(() => SortOrder, { nullable: true })
|
||||
deletedAt?: keyof typeof SortOrder;
|
||||
|
||||
@Field(() => SortOrder, { nullable: true })
|
||||
lastSeen?: keyof typeof SortOrder;
|
||||
|
||||
@Field(() => SortOrder, { nullable: true })
|
||||
disabled?: keyof typeof SortOrder;
|
||||
|
||||
@Field(() => SortOrder, { nullable: true })
|
||||
displayName?: keyof typeof SortOrder;
|
||||
|
||||
@Field(() => SortOrder, { nullable: true })
|
||||
email?: keyof typeof SortOrder;
|
||||
|
||||
@Field(() => SortOrder, { nullable: true })
|
||||
avatarUrl?: keyof typeof SortOrder;
|
||||
|
||||
@Field(() => SortOrder, { nullable: true })
|
||||
locale?: keyof typeof SortOrder;
|
||||
|
||||
@Field(() => SortOrder, { nullable: true })
|
||||
phoneNumber?: keyof typeof SortOrder;
|
||||
|
||||
@Field(() => SortOrder, { nullable: true })
|
||||
passwordHash?: keyof typeof SortOrder;
|
||||
|
||||
@Field(() => SortOrder, { nullable: true })
|
||||
emailVerified?: keyof typeof SortOrder;
|
||||
|
||||
@Field(() => SortOrder, { nullable: true })
|
||||
metadata?: keyof typeof SortOrder;
|
||||
|
||||
@HideField()
|
||||
workspaceMember?: WorkspaceMemberOrderByWithRelationInput;
|
||||
|
||||
@Field(() => CompanyOrderByRelationAggregateInput, { nullable: true })
|
||||
companies?: CompanyOrderByRelationAggregateInput;
|
||||
|
||||
@HideField()
|
||||
refreshTokens?: RefreshTokenOrderByRelationAggregateInput;
|
||||
|
||||
@Field(() => CommentOrderByRelationAggregateInput, { nullable: true })
|
||||
comments?: CommentOrderByRelationAggregateInput;
|
||||
}
|
||||
@ -0,0 +1,12 @@
|
||||
import { Field } from '@nestjs/graphql';
|
||||
import { InputType } from '@nestjs/graphql';
|
||||
import { UserWhereInput } from './user-where.input';
|
||||
|
||||
@InputType()
|
||||
export class UserRelationFilter {
|
||||
@Field(() => UserWhereInput, { nullable: true })
|
||||
is?: UserWhereInput;
|
||||
|
||||
@Field(() => UserWhereInput, { nullable: true })
|
||||
isNot?: UserWhereInput;
|
||||
}
|
||||
23
server/src/core/@generated/user/user-scalar-field.enum.ts
Normal file
23
server/src/core/@generated/user/user-scalar-field.enum.ts
Normal file
@ -0,0 +1,23 @@
|
||||
import { registerEnumType } from '@nestjs/graphql';
|
||||
|
||||
export enum UserScalarFieldEnum {
|
||||
id = 'id',
|
||||
createdAt = 'createdAt',
|
||||
updatedAt = 'updatedAt',
|
||||
deletedAt = 'deletedAt',
|
||||
lastSeen = 'lastSeen',
|
||||
disabled = 'disabled',
|
||||
displayName = 'displayName',
|
||||
email = 'email',
|
||||
avatarUrl = 'avatarUrl',
|
||||
locale = 'locale',
|
||||
phoneNumber = 'phoneNumber',
|
||||
passwordHash = 'passwordHash',
|
||||
emailVerified = 'emailVerified',
|
||||
metadata = 'metadata',
|
||||
}
|
||||
|
||||
registerEnumType(UserScalarFieldEnum, {
|
||||
name: 'UserScalarFieldEnum',
|
||||
description: undefined,
|
||||
});
|
||||
@ -0,0 +1,62 @@
|
||||
import { Field } from '@nestjs/graphql';
|
||||
import { InputType } from '@nestjs/graphql';
|
||||
import { StringWithAggregatesFilter } from '../prisma/string-with-aggregates-filter.input';
|
||||
import { DateTimeWithAggregatesFilter } from '../prisma/date-time-with-aggregates-filter.input';
|
||||
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 { JsonNullableWithAggregatesFilter } from '../prisma/json-nullable-with-aggregates-filter.input';
|
||||
|
||||
@InputType()
|
||||
export class UserScalarWhereWithAggregatesInput {
|
||||
@Field(() => [UserScalarWhereWithAggregatesInput], { nullable: true })
|
||||
AND?: Array<UserScalarWhereWithAggregatesInput>;
|
||||
|
||||
@Field(() => [UserScalarWhereWithAggregatesInput], { nullable: true })
|
||||
OR?: Array<UserScalarWhereWithAggregatesInput>;
|
||||
|
||||
@Field(() => [UserScalarWhereWithAggregatesInput], { nullable: true })
|
||||
NOT?: Array<UserScalarWhereWithAggregatesInput>;
|
||||
|
||||
@Field(() => StringWithAggregatesFilter, { nullable: true })
|
||||
id?: StringWithAggregatesFilter;
|
||||
|
||||
@Field(() => DateTimeWithAggregatesFilter, { nullable: true })
|
||||
createdAt?: DateTimeWithAggregatesFilter;
|
||||
|
||||
@Field(() => DateTimeWithAggregatesFilter, { nullable: true })
|
||||
updatedAt?: DateTimeWithAggregatesFilter;
|
||||
|
||||
@Field(() => DateTimeNullableWithAggregatesFilter, { nullable: true })
|
||||
deletedAt?: DateTimeNullableWithAggregatesFilter;
|
||||
|
||||
@Field(() => DateTimeNullableWithAggregatesFilter, { nullable: true })
|
||||
lastSeen?: DateTimeNullableWithAggregatesFilter;
|
||||
|
||||
@Field(() => BoolWithAggregatesFilter, { nullable: true })
|
||||
disabled?: BoolWithAggregatesFilter;
|
||||
|
||||
@Field(() => StringWithAggregatesFilter, { nullable: true })
|
||||
displayName?: StringWithAggregatesFilter;
|
||||
|
||||
@Field(() => StringWithAggregatesFilter, { nullable: true })
|
||||
email?: StringWithAggregatesFilter;
|
||||
|
||||
@Field(() => StringNullableWithAggregatesFilter, { nullable: true })
|
||||
avatarUrl?: StringNullableWithAggregatesFilter;
|
||||
|
||||
@Field(() => StringWithAggregatesFilter, { nullable: true })
|
||||
locale?: StringWithAggregatesFilter;
|
||||
|
||||
@Field(() => StringNullableWithAggregatesFilter, { nullable: true })
|
||||
phoneNumber?: StringNullableWithAggregatesFilter;
|
||||
|
||||
@Field(() => StringNullableWithAggregatesFilter, { nullable: true })
|
||||
passwordHash?: StringNullableWithAggregatesFilter;
|
||||
|
||||
@Field(() => BoolWithAggregatesFilter, { nullable: true })
|
||||
emailVerified?: BoolWithAggregatesFilter;
|
||||
|
||||
@Field(() => JsonNullableWithAggregatesFilter, { nullable: true })
|
||||
metadata?: JsonNullableWithAggregatesFilter;
|
||||
}
|
||||
@ -0,0 +1,63 @@
|
||||
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 { RefreshTokenUncheckedCreateNestedManyWithoutUserInput } from '../refresh-token/refresh-token-unchecked-create-nested-many-without-user.input';
|
||||
|
||||
@InputType()
|
||||
export class UserUncheckedCreateWithoutCommentsInput {
|
||||
@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;
|
||||
|
||||
@HideField()
|
||||
refreshTokens?: RefreshTokenUncheckedCreateNestedManyWithoutUserInput;
|
||||
}
|
||||
@ -0,0 +1,63 @@
|
||||
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 { 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(() => 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;
|
||||
|
||||
@HideField()
|
||||
refreshTokens?: RefreshTokenUncheckedCreateNestedManyWithoutUserInput;
|
||||
|
||||
@Field(() => CommentUncheckedCreateNestedManyWithoutAuthorInput, {
|
||||
nullable: true,
|
||||
})
|
||||
comments?: CommentUncheckedCreateNestedManyWithoutAuthorInput;
|
||||
}
|
||||
@ -0,0 +1,65 @@
|
||||
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;
|
||||
}
|
||||
@ -0,0 +1,65 @@
|
||||
import { Field } from '@nestjs/graphql';
|
||||
import { InputType } 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(() => 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;
|
||||
|
||||
@Field(() => CompanyUncheckedCreateNestedManyWithoutAccountOwnerInput, {
|
||||
nullable: true,
|
||||
})
|
||||
companies?: CompanyUncheckedCreateNestedManyWithoutAccountOwnerInput;
|
||||
|
||||
@HideField()
|
||||
refreshTokens?: RefreshTokenUncheckedCreateNestedManyWithoutUserInput;
|
||||
|
||||
@Field(() => CommentUncheckedCreateNestedManyWithoutAuthorInput, {
|
||||
nullable: true,
|
||||
})
|
||||
comments?: CommentUncheckedCreateNestedManyWithoutAuthorInput;
|
||||
}
|
||||
@ -0,0 +1,69 @@
|
||||
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 { 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(() => 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;
|
||||
|
||||
@HideField()
|
||||
refreshTokens?: RefreshTokenUncheckedCreateNestedManyWithoutUserInput;
|
||||
|
||||
@Field(() => CommentUncheckedCreateNestedManyWithoutAuthorInput, {
|
||||
nullable: true,
|
||||
})
|
||||
comments?: CommentUncheckedCreateNestedManyWithoutAuthorInput;
|
||||
}
|
||||
@ -0,0 +1,53 @@
|
||||
import { Field } from '@nestjs/graphql';
|
||||
import { InputType } from '@nestjs/graphql';
|
||||
import { StringFieldUpdateOperationsInput } from '../prisma/string-field-update-operations.input';
|
||||
import { DateTimeFieldUpdateOperationsInput } from '../prisma/date-time-field-update-operations.input';
|
||||
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 { GraphQLJSON } from 'graphql-type-json';
|
||||
|
||||
@InputType()
|
||||
export class UserUncheckedUpdateManyInput {
|
||||
@Field(() => StringFieldUpdateOperationsInput, { nullable: true })
|
||||
id?: StringFieldUpdateOperationsInput;
|
||||
|
||||
@Field(() => DateTimeFieldUpdateOperationsInput, { nullable: true })
|
||||
createdAt?: DateTimeFieldUpdateOperationsInput;
|
||||
|
||||
@Field(() => DateTimeFieldUpdateOperationsInput, { nullable: true })
|
||||
updatedAt?: DateTimeFieldUpdateOperationsInput;
|
||||
|
||||
@Field(() => NullableDateTimeFieldUpdateOperationsInput, { nullable: true })
|
||||
deletedAt?: NullableDateTimeFieldUpdateOperationsInput;
|
||||
|
||||
@Field(() => NullableDateTimeFieldUpdateOperationsInput, { nullable: true })
|
||||
lastSeen?: NullableDateTimeFieldUpdateOperationsInput;
|
||||
|
||||
@Field(() => BoolFieldUpdateOperationsInput, { nullable: true })
|
||||
disabled?: BoolFieldUpdateOperationsInput;
|
||||
|
||||
@Field(() => StringFieldUpdateOperationsInput, { nullable: true })
|
||||
displayName?: StringFieldUpdateOperationsInput;
|
||||
|
||||
@Field(() => StringFieldUpdateOperationsInput, { nullable: true })
|
||||
email?: StringFieldUpdateOperationsInput;
|
||||
|
||||
@Field(() => NullableStringFieldUpdateOperationsInput, { nullable: true })
|
||||
avatarUrl?: NullableStringFieldUpdateOperationsInput;
|
||||
|
||||
@Field(() => StringFieldUpdateOperationsInput, { nullable: true })
|
||||
locale?: StringFieldUpdateOperationsInput;
|
||||
|
||||
@Field(() => NullableStringFieldUpdateOperationsInput, { nullable: true })
|
||||
phoneNumber?: NullableStringFieldUpdateOperationsInput;
|
||||
|
||||
@Field(() => NullableStringFieldUpdateOperationsInput, { nullable: true })
|
||||
passwordHash?: NullableStringFieldUpdateOperationsInput;
|
||||
|
||||
@Field(() => BoolFieldUpdateOperationsInput, { nullable: true })
|
||||
emailVerified?: BoolFieldUpdateOperationsInput;
|
||||
|
||||
@Field(() => GraphQLJSON, { nullable: true })
|
||||
metadata?: any;
|
||||
}
|
||||
@ -0,0 +1,68 @@
|
||||
import { Field } from '@nestjs/graphql';
|
||||
import { InputType } from '@nestjs/graphql';
|
||||
import { StringFieldUpdateOperationsInput } from '../prisma/string-field-update-operations.input';
|
||||
import { DateTimeFieldUpdateOperationsInput } from '../prisma/date-time-field-update-operations.input';
|
||||
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 { 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';
|
||||
|
||||
@InputType()
|
||||
export class UserUncheckedUpdateWithoutCommentsInput {
|
||||
@Field(() => StringFieldUpdateOperationsInput, { nullable: true })
|
||||
id?: StringFieldUpdateOperationsInput;
|
||||
|
||||
@Field(() => DateTimeFieldUpdateOperationsInput, { nullable: true })
|
||||
createdAt?: DateTimeFieldUpdateOperationsInput;
|
||||
|
||||
@Field(() => DateTimeFieldUpdateOperationsInput, { nullable: true })
|
||||
updatedAt?: DateTimeFieldUpdateOperationsInput;
|
||||
|
||||
@Field(() => NullableDateTimeFieldUpdateOperationsInput, { nullable: true })
|
||||
deletedAt?: NullableDateTimeFieldUpdateOperationsInput;
|
||||
|
||||
@Field(() => NullableDateTimeFieldUpdateOperationsInput, { nullable: true })
|
||||
lastSeen?: NullableDateTimeFieldUpdateOperationsInput;
|
||||
|
||||
@Field(() => BoolFieldUpdateOperationsInput, { nullable: true })
|
||||
disabled?: BoolFieldUpdateOperationsInput;
|
||||
|
||||
@Field(() => StringFieldUpdateOperationsInput, { nullable: true })
|
||||
displayName?: StringFieldUpdateOperationsInput;
|
||||
|
||||
@Field(() => StringFieldUpdateOperationsInput, { nullable: true })
|
||||
email?: StringFieldUpdateOperationsInput;
|
||||
|
||||
@Field(() => NullableStringFieldUpdateOperationsInput, { nullable: true })
|
||||
avatarUrl?: NullableStringFieldUpdateOperationsInput;
|
||||
|
||||
@Field(() => StringFieldUpdateOperationsInput, { nullable: true })
|
||||
locale?: StringFieldUpdateOperationsInput;
|
||||
|
||||
@Field(() => NullableStringFieldUpdateOperationsInput, { nullable: true })
|
||||
phoneNumber?: NullableStringFieldUpdateOperationsInput;
|
||||
|
||||
@Field(() => NullableStringFieldUpdateOperationsInput, { nullable: true })
|
||||
passwordHash?: NullableStringFieldUpdateOperationsInput;
|
||||
|
||||
@Field(() => BoolFieldUpdateOperationsInput, { nullable: true })
|
||||
emailVerified?: BoolFieldUpdateOperationsInput;
|
||||
|
||||
@Field(() => GraphQLJSON, { nullable: true })
|
||||
metadata?: any;
|
||||
|
||||
@HideField()
|
||||
workspaceMember?: WorkspaceMemberUncheckedUpdateOneWithoutUserNestedInput;
|
||||
|
||||
@Field(() => CompanyUncheckedUpdateManyWithoutAccountOwnerNestedInput, {
|
||||
nullable: true,
|
||||
})
|
||||
companies?: CompanyUncheckedUpdateManyWithoutAccountOwnerNestedInput;
|
||||
|
||||
@HideField()
|
||||
refreshTokens?: RefreshTokenUncheckedUpdateManyWithoutUserNestedInput;
|
||||
}
|
||||
@ -0,0 +1,68 @@
|
||||
import { Field } from '@nestjs/graphql';
|
||||
import { InputType } from '@nestjs/graphql';
|
||||
import { StringFieldUpdateOperationsInput } from '../prisma/string-field-update-operations.input';
|
||||
import { DateTimeFieldUpdateOperationsInput } from '../prisma/date-time-field-update-operations.input';
|
||||
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 { 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';
|
||||
|
||||
@InputType()
|
||||
export class UserUncheckedUpdateWithoutCompaniesInput {
|
||||
@Field(() => StringFieldUpdateOperationsInput, { nullable: true })
|
||||
id?: StringFieldUpdateOperationsInput;
|
||||
|
||||
@Field(() => DateTimeFieldUpdateOperationsInput, { nullable: true })
|
||||
createdAt?: DateTimeFieldUpdateOperationsInput;
|
||||
|
||||
@Field(() => DateTimeFieldUpdateOperationsInput, { nullable: true })
|
||||
updatedAt?: DateTimeFieldUpdateOperationsInput;
|
||||
|
||||
@Field(() => NullableDateTimeFieldUpdateOperationsInput, { nullable: true })
|
||||
deletedAt?: NullableDateTimeFieldUpdateOperationsInput;
|
||||
|
||||
@Field(() => NullableDateTimeFieldUpdateOperationsInput, { nullable: true })
|
||||
lastSeen?: NullableDateTimeFieldUpdateOperationsInput;
|
||||
|
||||
@Field(() => BoolFieldUpdateOperationsInput, { nullable: true })
|
||||
disabled?: BoolFieldUpdateOperationsInput;
|
||||
|
||||
@Field(() => StringFieldUpdateOperationsInput, { nullable: true })
|
||||
displayName?: StringFieldUpdateOperationsInput;
|
||||
|
||||
@Field(() => StringFieldUpdateOperationsInput, { nullable: true })
|
||||
email?: StringFieldUpdateOperationsInput;
|
||||
|
||||
@Field(() => NullableStringFieldUpdateOperationsInput, { nullable: true })
|
||||
avatarUrl?: NullableStringFieldUpdateOperationsInput;
|
||||
|
||||
@Field(() => StringFieldUpdateOperationsInput, { nullable: true })
|
||||
locale?: StringFieldUpdateOperationsInput;
|
||||
|
||||
@Field(() => NullableStringFieldUpdateOperationsInput, { nullable: true })
|
||||
phoneNumber?: NullableStringFieldUpdateOperationsInput;
|
||||
|
||||
@Field(() => NullableStringFieldUpdateOperationsInput, { nullable: true })
|
||||
passwordHash?: NullableStringFieldUpdateOperationsInput;
|
||||
|
||||
@Field(() => BoolFieldUpdateOperationsInput, { nullable: true })
|
||||
emailVerified?: BoolFieldUpdateOperationsInput;
|
||||
|
||||
@Field(() => GraphQLJSON, { nullable: true })
|
||||
metadata?: any;
|
||||
|
||||
@HideField()
|
||||
workspaceMember?: WorkspaceMemberUncheckedUpdateOneWithoutUserNestedInput;
|
||||
|
||||
@HideField()
|
||||
refreshTokens?: RefreshTokenUncheckedUpdateManyWithoutUserNestedInput;
|
||||
|
||||
@Field(() => CommentUncheckedUpdateManyWithoutAuthorNestedInput, {
|
||||
nullable: true,
|
||||
})
|
||||
comments?: CommentUncheckedUpdateManyWithoutAuthorNestedInput;
|
||||
}
|
||||
@ -0,0 +1,70 @@
|
||||
import { Field } from '@nestjs/graphql';
|
||||
import { InputType } from '@nestjs/graphql';
|
||||
import { StringFieldUpdateOperationsInput } from '../prisma/string-field-update-operations.input';
|
||||
import { DateTimeFieldUpdateOperationsInput } from '../prisma/date-time-field-update-operations.input';
|
||||
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 { 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';
|
||||
|
||||
@InputType()
|
||||
export class UserUncheckedUpdateWithoutRefreshTokensInput {
|
||||
@Field(() => StringFieldUpdateOperationsInput, { nullable: true })
|
||||
id?: StringFieldUpdateOperationsInput;
|
||||
|
||||
@Field(() => DateTimeFieldUpdateOperationsInput, { nullable: true })
|
||||
createdAt?: DateTimeFieldUpdateOperationsInput;
|
||||
|
||||
@Field(() => DateTimeFieldUpdateOperationsInput, { nullable: true })
|
||||
updatedAt?: DateTimeFieldUpdateOperationsInput;
|
||||
|
||||
@Field(() => NullableDateTimeFieldUpdateOperationsInput, { nullable: true })
|
||||
deletedAt?: NullableDateTimeFieldUpdateOperationsInput;
|
||||
|
||||
@Field(() => NullableDateTimeFieldUpdateOperationsInput, { nullable: true })
|
||||
lastSeen?: NullableDateTimeFieldUpdateOperationsInput;
|
||||
|
||||
@Field(() => BoolFieldUpdateOperationsInput, { nullable: true })
|
||||
disabled?: BoolFieldUpdateOperationsInput;
|
||||
|
||||
@Field(() => StringFieldUpdateOperationsInput, { nullable: true })
|
||||
displayName?: StringFieldUpdateOperationsInput;
|
||||
|
||||
@Field(() => StringFieldUpdateOperationsInput, { nullable: true })
|
||||
email?: StringFieldUpdateOperationsInput;
|
||||
|
||||
@Field(() => NullableStringFieldUpdateOperationsInput, { nullable: true })
|
||||
avatarUrl?: NullableStringFieldUpdateOperationsInput;
|
||||
|
||||
@Field(() => StringFieldUpdateOperationsInput, { nullable: true })
|
||||
locale?: StringFieldUpdateOperationsInput;
|
||||
|
||||
@Field(() => NullableStringFieldUpdateOperationsInput, { nullable: true })
|
||||
phoneNumber?: NullableStringFieldUpdateOperationsInput;
|
||||
|
||||
@Field(() => NullableStringFieldUpdateOperationsInput, { nullable: true })
|
||||
passwordHash?: NullableStringFieldUpdateOperationsInput;
|
||||
|
||||
@Field(() => BoolFieldUpdateOperationsInput, { nullable: true })
|
||||
emailVerified?: BoolFieldUpdateOperationsInput;
|
||||
|
||||
@Field(() => GraphQLJSON, { nullable: true })
|
||||
metadata?: any;
|
||||
|
||||
@HideField()
|
||||
workspaceMember?: WorkspaceMemberUncheckedUpdateOneWithoutUserNestedInput;
|
||||
|
||||
@Field(() => CompanyUncheckedUpdateManyWithoutAccountOwnerNestedInput, {
|
||||
nullable: true,
|
||||
})
|
||||
companies?: CompanyUncheckedUpdateManyWithoutAccountOwnerNestedInput;
|
||||
|
||||
@Field(() => CommentUncheckedUpdateManyWithoutAuthorNestedInput, {
|
||||
nullable: true,
|
||||
})
|
||||
comments?: CommentUncheckedUpdateManyWithoutAuthorNestedInput;
|
||||
}
|
||||
@ -0,0 +1,70 @@
|
||||
import { Field } from '@nestjs/graphql';
|
||||
import { InputType } from '@nestjs/graphql';
|
||||
import { StringFieldUpdateOperationsInput } from '../prisma/string-field-update-operations.input';
|
||||
import { DateTimeFieldUpdateOperationsInput } from '../prisma/date-time-field-update-operations.input';
|
||||
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 { 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()
|
||||
export class UserUncheckedUpdateWithoutWorkspaceMemberInput {
|
||||
@Field(() => StringFieldUpdateOperationsInput, { nullable: true })
|
||||
id?: StringFieldUpdateOperationsInput;
|
||||
|
||||
@Field(() => DateTimeFieldUpdateOperationsInput, { nullable: true })
|
||||
createdAt?: DateTimeFieldUpdateOperationsInput;
|
||||
|
||||
@Field(() => DateTimeFieldUpdateOperationsInput, { nullable: true })
|
||||
updatedAt?: DateTimeFieldUpdateOperationsInput;
|
||||
|
||||
@Field(() => NullableDateTimeFieldUpdateOperationsInput, { nullable: true })
|
||||
deletedAt?: NullableDateTimeFieldUpdateOperationsInput;
|
||||
|
||||
@Field(() => NullableDateTimeFieldUpdateOperationsInput, { nullable: true })
|
||||
lastSeen?: NullableDateTimeFieldUpdateOperationsInput;
|
||||
|
||||
@Field(() => BoolFieldUpdateOperationsInput, { nullable: true })
|
||||
disabled?: BoolFieldUpdateOperationsInput;
|
||||
|
||||
@Field(() => StringFieldUpdateOperationsInput, { nullable: true })
|
||||
displayName?: StringFieldUpdateOperationsInput;
|
||||
|
||||
@Field(() => StringFieldUpdateOperationsInput, { nullable: true })
|
||||
email?: StringFieldUpdateOperationsInput;
|
||||
|
||||
@Field(() => NullableStringFieldUpdateOperationsInput, { nullable: true })
|
||||
avatarUrl?: NullableStringFieldUpdateOperationsInput;
|
||||
|
||||
@Field(() => StringFieldUpdateOperationsInput, { nullable: true })
|
||||
locale?: StringFieldUpdateOperationsInput;
|
||||
|
||||
@Field(() => NullableStringFieldUpdateOperationsInput, { nullable: true })
|
||||
phoneNumber?: NullableStringFieldUpdateOperationsInput;
|
||||
|
||||
@Field(() => NullableStringFieldUpdateOperationsInput, { nullable: true })
|
||||
passwordHash?: NullableStringFieldUpdateOperationsInput;
|
||||
|
||||
@Field(() => BoolFieldUpdateOperationsInput, { nullable: true })
|
||||
emailVerified?: BoolFieldUpdateOperationsInput;
|
||||
|
||||
@Field(() => GraphQLJSON, { nullable: true })
|
||||
metadata?: any;
|
||||
|
||||
@Field(() => CompanyUncheckedUpdateManyWithoutAccountOwnerNestedInput, {
|
||||
nullable: true,
|
||||
})
|
||||
companies?: CompanyUncheckedUpdateManyWithoutAccountOwnerNestedInput;
|
||||
|
||||
@HideField()
|
||||
refreshTokens?: RefreshTokenUncheckedUpdateManyWithoutUserNestedInput;
|
||||
|
||||
@Field(() => CommentUncheckedUpdateManyWithoutAuthorNestedInput, {
|
||||
nullable: true,
|
||||
})
|
||||
comments?: CommentUncheckedUpdateManyWithoutAuthorNestedInput;
|
||||
}
|
||||
@ -0,0 +1,74 @@
|
||||
import { Field } from '@nestjs/graphql';
|
||||
import { InputType } from '@nestjs/graphql';
|
||||
import { StringFieldUpdateOperationsInput } from '../prisma/string-field-update-operations.input';
|
||||
import { DateTimeFieldUpdateOperationsInput } from '../prisma/date-time-field-update-operations.input';
|
||||
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 { 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';
|
||||
|
||||
@InputType()
|
||||
export class UserUncheckedUpdateInput {
|
||||
@Field(() => StringFieldUpdateOperationsInput, { nullable: true })
|
||||
id?: StringFieldUpdateOperationsInput;
|
||||
|
||||
@Field(() => DateTimeFieldUpdateOperationsInput, { nullable: true })
|
||||
createdAt?: DateTimeFieldUpdateOperationsInput;
|
||||
|
||||
@Field(() => DateTimeFieldUpdateOperationsInput, { nullable: true })
|
||||
updatedAt?: DateTimeFieldUpdateOperationsInput;
|
||||
|
||||
@Field(() => NullableDateTimeFieldUpdateOperationsInput, { nullable: true })
|
||||
deletedAt?: NullableDateTimeFieldUpdateOperationsInput;
|
||||
|
||||
@Field(() => NullableDateTimeFieldUpdateOperationsInput, { nullable: true })
|
||||
lastSeen?: NullableDateTimeFieldUpdateOperationsInput;
|
||||
|
||||
@Field(() => BoolFieldUpdateOperationsInput, { nullable: true })
|
||||
disabled?: BoolFieldUpdateOperationsInput;
|
||||
|
||||
@Field(() => StringFieldUpdateOperationsInput, { nullable: true })
|
||||
displayName?: StringFieldUpdateOperationsInput;
|
||||
|
||||
@Field(() => StringFieldUpdateOperationsInput, { nullable: true })
|
||||
email?: StringFieldUpdateOperationsInput;
|
||||
|
||||
@Field(() => NullableStringFieldUpdateOperationsInput, { nullable: true })
|
||||
avatarUrl?: NullableStringFieldUpdateOperationsInput;
|
||||
|
||||
@Field(() => StringFieldUpdateOperationsInput, { nullable: true })
|
||||
locale?: StringFieldUpdateOperationsInput;
|
||||
|
||||
@Field(() => NullableStringFieldUpdateOperationsInput, { nullable: true })
|
||||
phoneNumber?: NullableStringFieldUpdateOperationsInput;
|
||||
|
||||
@Field(() => NullableStringFieldUpdateOperationsInput, { nullable: true })
|
||||
passwordHash?: NullableStringFieldUpdateOperationsInput;
|
||||
|
||||
@Field(() => BoolFieldUpdateOperationsInput, { nullable: true })
|
||||
emailVerified?: BoolFieldUpdateOperationsInput;
|
||||
|
||||
@Field(() => GraphQLJSON, { nullable: true })
|
||||
metadata?: any;
|
||||
|
||||
@HideField()
|
||||
workspaceMember?: WorkspaceMemberUncheckedUpdateOneWithoutUserNestedInput;
|
||||
|
||||
@Field(() => CompanyUncheckedUpdateManyWithoutAccountOwnerNestedInput, {
|
||||
nullable: true,
|
||||
})
|
||||
companies?: CompanyUncheckedUpdateManyWithoutAccountOwnerNestedInput;
|
||||
|
||||
@HideField()
|
||||
refreshTokens?: RefreshTokenUncheckedUpdateManyWithoutUserNestedInput;
|
||||
|
||||
@Field(() => CommentUncheckedUpdateManyWithoutAuthorNestedInput, {
|
||||
nullable: true,
|
||||
})
|
||||
comments?: CommentUncheckedUpdateManyWithoutAuthorNestedInput;
|
||||
}
|
||||
@ -0,0 +1,53 @@
|
||||
import { Field } from '@nestjs/graphql';
|
||||
import { InputType } from '@nestjs/graphql';
|
||||
import { StringFieldUpdateOperationsInput } from '../prisma/string-field-update-operations.input';
|
||||
import { DateTimeFieldUpdateOperationsInput } from '../prisma/date-time-field-update-operations.input';
|
||||
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 { GraphQLJSON } from 'graphql-type-json';
|
||||
|
||||
@InputType()
|
||||
export class UserUpdateManyMutationInput {
|
||||
@Field(() => StringFieldUpdateOperationsInput, { nullable: true })
|
||||
id?: StringFieldUpdateOperationsInput;
|
||||
|
||||
@Field(() => DateTimeFieldUpdateOperationsInput, { nullable: true })
|
||||
createdAt?: DateTimeFieldUpdateOperationsInput;
|
||||
|
||||
@Field(() => DateTimeFieldUpdateOperationsInput, { nullable: true })
|
||||
updatedAt?: DateTimeFieldUpdateOperationsInput;
|
||||
|
||||
@Field(() => NullableDateTimeFieldUpdateOperationsInput, { nullable: true })
|
||||
deletedAt?: NullableDateTimeFieldUpdateOperationsInput;
|
||||
|
||||
@Field(() => NullableDateTimeFieldUpdateOperationsInput, { nullable: true })
|
||||
lastSeen?: NullableDateTimeFieldUpdateOperationsInput;
|
||||
|
||||
@Field(() => BoolFieldUpdateOperationsInput, { nullable: true })
|
||||
disabled?: BoolFieldUpdateOperationsInput;
|
||||
|
||||
@Field(() => StringFieldUpdateOperationsInput, { nullable: true })
|
||||
displayName?: StringFieldUpdateOperationsInput;
|
||||
|
||||
@Field(() => StringFieldUpdateOperationsInput, { nullable: true })
|
||||
email?: StringFieldUpdateOperationsInput;
|
||||
|
||||
@Field(() => NullableStringFieldUpdateOperationsInput, { nullable: true })
|
||||
avatarUrl?: NullableStringFieldUpdateOperationsInput;
|
||||
|
||||
@Field(() => StringFieldUpdateOperationsInput, { nullable: true })
|
||||
locale?: StringFieldUpdateOperationsInput;
|
||||
|
||||
@Field(() => NullableStringFieldUpdateOperationsInput, { nullable: true })
|
||||
phoneNumber?: NullableStringFieldUpdateOperationsInput;
|
||||
|
||||
@Field(() => NullableStringFieldUpdateOperationsInput, { nullable: true })
|
||||
passwordHash?: NullableStringFieldUpdateOperationsInput;
|
||||
|
||||
@Field(() => BoolFieldUpdateOperationsInput, { nullable: true })
|
||||
emailVerified?: BoolFieldUpdateOperationsInput;
|
||||
|
||||
@Field(() => GraphQLJSON, { nullable: true })
|
||||
metadata?: any;
|
||||
}
|
||||
@ -0,0 +1,31 @@
|
||||
import { Field } from '@nestjs/graphql';
|
||||
import { InputType } from '@nestjs/graphql';
|
||||
import { UserCreateWithoutCommentsInput } from './user-create-without-comments.input';
|
||||
import { Type } from 'class-transformer';
|
||||
import { UserCreateOrConnectWithoutCommentsInput } from './user-create-or-connect-without-comments.input';
|
||||
import { UserUpsertWithoutCommentsInput } from './user-upsert-without-comments.input';
|
||||
import { UserWhereUniqueInput } from './user-where-unique.input';
|
||||
import { UserUpdateWithoutCommentsInput } from './user-update-without-comments.input';
|
||||
|
||||
@InputType()
|
||||
export class UserUpdateOneRequiredWithoutCommentsNestedInput {
|
||||
@Field(() => UserCreateWithoutCommentsInput, { nullable: true })
|
||||
@Type(() => UserCreateWithoutCommentsInput)
|
||||
create?: UserCreateWithoutCommentsInput;
|
||||
|
||||
@Field(() => UserCreateOrConnectWithoutCommentsInput, { nullable: true })
|
||||
@Type(() => UserCreateOrConnectWithoutCommentsInput)
|
||||
connectOrCreate?: UserCreateOrConnectWithoutCommentsInput;
|
||||
|
||||
@Field(() => UserUpsertWithoutCommentsInput, { nullable: true })
|
||||
@Type(() => UserUpsertWithoutCommentsInput)
|
||||
upsert?: UserUpsertWithoutCommentsInput;
|
||||
|
||||
@Field(() => UserWhereUniqueInput, { nullable: true })
|
||||
@Type(() => UserWhereUniqueInput)
|
||||
connect?: UserWhereUniqueInput;
|
||||
|
||||
@Field(() => UserUpdateWithoutCommentsInput, { nullable: true })
|
||||
@Type(() => UserUpdateWithoutCommentsInput)
|
||||
update?: UserUpdateWithoutCommentsInput;
|
||||
}
|
||||
@ -0,0 +1,31 @@
|
||||
import { Field } from '@nestjs/graphql';
|
||||
import { InputType } from '@nestjs/graphql';
|
||||
import { UserCreateWithoutRefreshTokensInput } from './user-create-without-refresh-tokens.input';
|
||||
import { Type } from 'class-transformer';
|
||||
import { UserCreateOrConnectWithoutRefreshTokensInput } from './user-create-or-connect-without-refresh-tokens.input';
|
||||
import { UserUpsertWithoutRefreshTokensInput } from './user-upsert-without-refresh-tokens.input';
|
||||
import { UserWhereUniqueInput } from './user-where-unique.input';
|
||||
import { UserUpdateWithoutRefreshTokensInput } from './user-update-without-refresh-tokens.input';
|
||||
|
||||
@InputType()
|
||||
export class UserUpdateOneRequiredWithoutRefreshTokensNestedInput {
|
||||
@Field(() => UserCreateWithoutRefreshTokensInput, { nullable: true })
|
||||
@Type(() => UserCreateWithoutRefreshTokensInput)
|
||||
create?: UserCreateWithoutRefreshTokensInput;
|
||||
|
||||
@Field(() => UserCreateOrConnectWithoutRefreshTokensInput, { nullable: true })
|
||||
@Type(() => UserCreateOrConnectWithoutRefreshTokensInput)
|
||||
connectOrCreate?: UserCreateOrConnectWithoutRefreshTokensInput;
|
||||
|
||||
@Field(() => UserUpsertWithoutRefreshTokensInput, { nullable: true })
|
||||
@Type(() => UserUpsertWithoutRefreshTokensInput)
|
||||
upsert?: UserUpsertWithoutRefreshTokensInput;
|
||||
|
||||
@Field(() => UserWhereUniqueInput, { nullable: true })
|
||||
@Type(() => UserWhereUniqueInput)
|
||||
connect?: UserWhereUniqueInput;
|
||||
|
||||
@Field(() => UserUpdateWithoutRefreshTokensInput, { nullable: true })
|
||||
@Type(() => UserUpdateWithoutRefreshTokensInput)
|
||||
update?: UserUpdateWithoutRefreshTokensInput;
|
||||
}
|
||||
@ -0,0 +1,33 @@
|
||||
import { Field } from '@nestjs/graphql';
|
||||
import { InputType } from '@nestjs/graphql';
|
||||
import { UserCreateWithoutWorkspaceMemberInput } from './user-create-without-workspace-member.input';
|
||||
import { Type } from 'class-transformer';
|
||||
import { UserCreateOrConnectWithoutWorkspaceMemberInput } from './user-create-or-connect-without-workspace-member.input';
|
||||
import { UserUpsertWithoutWorkspaceMemberInput } from './user-upsert-without-workspace-member.input';
|
||||
import { UserWhereUniqueInput } from './user-where-unique.input';
|
||||
import { UserUpdateWithoutWorkspaceMemberInput } from './user-update-without-workspace-member.input';
|
||||
|
||||
@InputType()
|
||||
export class UserUpdateOneRequiredWithoutWorkspaceMemberNestedInput {
|
||||
@Field(() => UserCreateWithoutWorkspaceMemberInput, { nullable: true })
|
||||
@Type(() => UserCreateWithoutWorkspaceMemberInput)
|
||||
create?: UserCreateWithoutWorkspaceMemberInput;
|
||||
|
||||
@Field(() => UserCreateOrConnectWithoutWorkspaceMemberInput, {
|
||||
nullable: true,
|
||||
})
|
||||
@Type(() => UserCreateOrConnectWithoutWorkspaceMemberInput)
|
||||
connectOrCreate?: UserCreateOrConnectWithoutWorkspaceMemberInput;
|
||||
|
||||
@Field(() => UserUpsertWithoutWorkspaceMemberInput, { nullable: true })
|
||||
@Type(() => UserUpsertWithoutWorkspaceMemberInput)
|
||||
upsert?: UserUpsertWithoutWorkspaceMemberInput;
|
||||
|
||||
@Field(() => UserWhereUniqueInput, { nullable: true })
|
||||
@Type(() => UserWhereUniqueInput)
|
||||
connect?: UserWhereUniqueInput;
|
||||
|
||||
@Field(() => UserUpdateWithoutWorkspaceMemberInput, { nullable: true })
|
||||
@Type(() => UserUpdateWithoutWorkspaceMemberInput)
|
||||
update?: UserUpdateWithoutWorkspaceMemberInput;
|
||||
}
|
||||
@ -0,0 +1,34 @@
|
||||
import { Field } from '@nestjs/graphql';
|
||||
import { InputType } from '@nestjs/graphql';
|
||||
import { UserCreateWithoutCompaniesInput } from './user-create-without-companies.input';
|
||||
import { HideField } from '@nestjs/graphql';
|
||||
import { UserCreateOrConnectWithoutCompaniesInput } from './user-create-or-connect-without-companies.input';
|
||||
import { UserUpsertWithoutCompaniesInput } from './user-upsert-without-companies.input';
|
||||
import { UserWhereUniqueInput } from './user-where-unique.input';
|
||||
import { Type } from 'class-transformer';
|
||||
import { UserUpdateWithoutCompaniesInput } from './user-update-without-companies.input';
|
||||
|
||||
@InputType()
|
||||
export class UserUpdateOneWithoutCompaniesNestedInput {
|
||||
@HideField()
|
||||
create?: UserCreateWithoutCompaniesInput;
|
||||
|
||||
@HideField()
|
||||
connectOrCreate?: UserCreateOrConnectWithoutCompaniesInput;
|
||||
|
||||
@HideField()
|
||||
upsert?: UserUpsertWithoutCompaniesInput;
|
||||
|
||||
@HideField()
|
||||
disconnect?: boolean;
|
||||
|
||||
@HideField()
|
||||
delete?: boolean;
|
||||
|
||||
@Field(() => UserWhereUniqueInput, { nullable: true })
|
||||
@Type(() => UserWhereUniqueInput)
|
||||
connect?: UserWhereUniqueInput;
|
||||
|
||||
@HideField()
|
||||
update?: UserUpdateWithoutCompaniesInput;
|
||||
}
|
||||
@ -0,0 +1,68 @@
|
||||
import { Field } from '@nestjs/graphql';
|
||||
import { InputType } from '@nestjs/graphql';
|
||||
import { StringFieldUpdateOperationsInput } from '../prisma/string-field-update-operations.input';
|
||||
import { DateTimeFieldUpdateOperationsInput } from '../prisma/date-time-field-update-operations.input';
|
||||
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 { 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';
|
||||
|
||||
@InputType()
|
||||
export class UserUpdateWithoutCommentsInput {
|
||||
@Field(() => StringFieldUpdateOperationsInput, { nullable: true })
|
||||
id?: StringFieldUpdateOperationsInput;
|
||||
|
||||
@Field(() => DateTimeFieldUpdateOperationsInput, { nullable: true })
|
||||
createdAt?: DateTimeFieldUpdateOperationsInput;
|
||||
|
||||
@Field(() => DateTimeFieldUpdateOperationsInput, { nullable: true })
|
||||
updatedAt?: DateTimeFieldUpdateOperationsInput;
|
||||
|
||||
@Field(() => NullableDateTimeFieldUpdateOperationsInput, { nullable: true })
|
||||
deletedAt?: NullableDateTimeFieldUpdateOperationsInput;
|
||||
|
||||
@Field(() => NullableDateTimeFieldUpdateOperationsInput, { nullable: true })
|
||||
lastSeen?: NullableDateTimeFieldUpdateOperationsInput;
|
||||
|
||||
@Field(() => BoolFieldUpdateOperationsInput, { nullable: true })
|
||||
disabled?: BoolFieldUpdateOperationsInput;
|
||||
|
||||
@Field(() => StringFieldUpdateOperationsInput, { nullable: true })
|
||||
displayName?: StringFieldUpdateOperationsInput;
|
||||
|
||||
@Field(() => StringFieldUpdateOperationsInput, { nullable: true })
|
||||
email?: StringFieldUpdateOperationsInput;
|
||||
|
||||
@Field(() => NullableStringFieldUpdateOperationsInput, { nullable: true })
|
||||
avatarUrl?: NullableStringFieldUpdateOperationsInput;
|
||||
|
||||
@Field(() => StringFieldUpdateOperationsInput, { nullable: true })
|
||||
locale?: StringFieldUpdateOperationsInput;
|
||||
|
||||
@Field(() => NullableStringFieldUpdateOperationsInput, { nullable: true })
|
||||
phoneNumber?: NullableStringFieldUpdateOperationsInput;
|
||||
|
||||
@Field(() => NullableStringFieldUpdateOperationsInput, { nullable: true })
|
||||
passwordHash?: NullableStringFieldUpdateOperationsInput;
|
||||
|
||||
@Field(() => BoolFieldUpdateOperationsInput, { nullable: true })
|
||||
emailVerified?: BoolFieldUpdateOperationsInput;
|
||||
|
||||
@Field(() => GraphQLJSON, { nullable: true })
|
||||
metadata?: any;
|
||||
|
||||
@HideField()
|
||||
workspaceMember?: WorkspaceMemberUpdateOneWithoutUserNestedInput;
|
||||
|
||||
@Field(() => CompanyUpdateManyWithoutAccountOwnerNestedInput, {
|
||||
nullable: true,
|
||||
})
|
||||
companies?: CompanyUpdateManyWithoutAccountOwnerNestedInput;
|
||||
|
||||
@HideField()
|
||||
refreshTokens?: RefreshTokenUpdateManyWithoutUserNestedInput;
|
||||
}
|
||||
@ -0,0 +1,66 @@
|
||||
import { Field } from '@nestjs/graphql';
|
||||
import { InputType } from '@nestjs/graphql';
|
||||
import { StringFieldUpdateOperationsInput } from '../prisma/string-field-update-operations.input';
|
||||
import { DateTimeFieldUpdateOperationsInput } from '../prisma/date-time-field-update-operations.input';
|
||||
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 { 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';
|
||||
|
||||
@InputType()
|
||||
export class UserUpdateWithoutCompaniesInput {
|
||||
@Field(() => StringFieldUpdateOperationsInput, { nullable: true })
|
||||
id?: StringFieldUpdateOperationsInput;
|
||||
|
||||
@Field(() => DateTimeFieldUpdateOperationsInput, { nullable: true })
|
||||
createdAt?: DateTimeFieldUpdateOperationsInput;
|
||||
|
||||
@Field(() => DateTimeFieldUpdateOperationsInput, { nullable: true })
|
||||
updatedAt?: DateTimeFieldUpdateOperationsInput;
|
||||
|
||||
@Field(() => NullableDateTimeFieldUpdateOperationsInput, { nullable: true })
|
||||
deletedAt?: NullableDateTimeFieldUpdateOperationsInput;
|
||||
|
||||
@Field(() => NullableDateTimeFieldUpdateOperationsInput, { nullable: true })
|
||||
lastSeen?: NullableDateTimeFieldUpdateOperationsInput;
|
||||
|
||||
@Field(() => BoolFieldUpdateOperationsInput, { nullable: true })
|
||||
disabled?: BoolFieldUpdateOperationsInput;
|
||||
|
||||
@Field(() => StringFieldUpdateOperationsInput, { nullable: true })
|
||||
displayName?: StringFieldUpdateOperationsInput;
|
||||
|
||||
@Field(() => StringFieldUpdateOperationsInput, { nullable: true })
|
||||
email?: StringFieldUpdateOperationsInput;
|
||||
|
||||
@Field(() => NullableStringFieldUpdateOperationsInput, { nullable: true })
|
||||
avatarUrl?: NullableStringFieldUpdateOperationsInput;
|
||||
|
||||
@Field(() => StringFieldUpdateOperationsInput, { nullable: true })
|
||||
locale?: StringFieldUpdateOperationsInput;
|
||||
|
||||
@Field(() => NullableStringFieldUpdateOperationsInput, { nullable: true })
|
||||
phoneNumber?: NullableStringFieldUpdateOperationsInput;
|
||||
|
||||
@Field(() => NullableStringFieldUpdateOperationsInput, { nullable: true })
|
||||
passwordHash?: NullableStringFieldUpdateOperationsInput;
|
||||
|
||||
@Field(() => BoolFieldUpdateOperationsInput, { nullable: true })
|
||||
emailVerified?: BoolFieldUpdateOperationsInput;
|
||||
|
||||
@Field(() => GraphQLJSON, { nullable: true })
|
||||
metadata?: any;
|
||||
|
||||
@HideField()
|
||||
workspaceMember?: WorkspaceMemberUpdateOneWithoutUserNestedInput;
|
||||
|
||||
@HideField()
|
||||
refreshTokens?: RefreshTokenUpdateManyWithoutUserNestedInput;
|
||||
|
||||
@Field(() => CommentUpdateManyWithoutAuthorNestedInput, { nullable: true })
|
||||
comments?: CommentUpdateManyWithoutAuthorNestedInput;
|
||||
}
|
||||
@ -0,0 +1,68 @@
|
||||
import { Field } from '@nestjs/graphql';
|
||||
import { InputType } from '@nestjs/graphql';
|
||||
import { StringFieldUpdateOperationsInput } from '../prisma/string-field-update-operations.input';
|
||||
import { DateTimeFieldUpdateOperationsInput } from '../prisma/date-time-field-update-operations.input';
|
||||
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 { 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';
|
||||
|
||||
@InputType()
|
||||
export class UserUpdateWithoutRefreshTokensInput {
|
||||
@Field(() => StringFieldUpdateOperationsInput, { nullable: true })
|
||||
id?: StringFieldUpdateOperationsInput;
|
||||
|
||||
@Field(() => DateTimeFieldUpdateOperationsInput, { nullable: true })
|
||||
createdAt?: DateTimeFieldUpdateOperationsInput;
|
||||
|
||||
@Field(() => DateTimeFieldUpdateOperationsInput, { nullable: true })
|
||||
updatedAt?: DateTimeFieldUpdateOperationsInput;
|
||||
|
||||
@Field(() => NullableDateTimeFieldUpdateOperationsInput, { nullable: true })
|
||||
deletedAt?: NullableDateTimeFieldUpdateOperationsInput;
|
||||
|
||||
@Field(() => NullableDateTimeFieldUpdateOperationsInput, { nullable: true })
|
||||
lastSeen?: NullableDateTimeFieldUpdateOperationsInput;
|
||||
|
||||
@Field(() => BoolFieldUpdateOperationsInput, { nullable: true })
|
||||
disabled?: BoolFieldUpdateOperationsInput;
|
||||
|
||||
@Field(() => StringFieldUpdateOperationsInput, { nullable: true })
|
||||
displayName?: StringFieldUpdateOperationsInput;
|
||||
|
||||
@Field(() => StringFieldUpdateOperationsInput, { nullable: true })
|
||||
email?: StringFieldUpdateOperationsInput;
|
||||
|
||||
@Field(() => NullableStringFieldUpdateOperationsInput, { nullable: true })
|
||||
avatarUrl?: NullableStringFieldUpdateOperationsInput;
|
||||
|
||||
@Field(() => StringFieldUpdateOperationsInput, { nullable: true })
|
||||
locale?: StringFieldUpdateOperationsInput;
|
||||
|
||||
@Field(() => NullableStringFieldUpdateOperationsInput, { nullable: true })
|
||||
phoneNumber?: NullableStringFieldUpdateOperationsInput;
|
||||
|
||||
@Field(() => NullableStringFieldUpdateOperationsInput, { nullable: true })
|
||||
passwordHash?: NullableStringFieldUpdateOperationsInput;
|
||||
|
||||
@Field(() => BoolFieldUpdateOperationsInput, { nullable: true })
|
||||
emailVerified?: BoolFieldUpdateOperationsInput;
|
||||
|
||||
@Field(() => GraphQLJSON, { nullable: true })
|
||||
metadata?: any;
|
||||
|
||||
@HideField()
|
||||
workspaceMember?: WorkspaceMemberUpdateOneWithoutUserNestedInput;
|
||||
|
||||
@Field(() => CompanyUpdateManyWithoutAccountOwnerNestedInput, {
|
||||
nullable: true,
|
||||
})
|
||||
companies?: CompanyUpdateManyWithoutAccountOwnerNestedInput;
|
||||
|
||||
@Field(() => CommentUpdateManyWithoutAuthorNestedInput, { nullable: true })
|
||||
comments?: CommentUpdateManyWithoutAuthorNestedInput;
|
||||
}
|
||||
@ -0,0 +1,68 @@
|
||||
import { Field } from '@nestjs/graphql';
|
||||
import { InputType } from '@nestjs/graphql';
|
||||
import { StringFieldUpdateOperationsInput } from '../prisma/string-field-update-operations.input';
|
||||
import { DateTimeFieldUpdateOperationsInput } from '../prisma/date-time-field-update-operations.input';
|
||||
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 { 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()
|
||||
export class UserUpdateWithoutWorkspaceMemberInput {
|
||||
@Field(() => StringFieldUpdateOperationsInput, { nullable: true })
|
||||
id?: StringFieldUpdateOperationsInput;
|
||||
|
||||
@Field(() => DateTimeFieldUpdateOperationsInput, { nullable: true })
|
||||
createdAt?: DateTimeFieldUpdateOperationsInput;
|
||||
|
||||
@Field(() => DateTimeFieldUpdateOperationsInput, { nullable: true })
|
||||
updatedAt?: DateTimeFieldUpdateOperationsInput;
|
||||
|
||||
@Field(() => NullableDateTimeFieldUpdateOperationsInput, { nullable: true })
|
||||
deletedAt?: NullableDateTimeFieldUpdateOperationsInput;
|
||||
|
||||
@Field(() => NullableDateTimeFieldUpdateOperationsInput, { nullable: true })
|
||||
lastSeen?: NullableDateTimeFieldUpdateOperationsInput;
|
||||
|
||||
@Field(() => BoolFieldUpdateOperationsInput, { nullable: true })
|
||||
disabled?: BoolFieldUpdateOperationsInput;
|
||||
|
||||
@Field(() => StringFieldUpdateOperationsInput, { nullable: true })
|
||||
displayName?: StringFieldUpdateOperationsInput;
|
||||
|
||||
@Field(() => StringFieldUpdateOperationsInput, { nullable: true })
|
||||
email?: StringFieldUpdateOperationsInput;
|
||||
|
||||
@Field(() => NullableStringFieldUpdateOperationsInput, { nullable: true })
|
||||
avatarUrl?: NullableStringFieldUpdateOperationsInput;
|
||||
|
||||
@Field(() => StringFieldUpdateOperationsInput, { nullable: true })
|
||||
locale?: StringFieldUpdateOperationsInput;
|
||||
|
||||
@Field(() => NullableStringFieldUpdateOperationsInput, { nullable: true })
|
||||
phoneNumber?: NullableStringFieldUpdateOperationsInput;
|
||||
|
||||
@Field(() => NullableStringFieldUpdateOperationsInput, { nullable: true })
|
||||
passwordHash?: NullableStringFieldUpdateOperationsInput;
|
||||
|
||||
@Field(() => BoolFieldUpdateOperationsInput, { nullable: true })
|
||||
emailVerified?: BoolFieldUpdateOperationsInput;
|
||||
|
||||
@Field(() => GraphQLJSON, { nullable: true })
|
||||
metadata?: any;
|
||||
|
||||
@Field(() => CompanyUpdateManyWithoutAccountOwnerNestedInput, {
|
||||
nullable: true,
|
||||
})
|
||||
companies?: CompanyUpdateManyWithoutAccountOwnerNestedInput;
|
||||
|
||||
@HideField()
|
||||
refreshTokens?: RefreshTokenUpdateManyWithoutUserNestedInput;
|
||||
|
||||
@Field(() => CommentUpdateManyWithoutAuthorNestedInput, { nullable: true })
|
||||
comments?: CommentUpdateManyWithoutAuthorNestedInput;
|
||||
}
|
||||
72
server/src/core/@generated/user/user-update.input.ts
Normal file
72
server/src/core/@generated/user/user-update.input.ts
Normal file
@ -0,0 +1,72 @@
|
||||
import { Field } from '@nestjs/graphql';
|
||||
import { InputType } from '@nestjs/graphql';
|
||||
import { StringFieldUpdateOperationsInput } from '../prisma/string-field-update-operations.input';
|
||||
import { DateTimeFieldUpdateOperationsInput } from '../prisma/date-time-field-update-operations.input';
|
||||
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 { 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';
|
||||
|
||||
@InputType()
|
||||
export class UserUpdateInput {
|
||||
@Field(() => StringFieldUpdateOperationsInput, { nullable: true })
|
||||
id?: StringFieldUpdateOperationsInput;
|
||||
|
||||
@Field(() => DateTimeFieldUpdateOperationsInput, { nullable: true })
|
||||
createdAt?: DateTimeFieldUpdateOperationsInput;
|
||||
|
||||
@Field(() => DateTimeFieldUpdateOperationsInput, { nullable: true })
|
||||
updatedAt?: DateTimeFieldUpdateOperationsInput;
|
||||
|
||||
@Field(() => NullableDateTimeFieldUpdateOperationsInput, { nullable: true })
|
||||
deletedAt?: NullableDateTimeFieldUpdateOperationsInput;
|
||||
|
||||
@Field(() => NullableDateTimeFieldUpdateOperationsInput, { nullable: true })
|
||||
lastSeen?: NullableDateTimeFieldUpdateOperationsInput;
|
||||
|
||||
@Field(() => BoolFieldUpdateOperationsInput, { nullable: true })
|
||||
disabled?: BoolFieldUpdateOperationsInput;
|
||||
|
||||
@Field(() => StringFieldUpdateOperationsInput, { nullable: true })
|
||||
displayName?: StringFieldUpdateOperationsInput;
|
||||
|
||||
@Field(() => StringFieldUpdateOperationsInput, { nullable: true })
|
||||
email?: StringFieldUpdateOperationsInput;
|
||||
|
||||
@Field(() => NullableStringFieldUpdateOperationsInput, { nullable: true })
|
||||
avatarUrl?: NullableStringFieldUpdateOperationsInput;
|
||||
|
||||
@Field(() => StringFieldUpdateOperationsInput, { nullable: true })
|
||||
locale?: StringFieldUpdateOperationsInput;
|
||||
|
||||
@Field(() => NullableStringFieldUpdateOperationsInput, { nullable: true })
|
||||
phoneNumber?: NullableStringFieldUpdateOperationsInput;
|
||||
|
||||
@Field(() => NullableStringFieldUpdateOperationsInput, { nullable: true })
|
||||
passwordHash?: NullableStringFieldUpdateOperationsInput;
|
||||
|
||||
@Field(() => BoolFieldUpdateOperationsInput, { nullable: true })
|
||||
emailVerified?: BoolFieldUpdateOperationsInput;
|
||||
|
||||
@Field(() => GraphQLJSON, { nullable: true })
|
||||
metadata?: any;
|
||||
|
||||
@HideField()
|
||||
workspaceMember?: WorkspaceMemberUpdateOneWithoutUserNestedInput;
|
||||
|
||||
@Field(() => CompanyUpdateManyWithoutAccountOwnerNestedInput, {
|
||||
nullable: true,
|
||||
})
|
||||
companies?: CompanyUpdateManyWithoutAccountOwnerNestedInput;
|
||||
|
||||
@HideField()
|
||||
refreshTokens?: RefreshTokenUpdateManyWithoutUserNestedInput;
|
||||
|
||||
@Field(() => CommentUpdateManyWithoutAuthorNestedInput, { nullable: true })
|
||||
comments?: CommentUpdateManyWithoutAuthorNestedInput;
|
||||
}
|
||||
@ -0,0 +1,16 @@
|
||||
import { Field } from '@nestjs/graphql';
|
||||
import { InputType } from '@nestjs/graphql';
|
||||
import { UserUpdateWithoutCommentsInput } from './user-update-without-comments.input';
|
||||
import { Type } from 'class-transformer';
|
||||
import { UserCreateWithoutCommentsInput } from './user-create-without-comments.input';
|
||||
|
||||
@InputType()
|
||||
export class UserUpsertWithoutCommentsInput {
|
||||
@Field(() => UserUpdateWithoutCommentsInput, { nullable: false })
|
||||
@Type(() => UserUpdateWithoutCommentsInput)
|
||||
update!: UserUpdateWithoutCommentsInput;
|
||||
|
||||
@Field(() => UserCreateWithoutCommentsInput, { nullable: false })
|
||||
@Type(() => UserCreateWithoutCommentsInput)
|
||||
create!: UserCreateWithoutCommentsInput;
|
||||
}
|
||||
@ -0,0 +1,16 @@
|
||||
import { Field } from '@nestjs/graphql';
|
||||
import { InputType } from '@nestjs/graphql';
|
||||
import { UserUpdateWithoutCompaniesInput } from './user-update-without-companies.input';
|
||||
import { Type } from 'class-transformer';
|
||||
import { UserCreateWithoutCompaniesInput } from './user-create-without-companies.input';
|
||||
|
||||
@InputType()
|
||||
export class UserUpsertWithoutCompaniesInput {
|
||||
@Field(() => UserUpdateWithoutCompaniesInput, { nullable: false })
|
||||
@Type(() => UserUpdateWithoutCompaniesInput)
|
||||
update!: UserUpdateWithoutCompaniesInput;
|
||||
|
||||
@Field(() => UserCreateWithoutCompaniesInput, { nullable: false })
|
||||
@Type(() => UserCreateWithoutCompaniesInput)
|
||||
create!: UserCreateWithoutCompaniesInput;
|
||||
}
|
||||
@ -0,0 +1,16 @@
|
||||
import { Field } from '@nestjs/graphql';
|
||||
import { InputType } from '@nestjs/graphql';
|
||||
import { UserUpdateWithoutRefreshTokensInput } from './user-update-without-refresh-tokens.input';
|
||||
import { Type } from 'class-transformer';
|
||||
import { UserCreateWithoutRefreshTokensInput } from './user-create-without-refresh-tokens.input';
|
||||
|
||||
@InputType()
|
||||
export class UserUpsertWithoutRefreshTokensInput {
|
||||
@Field(() => UserUpdateWithoutRefreshTokensInput, { nullable: false })
|
||||
@Type(() => UserUpdateWithoutRefreshTokensInput)
|
||||
update!: UserUpdateWithoutRefreshTokensInput;
|
||||
|
||||
@Field(() => UserCreateWithoutRefreshTokensInput, { nullable: false })
|
||||
@Type(() => UserCreateWithoutRefreshTokensInput)
|
||||
create!: UserCreateWithoutRefreshTokensInput;
|
||||
}
|
||||
@ -0,0 +1,16 @@
|
||||
import { Field } from '@nestjs/graphql';
|
||||
import { InputType } from '@nestjs/graphql';
|
||||
import { UserUpdateWithoutWorkspaceMemberInput } from './user-update-without-workspace-member.input';
|
||||
import { Type } from 'class-transformer';
|
||||
import { UserCreateWithoutWorkspaceMemberInput } from './user-create-without-workspace-member.input';
|
||||
|
||||
@InputType()
|
||||
export class UserUpsertWithoutWorkspaceMemberInput {
|
||||
@Field(() => UserUpdateWithoutWorkspaceMemberInput, { nullable: false })
|
||||
@Type(() => UserUpdateWithoutWorkspaceMemberInput)
|
||||
update!: UserUpdateWithoutWorkspaceMemberInput;
|
||||
|
||||
@Field(() => UserCreateWithoutWorkspaceMemberInput, { nullable: false })
|
||||
@Type(() => UserCreateWithoutWorkspaceMemberInput)
|
||||
create!: UserCreateWithoutWorkspaceMemberInput;
|
||||
}
|
||||
11
server/src/core/@generated/user/user-where-unique.input.ts
Normal file
11
server/src/core/@generated/user/user-where-unique.input.ts
Normal file
@ -0,0 +1,11 @@
|
||||
import { Field } from '@nestjs/graphql';
|
||||
import { InputType } from '@nestjs/graphql';
|
||||
|
||||
@InputType()
|
||||
export class UserWhereUniqueInput {
|
||||
@Field(() => String, { nullable: true })
|
||||
id?: string;
|
||||
|
||||
@Field(() => String, { nullable: true })
|
||||
email?: string;
|
||||
}
|
||||
79
server/src/core/@generated/user/user-where.input.ts
Normal file
79
server/src/core/@generated/user/user-where.input.ts
Normal file
@ -0,0 +1,79 @@
|
||||
import { Field } from '@nestjs/graphql';
|
||||
import { InputType } from '@nestjs/graphql';
|
||||
import { StringFilter } from '../prisma/string-filter.input';
|
||||
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 { 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';
|
||||
|
||||
@InputType()
|
||||
export class UserWhereInput {
|
||||
@Field(() => [UserWhereInput], { nullable: true })
|
||||
AND?: Array<UserWhereInput>;
|
||||
|
||||
@Field(() => [UserWhereInput], { nullable: true })
|
||||
OR?: Array<UserWhereInput>;
|
||||
|
||||
@Field(() => [UserWhereInput], { nullable: true })
|
||||
NOT?: Array<UserWhereInput>;
|
||||
|
||||
@Field(() => StringFilter, { nullable: true })
|
||||
id?: StringFilter;
|
||||
|
||||
@Field(() => DateTimeFilter, { nullable: true })
|
||||
createdAt?: DateTimeFilter;
|
||||
|
||||
@Field(() => DateTimeFilter, { nullable: true })
|
||||
updatedAt?: DateTimeFilter;
|
||||
|
||||
@Field(() => DateTimeNullableFilter, { nullable: true })
|
||||
deletedAt?: DateTimeNullableFilter;
|
||||
|
||||
@Field(() => DateTimeNullableFilter, { nullable: true })
|
||||
lastSeen?: DateTimeNullableFilter;
|
||||
|
||||
@Field(() => BoolFilter, { nullable: true })
|
||||
disabled?: BoolFilter;
|
||||
|
||||
@Field(() => StringFilter, { nullable: true })
|
||||
displayName?: StringFilter;
|
||||
|
||||
@Field(() => StringFilter, { nullable: true })
|
||||
email?: StringFilter;
|
||||
|
||||
@Field(() => StringNullableFilter, { nullable: true })
|
||||
avatarUrl?: StringNullableFilter;
|
||||
|
||||
@Field(() => StringFilter, { nullable: true })
|
||||
locale?: StringFilter;
|
||||
|
||||
@Field(() => StringNullableFilter, { nullable: true })
|
||||
phoneNumber?: StringNullableFilter;
|
||||
|
||||
@Field(() => StringNullableFilter, { nullable: true })
|
||||
passwordHash?: StringNullableFilter;
|
||||
|
||||
@Field(() => BoolFilter, { nullable: true })
|
||||
emailVerified?: BoolFilter;
|
||||
|
||||
@Field(() => JsonNullableFilter, { nullable: true })
|
||||
metadata?: JsonNullableFilter;
|
||||
|
||||
@HideField()
|
||||
workspaceMember?: WorkspaceMemberRelationFilter;
|
||||
|
||||
@Field(() => CompanyListRelationFilter, { nullable: true })
|
||||
companies?: CompanyListRelationFilter;
|
||||
|
||||
@HideField()
|
||||
refreshTokens?: RefreshTokenListRelationFilter;
|
||||
|
||||
@Field(() => CommentListRelationFilter, { nullable: true })
|
||||
comments?: CommentListRelationFilter;
|
||||
}
|
||||
70
server/src/core/@generated/user/user.model.ts
Normal file
70
server/src/core/@generated/user/user.model.ts
Normal file
@ -0,0 +1,70 @@
|
||||
import { Field } from '@nestjs/graphql';
|
||||
import { ObjectType } from '@nestjs/graphql';
|
||||
import { ID } 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';
|
||||
|
||||
@ObjectType()
|
||||
export class User {
|
||||
@Field(() => ID, { nullable: false })
|
||||
id!: string;
|
||||
|
||||
@Field(() => Date, { nullable: false })
|
||||
createdAt!: Date;
|
||||
|
||||
@Field(() => Date, { nullable: false })
|
||||
updatedAt!: Date;
|
||||
|
||||
@Field(() => Date, { nullable: true })
|
||||
deletedAt!: Date | null;
|
||||
|
||||
@Field(() => Date, { nullable: true })
|
||||
lastSeen!: Date | null;
|
||||
|
||||
@Field(() => Boolean, { nullable: false, defaultValue: false })
|
||||
disabled!: boolean;
|
||||
|
||||
@Field(() => String, { nullable: false })
|
||||
displayName!: string;
|
||||
|
||||
@Field(() => String, { nullable: false })
|
||||
email!: string;
|
||||
|
||||
@Field(() => String, { nullable: true })
|
||||
avatarUrl!: string | null;
|
||||
|
||||
@Field(() => String, { nullable: false })
|
||||
locale!: string;
|
||||
|
||||
@Field(() => String, { nullable: true })
|
||||
phoneNumber!: string | null;
|
||||
|
||||
@Field(() => String, { nullable: true })
|
||||
passwordHash!: string | null;
|
||||
|
||||
@Field(() => Boolean, { nullable: false, defaultValue: false })
|
||||
emailVerified!: boolean;
|
||||
|
||||
@Field(() => GraphQLJSON, { nullable: true })
|
||||
metadata!: any | null;
|
||||
|
||||
@Field(() => WorkspaceMember, { nullable: true })
|
||||
workspaceMember?: WorkspaceMember | null;
|
||||
|
||||
@Field(() => [Company], { nullable: true })
|
||||
companies?: Array<Company>;
|
||||
|
||||
@HideField()
|
||||
refreshTokens?: Array<RefreshToken>;
|
||||
|
||||
@Field(() => [Comment], { nullable: true })
|
||||
comments?: Array<Comment>;
|
||||
|
||||
@HideField()
|
||||
_count?: UserCount;
|
||||
}
|
||||
Reference in New Issue
Block a user