NSupplyComputeInput
@nmi-agro/fdm-source / fdm-calculator/src / NSupplyComputeInput
Interface: NSupplyComputeInput
Defined in: fdm-calculator/src/mineralization/types.d.ts:101
Input bundle passed to the cached getNSupply function.
The caller (app server layer) is responsible for fetching field/soil/cultivation
data and building the requestBody via buildNSupplyRequest.
Properties
area
area:
number
Defined in: fdm-calculator/src/mineralization/types.d.ts:107
Field area in hectares — passed through to NSupplyResult
b_id
b_id:
string
Defined in: fdm-calculator/src/mineralization/types.d.ts:103
FDM field identifier — included in the result and used as part of the cache key
b_name
b_name:
string
Defined in: fdm-calculator/src/mineralization/types.d.ts:105
Human-readable field name — passed through to NSupplyResult
cacheDate
cacheDate:
string
Defined in: fdm-calculator/src/mineralization/types.d.ts:120
Current date (YYYY-MM-DD) used for cache invalidation. Since NMI forecast data refreshes nightly, the cache should expire daily.
completeness
completeness:
DataCompleteness
Defined in: fdm-calculator/src/mineralization/types.d.ts:115
Pre-computed completeness assessment — stored in the result
method
method:
NSupplyMethod
Defined in: fdm-calculator/src/mineralization/types.d.ts:113
Model used — stored in the result
nmiApiKey
nmiApiKey:
string
Defined in: fdm-calculator/src/mineralization/types.d.ts:109
NMI API bearer token — redacted from the cache key hash
requestBody
requestBody:
Record<string,unknown>
Defined in: fdm-calculator/src/mineralization/types.d.ts:111
Fully-formed request body for POST /bemestingsplan/nsupply