module Exports::SalesLogExportConstants MAX_XML_RECORDS = 10_000 LOG_ID_OFFSET = 300_000_000_000 EXPORT_MODE = { xml: 1, csv: 2, }.freeze EXPORT_FIELDS = Set["id", "status", "saledate", "created_at", "updated_at", "owning_organisation_id", "assigned_to_id", "purchid", "type", "ownershipsch", "othtype", "jointmore", "jointpur", "beds", "companybuy", "ethnic", "ethnic_group", "buy1livein", "buylivein", "builtype", "proptype", "noint", "buy2livein", "privacynotice", "wheel", "hholdcount", "la", "la_known", "income1", "income1nk", "details_known_2", "details_known_3", "details_known_4", "inc1mort", "income2", "income2nk", "savingsnk", "savings", "prevown", "updated_by_id", "income1_value_check", "mortgage", "inc2mort", "mortgage_value_check", "hb", "savings_value_check", "deposit_value_check", "frombeds", "staircase", "stairbought", "stairowned", "mrent", "exdate", "exday", "exmonth", "exyear", "resale", "deposit", "cashdis", "disabled", "lanomagr", "wheel_value_check", "soctenant", "value", "equity", "discount", "grant", "pregyrha", "pregla", "pregghb", "pregother", "ppostcode_full", "is_previous_la_inferred", "ppcodenk", "ppostc1", "ppostc2", "prevloc", "previous_la_known", "hhregres", "hhregresstill", "proplen", "has_mscharge", "mscharge", "prevten", "mortgageused", "wchair", "income2_value_check", "armedforcesspouse", "hodate", "hoday", "homonth", "hoyear", "fromprop", "socprevten", "mortgagelender", "mortgagelenderother", "mortlen", "extrabor", "hhmemb", "totadult", "totchild", "hhtype", "pcode1", "pcode2", "pcodenk", "postcode_full", "is_la_inferred", "bulk_upload_id", "retirement_value_check", "hodate_check", "extrabor_value_check", "deposit_and_mortgage_value_check", "shared_ownership_deposit_value_check", "grant_value_check", "value_value_check", "old_persons_shared_ownership_value_check", "staircase_bought_value_check", "monthly_charges_value_check", "details_known_5", "details_known_6", "saledate_check", "prevshared", "staircasesale", "ethnic_group2", "ethnicbuy2", "proplen_asked", "old_id", "buy2living", "prevtenbuy2", "pregblank", "uprn", "uprn_known", "uprn_confirmed", "address_line1", "address_line2", "town_or_city", "county", "nationalbuy2", "discounted_sale_value_check", "student_not_child_value_check", "percentage_discount_value_check", "combined_income_value_check", "buyer_livein_value_check", "discarded_at", "stairowned_value_check", "creation_method", "old_form_id", "managing_organisation_id", "duplicate_set_id", "nationality_all", "nationality_all_group", "nationality_all_buyer2", "nationality_all_buyer2_group", "address_line1_input", "postcode_full_input", "address_search_value_check", "uprn_selection", "address_line1_as_entered", "address_line2_as_entered", "town_or_city_as_entered", "county_as_entered", "postcode_full_as_entered", "la_as_entered", "partner_under_16_value_check", "multiple_partners_value_check", "created_by_id", "has_management_fee", "management_fee", "firststair", "numstair", "mrentprestaircasing", "lasttransaction", "initialpurchase"] (1..6).each do |index| EXPORT_FIELDS << "age#{index}" EXPORT_FIELDS << "age#{index}_known" EXPORT_FIELDS << "ecstat#{index}" EXPORT_FIELDS << "sex#{index}" end (2..6).each do |index| EXPORT_FIELDS << "relat#{index}" end end