hubspot-api-client 2.0.0 → 2.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +2 -2
- data/lib/hubspot-api-client.rb +3 -2
- data/lib/hubspot/codegen/crm/associations/api/batch_api.rb +3 -3
- data/lib/hubspot/codegen/crm/associations/api/types_api.rb +94 -0
- data/lib/hubspot/codegen/crm/associations/api_client.rb +1 -0
- data/lib/hubspot/codegen/crm/associations/models/associated_id.rb +229 -0
- 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 +0 -5
- data/lib/hubspot/codegen/crm/associations/models/batch_response_public_association_multi.rb +0 -5
- data/lib/hubspot/codegen/crm/associations/models/collection_response_public_association_definiton.rb +226 -0
- data/lib/hubspot/codegen/crm/associations/models/error.rb +12 -2
- data/lib/hubspot/codegen/crm/associations/models/error_detail.rb +20 -23
- data/lib/hubspot/codegen/crm/associations/models/next_page.rb +224 -0
- data/lib/hubspot/codegen/crm/associations/models/paging.rb +210 -0
- data/lib/hubspot/codegen/crm/associations/models/public_association.rb +19 -5
- data/lib/hubspot/codegen/crm/associations/models/public_association_definiton.rb +229 -0
- data/lib/hubspot/codegen/crm/associations/models/public_association_multi.rb +2 -2
- data/lib/hubspot/codegen/crm/companies/api/associations_api.rb +42 -30
- data/lib/hubspot/codegen/crm/companies/api/basic_api.rb +8 -5
- data/lib/hubspot/codegen/crm/companies/api/batch_api.rb +2 -2
- data/lib/hubspot/codegen/crm/companies/api_client.rb +1 -0
- data/lib/hubspot/codegen/crm/companies/models/associated_id.rb +229 -0
- data/lib/hubspot/codegen/crm/companies/models/batch_read_input_simple_public_object_id.rb +11 -2
- data/lib/hubspot/codegen/crm/companies/models/batch_response_simple_public_object.rb +1 -6
- data/lib/hubspot/codegen/crm/companies/models/{collection_response_simple_public_object_id.rb → collection_response_associated_id.rb} +5 -5
- data/lib/hubspot/codegen/crm/companies/models/error.rb +12 -2
- data/lib/hubspot/codegen/crm/companies/models/error_detail.rb +20 -23
- data/lib/hubspot/codegen/crm/companies/models/simple_public_object.rb +2 -12
- data/lib/hubspot/codegen/crm/companies/models/simple_public_object_input.rb +1 -1
- data/lib/hubspot/codegen/crm/contacts/api/associations_api.rb +42 -30
- data/lib/hubspot/codegen/crm/contacts/api/basic_api.rb +8 -5
- data/lib/hubspot/codegen/crm/contacts/api/batch_api.rb +2 -2
- data/lib/hubspot/codegen/crm/contacts/api_client.rb +1 -0
- data/lib/hubspot/codegen/crm/contacts/models/associated_id.rb +229 -0
- data/lib/hubspot/codegen/crm/contacts/models/batch_read_input_simple_public_object_id.rb +11 -2
- data/lib/hubspot/codegen/crm/contacts/models/batch_response_simple_public_object.rb +1 -6
- data/lib/hubspot/codegen/crm/contacts/models/{collection_response_simple_public_object_id.rb → collection_response_associated_id.rb} +5 -5
- data/lib/hubspot/codegen/crm/contacts/models/error.rb +12 -2
- data/lib/hubspot/codegen/crm/contacts/models/error_detail.rb +20 -23
- data/lib/hubspot/codegen/crm/contacts/models/filter.rb +3 -3
- data/lib/hubspot/codegen/crm/contacts/models/simple_public_object.rb +2 -12
- data/lib/hubspot/codegen/crm/deals/api/associations_api.rb +42 -30
- data/lib/hubspot/codegen/crm/deals/api/basic_api.rb +8 -5
- data/lib/hubspot/codegen/crm/deals/api/batch_api.rb +2 -2
- data/lib/hubspot/codegen/crm/deals/api_client.rb +1 -0
- data/lib/hubspot/codegen/crm/deals/models/associated_id.rb +229 -0
- data/lib/hubspot/codegen/crm/deals/models/batch_read_input_simple_public_object_id.rb +11 -2
- data/lib/hubspot/codegen/crm/deals/models/batch_response_simple_public_object.rb +1 -6
- data/lib/hubspot/codegen/crm/deals/models/{collection_response_simple_public_object_id.rb → collection_response_associated_id.rb} +5 -5
- data/lib/hubspot/codegen/crm/deals/models/error.rb +12 -2
- data/lib/hubspot/codegen/crm/deals/models/error_detail.rb +20 -23
- data/lib/hubspot/codegen/crm/deals/models/filter.rb +3 -3
- data/lib/hubspot/codegen/crm/deals/models/simple_public_object.rb +2 -12
- data/lib/hubspot/codegen/crm/extensions/cards/api/cards_api.rb +36 -36
- data/lib/hubspot/codegen/crm/extensions/cards/api_client.rb +1 -0
- data/lib/hubspot/codegen/crm/extensions/cards/models/card_actions.rb +5 -3
- data/lib/hubspot/codegen/crm/extensions/cards/models/card_create_request.rb +5 -3
- data/lib/hubspot/codegen/crm/extensions/cards/models/card_display_body.rb +5 -3
- data/lib/hubspot/codegen/crm/extensions/cards/models/card_display_property.rb +8 -3
- data/lib/hubspot/codegen/crm/extensions/cards/models/card_fetch_body.rb +6 -3
- data/lib/hubspot/codegen/crm/extensions/cards/models/card_fetch_body_patch.rb +7 -4
- data/lib/hubspot/codegen/crm/extensions/cards/models/card_list_response.rb +5 -3
- data/lib/hubspot/codegen/crm/extensions/cards/models/card_object_type_body.rb +5 -3
- data/lib/hubspot/codegen/crm/extensions/cards/models/card_patch_request.rb +5 -3
- data/lib/hubspot/codegen/crm/extensions/cards/models/card_response.rb +8 -3
- data/lib/hubspot/codegen/crm/extensions/cards/models/display_option.rb +7 -3
- data/lib/hubspot/codegen/crm/extensions/cards/models/error.rb +12 -2
- data/lib/hubspot/codegen/crm/extensions/cards/models/error_detail.rb +24 -4
- data/lib/hubspot/codegen/crm/line_items/api/associations_api.rb +42 -30
- data/lib/hubspot/codegen/crm/line_items/api/basic_api.rb +8 -5
- data/lib/hubspot/codegen/crm/line_items/api/batch_api.rb +2 -2
- data/lib/hubspot/codegen/crm/line_items/api_client.rb +1 -0
- data/lib/hubspot/codegen/crm/line_items/models/associated_id.rb +229 -0
- data/lib/hubspot/codegen/crm/line_items/models/batch_read_input_simple_public_object_id.rb +11 -2
- data/lib/hubspot/codegen/crm/line_items/models/batch_response_simple_public_object.rb +1 -6
- data/lib/hubspot/codegen/crm/line_items/models/{collection_response_simple_public_object_id.rb → collection_response_associated_id.rb} +5 -5
- data/lib/hubspot/codegen/crm/line_items/models/error.rb +12 -2
- data/lib/hubspot/codegen/crm/line_items/models/error_detail.rb +20 -23
- data/lib/hubspot/codegen/crm/line_items/models/filter.rb +3 -3
- data/lib/hubspot/codegen/crm/line_items/models/simple_public_object.rb +2 -12
- data/lib/hubspot/codegen/crm/owners/api/default_api.rb +2 -2
- data/lib/hubspot/codegen/crm/owners/api_client.rb +1 -0
- data/lib/hubspot/codegen/crm/owners/models/collection_response_public_owner.rb +1 -1
- data/lib/hubspot/codegen/crm/owners/models/error.rb +12 -2
- data/lib/hubspot/codegen/crm/owners/models/error_detail.rb +22 -2
- data/lib/hubspot/codegen/crm/owners/models/public_owner.rb +1 -6
- data/lib/hubspot/codegen/crm/pipelines/api/pipeline_stages_api.rb +6 -6
- data/lib/hubspot/codegen/crm/pipelines/api/pipelines_api.rb +7 -7
- data/lib/hubspot/codegen/crm/pipelines/api_client.rb +1 -0
- data/lib/hubspot/codegen/crm/pipelines/models/error.rb +12 -2
- data/lib/hubspot/codegen/crm/pipelines/models/error_detail.rb +22 -2
- data/lib/hubspot/codegen/crm/products/api/associations_api.rb +43 -31
- data/lib/hubspot/codegen/crm/products/api/basic_api.rb +9 -6
- data/lib/hubspot/codegen/crm/products/api/batch_api.rb +3 -3
- data/lib/hubspot/codegen/crm/products/api_client.rb +1 -0
- data/lib/hubspot/codegen/crm/products/models/associated_id.rb +229 -0
- data/lib/hubspot/codegen/crm/products/models/batch_read_input_simple_public_object_id.rb +11 -2
- data/lib/hubspot/codegen/crm/products/models/batch_response_simple_public_object.rb +1 -6
- data/lib/hubspot/codegen/crm/products/models/{collection_response_simple_public_object_id.rb → collection_response_associated_id.rb} +5 -5
- data/lib/hubspot/codegen/crm/products/models/error.rb +12 -2
- data/lib/hubspot/codegen/crm/products/models/error_detail.rb +20 -23
- data/lib/hubspot/codegen/crm/products/models/filter.rb +3 -3
- data/lib/hubspot/codegen/crm/products/models/simple_public_object.rb +2 -12
- 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 +4 -4
- data/lib/hubspot/codegen/crm/properties/api/core_api.rb +6 -6
- data/lib/hubspot/codegen/crm/properties/api/groups_api.rb +6 -6
- data/lib/hubspot/codegen/crm/properties/api_client.rb +1 -0
- data/lib/hubspot/codegen/crm/properties/models/error.rb +12 -2
- data/lib/hubspot/codegen/crm/properties/models/error_detail.rb +20 -23
- data/lib/hubspot/codegen/crm/quotes/api/associations_api.rb +43 -31
- data/lib/hubspot/codegen/crm/quotes/api/basic_api.rb +9 -6
- data/lib/hubspot/codegen/crm/quotes/api/batch_api.rb +3 -3
- data/lib/hubspot/codegen/crm/quotes/api_client.rb +1 -0
- data/lib/hubspot/codegen/crm/quotes/models/associated_id.rb +229 -0
- data/lib/hubspot/codegen/crm/quotes/models/batch_read_input_simple_public_object_id.rb +11 -2
- data/lib/hubspot/codegen/crm/quotes/models/batch_response_simple_public_object.rb +1 -6
- data/lib/hubspot/codegen/crm/quotes/models/{collection_response_simple_public_object_id.rb → collection_response_associated_id.rb} +5 -5
- data/lib/hubspot/codegen/crm/quotes/models/error.rb +12 -2
- data/lib/hubspot/codegen/crm/quotes/models/error_detail.rb +20 -23
- data/lib/hubspot/codegen/crm/quotes/models/filter.rb +4 -4
- data/lib/hubspot/codegen/crm/quotes/models/simple_public_object.rb +2 -12
- data/lib/hubspot/codegen/crm/tickets/api/associations_api.rb +43 -31
- data/lib/hubspot/codegen/crm/tickets/api/basic_api.rb +9 -6
- data/lib/hubspot/codegen/crm/tickets/api/batch_api.rb +3 -3
- data/lib/hubspot/codegen/crm/tickets/api_client.rb +1 -0
- data/lib/hubspot/codegen/crm/tickets/models/associated_id.rb +229 -0
- data/lib/hubspot/codegen/crm/tickets/models/batch_read_input_simple_public_object_id.rb +11 -2
- data/lib/hubspot/codegen/crm/tickets/models/batch_response_simple_public_object.rb +1 -6
- data/lib/hubspot/codegen/crm/tickets/models/{collection_response_simple_public_object_id.rb → collection_response_associated_id.rb} +6 -6
- data/lib/hubspot/codegen/crm/tickets/models/error.rb +12 -2
- data/lib/hubspot/codegen/crm/tickets/models/error_detail.rb +20 -23
- data/lib/hubspot/codegen/crm/tickets/models/filter.rb +3 -3
- data/lib/hubspot/codegen/crm/tickets/models/simple_public_object.rb +2 -12
- data/lib/hubspot/codegen/crm/timeline/api/events_api.rb +353 -0
- data/lib/hubspot/codegen/crm/timeline/api/templates_api.rb +362 -0
- data/lib/hubspot/codegen/crm/timeline/api/tokens_api.rb +250 -0
- data/lib/hubspot/codegen/crm/{objects → timeline}/api_client.rb +6 -5
- data/lib/hubspot/codegen/crm/{objects → timeline}/api_error.rb +4 -4
- data/lib/hubspot/codegen/crm/{objects → timeline}/configuration.rb +6 -6
- data/lib/hubspot/codegen/crm/timeline/models/add_numbers.rb +280 -0
- data/lib/hubspot/codegen/crm/timeline/models/batch_input_timeline_event.rb +219 -0
- data/lib/hubspot/codegen/crm/{objects/models/batch_response_simple_public_object.rb → timeline/models/batch_response_timeline_event_response.rb} +17 -14
- data/lib/hubspot/codegen/crm/timeline/models/begins_with.rb +294 -0
- data/lib/hubspot/codegen/crm/timeline/models/boolean_property_variable.rb +280 -0
- data/lib/hubspot/codegen/crm/timeline/models/collection_response_timeline_event_template.rb +228 -0
- data/lib/hubspot/codegen/crm/timeline/models/concat_strings.rb +280 -0
- data/lib/hubspot/codegen/crm/timeline/models/constant_boolean.rb +280 -0
- data/lib/hubspot/codegen/crm/timeline/models/constant_number.rb +280 -0
- data/lib/hubspot/codegen/crm/timeline/models/constant_string.rb +280 -0
- data/lib/hubspot/codegen/crm/timeline/models/contains.rb +294 -0
- data/lib/hubspot/codegen/crm/timeline/models/date.rb +280 -0
- data/lib/hubspot/codegen/crm/timeline/models/divide_numbers.rb +280 -0
- data/lib/hubspot/codegen/crm/{objects → timeline}/models/error.rb +18 -8
- data/lib/hubspot/codegen/crm/{objects → timeline}/models/error_detail.rb +26 -29
- data/lib/hubspot/codegen/crm/timeline/models/event_detail.rb +217 -0
- data/lib/hubspot/codegen/crm/timeline/models/extract_most_recent_email_reply_html.rb +280 -0
- data/lib/hubspot/codegen/crm/timeline/models/extract_most_recent_email_reply_text.rb +280 -0
- data/lib/hubspot/codegen/crm/timeline/models/extract_most_recent_plain_text_email_reply.rb +280 -0
- data/lib/hubspot/codegen/crm/timeline/models/fetch_exchange_rate.rb +280 -0
- data/lib/hubspot/codegen/crm/{objects/models/batch_input_simple_public_object_input.rb → timeline/models/has_email_reply.rb} +78 -15
- data/lib/hubspot/codegen/crm/timeline/models/has_plain_text_email_reply.rb +280 -0
- data/lib/hubspot/codegen/crm/timeline/models/if_boolean.rb +303 -0
- data/lib/hubspot/codegen/crm/timeline/models/if_number.rb +303 -0
- data/lib/hubspot/codegen/crm/timeline/models/if_string.rb +303 -0
- data/lib/hubspot/codegen/crm/timeline/models/is_present.rb +294 -0
- data/lib/hubspot/codegen/crm/timeline/models/less_than.rb +280 -0
- data/lib/hubspot/codegen/crm/timeline/models/less_than_or_equal.rb +280 -0
- data/lib/hubspot/codegen/crm/timeline/models/lower_case.rb +280 -0
- data/lib/hubspot/codegen/crm/timeline/models/max_numbers.rb +280 -0
- data/lib/hubspot/codegen/crm/timeline/models/min_numbers.rb +280 -0
- data/lib/hubspot/codegen/crm/timeline/models/model_and.rb +280 -0
- data/lib/hubspot/codegen/crm/timeline/models/model_not.rb +280 -0
- data/lib/hubspot/codegen/crm/timeline/models/model_or.rb +280 -0
- data/lib/hubspot/codegen/crm/{objects/models/filter.rb → timeline/models/month.rb} +36 -28
- data/lib/hubspot/codegen/crm/timeline/models/more_than.rb +280 -0
- data/lib/hubspot/codegen/crm/timeline/models/more_than_or_equal.rb +280 -0
- data/lib/hubspot/codegen/crm/timeline/models/multiply_numbers.rb +280 -0
- data/lib/hubspot/codegen/crm/timeline/models/next_page.rb +224 -0
- data/lib/hubspot/codegen/crm/{objects/models/batch_input_simple_public_object_id.rb → timeline/models/now.rb} +78 -15
- data/lib/hubspot/codegen/crm/timeline/models/number_equals.rb +280 -0
- data/lib/hubspot/codegen/crm/timeline/models/number_property_variable.rb +280 -0
- data/lib/hubspot/codegen/crm/timeline/models/number_to_string.rb +280 -0
- data/lib/hubspot/codegen/crm/timeline/models/paging.rb +210 -0
- data/lib/hubspot/codegen/crm/timeline/models/parse_number.rb +280 -0
- data/lib/hubspot/codegen/crm/timeline/models/period_to_months.rb +280 -0
- data/lib/hubspot/codegen/crm/timeline/models/pipeline_probability.rb +280 -0
- data/lib/hubspot/codegen/crm/timeline/models/round_down_numbers.rb +280 -0
- data/lib/hubspot/codegen/crm/timeline/models/round_up_numbers.rb +280 -0
- data/lib/hubspot/codegen/crm/timeline/models/string_equals.rb +280 -0
- data/lib/hubspot/codegen/crm/timeline/models/string_property_variable.rb +280 -0
- data/lib/hubspot/codegen/crm/timeline/models/subtract_numbers.rb +280 -0
- data/lib/hubspot/codegen/crm/timeline/models/time_between.rb +280 -0
- data/lib/hubspot/codegen/crm/{objects/models/public_object_search_request.rb → timeline/models/timeline_event.rb} +101 -69
- data/lib/hubspot/codegen/crm/{objects/models/simple_public_object_id.rb → timeline/models/timeline_event_i_frame.rb} +79 -18
- data/lib/hubspot/codegen/crm/timeline/models/timeline_event_response.rb +342 -0
- data/lib/hubspot/codegen/crm/{objects/models/simple_public_object.rb → timeline/models/timeline_event_template.rb} +62 -56
- data/lib/hubspot/codegen/crm/{objects/models/batch_read_input_simple_public_object_id.rb → timeline/models/timeline_event_template_create_request.rb} +63 -36
- data/lib/hubspot/codegen/crm/timeline/models/timeline_event_template_token.rb +328 -0
- data/lib/hubspot/codegen/crm/timeline/models/timeline_event_template_token_option.rb +229 -0
- data/lib/hubspot/codegen/crm/timeline/models/timeline_event_template_token_update_request.rb +244 -0
- data/lib/hubspot/codegen/crm/{objects/models/simple_public_object_batch_input.rb → timeline/models/timeline_event_template_update_request.rb} +57 -19
- data/lib/hubspot/codegen/crm/timeline/models/upper_case.rb +280 -0
- data/lib/hubspot/codegen/crm/timeline/models/xor.rb +280 -0
- data/lib/hubspot/codegen/crm/timeline/models/year.rb +280 -0
- data/lib/hubspot/codegen/oauth/api/default_api.rb +270 -0
- data/lib/hubspot/codegen/oauth/api_client.rb +3 -4
- data/lib/hubspot/codegen/oauth/configuration.rb +3 -3
- data/lib/hubspot/codegen/oauth/models/error.rb +14 -25
- data/lib/hubspot/codegen/oauth/models/error_detail.rb +26 -6
- data/lib/hubspot/codegen/oauth/models/{refresh_token.rb → token_response_if.rb} +33 -47
- data/lib/hubspot/codegen/webhooks/api/settings_api.rb +214 -0
- data/lib/hubspot/codegen/webhooks/api/subscriptions_api.rb +360 -0
- data/lib/hubspot/codegen/webhooks/api_client.rb +420 -0
- data/lib/hubspot/codegen/webhooks/api_error.rb +59 -0
- data/lib/hubspot/codegen/webhooks/configuration.rb +256 -0
- data/lib/hubspot/codegen/webhooks/models/error.rb +290 -0
- data/lib/hubspot/codegen/webhooks/models/error_detail.rb +256 -0
- data/lib/hubspot/codegen/webhooks/models/settings_change_request.rb +229 -0
- data/lib/hubspot/codegen/webhooks/models/settings_response.rb +254 -0
- data/lib/hubspot/codegen/webhooks/models/subscription_create_request.rb +268 -0
- data/lib/hubspot/codegen/webhooks/models/subscription_list_response.rb +217 -0
- data/lib/hubspot/codegen/webhooks/models/subscription_patch_request.rb +210 -0
- data/lib/hubspot/codegen/{oauth/models/json_node.rb → webhooks/models/subscription_response.rb} +75 -189
- data/lib/hubspot/codegen/webhooks/models/throttling_settings.rb +264 -0
- data/lib/hubspot/version.rb +1 -1
- data/sample-apps/companies-app/Gemfile.lock +2 -2
- data/sample-apps/companies-app/app/lib/services/authorization/tokens/generate.rb +2 -2
- data/sample-apps/companies-app/app/lib/services/authorization/tokens/refresh.rb +2 -2
- data/sample-apps/companies-app/app/lib/services/hubspot/associations/create.rb +3 -2
- data/sample-apps/companies-app/app/lib/services/hubspot/associations/delete.rb +3 -2
- data/sample-apps/contacts-app/Gemfile.lock +2 -2
- data/sample-apps/contacts-app/app/lib/services/authorization/tokens/generate.rb +2 -2
- data/sample-apps/contacts-app/app/lib/services/authorization/tokens/refresh.rb +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/update.rb +1 -1
- data/sample-apps/contacts-app/app/views/contacts/show.html.erb +1 -0
- data/sample-apps/leaky-bucket-app/Gemfile.lock +2 -2
- data/sample-apps/leaky-bucket-app/app/lib/services/authorization/tokens/generate.rb +2 -2
- data/sample-apps/leaky-bucket-app/app/lib/services/authorization/tokens/refresh.rb +2 -2
- data/sample-apps/oauth-app/Gemfile.lock +2 -2
- data/sample-apps/oauth-app/app/lib/services/authorization/tokens/generate.rb +2 -2
- data/sample-apps/oauth-app/app/lib/services/authorization/tokens/refresh.rb +2 -2
- data/sample-apps/oauth-app/app/lib/services/hubspot/contacts/create.rb +1 -1
- data/sample-apps/oauth-app/app/lib/services/hubspot/contacts/update.rb +1 -1
- data/sample-apps/rate-limits-redis-sample-app/app/lib/services/authorization/tokens/generate.rb +2 -2
- data/sample-apps/rate-limits-redis-sample-app/app/lib/services/authorization/tokens/refresh.rb +2 -2
- data/sample-apps/retry-middleware-sample-app/app/lib/services/authorization/tokens/generate.rb +2 -2
- data/sample-apps/retry-middleware-sample-app/app/lib/services/authorization/tokens/refresh.rb +2 -2
- metadata +170 -90
- data/lib/hubspot/codegen/crm/objects/api/associations_api.rb +0 -254
- data/lib/hubspot/codegen/crm/objects/api/basic_api.rb +0 -389
- data/lib/hubspot/codegen/crm/objects/api/batch_api.rb +0 -293
- data/lib/hubspot/codegen/crm/objects/api/search_api.rb +0 -92
- data/lib/hubspot/codegen/crm/objects/models/batch_input_simple_public_object_batch_input.rb +0 -217
- data/lib/hubspot/codegen/crm/objects/models/collection_response_simple_public_object.rb +0 -226
- data/lib/hubspot/codegen/crm/objects/models/collection_response_simple_public_object_id.rb +0 -226
- data/lib/hubspot/codegen/crm/objects/models/collection_response_with_total_simple_public_object.rb +0 -241
- data/lib/hubspot/codegen/crm/objects/models/filter_group.rb +0 -217
- data/lib/hubspot/codegen/crm/objects/models/next_page.rb +0 -224
- data/lib/hubspot/codegen/crm/objects/models/paging.rb +0 -210
- data/lib/hubspot/codegen/crm/objects/models/simple_public_object_input.rb +0 -217
- data/lib/hubspot/codegen/oauth/api/access_tokens_api.rb +0 -84
- data/lib/hubspot/codegen/oauth/api/refresh_tokens_api.rb +0 -336
- data/lib/hubspot/codegen/oauth/api/tokens_api.rb +0 -98
- data/spec/objects/api/associations_api_spec.rb +0 -76
- data/spec/objects/api/basic_api_spec.rb +0 -108
- data/spec/objects/api/batch_api_spec.rb +0 -88
- data/spec/objects/api/search_api_spec.rb +0 -48
- data/spec/objects/api_client_spec.rb +0 -226
- data/spec/objects/configuration_spec.rb +0 -42
- data/spec/objects/models/batch_input_simple_public_object_batch_input_spec.rb +0 -41
- data/spec/objects/models/batch_input_simple_public_object_id_spec.rb +0 -41
- data/spec/objects/models/batch_input_simple_public_object_input_spec.rb +0 -41
- data/spec/objects/models/batch_read_input_simple_public_object_id_spec.rb +0 -47
- data/spec/objects/models/batch_response_simple_public_object_spec.rb +0 -81
- data/spec/objects/models/collection_response_simple_public_object_id_spec.rb +0 -47
- data/spec/objects/models/collection_response_simple_public_object_spec.rb +0 -47
- data/spec/objects/models/collection_response_with_total_simple_public_object_spec.rb +0 -53
- data/spec/objects/models/error_detail_spec.rb +0 -65
- data/spec/objects/models/error_spec.rb +0 -71
- data/spec/objects/models/filter_group_spec.rb +0 -41
- data/spec/objects/models/filter_spec.rb +0 -57
- data/spec/objects/models/next_page_spec.rb +0 -47
- data/spec/objects/models/paging_spec.rb +0 -41
- data/spec/objects/models/public_object_search_request_spec.rb +0 -71
- data/spec/objects/models/simple_public_object_batch_input_spec.rb +0 -47
- data/spec/objects/models/simple_public_object_id_spec.rb +0 -41
- data/spec/objects/models/simple_public_object_input_spec.rb +0 -41
- data/spec/objects/models/simple_public_object_spec.rb +0 -77
@@ -6,7 +6,7 @@
|
|
6
6
|
The version of the OpenAPI document: v3
|
7
7
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
|
-
OpenAPI Generator version: 4.2.
|
9
|
+
OpenAPI Generator version: 4.2.3
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -116,7 +116,7 @@ module Hubspot
|
|
116
116
|
def valid?
|
117
117
|
return false if @property_name.nil?
|
118
118
|
return false if @operator.nil?
|
119
|
-
operator_validator = EnumAttributeValidator.new('String', ["EQ", "NEQ", "LT", "LTE", "GT", "GTE", "BETWEEN", "IN", "NOT_IN", "HAS_PROPERTY", "NOT_HAS_PROPERTY", "
|
119
|
+
operator_validator = EnumAttributeValidator.new('String', ["EQ", "NEQ", "LT", "LTE", "GT", "GTE", "BETWEEN", "IN", "NOT_IN", "HAS_PROPERTY", "NOT_HAS_PROPERTY", "CONTAINS_TOKEN", "NOT_CONTAINS_TOKEN"])
|
120
120
|
return false unless operator_validator.valid?(@operator)
|
121
121
|
true
|
122
122
|
end
|
@@ -124,7 +124,7 @@ module Hubspot
|
|
124
124
|
# Custom attribute writer method checking allowed values (enum).
|
125
125
|
# @param [Object] operator Object to be assigned
|
126
126
|
def operator=(operator)
|
127
|
-
validator = EnumAttributeValidator.new('String', ["EQ", "NEQ", "LT", "LTE", "GT", "GTE", "BETWEEN", "IN", "NOT_IN", "HAS_PROPERTY", "NOT_HAS_PROPERTY", "
|
127
|
+
validator = EnumAttributeValidator.new('String', ["EQ", "NEQ", "LT", "LTE", "GT", "GTE", "BETWEEN", "IN", "NOT_IN", "HAS_PROPERTY", "NOT_HAS_PROPERTY", "CONTAINS_TOKEN", "NOT_CONTAINS_TOKEN"])
|
128
128
|
unless validator.valid?(operator)
|
129
129
|
fail ArgumentError, "invalid value for \"operator\", must be one of #{validator.allowable_values}."
|
130
130
|
end
|
@@ -6,7 +6,7 @@
|
|
6
6
|
The version of the OpenAPI document: v3
|
7
7
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
|
-
OpenAPI Generator version: 4.2.
|
9
|
+
OpenAPI Generator version: 4.2.3
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -50,7 +50,7 @@ module Hubspot
|
|
50
50
|
:'properties' => :'Hash<String, String>',
|
51
51
|
:'created_at' => :'DateTime',
|
52
52
|
:'updated_at' => :'DateTime',
|
53
|
-
:'associations' => :'Hash<String,
|
53
|
+
:'associations' => :'Hash<String, CollectionResponseAssociatedId>',
|
54
54
|
:'archived' => :'Boolean',
|
55
55
|
:'archived_at' => :'DateTime'
|
56
56
|
}
|
@@ -130,14 +130,6 @@ module Hubspot
|
|
130
130
|
invalid_properties.push('invalid value for "updated_at", updated_at cannot be nil.')
|
131
131
|
end
|
132
132
|
|
133
|
-
if @associations.nil?
|
134
|
-
invalid_properties.push('invalid value for "associations", associations cannot be nil.')
|
135
|
-
end
|
136
|
-
|
137
|
-
if @archived.nil?
|
138
|
-
invalid_properties.push('invalid value for "archived", archived cannot be nil.')
|
139
|
-
end
|
140
|
-
|
141
133
|
invalid_properties
|
142
134
|
end
|
143
135
|
|
@@ -148,8 +140,6 @@ module Hubspot
|
|
148
140
|
return false if @properties.nil?
|
149
141
|
return false if @created_at.nil?
|
150
142
|
return false if @updated_at.nil?
|
151
|
-
return false if @associations.nil?
|
152
|
-
return false if @archived.nil?
|
153
143
|
true
|
154
144
|
end
|
155
145
|
|
@@ -24,35 +24,35 @@ module Hubspot
|
|
24
24
|
end
|
25
25
|
# Delete a card
|
26
26
|
# Permanently deletes a card definition with the given ID. Once deleted, data fetch requests for this card will no longer be sent to your service. This can't be undone.
|
27
|
+
# @param app_id [Integer] The ID of the target app.
|
27
28
|
# @param card_id [String] The ID of the card to delete.
|
28
|
-
# @param app_id [Object] The ID of the target app.
|
29
29
|
# @param [Hash] opts the optional parameters
|
30
30
|
# @return [nil]
|
31
|
-
def archive(
|
32
|
-
archive_with_http_info(
|
31
|
+
def archive(app_id, card_id, opts = {})
|
32
|
+
archive_with_http_info(app_id, card_id, opts)
|
33
33
|
nil
|
34
34
|
end
|
35
35
|
|
36
36
|
# Delete a card
|
37
37
|
# Permanently deletes a card definition with the given ID. Once deleted, data fetch requests for this card will no longer be sent to your service. This can't be undone.
|
38
|
+
# @param app_id [Integer] The ID of the target app.
|
38
39
|
# @param card_id [String] The ID of the card to delete.
|
39
|
-
# @param app_id [Object] The ID of the target app.
|
40
40
|
# @param [Hash] opts the optional parameters
|
41
41
|
# @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
|
42
|
-
def archive_with_http_info(
|
42
|
+
def archive_with_http_info(app_id, card_id, opts = {})
|
43
43
|
if @api_client.config.debugging
|
44
44
|
@api_client.config.logger.debug 'Calling API: CardsApi.archive ...'
|
45
45
|
end
|
46
|
-
# verify the required parameter 'card_id' is set
|
47
|
-
if @api_client.config.client_side_validation && card_id.nil?
|
48
|
-
fail ArgumentError, "Missing the required parameter 'card_id' when calling CardsApi.archive"
|
49
|
-
end
|
50
46
|
# verify the required parameter 'app_id' is set
|
51
47
|
if @api_client.config.client_side_validation && app_id.nil?
|
52
48
|
fail ArgumentError, "Missing the required parameter 'app_id' when calling CardsApi.archive"
|
53
49
|
end
|
50
|
+
# verify the required parameter 'card_id' is set
|
51
|
+
if @api_client.config.client_side_validation && card_id.nil?
|
52
|
+
fail ArgumentError, "Missing the required parameter 'card_id' when calling CardsApi.archive"
|
53
|
+
end
|
54
54
|
# resource path
|
55
|
-
local_var_path = '/crm/v3/extensions/cards/{appId}/{cardId}'.sub('{' + '
|
55
|
+
local_var_path = '/crm/v3/extensions/cards/{appId}/{cardId}'.sub('{' + 'appId' + '}', CGI.escape(app_id.to_s)).sub('{' + 'cardId' + '}', CGI.escape(card_id.to_s))
|
56
56
|
|
57
57
|
# query parameters
|
58
58
|
query_params = opts[:query_params] || {}
|
@@ -92,7 +92,7 @@ module Hubspot
|
|
92
92
|
|
93
93
|
# Create a new card
|
94
94
|
# Defines a new card that will become active on an account when this app is installed.
|
95
|
-
# @param app_id [
|
95
|
+
# @param app_id [Integer] The ID of the target app.
|
96
96
|
# @param [Hash] opts the optional parameters
|
97
97
|
# @option opts [CardCreateRequest] :card_create_request The new card definition.
|
98
98
|
# @return [CardResponse]
|
@@ -103,7 +103,7 @@ module Hubspot
|
|
103
103
|
|
104
104
|
# Create a new card
|
105
105
|
# Defines a new card that will become active on an account when this app is installed.
|
106
|
-
# @param app_id [
|
106
|
+
# @param app_id [Integer] The ID of the target app.
|
107
107
|
# @param [Hash] opts the optional parameters
|
108
108
|
# @option opts [CardCreateRequest] :card_create_request The new card definition.
|
109
109
|
# @return [Array<(CardResponse, Integer, Hash)>] CardResponse data, response status code and response headers
|
@@ -116,7 +116,7 @@ module Hubspot
|
|
116
116
|
fail ArgumentError, "Missing the required parameter 'app_id' when calling CardsApi.create"
|
117
117
|
end
|
118
118
|
# resource path
|
119
|
-
local_var_path = '/crm/v3/extensions/cards/{appId}'.sub('{' + 'appId' + '}', CGI.escape(app_id.to_s)
|
119
|
+
local_var_path = '/crm/v3/extensions/cards/{appId}'.sub('{' + 'appId' + '}', CGI.escape(app_id.to_s))
|
120
120
|
|
121
121
|
# query parameters
|
122
122
|
query_params = opts[:query_params] || {}
|
@@ -158,7 +158,7 @@ module Hubspot
|
|
158
158
|
|
159
159
|
# Get all cards
|
160
160
|
# Returns a list of cards for a given app.
|
161
|
-
# @param app_id [
|
161
|
+
# @param app_id [Integer] The ID of the target app.
|
162
162
|
# @param [Hash] opts the optional parameters
|
163
163
|
# @return [CardListResponse]
|
164
164
|
def get_all(app_id, opts = {})
|
@@ -168,7 +168,7 @@ module Hubspot
|
|
168
168
|
|
169
169
|
# Get all cards
|
170
170
|
# Returns a list of cards for a given app.
|
171
|
-
# @param app_id [
|
171
|
+
# @param app_id [Integer] The ID of the target app.
|
172
172
|
# @param [Hash] opts the optional parameters
|
173
173
|
# @return [Array<(CardListResponse, Integer, Hash)>] CardListResponse data, response status code and response headers
|
174
174
|
def get_all_with_http_info(app_id, opts = {})
|
@@ -180,7 +180,7 @@ module Hubspot
|
|
180
180
|
fail ArgumentError, "Missing the required parameter 'app_id' when calling CardsApi.get_all"
|
181
181
|
end
|
182
182
|
# resource path
|
183
|
-
local_var_path = '/crm/v3/extensions/cards/{appId}'.sub('{' + 'appId' + '}', CGI.escape(app_id.to_s)
|
183
|
+
local_var_path = '/crm/v3/extensions/cards/{appId}'.sub('{' + 'appId' + '}', CGI.escape(app_id.to_s))
|
184
184
|
|
185
185
|
# query parameters
|
186
186
|
query_params = opts[:query_params] || {}
|
@@ -220,35 +220,35 @@ module Hubspot
|
|
220
220
|
|
221
221
|
# Get a card.
|
222
222
|
# Returns the definition for a card with the given ID.
|
223
|
+
# @param app_id [Integer] The ID of the target app.
|
223
224
|
# @param card_id [String] The ID of the target card.
|
224
|
-
# @param app_id [Object] The ID of the target app.
|
225
225
|
# @param [Hash] opts the optional parameters
|
226
226
|
# @return [CardResponse]
|
227
|
-
def get_by_id(
|
228
|
-
data, _status_code, _headers = get_by_id_with_http_info(
|
227
|
+
def get_by_id(app_id, card_id, opts = {})
|
228
|
+
data, _status_code, _headers = get_by_id_with_http_info(app_id, card_id, opts)
|
229
229
|
data
|
230
230
|
end
|
231
231
|
|
232
232
|
# Get a card.
|
233
233
|
# Returns the definition for a card with the given ID.
|
234
|
+
# @param app_id [Integer] The ID of the target app.
|
234
235
|
# @param card_id [String] The ID of the target card.
|
235
|
-
# @param app_id [Object] The ID of the target app.
|
236
236
|
# @param [Hash] opts the optional parameters
|
237
237
|
# @return [Array<(CardResponse, Integer, Hash)>] CardResponse data, response status code and response headers
|
238
|
-
def get_by_id_with_http_info(
|
238
|
+
def get_by_id_with_http_info(app_id, card_id, opts = {})
|
239
239
|
if @api_client.config.debugging
|
240
240
|
@api_client.config.logger.debug 'Calling API: CardsApi.get_by_id ...'
|
241
241
|
end
|
242
|
-
# verify the required parameter 'card_id' is set
|
243
|
-
if @api_client.config.client_side_validation && card_id.nil?
|
244
|
-
fail ArgumentError, "Missing the required parameter 'card_id' when calling CardsApi.get_by_id"
|
245
|
-
end
|
246
242
|
# verify the required parameter 'app_id' is set
|
247
243
|
if @api_client.config.client_side_validation && app_id.nil?
|
248
244
|
fail ArgumentError, "Missing the required parameter 'app_id' when calling CardsApi.get_by_id"
|
249
245
|
end
|
246
|
+
# verify the required parameter 'card_id' is set
|
247
|
+
if @api_client.config.client_side_validation && card_id.nil?
|
248
|
+
fail ArgumentError, "Missing the required parameter 'card_id' when calling CardsApi.get_by_id"
|
249
|
+
end
|
250
250
|
# resource path
|
251
|
-
local_var_path = '/crm/v3/extensions/cards/{appId}/{cardId}'.sub('{' + '
|
251
|
+
local_var_path = '/crm/v3/extensions/cards/{appId}/{cardId}'.sub('{' + 'appId' + '}', CGI.escape(app_id.to_s)).sub('{' + 'cardId' + '}', CGI.escape(card_id.to_s))
|
252
252
|
|
253
253
|
# query parameters
|
254
254
|
query_params = opts[:query_params] || {}
|
@@ -288,37 +288,37 @@ module Hubspot
|
|
288
288
|
|
289
289
|
# Update a card
|
290
290
|
# Update a card definition with new details.
|
291
|
+
# @param app_id [Integer] The ID of the target app.
|
291
292
|
# @param card_id [String] The ID of the card to update.
|
292
|
-
# @param app_id [Object] The ID of the target app.
|
293
293
|
# @param [Hash] opts the optional parameters
|
294
294
|
# @option opts [CardPatchRequest] :card_patch_request Card definition fields to be updated.
|
295
295
|
# @return [CardResponse]
|
296
|
-
def update(
|
297
|
-
data, _status_code, _headers = update_with_http_info(
|
296
|
+
def update(app_id, card_id, opts = {})
|
297
|
+
data, _status_code, _headers = update_with_http_info(app_id, card_id, opts)
|
298
298
|
data
|
299
299
|
end
|
300
300
|
|
301
301
|
# Update a card
|
302
302
|
# Update a card definition with new details.
|
303
|
+
# @param app_id [Integer] The ID of the target app.
|
303
304
|
# @param card_id [String] The ID of the card to update.
|
304
|
-
# @param app_id [Object] The ID of the target app.
|
305
305
|
# @param [Hash] opts the optional parameters
|
306
306
|
# @option opts [CardPatchRequest] :card_patch_request Card definition fields to be updated.
|
307
307
|
# @return [Array<(CardResponse, Integer, Hash)>] CardResponse data, response status code and response headers
|
308
|
-
def update_with_http_info(
|
308
|
+
def update_with_http_info(app_id, card_id, opts = {})
|
309
309
|
if @api_client.config.debugging
|
310
310
|
@api_client.config.logger.debug 'Calling API: CardsApi.update ...'
|
311
311
|
end
|
312
|
-
# verify the required parameter 'card_id' is set
|
313
|
-
if @api_client.config.client_side_validation && card_id.nil?
|
314
|
-
fail ArgumentError, "Missing the required parameter 'card_id' when calling CardsApi.update"
|
315
|
-
end
|
316
312
|
# verify the required parameter 'app_id' is set
|
317
313
|
if @api_client.config.client_side_validation && app_id.nil?
|
318
314
|
fail ArgumentError, "Missing the required parameter 'app_id' when calling CardsApi.update"
|
319
315
|
end
|
316
|
+
# verify the required parameter 'card_id' is set
|
317
|
+
if @api_client.config.client_side_validation && card_id.nil?
|
318
|
+
fail ArgumentError, "Missing the required parameter 'card_id' when calling CardsApi.update"
|
319
|
+
end
|
320
320
|
# resource path
|
321
|
-
local_var_path = '/crm/v3/extensions/cards/{appId}/{cardId}'.sub('{' + '
|
321
|
+
local_var_path = '/crm/v3/extensions/cards/{appId}/{cardId}'.sub('{' + 'appId' + '}', CGI.escape(app_id.to_s)).sub('{' + 'cardId' + '}', CGI.escape(card_id.to_s))
|
322
322
|
|
323
323
|
# query parameters
|
324
324
|
query_params = opts[:query_params] || {}
|
@@ -1,12 +1,12 @@
|
|
1
1
|
=begin
|
2
|
-
#
|
2
|
+
#CRM cards
|
3
3
|
|
4
|
-
#
|
4
|
+
#Allows an app to extend the CRM UI by surfacing custom cards in the sidebar of record pages. These cards are defined up-front as part of app configuration, then populated by external data fetch requests when the record page is accessed by a user.
|
5
5
|
|
6
6
|
The version of the OpenAPI document: v3
|
7
7
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
|
-
OpenAPI Generator version: 4.2.
|
9
|
+
OpenAPI Generator version: 4.2.3
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -16,7 +16,9 @@ module Hubspot
|
|
16
16
|
module Crm
|
17
17
|
module Extensions
|
18
18
|
module Cards
|
19
|
+
# Configuration for custom user actions on cards.
|
19
20
|
class CardActions
|
21
|
+
# A list of URL prefixes that will be accepted for card action URLs. If your data fetch response includes an action URL that doesn't begin with one of these values, it will result in an error and the card will not be displayed.
|
20
22
|
attr_accessor :base_urls
|
21
23
|
|
22
24
|
# Attribute mapping from ruby-style variable name to JSON key.
|
@@ -1,12 +1,12 @@
|
|
1
1
|
=begin
|
2
|
-
#
|
2
|
+
#CRM cards
|
3
3
|
|
4
|
-
#
|
4
|
+
#Allows an app to extend the CRM UI by surfacing custom cards in the sidebar of record pages. These cards are defined up-front as part of app configuration, then populated by external data fetch requests when the record page is accessed by a user.
|
5
5
|
|
6
6
|
The version of the OpenAPI document: v3
|
7
7
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
|
-
OpenAPI Generator version: 4.2.
|
9
|
+
OpenAPI Generator version: 4.2.3
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -16,7 +16,9 @@ module Hubspot
|
|
16
16
|
module Crm
|
17
17
|
module Extensions
|
18
18
|
module Cards
|
19
|
+
# State of card definition to be created
|
19
20
|
class CardCreateRequest
|
21
|
+
# The top-level title for this card. Displayed to users in the CRM UI.
|
20
22
|
attr_accessor :title
|
21
23
|
|
22
24
|
attr_accessor :fetch
|
@@ -1,12 +1,12 @@
|
|
1
1
|
=begin
|
2
|
-
#
|
2
|
+
#CRM cards
|
3
3
|
|
4
|
-
#
|
4
|
+
#Allows an app to extend the CRM UI by surfacing custom cards in the sidebar of record pages. These cards are defined up-front as part of app configuration, then populated by external data fetch requests when the record page is accessed by a user.
|
5
5
|
|
6
6
|
The version of the OpenAPI document: v3
|
7
7
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
|
-
OpenAPI Generator version: 4.2.
|
9
|
+
OpenAPI Generator version: 4.2.3
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -16,7 +16,9 @@ module Hubspot
|
|
16
16
|
module Crm
|
17
17
|
module Extensions
|
18
18
|
module Cards
|
19
|
+
# Configuration for displayed info on a card
|
19
20
|
class CardDisplayBody
|
21
|
+
# Card display properties. These will will be rendered as \"label : value\" pairs in the card UI. See the [example card](#) in the overview docs for more details.
|
20
22
|
attr_accessor :properties
|
21
23
|
|
22
24
|
# Attribute mapping from ruby-style variable name to JSON key.
|
@@ -1,12 +1,12 @@
|
|
1
1
|
=begin
|
2
|
-
#
|
2
|
+
#CRM cards
|
3
3
|
|
4
|
-
#
|
4
|
+
#Allows an app to extend the CRM UI by surfacing custom cards in the sidebar of record pages. These cards are defined up-front as part of app configuration, then populated by external data fetch requests when the record page is accessed by a user.
|
5
5
|
|
6
6
|
The version of the OpenAPI document: v3
|
7
7
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
|
-
OpenAPI Generator version: 4.2.
|
9
|
+
OpenAPI Generator version: 4.2.3
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -16,13 +16,18 @@ module Hubspot
|
|
16
16
|
module Crm
|
17
17
|
module Extensions
|
18
18
|
module Cards
|
19
|
+
# Definition for a card display property.
|
19
20
|
class CardDisplayProperty
|
21
|
+
# An internal identifier for this property. This value must be unique TODO.
|
20
22
|
attr_accessor :name
|
21
23
|
|
24
|
+
# The label for this property as you'd like it displayed to users.
|
22
25
|
attr_accessor :label
|
23
26
|
|
27
|
+
# Type of data represented by this property.
|
24
28
|
attr_accessor :data_type
|
25
29
|
|
30
|
+
# An array of available options that can be displayed. Only used in when `dataType` is `STATUS`.
|
26
31
|
attr_accessor :options
|
27
32
|
|
28
33
|
class EnumAttributeValidator
|
@@ -1,12 +1,12 @@
|
|
1
1
|
=begin
|
2
|
-
#
|
2
|
+
#CRM cards
|
3
3
|
|
4
|
-
#
|
4
|
+
#Allows an app to extend the CRM UI by surfacing custom cards in the sidebar of record pages. These cards are defined up-front as part of app configuration, then populated by external data fetch requests when the record page is accessed by a user.
|
5
5
|
|
6
6
|
The version of the OpenAPI document: v3
|
7
7
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
|
-
OpenAPI Generator version: 4.2.
|
9
|
+
OpenAPI Generator version: 4.2.3
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -16,9 +16,12 @@ module Hubspot
|
|
16
16
|
module Crm
|
17
17
|
module Extensions
|
18
18
|
module Cards
|
19
|
+
# Configuration for this card's data fetch request.
|
19
20
|
class CardFetchBody
|
21
|
+
# URL to a service endpoints that will respond with card details. HubSpot will call this endpoint each time a user visits a CRM record page where this card should be displayed.
|
20
22
|
attr_accessor :target_url
|
21
23
|
|
24
|
+
# An array of CRM object types where this card should be displayed. HubSpot will call your data fetch URL whenever a user visits a record page of the types defined here.
|
22
25
|
attr_accessor :object_types
|
23
26
|
|
24
27
|
# Attribute mapping from ruby-style variable name to JSON key.
|
@@ -1,12 +1,12 @@
|
|
1
1
|
=begin
|
2
|
-
#
|
2
|
+
#CRM cards
|
3
3
|
|
4
|
-
#
|
4
|
+
#Allows an app to extend the CRM UI by surfacing custom cards in the sidebar of record pages. These cards are defined up-front as part of app configuration, then populated by external data fetch requests when the record page is accessed by a user.
|
5
5
|
|
6
6
|
The version of the OpenAPI document: v3
|
7
7
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
|
-
OpenAPI Generator version: 4.2.
|
9
|
+
OpenAPI Generator version: 4.2.3
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -16,9 +16,12 @@ module Hubspot
|
|
16
16
|
module Crm
|
17
17
|
module Extensions
|
18
18
|
module Cards
|
19
|
+
# Variant of CardFetchBody with fields as optional for patches
|
19
20
|
class CardFetchBodyPatch
|
21
|
+
# URL to a service endpoint that will respond with details for this card. HubSpot will call this endpoint each time a user visits a CRM record page where this card should be displayed.
|
20
22
|
attr_accessor :target_url
|
21
23
|
|
24
|
+
# An array of CRM object types where this card should be displayed. HubSpot will call your target URL whenever a user visits a record page of the types defined here.
|
22
25
|
attr_accessor :object_types
|
23
26
|
|
24
27
|
# Attribute mapping from ruby-style variable name to JSON key.
|
@@ -225,4 +228,4 @@ module Hubspot
|
|
225
228
|
end
|
226
229
|
end
|
227
230
|
end
|
228
|
-
end
|
231
|
+
end
|
@@ -1,12 +1,12 @@
|
|
1
1
|
=begin
|
2
|
-
#
|
2
|
+
#CRM cards
|
3
3
|
|
4
|
-
#
|
4
|
+
#Allows an app to extend the CRM UI by surfacing custom cards in the sidebar of record pages. These cards are defined up-front as part of app configuration, then populated by external data fetch requests when the record page is accessed by a user.
|
5
5
|
|
6
6
|
The version of the OpenAPI document: v3
|
7
7
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
|
-
OpenAPI Generator version: 4.2.
|
9
|
+
OpenAPI Generator version: 4.2.3
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -16,7 +16,9 @@ module Hubspot
|
|
16
16
|
module Crm
|
17
17
|
module Extensions
|
18
18
|
module Cards
|
19
|
+
# List of card definitions
|
19
20
|
class CardListResponse
|
21
|
+
# List of card definitions
|
20
22
|
attr_accessor :results
|
21
23
|
|
22
24
|
# Attribute mapping from ruby-style variable name to JSON key.
|