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
This commit is contained in:
21
apps/api/dist/wallets/wallet-balance.service.d.ts
vendored
Executable file
21
apps/api/dist/wallets/wallet-balance.service.d.ts
vendored
Executable file
@@ -0,0 +1,21 @@
|
||||
import { PrismaService } from '../prisma/prisma.service';
|
||||
import { Decimal } from '@prisma/client/runtime/library';
|
||||
export interface WalletBalance {
|
||||
walletId: string;
|
||||
kind: string;
|
||||
currency?: string;
|
||||
unit?: string;
|
||||
totalBalance: Decimal;
|
||||
reservedBalance: Decimal;
|
||||
availableBalance: Decimal;
|
||||
totalUnits?: Decimal;
|
||||
pricePerUnit?: Decimal;
|
||||
totalValue?: Decimal;
|
||||
}
|
||||
export declare class WalletBalanceService {
|
||||
private prisma;
|
||||
constructor(prisma: PrismaService);
|
||||
calculateBalance(walletId: string): Promise<WalletBalance>;
|
||||
calculateMultipleBalances(walletIds: string[]): Promise<WalletBalance[]>;
|
||||
getAllUserWalletBalances(userId: string): Promise<WalletBalance[]>;
|
||||
}
|
||||
Reference in New Issue
Block a user