getEnabledCultivationCataloguesForFarms
@nmi-agro/fdm-source / fdm-core/src / getEnabledCultivationCataloguesForFarms
Function: getEnabledCultivationCataloguesForFarms()
getEnabledCultivationCataloguesForFarms(
fdm,principal_id,farmIds):Promise<Record<string,string[]>>
Defined in: fdm-core/src/catalogues.ts:165
Gets all enabled cultivation catalogues for multiple farms.
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.
farmIds
any[]
The IDs of the farms.
Returns
Promise<Record<string, string[]>>
A Promise that resolves to a record mapping each farm ID to an array of its enabled cultivation catalogue sources.
Throws
If retrieving the catalogues fails.