atlas_engine 0.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/README.md +123 -0
- data/Rakefile +20 -0
- data/app/assets/config/atlas_engine_manifest.js +3 -0
- data/app/assets/stylesheets/atlas_engine/application.css +15 -0
- data/app/concerns/atlas_engine/handles_blob.rb +26 -0
- data/app/concerns/atlas_engine/handles_interruption.rb +22 -0
- data/app/controllers/atlas_engine/application_controller.rb +7 -0
- data/app/controllers/atlas_engine/connectivity_controller.rb +21 -0
- data/app/controllers/atlas_engine/country_imports_controller.rb +73 -0
- data/app/controllers/atlas_engine/graphql_controller.rb +59 -0
- data/app/countries/atlas_engine/ar/country_profile.yml +9 -0
- data/app/countries/atlas_engine/at/address_importer/corrections/open_address/city_corrector.rb +23 -0
- data/app/countries/atlas_engine/at/country_profile.yml +24 -0
- data/app/countries/atlas_engine/at/index_configuration.yml +63 -0
- data/app/countries/atlas_engine/at/synonyms.yml +6 -0
- data/app/countries/atlas_engine/at/validation_transcriber/address_parser.rb +58 -0
- data/app/countries/atlas_engine/au/address_importer/open_address/filter.rb +26 -0
- data/app/countries/atlas_engine/au/address_importer/open_address/mapper.rb +41 -0
- data/app/countries/atlas_engine/au/country_profile.yml +13 -0
- data/app/countries/atlas_engine/au/synonyms.yml +209 -0
- data/app/countries/atlas_engine/au/validation_transcriber/address_parser.rb +121 -0
- data/app/countries/atlas_engine/be/country_profile.yml +12 -0
- data/app/countries/atlas_engine/bm/address_importer/corrections/open_address/city_alias_corrector.rb +38 -0
- data/app/countries/atlas_engine/bm/address_importer/open_address/mapper.rb +40 -0
- data/app/countries/atlas_engine/bm/country_profile.yml +12 -0
- data/app/countries/atlas_engine/br/country_profile.yml +4 -0
- data/app/countries/atlas_engine/ca/country_profile.yml +7 -0
- data/app/countries/atlas_engine/ca/synonyms.yml +1615 -0
- data/app/countries/atlas_engine/ch/address_importer/corrections/open_address/city_corrector.rb +29 -0
- data/app/countries/atlas_engine/ch/address_importer/corrections/open_address/locale_corrector.rb +74 -0
- data/app/countries/atlas_engine/ch/address_importer/open_address/mapper.rb +40 -0
- data/app/countries/atlas_engine/ch/country_profile.yml +15 -0
- data/app/countries/atlas_engine/ch/locales/de/country_profile.yml +15 -0
- data/app/countries/atlas_engine/ch/locales/de/index_configuration.yml +63 -0
- data/app/countries/atlas_engine/ch/locales/de/synonyms.yml +7 -0
- data/app/countries/atlas_engine/ch/locales/fr/synonyms.yml +21 -0
- data/app/countries/atlas_engine/cz/country_profile.yml +6 -0
- data/app/countries/atlas_engine/de/country_profile.yml +19 -0
- data/app/countries/atlas_engine/de/index_configuration.yml +64 -0
- data/app/countries/atlas_engine/de/synonyms.yml +2 -0
- data/app/countries/atlas_engine/de/validation_transcriber/address_parser.rb +19 -0
- data/app/countries/atlas_engine/dk/country_profile.yml +6 -0
- data/app/countries/atlas_engine/dk/synonyms.yml +3 -0
- data/app/countries/atlas_engine/dk/validation_transcriber/address_parser.rb +21 -0
- data/app/countries/atlas_engine/fo/country_profile.yml +5 -0
- data/app/countries/atlas_engine/fr/address_importer/corrections/open_address/city_corrector.rb +28 -0
- data/app/countries/atlas_engine/fr/country_profile.yml +13 -0
- data/app/countries/atlas_engine/fr/synonyms.yml +21 -0
- data/app/countries/atlas_engine/fr/validation_transcriber/address_parser.rb +34 -0
- data/app/countries/atlas_engine/gb/address_validation/es/query_builder.rb +98 -0
- data/app/countries/atlas_engine/gb/country_profile.yml +10 -0
- data/app/countries/atlas_engine/gb/validation_transcriber/full_address_parser.rb +164 -0
- data/app/countries/atlas_engine/gb/validation_transcriber/parsed_address.rb +120 -0
- data/app/countries/atlas_engine/gg/address_validation/validators/full_address/restrictions/unsupported_city.rb +39 -0
- data/app/countries/atlas_engine/gg/country_profile.yml +7 -0
- data/app/countries/atlas_engine/ie/country_profile.yml +3 -0
- data/app/countries/atlas_engine/it/address_importer/corrections/open_address/city_corrector.rb +27 -0
- data/app/countries/atlas_engine/it/address_importer/corrections/open_address/province_corrector.rb +29 -0
- data/app/countries/atlas_engine/it/address_importer/open_address/mapper.rb +42 -0
- data/app/countries/atlas_engine/it/country_profile.yml +11 -0
- data/app/countries/atlas_engine/jp/address_validation/es/data_mapper.rb +63 -0
- data/app/countries/atlas_engine/jp/country_profile.yml +6 -0
- data/app/countries/atlas_engine/kr/address_importer/open_address/mapper.rb +41 -0
- data/app/countries/atlas_engine/kr/country_profile.yml +11 -0
- data/app/countries/atlas_engine/li/address_importer/corrections/open_address/city_corrector.rb +25 -0
- data/app/countries/atlas_engine/li/country_profile.yml +21 -0
- data/app/countries/atlas_engine/li/index_configuration.yml +63 -0
- data/app/countries/atlas_engine/li/synonyms.yml +6 -0
- data/app/countries/atlas_engine/lt/country_profile.yml +6 -0
- data/app/countries/atlas_engine/lt/synonyms.yml +7 -0
- data/app/countries/atlas_engine/lt/validation_transcriber/address_parser.rb +24 -0
- data/app/countries/atlas_engine/lu/address_importer/corrections/open_address/locale_corrector.rb +54 -0
- data/app/countries/atlas_engine/lu/country_profile.yml +12 -0
- data/app/countries/atlas_engine/nl/address_importer/corrections/open_address/city_corrector.rb +25 -0
- data/app/countries/atlas_engine/nl/country_profile.yml +18 -0
- data/app/countries/atlas_engine/nl/index_configuration.yml +52 -0
- data/app/countries/atlas_engine/nl/synonyms.yml +92 -0
- data/app/countries/atlas_engine/nl/validation_transcriber/address_parser.rb +85 -0
- data/app/countries/atlas_engine/no/country_profile.yml +5 -0
- data/app/countries/atlas_engine/nz/country_profile.yml +3 -0
- data/app/countries/atlas_engine/pl/country_profile.yml +5 -0
- data/app/countries/atlas_engine/pl/validation_transcriber/address_parser.rb +19 -0
- data/app/countries/atlas_engine/pt/address_importer/corrections/open_address/city_corrector.rb +32 -0
- data/app/countries/atlas_engine/pt/address_importer/open_address/mapper.rb +39 -0
- data/app/countries/atlas_engine/pt/country_profile.yml +10 -0
- data/app/countries/atlas_engine/pt/synonyms.yml +7 -0
- data/app/countries/atlas_engine/sa/country_profile.yml +10 -0
- data/app/countries/atlas_engine/se/country_profile.yml +5 -0
- data/app/countries/atlas_engine/tt/address_importer/open_address/mapper.rb +38 -0
- data/app/countries/atlas_engine/tt/country_profile.yml +7 -0
- data/app/countries/atlas_engine/us/country_profile.yml +12 -0
- data/app/countries/atlas_engine/us/synonyms.yml +350 -0
- data/app/graphql/atlas_engine/errors/locale_unsupported_error.rb +17 -0
- data/app/graphql/atlas_engine/schema.graphql +1293 -0
- data/app/graphql/atlas_engine/schema.rb +23 -0
- data/app/graphql/atlas_engine/types/address_validation/address_input.rb +51 -0
- data/app/graphql/atlas_engine/types/address_validation/concern_type.rb +20 -0
- data/app/graphql/atlas_engine/types/address_validation/enums/concern_enum.rb +15 -0
- data/app/graphql/atlas_engine/types/address_validation/field_type.rb +15 -0
- data/app/graphql/atlas_engine/types/address_validation/suggestion_type.rb +21 -0
- data/app/graphql/atlas_engine/types/base_argument.rb +9 -0
- data/app/graphql/atlas_engine/types/base_enum.rb +9 -0
- data/app/graphql/atlas_engine/types/base_field.rb +10 -0
- data/app/graphql/atlas_engine/types/base_input_object.rb +9 -0
- data/app/graphql/atlas_engine/types/base_interface.rb +10 -0
- data/app/graphql/atlas_engine/types/base_object.rb +9 -0
- data/app/graphql/atlas_engine/types/base_scalar.rb +9 -0
- data/app/graphql/atlas_engine/types/base_union.rb +9 -0
- data/app/graphql/atlas_engine/types/matching_strategy_type.rb +12 -0
- data/app/graphql/atlas_engine/types/mutation_type.rb +9 -0
- data/app/graphql/atlas_engine/types/query_type.rb +61 -0
- data/app/graphql/atlas_engine/types/validation_supported_country.rb +12 -0
- data/app/graphql/atlas_engine/types/validation_type.rb +22 -0
- data/app/helpers/atlas_engine/address_importer/import_log_helper.rb +66 -0
- data/app/helpers/atlas_engine/application_helper.rb +7 -0
- data/app/helpers/atlas_engine/locale_format_helper.rb +40 -0
- data/app/helpers/atlas_engine/log_base.rb +32 -0
- data/app/helpers/atlas_engine/log_helper.rb +24 -0
- data/app/helpers/atlas_engine/metrics_helper.rb +25 -0
- data/app/jobs/atlas_engine/address_importer/clear_records_job.rb +39 -0
- data/app/jobs/atlas_engine/address_importer/open_address/geo_json_import_job.rb +212 -0
- data/app/jobs/atlas_engine/address_importer/open_address/geo_json_import_launcher_job.rb +67 -0
- data/app/jobs/atlas_engine/address_importer/open_address/prepares_geo_json_file.rb +41 -0
- data/app/jobs/atlas_engine/address_importer/resumable_import_job.rb +49 -0
- data/app/jobs/atlas_engine/address_importer/street_backfill_job.rb +63 -0
- data/app/jobs/atlas_engine/application_job.rb +10 -0
- data/app/jobs/atlas_engine/concerns/address_importer/handles_errors.rb +43 -0
- data/app/lib/atlas_engine/concern_formatter.rb +40 -0
- data/app/lib/atlas_engine/restrictions/base.rb +20 -0
- data/app/lib/atlas_engine/restrictions/unsupported_script.rb +31 -0
- data/app/lib/atlas_engine/validation_transcriber/address_parser_base.rb +201 -0
- data/app/lib/atlas_engine/validation_transcriber/address_parser_factory.rb +27 -0
- data/app/lib/atlas_engine/validation_transcriber/address_parser_north_america.rb +39 -0
- data/app/lib/atlas_engine/validation_transcriber/address_parser_oceanic.rb +17 -0
- data/app/lib/atlas_engine/validation_transcriber/address_parser_preprocessor.rb +132 -0
- data/app/lib/atlas_engine/validation_transcriber/address_parsing_helper.rb +38 -0
- data/app/lib/atlas_engine/validation_transcriber/address_parsings.rb +54 -0
- data/app/lib/atlas_engine/validation_transcriber/constants.rb +50 -0
- data/app/lib/atlas_engine/validation_transcriber/english_street_parser.rb +59 -0
- data/app/lib/atlas_engine/validation_transcriber/formatter.rb +46 -0
- data/app/lib/atlas_engine/validation_transcriber/french_street_parser.rb +50 -0
- data/app/lib/atlas_engine/validation_transcriber/province_code_normalizer.rb +45 -0
- data/app/lib/atlas_engine/validation_transcriber/street_parser.rb +18 -0
- data/app/lib/atlas_engine/validation_transcriber/zip_normalizer.rb +23 -0
- data/app/mailers/atlas_engine/application_mailer.rb +9 -0
- data/app/models/atlas_engine/address_importer/corrections/corrector.rb +33 -0
- data/app/models/atlas_engine/address_importer/import_events_notifier/base.rb +35 -0
- data/app/models/atlas_engine/address_importer/import_events_notifier/notifier.rb +26 -0
- data/app/models/atlas_engine/address_importer/open_address/default_mapper.rb +46 -0
- data/app/models/atlas_engine/address_importer/open_address/feature_helper.rb +110 -0
- data/app/models/atlas_engine/address_importer/open_address/filter.rb +17 -0
- data/app/models/atlas_engine/address_importer/open_address/loader.rb +27 -0
- data/app/models/atlas_engine/address_importer/open_address/transformer.rb +39 -0
- data/app/models/atlas_engine/address_importer/open_address.rb +10 -0
- data/app/models/atlas_engine/address_importer/validation/base_validator.rb +86 -0
- data/app/models/atlas_engine/address_importer/validation/default_validator.rb +27 -0
- data/app/models/atlas_engine/address_importer/validation/field_validations/city.rb +47 -0
- data/app/models/atlas_engine/address_importer/validation/field_validations/interface.rb +29 -0
- data/app/models/atlas_engine/address_importer/validation/field_validations/province.rb +73 -0
- data/app/models/atlas_engine/address_importer/validation/field_validations/zip.rb +84 -0
- data/app/models/atlas_engine/address_importer/validation/validator.rb +17 -0
- data/app/models/atlas_engine/address_importer/validation/wrapper.rb +70 -0
- data/app/models/atlas_engine/address_number.rb +36 -0
- data/app/models/atlas_engine/address_number_range.rb +200 -0
- data/app/models/atlas_engine/address_validation/abstract_address.rb +49 -0
- data/app/models/atlas_engine/address_validation/address.rb +47 -0
- data/app/models/atlas_engine/address_validation/candidate.rb +109 -0
- data/app/models/atlas_engine/address_validation/candidate_tuple.rb +15 -0
- data/app/models/atlas_engine/address_validation/concern.rb +74 -0
- data/app/models/atlas_engine/address_validation/concern_producer.rb +19 -0
- data/app/models/atlas_engine/address_validation/concern_queue.rb +20 -0
- data/app/models/atlas_engine/address_validation/concern_record.rb +122 -0
- data/app/models/atlas_engine/address_validation/datastore_base.rb +27 -0
- data/app/models/atlas_engine/address_validation/errors.rb +13 -0
- data/app/models/atlas_engine/address_validation/es/candidate_selector.rb +70 -0
- data/app/models/atlas_engine/address_validation/es/data_mappers/decompounding_data_mapper.rb +39 -0
- data/app/models/atlas_engine/address_validation/es/data_mappers/default_data_mapper.rb +110 -0
- data/app/models/atlas_engine/address_validation/es/datastore.rb +229 -0
- data/app/models/atlas_engine/address_validation/es/default_query_builder.rb +30 -0
- data/app/models/atlas_engine/address_validation/es/query_builder.rb +160 -0
- data/app/models/atlas_engine/address_validation/es/term_vectors.rb +78 -0
- data/app/models/atlas_engine/address_validation/es/validators/full_address.rb +123 -0
- data/app/models/atlas_engine/address_validation/es/validators/full_address_street.rb +18 -0
- data/app/models/atlas_engine/address_validation/es/validators/restriction_evaluator.rb +37 -0
- data/app/models/atlas_engine/address_validation/field.rb +30 -0
- data/app/models/atlas_engine/address_validation/full_address_validator_base.rb +27 -0
- data/app/models/atlas_engine/address_validation/log_emitter.rb +66 -0
- data/app/models/atlas_engine/address_validation/matching_strategies.rb +16 -0
- data/app/models/atlas_engine/address_validation/normalizer.rb +38 -0
- data/app/models/atlas_engine/address_validation/predicate_pipeline.rb +80 -0
- data/app/models/atlas_engine/address_validation/request.rb +12 -0
- data/app/models/atlas_engine/address_validation/result.rb +154 -0
- data/app/models/atlas_engine/address_validation/runs_validation.rb +16 -0
- data/app/models/atlas_engine/address_validation/session.rb +47 -0
- data/app/models/atlas_engine/address_validation/statsd_emitter.rb +72 -0
- data/app/models/atlas_engine/address_validation/strategies.rb +10 -0
- data/app/models/atlas_engine/address_validation/suggestion.rb +97 -0
- data/app/models/atlas_engine/address_validation/token/comparator.rb +44 -0
- data/app/models/atlas_engine/address_validation/token/comparison.rb +76 -0
- data/app/models/atlas_engine/address_validation/token/sequence/comparator.rb +158 -0
- data/app/models/atlas_engine/address_validation/token/sequence/comparison.rb +166 -0
- data/app/models/atlas_engine/address_validation/token/sequence.rb +147 -0
- data/app/models/atlas_engine/address_validation/token/synonyms.rb +77 -0
- data/app/models/atlas_engine/address_validation/token.rb +113 -0
- data/app/models/atlas_engine/address_validation/validator.rb +147 -0
- data/app/models/atlas_engine/address_validation/validators/full_address/address_comparison.rb +97 -0
- data/app/models/atlas_engine/address_validation/validators/full_address/candidate_result.rb +164 -0
- data/app/models/atlas_engine/address_validation/validators/full_address/candidate_result_base.rb +46 -0
- data/app/models/atlas_engine/address_validation/validators/full_address/comparison_helper.rb +135 -0
- data/app/models/atlas_engine/address_validation/validators/full_address/components_to_validate.rb +88 -0
- data/app/models/atlas_engine/address_validation/validators/full_address/concern_builder.rb +127 -0
- data/app/models/atlas_engine/address_validation/validators/full_address/exclusions/exclusion_base.rb +23 -0
- data/app/models/atlas_engine/address_validation/validators/full_address/invalid_zip_concern_builder.rb +42 -0
- data/app/models/atlas_engine/address_validation/validators/full_address/invalid_zip_for_country_concern.rb +37 -0
- data/app/models/atlas_engine/address_validation/validators/full_address/invalid_zip_for_province_concern.rb +37 -0
- data/app/models/atlas_engine/address_validation/validators/full_address/no_candidate_result.rb +26 -0
- data/app/models/atlas_engine/address_validation/validators/full_address/number_comparison.rb +31 -0
- data/app/models/atlas_engine/address_validation/validators/full_address/postal_code_matcher.rb +60 -0
- data/app/models/atlas_engine/address_validation/validators/full_address/result_updater.rb +42 -0
- data/app/models/atlas_engine/address_validation/validators/full_address/suggestion_builder.rb +140 -0
- data/app/models/atlas_engine/address_validation/validators/full_address/unknown_address_concern.rb +30 -0
- data/app/models/atlas_engine/address_validation/validators/full_address/unknown_province_concern.rb +38 -0
- data/app/models/atlas_engine/address_validation/validators/full_address/unknown_zip_for_address_concern.rb +32 -0
- data/app/models/atlas_engine/address_validation/validators/full_address/unmatched_field_concern.rb +84 -0
- data/app/models/atlas_engine/address_validation/validators/full_address/unsupported_script_result.rb +22 -0
- data/app/models/atlas_engine/address_validation/validators/predicates/cache.rb +38 -0
- data/app/models/atlas_engine/address_validation/validators/predicates/city/present.rb +36 -0
- data/app/models/atlas_engine/address_validation/validators/predicates/country/exists.rb +34 -0
- data/app/models/atlas_engine/address_validation/validators/predicates/country/valid_for_zip.rb +60 -0
- data/app/models/atlas_engine/address_validation/validators/predicates/no_emojis.rb +38 -0
- data/app/models/atlas_engine/address_validation/validators/predicates/no_html_tags.rb +39 -0
- data/app/models/atlas_engine/address_validation/validators/predicates/no_url.rb +38 -0
- data/app/models/atlas_engine/address_validation/validators/predicates/not_exceed_max_length.rb +34 -0
- data/app/models/atlas_engine/address_validation/validators/predicates/not_exceed_max_token_count.rb +63 -0
- data/app/models/atlas_engine/address_validation/validators/predicates/phone/valid.rb +41 -0
- data/app/models/atlas_engine/address_validation/validators/predicates/predicate.rb +37 -0
- data/app/models/atlas_engine/address_validation/validators/predicates/province/exists.rb +43 -0
- data/app/models/atlas_engine/address_validation/validators/predicates/province/valid_for_country.rb +48 -0
- data/app/models/atlas_engine/address_validation/validators/predicates/street/building_number_in_address1.rb +45 -0
- data/app/models/atlas_engine/address_validation/validators/predicates/street/building_number_in_address1_or_address2.rb +43 -0
- data/app/models/atlas_engine/address_validation/validators/predicates/street/present.rb +35 -0
- data/app/models/atlas_engine/address_validation/validators/predicates/zip/present.rb +58 -0
- data/app/models/atlas_engine/address_validation/validators/predicates/zip/valid_for_country.rb +45 -0
- data/app/models/atlas_engine/address_validation/validators/predicates/zip/valid_for_province.rb +55 -0
- data/app/models/atlas_engine/address_validation/validators/predicates/zip/zip_base.rb +25 -0
- data/app/models/atlas_engine/address_validation/zip_truncator.rb +32 -0
- data/app/models/atlas_engine/application_record.rb +8 -0
- data/app/models/atlas_engine/coded_error.rb +18 -0
- data/app/models/atlas_engine/coded_errors.rb +17 -0
- data/app/models/atlas_engine/country_import.rb +44 -0
- data/app/models/atlas_engine/country_profile.rb +270 -0
- data/app/models/atlas_engine/country_profile_ingestion_subset.rb +42 -0
- data/app/models/atlas_engine/country_profile_subset_base.rb +22 -0
- data/app/models/atlas_engine/country_profile_validation_subset.rb +48 -0
- data/app/models/atlas_engine/country_repository.rb +110 -0
- data/app/models/atlas_engine/elasticsearch/client.rb +116 -0
- data/app/models/atlas_engine/elasticsearch/client_interface.rb +89 -0
- data/app/models/atlas_engine/elasticsearch/repository.rb +246 -0
- data/app/models/atlas_engine/elasticsearch/repository_interface.rb +82 -0
- data/app/models/atlas_engine/elasticsearch/response.rb +20 -0
- data/app/models/atlas_engine/event.rb +12 -0
- data/app/models/atlas_engine/field_decompounder.rb +36 -0
- data/app/models/atlas_engine/index_configuration_factory.rb +188 -0
- data/app/models/atlas_engine/post_address.rb +114 -0
- data/app/models/atlas_engine/post_address_importer.rb +34 -0
- data/app/models/atlas_engine/services/service_helper.rb +21 -0
- data/app/models/atlas_engine/services/validation.rb +65 -0
- data/app/models/atlas_engine/services/validation_eligibility.rb +18 -0
- data/app/models/atlas_engine/street.rb +34 -0
- data/app/tasks/maintenance/atlas_engine/elasticsearch_index_create_task.rb +106 -0
- data/app/tasks/maintenance/atlas_engine/geo_json_import_task.rb +29 -0
- data/app/views/atlas_engine/connectivity/index.html.erb +50 -0
- data/app/views/atlas_engine/country_imports/index.html.erb +49 -0
- data/app/views/atlas_engine/country_imports/show.html.erb +73 -0
- data/app/views/layouts/atlas_engine/application.html.erb +15 -0
- data/config/initializers/1.ruby_patches.rb +18 -0
- data/config/initializers/sorbet.rb +5 -0
- data/config/initializers/worldwide.rb +5 -0
- data/config/locales/internal/en.yml +14 -0
- data/config/routes.rb +17 -0
- data/db/data/address_synonyms/index_configurations/default.yml +141 -0
- data/db/data/country_profiles/default.yml +23 -0
- data/db/data/transcriber.yml +760 -0
- data/db/data/validation_pipelines/es.yml +58 -0
- data/db/data/validation_pipelines/es_street.yml +58 -0
- data/db/data/validation_pipelines/local.yml +60 -0
- data/db/migrate/20230919173037_create_atlas_engine_post_addresses.rb +25 -0
- data/db/migrate/20231117142735_add_building_and_unit_ranges_column.rb +7 -0
- data/db/migrate/20231117143536_create_atlas_engine_country_imports.rb +11 -0
- data/db/migrate/20231117145844_create_atlas_engine_events_table.rb +13 -0
- data/db/migrate/20231123153554_add_unique_index_to_atlas_engine_post_addresses.rb +14 -0
- data/db/migrate/20231123154658_add_index_to_post_addresses_on_source_id_locale_country_code.rb +12 -0
- data/lib/atlas_engine/engine.rb +10 -0
- data/lib/atlas_engine/version.rb +6 -0
- data/lib/atlas_engine.rb +66 -0
- data/lib/tasks/atlas_engine/address_importer.rake +20 -0
- metadata +553 -0
metadata
ADDED
@@ -0,0 +1,553 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: atlas_engine
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.1.0
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Shopify
|
8
|
+
autorequire:
|
9
|
+
bindir: bin
|
10
|
+
cert_chain: []
|
11
|
+
date: 2024-01-17 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: annex_29
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - ">="
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: '0'
|
20
|
+
type: :runtime
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - ">="
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: '0'
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: elasticsearch-model
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - ">="
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: '0'
|
34
|
+
type: :runtime
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - ">="
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: '0'
|
41
|
+
- !ruby/object:Gem::Dependency
|
42
|
+
name: elasticsearch-rails
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
45
|
+
- - ">="
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: '0'
|
48
|
+
type: :runtime
|
49
|
+
prerelease: false
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - ">="
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: '0'
|
55
|
+
- !ruby/object:Gem::Dependency
|
56
|
+
name: elastic-transport
|
57
|
+
requirement: !ruby/object:Gem::Requirement
|
58
|
+
requirements:
|
59
|
+
- - ">="
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: '0'
|
62
|
+
type: :runtime
|
63
|
+
prerelease: false
|
64
|
+
version_requirements: !ruby/object:Gem::Requirement
|
65
|
+
requirements:
|
66
|
+
- - ">="
|
67
|
+
- !ruby/object:Gem::Version
|
68
|
+
version: '0'
|
69
|
+
- !ruby/object:Gem::Dependency
|
70
|
+
name: frozen_record
|
71
|
+
requirement: !ruby/object:Gem::Requirement
|
72
|
+
requirements:
|
73
|
+
- - ">="
|
74
|
+
- !ruby/object:Gem::Version
|
75
|
+
version: '0'
|
76
|
+
type: :runtime
|
77
|
+
prerelease: false
|
78
|
+
version_requirements: !ruby/object:Gem::Requirement
|
79
|
+
requirements:
|
80
|
+
- - ">="
|
81
|
+
- !ruby/object:Gem::Version
|
82
|
+
version: '0'
|
83
|
+
- !ruby/object:Gem::Dependency
|
84
|
+
name: graphiql-rails
|
85
|
+
requirement: !ruby/object:Gem::Requirement
|
86
|
+
requirements:
|
87
|
+
- - ">="
|
88
|
+
- !ruby/object:Gem::Version
|
89
|
+
version: '0'
|
90
|
+
type: :runtime
|
91
|
+
prerelease: false
|
92
|
+
version_requirements: !ruby/object:Gem::Requirement
|
93
|
+
requirements:
|
94
|
+
- - ">="
|
95
|
+
- !ruby/object:Gem::Version
|
96
|
+
version: '0'
|
97
|
+
- !ruby/object:Gem::Dependency
|
98
|
+
name: graphql
|
99
|
+
requirement: !ruby/object:Gem::Requirement
|
100
|
+
requirements:
|
101
|
+
- - ">="
|
102
|
+
- !ruby/object:Gem::Version
|
103
|
+
version: '0'
|
104
|
+
type: :runtime
|
105
|
+
prerelease: false
|
106
|
+
version_requirements: !ruby/object:Gem::Requirement
|
107
|
+
requirements:
|
108
|
+
- - ">="
|
109
|
+
- !ruby/object:Gem::Version
|
110
|
+
version: '0'
|
111
|
+
- !ruby/object:Gem::Dependency
|
112
|
+
name: htmlentities
|
113
|
+
requirement: !ruby/object:Gem::Requirement
|
114
|
+
requirements:
|
115
|
+
- - ">="
|
116
|
+
- !ruby/object:Gem::Version
|
117
|
+
version: '0'
|
118
|
+
type: :runtime
|
119
|
+
prerelease: false
|
120
|
+
version_requirements: !ruby/object:Gem::Requirement
|
121
|
+
requirements:
|
122
|
+
- - ">="
|
123
|
+
- !ruby/object:Gem::Version
|
124
|
+
version: '0'
|
125
|
+
- !ruby/object:Gem::Dependency
|
126
|
+
name: maintenance_tasks
|
127
|
+
requirement: !ruby/object:Gem::Requirement
|
128
|
+
requirements:
|
129
|
+
- - ">="
|
130
|
+
- !ruby/object:Gem::Version
|
131
|
+
version: '0'
|
132
|
+
type: :runtime
|
133
|
+
prerelease: false
|
134
|
+
version_requirements: !ruby/object:Gem::Requirement
|
135
|
+
requirements:
|
136
|
+
- - ">="
|
137
|
+
- !ruby/object:Gem::Version
|
138
|
+
version: '0'
|
139
|
+
- !ruby/object:Gem::Dependency
|
140
|
+
name: rails
|
141
|
+
requirement: !ruby/object:Gem::Requirement
|
142
|
+
requirements:
|
143
|
+
- - ">="
|
144
|
+
- !ruby/object:Gem::Version
|
145
|
+
version: 7.0.7.2
|
146
|
+
type: :runtime
|
147
|
+
prerelease: false
|
148
|
+
version_requirements: !ruby/object:Gem::Requirement
|
149
|
+
requirements:
|
150
|
+
- - ">="
|
151
|
+
- !ruby/object:Gem::Version
|
152
|
+
version: 7.0.7.2
|
153
|
+
- !ruby/object:Gem::Dependency
|
154
|
+
name: rubyzip
|
155
|
+
requirement: !ruby/object:Gem::Requirement
|
156
|
+
requirements:
|
157
|
+
- - ">="
|
158
|
+
- !ruby/object:Gem::Version
|
159
|
+
version: '0'
|
160
|
+
type: :runtime
|
161
|
+
prerelease: false
|
162
|
+
version_requirements: !ruby/object:Gem::Requirement
|
163
|
+
requirements:
|
164
|
+
- - ">="
|
165
|
+
- !ruby/object:Gem::Version
|
166
|
+
version: '0'
|
167
|
+
- !ruby/object:Gem::Dependency
|
168
|
+
name: sorbet-runtime
|
169
|
+
requirement: !ruby/object:Gem::Requirement
|
170
|
+
requirements:
|
171
|
+
- - ">="
|
172
|
+
- !ruby/object:Gem::Version
|
173
|
+
version: '0'
|
174
|
+
type: :runtime
|
175
|
+
prerelease: false
|
176
|
+
version_requirements: !ruby/object:Gem::Requirement
|
177
|
+
requirements:
|
178
|
+
- - ">="
|
179
|
+
- !ruby/object:Gem::Version
|
180
|
+
version: '0'
|
181
|
+
- !ruby/object:Gem::Dependency
|
182
|
+
name: state_machines-activerecord
|
183
|
+
requirement: !ruby/object:Gem::Requirement
|
184
|
+
requirements:
|
185
|
+
- - ">="
|
186
|
+
- !ruby/object:Gem::Version
|
187
|
+
version: '0'
|
188
|
+
type: :runtime
|
189
|
+
prerelease: false
|
190
|
+
version_requirements: !ruby/object:Gem::Requirement
|
191
|
+
requirements:
|
192
|
+
- - ">="
|
193
|
+
- !ruby/object:Gem::Version
|
194
|
+
version: '0'
|
195
|
+
- !ruby/object:Gem::Dependency
|
196
|
+
name: statsd-instrument
|
197
|
+
requirement: !ruby/object:Gem::Requirement
|
198
|
+
requirements:
|
199
|
+
- - ">="
|
200
|
+
- !ruby/object:Gem::Version
|
201
|
+
version: '0'
|
202
|
+
type: :runtime
|
203
|
+
prerelease: false
|
204
|
+
version_requirements: !ruby/object:Gem::Requirement
|
205
|
+
requirements:
|
206
|
+
- - ">="
|
207
|
+
- !ruby/object:Gem::Version
|
208
|
+
version: '0'
|
209
|
+
- !ruby/object:Gem::Dependency
|
210
|
+
name: worldwide
|
211
|
+
requirement: !ruby/object:Gem::Requirement
|
212
|
+
requirements:
|
213
|
+
- - ">="
|
214
|
+
- !ruby/object:Gem::Version
|
215
|
+
version: '0'
|
216
|
+
type: :runtime
|
217
|
+
prerelease: false
|
218
|
+
version_requirements: !ruby/object:Gem::Requirement
|
219
|
+
requirements:
|
220
|
+
- - ">="
|
221
|
+
- !ruby/object:Gem::Version
|
222
|
+
version: '0'
|
223
|
+
description: The Atlas Engine is a rails engine that provides a GraphQL API for address
|
224
|
+
validation.
|
225
|
+
email: developers@shopify.com
|
226
|
+
executables: []
|
227
|
+
extensions: []
|
228
|
+
extra_rdoc_files: []
|
229
|
+
files:
|
230
|
+
- README.md
|
231
|
+
- Rakefile
|
232
|
+
- app/assets/config/atlas_engine_manifest.js
|
233
|
+
- app/assets/stylesheets/atlas_engine/application.css
|
234
|
+
- app/concerns/atlas_engine/handles_blob.rb
|
235
|
+
- app/concerns/atlas_engine/handles_interruption.rb
|
236
|
+
- app/controllers/atlas_engine/application_controller.rb
|
237
|
+
- app/controllers/atlas_engine/connectivity_controller.rb
|
238
|
+
- app/controllers/atlas_engine/country_imports_controller.rb
|
239
|
+
- app/controllers/atlas_engine/graphql_controller.rb
|
240
|
+
- app/countries/atlas_engine/ar/country_profile.yml
|
241
|
+
- app/countries/atlas_engine/at/address_importer/corrections/open_address/city_corrector.rb
|
242
|
+
- app/countries/atlas_engine/at/country_profile.yml
|
243
|
+
- app/countries/atlas_engine/at/index_configuration.yml
|
244
|
+
- app/countries/atlas_engine/at/synonyms.yml
|
245
|
+
- app/countries/atlas_engine/at/validation_transcriber/address_parser.rb
|
246
|
+
- app/countries/atlas_engine/au/address_importer/open_address/filter.rb
|
247
|
+
- app/countries/atlas_engine/au/address_importer/open_address/mapper.rb
|
248
|
+
- app/countries/atlas_engine/au/country_profile.yml
|
249
|
+
- app/countries/atlas_engine/au/synonyms.yml
|
250
|
+
- app/countries/atlas_engine/au/validation_transcriber/address_parser.rb
|
251
|
+
- app/countries/atlas_engine/be/country_profile.yml
|
252
|
+
- app/countries/atlas_engine/bm/address_importer/corrections/open_address/city_alias_corrector.rb
|
253
|
+
- app/countries/atlas_engine/bm/address_importer/open_address/mapper.rb
|
254
|
+
- app/countries/atlas_engine/bm/country_profile.yml
|
255
|
+
- app/countries/atlas_engine/br/country_profile.yml
|
256
|
+
- app/countries/atlas_engine/ca/country_profile.yml
|
257
|
+
- app/countries/atlas_engine/ca/synonyms.yml
|
258
|
+
- app/countries/atlas_engine/ch/address_importer/corrections/open_address/city_corrector.rb
|
259
|
+
- app/countries/atlas_engine/ch/address_importer/corrections/open_address/locale_corrector.rb
|
260
|
+
- app/countries/atlas_engine/ch/address_importer/open_address/mapper.rb
|
261
|
+
- app/countries/atlas_engine/ch/country_profile.yml
|
262
|
+
- app/countries/atlas_engine/ch/locales/de/country_profile.yml
|
263
|
+
- app/countries/atlas_engine/ch/locales/de/index_configuration.yml
|
264
|
+
- app/countries/atlas_engine/ch/locales/de/synonyms.yml
|
265
|
+
- app/countries/atlas_engine/ch/locales/fr/synonyms.yml
|
266
|
+
- app/countries/atlas_engine/cz/country_profile.yml
|
267
|
+
- app/countries/atlas_engine/de/country_profile.yml
|
268
|
+
- app/countries/atlas_engine/de/index_configuration.yml
|
269
|
+
- app/countries/atlas_engine/de/synonyms.yml
|
270
|
+
- app/countries/atlas_engine/de/validation_transcriber/address_parser.rb
|
271
|
+
- app/countries/atlas_engine/dk/country_profile.yml
|
272
|
+
- app/countries/atlas_engine/dk/synonyms.yml
|
273
|
+
- app/countries/atlas_engine/dk/validation_transcriber/address_parser.rb
|
274
|
+
- app/countries/atlas_engine/fo/country_profile.yml
|
275
|
+
- app/countries/atlas_engine/fr/address_importer/corrections/open_address/city_corrector.rb
|
276
|
+
- app/countries/atlas_engine/fr/country_profile.yml
|
277
|
+
- app/countries/atlas_engine/fr/synonyms.yml
|
278
|
+
- app/countries/atlas_engine/fr/validation_transcriber/address_parser.rb
|
279
|
+
- app/countries/atlas_engine/gb/address_validation/es/query_builder.rb
|
280
|
+
- app/countries/atlas_engine/gb/country_profile.yml
|
281
|
+
- app/countries/atlas_engine/gb/validation_transcriber/full_address_parser.rb
|
282
|
+
- app/countries/atlas_engine/gb/validation_transcriber/parsed_address.rb
|
283
|
+
- app/countries/atlas_engine/gg/address_validation/validators/full_address/restrictions/unsupported_city.rb
|
284
|
+
- app/countries/atlas_engine/gg/country_profile.yml
|
285
|
+
- app/countries/atlas_engine/ie/country_profile.yml
|
286
|
+
- app/countries/atlas_engine/it/address_importer/corrections/open_address/city_corrector.rb
|
287
|
+
- app/countries/atlas_engine/it/address_importer/corrections/open_address/province_corrector.rb
|
288
|
+
- app/countries/atlas_engine/it/address_importer/open_address/mapper.rb
|
289
|
+
- app/countries/atlas_engine/it/country_profile.yml
|
290
|
+
- app/countries/atlas_engine/jp/address_validation/es/data_mapper.rb
|
291
|
+
- app/countries/atlas_engine/jp/country_profile.yml
|
292
|
+
- app/countries/atlas_engine/kr/address_importer/open_address/mapper.rb
|
293
|
+
- app/countries/atlas_engine/kr/country_profile.yml
|
294
|
+
- app/countries/atlas_engine/li/address_importer/corrections/open_address/city_corrector.rb
|
295
|
+
- app/countries/atlas_engine/li/country_profile.yml
|
296
|
+
- app/countries/atlas_engine/li/index_configuration.yml
|
297
|
+
- app/countries/atlas_engine/li/synonyms.yml
|
298
|
+
- app/countries/atlas_engine/lt/country_profile.yml
|
299
|
+
- app/countries/atlas_engine/lt/synonyms.yml
|
300
|
+
- app/countries/atlas_engine/lt/validation_transcriber/address_parser.rb
|
301
|
+
- app/countries/atlas_engine/lu/address_importer/corrections/open_address/locale_corrector.rb
|
302
|
+
- app/countries/atlas_engine/lu/country_profile.yml
|
303
|
+
- app/countries/atlas_engine/nl/address_importer/corrections/open_address/city_corrector.rb
|
304
|
+
- app/countries/atlas_engine/nl/country_profile.yml
|
305
|
+
- app/countries/atlas_engine/nl/index_configuration.yml
|
306
|
+
- app/countries/atlas_engine/nl/synonyms.yml
|
307
|
+
- app/countries/atlas_engine/nl/validation_transcriber/address_parser.rb
|
308
|
+
- app/countries/atlas_engine/no/country_profile.yml
|
309
|
+
- app/countries/atlas_engine/nz/country_profile.yml
|
310
|
+
- app/countries/atlas_engine/pl/country_profile.yml
|
311
|
+
- app/countries/atlas_engine/pl/validation_transcriber/address_parser.rb
|
312
|
+
- app/countries/atlas_engine/pt/address_importer/corrections/open_address/city_corrector.rb
|
313
|
+
- app/countries/atlas_engine/pt/address_importer/open_address/mapper.rb
|
314
|
+
- app/countries/atlas_engine/pt/country_profile.yml
|
315
|
+
- app/countries/atlas_engine/pt/synonyms.yml
|
316
|
+
- app/countries/atlas_engine/sa/country_profile.yml
|
317
|
+
- app/countries/atlas_engine/se/country_profile.yml
|
318
|
+
- app/countries/atlas_engine/tt/address_importer/open_address/mapper.rb
|
319
|
+
- app/countries/atlas_engine/tt/country_profile.yml
|
320
|
+
- app/countries/atlas_engine/us/country_profile.yml
|
321
|
+
- app/countries/atlas_engine/us/synonyms.yml
|
322
|
+
- app/graphql/atlas_engine/errors/locale_unsupported_error.rb
|
323
|
+
- app/graphql/atlas_engine/schema.graphql
|
324
|
+
- app/graphql/atlas_engine/schema.rb
|
325
|
+
- app/graphql/atlas_engine/types/address_validation/address_input.rb
|
326
|
+
- app/graphql/atlas_engine/types/address_validation/concern_type.rb
|
327
|
+
- app/graphql/atlas_engine/types/address_validation/enums/concern_enum.rb
|
328
|
+
- app/graphql/atlas_engine/types/address_validation/field_type.rb
|
329
|
+
- app/graphql/atlas_engine/types/address_validation/suggestion_type.rb
|
330
|
+
- app/graphql/atlas_engine/types/base_argument.rb
|
331
|
+
- app/graphql/atlas_engine/types/base_enum.rb
|
332
|
+
- app/graphql/atlas_engine/types/base_field.rb
|
333
|
+
- app/graphql/atlas_engine/types/base_input_object.rb
|
334
|
+
- app/graphql/atlas_engine/types/base_interface.rb
|
335
|
+
- app/graphql/atlas_engine/types/base_object.rb
|
336
|
+
- app/graphql/atlas_engine/types/base_scalar.rb
|
337
|
+
- app/graphql/atlas_engine/types/base_union.rb
|
338
|
+
- app/graphql/atlas_engine/types/matching_strategy_type.rb
|
339
|
+
- app/graphql/atlas_engine/types/mutation_type.rb
|
340
|
+
- app/graphql/atlas_engine/types/query_type.rb
|
341
|
+
- app/graphql/atlas_engine/types/validation_supported_country.rb
|
342
|
+
- app/graphql/atlas_engine/types/validation_type.rb
|
343
|
+
- app/helpers/atlas_engine/address_importer/import_log_helper.rb
|
344
|
+
- app/helpers/atlas_engine/application_helper.rb
|
345
|
+
- app/helpers/atlas_engine/locale_format_helper.rb
|
346
|
+
- app/helpers/atlas_engine/log_base.rb
|
347
|
+
- app/helpers/atlas_engine/log_helper.rb
|
348
|
+
- app/helpers/atlas_engine/metrics_helper.rb
|
349
|
+
- app/jobs/atlas_engine/address_importer/clear_records_job.rb
|
350
|
+
- app/jobs/atlas_engine/address_importer/open_address/geo_json_import_job.rb
|
351
|
+
- app/jobs/atlas_engine/address_importer/open_address/geo_json_import_launcher_job.rb
|
352
|
+
- app/jobs/atlas_engine/address_importer/open_address/prepares_geo_json_file.rb
|
353
|
+
- app/jobs/atlas_engine/address_importer/resumable_import_job.rb
|
354
|
+
- app/jobs/atlas_engine/address_importer/street_backfill_job.rb
|
355
|
+
- app/jobs/atlas_engine/application_job.rb
|
356
|
+
- app/jobs/atlas_engine/concerns/address_importer/handles_errors.rb
|
357
|
+
- app/lib/atlas_engine/concern_formatter.rb
|
358
|
+
- app/lib/atlas_engine/restrictions/base.rb
|
359
|
+
- app/lib/atlas_engine/restrictions/unsupported_script.rb
|
360
|
+
- app/lib/atlas_engine/validation_transcriber/address_parser_base.rb
|
361
|
+
- app/lib/atlas_engine/validation_transcriber/address_parser_factory.rb
|
362
|
+
- app/lib/atlas_engine/validation_transcriber/address_parser_north_america.rb
|
363
|
+
- app/lib/atlas_engine/validation_transcriber/address_parser_oceanic.rb
|
364
|
+
- app/lib/atlas_engine/validation_transcriber/address_parser_preprocessor.rb
|
365
|
+
- app/lib/atlas_engine/validation_transcriber/address_parsing_helper.rb
|
366
|
+
- app/lib/atlas_engine/validation_transcriber/address_parsings.rb
|
367
|
+
- app/lib/atlas_engine/validation_transcriber/constants.rb
|
368
|
+
- app/lib/atlas_engine/validation_transcriber/english_street_parser.rb
|
369
|
+
- app/lib/atlas_engine/validation_transcriber/formatter.rb
|
370
|
+
- app/lib/atlas_engine/validation_transcriber/french_street_parser.rb
|
371
|
+
- app/lib/atlas_engine/validation_transcriber/province_code_normalizer.rb
|
372
|
+
- app/lib/atlas_engine/validation_transcriber/street_parser.rb
|
373
|
+
- app/lib/atlas_engine/validation_transcriber/zip_normalizer.rb
|
374
|
+
- app/mailers/atlas_engine/application_mailer.rb
|
375
|
+
- app/models/atlas_engine/address_importer/corrections/corrector.rb
|
376
|
+
- app/models/atlas_engine/address_importer/import_events_notifier/base.rb
|
377
|
+
- app/models/atlas_engine/address_importer/import_events_notifier/notifier.rb
|
378
|
+
- app/models/atlas_engine/address_importer/open_address.rb
|
379
|
+
- app/models/atlas_engine/address_importer/open_address/default_mapper.rb
|
380
|
+
- app/models/atlas_engine/address_importer/open_address/feature_helper.rb
|
381
|
+
- app/models/atlas_engine/address_importer/open_address/filter.rb
|
382
|
+
- app/models/atlas_engine/address_importer/open_address/loader.rb
|
383
|
+
- app/models/atlas_engine/address_importer/open_address/transformer.rb
|
384
|
+
- app/models/atlas_engine/address_importer/validation/base_validator.rb
|
385
|
+
- app/models/atlas_engine/address_importer/validation/default_validator.rb
|
386
|
+
- app/models/atlas_engine/address_importer/validation/field_validations/city.rb
|
387
|
+
- app/models/atlas_engine/address_importer/validation/field_validations/interface.rb
|
388
|
+
- app/models/atlas_engine/address_importer/validation/field_validations/province.rb
|
389
|
+
- app/models/atlas_engine/address_importer/validation/field_validations/zip.rb
|
390
|
+
- app/models/atlas_engine/address_importer/validation/validator.rb
|
391
|
+
- app/models/atlas_engine/address_importer/validation/wrapper.rb
|
392
|
+
- app/models/atlas_engine/address_number.rb
|
393
|
+
- app/models/atlas_engine/address_number_range.rb
|
394
|
+
- app/models/atlas_engine/address_validation/abstract_address.rb
|
395
|
+
- app/models/atlas_engine/address_validation/address.rb
|
396
|
+
- app/models/atlas_engine/address_validation/candidate.rb
|
397
|
+
- app/models/atlas_engine/address_validation/candidate_tuple.rb
|
398
|
+
- app/models/atlas_engine/address_validation/concern.rb
|
399
|
+
- app/models/atlas_engine/address_validation/concern_producer.rb
|
400
|
+
- app/models/atlas_engine/address_validation/concern_queue.rb
|
401
|
+
- app/models/atlas_engine/address_validation/concern_record.rb
|
402
|
+
- app/models/atlas_engine/address_validation/datastore_base.rb
|
403
|
+
- app/models/atlas_engine/address_validation/errors.rb
|
404
|
+
- app/models/atlas_engine/address_validation/es/candidate_selector.rb
|
405
|
+
- app/models/atlas_engine/address_validation/es/data_mappers/decompounding_data_mapper.rb
|
406
|
+
- app/models/atlas_engine/address_validation/es/data_mappers/default_data_mapper.rb
|
407
|
+
- app/models/atlas_engine/address_validation/es/datastore.rb
|
408
|
+
- app/models/atlas_engine/address_validation/es/default_query_builder.rb
|
409
|
+
- app/models/atlas_engine/address_validation/es/query_builder.rb
|
410
|
+
- app/models/atlas_engine/address_validation/es/term_vectors.rb
|
411
|
+
- app/models/atlas_engine/address_validation/es/validators/full_address.rb
|
412
|
+
- app/models/atlas_engine/address_validation/es/validators/full_address_street.rb
|
413
|
+
- app/models/atlas_engine/address_validation/es/validators/restriction_evaluator.rb
|
414
|
+
- app/models/atlas_engine/address_validation/field.rb
|
415
|
+
- app/models/atlas_engine/address_validation/full_address_validator_base.rb
|
416
|
+
- app/models/atlas_engine/address_validation/log_emitter.rb
|
417
|
+
- app/models/atlas_engine/address_validation/matching_strategies.rb
|
418
|
+
- app/models/atlas_engine/address_validation/normalizer.rb
|
419
|
+
- app/models/atlas_engine/address_validation/predicate_pipeline.rb
|
420
|
+
- app/models/atlas_engine/address_validation/request.rb
|
421
|
+
- app/models/atlas_engine/address_validation/result.rb
|
422
|
+
- app/models/atlas_engine/address_validation/runs_validation.rb
|
423
|
+
- app/models/atlas_engine/address_validation/session.rb
|
424
|
+
- app/models/atlas_engine/address_validation/statsd_emitter.rb
|
425
|
+
- app/models/atlas_engine/address_validation/strategies.rb
|
426
|
+
- app/models/atlas_engine/address_validation/suggestion.rb
|
427
|
+
- app/models/atlas_engine/address_validation/token.rb
|
428
|
+
- app/models/atlas_engine/address_validation/token/comparator.rb
|
429
|
+
- app/models/atlas_engine/address_validation/token/comparison.rb
|
430
|
+
- app/models/atlas_engine/address_validation/token/sequence.rb
|
431
|
+
- app/models/atlas_engine/address_validation/token/sequence/comparator.rb
|
432
|
+
- app/models/atlas_engine/address_validation/token/sequence/comparison.rb
|
433
|
+
- app/models/atlas_engine/address_validation/token/synonyms.rb
|
434
|
+
- app/models/atlas_engine/address_validation/validator.rb
|
435
|
+
- app/models/atlas_engine/address_validation/validators/full_address/address_comparison.rb
|
436
|
+
- app/models/atlas_engine/address_validation/validators/full_address/candidate_result.rb
|
437
|
+
- app/models/atlas_engine/address_validation/validators/full_address/candidate_result_base.rb
|
438
|
+
- app/models/atlas_engine/address_validation/validators/full_address/comparison_helper.rb
|
439
|
+
- app/models/atlas_engine/address_validation/validators/full_address/components_to_validate.rb
|
440
|
+
- app/models/atlas_engine/address_validation/validators/full_address/concern_builder.rb
|
441
|
+
- app/models/atlas_engine/address_validation/validators/full_address/exclusions/exclusion_base.rb
|
442
|
+
- app/models/atlas_engine/address_validation/validators/full_address/invalid_zip_concern_builder.rb
|
443
|
+
- app/models/atlas_engine/address_validation/validators/full_address/invalid_zip_for_country_concern.rb
|
444
|
+
- app/models/atlas_engine/address_validation/validators/full_address/invalid_zip_for_province_concern.rb
|
445
|
+
- app/models/atlas_engine/address_validation/validators/full_address/no_candidate_result.rb
|
446
|
+
- app/models/atlas_engine/address_validation/validators/full_address/number_comparison.rb
|
447
|
+
- app/models/atlas_engine/address_validation/validators/full_address/postal_code_matcher.rb
|
448
|
+
- app/models/atlas_engine/address_validation/validators/full_address/result_updater.rb
|
449
|
+
- app/models/atlas_engine/address_validation/validators/full_address/suggestion_builder.rb
|
450
|
+
- app/models/atlas_engine/address_validation/validators/full_address/unknown_address_concern.rb
|
451
|
+
- app/models/atlas_engine/address_validation/validators/full_address/unknown_province_concern.rb
|
452
|
+
- app/models/atlas_engine/address_validation/validators/full_address/unknown_zip_for_address_concern.rb
|
453
|
+
- app/models/atlas_engine/address_validation/validators/full_address/unmatched_field_concern.rb
|
454
|
+
- app/models/atlas_engine/address_validation/validators/full_address/unsupported_script_result.rb
|
455
|
+
- app/models/atlas_engine/address_validation/validators/predicates/cache.rb
|
456
|
+
- app/models/atlas_engine/address_validation/validators/predicates/city/present.rb
|
457
|
+
- app/models/atlas_engine/address_validation/validators/predicates/country/exists.rb
|
458
|
+
- app/models/atlas_engine/address_validation/validators/predicates/country/valid_for_zip.rb
|
459
|
+
- app/models/atlas_engine/address_validation/validators/predicates/no_emojis.rb
|
460
|
+
- app/models/atlas_engine/address_validation/validators/predicates/no_html_tags.rb
|
461
|
+
- app/models/atlas_engine/address_validation/validators/predicates/no_url.rb
|
462
|
+
- app/models/atlas_engine/address_validation/validators/predicates/not_exceed_max_length.rb
|
463
|
+
- app/models/atlas_engine/address_validation/validators/predicates/not_exceed_max_token_count.rb
|
464
|
+
- app/models/atlas_engine/address_validation/validators/predicates/phone/valid.rb
|
465
|
+
- app/models/atlas_engine/address_validation/validators/predicates/predicate.rb
|
466
|
+
- app/models/atlas_engine/address_validation/validators/predicates/province/exists.rb
|
467
|
+
- app/models/atlas_engine/address_validation/validators/predicates/province/valid_for_country.rb
|
468
|
+
- app/models/atlas_engine/address_validation/validators/predicates/street/building_number_in_address1.rb
|
469
|
+
- app/models/atlas_engine/address_validation/validators/predicates/street/building_number_in_address1_or_address2.rb
|
470
|
+
- app/models/atlas_engine/address_validation/validators/predicates/street/present.rb
|
471
|
+
- app/models/atlas_engine/address_validation/validators/predicates/zip/present.rb
|
472
|
+
- app/models/atlas_engine/address_validation/validators/predicates/zip/valid_for_country.rb
|
473
|
+
- app/models/atlas_engine/address_validation/validators/predicates/zip/valid_for_province.rb
|
474
|
+
- app/models/atlas_engine/address_validation/validators/predicates/zip/zip_base.rb
|
475
|
+
- app/models/atlas_engine/address_validation/zip_truncator.rb
|
476
|
+
- app/models/atlas_engine/application_record.rb
|
477
|
+
- app/models/atlas_engine/coded_error.rb
|
478
|
+
- app/models/atlas_engine/coded_errors.rb
|
479
|
+
- app/models/atlas_engine/country_import.rb
|
480
|
+
- app/models/atlas_engine/country_profile.rb
|
481
|
+
- app/models/atlas_engine/country_profile_ingestion_subset.rb
|
482
|
+
- app/models/atlas_engine/country_profile_subset_base.rb
|
483
|
+
- app/models/atlas_engine/country_profile_validation_subset.rb
|
484
|
+
- app/models/atlas_engine/country_repository.rb
|
485
|
+
- app/models/atlas_engine/elasticsearch/client.rb
|
486
|
+
- app/models/atlas_engine/elasticsearch/client_interface.rb
|
487
|
+
- app/models/atlas_engine/elasticsearch/repository.rb
|
488
|
+
- app/models/atlas_engine/elasticsearch/repository_interface.rb
|
489
|
+
- app/models/atlas_engine/elasticsearch/response.rb
|
490
|
+
- app/models/atlas_engine/event.rb
|
491
|
+
- app/models/atlas_engine/field_decompounder.rb
|
492
|
+
- app/models/atlas_engine/index_configuration_factory.rb
|
493
|
+
- app/models/atlas_engine/post_address.rb
|
494
|
+
- app/models/atlas_engine/post_address_importer.rb
|
495
|
+
- app/models/atlas_engine/services/service_helper.rb
|
496
|
+
- app/models/atlas_engine/services/validation.rb
|
497
|
+
- app/models/atlas_engine/services/validation_eligibility.rb
|
498
|
+
- app/models/atlas_engine/street.rb
|
499
|
+
- app/tasks/maintenance/atlas_engine/elasticsearch_index_create_task.rb
|
500
|
+
- app/tasks/maintenance/atlas_engine/geo_json_import_task.rb
|
501
|
+
- app/views/atlas_engine/connectivity/index.html.erb
|
502
|
+
- app/views/atlas_engine/country_imports/index.html.erb
|
503
|
+
- app/views/atlas_engine/country_imports/show.html.erb
|
504
|
+
- app/views/layouts/atlas_engine/application.html.erb
|
505
|
+
- config/initializers/1.ruby_patches.rb
|
506
|
+
- config/initializers/sorbet.rb
|
507
|
+
- config/initializers/worldwide.rb
|
508
|
+
- config/locales/internal/en.yml
|
509
|
+
- config/routes.rb
|
510
|
+
- db/data/address_synonyms/index_configurations/default.yml
|
511
|
+
- db/data/country_profiles/default.yml
|
512
|
+
- db/data/transcriber.yml
|
513
|
+
- db/data/validation_pipelines/es.yml
|
514
|
+
- db/data/validation_pipelines/es_street.yml
|
515
|
+
- db/data/validation_pipelines/local.yml
|
516
|
+
- db/migrate/20230919173037_create_atlas_engine_post_addresses.rb
|
517
|
+
- db/migrate/20231117142735_add_building_and_unit_ranges_column.rb
|
518
|
+
- db/migrate/20231117143536_create_atlas_engine_country_imports.rb
|
519
|
+
- db/migrate/20231117145844_create_atlas_engine_events_table.rb
|
520
|
+
- db/migrate/20231123153554_add_unique_index_to_atlas_engine_post_addresses.rb
|
521
|
+
- db/migrate/20231123154658_add_index_to_post_addresses_on_source_id_locale_country_code.rb
|
522
|
+
- lib/atlas_engine.rb
|
523
|
+
- lib/atlas_engine/engine.rb
|
524
|
+
- lib/atlas_engine/version.rb
|
525
|
+
- lib/tasks/atlas_engine/address_importer.rake
|
526
|
+
homepage: https://github.com/Shopify/atlas-engine
|
527
|
+
licenses:
|
528
|
+
- MIT
|
529
|
+
metadata:
|
530
|
+
homepage_uri: https://github.com/Shopify/atlas-engine
|
531
|
+
source_code_uri: https://github.com/Shopify/atlas-engine
|
532
|
+
changelog_uri: https://github.com/Shopify/atlas-engine/CHANGELOG.md
|
533
|
+
allowed_push_host: https://rubygems.org/
|
534
|
+
post_install_message:
|
535
|
+
rdoc_options: []
|
536
|
+
require_paths:
|
537
|
+
- lib
|
538
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
539
|
+
requirements:
|
540
|
+
- - ">="
|
541
|
+
- !ruby/object:Gem::Version
|
542
|
+
version: '0'
|
543
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
544
|
+
requirements:
|
545
|
+
- - ">="
|
546
|
+
- !ruby/object:Gem::Version
|
547
|
+
version: '0'
|
548
|
+
requirements: []
|
549
|
+
rubygems_version: 3.5.4
|
550
|
+
signing_key:
|
551
|
+
specification_version: 4
|
552
|
+
summary: Address Validation API
|
553
|
+
test_files: []
|