├── .github └── workflows │ └── rspec.yml ├── .gitignore ├── .rubocop.yml ├── CHANGELOG.md ├── Gemfile ├── LICENSE.txt ├── README.md ├── RELEASING.md ├── Rakefile ├── amorail.gemspec ├── dip.yml ├── docker-compose.yaml ├── lib ├── amorail.rb ├── amorail │ ├── access_token.rb │ ├── client.rb │ ├── config.rb │ ├── entities │ │ ├── company.rb │ │ ├── contact.rb │ │ ├── contact_link.rb │ │ ├── elementable.rb │ │ ├── lead.rb │ │ ├── leadable.rb │ │ ├── note.rb │ │ ├── task.rb │ │ └── webhook.rb │ ├── entity.rb │ ├── entity │ │ ├── finders.rb │ │ ├── params.rb │ │ └── persistence.rb │ ├── exceptions.rb │ ├── property.rb │ ├── railtie.rb │ ├── store_adapters.rb │ ├── store_adapters │ │ ├── abstract_store_adapter.rb │ │ ├── memory_store_adapter.rb │ │ └── redis_store_adapter.rb │ └── version.rb └── tasks │ └── amorail.rake └── spec ├── access_token_spec.rb ├── client_spec.rb ├── company_spec.rb ├── contact_link_spec.rb ├── contact_spec.rb ├── entity_spec.rb ├── fixtures ├── accounts │ ├── response_1.json │ └── response_2.json ├── amorail_test.yml ├── authorize.json ├── authorize_refresh_token.json ├── contacts │ ├── create.json │ ├── find_many.json │ ├── find_one.json │ ├── links.json │ ├── my_contact_find.json │ └── update.json ├── leads │ ├── create.json │ ├── find_many.json │ ├── links.json │ ├── update.json │ └── update_errors.json └── webhooks │ ├── list.json │ ├── subscribe.json │ └── unsubscribe.json ├── helpers └── webmock_helpers.rb ├── lead_spec.rb ├── my_contact_spec.rb ├── note_spec.rb ├── property_spec.rb ├── spec_helper.rb ├── store_adapters ├── memory_store_adapter_spec.rb └── redis_store_adapter_spec.rb ├── support ├── elementable_example.rb ├── entity_class_example.rb ├── leadable_example.rb ├── my_contact.rb └── my_entity.rb ├── task_spec.rb └── webhook_spec.rb /.github/workflows/rspec.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/teachbase/amorail/HEAD/.github/workflows/rspec.yml -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/teachbase/amorail/HEAD/.gitignore -------------------------------------------------------------------------------- /.rubocop.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/teachbase/amorail/HEAD/.rubocop.yml -------------------------------------------------------------------------------- /CHANGELOG.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/teachbase/amorail/HEAD/CHANGELOG.md -------------------------------------------------------------------------------- /Gemfile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/teachbase/amorail/HEAD/Gemfile -------------------------------------------------------------------------------- /LICENSE.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/teachbase/amorail/HEAD/LICENSE.txt -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/teachbase/amorail/HEAD/README.md -------------------------------------------------------------------------------- /RELEASING.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/teachbase/amorail/HEAD/RELEASING.md -------------------------------------------------------------------------------- /Rakefile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/teachbase/amorail/HEAD/Rakefile -------------------------------------------------------------------------------- /amorail.gemspec: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/teachbase/amorail/HEAD/amorail.gemspec -------------------------------------------------------------------------------- /dip.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/teachbase/amorail/HEAD/dip.yml -------------------------------------------------------------------------------- /docker-compose.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/teachbase/amorail/HEAD/docker-compose.yaml -------------------------------------------------------------------------------- /lib/amorail.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/teachbase/amorail/HEAD/lib/amorail.rb -------------------------------------------------------------------------------- /lib/amorail/access_token.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/teachbase/amorail/HEAD/lib/amorail/access_token.rb -------------------------------------------------------------------------------- /lib/amorail/client.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/teachbase/amorail/HEAD/lib/amorail/client.rb -------------------------------------------------------------------------------- /lib/amorail/config.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/teachbase/amorail/HEAD/lib/amorail/config.rb -------------------------------------------------------------------------------- /lib/amorail/entities/company.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/teachbase/amorail/HEAD/lib/amorail/entities/company.rb -------------------------------------------------------------------------------- /lib/amorail/entities/contact.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/teachbase/amorail/HEAD/lib/amorail/entities/contact.rb -------------------------------------------------------------------------------- /lib/amorail/entities/contact_link.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/teachbase/amorail/HEAD/lib/amorail/entities/contact_link.rb -------------------------------------------------------------------------------- /lib/amorail/entities/elementable.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/teachbase/amorail/HEAD/lib/amorail/entities/elementable.rb -------------------------------------------------------------------------------- /lib/amorail/entities/lead.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/teachbase/amorail/HEAD/lib/amorail/entities/lead.rb -------------------------------------------------------------------------------- /lib/amorail/entities/leadable.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/teachbase/amorail/HEAD/lib/amorail/entities/leadable.rb -------------------------------------------------------------------------------- /lib/amorail/entities/note.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/teachbase/amorail/HEAD/lib/amorail/entities/note.rb -------------------------------------------------------------------------------- /lib/amorail/entities/task.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/teachbase/amorail/HEAD/lib/amorail/entities/task.rb -------------------------------------------------------------------------------- /lib/amorail/entities/webhook.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/teachbase/amorail/HEAD/lib/amorail/entities/webhook.rb -------------------------------------------------------------------------------- /lib/amorail/entity.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/teachbase/amorail/HEAD/lib/amorail/entity.rb -------------------------------------------------------------------------------- /lib/amorail/entity/finders.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/teachbase/amorail/HEAD/lib/amorail/entity/finders.rb -------------------------------------------------------------------------------- /lib/amorail/entity/params.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/teachbase/amorail/HEAD/lib/amorail/entity/params.rb -------------------------------------------------------------------------------- /lib/amorail/entity/persistence.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/teachbase/amorail/HEAD/lib/amorail/entity/persistence.rb -------------------------------------------------------------------------------- /lib/amorail/exceptions.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/teachbase/amorail/HEAD/lib/amorail/exceptions.rb -------------------------------------------------------------------------------- /lib/amorail/property.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/teachbase/amorail/HEAD/lib/amorail/property.rb -------------------------------------------------------------------------------- /lib/amorail/railtie.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/teachbase/amorail/HEAD/lib/amorail/railtie.rb -------------------------------------------------------------------------------- /lib/amorail/store_adapters.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/teachbase/amorail/HEAD/lib/amorail/store_adapters.rb -------------------------------------------------------------------------------- /lib/amorail/store_adapters/abstract_store_adapter.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/teachbase/amorail/HEAD/lib/amorail/store_adapters/abstract_store_adapter.rb -------------------------------------------------------------------------------- /lib/amorail/store_adapters/memory_store_adapter.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/teachbase/amorail/HEAD/lib/amorail/store_adapters/memory_store_adapter.rb -------------------------------------------------------------------------------- /lib/amorail/store_adapters/redis_store_adapter.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/teachbase/amorail/HEAD/lib/amorail/store_adapters/redis_store_adapter.rb -------------------------------------------------------------------------------- /lib/amorail/version.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/teachbase/amorail/HEAD/lib/amorail/version.rb -------------------------------------------------------------------------------- /lib/tasks/amorail.rake: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/teachbase/amorail/HEAD/lib/tasks/amorail.rake -------------------------------------------------------------------------------- /spec/access_token_spec.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/teachbase/amorail/HEAD/spec/access_token_spec.rb -------------------------------------------------------------------------------- /spec/client_spec.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/teachbase/amorail/HEAD/spec/client_spec.rb -------------------------------------------------------------------------------- /spec/company_spec.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/teachbase/amorail/HEAD/spec/company_spec.rb -------------------------------------------------------------------------------- /spec/contact_link_spec.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/teachbase/amorail/HEAD/spec/contact_link_spec.rb -------------------------------------------------------------------------------- /spec/contact_spec.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/teachbase/amorail/HEAD/spec/contact_spec.rb -------------------------------------------------------------------------------- /spec/entity_spec.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/teachbase/amorail/HEAD/spec/entity_spec.rb -------------------------------------------------------------------------------- /spec/fixtures/accounts/response_1.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/teachbase/amorail/HEAD/spec/fixtures/accounts/response_1.json -------------------------------------------------------------------------------- /spec/fixtures/accounts/response_2.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/teachbase/amorail/HEAD/spec/fixtures/accounts/response_2.json -------------------------------------------------------------------------------- /spec/fixtures/amorail_test.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/teachbase/amorail/HEAD/spec/fixtures/amorail_test.yml -------------------------------------------------------------------------------- /spec/fixtures/authorize.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/teachbase/amorail/HEAD/spec/fixtures/authorize.json -------------------------------------------------------------------------------- /spec/fixtures/authorize_refresh_token.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/teachbase/amorail/HEAD/spec/fixtures/authorize_refresh_token.json -------------------------------------------------------------------------------- /spec/fixtures/contacts/create.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/teachbase/amorail/HEAD/spec/fixtures/contacts/create.json -------------------------------------------------------------------------------- /spec/fixtures/contacts/find_many.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/teachbase/amorail/HEAD/spec/fixtures/contacts/find_many.json -------------------------------------------------------------------------------- /spec/fixtures/contacts/find_one.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/teachbase/amorail/HEAD/spec/fixtures/contacts/find_one.json -------------------------------------------------------------------------------- /spec/fixtures/contacts/links.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/teachbase/amorail/HEAD/spec/fixtures/contacts/links.json -------------------------------------------------------------------------------- /spec/fixtures/contacts/my_contact_find.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/teachbase/amorail/HEAD/spec/fixtures/contacts/my_contact_find.json -------------------------------------------------------------------------------- /spec/fixtures/contacts/update.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/teachbase/amorail/HEAD/spec/fixtures/contacts/update.json -------------------------------------------------------------------------------- /spec/fixtures/leads/create.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/teachbase/amorail/HEAD/spec/fixtures/leads/create.json -------------------------------------------------------------------------------- /spec/fixtures/leads/find_many.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/teachbase/amorail/HEAD/spec/fixtures/leads/find_many.json -------------------------------------------------------------------------------- /spec/fixtures/leads/links.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/teachbase/amorail/HEAD/spec/fixtures/leads/links.json -------------------------------------------------------------------------------- /spec/fixtures/leads/update.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/teachbase/amorail/HEAD/spec/fixtures/leads/update.json -------------------------------------------------------------------------------- /spec/fixtures/leads/update_errors.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/teachbase/amorail/HEAD/spec/fixtures/leads/update_errors.json -------------------------------------------------------------------------------- /spec/fixtures/webhooks/list.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/teachbase/amorail/HEAD/spec/fixtures/webhooks/list.json -------------------------------------------------------------------------------- /spec/fixtures/webhooks/subscribe.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/teachbase/amorail/HEAD/spec/fixtures/webhooks/subscribe.json -------------------------------------------------------------------------------- /spec/fixtures/webhooks/unsubscribe.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/teachbase/amorail/HEAD/spec/fixtures/webhooks/unsubscribe.json -------------------------------------------------------------------------------- /spec/helpers/webmock_helpers.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/teachbase/amorail/HEAD/spec/helpers/webmock_helpers.rb -------------------------------------------------------------------------------- /spec/lead_spec.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/teachbase/amorail/HEAD/spec/lead_spec.rb -------------------------------------------------------------------------------- /spec/my_contact_spec.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/teachbase/amorail/HEAD/spec/my_contact_spec.rb -------------------------------------------------------------------------------- /spec/note_spec.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/teachbase/amorail/HEAD/spec/note_spec.rb -------------------------------------------------------------------------------- /spec/property_spec.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/teachbase/amorail/HEAD/spec/property_spec.rb -------------------------------------------------------------------------------- /spec/spec_helper.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/teachbase/amorail/HEAD/spec/spec_helper.rb -------------------------------------------------------------------------------- /spec/store_adapters/memory_store_adapter_spec.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/teachbase/amorail/HEAD/spec/store_adapters/memory_store_adapter_spec.rb -------------------------------------------------------------------------------- /spec/store_adapters/redis_store_adapter_spec.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/teachbase/amorail/HEAD/spec/store_adapters/redis_store_adapter_spec.rb -------------------------------------------------------------------------------- /spec/support/elementable_example.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/teachbase/amorail/HEAD/spec/support/elementable_example.rb -------------------------------------------------------------------------------- /spec/support/entity_class_example.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/teachbase/amorail/HEAD/spec/support/entity_class_example.rb -------------------------------------------------------------------------------- /spec/support/leadable_example.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/teachbase/amorail/HEAD/spec/support/leadable_example.rb -------------------------------------------------------------------------------- /spec/support/my_contact.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/teachbase/amorail/HEAD/spec/support/my_contact.rb -------------------------------------------------------------------------------- /spec/support/my_entity.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/teachbase/amorail/HEAD/spec/support/my_entity.rb -------------------------------------------------------------------------------- /spec/task_spec.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/teachbase/amorail/HEAD/spec/task_spec.rb -------------------------------------------------------------------------------- /spec/webhook_spec.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/teachbase/amorail/HEAD/spec/webhook_spec.rb --------------------------------------------------------------------------------