46 lines
1.2 KiB
TypeScript
46 lines
1.2 KiB
TypeScript
import { ReceiptAliasService } from './receipt-alias.service';
|
|
import { CreateReceiptAliasDto } from './dto/create-receipt-alias.dto';
|
|
export declare class ReceiptAliasController {
|
|
private readonly receiptAliasService;
|
|
constructor(receiptAliasService: ReceiptAliasService);
|
|
findAll(user: {
|
|
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, user: {
|
|
userId: number;
|
|
role: string;
|
|
}): Promise<{
|
|
id: number;
|
|
createdAt: Date;
|
|
ownerId: number | null;
|
|
productId: number;
|
|
receiptName: string;
|
|
isGlobal: boolean;
|
|
}>;
|
|
remove(id: number, user: {
|
|
userId: number;
|
|
role: string;
|
|
}): Promise<{
|
|
id: number;
|
|
createdAt: Date;
|
|
ownerId: number | null;
|
|
productId: number;
|
|
receiptName: string;
|
|
isGlobal: boolean;
|
|
}>;
|
|
}
|