38 lines
1.1 KiB
TypeScript
38 lines
1.1 KiB
TypeScript
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;
|
|
}>;
|
|
}
|