hubspot-api-client 1.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/Gemfile +7 -0
- data/Gemfile.lock +68 -0
- data/README.md +109 -0
- data/Rakefile +8 -0
- data/git_push.sh +55 -0
- data/hubspot-api-client.gemspec +31 -0
- data/lib/hubspot-api-client.rb +49 -0
- data/lib/hubspot/codegen/crm/associations/api/batch_api.rb +246 -0
- data/lib/hubspot/codegen/crm/associations/api_client.rb +423 -0
- data/lib/hubspot/codegen/crm/associations/api_error.rb +63 -0
- data/lib/hubspot/codegen/crm/associations/configuration.rb +260 -0
- data/lib/hubspot/codegen/crm/associations/models/batch_input_public_association.rb +221 -0
- data/lib/hubspot/codegen/crm/associations/models/batch_input_public_object_id.rb +221 -0
- data/lib/hubspot/codegen/crm/associations/models/batch_response_public_association.rb +331 -0
- data/lib/hubspot/codegen/crm/associations/models/batch_response_public_association_multi.rb +331 -0
- data/lib/hubspot/codegen/crm/associations/models/error.rb +286 -0
- data/lib/hubspot/codegen/crm/associations/models/error_detail.rb +265 -0
- data/lib/hubspot/codegen/crm/associations/models/public_association.rb +233 -0
- data/lib/hubspot/codegen/crm/associations/models/public_association_multi.rb +236 -0
- data/lib/hubspot/codegen/crm/associations/models/public_object_id.rb +220 -0
- data/lib/hubspot/codegen/crm/companies/api/associations_api.rb +240 -0
- data/lib/hubspot/codegen/crm/companies/api/basic_api.rb +360 -0
- data/lib/hubspot/codegen/crm/companies/api/batch_api.rb +273 -0
- data/lib/hubspot/codegen/crm/companies/api/search_api.rb +90 -0
- data/lib/hubspot/codegen/crm/companies/api_client.rb +423 -0
- data/lib/hubspot/codegen/crm/companies/api_error.rb +63 -0
- data/lib/hubspot/codegen/crm/companies/configuration.rb +260 -0
- data/lib/hubspot/codegen/crm/companies/models/batch_input_simple_public_object_batch_input.rb +221 -0
- data/lib/hubspot/codegen/crm/companies/models/batch_input_simple_public_object_id.rb +221 -0
- data/lib/hubspot/codegen/crm/companies/models/batch_input_simple_public_object_input.rb +221 -0
- data/lib/hubspot/codegen/crm/companies/models/batch_read_input_simple_public_object_id.rb +237 -0
- data/lib/hubspot/codegen/crm/companies/models/batch_response_simple_public_object.rb +331 -0
- data/lib/hubspot/codegen/crm/companies/models/collection_response_simple_public_object.rb +230 -0
- data/lib/hubspot/codegen/crm/companies/models/collection_response_simple_public_object_id.rb +230 -0
- data/lib/hubspot/codegen/crm/companies/models/collection_response_with_total_simple_public_object.rb +245 -0
- data/lib/hubspot/codegen/crm/companies/models/error.rb +286 -0
- data/lib/hubspot/codegen/crm/companies/models/error_detail.rb +265 -0
- data/lib/hubspot/codegen/crm/companies/models/filter.rb +276 -0
- data/lib/hubspot/codegen/crm/companies/models/filter_group.rb +221 -0
- data/lib/hubspot/codegen/crm/companies/models/next_page.rb +228 -0
- data/lib/hubspot/codegen/crm/companies/models/paging.rb +214 -0
- data/lib/hubspot/codegen/crm/companies/models/public_object_search_request.rb +290 -0
- data/lib/hubspot/codegen/crm/companies/models/simple_public_object.rb +302 -0
- data/lib/hubspot/codegen/crm/companies/models/simple_public_object_batch_input.rb +235 -0
- data/lib/hubspot/codegen/crm/companies/models/simple_public_object_id.rb +219 -0
- data/lib/hubspot/codegen/crm/companies/models/simple_public_object_input.rb +221 -0
- data/lib/hubspot/codegen/crm/contacts/api/associations_api.rb +240 -0
- data/lib/hubspot/codegen/crm/contacts/api/basic_api.rb +360 -0
- data/lib/hubspot/codegen/crm/contacts/api/batch_api.rb +273 -0
- data/lib/hubspot/codegen/crm/contacts/api/search_api.rb +90 -0
- data/lib/hubspot/codegen/crm/contacts/api_client.rb +423 -0
- data/lib/hubspot/codegen/crm/contacts/api_error.rb +63 -0
- data/lib/hubspot/codegen/crm/contacts/configuration.rb +260 -0
- data/lib/hubspot/codegen/crm/contacts/models/batch_input_simple_public_object_batch_input.rb +221 -0
- data/lib/hubspot/codegen/crm/contacts/models/batch_input_simple_public_object_id.rb +221 -0
- data/lib/hubspot/codegen/crm/contacts/models/batch_input_simple_public_object_input.rb +221 -0
- data/lib/hubspot/codegen/crm/contacts/models/batch_read_input_simple_public_object_id.rb +237 -0
- data/lib/hubspot/codegen/crm/contacts/models/batch_response_simple_public_object.rb +331 -0
- data/lib/hubspot/codegen/crm/contacts/models/collection_response_simple_public_object.rb +230 -0
- data/lib/hubspot/codegen/crm/contacts/models/collection_response_simple_public_object_id.rb +230 -0
- data/lib/hubspot/codegen/crm/contacts/models/collection_response_with_total_simple_public_object.rb +245 -0
- data/lib/hubspot/codegen/crm/contacts/models/error.rb +286 -0
- data/lib/hubspot/codegen/crm/contacts/models/error_detail.rb +265 -0
- data/lib/hubspot/codegen/crm/contacts/models/filter.rb +276 -0
- data/lib/hubspot/codegen/crm/contacts/models/filter_group.rb +221 -0
- data/lib/hubspot/codegen/crm/contacts/models/next_page.rb +228 -0
- data/lib/hubspot/codegen/crm/contacts/models/paging.rb +214 -0
- data/lib/hubspot/codegen/crm/contacts/models/public_object_search_request.rb +290 -0
- data/lib/hubspot/codegen/crm/contacts/models/simple_public_object.rb +302 -0
- data/lib/hubspot/codegen/crm/contacts/models/simple_public_object_batch_input.rb +235 -0
- data/lib/hubspot/codegen/crm/contacts/models/simple_public_object_id.rb +219 -0
- data/lib/hubspot/codegen/crm/contacts/models/simple_public_object_input.rb +221 -0
- data/lib/hubspot/codegen/crm/deals/api/associations_api.rb +240 -0
- data/lib/hubspot/codegen/crm/deals/api/basic_api.rb +360 -0
- data/lib/hubspot/codegen/crm/deals/api/batch_api.rb +273 -0
- data/lib/hubspot/codegen/crm/deals/api/search_api.rb +90 -0
- data/lib/hubspot/codegen/crm/deals/api_client.rb +423 -0
- data/lib/hubspot/codegen/crm/deals/api_error.rb +63 -0
- data/lib/hubspot/codegen/crm/deals/configuration.rb +260 -0
- data/lib/hubspot/codegen/crm/deals/models/batch_input_simple_public_object_batch_input.rb +221 -0
- data/lib/hubspot/codegen/crm/deals/models/batch_input_simple_public_object_id.rb +221 -0
- data/lib/hubspot/codegen/crm/deals/models/batch_input_simple_public_object_input.rb +221 -0
- data/lib/hubspot/codegen/crm/deals/models/batch_read_input_simple_public_object_id.rb +237 -0
- data/lib/hubspot/codegen/crm/deals/models/batch_response_simple_public_object.rb +331 -0
- data/lib/hubspot/codegen/crm/deals/models/collection_response_simple_public_object.rb +230 -0
- data/lib/hubspot/codegen/crm/deals/models/collection_response_simple_public_object_id.rb +230 -0
- data/lib/hubspot/codegen/crm/deals/models/collection_response_with_total_simple_public_object.rb +245 -0
- data/lib/hubspot/codegen/crm/deals/models/error.rb +286 -0
- data/lib/hubspot/codegen/crm/deals/models/error_detail.rb +265 -0
- data/lib/hubspot/codegen/crm/deals/models/filter.rb +276 -0
- data/lib/hubspot/codegen/crm/deals/models/filter_group.rb +221 -0
- data/lib/hubspot/codegen/crm/deals/models/next_page.rb +228 -0
- data/lib/hubspot/codegen/crm/deals/models/paging.rb +214 -0
- data/lib/hubspot/codegen/crm/deals/models/public_object_search_request.rb +290 -0
- data/lib/hubspot/codegen/crm/deals/models/simple_public_object.rb +302 -0
- data/lib/hubspot/codegen/crm/deals/models/simple_public_object_batch_input.rb +235 -0
- data/lib/hubspot/codegen/crm/deals/models/simple_public_object_id.rb +219 -0
- data/lib/hubspot/codegen/crm/deals/models/simple_public_object_input.rb +221 -0
- data/lib/hubspot/codegen/crm/extensions/cards/api/cards_api.rb +338 -0
- data/lib/hubspot/codegen/crm/extensions/cards/api/default_api.rb +318 -0
- data/lib/hubspot/codegen/crm/extensions/cards/api_client.rb +425 -0
- data/lib/hubspot/codegen/crm/extensions/cards/api_error.rb +65 -0
- data/lib/hubspot/codegen/crm/extensions/cards/configuration.rb +262 -0
- data/lib/hubspot/codegen/crm/extensions/cards/models/card_actions.rb +223 -0
- data/lib/hubspot/codegen/crm/extensions/cards/models/card_create_request.rb +263 -0
- data/lib/hubspot/codegen/crm/extensions/cards/models/card_display_body.rb +223 -0
- data/lib/hubspot/codegen/crm/extensions/cards/models/card_display_property.rb +299 -0
- data/lib/hubspot/codegen/crm/extensions/cards/models/card_fetch_body.rb +237 -0
- data/lib/hubspot/codegen/crm/extensions/cards/models/card_fetch_body_patch.rb +232 -0
- data/lib/hubspot/codegen/crm/extensions/cards/models/card_list_response.rb +223 -0
- data/lib/hubspot/codegen/crm/extensions/cards/models/card_object_type_body.rb +271 -0
- data/lib/hubspot/codegen/crm/extensions/cards/models/card_patch_request.rb +243 -0
- data/lib/hubspot/codegen/crm/extensions/cards/models/card_response.rb +295 -0
- data/lib/hubspot/codegen/crm/extensions/cards/models/display_option.rb +283 -0
- data/lib/hubspot/codegen/crm/extensions/cards/models/error.rb +288 -0
- data/lib/hubspot/codegen/crm/extensions/cards/models/error_detail.rb +244 -0
- data/lib/hubspot/codegen/crm/line_items/api/associations_api.rb +240 -0
- data/lib/hubspot/codegen/crm/line_items/api/basic_api.rb +360 -0
- data/lib/hubspot/codegen/crm/line_items/api/batch_api.rb +273 -0
- data/lib/hubspot/codegen/crm/line_items/api/search_api.rb +90 -0
- data/lib/hubspot/codegen/crm/line_items/api_client.rb +423 -0
- data/lib/hubspot/codegen/crm/line_items/api_error.rb +63 -0
- data/lib/hubspot/codegen/crm/line_items/configuration.rb +260 -0
- data/lib/hubspot/codegen/crm/line_items/models/batch_input_simple_public_object_batch_input.rb +221 -0
- data/lib/hubspot/codegen/crm/line_items/models/batch_input_simple_public_object_id.rb +221 -0
- data/lib/hubspot/codegen/crm/line_items/models/batch_input_simple_public_object_input.rb +221 -0
- data/lib/hubspot/codegen/crm/line_items/models/batch_read_input_simple_public_object_id.rb +237 -0
- data/lib/hubspot/codegen/crm/line_items/models/batch_response_simple_public_object.rb +331 -0
- data/lib/hubspot/codegen/crm/line_items/models/collection_response_simple_public_object.rb +230 -0
- data/lib/hubspot/codegen/crm/line_items/models/collection_response_simple_public_object_id.rb +230 -0
- data/lib/hubspot/codegen/crm/line_items/models/collection_response_with_total_simple_public_object.rb +245 -0
- data/lib/hubspot/codegen/crm/line_items/models/error.rb +286 -0
- data/lib/hubspot/codegen/crm/line_items/models/error_detail.rb +265 -0
- data/lib/hubspot/codegen/crm/line_items/models/filter.rb +276 -0
- data/lib/hubspot/codegen/crm/line_items/models/filter_group.rb +221 -0
- data/lib/hubspot/codegen/crm/line_items/models/next_page.rb +228 -0
- data/lib/hubspot/codegen/crm/line_items/models/paging.rb +214 -0
- data/lib/hubspot/codegen/crm/line_items/models/public_object_search_request.rb +290 -0
- data/lib/hubspot/codegen/crm/line_items/models/simple_public_object.rb +302 -0
- data/lib/hubspot/codegen/crm/line_items/models/simple_public_object_batch_input.rb +235 -0
- data/lib/hubspot/codegen/crm/line_items/models/simple_public_object_id.rb +219 -0
- data/lib/hubspot/codegen/crm/line_items/models/simple_public_object_input.rb +221 -0
- data/lib/hubspot/codegen/crm/objects/api/associations_api.rb +258 -0
- data/lib/hubspot/codegen/crm/objects/api/basic_api.rb +390 -0
- data/lib/hubspot/codegen/crm/objects/api/batch_api.rb +297 -0
- data/lib/hubspot/codegen/crm/objects/api/search_api.rb +96 -0
- data/lib/hubspot/codegen/crm/objects/api_client.rb +423 -0
- data/lib/hubspot/codegen/crm/objects/api_error.rb +63 -0
- data/lib/hubspot/codegen/crm/objects/configuration.rb +260 -0
- data/lib/hubspot/codegen/crm/objects/models/batch_input_simple_public_object_batch_input.rb +221 -0
- data/lib/hubspot/codegen/crm/objects/models/batch_input_simple_public_object_id.rb +221 -0
- data/lib/hubspot/codegen/crm/objects/models/batch_input_simple_public_object_input.rb +221 -0
- data/lib/hubspot/codegen/crm/objects/models/batch_read_input_simple_public_object_id.rb +237 -0
- data/lib/hubspot/codegen/crm/objects/models/batch_response_simple_public_object.rb +331 -0
- data/lib/hubspot/codegen/crm/objects/models/collection_response_simple_public_object.rb +230 -0
- data/lib/hubspot/codegen/crm/objects/models/collection_response_simple_public_object_id.rb +230 -0
- data/lib/hubspot/codegen/crm/objects/models/collection_response_with_total_simple_public_object.rb +245 -0
- data/lib/hubspot/codegen/crm/objects/models/error.rb +286 -0
- data/lib/hubspot/codegen/crm/objects/models/error_detail.rb +265 -0
- data/lib/hubspot/codegen/crm/objects/models/filter.rb +276 -0
- data/lib/hubspot/codegen/crm/objects/models/filter_group.rb +221 -0
- data/lib/hubspot/codegen/crm/objects/models/next_page.rb +228 -0
- data/lib/hubspot/codegen/crm/objects/models/paging.rb +214 -0
- data/lib/hubspot/codegen/crm/objects/models/public_object_search_request.rb +290 -0
- data/lib/hubspot/codegen/crm/objects/models/simple_public_object.rb +302 -0
- data/lib/hubspot/codegen/crm/objects/models/simple_public_object_batch_input.rb +235 -0
- data/lib/hubspot/codegen/crm/objects/models/simple_public_object_id.rb +219 -0
- data/lib/hubspot/codegen/crm/objects/models/simple_public_object_input.rb +221 -0
- data/lib/hubspot/codegen/crm/owners/api/default_api.rb +160 -0
- data/lib/hubspot/codegen/crm/owners/api_client.rb +423 -0
- data/lib/hubspot/codegen/crm/owners/api_error.rb +63 -0
- data/lib/hubspot/codegen/crm/owners/configuration.rb +260 -0
- data/lib/hubspot/codegen/crm/owners/models/collection_response_public_owner.rb +230 -0
- data/lib/hubspot/codegen/crm/owners/models/error.rb +286 -0
- data/lib/hubspot/codegen/crm/owners/models/error_detail.rb +242 -0
- data/lib/hubspot/codegen/crm/owners/models/next_page.rb +228 -0
- data/lib/hubspot/codegen/crm/owners/models/paging.rb +214 -0
- data/lib/hubspot/codegen/crm/owners/models/public_owner.rb +313 -0
- data/lib/hubspot/codegen/crm/owners/models/public_team.rb +276 -0
- data/lib/hubspot/codegen/crm/pipelines/api/pipeline_stages_api.rb +483 -0
- data/lib/hubspot/codegen/crm/pipelines/api/pipelines_api.rb +447 -0
- data/lib/hubspot/codegen/crm/pipelines/api_client.rb +423 -0
- data/lib/hubspot/codegen/crm/pipelines/api_error.rb +63 -0
- data/lib/hubspot/codegen/crm/pipelines/configuration.rb +260 -0
- data/lib/hubspot/codegen/crm/pipelines/models/collection_response_pipeline.rb +230 -0
- data/lib/hubspot/codegen/crm/pipelines/models/collection_response_pipeline_stage.rb +230 -0
- data/lib/hubspot/codegen/crm/pipelines/models/error.rb +307 -0
- data/lib/hubspot/codegen/crm/pipelines/models/error_detail.rb +242 -0
- data/lib/hubspot/codegen/crm/pipelines/models/next_page.rb +228 -0
- data/lib/hubspot/codegen/crm/pipelines/models/paging.rb +214 -0
- data/lib/hubspot/codegen/crm/pipelines/models/pipeline.rb +323 -0
- data/lib/hubspot/codegen/crm/pipelines/models/pipeline_input.rb +253 -0
- data/lib/hubspot/codegen/crm/pipelines/models/pipeline_patch_input.rb +236 -0
- data/lib/hubspot/codegen/crm/pipelines/models/pipeline_stage.rb +323 -0
- data/lib/hubspot/codegen/crm/pipelines/models/pipeline_stage_input.rb +253 -0
- data/lib/hubspot/codegen/crm/pipelines/models/pipeline_stage_patch_input.rb +253 -0
- data/lib/hubspot/codegen/crm/products/api/associations_api.rb +240 -0
- data/lib/hubspot/codegen/crm/products/api/basic_api.rb +360 -0
- data/lib/hubspot/codegen/crm/products/api/batch_api.rb +273 -0
- data/lib/hubspot/codegen/crm/products/api/search_api.rb +90 -0
- data/lib/hubspot/codegen/crm/products/api_client.rb +423 -0
- data/lib/hubspot/codegen/crm/products/api_error.rb +63 -0
- data/lib/hubspot/codegen/crm/products/configuration.rb +260 -0
- data/lib/hubspot/codegen/crm/products/models/batch_input_simple_public_object_batch_input.rb +221 -0
- data/lib/hubspot/codegen/crm/products/models/batch_input_simple_public_object_id.rb +221 -0
- data/lib/hubspot/codegen/crm/products/models/batch_input_simple_public_object_input.rb +221 -0
- data/lib/hubspot/codegen/crm/products/models/batch_read_input_simple_public_object_id.rb +237 -0
- data/lib/hubspot/codegen/crm/products/models/batch_response_simple_public_object.rb +331 -0
- data/lib/hubspot/codegen/crm/products/models/collection_response_simple_public_object.rb +230 -0
- data/lib/hubspot/codegen/crm/products/models/collection_response_simple_public_object_id.rb +230 -0
- data/lib/hubspot/codegen/crm/products/models/collection_response_with_total_simple_public_object.rb +245 -0
- data/lib/hubspot/codegen/crm/products/models/error.rb +286 -0
- data/lib/hubspot/codegen/crm/products/models/error_detail.rb +265 -0
- data/lib/hubspot/codegen/crm/products/models/filter.rb +276 -0
- data/lib/hubspot/codegen/crm/products/models/filter_group.rb +221 -0
- data/lib/hubspot/codegen/crm/products/models/next_page.rb +228 -0
- data/lib/hubspot/codegen/crm/products/models/paging.rb +214 -0
- data/lib/hubspot/codegen/crm/products/models/public_object_search_request.rb +290 -0
- data/lib/hubspot/codegen/crm/products/models/simple_public_object.rb +302 -0
- data/lib/hubspot/codegen/crm/products/models/simple_public_object_batch_input.rb +235 -0
- data/lib/hubspot/codegen/crm/products/models/simple_public_object_id.rb +219 -0
- data/lib/hubspot/codegen/crm/products/models/simple_public_object_input.rb +221 -0
- data/lib/hubspot/codegen/crm/properties/api/batch_api.rb +228 -0
- data/lib/hubspot/codegen/crm/properties/api/core_api.rb +372 -0
- data/lib/hubspot/codegen/crm/properties/api/groups_api.rb +366 -0
- data/lib/hubspot/codegen/crm/properties/api_client.rb +423 -0
- data/lib/hubspot/codegen/crm/properties/api_error.rb +63 -0
- data/lib/hubspot/codegen/crm/properties/configuration.rb +260 -0
- data/lib/hubspot/codegen/crm/properties/models/batch_input_property_create.rb +221 -0
- data/lib/hubspot/codegen/crm/properties/models/batch_input_property_name.rb +221 -0
- data/lib/hubspot/codegen/crm/properties/models/batch_read_input_property_name.rb +235 -0
- data/lib/hubspot/codegen/crm/properties/models/batch_response_property.rb +331 -0
- data/lib/hubspot/codegen/crm/properties/models/collection_response_property.rb +230 -0
- data/lib/hubspot/codegen/crm/properties/models/collection_response_property_group.rb +230 -0
- data/lib/hubspot/codegen/crm/properties/models/error.rb +286 -0
- data/lib/hubspot/codegen/crm/properties/models/error_detail.rb +265 -0
- data/lib/hubspot/codegen/crm/properties/models/next_page.rb +228 -0
- data/lib/hubspot/codegen/crm/properties/models/option.rb +270 -0
- data/lib/hubspot/codegen/crm/properties/models/option_input.rb +270 -0
- data/lib/hubspot/codegen/crm/properties/models/paging.rb +214 -0
- data/lib/hubspot/codegen/crm/properties/models/property.rb +469 -0
- data/lib/hubspot/codegen/crm/properties/models/property_create.rb +378 -0
- data/lib/hubspot/codegen/crm/properties/models/property_group.rb +265 -0
- data/lib/hubspot/codegen/crm/properties/models/property_group_create.rb +245 -0
- data/lib/hubspot/codegen/crm/properties/models/property_group_update.rb +225 -0
- data/lib/hubspot/codegen/crm/properties/models/property_modification_metadata.rb +256 -0
- data/lib/hubspot/codegen/crm/properties/models/property_name.rb +220 -0
- data/lib/hubspot/codegen/crm/properties/models/property_update.rb +333 -0
- data/lib/hubspot/codegen/crm/quotes/api/associations_api.rb +240 -0
- data/lib/hubspot/codegen/crm/quotes/api/basic_api.rb +360 -0
- data/lib/hubspot/codegen/crm/quotes/api/batch_api.rb +273 -0
- data/lib/hubspot/codegen/crm/quotes/api/search_api.rb +90 -0
- data/lib/hubspot/codegen/crm/quotes/api_client.rb +423 -0
- data/lib/hubspot/codegen/crm/quotes/api_error.rb +63 -0
- data/lib/hubspot/codegen/crm/quotes/configuration.rb +260 -0
- data/lib/hubspot/codegen/crm/quotes/models/batch_input_simple_public_object_batch_input.rb +221 -0
- data/lib/hubspot/codegen/crm/quotes/models/batch_input_simple_public_object_id.rb +221 -0
- data/lib/hubspot/codegen/crm/quotes/models/batch_input_simple_public_object_input.rb +221 -0
- data/lib/hubspot/codegen/crm/quotes/models/batch_read_input_simple_public_object_id.rb +237 -0
- data/lib/hubspot/codegen/crm/quotes/models/batch_response_simple_public_object.rb +331 -0
- data/lib/hubspot/codegen/crm/quotes/models/collection_response_simple_public_object.rb +230 -0
- data/lib/hubspot/codegen/crm/quotes/models/collection_response_simple_public_object_id.rb +230 -0
- data/lib/hubspot/codegen/crm/quotes/models/collection_response_with_total_simple_public_object.rb +245 -0
- data/lib/hubspot/codegen/crm/quotes/models/error.rb +286 -0
- data/lib/hubspot/codegen/crm/quotes/models/error_detail.rb +265 -0
- data/lib/hubspot/codegen/crm/quotes/models/filter.rb +276 -0
- data/lib/hubspot/codegen/crm/quotes/models/filter_group.rb +221 -0
- data/lib/hubspot/codegen/crm/quotes/models/next_page.rb +228 -0
- data/lib/hubspot/codegen/crm/quotes/models/paging.rb +214 -0
- data/lib/hubspot/codegen/crm/quotes/models/public_object_search_request.rb +290 -0
- data/lib/hubspot/codegen/crm/quotes/models/simple_public_object.rb +302 -0
- data/lib/hubspot/codegen/crm/quotes/models/simple_public_object_batch_input.rb +235 -0
- data/lib/hubspot/codegen/crm/quotes/models/simple_public_object_id.rb +219 -0
- data/lib/hubspot/codegen/crm/quotes/models/simple_public_object_input.rb +221 -0
- data/lib/hubspot/codegen/crm/tickets/api/associations_api.rb +240 -0
- data/lib/hubspot/codegen/crm/tickets/api/basic_api.rb +360 -0
- data/lib/hubspot/codegen/crm/tickets/api/batch_api.rb +273 -0
- data/lib/hubspot/codegen/crm/tickets/api/search_api.rb +90 -0
- data/lib/hubspot/codegen/crm/tickets/api_client.rb +423 -0
- data/lib/hubspot/codegen/crm/tickets/api_error.rb +63 -0
- data/lib/hubspot/codegen/crm/tickets/configuration.rb +260 -0
- data/lib/hubspot/codegen/crm/tickets/models/batch_input_simple_public_object_batch_input.rb +221 -0
- data/lib/hubspot/codegen/crm/tickets/models/batch_input_simple_public_object_id.rb +221 -0
- data/lib/hubspot/codegen/crm/tickets/models/batch_input_simple_public_object_input.rb +221 -0
- data/lib/hubspot/codegen/crm/tickets/models/batch_read_input_simple_public_object_id.rb +237 -0
- data/lib/hubspot/codegen/crm/tickets/models/batch_response_simple_public_object.rb +331 -0
- data/lib/hubspot/codegen/crm/tickets/models/collection_response_simple_public_object.rb +230 -0
- data/lib/hubspot/codegen/crm/tickets/models/collection_response_simple_public_object_id.rb +230 -0
- data/lib/hubspot/codegen/crm/tickets/models/collection_response_with_total_simple_public_object.rb +245 -0
- data/lib/hubspot/codegen/crm/tickets/models/error.rb +286 -0
- data/lib/hubspot/codegen/crm/tickets/models/error_detail.rb +265 -0
- data/lib/hubspot/codegen/crm/tickets/models/filter.rb +276 -0
- data/lib/hubspot/codegen/crm/tickets/models/filter_group.rb +221 -0
- data/lib/hubspot/codegen/crm/tickets/models/next_page.rb +228 -0
- data/lib/hubspot/codegen/crm/tickets/models/paging.rb +214 -0
- data/lib/hubspot/codegen/crm/tickets/models/public_object_search_request.rb +290 -0
- data/lib/hubspot/codegen/crm/tickets/models/simple_public_object.rb +302 -0
- data/lib/hubspot/codegen/crm/tickets/models/simple_public_object_batch_input.rb +235 -0
- data/lib/hubspot/codegen/crm/tickets/models/simple_public_object_id.rb +219 -0
- data/lib/hubspot/codegen/crm/tickets/models/simple_public_object_input.rb +221 -0
- data/lib/hubspot/codegen/oauth/api/access_tokens_api.rb +88 -0
- data/lib/hubspot/codegen/oauth/api/refresh_tokens_api.rb +340 -0
- data/lib/hubspot/codegen/oauth/api/tokens_api.rb +102 -0
- data/lib/hubspot/codegen/oauth/api_client.rb +423 -0
- data/lib/hubspot/codegen/oauth/api_error.rb +61 -0
- data/lib/hubspot/codegen/oauth/configuration.rb +258 -0
- data/lib/hubspot/codegen/oauth/models/access_token_info_response.rb +321 -0
- data/lib/hubspot/codegen/oauth/models/error.rb +305 -0
- data/lib/hubspot/codegen/oauth/models/error_detail.rb +240 -0
- data/lib/hubspot/codegen/oauth/models/json_node.rb +426 -0
- data/lib/hubspot/codegen/oauth/models/refresh_token.rb +259 -0
- data/lib/hubspot/codegen/oauth/models/refresh_token_info_response.rb +307 -0
- data/lib/hubspot/configuration.rb +207 -0
- data/lib/hubspot/exceptions.rb +3 -0
- data/lib/hubspot/oauth.rb +17 -0
- data/lib/hubspot/version.rb +3 -0
- data/sample-apps/companies-app/.env.template +2 -0
- data/sample-apps/companies-app/.env.test.template +3 -0
- data/sample-apps/companies-app/.gitignore +35 -0
- data/sample-apps/companies-app/.rspec +1 -0
- data/sample-apps/companies-app/.ruby-version +1 -0
- data/sample-apps/companies-app/Dockerfile +22 -0
- data/sample-apps/companies-app/Gemfile +33 -0
- data/sample-apps/companies-app/Gemfile.lock +270 -0
- data/sample-apps/companies-app/README.md +31 -0
- data/sample-apps/companies-app/Rakefile +6 -0
- data/sample-apps/companies-app/app/assets/config/manifest.js +3 -0
- data/sample-apps/companies-app/app/assets/images/.keep +0 -0
- data/sample-apps/companies-app/app/assets/javascripts/application.js +15 -0
- data/sample-apps/companies-app/app/assets/javascripts/cable.js +13 -0
- data/sample-apps/companies-app/app/assets/javascripts/channels/.keep +0 -0
- data/sample-apps/companies-app/app/assets/stylesheets/application.css +117 -0
- data/sample-apps/companies-app/app/controllers/application_controller.rb +12 -0
- data/sample-apps/companies-app/app/controllers/companies_controller.rb +67 -0
- data/sample-apps/companies-app/app/controllers/concerns/.keep +0 -0
- data/sample-apps/companies-app/app/controllers/concerns/exception_handler.rb +12 -0
- data/sample-apps/companies-app/app/controllers/contacts_controller.rb +28 -0
- data/sample-apps/companies-app/app/controllers/oauth/authorization_controller.rb +19 -0
- data/sample-apps/companies-app/app/helpers/application_helper.rb +2 -0
- data/sample-apps/companies-app/app/lib/services/authorization/authorize_hubspot.rb +15 -0
- data/sample-apps/companies-app/app/lib/services/authorization/get_authorization_uri.rb +33 -0
- data/sample-apps/companies-app/app/lib/services/authorization/tokens/base.rb +19 -0
- data/sample-apps/companies-app/app/lib/services/authorization/tokens/generate.rb +26 -0
- data/sample-apps/companies-app/app/lib/services/authorization/tokens/refresh.rb +33 -0
- data/sample-apps/companies-app/app/lib/services/hubspot/associations/create.rb +38 -0
- data/sample-apps/companies-app/app/lib/services/hubspot/associations/delete.rb +38 -0
- data/sample-apps/companies-app/app/lib/services/hubspot/associations/get_by_id.rb +39 -0
- data/sample-apps/companies-app/app/lib/services/hubspot/companies/create.rb +24 -0
- data/sample-apps/companies-app/app/lib/services/hubspot/companies/destroy.rb +16 -0
- data/sample-apps/companies-app/app/lib/services/hubspot/companies/export.rb +48 -0
- data/sample-apps/companies-app/app/lib/services/hubspot/companies/get_all.rb +16 -0
- data/sample-apps/companies-app/app/lib/services/hubspot/companies/get_by_id.rb +16 -0
- data/sample-apps/companies-app/app/lib/services/hubspot/companies/search.rb +28 -0
- data/sample-apps/companies-app/app/lib/services/hubspot/companies/update.rb +26 -0
- data/sample-apps/companies-app/app/lib/services/hubspot/contacts/get_all.rb +26 -0
- data/sample-apps/companies-app/app/lib/services/hubspot/contacts/search.rb +28 -0
- data/sample-apps/companies-app/app/models/application_record.rb +3 -0
- data/sample-apps/companies-app/app/models/concerns/.keep +0 -0
- data/sample-apps/companies-app/app/views/companies/index.html.erb +74 -0
- data/sample-apps/companies-app/app/views/companies/new.html.erb +24 -0
- data/sample-apps/companies-app/app/views/companies/show.html.erb +50 -0
- data/sample-apps/companies-app/app/views/contacts/index.html.erb +49 -0
- data/sample-apps/companies-app/app/views/layouts/application.html.erb +23 -0
- data/sample-apps/companies-app/app/views/oauth/authorization/login.html.erb +15 -0
- data/sample-apps/companies-app/app/views/shared/_header.html.erb +15 -0
- data/sample-apps/companies-app/bin/bundle +3 -0
- data/sample-apps/companies-app/bin/rails +9 -0
- data/sample-apps/companies-app/bin/rake +9 -0
- data/sample-apps/companies-app/bin/setup +36 -0
- data/sample-apps/companies-app/bin/spring +17 -0
- data/sample-apps/companies-app/bin/update +31 -0
- data/sample-apps/companies-app/bin/yarn +11 -0
- data/sample-apps/companies-app/config.ru +5 -0
- data/sample-apps/companies-app/config/application.rb +19 -0
- data/sample-apps/companies-app/config/boot.rb +3 -0
- data/sample-apps/companies-app/config/cable.yml +10 -0
- data/sample-apps/companies-app/config/database.yml +25 -0
- data/sample-apps/companies-app/config/environment.rb +5 -0
- data/sample-apps/companies-app/config/environments/development.rb +61 -0
- data/sample-apps/companies-app/config/environments/production.rb +94 -0
- data/sample-apps/companies-app/config/environments/test.rb +46 -0
- data/sample-apps/companies-app/config/initializers/assets.rb +14 -0
- data/sample-apps/companies-app/config/initializers/filter_parameter_logging.rb +4 -0
- data/sample-apps/companies-app/config/initializers/hubspot-api-client.rb +3 -0
- data/sample-apps/companies-app/config/initializers/mime_types.rb +1 -0
- data/sample-apps/companies-app/config/initializers/wrap_parameters.rb +14 -0
- data/sample-apps/companies-app/config/locales/en.yml +33 -0
- data/sample-apps/companies-app/config/puma.rb +34 -0
- data/sample-apps/companies-app/config/routes.rb +17 -0
- data/sample-apps/companies-app/config/spring.rb +6 -0
- data/sample-apps/companies-app/db/seeds.rb +7 -0
- data/sample-apps/companies-app/docker-compose.yml +11 -0
- data/sample-apps/companies-app/docker-entrypoint.sh +8 -0
- data/sample-apps/companies-app/lib/assets/.keep +0 -0
- data/sample-apps/companies-app/lib/tasks/.keep +0 -0
- data/sample-apps/companies-app/log/.keep +0 -0
- data/sample-apps/companies-app/package.json +5 -0
- data/sample-apps/companies-app/public/404.html +67 -0
- data/sample-apps/companies-app/public/422.html +67 -0
- data/sample-apps/companies-app/public/500.html +66 -0
- data/sample-apps/companies-app/public/apple-touch-icon-precomposed.png +0 -0
- data/sample-apps/companies-app/public/apple-touch-icon.png +0 -0
- data/sample-apps/companies-app/public/favicon.ico +0 -0
- data/sample-apps/companies-app/public/robots.txt +1 -0
- data/sample-apps/companies-app/tmp/.keep +0 -0
- data/sample-apps/contacts-app/.env.template +2 -0
- data/sample-apps/contacts-app/.env.test.template +3 -0
- data/sample-apps/contacts-app/.gitignore +35 -0
- data/sample-apps/contacts-app/.rspec +1 -0
- data/sample-apps/contacts-app/.ruby-version +1 -0
- data/sample-apps/contacts-app/Dockerfile +22 -0
- data/sample-apps/contacts-app/Gemfile +33 -0
- data/sample-apps/contacts-app/Gemfile.lock +270 -0
- data/sample-apps/contacts-app/README.md +41 -0
- data/sample-apps/contacts-app/Rakefile +6 -0
- data/sample-apps/contacts-app/app/assets/config/manifest.js +3 -0
- data/sample-apps/contacts-app/app/assets/images/.keep +0 -0
- data/sample-apps/contacts-app/app/assets/javascripts/application.js +15 -0
- data/sample-apps/contacts-app/app/assets/javascripts/cable.js +13 -0
- data/sample-apps/contacts-app/app/assets/javascripts/channels/.keep +0 -0
- data/sample-apps/contacts-app/app/assets/stylesheets/application.css +117 -0
- data/sample-apps/contacts-app/app/controllers/application_controller.rb +12 -0
- data/sample-apps/contacts-app/app/controllers/concerns/.keep +0 -0
- data/sample-apps/contacts-app/app/controllers/concerns/exception_handler.rb +12 -0
- data/sample-apps/contacts-app/app/controllers/contacts_controller.rb +68 -0
- data/sample-apps/contacts-app/app/controllers/oauth/authorization_controller.rb +19 -0
- data/sample-apps/contacts-app/app/controllers/properties_controller.rb +52 -0
- data/sample-apps/contacts-app/app/helpers/application_helper.rb +2 -0
- data/sample-apps/contacts-app/app/lib/services/authorization/authorize_hubspot.rb +15 -0
- data/sample-apps/contacts-app/app/lib/services/authorization/get_authorization_uri.rb +33 -0
- data/sample-apps/contacts-app/app/lib/services/authorization/tokens/base.rb +19 -0
- data/sample-apps/contacts-app/app/lib/services/authorization/tokens/generate.rb +26 -0
- data/sample-apps/contacts-app/app/lib/services/authorization/tokens/refresh.rb +33 -0
- data/sample-apps/contacts-app/app/lib/services/hubspot/contacts/create.rb +22 -0
- data/sample-apps/contacts-app/app/lib/services/hubspot/contacts/destroy.rb +16 -0
- data/sample-apps/contacts-app/app/lib/services/hubspot/contacts/export.rb +48 -0
- data/sample-apps/contacts-app/app/lib/services/hubspot/contacts/get_all.rb +26 -0
- data/sample-apps/contacts-app/app/lib/services/hubspot/contacts/get_by_id.rb +28 -0
- data/sample-apps/contacts-app/app/lib/services/hubspot/contacts/search.rb +37 -0
- data/sample-apps/contacts-app/app/lib/services/hubspot/contacts/update.rb +24 -0
- data/sample-apps/contacts-app/app/lib/services/hubspot/owners/get_all.rb +12 -0
- data/sample-apps/contacts-app/app/lib/services/hubspot/properties/create.rb +23 -0
- data/sample-apps/contacts-app/app/lib/services/hubspot/properties/destroy.rb +16 -0
- data/sample-apps/contacts-app/app/lib/services/hubspot/properties/get_all.rb +12 -0
- data/sample-apps/contacts-app/app/lib/services/hubspot/properties/get_by_name.rb +20 -0
- data/sample-apps/contacts-app/app/lib/services/hubspot/properties/update.rb +27 -0
- data/sample-apps/contacts-app/app/models/application_record.rb +3 -0
- data/sample-apps/contacts-app/app/models/concerns/.keep +0 -0
- data/sample-apps/contacts-app/app/views/contacts/index.html.erb +78 -0
- data/sample-apps/contacts-app/app/views/contacts/new.html.erb +18 -0
- data/sample-apps/contacts-app/app/views/contacts/show.html.erb +38 -0
- data/sample-apps/contacts-app/app/views/layouts/application.html.erb +23 -0
- data/sample-apps/contacts-app/app/views/oauth/authorization/login.html.erb +15 -0
- data/sample-apps/contacts-app/app/views/properties/index.html.erb +68 -0
- data/sample-apps/contacts-app/app/views/properties/new.html.erb +29 -0
- data/sample-apps/contacts-app/app/views/properties/show.html.erb +29 -0
- data/sample-apps/contacts-app/app/views/shared/_header.html.erb +18 -0
- data/sample-apps/contacts-app/bin/bundle +3 -0
- data/sample-apps/contacts-app/bin/rails +9 -0
- data/sample-apps/contacts-app/bin/rake +9 -0
- data/sample-apps/contacts-app/bin/setup +36 -0
- data/sample-apps/contacts-app/bin/spring +17 -0
- data/sample-apps/contacts-app/bin/update +31 -0
- data/sample-apps/contacts-app/bin/yarn +11 -0
- data/sample-apps/contacts-app/config.ru +5 -0
- data/sample-apps/contacts-app/config/application.rb +19 -0
- data/sample-apps/contacts-app/config/boot.rb +3 -0
- data/sample-apps/contacts-app/config/cable.yml +10 -0
- data/sample-apps/contacts-app/config/database.yml +25 -0
- data/sample-apps/contacts-app/config/environment.rb +5 -0
- data/sample-apps/contacts-app/config/environments/development.rb +61 -0
- data/sample-apps/contacts-app/config/environments/production.rb +94 -0
- data/sample-apps/contacts-app/config/environments/test.rb +46 -0
- data/sample-apps/contacts-app/config/initializers/assets.rb +14 -0
- data/sample-apps/contacts-app/config/initializers/filter_parameter_logging.rb +4 -0
- data/sample-apps/contacts-app/config/initializers/hubspot-api-client.rb +3 -0
- data/sample-apps/contacts-app/config/initializers/mime_types.rb +1 -0
- data/sample-apps/contacts-app/config/initializers/wrap_parameters.rb +14 -0
- data/sample-apps/contacts-app/config/locales/en.yml +33 -0
- data/sample-apps/contacts-app/config/puma.rb +34 -0
- data/sample-apps/contacts-app/config/routes.rb +14 -0
- data/sample-apps/contacts-app/config/spring.rb +6 -0
- data/sample-apps/contacts-app/db/seeds.rb +7 -0
- data/sample-apps/contacts-app/docker-compose.yml +11 -0
- data/sample-apps/contacts-app/docker-entrypoint.sh +8 -0
- data/sample-apps/contacts-app/lib/assets/.keep +0 -0
- data/sample-apps/contacts-app/lib/tasks/.keep +0 -0
- data/sample-apps/contacts-app/log/.keep +0 -0
- data/sample-apps/contacts-app/package.json +5 -0
- data/sample-apps/contacts-app/public/404.html +67 -0
- data/sample-apps/contacts-app/public/422.html +67 -0
- data/sample-apps/contacts-app/public/500.html +66 -0
- data/sample-apps/contacts-app/public/apple-touch-icon-precomposed.png +0 -0
- data/sample-apps/contacts-app/public/apple-touch-icon.png +0 -0
- data/sample-apps/contacts-app/public/favicon.ico +0 -0
- data/sample-apps/contacts-app/public/robots.txt +1 -0
- data/sample-apps/contacts-app/spec/features/visitor_creates_new_contact_spec.rb +27 -0
- data/sample-apps/contacts-app/spec/features/visitor_deletes_contact_spec.rb +18 -0
- data/sample-apps/contacts-app/spec/features/visitor_downloads_contacts_spec.rb +21 -0
- data/sample-apps/contacts-app/spec/features/visitor_edits_contact_spec.rb +35 -0
- data/sample-apps/contacts-app/spec/features/visitor_lists_contacts_spec.rb +10 -0
- data/sample-apps/contacts-app/spec/features/visitor_logs_in_spec.rb +22 -0
- data/sample-apps/contacts-app/spec/features/visitor_searches_contacts_spec.rb +33 -0
- data/sample-apps/contacts-app/spec/rails_helper.rb +42 -0
- data/sample-apps/contacts-app/spec/spec_helper.rb +11 -0
- data/sample-apps/contacts-app/spec/support/application_helper.rb +29 -0
- data/sample-apps/contacts-app/spec/support/download_helper.rb +37 -0
- data/sample-apps/contacts-app/tmp/.keep +0 -0
- data/sample-apps/oauth-app/.env.template +2 -0
- data/sample-apps/oauth-app/.env.test.template +3 -0
- data/sample-apps/oauth-app/.gitignore +35 -0
- data/sample-apps/oauth-app/.rspec +1 -0
- data/sample-apps/oauth-app/.ruby-version +1 -0
- data/sample-apps/oauth-app/Dockerfile +22 -0
- data/sample-apps/oauth-app/Gemfile +33 -0
- data/sample-apps/oauth-app/Gemfile.lock +270 -0
- data/sample-apps/oauth-app/README.md +33 -0
- data/sample-apps/oauth-app/Rakefile +6 -0
- data/sample-apps/oauth-app/app/assets/config/manifest.js +3 -0
- data/sample-apps/oauth-app/app/assets/images/.keep +0 -0
- data/sample-apps/oauth-app/app/assets/javascripts/application.js +15 -0
- data/sample-apps/oauth-app/app/assets/javascripts/cable.js +13 -0
- data/sample-apps/oauth-app/app/assets/javascripts/channels/.keep +0 -0
- data/sample-apps/oauth-app/app/assets/stylesheets/application.css +117 -0
- data/sample-apps/oauth-app/app/controllers/application_controller.rb +12 -0
- data/sample-apps/oauth-app/app/controllers/concerns/.keep +0 -0
- data/sample-apps/oauth-app/app/controllers/concerns/exception_handler.rb +12 -0
- data/sample-apps/oauth-app/app/controllers/contacts_controller.rb +67 -0
- data/sample-apps/oauth-app/app/controllers/oauth/authorization_controller.rb +19 -0
- data/sample-apps/oauth-app/app/helpers/application_helper.rb +2 -0
- data/sample-apps/oauth-app/app/lib/services/authorization/authorize_hubspot.rb +15 -0
- data/sample-apps/oauth-app/app/lib/services/authorization/get_authorization_uri.rb +33 -0
- data/sample-apps/oauth-app/app/lib/services/authorization/tokens/base.rb +19 -0
- data/sample-apps/oauth-app/app/lib/services/authorization/tokens/generate.rb +26 -0
- data/sample-apps/oauth-app/app/lib/services/authorization/tokens/refresh.rb +33 -0
- data/sample-apps/oauth-app/app/lib/services/hubspot/contacts/create.rb +22 -0
- data/sample-apps/oauth-app/app/lib/services/hubspot/contacts/destroy.rb +16 -0
- data/sample-apps/oauth-app/app/lib/services/hubspot/contacts/export.rb +48 -0
- data/sample-apps/oauth-app/app/lib/services/hubspot/contacts/get_all.rb +26 -0
- data/sample-apps/oauth-app/app/lib/services/hubspot/contacts/get_by_id.rb +20 -0
- data/sample-apps/oauth-app/app/lib/services/hubspot/contacts/search.rb +37 -0
- data/sample-apps/oauth-app/app/lib/services/hubspot/contacts/update.rb +24 -0
- data/sample-apps/oauth-app/app/lib/services/hubspot/owners/get_all.rb +12 -0
- data/sample-apps/oauth-app/app/models/application_record.rb +3 -0
- data/sample-apps/oauth-app/app/models/concerns/.keep +0 -0
- data/sample-apps/oauth-app/app/views/contacts/index.html.erb +78 -0
- data/sample-apps/oauth-app/app/views/contacts/new.html.erb +18 -0
- data/sample-apps/oauth-app/app/views/contacts/show.html.erb +38 -0
- data/sample-apps/oauth-app/app/views/layouts/application.html.erb +23 -0
- data/sample-apps/oauth-app/app/views/oauth/authorization/login.html.erb +15 -0
- data/sample-apps/oauth-app/app/views/shared/_header.html.erb +15 -0
- data/sample-apps/oauth-app/bin/bundle +3 -0
- data/sample-apps/oauth-app/bin/rails +9 -0
- data/sample-apps/oauth-app/bin/rake +9 -0
- data/sample-apps/oauth-app/bin/setup +36 -0
- data/sample-apps/oauth-app/bin/spring +17 -0
- data/sample-apps/oauth-app/bin/update +31 -0
- data/sample-apps/oauth-app/bin/yarn +11 -0
- data/sample-apps/oauth-app/config.ru +5 -0
- data/sample-apps/oauth-app/config/application.rb +19 -0
- data/sample-apps/oauth-app/config/boot.rb +3 -0
- data/sample-apps/oauth-app/config/cable.yml +10 -0
- data/sample-apps/oauth-app/config/database.yml +25 -0
- data/sample-apps/oauth-app/config/environment.rb +5 -0
- data/sample-apps/oauth-app/config/environments/development.rb +61 -0
- data/sample-apps/oauth-app/config/environments/production.rb +94 -0
- data/sample-apps/oauth-app/config/environments/test.rb +46 -0
- data/sample-apps/oauth-app/config/initializers/assets.rb +14 -0
- data/sample-apps/oauth-app/config/initializers/filter_parameter_logging.rb +4 -0
- data/sample-apps/oauth-app/config/initializers/hubspot-api-client.rb +3 -0
- data/sample-apps/oauth-app/config/initializers/mime_types.rb +1 -0
- data/sample-apps/oauth-app/config/initializers/wrap_parameters.rb +14 -0
- data/sample-apps/oauth-app/config/locales/en.yml +33 -0
- data/sample-apps/oauth-app/config/puma.rb +34 -0
- data/sample-apps/oauth-app/config/routes.rb +14 -0
- data/sample-apps/oauth-app/config/spring.rb +6 -0
- data/sample-apps/oauth-app/db/seeds.rb +7 -0
- data/sample-apps/oauth-app/docker-compose.yml +11 -0
- data/sample-apps/oauth-app/docker-entrypoint.sh +8 -0
- data/sample-apps/oauth-app/lib/assets/.keep +0 -0
- data/sample-apps/oauth-app/lib/tasks/.keep +0 -0
- data/sample-apps/oauth-app/log/.keep +0 -0
- data/sample-apps/oauth-app/package.json +5 -0
- data/sample-apps/oauth-app/public/404.html +67 -0
- data/sample-apps/oauth-app/public/422.html +67 -0
- data/sample-apps/oauth-app/public/500.html +66 -0
- data/sample-apps/oauth-app/public/apple-touch-icon-precomposed.png +0 -0
- data/sample-apps/oauth-app/public/apple-touch-icon.png +0 -0
- data/sample-apps/oauth-app/public/favicon.ico +0 -0
- data/sample-apps/oauth-app/public/robots.txt +1 -0
- data/sample-apps/oauth-app/spec/features/visitor_creates_new_contact_spec.rb +27 -0
- data/sample-apps/oauth-app/spec/features/visitor_deletes_contact_spec.rb +18 -0
- data/sample-apps/oauth-app/spec/features/visitor_downloads_contacts_spec.rb +21 -0
- data/sample-apps/oauth-app/spec/features/visitor_edits_contact_spec.rb +35 -0
- data/sample-apps/oauth-app/spec/features/visitor_lists_contacts_spec.rb +10 -0
- data/sample-apps/oauth-app/spec/features/visitor_logs_in_spec.rb +22 -0
- data/sample-apps/oauth-app/spec/features/visitor_searches_contacts_spec.rb +33 -0
- data/sample-apps/oauth-app/spec/rails_helper.rb +42 -0
- data/sample-apps/oauth-app/spec/spec_helper.rb +11 -0
- data/sample-apps/oauth-app/spec/support/application_helper.rb +29 -0
- data/sample-apps/oauth-app/spec/support/download_helper.rb +37 -0
- data/sample-apps/oauth-app/tmp/.keep +0 -0
- data/sample-apps/retry-middleware-sample-app/.env.template +2 -0
- data/sample-apps/retry-middleware-sample-app/.gitignore +35 -0
- data/sample-apps/retry-middleware-sample-app/.ruby-version +1 -0
- data/sample-apps/retry-middleware-sample-app/Dockerfile +22 -0
- data/sample-apps/retry-middleware-sample-app/Gemfile +37 -0
- data/sample-apps/retry-middleware-sample-app/Gemfile.lock +282 -0
- data/sample-apps/retry-middleware-sample-app/README.md +33 -0
- data/sample-apps/retry-middleware-sample-app/Rakefile +6 -0
- data/sample-apps/retry-middleware-sample-app/app/assets/config/manifest.js +3 -0
- data/sample-apps/retry-middleware-sample-app/app/assets/images/.keep +0 -0
- data/sample-apps/retry-middleware-sample-app/app/assets/javascripts/application.js +25 -0
- data/sample-apps/retry-middleware-sample-app/app/assets/javascripts/cable.js +13 -0
- data/sample-apps/retry-middleware-sample-app/app/assets/javascripts/channels/.keep +0 -0
- data/sample-apps/retry-middleware-sample-app/app/assets/stylesheets/application.css +90 -0
- data/sample-apps/retry-middleware-sample-app/app/controllers/application_controller.rb +12 -0
- data/sample-apps/retry-middleware-sample-app/app/controllers/concerns/.keep +0 -0
- data/sample-apps/retry-middleware-sample-app/app/controllers/concerns/exception_handler.rb +12 -0
- data/sample-apps/retry-middleware-sample-app/app/controllers/home_controller.rb +15 -0
- data/sample-apps/retry-middleware-sample-app/app/controllers/oauth/authorization_controller.rb +19 -0
- data/sample-apps/retry-middleware-sample-app/app/helpers/application_helper.rb +2 -0
- data/sample-apps/retry-middleware-sample-app/app/lib/services/authorization/authorize_hubspot.rb +15 -0
- data/sample-apps/retry-middleware-sample-app/app/lib/services/authorization/get_authorization_uri.rb +33 -0
- data/sample-apps/retry-middleware-sample-app/app/lib/services/authorization/tokens/base.rb +19 -0
- data/sample-apps/retry-middleware-sample-app/app/lib/services/authorization/tokens/generate.rb +26 -0
- data/sample-apps/retry-middleware-sample-app/app/lib/services/authorization/tokens/refresh.rb +33 -0
- data/sample-apps/retry-middleware-sample-app/app/models/application_record.rb +3 -0
- data/sample-apps/retry-middleware-sample-app/app/models/concerns/.keep +0 -0
- data/sample-apps/retry-middleware-sample-app/app/views/home/index.html.erb +13 -0
- data/sample-apps/retry-middleware-sample-app/app/views/layouts/application.html.erb +23 -0
- data/sample-apps/retry-middleware-sample-app/app/views/oauth/authorization/login.html.erb +15 -0
- data/sample-apps/retry-middleware-sample-app/app/views/shared/_header.html.erb +12 -0
- data/sample-apps/retry-middleware-sample-app/bin/bundle +3 -0
- data/sample-apps/retry-middleware-sample-app/bin/rails +9 -0
- data/sample-apps/retry-middleware-sample-app/bin/rake +9 -0
- data/sample-apps/retry-middleware-sample-app/bin/setup +36 -0
- data/sample-apps/retry-middleware-sample-app/bin/spring +17 -0
- data/sample-apps/retry-middleware-sample-app/bin/update +31 -0
- data/sample-apps/retry-middleware-sample-app/bin/yarn +11 -0
- data/sample-apps/retry-middleware-sample-app/config.ru +5 -0
- data/sample-apps/retry-middleware-sample-app/config/application.rb +19 -0
- data/sample-apps/retry-middleware-sample-app/config/boot.rb +3 -0
- data/sample-apps/retry-middleware-sample-app/config/cable.yml +10 -0
- data/sample-apps/retry-middleware-sample-app/config/database.yml +25 -0
- data/sample-apps/retry-middleware-sample-app/config/environment.rb +5 -0
- data/sample-apps/retry-middleware-sample-app/config/environments/development.rb +61 -0
- data/sample-apps/retry-middleware-sample-app/config/environments/production.rb +94 -0
- data/sample-apps/retry-middleware-sample-app/config/environments/test.rb +46 -0
- data/sample-apps/retry-middleware-sample-app/config/initializers/assets.rb +14 -0
- data/sample-apps/retry-middleware-sample-app/config/initializers/filter_parameter_logging.rb +4 -0
- data/sample-apps/retry-middleware-sample-app/config/initializers/hubspot-api-client.rb +3 -0
- data/sample-apps/retry-middleware-sample-app/config/initializers/mime_types.rb +1 -0
- data/sample-apps/retry-middleware-sample-app/config/initializers/wrap_parameters.rb +14 -0
- data/sample-apps/retry-middleware-sample-app/config/locales/en.yml +33 -0
- data/sample-apps/retry-middleware-sample-app/config/puma.rb +34 -0
- data/sample-apps/retry-middleware-sample-app/config/routes.rb +6 -0
- data/sample-apps/retry-middleware-sample-app/config/spring.rb +6 -0
- data/sample-apps/retry-middleware-sample-app/db/seeds.rb +7 -0
- data/sample-apps/retry-middleware-sample-app/docker-compose.yml +11 -0
- data/sample-apps/retry-middleware-sample-app/docker-entrypoint.sh +8 -0
- data/sample-apps/retry-middleware-sample-app/lib/assets/.keep +0 -0
- data/sample-apps/retry-middleware-sample-app/lib/tasks/.keep +0 -0
- data/sample-apps/retry-middleware-sample-app/lib/tasks/retry_middleware.rake +37 -0
- data/sample-apps/retry-middleware-sample-app/log/.keep +0 -0
- data/sample-apps/retry-middleware-sample-app/package.json +5 -0
- data/sample-apps/retry-middleware-sample-app/public/404.html +67 -0
- data/sample-apps/retry-middleware-sample-app/public/422.html +67 -0
- data/sample-apps/retry-middleware-sample-app/public/500.html +66 -0
- data/sample-apps/retry-middleware-sample-app/public/apple-touch-icon-precomposed.png +0 -0
- data/sample-apps/retry-middleware-sample-app/public/apple-touch-icon.png +0 -0
- data/sample-apps/retry-middleware-sample-app/public/favicon.ico +0 -0
- data/sample-apps/retry-middleware-sample-app/public/robots.txt +1 -0
- data/sample-apps/retry-middleware-sample-app/tmp/.keep +0 -0
- data/sample-apps/webhooks-contacts-app/.env.template +2 -0
- data/sample-apps/webhooks-contacts-app/.gitignore +35 -0
- data/sample-apps/webhooks-contacts-app/.ruby-version +1 -0
- data/sample-apps/webhooks-contacts-app/Dockerfile +21 -0
- data/sample-apps/webhooks-contacts-app/Gemfile +37 -0
- data/sample-apps/webhooks-contacts-app/Gemfile.lock +280 -0
- data/sample-apps/webhooks-contacts-app/README.md +51 -0
- data/sample-apps/webhooks-contacts-app/Rakefile +6 -0
- data/sample-apps/webhooks-contacts-app/app/assets/config/manifest.js +3 -0
- data/sample-apps/webhooks-contacts-app/app/assets/images/.keep +0 -0
- data/sample-apps/webhooks-contacts-app/app/assets/javascripts/application.js +46 -0
- data/sample-apps/webhooks-contacts-app/app/assets/javascripts/cable.js +13 -0
- data/sample-apps/webhooks-contacts-app/app/assets/javascripts/channels/.keep +0 -0
- data/sample-apps/webhooks-contacts-app/app/assets/stylesheets/application.css +140 -0
- data/sample-apps/webhooks-contacts-app/app/controllers/application_controller.rb +18 -0
- data/sample-apps/webhooks-contacts-app/app/controllers/concerns/.keep +0 -0
- data/sample-apps/webhooks-contacts-app/app/controllers/concerns/exception_handler.rb +12 -0
- data/sample-apps/webhooks-contacts-app/app/controllers/events_controller.rb +33 -0
- data/sample-apps/webhooks-contacts-app/app/controllers/oauth/authorization_controller.rb +19 -0
- data/sample-apps/webhooks-contacts-app/app/controllers/webhooks_controller.rb +9 -0
- data/sample-apps/webhooks-contacts-app/app/helpers/application_helper.rb +2 -0
- data/sample-apps/webhooks-contacts-app/app/lib/services/authorization/authorize_hubspot.rb +15 -0
- data/sample-apps/webhooks-contacts-app/app/lib/services/authorization/get_authorization_uri.rb +33 -0
- data/sample-apps/webhooks-contacts-app/app/lib/services/authorization/tokens/base.rb +19 -0
- data/sample-apps/webhooks-contacts-app/app/lib/services/authorization/tokens/generate.rb +26 -0
- data/sample-apps/webhooks-contacts-app/app/lib/services/authorization/tokens/refresh.rb +34 -0
- data/sample-apps/webhooks-contacts-app/app/lib/services/hubspot/contacts/get_batch.rb +39 -0
- data/sample-apps/webhooks-contacts-app/app/lib/services/hubspot/webhooks/handle.rb +34 -0
- data/sample-apps/webhooks-contacts-app/app/models/application_record.rb +3 -0
- data/sample-apps/webhooks-contacts-app/app/models/concerns/.keep +0 -0
- data/sample-apps/webhooks-contacts-app/app/models/event.rb +2 -0
- data/sample-apps/webhooks-contacts-app/app/models/token.rb +15 -0
- data/sample-apps/webhooks-contacts-app/app/views/events/index.html.erb +41 -0
- data/sample-apps/webhooks-contacts-app/app/views/layouts/application.html.erb +21 -0
- data/sample-apps/webhooks-contacts-app/app/views/oauth/authorization/login.html.erb +15 -0
- data/sample-apps/webhooks-contacts-app/app/views/shared/_header.html.erb +15 -0
- data/sample-apps/webhooks-contacts-app/bin/bundle +3 -0
- data/sample-apps/webhooks-contacts-app/bin/rails +9 -0
- data/sample-apps/webhooks-contacts-app/bin/rake +9 -0
- data/sample-apps/webhooks-contacts-app/bin/setup +36 -0
- data/sample-apps/webhooks-contacts-app/bin/spring +17 -0
- data/sample-apps/webhooks-contacts-app/bin/update +31 -0
- data/sample-apps/webhooks-contacts-app/bin/yarn +11 -0
- data/sample-apps/webhooks-contacts-app/config.ru +5 -0
- data/sample-apps/webhooks-contacts-app/config/application.rb +19 -0
- data/sample-apps/webhooks-contacts-app/config/boot.rb +3 -0
- data/sample-apps/webhooks-contacts-app/config/cable.yml +10 -0
- data/sample-apps/webhooks-contacts-app/config/database.yml +15 -0
- data/sample-apps/webhooks-contacts-app/config/environment.rb +5 -0
- data/sample-apps/webhooks-contacts-app/config/environments/development.rb +61 -0
- data/sample-apps/webhooks-contacts-app/config/environments/production.rb +94 -0
- data/sample-apps/webhooks-contacts-app/config/environments/test.rb +47 -0
- data/sample-apps/webhooks-contacts-app/config/initializers/assets.rb +14 -0
- data/sample-apps/webhooks-contacts-app/config/initializers/filter_parameter_logging.rb +4 -0
- data/sample-apps/webhooks-contacts-app/config/initializers/wrap_parameters.rb +14 -0
- data/sample-apps/webhooks-contacts-app/config/locales/en.yml +33 -0
- data/sample-apps/webhooks-contacts-app/config/puma.rb +34 -0
- data/sample-apps/webhooks-contacts-app/config/routes.rb +10 -0
- data/sample-apps/webhooks-contacts-app/config/spring.rb +6 -0
- data/sample-apps/webhooks-contacts-app/db/migrate/20191202170347_create_tokens.rb +10 -0
- data/sample-apps/webhooks-contacts-app/db/migrate/20200130113853_create_events.rb +14 -0
- data/sample-apps/webhooks-contacts-app/db/schema.rb +36 -0
- data/sample-apps/webhooks-contacts-app/docker-compose.yml +38 -0
- data/sample-apps/webhooks-contacts-app/docker-entrypoint.sh +8 -0
- data/sample-apps/webhooks-contacts-app/lib/assets/.keep +0 -0
- data/sample-apps/webhooks-contacts-app/lib/tasks/.keep +0 -0
- data/sample-apps/webhooks-contacts-app/log/.keep +0 -0
- data/sample-apps/webhooks-contacts-app/package.json +5 -0
- data/sample-apps/webhooks-contacts-app/public/404.html +67 -0
- data/sample-apps/webhooks-contacts-app/public/422.html +67 -0
- data/sample-apps/webhooks-contacts-app/public/500.html +66 -0
- data/sample-apps/webhooks-contacts-app/public/apple-touch-icon-precomposed.png +0 -0
- data/sample-apps/webhooks-contacts-app/public/apple-touch-icon.png +0 -0
- data/sample-apps/webhooks-contacts-app/public/favicon.ico +0 -0
- data/sample-apps/webhooks-contacts-app/public/robots.txt +1 -0
- data/sample-apps/webhooks-contacts-app/public/sample.png +0 -0
- data/sample-apps/webhooks-contacts-app/tmp/.keep +0 -0
- data/spec/oauth/api/access_tokens_api_spec.rb +46 -0
- data/spec/oauth/api/refresh_tokens_api_spec.rb +92 -0
- data/spec/oauth/api/tokens_api_spec.rb +51 -0
- data/spec/oauth/api_client_spec.rb +226 -0
- data/spec/oauth/configuration_spec.rb +42 -0
- data/spec/oauth/models/access_token_info_response_spec.rb +89 -0
- data/spec/oauth/models/error_detail_spec.rb +53 -0
- data/spec/oauth/models/error_spec.rb +71 -0
- data/spec/oauth/models/json_node_spec.rb +165 -0
- data/spec/oauth/models/refresh_token_info_response_spec.rb +83 -0
- data/spec/oauth/models/refresh_token_spec.rb +59 -0
- data/spec/objects/api/associations_api_spec.rb +76 -0
- data/spec/objects/api/basic_api_spec.rb +108 -0
- data/spec/objects/api/batch_api_spec.rb +88 -0
- data/spec/objects/api/search_api_spec.rb +48 -0
- data/spec/objects/api_client_spec.rb +226 -0
- data/spec/objects/configuration_spec.rb +42 -0
- data/spec/objects/models/batch_input_simple_public_object_batch_input_spec.rb +41 -0
- data/spec/objects/models/batch_input_simple_public_object_id_spec.rb +41 -0
- data/spec/objects/models/batch_input_simple_public_object_input_spec.rb +41 -0
- data/spec/objects/models/batch_read_input_simple_public_object_id_spec.rb +47 -0
- data/spec/objects/models/batch_response_simple_public_object_spec.rb +81 -0
- data/spec/objects/models/collection_response_simple_public_object_id_spec.rb +47 -0
- data/spec/objects/models/collection_response_simple_public_object_spec.rb +47 -0
- data/spec/objects/models/collection_response_with_total_simple_public_object_spec.rb +53 -0
- data/spec/objects/models/error_detail_spec.rb +65 -0
- data/spec/objects/models/error_spec.rb +71 -0
- data/spec/objects/models/filter_group_spec.rb +41 -0
- data/spec/objects/models/filter_spec.rb +57 -0
- data/spec/objects/models/next_page_spec.rb +47 -0
- data/spec/objects/models/paging_spec.rb +41 -0
- data/spec/objects/models/public_object_search_request_spec.rb +71 -0
- data/spec/objects/models/simple_public_object_batch_input_spec.rb +47 -0
- data/spec/objects/models/simple_public_object_id_spec.rb +41 -0
- data/spec/objects/models/simple_public_object_input_spec.rb +41 -0
- data/spec/objects/models/simple_public_object_spec.rb +77 -0
- data/spec/owners/api/default_api_spec.rb +60 -0
- data/spec/owners/api_client_spec.rb +226 -0
- data/spec/owners/configuration_spec.rb +42 -0
- data/spec/owners/models/collection_response_public_owner_spec.rb +47 -0
- data/spec/owners/models/error_detail_spec.rb +53 -0
- data/spec/owners/models/error_spec.rb +71 -0
- data/spec/owners/models/next_page_spec.rb +47 -0
- data/spec/owners/models/paging_spec.rb +41 -0
- data/spec/owners/models/public_owner_spec.rb +89 -0
- data/spec/owners/models/public_team_spec.rb +57 -0
- data/spec/pipelines/api/pipeline_stages_api_spec.rb +123 -0
- data/spec/pipelines/api/pipelines_api_spec.rb +117 -0
- data/spec/pipelines/api_client_spec.rb +226 -0
- data/spec/pipelines/configuration_spec.rb +42 -0
- data/spec/pipelines/models/collection_response_pipeline_spec.rb +47 -0
- data/spec/pipelines/models/collection_response_pipeline_stage_spec.rb +47 -0
- data/spec/pipelines/models/error_detail_spec.rb +53 -0
- data/spec/pipelines/models/error_spec.rb +71 -0
- data/spec/pipelines/models/next_page_spec.rb +47 -0
- data/spec/pipelines/models/paging_spec.rb +41 -0
- data/spec/pipelines/models/pipeline_input_spec.rb +53 -0
- data/spec/pipelines/models/pipeline_patch_input_spec.rb +53 -0
- data/spec/pipelines/models/pipeline_spec.rb +83 -0
- data/spec/pipelines/models/pipeline_stage_input_spec.rb +53 -0
- data/spec/pipelines/models/pipeline_stage_patch_input_spec.rb +59 -0
- data/spec/pipelines/models/pipeline_stage_spec.rb +83 -0
- data/spec/properties/api/batch_api_spec.rb +74 -0
- data/spec/properties/api/core_api_spec.rb +102 -0
- data/spec/properties/api/groups_api_spec.rb +100 -0
- data/spec/properties/api_client_spec.rb +226 -0
- data/spec/properties/configuration_spec.rb +42 -0
- data/spec/properties/models/batch_input_property_create_spec.rb +41 -0
- data/spec/properties/models/batch_input_property_name_spec.rb +41 -0
- data/spec/properties/models/batch_read_input_property_name_spec.rb +47 -0
- data/spec/properties/models/batch_response_property_spec.rb +81 -0
- data/spec/properties/models/collection_response_property_group_spec.rb +47 -0
- data/spec/properties/models/collection_response_property_spec.rb +47 -0
- data/spec/properties/models/error_detail_spec.rb +65 -0
- data/spec/properties/models/error_spec.rb +71 -0
- data/spec/properties/models/next_page_spec.rb +47 -0
- data/spec/properties/models/option_input_spec.rb +65 -0
- data/spec/properties/models/option_spec.rb +65 -0
- data/spec/properties/models/paging_spec.rb +41 -0
- data/spec/properties/models/property_create_spec.rb +103 -0
- data/spec/properties/models/property_group_create_spec.rb +53 -0
- data/spec/properties/models/property_group_spec.rb +59 -0
- data/spec/properties/models/property_group_update_spec.rb +47 -0
- data/spec/properties/models/property_modification_metadata_spec.rb +59 -0
- data/spec/properties/models/property_name_spec.rb +41 -0
- data/spec/properties/models/property_spec.rb +177 -0
- data/spec/properties/models/property_update_spec.rb +91 -0
- data/spec/spec_helper.rb +111 -0
- metadata +1145 -0
@@ -0,0 +1,67 @@
|
|
1
|
+
<!DOCTYPE html>
|
2
|
+
<html>
|
3
|
+
<head>
|
4
|
+
<title>The change you wanted was rejected (422)</title>
|
5
|
+
<meta name="viewport" content="width=device-width,initial-scale=1">
|
6
|
+
<style>
|
7
|
+
.rails-default-error-page {
|
8
|
+
background-color: #EFEFEF;
|
9
|
+
color: #2E2F30;
|
10
|
+
text-align: center;
|
11
|
+
font-family: arial, sans-serif;
|
12
|
+
margin: 0;
|
13
|
+
}
|
14
|
+
|
15
|
+
.rails-default-error-page div.dialog {
|
16
|
+
width: 95%;
|
17
|
+
max-width: 33em;
|
18
|
+
margin: 4em auto 0;
|
19
|
+
}
|
20
|
+
|
21
|
+
.rails-default-error-page div.dialog > div {
|
22
|
+
border: 1px solid #CCC;
|
23
|
+
border-right-color: #999;
|
24
|
+
border-left-color: #999;
|
25
|
+
border-bottom-color: #BBB;
|
26
|
+
border-top: #B00100 solid 4px;
|
27
|
+
border-top-left-radius: 9px;
|
28
|
+
border-top-right-radius: 9px;
|
29
|
+
background-color: white;
|
30
|
+
padding: 7px 12% 0;
|
31
|
+
box-shadow: 0 3px 8px rgba(50, 50, 50, 0.17);
|
32
|
+
}
|
33
|
+
|
34
|
+
.rails-default-error-page h1 {
|
35
|
+
font-size: 100%;
|
36
|
+
color: #730E15;
|
37
|
+
line-height: 1.5em;
|
38
|
+
}
|
39
|
+
|
40
|
+
.rails-default-error-page div.dialog > p {
|
41
|
+
margin: 0 0 1em;
|
42
|
+
padding: 1em;
|
43
|
+
background-color: #F7F7F7;
|
44
|
+
border: 1px solid #CCC;
|
45
|
+
border-right-color: #999;
|
46
|
+
border-left-color: #999;
|
47
|
+
border-bottom-color: #999;
|
48
|
+
border-bottom-left-radius: 4px;
|
49
|
+
border-bottom-right-radius: 4px;
|
50
|
+
border-top-color: #DADADA;
|
51
|
+
color: #666;
|
52
|
+
box-shadow: 0 3px 8px rgba(50, 50, 50, 0.17);
|
53
|
+
}
|
54
|
+
</style>
|
55
|
+
</head>
|
56
|
+
|
57
|
+
<body class="rails-default-error-page">
|
58
|
+
<!-- This file lives in public/422.html -->
|
59
|
+
<div class="dialog">
|
60
|
+
<div>
|
61
|
+
<h1>The change you wanted was rejected.</h1>
|
62
|
+
<p>Maybe you tried to change something you didn't have access to.</p>
|
63
|
+
</div>
|
64
|
+
<p>If you are the application owner check the logs for more information.</p>
|
65
|
+
</div>
|
66
|
+
</body>
|
67
|
+
</html>
|
@@ -0,0 +1,66 @@
|
|
1
|
+
<!DOCTYPE html>
|
2
|
+
<html>
|
3
|
+
<head>
|
4
|
+
<title>We're sorry, but something went wrong (500)</title>
|
5
|
+
<meta name="viewport" content="width=device-width,initial-scale=1">
|
6
|
+
<style>
|
7
|
+
.rails-default-error-page {
|
8
|
+
background-color: #EFEFEF;
|
9
|
+
color: #2E2F30;
|
10
|
+
text-align: center;
|
11
|
+
font-family: arial, sans-serif;
|
12
|
+
margin: 0;
|
13
|
+
}
|
14
|
+
|
15
|
+
.rails-default-error-page div.dialog {
|
16
|
+
width: 95%;
|
17
|
+
max-width: 33em;
|
18
|
+
margin: 4em auto 0;
|
19
|
+
}
|
20
|
+
|
21
|
+
.rails-default-error-page div.dialog > div {
|
22
|
+
border: 1px solid #CCC;
|
23
|
+
border-right-color: #999;
|
24
|
+
border-left-color: #999;
|
25
|
+
border-bottom-color: #BBB;
|
26
|
+
border-top: #B00100 solid 4px;
|
27
|
+
border-top-left-radius: 9px;
|
28
|
+
border-top-right-radius: 9px;
|
29
|
+
background-color: white;
|
30
|
+
padding: 7px 12% 0;
|
31
|
+
box-shadow: 0 3px 8px rgba(50, 50, 50, 0.17);
|
32
|
+
}
|
33
|
+
|
34
|
+
.rails-default-error-page h1 {
|
35
|
+
font-size: 100%;
|
36
|
+
color: #730E15;
|
37
|
+
line-height: 1.5em;
|
38
|
+
}
|
39
|
+
|
40
|
+
.rails-default-error-page div.dialog > p {
|
41
|
+
margin: 0 0 1em;
|
42
|
+
padding: 1em;
|
43
|
+
background-color: #F7F7F7;
|
44
|
+
border: 1px solid #CCC;
|
45
|
+
border-right-color: #999;
|
46
|
+
border-left-color: #999;
|
47
|
+
border-bottom-color: #999;
|
48
|
+
border-bottom-left-radius: 4px;
|
49
|
+
border-bottom-right-radius: 4px;
|
50
|
+
border-top-color: #DADADA;
|
51
|
+
color: #666;
|
52
|
+
box-shadow: 0 3px 8px rgba(50, 50, 50, 0.17);
|
53
|
+
}
|
54
|
+
</style>
|
55
|
+
</head>
|
56
|
+
|
57
|
+
<body class="rails-default-error-page">
|
58
|
+
<!-- This file lives in public/500.html -->
|
59
|
+
<div class="dialog">
|
60
|
+
<div>
|
61
|
+
<h1>We're sorry, but something went wrong.</h1>
|
62
|
+
</div>
|
63
|
+
<p>If you are the application owner check the logs for more information.</p>
|
64
|
+
</div>
|
65
|
+
</body>
|
66
|
+
</html>
|
File without changes
|
File without changes
|
File without changes
|
@@ -0,0 +1 @@
|
|
1
|
+
# See http://www.robotstxt.org/robotstxt.html for documentation on how to use the robots.txt file
|
@@ -0,0 +1,27 @@
|
|
1
|
+
require 'rails_helper'
|
2
|
+
|
3
|
+
feature 'Visitor creates new contact' do
|
4
|
+
let(:email) { 'test_email@q.com' }
|
5
|
+
let(:incorrect_email) { 'wrong_email.com' }
|
6
|
+
|
7
|
+
before do
|
8
|
+
login
|
9
|
+
end
|
10
|
+
|
11
|
+
scenario 'with correct data' do
|
12
|
+
using_wait_time 10 do
|
13
|
+
create_contact(email)
|
14
|
+
|
15
|
+
expect(page).to have_css('.contacts td', text: email)
|
16
|
+
remove_test_contact(email)
|
17
|
+
end
|
18
|
+
end
|
19
|
+
|
20
|
+
scenario 'with incorrect data' do
|
21
|
+
using_wait_time 10 do
|
22
|
+
create_contact(incorrect_email)
|
23
|
+
|
24
|
+
expect(page).to have_css('.error', text: 'Property values were not valid')
|
25
|
+
end
|
26
|
+
end
|
27
|
+
end
|
@@ -0,0 +1,18 @@
|
|
1
|
+
require 'rails_helper'
|
2
|
+
|
3
|
+
feature 'Deleting contact' do
|
4
|
+
let(:email) { 'test_email@q.com' }
|
5
|
+
|
6
|
+
scenario 'Visitor deletes contact' do
|
7
|
+
login
|
8
|
+
using_wait_time 10 do
|
9
|
+
create_contact(email)
|
10
|
+
expect(page).to have_css('.contacts td', text: email)
|
11
|
+
find('.contacts .contact-email', text: email)
|
12
|
+
.find(:xpath, 'ancestor::tr[@class="contact"]')
|
13
|
+
.find('.delete-button').click
|
14
|
+
|
15
|
+
expect(page).not_to have_css('.contacts td', text: email)
|
16
|
+
end
|
17
|
+
end
|
18
|
+
end
|
@@ -0,0 +1,21 @@
|
|
1
|
+
require 'rails_helper'
|
2
|
+
|
3
|
+
feature 'Downloading CSV' do
|
4
|
+
let(:email) { 'test_email@q.com' }
|
5
|
+
|
6
|
+
before do
|
7
|
+
login
|
8
|
+
using_wait_time 10 do
|
9
|
+
create_contact(email)
|
10
|
+
end
|
11
|
+
end
|
12
|
+
|
13
|
+
after do
|
14
|
+
remove_test_contact(email)
|
15
|
+
end
|
16
|
+
|
17
|
+
scenario 'visitor downloads csv' do
|
18
|
+
click_on('Export To CSV')
|
19
|
+
expect( DownloadHelper::download_content ).to include(email)
|
20
|
+
end
|
21
|
+
end
|
@@ -0,0 +1,35 @@
|
|
1
|
+
require 'rails_helper'
|
2
|
+
|
3
|
+
feature 'editing of contact' do
|
4
|
+
let(:email) { 'test_email@q.com' }
|
5
|
+
let(:new_email) { 'new_test_email@q.com' }
|
6
|
+
let(:firstname) { 'test_firstname' }
|
7
|
+
let(:lastname) { 'test_lastname' }
|
8
|
+
|
9
|
+
before do
|
10
|
+
login
|
11
|
+
using_wait_time 10 do
|
12
|
+
create_contact(email)
|
13
|
+
find('.contacts .contact-email', text: email).click
|
14
|
+
end
|
15
|
+
end
|
16
|
+
|
17
|
+
after do
|
18
|
+
visit root_path
|
19
|
+
remove_test_contact(email) if has_css?('.contacts .contact-email', text: email)
|
20
|
+
end
|
21
|
+
|
22
|
+
scenario 'edits email' do
|
23
|
+
find("input[id$='contact_email']").fill_in with: new_email
|
24
|
+
find("input[type='submit']").click
|
25
|
+
expect(page).to have_css('.contacts .contact-email', text: new_email)
|
26
|
+
remove_test_contact(new_email)
|
27
|
+
end
|
28
|
+
|
29
|
+
scenario 'edits name' do
|
30
|
+
find("input[id$='contact_firstname']").fill_in with: firstname
|
31
|
+
find("input[id$='contact_lastname']").fill_in with: lastname
|
32
|
+
find("input[type='submit']").click
|
33
|
+
expect(page).to have_css('.contacts .contact-fullname', text: [firstname, lastname].join(' '))
|
34
|
+
end
|
35
|
+
end
|
@@ -0,0 +1,22 @@
|
|
1
|
+
require 'rails_helper'
|
2
|
+
|
3
|
+
feature 'Visitor logs in' do
|
4
|
+
scenario 'without HUBSPOT_CLIENT_ID and HUBSPOT_CLIENT_SECRET' do
|
5
|
+
allow(ENV).to receive(:[])
|
6
|
+
allow(ENV).to receive(:[]).with('HUBSPOT_CLIENT_ID').and_return(nil)
|
7
|
+
allow(ENV).to receive(:[]).with('HUBSPOT_CLIENT_SECRET').and_return(nil)
|
8
|
+
|
9
|
+
visit root_path
|
10
|
+
expect(page).to have_content('Please specify HUBSPOT_CLIENT_ID, HUBSPOT_CLIENT_SECRET in .env')
|
11
|
+
end
|
12
|
+
|
13
|
+
scenario 'without creds in session' do
|
14
|
+
visit root_path
|
15
|
+
expect(page).to have_content('In order to continue please authorize via OAuth')
|
16
|
+
end
|
17
|
+
|
18
|
+
scenario 'clicking on OAuth2 link' do
|
19
|
+
login
|
20
|
+
expect(page).to have_css('.contacts')
|
21
|
+
end
|
22
|
+
end
|
@@ -0,0 +1,33 @@
|
|
1
|
+
require 'rails_helper'
|
2
|
+
|
3
|
+
feature 'Visitor searches contacts' do
|
4
|
+
let(:email) { 'test_email@q.com' }
|
5
|
+
let(:wrong_email) { 'wrong_email@q.com' }
|
6
|
+
|
7
|
+
before do
|
8
|
+
login
|
9
|
+
using_wait_time 10 do
|
10
|
+
create_contact(email)
|
11
|
+
end
|
12
|
+
end
|
13
|
+
|
14
|
+
after do
|
15
|
+
remove_test_contact(email)
|
16
|
+
end
|
17
|
+
|
18
|
+
scenario 'with correct query' do
|
19
|
+
using_wait_time 10 do
|
20
|
+
find("input[id$='search']").set(email).native.send_keys(:return)
|
21
|
+
expect(page).to have_css('.contacts td', text: email)
|
22
|
+
end
|
23
|
+
end
|
24
|
+
|
25
|
+
scenario 'with correct query' do
|
26
|
+
using_wait_time 10 do
|
27
|
+
search_input = find("input[id$='search']")
|
28
|
+
search_input.set(wrong_email).native.send_keys(:return)
|
29
|
+
expect(page).not_to have_css('.contacts td', text: email)
|
30
|
+
search_input.set('').native.send_keys(:return)
|
31
|
+
end
|
32
|
+
end
|
33
|
+
end
|
@@ -0,0 +1,42 @@
|
|
1
|
+
# This file is copied to spec/ when you run 'rails generate rspec:install'
|
2
|
+
require 'spec_helper'
|
3
|
+
ENV['RAILS_ENV'] ||= 'test'
|
4
|
+
RSPEC_ROOT = File.dirname(__FILE__)
|
5
|
+
|
6
|
+
require File.expand_path('../config/environment', __dir__)
|
7
|
+
abort("The Rails environment is running in production mode!") if Rails.env.production?
|
8
|
+
|
9
|
+
require 'rspec/rails'
|
10
|
+
require 'capybara/rspec'
|
11
|
+
require 'capybara/mechanize'
|
12
|
+
|
13
|
+
Dir["#{RSPEC_ROOT}/support/**/*.rb"].each { |f| require f }
|
14
|
+
|
15
|
+
begin
|
16
|
+
ActiveRecord::Migration.maintain_test_schema!
|
17
|
+
rescue ActiveRecord::PendingMigrationError => e
|
18
|
+
puts e.to_s.strip
|
19
|
+
exit 1
|
20
|
+
end
|
21
|
+
|
22
|
+
RSpec.configure do |config|
|
23
|
+
config.infer_spec_type_from_file_location!
|
24
|
+
config.filter_rails_from_backtrace!
|
25
|
+
config.use_transactional_fixtures = false
|
26
|
+
|
27
|
+
config.include ApplicationHelper, DownloadHelper
|
28
|
+
|
29
|
+
Capybara.register_driver :selenium do |app|
|
30
|
+
profile = Selenium::WebDriver::Firefox::Profile.new
|
31
|
+
profile['browser.download.dir'] = DownloadHelper::PATH.to_s
|
32
|
+
profile['browser.download.folderList'] = 2
|
33
|
+
|
34
|
+
# Suppress "open with" dialog
|
35
|
+
profile['browser.helperApps.neverAsk.saveToDisk'] = 'text/csv'
|
36
|
+
Capybara::Selenium::Driver.new(app, :browser => :firefox, :profile => profile)
|
37
|
+
end
|
38
|
+
|
39
|
+
config.before( :each ) do
|
40
|
+
DownloadHelper::clear_downloads
|
41
|
+
end
|
42
|
+
end
|
@@ -0,0 +1,11 @@
|
|
1
|
+
RSpec.configure do |config|
|
2
|
+
config.expect_with :rspec do |expectations|
|
3
|
+
expectations.include_chain_clauses_in_custom_matcher_descriptions = true
|
4
|
+
end
|
5
|
+
|
6
|
+
config.mock_with :rspec do |mocks|
|
7
|
+
mocks.verify_partial_doubles = true
|
8
|
+
end
|
9
|
+
|
10
|
+
config.shared_context_metadata_behavior = :apply_to_host_groups
|
11
|
+
end
|
@@ -0,0 +1,29 @@
|
|
1
|
+
module ApplicationHelper
|
2
|
+
def login
|
3
|
+
Capybara.server_host = "localhost"
|
4
|
+
Capybara.default_driver = :selenium
|
5
|
+
|
6
|
+
visit root_path
|
7
|
+
click_link 'OAuth2'
|
8
|
+
using_wait_time 10 do
|
9
|
+
unless has_css?("a[href*=\"oauth/#{ENV['HUBSPOT_USER_ID']}/authorize\"]")
|
10
|
+
find("input[id$='username']").fill_in with: ENV['HUBSPOT_EMAIL']
|
11
|
+
find("input[id$='password']").fill_in with: ENV['HUBSPOT_PASSWORD']
|
12
|
+
find("button[id$='loginBtn']").click
|
13
|
+
end
|
14
|
+
|
15
|
+
find("a[href*=\"oauth/#{ENV['HUBSPOT_USER_ID']}/authorize\"]").first('span').click
|
16
|
+
end
|
17
|
+
end
|
18
|
+
|
19
|
+
def remove_test_contact(email)
|
20
|
+
id = find('.contacts .contact-email', text: email).find(:xpath, 'ancestor::tr[@class="contact"]').find('.contact-id').text
|
21
|
+
Services::Hubspot::Contacts::Destroy.new(id).call
|
22
|
+
end
|
23
|
+
|
24
|
+
def create_contact(email)
|
25
|
+
find("a[id$='new-contact']").click
|
26
|
+
find("input[id$='email']").fill_in with: email
|
27
|
+
find("input[type='submit']").click
|
28
|
+
end
|
29
|
+
end
|
@@ -0,0 +1,37 @@
|
|
1
|
+
module DownloadHelper
|
2
|
+
TIMEOUT = 1
|
3
|
+
PATH = Rails.root.join("tmp/downloads")
|
4
|
+
|
5
|
+
extend self
|
6
|
+
|
7
|
+
def downloads
|
8
|
+
Dir[PATH.join("*")]
|
9
|
+
end
|
10
|
+
|
11
|
+
def download
|
12
|
+
downloads.first
|
13
|
+
end
|
14
|
+
|
15
|
+
def download_content
|
16
|
+
wait_for_download
|
17
|
+
File.read(download)
|
18
|
+
end
|
19
|
+
|
20
|
+
def wait_for_download
|
21
|
+
Timeout.timeout(TIMEOUT) do
|
22
|
+
sleep 0.1 until downloaded?
|
23
|
+
end
|
24
|
+
end
|
25
|
+
|
26
|
+
def downloaded?
|
27
|
+
!downloading? && downloads.any?
|
28
|
+
end
|
29
|
+
|
30
|
+
def downloading?
|
31
|
+
downloads.grep(/\.part$/).any?
|
32
|
+
end
|
33
|
+
|
34
|
+
def clear_downloads
|
35
|
+
FileUtils.rm_f(downloads)
|
36
|
+
end
|
37
|
+
end
|