chore: apply lint auto-fixes from pre-commit hook

Auto-fixed import ordering and consistent type imports across 15 API
module files (admin, agents, auth, inquiries, leads, mcp, metrics,
shared, subscriptions).

Co-Authored-By: Paperclip <noreply@paperclip.ing>
This commit is contained in:
Ho Ngoc Hai
2026-04-12 20:18:06 +07:00
parent db7147a95d
commit 4f406dab02
15 changed files with 18 additions and 18 deletions

View File

@@ -1,6 +1,6 @@
import { Inject, Injectable } from '@nestjs/common';
import { OnEvent } from '@nestjs/event-emitter';
import { type LoggerService } from '@modules/shared';
import { LoggerService } from '@modules/shared';
import { type KycApprovedEvent } from '../../domain/events/kyc-approved.event';
import { type KycRejectedEvent } from '../../domain/events/kyc-rejected.event';
import { type ListingApprovedEvent } from '../../domain/events/listing-approved.event';

View File

@@ -1,4 +1,4 @@
import { type PrismaService } from '@modules/shared';
import { PrismaService } from '@modules/shared';
import {
type DashboardStats,
type RevenueStatsItem,

View File

@@ -1,5 +1,5 @@
import { type Prisma, type UserRole } from '@prisma/client';
import { type PrismaService } from '@modules/shared';
import { PrismaService } from '@modules/shared';
import {
type UserListResult,
type UserDetail,

View File

@@ -1,5 +1,5 @@
import { Injectable } from '@nestjs/common';
import { type PrismaService } from '@modules/shared';
import { PrismaService } from '@modules/shared';
import {
type IAdminQueryRepository,
type ModerationQueueResult,

View File

@@ -1,6 +1,6 @@
import { Injectable } from '@nestjs/common';
import { type AdminAction, type AuditTargetType, type Prisma } from '@prisma/client';
import { type PrismaService } from '@modules/shared';
import { PrismaService } from '@modules/shared';
import {
type IAuditLogRepository,
type AuditLogEntry,

View File

@@ -1,5 +1,5 @@
import { Injectable } from '@nestjs/common';
import { type CommandBus } from '@nestjs/cqrs';
import { CommandBus } from '@nestjs/cqrs';
import { OnEvent } from '@nestjs/event-emitter';
import { LoggerService } from '@modules/shared';
import { RecalculateQualityScoreCommand } from '../commands/recalculate-quality-score/recalculate-quality-score.command';

View File

@@ -1,5 +1,5 @@
import { Injectable, type CanActivate, type ExecutionContext } from '@nestjs/common';
import { type Reflector } from '@nestjs/core';
import { Reflector } from '@nestjs/core';
import { type UserRole } from '@prisma/client';
import { LoggerService } from '@modules/shared';
import { ROLES_KEY } from '../decorators/roles.decorator';

View File

@@ -1,6 +1,6 @@
import { Injectable } from '@nestjs/common';
import { type Inquiry as PrismaInquiry } from '@prisma/client';
import { type PrismaService } from '@modules/shared';
import { PrismaService } from '@modules/shared';
import { InquiryEntity } from '../../domain/entities/inquiry.entity';
import { type InquiryReadDto } from '../../domain/repositories/inquiry-read.dto';
import { type IInquiryRepository, type PaginatedResult } from '../../domain/repositories/inquiry.repository';

View File

@@ -1,6 +1,6 @@
import { Injectable } from '@nestjs/common';
import { type Lead as PrismaLead } from '@prisma/client';
import { type PrismaService } from '@modules/shared';
import { PrismaService } from '@modules/shared';
import { LeadEntity, type LeadStatus } from '../../domain/entities/lead.entity';
import { type LeadReadDto } from '../../domain/repositories/lead-read.dto';
import { type ILeadRepository, type LeadStatsData, type PaginatedResult } from '../../domain/repositories/lead.repository';

View File

@@ -1,8 +1,8 @@
import { McpModule as McpCoreModule, type McpRegistryService } from '@goodgo/mcp-servers';
import { McpModule as McpCoreModule, McpRegistryService } from '@goodgo/mcp-servers';
import { Module, type OnModuleInit } from '@nestjs/common';
import { AuthModule } from '@modules/auth';
import { SearchModule, type TypesenseClientService } from '@modules/search';
import { type LoggerService } from '@modules/shared';
import { SearchModule, TypesenseClientService } from '@modules/search';
import { LoggerService } from '@modules/shared';
import { McpTransportController } from './presentation/mcp-transport.controller';
@Module({

View File

@@ -7,7 +7,7 @@ import {
Logger,
} from '@nestjs/common';
import { ApiTags, ApiOperation, ApiResponse } from '@nestjs/swagger';
import { type MetricsService } from '../../infrastructure/metrics.service';
import { MetricsService } from '../../infrastructure/metrics.service';
import { type WebVitalsBatchDto } from '../dto/web-vitals.dto';
/**

View File

@@ -5,7 +5,7 @@ import {
HttpException,
HttpStatus,
} from '@nestjs/common';
import { type Reflector } from '@nestjs/core';
import { Reflector } from '@nestjs/core';
import { type Request, type Response } from 'express';
import {
ENDPOINT_RATE_LIMIT_KEY,

View File

@@ -5,7 +5,7 @@ import {
HttpException,
HttpStatus,
} from '@nestjs/common';
import { type Reflector } from '@nestjs/core';
import { Reflector } from '@nestjs/core';
import { type UserRole } from '@prisma/client';
import { LoggerService } from '../logger.service';
import { RedisService } from '../redis.service';

View File

@@ -1,8 +1,8 @@
import { Injectable } from '@nestjs/common';
import { type CommandBus } from '@nestjs/cqrs';
import { CommandBus } from '@nestjs/cqrs';
import { OnEvent } from '@nestjs/event-emitter';
import { type ListingCreatedEvent } from '@modules/listings';
import { type LoggerService } from '@modules/shared';
import { LoggerService } from '@modules/shared';
import { MeterUsageCommand } from '../../application/commands/meter-usage/meter-usage.command';
@Injectable()

View File

@@ -1,6 +1,6 @@
import { Injectable } from '@nestjs/common';
import { type Subscription as PrismaSubscription, type Plan as PrismaPlan } from '@prisma/client';
import { type PrismaService } from '@modules/shared';
import { PrismaService } from '@modules/shared';
import { SubscriptionEntity, type SubscriptionProps } from '../../domain/entities/subscription.entity';
import { type ISubscriptionRepository } from '../../domain/repositories/subscription.repository';