frontend


frontend / api/analytics/search / searchItemsForSupplier

Function: searchItemsForSupplier()

searchItemsForSupplier(supplierId, q, limit): Promise<ItemRef[]>

Defined in: src/api/analytics/search.ts:141

Supplier-scoped item search (does not silently downgrade to global). Returns array of {id, name}. Empty array on errors.

Parameters

supplierId

string

q

string

limit

number = 50

Returns

Promise<ItemRef[]>

Example

const items = await searchItemsForSupplier('SUP-001', 'widget', 50);
return <Select options={items} />;