Skip to content

📈 Open source, privacy-first web analytics — a cookie-less Google Analytics alternative with built-in error tracking and performance monitoring. Self-host it or use our cloud. Get started for free!

Remove dead code

Blue Mouse84c976995c0e
diff --git a/backend/apps/cloud/src/analytics/analytics.controller.ts b/backend/apps/cloud/src/analytics/analytics.controller.ts
index 9f1bfc889..f4285ae76 100644
--- a/backend/apps/cloud/src/analytics/analytics.controller.ts
+++ b/backend/apps/cloud/src/analytics/analytics.controller.ts
@@ -95,7 +95,7 @@ import { GetHeartbeatStatsDto } from './dto/get-heartbeat-stats'
dayjs.extend(utc)
dayjs.extend(dayjsTimezone)
-export const DEFAULT_MEASURE = 'median'
+const DEFAULT_MEASURE = 'median'
// Silent 200 response for bots
// https://github.com/Swetrix/swetrix/issues/371
diff --git a/backend/apps/cloud/src/analytics/interfaces/index.ts b/backend/apps/cloud/src/analytics/interfaces/index.ts
index 08c9d0609..496597ce1 100644
--- a/backend/apps/cloud/src/analytics/interfaces/index.ts
+++ b/backend/apps/cloud/src/analytics/interfaces/index.ts
@@ -138,7 +138,7 @@ interface IOverallPeriodStats {
sdur: number
}
-export interface ICaptchaObject {
+interface ICaptchaObject {
current: {
all: number
}
@@ -148,7 +148,7 @@ export interface ICaptchaObject {
change: number
}
-export interface IPerformanceObject {
+interface IPerformanceObject {
current: {
frontend: number
backend: number
@@ -164,7 +164,7 @@ export interface IPerformanceObject {
networkChange: number
}
-export interface IOverallObject {
+interface IOverallObject {
current: IOverallPeriodStats
previous: IOverallPeriodStats
change: number
diff --git a/backend/apps/cloud/src/auth/guards/api-key.guard.ts b/backend/apps/cloud/src/auth/guards/api-key.guard.ts
deleted file mode 100644
index 43e58ce2d..000000000
--- a/backend/apps/cloud/src/auth/guards/api-key.guard.ts
+++ /dev/null
@@ -1,5 +0,0 @@
-import { Injectable } from '@nestjs/common'
-import { AuthGuard } from '@nestjs/passport'
-
-@Injectable()
-export class ApiKeyGuard extends AuthGuard('api-key') {}
diff --git a/backend/apps/cloud/src/auth/guards/index.ts b/backend/apps/cloud/src/auth/guards/index.ts
index 0658afa44..6c37ea3a7 100644
--- a/backend/apps/cloud/src/auth/guards/index.ts
+++ b/backend/apps/cloud/src/auth/guards/index.ts
@@ -2,6 +2,5 @@ export * from './jwt-access-token.guard'
export * from './jwt-refresh-token.guard'
export * from './roles.guard'
export * from './optional-jwt-access-token.guard'
-export * from './api-key.guard'
export * from './api-key-rate-limit.guard'
export * from './multi-auth.guard'
diff --git a/backend/apps/cloud/src/captcha/captcha.service.ts b/backend/apps/cloud/src/captcha/captcha.service.ts
index 040ddcdd3..255b942b0 100644
--- a/backend/apps/cloud/src/captcha/captcha.service.ts
+++ b/backend/apps/cloud/src/captcha/captcha.service.ts
@@ -35,7 +35,7 @@ const DUMMY_SECRETS = {
TOKEN_USED_FAIL: 'USED000000000000000000',
}
-export const isDummyPID = (pid: string): boolean => {
+const isDummyPID = (pid: string): boolean => {
return _includes(_values(DUMMY_PIDS), pid)
}
diff --git a/backend/apps/cloud/src/common/integrations/clickhouse.ts b/backend/apps/cloud/src/common/integrations/clickhouse.ts
index 4bd3688ce..9140f6dc3 100644
--- a/backend/apps/cloud/src/common/integrations/clickhouse.ts
+++ b/backend/apps/cloud/src/common/integrations/clickhouse.ts
@@ -7,7 +7,7 @@ import { createClient, ClickHouseLogLevel } from '@clickhouse/client'
import { Logger } from '@nestjs/common'
import 'dotenv/config'
-export class CHLogger implements _CHLogger {
+class CHLogger implements _CHLogger {
debug({ module, message, args }: LogParams): void {
Logger.debug({
type: '@clickhouse/client',
diff --git a/backend/apps/cloud/src/common/utils.ts b/backend/apps/cloud/src/common/utils.ts
index 0995a028f..2550460a1 100644
--- a/backend/apps/cloud/src/common/utils.ts
+++ b/backend/apps/cloud/src/common/utils.ts
@@ -321,5 +321,3 @@ export const sumArrays = (source: number[], target: number[]) => {
return result
}
-
-export { lookup }
diff --git a/backend/apps/cloud/src/marketplace/comments/dtos/params/get-comment.dto.ts b/backend/apps/cloud/src/marketplace/comments/dtos/params/get-comment.dto.ts
deleted file mode 100644
index 65446be80..000000000
--- a/backend/apps/cloud/src/marketplace/comments/dtos/params/get-comment.dto.ts
+++ /dev/null
@@ -1,6 +0,0 @@
-import { IsUUID } from 'class-validator'
-
-export class GetCommentParamDto {
- @IsUUID()
- commentId: string
-}
diff --git a/backend/apps/cloud/src/marketplace/comments/dtos/queries/create-comment.dto.ts b/backend/apps/cloud/src/marketplace/comments/dtos/queries/create-comment.dto.ts
deleted file mode 100644
index 0ebe3680e..000000000
--- a/backend/apps/cloud/src/marketplace/comments/dtos/queries/create-comment.dto.ts
+++ /dev/null
@@ -1,8 +0,0 @@
-import { ApiProperty } from '@nestjs/swagger'
-import { IsUUID } from 'class-validator'
-
-export class CreateCommentQueryDto {
- @ApiProperty()
- @IsUUID()
- userId: string
-}
diff --git a/backend/apps/cloud/src/marketplace/extensions/extensions.service.ts b/backend/apps/cloud/src/marketplace/extensions/extensions.service.ts
index e88392fc5..4db8ecf28 100644
--- a/backend/apps/cloud/src/marketplace/extensions/extensions.service.ts
+++ b/backend/apps/cloud/src/marketplace/extensions/extensions.service.ts
@@ -13,10 +13,10 @@ import { IUpdateExtension } from './interfaces/update-extension.interface'
import { CreateExtensionType, UpdateExtensionType } from './types'
import { ExtensionStatus } from './enums/extension-status.enum'
import { CdnService } from '../cdn/cdn.service'
-import { ExtensionVersionType } from './dtos'
import { VersionTypes } from './interfaces'
import { SearchExtensionQueries } from './dtos/search-extension-queries.dto'
import { GetAllExtensionsQueries } from './dtos/get-all-extensions-queries.dto'
+import { ExtensionVersionType } from './dtos/create-extension.dto'
const DEFAULT_EXTENSION_VERSION = '0.0.1'
diff --git a/backend/apps/cloud/src/marketplace/extensions/types/create-extension.type.ts b/backend/apps/cloud/src/marketplace/extensions/types/create-extension.type.ts
index 3a74d2194..b4dea2e19 100644
--- a/backend/apps/cloud/src/marketplace/extensions/types/create-extension.type.ts
+++ b/backend/apps/cloud/src/marketplace/extensions/types/create-extension.type.ts
@@ -1,5 +1,5 @@
import { type Express } from 'express'
-import { ExtensionVersionType } from '../dtos'
+import { type ExtensionVersionType } from '../dtos/create-extension.dto'
export type CreateExtensionType = {
ownerId: string
diff --git a/backend/apps/cloud/src/project/dto/project-password.dto.ts b/backend/apps/cloud/src/project/dto/project-password.dto.ts
index 9c033b58c..d49e2d58b 100644
--- a/backend/apps/cloud/src/project/dto/project-password.dto.ts
+++ b/backend/apps/cloud/src/project/dto/project-password.dto.ts
@@ -21,9 +21,3 @@ export class ProjectPasswordDto {
@ValidateIf(o => o.isPasswordProtected !== null)
isPasswordProtected?: boolean | null
}
-
-export class GetProtectedProjectDto {
- @IsOptional()
- @ValidateIf(o => o.password !== null)
- password?: string | null
-}
diff --git a/backend/apps/community/src/analytics/analytics.controller.ts b/backend/apps/community/src/analytics/analytics.controller.ts
index 93694ba09..f92dbc76f 100644
--- a/backend/apps/community/src/analytics/analytics.controller.ts
+++ b/backend/apps/community/src/analytics/analytics.controller.ts
@@ -82,7 +82,7 @@ import { NoscriptDto } from './dto/noscript.dto'
dayjs.extend(utc)
dayjs.extend(dayjsTimezone)
-export const DEFAULT_MEASURE = 'median'
+const DEFAULT_MEASURE = 'median'
// Silent 200 response for bots
// https://github.com/Swetrix/swetrix/issues/371
diff --git a/backend/apps/community/src/analytics/interfaces/index.ts b/backend/apps/community/src/analytics/interfaces/index.ts
index 3af6efab0..37f76ff3d 100644
--- a/backend/apps/community/src/analytics/interfaces/index.ts
+++ b/backend/apps/community/src/analytics/interfaces/index.ts
@@ -138,7 +138,7 @@ interface IOverallPeriodStats {
sdur: number
}
-export interface IPerformanceObject {
+interface IPerformanceObject {
current: {
frontend: number
backend: number
@@ -154,7 +154,7 @@ export interface IPerformanceObject {
networkChange: number
}
-export interface IOverallObject {
+interface IOverallObject {
current: IOverallPeriodStats
previous: IOverallPeriodStats
change: number
diff --git a/backend/apps/community/src/auth/guards/api-key.guard.ts b/backend/apps/community/src/auth/guards/api-key.guard.ts
deleted file mode 100644
index 43e58ce2d..000000000
--- a/backend/apps/community/src/auth/guards/api-key.guard.ts
+++ /dev/null
@@ -1,5 +0,0 @@
-import { Injectable } from '@nestjs/common'
-import { AuthGuard } from '@nestjs/passport'
-
-@Injectable()
-export class ApiKeyGuard extends AuthGuard('api-key') {}
diff --git a/backend/apps/community/src/common/constants.ts b/backend/apps/community/src/common/constants.ts
index 2fdb6d2d2..c81dcfe43 100644
--- a/backend/apps/community/src/common/constants.ts
+++ b/backend/apps/community/src/common/constants.ts
@@ -52,8 +52,6 @@ const isValidPID = (pid: string) => PID_REGEX.test(pid)
const getRedisProjectKey = (pid: string) => `pid_${pid}`
const REDIS_SESSION_SALT_KEY = 'log_salt' // is updated every 24 hours
-const REDIS_USERS_COUNT_KEY = 'stats:users_count'
-const REDIS_PROJECTS_COUNT_KEY = 'stats:projects_count'
const REDIS_OIDC_SESSION_KEY = 'oidc:session'
// 3600 sec -> 1 hour
@@ -117,8 +115,6 @@ export {
UNIQUE_SESSION_LIFE_TIME,
TRAFFIC_METAKEY_COLUMNS,
REDIS_SESSION_SALT_KEY,
- REDIS_USERS_COUNT_KEY,
- REDIS_PROJECTS_COUNT_KEY,
IP_REGEX,
ORIGINS_REGEX,
isDevelopment,
diff --git a/backend/apps/community/src/common/decorators/bot-detection.decorator.ts b/backend/apps/community/src/common/decorators/bot-detection.decorator.ts
deleted file mode 100644
index f3be8c233..000000000
--- a/backend/apps/community/src/common/decorators/bot-detection.decorator.ts
+++ /dev/null
@@ -1,4 +0,0 @@
-import { SetMetadata } from '@nestjs/common'
-
-export const IS_BOT_DETECTION_ENABLED = 'isBotDetectionEnabled'
-export const BotDetection = () => SetMetadata(IS_BOT_DETECTION_ENABLED, true)
diff --git a/backend/apps/community/src/common/guards/bot-detection.guard.ts b/backend/apps/community/src/common/guards/bot-detection.guard.ts
deleted file mode 100644
index e484d8367..000000000
--- a/backend/apps/community/src/common/guards/bot-detection.guard.ts
+++ /dev/null
@@ -1,27 +0,0 @@
-import {
- CanActivate,
- ExecutionContext,
- ForbiddenException,
- Injectable,
-} from '@nestjs/common'
-import { Reflector } from '@nestjs/core'
-import { isbot } from 'isbot'
-import { IS_BOT_DETECTION_ENABLED } from '../decorators/bot-detection.decorator'
-
-@Injectable()
-export class BotDetectionGuard implements CanActivate {
- constructor(private readonly reflector: Reflector) {}
-
- canActivate(context: ExecutionContext): boolean {
- this.reflector.get(IS_BOT_DETECTION_ENABLED, context.getHandler())
-
- const { headers } = context.switchToHttp().getRequest()
- const { 'user-agent': userAgent } = headers
-
- if (isbot(userAgent)) {
- throw new ForbiddenException('Bot traffic is ignored')
- }
-
- return true
- }
-}
diff --git a/backend/apps/community/src/common/integrations/clickhouse.ts b/backend/apps/community/src/common/integrations/clickhouse.ts
index 93194be4c..64a028c57 100644
--- a/backend/apps/community/src/common/integrations/clickhouse.ts
+++ b/backend/apps/community/src/common/integrations/clickhouse.ts
@@ -7,7 +7,7 @@ import { createClient, ClickHouseLogLevel } from '@clickhouse/client'
import { Logger } from '@nestjs/common'
import 'dotenv/config'
-export class CHLogger implements _CHLogger {
+class CHLogger implements _CHLogger {
debug({ module, message, args }: LogParams): void {
Logger.debug({
type: '@clickhouse/client',
diff --git a/backend/apps/community/src/common/pagination/index.ts b/backend/apps/community/src/common/pagination/index.ts
deleted file mode 100644
index f276090bf..000000000
--- a/backend/apps/community/src/common/pagination/index.ts
+++ /dev/null
@@ -1,3 +0,0 @@
-export * from './pagination.options.interface'
-export * from './pagination.results.interface'
-export * from './pagination'
diff --git a/backend/apps/community/src/common/pagination/pagination.options.interface.ts b/backend/apps/community/src/common/pagination/pagination.options.interface.ts
deleted file mode 100644
index 37378118e..000000000
--- a/backend/apps/community/src/common/pagination/pagination.options.interface.ts
+++ /dev/null
@@ -1,4 +0,0 @@
-export interface PaginationOptionsInterface {
- take: number
- skip: number
-}
diff --git a/backend/apps/community/src/common/types.ts b/backend/apps/community/src/common/types.ts
index 4fa3f8674..a077f8f93 100644
--- a/backend/apps/community/src/common/types.ts
+++ b/backend/apps/community/src/common/types.ts
@@ -24,18 +24,6 @@ export interface User {
apiKey: string | null
}
-export interface ClickhouseProject {
- id: string
- name: string
- origins: string | null
- ipBlacklist: string | null
- active: number
- public: number
- isPasswordProtected: number
- passwordHash: string | null
- created: string
-}
-
export interface ClickhouseFunnel {
id: string
name: string
diff --git a/backend/apps/community/src/common/utils.ts b/backend/apps/community/src/common/utils.ts
index 7ba17ff87..0229851c4 100644
--- a/backend/apps/community/src/common/utils.ts
+++ b/backend/apps/community/src/common/utils.ts
@@ -44,7 +44,7 @@ export interface ClickhouseProjectShare {
updated: string
}
-export interface ClickhouseProjectShareWithUser {
+interface ClickhouseProjectShareWithUser {
id: string
role: string
confirmed: number
@@ -54,7 +54,7 @@ export interface ClickhouseProjectShareWithUser {
email: string
}
-export interface ClickhouseProjectShareWithProject {
+interface ClickhouseProjectShareWithProject {
id: string
role: string
confirmed: number
@@ -382,28 +382,6 @@ const assignUnassignedProjectsToUserClickhouse = async (userId: string) => {
})
}
-/**
- * Checking the % change in one number relative to the other
- * @param oldVal The initial value
- * @param newVal The value that changed
- * @param round Numbers after floating point
- */
-const calculateRelativePercentage = (
- oldVal: number,
- newVal: number,
- round = 2,
-) => {
- if (oldVal === newVal) return 0
- if (oldVal === 0) return 100
- if (newVal === 0) return -100
-
- if (newVal > oldVal) {
- return _round((newVal / oldVal) * 100, round)
- }
-
- return _round((1 - newVal / oldVal) * -100, round)
-}
-
const deleteProjectClickhouse = async (id: string) => {
const query = `ALTER TABLE project DELETE WHERE id = {id:FixedString(12)}`
@@ -1048,7 +1026,6 @@ export {
getProjectsClickhouse,
updateProjectClickhouse,
deleteProjectClickhouse,
- calculateRelativePercentage,
millisecondsToSeconds,
saveRefreshTokenClickhouse,
findRefreshTokenClickhouse,
diff --git a/backend/apps/community/src/project/dto/project-password.dto.ts b/backend/apps/community/src/project/dto/project-password.dto.ts
index 9c033b58c..d49e2d58b 100644
--- a/backend/apps/community/src/project/dto/project-password.dto.ts
+++ b/backend/apps/community/src/project/dto/project-password.dto.ts
@@ -21,9 +21,3 @@ export class ProjectPasswordDto {
@ValidateIf(o => o.isPasswordProtected !== null)
isPasswordProtected?: boolean | null
}
-
-export class GetProtectedProjectDto {
- @IsOptional()
- @ValidateIf(o => o.password !== null)
- password?: string | null
-}
diff --git a/backend/apps/community/src/project/project.controller.ts b/backend/apps/community/src/project/project.controller.ts
index d5e94c4cc..c123005bd 100644
--- a/backend/apps/community/src/project/project.controller.ts
+++ b/backend/apps/community/src/project/project.controller.ts
@@ -92,6 +92,7 @@ import {
updateProjectShareClickhouse,
deleteProjectShareClickhouse,
deleteProjectSharesByProjectClickhouse,
+ ClickhouseProjectShare,
} from '../common/utils'
import { Funnel } from './entity/funnel.entity'
import { ProjectViewEntity } from './entity/project-view.entity'
@@ -422,7 +423,7 @@ export class ProjectController {
@Param('shareId') shareId: string,
@Body() body: { role: 'admin' | 'viewer' },
@CurrentUserId() userId: string,
- ) {
+ ): Promise<ClickhouseProjectShare> {
this.logger.log({ userId, shareId, body }, 'PUT /project/share/:shareId')
if (!body?.role || !['admin', 'viewer'].includes(body.role)) {
diff --git a/backend/knip.jsonc b/backend/knip.jsonc
index a05670cc1..41a85aff9 100644
--- a/backend/knip.jsonc
+++ b/backend/knip.jsonc
@@ -1,9 +1,10 @@
{
"$schema": "https://unpkg.com/knip@5/schema.json",
"ignoreDependencies": [
- "@faker-js/faker", "@types/ioredis"
+ "@faker-js/faker", "@types/ioredis", "@types/multer"
],
"ignore": ["./ecosystem.config.js"],
+ "exclude": ["enumMembers"],
"entry": ["./apps/cloud/src/main.ts", "./apps/community/src/main.ts"],
"project": ["./apps/cloud/src/**/*.ts", "./apps/community/src/**/*.ts"]
}
diff --git a/backend/package-lock.json b/backend/package-lock.json
index c334ce7a4..60d4ba31f 100644
--- a/backend/package-lock.json
+++ b/backend/package-lock.json
@@ -74,12 +74,14 @@
"devDependencies": {
"@eslint/js": "^9.36.0",
"@nestjs/cli": "^11.0.10",
+ "@nestjs/schematics": "^11.0.9",
"@types/bcrypt": "^6.0.0",
"@types/body-parser": "^1.19.6",
"@types/cookie-parser": "^1.4.9",
"@types/express": "^5.0.3",
"@types/ioredis": "^4.28.10",
"@types/lodash": "^4.17.20",
+ "@types/multer": "^2.0.0",
"@types/node": "^24.7.2",
"@types/nodemailer": "^7.0.1",
"@types/passport-jwt": "^4.0.1",
@@ -100,9 +102,9 @@
}
},
"node_modules/@angular-devkit/core": {
- "version": "19.2.6",
- "resolved": "https://registry.npmjs.org/@angular-devkit/core/-/core-19.2.6.tgz",
- "integrity": "sha512-WFgiYhrDMq83UNaGRAneIM7CYYdBozD+yYA9BjoU8AgBLKtrvn6S8ZcjKAk5heoHtY/u8pEb0mwDTz9gxFmJZQ==",
+ "version": "19.2.17",
+ "resolved": "https://registry.npmjs.org/@angular-devkit/core/-/core-19.2.17.tgz",
+ "integrity": "sha512-Ah008x2RJkd0F+NLKqIpA34/vUGwjlprRCkvddjDopAWRzYn6xCkz1Tqwuhn0nR1Dy47wTLKYD999TYl5ONOAQ==",
"dev": true,
"license": "MIT",
"dependencies": {
@@ -138,13 +140,13 @@
}
},
"node_modules/@angular-devkit/schematics": {
- "version": "19.2.6",
- "resolved": "https://registry.npmjs.org/@angular-devkit/schematics/-/schematics-19.2.6.tgz",
- "integrity": "sha512-YTAxNnT++5eflx19OUHmOWu597/TbTel+QARiZCv1xQw99+X8DCKKOUXtqBRd53CAHlREDI33Rn/JLY3NYgMLQ==",
+ "version": "19.2.17",
+ "resolved": "https://registry.npmjs.org/@angular-devkit/schematics/-/schematics-19.2.17.tgz",
+ "integrity": "sha512-ADfbaBsrG8mBF6Mfs+crKA/2ykB8AJI50Cv9tKmZfwcUcyAdmTr+vVvhsBCfvUAEokigSsgqgpYxfkJVxhJYeg==",
"dev": true,
"license": "MIT",
"dependencies": {
- "@angular-devkit/core": "19.2.6",
+ "@angular-devkit/core": "19.2.17",
"jsonc-parser": "3.3.1",
"magic-string": "0.30.17",
"ora": "5.4.1",
@@ -2561,15 +2563,15 @@
}
},
"node_modules/@nestjs/schematics": {
- "version": "11.0.5",
- "resolved": "https://registry.npmjs.org/@nestjs/schematics/-/schematics-11.0.5.tgz",
- "integrity": "sha512-T50SCNyqCZ/fDssaOD7meBKLZ87ebRLaJqZTJPvJKjlib1VYhMOCwXYsr7bjMPmuPgiQHOwvppz77xN/m6GM7A==",
+ "version": "11.0.9",
+ "resolved": "https://registry.npmjs.org/@nestjs/schematics/-/schematics-11.0.9.tgz",
+ "integrity": "sha512-0NfPbPlEaGwIT8/TCThxLzrlz3yzDNkfRNpbL7FiplKq3w4qXpJg0JYwqgMEJnLQZm3L/L/5XjoyfJHUO3qX9g==",
"dev": true,
"license": "MIT",
"dependencies": {
- "@angular-devkit/core": "19.2.6",
- "@angular-devkit/schematics": "19.2.6",
- "comment-json": "4.2.5",
+ "@angular-devkit/core": "19.2.17",
+ "@angular-devkit/schematics": "19.2.17",
+ "comment-json": "4.4.1",
"jsonc-parser": "3.3.1",
"pluralize": "8.0.0"
},
@@ -4936,6 +4938,16 @@
"license": "MIT",
"optional": true
},
+ "node_modules/@types/multer": {
+ "version": "2.0.0",
+ "resolved": "https://registry.npmjs.org/@types/multer/-/multer-2.0.0.tgz",
+ "integrity": "sha512-C3Z9v9Evij2yST3RSBktxP9STm6OdMc5uR1xF1SGr98uv8dUlAL2hqwrZ3GVB3uyMyiegnscEK6PGtYvNrjTjw==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@types/express": "*"
+ }
+ },
"node_modules/@types/mysql": {
"version": "2.15.27",
"resolved": "https://registry.npmjs.org/@types/mysql/-/mysql-2.15.27.tgz",
@@ -6805,17 +6817,15 @@
}
},
"node_modules/comment-json": {
- "version": "4.2.5",
- "resolved": "https://registry.npmjs.org/comment-json/-/comment-json-4.2.5.tgz",
- "integrity": "sha512-bKw/r35jR3HGt5PEPm1ljsQQGyCrR8sFGNiN5L+ykDHdpO8Smxkrkla9Yi6NkQyUrb8V54PGhfMs6NrIwtxtdw==",
+ "version": "4.4.1",
+ "resolved": "https://registry.npmjs.org/comment-json/-/comment-json-4.4.1.tgz",
+ "integrity": "sha512-r1To31BQD5060QdkC+Iheai7gHwoSZobzunqkf2/kQ6xIAfJyrKNAFUwdKvkK7Qgu7pVTKQEa7ok7Ed3ycAJgg==",
"dev": true,
"license": "MIT",
"dependencies": {
"array-timsort": "^1.0.3",
"core-util-is": "^1.0.3",
- "esprima": "^4.0.1",
- "has-own-prop": "^2.0.0",
- "repeat-string": "^1.6.1"
+ "esprima": "^4.0.1"
},
"engines": {
"node": ">= 6"
@@ -9213,16 +9223,6 @@
"node": ">=8"
}
},
- "node_modules/has-own-prop": {
- "version": "2.0.0",
- "resolved": "https://registry.npmjs.org/has-own-prop/-/has-own-prop-2.0.0.tgz",
- "integrity": "sha512-Pq0h+hvsVm6dDEa8x82GnLSYHOzNDt7f0ddFa3FqcQlgzEiptPqL+XrOJNavjOzSYiYWIrgeVYYgGlLmnxwilQ==",
- "dev": true,
- "license": "MIT",
- "engines": {
- "node": ">=8"
- }
- },
"node_modules/has-property-descriptors": {
"version": "1.0.2",
"resolved": "https://registry.npmjs.org/has-property-descriptors/-/has-property-descriptors-1.0.2.tgz",
@@ -13327,16 +13327,6 @@
"node": ">= 0.10"
}
},
- "node_modules/repeat-string": {
- "version": "1.6.1",
- "resolved": "https://registry.npmjs.org/repeat-string/-/repeat-string-1.6.1.tgz",
- "integrity": "sha512-PV0dzCYDNfRi1jCDbJzpW7jNNDRuCOG/jI5ctQcGKt/clZD+YcPS3yIlWuTJMmESC8aevCFmWJy5wjAFgNqN6w==",
- "dev": true,
- "license": "MIT",
- "engines": {
- "node": ">=0.10"
- }
- },
"node_modules/require-directory": {
"version": "2.1.1",
"resolved": "https://registry.npmjs.org/require-directory/-/require-directory-2.1.1.tgz",
diff --git a/backend/package.json b/backend/package.json
index e4be356d8..3117136a5 100644
--- a/backend/package.json
+++ b/backend/package.json
@@ -94,12 +94,14 @@
"devDependencies": {
"@eslint/js": "^9.36.0",
"@nestjs/cli": "^11.0.10",
+ "@nestjs/schematics": "^11.0.9",
"@types/bcrypt": "^6.0.0",
"@types/body-parser": "^1.19.6",
"@types/cookie-parser": "^1.4.9",
"@types/express": "^5.0.3",
"@types/ioredis": "^4.28.10",
"@types/lodash": "^4.17.20",
+ "@types/multer": "^2.0.0",
"@types/node": "^24.7.2",
"@types/nodemailer": "^7.0.1",
"@types/passport-jwt": "^4.0.1",