Sync enrich-batch JSDoc with both-team and candidate search behavior

The enrich-batch handler was updated in df62e13 to search both
NTS-AEO-STEAM and NTS-AEO-ACCESS-ENG across confirmed, unconfirmed, and
candidate dispositions, but the JSDoc comment still described the old
single-team, two-disposition behavior. Update the comment to match.
This commit is contained in:
Jordan Ramos
2026-05-29 12:27:25 -06:00
parent df62e13627
commit b23a49a78d

View File

@@ -556,11 +556,13 @@ function createCardApiRouter() {
* POST /enrich-batch * POST /enrich-batch
* *
* Batch lookup IPs in CARD to extract Granite loader fields. Fetches team * Batch lookup IPs in CARD to extract Granite loader fields. Fetches team
* assets (paginated, across confirmed and unconfirmed dispositions) and * assets (paginated, across confirmed, unconfirmed, and candidate
* matches against the provided IPs. Returns enrichment results for each IP. * dispositions) and matches against the provided IPs. When no team is
* specified, searches both NTS-AEO-STEAM and NTS-AEO-ACCESS-ENG.
* Returns enrichment results for each IP.
* *
* @body {string[]} ips - Non-empty array of IP address strings (max 200) * @body {string[]} ips - Non-empty array of IP address strings (max 200)
* @body {string} [team="NTS-AEO-STEAM"] - Team name to search assets under * @body {string} [team] - Team name to search assets under. Defaults to both NTS-AEO-STEAM and NTS-AEO-ACCESS-ENG if omitted.
* @response 200 - { results: object[], enriched_count: number, not_found_count: number, total: number } * @response 200 - { results: object[], enriched_count: number, not_found_count: number, total: number }
* Each result: { ip: string, found: boolean, equip_inst_id: string|null, hostname: string|null, site_name?: string|null, mgmt_ip_asn?: string|null, responsible_team?: string|null, equipment_class?: string, equip_template?: string|null, equip_status?: string|null, serial_number?: string|null, error?: string } * Each result: { ip: string, found: boolean, equip_inst_id: string|null, hostname: string|null, site_name?: string|null, mgmt_ip_asn?: string|null, responsible_team?: string|null, equipment_class?: string, equip_template?: string|null, equip_status?: string|null, serial_number?: string|null, error?: string }
* @response 400 - { error: string } — invalid or empty ips array, or exceeds 200 * @response 400 - { error: string } — invalid or empty ips array, or exceeds 200