getEnabledMeasureCatalogues
@nmi-agro/fdm-source / fdm-core/src / getEnabledMeasureCatalogues
Function: getEnabledMeasureCatalogues()
getEnabledMeasureCatalogues(
fdm,principal_id,b_id_farm):Promise<string[]>
Defined in: fdm-core/src/catalogues.ts:492
Gets all enabled measure catalogues for a farm.
Parameters
fdm
PgDatabase
The FDM instance providing the connection to the database. The instance can be created with createFdmServer.
principal_id
any
The ID of the principal making the request.
b_id_farm
any
The ID of the farm.
Returns
Promise<string[]>
A Promise that resolves to an array of enabled measure catalogue sources.
Throws
If retrieving the catalogues fails.