86211923db
Repository Interface Optimization: - Created IBaseRepository.ts and IPaginatedRepository.ts - Refactored all 7 repository interfaces to extend base interfaces - Eliminated ~200 lines of redundant code (70% reduction) - Improved type safety and maintainability Dependency Injection Improvements: - Added EmailService and GameTokenService to DIContainer - Updated CreateUserCommandHandler constructor for DI - Updated RequestPasswordResetCommandHandler constructor for DI - Enhanced testability and service consistency Environment Configuration: - Created comprehensive .env.example with 40+ variables - Organized into 12 logical sections (Database, Security, Email, etc.) - Added security guidelines and best practices - Documented all backend environment requirements Documentation: - Added comprehensive codebase review - Created refactoring summary report - Added frontend implementation guide Impact: Improved code quality, reduced maintenance overhead, enhanced developer experience
49 lines
967 B
TypeScript
49 lines
967 B
TypeScript
export interface CreateOrganizationDto {
|
|
name: string;
|
|
description?: string;
|
|
maxOrganizationalDecks?: number | null;
|
|
}
|
|
|
|
export interface UpdateOrganizationDto {
|
|
id: string;
|
|
name?: string;
|
|
description?: string;
|
|
}
|
|
|
|
export interface ShortOrganizationDto {
|
|
id: string;
|
|
name: string;
|
|
state: number;
|
|
userinorg: number;
|
|
maxOrganizationalDecks?: number | null;
|
|
}
|
|
|
|
export interface DetailOrganizationDto {
|
|
id: string;
|
|
name: string;
|
|
contactfname: string;
|
|
contactlname: string;
|
|
contactphone: string;
|
|
contactemail: string;
|
|
state: number;
|
|
regdate: Date;
|
|
updatedate: Date;
|
|
url: string | null;
|
|
userinorg: number;
|
|
maxOrganizationalDecks: number | null;
|
|
users: string[];
|
|
}
|
|
|
|
export interface OrganizationLoginUrlDto {
|
|
organizationId: string;
|
|
organizationName: string;
|
|
loginUrl: string;
|
|
}
|
|
|
|
export interface OrganizationAuthCallbackDto {
|
|
organizationId: string;
|
|
userId: string;
|
|
status: 'ok' | 'not_ok';
|
|
authToken?: string;
|
|
}
|