Files
tabungin/apps/api/dist/transactions/transactions.service.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

91 lines
2.6 KiB
TypeScript
Executable File

import { PrismaService } from '../prisma/prisma.service';
import { Prisma } from '@prisma/client';
import type { TransactionUpdateDto } from './transaction.dto';
export declare class TransactionsService {
private prisma;
constructor(prisma: PrismaService);
list(userId: string, walletId: string): Prisma.PrismaPromise<{
category: string | null;
id: string;
createdAt: Date;
userId: string;
amount: Prisma.Decimal;
direction: string;
date: Date;
memo: string | null;
walletId: string;
recurrenceId: string | null;
}[]>;
listAll(userId: string): Prisma.PrismaPromise<{
category: string | null;
id: string;
createdAt: Date;
userId: string;
amount: Prisma.Decimal;
direction: string;
date: Date;
memo: string | null;
walletId: string;
recurrenceId: string | null;
}[]>;
listWithFilters(userId: string, walletId: string, filters: {
from?: string;
to?: string;
category?: string;
direction?: 'in' | 'out';
}): Prisma.PrismaPromise<{
category: string | null;
id: string;
createdAt: Date;
userId: string;
amount: Prisma.Decimal;
direction: string;
date: Date;
memo: string | null;
walletId: string;
recurrenceId: string | null;
}[]>;
create(userId: string, walletId: string, input: {
amount: string | number;
direction: 'in' | 'out';
date?: string;
category?: string;
memo?: string;
}): Promise<{
category: string | null;
id: string;
createdAt: Date;
userId: string;
amount: Prisma.Decimal;
direction: string;
date: Date;
memo: string | null;
walletId: string;
recurrenceId: string | null;
}>;
update(userId: string, walletId: string, id: string, dto: TransactionUpdateDto): Promise<{
category: string | null;
id: string;
createdAt: Date;
userId: string;
amount: Prisma.Decimal;
direction: string;
date: Date;
memo: string | null;
walletId: string;
recurrenceId: string | null;
}>;
delete(userId: string, walletId: string, id: string): Promise<{
category: string | null;
id: string;
createdAt: Date;
userId: string;
amount: Prisma.Decimal;
direction: string;
date: Date;
memo: string | null;
walletId: string;
recurrenceId: string | null;
}>;
}