propublica-nonprofit-explorer-sdk
Version:
SDK for ProPublica Nonprofit Explorer API
285 lines • 6.84 kB
JavaScript
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.FilingSchema = void 0;
const zod_1 = require("zod");
const constants_1 = require("../constants");
exports.FilingSchema = zod_1.z.object({
/**
* Employer Identification Number
*/
ein: zod_1.z.number().optional(),
/**
* Tax Period
*/
tax_prd: zod_1.z.number(),
/**
* Tax Period Year
*/
tax_prd_yr: zod_1.z.number(),
/**
* Form Type
*/
formtype: zod_1.z.enum(constants_1.FORMTYPE),
/**
* Form Type String
*/
formtype_str: zod_1.z.string().optional(),
/**
* PDF URL
*/
pdf_url: zod_1.z.string().nullable(),
/**
* Updated
*/
updated: zod_1.z.coerce.date().optional(),
/**
* Subsection code
*/
subseccd: zod_1.z.number().optional(),
// Optional based on the form type
/**
* Total Revenue
*/
totrevenue: zod_1.z.number().optional(),
/**
* Total Functional Expenses
*/
totfuncexpns: zod_1.z.number().optional(),
/**
* Total Assets End
*/
totassetsend: zod_1.z.number().optional(),
/**
* Total Liability End
*/
totliabend: zod_1.z.number().optional(),
/**
* Percentage of Expenses Marked Compensation
*/
pct_compnsatncurrofcr: zod_1.z.number().optional(),
/**
* Tax Paid
*/
tax_pd: zod_1.z.string().nullable().optional(),
/**
* Subsection Code
*/
unrelbusinccd: zod_1.z.string().optional(),
/**
* Initiation Fees
*/
initiationfees: zod_1.z.number().optional(),
/**
* Gross Receipts Amount
*/
grsrcptspublicuse: zod_1.z.number().optional(),
/**
* Gross Income from Members
*/
grsincmembers: zod_1.z.number().optional(),
/**
* Gross Income from Other Sources
*/
grsincother: zod_1.z.number().optional(),
/**
* Total Contributions
*/
totcntrbgfts: zod_1.z.number().optional(),
/**
* Program Service Revenue
*/
totprgmrevnue: zod_1.z.number().optional(),
/**
* Investment Income
*/
invstmntinc: zod_1.z.number().optional(),
/**
* Tax-exempt bond proceeds
*/
txexmptbndsproceeds: zod_1.z.number().optional(),
/**
* Royalties
*/
royaltsinc: zod_1.z.number().optional(),
/**
* Gross Rents - Real Estate
*/
grsrntsreal: zod_1.z.number().optional(),
/**
* Gross Rents - Personal Property
*/
grsrntsprsnl: zod_1.z.number().optional(),
/**
* Rental Expenses - Real Estate
*/
rntlexpnsreal: zod_1.z.number().optional(),
/**
* Rental Expenses - Personal Property
*/
rntlexpnsprsnl: zod_1.z.number().optional(),
/**
* Net Rent - Real Estate
*/
rntlincreal: zod_1.z.number().optional(),
/**
* Net Rent - Person Property
*/
rntlincprsnl: zod_1.z.number().optional(),
/**
* Net Rental Income
*/
netrntlinc: zod_1.z.number().optional(),
/**
* Net Gain from Sales - Securities
*/
grsalesecur: zod_1.z.number().optional(),
/**
* Net Gain from Sales - Other Assets
*/
grsalesothr: zod_1.z.number().optional(),
/**
* Sales Expense - Securities
*/
cstbasisecur: zod_1.z.number().optional(),
/**
* Sales Expense - Other Assets
*/
cstbasisothr: zod_1.z.number().optional(),
/**
* Net Gain from Sales - Securities
*/
gnlsecur: zod_1.z.number().optional(),
/**
* Net Gain from Sales - Other Assets
*/
gnlsothr: zod_1.z.number().optional(),
/**
* Sales of Assets
*/
netgnls: zod_1.z.number().optional(),
/**
* Gross Fundraising
*/
grsincfndrsng: zod_1.z.number().optional(),
/**
* Fundraising Expenses
*/
lessdirfndrsng: zod_1.z.number().optional(),
/**
* Fundraising Income
*/
netincfndrsng: zod_1.z.number().optional(),
/**
* Gross Income from Gaming
*/
grsincgaming: zod_1.z.number().optional(),
/**
* Gaming Expenses
*/
lessdirgaming: zod_1.z.number().optional(),
/**
* Gaming Income
*/
netincgaming: zod_1.z.number().optional(),
/**
* Gross Sales of Inventory
*/
grsalesinvent: zod_1.z.number().optional(),
/**
* Cost of Goods Sold
*/
lesscstofgoods: zod_1.z.number().optional(),
/**
* Income from Sales of Inventory
*/
netincsales: zod_1.z.number().optional(),
/**
* Other Revenue
*/
miscrevtot11e: zod_1.z.number().optional(),
/**
* Compensation of Officers
*/
compnsatncurrofcr: zod_1.z.number().optional(),
/**
* Other Salaries and Wages
*/
othrsalwages: zod_1.z.number().optional(),
/**
* Payroll Taxes
*/
payrolltx: zod_1.z.number().optional(),
/**
* Professional Fundraising Fees
*/
profndraising: zod_1.z.number().optional(),
/**
* Tax-exempt Bond Liabilities - EOY
*/
txexmptbndsend: zod_1.z.number().optional(),
/**
* Secured Mortgages and Notes Payable - EOY
*/
secrdmrtgsend: zod_1.z.number().optional(),
/**
* Unsecured Mortgages and Notes Payable - EOY
*/
unsecurednotesend: zod_1.z.number().optional(),
/**
* Paid-in or Capital Surplus - EOY
*/
retainedearnend: zod_1.z.number().optional(),
/**
* Total Net Assets - EOY
*/
totnetassetend: zod_1.z.number().optional(),
/**
* Reason for non-PF status
*/
nonpfrea: zod_1.z.string().optional(),
/**
* Gift Grants Membership Fees Received
*/
gftgrntsrcvd170: zod_1.z.number().optional(),
/**
* Tax Revenues Levied (170)
*/
txrevnuelevied170: zod_1.z.number().optional(),
/**
* Services or Facilities Furnished by Gov
*/
srvcsval170: zod_1.z.number().optional(),
/**
* Gross Income from Interest
*/
grsinc170: zod_1.z.number().optional(),
/**
* Gross Receipts from Related Activities
*/
grsrcptsrelated170: zod_1.z.number().optional(),
/**
* Gifts Grants Membership Fees Received
*/
totgftgrntrcvd509: zod_1.z.number().optional(),
/**
* Receipts from Admissions Merchandise
*/
grsrcptsadmissn509: zod_1.z.number().optional(),
/**
* Tax Revenues Levied (509)
*/
txrevnuelevied509: zod_1.z.number().optional(),
/**
* Services or Facilities Furnished by Gov
*/
srvcsval509: zod_1.z.number().optional(),
/**
* Subtotal Total Support
*/
subtotsuppinc509: zod_1.z.number().optional(),
/**
* Total Support
*/
totsupp509: zod_1.z.number().optional(),
});
//# sourceMappingURL=filing.js.map