hubspot-api-client 7.0.0 → 9.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +30 -0
- data/README.md +41 -0
- data/lib/hubspot/codegen/cms/audit-logs/api/default_api.rb +1 -1
- data/lib/hubspot/codegen/cms/audit-logs/api_client.rb +8 -6
- data/lib/hubspot/codegen/cms/audit-logs/api_error.rb +1 -1
- data/lib/hubspot/codegen/cms/audit-logs/configuration.rb +1 -1
- data/lib/hubspot/codegen/cms/audit-logs/models/collection_response_public_audit_log.rb +1 -1
- data/lib/hubspot/codegen/cms/audit-logs/models/error.rb +1 -1
- data/lib/hubspot/codegen/cms/audit-logs/models/error_detail.rb +1 -1
- data/lib/hubspot/codegen/cms/audit-logs/models/next_page.rb +1 -1
- data/lib/hubspot/codegen/cms/audit-logs/models/paging.rb +1 -1
- data/lib/hubspot/codegen/cms/audit-logs/models/public_audit_log.rb +1 -1
- data/lib/hubspot/codegen/cms/domains/api/domains_api.rb +1 -1
- data/lib/hubspot/codegen/cms/domains/api_client.rb +8 -6
- data/lib/hubspot/codegen/cms/domains/api_error.rb +1 -1
- data/lib/hubspot/codegen/cms/domains/configuration.rb +1 -1
- data/lib/hubspot/codegen/cms/domains/models/collection_response_with_total_domain.rb +1 -1
- data/lib/hubspot/codegen/cms/domains/models/domain.rb +1 -1
- data/lib/hubspot/codegen/cms/domains/models/domain_cdn_config.rb +1 -1
- data/lib/hubspot/codegen/cms/domains/models/domain_setup_info.rb +1 -1
- data/lib/hubspot/codegen/cms/domains/models/error.rb +1 -1
- data/lib/hubspot/codegen/cms/domains/models/error_detail.rb +1 -1
- data/lib/hubspot/codegen/cms/domains/models/next_page.rb +1 -1
- data/lib/hubspot/codegen/cms/domains/models/paging.rb +1 -1
- data/lib/hubspot/codegen/cms/hubdb/api/default_api.rb +1956 -0
- data/lib/hubspot/codegen/cms/hubdb/api_client.rb +424 -0
- data/lib/hubspot/codegen/cms/hubdb/api_error.rb +61 -0
- data/lib/hubspot/codegen/cms/hubdb/configuration.rb +258 -0
- data/lib/hubspot/codegen/cms/hubdb/models/batch_input_hub_db_table_row_v3.rb +217 -0
- data/lib/hubspot/codegen/cms/hubdb/models/batch_input_json_node.rb +217 -0
- data/lib/hubspot/codegen/cms/hubdb/models/batch_input_string.rb +217 -0
- data/lib/hubspot/codegen/cms/hubdb/models/batch_response_hub_db_table_row_v3_with_errors.rb +333 -0
- data/lib/hubspot/codegen/cms/hubdb/models/collection_response_with_total_hub_db_table_row_v3.rb +240 -0
- data/lib/hubspot/codegen/cms/hubdb/models/collection_response_with_total_hub_db_table_row_v3_forward_paging.rb +240 -0
- data/lib/hubspot/codegen/cms/hubdb/models/collection_response_with_total_hub_db_table_v3.rb +240 -0
- data/lib/hubspot/codegen/cms/hubdb/models/collection_response_with_total_hub_db_table_v3_forward_paging.rb +240 -0
- data/lib/hubspot/codegen/cms/hubdb/models/column.rb +388 -0
- data/lib/hubspot/codegen/cms/hubdb/models/column_input.rb +288 -0
- data/lib/hubspot/codegen/cms/hubdb/models/error.rb +292 -0
- data/lib/hubspot/codegen/cms/hubdb/models/error_detail.rb +258 -0
- data/lib/hubspot/codegen/cms/hubdb/models/foreign_id.rb +243 -0
- data/lib/hubspot/codegen/cms/hubdb/models/forward_paging.rb +210 -0
- data/lib/hubspot/codegen/cms/hubdb/models/hub_db_table_clone_request.rb +241 -0
- data/lib/hubspot/codegen/cms/hubdb/models/hub_db_table_row_v3.rb +291 -0
- data/lib/hubspot/codegen/cms/hubdb/models/hub_db_table_row_v3_input.rb +243 -0
- data/lib/hubspot/codegen/cms/hubdb/models/hub_db_table_v3.rb +383 -0
- data/lib/hubspot/codegen/cms/hubdb/models/hub_db_table_v3_input.rb +295 -0
- data/lib/hubspot/codegen/cms/hubdb/models/hub_db_table_v3_live_input.rb +241 -0
- data/lib/hubspot/codegen/cms/hubdb/models/import_result.rb +263 -0
- data/lib/hubspot/codegen/cms/hubdb/models/next_page.rb +224 -0
- data/lib/hubspot/codegen/cms/hubdb/models/option.rb +257 -0
- data/lib/hubspot/codegen/cms/hubdb/models/paging.rb +219 -0
- data/lib/hubspot/codegen/cms/hubdb/models/previous_page.rb +224 -0
- data/lib/hubspot/codegen/cms/hubdb/models/simple_user.rb +257 -0
- data/lib/hubspot/codegen/cms/performance/api/default_api.rb +1 -1
- data/lib/hubspot/codegen/cms/performance/api_client.rb +8 -6
- data/lib/hubspot/codegen/cms/performance/api_error.rb +1 -1
- data/lib/hubspot/codegen/cms/performance/configuration.rb +1 -1
- data/lib/hubspot/codegen/cms/performance/models/error.rb +1 -1
- data/lib/hubspot/codegen/cms/performance/models/error_detail.rb +1 -1
- data/lib/hubspot/codegen/cms/performance/models/performance_view.rb +1 -1
- data/lib/hubspot/codegen/cms/performance/models/public_performance_response.rb +1 -1
- data/lib/hubspot/codegen/cms/site-search/api/default_api.rb +1 -1
- data/lib/hubspot/codegen/cms/site-search/api_client.rb +8 -6
- data/lib/hubspot/codegen/cms/site-search/api_error.rb +1 -1
- data/lib/hubspot/codegen/cms/site-search/configuration.rb +1 -1
- data/lib/hubspot/codegen/cms/site-search/models/content_search_result.rb +1 -1
- data/lib/hubspot/codegen/cms/site-search/models/error.rb +1 -1
- data/lib/hubspot/codegen/cms/site-search/models/error_detail.rb +1 -1
- data/lib/hubspot/codegen/cms/site-search/models/indexed_data.rb +1 -1
- data/lib/hubspot/codegen/cms/site-search/models/public_search_results.rb +1 -1
- data/lib/hubspot/codegen/cms/site-search/models/search_hit_field.rb +3 -5
- data/lib/hubspot/codegen/cms/url-redirects/api/redirects_api.rb +1 -1
- data/lib/hubspot/codegen/cms/url-redirects/api_client.rb +8 -6
- data/lib/hubspot/codegen/cms/url-redirects/api_error.rb +1 -1
- data/lib/hubspot/codegen/cms/url-redirects/configuration.rb +1 -1
- data/lib/hubspot/codegen/cms/url-redirects/models/collection_response_with_total_url_mapping.rb +1 -1
- data/lib/hubspot/codegen/cms/url-redirects/models/error.rb +1 -1
- data/lib/hubspot/codegen/cms/url-redirects/models/error_detail.rb +1 -1
- data/lib/hubspot/codegen/cms/url-redirects/models/next_page.rb +1 -1
- data/lib/hubspot/codegen/cms/url-redirects/models/paging.rb +1 -1
- data/lib/hubspot/codegen/cms/url-redirects/models/url_mapping.rb +1 -1
- data/lib/hubspot/codegen/cms/url-redirects/models/url_mapping_create_request_body.rb +1 -1
- data/lib/hubspot/codegen/crm/associations/api/batch_api.rb +1 -1
- data/lib/hubspot/codegen/crm/associations/api/types_api.rb +1 -1
- data/lib/hubspot/codegen/crm/associations/api_client.rb +8 -6
- data/lib/hubspot/codegen/crm/associations/api_error.rb +1 -1
- data/lib/hubspot/codegen/crm/associations/configuration.rb +1 -1
- data/lib/hubspot/codegen/crm/associations/models/associated_id.rb +1 -1
- data/lib/hubspot/codegen/crm/associations/models/batch_input_public_association.rb +1 -1
- data/lib/hubspot/codegen/crm/associations/models/batch_input_public_object_id.rb +1 -1
- data/lib/hubspot/codegen/crm/associations/models/batch_response_public_association.rb +1 -1
- data/lib/hubspot/codegen/crm/associations/models/batch_response_public_association_multi.rb +1 -1
- data/lib/hubspot/codegen/crm/associations/models/collection_response_public_association_definiton.rb +1 -1
- data/lib/hubspot/codegen/crm/associations/models/error.rb +1 -1
- data/lib/hubspot/codegen/crm/associations/models/error_detail.rb +1 -1
- data/lib/hubspot/codegen/crm/associations/models/next_page.rb +1 -1
- data/lib/hubspot/codegen/crm/associations/models/paging.rb +1 -1
- data/lib/hubspot/codegen/crm/associations/models/public_association.rb +1 -1
- data/lib/hubspot/codegen/crm/associations/models/public_association_definiton.rb +1 -1
- data/lib/hubspot/codegen/crm/associations/models/public_association_multi.rb +1 -1
- data/lib/hubspot/codegen/crm/associations/models/public_object_id.rb +1 -1
- data/lib/hubspot/codegen/crm/companies/api/associations_api.rb +13 -1
- data/lib/hubspot/codegen/crm/companies/api/basic_api.rb +9 -3
- data/lib/hubspot/codegen/crm/companies/api/batch_api.rb +1 -1
- data/lib/hubspot/codegen/crm/companies/api/search_api.rb +1 -1
- data/lib/hubspot/codegen/crm/companies/api_client.rb +8 -6
- data/lib/hubspot/codegen/crm/companies/api_error.rb +1 -1
- data/lib/hubspot/codegen/crm/companies/configuration.rb +1 -1
- data/lib/hubspot/codegen/crm/companies/models/associated_id.rb +1 -1
- data/lib/hubspot/codegen/crm/companies/models/batch_input_simple_public_object_batch_input.rb +1 -1
- data/lib/hubspot/codegen/crm/companies/models/batch_input_simple_public_object_id.rb +1 -1
- data/lib/hubspot/codegen/crm/companies/models/batch_input_simple_public_object_input.rb +1 -1
- data/lib/hubspot/codegen/crm/companies/models/batch_read_input_simple_public_object_id.rb +1 -1
- data/lib/hubspot/codegen/crm/companies/models/batch_response_simple_public_object.rb +1 -1
- data/lib/hubspot/codegen/crm/companies/models/batch_response_simple_public_object_with_errors.rb +1 -1
- data/lib/hubspot/codegen/crm/companies/models/collection_response_associated_id.rb +1 -1
- data/lib/hubspot/codegen/crm/companies/models/collection_response_simple_public_object.rb +1 -1
- data/lib/hubspot/codegen/crm/companies/models/collection_response_with_total_simple_public_object.rb +1 -1
- data/lib/hubspot/codegen/crm/companies/models/error.rb +1 -1
- data/lib/hubspot/codegen/crm/companies/models/error_detail.rb +1 -1
- data/lib/hubspot/codegen/crm/companies/models/filter.rb +1 -1
- data/lib/hubspot/codegen/crm/companies/models/filter_group.rb +1 -1
- data/lib/hubspot/codegen/crm/companies/models/next_page.rb +1 -1
- data/lib/hubspot/codegen/crm/companies/models/paging.rb +14 -5
- data/lib/hubspot/codegen/crm/companies/models/previous_page.rb +224 -0
- data/lib/hubspot/codegen/crm/companies/models/public_object_search_request.rb +1 -1
- data/lib/hubspot/codegen/crm/companies/models/simple_public_object.rb +1 -1
- data/lib/hubspot/codegen/crm/companies/models/simple_public_object_batch_input.rb +1 -1
- data/lib/hubspot/codegen/crm/companies/models/simple_public_object_id.rb +1 -1
- data/lib/hubspot/codegen/crm/companies/models/simple_public_object_input.rb +1 -1
- data/lib/hubspot/codegen/crm/contacts/api/associations_api.rb +13 -1
- data/lib/hubspot/codegen/crm/contacts/api/basic_api.rb +9 -3
- data/lib/hubspot/codegen/crm/contacts/api/batch_api.rb +1 -1
- data/lib/hubspot/codegen/crm/contacts/api/search_api.rb +1 -1
- data/lib/hubspot/codegen/crm/contacts/api_client.rb +8 -6
- data/lib/hubspot/codegen/crm/contacts/api_error.rb +1 -1
- data/lib/hubspot/codegen/crm/contacts/configuration.rb +1 -1
- data/lib/hubspot/codegen/crm/contacts/models/associated_id.rb +1 -1
- data/lib/hubspot/codegen/crm/contacts/models/batch_input_simple_public_object_batch_input.rb +1 -1
- data/lib/hubspot/codegen/crm/contacts/models/batch_input_simple_public_object_id.rb +1 -1
- data/lib/hubspot/codegen/crm/contacts/models/batch_input_simple_public_object_input.rb +1 -1
- data/lib/hubspot/codegen/crm/contacts/models/batch_read_input_simple_public_object_id.rb +1 -1
- data/lib/hubspot/codegen/crm/contacts/models/batch_response_simple_public_object.rb +1 -1
- data/lib/hubspot/codegen/crm/contacts/models/batch_response_simple_public_object_with_errors.rb +1 -1
- data/lib/hubspot/codegen/crm/contacts/models/collection_response_associated_id.rb +1 -1
- data/lib/hubspot/codegen/crm/contacts/models/collection_response_simple_public_object.rb +1 -1
- data/lib/hubspot/codegen/crm/contacts/models/collection_response_with_total_simple_public_object.rb +1 -1
- data/lib/hubspot/codegen/crm/contacts/models/error.rb +1 -1
- data/lib/hubspot/codegen/crm/contacts/models/error_detail.rb +1 -1
- data/lib/hubspot/codegen/crm/contacts/models/filter.rb +1 -1
- data/lib/hubspot/codegen/crm/contacts/models/filter_group.rb +1 -1
- data/lib/hubspot/codegen/crm/contacts/models/next_page.rb +1 -1
- data/lib/hubspot/codegen/crm/contacts/models/paging.rb +14 -5
- data/lib/hubspot/codegen/crm/contacts/models/previous_page.rb +224 -0
- data/lib/hubspot/codegen/crm/contacts/models/public_object_search_request.rb +1 -1
- data/lib/hubspot/codegen/crm/contacts/models/simple_public_object.rb +1 -1
- data/lib/hubspot/codegen/crm/contacts/models/simple_public_object_batch_input.rb +1 -1
- data/lib/hubspot/codegen/crm/contacts/models/simple_public_object_id.rb +1 -1
- data/lib/hubspot/codegen/crm/contacts/models/simple_public_object_input.rb +1 -1
- data/lib/hubspot/codegen/crm/deals/api/associations_api.rb +13 -1
- data/lib/hubspot/codegen/crm/deals/api/basic_api.rb +9 -3
- data/lib/hubspot/codegen/crm/deals/api/batch_api.rb +1 -1
- data/lib/hubspot/codegen/crm/deals/api/search_api.rb +1 -1
- data/lib/hubspot/codegen/crm/deals/api_client.rb +8 -6
- data/lib/hubspot/codegen/crm/deals/api_error.rb +1 -1
- data/lib/hubspot/codegen/crm/deals/configuration.rb +1 -1
- data/lib/hubspot/codegen/crm/deals/models/associated_id.rb +1 -1
- data/lib/hubspot/codegen/crm/deals/models/batch_input_simple_public_object_batch_input.rb +1 -1
- data/lib/hubspot/codegen/crm/deals/models/batch_input_simple_public_object_id.rb +1 -1
- data/lib/hubspot/codegen/crm/deals/models/batch_input_simple_public_object_input.rb +1 -1
- data/lib/hubspot/codegen/crm/deals/models/batch_read_input_simple_public_object_id.rb +1 -1
- data/lib/hubspot/codegen/crm/deals/models/batch_response_simple_public_object.rb +1 -1
- data/lib/hubspot/codegen/crm/deals/models/batch_response_simple_public_object_with_errors.rb +1 -1
- data/lib/hubspot/codegen/crm/deals/models/collection_response_associated_id.rb +1 -1
- data/lib/hubspot/codegen/crm/deals/models/collection_response_simple_public_object.rb +1 -1
- data/lib/hubspot/codegen/crm/deals/models/collection_response_with_total_simple_public_object.rb +1 -1
- data/lib/hubspot/codegen/crm/deals/models/error.rb +1 -1
- data/lib/hubspot/codegen/crm/deals/models/error_detail.rb +1 -1
- data/lib/hubspot/codegen/crm/deals/models/filter.rb +1 -1
- data/lib/hubspot/codegen/crm/deals/models/filter_group.rb +1 -1
- data/lib/hubspot/codegen/crm/deals/models/next_page.rb +1 -1
- data/lib/hubspot/codegen/crm/deals/models/paging.rb +14 -5
- data/lib/hubspot/codegen/crm/deals/models/previous_page.rb +224 -0
- data/lib/hubspot/codegen/crm/deals/models/public_object_search_request.rb +1 -1
- data/lib/hubspot/codegen/crm/deals/models/simple_public_object.rb +1 -1
- data/lib/hubspot/codegen/crm/deals/models/simple_public_object_batch_input.rb +1 -1
- data/lib/hubspot/codegen/crm/deals/models/simple_public_object_id.rb +1 -1
- data/lib/hubspot/codegen/crm/deals/models/simple_public_object_input.rb +1 -1
- data/lib/hubspot/codegen/crm/extensions/cards/api/cards_api.rb +1 -1
- data/lib/hubspot/codegen/crm/extensions/cards/api/sample_response_api.rb +1 -1
- data/lib/hubspot/codegen/crm/extensions/cards/api_client.rb +4 -2
- data/lib/hubspot/codegen/crm/extensions/cards/api_error.rb +1 -1
- data/lib/hubspot/codegen/crm/extensions/cards/configuration.rb +1 -1
- data/lib/hubspot/codegen/crm/extensions/cards/models/action_confirmation_body.rb +1 -1
- data/lib/hubspot/codegen/crm/extensions/cards/models/action_hook_action_body.rb +1 -1
- data/lib/hubspot/codegen/crm/extensions/cards/models/card_actions.rb +1 -1
- data/lib/hubspot/codegen/crm/extensions/cards/models/card_create_request.rb +1 -1
- data/lib/hubspot/codegen/crm/extensions/cards/models/card_display_body.rb +1 -1
- data/lib/hubspot/codegen/crm/extensions/cards/models/card_display_property.rb +1 -1
- data/lib/hubspot/codegen/crm/extensions/cards/models/card_fetch_body.rb +1 -1
- data/lib/hubspot/codegen/crm/extensions/cards/models/card_fetch_body_patch.rb +1 -1
- data/lib/hubspot/codegen/crm/extensions/cards/models/card_list_response.rb +1 -1
- data/lib/hubspot/codegen/crm/extensions/cards/models/card_object_type_body.rb +1 -1
- data/lib/hubspot/codegen/crm/extensions/cards/models/card_patch_request.rb +1 -1
- data/lib/hubspot/codegen/crm/extensions/cards/models/card_response.rb +1 -1
- data/lib/hubspot/codegen/crm/extensions/cards/models/display_option.rb +1 -1
- data/lib/hubspot/codegen/crm/extensions/cards/models/error.rb +1 -1
- data/lib/hubspot/codegen/crm/extensions/cards/models/error_detail.rb +1 -1
- data/lib/hubspot/codegen/crm/extensions/cards/models/i_frame_action_body.rb +1 -1
- data/lib/hubspot/codegen/crm/extensions/cards/models/integrator_card_payload_response.rb +1 -1
- data/lib/hubspot/codegen/crm/extensions/cards/models/integrator_object_result.rb +1 -1
- data/lib/hubspot/codegen/crm/extensions/cards/models/object_token.rb +1 -1
- data/lib/hubspot/codegen/crm/extensions/cards/models/top_level_actions.rb +1 -1
- data/lib/hubspot/codegen/crm/imports/api/core_api.rb +4 -4
- data/lib/hubspot/codegen/crm/imports/api_client.rb +8 -6
- data/lib/hubspot/codegen/crm/imports/api_error.rb +1 -1
- data/lib/hubspot/codegen/crm/imports/configuration.rb +1 -1
- data/lib/hubspot/codegen/crm/imports/models/action_response.rb +16 -5
- data/lib/hubspot/codegen/crm/imports/models/collection_response_public_import_response.rb +1 -1
- data/lib/hubspot/codegen/crm/imports/models/error.rb +1 -1
- data/lib/hubspot/codegen/crm/imports/models/error_detail.rb +1 -1
- data/lib/hubspot/codegen/crm/imports/models/next_page.rb +1 -1
- data/lib/hubspot/codegen/crm/imports/models/paging.rb +14 -5
- data/lib/hubspot/codegen/crm/imports/models/previous_page.rb +224 -0
- data/lib/hubspot/codegen/crm/imports/models/public_import_metadata.rb +1 -1
- data/lib/hubspot/codegen/crm/imports/models/public_import_response.rb +37 -28
- data/lib/hubspot/codegen/crm/imports/models/public_object_list_record.rb +1 -1
- data/lib/hubspot/codegen/crm/line_items/api/associations_api.rb +13 -1
- data/lib/hubspot/codegen/crm/line_items/api/basic_api.rb +9 -3
- data/lib/hubspot/codegen/crm/line_items/api/batch_api.rb +1 -1
- data/lib/hubspot/codegen/crm/line_items/api/search_api.rb +1 -1
- data/lib/hubspot/codegen/crm/line_items/api_client.rb +8 -6
- data/lib/hubspot/codegen/crm/line_items/api_error.rb +1 -1
- data/lib/hubspot/codegen/crm/line_items/configuration.rb +1 -1
- data/lib/hubspot/codegen/crm/line_items/models/associated_id.rb +1 -1
- data/lib/hubspot/codegen/crm/line_items/models/batch_input_simple_public_object_batch_input.rb +1 -1
- data/lib/hubspot/codegen/crm/line_items/models/batch_input_simple_public_object_id.rb +1 -1
- data/lib/hubspot/codegen/crm/line_items/models/batch_input_simple_public_object_input.rb +1 -1
- data/lib/hubspot/codegen/crm/line_items/models/batch_read_input_simple_public_object_id.rb +1 -1
- data/lib/hubspot/codegen/crm/line_items/models/batch_response_simple_public_object.rb +1 -1
- data/lib/hubspot/codegen/crm/line_items/models/batch_response_simple_public_object_with_errors.rb +1 -1
- data/lib/hubspot/codegen/crm/line_items/models/collection_response_associated_id.rb +1 -1
- data/lib/hubspot/codegen/crm/line_items/models/collection_response_simple_public_object.rb +1 -1
- data/lib/hubspot/codegen/crm/line_items/models/collection_response_with_total_simple_public_object.rb +1 -1
- data/lib/hubspot/codegen/crm/line_items/models/error.rb +1 -1
- data/lib/hubspot/codegen/crm/line_items/models/error_detail.rb +1 -1
- data/lib/hubspot/codegen/crm/line_items/models/filter.rb +1 -1
- data/lib/hubspot/codegen/crm/line_items/models/filter_group.rb +1 -1
- data/lib/hubspot/codegen/crm/line_items/models/next_page.rb +1 -1
- data/lib/hubspot/codegen/crm/line_items/models/paging.rb +14 -5
- data/lib/hubspot/codegen/crm/line_items/models/previous_page.rb +224 -0
- data/lib/hubspot/codegen/crm/line_items/models/public_object_search_request.rb +1 -1
- data/lib/hubspot/codegen/crm/line_items/models/simple_public_object.rb +1 -1
- data/lib/hubspot/codegen/crm/line_items/models/simple_public_object_batch_input.rb +1 -1
- data/lib/hubspot/codegen/crm/line_items/models/simple_public_object_id.rb +1 -1
- data/lib/hubspot/codegen/crm/line_items/models/simple_public_object_input.rb +1 -1
- data/lib/hubspot/codegen/crm/objects/api/associations_api.rb +278 -0
- data/lib/hubspot/codegen/crm/objects/api/basic_api.rb +405 -0
- data/lib/hubspot/codegen/crm/objects/api/batch_api.rb +309 -0
- data/lib/hubspot/codegen/crm/objects/api/search_api.rb +96 -0
- data/lib/hubspot/codegen/crm/objects/api_client.rb +424 -0
- data/lib/hubspot/codegen/crm/objects/api_error.rb +61 -0
- data/lib/hubspot/codegen/crm/objects/configuration.rb +258 -0
- data/lib/hubspot/codegen/crm/objects/models/associated_id.rb +229 -0
- data/lib/hubspot/codegen/crm/objects/models/batch_input_simple_public_object_batch_input.rb +217 -0
- data/lib/hubspot/codegen/crm/objects/models/batch_input_simple_public_object_id.rb +217 -0
- data/lib/hubspot/codegen/crm/objects/models/batch_input_simple_public_object_input.rb +217 -0
- data/lib/hubspot/codegen/crm/objects/models/batch_read_input_simple_public_object_id.rb +242 -0
- data/lib/hubspot/codegen/crm/objects/models/batch_response_simple_public_object.rb +313 -0
- data/lib/hubspot/codegen/crm/objects/models/batch_response_simple_public_object_with_errors.rb +333 -0
- data/lib/hubspot/codegen/crm/objects/models/collection_response_associated_id.rb +226 -0
- data/lib/hubspot/codegen/crm/objects/models/collection_response_simple_public_object.rb +226 -0
- data/lib/hubspot/codegen/crm/objects/models/collection_response_with_total_simple_public_object.rb +241 -0
- data/lib/hubspot/codegen/crm/objects/models/error.rb +292 -0
- data/lib/hubspot/codegen/crm/objects/models/error_detail.rb +258 -0
- data/lib/hubspot/codegen/crm/objects/models/filter.rb +272 -0
- data/lib/hubspot/codegen/crm/objects/models/filter_group.rb +217 -0
- data/lib/hubspot/codegen/crm/objects/models/next_page.rb +224 -0
- data/lib/hubspot/codegen/crm/objects/models/paging.rb +219 -0
- data/lib/hubspot/codegen/crm/objects/models/previous_page.rb +224 -0
- data/lib/hubspot/codegen/crm/objects/models/public_object_search_request.rb +286 -0
- data/lib/hubspot/codegen/crm/objects/models/simple_public_object.rb +288 -0
- data/lib/hubspot/codegen/crm/objects/models/simple_public_object_batch_input.rb +231 -0
- data/lib/hubspot/codegen/crm/objects/models/simple_public_object_id.rb +215 -0
- data/lib/hubspot/codegen/crm/objects/models/simple_public_object_input.rb +217 -0
- data/lib/hubspot/codegen/crm/owners/api/default_api.rb +1 -1
- data/lib/hubspot/codegen/crm/owners/api_client.rb +8 -6
- data/lib/hubspot/codegen/crm/owners/api_error.rb +1 -1
- data/lib/hubspot/codegen/crm/owners/configuration.rb +1 -1
- data/lib/hubspot/codegen/crm/owners/models/collection_response_public_owner.rb +1 -1
- data/lib/hubspot/codegen/crm/owners/models/error.rb +1 -1
- data/lib/hubspot/codegen/crm/owners/models/error_detail.rb +1 -1
- data/lib/hubspot/codegen/crm/owners/models/next_page.rb +1 -1
- data/lib/hubspot/codegen/crm/owners/models/paging.rb +1 -1
- data/lib/hubspot/codegen/crm/owners/models/public_owner.rb +1 -1
- data/lib/hubspot/codegen/crm/owners/models/public_team.rb +1 -1
- data/lib/hubspot/codegen/crm/pipelines/api/pipeline_stages_api.rb +1 -1
- data/lib/hubspot/codegen/crm/pipelines/api/pipelines_api.rb +1 -1
- data/lib/hubspot/codegen/crm/pipelines/api_client.rb +8 -6
- data/lib/hubspot/codegen/crm/pipelines/api_error.rb +1 -1
- data/lib/hubspot/codegen/crm/pipelines/configuration.rb +1 -1
- data/lib/hubspot/codegen/crm/pipelines/models/collection_response_pipeline.rb +1 -1
- data/lib/hubspot/codegen/crm/pipelines/models/collection_response_pipeline_stage.rb +1 -1
- data/lib/hubspot/codegen/crm/pipelines/models/error.rb +1 -1
- data/lib/hubspot/codegen/crm/pipelines/models/error_detail.rb +1 -1
- data/lib/hubspot/codegen/crm/pipelines/models/next_page.rb +1 -1
- data/lib/hubspot/codegen/crm/pipelines/models/paging.rb +1 -1
- data/lib/hubspot/codegen/crm/pipelines/models/pipeline.rb +1 -1
- data/lib/hubspot/codegen/crm/pipelines/models/pipeline_input.rb +1 -1
- data/lib/hubspot/codegen/crm/pipelines/models/pipeline_patch_input.rb +1 -1
- data/lib/hubspot/codegen/crm/pipelines/models/pipeline_stage.rb +1 -1
- data/lib/hubspot/codegen/crm/pipelines/models/pipeline_stage_input.rb +1 -1
- data/lib/hubspot/codegen/crm/pipelines/models/pipeline_stage_patch_input.rb +1 -1
- data/lib/hubspot/codegen/crm/products/api/associations_api.rb +13 -1
- data/lib/hubspot/codegen/crm/products/api/basic_api.rb +9 -3
- data/lib/hubspot/codegen/crm/products/api/batch_api.rb +1 -1
- data/lib/hubspot/codegen/crm/products/api/search_api.rb +1 -1
- data/lib/hubspot/codegen/crm/products/api_client.rb +8 -6
- data/lib/hubspot/codegen/crm/products/api_error.rb +1 -1
- data/lib/hubspot/codegen/crm/products/configuration.rb +1 -1
- data/lib/hubspot/codegen/crm/products/models/associated_id.rb +1 -1
- data/lib/hubspot/codegen/crm/products/models/batch_input_simple_public_object_batch_input.rb +1 -1
- data/lib/hubspot/codegen/crm/products/models/batch_input_simple_public_object_id.rb +1 -1
- data/lib/hubspot/codegen/crm/products/models/batch_input_simple_public_object_input.rb +1 -1
- data/lib/hubspot/codegen/crm/products/models/batch_read_input_simple_public_object_id.rb +1 -1
- data/lib/hubspot/codegen/crm/products/models/batch_response_simple_public_object.rb +1 -1
- data/lib/hubspot/codegen/crm/products/models/batch_response_simple_public_object_with_errors.rb +1 -1
- data/lib/hubspot/codegen/crm/products/models/collection_response_associated_id.rb +1 -1
- data/lib/hubspot/codegen/crm/products/models/collection_response_simple_public_object.rb +1 -1
- data/lib/hubspot/codegen/crm/products/models/collection_response_with_total_simple_public_object.rb +1 -1
- data/lib/hubspot/codegen/crm/products/models/error.rb +1 -1
- data/lib/hubspot/codegen/crm/products/models/error_detail.rb +1 -1
- data/lib/hubspot/codegen/crm/products/models/filter.rb +1 -1
- data/lib/hubspot/codegen/crm/products/models/filter_group.rb +1 -1
- data/lib/hubspot/codegen/crm/products/models/next_page.rb +1 -1
- data/lib/hubspot/codegen/crm/products/models/paging.rb +14 -5
- data/lib/hubspot/codegen/crm/products/models/previous_page.rb +224 -0
- data/lib/hubspot/codegen/crm/products/models/public_object_search_request.rb +1 -1
- data/lib/hubspot/codegen/crm/products/models/simple_public_object.rb +1 -1
- data/lib/hubspot/codegen/crm/products/models/simple_public_object_batch_input.rb +1 -1
- data/lib/hubspot/codegen/crm/products/models/simple_public_object_id.rb +1 -1
- data/lib/hubspot/codegen/crm/products/models/simple_public_object_input.rb +1 -1
- data/lib/hubspot/codegen/crm/properties/api/batch_api.rb +1 -1
- data/lib/hubspot/codegen/crm/properties/api/core_api.rb +1 -1
- data/lib/hubspot/codegen/crm/properties/api/groups_api.rb +1 -1
- data/lib/hubspot/codegen/crm/properties/api_client.rb +8 -6
- data/lib/hubspot/codegen/crm/properties/api_error.rb +1 -1
- data/lib/hubspot/codegen/crm/properties/configuration.rb +1 -1
- data/lib/hubspot/codegen/crm/properties/models/batch_input_property_create.rb +1 -1
- data/lib/hubspot/codegen/crm/properties/models/batch_input_property_name.rb +1 -1
- data/lib/hubspot/codegen/crm/properties/models/batch_read_input_property_name.rb +1 -1
- data/lib/hubspot/codegen/crm/properties/models/batch_response_property.rb +1 -1
- data/lib/hubspot/codegen/crm/properties/models/collection_response_property.rb +1 -1
- data/lib/hubspot/codegen/crm/properties/models/collection_response_property_group.rb +1 -1
- data/lib/hubspot/codegen/crm/properties/models/error.rb +1 -1
- data/lib/hubspot/codegen/crm/properties/models/error_detail.rb +1 -1
- data/lib/hubspot/codegen/crm/properties/models/next_page.rb +1 -1
- data/lib/hubspot/codegen/crm/properties/models/option.rb +1 -1
- data/lib/hubspot/codegen/crm/properties/models/option_input.rb +1 -1
- data/lib/hubspot/codegen/crm/properties/models/paging.rb +1 -1
- data/lib/hubspot/codegen/crm/properties/models/property.rb +1 -1
- data/lib/hubspot/codegen/crm/properties/models/property_create.rb +1 -1
- data/lib/hubspot/codegen/crm/properties/models/property_group.rb +1 -1
- data/lib/hubspot/codegen/crm/properties/models/property_group_create.rb +1 -1
- data/lib/hubspot/codegen/crm/properties/models/property_group_update.rb +1 -1
- data/lib/hubspot/codegen/crm/properties/models/property_modification_metadata.rb +1 -1
- data/lib/hubspot/codegen/crm/properties/models/property_name.rb +1 -1
- data/lib/hubspot/codegen/crm/properties/models/property_update.rb +1 -1
- data/lib/hubspot/codegen/crm/quotes/api/associations_api.rb +10 -1
- data/lib/hubspot/codegen/crm/quotes/api/basic_api.rb +7 -1
- data/lib/hubspot/codegen/crm/quotes/api/batch_api.rb +1 -1
- data/lib/hubspot/codegen/crm/quotes/api/search_api.rb +1 -1
- data/lib/hubspot/codegen/crm/quotes/api_client.rb +8 -6
- data/lib/hubspot/codegen/crm/quotes/api_error.rb +1 -1
- data/lib/hubspot/codegen/crm/quotes/configuration.rb +1 -8
- data/lib/hubspot/codegen/crm/quotes/models/associated_id.rb +1 -1
- data/lib/hubspot/codegen/crm/quotes/models/batch_input_simple_public_object_batch_input.rb +1 -1
- data/lib/hubspot/codegen/crm/quotes/models/batch_input_simple_public_object_id.rb +1 -1
- data/lib/hubspot/codegen/crm/quotes/models/batch_input_simple_public_object_input.rb +1 -1
- data/lib/hubspot/codegen/crm/quotes/models/batch_read_input_simple_public_object_id.rb +1 -1
- data/lib/hubspot/codegen/crm/quotes/models/batch_response_simple_public_object.rb +1 -1
- data/lib/hubspot/codegen/crm/quotes/models/batch_response_simple_public_object_with_errors.rb +1 -1
- data/lib/hubspot/codegen/crm/quotes/models/collection_response_associated_id.rb +1 -1
- data/lib/hubspot/codegen/crm/quotes/models/collection_response_simple_public_object.rb +1 -1
- data/lib/hubspot/codegen/crm/quotes/models/collection_response_with_total_simple_public_object.rb +1 -1
- data/lib/hubspot/codegen/crm/quotes/models/error.rb +1 -1
- data/lib/hubspot/codegen/crm/quotes/models/error_detail.rb +1 -1
- data/lib/hubspot/codegen/crm/quotes/models/filter.rb +1 -1
- data/lib/hubspot/codegen/crm/quotes/models/filter_group.rb +1 -1
- data/lib/hubspot/codegen/crm/quotes/models/next_page.rb +1 -1
- data/lib/hubspot/codegen/crm/quotes/models/paging.rb +14 -5
- data/lib/hubspot/codegen/crm/quotes/models/previous_page.rb +224 -0
- data/lib/hubspot/codegen/crm/quotes/models/public_object_search_request.rb +1 -1
- data/lib/hubspot/codegen/crm/quotes/models/simple_public_object.rb +1 -1
- data/lib/hubspot/codegen/crm/quotes/models/simple_public_object_batch_input.rb +1 -1
- data/lib/hubspot/codegen/crm/quotes/models/simple_public_object_id.rb +1 -1
- data/lib/hubspot/codegen/crm/quotes/models/simple_public_object_input.rb +1 -1
- data/lib/hubspot/codegen/crm/schemas/api/core_api.rb +478 -0
- data/lib/hubspot/codegen/crm/schemas/api/default_api.rb +84 -0
- data/lib/hubspot/codegen/crm/schemas/api_client.rb +424 -0
- data/lib/hubspot/codegen/crm/schemas/api_error.rb +61 -0
- data/lib/hubspot/codegen/crm/schemas/configuration.rb +258 -0
- data/lib/hubspot/codegen/crm/schemas/models/association_definition.rb +350 -0
- data/lib/hubspot/codegen/crm/schemas/models/association_definition_egg.rb +315 -0
- data/lib/hubspot/codegen/crm/schemas/models/collection_response_object_schema.rb +226 -0
- data/lib/hubspot/codegen/crm/schemas/models/error.rb +292 -0
- data/lib/hubspot/codegen/crm/schemas/models/error_detail.rb +258 -0
- data/lib/hubspot/codegen/crm/schemas/models/next_page.rb +224 -0
- data/lib/hubspot/codegen/crm/schemas/models/object_schema.rb +389 -0
- data/lib/hubspot/codegen/crm/schemas/models/object_schema_egg.rb +325 -0
- data/lib/hubspot/codegen/crm/schemas/models/object_type_definition.rb +364 -0
- data/lib/hubspot/codegen/crm/schemas/models/object_type_definition_labels.rb +221 -0
- data/lib/hubspot/codegen/crm/schemas/models/object_type_definition_patch.rb +265 -0
- data/lib/hubspot/codegen/crm/schemas/models/object_type_property_create.rb +356 -0
- data/lib/hubspot/codegen/crm/schemas/models/option.rb +266 -0
- data/lib/hubspot/codegen/crm/schemas/models/option_input.rb +271 -0
- data/lib/hubspot/codegen/crm/schemas/models/paging.rb +219 -0
- data/lib/hubspot/codegen/crm/schemas/models/previous_page.rb +224 -0
- data/lib/hubspot/codegen/crm/schemas/models/property.rb +465 -0
- data/lib/hubspot/codegen/crm/schemas/models/property_modification_metadata.rb +252 -0
- data/lib/hubspot/codegen/crm/tickets/api/associations_api.rb +13 -1
- data/lib/hubspot/codegen/crm/tickets/api/basic_api.rb +9 -3
- data/lib/hubspot/codegen/crm/tickets/api/batch_api.rb +1 -1
- data/lib/hubspot/codegen/crm/tickets/api/search_api.rb +1 -1
- data/lib/hubspot/codegen/crm/tickets/api_client.rb +8 -6
- data/lib/hubspot/codegen/crm/tickets/api_error.rb +1 -1
- data/lib/hubspot/codegen/crm/tickets/configuration.rb +1 -1
- data/lib/hubspot/codegen/crm/tickets/models/associated_id.rb +1 -1
- data/lib/hubspot/codegen/crm/tickets/models/batch_input_simple_public_object_batch_input.rb +1 -1
- data/lib/hubspot/codegen/crm/tickets/models/batch_input_simple_public_object_id.rb +1 -1
- data/lib/hubspot/codegen/crm/tickets/models/batch_input_simple_public_object_input.rb +1 -1
- data/lib/hubspot/codegen/crm/tickets/models/batch_read_input_simple_public_object_id.rb +1 -1
- data/lib/hubspot/codegen/crm/tickets/models/batch_response_simple_public_object.rb +1 -1
- data/lib/hubspot/codegen/crm/tickets/models/batch_response_simple_public_object_with_errors.rb +1 -1
- data/lib/hubspot/codegen/crm/tickets/models/collection_response_associated_id.rb +1 -1
- data/lib/hubspot/codegen/crm/tickets/models/collection_response_simple_public_object.rb +1 -1
- data/lib/hubspot/codegen/crm/tickets/models/collection_response_with_total_simple_public_object.rb +1 -1
- data/lib/hubspot/codegen/crm/tickets/models/error.rb +1 -1
- data/lib/hubspot/codegen/crm/tickets/models/error_detail.rb +1 -1
- data/lib/hubspot/codegen/crm/tickets/models/filter.rb +1 -1
- data/lib/hubspot/codegen/crm/tickets/models/filter_group.rb +1 -1
- data/lib/hubspot/codegen/crm/tickets/models/next_page.rb +1 -1
- data/lib/hubspot/codegen/crm/tickets/models/paging.rb +14 -5
- data/lib/hubspot/codegen/crm/tickets/models/previous_page.rb +224 -0
- data/lib/hubspot/codegen/crm/tickets/models/public_object_search_request.rb +1 -1
- data/lib/hubspot/codegen/crm/tickets/models/simple_public_object.rb +1 -1
- data/lib/hubspot/codegen/crm/tickets/models/simple_public_object_batch_input.rb +1 -1
- data/lib/hubspot/codegen/crm/tickets/models/simple_public_object_id.rb +1 -1
- data/lib/hubspot/codegen/crm/tickets/models/simple_public_object_input.rb +1 -1
- data/lib/hubspot/codegen/crm/timeline/api/events_api.rb +27 -19
- data/lib/hubspot/codegen/crm/timeline/api/templates_api.rb +31 -23
- data/lib/hubspot/codegen/crm/timeline/api/tokens_api.rb +25 -17
- data/lib/hubspot/codegen/crm/timeline/api_client.rb +9 -7
- data/lib/hubspot/codegen/crm/timeline/api_error.rb +2 -2
- data/lib/hubspot/codegen/crm/timeline/configuration.rb +3 -3
- data/lib/hubspot/codegen/crm/timeline/models/batch_input_timeline_event.rb +2 -2
- data/lib/hubspot/codegen/crm/timeline/models/batch_response_timeline_event_response.rb +32 -43
- data/lib/hubspot/codegen/crm/timeline/models/batch_response_timeline_event_response_with_errors.rb +333 -0
- data/lib/hubspot/codegen/crm/timeline/models/collection_response_timeline_event_template.rb +2 -2
- data/lib/hubspot/codegen/crm/timeline/models/error.rb +2 -2
- data/lib/hubspot/codegen/crm/timeline/models/error_detail.rb +2 -2
- data/lib/hubspot/codegen/crm/timeline/models/event_detail.rb +2 -2
- data/lib/hubspot/codegen/crm/timeline/models/next_page.rb +2 -2
- data/lib/hubspot/codegen/crm/timeline/models/paging.rb +15 -6
- data/lib/hubspot/codegen/crm/timeline/models/previous_page.rb +224 -0
- data/lib/hubspot/codegen/crm/timeline/models/timeline_event.rb +21 -21
- data/lib/hubspot/codegen/crm/timeline/models/timeline_event_i_frame.rb +2 -2
- data/lib/hubspot/codegen/crm/timeline/models/timeline_event_response.rb +30 -30
- data/lib/hubspot/codegen/crm/timeline/models/timeline_event_template.rb +56 -56
- data/lib/hubspot/codegen/crm/timeline/models/timeline_event_template_create_request.rb +21 -21
- data/lib/hubspot/codegen/crm/timeline/models/timeline_event_template_token.rb +48 -48
- data/lib/hubspot/codegen/crm/timeline/models/timeline_event_template_token_option.rb +2 -2
- data/lib/hubspot/codegen/crm/timeline/models/timeline_event_template_token_update_request.rb +2 -2
- data/lib/hubspot/codegen/crm/timeline/models/timeline_event_template_update_request.rb +21 -21
- data/lib/hubspot/codegen/oauth/api/default_api.rb +1 -1
- data/lib/hubspot/codegen/oauth/api_client.rb +4 -2
- data/lib/hubspot/codegen/oauth/api_error.rb +1 -1
- data/lib/hubspot/codegen/oauth/configuration.rb +1 -1
- data/lib/hubspot/codegen/oauth/models/access_token_info_response.rb +18 -2
- data/lib/hubspot/codegen/oauth/models/error.rb +1 -1
- data/lib/hubspot/codegen/oauth/models/error_detail.rb +1 -1
- data/lib/hubspot/codegen/oauth/models/refresh_token_info_response.rb +1 -1
- data/lib/hubspot/codegen/oauth/models/token_response_if.rb +20 -20
- data/lib/hubspot/codegen/webhooks/api/settings_api.rb +1 -1
- data/lib/hubspot/codegen/webhooks/api/subscriptions_api.rb +1 -1
- data/lib/hubspot/codegen/webhooks/api_client.rb +4 -2
- data/lib/hubspot/codegen/webhooks/api_error.rb +1 -1
- data/lib/hubspot/codegen/webhooks/configuration.rb +1 -1
- data/lib/hubspot/codegen/webhooks/models/batch_input_subscription_batch_update_request.rb +1 -1
- data/lib/hubspot/codegen/webhooks/models/batch_response_subscription_response.rb +1 -1
- data/lib/hubspot/codegen/webhooks/models/batch_response_subscription_response_with_errors.rb +1 -1
- data/lib/hubspot/codegen/webhooks/models/error.rb +1 -1
- data/lib/hubspot/codegen/webhooks/models/error_detail.rb +1 -1
- data/lib/hubspot/codegen/webhooks/models/settings_change_request.rb +1 -1
- data/lib/hubspot/codegen/webhooks/models/settings_response.rb +1 -1
- data/lib/hubspot/codegen/webhooks/models/subscription_batch_update_request.rb +1 -1
- data/lib/hubspot/codegen/webhooks/models/subscription_create_request.rb +1 -1
- data/lib/hubspot/codegen/webhooks/models/subscription_list_response.rb +1 -1
- data/lib/hubspot/codegen/webhooks/models/subscription_patch_request.rb +1 -1
- data/lib/hubspot/codegen/webhooks/models/subscription_response.rb +1 -1
- data/lib/hubspot/codegen/webhooks/models/throttling_settings.rb +1 -1
- data/lib/hubspot/version.rb +1 -1
- data/lib/hubspot-api-client.rb +99 -1
- data/sample-apps/companies-app/.env +4 -0
- data/sample-apps/companies-app/Gemfile.lock +2 -2
- data/sample-apps/companies-app/app/lib/services/hubspot/associations/create.rb +1 -1
- data/sample-apps/companies-app/app/lib/services/hubspot/associations/delete.rb +1 -1
- data/sample-apps/companies-app/app/lib/services/hubspot/associations/get_by_id.rb +2 -2
- data/sample-apps/companies-app/app/lib/services/hubspot/companies/create.rb +1 -1
- data/sample-apps/companies-app/app/lib/services/hubspot/companies/search.rb +1 -1
- data/sample-apps/companies-app/app/lib/services/hubspot/companies/update.rb +1 -2
- data/sample-apps/companies-app/app/lib/services/hubspot/contacts/search.rb +1 -1
- data/sample-apps/companies-app/db/development.sqlite3 +0 -0
- data/sample-apps/companies-app/log/development.log +9651 -0
- data/sample-apps/companies-app/tmp/cache/assets/sprockets/v3.0/05/053IomYcNFTvqinXbDGqg6suuCpMwg3_qV12AK4ccx8.cache +1 -0
- data/sample-apps/companies-app/tmp/cache/assets/sprockets/v3.0/0B/0BGoINhViZ8xxoxODKNlHCXeopOIVGkZv9GAbzCCrZA.cache +0 -0
- data/sample-apps/companies-app/tmp/cache/assets/sprockets/v3.0/1J/1JnNlMoorvDaAcLChcV1QOiqJyanmoUydnfe5-TPuXM.cache +2 -0
- data/sample-apps/companies-app/tmp/cache/assets/sprockets/v3.0/1m/1mRwQeI_697SJNgSakVyU5vtV9tpeQ3aUvIyW2cHhMs.cache +1 -0
- data/sample-apps/companies-app/tmp/cache/assets/sprockets/v3.0/2N/2NtH32KGXJ77tP3Eqh6uLR51KNm1OVXMHhMmPwFdosI.cache +1 -0
- data/sample-apps/companies-app/tmp/cache/assets/sprockets/v3.0/2h/2hVm3bNa9JCxAsLCxbvspAtiL4VOtRTjXMSPw8eT9xk.cache +1 -0
- data/sample-apps/companies-app/tmp/cache/assets/sprockets/v3.0/3-/3-EQcCNxYxUGN8o8H9QP_4IuaSB9GPsR0C-PObnR7s8.cache +0 -0
- data/sample-apps/companies-app/tmp/cache/assets/sprockets/v3.0/41/41_29mpjEGapjHdofSi36OnnO3-eBNYbCe5nzHnIKwY.cache +2 -0
- data/sample-apps/companies-app/tmp/cache/assets/sprockets/v3.0/4r/4rc8SkywVdYO98mj9mHirVzuhN_EeOMM3Lt3rugoOJs.cache +1 -0
- data/sample-apps/companies-app/tmp/cache/assets/sprockets/v3.0/61/61XTQQp3JN2SQH4_rfFy4gSk4pMiTt8me_AumxnvBNw.cache +1 -0
- data/sample-apps/companies-app/tmp/cache/assets/sprockets/v3.0/9V/9VF8D3PaGXBXsH74TVS8KHuWDA_6IiSdXMilLhBQisM.cache +1 -0
- data/sample-apps/companies-app/tmp/cache/assets/sprockets/v3.0/A4/A4dS-Tck_QocRHBsc08nLD48snD4G6ewTLWwpkgdMOQ.cache +0 -0
- data/sample-apps/companies-app/tmp/cache/assets/sprockets/v3.0/Du/DuRFhtIpu9n_mgamwyOra33hIUFOga8HYS-GSeWds9E.cache +1 -0
- data/sample-apps/companies-app/tmp/cache/assets/sprockets/v3.0/EC/EC2j6BCJ8TnspQFZeViwqN9QJH0fdqH7HvaNE6RzBxc.cache +1 -0
- data/sample-apps/companies-app/tmp/cache/assets/sprockets/v3.0/Fp/FprMIwFBZYrEWraVY7BWLI8zyHb9bwBIcAGNdpYm1Qo.cache +0 -0
- data/sample-apps/companies-app/tmp/cache/assets/sprockets/v3.0/HC/HCDOUd7-S45aJ_PjVAC_Vmjyud3i1aQv4cE3t9_Z3Dw.cache +2 -0
- data/sample-apps/companies-app/tmp/cache/assets/sprockets/v3.0/HP/HPdtqZdA1TM-sHs8oqrhAtNiPhPcRT9eX9Ol7MnE_Bw.cache +2 -0
- data/sample-apps/companies-app/tmp/cache/assets/sprockets/v3.0/Hc/Hcu6WwbYbe7vdpSCb0xXIKhaJsPWI3ClhXNHSX7tDGI.cache +1 -0
- data/sample-apps/companies-app/tmp/cache/assets/sprockets/v3.0/JS/JSG-U0jab1xh5XD7sVL6JOKyu09pfMxV-xrBJe_JO74.cache +1 -0
- data/sample-apps/companies-app/tmp/cache/assets/sprockets/v3.0/LZ/LZDNDSBrMmCeKXHrWTWu3KifeJk8ttcNGuQa4fHLxeA.cache +0 -0
- data/sample-apps/companies-app/tmp/cache/assets/sprockets/v3.0/Lh/LhI9Ge3PcQ_C89Ur42bKAIpIRT8TiDpipKToFBtEQeE.cache +0 -0
- data/sample-apps/companies-app/tmp/cache/assets/sprockets/v3.0/NF/NFP_eGmF5C6AoAtwpzQ--fUDgWzSatMkmaOg6MIZRsQ.cache +0 -0
- data/sample-apps/companies-app/tmp/cache/assets/sprockets/v3.0/NO/NOuX3u7ZLUewXKk_nPmLL5J6VkswjP1ZmCyZ1BzJXw4.cache +1 -0
- data/sample-apps/companies-app/tmp/cache/assets/sprockets/v3.0/Oy/OyUbp1l8zWzyp-bagPDb2l_Q7vp5qVbtWwVFV0hBbbM.cache +2 -0
- data/sample-apps/companies-app/tmp/cache/assets/sprockets/v3.0/QM/QMyYX6f-edvoA70P385xdnqFw26fL-P9OtifvwXojp8.cache +2 -0
- data/sample-apps/companies-app/tmp/cache/assets/sprockets/v3.0/U4/U466McG48IRBn70OWh5BO3nYPsXgKrEXHkrftg0xCLQ.cache +3 -0
- data/sample-apps/companies-app/tmp/cache/assets/sprockets/v3.0/Up/Upbt8ro5KXzYO6uyhFdI4KEXO-PUKaMitXFMEKCsfWA.cache +0 -0
- data/sample-apps/companies-app/tmp/cache/assets/sprockets/v3.0/Vr/Vr4UNxcDzlkx9ESuVbgI_Mb-fZcsczNERjGUj7FX7Io.cache +0 -0
- data/sample-apps/companies-app/tmp/cache/assets/sprockets/v3.0/Wh/WhFvj_7aBvrXx2AKx8-AVa6XnrEDLW1hRtQ7l08Ln58.cache +0 -0
- data/sample-apps/companies-app/tmp/cache/assets/sprockets/v3.0/ZU/ZUKJTVw3DLZSVGlveWzrhvo4GduUbQScJeICRDN8tdo.cache +1 -0
- data/sample-apps/companies-app/tmp/cache/assets/sprockets/v3.0/a3/a3AG-gARa2g-lIPGvcOkQvEfuvwICCxJd8zgE1bzLhE.cache +2 -0
- data/sample-apps/companies-app/tmp/cache/assets/sprockets/v3.0/c1/c17XEWohQCmDJUizcCXxGsOyG46k1SwuJghS8WDTpTw.cache +1 -0
- data/sample-apps/companies-app/tmp/cache/assets/sprockets/v3.0/dB/dB924pSiDrX_NqB-BmfdpToGXDZV6PINJB0ZDvM3tdg.cache +1 -0
- data/sample-apps/companies-app/tmp/cache/assets/sprockets/v3.0/dg/dg8xDUB026KlWVbRE1h_SZ6gEPR6g81HrTkUIimQzqc.cache +3 -0
- data/sample-apps/companies-app/tmp/cache/assets/sprockets/v3.0/gv/gvq1z6PDRE8gMtaUq2in1i3UzX2ALHQQDyu4rktAnlM.cache +0 -0
- data/sample-apps/companies-app/tmp/cache/assets/sprockets/v3.0/kX/kXwRD1nb3DhVhF7hOQ5XyWT3MbPg9czHAQgVjCGZ4mc.cache +1 -0
- data/sample-apps/companies-app/tmp/cache/assets/sprockets/v3.0/nF/nFSeMjJCygNSOQ27hdJwySwUPyh3vBaiXljrHxeQCfc.cache +0 -0
- data/sample-apps/companies-app/tmp/cache/assets/sprockets/v3.0/pF/pFK-AXLRfIZQbNkoSeGwKVKqJtkz_-WxAlFUbspYW3o.cache +2 -0
- data/sample-apps/companies-app/tmp/cache/assets/sprockets/v3.0/sb/sbdra4MXru4fxHN_jrd3o4d3VFPFyG3lI247mddfTUk.cache +2 -0
- data/sample-apps/companies-app/tmp/cache/assets/sprockets/v3.0/tK/tKCKU24QLnDe4Wb5ytXkeZ42k7bpBNPmmTRcnTqC18o.cache +1 -0
- data/sample-apps/companies-app/tmp/cache/assets/sprockets/v3.0/up/upaGCA7w36yB4Tws-rJDm6zL9b8MvnhZ0TUcpzwH_vg.cache +0 -0
- data/sample-apps/companies-app/tmp/cache/assets/sprockets/v3.0/x2/x2sUH1UpS_RN1OlRKq_HmaXualaBizKVLTALZBT5VKo.cache +2 -0
- data/sample-apps/companies-app/tmp/cache/assets/sprockets/v3.0/yL/yLiDuY3PPQgAmxWaulR4bejdG-_VXuSIqbmkWlntOys.cache +3 -0
- data/sample-apps/companies-app/tmp/cache/assets/sprockets/v3.0/zQ/zQQ-w-Xtu6gctPGaSXSDgmkcLte6siHhFoXxmJX9-0E.cache +1 -0
- data/sample-apps/companies-app/tmp/development_secret.txt +1 -0
- data/sample-apps/companies-app/tmp/restart.txt +0 -0
- data/sample-apps/contacts-app/.env +1 -3
- data/sample-apps/contacts-app/.env.test +3 -0
- data/sample-apps/contacts-app/Gemfile.lock +2 -2
- data/sample-apps/contacts-app/app/lib/services/hubspot/contacts/create.rb +1 -1
- data/sample-apps/contacts-app/app/lib/services/hubspot/contacts/search.rb +1 -1
- data/sample-apps/contacts-app/app/lib/services/hubspot/contacts/update.rb +1 -2
- data/sample-apps/contacts-app/app/lib/services/hubspot/properties/create.rb +1 -2
- data/sample-apps/contacts-app/app/lib/services/hubspot/properties/update.rb +1 -2
- data/sample-apps/contacts-app/db/test.sqlite3 +0 -0
- data/sample-apps/contacts-app/log/development.log +366 -0
- data/sample-apps/contacts-app/log/test.log +81 -0
- data/sample-apps/contacts-app/tmp/cache/assets/sprockets/v3.0/1Y/1YZtqickyeZ_JcII96hylY6lF7sxNkbgA85xfEwrRiI.cache +0 -0
- data/sample-apps/contacts-app/tmp/cache/assets/sprockets/v3.0/2l/2lwE97im5rEyOKzkyeiXzzKA4wJvO1a-4bRF4jVlcfc.cache +1 -0
- data/sample-apps/contacts-app/tmp/cache/assets/sprockets/v3.0/HQ/HQOePM7-Xd6f4RPYUzU9DhU7j7x58rgm9Ji25xcZqfs.cache +0 -0
- data/sample-apps/contacts-app/tmp/cache/assets/sprockets/v3.0/Kq/KqqfCu7F4dbV5xwLoXZcLoIgZKbHa_QnB1AwY0F_sw4.cache +0 -0
- data/sample-apps/contacts-app/tmp/cache/assets/sprockets/v3.0/qP/qPZh8f6IbfC6CMuapwQb1TgwVDd0LGY42KwWM1dMHdk.cache +1 -1
- data/sample-apps/leaky-bucket-app/app/lib/services/hubspot/contacts/archive_batch.rb +1 -1
- data/sample-apps/leaky-bucket-app/app/lib/services/hubspot/contacts/create_batch.rb +1 -1
- data/sample-apps/oauth-app/app/lib/services/hubspot/contacts/create.rb +1 -1
- data/sample-apps/oauth-app/app/lib/services/hubspot/contacts/search.rb +1 -1
- data/sample-apps/oauth-app/app/lib/services/hubspot/contacts/update.rb +1 -2
- data/sample-apps/rate-limits-redis-sample-app/app/lib/services/hubspot/contacts/archive_batch.rb +1 -1
- data/sample-apps/rate-limits-redis-sample-app/app/lib/services/hubspot/contacts/create_batch.rb +1 -1
- data/sample-apps/search-result-paging-app/app/lib/services/hubspot/contacts/search.rb +1 -1
- data/sample-apps/search-result-paging-app/app/lib/services/hubspot/properties/create.rb +1 -2
- data/sample-apps/timeline-events-app/.env +6 -0
- data/sample-apps/timeline-events-app/.env.template +5 -0
- data/sample-apps/timeline-events-app/.gitignore +35 -0
- data/sample-apps/timeline-events-app/.rspec +1 -0
- data/sample-apps/timeline-events-app/.ruby-version +1 -0
- data/sample-apps/timeline-events-app/Dockerfile +22 -0
- data/sample-apps/timeline-events-app/Gemfile +33 -0
- data/sample-apps/timeline-events-app/Gemfile.lock +271 -0
- data/sample-apps/timeline-events-app/README.md +30 -0
- data/sample-apps/timeline-events-app/Rakefile +6 -0
- data/sample-apps/timeline-events-app/app/assets/config/manifest.js +3 -0
- data/sample-apps/timeline-events-app/app/assets/images/.keep +0 -0
- data/sample-apps/timeline-events-app/app/assets/javascripts/application.js +15 -0
- data/sample-apps/timeline-events-app/app/assets/javascripts/cable.js +13 -0
- data/sample-apps/timeline-events-app/app/assets/javascripts/channels/.keep +0 -0
- data/sample-apps/timeline-events-app/app/assets/stylesheets/application.css +171 -0
- data/sample-apps/timeline-events-app/app/controllers/application_controller.rb +12 -0
- data/sample-apps/timeline-events-app/app/controllers/concerns/.keep +0 -0
- data/sample-apps/timeline-events-app/app/controllers/concerns/exception_handler.rb +12 -0
- data/sample-apps/timeline-events-app/app/controllers/oauth/authorization_controller.rb +19 -0
- data/sample-apps/timeline-events-app/app/controllers/timeline_events_controller.rb +37 -0
- data/sample-apps/timeline-events-app/app/helpers/application_helper.rb +2 -0
- data/sample-apps/timeline-events-app/app/lib/services/authorization/authorize_hubspot.rb +15 -0
- data/sample-apps/timeline-events-app/app/lib/services/authorization/get_authorization_uri.rb +33 -0
- data/sample-apps/timeline-events-app/app/lib/services/authorization/tokens/base.rb +19 -0
- data/sample-apps/timeline-events-app/app/lib/services/authorization/tokens/generate.rb +26 -0
- data/sample-apps/timeline-events-app/app/lib/services/authorization/tokens/refresh.rb +33 -0
- data/sample-apps/timeline-events-app/app/lib/services/hubspot/contacts/search.rb +37 -0
- data/sample-apps/timeline-events-app/app/lib/services/hubspot/timeline/create_event.rb +20 -0
- data/sample-apps/timeline-events-app/app/lib/services/hubspot/timeline/create_template.rb +39 -0
- data/sample-apps/timeline-events-app/app/models/application_record.rb +3 -0
- data/sample-apps/timeline-events-app/app/models/concerns/.keep +0 -0
- data/sample-apps/timeline-events-app/app/views/layouts/application.html.erb +23 -0
- data/sample-apps/timeline-events-app/app/views/oauth/authorization/login.html.erb +15 -0
- data/sample-apps/timeline-events-app/app/views/shared/_header.html.erb +12 -0
- data/sample-apps/timeline-events-app/app/views/timeline_events/index.html.erb +53 -0
- data/sample-apps/timeline-events-app/bin/bundle +3 -0
- data/sample-apps/timeline-events-app/bin/rails +9 -0
- data/sample-apps/timeline-events-app/bin/rake +9 -0
- data/sample-apps/timeline-events-app/bin/setup +36 -0
- data/sample-apps/timeline-events-app/bin/spring +17 -0
- data/sample-apps/timeline-events-app/bin/update +31 -0
- data/sample-apps/timeline-events-app/bin/yarn +11 -0
- data/sample-apps/timeline-events-app/config/application.rb +19 -0
- data/sample-apps/timeline-events-app/config/boot.rb +3 -0
- data/sample-apps/timeline-events-app/config/database.yml +25 -0
- data/sample-apps/timeline-events-app/config/environment.rb +5 -0
- data/sample-apps/timeline-events-app/config/environments/development.rb +61 -0
- data/sample-apps/timeline-events-app/config/environments/production.rb +94 -0
- data/sample-apps/timeline-events-app/config/environments/test.rb +46 -0
- data/sample-apps/timeline-events-app/config/initializers/assets.rb +14 -0
- data/sample-apps/timeline-events-app/config/initializers/filter_parameter_logging.rb +4 -0
- data/sample-apps/timeline-events-app/config/initializers/hubspot-api-client.rb +3 -0
- data/sample-apps/timeline-events-app/config/initializers/mime_types.rb +1 -0
- data/sample-apps/timeline-events-app/config/initializers/wrap_parameters.rb +14 -0
- data/sample-apps/timeline-events-app/config/locales/en.yml +33 -0
- data/sample-apps/timeline-events-app/config/puma.rb +34 -0
- data/sample-apps/timeline-events-app/config/routes.rb +7 -0
- data/sample-apps/timeline-events-app/config/spring.rb +6 -0
- data/sample-apps/timeline-events-app/config.ru +5 -0
- data/sample-apps/timeline-events-app/db/development.sqlite3 +0 -0
- data/sample-apps/timeline-events-app/db/seeds.rb +7 -0
- data/sample-apps/timeline-events-app/docker-compose.yml +11 -0
- data/sample-apps/timeline-events-app/docker-entrypoint.sh +8 -0
- data/sample-apps/timeline-events-app/lib/assets/.keep +0 -0
- data/sample-apps/timeline-events-app/lib/tasks/.keep +0 -0
- data/sample-apps/timeline-events-app/log/.keep +0 -0
- data/sample-apps/timeline-events-app/log/development.log +233 -0
- data/sample-apps/timeline-events-app/package.json +5 -0
- data/sample-apps/timeline-events-app/public/404.html +67 -0
- data/sample-apps/timeline-events-app/public/422.html +67 -0
- data/sample-apps/timeline-events-app/public/500.html +66 -0
- data/sample-apps/timeline-events-app/public/apple-touch-icon-precomposed.png +0 -0
- data/sample-apps/timeline-events-app/public/apple-touch-icon.png +0 -0
- data/sample-apps/timeline-events-app/public/favicon.ico +0 -0
- data/sample-apps/timeline-events-app/public/robots.txt +1 -0
- data/sample-apps/timeline-events-app/spec/rails_helper.rb +42 -0
- data/sample-apps/timeline-events-app/spec/spec_helper.rb +11 -0
- data/sample-apps/timeline-events-app/tmp/.keep +0 -0
- data/sample-apps/timeline-events-app/tmp/cache/assets/sprockets/v3.0/-4/-4csb8XcQONHVcyTGO-F2TBp5f38ghhZHcLg3cqyqGo.cache +1 -0
- data/sample-apps/timeline-events-app/tmp/cache/assets/sprockets/v3.0/-s/-sz9D51o9Mpd_omN4pJY1EYoyEa63QWgr9CkNp-jtps.cache +1 -0
- data/sample-apps/timeline-events-app/tmp/cache/assets/sprockets/v3.0/1J/1JnNlMoorvDaAcLChcV1QOiqJyanmoUydnfe5-TPuXM.cache +2 -0
- data/sample-apps/timeline-events-app/tmp/cache/assets/sprockets/v3.0/1m/1mRwQeI_697SJNgSakVyU5vtV9tpeQ3aUvIyW2cHhMs.cache +1 -0
- data/sample-apps/timeline-events-app/tmp/cache/assets/sprockets/v3.0/2N/2NtH32KGXJ77tP3Eqh6uLR51KNm1OVXMHhMmPwFdosI.cache +1 -0
- data/sample-apps/timeline-events-app/tmp/cache/assets/sprockets/v3.0/2h/2hVm3bNa9JCxAsLCxbvspAtiL4VOtRTjXMSPw8eT9xk.cache +1 -0
- data/sample-apps/timeline-events-app/tmp/cache/assets/sprockets/v3.0/41/41_29mpjEGapjHdofSi36OnnO3-eBNYbCe5nzHnIKwY.cache +2 -0
- data/sample-apps/timeline-events-app/tmp/cache/assets/sprockets/v3.0/60/609vj6Xv1ogaZ1W1H_oBuo-3NqC3UqbKAXw2ekEcehU.cache +0 -0
- data/sample-apps/timeline-events-app/tmp/cache/assets/sprockets/v3.0/61/61XTQQp3JN2SQH4_rfFy4gSk4pMiTt8me_AumxnvBNw.cache +1 -0
- data/sample-apps/timeline-events-app/tmp/cache/assets/sprockets/v3.0/6p/6pPimSDuw-hEAZW4CkGVIt9wjYiTMaCD2XPuKQoiI4Q.cache +1 -0
- data/sample-apps/timeline-events-app/tmp/cache/assets/sprockets/v3.0/7J/7JspjJWUyNJySsbLlEs8anll3WiAM20dZ2sYA0gAhMI.cache +0 -0
- data/sample-apps/timeline-events-app/tmp/cache/assets/sprockets/v3.0/9N/9NrK08Zz2zuDH5uff0al0ZhRW0kOe3KP7KSyfZDcWfg.cache +0 -0
- data/sample-apps/timeline-events-app/tmp/cache/assets/sprockets/v3.0/9V/9VF8D3PaGXBXsH74TVS8KHuWDA_6IiSdXMilLhBQisM.cache +1 -0
- data/sample-apps/timeline-events-app/tmp/cache/assets/sprockets/v3.0/9c/9cJSDPxEgTHO5-B9Ln7Tmok9fbsxmk1HYf-W-gkEg_I.cache +2 -0
- data/sample-apps/timeline-events-app/tmp/cache/assets/sprockets/v3.0/AE/AE-AZVyOjAgA1j71HRmlDGNdoT6aOAMNrvEsZxDVMzU.cache +2 -0
- data/sample-apps/timeline-events-app/tmp/cache/assets/sprockets/v3.0/AF/AFacZJ15zJm8o8Bwesmpsw2GC-o4mNEAhT87cuTM_wE.cache +1 -0
- data/sample-apps/timeline-events-app/tmp/cache/assets/sprockets/v3.0/B6/B6MZ8qg-mV5hZWBQ5HB80eAXCr4gyrJR5Yrm4BiSTdU.cache +2 -0
- data/sample-apps/timeline-events-app/tmp/cache/assets/sprockets/v3.0/D0/D01xXzz6r1DGdB4yVwcPaLEp7-mpzCd2m3enZVNJtFU.cache +2 -0
- data/sample-apps/timeline-events-app/tmp/cache/assets/sprockets/v3.0/Du/DuRFhtIpu9n_mgamwyOra33hIUFOga8HYS-GSeWds9E.cache +1 -0
- data/sample-apps/timeline-events-app/tmp/cache/assets/sprockets/v3.0/EC/EC2j6BCJ8TnspQFZeViwqN9QJH0fdqH7HvaNE6RzBxc.cache +1 -0
- data/sample-apps/timeline-events-app/tmp/cache/assets/sprockets/v3.0/Ey/EyQsquE_D1TCQQbh-3vmLjQzYO7w9ZRqo7tDg5VpC7Q.cache +2 -0
- data/sample-apps/timeline-events-app/tmp/cache/assets/sprockets/v3.0/Fp/FprMIwFBZYrEWraVY7BWLI8zyHb9bwBIcAGNdpYm1Qo.cache +0 -0
- data/sample-apps/timeline-events-app/tmp/cache/assets/sprockets/v3.0/HC/HCDOUd7-S45aJ_PjVAC_Vmjyud3i1aQv4cE3t9_Z3Dw.cache +2 -0
- data/sample-apps/timeline-events-app/tmp/cache/assets/sprockets/v3.0/JS/JSG-U0jab1xh5XD7sVL6JOKyu09pfMxV-xrBJe_JO74.cache +1 -0
- data/sample-apps/timeline-events-app/tmp/cache/assets/sprockets/v3.0/Lh/LhI9Ge3PcQ_C89Ur42bKAIpIRT8TiDpipKToFBtEQeE.cache +0 -0
- data/sample-apps/timeline-events-app/tmp/cache/assets/sprockets/v3.0/Mv/MvRTlknGa6_mRdF7m9I2jPIPCQ9a-RyzBwkgecBbZQ8.cache +0 -0
- data/sample-apps/timeline-events-app/tmp/cache/assets/sprockets/v3.0/OF/OFMeLotCkEst9CGQgQZtf5RZNaVhcrLOPJeSWszn-aw.cache +1 -0
- data/sample-apps/timeline-events-app/tmp/cache/assets/sprockets/v3.0/RJ/RJ-ZWnzIrbCdeg0pVWbccBZiePyfi50zo0xb1Tbhh80.cache +1 -0
- data/sample-apps/timeline-events-app/tmp/cache/assets/sprockets/v3.0/RU/RUOojm-aD-XrIy-K6cbUI9czQdjnW9_Bt45wId068iM.cache +2 -0
- data/sample-apps/timeline-events-app/tmp/cache/assets/sprockets/v3.0/Tx/TxdcnqzvySOuWPXZfaIYX0TOpCy44repbAScKtV2niE.cache +0 -0
- data/sample-apps/timeline-events-app/tmp/cache/assets/sprockets/v3.0/U4/U466McG48IRBn70OWh5BO3nYPsXgKrEXHkrftg0xCLQ.cache +3 -0
- data/sample-apps/timeline-events-app/tmp/cache/assets/sprockets/v3.0/UW/UWFYTnxz4EWqiz0LkhxInMLo36CdlVg3x9SyzAnLiBU.cache +0 -0
- data/sample-apps/timeline-events-app/tmp/cache/assets/sprockets/v3.0/Up/Upbt8ro5KXzYO6uyhFdI4KEXO-PUKaMitXFMEKCsfWA.cache +0 -0
- data/sample-apps/timeline-events-app/tmp/cache/assets/sprockets/v3.0/V8/V8wr1RK4MTLGwxThiZIb0G-SrIusNzCMhJeHGGHT72Q.cache +1 -0
- data/sample-apps/timeline-events-app/tmp/cache/assets/sprockets/v3.0/Wh/WhFvj_7aBvrXx2AKx8-AVa6XnrEDLW1hRtQ7l08Ln58.cache +0 -0
- data/sample-apps/timeline-events-app/tmp/cache/assets/sprockets/v3.0/Wt/WtCfdoaaBC0aPmNgc57xHk8dbNRqZcP5zOpcLpiGzoc.cache +2 -0
- data/sample-apps/timeline-events-app/tmp/cache/assets/sprockets/v3.0/Wz/WzRw7cbmE45MrdG0W25ZAT-Nz0glf7xBkB2nI0M7z7A.cache +1 -0
- data/sample-apps/timeline-events-app/tmp/cache/assets/sprockets/v3.0/Xi/XiZmZbrcb0M-y7EJZkx1ft177jFiZCL7pbpp6cRZaTA.cache +1 -0
- data/sample-apps/timeline-events-app/tmp/cache/assets/sprockets/v3.0/ZU/ZUKJTVw3DLZSVGlveWzrhvo4GduUbQScJeICRDN8tdo.cache +1 -0
- data/sample-apps/timeline-events-app/tmp/cache/assets/sprockets/v3.0/_w/_w2qaD3e5UPMGQeZYpP481jnQLVeIXIVH2vQx2856QY.cache +0 -0
- data/sample-apps/timeline-events-app/tmp/cache/assets/sprockets/v3.0/dg/dg8xDUB026KlWVbRE1h_SZ6gEPR6g81HrTkUIimQzqc.cache +3 -0
- data/sample-apps/timeline-events-app/tmp/cache/assets/sprockets/v3.0/eX/eXRXZi-sk9Oy17fc94B24coFT6Jn93gCZI0SahPx7U4.cache +0 -0
- data/sample-apps/timeline-events-app/tmp/cache/assets/sprockets/v3.0/ey/eyQx5cIdM2CoBrdF3izBgEAY4OxjhcWr4O4xz132au8.cache +2 -0
- data/sample-apps/timeline-events-app/tmp/cache/assets/sprockets/v3.0/fW/fWunpu-z9IEGhI1uwayT47VSyYTtQkphog4WkrSKAiw.cache +1 -0
- data/sample-apps/timeline-events-app/tmp/cache/assets/sprockets/v3.0/gB/gBgBWy2c1z2A2HykdtIz7OYGnHIRDzbk092kh5b6jaE.cache +2 -0
- data/sample-apps/timeline-events-app/tmp/cache/assets/sprockets/v3.0/gv/gvq1z6PDRE8gMtaUq2in1i3UzX2ALHQQDyu4rktAnlM.cache +0 -0
- data/sample-apps/timeline-events-app/tmp/cache/assets/sprockets/v3.0/hA/hAQloq4iFKlI32gRuBj7Qw-S3_fk622RHC7B3bKQcGM.cache +2 -0
- data/sample-apps/timeline-events-app/tmp/cache/assets/sprockets/v3.0/j3/j3r-jelmETDRd-G19KKXI0QM5g991nlcbUwXBnRnNQE.cache +0 -0
- data/sample-apps/timeline-events-app/tmp/cache/assets/sprockets/v3.0/k1/k1S4UmDyDiVdoVjxFVnT7PjryGZlRLlg6Rbiv263PC8.cache +1 -0
- data/sample-apps/timeline-events-app/tmp/cache/assets/sprockets/v3.0/kX/kXwRD1nb3DhVhF7hOQ5XyWT3MbPg9czHAQgVjCGZ4mc.cache +1 -0
- data/sample-apps/timeline-events-app/tmp/cache/assets/sprockets/v3.0/kb/kbxkYCk1EgNiJrtaLBYcKjpLawXPyY26vtsvLwAGuRs.cache +0 -0
- data/sample-apps/timeline-events-app/tmp/cache/assets/sprockets/v3.0/lG/lGngG8GuW7NOMaJJjbCUpaUmPukNz5qTAuDFKUeQGD8.cache +1 -0
- data/sample-apps/timeline-events-app/tmp/cache/assets/sprockets/v3.0/mE/mE5ux5CqyC__7A31roQaIrItQDaC4e3O1ccQpHEzf3A.cache +1 -0
- data/sample-apps/timeline-events-app/tmp/cache/assets/sprockets/v3.0/mf/mfGViGcXdNxYP-Fj1h1q2YL8V4R9hdRw-pbcz44ykGo.cache +1 -0
- data/sample-apps/timeline-events-app/tmp/cache/assets/sprockets/v3.0/n_/n_AnmncFkjyQrNIMt47ODfSQL8Ah5cY4UKW1IThyYyg.cache +0 -0
- data/sample-apps/timeline-events-app/tmp/cache/assets/sprockets/v3.0/ne/nehoEMwTN_YXNZspteBmbCj-55v4o0wq_nnFJCPVtUk.cache +1 -0
- data/sample-apps/timeline-events-app/tmp/cache/assets/sprockets/v3.0/nf/nfLIHBgXq65X45t_2QaQM3smByR8wIxjzXL0A1bb9NU.cache +0 -0
- data/sample-apps/timeline-events-app/tmp/cache/assets/sprockets/v3.0/pF/pFK-AXLRfIZQbNkoSeGwKVKqJtkz_-WxAlFUbspYW3o.cache +2 -0
- data/sample-apps/timeline-events-app/tmp/cache/assets/sprockets/v3.0/q8/q8cA8tJbgodCWeH8qLt9pac6Ig-wK4v5aiJ6VV6-bHw.cache +0 -0
- data/sample-apps/timeline-events-app/tmp/cache/assets/sprockets/v3.0/sD/sDQm06qCaywVxzpOwjngjtCXxSMXqwixf0n0xD0IHHw.cache +0 -0
- data/sample-apps/timeline-events-app/tmp/cache/assets/sprockets/v3.0/sb/sbdra4MXru4fxHN_jrd3o4d3VFPFyG3lI247mddfTUk.cache +2 -0
- data/sample-apps/timeline-events-app/tmp/cache/assets/sprockets/v3.0/w7/w7U6DzTbVwmZ8JqXhirzDvr-HGtiCEIpNHRQtLc7M68.cache +2 -0
- data/sample-apps/timeline-events-app/tmp/cache/assets/sprockets/v3.0/wd/wdx03MG0LBtOSdemZvED30U1i-V5s75E7207MC6TGTI.cache +0 -0
- data/sample-apps/timeline-events-app/tmp/cache/assets/sprockets/v3.0/yL/yLiDuY3PPQgAmxWaulR4bejdG-_VXuSIqbmkWlntOys.cache +3 -0
- data/sample-apps/timeline-events-app/tmp/cache/assets/sprockets/v3.0/yb/ybRqqIyo6H-rkIwoBZp14cENSoSgyZqa1XAUKLV1zpk.cache +1 -0
- data/sample-apps/timeline-events-app/tmp/cache/assets/sprockets/v3.0/yj/yjlHOIhrAzNkiA_SiyRZKIkEwaC0rktB1TVequSKqjc.cache +1 -0
- data/sample-apps/timeline-events-app/tmp/development_secret.txt +1 -0
- data/sample-apps/timeline-events-app/tmp/restart.txt +0 -0
- data/sample-apps/trello-integration-app/.env.template +7 -0
- data/sample-apps/trello-integration-app/.gitignore +35 -0
- data/sample-apps/trello-integration-app/.rspec +1 -0
- data/sample-apps/trello-integration-app/.ruby-version +1 -0
- data/sample-apps/trello-integration-app/Dockerfile +22 -0
- data/sample-apps/trello-integration-app/Gemfile +38 -0
- data/sample-apps/trello-integration-app/Gemfile.lock +314 -0
- data/sample-apps/trello-integration-app/README.md +31 -0
- data/sample-apps/trello-integration-app/Rakefile +6 -0
- data/sample-apps/trello-integration-app/app/assets/config/manifest.js +3 -0
- data/sample-apps/trello-integration-app/app/assets/images/.keep +0 -0
- data/sample-apps/trello-integration-app/app/assets/images/right-arrow.png +0 -0
- data/sample-apps/trello-integration-app/app/assets/javascripts/application.js +22 -0
- data/sample-apps/trello-integration-app/app/assets/javascripts/cable.js +13 -0
- data/sample-apps/trello-integration-app/app/assets/javascripts/channels/.keep +0 -0
- data/sample-apps/trello-integration-app/app/assets/javascripts/jquery-spinner.min.js +11071 -0
- data/sample-apps/trello-integration-app/app/assets/javascripts/lodash.js +15972 -0
- data/sample-apps/trello-integration-app/app/assets/javascripts/mappings.js +78 -0
- data/sample-apps/trello-integration-app/app/assets/javascripts/typeahead.bundle.min.js +8 -0
- data/sample-apps/trello-integration-app/app/assets/stylesheets/application.css +46 -0
- data/sample-apps/trello-integration-app/app/assets/stylesheets/authorization.scss +34 -0
- data/sample-apps/trello-integration-app/app/assets/stylesheets/jquery-spinner.css +33 -0
- data/sample-apps/trello-integration-app/app/assets/stylesheets/mappings.scss +55 -0
- data/sample-apps/trello-integration-app/app/assets/stylesheets/navigation.scss +43 -0
- data/sample-apps/trello-integration-app/app/assets/stylesheets/search_frame.scss +81 -0
- data/sample-apps/trello-integration-app/app/controllers/application_controller.rb +38 -0
- data/sample-apps/trello-integration-app/app/controllers/concerns/.keep +0 -0
- data/sample-apps/trello-integration-app/app/controllers/concerns/exception_handler.rb +12 -0
- data/sample-apps/trello-integration-app/app/controllers/home_controller.rb +20 -0
- data/sample-apps/trello-integration-app/app/controllers/mappings_controller.rb +64 -0
- data/sample-apps/trello-integration-app/app/controllers/oauth/authorization_controller.rb +28 -0
- data/sample-apps/trello-integration-app/app/controllers/trello/cards_controller.rb +94 -0
- data/sample-apps/trello-integration-app/app/controllers/trello/webhooks_controller.rb +30 -0
- data/sample-apps/trello-integration-app/app/helpers/application_helper.rb +2 -0
- data/sample-apps/trello-integration-app/app/helpers/oauth/authorization_helper.rb +11 -0
- data/sample-apps/trello-integration-app/app/lib/services/hubspot/authorization/authorize.rb +17 -0
- data/sample-apps/trello-integration-app/app/lib/services/hubspot/authorization/get_authorization_uri.rb +35 -0
- data/sample-apps/trello-integration-app/app/lib/services/hubspot/authorization/tokens/base.rb +21 -0
- data/sample-apps/trello-integration-app/app/lib/services/hubspot/authorization/tokens/generate.rb +28 -0
- data/sample-apps/trello-integration-app/app/lib/services/hubspot/authorization/tokens/refresh.rb +35 -0
- data/sample-apps/trello-integration-app/app/lib/services/hubspot/deals/get_by_id.rb +15 -0
- data/sample-apps/trello-integration-app/app/lib/services/hubspot/deals/update.rb +17 -0
- data/sample-apps/trello-integration-app/app/lib/services/hubspot/extensions_cards/create.rb +82 -0
- data/sample-apps/trello-integration-app/app/lib/services/hubspot/pipelines/get_all.rb +11 -0
- data/sample-apps/trello-integration-app/app/lib/services/hubspot/pipelines/get_by_id.rb +15 -0
- data/sample-apps/trello-integration-app/app/lib/services/trello/authorization/authorize.rb +20 -0
- data/sample-apps/trello-integration-app/app/lib/services/trello/boards/get_all.rb +11 -0
- data/sample-apps/trello-integration-app/app/lib/services/trello/boards/get_by_id.rb +19 -0
- data/sample-apps/trello-integration-app/app/lib/services/trello/cards/format.rb +78 -0
- data/sample-apps/trello-integration-app/app/lib/services/trello/cards/get_by_id.rb +15 -0
- data/sample-apps/trello-integration-app/app/lib/services/trello/cards/search.rb +15 -0
- data/sample-apps/trello-integration-app/app/lib/services/trello/webhooks/create.rb +31 -0
- data/sample-apps/trello-integration-app/app/lib/services/trello/webhooks/delete.rb +17 -0
- data/sample-apps/trello-integration-app/app/lib/services/trello/webhooks/update.rb +19 -0
- data/sample-apps/trello-integration-app/app/models/application_record.rb +3 -0
- data/sample-apps/trello-integration-app/app/models/concerns/.keep +0 -0
- data/sample-apps/trello-integration-app/app/models/deal_association.rb +2 -0
- data/sample-apps/trello-integration-app/app/models/extension_card.rb +4 -0
- data/sample-apps/trello-integration-app/app/models/hubspot_token.rb +19 -0
- data/sample-apps/trello-integration-app/app/models/mapping.rb +2 -0
- data/sample-apps/trello-integration-app/app/models/trello_token.rb +19 -0
- data/sample-apps/trello-integration-app/app/models/webhook.rb +2 -0
- data/sample-apps/trello-integration-app/app/views/home/index.html.erb +23 -0
- data/sample-apps/trello-integration-app/app/views/home/success.html.erb +11 -0
- data/sample-apps/trello-integration-app/app/views/layouts/application.html.erb +23 -0
- data/sample-apps/trello-integration-app/app/views/mappings/_mapping.html.erb +13 -0
- data/sample-apps/trello-integration-app/app/views/mappings/index.html.erb +44 -0
- data/sample-apps/trello-integration-app/app/views/oauth/authorization/login.html.erb +42 -0
- data/sample-apps/trello-integration-app/app/views/shared/_header.html.erb +15 -0
- data/sample-apps/trello-integration-app/app/views/trello/cards/search_frame.html.erb +69 -0
- data/sample-apps/trello-integration-app/app/views/trello/cards/search_frame_success.html.erb +7 -0
- data/sample-apps/trello-integration-app/bin/bundle +3 -0
- data/sample-apps/trello-integration-app/bin/rails +9 -0
- data/sample-apps/trello-integration-app/bin/rake +9 -0
- data/sample-apps/trello-integration-app/bin/setup +36 -0
- data/sample-apps/trello-integration-app/bin/spring +17 -0
- data/sample-apps/trello-integration-app/bin/update +31 -0
- data/sample-apps/trello-integration-app/bin/yarn +11 -0
- data/sample-apps/trello-integration-app/config/application.rb +20 -0
- data/sample-apps/trello-integration-app/config/boot.rb +3 -0
- data/sample-apps/trello-integration-app/config/cable.yml +10 -0
- data/sample-apps/trello-integration-app/config/database.yml +16 -0
- data/sample-apps/trello-integration-app/config/environment.rb +5 -0
- data/sample-apps/trello-integration-app/config/environments/development.rb +61 -0
- data/sample-apps/trello-integration-app/config/environments/production.rb +94 -0
- data/sample-apps/trello-integration-app/config/environments/test.rb +46 -0
- data/sample-apps/trello-integration-app/config/initializers/assets.rb +14 -0
- data/sample-apps/trello-integration-app/config/initializers/filter_parameter_logging.rb +4 -0
- data/sample-apps/trello-integration-app/config/initializers/hubspot-api-client.rb +3 -0
- data/sample-apps/trello-integration-app/config/initializers/mime_types.rb +1 -0
- data/sample-apps/trello-integration-app/config/initializers/omniauth.rb +11 -0
- data/sample-apps/trello-integration-app/config/initializers/trello.rb +1 -0
- data/sample-apps/trello-integration-app/config/initializers/wrap_parameters.rb +14 -0
- data/sample-apps/trello-integration-app/config/locales/en.yml +33 -0
- data/sample-apps/trello-integration-app/config/puma.rb +34 -0
- data/sample-apps/trello-integration-app/config/routes.rb +29 -0
- data/sample-apps/trello-integration-app/config/spring.rb +6 -0
- data/sample-apps/trello-integration-app/config/storage.yml +34 -0
- data/sample-apps/trello-integration-app/config.ru +5 -0
- data/sample-apps/trello-integration-app/db/migrate/20200624132327_create_hubspot_tokens.rb +10 -0
- data/sample-apps/trello-integration-app/db/migrate/20200624132336_create_trello_tokens.rb +8 -0
- data/sample-apps/trello-integration-app/db/migrate/20200624132337_create_deal_associations.rb +8 -0
- data/sample-apps/trello-integration-app/db/migrate/20200702130530_create_extension_cards.rb +8 -0
- data/sample-apps/trello-integration-app/db/migrate/20200715143913_create_mappings.rb +12 -0
- data/sample-apps/trello-integration-app/db/migrate/20200727083656_create_webhooks.rb +9 -0
- data/sample-apps/trello-integration-app/db/schema.rb +52 -0
- data/sample-apps/trello-integration-app/db/seeds.rb +7 -0
- data/sample-apps/trello-integration-app/docker-compose.yml +41 -0
- data/sample-apps/trello-integration-app/docker-entrypoint.sh +8 -0
- data/sample-apps/trello-integration-app/lib/assets/.keep +0 -0
- data/sample-apps/trello-integration-app/lib/middlewares/trello_payload_params_handler.rb +18 -0
- data/sample-apps/trello-integration-app/lib/tasks/.keep +0 -0
- data/sample-apps/trello-integration-app/log/.keep +0 -0
- data/sample-apps/trello-integration-app/log/development.log +9458 -0
- data/sample-apps/trello-integration-app/package.json +5 -0
- data/sample-apps/trello-integration-app/public/404.html +67 -0
- data/sample-apps/trello-integration-app/public/422.html +67 -0
- data/sample-apps/trello-integration-app/public/500.html +66 -0
- data/sample-apps/trello-integration-app/public/favicon.ico +0 -0
- data/sample-apps/trello-integration-app/public/robots.txt +1 -0
- data/sample-apps/trello-integration-app/tmp/.keep +0 -0
- data/sample-apps/trello-integration-app/tmp/cache/assets/sprockets/v3.0/-5/-5IQLCGeMEVABOZfTtCI7jAP59s3gIKoFcUrPHF6cRg.cache +0 -0
- data/sample-apps/trello-integration-app/tmp/cache/assets/sprockets/v3.0/1M/1MIa4owWAXM3DE3nn5ZIqs_XEfGXzqflAhza_kXwTDc.cache +1 -0
- data/sample-apps/trello-integration-app/tmp/cache/assets/sprockets/v3.0/1i/1imEhsNCIy2fAJ63nSZG4EwUgtvcghYpmgyo4ZhDR40.cache +2 -0
- data/sample-apps/trello-integration-app/tmp/cache/assets/sprockets/v3.0/1m/1mRwQeI_697SJNgSakVyU5vtV9tpeQ3aUvIyW2cHhMs.cache +1 -0
- data/sample-apps/trello-integration-app/tmp/cache/assets/sprockets/v3.0/21/21_uawo73AYegLYSTeDlvwfV9Utx2cadH6AjAtmgCQc.cache +1 -0
- data/sample-apps/trello-integration-app/tmp/cache/assets/sprockets/v3.0/2l/2lLEp9zP0rNgbSVfE8xQYu1VU3p63BikVHdu_cToP54.cache +3 -0
- data/sample-apps/trello-integration-app/tmp/cache/assets/sprockets/v3.0/33/33P8II3n2NSOHCnt4BhkKLa4cH0_vP6GXXXl8ra2b4M.cache +1 -0
- data/sample-apps/trello-integration-app/tmp/cache/assets/sprockets/v3.0/3v/3vVkN-vWJvSYJXb_JLZ64MPdM6PagRLJjiVNlTh_vm0.cache +1 -0
- data/sample-apps/trello-integration-app/tmp/cache/assets/sprockets/v3.0/4d/4d5ws2hCOW840rIPYQ8pjrtDPI1JGIMrPrfGvDFfbTQ.cache +1 -0
- data/sample-apps/trello-integration-app/tmp/cache/assets/sprockets/v3.0/4t/4tS7Kks-W0kO57E-2syU3eShBn8W1Q9w36P6Fsfcgo0.cache +1 -0
- data/sample-apps/trello-integration-app/tmp/cache/assets/sprockets/v3.0/4v/4vuJrhXN-pxG6n5IfuNdMz8_FsIYKj-fElSODkrt4AQ.cache +1 -0
- data/sample-apps/trello-integration-app/tmp/cache/assets/sprockets/v3.0/6j/6jYDdSmPkIUK3DW0nVlT6Kf3aUDCNL-irPIlCMssNFY.cache +0 -0
- data/sample-apps/trello-integration-app/tmp/cache/assets/sprockets/v3.0/9A/9AOXJU1xKC2LmruUREUliKtZk0ysQGX45jeVklP7ozo.cache +3 -0
- data/sample-apps/trello-integration-app/tmp/cache/assets/sprockets/v3.0/9E/9EzUvwM2DX5UGOaP8z5v9a0fHEobrbfp3eLZtTLyXt8.cache +1 -0
- data/sample-apps/trello-integration-app/tmp/cache/assets/sprockets/v3.0/9V/9VF8D3PaGXBXsH74TVS8KHuWDA_6IiSdXMilLhBQisM.cache +1 -0
- data/sample-apps/trello-integration-app/tmp/cache/assets/sprockets/v3.0/AA/AA5_0J3GyFIY79_KiyFady2ZJJ-o1rDP-bwtevwJVuY.cache +3 -0
- data/sample-apps/trello-integration-app/tmp/cache/assets/sprockets/v3.0/BR/BRGFuw7M9XuD-y23pOt1EL_DLcfRImkjQ0yzDyW3bOE.cache +1 -0
- data/sample-apps/trello-integration-app/tmp/cache/assets/sprockets/v3.0/C4/C4VsgK-RhAE1XVxk0QLfjhqU_LiJ-qgNPbt8O_x94fM.cache +1 -0
- data/sample-apps/trello-integration-app/tmp/cache/assets/sprockets/v3.0/Cl/ClI93B7UZ6jGQMdlSf-z2BZkPwo4ZAPc6NQYXF2aCW0.cache +0 -0
- data/sample-apps/trello-integration-app/tmp/cache/assets/sprockets/v3.0/Da/DaHmw8V0fiWvHA5af1ehm-ZYy1JjXu4PbJb3fAqHIdU.cache +1 -0
- data/sample-apps/trello-integration-app/tmp/cache/assets/sprockets/v3.0/EC/EC2j6BCJ8TnspQFZeViwqN9QJH0fdqH7HvaNE6RzBxc.cache +1 -0
- data/sample-apps/trello-integration-app/tmp/cache/assets/sprockets/v3.0/EM/EMt4g95xPhDuUZK0IoqMVCTpWNYG72BlusUhU3qWa6Q.cache +3 -0
- data/sample-apps/trello-integration-app/tmp/cache/assets/sprockets/v3.0/Er/ErIP6ktHQNoOJA-K1Km62d62DjG_GGiedMMJrpoBs98.cache +1 -0
- data/sample-apps/trello-integration-app/tmp/cache/assets/sprockets/v3.0/Ev/EvAj2kJ2dwux14VZrEABFg1ojO9rwRZ_7HQWXIQbGMk.cache +1 -0
- data/sample-apps/trello-integration-app/tmp/cache/assets/sprockets/v3.0/Ex/Ex1GOKR4HeeSso9ocHcgZEnrNvJqHIxizwMn8jXrZ2s.cache +3 -0
- data/sample-apps/trello-integration-app/tmp/cache/assets/sprockets/v3.0/Fo/FozpKz0BlJKhxk6Y5ZSFkC2weBkvW7fEfj_TJS2lbcU.cache +0 -0
- data/sample-apps/trello-integration-app/tmp/cache/assets/sprockets/v3.0/Fp/FprMIwFBZYrEWraVY7BWLI8zyHb9bwBIcAGNdpYm1Qo.cache +0 -0
- data/sample-apps/trello-integration-app/tmp/cache/assets/sprockets/v3.0/GK/GKxgqeOG0nQQcSU0Dp7Tky2B5pqg5Xz2Xv-RUIxCiQM.cache +0 -0
- data/sample-apps/trello-integration-app/tmp/cache/assets/sprockets/v3.0/HC/HCDOUd7-S45aJ_PjVAC_Vmjyud3i1aQv4cE3t9_Z3Dw.cache +2 -0
- data/sample-apps/trello-integration-app/tmp/cache/assets/sprockets/v3.0/IF/IFtTiYvPKpcddKBW6kSbbXSj2nHsT9-0e__M_Q3Ydwc.cache +0 -0
- data/sample-apps/trello-integration-app/tmp/cache/assets/sprockets/v3.0/II/IIPvGX0Vm8TVSGGurS7Spr3UKR6qu-5j1LmYNImm_JQ.cache +3 -0
- data/sample-apps/trello-integration-app/tmp/cache/assets/sprockets/v3.0/JO/JOFYZ78eHKCOJNksYpp-KNV0_WErea0ucgvqWvxoTWg.cache +2 -0
- data/sample-apps/trello-integration-app/tmp/cache/assets/sprockets/v3.0/Ja/Jawz4NLXjjzxtdy8wxOOx7QhbRhQumkQJmOKMmFZg5A.cache +0 -0
- data/sample-apps/trello-integration-app/tmp/cache/assets/sprockets/v3.0/KS/KSuG_K9XWDeRmkg1aki-m-v5NQz_jul3p5rEoxQzygk.cache +1 -0
- data/sample-apps/trello-integration-app/tmp/cache/assets/sprockets/v3.0/Mu/MuVSyemz8nKlOKCKaZUhD1J703apuKikoqlx0L8l2gw.cache +1 -0
- data/sample-apps/trello-integration-app/tmp/cache/assets/sprockets/v3.0/N5/N5zOlD0a_6dV7b8XNEnH_bhrdAz-PcVA2_FH-fesFAw.cache +1 -0
- data/sample-apps/trello-integration-app/tmp/cache/assets/sprockets/v3.0/NQ/NQXCo8VzytKS6zmbf2mHRuQ9p1dszxC0M_W5nBdxfnU.cache +2 -0
- data/sample-apps/trello-integration-app/tmp/cache/assets/sprockets/v3.0/QU/QUELNS-UKkXy-aHIYE_PavCQ9D7aaPr0zHiS4X-eLBY.cache +0 -0
- data/sample-apps/trello-integration-app/tmp/cache/assets/sprockets/v3.0/RB/RBXEUm7Ur58juoS_oHSncpm1FQ2_wk6Svtkpnx0UXPk.cache +0 -0
- data/sample-apps/trello-integration-app/tmp/cache/assets/sprockets/v3.0/S1/S1kQ3eQcvROz0Baua51wj2V769FaA_8OLk3M751zWW8.cache +0 -0
- data/sample-apps/trello-integration-app/tmp/cache/assets/sprockets/v3.0/S_/S_s8-kaJemyjvXLCG6ElV64FYdfUXVKshCNSzYwwg6k.cache +3 -0
- data/sample-apps/trello-integration-app/tmp/cache/assets/sprockets/v3.0/TD/TDBM4lXvTNWSR45QUXjQRRkCXOIAZ4C4GoEn1jpxPfM.cache +0 -0
- data/sample-apps/trello-integration-app/tmp/cache/assets/sprockets/v3.0/T_/T_RSgEXy7oMt3ndzJsOS-ebKMgiAe3u-2P8ICTtNzXs.cache +0 -0
- data/sample-apps/trello-integration-app/tmp/cache/assets/sprockets/v3.0/U4/U466McG48IRBn70OWh5BO3nYPsXgKrEXHkrftg0xCLQ.cache +3 -0
- data/sample-apps/trello-integration-app/tmp/cache/assets/sprockets/v3.0/Up/Upbt8ro5KXzYO6uyhFdI4KEXO-PUKaMitXFMEKCsfWA.cache +0 -0
- data/sample-apps/trello-integration-app/tmp/cache/assets/sprockets/v3.0/V4/V4Ep5i91uzhre0mC674b233pIerWSE9Z8I4ZXE2EUVY.cache +0 -0
- data/sample-apps/trello-integration-app/tmp/cache/assets/sprockets/v3.0/WM/WMV3aHZbU71jzKeF0Zbrh5HCFrPvL1ZVIp0GGYjySrY.cache +0 -0
- data/sample-apps/trello-integration-app/tmp/cache/assets/sprockets/v3.0/WS/WSjW9cPxxweuDoySziMbK44N4uj8GzWYwnjnm7i-LAE.cache +1 -0
- data/sample-apps/trello-integration-app/tmp/cache/assets/sprockets/v3.0/Wg/WgqE1e0njA-qgTJ4VnjoGrRm12ekCA88LG-GQTh7o3Y.cache +1 -0
- data/sample-apps/trello-integration-app/tmp/cache/assets/sprockets/v3.0/Wl/Wls93jnZw9MP1AaTqf_kj7QkI1YjaPge38JN2xc9K-M.cache +0 -0
- data/sample-apps/trello-integration-app/tmp/cache/assets/sprockets/v3.0/Wy/WyT0VOgrYLcjfclQ3qyXsv6X6nwLLBASTuWzf9XnmvI.cache +1 -0
- data/sample-apps/trello-integration-app/tmp/cache/assets/sprockets/v3.0/Xu/Xu0XM23ILAuTly3JScuaLm-H4iL4aEfZkrjkid6tKHE.cache +1 -0
- data/sample-apps/trello-integration-app/tmp/cache/assets/sprockets/v3.0/Yc/YcPGytUuXCB3Iy533hUM2bbaqujcuoGI8bdVbbscn4A.cache +1 -0
- data/sample-apps/trello-integration-app/tmp/cache/assets/sprockets/v3.0/_V/_VXOq8NOcWHt8J3hvaz4ZG8AF7u2sNfDdzL6o8vzEYA.cache +1 -0
- data/sample-apps/trello-integration-app/tmp/cache/assets/sprockets/v3.0/b8/b8dgpzld6JaG-3Pz0ODBXpeDvRo0hMBmDjEx19KJ9ck.cache +0 -0
- data/sample-apps/trello-integration-app/tmp/cache/assets/sprockets/v3.0/b_/b_MeFQEHG92wmeDGDWl4Mxcd0zcgj3KzgpD-m8-7F5o.cache +3 -0
- data/sample-apps/trello-integration-app/tmp/cache/assets/sprockets/v3.0/c4/c4JrhgYKhvoDqMoyvQwF0bvuMjaCmNQh488InFTjGfA.cache +1 -0
- data/sample-apps/trello-integration-app/tmp/cache/assets/sprockets/v3.0/cF/cFyy2Nd_8i8pDti5ajoouKVOFBUoGwpWyK41rd1aJtg.cache +1 -0
- data/sample-apps/trello-integration-app/tmp/cache/assets/sprockets/v3.0/ce/ceyLCDG3-DQdZt2OywV1eHFXkhOgUqaUzMQ8yxeHFyo.cache +0 -0
- data/sample-apps/trello-integration-app/tmp/cache/assets/sprockets/v3.0/cs/csVCFI5Dmlgj2qo-AvtiC2f9_2wBR0SZ8uJ90XWMe48.cache +0 -0
- data/sample-apps/trello-integration-app/tmp/cache/assets/sprockets/v3.0/dg/dg8xDUB026KlWVbRE1h_SZ6gEPR6g81HrTkUIimQzqc.cache +3 -0
- data/sample-apps/trello-integration-app/tmp/cache/assets/sprockets/v3.0/dj/djlvnYQpcj6N2uQvct8RK42TAuwW4hwZ-yQ8t8UuTf4.cache +2 -0
- data/sample-apps/trello-integration-app/tmp/cache/assets/sprockets/v3.0/ec/ec2nqBrb69Fz1aZTRv_WFr81zn-qw1sd5g67JyPmzU8.cache +1 -0
- data/sample-apps/trello-integration-app/tmp/cache/assets/sprockets/v3.0/fC/fCtxdjXxPx4x7QkxfqIqo-m6jJWx3KfVemtGYAa0bNs.cache +2 -0
- data/sample-apps/trello-integration-app/tmp/cache/assets/sprockets/v3.0/gI/gIsS03KKKoIhpo_gWbC5doCbOwIb_fxs1tX_D82AMVI.cache +3 -0
- data/sample-apps/trello-integration-app/tmp/cache/assets/sprockets/v3.0/gd/gdKJ69-j9AYGRIgSaZGzfSFOE3nSfCPI6CtfPHMG6wI.cache +0 -0
- data/sample-apps/trello-integration-app/tmp/cache/assets/sprockets/v3.0/hw/hw4QvE0qt0hV7bvN_FsEvv5XOtzCIm4xZi3IDjjdyeA.cache +0 -0
- data/sample-apps/trello-integration-app/tmp/cache/assets/sprockets/v3.0/iY/iYpAxlEH4DLiUQ6zfRen_n9yX4J1S2uFaJuX8sYrZ6c.cache +0 -0
- data/sample-apps/trello-integration-app/tmp/cache/assets/sprockets/v3.0/jV/jVux5l8pQoU-_Llv3BbOW5oabZGnw06SILnpq-46EAI.cache +0 -0
- data/sample-apps/trello-integration-app/tmp/cache/assets/sprockets/v3.0/jX/jXvGEwHuqSJvARGbVRsMQVI_7-Ij449UyBloEtxA1w8.cache +3 -0
- data/sample-apps/trello-integration-app/tmp/cache/assets/sprockets/v3.0/nQ/nQh_KENYOBEW4lwlJeBwuAB3Ze32jmh92VVdhAJrnfU.cache +1 -0
- data/sample-apps/trello-integration-app/tmp/cache/assets/sprockets/v3.0/oD/oDRVPFLUWIEOHvOyfFue-aNLuU71Vor8ClUEvS9raFE.cache +0 -0
- data/sample-apps/trello-integration-app/tmp/cache/assets/sprockets/v3.0/oO/oOy0NVcBBQIe557HWqmTdZ92wLicODWfCk_Ls0dBZqc.cache +1 -0
- data/sample-apps/trello-integration-app/tmp/cache/assets/sprockets/v3.0/pF/pFK-AXLRfIZQbNkoSeGwKVKqJtkz_-WxAlFUbspYW3o.cache +2 -0
- data/sample-apps/trello-integration-app/tmp/cache/assets/sprockets/v3.0/pt/ptR_wbPnsO710yGC5H6xeZJv12VSCcJ4PDzHGgat9Wc.cache +0 -0
- data/sample-apps/trello-integration-app/tmp/cache/assets/sprockets/v3.0/qk/qkmgOnsJcZuyHM4QuJL-TrqoNlfiyhep8KWUFopItLM.cache +1 -0
- data/sample-apps/trello-integration-app/tmp/cache/assets/sprockets/v3.0/rK/rKNLhg6Vz6-dTlBEKyNqYW_cTUQQMou2h79JNy8OQoE.cache +2 -0
- data/sample-apps/trello-integration-app/tmp/cache/assets/sprockets/v3.0/rj/rj6UFY6GPzEeHNj1Us4X9q2rLd-CqyXlvmCp4iD7BIg.cache +1 -0
- data/sample-apps/trello-integration-app/tmp/cache/assets/sprockets/v3.0/tL/tLfyRwlD0eZ8g6WBM1YaOKujrILNutlRUEoLox3kpuU.cache +1 -0
- data/sample-apps/trello-integration-app/tmp/cache/assets/sprockets/v3.0/ud/ud0EKIfekOhYeEq51HRWS0b6PbNaf1jw77HtqqbuFPM.cache +0 -0
- data/sample-apps/trello-integration-app/tmp/cache/assets/sprockets/v3.0/v5/v59xeeJBoNorMAJRYDIlA0dCKyFjm4xPCy0gT5ohJLw.cache +1 -0
- data/sample-apps/trello-integration-app/tmp/cache/assets/sprockets/v3.0/wL/wLW8hVhjt49mpyche47kjprMBpzCjUdN70PsDHESd4w.cache +0 -0
- data/sample-apps/trello-integration-app/tmp/cache/assets/sprockets/v3.0/wn/wnNHayXp8SlmDqVkYO6y-a2V6dqdf6tlklpuBGck0hA.cache +1 -0
- data/sample-apps/trello-integration-app/tmp/cache/assets/sprockets/v3.0/x-/x-xnlwr31pcSkiXjUzhgvqIViWBQe8vhSS2kBHEQoZ8.cache +1 -0
- data/sample-apps/trello-integration-app/tmp/cache/assets/sprockets/v3.0/xi/xiqX6T0sRUIY8wNtp4HQLTfbGBblT4-I-CFSAZFScAY.cache +0 -0
- data/sample-apps/trello-integration-app/tmp/cache/assets/sprockets/v3.0/y5/y5P7ijIrYw3KoJxyJKHXXiPlB6WePmNVwB_n2CKmB48.cache +0 -0
- data/sample-apps/trello-integration-app/tmp/cache/assets/sprockets/v3.0/yL/yLiDuY3PPQgAmxWaulR4bejdG-_VXuSIqbmkWlntOys.cache +3 -0
- data/sample-apps/trello-integration-app/tmp/cache/assets/sprockets/v3.0/yW/yWmahJm8XA0QAPcA5o1hJ3XPaG6IgMHmS3UF5oSnr9I.cache +0 -0
- data/sample-apps/trello-integration-app/tmp/cache/assets/sprockets/v3.0/yX/yX9b5ebHE375rOe7dXKt7ownzOgXaQTJS4mB-z80Ns8.cache +1 -0
- data/sample-apps/trello-integration-app/tmp/cache/assets/sprockets/v3.0/yo/yo-3ZSeBhkQ3CKCZfUr_KsQXXXfha4sukV1d7rYFdL8.cache +1 -0
- data/sample-apps/trello-integration-app/tmp/cache/assets/sprockets/v3.0/zC/zCXz6AtijAHttkBPC6wWo3jUWXncLWWWETF3XnceGDY.cache +0 -0
- data/sample-apps/trello-integration-app/tmp/cache/assets/sprockets/v3.0/zU/zU4lVt60UEWFJRhHYJ7o0E9ezVDrhPfb03Q-Ay6Q-jc.cache +1 -0
- data/sample-apps/trello-integration-app/tmp/cache/assets/sprockets/v3.0/zy/zycabP--QQi6NTlFOYosfiJ-qUlAgUBQSOYsjPyBAnY.cache +3 -0
- data/sample-apps/trello-integration-app/tmp/development_secret.txt +1 -0
- data/sample-apps/trello-integration-app/tmp/restart.txt +0 -0
- data/sample-apps/webhooks-contacts-app/app/lib/services/hubspot/contacts/get_batch.rb +1 -4
- metadata +512 -3
- data/lib/hubspot/codegen/crm/quotes/api/default_api.rb +0 -426
@@ -0,0 +1,78 @@
|
|
1
|
+
$(document).ready(function(){
|
2
|
+
$('select#boards, select#pipelines').on('change', fetchMappings);
|
3
|
+
$('form.mapping-select').on('ajax:success', createMapping);
|
4
|
+
|
5
|
+
});
|
6
|
+
|
7
|
+
function removeMapping(e) {
|
8
|
+
e.preventDefault();
|
9
|
+
$.ajax({
|
10
|
+
type: "DELETE",
|
11
|
+
url: `/mappings/${$(this).siblings('.mapping-id').data('id')}`,
|
12
|
+
dataType: 'json',
|
13
|
+
success: function(result) {
|
14
|
+
$(`.mapping-id[data-id="${result.data.id}"]`).parent().remove();
|
15
|
+
}
|
16
|
+
});
|
17
|
+
}
|
18
|
+
|
19
|
+
function createMapping(event) {
|
20
|
+
[response, _, _] = event.detail;
|
21
|
+
addMappingtoDOM(response.data.mapping);
|
22
|
+
|
23
|
+
}
|
24
|
+
|
25
|
+
function addMappingtoDOM(mappingData) {
|
26
|
+
var mappingRow = $('.mapping-row.template').clone().removeClass('template');
|
27
|
+
mappingRow.find('.board-list-id').text(mappingData.board_list_name);
|
28
|
+
mappingRow.find('.pipeline-stage-id').text(mappingData.pipeline_stage_label);
|
29
|
+
mappingRow.find('.mapping-id').attr('data-id', mappingData.id);
|
30
|
+
mappingRow.find('.remove-button').on('click', removeMapping);
|
31
|
+
$('.mapping-row.template').parent().append(mappingRow);
|
32
|
+
}
|
33
|
+
|
34
|
+
function fetchMappings() {
|
35
|
+
var spinner = new jQuerySpinner({
|
36
|
+
parentClass: 'wrapper'
|
37
|
+
});
|
38
|
+
|
39
|
+
spinner.show();
|
40
|
+
|
41
|
+
$.ajax({
|
42
|
+
url: "/mappings",
|
43
|
+
type: 'GET',
|
44
|
+
dataType: 'json',
|
45
|
+
data: {
|
46
|
+
board_id: $('#boards option:selected').val(),
|
47
|
+
pipeline_id: $('#pipelines option:selected').val(),
|
48
|
+
},
|
49
|
+
success: function(rsp){
|
50
|
+
if (rsp.status == 'ok'){
|
51
|
+
spinner.hide();
|
52
|
+
$('.mapping-row').not('.template').remove();
|
53
|
+
if (rsp.data.board_lists != null && rsp.data.pipeline_stages != null) {
|
54
|
+
if (rsp.data.mappings != null) {
|
55
|
+
$('.mapping-headers').css('display', 'flex');
|
56
|
+
|
57
|
+
_.each(rsp.data.mappings, function(mapping) { addMappingtoDOM(mapping) });
|
58
|
+
}
|
59
|
+
$('.mapping-select').css('display', 'flex');
|
60
|
+
|
61
|
+
_.each(rsp.data.board_lists, function(board_list){
|
62
|
+
$('#mapping_board_list_id').append(`<option value="${board_list.id}">${board_list.name}</option>`);
|
63
|
+
});
|
64
|
+
|
65
|
+
_.each(rsp.data.pipeline_stages, function(pipeline_stage){
|
66
|
+
$('#mapping_pipeline_stage_id').append(`<option value="${pipeline_stage.id}">${pipeline_stage.label}</option>`);
|
67
|
+
});
|
68
|
+
|
69
|
+
$('#mapping_board_id').val(rsp.data.board_id);
|
70
|
+
$('#mapping_pipeline_id').val(rsp.data.pipeline_id);
|
71
|
+
} else {
|
72
|
+
$('.mapping-select').hide();
|
73
|
+
$('.mapping-headers').hide();
|
74
|
+
}
|
75
|
+
}
|
76
|
+
}
|
77
|
+
});
|
78
|
+
}
|
@@ -0,0 +1,8 @@
|
|
1
|
+
/*!
|
2
|
+
* typeahead.js 0.11.1
|
3
|
+
* https://github.com/twitter/typeahead.js
|
4
|
+
* Copyright 2013-2015 Twitter, Inc. and other contributors; Licensed MIT
|
5
|
+
*/
|
6
|
+
|
7
|
+
!function(a,b){"function"==typeof define&&define.amd?define("bloodhound",["jquery"],function(c){return a.Bloodhound=b(c)}):"object"==typeof exports?module.exports=b(require("jquery")):a.Bloodhound=b(jQuery)}(this,function(a){var b=function(){"use strict";return{isMsie:function(){return/(msie|trident)/i.test(navigator.userAgent)?navigator.userAgent.match(/(msie |rv:)(\d+(.\d+)?)/i)[2]:!1},isBlankString:function(a){return!a||/^\s*$/.test(a)},escapeRegExChars:function(a){return a.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")},isString:function(a){return"string"==typeof a},isNumber:function(a){return"number"==typeof a},isArray:a.isArray,isFunction:a.isFunction,isObject:a.isPlainObject,isUndefined:function(a){return"undefined"==typeof a},isElement:function(a){return!(!a||1!==a.nodeType)},isJQuery:function(b){return b instanceof a},toStr:function(a){return b.isUndefined(a)||null===a?"":a+""},bind:a.proxy,each:function(b,c){function d(a,b){return c(b,a)}a.each(b,d)},map:a.map,filter:a.grep,every:function(b,c){var d=!0;return b?(a.each(b,function(a,e){return(d=c.call(null,e,a,b))?void 0:!1}),!!d):d},some:function(b,c){var d=!1;return b?(a.each(b,function(a,e){return(d=c.call(null,e,a,b))?!1:void 0}),!!d):d},mixin:a.extend,identity:function(a){return a},clone:function(b){return a.extend(!0,{},b)},getIdGenerator:function(){var a=0;return function(){return a++}},templatify:function(b){function c(){return String(b)}return a.isFunction(b)?b:c},defer:function(a){setTimeout(a,0)},debounce:function(a,b,c){var d,e;return function(){var f,g,h=this,i=arguments;return f=function(){d=null,c||(e=a.apply(h,i))},g=c&&!d,clearTimeout(d),d=setTimeout(f,b),g&&(e=a.apply(h,i)),e}},throttle:function(a,b){var c,d,e,f,g,h;return g=0,h=function(){g=new Date,e=null,f=a.apply(c,d)},function(){var i=new Date,j=b-(i-g);return c=this,d=arguments,0>=j?(clearTimeout(e),e=null,g=i,f=a.apply(c,d)):e||(e=setTimeout(h,j)),f}},stringify:function(a){return b.isString(a)?a:JSON.stringify(a)},noop:function(){}}}(),c="0.11.1",d=function(){"use strict";function a(a){return a=b.toStr(a),a?a.split(/\s+/):[]}function c(a){return a=b.toStr(a),a?a.split(/\W+/):[]}function d(a){return function(c){return c=b.isArray(c)?c:[].slice.call(arguments,0),function(d){var e=[];return b.each(c,function(c){e=e.concat(a(b.toStr(d[c])))}),e}}}return{nonword:c,whitespace:a,obj:{nonword:d(c),whitespace:d(a)}}}(),e=function(){"use strict";function c(c){this.maxSize=b.isNumber(c)?c:100,this.reset(),this.maxSize<=0&&(this.set=this.get=a.noop)}function d(){this.head=this.tail=null}function e(a,b){this.key=a,this.val=b,this.prev=this.next=null}return b.mixin(c.prototype,{set:function(a,b){var c,d=this.list.tail;this.size>=this.maxSize&&(this.list.remove(d),delete this.hash[d.key],this.size--),(c=this.hash[a])?(c.val=b,this.list.moveToFront(c)):(c=new e(a,b),this.list.add(c),this.hash[a]=c,this.size++)},get:function(a){var b=this.hash[a];return b?(this.list.moveToFront(b),b.val):void 0},reset:function(){this.size=0,this.hash={},this.list=new d}}),b.mixin(d.prototype,{add:function(a){this.head&&(a.next=this.head,this.head.prev=a),this.head=a,this.tail=this.tail||a},remove:function(a){a.prev?a.prev.next=a.next:this.head=a.next,a.next?a.next.prev=a.prev:this.tail=a.prev},moveToFront:function(a){this.remove(a),this.add(a)}}),c}(),f=function(){"use strict";function c(a,c){this.prefix=["__",a,"__"].join(""),this.ttlKey="__ttl__",this.keyMatcher=new RegExp("^"+b.escapeRegExChars(this.prefix)),this.ls=c||h,!this.ls&&this._noop()}function d(){return(new Date).getTime()}function e(a){return JSON.stringify(b.isUndefined(a)?null:a)}function f(b){return a.parseJSON(b)}function g(a){var b,c,d=[],e=h.length;for(b=0;e>b;b++)(c=h.key(b)).match(a)&&d.push(c.replace(a,""));return d}var h;try{h=window.localStorage,h.setItem("~~~","!"),h.removeItem("~~~")}catch(i){h=null}return b.mixin(c.prototype,{_prefix:function(a){return this.prefix+a},_ttlKey:function(a){return this._prefix(a)+this.ttlKey},_noop:function(){this.get=this.set=this.remove=this.clear=this.isExpired=b.noop},_safeSet:function(a,b){try{this.ls.setItem(a,b)}catch(c){"QuotaExceededError"===c.name&&(this.clear(),this._noop())}},get:function(a){return this.isExpired(a)&&this.remove(a),f(this.ls.getItem(this._prefix(a)))},set:function(a,c,f){return b.isNumber(f)?this._safeSet(this._ttlKey(a),e(d()+f)):this.ls.removeItem(this._ttlKey(a)),this._safeSet(this._prefix(a),e(c))},remove:function(a){return this.ls.removeItem(this._ttlKey(a)),this.ls.removeItem(this._prefix(a)),this},clear:function(){var a,b=g(this.keyMatcher);for(a=b.length;a--;)this.remove(b[a]);return this},isExpired:function(a){var c=f(this.ls.getItem(this._ttlKey(a)));return b.isNumber(c)&&d()>c?!0:!1}}),c}(),g=function(){"use strict";function c(a){a=a||{},this.cancelled=!1,this.lastReq=null,this._send=a.transport,this._get=a.limiter?a.limiter(this._get):this._get,this._cache=a.cache===!1?new e(0):h}var d=0,f={},g=6,h=new e(10);return c.setMaxPendingRequests=function(a){g=a},c.resetCache=function(){h.reset()},b.mixin(c.prototype,{_fingerprint:function(b){return b=b||{},b.url+b.type+a.param(b.data||{})},_get:function(a,b){function c(a){b(null,a),k._cache.set(i,a)}function e(){b(!0)}function h(){d--,delete f[i],k.onDeckRequestArgs&&(k._get.apply(k,k.onDeckRequestArgs),k.onDeckRequestArgs=null)}var i,j,k=this;i=this._fingerprint(a),this.cancelled||i!==this.lastReq||((j=f[i])?j.done(c).fail(e):g>d?(d++,f[i]=this._send(a).done(c).fail(e).always(h)):this.onDeckRequestArgs=[].slice.call(arguments,0))},get:function(c,d){var e,f;d=d||a.noop,c=b.isString(c)?{url:c}:c||{},f=this._fingerprint(c),this.cancelled=!1,this.lastReq=f,(e=this._cache.get(f))?d(null,e):this._get(c,d)},cancel:function(){this.cancelled=!0}}),c}(),h=window.SearchIndex=function(){"use strict";function c(c){c=c||{},c.datumTokenizer&&c.queryTokenizer||a.error("datumTokenizer and queryTokenizer are both required"),this.identify=c.identify||b.stringify,this.datumTokenizer=c.datumTokenizer,this.queryTokenizer=c.queryTokenizer,this.reset()}function d(a){return a=b.filter(a,function(a){return!!a}),a=b.map(a,function(a){return a.toLowerCase()})}function e(){var a={};return a[i]=[],a[h]={},a}function f(a){for(var b={},c=[],d=0,e=a.length;e>d;d++)b[a[d]]||(b[a[d]]=!0,c.push(a[d]));return c}function g(a,b){var c=0,d=0,e=[];a=a.sort(),b=b.sort();for(var f=a.length,g=b.length;f>c&&g>d;)a[c]<b[d]?c++:a[c]>b[d]?d++:(e.push(a[c]),c++,d++);return e}var h="c",i="i";return b.mixin(c.prototype,{bootstrap:function(a){this.datums=a.datums,this.trie=a.trie},add:function(a){var c=this;a=b.isArray(a)?a:[a],b.each(a,function(a){var f,g;c.datums[f=c.identify(a)]=a,g=d(c.datumTokenizer(a)),b.each(g,function(a){var b,d,g;for(b=c.trie,d=a.split("");g=d.shift();)b=b[h][g]||(b[h][g]=e()),b[i].push(f)})})},get:function(a){var c=this;return b.map(a,function(a){return c.datums[a]})},search:function(a){var c,e,j=this;return c=d(this.queryTokenizer(a)),b.each(c,function(a){var b,c,d,f;if(e&&0===e.length)return!1;for(b=j.trie,c=a.split("");b&&(d=c.shift());)b=b[h][d];return b&&0===c.length?(f=b[i].slice(0),void(e=e?g(e,f):f)):(e=[],!1)}),e?b.map(f(e),function(a){return j.datums[a]}):[]},all:function(){var a=[];for(var b in this.datums)a.push(this.datums[b]);return a},reset:function(){this.datums={},this.trie=e()},serialize:function(){return{datums:this.datums,trie:this.trie}}}),c}(),i=function(){"use strict";function a(a){this.url=a.url,this.ttl=a.ttl,this.cache=a.cache,this.prepare=a.prepare,this.transform=a.transform,this.transport=a.transport,this.thumbprint=a.thumbprint,this.storage=new f(a.cacheKey)}var c;return c={data:"data",protocol:"protocol",thumbprint:"thumbprint"},b.mixin(a.prototype,{_settings:function(){return{url:this.url,type:"GET",dataType:"json"}},store:function(a){this.cache&&(this.storage.set(c.data,a,this.ttl),this.storage.set(c.protocol,location.protocol,this.ttl),this.storage.set(c.thumbprint,this.thumbprint,this.ttl))},fromCache:function(){var a,b={};return this.cache?(b.data=this.storage.get(c.data),b.protocol=this.storage.get(c.protocol),b.thumbprint=this.storage.get(c.thumbprint),a=b.thumbprint!==this.thumbprint||b.protocol!==location.protocol,b.data&&!a?b.data:null):null},fromNetwork:function(a){function b(){a(!0)}function c(b){a(null,e.transform(b))}var d,e=this;a&&(d=this.prepare(this._settings()),this.transport(d).fail(b).done(c))},clear:function(){return this.storage.clear(),this}}),a}(),j=function(){"use strict";function a(a){this.url=a.url,this.prepare=a.prepare,this.transform=a.transform,this.transport=new g({cache:a.cache,limiter:a.limiter,transport:a.transport})}return b.mixin(a.prototype,{_settings:function(){return{url:this.url,type:"GET",dataType:"json"}},get:function(a,b){function c(a,c){b(a?[]:e.transform(c))}var d,e=this;if(b)return a=a||"",d=this.prepare(a,this._settings()),this.transport.get(d,c)},cancelLastRequest:function(){this.transport.cancel()}}),a}(),k=function(){"use strict";function d(d){var e;return d?(e={url:null,ttl:864e5,cache:!0,cacheKey:null,thumbprint:"",prepare:b.identity,transform:b.identity,transport:null},d=b.isString(d)?{url:d}:d,d=b.mixin(e,d),!d.url&&a.error("prefetch requires url to be set"),d.transform=d.filter||d.transform,d.cacheKey=d.cacheKey||d.url,d.thumbprint=c+d.thumbprint,d.transport=d.transport?h(d.transport):a.ajax,d):null}function e(c){var d;if(c)return d={url:null,cache:!0,prepare:null,replace:null,wildcard:null,limiter:null,rateLimitBy:"debounce",rateLimitWait:300,transform:b.identity,transport:null},c=b.isString(c)?{url:c}:c,c=b.mixin(d,c),!c.url&&a.error("remote requires url to be set"),c.transform=c.filter||c.transform,c.prepare=f(c),c.limiter=g(c),c.transport=c.transport?h(c.transport):a.ajax,delete c.replace,delete c.wildcard,delete c.rateLimitBy,delete c.rateLimitWait,c}function f(a){function b(a,b){return b.url=f(b.url,a),b}function c(a,b){return b.url=b.url.replace(g,encodeURIComponent(a)),b}function d(a,b){return b}var e,f,g;return e=a.prepare,f=a.replace,g=a.wildcard,e?e:e=f?b:a.wildcard?c:d}function g(a){function c(a){return function(c){return b.debounce(c,a)}}function d(a){return function(c){return b.throttle(c,a)}}var e,f,g;return e=a.limiter,f=a.rateLimitBy,g=a.rateLimitWait,e||(e=/^throttle$/i.test(f)?d(g):c(g)),e}function h(c){return function(d){function e(a){b.defer(function(){g.resolve(a)})}function f(a){b.defer(function(){g.reject(a)})}var g=a.Deferred();return c(d,e,f),g}}return function(c){var f,g;return f={initialize:!0,identify:b.stringify,datumTokenizer:null,queryTokenizer:null,sufficient:5,sorter:null,local:[],prefetch:null,remote:null},c=b.mixin(f,c||{}),!c.datumTokenizer&&a.error("datumTokenizer is required"),!c.queryTokenizer&&a.error("queryTokenizer is required"),g=c.sorter,c.sorter=g?function(a){return a.sort(g)}:b.identity,c.local=b.isFunction(c.local)?c.local():c.local,c.prefetch=d(c.prefetch),c.remote=e(c.remote),c}}(),l=function(){"use strict";function c(a){a=k(a),this.sorter=a.sorter,this.identify=a.identify,this.sufficient=a.sufficient,this.local=a.local,this.remote=a.remote?new j(a.remote):null,this.prefetch=a.prefetch?new i(a.prefetch):null,this.index=new h({identify:this.identify,datumTokenizer:a.datumTokenizer,queryTokenizer:a.queryTokenizer}),a.initialize!==!1&&this.initialize()}var e;return e=window&&window.Bloodhound,c.noConflict=function(){return window&&(window.Bloodhound=e),c},c.tokenizers=d,b.mixin(c.prototype,{__ttAdapter:function(){function a(a,b,d){return c.search(a,b,d)}function b(a,b){return c.search(a,b)}var c=this;return this.remote?a:b},_loadPrefetch:function(){function b(a,b){return a?c.reject():(e.add(b),e.prefetch.store(e.index.serialize()),void c.resolve())}var c,d,e=this;return c=a.Deferred(),this.prefetch?(d=this.prefetch.fromCache())?(this.index.bootstrap(d),c.resolve()):this.prefetch.fromNetwork(b):c.resolve(),c.promise()},_initialize:function(){function a(){b.add(b.local)}var b=this;return this.clear(),(this.initPromise=this._loadPrefetch()).done(a),this.initPromise},initialize:function(a){return!this.initPromise||a?this._initialize():this.initPromise},add:function(a){return this.index.add(a),this},get:function(a){return a=b.isArray(a)?a:[].slice.call(arguments),this.index.get(a)},search:function(a,c,d){function e(a){var c=[];b.each(a,function(a){!b.some(f,function(b){return g.identify(a)===g.identify(b)})&&c.push(a)}),d&&d(c)}var f,g=this;return f=this.sorter(this.index.search(a)),c(this.remote?f.slice():f),this.remote&&f.length<this.sufficient?this.remote.get(a,e):this.remote&&this.remote.cancelLastRequest(),this},all:function(){return this.index.all()},clear:function(){return this.index.reset(),this},clearPrefetchCache:function(){return this.prefetch&&this.prefetch.clear(),this},clearRemoteCache:function(){return g.resetCache(),this},ttAdapter:function(){return this.__ttAdapter()}}),c}();return l}),function(a,b){"function"==typeof define&&define.amd?define("typeahead.js",["jquery"],function(a){return b(a)}):"object"==typeof exports?module.exports=b(require("jquery")):b(jQuery)}(this,function(a){var b=function(){"use strict";return{isMsie:function(){return/(msie|trident)/i.test(navigator.userAgent)?navigator.userAgent.match(/(msie |rv:)(\d+(.\d+)?)/i)[2]:!1},isBlankString:function(a){return!a||/^\s*$/.test(a)},escapeRegExChars:function(a){return a.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")},isString:function(a){return"string"==typeof a},isNumber:function(a){return"number"==typeof a},isArray:a.isArray,isFunction:a.isFunction,isObject:a.isPlainObject,isUndefined:function(a){return"undefined"==typeof a},isElement:function(a){return!(!a||1!==a.nodeType)},isJQuery:function(b){return b instanceof a},toStr:function(a){return b.isUndefined(a)||null===a?"":a+""},bind:a.proxy,each:function(b,c){function d(a,b){return c(b,a)}a.each(b,d)},map:a.map,filter:a.grep,every:function(b,c){var d=!0;return b?(a.each(b,function(a,e){return(d=c.call(null,e,a,b))?void 0:!1}),!!d):d},some:function(b,c){var d=!1;return b?(a.each(b,function(a,e){return(d=c.call(null,e,a,b))?!1:void 0}),!!d):d},mixin:a.extend,identity:function(a){return a},clone:function(b){return a.extend(!0,{},b)},getIdGenerator:function(){var a=0;return function(){return a++}},templatify:function(b){function c(){return String(b)}return a.isFunction(b)?b:c},defer:function(a){setTimeout(a,0)},debounce:function(a,b,c){var d,e;return function(){var f,g,h=this,i=arguments;return f=function(){d=null,c||(e=a.apply(h,i))},g=c&&!d,clearTimeout(d),d=setTimeout(f,b),g&&(e=a.apply(h,i)),e}},throttle:function(a,b){var c,d,e,f,g,h;return g=0,h=function(){g=new Date,e=null,f=a.apply(c,d)},function(){var i=new Date,j=b-(i-g);return c=this,d=arguments,0>=j?(clearTimeout(e),e=null,g=i,f=a.apply(c,d)):e||(e=setTimeout(h,j)),f}},stringify:function(a){return b.isString(a)?a:JSON.stringify(a)},noop:function(){}}}(),c=function(){"use strict";function a(a){var g,h;return h=b.mixin({},f,a),g={css:e(),classes:h,html:c(h),selectors:d(h)},{css:g.css,html:g.html,classes:g.classes,selectors:g.selectors,mixin:function(a){b.mixin(a,g)}}}function c(a){return{wrapper:'<span class="'+a.wrapper+'"></span>',menu:'<div class="'+a.menu+'"></div>'}}function d(a){var c={};return b.each(a,function(a,b){c[b]="."+a}),c}function e(){var a={wrapper:{position:"relative",display:"inline-block"},hint:{position:"absolute",top:"0",left:"0",borderColor:"transparent",boxShadow:"none",opacity:"1"},input:{position:"relative",verticalAlign:"top",backgroundColor:"transparent"},inputWithNoHint:{position:"relative",verticalAlign:"top"},menu:{position:"absolute",top:"100%",left:"0",zIndex:"100",display:"none"},ltr:{left:"0",right:"auto"},rtl:{left:"auto",right:" 0"}};return b.isMsie()&&b.mixin(a.input,{backgroundImage:"url(data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7)"}),a}var f={wrapper:"twitter-typeahead",input:"tt-input",hint:"tt-hint",menu:"tt-menu",dataset:"tt-dataset",suggestion:"tt-suggestion",selectable:"tt-selectable",empty:"tt-empty",open:"tt-open",cursor:"tt-cursor",highlight:"tt-highlight"};return a}(),d=function(){"use strict";function c(b){b&&b.el||a.error("EventBus initialized without el"),this.$el=a(b.el)}var d,e;return d="typeahead:",e={render:"rendered",cursorchange:"cursorchanged",select:"selected",autocomplete:"autocompleted"},b.mixin(c.prototype,{_trigger:function(b,c){var e;return e=a.Event(d+b),(c=c||[]).unshift(e),this.$el.trigger.apply(this.$el,c),e},before:function(a){var b,c;return b=[].slice.call(arguments,1),c=this._trigger("before"+a,b),c.isDefaultPrevented()},trigger:function(a){var b;this._trigger(a,[].slice.call(arguments,1)),(b=e[a])&&this._trigger(b,[].slice.call(arguments,1))}}),c}(),e=function(){"use strict";function a(a,b,c,d){var e;if(!c)return this;for(b=b.split(i),c=d?h(c,d):c,this._callbacks=this._callbacks||{};e=b.shift();)this._callbacks[e]=this._callbacks[e]||{sync:[],async:[]},this._callbacks[e][a].push(c);return this}function b(b,c,d){return a.call(this,"async",b,c,d)}function c(b,c,d){return a.call(this,"sync",b,c,d)}function d(a){var b;if(!this._callbacks)return this;for(a=a.split(i);b=a.shift();)delete this._callbacks[b];return this}function e(a){var b,c,d,e,g;if(!this._callbacks)return this;for(a=a.split(i),d=[].slice.call(arguments,1);(b=a.shift())&&(c=this._callbacks[b]);)e=f(c.sync,this,[b].concat(d)),g=f(c.async,this,[b].concat(d)),e()&&j(g);return this}function f(a,b,c){function d(){for(var d,e=0,f=a.length;!d&&f>e;e+=1)d=a[e].apply(b,c)===!1;return!d}return d}function g(){var a;return a=window.setImmediate?function(a){setImmediate(function(){a()})}:function(a){setTimeout(function(){a()},0)}}function h(a,b){return a.bind?a.bind(b):function(){a.apply(b,[].slice.call(arguments,0))}}var i=/\s+/,j=g();return{onSync:c,onAsync:b,off:d,trigger:e}}(),f=function(a){"use strict";function c(a,c,d){for(var e,f=[],g=0,h=a.length;h>g;g++)f.push(b.escapeRegExChars(a[g]));return e=d?"\\b("+f.join("|")+")\\b":"("+f.join("|")+")",c?new RegExp(e):new RegExp(e,"i")}var d={node:null,pattern:null,tagName:"strong",className:null,wordsOnly:!1,caseSensitive:!1};return function(e){function f(b){var c,d,f;return(c=h.exec(b.data))&&(f=a.createElement(e.tagName),e.className&&(f.className=e.className),d=b.splitText(c.index),d.splitText(c[0].length),f.appendChild(d.cloneNode(!0)),b.parentNode.replaceChild(f,d)),!!c}function g(a,b){for(var c,d=3,e=0;e<a.childNodes.length;e++)c=a.childNodes[e],c.nodeType===d?e+=b(c)?1:0:g(c,b)}var h;e=b.mixin({},d,e),e.node&&e.pattern&&(e.pattern=b.isArray(e.pattern)?e.pattern:[e.pattern],h=c(e.pattern,e.caseSensitive,e.wordsOnly),g(e.node,f))}}(window.document),g=function(){"use strict";function c(c,e){c=c||{},c.input||a.error("input is missing"),e.mixin(this),this.$hint=a(c.hint),this.$input=a(c.input),this.query=this.$input.val(),this.queryWhenFocused=this.hasFocus()?this.query:null,this.$overflowHelper=d(this.$input),this._checkLanguageDirection(),0===this.$hint.length&&(this.setHint=this.getHint=this.clearHint=this.clearHintIfInvalid=b.noop)}function d(b){return a('<pre aria-hidden="true"></pre>').css({position:"absolute",visibility:"hidden",whiteSpace:"pre",fontFamily:b.css("font-family"),fontSize:b.css("font-size"),fontStyle:b.css("font-style"),fontVariant:b.css("font-variant"),fontWeight:b.css("font-weight"),wordSpacing:b.css("word-spacing"),letterSpacing:b.css("letter-spacing"),textIndent:b.css("text-indent"),textRendering:b.css("text-rendering"),textTransform:b.css("text-transform")}).insertAfter(b)}function f(a,b){return c.normalizeQuery(a)===c.normalizeQuery(b)}function g(a){return a.altKey||a.ctrlKey||a.metaKey||a.shiftKey}var h;return h={9:"tab",27:"esc",37:"left",39:"right",13:"enter",38:"up",40:"down"},c.normalizeQuery=function(a){return b.toStr(a).replace(/^\s*/g,"").replace(/\s{2,}/g," ")},b.mixin(c.prototype,e,{_onBlur:function(){this.resetInputValue(),this.trigger("blurred")},_onFocus:function(){this.queryWhenFocused=this.query,this.trigger("focused")},_onKeydown:function(a){var b=h[a.which||a.keyCode];this._managePreventDefault(b,a),b&&this._shouldTrigger(b,a)&&this.trigger(b+"Keyed",a)},_onInput:function(){this._setQuery(this.getInputValue()),this.clearHintIfInvalid(),this._checkLanguageDirection()},_managePreventDefault:function(a,b){var c;switch(a){case"up":case"down":c=!g(b);break;default:c=!1}c&&b.preventDefault()},_shouldTrigger:function(a,b){var c;switch(a){case"tab":c=!g(b);break;default:c=!0}return c},_checkLanguageDirection:function(){var a=(this.$input.css("direction")||"ltr").toLowerCase();this.dir!==a&&(this.dir=a,this.$hint.attr("dir",a),this.trigger("langDirChanged",a))},_setQuery:function(a,b){var c,d;c=f(a,this.query),d=c?this.query.length!==a.length:!1,this.query=a,b||c?!b&&d&&this.trigger("whitespaceChanged",this.query):this.trigger("queryChanged",this.query)},bind:function(){var a,c,d,e,f=this;return a=b.bind(this._onBlur,this),c=b.bind(this._onFocus,this),d=b.bind(this._onKeydown,this),e=b.bind(this._onInput,this),this.$input.on("blur.tt",a).on("focus.tt",c).on("keydown.tt",d),!b.isMsie()||b.isMsie()>9?this.$input.on("input.tt",e):this.$input.on("keydown.tt keypress.tt cut.tt paste.tt",function(a){h[a.which||a.keyCode]||b.defer(b.bind(f._onInput,f,a))}),this},focus:function(){this.$input.focus()},blur:function(){this.$input.blur()},getLangDir:function(){return this.dir},getQuery:function(){return this.query||""},setQuery:function(a,b){this.setInputValue(a),this._setQuery(a,b)},hasQueryChangedSinceLastFocus:function(){return this.query!==this.queryWhenFocused},getInputValue:function(){return this.$input.val()},setInputValue:function(a){this.$input.val(a),this.clearHintIfInvalid(),this._checkLanguageDirection()},resetInputValue:function(){this.setInputValue(this.query)},getHint:function(){return this.$hint.val()},setHint:function(a){this.$hint.val(a)},clearHint:function(){this.setHint("")},clearHintIfInvalid:function(){var a,b,c,d;a=this.getInputValue(),b=this.getHint(),c=a!==b&&0===b.indexOf(a),d=""!==a&&c&&!this.hasOverflow(),!d&&this.clearHint()},hasFocus:function(){return this.$input.is(":focus")},hasOverflow:function(){var a=this.$input.width()-2;return this.$overflowHelper.text(this.getInputValue()),this.$overflowHelper.width()>=a},isCursorAtEnd:function(){var a,c,d;return a=this.$input.val().length,c=this.$input[0].selectionStart,b.isNumber(c)?c===a:document.selection?(d=document.selection.createRange(),d.moveStart("character",-a),a===d.text.length):!0},destroy:function(){this.$hint.off(".tt"),this.$input.off(".tt"),this.$overflowHelper.remove(),this.$hint=this.$input=this.$overflowHelper=a("<div>")}}),c}(),h=function(){"use strict";function c(c,e){c=c||{},c.templates=c.templates||{},c.templates.notFound=c.templates.notFound||c.templates.empty,c.source||a.error("missing source"),c.node||a.error("missing node"),c.name&&!h(c.name)&&a.error("invalid dataset name: "+c.name),e.mixin(this),this.highlight=!!c.highlight,this.name=c.name||j(),this.limit=c.limit||5,this.displayFn=d(c.display||c.displayKey),this.templates=g(c.templates,this.displayFn),this.source=c.source.__ttAdapter?c.source.__ttAdapter():c.source,this.async=b.isUndefined(c.async)?this.source.length>2:!!c.async,this._resetLastSuggestion(),this.$el=a(c.node).addClass(this.classes.dataset).addClass(this.classes.dataset+"-"+this.name)}function d(a){function c(b){return b[a]}return a=a||b.stringify,b.isFunction(a)?a:c}function g(c,d){function e(b){return a("<div>").text(d(b))}return{notFound:c.notFound&&b.templatify(c.notFound),pending:c.pending&&b.templatify(c.pending),header:c.header&&b.templatify(c.header),footer:c.footer&&b.templatify(c.footer),suggestion:c.suggestion||e}}function h(a){return/^[_a-zA-Z0-9-]+$/.test(a)}var i,j;return i={val:"tt-selectable-display",obj:"tt-selectable-object"},j=b.getIdGenerator(),c.extractData=function(b){var c=a(b);return c.data(i.obj)?{val:c.data(i.val)||"",obj:c.data(i.obj)||null}:null},b.mixin(c.prototype,e,{_overwrite:function(a,b){b=b||[],b.length?this._renderSuggestions(a,b):this.async&&this.templates.pending?this._renderPending(a):!this.async&&this.templates.notFound?this._renderNotFound(a):this._empty(),this.trigger("rendered",this.name,b,!1)},_append:function(a,b){b=b||[],b.length&&this.$lastSuggestion.length?this._appendSuggestions(a,b):b.length?this._renderSuggestions(a,b):!this.$lastSuggestion.length&&this.templates.notFound&&this._renderNotFound(a),this.trigger("rendered",this.name,b,!0)},_renderSuggestions:function(a,b){var c;c=this._getSuggestionsFragment(a,b),this.$lastSuggestion=c.children().last(),this.$el.html(c).prepend(this._getHeader(a,b)).append(this._getFooter(a,b))},_appendSuggestions:function(a,b){var c,d;c=this._getSuggestionsFragment(a,b),d=c.children().last(),this.$lastSuggestion.after(c),this.$lastSuggestion=d},_renderPending:function(a){var b=this.templates.pending;this._resetLastSuggestion(),b&&this.$el.html(b({query:a,dataset:this.name}))},_renderNotFound:function(a){var b=this.templates.notFound;this._resetLastSuggestion(),b&&this.$el.html(b({query:a,dataset:this.name}))},_empty:function(){this.$el.empty(),this._resetLastSuggestion()},_getSuggestionsFragment:function(c,d){var e,g=this;return e=document.createDocumentFragment(),b.each(d,function(b){var d,f;f=g._injectQuery(c,b),d=a(g.templates.suggestion(f)).data(i.obj,b).data(i.val,g.displayFn(b)).addClass(g.classes.suggestion+" "+g.classes.selectable),e.appendChild(d[0])}),this.highlight&&f({className:this.classes.highlight,node:e,pattern:c}),a(e)},_getFooter:function(a,b){return this.templates.footer?this.templates.footer({query:a,suggestions:b,dataset:this.name}):null},_getHeader:function(a,b){return this.templates.header?this.templates.header({query:a,suggestions:b,dataset:this.name}):null},_resetLastSuggestion:function(){this.$lastSuggestion=a()},_injectQuery:function(a,c){return b.isObject(c)?b.mixin({_query:a},c):c},update:function(b){function c(a){g||(g=!0,a=(a||[]).slice(0,e.limit),h=a.length,e._overwrite(b,a),h<e.limit&&e.async&&e.trigger("asyncRequested",b))}function d(c){c=c||[],!f&&h<e.limit&&(e.cancel=a.noop,h+=c.length,e._append(b,c.slice(0,e.limit-h)),e.async&&e.trigger("asyncReceived",b))}var e=this,f=!1,g=!1,h=0;this.cancel(),this.cancel=function(){f=!0,e.cancel=a.noop,e.async&&e.trigger("asyncCanceled",b)},this.source(b,c,d),!g&&c([])},cancel:a.noop,clear:function(){this._empty(),this.cancel(),this.trigger("cleared")},isEmpty:function(){return this.$el.is(":empty")},destroy:function(){this.$el=a("<div>")}}),c}(),i=function(){"use strict";function c(c,d){function e(b){var c=f.$node.find(b.node).first();return b.node=c.length?c:a("<div>").appendTo(f.$node),new h(b,d)}var f=this;c=c||{},c.node||a.error("node is required"),d.mixin(this),this.$node=a(c.node),this.query=null,this.datasets=b.map(c.datasets,e)}return b.mixin(c.prototype,e,{_onSelectableClick:function(b){this.trigger("selectableClicked",a(b.currentTarget))},_onRendered:function(a,b,c,d){this.$node.toggleClass(this.classes.empty,this._allDatasetsEmpty()),this.trigger("datasetRendered",b,c,d)},_onCleared:function(){this.$node.toggleClass(this.classes.empty,this._allDatasetsEmpty()),this.trigger("datasetCleared")},_propagate:function(){this.trigger.apply(this,arguments)},_allDatasetsEmpty:function(){function a(a){return a.isEmpty()}return b.every(this.datasets,a)},_getSelectables:function(){return this.$node.find(this.selectors.selectable)},_removeCursor:function(){var a=this.getActiveSelectable();a&&a.removeClass(this.classes.cursor)},_ensureVisible:function(a){var b,c,d,e;b=a.position().top,c=b+a.outerHeight(!0),d=this.$node.scrollTop(),e=this.$node.height()+parseInt(this.$node.css("paddingTop"),10)+parseInt(this.$node.css("paddingBottom"),10),0>b?this.$node.scrollTop(d+b):c>e&&this.$node.scrollTop(d+(c-e))},bind:function(){var a,c=this;return a=b.bind(this._onSelectableClick,this),this.$node.on("click.tt",this.selectors.selectable,a),b.each(this.datasets,function(a){a.onSync("asyncRequested",c._propagate,c).onSync("asyncCanceled",c._propagate,c).onSync("asyncReceived",c._propagate,c).onSync("rendered",c._onRendered,c).onSync("cleared",c._onCleared,c)}),this},isOpen:function(){return this.$node.hasClass(this.classes.open)},open:function(){this.$node.addClass(this.classes.open)},close:function(){this.$node.removeClass(this.classes.open),this._removeCursor()},setLanguageDirection:function(a){this.$node.attr("dir",a)},selectableRelativeToCursor:function(a){var b,c,d,e;return c=this.getActiveSelectable(),b=this._getSelectables(),d=c?b.index(c):-1,e=d+a,e=(e+1)%(b.length+1)-1,e=-1>e?b.length-1:e,-1===e?null:b.eq(e)},setCursor:function(a){this._removeCursor(),(a=a&&a.first())&&(a.addClass(this.classes.cursor),this._ensureVisible(a))},getSelectableData:function(a){return a&&a.length?h.extractData(a):null},getActiveSelectable:function(){var a=this._getSelectables().filter(this.selectors.cursor).first();return a.length?a:null},getTopSelectable:function(){var a=this._getSelectables().first();return a.length?a:null},update:function(a){function c(b){b.update(a)}var d=a!==this.query;return d&&(this.query=a,b.each(this.datasets,c)),d},empty:function(){function a(a){a.clear()}b.each(this.datasets,a),this.query=null,this.$node.addClass(this.classes.empty)},destroy:function(){function c(a){a.destroy()}this.$node.off(".tt"),this.$node=a("<div>"),b.each(this.datasets,c)}}),c}(),j=function(){"use strict";function a(){i.apply(this,[].slice.call(arguments,0))}var c=i.prototype;return b.mixin(a.prototype,i.prototype,{open:function(){return!this._allDatasetsEmpty()&&this._show(),c.open.apply(this,[].slice.call(arguments,0))},close:function(){return this._hide(),c.close.apply(this,[].slice.call(arguments,0))},_onRendered:function(){return this._allDatasetsEmpty()?this._hide():this.isOpen()&&this._show(),c._onRendered.apply(this,[].slice.call(arguments,0))},_onCleared:function(){return this._allDatasetsEmpty()?this._hide():this.isOpen()&&this._show(),c._onCleared.apply(this,[].slice.call(arguments,0))},setLanguageDirection:function(a){return this.$node.css("ltr"===a?this.css.ltr:this.css.rtl),c.setLanguageDirection.apply(this,[].slice.call(arguments,0))},_hide:function(){this.$node.hide()},_show:function(){this.$node.css("display","block")}}),a}(),k=function(){"use strict";function c(c,e){var f,g,h,i,j,k,l,m,n,o,p;c=c||{},c.input||a.error("missing input"),c.menu||a.error("missing menu"),c.eventBus||a.error("missing event bus"),e.mixin(this),this.eventBus=c.eventBus,this.minLength=b.isNumber(c.minLength)?c.minLength:1,this.input=c.input,this.menu=c.menu,this.enabled=!0,this.active=!1,this.input.hasFocus()&&this.activate(),this.dir=this.input.getLangDir(),this._hacks(),this.menu.bind().onSync("selectableClicked",this._onSelectableClicked,this).onSync("asyncRequested",this._onAsyncRequested,this).onSync("asyncCanceled",this._onAsyncCanceled,this).onSync("asyncReceived",this._onAsyncReceived,this).onSync("datasetRendered",this._onDatasetRendered,this).onSync("datasetCleared",this._onDatasetCleared,this),f=d(this,"activate","open","_onFocused"),g=d(this,"deactivate","_onBlurred"),h=d(this,"isActive","isOpen","_onEnterKeyed"),i=d(this,"isActive","isOpen","_onTabKeyed"),j=d(this,"isActive","_onEscKeyed"),k=d(this,"isActive","open","_onUpKeyed"),l=d(this,"isActive","open","_onDownKeyed"),m=d(this,"isActive","isOpen","_onLeftKeyed"),n=d(this,"isActive","isOpen","_onRightKeyed"),o=d(this,"_openIfActive","_onQueryChanged"),p=d(this,"_openIfActive","_onWhitespaceChanged"),this.input.bind().onSync("focused",f,this).onSync("blurred",g,this).onSync("enterKeyed",h,this).onSync("tabKeyed",i,this).onSync("escKeyed",j,this).onSync("upKeyed",k,this).onSync("downKeyed",l,this).onSync("leftKeyed",m,this).onSync("rightKeyed",n,this).onSync("queryChanged",o,this).onSync("whitespaceChanged",p,this).onSync("langDirChanged",this._onLangDirChanged,this)}function d(a){var c=[].slice.call(arguments,1);return function(){var d=[].slice.call(arguments);b.each(c,function(b){return a[b].apply(a,d)})}}return b.mixin(c.prototype,{_hacks:function(){var c,d;c=this.input.$input||a("<div>"),d=this.menu.$node||a("<div>"),c.on("blur.tt",function(a){var e,f,g;
|
8
|
+
e=document.activeElement,f=d.is(e),g=d.has(e).length>0,b.isMsie()&&(f||g)&&(a.preventDefault(),a.stopImmediatePropagation(),b.defer(function(){c.focus()}))}),d.on("mousedown.tt",function(a){a.preventDefault()})},_onSelectableClicked:function(a,b){this.select(b)},_onDatasetCleared:function(){this._updateHint()},_onDatasetRendered:function(a,b,c,d){this._updateHint(),this.eventBus.trigger("render",c,d,b)},_onAsyncRequested:function(a,b,c){this.eventBus.trigger("asyncrequest",c,b)},_onAsyncCanceled:function(a,b,c){this.eventBus.trigger("asynccancel",c,b)},_onAsyncReceived:function(a,b,c){this.eventBus.trigger("asyncreceive",c,b)},_onFocused:function(){this._minLengthMet()&&this.menu.update(this.input.getQuery())},_onBlurred:function(){this.input.hasQueryChangedSinceLastFocus()&&this.eventBus.trigger("change",this.input.getQuery())},_onEnterKeyed:function(a,b){var c;(c=this.menu.getActiveSelectable())&&this.select(c)&&b.preventDefault()},_onTabKeyed:function(a,b){var c;(c=this.menu.getActiveSelectable())?this.select(c)&&b.preventDefault():(c=this.menu.getTopSelectable())&&this.autocomplete(c)&&b.preventDefault()},_onEscKeyed:function(){this.close()},_onUpKeyed:function(){this.moveCursor(-1)},_onDownKeyed:function(){this.moveCursor(1)},_onLeftKeyed:function(){"rtl"===this.dir&&this.input.isCursorAtEnd()&&this.autocomplete(this.menu.getTopSelectable())},_onRightKeyed:function(){"ltr"===this.dir&&this.input.isCursorAtEnd()&&this.autocomplete(this.menu.getTopSelectable())},_onQueryChanged:function(a,b){this._minLengthMet(b)?this.menu.update(b):this.menu.empty()},_onWhitespaceChanged:function(){this._updateHint()},_onLangDirChanged:function(a,b){this.dir!==b&&(this.dir=b,this.menu.setLanguageDirection(b))},_openIfActive:function(){this.isActive()&&this.open()},_minLengthMet:function(a){return a=b.isString(a)?a:this.input.getQuery()||"",a.length>=this.minLength},_updateHint:function(){var a,c,d,e,f,h,i;a=this.menu.getTopSelectable(),c=this.menu.getSelectableData(a),d=this.input.getInputValue(),!c||b.isBlankString(d)||this.input.hasOverflow()?this.input.clearHint():(e=g.normalizeQuery(d),f=b.escapeRegExChars(e),h=new RegExp("^(?:"+f+")(.+$)","i"),i=h.exec(c.val),i&&this.input.setHint(d+i[1]))},isEnabled:function(){return this.enabled},enable:function(){this.enabled=!0},disable:function(){this.enabled=!1},isActive:function(){return this.active},activate:function(){return this.isActive()?!0:!this.isEnabled()||this.eventBus.before("active")?!1:(this.active=!0,this.eventBus.trigger("active"),!0)},deactivate:function(){return this.isActive()?this.eventBus.before("idle")?!1:(this.active=!1,this.close(),this.eventBus.trigger("idle"),!0):!0},isOpen:function(){return this.menu.isOpen()},open:function(){return this.isOpen()||this.eventBus.before("open")||(this.menu.open(),this._updateHint(),this.eventBus.trigger("open")),this.isOpen()},close:function(){return this.isOpen()&&!this.eventBus.before("close")&&(this.menu.close(),this.input.clearHint(),this.input.resetInputValue(),this.eventBus.trigger("close")),!this.isOpen()},setVal:function(a){this.input.setQuery(b.toStr(a))},getVal:function(){return this.input.getQuery()},select:function(a){var b=this.menu.getSelectableData(a);return b&&!this.eventBus.before("select",b.obj)?(this.input.setQuery(b.val,!0),this.eventBus.trigger("select",b.obj),this.close(),!0):!1},autocomplete:function(a){var b,c,d;return b=this.input.getQuery(),c=this.menu.getSelectableData(a),d=c&&b!==c.val,d&&!this.eventBus.before("autocomplete",c.obj)?(this.input.setQuery(c.val),this.eventBus.trigger("autocomplete",c.obj),!0):!1},moveCursor:function(a){var b,c,d,e,f;return b=this.input.getQuery(),c=this.menu.selectableRelativeToCursor(a),d=this.menu.getSelectableData(c),e=d?d.obj:null,f=this._minLengthMet()&&this.menu.update(b),f||this.eventBus.before("cursorchange",e)?!1:(this.menu.setCursor(c),d?this.input.setInputValue(d.val):(this.input.resetInputValue(),this._updateHint()),this.eventBus.trigger("cursorchange",e),!0)},destroy:function(){this.input.destroy(),this.menu.destroy()}}),c}();!function(){"use strict";function e(b,c){b.each(function(){var b,d=a(this);(b=d.data(p.typeahead))&&c(b,d)})}function f(a,b){return a.clone().addClass(b.classes.hint).removeData().css(b.css.hint).css(l(a)).prop("readonly",!0).removeAttr("id name placeholder required").attr({autocomplete:"off",spellcheck:"false",tabindex:-1})}function h(a,b){a.data(p.attrs,{dir:a.attr("dir"),autocomplete:a.attr("autocomplete"),spellcheck:a.attr("spellcheck"),style:a.attr("style")}),a.addClass(b.classes.input).attr({autocomplete:"off",spellcheck:!1});try{!a.attr("dir")&&a.attr("dir","auto")}catch(c){}return a}function l(a){return{backgroundAttachment:a.css("background-attachment"),backgroundClip:a.css("background-clip"),backgroundColor:a.css("background-color"),backgroundImage:a.css("background-image"),backgroundOrigin:a.css("background-origin"),backgroundPosition:a.css("background-position"),backgroundRepeat:a.css("background-repeat"),backgroundSize:a.css("background-size")}}function m(a){var c,d;c=a.data(p.www),d=a.parent().filter(c.selectors.wrapper),b.each(a.data(p.attrs),function(c,d){b.isUndefined(c)?a.removeAttr(d):a.attr(d,c)}),a.removeData(p.typeahead).removeData(p.www).removeData(p.attr).removeClass(c.classes.input),d.length&&(a.detach().insertAfter(d),d.remove())}function n(c){var d,e;return d=b.isJQuery(c)||b.isElement(c),e=d?a(c).first():[],e.length?e:null}var o,p,q;o=a.fn.typeahead,p={www:"tt-www",attrs:"tt-attrs",typeahead:"tt-typeahead"},q={initialize:function(e,l){function m(){var c,m,q,r,s,t,u,v,w,x,y;b.each(l,function(a){a.highlight=!!e.highlight}),c=a(this),m=a(o.html.wrapper),q=n(e.hint),r=n(e.menu),s=e.hint!==!1&&!q,t=e.menu!==!1&&!r,s&&(q=f(c,o)),t&&(r=a(o.html.menu).css(o.css.menu)),q&&q.val(""),c=h(c,o),(s||t)&&(m.css(o.css.wrapper),c.css(s?o.css.input:o.css.inputWithNoHint),c.wrap(m).parent().prepend(s?q:null).append(t?r:null)),y=t?j:i,u=new d({el:c}),v=new g({hint:q,input:c},o),w=new y({node:r,datasets:l},o),x=new k({input:v,menu:w,eventBus:u,minLength:e.minLength},o),c.data(p.www,o),c.data(p.typeahead,x)}var o;return l=b.isArray(l)?l:[].slice.call(arguments,1),e=e||{},o=c(e.classNames),this.each(m)},isEnabled:function(){var a;return e(this.first(),function(b){a=b.isEnabled()}),a},enable:function(){return e(this,function(a){a.enable()}),this},disable:function(){return e(this,function(a){a.disable()}),this},isActive:function(){var a;return e(this.first(),function(b){a=b.isActive()}),a},activate:function(){return e(this,function(a){a.activate()}),this},deactivate:function(){return e(this,function(a){a.deactivate()}),this},isOpen:function(){var a;return e(this.first(),function(b){a=b.isOpen()}),a},open:function(){return e(this,function(a){a.open()}),this},close:function(){return e(this,function(a){a.close()}),this},select:function(b){var c=!1,d=a(b);return e(this.first(),function(a){c=a.select(d)}),c},autocomplete:function(b){var c=!1,d=a(b);return e(this.first(),function(a){c=a.autocomplete(d)}),c},moveCursor:function(a){var b=!1;return e(this.first(),function(c){b=c.moveCursor(a)}),b},val:function(a){var b;return arguments.length?(e(this,function(b){b.setVal(a)}),this):(e(this.first(),function(a){b=a.getVal()}),b)},destroy:function(){return e(this,function(a,b){m(b),a.destroy()}),this}},a.fn.typeahead=function(a){return q[a]?q[a].apply(this,[].slice.call(arguments,1)):q.initialize.apply(this,arguments)},a.fn.typeahead.noConflict=function(){return a.fn.typeahead=o,this}}()});
|
@@ -0,0 +1,46 @@
|
|
1
|
+
/*
|
2
|
+
* This is a manifest file that'll be compiled into application.css, which will include all the files
|
3
|
+
* listed below.
|
4
|
+
*
|
5
|
+
* Any CSS and SCSS file within this directory, lib/assets/stylesheets, or any plugin's
|
6
|
+
* vendor/assets/stylesheets directory can be referenced here using a relative path.
|
7
|
+
*
|
8
|
+
* You're free to add application-wide styles to this file and they'll appear at the bottom of the
|
9
|
+
* compiled file so the styles you add here take precedence over styles defined in any other CSS/SCSS
|
10
|
+
* files in this directory. Styles in this file should be added after the last require_* statement.
|
11
|
+
* It is generally better to create a new file per style scope.
|
12
|
+
*
|
13
|
+
*= require_tree .
|
14
|
+
*= require_self
|
15
|
+
*/
|
16
|
+
|
17
|
+
html {
|
18
|
+
height: 100%;
|
19
|
+
}
|
20
|
+
body {
|
21
|
+
min-height: 100%;
|
22
|
+
}
|
23
|
+
|
24
|
+
.wrapper .container {
|
25
|
+
padding-bottom: 2rem;
|
26
|
+
padding-top: 2rem;
|
27
|
+
}
|
28
|
+
|
29
|
+
.error-wrapper .result {
|
30
|
+
color: white;
|
31
|
+
background-color: red;
|
32
|
+
}
|
33
|
+
|
34
|
+
|
35
|
+
h3.alert-success {
|
36
|
+
text-align: center;
|
37
|
+
}
|
38
|
+
|
39
|
+
pre {
|
40
|
+
line-height: 0.7;
|
41
|
+
}
|
42
|
+
|
43
|
+
pre p {
|
44
|
+
margin: 0;
|
45
|
+
margin-left: 5px;
|
46
|
+
}
|
@@ -0,0 +1,34 @@
|
|
1
|
+
.authorize-button .button {
|
2
|
+
width: 200px;
|
3
|
+
}
|
4
|
+
|
5
|
+
.center {
|
6
|
+
margin: auto;
|
7
|
+
width: 60%;
|
8
|
+
padding: 10px;
|
9
|
+
}
|
10
|
+
|
11
|
+
.authorization-info {
|
12
|
+
margin-top: 20px;
|
13
|
+
text-align: center;
|
14
|
+
}
|
15
|
+
|
16
|
+
.authorized {
|
17
|
+
width: 200px;
|
18
|
+
cursor: default;
|
19
|
+
pointer-events: none;
|
20
|
+
text-decoration: none;
|
21
|
+
background-color: grey;
|
22
|
+
border: none;
|
23
|
+
text-align: center;
|
24
|
+
display: block;
|
25
|
+
}
|
26
|
+
|
27
|
+
.button-inline {
|
28
|
+
margin-left: 10px;
|
29
|
+
display: inline-block;
|
30
|
+
}
|
31
|
+
|
32
|
+
.authorize-link {
|
33
|
+
display: inline;
|
34
|
+
}
|
@@ -0,0 +1,33 @@
|
|
1
|
+
.jquery-spinner-wrap {
|
2
|
+
position:absolute;
|
3
|
+
top:0;
|
4
|
+
z-index:100;
|
5
|
+
width:100%;
|
6
|
+
height:100%;
|
7
|
+
display:none;
|
8
|
+
background:rgba(0,0,0,0.2)
|
9
|
+
}
|
10
|
+
|
11
|
+
.jquery-spinner-wrap .jquery-spinner-circle {
|
12
|
+
height:100%;
|
13
|
+
display:flex;
|
14
|
+
justify-content:center;
|
15
|
+
align-items:center
|
16
|
+
}
|
17
|
+
|
18
|
+
.jquery-spinner-wrap .jquery-spinner-circle .jquery-spinner-bar {
|
19
|
+
width:40px;
|
20
|
+
height:40px;
|
21
|
+
border:4px #ddd solid;
|
22
|
+
border-top:4px #9b4dca solid;
|
23
|
+
border-radius:50%;
|
24
|
+
animation:sp-anime 0.8s infinite linear
|
25
|
+
}
|
26
|
+
|
27
|
+
@keyframes sp-anime {
|
28
|
+
100% {
|
29
|
+
transform:rotate(360deg)
|
30
|
+
}
|
31
|
+
}
|
32
|
+
|
33
|
+
|
@@ -0,0 +1,55 @@
|
|
1
|
+
.mapping-select {
|
2
|
+
display: none;
|
3
|
+
}
|
4
|
+
|
5
|
+
.mapping-select select {
|
6
|
+
display: inline-block !important;
|
7
|
+
margin-right: 10px;
|
8
|
+
}
|
9
|
+
|
10
|
+
.mapping-select input[type=submit] {
|
11
|
+
margin: 0;
|
12
|
+
}
|
13
|
+
|
14
|
+
#mappings-container {
|
15
|
+
width: 100%;
|
16
|
+
height: 100%;
|
17
|
+
}
|
18
|
+
|
19
|
+
.mapping-row {
|
20
|
+
border: 1px solid;
|
21
|
+
border-color: rgba($color: grey, $alpha: 0.2);
|
22
|
+
margin-top: 10px;
|
23
|
+
border-radius: 10px;
|
24
|
+
}
|
25
|
+
|
26
|
+
.row.mapping-headers {
|
27
|
+
border: 1px solid;
|
28
|
+
border-color: rgba($color: grey, $alpha: 0.2);
|
29
|
+
background-color: rgba($color: #9b4dca, $alpha: 0.1);
|
30
|
+
padding: 10px;
|
31
|
+
border-radius: 10px;
|
32
|
+
display: none;
|
33
|
+
}
|
34
|
+
|
35
|
+
.mapping-row .column, .mapping-row button {
|
36
|
+
display: flex;
|
37
|
+
align-items: center;
|
38
|
+
margin: 5px;
|
39
|
+
}
|
40
|
+
|
41
|
+
.mapping-row .remove-button, .row.mapping-headers .remove-button {
|
42
|
+
margin-top: 10px;
|
43
|
+
max-width: 100px;
|
44
|
+
display: flex;
|
45
|
+
align-items: center;
|
46
|
+
justify-content: center;
|
47
|
+
}
|
48
|
+
|
49
|
+
.mapping-row.template {
|
50
|
+
display: none;
|
51
|
+
}
|
52
|
+
|
53
|
+
.mapping-id {
|
54
|
+
display: none;
|
55
|
+
}
|
@@ -0,0 +1,43 @@
|
|
1
|
+
.navigation {
|
2
|
+
background: #f4f5f6;
|
3
|
+
border-bottom: .1rem solid #d1d1d1;
|
4
|
+
display: block;
|
5
|
+
height: 5.2rem;
|
6
|
+
left: 0;
|
7
|
+
max-width: 100%;
|
8
|
+
width: 100%;
|
9
|
+
}
|
10
|
+
|
11
|
+
.navigation .container {
|
12
|
+
padding-bottom: 0;
|
13
|
+
padding-top: 0
|
14
|
+
}
|
15
|
+
|
16
|
+
.navigation .navigation-list {
|
17
|
+
list-style: none;
|
18
|
+
margin-bottom: 0;
|
19
|
+
}
|
20
|
+
|
21
|
+
.navigation .navigation-item {
|
22
|
+
float: left;
|
23
|
+
margin-bottom: 0;
|
24
|
+
margin-left: 2.5rem;
|
25
|
+
position: relative
|
26
|
+
}
|
27
|
+
|
28
|
+
.navigation .navigation-title, .navigation .title {
|
29
|
+
color: #606c76;
|
30
|
+
position: relative
|
31
|
+
}
|
32
|
+
|
33
|
+
.navigation .navigation-link, .navigation .navigation-title, .navigation .title {
|
34
|
+
display: inline;
|
35
|
+
font-size: 1.6rem;
|
36
|
+
line-height: 5.2rem;
|
37
|
+
padding: 0;
|
38
|
+
text-decoration: none
|
39
|
+
}
|
40
|
+
|
41
|
+
.navigation .navigation-link.active {
|
42
|
+
color: #606c76
|
43
|
+
}
|
@@ -0,0 +1,81 @@
|
|
1
|
+
.typeahead,
|
2
|
+
.tt-query,
|
3
|
+
.tt-hint {
|
4
|
+
width: 396px;
|
5
|
+
height: 30px;
|
6
|
+
padding: 8px 12px;
|
7
|
+
font-size: 24px;
|
8
|
+
line-height: 30px;
|
9
|
+
border: 2px solid #ccc;
|
10
|
+
-webkit-border-radius: 8px;
|
11
|
+
-moz-border-radius: 8px;
|
12
|
+
border-radius: 8px;
|
13
|
+
outline: none;
|
14
|
+
}
|
15
|
+
|
16
|
+
.typeahead {
|
17
|
+
background-color: #fff;
|
18
|
+
margin-bottom: 0;
|
19
|
+
}
|
20
|
+
|
21
|
+
.typeahead:focus {
|
22
|
+
border: 2px solid #0097cf;
|
23
|
+
}
|
24
|
+
|
25
|
+
.tt-query {
|
26
|
+
-webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075);
|
27
|
+
-moz-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075);
|
28
|
+
box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075);
|
29
|
+
}
|
30
|
+
|
31
|
+
.tt-hint {
|
32
|
+
color: #999
|
33
|
+
}
|
34
|
+
|
35
|
+
.tt-menu {
|
36
|
+
width: 422px;
|
37
|
+
padding: 8px 0;
|
38
|
+
background-color: #fff;
|
39
|
+
border: 1px solid #ccc;
|
40
|
+
-webkit-border-radius: 8px;
|
41
|
+
-moz-border-radius: 8px;
|
42
|
+
border-radius: 8px;
|
43
|
+
-webkit-box-shadow: 0 5px 10px rgba(0, 0, 0, .2);
|
44
|
+
-moz-box-shadow: 0 5px 10px rgba(0, 0, 0, .2);
|
45
|
+
box-shadow: 0 5px 10px rgba(0, 0, 0, .2);
|
46
|
+
}
|
47
|
+
|
48
|
+
.tt-suggestion {
|
49
|
+
padding: 3px 20px;
|
50
|
+
font-size: 18px;
|
51
|
+
line-height: 24px;
|
52
|
+
}
|
53
|
+
|
54
|
+
.tt-suggestion:hover {
|
55
|
+
cursor: pointer;
|
56
|
+
color: #fff;
|
57
|
+
background-color: #9b4dca;
|
58
|
+
}
|
59
|
+
|
60
|
+
.tt-suggestion.tt-cursor {
|
61
|
+
color: #fff;
|
62
|
+
background-color: #0097cf;
|
63
|
+
|
64
|
+
}
|
65
|
+
|
66
|
+
.tt-suggestion p {
|
67
|
+
margin: 0;
|
68
|
+
}
|
69
|
+
|
70
|
+
.typeahead .empty-message {
|
71
|
+
padding: 5px 10px;
|
72
|
+
text-align: center;
|
73
|
+
}
|
74
|
+
|
75
|
+
input[type=submit] {
|
76
|
+
margin-top: 1rem;
|
77
|
+
}
|
78
|
+
|
79
|
+
span.twitter-typeahead {
|
80
|
+
display: block !important;
|
81
|
+
}
|
@@ -0,0 +1,38 @@
|
|
1
|
+
class ApplicationController < ActionController::Base
|
2
|
+
include ExceptionHandler
|
3
|
+
|
4
|
+
before_action :check_env_variables
|
5
|
+
protect_from_forgery prepend: true
|
6
|
+
|
7
|
+
helper_method :authorized?
|
8
|
+
|
9
|
+
private
|
10
|
+
|
11
|
+
def authorized?
|
12
|
+
HubspotToken.instance.filled? && TrelloToken.instance.filled?
|
13
|
+
end
|
14
|
+
|
15
|
+
def check_env_variables
|
16
|
+
missing_vars = %w[
|
17
|
+
HUBSPOT_CLIENT_ID
|
18
|
+
HUBSPOT_CLIENT_SECRET
|
19
|
+
HUBSPOT_DEVELOPER_API_KEY
|
20
|
+
HUBSPOT_APPLICATION_ID
|
21
|
+
TRELLO_KEY
|
22
|
+
TRELLO_SECRET
|
23
|
+
].select { |var| ENV[var].blank? }
|
24
|
+
raise(ExceptionHandler::HubspotError.new, "Please specify #{missing_vars.join(', ')} in .env") if missing_vars.present?
|
25
|
+
end
|
26
|
+
|
27
|
+
def authorize
|
28
|
+
redirect_to login_path and return unless authorized?
|
29
|
+
|
30
|
+
new_hubspot_tokens = Services::Hubspot::Authorization::Tokens::Refresh.new(
|
31
|
+
tokens: HubspotToken.instance.attributes,
|
32
|
+
request: request
|
33
|
+
).call
|
34
|
+
HubspotToken.instance.update_attributes(new_hubspot_tokens)
|
35
|
+
Services::Hubspot::Authorization::Authorize.new(tokens: HubspotToken.instance.attributes).call
|
36
|
+
Services::Trello::Authorization::Authorize.new(tokens: TrelloToken.instance.attributes).call
|
37
|
+
end
|
38
|
+
end
|
File without changes
|
@@ -0,0 +1,20 @@
|
|
1
|
+
class HomeController < ApplicationController
|
2
|
+
before_action :authorize
|
3
|
+
|
4
|
+
def index
|
5
|
+
@data_fetch_url = url_for(controller: 'trello/cards', action: :index, only_path: false, protocol: 'https')
|
6
|
+
@base_url = url_for(controller: :home, action: :index, only_path: false, protocol: 'https')
|
7
|
+
@card_id = ExtensionCard.find_by(card_id_key: ExtensionCard::CARD_ID_KEY)&.card_id
|
8
|
+
@card_title = ExtensionCard::CARD_TITLE
|
9
|
+
end
|
10
|
+
|
11
|
+
def create_card
|
12
|
+
Services::Hubspot::ExtensionsCards::Create.new(request: request).call
|
13
|
+
|
14
|
+
redirect_to action: :success
|
15
|
+
end
|
16
|
+
|
17
|
+
def success
|
18
|
+
@extension_card = ExtensionCard.find_by(card_id_key: ExtensionCard::CARD_ID_KEY)
|
19
|
+
end
|
20
|
+
end
|
@@ -0,0 +1,64 @@
|
|
1
|
+
class MappingsController < ApplicationController
|
2
|
+
before_action :authorize
|
3
|
+
|
4
|
+
def index
|
5
|
+
@pipelines = Services::Hubspot::Pipelines::GetAll.new.call
|
6
|
+
@boards = Services::Trello::Boards::GetAll.new.call
|
7
|
+
|
8
|
+
respond_to do |format|
|
9
|
+
format.html
|
10
|
+
format.json do
|
11
|
+
board = Services::Trello::Boards::GetById.new(params[:board_id]).call
|
12
|
+
board_lists = board&.lists
|
13
|
+
pipeline = Services::Hubspot::Pipelines::GetById.new(params[:pipeline_id]).call
|
14
|
+
pipeline_stages = pipeline.stages
|
15
|
+
mappings = Mapping.where(board_id: params[:board_id], pipeline_id: params[:pipeline_id])
|
16
|
+
render json: {
|
17
|
+
status: :ok,
|
18
|
+
data: {
|
19
|
+
board_id: board&.id,
|
20
|
+
pipeline_id: pipeline&.id,
|
21
|
+
board_lists: board_lists,
|
22
|
+
pipeline_stages: pipeline_stages,
|
23
|
+
mappings: format_mappings(mappings, lists: board_lists, stages: pipeline_stages)
|
24
|
+
}
|
25
|
+
}
|
26
|
+
end
|
27
|
+
end
|
28
|
+
end
|
29
|
+
|
30
|
+
def create
|
31
|
+
board_lists = Services::Trello::Boards::GetById.new(mapping_params[:board_id]).call.lists
|
32
|
+
pipeline_stages = Services::Hubspot::Pipelines::GetById.new(mapping_params[:pipeline_id]).call.stages
|
33
|
+
@mapping = Mapping.new(mapping_params)
|
34
|
+
|
35
|
+
respond_to do |format|
|
36
|
+
if @mapping.save
|
37
|
+
mapping_data = format_mappings([@mapping], lists: board_lists, stages: pipeline_stages)[0]
|
38
|
+
format.json { render json: { status: :ok, data: { mapping: mapping_data} } }
|
39
|
+
end
|
40
|
+
end
|
41
|
+
end
|
42
|
+
|
43
|
+
def destroy
|
44
|
+
Mapping.find_by(id: params[:id]).destroy!
|
45
|
+
|
46
|
+
render json: { status: :ok, data: { id: params[:id] } }
|
47
|
+
end
|
48
|
+
|
49
|
+
private
|
50
|
+
|
51
|
+
def format_mappings(mappings, lists:, stages:)
|
52
|
+
mappings.map do |mapping|
|
53
|
+
{
|
54
|
+
id: mapping.id,
|
55
|
+
board_list_name: lists&.detect { |el| el.id == mapping.board_list_id }.name,
|
56
|
+
pipeline_stage_label: stages&.detect { |el| el.id == mapping.pipeline_stage_id }.label
|
57
|
+
}
|
58
|
+
end
|
59
|
+
end
|
60
|
+
|
61
|
+
def mapping_params
|
62
|
+
params.require(:mapping).permit(%i[board_id pipeline_id board_list_id pipeline_stage_id])
|
63
|
+
end
|
64
|
+
end
|
@@ -0,0 +1,28 @@
|
|
1
|
+
module Oauth
|
2
|
+
class AuthorizationController < ApplicationController
|
3
|
+
def login
|
4
|
+
end
|
5
|
+
|
6
|
+
def authorize_hubspot
|
7
|
+
url = Services::Hubspot::Authorization::GetAuthorizationUri.new(request: request).call
|
8
|
+
redirect_to url
|
9
|
+
end
|
10
|
+
|
11
|
+
def hubspot_callback
|
12
|
+
tokens = Services::Hubspot::Authorization::Tokens::Generate.new(
|
13
|
+
code: params[:code],
|
14
|
+
request: request
|
15
|
+
).call
|
16
|
+
HubspotToken.instance.update_attributes(tokens)
|
17
|
+
Services::Hubspot::Authorization::Authorize.new(tokens: HubspotToken.instance.attributes).call
|
18
|
+
redirect_to '/'
|
19
|
+
end
|
20
|
+
|
21
|
+
def trello_callback
|
22
|
+
trello_tokens = request.env["omniauth.auth"]['credentials']
|
23
|
+
TrelloToken.instance.update_attributes(trello_tokens.to_hash)
|
24
|
+
|
25
|
+
redirect_to '/'
|
26
|
+
end
|
27
|
+
end
|
28
|
+
end
|