first commit
This commit is contained in:
61
apps/api/dist/transactions/transactions.controller.d.ts
vendored
Normal file
61
apps/api/dist/transactions/transactions.controller.d.ts
vendored
Normal file
@@ -0,0 +1,61 @@
|
||||
import type { Response } from 'express';
|
||||
import { TransactionsService } from './transactions.service';
|
||||
export declare class TransactionsController {
|
||||
private readonly tx;
|
||||
constructor(tx: TransactionsService);
|
||||
list(walletId: string): import("@prisma/client").Prisma.PrismaPromise<{
|
||||
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(walletId: string, body: {
|
||||
amount: number | string;
|
||||
direction: 'in' | 'out';
|
||||
date?: string;
|
||||
category?: string;
|
||||
memo?: string;
|
||||
}): 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;
|
||||
}>;
|
||||
exportCsv(walletId: string, from: string | undefined, to: string | undefined, category: string | undefined, direction: 'in' | 'out' | undefined, res: Response): Promise<void>;
|
||||
update(walletId: string, id: string, body: unknown): 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;
|
||||
}>;
|
||||
delete(walletId: string, id: string): 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;
|
||||
}>;
|
||||
}
|
||||
Reference in New Issue
Block a user