@lineai/gov-deals
Version:
Explore Federal contracts for government building renovations, city hall renovations, courthouse updates, library modernizations, federal building improvement contracts, base housing and facilities upgrades.
66 lines (65 loc) • 1.75 kB
TypeScript
/**
* Field mapping between CSV columns and SAM.gov API fields
*
* The CSV uses different field names than the API, so we need to map between them
*/
/**
* CSV column names from FY2025_opportunities.csv
*/
export interface CsvOpportunityRow {
NoticeId: string;
Title: string;
'Sol#': string;
'Department/Ind.Agency': string;
CGAC: string;
'Sub-Tier': string;
'FPDS Code': string;
Office: string;
'AAC Code': string;
PostedDate: string;
Type: string;
BaseType: string;
ArchiveType: string;
ArchiveDate: string;
SetASideCode: string;
SetASide: string;
ResponseDeadLine: string;
NaicsCode: string | number;
ClassificationCode: string;
PopStreetAddress: string;
PopCity: string;
PopState: string;
PopZip: string;
PopCountry: string;
Active: string;
AwardNumber: string;
AwardDate: string;
'Award$': string;
Awardee: string;
PrimaryContactTitle: string;
PrimaryContactFullname: string;
PrimaryContactEmail: string;
PrimaryContactPhone: string;
PrimaryContactFax: string;
SecondaryContactTitle: string;
SecondaryContactFullname: string;
SecondaryContactEmail: string;
SecondaryContactPhone: string;
SecondaryContactFax: string;
OrganizationType: string;
State: string;
City: string;
ZipCode: string;
CountryCode: string;
AdditionalInfoLink: string;
Link: string;
Description: string;
}
/**
* Map CSV row to SAM.gov opportunity format
*/
export declare function mapCsvToSamOpportunity(csvRow: CsvOpportunityRow): any;
/**
* Filter CSV rows based on SAM.gov search filters
*/
export declare function filterCsvRow(row: CsvOpportunityRow, filters?: any): boolean;