Function: getFertilizersCatalogue()
getFertilizersCatalogue(
catalogueName
):Promise
<CatalogueFertilizer
>
Defined in: fdm-data/src/fertilizers/index.ts:24
Retrieves a fertilizer catalogue based on the specified name.
This function acts as a dispatcher, selecting and returning the appropriate
fertilizer catalogue based on the provided catalogueName
.
Parameters
catalogueName
"srm"
The name of the desired fertilizer catalogue. Currently supported names are: "srm".
Returns
Promise
<CatalogueFertilizer
>
An array of CatalogueFertilizerItem
objects representing the
requested fertilizer catalogue.
Throws
Throws an error if the provided catalogueName
is not
recognized or supported.
Example
const srmCatalogue = await getFertilizersCatalogue("srm");
console.log(srmCatalogue);