Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions backend/knip.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"$schema": "https://unpkg.com/knip@5/schema.json",
"ignoreExportsUsedInFile": {
"interface": true,
"type": true
},
"ignore": ["src/migrations/**", "src/shared/config/datasource.config.ts", "src/enums/widget-type.enum.ts"],
"tags": ["-lintignore"]
}
10 changes: 5 additions & 5 deletions backend/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,8 @@
"migration:generate": "yarn run typeorm migration:generate -d dist/shared/config/datasource.config.js",
"migration:create": "yarn run typeorm migration:create -d dist/shared/config/datasource.config.js",
"migration:run": "yarn run typeorm migration:run -d dist/shared/config/datasource.config.js",
"migration:revert": "npm run typeorm -- migration:revert -d dist/shared/config/datasource.config.js"
"migration:revert": "npm run typeorm -- migration:revert -d dist/shared/config/datasource.config.js",
"knip": "knip"
Copy link

Copilot AI Nov 28, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[nitpick] A new knip script has been added to help identify unused code. Ensure that the team is aware of this new tool and how to use it. Consider adding documentation about running yarn knip as part of the development or CI/CD process to maintain code cleanliness.

Copilot uses AI. Check for mistakes.
},
"dependencies": {
"@amplitude/node": "1.10.2",
Expand All @@ -39,7 +40,6 @@
"@nestjs/common": "11.1.8",
"@nestjs/config": "4.0.2",
"@nestjs/core": "11.1.8",
"@nestjs/microservices": "^11.1.8",
"@nestjs/platform-express": "11.1.8",
"@nestjs/schedule": "^6.0.1",
"@nestjs/swagger": "^11.2.1",
Expand Down Expand Up @@ -71,7 +71,6 @@
"dotenv": "17.2.3",
"eslint-plugin-security": "3.0.1",
"express": "5.1.0",
"express-rate-limit": "8.1.0",
"fetch-blob": "^4.0.0",
"helmet": "8.1.0",
"i18n-iso-countries": "^7.14.0",
Expand Down Expand Up @@ -116,7 +115,7 @@
"@types/express": "^5.0.5",
"@types/ibm_db": "^3.2.0",
"@types/json2csv": "^5.0.7",
"@types/node": "^24.9.1",
"@types/node": "^24.10.1",
"@types/safe-regex": "^1.1.6",
"@types/supertest": "^6.0.3",
"@types/uuid": "^11.0.0",
Expand All @@ -127,12 +126,13 @@
"eslint": "^9.38.0",
"eslint-config-prettier": "^10.1.8",
"eslint-plugin-import": "^2.32.0",
"knip": "^5.70.2",
"nock": "^14.0.10",
"prettier": "^3.6.2",
"supertest": "^7.1.4",
"ts-loader": "^9.5.4",
"ts-node": "^10.9.2",
"tsconfig-paths": "^4.2.0",
"typescript": "5.9.3"
"typescript": "^5.9.3"
Copy link

Copilot AI Nov 28, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[nitpick] The TypeScript version constraint has been changed from an exact version (5.9.3) to a caret range (^5.9.3). This allows minor and patch version updates automatically. Ensure this is intentional, as it could introduce unexpected behavior if a new minor version of TypeScript is released with breaking changes. For consistency with other dependencies in the file, consider keeping exact versions for critical tooling like TypeScript.

Suggested change
"typescript": "^5.9.3"
"typescript": "5.9.3"

Copilot uses AI. Check for mistakes.
}
}
2 changes: 1 addition & 1 deletion backend/src/authorization/index.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
export { AuthMiddleware } from './auth.middleware.js';
export { BasicAuthMiddleware } from './basic-auth.middleware.js';
export { IRequestWithCognitoInfo, ICognitoDecodedData } from './cognito-decoded.interface.js';
export { IRequestWithCognitoInfo } from './cognito-decoded.interface.js';
7 changes: 0 additions & 7 deletions backend/src/common/data-injection.tokens.ts
Original file line number Diff line number Diff line change
Expand Up @@ -153,15 +153,8 @@ export enum UseCaseType {
GET_API_KEY = 'GET_API_KEY',
DELETE_API_KEY = 'DELETE_API_KEY',

REQUEST_INFO_FROM_TABLE_WITH_AI = 'REQUEST_INFO_FROM_TABLE_WITH_AI',
REQUEST_INFO_FROM_TABLE_WITH_AI_V2 = 'REQUEST_INFO_FROM_TABLE_WITH_AI_V2',

CREATE_THREAD_WITH_AI_ASSISTANT = 'CREATE_THREAD_WITH_AI_ASSISTANT',
ADD_MESSAGE_TO_THREAD_WITH_AI_ASSISTANT = 'ADD_MESSAGE_TO_THREAD_WITH_AI_ASSISTANT',
GET_ALL_USER_THREADS_WITH_AI_ASSISTANT = 'GET_ALL_USER_THREADS_WITH_AI_ASSISTANT',
GET_ALL_THREAD_MESSAGES = 'GET_ALL_THREAD_MESSAGES',
DELETE_THREAD_WITH_AI_ASSISTANT = 'DELETE_THREAD_WITH_AI_ASSISTANT',

CREATE_TABLE_FILTERS = 'CREATE_TABLE_FILTERS',
FIND_TABLE_FILTERS = 'FIND_TABLE_FILTERS',
DELETE_TABLE_FILTERS = 'DELETE_TABLE_FILTERS',
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { Response } from 'express';
export class RequestInfoFromTableDS {
class RequestInfoFromTableDS {
connectionId: string;
tableName: string;
user_message: string;
Expand Down

This file was deleted.

This file was deleted.

44 changes: 0 additions & 44 deletions backend/src/entities/ai/utils/command-validity-check.util.ts

This file was deleted.

26 changes: 0 additions & 26 deletions backend/src/entities/ai/utils/prompt-generating.util.ts

This file was deleted.

22 changes: 0 additions & 22 deletions backend/src/entities/ai/utils/wrap-query-with-limit.util.ts

This file was deleted.

1 change: 0 additions & 1 deletion backend/src/entities/connection-properties/dto/index.ts
Original file line number Diff line number Diff line change
@@ -1,2 +1 @@
export { CreateConnectionPropertiesDto } from './create-connection-properties.dto.js';
export { UpdateConnectionPropertiesDto } from './update-connection-properties.dto.js';

This file was deleted.

2 changes: 0 additions & 2 deletions backend/src/entities/connection/application/dto/index.ts

This file was deleted.

2 changes: 1 addition & 1 deletion backend/src/entities/connection/connection.controller.ts
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,6 @@ import { CreateGroupInConnectionDTO } from './application/dto/create-group-in-co
import { DeleteConnectionReasonDto } from './application/dto/delete-connection.dto.js';
import { DeleteGroupFromConnectionDTO } from './application/dto/delete-group-from-connection-request.dto.js';
import { FoundUserGroupsInConnectionDTO } from './application/dto/found-user-groups-in-connection.dto.js';
import { CreateConnectionDto } from './application/dto/index.js';
import { ConnectionTokenResponseDTO } from './application/dto/new-connection-token-response.dto.js';
import { TestConnectionResponseDTO } from './application/dto/test-connection-response.dto.js';
import { UpdateMasterPasswordRequestBodyDto } from './application/dto/update-master-password-request-body.dto.js';
Expand Down Expand Up @@ -84,6 +83,7 @@ import { TokenValidationResult } from './use-cases/validate-connection-token.use
import { isTestConnectionUtil } from './utils/is-test-connection-util.js';
import { SkipThrottle } from '@nestjs/throttler';
import { isRedisConnectionUrl } from '@rocketadmin/shared-code/dist/src/data-access-layer/shared/create-data-access-object.js';
import { CreateConnectionDto } from './application/dto/create-connection.dto.js';

@UseInterceptors(SentryInterceptor)
@Controller()
Expand Down
31 changes: 0 additions & 31 deletions backend/src/entities/connection/connection.interface.ts

This file was deleted.

14 changes: 0 additions & 14 deletions backend/src/entities/email/email-verification.module.ts

This file was deleted.

Empty file.
14 changes: 0 additions & 14 deletions backend/src/entities/group/dto/create-group.dto.ts

This file was deleted.

2 changes: 0 additions & 2 deletions backend/src/entities/group/dto/index.ts

This file was deleted.

10 changes: 0 additions & 10 deletions backend/src/entities/group/dto/update-group.dto.ts

This file was deleted.

10 changes: 0 additions & 10 deletions backend/src/entities/group/group.interface.ts

This file was deleted.

14 changes: 0 additions & 14 deletions backend/src/entities/permission/dto/create-permission.dto.ts

This file was deleted.

11 changes: 0 additions & 11 deletions backend/src/entities/permission/dto/create-permissions.dto.ts

This file was deleted.

3 changes: 0 additions & 3 deletions backend/src/entities/permission/dto/index.ts

This file was deleted.

17 changes: 0 additions & 17 deletions backend/src/entities/permission/dto/update-permission.dto.ts

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ import { TableActionEventEnum } from '../../../../../enums/table-action-event-en
import { applyDecorators } from '@nestjs/common';
import { IsURLOptions } from 'validator';

export function IsUrlIfNotTest(validationOptions?: IsURLOptions) {
function IsUrlIfNotTest(validationOptions?: IsURLOptions) {
return function (object: NonNullable<unknown>, propertyName: string) {
const decorators = [IsString()];
if (process.env.NODE_ENV !== 'test') {
Expand Down

This file was deleted.

This file was deleted.

This file was deleted.

Loading
Loading