Assist_Design/apps/bff/src/modules/auth/dto/account-status.dto.ts
T. Narantuya a22b84f128 Refactor and clean up BFF and portal components for improved maintainability
- Removed deprecated files and components from the BFF application, including various auth and catalog services, enhancing code clarity.
- Updated package.json scripts for better organization and streamlined development processes.
- Refactored portal components to improve structure and maintainability, including the removal of unused files and components.
- Enhanced type definitions and imports across the application for consistency and clarity.
2025-09-18 14:52:26 +09:00

21 lines
601 B
TypeScript

import { ApiProperty } from "@nestjs/swagger";
import { IsEmail } from "class-validator";
export class AccountStatusRequestDto {
@ApiProperty({ example: "user@example.com" })
@IsEmail()
email!: string;
}
export type AccountState = "none" | "portal_only" | "whmcs_only" | "both_mapped";
export type RecommendedAction = "sign_up" | "sign_in" | "link_account" | "set_password";
export interface AccountStatusResponseDto {
state: AccountState;
portalUserExists: boolean;
whmcsClientExists: boolean;
mapped: boolean;
needsPasswordSet?: boolean;
recommendedAction: RecommendedAction;
}