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:
16
apps/api/dist/wallets/wallets.controller.d.ts
vendored
16
apps/api/dist/wallets/wallets.controller.d.ts
vendored
@@ -1,10 +1,15 @@
|
||||
import { WalletsService } from './wallets.service';
|
||||
import { TransactionsService } from '../transactions/transactions.service';
|
||||
interface RequestWithUser {
|
||||
user: {
|
||||
userId: string;
|
||||
};
|
||||
}
|
||||
export declare class WalletsController {
|
||||
private readonly wallets;
|
||||
private readonly transactions;
|
||||
constructor(wallets: WalletsService, transactions: TransactionsService);
|
||||
list(): import("@prisma/client").Prisma.PrismaPromise<{
|
||||
list(req: RequestWithUser): import("@prisma/client").Prisma.PrismaPromise<{
|
||||
id: string;
|
||||
createdAt: Date;
|
||||
updatedAt: Date;
|
||||
@@ -17,7 +22,7 @@ export declare class WalletsController {
|
||||
pricePerUnit: import("@prisma/client/runtime/library").Decimal | null;
|
||||
deletedAt: Date | null;
|
||||
}[]>;
|
||||
getAllTransactions(): Promise<{
|
||||
getAllTransactions(req: RequestWithUser): Promise<{
|
||||
category: string | null;
|
||||
id: string;
|
||||
createdAt: Date;
|
||||
@@ -29,7 +34,7 @@ export declare class WalletsController {
|
||||
walletId: string;
|
||||
recurrenceId: string | null;
|
||||
}[]>;
|
||||
create(body: {
|
||||
create(req: RequestWithUser, body: {
|
||||
name: string;
|
||||
currency?: string;
|
||||
kind?: 'money' | 'asset';
|
||||
@@ -51,7 +56,7 @@ export declare class WalletsController {
|
||||
}, never, import("@prisma/client/runtime/library").DefaultArgs, import("@prisma/client").Prisma.PrismaClientOptions> | {
|
||||
error: string;
|
||||
};
|
||||
update(id: string, body: {
|
||||
update(req: RequestWithUser, id: string, body: {
|
||||
name?: string;
|
||||
currency?: string;
|
||||
kind?: 'money' | 'asset';
|
||||
@@ -71,7 +76,7 @@ export declare class WalletsController {
|
||||
pricePerUnit: import("@prisma/client/runtime/library").Decimal | null;
|
||||
deletedAt: Date | null;
|
||||
}, never, import("@prisma/client/runtime/library").DefaultArgs, import("@prisma/client").Prisma.PrismaClientOptions>;
|
||||
delete(id: string): import("@prisma/client").Prisma.Prisma__WalletClient<{
|
||||
delete(req: RequestWithUser, id: string): import("@prisma/client").Prisma.Prisma__WalletClient<{
|
||||
id: string;
|
||||
createdAt: Date;
|
||||
updatedAt: Date;
|
||||
@@ -85,3 +90,4 @@ export declare class WalletsController {
|
||||
deletedAt: Date | null;
|
||||
}, never, import("@prisma/client/runtime/library").DefaultArgs, import("@prisma/client").Prisma.PrismaClientOptions>;
|
||||
}
|
||||
export {};
|
||||
|
||||
Reference in New Issue
Block a user