Supplier name to match against entry metadata.
Count of entries whose supplier field equals supplierName.
const extra = await countExcludedProductsForSupplier("Loudwolf");
const results = await this.queryProductsWithCache(query, limit + extra);
export async function countExcludedProductsForSupplier(supplierName: string): Promise<number> {
const map = await loadExcludedProducts();
let count = 0;
for (const entry of Object.values(map)) {
if (entry.supplier === supplierName) count++;
}
return count;
}
Count how many excluded entries were ignored from a given supplier. Used by
SupplierBase.executeto over-fetch fromqueryProductsso that dropping previously-ignored rows still leaves the caller withlimitsurvivors instead of a short list.