Refactor code structure for improved readability and maintainability
Test Suite / test (24.15.0) (push) Has been cancelled

This commit is contained in:
Nils-Johan Gynther
2026-05-06 07:37:59 +02:00
parent e4f201ea36
commit 969dafdbc6
273 changed files with 11357 additions and 39 deletions
+37
View File
@@ -0,0 +1,37 @@
import { PrismaService } from '../prisma/prisma.service';
import { CreateReceiptAliasDto } from './dto/create-receipt-alias.dto';
export declare class ReceiptAliasService {
private readonly prisma;
constructor(prisma: PrismaService);
findAllForUser(userId: number, role: string): import(".prisma/client").Prisma.PrismaPromise<({
product: {
name: string;
canonicalName: string | null;
id: number;
};
} & {
id: number;
createdAt: Date;
ownerId: number | null;
productId: number;
receiptName: string;
isGlobal: boolean;
})[]>;
upsert(dto: CreateReceiptAliasDto, userId: number, role: string): Promise<{
id: number;
createdAt: Date;
ownerId: number | null;
productId: number;
receiptName: string;
isGlobal: boolean;
}>;
private upsertAliasRecord;
remove(id: number, userId: number, role: string): Promise<{
id: number;
createdAt: Date;
ownerId: number | null;
productId: number;
receiptName: string;
isGlobal: boolean;
}>;
}