earningscall
Version:
The EarningsCall JavaScript library provides convenient access to the EarningsCall API. It includes a pre-defined set of classes for API resources that initialize themselves dynamically from API responses.
186 lines • 8.83 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.INDUSTRIES_IN_ORDER = exports.SECTORS_IN_ORDER = void 0;
exports.sectorToIndex = sectorToIndex;
exports.indexToSector = indexToSector;
exports.indexToIndustry = indexToIndustry;
exports.industryToIndex = industryToIndex;
exports.SECTORS_IN_ORDER = [
'Basic Materials',
'Communication Services',
'Consumer Cyclical',
'Consumer Defensive',
'Energy',
'Financial Services',
'Healthcare',
'Industrials',
'Real Estate',
'Technology',
'Utilities',
];
exports.INDUSTRIES_IN_ORDER = [
'Advertising Agencies',
'Aerospace & Defense',
'Agricultural Inputs',
'Airlines',
'Airports & Air Services',
'Aluminum',
'Apparel Manufacturing',
'Apparel Retail',
'Asset Management',
'Auto & Truck Dealerships',
'Auto Manufacturers',
'Auto Parts',
'Banks - Diversified',
'Banks - Regional',
'Beverages - Brewers',
'Beverages - Non-Alcoholic',
'Beverages - Wineries & Distilleries',
'Biotechnology',
'Broadcasting',
'Building Materials',
'Building Products & Equipment',
'Business Equipment & Supplies',
'Capital Markets',
'Chemicals',
'Coking Coal',
'Communication Equipment',
'Computer Hardware',
'Confectioners',
'Conglomerates',
'Consulting Services',
'Consumer Electronics',
'Copper',
'Credit Services',
'Department Stores',
'Diagnostics & Research',
'Discount Stores',
'Drug Manufacturers - General',
'Drug Manufacturers - Specialty & Generic',
'Education & Training Services',
'Electrical Equipment & Parts',
'Electronic Components',
'Electronic Gaming & Multimedia',
'Electronics & Computer Distribution',
'Engineering & Construction',
'Entertainment',
'Farm & Heavy Construction Machinery',
'Farm Products',
'Financial Conglomerates',
'Financial Data & Stock Exchanges',
'Food Distribution',
'Footwear & Accessories',
'Furnishings, Fixtures & Appliances',
'Gambling',
'Gold',
'Grocery Stores',
'Health Information Services',
'Healthcare Plans',
'Home Improvement Retail',
'Household & Personal Products',
'Industrial Distribution',
'Information Technology Services',
'Infrastructure Operations',
'Insurance - Diversified',
'Insurance - Life',
'Insurance - Property & Casualty',
'Insurance - Reinsurance',
'Insurance - Specialty',
'Insurance Brokers',
'Integrated Freight & Logistics',
'Internet Content & Information',
'Internet Retail',
'Leisure',
'Lodging',
'Lumber & Wood Production',
'Luxury Goods',
'Marine Shipping',
'Medical Care Facilities',
'Medical Devices',
'Medical Distribution',
'Medical Instruments & Supplies',
'Metal Fabrication',
'Mortgage Finance',
'Oil & Gas Drilling',
'Oil & Gas E&P',
'Oil & Gas Equipment & Services',
'Oil & Gas Integrated',
'Oil & Gas Midstream',
'Oil & Gas Refining & Marketing',
'Other Industrial Metals & Mining',
'Other Precious Metals & Mining',
'Packaged Foods',
'Packaging & Containers',
'Paper & Paper Products',
'Personal Services',
'Pharmaceutical Retailers',
'Pollution & Treatment Controls',
'Publishing',
'REIT - Diversified',
'REIT - Healthcare Facilities',
'REIT - Hotel & Motel',
'REIT - Industrial',
'REIT - Mortgage',
'REIT - Office',
'REIT - Residential',
'REIT - Retail',
'REIT - Specialty',
'Railroads',
'Real Estate - Development',
'Real Estate - Diversified',
'Real Estate Services',
'Recreational Vehicles',
'Rental & Leasing Services',
'Residential Construction',
'Resorts & Casinos',
'Restaurants',
'Scientific & Technical Instruments',
'Security & Protection Services',
'Semiconductor Equipment & Materials',
'Semiconductors',
'Shell Companies',
'Silver',
'Software - Application',
'Software - Infrastructure',
'Solar',
'Specialty Business Services',
'Specialty Chemicals',
'Specialty Industrial Machinery',
'Specialty Retail',
'Staffing & Employment Services',
'Steel',
'Telecom Services',
'Textile Manufacturing',
'Thermal Coal',
'Tobacco',
'Tools & Accessories',
'Travel Services',
'Trucking',
'Uranium',
'Utilities - Diversified',
'Utilities - Independent Power Producers',
'Utilities - Regulated Electric',
'Utilities - Regulated Gas',
'Utilities - Regulated Water',
'Utilities - Renewable',
'Waste Management',
];
function sectorToIndex(sector) {
return exports.SECTORS_IN_ORDER.indexOf(sector);
}
function indexToSector(index) {
if (index < 0 || index >= exports.SECTORS_IN_ORDER.length) {
return 'Unknown';
}
return exports.SECTORS_IN_ORDER[index];
}
function indexToIndustry(index) {
if (index < 0 || index >= exports.INDUSTRIES_IN_ORDER.length) {
return 'Unknown';
}
return exports.INDUSTRIES_IN_ORDER[index];
}
function industryToIndex(industry) {
return exports.INDUSTRIES_IN_ORDER.indexOf(industry);
}
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic2VjdG9ycy5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uL3NyYy9saWIvc2VjdG9ycy50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7QUFrS0Esc0NBRUM7QUFFRCxzQ0FLQztBQUVELDBDQUtDO0FBRUQsMENBRUM7QUF0TFksUUFBQSxnQkFBZ0IsR0FBRztJQUM5QixpQkFBaUI7SUFDakIsd0JBQXdCO0lBQ3hCLG1CQUFtQjtJQUNuQixvQkFBb0I7SUFDcEIsUUFBUTtJQUNSLG9CQUFvQjtJQUNwQixZQUFZO0lBQ1osYUFBYTtJQUNiLGFBQWE7SUFDYixZQUFZO0lBQ1osV0FBVztDQUNaLENBQUM7QUFFVyxRQUFBLG1CQUFtQixHQUFHO0lBQ2pDLHNCQUFzQjtJQUN0QixxQkFBcUI7SUFDckIscUJBQXFCO0lBQ3JCLFVBQVU7SUFDVix5QkFBeUI7SUFDekIsVUFBVTtJQUNWLHVCQUF1QjtJQUN2QixnQkFBZ0I7SUFDaEIsa0JBQWtCO0lBQ2xCLDBCQUEwQjtJQUMxQixvQkFBb0I7SUFDcEIsWUFBWTtJQUNaLHFCQUFxQjtJQUNyQixrQkFBa0I7SUFDbEIscUJBQXFCO0lBQ3JCLDJCQUEyQjtJQUMzQixxQ0FBcUM7SUFDckMsZUFBZTtJQUNmLGNBQWM7SUFDZCxvQkFBb0I7SUFDcEIsK0JBQStCO0lBQy9CLCtCQUErQjtJ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