- Reorganized admin settings into tabbed interface (General, Security, Payment Methods) - Vertical tabs on desktop, horizontal scrollable on mobile - Moved Payment Methods from separate menu to Settings tab - Fixed admin profile reuse and dashboard blocking - Fixed maintenance mode guard to use AppConfig model - Added admin auto-redirect after login (admins → /admin, users → /) - Reorganized documentation into docs/ folder structure - Created comprehensive README and documentation index - Added PWA and Web Push notifications to to-do list
118 lines
4.1 KiB
TypeScript
118 lines
4.1 KiB
TypeScript
import { WalletsService } from './wallets.service';
|
|
import { TransactionsService } from '../transactions/transactions.service';
|
|
interface RequestWithUser {
|
|
user: {
|
|
userId: string;
|
|
};
|
|
}
|
|
export declare class WalletsController {
|
|
private readonly wallets;
|
|
private readonly transactions;
|
|
constructor(wallets: WalletsService, transactions: TransactionsService);
|
|
list(req: RequestWithUser): import("@prisma/client").Prisma.PrismaPromise<{
|
|
id: string;
|
|
createdAt: Date;
|
|
updatedAt: Date;
|
|
name: string;
|
|
userId: string;
|
|
kind: string;
|
|
currency: string | null;
|
|
unit: string | null;
|
|
initialAmount: import("@prisma/client/runtime/library").Decimal | null;
|
|
pricePerUnit: import("@prisma/client/runtime/library").Decimal | null;
|
|
deletedAt: Date | null;
|
|
}[]>;
|
|
getAllTransactions(req: RequestWithUser): Promise<{
|
|
category: string | null;
|
|
id: string;
|
|
createdAt: Date;
|
|
userId: string;
|
|
amount: import("@prisma/client/runtime/library").Decimal;
|
|
direction: string;
|
|
date: Date;
|
|
memo: string | null;
|
|
walletId: string;
|
|
recurrenceId: string | null;
|
|
}[]>;
|
|
create(req: RequestWithUser, body: {
|
|
name: string;
|
|
currency?: string;
|
|
kind?: 'money' | 'asset';
|
|
unit?: string;
|
|
initialAmount?: number;
|
|
pricePerUnit?: number;
|
|
}): import("@prisma/client").Prisma.Prisma__WalletClient<{
|
|
id: string;
|
|
createdAt: Date;
|
|
updatedAt: Date;
|
|
name: string;
|
|
userId: string;
|
|
kind: string;
|
|
currency: string | null;
|
|
unit: string | null;
|
|
initialAmount: import("@prisma/client/runtime/library").Decimal | null;
|
|
pricePerUnit: import("@prisma/client/runtime/library").Decimal | null;
|
|
deletedAt: Date | null;
|
|
}, never, import("@prisma/client/runtime/library").DefaultArgs, import("@prisma/client").Prisma.PrismaClientOptions> | {
|
|
error: string;
|
|
};
|
|
update(req: RequestWithUser, id: string, body: {
|
|
name?: string;
|
|
currency?: string;
|
|
kind?: 'money' | 'asset';
|
|
unit?: string;
|
|
initialAmount?: number;
|
|
pricePerUnit?: number;
|
|
}): import("@prisma/client").Prisma.Prisma__WalletClient<{
|
|
id: string;
|
|
createdAt: Date;
|
|
updatedAt: Date;
|
|
name: string;
|
|
userId: string;
|
|
kind: string;
|
|
currency: string | null;
|
|
unit: string | null;
|
|
initialAmount: import("@prisma/client/runtime/library").Decimal | null;
|
|
pricePerUnit: import("@prisma/client/runtime/library").Decimal | null;
|
|
deletedAt: Date | null;
|
|
}, never, import("@prisma/client/runtime/library").DefaultArgs, import("@prisma/client").Prisma.PrismaClientOptions>;
|
|
bulkUpdatePrices(req: RequestWithUser, body: {
|
|
updates: Array<{
|
|
walletId: string;
|
|
pricePerUnit: number;
|
|
}>;
|
|
}): Promise<{
|
|
success: boolean;
|
|
updated: number;
|
|
wallets: {
|
|
id: string;
|
|
createdAt: Date;
|
|
updatedAt: Date;
|
|
name: string;
|
|
userId: string;
|
|
kind: string;
|
|
currency: string | null;
|
|
unit: string | null;
|
|
initialAmount: import("@prisma/client/runtime/library").Decimal | null;
|
|
pricePerUnit: import("@prisma/client/runtime/library").Decimal | null;
|
|
deletedAt: Date | null;
|
|
}[];
|
|
}> | {
|
|
error: string;
|
|
};
|
|
delete(req: RequestWithUser, id: string): import("@prisma/client").Prisma.Prisma__WalletClient<{
|
|
id: string;
|
|
createdAt: Date;
|
|
updatedAt: Date;
|
|
name: string;
|
|
userId: string;
|
|
kind: string;
|
|
currency: string | null;
|
|
unit: string | null;
|
|
initialAmount: import("@prisma/client/runtime/library").Decimal | null;
|
|
pricePerUnit: import("@prisma/client/runtime/library").Decimal | null;
|
|
deletedAt: Date | null;
|
|
}, never, import("@prisma/client/runtime/library").DefaultArgs, import("@prisma/client").Prisma.PrismaClientOptions>;
|
|
}
|
|
export {};
|