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