Files
tabungin/apps/api/dist/users/users.controller.d.ts
Dwindi Ramadhana 6a6e74562c checkpoint: goals feature, wallet balance, and goals/wallet detail UI
- Add goals feature (models, migrations, API, web pages)
- Add reserved/centralized wallet balance service
- Add wallet detail page and overview components
- Add new UI components (progress, multi-select, FAB)
- Remove stray empty -H/-d files from working tree
2026-06-17 20:40:00 +07:00

59 lines
1.5 KiB
TypeScript
Executable File

import { UsersService } from './users.service';
interface RequestWithUser extends Request {
user: {
userId: string;
email: string;
};
}
export declare class UsersController {
private readonly users;
constructor(users: UsersService);
me(): Promise<{
id: string;
email: string;
phone: string | null;
createdAt: Date;
updatedAt: Date;
status: string;
name: string | null;
avatarUrl: string | null;
defaultCurrency: string | null;
timeZone: string | null;
emailVerified: boolean;
otpEmailEnabled: boolean;
otpTotpEnabled: boolean;
otpTotpSecret: string | null;
passwordHash: string | null;
otpWhatsappEnabled: boolean;
lastLoginAt: Date | null;
role: string;
suspendedAt: Date | null;
suspendedReason: string | null;
} | null>;
updateProfile(req: RequestWithUser, body: {
name?: string;
phone?: string;
}): Promise<{
success: boolean;
message: string;
user: {
id: string;
email: string;
phone: string | null;
name: string | null;
avatarUrl: string | null;
};
}>;
getAuthInfo(req: RequestWithUser): Promise<{
hasGoogleAuth: boolean;
hasPassword: boolean;
}>;
deleteAccount(req: RequestWithUser, body: {
password: string;
}): Promise<{
success: boolean;
message: string;
}>;
}
export {};