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>
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;
|
|
id: number;
|
|
canonicalName: string | null;
|
|
};
|
|
} & {
|
|
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;
|
|
}>;
|
|
}
|