feat: Complete NestJS backend scaffold — 22 modules, 39 entities, WebSocket gateway
All checks were successful
Test Asgard Runner / test (push) Successful in 3s
All checks were successful
Test Asgard Runner / test (push) Successful in 3s
Full backend rewrite from Rust/Axum to NestJS/TypeScript. - 22 feature modules (auth, servers, wipes, maps, plugins, players, console, chat, team, notifications, settings, schedules, analytics, alerts, status, store, webstore, admin, setup, migration, users, licenses) - 39 TypeORM entities matching PostgreSQL schema (12 migrations) - Common infrastructure: JWT/RBAC guards, decorators, exception filter - NATS service with pub/sub/request-reply - Socket.IO WebSocket gateway with NATS bridge - Docker: NestJS Dockerfile + updated docker-compose.yml - Zero compile errors (npx tsc --noEmit clean) Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -0,0 +1,42 @@
|
||||
import { IsBoolean, IsInt, IsOptional, Min, Max } from 'class-validator';
|
||||
import { ApiPropertyOptional } from '@nestjs/swagger';
|
||||
|
||||
export class UpdateAlertConfigDto {
|
||||
@ApiPropertyOptional({ description: 'Enable population drop alerts' })
|
||||
@IsOptional()
|
||||
@IsBoolean()
|
||||
population_drop_enabled?: boolean;
|
||||
|
||||
@ApiPropertyOptional({ description: 'Population drop threshold percentage' })
|
||||
@IsOptional()
|
||||
@IsInt()
|
||||
@Min(1)
|
||||
@Max(100)
|
||||
population_drop_threshold_percent?: number;
|
||||
|
||||
@ApiPropertyOptional({ description: 'Enable FPS degradation alerts' })
|
||||
@IsOptional()
|
||||
@IsBoolean()
|
||||
fps_degradation_enabled?: boolean;
|
||||
|
||||
@ApiPropertyOptional({ description: 'FPS threshold for alerts' })
|
||||
@IsOptional()
|
||||
@IsInt()
|
||||
@Min(1)
|
||||
fps_threshold?: number;
|
||||
|
||||
@ApiPropertyOptional({ description: 'Send alerts to Discord' })
|
||||
@IsOptional()
|
||||
@IsBoolean()
|
||||
notify_discord?: boolean;
|
||||
|
||||
@ApiPropertyOptional({ description: 'Send alerts to Pushbullet' })
|
||||
@IsOptional()
|
||||
@IsBoolean()
|
||||
notify_pushbullet?: boolean;
|
||||
|
||||
@ApiPropertyOptional({ description: 'Send alerts via email' })
|
||||
@IsOptional()
|
||||
@IsBoolean()
|
||||
notify_email?: boolean;
|
||||
}
|
||||
Reference in New Issue
Block a user