Skip to content

Commit fbaa458

Browse files
Merge pull request #349 from HubSpot/feature/v10.0.0
Feature/v10.0.0
2 parents 5e0e06a + 8606a02 commit fbaa458

File tree

704 files changed

+38951
-21507
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

704 files changed

+38951
-21507
lines changed

CHANGELOG.md

Lines changed: 94 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,100 @@ All notable changes to this project will be documented in this file.
55
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
66
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
77

8-
## [Unreleased](https://github.com/HubSpot/hubspot-api-python/compare/v9.0.0...HEAD)
8+
## [Unreleased](https://github.com/HubSpot/hubspot-api-python/compare/v10.0.0...HEAD)
9+
10+
## [10.0.0](https://github.com/HubSpot/hubspot-api-python/compare/v9.0.0...v10.0.0) - 2024-10-10
11+
12+
## CMS
13+
14+
- Added parameter `campaign_name` to `cms.blogs.blog_posts.models.content_language_variation`.
15+
- Added parameter `breakpoint_styles` to `cms.blogs.blog_posts.models.styles`.
16+
- Added parameter `name` to `cms.hubdb.rows_api.clone_draft_table_row()`.
17+
- Added parameter `archived` to `cms.hubdb.rows_api.get_draft_table_row_by_id()` and `cms.hubdb.rows_api.get_table_row()`.
18+
- Added parameters `offset` and `archived` to `cms.hubdb.rows_api.get_table_rows()` and `cms.hubdb.rows_api.read_draft_table_rows()`.
19+
- Added parameter `content_type` parameter to `cms.hubdb.tables_api.export_table()` and `cms.hubdb.tables_api.get_all_tables()`.
20+
- Added parameter `is_get_localized_schema` parameter to `cms.hubdb.tables_api.get_draft_table_details_by_id()`, `cms.hubdb.tables_api.get_table_details()` and `cms.hubdb.tables_api.update_draft_table()`.
21+
- Added parameters `created_by_user_id`, `updated_by`, `updated_by_user_id`, `created_at`, `created_by` and `updated_at` to `cms.hubdb.models.column` and `cms.hubdb.models.option`.
22+
- Added parameter `is_hubspot_defined` to `cms.hubdb.models.hub_db_table_clone_request`.
23+
- Added `do_async()` and `get_async_status()` methods to `cms.source_code.extract_api`.
24+
- Changed the response object type from `CollectionResponseWithTotalHubDbTableRowV3ForwardPaging` to `UnifiedCollectionResponseWithTotalBaseHubDbTableRowV3` for `cms.hubdb.rows_api.get_table_rows()` and `cms.hubdb.rows_api.read_draft_table_rows()`.
25+
- Changed parameter `batch_input_string: BatchInputString` to `batch_input_hub_db_table_row_batch_clone_request: BatchInputHubDbTableRowBatchCloneRequest` in `cms.hubdb.rows_api.clone_draft_table_row()`.
26+
- Updated `language` validation: Added a predefined list of `allowed_values` for stricter validation for `cms.blogs.blog_posts.models.attach_to_lang_primary_request_v_next`.
27+
- Updated `type` validation: Expanded `allowed_values` for validation for `cms.hubdb.models.column_request`.
28+
- Removed `cms.source_code.extract_api.extract_by_path()` method.
29+
- Removed `cms.source_code.source_code_extract_api`.
30+
31+
## CRM
32+
33+
- Added `crm.objects.leads` Api client.
34+
- Added method `upsert` to `crm.companies.batch_api`, `crm.contacts.batch_api`, `crm.deals.batch_api`, `crm.line_items.batch_api`, `crm.objects.batch_api`, `crm.objects.calls.batch_api`, `crm.objects.communications.batch_api`, `crm.objects.emails.batch_api`, `crm.objects.meetings.batch_api`, `crm.objects.notes.batch_api`, `crm.objects.postal_mail.batch_api`, `crm.objects.tasks.batch_api`, `crm.objects.taxes.batch_api`, `crm.products.batch_api`, `crm.quotes.batch_api`, `crm.tickets.batch_api`.
35+
- Added parameter `object_write_trace_id` to models: `simple_public_object_input`, `simple_public_object_batch_input`, `simple_public_object_input_for_create` for `crm.companies`, `crm.contacts`, `crm.deals`, `crm.line_items`, `crm.objects`, `crm.objects.calls`, `crm.objects.communications`, `crm.objects.emails`, `crm.objects.meetings`, `crm.objects.notes`, `crm.objects.postal_mail`, `crm.objects.tasks`, `crm.objects.taxes`, `crm.products`, `crm.quotes`, `crm.tickets`.
36+
- Added method `mark_as_ready()` to `crm.extensions.calling.recording_settings_api`.
37+
- Added parameters `created_by_user_id` and `updated_by_user_id` to `crm.schemas.models.object_schema`.
38+
- Added parameter `clear_description` to `crm.schemas.models.object_type_definition_patch`.
39+
- Added parameter `supports_inbound_calling` to `crm.extensions.calling.models.settings_patch_request`, `crm.extensions.calling.models.settings_request` and `crm.extensions.calling.models.settings_response`.
40+
- Changed `association_category` and `association_type_id` parameters can be `None` in `crm.companies.models.association_spec`, `crm.contacts.models.association_spec`, `crm.deals.models.association_spec`, `crm.tickets.models.association_spec`.
41+
- Changed `types` and `to` parameters can be `None` in `crm.companies.models.public_associations_for_object`, `crm.contacts.models.public_associations_for_object`, `crm.deals.models.public_associations_for_object`, and `crm.tickets.models.public_associations_for_object`.
42+
- Changed `id` parameters can be `None` in `crm.companies.models.public_object_id`, `crm.contacts.models.public_object_id`, `crm.deals.models.public_object_id`, and `crm.tickets.models.public_object_id`.
43+
- Changed `limit`, `after`, `sorts`, `properties`, and `filter_groups` parameters can be `None` in `crm.companies.models.public_object_search_request`, `crm.contacts.models.public_object_search_request`, `crm.deals.models.public_object_search_request`, `crm.line_items.models.public_object_search_request`, `crm.objects.models.public_object_search_request`, `crm.objects.calls.models.public_object_search_request`, `crm.objects.communications.models.public_object_search_request`, `crm.objects.emails.models.public_object_search_request`, `crm.objects.goals.models.public_object_search_request`, `crm.objects.postal_mail.models.public_object_search_request`, `crm.objects.tasks.models.public_object_search_request`, `crm.objects.taxes.models.public_object_search_request`, `crm.products.models.public_object_search_request`, `crm.quotes.models.public_object_search_request`, and `crm.tickets.models.public_object_search_request`.
44+
- Changed `associations` parameters can be `None` in `crm.companies.models.simple_public_object_input_for_create`, `crm.contacts.models.simple_public_object_input_for_create`, `crm.deals.models.simple_public_object_input_for_create`, and `crm.tickets.models.simple_public_object_input_for_create`.
45+
- Renamed `public_object_api` to `merge_api` in `crm.companies`, `crm.contacts`, `crm.deals` and `crm.tickets`.
46+
- Removed `archive`, `create` and `update` methods from `crm.objects.goals.basic_api` and `crm.objects.goals.batch_api`.
47+
- Removed GDPRApi:
48+
`crm.companies.gdpr_api`, `crm.deals.gdpr_api`, `crm.line_items.gdpr_api`, `crm.objects.gdpr_api`, `crm.objects.calls.gdpr_api`, `crm.objects.communications.gdpr_api`, `crm.objects.emails.gdpr_api`, `crm.objects.goals.gdpr_api`, `crm.objects.meetings.gdpr_api`, `crm.objects.notes.gdpr_api`, `crm.objects.postal_mail.gdpr_api`, `crm.objects.tasks.gdpr_api`, `crm.objects.taxes.gdpr_api`, `crm.products.gdpr_api`, `crm.quotes.gdpr_api`, `crm.tickets.gdpr_api`.
49+
- Removed PublicObjectApi:
50+
`crm.line_items.public_object_api`, `crm.objects.public_object_api`, `crm.objects.calls.public_object_api`, `crm.objects.communications.public_object_api`, `crm.objects.emails.public_object_api`, `crm.objects.goals.public_object_api`, `crm.objects.meetings.public_object_api`, `crm.objects.notes.public_object_api`, `crm.objects.postal_mail.public_object_api`, `crm.objects.tasks.public_object_api`, `crm.objects.taxes.public_object_api`, `crm.products.public_object_api`, `crm.quotes.public_object_api`.
51+
- Removed `crm.schemas.public_object_schemas_api`.
52+
- Removed `crm.extensions.accounting` API client.
53+
54+
## CRM Lists
55+
56+
- Added `crm.objects.lists.folders_api` Api.
57+
- Added `crm.lists.mapping_api` Api.
58+
- Added `crm.lists.memberships_api.get_lists()` and `crm.lists.memberships_api.get_page_ordered_by_added_to_list_date()`.
59+
- Added parameter `custom_properties` to `crm.lists.models.list_create_request`.
60+
- Added parameters `list_ids`, `processing_types` and `sort` to `crm.lists.models.list_search_request`.
61+
- Added parameters `coalescing_refine_by` to `crm.lists.models.public_unified_events_filter_branch`.
62+
- Changed response object type `CollectionResponseLong` to `ApiCollectionResponseJoinTimeAndRecordId` of `crm.lists.membershipsApi.get_page()`.
63+
- Changed `offset` and `additional_properties` parameters can be `None` in `crm.lists.models.list_search_request`.
64+
- Rename model from `PublicEventAnalyticsFilterCoalescingRefineBy` to `PublicFormSubmissionFilterCoalescingRefineBy`.
65+
- Rename model from `PublicPropertyFilterOperation` to `PublicSurveyMonkeyValueFilterValueComparison`.
66+
- Renamed Api client from `crm.lists.list_app_membership_api` to `crm.lists.memberships_api`.
67+
- Renamed Api client from `crm.lists.list_app_api` to `crm.lists.lists_api`.
68+
69+
## Marketing
70+
71+
- Added `marketing.events.participant_state_api` Api.
72+
- Added new methods `batch_archive`, `batch_upsert`, `cancel` and `complete` to `marketing.events.basic_api`.
73+
- Added parameter `event_completed` to `marketing.events.models.marketing_event_public_default_response`,`marketing.events.models.marketing_event_create_request_params`, `marketing.events.models.marketing_event_default_response`, `marketing.events.models.marketing_event_public_read_response`.
74+
- Added parameters `attendance_state_calculation_timestamp`, `event_completed` and `import_status` to `marketing.events.models.marketing_event_update_request_params`.
75+
- Added parameters `data_sensitivity`, `unit` and `is_encrypted` to `marketing.events.models.property_value`.
76+
- Updated `source` validation: Expanded `allowed_values` for validation for `marketing.events.models.property_value`.
77+
- Renamed method `create` to `create_by_contact_id` in `marketing.events.attendance_subscriber_state_changes_api`.
78+
- Renamed method `create_by_email` to `create_by_contact_email` in `marketing.events.attendance_subscriber_state_changes_api`.
79+
- Renamed method `get_by_id` to `get_details` in `marketing.events.basic_api`.
80+
- Renamed method `replace` to `upsert` in `marketing.events.basic_api`.
81+
- Renamed method `create` to `update` in `marketing.events.settings_api`.
82+
- Renamed method `do_email_upsert_by_id` to `upsert_by_contact_email` in `marketing.events.subscriber_state_changes_api`.
83+
- Renamed method `do_upsert_by_id` to `upsert_by_contact_id` in `marketing.events.subscriber_state_changes_api`.
84+
- Moved method `do_search` from `marketing.events.search_api` to `marketing.events.basic_api`.
85+
- Removed `marketing.events.batch_api`.
86+
- Removed `marketing.events.marketing_events_external_api`.
87+
- Removed `marketing.events.search_api`.
88+
89+
## Events and OAuth
90+
91+
- Added `events.api.default_api` Api.
92+
- Moved client from `auth.oauth` to `oauth`.
93+
94+
## Signature
95+
96+
- Fix `MAX_ALLOWED_TIMESTAMP`.
97+
- Changed `timestamp` form `float` to `str`.
98+
99+
## Pkg_resources
100+
101+
- remove deprecated `pkg_resources`.
9102

10103
## [9.0.0](https://github.com/HubSpot/hubspot-api-python/compare/v8.2.1...v9.0.0) - 2024-03-14
11104

VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
9.0.0
1+
10.0.0

hubspot/auth/oauth/__init__.py

Lines changed: 0 additions & 39 deletions
This file was deleted.

hubspot/auth/oauth/api/__init__.py

Lines changed: 0 additions & 8 deletions
This file was deleted.

hubspot/auth/oauth/models/__init__.py

Lines changed: 0 additions & 21 deletions
This file was deleted.

hubspot/automation/actions/models/public_action_definition_input_field_dependencies_inner.py

Lines changed: 28 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -35,30 +35,30 @@ class PublicActionDefinitionInputFieldDependenciesInner(object):
3535
attribute_map (dict): The key is attribute name
3636
and the value is json key in definition.
3737
"""
38-
openapi_types = {"dependency_type": "str", "dependent_field_names": "list[str]", "controlling_field_name": "str", "controlling_field_value": "str"}
38+
openapi_types = {"dependency_type": "str", "controlling_field_name": "str", "dependent_field_names": "list[str]", "controlling_field_value": "str"}
3939

4040
attribute_map = {
4141
"dependency_type": "dependencyType",
42-
"dependent_field_names": "dependentFieldNames",
4342
"controlling_field_name": "controllingFieldName",
43+
"dependent_field_names": "dependentFieldNames",
4444
"controlling_field_value": "controllingFieldValue",
4545
}
4646

47-
def __init__(self, dependency_type="CONDITIONAL_SINGLE_FIELD", dependent_field_names=None, controlling_field_name=None, controlling_field_value=None, local_vars_configuration=None): # noqa: E501
47+
def __init__(self, dependency_type="CONDITIONAL_SINGLE_FIELD", controlling_field_name=None, dependent_field_names=None, controlling_field_value=None, local_vars_configuration=None): # noqa: E501
4848
"""PublicActionDefinitionInputFieldDependenciesInner - a model defined in OpenAPI""" # noqa: E501
4949
if local_vars_configuration is None:
5050
local_vars_configuration = Configuration.get_default_copy()
5151
self.local_vars_configuration = local_vars_configuration
5252

5353
self._dependency_type = None
54-
self._dependent_field_names = None
5554
self._controlling_field_name = None
55+
self._dependent_field_names = None
5656
self._controlling_field_value = None
5757
self.discriminator = None
5858

5959
self.dependency_type = dependency_type
60-
self.dependent_field_names = dependent_field_names
6160
self.controlling_field_name = controlling_field_name
61+
self.dependent_field_names = dependent_field_names
6262
self.controlling_field_value = controlling_field_value
6363

6464
@property
@@ -87,29 +87,6 @@ def dependency_type(self, dependency_type):
8787

8888
self._dependency_type = dependency_type
8989

90-
@property
91-
def dependent_field_names(self):
92-
"""Gets the dependent_field_names of this PublicActionDefinitionInputFieldDependenciesInner. # noqa: E501
93-
94-
95-
:return: The dependent_field_names of this PublicActionDefinitionInputFieldDependenciesInner. # noqa: E501
96-
:rtype: list[str]
97-
"""
98-
return self._dependent_field_names
99-
100-
@dependent_field_names.setter
101-
def dependent_field_names(self, dependent_field_names):
102-
"""Sets the dependent_field_names of this PublicActionDefinitionInputFieldDependenciesInner.
103-
104-
105-
:param dependent_field_names: The dependent_field_names of this PublicActionDefinitionInputFieldDependenciesInner. # noqa: E501
106-
:type dependent_field_names: list[str]
107-
"""
108-
if self.local_vars_configuration.client_side_validation and dependent_field_names is None: # noqa: E501
109-
raise ValueError("Invalid value for `dependent_field_names`, must not be `None`") # noqa: E501
110-
111-
self._dependent_field_names = dependent_field_names
112-
11390
@property
11491
def controlling_field_name(self):
11592
"""Gets the controlling_field_name of this PublicActionDefinitionInputFieldDependenciesInner. # noqa: E501
@@ -133,6 +110,29 @@ def controlling_field_name(self, controlling_field_name):
133110

134111
self._controlling_field_name = controlling_field_name
135112

113+
@property
114+
def dependent_field_names(self):
115+
"""Gets the dependent_field_names of this PublicActionDefinitionInputFieldDependenciesInner. # noqa: E501
116+
117+
118+
:return: The dependent_field_names of this PublicActionDefinitionInputFieldDependenciesInner. # noqa: E501
119+
:rtype: list[str]
120+
"""
121+
return self._dependent_field_names
122+
123+
@dependent_field_names.setter
124+
def dependent_field_names(self, dependent_field_names):
125+
"""Sets the dependent_field_names of this PublicActionDefinitionInputFieldDependenciesInner.
126+
127+
128+
:param dependent_field_names: The dependent_field_names of this PublicActionDefinitionInputFieldDependenciesInner. # noqa: E501
129+
:type dependent_field_names: list[str]
130+
"""
131+
if self.local_vars_configuration.client_side_validation and dependent_field_names is None: # noqa: E501
132+
raise ValueError("Invalid value for `dependent_field_names`, must not be `None`") # noqa: E501
133+
134+
self._dependent_field_names = dependent_field_names
135+
136136
@property
137137
def controlling_field_value(self):
138138
"""Gets the controlling_field_value of this PublicActionDefinitionInputFieldDependenciesInner. # noqa: E501

0 commit comments

Comments
 (0)