feat: remove OTP gate from transactions, fix categories auth, add implementation plan
- Remove OtpGateGuard from transactions controller (OTP verified at login) - Fix categories controller to use authenticated user instead of TEMP_USER_ID - Add comprehensive implementation plan document - Update .env.example with WEB_APP_URL - Prepare for admin dashboard development
This commit is contained in:
@@ -4,8 +4,7 @@ import type { TransactionUpdateDto } from './transaction.dto';
|
||||
export declare class TransactionsService {
|
||||
private prisma;
|
||||
constructor(prisma: PrismaService);
|
||||
private userId;
|
||||
list(walletId: string): Prisma.PrismaPromise<{
|
||||
list(userId: string, walletId: string): Prisma.PrismaPromise<{
|
||||
category: string | null;
|
||||
id: string;
|
||||
createdAt: Date;
|
||||
@@ -17,7 +16,7 @@ export declare class TransactionsService {
|
||||
walletId: string;
|
||||
recurrenceId: string | null;
|
||||
}[]>;
|
||||
listAll(): Prisma.PrismaPromise<{
|
||||
listAll(userId: string): Prisma.PrismaPromise<{
|
||||
category: string | null;
|
||||
id: string;
|
||||
createdAt: Date;
|
||||
@@ -29,7 +28,7 @@ export declare class TransactionsService {
|
||||
walletId: string;
|
||||
recurrenceId: string | null;
|
||||
}[]>;
|
||||
listWithFilters(walletId: string, filters: {
|
||||
listWithFilters(userId: string, walletId: string, filters: {
|
||||
from?: string;
|
||||
to?: string;
|
||||
category?: string;
|
||||
@@ -46,7 +45,7 @@ export declare class TransactionsService {
|
||||
walletId: string;
|
||||
recurrenceId: string | null;
|
||||
}[]>;
|
||||
create(walletId: string, input: {
|
||||
create(userId: string, walletId: string, input: {
|
||||
amount: string | number;
|
||||
direction: 'in' | 'out';
|
||||
date?: string;
|
||||
@@ -64,7 +63,7 @@ export declare class TransactionsService {
|
||||
walletId: string;
|
||||
recurrenceId: string | null;
|
||||
}>;
|
||||
update(walletId: string, id: string, dto: TransactionUpdateDto): Promise<{
|
||||
update(userId: string, walletId: string, id: string, dto: TransactionUpdateDto): Promise<{
|
||||
category: string | null;
|
||||
id: string;
|
||||
createdAt: Date;
|
||||
@@ -76,7 +75,7 @@ export declare class TransactionsService {
|
||||
walletId: string;
|
||||
recurrenceId: string | null;
|
||||
}>;
|
||||
delete(walletId: string, id: string): Promise<{
|
||||
delete(userId: string, walletId: string, id: string): Promise<{
|
||||
category: string | null;
|
||||
id: string;
|
||||
createdAt: Date;
|
||||
|
||||
Reference in New Issue
Block a user