04b1fc3024
Test Suite / test (24.15.0) (push) Has been cancelled
- Added a new API path for rematching recipe ingredients in `api_paths.dart`. - Implemented a manual product creation dialog in `inventory_screen.dart` to allow users to create new products directly. - Integrated the rematch functionality in `recipe_repository.dart` to handle rematching of recipe ingredients. - Updated the recipe detail screen to include a button for triggering the rematch process. - Introduced a new `RecipeMatchingService` in the backend to handle ingredient matching logic. - Added database migration to include `aiEngineEnabled` column in the User table. Co-authored-by: Copilot <copilot@github.com>
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;
|
|
id: number;
|
|
canonicalName: string | null;
|
|
};
|
|
} & {
|
|
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;
|
|
}>;
|
|
}
|