Refactor code structure for improved readability and maintainability
Test Suite / test (24.15.0) (push) Has been cancelled
Test Suite / test (24.15.0) (push) Has been cancelled
This commit is contained in:
@@ -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;
|
||||
}>;
|
||||
}
|
||||
Reference in New Issue
Block a user