From 7383b0935ca69e2b1fb63ee671638ff1e408291d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?F=C3=A9lix=20Malfait?= Date: Mon, 4 Aug 2025 22:35:36 +0200 Subject: [PATCH] Remove unused files (#13612) Remove a few unused files --- .../input/id-filter.input-type.ts | 17 --------- .../dto/create-user-and-workspace.input.ts | 37 ------------------- .../auth/dto/workspace-invite-token.input.ts | 12 ------ .../graphql/engine-graphql.module.ts | 12 ------ 4 files changed, 78 deletions(-) delete mode 100644 packages/twenty-server/src/engine/api/graphql/workspace-schema-builder/graphql-types/input/id-filter.input-type.ts delete mode 100644 packages/twenty-server/src/engine/core-modules/auth/dto/create-user-and-workspace.input.ts delete mode 100644 packages/twenty-server/src/engine/core-modules/auth/dto/workspace-invite-token.input.ts delete mode 100644 packages/twenty-server/src/engine/core-modules/graphql/engine-graphql.module.ts diff --git a/packages/twenty-server/src/engine/api/graphql/workspace-schema-builder/graphql-types/input/id-filter.input-type.ts b/packages/twenty-server/src/engine/api/graphql/workspace-schema-builder/graphql-types/input/id-filter.input-type.ts deleted file mode 100644 index 398db208816..00000000000 --- a/packages/twenty-server/src/engine/api/graphql/workspace-schema-builder/graphql-types/input/id-filter.input-type.ts +++ /dev/null @@ -1,17 +0,0 @@ -import { GraphQLID, GraphQLInputObjectType, GraphQLList } from 'graphql'; - -import { FilterIs } from 'src/engine/api/graphql/workspace-schema-builder/graphql-types/input/filter-is.input-type'; - -export const IDFilterType = new GraphQLInputObjectType({ - name: 'IDFilter', - fields: { - eq: { type: GraphQLID }, - gt: { type: GraphQLID }, - gte: { type: GraphQLID }, - in: { type: new GraphQLList(GraphQLID) }, - lt: { type: GraphQLID }, - lte: { type: GraphQLID }, - neq: { type: GraphQLID }, - is: { type: FilterIs }, - }, -}); diff --git a/packages/twenty-server/src/engine/core-modules/auth/dto/create-user-and-workspace.input.ts b/packages/twenty-server/src/engine/core-modules/auth/dto/create-user-and-workspace.input.ts deleted file mode 100644 index 8c64dbafdec..00000000000 --- a/packages/twenty-server/src/engine/core-modules/auth/dto/create-user-and-workspace.input.ts +++ /dev/null @@ -1,37 +0,0 @@ -import { ArgsType, Field } from '@nestjs/graphql'; - -import { IsEmail, IsNotEmpty, IsOptional, IsString } from 'class-validator'; -import { APP_LOCALES } from 'twenty-shared/translations'; - -@ArgsType() -export class CreateUserAndWorkspaceInput { - @Field(() => String) - @IsNotEmpty() - @IsEmail() - email: string; - - @Field(() => String, { nullable: true }) - @IsString() - @IsOptional() - firstName?: string; - - @Field(() => String, { nullable: true }) - @IsString() - @IsOptional() - lastName?: string; - - @Field(() => String, { nullable: true }) - @IsString() - @IsOptional() - picture?: string; - - @Field(() => String, { nullable: true }) - @IsString() - @IsOptional() - locale?: keyof typeof APP_LOCALES; - - @Field(() => String, { nullable: true }) - @IsString() - @IsOptional() - captchaToken?: string; -} diff --git a/packages/twenty-server/src/engine/core-modules/auth/dto/workspace-invite-token.input.ts b/packages/twenty-server/src/engine/core-modules/auth/dto/workspace-invite-token.input.ts deleted file mode 100644 index 756300a964b..00000000000 --- a/packages/twenty-server/src/engine/core-modules/auth/dto/workspace-invite-token.input.ts +++ /dev/null @@ -1,12 +0,0 @@ -import { ArgsType, Field } from '@nestjs/graphql'; - -import { IsNotEmpty, IsString, MinLength } from 'class-validator'; - -@ArgsType() -export class WorkspaceInviteTokenInput { - @Field(() => String) - @IsString() - @IsNotEmpty() - @MinLength(10) - inviteToken: string; -} diff --git a/packages/twenty-server/src/engine/core-modules/graphql/engine-graphql.module.ts b/packages/twenty-server/src/engine/core-modules/graphql/engine-graphql.module.ts deleted file mode 100644 index 522d7f0a85b..00000000000 --- a/packages/twenty-server/src/engine/core-modules/graphql/engine-graphql.module.ts +++ /dev/null @@ -1,12 +0,0 @@ -import { Module } from '@nestjs/common'; - -import { ExceptionHandlerModule } from 'src/engine/core-modules/exception-handler/exception-handler.module'; -import { useGraphQLErrorHandlerHook } from 'src/engine/core-modules/graphql/hooks/use-graphql-error-handler.hook'; -import { ResolverValidationPipe } from 'src/engine/core-modules/graphql/pipes/resolver-validation.pipe'; - -@Module({ - imports: [ExceptionHandlerModule], - exports: [useGraphQLErrorHandlerHook, ResolverValidationPipe], - providers: [ResolverValidationPipe], -}) -export class EngineGraphQLModule {}