- 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
50 lines
1.4 KiB
TypeScript
Executable File
50 lines
1.4 KiB
TypeScript
Executable File
import { PrismaService } from '../prisma/prisma.service';
|
|
export declare class UsersService {
|
|
private prisma;
|
|
constructor(prisma: PrismaService);
|
|
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(userId: string, data: {
|
|
name?: string;
|
|
phone?: string;
|
|
}): Promise<{
|
|
success: boolean;
|
|
message: string;
|
|
user: {
|
|
id: string;
|
|
email: string;
|
|
phone: string | null;
|
|
name: string | null;
|
|
avatarUrl: string | null;
|
|
};
|
|
}>;
|
|
getAuthInfo(userId: string): Promise<{
|
|
hasGoogleAuth: boolean;
|
|
hasPassword: boolean;
|
|
}>;
|
|
deleteAccount(userId: string, password: string): Promise<{
|
|
success: boolean;
|
|
message: string;
|
|
}>;
|
|
}
|