66 lines
1.8 KiB
TypeScript
66 lines
1.8 KiB
TypeScript
import { PantryService } from './pantry.service';
|
|
import { CreatePantryItemDto } from './dto/create-pantry-item.dto';
|
|
export declare class PantryController {
|
|
private readonly pantryService;
|
|
constructor(pantryService: PantryService);
|
|
findAll(user: {
|
|
userId: number;
|
|
}): import(".prisma/client").Prisma.PrismaPromise<({
|
|
product: {
|
|
category: string | null;
|
|
status: string;
|
|
name: string;
|
|
categoryId: number | null;
|
|
canonicalName: string | null;
|
|
id: number;
|
|
normalizedName: string;
|
|
isActive: boolean;
|
|
deletedAt: Date | null;
|
|
createdAt: Date;
|
|
updatedAt: Date;
|
|
ownerId: number;
|
|
isPrivate: boolean;
|
|
};
|
|
} & {
|
|
id: number;
|
|
createdAt: Date;
|
|
updatedAt: Date;
|
|
productId: number;
|
|
userId: number;
|
|
})[]>;
|
|
create(user: {
|
|
userId: number;
|
|
}, body: CreatePantryItemDto): Promise<{
|
|
product: {
|
|
category: string | null;
|
|
status: string;
|
|
name: string;
|
|
categoryId: number | null;
|
|
canonicalName: string | null;
|
|
id: number;
|
|
normalizedName: string;
|
|
isActive: boolean;
|
|
deletedAt: Date | null;
|
|
createdAt: Date;
|
|
updatedAt: Date;
|
|
ownerId: number;
|
|
isPrivate: boolean;
|
|
};
|
|
} & {
|
|
id: number;
|
|
createdAt: Date;
|
|
updatedAt: Date;
|
|
productId: number;
|
|
userId: number;
|
|
}>;
|
|
remove(user: {
|
|
userId: number;
|
|
}, id: number): Promise<{
|
|
id: number;
|
|
createdAt: Date;
|
|
updatedAt: Date;
|
|
productId: number;
|
|
userId: number;
|
|
}>;
|
|
}
|