UNPKG

@tractorzoom/equipment-attributes

Version:

Source of truth for equipment attributes by category

290 lines (289 loc) 20.3 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.getAttributesForSubCategory = exports.ATTRIBUTES_BY_SUBCATEGORY = exports.TOP_ATTRIBUTES_BY_SUBCATEGORY = void 0; const attributes_1 = require("./attributes"); const categories_1 = require("./categories"); const subcategories_1 = require("./subcategories"); const TRACTORS_TOP_ATTRIBUTES = [attributes_1.HOURS, attributes_1.HORSEPOWER]; exports.TOP_ATTRIBUTES_BY_SUBCATEGORY = { [subcategories_1.AERIAL_LIFTS]: [attributes_1.HOURS], [subcategories_1.AIR_SEEDERS_OR_CARTS]: [attributes_1.WIDTH], [subcategories_1.ARTICULATED_TRUCKS]: [attributes_1.HOURS], [subcategories_1.ASPHALT_PAVERS]: [attributes_1.HOURS], [subcategories_1.ATTACHMENTS]: [], [subcategories_1.BACKHOE_LOADERS]: [attributes_1.HOURS], [subcategories_1.BALERS_ROUND]: [attributes_1.NUMBER_OF_BALES], [subcategories_1.BALERS_SQUARE]: [attributes_1.NUMBER_OF_BALES], [subcategories_1.BALE_ACCUMULATORS_MOVERS]: [], [subcategories_1.BALE_PROCESSORS]: [], [subcategories_1.CHISEL_PLOWS]: [attributes_1.WIDTH], [subcategories_1.CLASS_5]: [attributes_1.HOURS, attributes_1.SEPARATOR_HOURS], [subcategories_1.CLASS_6]: [attributes_1.HOURS, attributes_1.SEPARATOR_HOURS], [subcategories_1.CLASS_7]: [attributes_1.HOURS, attributes_1.SEPARATOR_HOURS], [subcategories_1.CLASS_8]: [attributes_1.HOURS, attributes_1.SEPARATOR_HOURS], [subcategories_1.CLASS_9]: [attributes_1.HOURS, attributes_1.SEPARATOR_HOURS], [subcategories_1.COLD_PLANERS]: [attributes_1.HOURS], [subcategories_1.COMBINES]: [attributes_1.HOURS, attributes_1.SEPARATOR_HOURS], [subcategories_1.COMPACTORS]: [attributes_1.HOURS], [subcategories_1.COMPACT_EXCAVATORS]: [attributes_1.HOURS], [subcategories_1.COMPACT_TRACK_LOADERS]: [attributes_1.HOURS], [subcategories_1.COTTON_PICKERS_STRIPPERS]: [attributes_1.HOURS, attributes_1.SEPARATOR_HOURS], [subcategories_1.CRANE]: [attributes_1.HOURS], [subcategories_1.DISKS]: [attributes_1.WIDTH], [subcategories_1.DISK_RIPPERS]: [attributes_1.WIDTH, attributes_1.NUMBER_OF_SHANKS], [subcategories_1.DOZERS]: [attributes_1.HOURS], [subcategories_1.DRAGLINES]: [attributes_1.HOURS], [subcategories_1.DRUM_ROLLERS]: [attributes_1.HOURS], [subcategories_1.EXCAVATORS]: [attributes_1.HOURS], [subcategories_1.FERTILIZER_APPLICATORS_ANHYDROUS]: [attributes_1.WIDTH], [subcategories_1.FERTILIZER_APPLICATORS_DRY]: [attributes_1.HOURS, attributes_1.CAPACITY], [subcategories_1.FERTILIZER_APPLICATORS_LIQUID]: [attributes_1.HOURS, attributes_1.CAPACITY], [subcategories_1.FIELD_CULTIVATORS]: [attributes_1.WIDTH], [subcategories_1.FLOATERS]: [attributes_1.CAPACITY], [subcategories_1.FORAGE_HARVESTERS_PULL_TYPE]: [], [subcategories_1.FORAGE_HARVESTERS_SELF_PROPELLED]: [attributes_1.HOURS, attributes_1.SEPARATOR_HOURS], [subcategories_1.FORAGE_WAGONS]: [], [subcategories_1.FORKLIFTS]: [attributes_1.HOURS], [subcategories_1.FROM_100_TO_174]: TRACTORS_TOP_ATTRIBUTES, [subcategories_1.FROM_175_TO_299]: TRACTORS_TOP_ATTRIBUTES, [subcategories_1.FROM_300_PLUS]: TRACTORS_TOP_ATTRIBUTES, [subcategories_1.FROM_300_TO_424]: TRACTORS_TOP_ATTRIBUTES, [subcategories_1.FROM_40_TO_99]: TRACTORS_TOP_ATTRIBUTES, [subcategories_1.FROM_425_PLUS]: TRACTORS_TOP_ATTRIBUTES, [subcategories_1.FUEL_TRAILERS]: [], [subcategories_1.GENERATORS]: [], [subcategories_1.GPS_EQUIPMENT]: [], [subcategories_1.GRAIN_AUGERS_CONVEYORS]: [attributes_1.LENGTH], [subcategories_1.GRAIN_BAGGERS]: [], [subcategories_1.GRAIN_CARTS]: [attributes_1.CAPACITY], [subcategories_1.GRAIN_DRILLS]: [attributes_1.WIDTH], [subcategories_1.GRAIN_VACUUMS]: [], [subcategories_1.GRAVITY_WAGONS]: [attributes_1.CAPACITY], [subcategories_1.GRINDERS_MIXERS]: [], [subcategories_1.HAY_MERGERS]: [], [subcategories_1.HAY_RAKES_TEDDERS]: [attributes_1.WIDTH], [subcategories_1.HEADERS_FORAGE]: [attributes_1.WIDTH, attributes_1.NUMBER_OF_ROWS], [subcategories_1.HEADERS_PLATFORM]: [attributes_1.WIDTH], [subcategories_1.HEADERS_ROW_CROP]: [attributes_1.NUMBER_OF_ROWS, attributes_1.SPACING], [subcategories_1.HEADER_TRAILERS]: [attributes_1.LENGTH], [subcategories_1.HYDRAULIC_MINING_SHOVELS]: [attributes_1.HOURS], [subcategories_1.IRRIGATION]: [], [subcategories_1.LAND_ROLLERS]: [attributes_1.WIDTH], [subcategories_1.LESS_THAN_40]: TRACTORS_TOP_ATTRIBUTES, [subcategories_1.LIFTS]: [], [subcategories_1.LIGHT_TOWERS]: [attributes_1.HOURS], [subcategories_1.LIQUID_TANKS]: [attributes_1.CAPACITY], [subcategories_1.LIVESTOCK_TRAILERS]: [attributes_1.LENGTH], [subcategories_1.LOADERS]: [], [subcategories_1.MANURE_SPREADERS_DRY]: [attributes_1.CAPACITY], [subcategories_1.MANURE_SPREADERS_LIQUID]: [attributes_1.CAPACITY], [subcategories_1.MANURE_SYSTEMS]: [], [subcategories_1.MATERIAL_HANDLING]: [attributes_1.LENGTH], [subcategories_1.MOTOR_GRADERS]: [attributes_1.HOURS], [subcategories_1.MOWERS_BATWING]: [attributes_1.WIDTH], [subcategories_1.MOWERS_CONDITIONER]: [attributes_1.WIDTH], [subcategories_1.MOWERS_DISK]: [attributes_1.WIDTH], [subcategories_1.MOWERS_FLAIL_STALK_CHOPPERS]: [], [subcategories_1.MOWERS_ROTARY]: [attributes_1.WIDTH], [subcategories_1.MULCH_FINISHERS]: [attributes_1.WIDTH], [subcategories_1.NH3_ANHYDROUS_TANKS]: [attributes_1.CAPACITY], [subcategories_1.OFF_HIGHWAY_TRUCKS]: [attributes_1.HOURS], [subcategories_1.OTHER_AG_TRAILERS]: [], [subcategories_1.OTHER_CHEMICAL_APPLICATORS]: [], [subcategories_1.OTHER_COMBINES]: [attributes_1.HOURS, attributes_1.SEPARATOR_HOURS], [subcategories_1.OTHER_CONSTRUCTION]: [], [subcategories_1.OTHER_HARVESTING]: [], [subcategories_1.OTHER_HAY_AND_FORAGE]: [], [subcategories_1.OTHER_MANURE_HANDLING]: [], [subcategories_1.OTHER_PLANTING]: [], [subcategories_1.OTHER_TILLAGE]: [], [subcategories_1.OUTDOOR_POWER]: [attributes_1.HOURS, attributes_1.MILES], [subcategories_1.PIPELAYERS]: [attributes_1.HOURS], [subcategories_1.PLANTERS]: [attributes_1.NUMBER_OF_ROWS, attributes_1.ACRES], [subcategories_1.PLOWS]: [attributes_1.NUMBER_OF_BOTTOMS, attributes_1.SPACING], [subcategories_1.POULTRY_LITTER_EQUIPMENT]: [attributes_1.CAPACITY], [subcategories_1.RIPPERS]: [attributes_1.NUMBER_OF_SHANKS], [subcategories_1.ROTARY_TILLAGE]: [attributes_1.WIDTH], [subcategories_1.ROW_CROP_CULTIVATORS]: [attributes_1.WIDTH], [subcategories_1.SCRAPERS]: [attributes_1.HOURS], [subcategories_1.SEEDERS]: [attributes_1.WIDTH], [subcategories_1.SEED_TENDERS]: [], [subcategories_1.SKIDDER]: [attributes_1.HOURS], [subcategories_1.SKID_STEERS]: [attributes_1.HOURS], [subcategories_1.SKID_STEER_ATTACHMENTS]: [], [subcategories_1.SPRAYERS_3PT_MOUNTED]: [attributes_1.CAPACITY, attributes_1.WIDTH], [subcategories_1.SPRAYERS_PULL_TYPE]: [attributes_1.CAPACITY, attributes_1.WIDTH], [subcategories_1.SPRAYERS_SELF_PROPELLED]: [attributes_1.HOURS, attributes_1.WIDTH], [subcategories_1.STRIP_TILL_BARS]: [attributes_1.NUMBER_OF_ROWS, attributes_1.SPACING], [subcategories_1.TELEHANDLERS]: [attributes_1.HOURS], [subcategories_1.THREE_POINT_ATTACHMENTS]: [], [subcategories_1.TILE_PLOW]: [attributes_1.WIDTH, attributes_1.SPACING], [subcategories_1.TOOLBARS]: [attributes_1.WIDTH], [subcategories_1.TRACK_LOADERS]: [attributes_1.HOURS], [subcategories_1.TRAILERS]: [attributes_1.LENGTH], [subcategories_1.TRENCHER]: [attributes_1.HOURS], [subcategories_1.TRUCKS]: [attributes_1.MILES], [subcategories_1.TURF]: [attributes_1.HOURS, attributes_1.WIDTH], [subcategories_1.UNDERGROUND_MINING_LOADERS]: [], [subcategories_1.VEHICLES]: [attributes_1.MILES], [subcategories_1.VERTICAL_TILLAGE]: [attributes_1.WIDTH], [subcategories_1.WHEEL_DOZERS]: [attributes_1.HOURS], [subcategories_1.WHEEL_EXCAVATORS]: [attributes_1.HOURS], [subcategories_1.WHEEL_LOADERS]: [attributes_1.HOURS], [subcategories_1.WINDROWERS]: [attributes_1.HOURS], }; const SMALL_TRACTORS_ATTRIBUTES = [ attributes_1.HOURS, attributes_1.DRIVE, attributes_1.HORSEPOWER, attributes_1.THREE_POINT_HITCH, attributes_1.REAR_PTO, attributes_1.CAB, attributes_1.BELLY_MOWER, attributes_1.LOADER, attributes_1.FRONT_TIRES, attributes_1.REAR_TIRES, ]; const BIG_TRACTORS_ATTRIBUTES = SMALL_TRACTORS_ATTRIBUTES.filter((attribute) => attribute !== attributes_1.BELLY_MOWER); exports.ATTRIBUTES_BY_SUBCATEGORY = { [subcategories_1.AERIAL_LIFTS]: [attributes_1.HOURS], [subcategories_1.AIR_SEEDERS_OR_CARTS]: [attributes_1.NUMBER_OF_ROWS, attributes_1.WIDTH, attributes_1.SPACING, attributes_1.ACRES], [subcategories_1.ARTICULATED_TRUCKS]: [attributes_1.HOURS], [subcategories_1.ASPHALT_PAVERS]: [attributes_1.HOURS], [subcategories_1.ATTACHMENTS]: [], [subcategories_1.BACKHOE_LOADERS]: [attributes_1.HOURS], [subcategories_1.BALERS_ROUND]: [attributes_1.NUMBER_OF_BALES, attributes_1.WIDTH], [subcategories_1.BALERS_SQUARE]: [attributes_1.NUMBER_OF_BALES, attributes_1.WIDTH], [subcategories_1.BALE_ACCUMULATORS_MOVERS]: [attributes_1.HOURS, attributes_1.LENGTH, attributes_1.WIDTH], [subcategories_1.BALE_PROCESSORS]: [attributes_1.WIDTH], [subcategories_1.CHISEL_PLOWS]: [attributes_1.WIDTH, attributes_1.SPACING, attributes_1.NUMBER_OF_SHANKS], [subcategories_1.CLASS_5]: [attributes_1.HOURS, attributes_1.SEPARATOR_HOURS, attributes_1.COMBINE_TYPE, attributes_1.DRIVE, attributes_1.POWERFOLD_BIN, attributes_1.CHOPPER, attributes_1.SPREADER, attributes_1.FRONT_TIRES], [subcategories_1.CLASS_6]: [attributes_1.HOURS, attributes_1.SEPARATOR_HOURS, attributes_1.COMBINE_TYPE, attributes_1.DRIVE, attributes_1.POWERFOLD_BIN, attributes_1.CHOPPER, attributes_1.SPREADER, attributes_1.FRONT_TIRES], [subcategories_1.CLASS_7]: [attributes_1.HOURS, attributes_1.SEPARATOR_HOURS, attributes_1.COMBINE_TYPE, attributes_1.DRIVE, attributes_1.POWERFOLD_BIN, attributes_1.CHOPPER, attributes_1.SPREADER, attributes_1.FRONT_TIRES], [subcategories_1.CLASS_8]: [attributes_1.HOURS, attributes_1.SEPARATOR_HOURS, attributes_1.COMBINE_TYPE, attributes_1.DRIVE, attributes_1.POWERFOLD_BIN, attributes_1.CHOPPER, attributes_1.SPREADER, attributes_1.FRONT_TIRES], [subcategories_1.CLASS_9]: [attributes_1.HOURS, attributes_1.SEPARATOR_HOURS, attributes_1.COMBINE_TYPE, attributes_1.DRIVE, attributes_1.POWERFOLD_BIN, attributes_1.CHOPPER, attributes_1.SPREADER, attributes_1.FRONT_TIRES], [subcategories_1.COLD_PLANERS]: [], [subcategories_1.COMBINES]: [attributes_1.HOURS, attributes_1.SEPARATOR_HOURS, attributes_1.COMBINE_TYPE, attributes_1.DRIVE, attributes_1.POWERFOLD_BIN, attributes_1.CHOPPER, attributes_1.SPREADER, attributes_1.FRONT_TIRES], [subcategories_1.COMPACTORS]: [attributes_1.HOURS], [subcategories_1.COMPACT_EXCAVATORS]: [attributes_1.HOURS], [subcategories_1.COMPACT_TRACK_LOADERS]: [attributes_1.HOURS], [subcategories_1.COTTON_PICKERS_STRIPPERS]: [attributes_1.HOURS, attributes_1.SEPARATOR_HOURS, attributes_1.DRIVE], [subcategories_1.CRANE]: [attributes_1.HOURS], [subcategories_1.DISKS]: [attributes_1.WIDTH, attributes_1.SPACING], [subcategories_1.DISK_RIPPERS]: [attributes_1.WIDTH, attributes_1.SPACING, attributes_1.NUMBER_OF_SHANKS], [subcategories_1.DOZERS]: [attributes_1.HOURS], [subcategories_1.DRAGLINES]: [], [subcategories_1.DRUM_ROLLERS]: [attributes_1.HOURS], [subcategories_1.EXCAVATORS]: [attributes_1.HOURS], [subcategories_1.FERTILIZER_APPLICATORS_ANHYDROUS]: [attributes_1.NUMBER_OF_ROWS, attributes_1.WIDTH, attributes_1.SPACING], [subcategories_1.FERTILIZER_APPLICATORS_DRY]: [attributes_1.HOURS, attributes_1.CAPACITY, attributes_1.DRIVE, attributes_1.WIDTH], [subcategories_1.FERTILIZER_APPLICATORS_LIQUID]: [attributes_1.HOURS, attributes_1.CAPACITY, attributes_1.DRIVE, attributes_1.WIDTH], [subcategories_1.FIELD_CULTIVATORS]: [attributes_1.WIDTH, attributes_1.SPACING, attributes_1.NUMBER_OF_SHANKS], [subcategories_1.FLOATERS]: [attributes_1.HOURS, attributes_1.CAPACITY, attributes_1.DRIVE, attributes_1.WIDTH], [subcategories_1.FORAGE_HARVESTERS_PULL_TYPE]: [attributes_1.NUMBER_OF_ROWS, attributes_1.WIDTH, attributes_1.SPACING], [subcategories_1.FORAGE_HARVESTERS_SELF_PROPELLED]: [attributes_1.HOURS, attributes_1.SEPARATOR_HOURS, attributes_1.DRIVE], [subcategories_1.FORAGE_WAGONS]: [], [subcategories_1.FORKLIFTS]: [attributes_1.HOURS], [subcategories_1.FROM_100_TO_174]: SMALL_TRACTORS_ATTRIBUTES, [subcategories_1.FROM_175_TO_299]: BIG_TRACTORS_ATTRIBUTES, [subcategories_1.FROM_300_PLUS]: BIG_TRACTORS_ATTRIBUTES, [subcategories_1.FROM_300_TO_424]: BIG_TRACTORS_ATTRIBUTES, [subcategories_1.FROM_40_TO_99]: SMALL_TRACTORS_ATTRIBUTES, [subcategories_1.FROM_425_PLUS]: BIG_TRACTORS_ATTRIBUTES, [subcategories_1.FUEL_TRAILERS]: [attributes_1.HOURS], [subcategories_1.GENERATORS]: [attributes_1.HOURS], [subcategories_1.GPS_EQUIPMENT]: [attributes_1.HOURS], [subcategories_1.GRAIN_AUGERS_CONVEYORS]: [attributes_1.LENGTH], [subcategories_1.GRAIN_BAGGERS]: [], [subcategories_1.GRAIN_CARTS]: [attributes_1.CAPACITY], [subcategories_1.GRAIN_DRILLS]: [attributes_1.NUMBER_OF_ROWS, attributes_1.WIDTH, attributes_1.SPACING, attributes_1.ACRES], [subcategories_1.GRAIN_VACUUMS]: [], [subcategories_1.GRAVITY_WAGONS]: [attributes_1.CAPACITY], [subcategories_1.GRINDERS_MIXERS]: [attributes_1.WIDTH], [subcategories_1.HAY_MERGERS]: [attributes_1.WIDTH], [subcategories_1.HAY_RAKES_TEDDERS]: [attributes_1.WIDTH], [subcategories_1.HEADERS_FORAGE]: [attributes_1.WIDTH, attributes_1.NUMBER_OF_ROWS], [subcategories_1.HEADERS_PLATFORM]: [attributes_1.WIDTH], [subcategories_1.HEADERS_ROW_CROP]: [attributes_1.NUMBER_OF_ROWS, attributes_1.WIDTH, attributes_1.SPACING], [subcategories_1.HEADER_TRAILERS]: [attributes_1.LENGTH], [subcategories_1.HYDRAULIC_MINING_SHOVELS]: [attributes_1.HOURS], [subcategories_1.IRRIGATION]: [attributes_1.HOURS], [subcategories_1.LAND_ROLLERS]: [attributes_1.WIDTH], [subcategories_1.LESS_THAN_40]: SMALL_TRACTORS_ATTRIBUTES, [subcategories_1.LIFTS]: [attributes_1.HOURS], [subcategories_1.LIGHT_TOWERS]: [], [subcategories_1.LIQUID_TANKS]: [attributes_1.CAPACITY, attributes_1.HOURS], [subcategories_1.LIVESTOCK_TRAILERS]: [attributes_1.LENGTH], [subcategories_1.LOADERS]: [attributes_1.HOURS], [subcategories_1.MANURE_SPREADERS_DRY]: [attributes_1.CAPACITY, attributes_1.WIDTH], [subcategories_1.MANURE_SPREADERS_LIQUID]: [attributes_1.CAPACITY, attributes_1.WIDTH, attributes_1.NUMBER_OF_SHANKS], [subcategories_1.MANURE_SYSTEMS]: [attributes_1.CAPACITY, attributes_1.WIDTH], [subcategories_1.MATERIAL_HANDLING]: [attributes_1.LENGTH], [subcategories_1.MOTOR_GRADERS]: [attributes_1.HOURS], [subcategories_1.MOWERS_BATWING]: [attributes_1.WIDTH], [subcategories_1.MOWERS_CONDITIONER]: [attributes_1.WIDTH], [subcategories_1.MOWERS_DISK]: [attributes_1.WIDTH], [subcategories_1.MOWERS_FLAIL_STALK_CHOPPERS]: [attributes_1.WIDTH], [subcategories_1.MOWERS_ROTARY]: [attributes_1.WIDTH], [subcategories_1.MULCH_FINISHERS]: [attributes_1.WIDTH, attributes_1.SPACING, attributes_1.NUMBER_OF_SHANKS], [subcategories_1.NH3_ANHYDROUS_TANKS]: [attributes_1.CAPACITY], [subcategories_1.OFF_HIGHWAY_TRUCKS]: [attributes_1.HOURS], [subcategories_1.OTHER_AG_TRAILERS]: [attributes_1.LENGTH], [subcategories_1.OTHER_CHEMICAL_APPLICATORS]: [attributes_1.HOURS, attributes_1.CAPACITY, attributes_1.WIDTH], [subcategories_1.OTHER_COMBINES]: [attributes_1.HOURS, attributes_1.SEPARATOR_HOURS, attributes_1.COMBINE_TYPE, attributes_1.DRIVE, attributes_1.POWERFOLD_BIN, attributes_1.CHOPPER, attributes_1.SPREADER, attributes_1.FRONT_TIRES], [subcategories_1.OTHER_CONSTRUCTION]: [attributes_1.HOURS, attributes_1.CAPACITY, attributes_1.EMISSIONS, attributes_1.LENGTH, attributes_1.MILES, attributes_1.TAG_AXLE, attributes_1.TRANSMISSION, attributes_1.WIDTH], [subcategories_1.OTHER_HARVESTING]: [], [subcategories_1.OTHER_HAY_AND_FORAGE]: [attributes_1.WIDTH, attributes_1.HOURS], [subcategories_1.OTHER_MANURE_HANDLING]: [attributes_1.CAPACITY, attributes_1.WIDTH], [subcategories_1.OTHER_PLANTING]: [attributes_1.NUMBER_OF_ROWS, attributes_1.WIDTH, attributes_1.SPACING, attributes_1.ACRES], [subcategories_1.OTHER_TILLAGE]: [attributes_1.WIDTH, attributes_1.SPACING, attributes_1.NUMBER_OF_SHANKS, attributes_1.NUMBER_OF_BOTTOMS, attributes_1.NUMBER_OF_ROWS], [subcategories_1.OUTDOOR_POWER]: [attributes_1.HOURS, attributes_1.MILES], [subcategories_1.PIPELAYERS]: [attributes_1.HOURS], [subcategories_1.PLANTERS]: [attributes_1.NUMBER_OF_ROWS, attributes_1.WIDTH, attributes_1.SPACING, attributes_1.ACRES, attributes_1.CENTER_BULK_FILL], [subcategories_1.PLOWS]: [attributes_1.NUMBER_OF_BOTTOMS, attributes_1.SPACING, attributes_1.WIDTH], [subcategories_1.POULTRY_LITTER_EQUIPMENT]: [attributes_1.CAPACITY, attributes_1.WIDTH], [subcategories_1.RIPPERS]: [attributes_1.NUMBER_OF_SHANKS, attributes_1.WIDTH, attributes_1.SPACING], [subcategories_1.ROTARY_TILLAGE]: [attributes_1.WIDTH, attributes_1.SPACING], [subcategories_1.ROW_CROP_CULTIVATORS]: [attributes_1.NUMBER_OF_ROWS, attributes_1.SPACING, attributes_1.WIDTH], [subcategories_1.SCRAPERS]: [attributes_1.HOURS], [subcategories_1.SEEDERS]: [attributes_1.NUMBER_OF_ROWS, attributes_1.WIDTH, attributes_1.SPACING, attributes_1.ACRES], [subcategories_1.SEED_TENDERS]: [], [subcategories_1.SKIDDER]: [attributes_1.HOURS], [subcategories_1.SKID_STEERS]: [attributes_1.HOURS], [subcategories_1.SKID_STEER_ATTACHMENTS]: [attributes_1.HOURS], [subcategories_1.SPRAYERS_3PT_MOUNTED]: [attributes_1.WIDTH, attributes_1.CAPACITY], [subcategories_1.SPRAYERS_PULL_TYPE]: [attributes_1.HOURS, attributes_1.WIDTH, attributes_1.CAPACITY, attributes_1.DRIVE], [subcategories_1.SPRAYERS_SELF_PROPELLED]: [attributes_1.HOURS, attributes_1.WIDTH, attributes_1.CAPACITY, attributes_1.DRIVE], [subcategories_1.STRIP_TILL_BARS]: [attributes_1.NUMBER_OF_ROWS, attributes_1.SPACING, attributes_1.WIDTH], [subcategories_1.TELEHANDLERS]: [attributes_1.HOURS], [subcategories_1.THREE_POINT_ATTACHMENTS]: [], [subcategories_1.TILE_PLOW]: [attributes_1.WIDTH, attributes_1.SPACING], [subcategories_1.TOOLBARS]: [attributes_1.WIDTH, attributes_1.SPACING, attributes_1.NUMBER_OF_SHANKS, attributes_1.NUMBER_OF_ROWS, attributes_1.CAPACITY, attributes_1.DRIVE], [subcategories_1.TRACK_LOADERS]: [attributes_1.HOURS], [subcategories_1.TRAILERS]: [attributes_1.LENGTH, attributes_1.HOURS], [subcategories_1.TRENCHER]: [attributes_1.HOURS], [subcategories_1.TRUCKS]: [attributes_1.MILES, attributes_1.TAG_AXLE, attributes_1.TRANSMISSION], [subcategories_1.TURF]: [attributes_1.HOURS, attributes_1.WIDTH], [subcategories_1.UNDERGROUND_MINING_LOADERS]: [attributes_1.HOURS], [subcategories_1.VEHICLES]: [attributes_1.MILES, attributes_1.TRANSMISSION], [subcategories_1.VERTICAL_TILLAGE]: [attributes_1.WIDTH, attributes_1.SPACING], [subcategories_1.WHEEL_DOZERS]: [attributes_1.HOURS], [subcategories_1.WHEEL_EXCAVATORS]: [attributes_1.HOURS], [subcategories_1.WHEEL_LOADERS]: [attributes_1.HOURS], [subcategories_1.WINDROWERS]: [attributes_1.WIDTH, attributes_1.HOURS], }; const getAttributesForSubCategory = (categoryName, subCategoryName) => { const subcategories = (0, categories_1.getSubcategoriesForCategory)(categoryName); let subcategory; if (subCategoryName === subcategories_1.OTHER) { subcategory = `Other ${categoryName}`; } else { subcategory = subcategories.find((x) => x === subCategoryName); } if (subcategory) { return exports.ATTRIBUTES_BY_SUBCATEGORY[subcategory] || []; } return []; }; exports.getAttributesForSubCategory = getAttributesForSubCategory;