/** * BEA types, interfaces, and reference data constants. * * Separated from sdk.ts for clarity. Re-exported via index.ts barrel. */ /** Individual data row from any BEA dataset. Fields vary by dataset. */ export interface BeaDataRow { LineDescription?: string; SeriesCode?: string; TimePeriod?: string; DataValue?: string; GeoName?: string; GeoFips?: string; InduDesc?: string; IndustrYDescription?: string; Industry?: string; Year?: string; Quarter?: string; [key: string]: unknown; } /** Raw BEA API JSON envelope — the single type assertion target for all responses. * Used internally by SDK helpers to avoid scattered `as any` casts. */ export interface BeaRawResponse { BEAAPI?: { Request?: unknown; Results?: Record; Error?: { APIErrorCode?: string; APIErrorDescription?: string; ErrorDetail?: unknown; }; }; } /** Result from NIPA / NIUnderlyingDetail / FixedAssets (table-based national data). */ export interface BeaNationalGdpResult { table: string; frequency: string; dataRows: number; series: { description: string; observations: { period: string; value: number | null; }[]; }[]; } /** Result from Regional dataset when requesting all states. */ export interface BeaStateGdpResult { year?: string; unit: string; states?: { name: string; gdpMillions: number; }[]; geoFips?: string; series?: { name: string; observations: { year: string; gdpMillions: number | null; }[]; }[]; } /** Result from Regional dataset for personal income tables. */ export interface BeaPersonalIncomeResult { table: string; year: string; unit: string; states: { name: string; value: number; }[]; } /** Result from GDPbyIndustry / UnderlyingGDPbyIndustry datasets. */ export interface BeaIndustryGdpResult { tableId: string; industries: { industry: string; observations: { period: string; value: number | null; }[]; }[]; } /** BEA Dataset info from GetDatasetList. */ export interface BeaDatasetInfo { DatasetName: string; DatasetDescription: string; } /** BEA Parameter info from GetParameterList. */ export interface BeaParameterInfo { ParameterName: string; ParameterDataType: string; ParameterDescription: string; ParameterIsRequiredFlag: string; ParameterDefaultValue?: string; MultipleAcceptedFlag: string; AllValue?: string; } /** BEA Parameter value from GetParameterValues / GetParameterValuesFiltered. */ export interface BeaParamValue { Key: string; Desc: string; } /** Generic BEA result for datasets without specialized output (MNE, InputOutput). */ export interface BeaGenericResult { dataset: string; params: Record; dataRows: number; data: BeaDataRow[]; notes?: string[]; } /** BEA ITA (International Transactions) result. */ export interface BeaItaResult { dataRows: number; series: { indicator: string; area: string; description: string; observations: { period: string; value: number | null; }[]; }[]; } /** BEA IIP (International Investment Position) result. */ export interface BeaIipResult { dataRows: number; series: { investmentType: string; component: string; description: string; observations: { period: string; value: number | null; }[]; }[]; } /** BEA IntlServTrade (International Services Trade) result. */ export interface BeaIntlServTradeResult { dataRows: number; series: { service: string; direction: string; area: string; description: string; observations: { period: string; value: number | null; }[]; }[]; } /** NIPA table codes and descriptions. Use these as the `tableName` parameter in getNationalGdp. */ export declare const nipaTables: { readonly T10101: "Real GDP percent change from preceding period"; readonly T10102: "Contributions to percent change in real GDP"; readonly T10103: "Real GDP quantity indexes"; readonly T10104: "Nominal GDP percent change from preceding period"; readonly T10105: "Nominal GDP"; readonly T10106: "Real GDP (chained dollars)"; readonly T10107: "GDP implicit price deflators"; readonly T10108: "GDP chain-type price indexes"; readonly T10109: "GDP price indexes: percent change"; readonly T10111: "Real GDP percent change (additional detail)"; readonly T20100: "Personal income and its disposition"; readonly T20200A: "Personal consumption expenditures by major type (current)"; readonly T20301: "PCE: durable goods"; readonly T20600: "Personal income and its disposition (monthly)"; readonly T20900: "Personal income and its disposition (percent change)"; readonly T30100: "Government current receipts and expenditures"; readonly T30200: "Federal government current receipts and expenditures"; readonly T30300: "State and local government current receipts and expenditures"; readonly T30500: "Government consumption expenditures and gross investment"; readonly T40100: "Foreign transactions in the NIPAs"; readonly T40201: "Exports of goods and services"; readonly T40202: "Imports of goods and services"; readonly T50100: "Saving and investment by sector"; readonly T50203: "Gross private fixed investment in equipment"; readonly T60100B: "National income by type of income"; readonly T60200A: "Compensation of employees"; readonly T70100: "Corporate profits with IVA and CCAdj"; readonly T72100: "Motor vehicle output"; }; /** GDP by industry table IDs. Use these as the `tableId` parameter in getGdpByIndustry. */ export declare const gdpIndustryTables: { readonly 1: "Value added by industry (current dollars)"; readonly 5: "Contributions to percent change in real GDP by industry"; readonly 6: "Value added as percentage of GDP by industry"; readonly 7: "Gross output by industry (current dollars)"; readonly 8: "Intermediate inputs by industry (current dollars)"; readonly 12: "Gross operating surplus by industry"; readonly 13: "Compensation of employees by industry"; readonly 15: "Employment (full-time and part-time) by industry"; readonly 25: "Real value added by industry (chained dollars)"; readonly 26: "Real gross output by industry (chained dollars)"; }; /** BEA Regional table codes. Use these as the `tableName` parameter in getGdpByState and getPersonalIncome. */ export declare const regionalTables: { readonly SAGDP1: "State annual GDP summary"; readonly SAGDP2: "GDP by state (by industry)"; readonly SAGDP3: "Taxes on production and imports less subsidies"; readonly SAGDP4: "Compensation of employees by industry"; readonly SAGDP5: "Subsidies by state"; readonly SAGDP6: "Taxes on production and imports by state"; readonly SAGDP7: "Gross operating surplus by state"; readonly SAGDP8: "Chain-type quantity indexes for real GDP by state (2017=100)"; readonly SAGDP9: "Real GDP by state"; readonly SAGDP11: "Contributions to percent change in real GDP by state"; readonly SQGDP1: "State quarterly GDP summary"; readonly SQGDP2: "GDP by state (quarterly by industry)"; readonly SQGDP8: "Chain-type quantity indexes for real GDP (quarterly)"; readonly SQGDP9: "Real GDP by state (quarterly)"; readonly SQGDP11: "Contributions to percent change in real GDP (quarterly)"; readonly SAINC1: "Personal income, population, per capita income"; readonly SAINC4: "Personal income by major component"; readonly SAINC5N: "Personal income by NAICS industry"; readonly SAINC6N: "Compensation of employees by NAICS industry"; readonly SAINC7N: "Wages and salaries by NAICS industry"; readonly SAINC11: "Contributions of earnings to percent change in personal income"; readonly SAINC12: "Personal income change by component"; readonly SAINC30: "Economic profile"; readonly SAINC35: "Personal current transfer receipts"; readonly SAINC40: "Property income"; readonly SAINC50: "Personal current taxes"; readonly SAINC51: "Disposable personal income summary"; readonly SAINC91: "Gross flow of earnings"; readonly SQINC1: "State quarterly personal income summary"; readonly SQINC4: "Personal income by major component (quarterly)"; readonly SQINC5N: "Personal income by NAICS industry (quarterly)"; readonly SQINC35: "Personal current transfer receipts (quarterly)"; readonly CAGDP1: "County GDP summary"; readonly CAGDP2: "GDP by county (by industry)"; readonly CAGDP9: "Real GDP by county"; readonly CAGDP11: "Contributions to percent change in real GDP by county"; readonly CAINC1: "County personal income summary"; readonly CAINC4: "Personal income by major component (county)"; readonly CAINC5N: "Personal income by NAICS industry (county)"; readonly CAINC30: "Economic profile (county)"; readonly CAINC91: "Gross flow of earnings (county)"; readonly SARPP: "Regional price parities by state"; readonly MARPP: "Regional price parities by MSA"; readonly PARPP: "Regional price parities by metro/nonmetro portion"; readonly SAPCE1: "PCE by major type of product"; readonly SAPCE2: "Per capita PCE by major type of product"; readonly SAPCE3: "PCE by state by type of product"; readonly SAPCE4: "PCE by state by function"; readonly SASUMMARY: "State annual income and product summary"; }; /** BEA datasets and their descriptions. */ export declare const beaDatasets: { readonly NIPA: "National Income and Product Accounts (GDP, income, spending)"; readonly NIUnderlyingDetail: "NIPA underlying detail (more granular, lower quality)"; readonly FixedAssets: "Fixed assets (net stock, depreciation, investment)"; readonly MNE: "Multinational Enterprises (direct investment, foreign affiliates)"; readonly GDPbyIndustry: "GDP by industry (value added, gross output, inputs)"; readonly Regional: "Regional data (state/county/MSA income, GDP, employment)"; readonly ITA: "International Transactions Accounts (balance of payments)"; readonly IIP: "International Investment Position (assets, liabilities)"; readonly InputOutput: "Input-Output statistics (make/use/requirements tables)"; readonly UnderlyingGDPbyIndustry: "Underlying GDP by industry (additional detail, lower quality)"; readonly IntlServTrade: "International Services Trade"; }; //# sourceMappingURL=types.d.ts.map