Skip to content

The open alternative to Salesforce, designed for AI.

Remove unused files (#13612)

Félix Malfait7383b0935ca6
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 {}