first commit
This commit is contained in:
91
apps/api/dist/transactions/transactions.service.d.ts
vendored
Normal file
91
apps/api/dist/transactions/transactions.service.d.ts
vendored
Normal file
@@ -0,0 +1,91 @@
|
||||
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);
|
||||
private userId;
|
||||
list(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(): 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(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(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(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(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;
|
||||
}>;
|
||||
}
|
||||
Reference in New Issue
Block a user