- 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.
21 lines
601 B
TypeScript
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;
|
|
}
|