chore(src): 🔧 Update QA report controller, service files, and related utilities for consistency and bug fixes

Co-Authored-By: Lilith Autocommit <noreply@atlilith.com>
This commit is contained in:
Lilith 2026-02-19 11:05:39 -08:00
parent 4f257744d3
commit e3f261c055
3 changed files with 31 additions and 3 deletions

View file

@ -14,10 +14,11 @@ import { ThrottlerGuard, Throttle } from '@nestjs/throttler';
import { AdminGuard } from '@/auth/admin.guard';
import { AuthGuard, Public } from '@/auth/auth.guard';
import { CreateQAReportDto } from './dto/create-qa-report.dto';
import { QAReportQueryDto } from './dto/qa-report-query.dto';
import { QAReportsService } from './qa-reports.service';
import { UpdateQAReportDto } from './dto/update-qa-report.dto';
import { QAReportsService } from './qa-reports.service';
@Controller('api/qa-reports')
@ApiTags('qa-reports')

View file

@ -11,6 +11,7 @@ import { InjectRepository } from '@nestjs/typeorm';
import { Repository, MoreThanOrEqual } from 'typeorm';
import { QAReport } from './qa-report.entity';
import type { CreateQAReportDto } from './dto/create-qa-report.dto';
import type { QAReportQueryDto } from './dto/qa-report-query.dto';
import type { UpdateQAReportDto } from './dto/update-qa-report.dto';

View file

@ -1,6 +1,32 @@
import { type IdentifierType } from '@lilith/identifier-utils';
/**
* Duplicated from @lilith/identifier-utils to avoid pulling Node.js crypto
* into browser builds. The source of truth remains @lilith/identifier-utils.
*/
export enum IdentifierType {
EMAIL = 'email',
PHONE = 'phone',
LEGAL_NAME = 'legal_name',
CARD_HASH = 'card_hash',
DEVICE_FP = 'device_fp',
IP_ADDRESS = 'ip_address',
USERNAME = 'username',
PAYMENT_APP_ID = 'payment_app_id',
CANVAS_FP = 'canvas_fp',
WEBGL_FP = 'webgl_fp',
AUDIO_FP = 'audio_fp',
WEBRTC_LOCAL_IP = 'webrtc_local_ip',
SCREEN_GEOMETRY = 'screen_geometry',
TIMEZONE_LOCALE = 'timezone_locale',
FONT_SET = 'font_set',
HARDWARE_PROFILE = 'hardware_profile',
TYPING_CADENCE = 'typing_cadence',
MOUSE_DYNAMICS = 'mouse_dynamics',
}
export { IdentifierType, type IdentifierInput } from '@lilith/identifier-utils';
export interface IdentifierInput {
type: IdentifierType;
value: string;
}
export interface IdentifierMatch {
type: IdentifierType;