diff --git a/.release-please-manifest.json b/.release-please-manifest.json index f14b480a..aaf968a1 100644 --- a/.release-please-manifest.json +++ b/.release-please-manifest.json @@ -1,3 +1,3 @@ { - ".": "0.1.0-alpha.2" + ".": "0.1.0-alpha.3" } \ No newline at end of file diff --git a/.stats.yml b/.stats.yml index 91054144..25009752 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ -configured_endpoints: 972 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/hubspot%2Fhubspot-sdk-10919d69a6e90c90609c258a2f5e28439f1330d7219f2febee724d1beb81ba53.yml -openapi_spec_hash: 797d5ce41890b09309e124e9f74fad45 -config_hash: 5f3ac65868b9b42b135beebc978b43b1 +configured_endpoints: 959 +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/hubspot%2Fhubspot-sdk-27f6d2f8adbca1ec11995d8f923efadd9bfd5bc7cd569690aaf0ff634949feaa.yml +openapi_spec_hash: d0e76c7f7ecb1e8f701d4ced83be404f +config_hash: 1ad21cf783009b5c5ceb99a6f2d335f3 diff --git a/CHANGELOG.md b/CHANGELOG.md index 673c927c..ddb583f5 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,25 @@ # Changelog +## 0.1.0-alpha.3 (2026-04-24) + +Full Changelog: [v0.1.0-alpha.2...v0.1.0-alpha.3](https://github.com/HubSpot/hubspot-sdk-python/compare/v0.1.0-alpha.2...v0.1.0-alpha.3) + +### Features + +* **api:** manual updates ([4f947e3](https://github.com/HubSpot/hubspot-sdk-python/commit/4f947e3dd1cc6125e712afe4e427bc1fc40a2715)) +* **api:** manual updates ([4fec975](https://github.com/HubSpot/hubspot-sdk-python/commit/4fec975ee4b04254fa258227b74e4e5603b97275)) +* **api:** manual updates ([f2491a4](https://github.com/HubSpot/hubspot-sdk-python/commit/f2491a4bfb5f95e557874ec8391c1b1226811f12)) + + +### Performance Improvements + +* **client:** optimize file structure copying in multipart requests ([ca5868a](https://github.com/HubSpot/hubspot-sdk-python/commit/ca5868a4ea858dde7f8647ec6a35a1eb65934ee2)) + + +### Chores + +* **internal:** more robust bootstrap script ([2c52550](https://github.com/HubSpot/hubspot-sdk-python/commit/2c52550c8463454c29c1a0de211590eec6c57d7a)) + ## 0.1.0-alpha.2 (2026-04-15) Full Changelog: [v0.1.0-alpha.1...v0.1.0-alpha.2](https://github.com/HubSpot/hubspot-sdk-python/compare/v0.1.0-alpha.1...v0.1.0-alpha.2) diff --git a/api.md b/api.md index 8800e756..c2fd3077 100644 --- a/api.md +++ b/api.md @@ -4,28 +4,28 @@ from hubspot_sdk.types import ( AbTestCreateRequestVNext, ActionResponse, - AssociationDefinition, AssociationDefinitionEgg, AssociationSpec, AutomationActionsOption, + BaseAssociationDefinition, + BaseError, + BaseObjectTypeDefinition, + BaseOption, + BaseProperty, BatchInputPropertyCreate, BatchInputPropertyName, BatchInputPublicObjectID, BatchInputString, BatchReadInputPropertyName, CollectionResponsePropertyGroupNoPaging, - Error, ErrorDetail, ForwardPaging, NextPage, - ObjectTypeDefinition, ObjectTypeDefinitionLabels, ObjectTypeDefinitionPatch, - Option, OptionInput, Paging, PreviousPage, - Property, PropertyCreate, PropertyGroup, PropertyGroupCreate, diff --git a/pyproject.toml b/pyproject.toml index 98c48835..9bad8d2d 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [project] name = "hubspot-sdk" -version = "0.1.0-alpha.2" +version = "0.1.0-alpha.3" description = "The official Python library for the hubspot API" dynamic = ["readme"] license = "Apache-2.0" diff --git a/scripts/bootstrap b/scripts/bootstrap index b430fee3..fe8451e4 100755 --- a/scripts/bootstrap +++ b/scripts/bootstrap @@ -4,7 +4,7 @@ set -e cd "$(dirname "$0")/.." -if [ -f "Brewfile" ] && [ "$(uname -s)" = "Darwin" ] && [ "$SKIP_BREW" != "1" ] && [ -t 0 ]; then +if [ -f "Brewfile" ] && [ "$(uname -s)" = "Darwin" ] && [ "${SKIP_BREW:-}" != "1" ] && [ -t 0 ]; then brew bundle check >/dev/null 2>&1 || { echo -n "==> Install Homebrew dependencies? (y/N): " read -r response diff --git a/src/hubspot_sdk/_files.py b/src/hubspot_sdk/_files.py index 646c50e4..c644d455 100644 --- a/src/hubspot_sdk/_files.py +++ b/src/hubspot_sdk/_files.py @@ -3,8 +3,8 @@ import io import os import pathlib -from typing import overload -from typing_extensions import TypeGuard +from typing import Sequence, cast, overload +from typing_extensions import TypeVar, TypeGuard import anyio @@ -17,7 +17,9 @@ HttpxFileContent, HttpxRequestFiles, ) -from ._utils import is_tuple_t, is_mapping_t, is_sequence_t +from ._utils import is_list, is_mapping, is_tuple_t, is_mapping_t, is_sequence_t + +_T = TypeVar("_T") def is_base64_file_input(obj: object) -> TypeGuard[Base64FileInput]: @@ -121,3 +123,51 @@ async def async_read_file_content(file: FileContent) -> HttpxFileContent: return await anyio.Path(file).read_bytes() return file + + +def deepcopy_with_paths(item: _T, paths: Sequence[Sequence[str]]) -> _T: + """Copy only the containers along the given paths. + + Used to guard against mutation by extract_files without copying the entire structure. + Only dicts and lists that lie on a path are copied; everything else + is returned by reference. + + For example, given paths=[["foo", "files", "file"]] and the structure: + { + "foo": { + "bar": {"baz": {}}, + "files": {"file": } + } + } + The root dict, "foo", and "files" are copied (they lie on the path). + "bar" and "baz" are returned by reference (off the path). + """ + return _deepcopy_with_paths(item, paths, 0) + + +def _deepcopy_with_paths(item: _T, paths: Sequence[Sequence[str]], index: int) -> _T: + if not paths: + return item + if is_mapping(item): + key_to_paths: dict[str, list[Sequence[str]]] = {} + for path in paths: + if index < len(path): + key_to_paths.setdefault(path[index], []).append(path) + + # if no path continues through this mapping, it won't be mutated and copying it is redundant + if not key_to_paths: + return item + + result = dict(item) + for key, subpaths in key_to_paths.items(): + if key in result: + result[key] = _deepcopy_with_paths(result[key], subpaths, index + 1) + return cast(_T, result) + if is_list(item): + array_paths = [path for path in paths if index < len(path) and path[index] == ""] + + # if no path expects a list here, nothing will be mutated inside it - return by reference + if not array_paths: + return cast(_T, item) + return cast(_T, [_deepcopy_with_paths(entry, array_paths, index + 1) for entry in item]) + return item diff --git a/src/hubspot_sdk/_utils/__init__.py b/src/hubspot_sdk/_utils/__init__.py index 10cb66d2..1c090e51 100644 --- a/src/hubspot_sdk/_utils/__init__.py +++ b/src/hubspot_sdk/_utils/__init__.py @@ -24,7 +24,6 @@ coerce_integer as coerce_integer, file_from_path as file_from_path, strip_not_given as strip_not_given, - deepcopy_minimal as deepcopy_minimal, get_async_library as get_async_library, maybe_coerce_float as maybe_coerce_float, get_required_header as get_required_header, diff --git a/src/hubspot_sdk/_utils/_utils.py b/src/hubspot_sdk/_utils/_utils.py index 63b8cd60..771859f5 100644 --- a/src/hubspot_sdk/_utils/_utils.py +++ b/src/hubspot_sdk/_utils/_utils.py @@ -177,21 +177,6 @@ def is_iterable(obj: object) -> TypeGuard[Iterable[object]]: return isinstance(obj, Iterable) -def deepcopy_minimal(item: _T) -> _T: - """Minimal reimplementation of copy.deepcopy() that will only copy certain object types: - - - mappings, e.g. `dict` - - list - - This is done for performance reasons. - """ - if is_mapping(item): - return cast(_T, {k: deepcopy_minimal(v) for k, v in item.items()}) - if is_list(item): - return cast(_T, [deepcopy_minimal(entry) for entry in item]) - return item - - # copied from https://github.com/Rapptz/RoboDanny def human_join(seq: Sequence[str], *, delim: str = ", ", final: str = "or") -> str: size = len(seq) diff --git a/src/hubspot_sdk/_version.py b/src/hubspot_sdk/_version.py index 5e665705..d73e9d82 100644 --- a/src/hubspot_sdk/_version.py +++ b/src/hubspot_sdk/_version.py @@ -1,4 +1,4 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. __title__ = "hubspot_sdk" -__version__ = "0.1.0-alpha.2" # x-release-please-version +__version__ = "0.1.0-alpha.3" # x-release-please-version diff --git a/src/hubspot_sdk/resources/auth/api.md b/src/hubspot_sdk/resources/auth/api.md index 7bfc5740..b1bda6f9 100644 --- a/src/hubspot_sdk/resources/auth/api.md +++ b/src/hubspot_sdk/resources/auth/api.md @@ -5,7 +5,12 @@ Types: ```python -from hubspot_sdk.types.auth import TokenInfoResponseBaseIf +from hubspot_sdk.types.auth import ( + PublicAccessTokenInfoResponse, + PublicRefreshTokenInfoResponse, + SignedAccessToken, + TokenInfoResponseBaseIf, +) ``` Methods: diff --git a/src/hubspot_sdk/resources/auth/oauth.py b/src/hubspot_sdk/resources/auth/oauth.py index 5694b63c..939a4b53 100644 --- a/src/hubspot_sdk/resources/auth/oauth.py +++ b/src/hubspot_sdk/resources/auth/oauth.py @@ -2,6 +2,7 @@ from __future__ import annotations +from typing import Any, cast from typing_extensions import Literal import httpx @@ -129,21 +130,26 @@ def introspect_token( timeout: Override the client-level default timeout for this request, in seconds """ - return self._post( - "/oauth/2026-03/token/introspect", - body=maybe_transform( - { - "token": token, - "client_id": client_id, - "client_secret": client_secret, - "token_type_hint": token_type_hint, - }, - oauth_introspect_token_params.OAuthIntrospectTokenParams, - ), - options=make_request_options( - extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout + return cast( + TokenInfoResponseBaseIf, + self._post( + "/oauth/2026-03/token/introspect", + body=maybe_transform( + { + "token": token, + "client_id": client_id, + "client_secret": client_secret, + "token_type_hint": token_type_hint, + }, + oauth_introspect_token_params.OAuthIntrospectTokenParams, + ), + options=make_request_options( + extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout + ), + cast_to=cast( + Any, TokenInfoResponseBaseIf + ), # Union types cannot be passed in as arguments in the type system ), - cast_to=TokenInfoResponseBaseIf, ) def revoke_token( @@ -289,21 +295,26 @@ async def introspect_token( timeout: Override the client-level default timeout for this request, in seconds """ - return await self._post( - "/oauth/2026-03/token/introspect", - body=await async_maybe_transform( - { - "token": token, - "client_id": client_id, - "client_secret": client_secret, - "token_type_hint": token_type_hint, - }, - oauth_introspect_token_params.OAuthIntrospectTokenParams, - ), - options=make_request_options( - extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout + return cast( + TokenInfoResponseBaseIf, + await self._post( + "/oauth/2026-03/token/introspect", + body=await async_maybe_transform( + { + "token": token, + "client_id": client_id, + "client_secret": client_secret, + "token_type_hint": token_type_hint, + }, + oauth_introspect_token_params.OAuthIntrospectTokenParams, + ), + options=make_request_options( + extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout + ), + cast_to=cast( + Any, TokenInfoResponseBaseIf + ), # Union types cannot be passed in as arguments in the type system ), - cast_to=TokenInfoResponseBaseIf, ) async def revoke_token( diff --git a/src/hubspot_sdk/resources/cms/api.md b/src/hubspot_sdk/resources/cms/api.md index c18ee091..8019b060 100644 --- a/src/hubspot_sdk/resources/cms/api.md +++ b/src/hubspot_sdk/resources/cms/api.md @@ -280,8 +280,8 @@ from hubspot_sdk.types.cms import ( HubDBTableRowV3Wrapper, HubDBTableV3, HubDBTableV3Request, + HubdbOption, ImportResult, - Option, RandomAccessCollectionResponseWithTotalHubDBTableRowV3, SimpleUser, StreamingCollectionResponseWithTotalHubDBTableRowV3, @@ -397,8 +397,10 @@ from hubspot_sdk.types.cms import ( IsPresent, LessThan, LessThanOrEqual, + LookupAssociationSpec, LowerCase, MaxNumbers, + MediaBridgeProperty, MediaBridgePropertyUpdate, MediaBridgeProviderPartial, MediaBridgeProviderRegistrationResponse, @@ -430,7 +432,6 @@ from hubspot_sdk.types.cms import ( PeriodToWeeks, PipelineProbability, Power, - Property, Property1, PropertyDefinition, PropertyDefinitionSource, @@ -462,22 +463,22 @@ from hubspot_sdk.types.cms import ( Methods: -- client.cms.media_bridge.create_association(object_type, \*, app_id, \*\*params) -> AssociationDefinition +- client.cms.media_bridge.create_association(object_type, \*, app_id, \*\*params) -> BaseAssociationDefinition - client.cms.media_bridge.create_attention_span_event(\*\*params) -> AttentionSpanEvent - client.cms.media_bridge.create_media_played_event(\*\*params) -> MediaPlayedEvent - client.cms.media_bridge.create_media_played_percent_event(\*\*params) -> MediaPlayedPercentageEvent - client.cms.media_bridge.create_object_type(app_id, \*\*params) -> BulkIntegratorObjectCreationResponse - client.cms.media_bridge.create_oembed_domain(app_id, \*\*params) -> IntegratorOEmbedDomainModel -- client.cms.media_bridge.create_property(object_type, \*, app_id, \*\*params) -> Property +- client.cms.media_bridge.create_property(object_type, \*, app_id, \*\*params) -> MediaBridgeProperty - client.cms.media_bridge.create_property_group(object_type, \*, app_id, \*\*params) -> PropertyGroup -- client.cms.media_bridge.create_video_association_definition(app_id) -> AssociationDefinition +- client.cms.media_bridge.create_video_association_definition(app_id) -> BaseAssociationDefinition - client.cms.media_bridge.delete_association(association_id, \*, app_id, object_type) -> None - client.cms.media_bridge.delete_oembed_domain(app_id, \*\*params) -> None - client.cms.media_bridge.delete_property(property_name, \*, app_id, object_type) -> None - client.cms.media_bridge.delete_property_group(group_name, \*, app_id, object_type) -> None - client.cms.media_bridge.get_event_visibility_settings(app_id) -> EventVisibilityResponse - client.cms.media_bridge.get_oembed_domain(o_embed_domain_id, \*, app_id) -> IntegratorOEmbedDomainModel -- client.cms.media_bridge.get_property(property_name, \*, app_id, object_type, \*\*params) -> Property +- client.cms.media_bridge.get_property(property_name, \*, app_id, object_type, \*\*params) -> MediaBridgeProperty - client.cms.media_bridge.get_property_group(group_name, \*, app_id, object_type) -> PropertyGroup - client.cms.media_bridge.get_schema(object_type, \*, app_id) -> ObjectSchema - client.cms.media_bridge.list_object_types_by_media_type(media_type, \*, app_id, \*\*params) -> ObjectDefinitionResponse @@ -488,9 +489,9 @@ Methods: - client.cms.media_bridge.register_app_name(app_id, \*\*params) -> MediaBridgeProviderRegistrationResponse - client.cms.media_bridge.update_event_visibility_settings(app_id, \*\*params) -> EventVisibilityChange - client.cms.media_bridge.update_oembed_domain(o_embed_domain_id, \*, app_id, \*\*params) -> IntegratorOEmbedDomainModel -- client.cms.media_bridge.update_property(property_name, \*, app_id, object_type, \*\*params) -> Property +- client.cms.media_bridge.update_property(property_name, \*, app_id, object_type, \*\*params) -> MediaBridgeProperty - client.cms.media_bridge.update_property_group(group_name, \*, app_id, object_type, \*\*params) -> PropertyGroup -- client.cms.media_bridge.update_schema(object_type, \*, app_id, \*\*params) -> ObjectTypeDefinition +- client.cms.media_bridge.update_schema(object_type, \*, app_id, \*\*params) -> BaseObjectTypeDefinition - client.cms.media_bridge.update_settings(app_id, \*\*params) -> MediaBridgeProviderRegistrationResponse ### Batch @@ -522,8 +523,6 @@ from hubspot_sdk.types.cms import ( ContentFolder, ContentFolderVersion, ContentLanguageCloneRequestVNext, - CursorPagedResultContentFolderLong, - CursorPagedResultPageLong, PageData, PageVersion, ) @@ -531,14 +530,8 @@ from hubspot_sdk.types.cms import ( Methods: -- client.cms.pages.get_landing_page_folders(\*\*params) -> object -- client.cms.pages.get_landing_page_folders_by_query(\*\*params) -> object - client.cms.pages.get_landing_page_revision(revision_id, \*, object_id) -> PageVersion -- client.cms.pages.get_landing_pages(\*\*params) -> object -- client.cms.pages.get_landing_pages_by_query(\*\*params) -> object - client.cms.pages.get_site_page_revision(revision_id, \*, object_id) -> PageVersion -- client.cms.pages.get_site_pages(\*\*params) -> object -- client.cms.pages.get_site_pages_by_query(\*\*params) -> object - client.cms.pages.list_landing_page_revisions(object_id, \*\*params) -> SyncPage[PageVersion] - client.cms.pages.list_site_page_revisions(object_id, \*\*params) -> SyncPage[PageVersion] - client.cms.pages.reset_site_page_draft(object_id) -> None @@ -658,14 +651,8 @@ from hubspot_sdk.types.cms import AssetFileMetadata, FileExtractRequest Methods: -- client.cms.source_code.create(path, \*, environment, \*\*params) -> AssetFileMetadata -- client.cms.source_code.delete(path, \*, environment) -> None - client.cms.source_code.extract_async(\*\*params) -> TaskLocator -- client.cms.source_code.get(path, \*, environment) -> BinaryAPIResponse - client.cms.source_code.get_extraction_status(task_id) -> ActionResponse -- client.cms.source_code.get_metadata(path, \*, environment, \*\*params) -> AssetFileMetadata -- client.cms.source_code.upsert(path, \*, environment, \*\*params) -> AssetFileMetadata -- client.cms.source_code.validate(path, \*, environment, \*\*params) -> BinaryAPIResponse ## URLMappings diff --git a/src/hubspot_sdk/resources/cms/hubdb/tables.py b/src/hubspot_sdk/resources/cms/hubdb/tables.py index 17ac5c61..5506a2c0 100644 --- a/src/hubspot_sdk/resources/cms/hubdb/tables.py +++ b/src/hubspot_sdk/resources/cms/hubdb/tables.py @@ -7,6 +7,7 @@ import httpx +from ...._files import deepcopy_with_paths from ...._types import ( Body, Omit, @@ -19,7 +20,7 @@ omit, not_given, ) -from ...._utils import extract_files, path_template, maybe_transform, deepcopy_minimal, async_maybe_transform +from ...._utils import extract_files, path_template, maybe_transform, async_maybe_transform from ...._compat import cached_property from ...._resource import SyncAPIResource, AsyncAPIResource from ...._response import ( @@ -581,11 +582,12 @@ def import_draft( """ if not table_id_or_name: raise ValueError(f"Expected a non-empty value for `table_id_or_name` but received {table_id_or_name!r}") - body = deepcopy_minimal( + body = deepcopy_with_paths( { "config": config, "file": file, - } + }, + [["file"]], ) files = extract_files(cast(Mapping[str, object], body), paths=[["file"]]) # It should be noted that the actual Content-Type header that will be @@ -1423,11 +1425,12 @@ async def import_draft( """ if not table_id_or_name: raise ValueError(f"Expected a non-empty value for `table_id_or_name` but received {table_id_or_name!r}") - body = deepcopy_minimal( + body = deepcopy_with_paths( { "config": config, "file": file, - } + }, + [["file"]], ) files = extract_files(cast(Mapping[str, object], body), paths=[["file"]]) # It should be noted that the actual Content-Type header that will be diff --git a/src/hubspot_sdk/resources/cms/media_bridge/media_bridge.py b/src/hubspot_sdk/resources/cms/media_bridge/media_bridge.py index 39dbf75f..bd074a38 100644 --- a/src/hubspot_sdk/resources/cms/media_bridge/media_bridge.py +++ b/src/hubspot_sdk/resources/cms/media_bridge/media_bridge.py @@ -50,19 +50,19 @@ media_bridge_create_media_played_percent_event_params, ) from ...._base_client import make_request_options -from ....types.cms.property import Property from ....types.cms.object_schema import ObjectSchema from ....types.cms.endpoints_param import EndpointsParam from ....types.shared.property_group import PropertyGroup from ....types.cms.media_played_event import MediaPlayedEvent from ....types.cms.attention_span_event import AttentionSpanEvent +from ....types.cms.media_bridge_property import MediaBridgeProperty from ....types.shared_params.option_input import OptionInput from ....types.cms.event_visibility_change import EventVisibilityChange from ....types.cms.event_visibility_response import EventVisibilityResponse -from ....types.shared.association_definition import AssociationDefinition -from ....types.shared.object_type_definition import ObjectTypeDefinition from ....types.cms.object_definition_response import ObjectDefinitionResponse from ....types.cms.media_played_percentage_event import MediaPlayedPercentageEvent +from ....types.shared.base_association_definition import BaseAssociationDefinition +from ....types.shared.base_object_type_definition import BaseObjectTypeDefinition from ....types.cms.integrator_o_embed_domain_model import IntegratorOEmbedDomainModel from ....types.cms.o_embed_domains_collection_response import OEmbedDomainsCollectionResponse from ....types.cms.attention_span_calculated_values_param import AttentionSpanCalculatedValuesParam @@ -114,7 +114,7 @@ def create_association( extra_query: Query | None = None, extra_body: Body | None = None, timeout: float | httpx.Timeout | None | NotGiven = not_given, - ) -> AssociationDefinition: + ) -> BaseAssociationDefinition: """ Create a new association definition for the specified object type. @@ -146,7 +146,7 @@ def create_association( options=make_request_options( extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout ), - cast_to=AssociationDefinition, + cast_to=BaseAssociationDefinition, ) def create_attention_span_event( @@ -469,7 +469,7 @@ def create_property( extra_query: Query | None = None, extra_body: Body | None = None, timeout: float | httpx.Timeout | None | NotGiven = not_given, - ) -> Property: + ) -> MediaBridgeProperty: """ Create a new property for the specified media type @@ -514,7 +514,7 @@ def create_property( options=make_request_options( extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout ), - cast_to=Property, + cast_to=MediaBridgeProperty, ) def create_property_group( @@ -574,7 +574,7 @@ def create_video_association_definition( extra_query: Query | None = None, extra_body: Body | None = None, timeout: float | httpx.Timeout | None | NotGiven = not_given, - ) -> AssociationDefinition: + ) -> BaseAssociationDefinition: """ Args: extra_headers: Send extra headers @@ -590,7 +590,7 @@ def create_video_association_definition( options=make_request_options( extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout ), - cast_to=AssociationDefinition, + cast_to=BaseAssociationDefinition, ) def delete_association( @@ -849,7 +849,7 @@ def get_property( extra_query: Query | None = None, extra_body: Body | None = None, timeout: float | httpx.Timeout | None | NotGiven = not_given, - ) -> Property: + ) -> MediaBridgeProperty: """ Get the details for an existing property by name. @@ -888,7 +888,7 @@ def get_property( media_bridge_get_property_params.MediaBridgeGetPropertyParams, ), ), - cast_to=Property, + cast_to=MediaBridgeProperty, ) def get_property_group( @@ -1360,7 +1360,7 @@ def update_property( extra_query: Query | None = None, extra_body: Body | None = None, timeout: float | httpx.Timeout | None | NotGiven = not_given, - ) -> Property: + ) -> MediaBridgeProperty: """ Update an existing property for an object type. @@ -1406,7 +1406,7 @@ def update_property( options=make_request_options( extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout ), - cast_to=Property, + cast_to=MediaBridgeProperty, ) def update_property_group( @@ -1480,7 +1480,7 @@ def update_schema( extra_query: Query | None = None, extra_body: Body | None = None, timeout: float | httpx.Timeout | None | NotGiven = not_given, - ) -> ObjectTypeDefinition: + ) -> BaseObjectTypeDefinition: """ Update the schema for an existing object type @@ -1516,7 +1516,7 @@ def update_schema( options=make_request_options( extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout ), - cast_to=ObjectTypeDefinition, + cast_to=BaseObjectTypeDefinition, ) def update_settings( @@ -1603,7 +1603,7 @@ async def create_association( extra_query: Query | None = None, extra_body: Body | None = None, timeout: float | httpx.Timeout | None | NotGiven = not_given, - ) -> AssociationDefinition: + ) -> BaseAssociationDefinition: """ Create a new association definition for the specified object type. @@ -1635,7 +1635,7 @@ async def create_association( options=make_request_options( extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout ), - cast_to=AssociationDefinition, + cast_to=BaseAssociationDefinition, ) async def create_attention_span_event( @@ -1958,7 +1958,7 @@ async def create_property( extra_query: Query | None = None, extra_body: Body | None = None, timeout: float | httpx.Timeout | None | NotGiven = not_given, - ) -> Property: + ) -> MediaBridgeProperty: """ Create a new property for the specified media type @@ -2003,7 +2003,7 @@ async def create_property( options=make_request_options( extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout ), - cast_to=Property, + cast_to=MediaBridgeProperty, ) async def create_property_group( @@ -2063,7 +2063,7 @@ async def create_video_association_definition( extra_query: Query | None = None, extra_body: Body | None = None, timeout: float | httpx.Timeout | None | NotGiven = not_given, - ) -> AssociationDefinition: + ) -> BaseAssociationDefinition: """ Args: extra_headers: Send extra headers @@ -2079,7 +2079,7 @@ async def create_video_association_definition( options=make_request_options( extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout ), - cast_to=AssociationDefinition, + cast_to=BaseAssociationDefinition, ) async def delete_association( @@ -2338,7 +2338,7 @@ async def get_property( extra_query: Query | None = None, extra_body: Body | None = None, timeout: float | httpx.Timeout | None | NotGiven = not_given, - ) -> Property: + ) -> MediaBridgeProperty: """ Get the details for an existing property by name. @@ -2377,7 +2377,7 @@ async def get_property( media_bridge_get_property_params.MediaBridgeGetPropertyParams, ), ), - cast_to=Property, + cast_to=MediaBridgeProperty, ) async def get_property_group( @@ -2849,7 +2849,7 @@ async def update_property( extra_query: Query | None = None, extra_body: Body | None = None, timeout: float | httpx.Timeout | None | NotGiven = not_given, - ) -> Property: + ) -> MediaBridgeProperty: """ Update an existing property for an object type. @@ -2895,7 +2895,7 @@ async def update_property( options=make_request_options( extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout ), - cast_to=Property, + cast_to=MediaBridgeProperty, ) async def update_property_group( @@ -2969,7 +2969,7 @@ async def update_schema( extra_query: Query | None = None, extra_body: Body | None = None, timeout: float | httpx.Timeout | None | NotGiven = not_given, - ) -> ObjectTypeDefinition: + ) -> BaseObjectTypeDefinition: """ Update the schema for an existing object type @@ -3005,7 +3005,7 @@ async def update_schema( options=make_request_options( extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout ), - cast_to=ObjectTypeDefinition, + cast_to=BaseObjectTypeDefinition, ) async def update_settings( diff --git a/src/hubspot_sdk/resources/cms/pages/batch.py b/src/hubspot_sdk/resources/cms/pages/batch.py index ebfc019e..bcc3c48d 100644 --- a/src/hubspot_sdk/resources/cms/pages/batch.py +++ b/src/hubspot_sdk/resources/cms/pages/batch.py @@ -246,8 +246,8 @@ def delete_site_pages( ) -> None: """Delete a batch of website pages as specified in the request body. - Note: this is - not the same as the dashboard `archive` function. To perform a dashboard + Note that this + is not the same as the dashboard `archive` function. To perform a dashboard `archive` send an normal update with the `archivedInDashboard` field set to `true`. @@ -698,8 +698,8 @@ async def delete_site_pages( ) -> None: """Delete a batch of website pages as specified in the request body. - Note: this is - not the same as the dashboard `archive` function. To perform a dashboard + Note that this + is not the same as the dashboard `archive` function. To perform a dashboard `archive` send an normal update with the `archivedInDashboard` field set to `true`. diff --git a/src/hubspot_sdk/resources/cms/pages/folders.py b/src/hubspot_sdk/resources/cms/pages/folders.py index 13f7cec8..72eccaae 100644 --- a/src/hubspot_sdk/resources/cms/pages/folders.py +++ b/src/hubspot_sdk/resources/cms/pages/folders.py @@ -227,8 +227,14 @@ def list( archived: Whether to return only results that have been archived. + created_after: Filter folders created after the specified date and time. + + created_at: Filter folders by their exact creation date and time. + limit: The maximum number of results to display per page. + property: Specify a property to include in the response. + extra_headers: Send extra headers extra_query: Add additional query parameters to the request @@ -722,8 +728,14 @@ def list( archived: Whether to return only results that have been archived. + created_after: Filter folders created after the specified date and time. + + created_at: Filter folders by their exact creation date and time. + limit: The maximum number of results to display per page. + property: Specify a property to include in the response. + extra_headers: Send extra headers extra_query: Add additional query parameters to the request diff --git a/src/hubspot_sdk/resources/cms/pages/landing_pages.py b/src/hubspot_sdk/resources/cms/pages/landing_pages.py index 0493575b..943ecc7b 100644 --- a/src/hubspot_sdk/resources/cms/pages/landing_pages.py +++ b/src/hubspot_sdk/resources/cms/pages/landing_pages.py @@ -2478,21 +2478,37 @@ def list( extra_body: Body | None = None, timeout: float | httpx.Timeout | None | NotGiven = not_given, ) -> SyncPage[PageData]: - """Get the list of landing pages. + """Retrieve a list of landing pages in your HubSpot account. - Supports paging and filtering. This method would - be useful for an integration that examined these models and used an external - service to suggest edits. + This endpoint allows + you to filter landing pages based on creation and update timestamps, sort them, + and paginate through results. You can also choose to include archived pages or + specify certain properties to be included in the response. Args: - after: The paging cursor token of the last successfully read resource will be returned - as the `paging.next.after` JSON property of a paged response containing more - results. + after: A cursor token for pagination. Use the value from the previous response's + paging.next.after field. archived: Whether to return only results that have been archived. + created_after: Filter landing pages created after a specific date and time. + + created_at: Filter landing pages by their creation timestamp. + + created_before: Filter landing pages created before a specific date and time. + limit: The maximum number of results to display per page. + property: Specify which properties of the landing pages to include in the response. + + sort: Specify the order in which results are returned. Accepts an array of strings. + + updated_after: Filter landing pages updated after a specific date and time. + + updated_at: Filter landing pages by their last updated timestamp. + + updated_before: Filter landing pages updated before a specific date and time. + extra_headers: Send extra headers extra_query: Add additional query parameters to the request @@ -2632,6 +2648,8 @@ def get( Args: archived: Whether to return only results that have been archived. + property: A specific property of the landing page to include in the response. + extra_headers: Send extra headers extra_query: Add additional query parameters to the request @@ -6447,21 +6465,37 @@ def list( extra_body: Body | None = None, timeout: float | httpx.Timeout | None | NotGiven = not_given, ) -> AsyncPaginator[PageData, AsyncPage[PageData]]: - """Get the list of landing pages. + """Retrieve a list of landing pages in your HubSpot account. - Supports paging and filtering. This method would - be useful for an integration that examined these models and used an external - service to suggest edits. + This endpoint allows + you to filter landing pages based on creation and update timestamps, sort them, + and paginate through results. You can also choose to include archived pages or + specify certain properties to be included in the response. Args: - after: The paging cursor token of the last successfully read resource will be returned - as the `paging.next.after` JSON property of a paged response containing more - results. + after: A cursor token for pagination. Use the value from the previous response's + paging.next.after field. archived: Whether to return only results that have been archived. + created_after: Filter landing pages created after a specific date and time. + + created_at: Filter landing pages by their creation timestamp. + + created_before: Filter landing pages created before a specific date and time. + limit: The maximum number of results to display per page. + property: Specify which properties of the landing pages to include in the response. + + sort: Specify the order in which results are returned. Accepts an array of strings. + + updated_after: Filter landing pages updated after a specific date and time. + + updated_at: Filter landing pages by their last updated timestamp. + + updated_before: Filter landing pages updated before a specific date and time. + extra_headers: Send extra headers extra_query: Add additional query parameters to the request @@ -6603,6 +6637,8 @@ async def get( Args: archived: Whether to return only results that have been archived. + property: A specific property of the landing page to include in the response. + extra_headers: Send extra headers extra_query: Add additional query parameters to the request diff --git a/src/hubspot_sdk/resources/cms/pages/multi_language.py b/src/hubspot_sdk/resources/cms/pages/multi_language.py index f13d751a..c68c746a 100644 --- a/src/hubspot_sdk/resources/cms/pages/multi_language.py +++ b/src/hubspot_sdk/resources/cms/pages/multi_language.py @@ -1812,8 +1812,12 @@ def create_language_variation( extra_body: Body | None = None, timeout: float | httpx.Timeout | None | NotGiven = not_given, ) -> PageData: - """ - Create a new language variation from an existing site page + """Create a new language variation from an existing website page. + + The variation + will be a copy of the draft state of the source page. To preview the content, + you can + [retrieve the draft of the source website page](/api-reference/latest/cms/pages/website-pages/drafts/get-website-page-draft). Args: id: ID of content to clone. @@ -4586,8 +4590,12 @@ async def create_language_variation( extra_body: Body | None = None, timeout: float | httpx.Timeout | None | NotGiven = not_given, ) -> PageData: - """ - Create a new language variation from an existing site page + """Create a new language variation from an existing website page. + + The variation + will be a copy of the draft state of the source page. To preview the content, + you can + [retrieve the draft of the source website page](/api-reference/latest/cms/pages/website-pages/drafts/get-website-page-draft). Args: id: ID of content to clone. diff --git a/src/hubspot_sdk/resources/cms/pages/pages.py b/src/hubspot_sdk/resources/cms/pages/pages.py index 178e9d67..b68e723b 100644 --- a/src/hubspot_sdk/resources/cms/pages/pages.py +++ b/src/hubspot_sdk/resources/cms/pages/pages.py @@ -2,9 +2,6 @@ from __future__ import annotations -from typing import Union -from datetime import datetime - import httpx from .batch import ( @@ -23,8 +20,8 @@ FoldersResourceWithStreamingResponse, AsyncFoldersResourceWithStreamingResponse, ) -from ...._types import Body, Omit, Query, Headers, NoneType, NotGiven, SequenceNotStr, omit, not_given -from ...._utils import path_template, maybe_transform, async_maybe_transform +from ...._types import Body, Omit, Query, Headers, NoneType, NotGiven, omit, not_given +from ...._utils import path_template, maybe_transform from .a_b_tests import ( ABTestsResource, AsyncABTestsResource, @@ -41,16 +38,7 @@ async_to_raw_response_wrapper, async_to_streamed_response_wrapper, ) -from ....types.cms import ( - page_get_site_pages_params, - page_get_landing_pages_params, - page_get_site_pages_by_query_params, - page_get_landing_page_folders_params, - page_list_site_page_revisions_params, - page_get_landing_pages_by_query_params, - page_list_landing_page_revisions_params, - page_get_landing_page_folders_by_query_params, -) +from ....types.cms import page_list_site_page_revisions_params, page_list_landing_page_revisions_params from ....pagination import SyncPage, AsyncPage from .landing_pages import ( LandingPagesResource, @@ -127,138 +115,6 @@ def with_streaming_response(self) -> PagesResourceWithStreamingResponse: """ return PagesResourceWithStreamingResponse(self) - def get_landing_page_folders( - self, - *, - after: str | Omit = omit, - archived: bool | Omit = omit, - created_after: Union[str, datetime] | Omit = omit, - created_at: Union[str, datetime] | Omit = omit, - created_before: Union[str, datetime] | Omit = omit, - limit: int | Omit = omit, - property: str | Omit = omit, - sort: SequenceNotStr[str] | Omit = omit, - updated_after: Union[str, datetime] | Omit = omit, - updated_at: Union[str, datetime] | Omit = omit, - updated_before: Union[str, datetime] | Omit = omit, - # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. - # The extra values given here take precedence over values defined on the client or passed to this method. - extra_headers: Headers | None = None, - extra_query: Query | None = None, - extra_body: Body | None = None, - timeout: float | httpx.Timeout | None | NotGiven = not_given, - ) -> object: - """ - Args: - after: The paging cursor token of the last successfully read resource will be returned - as the `paging.next.after` JSON property of a paged response containing more - results. - - archived: Whether to return only results that have been archived. - - limit: The maximum number of results to display per page. - - extra_headers: Send extra headers - - extra_query: Add additional query parameters to the request - - extra_body: Add additional JSON properties to the request - - timeout: Override the client-level default timeout for this request, in seconds - """ - return self._get( - "/cms/pages/2026-03/landing-pages/folders/cursor", - options=make_request_options( - extra_headers=extra_headers, - extra_query=extra_query, - extra_body=extra_body, - timeout=timeout, - query=maybe_transform( - { - "after": after, - "archived": archived, - "created_after": created_after, - "created_at": created_at, - "created_before": created_before, - "limit": limit, - "property": property, - "sort": sort, - "updated_after": updated_after, - "updated_at": updated_at, - "updated_before": updated_before, - }, - page_get_landing_page_folders_params.PageGetLandingPageFoldersParams, - ), - ), - cast_to=object, - ) - - def get_landing_page_folders_by_query( - self, - *, - after: str | Omit = omit, - archived: bool | Omit = omit, - created_after: Union[str, datetime] | Omit = omit, - created_at: Union[str, datetime] | Omit = omit, - created_before: Union[str, datetime] | Omit = omit, - limit: int | Omit = omit, - property: str | Omit = omit, - sort: SequenceNotStr[str] | Omit = omit, - updated_after: Union[str, datetime] | Omit = omit, - updated_at: Union[str, datetime] | Omit = omit, - updated_before: Union[str, datetime] | Omit = omit, - # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. - # The extra values given here take precedence over values defined on the client or passed to this method. - extra_headers: Headers | None = None, - extra_query: Query | None = None, - extra_body: Body | None = None, - timeout: float | httpx.Timeout | None | NotGiven = not_given, - ) -> object: - """ - Args: - after: The paging cursor token of the last successfully read resource will be returned - as the `paging.next.after` JSON property of a paged response containing more - results. - - archived: Whether to return only results that have been archived. - - limit: The maximum number of results to display per page. - - extra_headers: Send extra headers - - extra_query: Add additional query parameters to the request - - extra_body: Add additional JSON properties to the request - - timeout: Override the client-level default timeout for this request, in seconds - """ - return self._get( - "/cms/pages/2026-03/landing-pages/folders/cursor/query", - options=make_request_options( - extra_headers=extra_headers, - extra_query=extra_query, - extra_body=extra_body, - timeout=timeout, - query=maybe_transform( - { - "after": after, - "archived": archived, - "created_after": created_after, - "created_at": created_at, - "created_before": created_before, - "limit": limit, - "property": property, - "sort": sort, - "updated_after": updated_after, - "updated_at": updated_at, - "updated_before": updated_before, - }, - page_get_landing_page_folders_by_query_params.PageGetLandingPageFoldersByQueryParams, - ), - ), - cast_to=object, - ) - def get_landing_page_revision( self, revision_id: str, @@ -300,138 +156,6 @@ def get_landing_page_revision( cast_to=PageVersion, ) - def get_landing_pages( - self, - *, - after: str | Omit = omit, - archived: bool | Omit = omit, - created_after: Union[str, datetime] | Omit = omit, - created_at: Union[str, datetime] | Omit = omit, - created_before: Union[str, datetime] | Omit = omit, - limit: int | Omit = omit, - property: str | Omit = omit, - sort: SequenceNotStr[str] | Omit = omit, - updated_after: Union[str, datetime] | Omit = omit, - updated_at: Union[str, datetime] | Omit = omit, - updated_before: Union[str, datetime] | Omit = omit, - # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. - # The extra values given here take precedence over values defined on the client or passed to this method. - extra_headers: Headers | None = None, - extra_query: Query | None = None, - extra_body: Body | None = None, - timeout: float | httpx.Timeout | None | NotGiven = not_given, - ) -> object: - """ - Args: - after: The paging cursor token of the last successfully read resource will be returned - as the `paging.next.after` JSON property of a paged response containing more - results. - - archived: Whether to return only results that have been archived. - - limit: The maximum number of results to display per page. - - extra_headers: Send extra headers - - extra_query: Add additional query parameters to the request - - extra_body: Add additional JSON properties to the request - - timeout: Override the client-level default timeout for this request, in seconds - """ - return self._get( - "/cms/pages/2026-03/landing-pages/cursor", - options=make_request_options( - extra_headers=extra_headers, - extra_query=extra_query, - extra_body=extra_body, - timeout=timeout, - query=maybe_transform( - { - "after": after, - "archived": archived, - "created_after": created_after, - "created_at": created_at, - "created_before": created_before, - "limit": limit, - "property": property, - "sort": sort, - "updated_after": updated_after, - "updated_at": updated_at, - "updated_before": updated_before, - }, - page_get_landing_pages_params.PageGetLandingPagesParams, - ), - ), - cast_to=object, - ) - - def get_landing_pages_by_query( - self, - *, - after: str | Omit = omit, - archived: bool | Omit = omit, - created_after: Union[str, datetime] | Omit = omit, - created_at: Union[str, datetime] | Omit = omit, - created_before: Union[str, datetime] | Omit = omit, - limit: int | Omit = omit, - property: str | Omit = omit, - sort: SequenceNotStr[str] | Omit = omit, - updated_after: Union[str, datetime] | Omit = omit, - updated_at: Union[str, datetime] | Omit = omit, - updated_before: Union[str, datetime] | Omit = omit, - # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. - # The extra values given here take precedence over values defined on the client or passed to this method. - extra_headers: Headers | None = None, - extra_query: Query | None = None, - extra_body: Body | None = None, - timeout: float | httpx.Timeout | None | NotGiven = not_given, - ) -> object: - """ - Args: - after: The paging cursor token of the last successfully read resource will be returned - as the `paging.next.after` JSON property of a paged response containing more - results. - - archived: Whether to return only results that have been archived. - - limit: The maximum number of results to display per page. - - extra_headers: Send extra headers - - extra_query: Add additional query parameters to the request - - extra_body: Add additional JSON properties to the request - - timeout: Override the client-level default timeout for this request, in seconds - """ - return self._get( - "/cms/pages/2026-03/landing-pages/cursor/query", - options=make_request_options( - extra_headers=extra_headers, - extra_query=extra_query, - extra_body=extra_body, - timeout=timeout, - query=maybe_transform( - { - "after": after, - "archived": archived, - "created_after": created_after, - "created_at": created_at, - "created_before": created_before, - "limit": limit, - "property": property, - "sort": sort, - "updated_after": updated_after, - "updated_at": updated_at, - "updated_before": updated_before, - }, - page_get_landing_pages_by_query_params.PageGetLandingPagesByQueryParams, - ), - ), - cast_to=object, - ) - def get_site_page_revision( self, revision_id: str, @@ -472,138 +196,6 @@ def get_site_page_revision( cast_to=PageVersion, ) - def get_site_pages( - self, - *, - after: str | Omit = omit, - archived: bool | Omit = omit, - created_after: Union[str, datetime] | Omit = omit, - created_at: Union[str, datetime] | Omit = omit, - created_before: Union[str, datetime] | Omit = omit, - limit: int | Omit = omit, - property: str | Omit = omit, - sort: SequenceNotStr[str] | Omit = omit, - updated_after: Union[str, datetime] | Omit = omit, - updated_at: Union[str, datetime] | Omit = omit, - updated_before: Union[str, datetime] | Omit = omit, - # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. - # The extra values given here take precedence over values defined on the client or passed to this method. - extra_headers: Headers | None = None, - extra_query: Query | None = None, - extra_body: Body | None = None, - timeout: float | httpx.Timeout | None | NotGiven = not_given, - ) -> object: - """ - Args: - after: The paging cursor token of the last successfully read resource will be returned - as the `paging.next.after` JSON property of a paged response containing more - results. - - archived: Whether to return only results that have been archived. - - limit: The maximum number of results to display per page. - - extra_headers: Send extra headers - - extra_query: Add additional query parameters to the request - - extra_body: Add additional JSON properties to the request - - timeout: Override the client-level default timeout for this request, in seconds - """ - return self._get( - "/cms/pages/2026-03/site-pages/cursor", - options=make_request_options( - extra_headers=extra_headers, - extra_query=extra_query, - extra_body=extra_body, - timeout=timeout, - query=maybe_transform( - { - "after": after, - "archived": archived, - "created_after": created_after, - "created_at": created_at, - "created_before": created_before, - "limit": limit, - "property": property, - "sort": sort, - "updated_after": updated_after, - "updated_at": updated_at, - "updated_before": updated_before, - }, - page_get_site_pages_params.PageGetSitePagesParams, - ), - ), - cast_to=object, - ) - - def get_site_pages_by_query( - self, - *, - after: str | Omit = omit, - archived: bool | Omit = omit, - created_after: Union[str, datetime] | Omit = omit, - created_at: Union[str, datetime] | Omit = omit, - created_before: Union[str, datetime] | Omit = omit, - limit: int | Omit = omit, - property: str | Omit = omit, - sort: SequenceNotStr[str] | Omit = omit, - updated_after: Union[str, datetime] | Omit = omit, - updated_at: Union[str, datetime] | Omit = omit, - updated_before: Union[str, datetime] | Omit = omit, - # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. - # The extra values given here take precedence over values defined on the client or passed to this method. - extra_headers: Headers | None = None, - extra_query: Query | None = None, - extra_body: Body | None = None, - timeout: float | httpx.Timeout | None | NotGiven = not_given, - ) -> object: - """ - Args: - after: The paging cursor token of the last successfully read resource will be returned - as the `paging.next.after` JSON property of a paged response containing more - results. - - archived: Whether to return only results that have been archived. - - limit: The maximum number of results to display per page. - - extra_headers: Send extra headers - - extra_query: Add additional query parameters to the request - - extra_body: Add additional JSON properties to the request - - timeout: Override the client-level default timeout for this request, in seconds - """ - return self._get( - "/cms/pages/2026-03/site-pages/cursor/query", - options=make_request_options( - extra_headers=extra_headers, - extra_query=extra_query, - extra_body=extra_body, - timeout=timeout, - query=maybe_transform( - { - "after": after, - "archived": archived, - "created_after": created_after, - "created_at": created_at, - "created_before": created_before, - "limit": limit, - "property": property, - "sort": sort, - "updated_after": updated_after, - "updated_at": updated_at, - "updated_before": updated_before, - }, - page_get_site_pages_by_query_params.PageGetSitePagesByQueryParams, - ), - ), - cast_to=object, - ) - def list_landing_page_revisions( self, object_id: str, @@ -737,352 +329,16 @@ def reset_site_page_draft( """ if not object_id: raise ValueError(f"Expected a non-empty value for `object_id` but received {object_id!r}") - extra_headers = {"Accept": "*/*", **(extra_headers or {})} - return self._post( - path_template("/cms/pages/2026-03/site-pages/{object_id}/draft/reset", object_id=object_id), - options=make_request_options( - extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout - ), - cast_to=NoneType, - ) - - def restore_landing_page_revision( - self, - revision_id: str, - *, - object_id: str, - # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. - # The extra values given here take precedence over values defined on the client or passed to this method. - extra_headers: Headers | None = None, - extra_query: Query | None = None, - extra_body: Body | None = None, - timeout: float | httpx.Timeout | None | NotGiven = not_given, - ) -> PageData: - """ - Restores a previous version of a landing page, specified by page ID and revision - ID. - - Args: - extra_headers: Send extra headers - - extra_query: Add additional query parameters to the request - - extra_body: Add additional JSON properties to the request - - timeout: Override the client-level default timeout for this request, in seconds - """ - if not object_id: - raise ValueError(f"Expected a non-empty value for `object_id` but received {object_id!r}") - if not revision_id: - raise ValueError(f"Expected a non-empty value for `revision_id` but received {revision_id!r}") - return self._post( - path_template( - "/cms/pages/2026-03/landing-pages/{object_id}/revisions/{revision_id}/restore", - object_id=object_id, - revision_id=revision_id, - ), - options=make_request_options( - extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout - ), - cast_to=PageData, - ) - - def restore_landing_page_revision_to_draft( - self, - revision_id: int, - *, - object_id: str, - # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. - # The extra values given here take precedence over values defined on the client or passed to this method. - extra_headers: Headers | None = None, - extra_query: Query | None = None, - extra_body: Body | None = None, - timeout: float | httpx.Timeout | None | NotGiven = not_given, - ) -> PageData: - """ - Specify a previous version of a landing page to set as the page draft. - - Args: - extra_headers: Send extra headers - - extra_query: Add additional query parameters to the request - - extra_body: Add additional JSON properties to the request - - timeout: Override the client-level default timeout for this request, in seconds - """ - if not object_id: - raise ValueError(f"Expected a non-empty value for `object_id` but received {object_id!r}") - return self._post( - path_template( - "/cms/pages/2026-03/landing-pages/{object_id}/revisions/{revision_id}/restore-to-draft", - object_id=object_id, - revision_id=revision_id, - ), - options=make_request_options( - extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout - ), - cast_to=PageData, - ) - - def restore_site_page_revision( - self, - revision_id: str, - *, - object_id: str, - # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. - # The extra values given here take precedence over values defined on the client or passed to this method. - extra_headers: Headers | None = None, - extra_query: Query | None = None, - extra_body: Body | None = None, - timeout: float | httpx.Timeout | None | NotGiven = not_given, - ) -> PageData: - """ - Restores a website page to a previous version, specified by page ID and version - ID. - - Args: - extra_headers: Send extra headers - - extra_query: Add additional query parameters to the request - - extra_body: Add additional JSON properties to the request - - timeout: Override the client-level default timeout for this request, in seconds - """ - if not object_id: - raise ValueError(f"Expected a non-empty value for `object_id` but received {object_id!r}") - if not revision_id: - raise ValueError(f"Expected a non-empty value for `revision_id` but received {revision_id!r}") - return self._post( - path_template( - "/cms/pages/2026-03/site-pages/{object_id}/revisions/{revision_id}/restore", - object_id=object_id, - revision_id=revision_id, - ), - options=make_request_options( - extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout - ), - cast_to=PageData, - ) - - def restore_site_page_revision_to_draft( - self, - revision_id: int, - *, - object_id: str, - # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. - # The extra values given here take precedence over values defined on the client or passed to this method. - extra_headers: Headers | None = None, - extra_query: Query | None = None, - extra_body: Body | None = None, - timeout: float | httpx.Timeout | None | NotGiven = not_given, - ) -> PageData: - """ - Takes a specified version of a website page and sets it as the new draft version - of the page. - - Args: - extra_headers: Send extra headers - - extra_query: Add additional query parameters to the request - - extra_body: Add additional JSON properties to the request - - timeout: Override the client-level default timeout for this request, in seconds - """ - if not object_id: - raise ValueError(f"Expected a non-empty value for `object_id` but received {object_id!r}") - return self._post( - path_template( - "/cms/pages/2026-03/site-pages/{object_id}/revisions/{revision_id}/restore-to-draft", - object_id=object_id, - revision_id=revision_id, - ), - options=make_request_options( - extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout - ), - cast_to=PageData, - ) - - -class AsyncPagesResource(AsyncAPIResource): - @cached_property - def a_b_tests(self) -> AsyncABTestsResource: - return AsyncABTestsResource(self._client) - - @cached_property - def batch(self) -> AsyncBatchResource: - return AsyncBatchResource(self._client) - - @cached_property - def folders(self) -> AsyncFoldersResource: - return AsyncFoldersResource(self._client) - - @cached_property - def landing_pages(self) -> AsyncLandingPagesResource: - return AsyncLandingPagesResource(self._client) - - @cached_property - def multi_language(self) -> AsyncMultiLanguageResource: - return AsyncMultiLanguageResource(self._client) - - @cached_property - def website_pages(self) -> AsyncWebsitePagesResource: - return AsyncWebsitePagesResource(self._client) - - @cached_property - def with_raw_response(self) -> AsyncPagesResourceWithRawResponse: - """ - This property can be used as a prefix for any HTTP method call to return - the raw response object instead of the parsed content. - - For more information, see https://www.github.com/HubSpot/hubspot-sdk-python#accessing-raw-response-data-eg-headers - """ - return AsyncPagesResourceWithRawResponse(self) - - @cached_property - def with_streaming_response(self) -> AsyncPagesResourceWithStreamingResponse: - """ - An alternative to `.with_raw_response` that doesn't eagerly read the response body. - - For more information, see https://www.github.com/HubSpot/hubspot-sdk-python#with_streaming_response - """ - return AsyncPagesResourceWithStreamingResponse(self) - - async def get_landing_page_folders( - self, - *, - after: str | Omit = omit, - archived: bool | Omit = omit, - created_after: Union[str, datetime] | Omit = omit, - created_at: Union[str, datetime] | Omit = omit, - created_before: Union[str, datetime] | Omit = omit, - limit: int | Omit = omit, - property: str | Omit = omit, - sort: SequenceNotStr[str] | Omit = omit, - updated_after: Union[str, datetime] | Omit = omit, - updated_at: Union[str, datetime] | Omit = omit, - updated_before: Union[str, datetime] | Omit = omit, - # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. - # The extra values given here take precedence over values defined on the client or passed to this method. - extra_headers: Headers | None = None, - extra_query: Query | None = None, - extra_body: Body | None = None, - timeout: float | httpx.Timeout | None | NotGiven = not_given, - ) -> object: - """ - Args: - after: The paging cursor token of the last successfully read resource will be returned - as the `paging.next.after` JSON property of a paged response containing more - results. - - archived: Whether to return only results that have been archived. - - limit: The maximum number of results to display per page. - - extra_headers: Send extra headers - - extra_query: Add additional query parameters to the request - - extra_body: Add additional JSON properties to the request - - timeout: Override the client-level default timeout for this request, in seconds - """ - return await self._get( - "/cms/pages/2026-03/landing-pages/folders/cursor", - options=make_request_options( - extra_headers=extra_headers, - extra_query=extra_query, - extra_body=extra_body, - timeout=timeout, - query=await async_maybe_transform( - { - "after": after, - "archived": archived, - "created_after": created_after, - "created_at": created_at, - "created_before": created_before, - "limit": limit, - "property": property, - "sort": sort, - "updated_after": updated_after, - "updated_at": updated_at, - "updated_before": updated_before, - }, - page_get_landing_page_folders_params.PageGetLandingPageFoldersParams, - ), - ), - cast_to=object, - ) - - async def get_landing_page_folders_by_query( - self, - *, - after: str | Omit = omit, - archived: bool | Omit = omit, - created_after: Union[str, datetime] | Omit = omit, - created_at: Union[str, datetime] | Omit = omit, - created_before: Union[str, datetime] | Omit = omit, - limit: int | Omit = omit, - property: str | Omit = omit, - sort: SequenceNotStr[str] | Omit = omit, - updated_after: Union[str, datetime] | Omit = omit, - updated_at: Union[str, datetime] | Omit = omit, - updated_before: Union[str, datetime] | Omit = omit, - # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. - # The extra values given here take precedence over values defined on the client or passed to this method. - extra_headers: Headers | None = None, - extra_query: Query | None = None, - extra_body: Body | None = None, - timeout: float | httpx.Timeout | None | NotGiven = not_given, - ) -> object: - """ - Args: - after: The paging cursor token of the last successfully read resource will be returned - as the `paging.next.after` JSON property of a paged response containing more - results. - - archived: Whether to return only results that have been archived. - - limit: The maximum number of results to display per page. - - extra_headers: Send extra headers - - extra_query: Add additional query parameters to the request - - extra_body: Add additional JSON properties to the request - - timeout: Override the client-level default timeout for this request, in seconds - """ - return await self._get( - "/cms/pages/2026-03/landing-pages/folders/cursor/query", + extra_headers = {"Accept": "*/*", **(extra_headers or {})} + return self._post( + path_template("/cms/pages/2026-03/site-pages/{object_id}/draft/reset", object_id=object_id), options=make_request_options( - extra_headers=extra_headers, - extra_query=extra_query, - extra_body=extra_body, - timeout=timeout, - query=await async_maybe_transform( - { - "after": after, - "archived": archived, - "created_after": created_after, - "created_at": created_at, - "created_before": created_before, - "limit": limit, - "property": property, - "sort": sort, - "updated_after": updated_after, - "updated_at": updated_at, - "updated_before": updated_before, - }, - page_get_landing_page_folders_by_query_params.PageGetLandingPageFoldersByQueryParams, - ), + extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout ), - cast_to=object, + cast_to=NoneType, ) - async def get_landing_page_revision( + def restore_landing_page_revision( self, revision_id: str, *, @@ -1093,9 +349,9 @@ async def get_landing_page_revision( extra_query: Query | None = None, extra_body: Body | None = None, timeout: float | httpx.Timeout | None | NotGiven = not_given, - ) -> PageVersion: + ) -> PageData: """ - Retrieve a previous version of a landing page, specified by page ID and revision + Restores a previous version of a landing page, specified by page ID and revision ID. Args: @@ -1111,49 +367,34 @@ async def get_landing_page_revision( raise ValueError(f"Expected a non-empty value for `object_id` but received {object_id!r}") if not revision_id: raise ValueError(f"Expected a non-empty value for `revision_id` but received {revision_id!r}") - return await self._get( + return self._post( path_template( - "/cms/pages/2026-03/landing-pages/{object_id}/revisions/{revision_id}", + "/cms/pages/2026-03/landing-pages/{object_id}/revisions/{revision_id}/restore", object_id=object_id, revision_id=revision_id, ), options=make_request_options( extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout ), - cast_to=PageVersion, + cast_to=PageData, ) - async def get_landing_pages( + def restore_landing_page_revision_to_draft( self, + revision_id: int, *, - after: str | Omit = omit, - archived: bool | Omit = omit, - created_after: Union[str, datetime] | Omit = omit, - created_at: Union[str, datetime] | Omit = omit, - created_before: Union[str, datetime] | Omit = omit, - limit: int | Omit = omit, - property: str | Omit = omit, - sort: SequenceNotStr[str] | Omit = omit, - updated_after: Union[str, datetime] | Omit = omit, - updated_at: Union[str, datetime] | Omit = omit, - updated_before: Union[str, datetime] | Omit = omit, + object_id: str, # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. # The extra values given here take precedence over values defined on the client or passed to this method. extra_headers: Headers | None = None, extra_query: Query | None = None, extra_body: Body | None = None, timeout: float | httpx.Timeout | None | NotGiven = not_given, - ) -> object: + ) -> PageData: """ - Args: - after: The paging cursor token of the last successfully read resource will be returned - as the `paging.next.after` JSON property of a paged response containing more - results. - - archived: Whether to return only results that have been archived. - - limit: The maximum number of results to display per page. + Specify a previous version of a landing page to set as the page draft. + Args: extra_headers: Send extra headers extra_query: Add additional query parameters to the request @@ -1162,64 +403,37 @@ async def get_landing_pages( timeout: Override the client-level default timeout for this request, in seconds """ - return await self._get( - "/cms/pages/2026-03/landing-pages/cursor", + if not object_id: + raise ValueError(f"Expected a non-empty value for `object_id` but received {object_id!r}") + return self._post( + path_template( + "/cms/pages/2026-03/landing-pages/{object_id}/revisions/{revision_id}/restore-to-draft", + object_id=object_id, + revision_id=revision_id, + ), options=make_request_options( - extra_headers=extra_headers, - extra_query=extra_query, - extra_body=extra_body, - timeout=timeout, - query=await async_maybe_transform( - { - "after": after, - "archived": archived, - "created_after": created_after, - "created_at": created_at, - "created_before": created_before, - "limit": limit, - "property": property, - "sort": sort, - "updated_after": updated_after, - "updated_at": updated_at, - "updated_before": updated_before, - }, - page_get_landing_pages_params.PageGetLandingPagesParams, - ), + extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout ), - cast_to=object, + cast_to=PageData, ) - async def get_landing_pages_by_query( + def restore_site_page_revision( self, + revision_id: str, *, - after: str | Omit = omit, - archived: bool | Omit = omit, - created_after: Union[str, datetime] | Omit = omit, - created_at: Union[str, datetime] | Omit = omit, - created_before: Union[str, datetime] | Omit = omit, - limit: int | Omit = omit, - property: str | Omit = omit, - sort: SequenceNotStr[str] | Omit = omit, - updated_after: Union[str, datetime] | Omit = omit, - updated_at: Union[str, datetime] | Omit = omit, - updated_before: Union[str, datetime] | Omit = omit, + object_id: str, # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. # The extra values given here take precedence over values defined on the client or passed to this method. extra_headers: Headers | None = None, extra_query: Query | None = None, extra_body: Body | None = None, timeout: float | httpx.Timeout | None | NotGiven = not_given, - ) -> object: + ) -> PageData: """ - Args: - after: The paging cursor token of the last successfully read resource will be returned - as the `paging.next.after` JSON property of a paged response containing more - results. - - archived: Whether to return only results that have been archived. - - limit: The maximum number of results to display per page. + Restores a website page to a previous version, specified by page ID and version + ID. + Args: extra_headers: Send extra headers extra_query: Add additional query parameters to the request @@ -1228,36 +442,25 @@ async def get_landing_pages_by_query( timeout: Override the client-level default timeout for this request, in seconds """ - return await self._get( - "/cms/pages/2026-03/landing-pages/cursor/query", + if not object_id: + raise ValueError(f"Expected a non-empty value for `object_id` but received {object_id!r}") + if not revision_id: + raise ValueError(f"Expected a non-empty value for `revision_id` but received {revision_id!r}") + return self._post( + path_template( + "/cms/pages/2026-03/site-pages/{object_id}/revisions/{revision_id}/restore", + object_id=object_id, + revision_id=revision_id, + ), options=make_request_options( - extra_headers=extra_headers, - extra_query=extra_query, - extra_body=extra_body, - timeout=timeout, - query=await async_maybe_transform( - { - "after": after, - "archived": archived, - "created_after": created_after, - "created_at": created_at, - "created_before": created_before, - "limit": limit, - "property": property, - "sort": sort, - "updated_after": updated_after, - "updated_at": updated_at, - "updated_before": updated_before, - }, - page_get_landing_pages_by_query_params.PageGetLandingPagesByQueryParams, - ), + extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout ), - cast_to=object, + cast_to=PageData, ) - async def get_site_page_revision( + def restore_site_page_revision_to_draft( self, - revision_id: str, + revision_id: int, *, object_id: str, # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. @@ -1266,9 +469,10 @@ async def get_site_page_revision( extra_query: Query | None = None, extra_body: Body | None = None, timeout: float | httpx.Timeout | None | NotGiven = not_given, - ) -> PageVersion: + ) -> PageData: """ - Retrieve a previous version of a website page by the revision ID. + Takes a specified version of a website page and sets it as the new draft version + of the page. Args: extra_headers: Send extra headers @@ -1281,51 +485,80 @@ async def get_site_page_revision( """ if not object_id: raise ValueError(f"Expected a non-empty value for `object_id` but received {object_id!r}") - if not revision_id: - raise ValueError(f"Expected a non-empty value for `revision_id` but received {revision_id!r}") - return await self._get( + return self._post( path_template( - "/cms/pages/2026-03/site-pages/{object_id}/revisions/{revision_id}", + "/cms/pages/2026-03/site-pages/{object_id}/revisions/{revision_id}/restore-to-draft", object_id=object_id, revision_id=revision_id, ), options=make_request_options( extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout ), - cast_to=PageVersion, + cast_to=PageData, ) - async def get_site_pages( + +class AsyncPagesResource(AsyncAPIResource): + @cached_property + def a_b_tests(self) -> AsyncABTestsResource: + return AsyncABTestsResource(self._client) + + @cached_property + def batch(self) -> AsyncBatchResource: + return AsyncBatchResource(self._client) + + @cached_property + def folders(self) -> AsyncFoldersResource: + return AsyncFoldersResource(self._client) + + @cached_property + def landing_pages(self) -> AsyncLandingPagesResource: + return AsyncLandingPagesResource(self._client) + + @cached_property + def multi_language(self) -> AsyncMultiLanguageResource: + return AsyncMultiLanguageResource(self._client) + + @cached_property + def website_pages(self) -> AsyncWebsitePagesResource: + return AsyncWebsitePagesResource(self._client) + + @cached_property + def with_raw_response(self) -> AsyncPagesResourceWithRawResponse: + """ + This property can be used as a prefix for any HTTP method call to return + the raw response object instead of the parsed content. + + For more information, see https://www.github.com/HubSpot/hubspot-sdk-python#accessing-raw-response-data-eg-headers + """ + return AsyncPagesResourceWithRawResponse(self) + + @cached_property + def with_streaming_response(self) -> AsyncPagesResourceWithStreamingResponse: + """ + An alternative to `.with_raw_response` that doesn't eagerly read the response body. + + For more information, see https://www.github.com/HubSpot/hubspot-sdk-python#with_streaming_response + """ + return AsyncPagesResourceWithStreamingResponse(self) + + async def get_landing_page_revision( self, + revision_id: str, *, - after: str | Omit = omit, - archived: bool | Omit = omit, - created_after: Union[str, datetime] | Omit = omit, - created_at: Union[str, datetime] | Omit = omit, - created_before: Union[str, datetime] | Omit = omit, - limit: int | Omit = omit, - property: str | Omit = omit, - sort: SequenceNotStr[str] | Omit = omit, - updated_after: Union[str, datetime] | Omit = omit, - updated_at: Union[str, datetime] | Omit = omit, - updated_before: Union[str, datetime] | Omit = omit, + object_id: str, # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. # The extra values given here take precedence over values defined on the client or passed to this method. extra_headers: Headers | None = None, extra_query: Query | None = None, extra_body: Body | None = None, timeout: float | httpx.Timeout | None | NotGiven = not_given, - ) -> object: + ) -> PageVersion: """ - Args: - after: The paging cursor token of the last successfully read resource will be returned - as the `paging.next.after` JSON property of a paged response containing more - results. - - archived: Whether to return only results that have been archived. - - limit: The maximum number of results to display per page. + Retrieve a previous version of a landing page, specified by page ID and revision + ID. + Args: extra_headers: Send extra headers extra_query: Add additional query parameters to the request @@ -1334,64 +567,38 @@ async def get_site_pages( timeout: Override the client-level default timeout for this request, in seconds """ + if not object_id: + raise ValueError(f"Expected a non-empty value for `object_id` but received {object_id!r}") + if not revision_id: + raise ValueError(f"Expected a non-empty value for `revision_id` but received {revision_id!r}") return await self._get( - "/cms/pages/2026-03/site-pages/cursor", + path_template( + "/cms/pages/2026-03/landing-pages/{object_id}/revisions/{revision_id}", + object_id=object_id, + revision_id=revision_id, + ), options=make_request_options( - extra_headers=extra_headers, - extra_query=extra_query, - extra_body=extra_body, - timeout=timeout, - query=await async_maybe_transform( - { - "after": after, - "archived": archived, - "created_after": created_after, - "created_at": created_at, - "created_before": created_before, - "limit": limit, - "property": property, - "sort": sort, - "updated_after": updated_after, - "updated_at": updated_at, - "updated_before": updated_before, - }, - page_get_site_pages_params.PageGetSitePagesParams, - ), + extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout ), - cast_to=object, + cast_to=PageVersion, ) - async def get_site_pages_by_query( + async def get_site_page_revision( self, + revision_id: str, *, - after: str | Omit = omit, - archived: bool | Omit = omit, - created_after: Union[str, datetime] | Omit = omit, - created_at: Union[str, datetime] | Omit = omit, - created_before: Union[str, datetime] | Omit = omit, - limit: int | Omit = omit, - property: str | Omit = omit, - sort: SequenceNotStr[str] | Omit = omit, - updated_after: Union[str, datetime] | Omit = omit, - updated_at: Union[str, datetime] | Omit = omit, - updated_before: Union[str, datetime] | Omit = omit, + object_id: str, # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. # The extra values given here take precedence over values defined on the client or passed to this method. extra_headers: Headers | None = None, extra_query: Query | None = None, extra_body: Body | None = None, timeout: float | httpx.Timeout | None | NotGiven = not_given, - ) -> object: + ) -> PageVersion: """ - Args: - after: The paging cursor token of the last successfully read resource will be returned - as the `paging.next.after` JSON property of a paged response containing more - results. - - archived: Whether to return only results that have been archived. - - limit: The maximum number of results to display per page. + Retrieve a previous version of a website page by the revision ID. + Args: extra_headers: Send extra headers extra_query: Add additional query parameters to the request @@ -1400,31 +607,20 @@ async def get_site_pages_by_query( timeout: Override the client-level default timeout for this request, in seconds """ + if not object_id: + raise ValueError(f"Expected a non-empty value for `object_id` but received {object_id!r}") + if not revision_id: + raise ValueError(f"Expected a non-empty value for `revision_id` but received {revision_id!r}") return await self._get( - "/cms/pages/2026-03/site-pages/cursor/query", + path_template( + "/cms/pages/2026-03/site-pages/{object_id}/revisions/{revision_id}", + object_id=object_id, + revision_id=revision_id, + ), options=make_request_options( - extra_headers=extra_headers, - extra_query=extra_query, - extra_body=extra_body, - timeout=timeout, - query=await async_maybe_transform( - { - "after": after, - "archived": archived, - "created_after": created_after, - "created_at": created_at, - "created_before": created_before, - "limit": limit, - "property": property, - "sort": sort, - "updated_after": updated_after, - "updated_at": updated_at, - "updated_before": updated_before, - }, - page_get_site_pages_by_query_params.PageGetSitePagesByQueryParams, - ), + extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout ), - cast_to=object, + cast_to=PageVersion, ) def list_landing_page_revisions( @@ -1733,30 +929,12 @@ class PagesResourceWithRawResponse: def __init__(self, pages: PagesResource) -> None: self._pages = pages - self.get_landing_page_folders = to_raw_response_wrapper( - pages.get_landing_page_folders, - ) - self.get_landing_page_folders_by_query = to_raw_response_wrapper( - pages.get_landing_page_folders_by_query, - ) self.get_landing_page_revision = to_raw_response_wrapper( pages.get_landing_page_revision, ) - self.get_landing_pages = to_raw_response_wrapper( - pages.get_landing_pages, - ) - self.get_landing_pages_by_query = to_raw_response_wrapper( - pages.get_landing_pages_by_query, - ) self.get_site_page_revision = to_raw_response_wrapper( pages.get_site_page_revision, ) - self.get_site_pages = to_raw_response_wrapper( - pages.get_site_pages, - ) - self.get_site_pages_by_query = to_raw_response_wrapper( - pages.get_site_pages_by_query, - ) self.list_landing_page_revisions = to_raw_response_wrapper( pages.list_landing_page_revisions, ) @@ -1808,30 +986,12 @@ class AsyncPagesResourceWithRawResponse: def __init__(self, pages: AsyncPagesResource) -> None: self._pages = pages - self.get_landing_page_folders = async_to_raw_response_wrapper( - pages.get_landing_page_folders, - ) - self.get_landing_page_folders_by_query = async_to_raw_response_wrapper( - pages.get_landing_page_folders_by_query, - ) self.get_landing_page_revision = async_to_raw_response_wrapper( pages.get_landing_page_revision, ) - self.get_landing_pages = async_to_raw_response_wrapper( - pages.get_landing_pages, - ) - self.get_landing_pages_by_query = async_to_raw_response_wrapper( - pages.get_landing_pages_by_query, - ) self.get_site_page_revision = async_to_raw_response_wrapper( pages.get_site_page_revision, ) - self.get_site_pages = async_to_raw_response_wrapper( - pages.get_site_pages, - ) - self.get_site_pages_by_query = async_to_raw_response_wrapper( - pages.get_site_pages_by_query, - ) self.list_landing_page_revisions = async_to_raw_response_wrapper( pages.list_landing_page_revisions, ) @@ -1883,30 +1043,12 @@ class PagesResourceWithStreamingResponse: def __init__(self, pages: PagesResource) -> None: self._pages = pages - self.get_landing_page_folders = to_streamed_response_wrapper( - pages.get_landing_page_folders, - ) - self.get_landing_page_folders_by_query = to_streamed_response_wrapper( - pages.get_landing_page_folders_by_query, - ) self.get_landing_page_revision = to_streamed_response_wrapper( pages.get_landing_page_revision, ) - self.get_landing_pages = to_streamed_response_wrapper( - pages.get_landing_pages, - ) - self.get_landing_pages_by_query = to_streamed_response_wrapper( - pages.get_landing_pages_by_query, - ) self.get_site_page_revision = to_streamed_response_wrapper( pages.get_site_page_revision, ) - self.get_site_pages = to_streamed_response_wrapper( - pages.get_site_pages, - ) - self.get_site_pages_by_query = to_streamed_response_wrapper( - pages.get_site_pages_by_query, - ) self.list_landing_page_revisions = to_streamed_response_wrapper( pages.list_landing_page_revisions, ) @@ -1958,30 +1100,12 @@ class AsyncPagesResourceWithStreamingResponse: def __init__(self, pages: AsyncPagesResource) -> None: self._pages = pages - self.get_landing_page_folders = async_to_streamed_response_wrapper( - pages.get_landing_page_folders, - ) - self.get_landing_page_folders_by_query = async_to_streamed_response_wrapper( - pages.get_landing_page_folders_by_query, - ) self.get_landing_page_revision = async_to_streamed_response_wrapper( pages.get_landing_page_revision, ) - self.get_landing_pages = async_to_streamed_response_wrapper( - pages.get_landing_pages, - ) - self.get_landing_pages_by_query = async_to_streamed_response_wrapper( - pages.get_landing_pages_by_query, - ) self.get_site_page_revision = async_to_streamed_response_wrapper( pages.get_site_page_revision, ) - self.get_site_pages = async_to_streamed_response_wrapper( - pages.get_site_pages, - ) - self.get_site_pages_by_query = async_to_streamed_response_wrapper( - pages.get_site_pages_by_query, - ) self.list_landing_page_revisions = async_to_streamed_response_wrapper( pages.list_landing_page_revisions, ) diff --git a/src/hubspot_sdk/resources/cms/pages/website_pages.py b/src/hubspot_sdk/resources/cms/pages/website_pages.py index e0bc762b..d3a6e4ae 100644 --- a/src/hubspot_sdk/resources/cms/pages/website_pages.py +++ b/src/hubspot_sdk/resources/cms/pages/website_pages.py @@ -2493,8 +2493,25 @@ def list( archived: Whether to return only results that have been archived. + created_after: Filter pages created after a specific date and time. + + created_at: Filter pages by the exact creation timestamp. Format is date-time. + + created_before: Filter pages created before a specific date-time. + limit: The maximum number of results to display per page. + property: Specify properties to include in the response. + + sort: Specify the order of results. Accepts an array of field names to sort by. + + updated_after: Filter pages updated after the specified date-time. + + updated_at: Filter pages by their exact update timestamp in ISO 8601 format. + + updated_before: Filter pages updated before a specific date and time. Format should be + date-time. + extra_headers: Send extra headers extra_query: Add additional query parameters to the request @@ -6467,8 +6484,25 @@ def list( archived: Whether to return only results that have been archived. + created_after: Filter pages created after a specific date and time. + + created_at: Filter pages by the exact creation timestamp. Format is date-time. + + created_before: Filter pages created before a specific date-time. + limit: The maximum number of results to display per page. + property: Specify properties to include in the response. + + sort: Specify the order of results. Accepts an array of field names to sort by. + + updated_after: Filter pages updated after the specified date-time. + + updated_at: Filter pages by their exact update timestamp in ISO 8601 format. + + updated_before: Filter pages updated before a specific date and time. Format should be + date-time. + extra_headers: Send extra headers extra_query: Add additional query parameters to the request diff --git a/src/hubspot_sdk/resources/cms/source_code.py b/src/hubspot_sdk/resources/cms/source_code.py index ddd15d71..5fc74e6e 100644 --- a/src/hubspot_sdk/resources/cms/source_code.py +++ b/src/hubspot_sdk/resources/cms/source_code.py @@ -2,40 +2,22 @@ from __future__ import annotations -import typing_extensions -from typing import Mapping, cast - import httpx -from ..._types import Body, Omit, Query, Headers, NoneType, NotGiven, FileTypes, omit, not_given -from ..._utils import extract_files, path_template, maybe_transform, deepcopy_minimal, async_maybe_transform +from ..._types import Body, Query, Headers, NotGiven, not_given +from ..._utils import path_template, maybe_transform, async_maybe_transform from ..._compat import cached_property from ..._resource import SyncAPIResource, AsyncAPIResource from ..._response import ( - BinaryAPIResponse, - AsyncBinaryAPIResponse, - StreamedBinaryAPIResponse, - AsyncStreamedBinaryAPIResponse, to_raw_response_wrapper, to_streamed_response_wrapper, async_to_raw_response_wrapper, - to_custom_raw_response_wrapper, async_to_streamed_response_wrapper, - to_custom_streamed_response_wrapper, - async_to_custom_raw_response_wrapper, - async_to_custom_streamed_response_wrapper, -) -from ...types.cms import ( - source_code_create_params, - source_code_upsert_params, - source_code_validate_params, - source_code_get_metadata_params, - source_code_extract_async_params, ) +from ...types.cms import source_code_extract_async_params from ..._base_client import make_request_options from ...types.shared.task_locator import TaskLocator from ...types.shared.action_response import ActionResponse -from ...types.cms.asset_file_metadata import AssetFileMetadata __all__ = ["SourceCodeResource", "AsyncSourceCodeResource"] @@ -60,92 +42,6 @@ def with_streaming_response(self) -> SourceCodeResourceWithStreamingResponse: """ return SourceCodeResourceWithStreamingResponse(self) - @typing_extensions.deprecated("deprecated") - def create( - self, - path: str, - *, - environment: str, - file: FileTypes | Omit = omit, - # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. - # The extra values given here take precedence over values defined on the client or passed to this method. - extra_headers: Headers | None = None, - extra_query: Query | None = None, - extra_body: Body | None = None, - timeout: float | httpx.Timeout | None | NotGiven = not_given, - ) -> AssetFileMetadata: - """Creates a file at the specified path in the specified environment. - - Accepts - multipart/form-data content type. Throws an error if a file already exists at - the specified path. - - Args: - extra_headers: Send extra headers - - extra_query: Add additional query parameters to the request - - extra_body: Add additional JSON properties to the request - - timeout: Override the client-level default timeout for this request, in seconds - """ - if not environment: - raise ValueError(f"Expected a non-empty value for `environment` but received {environment!r}") - if not path: - raise ValueError(f"Expected a non-empty value for `path` but received {path!r}") - body = deepcopy_minimal({"file": file}) - files = extract_files(cast(Mapping[str, object], body), paths=[["file"]]) - # It should be noted that the actual Content-Type header that will be - # sent to the server will contain a `boundary` parameter, e.g. - # multipart/form-data; boundary=---abc-- - extra_headers = {"Content-Type": "multipart/form-data", **(extra_headers or {})} - return self._post( - path_template("/cms/source-code/2026-03/{environment}/content/{path}", environment=environment, path=path), - body=maybe_transform(body, source_code_create_params.SourceCodeCreateParams), - files=files, - options=make_request_options( - extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout - ), - cast_to=AssetFileMetadata, - ) - - def delete( - self, - path: str, - *, - environment: str, - # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. - # The extra values given here take precedence over values defined on the client or passed to this method. - extra_headers: Headers | None = None, - extra_query: Query | None = None, - extra_body: Body | None = None, - timeout: float | httpx.Timeout | None | NotGiven = not_given, - ) -> None: - """ - Deletes the file at the specified path in the specified environment. - - Args: - extra_headers: Send extra headers - - extra_query: Add additional query parameters to the request - - extra_body: Add additional JSON properties to the request - - timeout: Override the client-level default timeout for this request, in seconds - """ - if not environment: - raise ValueError(f"Expected a non-empty value for `environment` but received {environment!r}") - if not path: - raise ValueError(f"Expected a non-empty value for `path` but received {path!r}") - extra_headers = {"Accept": "*/*", **(extra_headers or {})} - return self._delete( - path_template("/cms/source-code/2026-03/{environment}/content/{path}", environment=environment, path=path), - options=make_request_options( - extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout - ), - cast_to=NoneType, - ) - def extract_async( self, *, @@ -182,44 +78,6 @@ def extract_async( cast_to=TaskLocator, ) - def get( - self, - path: str, - *, - environment: str, - # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. - # The extra values given here take precedence over values defined on the client or passed to this method. - extra_headers: Headers | None = None, - extra_query: Query | None = None, - extra_body: Body | None = None, - timeout: float | httpx.Timeout | None | NotGiven = not_given, - ) -> BinaryAPIResponse: - """ - Downloads the byte contents of the file at the specified path in the specified - environment. - - Args: - extra_headers: Send extra headers - - extra_query: Add additional query parameters to the request - - extra_body: Add additional JSON properties to the request - - timeout: Override the client-level default timeout for this request, in seconds - """ - if not environment: - raise ValueError(f"Expected a non-empty value for `environment` but received {environment!r}") - if not path: - raise ValueError(f"Expected a non-empty value for `path` but received {path!r}") - extra_headers = {"Accept": "*/*", **(extra_headers or {})} - return self._get( - path_template("/cms/source-code/2026-03/{environment}/content/{path}", environment=environment, path=path), - options=make_request_options( - extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout - ), - cast_to=BinaryAPIResponse, - ) - def get_extraction_status( self, task_id: int, @@ -252,144 +110,6 @@ def get_extraction_status( cast_to=ActionResponse, ) - def get_metadata( - self, - path: str, - *, - environment: str, - properties: str | Omit = omit, - # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. - # The extra values given here take precedence over values defined on the client or passed to this method. - extra_headers: Headers | None = None, - extra_query: Query | None = None, - extra_body: Body | None = None, - timeout: float | httpx.Timeout | None | NotGiven = not_given, - ) -> AssetFileMetadata: - """ - Gets the metadata object for the file at the specified path in the specified - environment. - - Args: - extra_headers: Send extra headers - - extra_query: Add additional query parameters to the request - - extra_body: Add additional JSON properties to the request - - timeout: Override the client-level default timeout for this request, in seconds - """ - if not environment: - raise ValueError(f"Expected a non-empty value for `environment` but received {environment!r}") - if not path: - raise ValueError(f"Expected a non-empty value for `path` but received {path!r}") - return self._get( - path_template("/cms/source-code/2026-03/{environment}/metadata/{path}", environment=environment, path=path), - options=make_request_options( - extra_headers=extra_headers, - extra_query=extra_query, - extra_body=extra_body, - timeout=timeout, - query=maybe_transform( - {"properties": properties}, source_code_get_metadata_params.SourceCodeGetMetadataParams - ), - ), - cast_to=AssetFileMetadata, - ) - - def upsert( - self, - path: str, - *, - environment: str, - file: FileTypes | Omit = omit, - # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. - # The extra values given here take precedence over values defined on the client or passed to this method. - extra_headers: Headers | None = None, - extra_query: Query | None = None, - extra_body: Body | None = None, - timeout: float | httpx.Timeout | None | NotGiven = not_given, - ) -> AssetFileMetadata: - """Upserts a file at the specified path in the specified environment. - - Accepts - multipart/form-data content type. - - Args: - extra_headers: Send extra headers - - extra_query: Add additional query parameters to the request - - extra_body: Add additional JSON properties to the request - - timeout: Override the client-level default timeout for this request, in seconds - """ - if not environment: - raise ValueError(f"Expected a non-empty value for `environment` but received {environment!r}") - if not path: - raise ValueError(f"Expected a non-empty value for `path` but received {path!r}") - body = deepcopy_minimal({"file": file}) - files = extract_files(cast(Mapping[str, object], body), paths=[["file"]]) - # It should be noted that the actual Content-Type header that will be - # sent to the server will contain a `boundary` parameter, e.g. - # multipart/form-data; boundary=---abc-- - extra_headers = {"Content-Type": "multipart/form-data", **(extra_headers or {})} - return self._put( - path_template("/cms/source-code/2026-03/{environment}/content/{path}", environment=environment, path=path), - body=maybe_transform(body, source_code_upsert_params.SourceCodeUpsertParams), - files=files, - options=make_request_options( - extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout - ), - cast_to=AssetFileMetadata, - ) - - def validate( - self, - path: str, - *, - environment: str, - file: FileTypes | Omit = omit, - # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. - # The extra values given here take precedence over values defined on the client or passed to this method. - extra_headers: Headers | None = None, - extra_query: Query | None = None, - extra_body: Body | None = None, - timeout: float | httpx.Timeout | None | NotGiven = not_given, - ) -> BinaryAPIResponse: - """ - Validates the file contents passed to the endpoint given a specified path and - environment. Accepts multipart/form-data content type. - - Args: - extra_headers: Send extra headers - - extra_query: Add additional query parameters to the request - - extra_body: Add additional JSON properties to the request - - timeout: Override the client-level default timeout for this request, in seconds - """ - if not environment: - raise ValueError(f"Expected a non-empty value for `environment` but received {environment!r}") - if not path: - raise ValueError(f"Expected a non-empty value for `path` but received {path!r}") - extra_headers = {"Accept": "*/*", **(extra_headers or {})} - body = deepcopy_minimal({"file": file}) - files = extract_files(cast(Mapping[str, object], body), paths=[["file"]]) - # It should be noted that the actual Content-Type header that will be - # sent to the server will contain a `boundary` parameter, e.g. - # multipart/form-data; boundary=---abc-- - extra_headers = {"Content-Type": "multipart/form-data", **(extra_headers or {})} - return self._post( - path_template("/cms/source-code/2026-03/{environment}/validate/{path}", environment=environment, path=path), - body=maybe_transform(body, source_code_validate_params.SourceCodeValidateParams), - files=files, - options=make_request_options( - extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout - ), - cast_to=BinaryAPIResponse, - ) - class AsyncSourceCodeResource(AsyncAPIResource): @cached_property @@ -411,92 +131,6 @@ def with_streaming_response(self) -> AsyncSourceCodeResourceWithStreamingRespons """ return AsyncSourceCodeResourceWithStreamingResponse(self) - @typing_extensions.deprecated("deprecated") - async def create( - self, - path: str, - *, - environment: str, - file: FileTypes | Omit = omit, - # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. - # The extra values given here take precedence over values defined on the client or passed to this method. - extra_headers: Headers | None = None, - extra_query: Query | None = None, - extra_body: Body | None = None, - timeout: float | httpx.Timeout | None | NotGiven = not_given, - ) -> AssetFileMetadata: - """Creates a file at the specified path in the specified environment. - - Accepts - multipart/form-data content type. Throws an error if a file already exists at - the specified path. - - Args: - extra_headers: Send extra headers - - extra_query: Add additional query parameters to the request - - extra_body: Add additional JSON properties to the request - - timeout: Override the client-level default timeout for this request, in seconds - """ - if not environment: - raise ValueError(f"Expected a non-empty value for `environment` but received {environment!r}") - if not path: - raise ValueError(f"Expected a non-empty value for `path` but received {path!r}") - body = deepcopy_minimal({"file": file}) - files = extract_files(cast(Mapping[str, object], body), paths=[["file"]]) - # It should be noted that the actual Content-Type header that will be - # sent to the server will contain a `boundary` parameter, e.g. - # multipart/form-data; boundary=---abc-- - extra_headers = {"Content-Type": "multipart/form-data", **(extra_headers or {})} - return await self._post( - path_template("/cms/source-code/2026-03/{environment}/content/{path}", environment=environment, path=path), - body=await async_maybe_transform(body, source_code_create_params.SourceCodeCreateParams), - files=files, - options=make_request_options( - extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout - ), - cast_to=AssetFileMetadata, - ) - - async def delete( - self, - path: str, - *, - environment: str, - # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. - # The extra values given here take precedence over values defined on the client or passed to this method. - extra_headers: Headers | None = None, - extra_query: Query | None = None, - extra_body: Body | None = None, - timeout: float | httpx.Timeout | None | NotGiven = not_given, - ) -> None: - """ - Deletes the file at the specified path in the specified environment. - - Args: - extra_headers: Send extra headers - - extra_query: Add additional query parameters to the request - - extra_body: Add additional JSON properties to the request - - timeout: Override the client-level default timeout for this request, in seconds - """ - if not environment: - raise ValueError(f"Expected a non-empty value for `environment` but received {environment!r}") - if not path: - raise ValueError(f"Expected a non-empty value for `path` but received {path!r}") - extra_headers = {"Accept": "*/*", **(extra_headers or {})} - return await self._delete( - path_template("/cms/source-code/2026-03/{environment}/content/{path}", environment=environment, path=path), - options=make_request_options( - extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout - ), - cast_to=NoneType, - ) - async def extract_async( self, *, @@ -535,44 +169,6 @@ async def extract_async( cast_to=TaskLocator, ) - async def get( - self, - path: str, - *, - environment: str, - # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. - # The extra values given here take precedence over values defined on the client or passed to this method. - extra_headers: Headers | None = None, - extra_query: Query | None = None, - extra_body: Body | None = None, - timeout: float | httpx.Timeout | None | NotGiven = not_given, - ) -> AsyncBinaryAPIResponse: - """ - Downloads the byte contents of the file at the specified path in the specified - environment. - - Args: - extra_headers: Send extra headers - - extra_query: Add additional query parameters to the request - - extra_body: Add additional JSON properties to the request - - timeout: Override the client-level default timeout for this request, in seconds - """ - if not environment: - raise ValueError(f"Expected a non-empty value for `environment` but received {environment!r}") - if not path: - raise ValueError(f"Expected a non-empty value for `path` but received {path!r}") - extra_headers = {"Accept": "*/*", **(extra_headers or {})} - return await self._get( - path_template("/cms/source-code/2026-03/{environment}/content/{path}", environment=environment, path=path), - options=make_request_options( - extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout - ), - cast_to=AsyncBinaryAPIResponse, - ) - async def get_extraction_status( self, task_id: int, @@ -605,276 +201,50 @@ async def get_extraction_status( cast_to=ActionResponse, ) - async def get_metadata( - self, - path: str, - *, - environment: str, - properties: str | Omit = omit, - # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. - # The extra values given here take precedence over values defined on the client or passed to this method. - extra_headers: Headers | None = None, - extra_query: Query | None = None, - extra_body: Body | None = None, - timeout: float | httpx.Timeout | None | NotGiven = not_given, - ) -> AssetFileMetadata: - """ - Gets the metadata object for the file at the specified path in the specified - environment. - - Args: - extra_headers: Send extra headers - - extra_query: Add additional query parameters to the request - - extra_body: Add additional JSON properties to the request - - timeout: Override the client-level default timeout for this request, in seconds - """ - if not environment: - raise ValueError(f"Expected a non-empty value for `environment` but received {environment!r}") - if not path: - raise ValueError(f"Expected a non-empty value for `path` but received {path!r}") - return await self._get( - path_template("/cms/source-code/2026-03/{environment}/metadata/{path}", environment=environment, path=path), - options=make_request_options( - extra_headers=extra_headers, - extra_query=extra_query, - extra_body=extra_body, - timeout=timeout, - query=await async_maybe_transform( - {"properties": properties}, source_code_get_metadata_params.SourceCodeGetMetadataParams - ), - ), - cast_to=AssetFileMetadata, - ) - - async def upsert( - self, - path: str, - *, - environment: str, - file: FileTypes | Omit = omit, - # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. - # The extra values given here take precedence over values defined on the client or passed to this method. - extra_headers: Headers | None = None, - extra_query: Query | None = None, - extra_body: Body | None = None, - timeout: float | httpx.Timeout | None | NotGiven = not_given, - ) -> AssetFileMetadata: - """Upserts a file at the specified path in the specified environment. - - Accepts - multipart/form-data content type. - - Args: - extra_headers: Send extra headers - - extra_query: Add additional query parameters to the request - - extra_body: Add additional JSON properties to the request - - timeout: Override the client-level default timeout for this request, in seconds - """ - if not environment: - raise ValueError(f"Expected a non-empty value for `environment` but received {environment!r}") - if not path: - raise ValueError(f"Expected a non-empty value for `path` but received {path!r}") - body = deepcopy_minimal({"file": file}) - files = extract_files(cast(Mapping[str, object], body), paths=[["file"]]) - # It should be noted that the actual Content-Type header that will be - # sent to the server will contain a `boundary` parameter, e.g. - # multipart/form-data; boundary=---abc-- - extra_headers = {"Content-Type": "multipart/form-data", **(extra_headers or {})} - return await self._put( - path_template("/cms/source-code/2026-03/{environment}/content/{path}", environment=environment, path=path), - body=await async_maybe_transform(body, source_code_upsert_params.SourceCodeUpsertParams), - files=files, - options=make_request_options( - extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout - ), - cast_to=AssetFileMetadata, - ) - - async def validate( - self, - path: str, - *, - environment: str, - file: FileTypes | Omit = omit, - # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. - # The extra values given here take precedence over values defined on the client or passed to this method. - extra_headers: Headers | None = None, - extra_query: Query | None = None, - extra_body: Body | None = None, - timeout: float | httpx.Timeout | None | NotGiven = not_given, - ) -> AsyncBinaryAPIResponse: - """ - Validates the file contents passed to the endpoint given a specified path and - environment. Accepts multipart/form-data content type. - - Args: - extra_headers: Send extra headers - - extra_query: Add additional query parameters to the request - - extra_body: Add additional JSON properties to the request - - timeout: Override the client-level default timeout for this request, in seconds - """ - if not environment: - raise ValueError(f"Expected a non-empty value for `environment` but received {environment!r}") - if not path: - raise ValueError(f"Expected a non-empty value for `path` but received {path!r}") - extra_headers = {"Accept": "*/*", **(extra_headers or {})} - body = deepcopy_minimal({"file": file}) - files = extract_files(cast(Mapping[str, object], body), paths=[["file"]]) - # It should be noted that the actual Content-Type header that will be - # sent to the server will contain a `boundary` parameter, e.g. - # multipart/form-data; boundary=---abc-- - extra_headers = {"Content-Type": "multipart/form-data", **(extra_headers or {})} - return await self._post( - path_template("/cms/source-code/2026-03/{environment}/validate/{path}", environment=environment, path=path), - body=await async_maybe_transform(body, source_code_validate_params.SourceCodeValidateParams), - files=files, - options=make_request_options( - extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout - ), - cast_to=AsyncBinaryAPIResponse, - ) - class SourceCodeResourceWithRawResponse: def __init__(self, source_code: SourceCodeResource) -> None: self._source_code = source_code - self.create = ( # pyright: ignore[reportDeprecated] - to_raw_response_wrapper( - source_code.create, # pyright: ignore[reportDeprecated], - ) - ) - self.delete = to_raw_response_wrapper( - source_code.delete, - ) self.extract_async = to_raw_response_wrapper( source_code.extract_async, ) - self.get = to_custom_raw_response_wrapper( - source_code.get, - BinaryAPIResponse, - ) self.get_extraction_status = to_raw_response_wrapper( source_code.get_extraction_status, ) - self.get_metadata = to_raw_response_wrapper( - source_code.get_metadata, - ) - self.upsert = to_raw_response_wrapper( - source_code.upsert, - ) - self.validate = to_custom_raw_response_wrapper( - source_code.validate, - BinaryAPIResponse, - ) class AsyncSourceCodeResourceWithRawResponse: def __init__(self, source_code: AsyncSourceCodeResource) -> None: self._source_code = source_code - self.create = ( # pyright: ignore[reportDeprecated] - async_to_raw_response_wrapper( - source_code.create, # pyright: ignore[reportDeprecated], - ) - ) - self.delete = async_to_raw_response_wrapper( - source_code.delete, - ) self.extract_async = async_to_raw_response_wrapper( source_code.extract_async, ) - self.get = async_to_custom_raw_response_wrapper( - source_code.get, - AsyncBinaryAPIResponse, - ) self.get_extraction_status = async_to_raw_response_wrapper( source_code.get_extraction_status, ) - self.get_metadata = async_to_raw_response_wrapper( - source_code.get_metadata, - ) - self.upsert = async_to_raw_response_wrapper( - source_code.upsert, - ) - self.validate = async_to_custom_raw_response_wrapper( - source_code.validate, - AsyncBinaryAPIResponse, - ) class SourceCodeResourceWithStreamingResponse: def __init__(self, source_code: SourceCodeResource) -> None: self._source_code = source_code - self.create = ( # pyright: ignore[reportDeprecated] - to_streamed_response_wrapper( - source_code.create, # pyright: ignore[reportDeprecated], - ) - ) - self.delete = to_streamed_response_wrapper( - source_code.delete, - ) self.extract_async = to_streamed_response_wrapper( source_code.extract_async, ) - self.get = to_custom_streamed_response_wrapper( - source_code.get, - StreamedBinaryAPIResponse, - ) self.get_extraction_status = to_streamed_response_wrapper( source_code.get_extraction_status, ) - self.get_metadata = to_streamed_response_wrapper( - source_code.get_metadata, - ) - self.upsert = to_streamed_response_wrapper( - source_code.upsert, - ) - self.validate = to_custom_streamed_response_wrapper( - source_code.validate, - StreamedBinaryAPIResponse, - ) class AsyncSourceCodeResourceWithStreamingResponse: def __init__(self, source_code: AsyncSourceCodeResource) -> None: self._source_code = source_code - self.create = ( # pyright: ignore[reportDeprecated] - async_to_streamed_response_wrapper( - source_code.create, # pyright: ignore[reportDeprecated], - ) - ) - self.delete = async_to_streamed_response_wrapper( - source_code.delete, - ) self.extract_async = async_to_streamed_response_wrapper( source_code.extract_async, ) - self.get = async_to_custom_streamed_response_wrapper( - source_code.get, - AsyncStreamedBinaryAPIResponse, - ) self.get_extraction_status = async_to_streamed_response_wrapper( source_code.get_extraction_status, ) - self.get_metadata = async_to_streamed_response_wrapper( - source_code.get_metadata, - ) - self.upsert = async_to_streamed_response_wrapper( - source_code.upsert, - ) - self.validate = async_to_custom_streamed_response_wrapper( - source_code.validate, - AsyncStreamedBinaryAPIResponse, - ) diff --git a/src/hubspot_sdk/resources/crm/api.md b/src/hubspot_sdk/resources/crm/api.md index 90db82c3..10250367 100644 --- a/src/hubspot_sdk/resources/crm/api.md +++ b/src/hubspot_sdk/resources/crm/api.md @@ -351,8 +351,8 @@ from hubspot_sdk.types.crm import ( CustomObjectRecordLimitResponse, CustomPropertyLimitResponse, LimitAndUsageForObjectType, + LimitsObjectTypeDefinition, NearLimitRecordSample, - ObjectTypeDefinition, ObjectTypeNearOrAtAssociationLimit, PipelineLimitResponse, RecordLimitResponse, @@ -555,10 +555,10 @@ from hubspot_sdk.types.crm import ( Methods: - client.crm.object_schemas.create(\*\*params) -> ObjectSchema -- client.crm.object_schemas.update(object_type, \*\*params) -> ObjectTypeDefinition +- client.crm.object_schemas.update(object_type, \*\*params) -> BaseObjectTypeDefinition - client.crm.object_schemas.list(\*\*params) -> CollectionResponseObjectSchemaNoPaging - client.crm.object_schemas.delete(object_type, \*\*params) -> None -- client.crm.object_schemas.create_association(object_type, \*\*params) -> AssociationDefinition +- client.crm.object_schemas.create_association(object_type, \*\*params) -> BaseAssociationDefinition - client.crm.object_schemas.delete_association(association_identifier, \*, object_type) -> None - client.crm.object_schemas.get(object_type, \*\*params) -> ObjectSchema @@ -1401,11 +1401,11 @@ from hubspot_sdk.types.crm import ( Methods: -- client.crm.properties.create(object_type, \*\*params) -> Property -- client.crm.properties.update(property_name, \*, object_type, \*\*params) -> Property +- client.crm.properties.create(object_type, \*\*params) -> BaseProperty +- client.crm.properties.update(property_name, \*, object_type, \*\*params) -> BaseProperty - client.crm.properties.list(object_type, \*\*params) -> CollectionResponsePropertyNoPaging - client.crm.properties.delete(property_name, \*, object_type) -> None -- client.crm.properties.get(property_name, \*, object_type, \*\*params) -> Property +- client.crm.properties.get(property_name, \*, object_type, \*\*params) -> BaseProperty ### Batch diff --git a/src/hubspot_sdk/resources/crm/imports.py b/src/hubspot_sdk/resources/crm/imports.py index 3c6dbaae..b768ad4a 100644 --- a/src/hubspot_sdk/resources/crm/imports.py +++ b/src/hubspot_sdk/resources/crm/imports.py @@ -6,8 +6,9 @@ import httpx +from ..._files import deepcopy_with_paths from ..._types import Body, Omit, Query, Headers, NotGiven, FileTypes, omit, not_given -from ..._utils import extract_files, path_template, maybe_transform, deepcopy_minimal, async_maybe_transform +from ..._utils import extract_files, path_template, maybe_transform, async_maybe_transform from ..._compat import cached_property from ..._resource import SyncAPIResource, AsyncAPIResource from ..._response import ( @@ -68,11 +69,12 @@ def create( timeout: Override the client-level default timeout for this request, in seconds """ - body = deepcopy_minimal( + body = deepcopy_with_paths( { "files": files, "import_request": import_request, - } + }, + [["files"]], ) extracted_files = extract_files(cast(Mapping[str, object], body), paths=[["files"]]) # It should be noted that the actual Content-Type header that will be @@ -289,11 +291,12 @@ async def create( timeout: Override the client-level default timeout for this request, in seconds """ - body = deepcopy_minimal( + body = deepcopy_with_paths( { "files": files, "import_request": import_request, - } + }, + [["files"]], ) extracted_files = extract_files(cast(Mapping[str, object], body), paths=[["files"]]) # It should be noted that the actual Content-Type header that will be diff --git a/src/hubspot_sdk/resources/crm/object_schemas/object_schemas.py b/src/hubspot_sdk/resources/crm/object_schemas/object_schemas.py index 01d7e8f5..f0cdea13 100644 --- a/src/hubspot_sdk/resources/crm/object_schemas/object_schemas.py +++ b/src/hubspot_sdk/resources/crm/object_schemas/object_schemas.py @@ -34,8 +34,8 @@ ) from ...._base_client import make_request_options from ....types.crm.object_schema import ObjectSchema -from ....types.shared.association_definition import AssociationDefinition -from ....types.shared.object_type_definition import ObjectTypeDefinition +from ....types.shared.base_association_definition import BaseAssociationDefinition +from ....types.shared.base_object_type_definition import BaseObjectTypeDefinition from ....types.crm.object_type_property_create_param import ObjectTypePropertyCreateParam from ....types.shared_params.object_type_definition_labels import ObjectTypeDefinitionLabels from ....types.crm.collection_response_object_schema_no_paging import CollectionResponseObjectSchemaNoPaging @@ -164,7 +164,7 @@ def update( extra_query: Query | None = None, extra_body: Body | None = None, timeout: float | httpx.Timeout | None | NotGiven = not_given, - ) -> ObjectTypeDefinition: + ) -> BaseObjectTypeDefinition: """ Update attributes of a custom object schema, such as properties and labels, using the object type ID or fully qualified name. @@ -199,7 +199,7 @@ def update( options=make_request_options( extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout ), - cast_to=ObjectTypeDefinition, + cast_to=BaseObjectTypeDefinition, ) def list( @@ -306,7 +306,7 @@ def create_association( extra_query: Query | None = None, extra_body: Body | None = None, timeout: float | httpx.Timeout | None | NotGiven = not_given, - ) -> AssociationDefinition: + ) -> BaseAssociationDefinition: """ Create a new association between the specified object type and another object type. This operation requires the definition of the association attributes, such @@ -336,7 +336,7 @@ def create_association( options=make_request_options( extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout ), - cast_to=AssociationDefinition, + cast_to=BaseAssociationDefinition, ) def delete_association( @@ -554,7 +554,7 @@ async def update( extra_query: Query | None = None, extra_body: Body | None = None, timeout: float | httpx.Timeout | None | NotGiven = not_given, - ) -> ObjectTypeDefinition: + ) -> BaseObjectTypeDefinition: """ Update attributes of a custom object schema, such as properties and labels, using the object type ID or fully qualified name. @@ -589,7 +589,7 @@ async def update( options=make_request_options( extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout ), - cast_to=ObjectTypeDefinition, + cast_to=BaseObjectTypeDefinition, ) async def list( @@ -698,7 +698,7 @@ async def create_association( extra_query: Query | None = None, extra_body: Body | None = None, timeout: float | httpx.Timeout | None | NotGiven = not_given, - ) -> AssociationDefinition: + ) -> BaseAssociationDefinition: """ Create a new association between the specified object type and another object type. This operation requires the definition of the association attributes, such @@ -728,7 +728,7 @@ async def create_association( options=make_request_options( extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout ), - cast_to=AssociationDefinition, + cast_to=BaseAssociationDefinition, ) async def delete_association( diff --git a/src/hubspot_sdk/resources/crm/properties/properties.py b/src/hubspot_sdk/resources/crm/properties/properties.py index dd6513ae..b110163a 100644 --- a/src/hubspot_sdk/resources/crm/properties/properties.py +++ b/src/hubspot_sdk/resources/crm/properties/properties.py @@ -35,7 +35,7 @@ ) from ....types.crm import property_get_params, property_list_params, property_create_params, property_update_params from ...._base_client import make_request_options -from ....types.shared.property import Property +from ....types.shared.base_property import BaseProperty from ....types.shared_params.option_input import OptionInput from ....types.crm.collection_response_property_no_paging import CollectionResponsePropertyNoPaging @@ -112,7 +112,7 @@ def create( extra_query: Query | None = None, extra_body: Body | None = None, timeout: float | httpx.Timeout | None | NotGiven = not_given, - ) -> Property: + ) -> BaseProperty: """ Create and return a copy of a new property for the specified object type. @@ -155,7 +155,7 @@ def create( options=make_request_options( extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout ), - cast_to=Property, + cast_to=BaseProperty, ) def update( @@ -197,7 +197,7 @@ def update( extra_query: Query | None = None, extra_body: Body | None = None, timeout: float | httpx.Timeout | None | NotGiven = not_given, - ) -> Property: + ) -> BaseProperty: """Perform a partial update of a property identified by { propertyName }. Provided @@ -265,7 +265,7 @@ def update( options=make_request_options( extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout ), - cast_to=Property, + cast_to=BaseProperty, ) def list( @@ -375,7 +375,7 @@ def get( extra_query: Query | None = None, extra_body: Body | None = None, timeout: float | httpx.Timeout | None | NotGiven = not_given, - ) -> Property: + ) -> BaseProperty: """ Read a property identified by {propertyName}. @@ -415,7 +415,7 @@ def get( property_get_params.PropertyGetParams, ), ), - cast_to=Property, + cast_to=BaseProperty, ) @@ -489,7 +489,7 @@ async def create( extra_query: Query | None = None, extra_body: Body | None = None, timeout: float | httpx.Timeout | None | NotGiven = not_given, - ) -> Property: + ) -> BaseProperty: """ Create and return a copy of a new property for the specified object type. @@ -532,7 +532,7 @@ async def create( options=make_request_options( extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout ), - cast_to=Property, + cast_to=BaseProperty, ) async def update( @@ -574,7 +574,7 @@ async def update( extra_query: Query | None = None, extra_body: Body | None = None, timeout: float | httpx.Timeout | None | NotGiven = not_given, - ) -> Property: + ) -> BaseProperty: """Perform a partial update of a property identified by { propertyName }. Provided @@ -642,7 +642,7 @@ async def update( options=make_request_options( extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout ), - cast_to=Property, + cast_to=BaseProperty, ) async def list( @@ -752,7 +752,7 @@ async def get( extra_query: Query | None = None, extra_body: Body | None = None, timeout: float | httpx.Timeout | None | NotGiven = not_given, - ) -> Property: + ) -> BaseProperty: """ Read a property identified by {propertyName}. @@ -792,7 +792,7 @@ async def get( property_get_params.PropertyGetParams, ), ), - cast_to=Property, + cast_to=BaseProperty, ) diff --git a/src/hubspot_sdk/resources/events/api.md b/src/hubspot_sdk/resources/events/api.md index 9fa7e639..972a4d87 100644 --- a/src/hubspot_sdk/resources/events/api.md +++ b/src/hubspot_sdk/resources/events/api.md @@ -19,7 +19,6 @@ from hubspot_sdk.types.events import ( AbsoluteRangedTimestampRefineBy, AllHistoryRefineBy, AllPropertyTypesOperation, - AssociationDefinition, BehavioralEventTypeDefinitionLabels, BoolPropertyOperation, CalendarDatePropertyOperation, @@ -34,6 +33,7 @@ from hubspot_sdk.types.events import ( DatePoint, DatePropertyOperation, DateTimePropertyOperation, + DefinitionsAssociationDefinition, EnumerationPropertyOperation, ExternalBehavioralEventPropertyCreate, ExternalBehavioralEventPropertyDefinitionPatch, @@ -80,11 +80,11 @@ Methods: - client.events.definitions.update(event_name, \*\*params) -> ExternalBehavioralEventTypeDefinition - client.events.definitions.list(\*\*params) -> SyncPage[ExternalBehavioralEventTypeDefinition] - client.events.definitions.delete(event_name) -> None -- client.events.definitions.create_property(event_name, \*\*params) -> Property +- client.events.definitions.create_property(event_name, \*\*params) -> BaseProperty - client.events.definitions.delete_property(property_name, \*, event_name) -> None - client.events.definitions.get(event_name) -> ExternalBehavioralEventTypeDefinition - client.events.definitions.send_batch(\*\*params) -> None -- client.events.definitions.update_property(property_name, \*, event_name, \*\*params) -> Property +- client.events.definitions.update_property(property_name, \*, event_name, \*\*params) -> BaseProperty ## Occurrences diff --git a/src/hubspot_sdk/resources/events/definitions.py b/src/hubspot_sdk/resources/events/definitions.py index 686ab4d3..015a8e2c 100644 --- a/src/hubspot_sdk/resources/events/definitions.py +++ b/src/hubspot_sdk/resources/events/definitions.py @@ -26,7 +26,7 @@ definition_create_property_params, definition_update_property_params, ) -from ...types.shared.property import Property +from ...types.shared.base_property import BaseProperty from ...types.shared_params.option_input import OptionInput from ...types.events.external_behavioral_event_type_definition import ExternalBehavioralEventTypeDefinition from ...types.events.behavioral_event_http_completion_request_param import BehavioralEventHTTPCompletionRequestParam @@ -271,7 +271,7 @@ def create_property( extra_query: Query | None = None, extra_body: Body | None = None, timeout: float | httpx.Timeout | None | NotGiven = not_given, - ) -> Property: + ) -> BaseProperty: """ Create a new property for an existing event definition. @@ -314,7 +314,7 @@ def create_property( options=make_request_options( extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout ), - cast_to=Property, + cast_to=BaseProperty, ) def delete_property( @@ -438,7 +438,7 @@ def update_property( extra_query: Query | None = None, extra_body: Body | None = None, timeout: float | httpx.Timeout | None | NotGiven = not_given, - ) -> Property: + ) -> BaseProperty: """ Update an existing property in a custom event definition. @@ -479,7 +479,7 @@ def update_property( options=make_request_options( extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout ), - cast_to=Property, + cast_to=BaseProperty, ) @@ -718,7 +718,7 @@ async def create_property( extra_query: Query | None = None, extra_body: Body | None = None, timeout: float | httpx.Timeout | None | NotGiven = not_given, - ) -> Property: + ) -> BaseProperty: """ Create a new property for an existing event definition. @@ -761,7 +761,7 @@ async def create_property( options=make_request_options( extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout ), - cast_to=Property, + cast_to=BaseProperty, ) async def delete_property( @@ -887,7 +887,7 @@ async def update_property( extra_query: Query | None = None, extra_body: Body | None = None, timeout: float | httpx.Timeout | None | NotGiven = not_given, - ) -> Property: + ) -> BaseProperty: """ Update an existing property in a custom event definition. @@ -928,7 +928,7 @@ async def update_property( options=make_request_options( extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout ), - cast_to=Property, + cast_to=BaseProperty, ) diff --git a/src/hubspot_sdk/resources/files/api.md b/src/hubspot_sdk/resources/files/api.md index 945430df..60e3d41f 100644 --- a/src/hubspot_sdk/resources/files/api.md +++ b/src/hubspot_sdk/resources/files/api.md @@ -31,7 +31,6 @@ Methods: - client.files.file_assets.delete(file_id) -> None - client.files.file_assets.gdpr_delete(file_id) -> None - client.files.file_assets.get(file_id, \*\*params) -> File -- client.files.file_assets.get_by_path(path, \*\*params) -> FileStat - client.files.file_assets.get_import_task_status(task_id) -> FileActionResponse - client.files.file_assets.get_signed_url(file_id, \*\*params) -> SignedURL - client.files.file_assets.import_from_url_async(\*\*params) -> ImportFromURLTaskLocator diff --git a/src/hubspot_sdk/resources/files/file_assets.py b/src/hubspot_sdk/resources/files/file_assets.py index 3b39e281..7748eeaa 100644 --- a/src/hubspot_sdk/resources/files/file_assets.py +++ b/src/hubspot_sdk/resources/files/file_assets.py @@ -8,6 +8,7 @@ import httpx +from ..._files import deepcopy_with_paths from ..._types import ( Body, Omit, @@ -20,7 +21,7 @@ omit, not_given, ) -from ..._utils import extract_files, path_template, maybe_transform, deepcopy_minimal, async_maybe_transform +from ..._utils import extract_files, path_template, maybe_transform, async_maybe_transform from ..._compat import cached_property from ..._resource import SyncAPIResource, AsyncAPIResource from ..._response import ( @@ -37,14 +38,12 @@ file_asset_update_params, file_asset_upload_params, file_asset_replace_params, - file_asset_get_by_path_params, file_asset_get_signed_url_params, file_asset_import_from_url_async_params, ) from ..._base_client import AsyncPaginator, make_request_options from ...types.files.file import File from ...types.files.folder import Folder -from ...types.files.file_stat import FileStat from ...types.files.signed_url import SignedURL from ...types.files.file_action_response import FileActionResponse from ...types.files.import_from_url_task_locator import ImportFromURLTaskLocator @@ -305,46 +304,6 @@ def get( cast_to=File, ) - def get_by_path( - self, - path: str, - *, - properties: SequenceNotStr[str] | Omit = omit, - # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. - # The extra values given here take precedence over values defined on the client or passed to this method. - extra_headers: Headers | None = None, - extra_query: Query | None = None, - extra_body: Body | None = None, - timeout: float | httpx.Timeout | None | NotGiven = not_given, - ) -> FileStat: - """ - Retrieve a file by its path. - - Args: - extra_headers: Send extra headers - - extra_query: Add additional query parameters to the request - - extra_body: Add additional JSON properties to the request - - timeout: Override the client-level default timeout for this request, in seconds - """ - if not path: - raise ValueError(f"Expected a non-empty value for `path` but received {path!r}") - return self._get( - path_template("/files/2026-03/files/stat/{path}", path=path), - options=make_request_options( - extra_headers=extra_headers, - extra_query=extra_query, - extra_body=extra_body, - timeout=timeout, - query=maybe_transform( - {"properties": properties}, file_asset_get_by_path_params.FileAssetGetByPathParams - ), - ), - cast_to=FileStat, - ) - def get_import_task_status( self, task_id: str, @@ -555,12 +514,13 @@ def replace( """ if not file_id: raise ValueError(f"Expected a non-empty value for `file_id` but received {file_id!r}") - body = deepcopy_minimal( + body = deepcopy_with_paths( { "charset_hunch": charset_hunch, "file": file, "options": options, - } + }, + [["file"]], ) files = extract_files(cast(Mapping[str, object], body), paths=[["file"]]) # It should be noted that the actual Content-Type header that will be @@ -724,7 +684,7 @@ def upload( timeout: Override the client-level default timeout for this request, in seconds """ - body = deepcopy_minimal( + body = deepcopy_with_paths( { "charset_hunch": charset_hunch, "file": file, @@ -732,7 +692,8 @@ def upload( "folder_id": folder_id, "folder_path": folder_path, "options": options, - } + }, + [["file"]], ) files = extract_files(cast(Mapping[str, object], body), paths=[["file"]]) # It should be noted that the actual Content-Type header that will be @@ -1003,46 +964,6 @@ async def get( cast_to=File, ) - async def get_by_path( - self, - path: str, - *, - properties: SequenceNotStr[str] | Omit = omit, - # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. - # The extra values given here take precedence over values defined on the client or passed to this method. - extra_headers: Headers | None = None, - extra_query: Query | None = None, - extra_body: Body | None = None, - timeout: float | httpx.Timeout | None | NotGiven = not_given, - ) -> FileStat: - """ - Retrieve a file by its path. - - Args: - extra_headers: Send extra headers - - extra_query: Add additional query parameters to the request - - extra_body: Add additional JSON properties to the request - - timeout: Override the client-level default timeout for this request, in seconds - """ - if not path: - raise ValueError(f"Expected a non-empty value for `path` but received {path!r}") - return await self._get( - path_template("/files/2026-03/files/stat/{path}", path=path), - options=make_request_options( - extra_headers=extra_headers, - extra_query=extra_query, - extra_body=extra_body, - timeout=timeout, - query=await async_maybe_transform( - {"properties": properties}, file_asset_get_by_path_params.FileAssetGetByPathParams - ), - ), - cast_to=FileStat, - ) - async def get_import_task_status( self, task_id: str, @@ -1253,12 +1174,13 @@ async def replace( """ if not file_id: raise ValueError(f"Expected a non-empty value for `file_id` but received {file_id!r}") - body = deepcopy_minimal( + body = deepcopy_with_paths( { "charset_hunch": charset_hunch, "file": file, "options": options, - } + }, + [["file"]], ) files = extract_files(cast(Mapping[str, object], body), paths=[["file"]]) # It should be noted that the actual Content-Type header that will be @@ -1422,7 +1344,7 @@ async def upload( timeout: Override the client-level default timeout for this request, in seconds """ - body = deepcopy_minimal( + body = deepcopy_with_paths( { "charset_hunch": charset_hunch, "file": file, @@ -1430,7 +1352,8 @@ async def upload( "folder_id": folder_id, "folder_path": folder_path, "options": options, - } + }, + [["file"]], ) files = extract_files(cast(Mapping[str, object], body), paths=[["file"]]) # It should be noted that the actual Content-Type header that will be @@ -1467,9 +1390,6 @@ def __init__(self, file_assets: FileAssetsResource) -> None: self.get = to_raw_response_wrapper( file_assets.get, ) - self.get_by_path = to_raw_response_wrapper( - file_assets.get_by_path, - ) self.get_import_task_status = to_raw_response_wrapper( file_assets.get_import_task_status, ) @@ -1509,9 +1429,6 @@ def __init__(self, file_assets: AsyncFileAssetsResource) -> None: self.get = async_to_raw_response_wrapper( file_assets.get, ) - self.get_by_path = async_to_raw_response_wrapper( - file_assets.get_by_path, - ) self.get_import_task_status = async_to_raw_response_wrapper( file_assets.get_import_task_status, ) @@ -1551,9 +1468,6 @@ def __init__(self, file_assets: FileAssetsResource) -> None: self.get = to_streamed_response_wrapper( file_assets.get, ) - self.get_by_path = to_streamed_response_wrapper( - file_assets.get_by_path, - ) self.get_import_task_status = to_streamed_response_wrapper( file_assets.get_import_task_status, ) @@ -1593,9 +1507,6 @@ def __init__(self, file_assets: AsyncFileAssetsResource) -> None: self.get = async_to_streamed_response_wrapper( file_assets.get, ) - self.get_by_path = async_to_streamed_response_wrapper( - file_assets.get_by_path, - ) self.get_import_task_status = async_to_streamed_response_wrapper( file_assets.get_import_task_status, ) diff --git a/src/hubspot_sdk/resources/webhooks/webhooks.py b/src/hubspot_sdk/resources/webhooks/webhooks.py index a7a5e824..fc5f914b 100644 --- a/src/hubspot_sdk/resources/webhooks/webhooks.py +++ b/src/hubspot_sdk/resources/webhooks/webhooks.py @@ -140,16 +140,17 @@ def create_crm_snapshots( extra_body: Body | None = None, timeout: float | httpx.Timeout | None | NotGiven = not_given, ) -> CrmObjectSnapshotBatchResponse: - """Create a batch of CRM object snapshots for a specified portal. + """Create a batch of CRM object snapshots for the specified portal. This endpoint - allows you to capture the current state of CRM objects by submitting a batch - request with the necessary object details. It is useful for tracking changes or - maintaining historical records of CRM data. + allows you to capture the state of CRM objects at a specific point in time, + which can be useful for auditing or historical analysis. The request requires a + list of CRM object snapshot requests, each specifying the portal ID, object ID, + object type ID, and properties to include in the snapshot. Args: snapshot_requests: An array of CrmObjectSnapshotRequest objects, each representing a request to - capture a snapshot of a specific CRM object. This property is required. + create a snapshot for a specific CRM object. This property is required. extra_headers: Send extra headers @@ -240,20 +241,19 @@ def create_event_subscription( Create new event subscription for the specified app. Args: - active: A boolean indicating whether the subscription is active. This field is required. + active: A boolean indicating whether the subscription is active. event_type: A string representing the type of event to subscribe to. Valid values include - various object changes such as 'contact.propertyChange', 'deal.creation', and - 'conversation.newMessage'. + various property changes, creations, deletions, merges, restorations, + association changes, and event completions. - event_type_name: A string that provides a human-readable name for the event type. This is - optional. + event_type_name: A string providing a human-readable name for the event type. - object_type_id: A string representing the identifier of the object type for which the - subscription is being created. This is optional. + object_type_id: A string representing the ID of the object type associated with the + subscription. - property_name: A string indicating the name of the property that triggers the event. This is - optional and used when subscribing to property change events. + property_name: A string indicating the specific property name related to the event type, if + applicable. extra_headers: Send extra headers @@ -293,10 +293,11 @@ def create_journal_subscription( timeout: float | httpx.Timeout | None | NotGiven = not_given, ) -> SubscriptionResponse1: """ - Create a new subscription in the webhooks journal for the specified version. - This endpoint allows you to define the subscription details, including actions - and object types, to manage webhook events effectively. It requires a valid - request body with the subscription details. + Create a new webhook subscription for the specified portal in the HubSpot + account. This endpoint allows you to define the subscription details, including + the types of events you want to subscribe to. The request body must include the + necessary subscription information as defined by the SubscriptionUpsertRequest + schema. """ ... @@ -312,10 +313,11 @@ def create_journal_subscription( timeout: float | httpx.Timeout | None | NotGiven = not_given, ) -> SubscriptionResponse1: """ - Create a new subscription in the webhooks journal for the specified version. - This endpoint allows you to define the subscription details, including actions - and object types, to manage webhook events effectively. It requires a valid - request body with the subscription details. + Create a new webhook subscription for the specified portal in the HubSpot + account. This endpoint allows you to define the subscription details, including + the types of events you want to subscribe to. The request body must include the + necessary subscription information as defined by the SubscriptionUpsertRequest + schema. """ ... @@ -331,10 +333,11 @@ def create_journal_subscription( timeout: float | httpx.Timeout | None | NotGiven = not_given, ) -> SubscriptionResponse1: """ - Create a new subscription in the webhooks journal for the specified version. - This endpoint allows you to define the subscription details, including actions - and object types, to manage webhook events effectively. It requires a valid - request body with the subscription details. + Create a new webhook subscription for the specified portal in the HubSpot + account. This endpoint allows you to define the subscription details, including + the types of events you want to subscribe to. The request body must include the + necessary subscription information as defined by the SubscriptionUpsertRequest + schema. """ ... @@ -350,10 +353,11 @@ def create_journal_subscription( timeout: float | httpx.Timeout | None | NotGiven = not_given, ) -> SubscriptionResponse1: """ - Create a new subscription in the webhooks journal for the specified version. - This endpoint allows you to define the subscription details, including actions - and object types, to manage webhook events effectively. It requires a valid - request body with the subscription details. + Create a new webhook subscription for the specified portal in the HubSpot + account. This endpoint allows you to define the subscription details, including + the types of events you want to subscribe to. The request body must include the + necessary subscription information as defined by the SubscriptionUpsertRequest + schema. """ ... @@ -369,10 +373,11 @@ def create_journal_subscription( timeout: float | httpx.Timeout | None | NotGiven = not_given, ) -> SubscriptionResponse1: """ - Create a new subscription in the webhooks journal for the specified version. - This endpoint allows you to define the subscription details, including actions - and object types, to manage webhook events effectively. It requires a valid - request body with the subscription details. + Create a new webhook subscription for the specified portal in the HubSpot + account. This endpoint allows you to define the subscription details, including + the types of events you want to subscribe to. The request body must include the + necessary subscription information as defined by the SubscriptionUpsertRequest + schema. """ ... @@ -406,12 +411,12 @@ def create_subscription_filter( extra_body: Body | None = None, timeout: float | httpx.Timeout | None | NotGiven = not_given, ) -> FilterCreateResponse: - """Create a new filter for a webhook subscription in the HubSpot account. + """Create a new filter for a webhook subscription in your HubSpot account. This - endpoint allows you to define conditions that determine when a webhook event - should be triggered for a specific subscription. The request body must include - the subscription ID and the filter details. + endpoint allows you to define specific conditions that a webhook event must meet + to trigger the subscription. It is useful for managing and customizing the + behavior of webhook subscriptions based on specific criteria. Args: filter: Defines a single condition for searching CRM objects, specifying the property to @@ -419,7 +424,7 @@ def create_subscription_filter( the value(s) to compare against. subscription_id: The unique identifier of the subscription to which the filter will be applied. - It is an integer in int64 format. + It is an integer formatted as int64. extra_headers: Send extra headers @@ -496,7 +501,7 @@ def delete_journal_subscription( This operation is useful for managing and cleaning up subscriptions that are no - longer needed. + longer needed or relevant. Args: extra_headers: Send extra headers @@ -530,8 +535,8 @@ def delete_journal_subscription_for_portal( """Delete a webhook journal subscription for a specific portal. This operation - removes the subscription associated with the given portalId, effectively - stopping any webhook events from being sent to the portal. + removes the subscription associated with the given portalId, and no content is + returned upon successful deletion. Args: extra_headers: Send extra headers @@ -596,12 +601,12 @@ def delete_subscription_filter( extra_body: Body | None = None, timeout: float | httpx.Timeout | None | NotGiven = not_given, ) -> None: - """Remove a specific filter from your webhook journal subscriptions. + """Delete a specific filter associated with a webhook journal subscription. - This operation - is useful when you need to clean up or modify the filters applied to your - webhook subscriptions. The filter identified by the filterId will be permanently - deleted. + This + operation is useful for managing and cleaning up filters that are no longer + needed in your subscription setup. The endpoint requires the unique identifier + of the filter to be deleted. Args: extra_headers: Send extra headers @@ -637,11 +642,11 @@ def get_earliest_journal_batch( count. This endpoint is useful for fetching historical webhook data in batches, - allowing you to process or analyze them as needed. + allowing you to process or analyze the earliest entries first. Args: - install_portal_id: The ID of the portal installation for which to fetch the journal entries. This - is an optional parameter. + install_portal_id: The ID of the portal installation to filter the webhook journal entries by. This + is an integer value. extra_headers: Send extra headers @@ -678,13 +683,13 @@ def get_earliest_journal_entry( timeout: float | httpx.Timeout | None | NotGiven = not_given, ) -> BinaryAPIResponse: """ - Retrieve the earliest entry from the webhooks journal for the specified portal. - This endpoint is useful for accessing the initial entries in the journal, which - can be helpful for debugging or auditing purposes. + Retrieve the earliest entry from the webhooks journal for the specified version. + This endpoint is useful for accessing the oldest records available in the + journal, which can be helpful for auditing or historical data analysis. Args: - install_portal_id: The ID of the portal installation to filter the journal entries. This is an - integer value. + install_portal_id: The ID of the portal installation to filter the journal entries. It is an + integer. extra_headers: Send extra headers @@ -723,13 +728,12 @@ def get_earliest_local_journal_batch( timeout: float | httpx.Timeout | None | NotGiven = not_given, ) -> BatchResponseJournalFetchResponse: """ - Retrieve the earliest batch of webhook journal entries up to a specified count. - This endpoint is useful for accessing the oldest records available in the - webhook journal, allowing you to process or analyze historical webhook data. + Retrieve the earliest batch of webhook journal entries based on the specified + count. This endpoint is useful for fetching a specific number of the earliest + entries in the webhook journal for analysis or processing. Args: - install_portal_id: The ID of the portal installation to filter the webhook journal entries. It is - an integer value. + install_portal_id: The ID of the portal where the webhooks are installed. This is an integer value. extra_headers: Send extra headers @@ -767,11 +771,11 @@ def get_earliest_local_journal_entry( ) -> BinaryAPIResponse: """ Retrieve the earliest entry from the webhooks journal for the specified portal. - This endpoint is useful for accessing the oldest available data in the journal, - which can be used for historical analysis or troubleshooting. + This endpoint is useful for accessing the oldest records in the journal, which + can be helpful for auditing or tracking purposes. Args: - install_portal_id: The ID of the portal for which to retrieve the earliest journal entry. This + install_portal_id: The ID of the portal installation to filter the journal entries by. This parameter is optional and should be an integer. extra_headers: Send extra headers @@ -846,17 +850,16 @@ def get_journal_batch_by_request( extra_body: Body | None = None, timeout: float | httpx.Timeout | None | NotGiven = not_given, ) -> BatchResponseJournalFetchResponse: - """Read a batch of webhook journal entries for the specified portal. - - This endpoint - allows you to retrieve detailed information about webhook events processed by - your HubSpot account. It is useful for auditing and tracking webhook activity. + """ + Perform a batch read operation on the webhooks journal for the specified date. + This endpoint allows you to retrieve multiple entries from the webhooks journal + in a single request, which can be useful for processing large amounts of data + efficiently. Args: inputs: Strings to input. - install_portal_id: The ID of the portal from which to retrieve webhook journal entries. This is an - integer value. + install_portal_id: The ID of the portal where the webhooks are installed. This is an integer value. extra_headers: Send extra headers @@ -899,12 +902,12 @@ def get_journal_batch_from_offset( ) -> BatchResponseJournalFetchResponse: """ Retrieve a batch of webhook journal entries starting from a specified offset. - This endpoint allows you to specify the number of entries to retrieve, helping - you manage and paginate through large sets of webhook data efficiently. + This endpoint allows you to fetch a specified number of entries, making it + useful for paginating through large sets of webhook journal data. Args: - install_portal_id: The ID of the portal installation to filter the webhook journal entries. This - parameter is optional and is used to specify which portal's data to retrieve. + install_portal_id: The ID of the portal installation. This is an integer value used to specify the + portal context for the request. extra_headers: Send extra headers @@ -943,10 +946,9 @@ def get_journal_status( timeout: float | httpx.Timeout | None | NotGiven = not_given, ) -> SnapshotStatusResponse: """ - Retrieve the status of a specific webhook journal entry using its unique status - ID. This endpoint is useful for monitoring the progress or outcome of a webhook - operation, providing insights into whether it is pending, in progress, - completed, failed, or expired. + Retrieve the status of a specific webhook journal entry using its status ID. + This endpoint is useful for checking the current state of a webhook process, + such as whether it is pending, in progress, completed, failed, or expired. Args: extra_headers: Send extra headers @@ -979,9 +981,9 @@ def get_journal_subscription( timeout: float | httpx.Timeout | None | NotGiven = not_given, ) -> SubscriptionResponse1: """ - Retrieve details of a specific webhook journal subscription using its unique - identifier. This endpoint is useful for obtaining information about a particular - subscription, such as its actions, object types, and associated properties. + Retrieve details of a specific webhook subscription using its unique identifier. + This endpoint is useful for obtaining information about a particular + subscription's configuration and status within the HubSpot account. Args: extra_headers: Send extra headers @@ -1012,15 +1014,15 @@ def get_latest_journal_batch( extra_body: Body | None = None, timeout: float | httpx.Timeout | None | NotGiven = not_given, ) -> BatchResponseJournalFetchResponse: - """ - Retrieve the latest batch of webhook journal entries up to a specified count. - This endpoint is useful for fetching the most recent webhook events processed by - your HubSpot account. The response includes details about each event, and you - can specify the number of entries to retrieve. + """Retrieve the latest batch of webhook journal entries. + + This endpoint allows you + to specify the number of entries to fetch, providing a way to access recent + webhook activity within your HubSpot account. Args: - install_portal_id: The ID of the portal installation. This parameter is optional and can be used to - filter results by a specific portal. + install_portal_id: The ID of the portal installation. This is an integer value used to identify the + specific portal. extra_headers: Send extra headers @@ -1057,12 +1059,13 @@ def get_latest_journal_entry( timeout: float | httpx.Timeout | None | NotGiven = not_given, ) -> BinaryAPIResponse: """ - Retrieve the latest entry from the webhooks journal for the specified portal. - This endpoint is useful for accessing the most recent webhook data available in - the journal. + Retrieve the latest entries from the webhooks journal for the specified portal. + This endpoint is useful for accessing the most recent webhook events processed + by your HubSpot account. It allows you to filter the results by the portal ID to + ensure you are retrieving data relevant to a specific installation. Args: - install_portal_id: The ID of the portal for which to retrieve the latest journal entry. It is an + install_portal_id: The ID of the portal installation to filter the journal entries. It is an integer value. extra_headers: Send extra headers @@ -1101,14 +1104,15 @@ def get_latest_local_journal_batch( extra_body: Body | None = None, timeout: float | httpx.Timeout | None | NotGiven = not_given, ) -> BatchResponseJournalFetchResponse: - """ - Retrieve the latest batch of webhook journal entries up to a specified count. - This endpoint is useful for fetching the most recent webhook events processed by - the system. It requires authentication and supports various security schemes. + """Retrieve the latest batch of webhook journal entries. + + This endpoint is useful + for accessing the most recent data entries processed by the webhook journal. It + requires specifying the number of entries to retrieve. Args: - install_portal_id: The ID of the portal installation to filter the webhook journal entries. It is - an optional integer parameter. + install_portal_id: The ID of the portal installation. This parameter is optional and used to filter + the journal entries by a specific portal. extra_headers: Send extra headers @@ -1144,16 +1148,14 @@ def get_latest_local_journal_entry( extra_body: Body | None = None, timeout: float | httpx.Timeout | None | NotGiven = not_given, ) -> BinaryAPIResponse: - """Retrieve the latest entries from the webhooks journal. - - This endpoint is useful - for accessing the most recent webhook data for analysis or troubleshooting. It - supports filtering by the installPortalId to narrow down results to a specific - portal. + """ + Retrieve the latest entries from the webhooks journal for the specified portal. + This endpoint is useful for accessing the most recent webhook events that have + been logged, allowing you to process or analyze them as needed. Args: - install_portal_id: An integer representing the ID of the portal to filter the webhook journal - entries. + install_portal_id: The ID of the portal for which to retrieve the latest journal entries. This + parameter is optional and should be an integer. extra_headers: Send extra headers @@ -1194,14 +1196,16 @@ def get_local_journal_batch_by_request( """Perform a batch read operation on the webhooks journal. This endpoint allows you - to retrieve a batch of journal entries by providing the necessary input data. It - is useful for processing large volumes of webhook data efficiently. + to read multiple entries from the journal in a single request. It requires a + JSON request body specifying the inputs to be read. The response includes the + results of the batch read operation, and may return multiple statuses if there + are errors. Args: inputs: Strings to input. - install_portal_id: The ID of the portal where the webhook is installed. This parameter is optional - and is used to specify the portal context for the operation. + install_portal_id: The ID of the portal where the webhooks are installed. This parameter is + optional and is used to specify the target portal. extra_headers: Send extra headers @@ -1245,11 +1249,12 @@ def get_local_journal_batch_from_offset( ) -> BatchResponseJournalFetchResponse: """ Retrieve a batch of webhook journal entries starting from a specified offset. - This endpoint is useful for fetching sequential batches of data, allowing you to - paginate through large sets of webhook journal entries efficiently. + This endpoint allows you to fetch a defined number of entries, facilitating the + processing of webhook data in manageable chunks. Args: - install_portal_id: The ID of the portal where the webhooks are installed. This is an integer value. + install_portal_id: The ID of the portal installation. This is an integer value used to specify the + portal context for the request. extra_headers: Send extra headers @@ -1291,9 +1296,8 @@ def get_local_journal_status( ) -> SnapshotStatusResponse: """ Retrieve the status of a specific webhook journal entry using its unique status - ID. This endpoint is useful for checking the progress or result of a webhook - operation, such as whether it is pending, in progress, completed, failed, or - expired. + ID. This endpoint is useful for monitoring the progress or completion of webhook + processing tasks. Args: extra_headers: Send extra headers @@ -1327,13 +1331,13 @@ def get_next_journal_entries( timeout: float | httpx.Timeout | None | NotGiven = not_given, ) -> BinaryAPIResponse: """ - Retrieve the next set of webhook journal entries starting from a specified - offset. This endpoint is useful for paginating through webhook journal entries - in a HubSpot account. It allows you to continue fetching entries from where the - last request left off, using the offset parameter. + Retrieve the next batch of webhook journal entries starting from a specified + offset. This endpoint is useful for paginating through large sets of webhook + data, allowing you to continue fetching entries from where you last left off. Args: - install_portal_id: The ID of the portal where the webhooks are installed. This is an integer value. + install_portal_id: The ID of the portal installation to filter the webhook journal entries. This is + an optional parameter. extra_headers: Send extra headers @@ -1373,16 +1377,13 @@ def get_next_local_journal_entries( extra_body: Body | None = None, timeout: float | httpx.Timeout | None | NotGiven = not_given, ) -> BinaryAPIResponse: - """Retrieve the next set of journal entries starting from a specified offset. - - This - endpoint is useful for paginating through webhook journal entries in a - sequential manner. It requires specifying the offset from which the next entries - should be fetched. + """ + Retrieve the next set of webhook journal entries starting from a specified + offset. This endpoint is useful for paginating through webhook journal data in a + sequential manner, allowing you to fetch entries beyond a given point. Args: - install_portal_id: The ID of the portal installation to filter the journal entries by. This is an - optional parameter. + install_portal_id: The ID of the portal where the webhook is installed. This is an integer value. extra_headers: Send extra headers @@ -1453,12 +1454,10 @@ def get_subscription_filter( extra_body: Body | None = None, timeout: float | httpx.Timeout | None | NotGiven = not_given, ) -> FilterResponse: - """Retrieve a specific filter associated with a webhook journal subscription. - - This - endpoint allows you to access detailed information about the filter identified - by the filterId path parameter. It is useful for managing and reviewing filter - configurations within your webhook subscriptions. + """ + Retrieve details of a specific filter associated with a webhook subscription in + the HubSpot account. This endpoint is useful for accessing the configuration and + conditions of a filter by its unique identifier. Args: extra_headers: Send extra headers @@ -1518,11 +1517,11 @@ def list_journal_subscriptions( extra_body: Body | None = None, timeout: float | httpx.Timeout | None | NotGiven = not_given, ) -> CollectionResponseSubscriptionResponseNoPaging: - """Retrieve a list of webhook journal subscriptions for the specified version. - - This - endpoint allows you to view all active subscriptions without pagination. It is - useful for managing and auditing webhook subscriptions in your HubSpot account. + """ + Retrieve a list of webhook journal subscriptions for the specified API version. + This endpoint provides details about each subscription, including actions, + object types, and associated properties. It is useful for managing and reviewing + current webhook subscriptions. """ return self._get( "/webhooks-journal/subscriptions/2026-03", @@ -1543,12 +1542,11 @@ def list_subscription_filters( extra_body: Body | None = None, timeout: float | httpx.Timeout | None | NotGiven = not_given, ) -> WebhookListSubscriptionFiltersResponse: - """Retrieve the filters associated with a specific webhook subscription. - - This - endpoint is useful for obtaining detailed information about the filters applied - to a subscription, which can help in managing and understanding the data flow - through your webhook integrations. + """ + Retrieve the filters associated with a specific webhook subscription in the + HubSpot account. This endpoint is useful for obtaining detailed information + about the filters applied to a given subscription, identified by its + subscription ID. Args: extra_headers: Send extra headers @@ -1587,9 +1585,8 @@ def update_event_subscription( Update an existing event subscription by ID. Args: - active: Whether to activate or pause the webhook subscription. If true, the subscription - will send webhook notifications. If false, the subscription is paused and will - not send notifications. + active: A boolean indicating whether the subscription is active. If true, the + subscription is active; if false, it is inactive. extra_headers: Send extra headers @@ -1631,9 +1628,7 @@ def update_settings( Update webhook settings for the specified app. Args: - target_url: A publicly available URL for Hubspot to call where event payloads will be - delivered. See [link-so-some-doc](#) for details about the format of these event - payloads. + target_url: The URL to which webhook events will be sent. It is a string. extra_headers: Send extra headers @@ -1729,16 +1724,17 @@ async def create_crm_snapshots( extra_body: Body | None = None, timeout: float | httpx.Timeout | None | NotGiven = not_given, ) -> CrmObjectSnapshotBatchResponse: - """Create a batch of CRM object snapshots for a specified portal. + """Create a batch of CRM object snapshots for the specified portal. This endpoint - allows you to capture the current state of CRM objects by submitting a batch - request with the necessary object details. It is useful for tracking changes or - maintaining historical records of CRM data. + allows you to capture the state of CRM objects at a specific point in time, + which can be useful for auditing or historical analysis. The request requires a + list of CRM object snapshot requests, each specifying the portal ID, object ID, + object type ID, and properties to include in the snapshot. Args: snapshot_requests: An array of CrmObjectSnapshotRequest objects, each representing a request to - capture a snapshot of a specific CRM object. This property is required. + create a snapshot for a specific CRM object. This property is required. extra_headers: Send extra headers @@ -1829,20 +1825,19 @@ async def create_event_subscription( Create new event subscription for the specified app. Args: - active: A boolean indicating whether the subscription is active. This field is required. + active: A boolean indicating whether the subscription is active. event_type: A string representing the type of event to subscribe to. Valid values include - various object changes such as 'contact.propertyChange', 'deal.creation', and - 'conversation.newMessage'. + various property changes, creations, deletions, merges, restorations, + association changes, and event completions. - event_type_name: A string that provides a human-readable name for the event type. This is - optional. + event_type_name: A string providing a human-readable name for the event type. - object_type_id: A string representing the identifier of the object type for which the - subscription is being created. This is optional. + object_type_id: A string representing the ID of the object type associated with the + subscription. - property_name: A string indicating the name of the property that triggers the event. This is - optional and used when subscribing to property change events. + property_name: A string indicating the specific property name related to the event type, if + applicable. extra_headers: Send extra headers @@ -1882,10 +1877,11 @@ async def create_journal_subscription( timeout: float | httpx.Timeout | None | NotGiven = not_given, ) -> SubscriptionResponse1: """ - Create a new subscription in the webhooks journal for the specified version. - This endpoint allows you to define the subscription details, including actions - and object types, to manage webhook events effectively. It requires a valid - request body with the subscription details. + Create a new webhook subscription for the specified portal in the HubSpot + account. This endpoint allows you to define the subscription details, including + the types of events you want to subscribe to. The request body must include the + necessary subscription information as defined by the SubscriptionUpsertRequest + schema. """ ... @@ -1901,10 +1897,11 @@ async def create_journal_subscription( timeout: float | httpx.Timeout | None | NotGiven = not_given, ) -> SubscriptionResponse1: """ - Create a new subscription in the webhooks journal for the specified version. - This endpoint allows you to define the subscription details, including actions - and object types, to manage webhook events effectively. It requires a valid - request body with the subscription details. + Create a new webhook subscription for the specified portal in the HubSpot + account. This endpoint allows you to define the subscription details, including + the types of events you want to subscribe to. The request body must include the + necessary subscription information as defined by the SubscriptionUpsertRequest + schema. """ ... @@ -1920,10 +1917,11 @@ async def create_journal_subscription( timeout: float | httpx.Timeout | None | NotGiven = not_given, ) -> SubscriptionResponse1: """ - Create a new subscription in the webhooks journal for the specified version. - This endpoint allows you to define the subscription details, including actions - and object types, to manage webhook events effectively. It requires a valid - request body with the subscription details. + Create a new webhook subscription for the specified portal in the HubSpot + account. This endpoint allows you to define the subscription details, including + the types of events you want to subscribe to. The request body must include the + necessary subscription information as defined by the SubscriptionUpsertRequest + schema. """ ... @@ -1939,10 +1937,11 @@ async def create_journal_subscription( timeout: float | httpx.Timeout | None | NotGiven = not_given, ) -> SubscriptionResponse1: """ - Create a new subscription in the webhooks journal for the specified version. - This endpoint allows you to define the subscription details, including actions - and object types, to manage webhook events effectively. It requires a valid - request body with the subscription details. + Create a new webhook subscription for the specified portal in the HubSpot + account. This endpoint allows you to define the subscription details, including + the types of events you want to subscribe to. The request body must include the + necessary subscription information as defined by the SubscriptionUpsertRequest + schema. """ ... @@ -1958,10 +1957,11 @@ async def create_journal_subscription( timeout: float | httpx.Timeout | None | NotGiven = not_given, ) -> SubscriptionResponse1: """ - Create a new subscription in the webhooks journal for the specified version. - This endpoint allows you to define the subscription details, including actions - and object types, to manage webhook events effectively. It requires a valid - request body with the subscription details. + Create a new webhook subscription for the specified portal in the HubSpot + account. This endpoint allows you to define the subscription details, including + the types of events you want to subscribe to. The request body must include the + necessary subscription information as defined by the SubscriptionUpsertRequest + schema. """ ... @@ -1995,12 +1995,12 @@ async def create_subscription_filter( extra_body: Body | None = None, timeout: float | httpx.Timeout | None | NotGiven = not_given, ) -> FilterCreateResponse: - """Create a new filter for a webhook subscription in the HubSpot account. + """Create a new filter for a webhook subscription in your HubSpot account. This - endpoint allows you to define conditions that determine when a webhook event - should be triggered for a specific subscription. The request body must include - the subscription ID and the filter details. + endpoint allows you to define specific conditions that a webhook event must meet + to trigger the subscription. It is useful for managing and customizing the + behavior of webhook subscriptions based on specific criteria. Args: filter: Defines a single condition for searching CRM objects, specifying the property to @@ -2008,7 +2008,7 @@ async def create_subscription_filter( the value(s) to compare against. subscription_id: The unique identifier of the subscription to which the filter will be applied. - It is an integer in int64 format. + It is an integer formatted as int64. extra_headers: Send extra headers @@ -2085,7 +2085,7 @@ async def delete_journal_subscription( This operation is useful for managing and cleaning up subscriptions that are no - longer needed. + longer needed or relevant. Args: extra_headers: Send extra headers @@ -2119,8 +2119,8 @@ async def delete_journal_subscription_for_portal( """Delete a webhook journal subscription for a specific portal. This operation - removes the subscription associated with the given portalId, effectively - stopping any webhook events from being sent to the portal. + removes the subscription associated with the given portalId, and no content is + returned upon successful deletion. Args: extra_headers: Send extra headers @@ -2185,12 +2185,12 @@ async def delete_subscription_filter( extra_body: Body | None = None, timeout: float | httpx.Timeout | None | NotGiven = not_given, ) -> None: - """Remove a specific filter from your webhook journal subscriptions. + """Delete a specific filter associated with a webhook journal subscription. - This operation - is useful when you need to clean up or modify the filters applied to your - webhook subscriptions. The filter identified by the filterId will be permanently - deleted. + This + operation is useful for managing and cleaning up filters that are no longer + needed in your subscription setup. The endpoint requires the unique identifier + of the filter to be deleted. Args: extra_headers: Send extra headers @@ -2226,11 +2226,11 @@ async def get_earliest_journal_batch( count. This endpoint is useful for fetching historical webhook data in batches, - allowing you to process or analyze them as needed. + allowing you to process or analyze the earliest entries first. Args: - install_portal_id: The ID of the portal installation for which to fetch the journal entries. This - is an optional parameter. + install_portal_id: The ID of the portal installation to filter the webhook journal entries by. This + is an integer value. extra_headers: Send extra headers @@ -2267,13 +2267,13 @@ async def get_earliest_journal_entry( timeout: float | httpx.Timeout | None | NotGiven = not_given, ) -> AsyncBinaryAPIResponse: """ - Retrieve the earliest entry from the webhooks journal for the specified portal. - This endpoint is useful for accessing the initial entries in the journal, which - can be helpful for debugging or auditing purposes. + Retrieve the earliest entry from the webhooks journal for the specified version. + This endpoint is useful for accessing the oldest records available in the + journal, which can be helpful for auditing or historical data analysis. Args: - install_portal_id: The ID of the portal installation to filter the journal entries. This is an - integer value. + install_portal_id: The ID of the portal installation to filter the journal entries. It is an + integer. extra_headers: Send extra headers @@ -2312,13 +2312,12 @@ async def get_earliest_local_journal_batch( timeout: float | httpx.Timeout | None | NotGiven = not_given, ) -> BatchResponseJournalFetchResponse: """ - Retrieve the earliest batch of webhook journal entries up to a specified count. - This endpoint is useful for accessing the oldest records available in the - webhook journal, allowing you to process or analyze historical webhook data. + Retrieve the earliest batch of webhook journal entries based on the specified + count. This endpoint is useful for fetching a specific number of the earliest + entries in the webhook journal for analysis or processing. Args: - install_portal_id: The ID of the portal installation to filter the webhook journal entries. It is - an integer value. + install_portal_id: The ID of the portal where the webhooks are installed. This is an integer value. extra_headers: Send extra headers @@ -2356,11 +2355,11 @@ async def get_earliest_local_journal_entry( ) -> AsyncBinaryAPIResponse: """ Retrieve the earliest entry from the webhooks journal for the specified portal. - This endpoint is useful for accessing the oldest available data in the journal, - which can be used for historical analysis or troubleshooting. + This endpoint is useful for accessing the oldest records in the journal, which + can be helpful for auditing or tracking purposes. Args: - install_portal_id: The ID of the portal for which to retrieve the earliest journal entry. This + install_portal_id: The ID of the portal installation to filter the journal entries by. This parameter is optional and should be an integer. extra_headers: Send extra headers @@ -2435,17 +2434,16 @@ async def get_journal_batch_by_request( extra_body: Body | None = None, timeout: float | httpx.Timeout | None | NotGiven = not_given, ) -> BatchResponseJournalFetchResponse: - """Read a batch of webhook journal entries for the specified portal. - - This endpoint - allows you to retrieve detailed information about webhook events processed by - your HubSpot account. It is useful for auditing and tracking webhook activity. + """ + Perform a batch read operation on the webhooks journal for the specified date. + This endpoint allows you to retrieve multiple entries from the webhooks journal + in a single request, which can be useful for processing large amounts of data + efficiently. Args: inputs: Strings to input. - install_portal_id: The ID of the portal from which to retrieve webhook journal entries. This is an - integer value. + install_portal_id: The ID of the portal where the webhooks are installed. This is an integer value. extra_headers: Send extra headers @@ -2488,12 +2486,12 @@ async def get_journal_batch_from_offset( ) -> BatchResponseJournalFetchResponse: """ Retrieve a batch of webhook journal entries starting from a specified offset. - This endpoint allows you to specify the number of entries to retrieve, helping - you manage and paginate through large sets of webhook data efficiently. + This endpoint allows you to fetch a specified number of entries, making it + useful for paginating through large sets of webhook journal data. Args: - install_portal_id: The ID of the portal installation to filter the webhook journal entries. This - parameter is optional and is used to specify which portal's data to retrieve. + install_portal_id: The ID of the portal installation. This is an integer value used to specify the + portal context for the request. extra_headers: Send extra headers @@ -2532,10 +2530,9 @@ async def get_journal_status( timeout: float | httpx.Timeout | None | NotGiven = not_given, ) -> SnapshotStatusResponse: """ - Retrieve the status of a specific webhook journal entry using its unique status - ID. This endpoint is useful for monitoring the progress or outcome of a webhook - operation, providing insights into whether it is pending, in progress, - completed, failed, or expired. + Retrieve the status of a specific webhook journal entry using its status ID. + This endpoint is useful for checking the current state of a webhook process, + such as whether it is pending, in progress, completed, failed, or expired. Args: extra_headers: Send extra headers @@ -2568,9 +2565,9 @@ async def get_journal_subscription( timeout: float | httpx.Timeout | None | NotGiven = not_given, ) -> SubscriptionResponse1: """ - Retrieve details of a specific webhook journal subscription using its unique - identifier. This endpoint is useful for obtaining information about a particular - subscription, such as its actions, object types, and associated properties. + Retrieve details of a specific webhook subscription using its unique identifier. + This endpoint is useful for obtaining information about a particular + subscription's configuration and status within the HubSpot account. Args: extra_headers: Send extra headers @@ -2601,15 +2598,15 @@ async def get_latest_journal_batch( extra_body: Body | None = None, timeout: float | httpx.Timeout | None | NotGiven = not_given, ) -> BatchResponseJournalFetchResponse: - """ - Retrieve the latest batch of webhook journal entries up to a specified count. - This endpoint is useful for fetching the most recent webhook events processed by - your HubSpot account. The response includes details about each event, and you - can specify the number of entries to retrieve. + """Retrieve the latest batch of webhook journal entries. + + This endpoint allows you + to specify the number of entries to fetch, providing a way to access recent + webhook activity within your HubSpot account. Args: - install_portal_id: The ID of the portal installation. This parameter is optional and can be used to - filter results by a specific portal. + install_portal_id: The ID of the portal installation. This is an integer value used to identify the + specific portal. extra_headers: Send extra headers @@ -2646,12 +2643,13 @@ async def get_latest_journal_entry( timeout: float | httpx.Timeout | None | NotGiven = not_given, ) -> AsyncBinaryAPIResponse: """ - Retrieve the latest entry from the webhooks journal for the specified portal. - This endpoint is useful for accessing the most recent webhook data available in - the journal. + Retrieve the latest entries from the webhooks journal for the specified portal. + This endpoint is useful for accessing the most recent webhook events processed + by your HubSpot account. It allows you to filter the results by the portal ID to + ensure you are retrieving data relevant to a specific installation. Args: - install_portal_id: The ID of the portal for which to retrieve the latest journal entry. It is an + install_portal_id: The ID of the portal installation to filter the journal entries. It is an integer value. extra_headers: Send extra headers @@ -2690,14 +2688,15 @@ async def get_latest_local_journal_batch( extra_body: Body | None = None, timeout: float | httpx.Timeout | None | NotGiven = not_given, ) -> BatchResponseJournalFetchResponse: - """ - Retrieve the latest batch of webhook journal entries up to a specified count. - This endpoint is useful for fetching the most recent webhook events processed by - the system. It requires authentication and supports various security schemes. + """Retrieve the latest batch of webhook journal entries. + + This endpoint is useful + for accessing the most recent data entries processed by the webhook journal. It + requires specifying the number of entries to retrieve. Args: - install_portal_id: The ID of the portal installation to filter the webhook journal entries. It is - an optional integer parameter. + install_portal_id: The ID of the portal installation. This parameter is optional and used to filter + the journal entries by a specific portal. extra_headers: Send extra headers @@ -2733,16 +2732,14 @@ async def get_latest_local_journal_entry( extra_body: Body | None = None, timeout: float | httpx.Timeout | None | NotGiven = not_given, ) -> AsyncBinaryAPIResponse: - """Retrieve the latest entries from the webhooks journal. - - This endpoint is useful - for accessing the most recent webhook data for analysis or troubleshooting. It - supports filtering by the installPortalId to narrow down results to a specific - portal. + """ + Retrieve the latest entries from the webhooks journal for the specified portal. + This endpoint is useful for accessing the most recent webhook events that have + been logged, allowing you to process or analyze them as needed. Args: - install_portal_id: An integer representing the ID of the portal to filter the webhook journal - entries. + install_portal_id: The ID of the portal for which to retrieve the latest journal entries. This + parameter is optional and should be an integer. extra_headers: Send extra headers @@ -2783,14 +2780,16 @@ async def get_local_journal_batch_by_request( """Perform a batch read operation on the webhooks journal. This endpoint allows you - to retrieve a batch of journal entries by providing the necessary input data. It - is useful for processing large volumes of webhook data efficiently. + to read multiple entries from the journal in a single request. It requires a + JSON request body specifying the inputs to be read. The response includes the + results of the batch read operation, and may return multiple statuses if there + are errors. Args: inputs: Strings to input. - install_portal_id: The ID of the portal where the webhook is installed. This parameter is optional - and is used to specify the portal context for the operation. + install_portal_id: The ID of the portal where the webhooks are installed. This parameter is + optional and is used to specify the target portal. extra_headers: Send extra headers @@ -2834,11 +2833,12 @@ async def get_local_journal_batch_from_offset( ) -> BatchResponseJournalFetchResponse: """ Retrieve a batch of webhook journal entries starting from a specified offset. - This endpoint is useful for fetching sequential batches of data, allowing you to - paginate through large sets of webhook journal entries efficiently. + This endpoint allows you to fetch a defined number of entries, facilitating the + processing of webhook data in manageable chunks. Args: - install_portal_id: The ID of the portal where the webhooks are installed. This is an integer value. + install_portal_id: The ID of the portal installation. This is an integer value used to specify the + portal context for the request. extra_headers: Send extra headers @@ -2880,9 +2880,8 @@ async def get_local_journal_status( ) -> SnapshotStatusResponse: """ Retrieve the status of a specific webhook journal entry using its unique status - ID. This endpoint is useful for checking the progress or result of a webhook - operation, such as whether it is pending, in progress, completed, failed, or - expired. + ID. This endpoint is useful for monitoring the progress or completion of webhook + processing tasks. Args: extra_headers: Send extra headers @@ -2916,13 +2915,13 @@ async def get_next_journal_entries( timeout: float | httpx.Timeout | None | NotGiven = not_given, ) -> AsyncBinaryAPIResponse: """ - Retrieve the next set of webhook journal entries starting from a specified - offset. This endpoint is useful for paginating through webhook journal entries - in a HubSpot account. It allows you to continue fetching entries from where the - last request left off, using the offset parameter. + Retrieve the next batch of webhook journal entries starting from a specified + offset. This endpoint is useful for paginating through large sets of webhook + data, allowing you to continue fetching entries from where you last left off. Args: - install_portal_id: The ID of the portal where the webhooks are installed. This is an integer value. + install_portal_id: The ID of the portal installation to filter the webhook journal entries. This is + an optional parameter. extra_headers: Send extra headers @@ -2962,16 +2961,13 @@ async def get_next_local_journal_entries( extra_body: Body | None = None, timeout: float | httpx.Timeout | None | NotGiven = not_given, ) -> AsyncBinaryAPIResponse: - """Retrieve the next set of journal entries starting from a specified offset. - - This - endpoint is useful for paginating through webhook journal entries in a - sequential manner. It requires specifying the offset from which the next entries - should be fetched. + """ + Retrieve the next set of webhook journal entries starting from a specified + offset. This endpoint is useful for paginating through webhook journal data in a + sequential manner, allowing you to fetch entries beyond a given point. Args: - install_portal_id: The ID of the portal installation to filter the journal entries by. This is an - optional parameter. + install_portal_id: The ID of the portal where the webhook is installed. This is an integer value. extra_headers: Send extra headers @@ -3042,12 +3038,10 @@ async def get_subscription_filter( extra_body: Body | None = None, timeout: float | httpx.Timeout | None | NotGiven = not_given, ) -> FilterResponse: - """Retrieve a specific filter associated with a webhook journal subscription. - - This - endpoint allows you to access detailed information about the filter identified - by the filterId path parameter. It is useful for managing and reviewing filter - configurations within your webhook subscriptions. + """ + Retrieve details of a specific filter associated with a webhook subscription in + the HubSpot account. This endpoint is useful for accessing the configuration and + conditions of a filter by its unique identifier. Args: extra_headers: Send extra headers @@ -3107,11 +3101,11 @@ async def list_journal_subscriptions( extra_body: Body | None = None, timeout: float | httpx.Timeout | None | NotGiven = not_given, ) -> CollectionResponseSubscriptionResponseNoPaging: - """Retrieve a list of webhook journal subscriptions for the specified version. - - This - endpoint allows you to view all active subscriptions without pagination. It is - useful for managing and auditing webhook subscriptions in your HubSpot account. + """ + Retrieve a list of webhook journal subscriptions for the specified API version. + This endpoint provides details about each subscription, including actions, + object types, and associated properties. It is useful for managing and reviewing + current webhook subscriptions. """ return await self._get( "/webhooks-journal/subscriptions/2026-03", @@ -3132,12 +3126,11 @@ async def list_subscription_filters( extra_body: Body | None = None, timeout: float | httpx.Timeout | None | NotGiven = not_given, ) -> WebhookListSubscriptionFiltersResponse: - """Retrieve the filters associated with a specific webhook subscription. - - This - endpoint is useful for obtaining detailed information about the filters applied - to a subscription, which can help in managing and understanding the data flow - through your webhook integrations. + """ + Retrieve the filters associated with a specific webhook subscription in the + HubSpot account. This endpoint is useful for obtaining detailed information + about the filters applied to a given subscription, identified by its + subscription ID. Args: extra_headers: Send extra headers @@ -3176,9 +3169,8 @@ async def update_event_subscription( Update an existing event subscription by ID. Args: - active: Whether to activate or pause the webhook subscription. If true, the subscription - will send webhook notifications. If false, the subscription is paused and will - not send notifications. + active: A boolean indicating whether the subscription is active. If true, the + subscription is active; if false, it is inactive. extra_headers: Send extra headers @@ -3220,9 +3212,7 @@ async def update_settings( Update webhook settings for the specified app. Args: - target_url: A publicly available URL for Hubspot to call where event payloads will be - delivered. See [link-so-some-doc](#) for details about the format of these event - payloads. + target_url: The URL to which webhook events will be sent. It is a string. extra_headers: Send extra headers diff --git a/src/hubspot_sdk/types/__init__.py b/src/hubspot_sdk/types/__init__.py index 22e8f4af..077c4d28 100644 --- a/src/hubspot_sdk/types/__init__.py +++ b/src/hubspot_sdk/types/__init__.py @@ -3,15 +3,15 @@ from __future__ import annotations from .shared import ( - Error as Error, - Option as Option, Paging as Paging, NextPage as NextPage, - Property as Property, + BaseError as BaseError, + BaseOption as BaseOption, ErrorDetail as ErrorDetail, OptionInput as OptionInput, TaskLocator as TaskLocator, VersionUser as VersionUser, + BaseProperty as BaseProperty, PreviousPage as PreviousPage, PropertyName as PropertyName, ForwardPaging as ForwardPaging, @@ -25,14 +25,14 @@ BatchInputString as BatchInputString, PropertyGroupCreate as PropertyGroupCreate, PropertyGroupUpdate as PropertyGroupUpdate, - ObjectTypeDefinition as ObjectTypeDefinition, - AssociationDefinition as AssociationDefinition, BatchInputPropertyName as BatchInputPropertyName, AutomationActionsOption as AutomationActionsOption, AbTestCreateRequestVNext as AbTestCreateRequestVNext, AssociationDefinitionEgg as AssociationDefinitionEgg, + BaseObjectTypeDefinition as BaseObjectTypeDefinition, BatchInputPropertyCreate as BatchInputPropertyCreate, BatchInputPublicObjectID as BatchInputPublicObjectID, + BaseAssociationDefinition as BaseAssociationDefinition, ObjectTypeDefinitionPatch as ObjectTypeDefinitionPatch, BatchReadInputPropertyName as BatchReadInputPropertyName, ObjectTypeDefinitionLabels as ObjectTypeDefinitionLabels, diff --git a/src/hubspot_sdk/types/auth/__init__.py b/src/hubspot_sdk/types/auth/__init__.py index cf4a01fa..cfe6ba55 100644 --- a/src/hubspot_sdk/types/auth/__init__.py +++ b/src/hubspot_sdk/types/auth/__init__.py @@ -2,7 +2,10 @@ from __future__ import annotations +from .signed_access_token import SignedAccessToken as SignedAccessToken from .oauth_create_token_params import OAuthCreateTokenParams as OAuthCreateTokenParams from .oauth_revoke_token_params import OAuthRevokeTokenParams as OAuthRevokeTokenParams from .token_info_response_base_if import TokenInfoResponseBaseIf as TokenInfoResponseBaseIf from .oauth_introspect_token_params import OAuthIntrospectTokenParams as OAuthIntrospectTokenParams +from .public_access_token_info_response import PublicAccessTokenInfoResponse as PublicAccessTokenInfoResponse +from .public_refresh_token_info_response import PublicRefreshTokenInfoResponse as PublicRefreshTokenInfoResponse diff --git a/src/hubspot_sdk/types/auth/public_access_token_info_response.py b/src/hubspot_sdk/types/auth/public_access_token_info_response.py new file mode 100644 index 00000000..ec950721 --- /dev/null +++ b/src/hubspot_sdk/types/auth/public_access_token_info_response.py @@ -0,0 +1,39 @@ +# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. + +from typing import List, Optional +from typing_extensions import Literal + +from ..._models import BaseModel +from .signed_access_token import SignedAccessToken + +__all__ = ["PublicAccessTokenInfoResponse"] + + +class PublicAccessTokenInfoResponse(BaseModel): + token: str + + active: bool + + app_id: int + + client_id: str + + expires_in: int + + hub_id: int + + is_private_distribution: bool + + scopes: List[str] + + signed_access_token: SignedAccessToken + + token_type: str + + token_use: Literal["access_token"] + + user_id: int + + hub_domain: Optional[str] = None + + user: Optional[str] = None diff --git a/src/hubspot_sdk/types/auth/public_refresh_token_info_response.py b/src/hubspot_sdk/types/auth/public_refresh_token_info_response.py new file mode 100644 index 00000000..0d090bab --- /dev/null +++ b/src/hubspot_sdk/types/auth/public_refresh_token_info_response.py @@ -0,0 +1,32 @@ +# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. + +from typing import List, Optional +from typing_extensions import Literal + +from ..._models import BaseModel + +__all__ = ["PublicRefreshTokenInfoResponse"] + + +class PublicRefreshTokenInfoResponse(BaseModel): + token: str + + active: bool + + app_id: int + + client_id: str + + hub_id: int + + scopes: List[str] + + token_type: str + + token_use: Literal["refresh_token"] + + user_id: int + + hub_domain: Optional[str] = None + + user: Optional[str] = None diff --git a/src/hubspot_sdk/types/auth/signed_access_token.py b/src/hubspot_sdk/types/auth/signed_access_token.py new file mode 100644 index 00000000..623548ec --- /dev/null +++ b/src/hubspot_sdk/types/auth/signed_access_token.py @@ -0,0 +1,39 @@ +# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. + +from pydantic import Field as FieldInfo + +from ..._models import BaseModel + +__all__ = ["SignedAccessToken"] + + +class SignedAccessToken(BaseModel): + app_id: int = FieldInfo(alias="appId") + + expires_at: int = FieldInfo(alias="expiresAt") + + hub_id: int = FieldInfo(alias="hubId") + + hublet: str + + installing_user_id: int = FieldInfo(alias="installingUserId") + + is_private_distribution: bool = FieldInfo(alias="isPrivateDistribution") + + is_service_account: bool = FieldInfo(alias="isServiceAccount") + + is_user_level: bool = FieldInfo(alias="isUserLevel") + + new_signature: str = FieldInfo(alias="newSignature") + + scopes: str + + scope_to_scope_group_pks: str = FieldInfo(alias="scopeToScopeGroupPks") + + signature: str + + trial_scopes: str = FieldInfo(alias="trialScopes") + + trial_scope_to_scope_group_pks: str = FieldInfo(alias="trialScopeToScopeGroupPks") + + user_id: int = FieldInfo(alias="userId") diff --git a/src/hubspot_sdk/types/auth/token_info_response_base_if.py b/src/hubspot_sdk/types/auth/token_info_response_base_if.py index b71ca03b..bbedcbfc 100644 --- a/src/hubspot_sdk/types/auth/token_info_response_base_if.py +++ b/src/hubspot_sdk/types/auth/token_info_response_base_if.py @@ -1,9 +1,11 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ..._models import BaseModel +from typing import Union +from typing_extensions import TypeAlias -__all__ = ["TokenInfoResponseBaseIf"] +from .public_access_token_info_response import PublicAccessTokenInfoResponse +from .public_refresh_token_info_response import PublicRefreshTokenInfoResponse +__all__ = ["TokenInfoResponseBaseIf"] -class TokenInfoResponseBaseIf(BaseModel): - active: bool +TokenInfoResponseBaseIf: TypeAlias = Union[PublicAccessTokenInfoResponse, PublicRefreshTokenInfoResponse] diff --git a/src/hubspot_sdk/types/automation/actions/definition_create_params.py b/src/hubspot_sdk/types/automation/actions/definition_create_params.py index 64d73cbb..3a614d00 100644 --- a/src/hubspot_sdk/types/automation/actions/definition_create_params.py +++ b/src/hubspot_sdk/types/automation/actions/definition_create_params.py @@ -9,6 +9,7 @@ from ...._utils import PropertyInfo from ..public_action_labels_param import PublicActionLabelsParam from ..public_action_function_param import PublicActionFunctionParam +from ..output_field_definition_param import OutputFieldDefinitionParam from ..public_input_field_definition_param import PublicInputFieldDefinitionParam from ..public_object_request_options_param import PublicObjectRequestOptionsParam from ..public_single_field_dependency_param import PublicSingleFieldDependencyParam @@ -46,9 +47,7 @@ class DefinitionCreateParams(TypedDict, total=False): object_request_options: Annotated[PublicObjectRequestOptionsParam, PropertyInfo(alias="objectRequestOptions")] - output_fields: Annotated[Iterable["OutputFieldDefinitionParam"], PropertyInfo(alias="outputFields")] + output_fields: Annotated[Iterable[OutputFieldDefinitionParam], PropertyInfo(alias="outputFields")] InputFieldDependency: TypeAlias = Union[PublicSingleFieldDependencyParam, PublicConditionalSingleFieldDependencyParam] - -from ..output_field_definition_param import OutputFieldDefinitionParam diff --git a/src/hubspot_sdk/types/automation/actions/definition_update_params.py b/src/hubspot_sdk/types/automation/actions/definition_update_params.py index ea15e254..30bee1c4 100644 --- a/src/hubspot_sdk/types/automation/actions/definition_update_params.py +++ b/src/hubspot_sdk/types/automation/actions/definition_update_params.py @@ -8,6 +8,7 @@ from ...._types import SequenceNotStr from ...._utils import PropertyInfo from ..public_action_labels_param import PublicActionLabelsParam +from ..output_field_definition_param import OutputFieldDefinitionParam from ..public_input_field_definition_param import PublicInputFieldDefinitionParam from ..public_object_request_options_param import PublicObjectRequestOptionsParam from ..public_single_field_dependency_param import PublicSingleFieldDependencyParam @@ -36,12 +37,10 @@ class DefinitionUpdateParams(TypedDict, total=False): object_types: Annotated[SequenceNotStr[str], PropertyInfo(alias="objectTypes")] - output_fields: Annotated[Iterable["OutputFieldDefinitionParam"], PropertyInfo(alias="outputFields")] + output_fields: Annotated[Iterable[OutputFieldDefinitionParam], PropertyInfo(alias="outputFields")] published: bool """Indicates whether the action is published and available for use.""" InputFieldDependency: TypeAlias = Union[PublicSingleFieldDependencyParam, PublicConditionalSingleFieldDependencyParam] - -from ..output_field_definition_param import OutputFieldDefinitionParam diff --git a/src/hubspot_sdk/types/automation/array_field_schema.py b/src/hubspot_sdk/types/automation/array_field_schema.py index c340727c..24fe8afe 100644 --- a/src/hubspot_sdk/types/automation/array_field_schema.py +++ b/src/hubspot_sdk/types/automation/array_field_schema.py @@ -1,52 +1,14 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from __future__ import annotations +from typing_extensions import Literal -from typing import TYPE_CHECKING, Union -from typing_extensions import Literal, TypeAlias, TypeAliasType - -from ..._compat import PYDANTIC_V1 from ..._models import BaseModel -from .long_field_schema import LongFieldSchema -from .double_field_schema import DoubleFieldSchema -from .object_field_schema import ObjectFieldSchema -from .string_field_schema import StringFieldSchema -from .boolean_field_schema import BooleanFieldSchema -from .integer_field_schema import IntegerFieldSchema - -__all__ = ["ArrayFieldSchema", "Items"] -if TYPE_CHECKING or not PYDANTIC_V1: - Items = TypeAliasType( - "Items", - Union[ - IntegerFieldSchema, - LongFieldSchema, - DoubleFieldSchema, - StringFieldSchema, - BooleanFieldSchema, - "ArrayFieldSchema", - ObjectFieldSchema, - ], - ) -else: - Items: TypeAlias = Union[ - IntegerFieldSchema, - LongFieldSchema, - DoubleFieldSchema, - StringFieldSchema, - BooleanFieldSchema, - "ArrayFieldSchema", - ObjectFieldSchema, - ] +__all__ = ["ArrayFieldSchema"] class ArrayFieldSchema(BaseModel): - items: Items - """ - Defines the type of elements contained within the array, which can be an - integer, long, double, string, boolean, another array, or an object. - """ + items: object type: Literal["ARRAY"] """Specifies that the field is of type 'ARRAY'.""" diff --git a/src/hubspot_sdk/types/automation/array_field_schema_param.py b/src/hubspot_sdk/types/automation/array_field_schema_param.py index 51dd86bb..a83e0c60 100644 --- a/src/hubspot_sdk/types/automation/array_field_schema_param.py +++ b/src/hubspot_sdk/types/automation/array_field_schema_param.py @@ -2,50 +2,13 @@ from __future__ import annotations -from typing import TYPE_CHECKING, Union -from typing_extensions import Literal, Required, TypeAlias, TypedDict, TypeAliasType +from typing_extensions import Literal, Required, TypedDict -from ..._compat import PYDANTIC_V1 -from .long_field_schema_param import LongFieldSchemaParam -from .double_field_schema_param import DoubleFieldSchemaParam -from .object_field_schema_param import ObjectFieldSchemaParam -from .string_field_schema_param import StringFieldSchemaParam -from .boolean_field_schema_param import BooleanFieldSchemaParam -from .integer_field_schema_param import IntegerFieldSchemaParam - -__all__ = ["ArrayFieldSchemaParam", "Items"] - -if TYPE_CHECKING or not PYDANTIC_V1: - Items = TypeAliasType( - "Items", - Union[ - IntegerFieldSchemaParam, - LongFieldSchemaParam, - DoubleFieldSchemaParam, - StringFieldSchemaParam, - BooleanFieldSchemaParam, - "ArrayFieldSchemaParam", - ObjectFieldSchemaParam, - ], - ) -else: - Items: TypeAlias = Union[ - IntegerFieldSchemaParam, - LongFieldSchemaParam, - DoubleFieldSchemaParam, - StringFieldSchemaParam, - BooleanFieldSchemaParam, - "ArrayFieldSchemaParam", - ObjectFieldSchemaParam, - ] +__all__ = ["ArrayFieldSchemaParam"] class ArrayFieldSchemaParam(TypedDict, total=False): - items: Required[Items] - """ - Defines the type of elements contained within the array, which can be an - integer, long, double, string, boolean, another array, or an object. - """ + items: Required[object] type: Required[Literal["ARRAY"]] """Specifies that the field is of type 'ARRAY'.""" diff --git a/src/hubspot_sdk/types/automation/chirp_ai_context_object_param.py b/src/hubspot_sdk/types/automation/chirp_ai_context_object_param.py index 2ab97610..d1db4a54 100644 --- a/src/hubspot_sdk/types/automation/chirp_ai_context_object_param.py +++ b/src/hubspot_sdk/types/automation/chirp_ai_context_object_param.py @@ -57,6 +57,8 @@ class ChirpAIContextObjectParam(TypedDict, total=False): compliance_ids: Annotated[ComplianceIDsParam, PropertyInfo(alias="complianceIds")] + conversation_id: Annotated[str, PropertyInfo(alias="conversationId")] + feature_id: Annotated[str, PropertyInfo(alias="featureId")] """The identifier for the feature associated with the context.""" diff --git a/src/hubspot_sdk/types/automation/collection_response_public_action_definition_forward_paging.py b/src/hubspot_sdk/types/automation/collection_response_public_action_definition_forward_paging.py index c7e31cb6..ab4e55d9 100644 --- a/src/hubspot_sdk/types/automation/collection_response_public_action_definition_forward_paging.py +++ b/src/hubspot_sdk/types/automation/collection_response_public_action_definition_forward_paging.py @@ -1,19 +1,15 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from __future__ import annotations - from typing import List, Optional from ..._models import BaseModel from ..shared.forward_paging import ForwardPaging +from .public_action_definition import PublicActionDefinition __all__ = ["CollectionResponsePublicActionDefinitionForwardPaging"] class CollectionResponsePublicActionDefinitionForwardPaging(BaseModel): - results: List["PublicActionDefinition"] + results: List[PublicActionDefinition] paging: Optional[ForwardPaging] = None - - -from .public_action_definition import PublicActionDefinition diff --git a/src/hubspot_sdk/types/automation/collection_response_public_action_revision_forward_paging.py b/src/hubspot_sdk/types/automation/collection_response_public_action_revision_forward_paging.py index f2dfba56..f9c164a5 100644 --- a/src/hubspot_sdk/types/automation/collection_response_public_action_revision_forward_paging.py +++ b/src/hubspot_sdk/types/automation/collection_response_public_action_revision_forward_paging.py @@ -1,19 +1,15 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from __future__ import annotations - from typing import List, Optional from ..._models import BaseModel from ..shared.forward_paging import ForwardPaging +from .public_action_revision import PublicActionRevision __all__ = ["CollectionResponsePublicActionRevisionForwardPaging"] class CollectionResponsePublicActionRevisionForwardPaging(BaseModel): - results: List["PublicActionRevision"] + results: List[PublicActionRevision] paging: Optional[ForwardPaging] = None - - -from .public_action_revision import PublicActionRevision diff --git a/src/hubspot_sdk/types/automation/field_type_definition.py b/src/hubspot_sdk/types/automation/field_type_definition.py index 1271c1ca..a028649a 100644 --- a/src/hubspot_sdk/types/automation/field_type_definition.py +++ b/src/hubspot_sdk/types/automation/field_type_definition.py @@ -1,7 +1,5 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from __future__ import annotations - from typing import List, Union, Optional from typing_extensions import Literal, TypeAlias @@ -9,6 +7,7 @@ from ..._models import BaseModel from .long_field_schema import LongFieldSchema +from .array_field_schema import ArrayFieldSchema from .double_field_schema import DoubleFieldSchema from .object_field_schema import ObjectFieldSchema from .string_field_schema import StringFieldSchema @@ -24,7 +23,7 @@ DoubleFieldSchema, StringFieldSchema, BooleanFieldSchema, - "ArrayFieldSchema", + ArrayFieldSchema, ObjectFieldSchema, ] @@ -271,6 +270,3 @@ class FieldTypeDefinition(BaseModel): Indicates the type of object that the field references, with accepted values like OWNER. """ - - -from .array_field_schema import ArrayFieldSchema diff --git a/src/hubspot_sdk/types/automation/field_type_definition_param.py b/src/hubspot_sdk/types/automation/field_type_definition_param.py index f3930c2c..b17008ac 100644 --- a/src/hubspot_sdk/types/automation/field_type_definition_param.py +++ b/src/hubspot_sdk/types/automation/field_type_definition_param.py @@ -7,6 +7,7 @@ from ..._utils import PropertyInfo from .long_field_schema_param import LongFieldSchemaParam +from .array_field_schema_param import ArrayFieldSchemaParam from .double_field_schema_param import DoubleFieldSchemaParam from .object_field_schema_param import ObjectFieldSchemaParam from .string_field_schema_param import StringFieldSchemaParam @@ -22,7 +23,7 @@ DoubleFieldSchemaParam, StringFieldSchemaParam, BooleanFieldSchemaParam, - "ArrayFieldSchemaParam", + ArrayFieldSchemaParam, ObjectFieldSchemaParam, ] @@ -273,6 +274,3 @@ class FieldTypeDefinitionParam(TypedDict, total=False): Indicates the type of object that the field references, with accepted values like OWNER. """ - - -from .array_field_schema_param import ArrayFieldSchemaParam diff --git a/src/hubspot_sdk/types/automation/output_field_definition.py b/src/hubspot_sdk/types/automation/output_field_definition.py index d6baa291..8b4d3cb6 100644 --- a/src/hubspot_sdk/types/automation/output_field_definition.py +++ b/src/hubspot_sdk/types/automation/output_field_definition.py @@ -1,16 +1,12 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from __future__ import annotations - from pydantic import Field as FieldInfo from ..._models import BaseModel +from .field_type_definition import FieldTypeDefinition __all__ = ["OutputFieldDefinition"] class OutputFieldDefinition(BaseModel): - type_definition: "FieldTypeDefinition" = FieldInfo(alias="typeDefinition") - - -from .field_type_definition import FieldTypeDefinition + type_definition: FieldTypeDefinition = FieldInfo(alias="typeDefinition") diff --git a/src/hubspot_sdk/types/automation/output_field_definition_param.py b/src/hubspot_sdk/types/automation/output_field_definition_param.py index aa0d5655..fa3d76c3 100644 --- a/src/hubspot_sdk/types/automation/output_field_definition_param.py +++ b/src/hubspot_sdk/types/automation/output_field_definition_param.py @@ -5,12 +5,10 @@ from typing_extensions import Required, Annotated, TypedDict from ..._utils import PropertyInfo +from .field_type_definition_param import FieldTypeDefinitionParam __all__ = ["OutputFieldDefinitionParam"] class OutputFieldDefinitionParam(TypedDict, total=False): - type_definition: Required[Annotated["FieldTypeDefinitionParam", PropertyInfo(alias="typeDefinition")]] - - -from .field_type_definition_param import FieldTypeDefinitionParam + type_definition: Required[Annotated[FieldTypeDefinitionParam, PropertyInfo(alias="typeDefinition")]] diff --git a/src/hubspot_sdk/types/automation/public_action_definition.py b/src/hubspot_sdk/types/automation/public_action_definition.py index a8f55a52..b1ab7258 100644 --- a/src/hubspot_sdk/types/automation/public_action_definition.py +++ b/src/hubspot_sdk/types/automation/public_action_definition.py @@ -1,7 +1,5 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from __future__ import annotations - from typing import Dict, List, Union, Optional from typing_extensions import TypeAlias @@ -9,6 +7,7 @@ from ..._models import BaseModel from .public_action_labels import PublicActionLabels +from .output_field_definition import OutputFieldDefinition from .public_input_field_definition import PublicInputFieldDefinition from .public_object_request_options import PublicObjectRequestOptions from .public_single_field_dependency import PublicSingleFieldDependency @@ -48,7 +47,4 @@ class PublicActionDefinition(BaseModel): object_request_options: Optional[PublicObjectRequestOptions] = FieldInfo(alias="objectRequestOptions", default=None) - output_fields: Optional[List["OutputFieldDefinition"]] = FieldInfo(alias="outputFields", default=None) - - -from .output_field_definition import OutputFieldDefinition + output_fields: Optional[List[OutputFieldDefinition]] = FieldInfo(alias="outputFields", default=None) diff --git a/src/hubspot_sdk/types/automation/public_action_revision.py b/src/hubspot_sdk/types/automation/public_action_revision.py index 9de08ff1..3fac133d 100644 --- a/src/hubspot_sdk/types/automation/public_action_revision.py +++ b/src/hubspot_sdk/types/automation/public_action_revision.py @@ -1,12 +1,11 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from __future__ import annotations - from datetime import datetime from pydantic import Field as FieldInfo from ..._models import BaseModel +from .public_action_definition import PublicActionDefinition __all__ = ["PublicActionRevision"] @@ -18,10 +17,7 @@ class PublicActionRevision(BaseModel): created_at: datetime = FieldInfo(alias="createdAt") """The date and time when the action revision was created.""" - definition: "PublicActionDefinition" + definition: PublicActionDefinition revision_id: str = FieldInfo(alias="revisionId") """The unique identifier for the specific revision of the action.""" - - -from .public_action_definition import PublicActionDefinition diff --git a/src/hubspot_sdk/types/cms/__init__.py b/src/hubspot_sdk/types/cms/__init__.py index 18b1af3b..86c98d2d 100644 --- a/src/hubspot_sdk/types/cms/__init__.py +++ b/src/hubspot_sdk/types/cms/__init__.py @@ -2,135 +2,77 @@ from __future__ import annotations -from .now import Now as Now -from .or_ import Or as Or -from .xor import Xor as Xor -from .and_ import And as And -from .date import Date as Date -from .not_ import Not as Not from .size import Size as Size -from .year import Year as Year from .angle import Angle as Angle -from .euler import Euler as Euler from .group import Group as Group -from .month import Month as Month -from .power import Power as Power from .column import Column as Column from .domain import Domain as Domain from .margin import Margin as Margin -from .option import Option as Option from .styles import Styles as Styles from .padding import Padding as Padding -from .add_time import AddTime as AddTime -from .contains import Contains as Contains from .gradient import Gradient as Gradient -from .is_blank import IsBlank as IsBlank from .option_1 import Option1 as Option1 -from .property import Property as Property from .endpoints import Endpoints as Endpoints -from .if_number import IfNumber as IfNumber -from .if_string import IfString as IfString -from .less_than import LessThan as LessThan -from .more_than import MoreThan as MoreThan from .page_data import PageData as PageData -from .substring import Substring as Substring from .color_stop import ColorStop as ColorStop from .foreign_id import ForeignID as ForeignID from .group_view import GroupView as GroupView -from .if_boolean import IfBoolean as IfBoolean -from .is_present import IsPresent as IsPresent -from .lower_case import LowerCase as LowerCase from .property_1 import Property1 as Property1 from .rgba_color import RgbaColor as RgbaColor from .size_param import SizeParam as SizeParam -from .upper_case import UpperCase as UpperCase -from .add_numbers import AddNumbers as AddNumbers from .angle_param import AngleParam as AngleParam -from .begins_with import BeginsWith as BeginsWith -from .max_numbers import MaxNumbers as MaxNumbers -from .min_numbers import MinNumbers as MinNumbers from .simple_user import SimpleUser as SimpleUser -from .square_root import SquareRoot as SquareRoot from .url_mapping import URLMapping as URLMapping +from .hubdb_option import HubdbOption as HubdbOption from .indexed_data import IndexedData as IndexedData from .margin_param import MarginParam as MarginParam -from .option_param import OptionParam as OptionParam from .page_version import PageVersion as PageVersion -from .parse_number import ParseNumber as ParseNumber from .styles_param import StylesParam as StylesParam -from .time_between import TimeBetween as TimeBetween from .import_result import ImportResult as ImportResult from .indexed_field import IndexedField as IndexedField -from .number_equals import NumberEquals as NumberEquals from .object_schema import ObjectSchema as ObjectSchema from .padding_param import PaddingParam as PaddingParam from .row_meta_data import RowMetaData as RowMetaData from .scope_mapping import ScopeMapping as ScopeMapping -from .string_equals import StringEquals as StringEquals -from .string_length import StringLength as StringLength -from .subtract_time import SubtractTime as SubtractTime from .variant_param import VariantParam as VariantParam -from .absolute_value import AbsoluteValue as AbsoluteValue from .bounded_paging import BoundedPaging as BoundedPaging -from .concat_strings import ConcatStrings as ConcatStrings from .content_folder import ContentFolder as ContentFolder -from .divide_numbers import DivideNumbers as DivideNumbers from .extension_data import ExtensionData as ExtensionData from .gradient_param import GradientParam as GradientParam from .layout_section import LayoutSection as LayoutSection from .side_or_corner import SideOrCorner as SideOrCorner -from .constant_number import ConstantNumber as ConstantNumber -from .constant_string import ConstantString as ConstantString from .endpoints_param import EndpointsParam as EndpointsParam -from .has_email_reply import HasEmailReply as HasEmailReply from .hub_db_table_v3 import HubDBTableV3 as HubDBTableV3 from .page_data_param import PageDataParam as PageDataParam -from .period_to_weeks import PeriodToWeeks as PeriodToWeeks from .background_image import BackgroundImage as BackgroundImage from .color_stop_param import ColorStopParam as ColorStopParam -from .constant_boolean import ConstantBoolean as ConstantBoolean -from .format_full_name import FormatFullName as FormatFullName -from .multiply_numbers import MultiplyNumbers as MultiplyNumbers -from .number_to_string import NumberToString as NumberToString -from .period_to_months import PeriodToMonths as PeriodToMonths from .public_audit_log import PublicAuditLog as PublicAuditLog from .rgba_color_param import RgbaColorParam as RgbaColorParam -from .round_up_numbers import RoundUpNumbers as RoundUpNumbers -from .subtract_numbers import SubtractNumbers as SubtractNumbers from .bounded_next_page import BoundedNextPage as BoundedNextPage from .breakpoint_styles import BreakpointStyles as BreakpointStyles from .definition_source import DefinitionSource as DefinitionSource from .rollup_expression import RollupExpression as RollupExpression from .simple_user_param import SimpleUserParam as SimpleUserParam from .domain_list_params import DomainListParams as DomainListParams -from .is_engagement_type import IsEngagementType as IsEngagementType -from .less_than_or_equal import LessThanOrEqual as LessThanOrEqual +from .hubdb_option_param import HubdbOptionParam as HubdbOptionParam from .media_played_event import MediaPlayedEvent as MediaPlayedEvent -from .more_than_or_equal import MoreThanOrEqual as MoreThanOrEqual from .option_decorations import OptionDecorations as OptionDecorations -from .round_down_numbers import RoundDownNumbers as RoundDownNumbers -from .asset_file_metadata import AssetFileMetadata as AssetFileMetadata from .batch_response_page import BatchResponsePage as BatchResponsePage -from .dated_exchange_rate import DatedExchangeRate as DatedExchangeRate -from .fetch_exchange_rate import FetchExchangeRate as FetchExchangeRate from .filtering_meta_data import FilteringMetaData as FilteringMetaData -from .format_phone_number import FormatPhoneNumber as FormatPhoneNumber from .hub_db_table_row_v3 import HubDBTableRowV3 as HubDBTableRowV3 from .property_definition import PropertyDefinition as PropertyDefinition from .row_meta_data_param import RowMetaDataParam as RowMetaDataParam -from .set_contains_string import SetContainsString as SetContainsString from .attention_span_event import AttentionSpanEvent as AttentionSpanEvent from .column_request_param import ColumnRequestParam as ColumnRequestParam from .content_folder_param import ContentFolderParam as ContentFolderParam from .default_requirements import DefaultRequirements as DefaultRequirements from .layout_section_param import LayoutSectionParam as LayoutSectionParam from .object_type_id_proto import ObjectTypeIDProto as ObjectTypeIDProto -from .pipeline_probability import PipelineProbability as PipelineProbability from .side_or_corner_param import SideOrCornerParam as SideOrCornerParam from .audit_log_list_params import AuditLogListParams as AuditLogListParams from .content_search_result import ContentSearchResult as ContentSearchResult +from .media_bridge_property import MediaBridgeProperty as MediaBridgeProperty from .public_search_results import PublicSearchResults as PublicSearchResults -from .round_nearest_numbers import RoundNearestNumbers as RoundNearestNumbers from .background_image_param import BackgroundImageParam as BackgroundImageParam from .content_folder_version import ContentFolderVersion as ContentFolderVersion from .field_level_permission import FieldLevelPermission as FieldLevelPermission @@ -139,39 +81,22 @@ from .batch_response_property import BatchResponseProperty as BatchResponseProperty from .breakpoint_styles_param import BreakpointStylesParam as BreakpointStylesParam from .event_visibility_change import EventVisibilityChange as EventVisibilityChange -from .is_pipeline_stage_closed import IsPipelineStageClosed as IsPipelineStageClosed -from .number_property_variable import NumberPropertyVariable as NumberPropertyVariable +from .lookup_association_spec import LookupAssociationSpec as LookupAssociationSpec from .public_access_rule_param import PublicAccessRuleParam as PublicAccessRuleParam -from .string_property_variable import StringPropertyVariable as StringPropertyVariable from .url_redirect_list_params import URLRedirectListParams as URLRedirectListParams -from .boolean_property_variable import BooleanPropertyVariable as BooleanPropertyVariable from .event_visibility_response import EventVisibilityResponse as EventVisibilityResponse from .site_search_search_params import SiteSearchSearchParams as SiteSearchSearchParams -from .source_code_create_params import SourceCodeCreateParams as SourceCodeCreateParams -from .source_code_upsert_params import SourceCodeUpsertParams as SourceCodeUpsertParams from .url_mapping_create_params import URLMappingCreateParams as URLMappingCreateParams from .content_language_variation import ContentLanguageVariation as ContentLanguageVariation from .external_options_meta_data import ExternalOptionsMetaData as ExternalOptionsMetaData -from .has_plain_text_email_reply import HasPlainTextEmailReply as HasPlainTextEmailReply from .object_definition_response import ObjectDefinitionResponse as ObjectDefinitionResponse -from .page_get_site_pages_params import PageGetSitePagesParams as PageGetSitePagesParams from .property_definition_source import PropertyDefinitionSource as PropertyDefinitionSource -from .time_between_skip_weekends import TimeBetweenSkipWeekends as TimeBetweenSkipWeekends from .url_redirect_create_params import URLRedirectCreateParams as URLRedirectCreateParams from .url_redirect_update_params import URLRedirectUpdateParams as URLRedirectUpdateParams -from .source_code_validate_params import SourceCodeValidateParams as SourceCodeValidateParams from .batch_response_content_folder import BatchResponseContentFolder as BatchResponseContentFolder -from .fetch_currency_decimal_places import FetchCurrencyDecimalPlaces as FetchCurrencyDecimalPlaces from .media_played_percentage_event import MediaPlayedPercentageEvent as MediaPlayedPercentageEvent -from .page_get_landing_pages_params import PageGetLandingPagesParams as PageGetLandingPagesParams -from .format_searchable_phone_number import FormatSearchablePhoneNumber as FormatSearchablePhoneNumber -from .timestamp_of_property_variable import TimestampOfPropertyVariable as TimestampOfPropertyVariable from .case_change_test_extension_data import CaseChangeTestExtensionData as CaseChangeTestExtensionData from .integrator_o_embed_domain_model import IntegratorOEmbedDomainModel as IntegratorOEmbedDomainModel -from .number_target_property_variable import NumberTargetPropertyVariable as NumberTargetPropertyVariable -from .source_code_get_metadata_params import SourceCodeGetMetadataParams as SourceCodeGetMetadataParams -from .string_target_property_variable import StringTargetPropertyVariable as StringTargetPropertyVariable -from .boolean_target_property_variable import BooleanTargetPropertyVariable as BooleanTargetPropertyVariable from .content_language_variation_param import ContentLanguageVariationParam as ContentLanguageVariationParam from .media_bridge_get_property_params import MediaBridgeGetPropertyParams as MediaBridgeGetPropertyParams from .media_bridge_list_schemas_params import MediaBridgeListSchemasParams as MediaBridgeListSchemasParams @@ -187,23 +112,13 @@ from .media_bridge_update_property_params import MediaBridgeUpdatePropertyParams as MediaBridgeUpdatePropertyParams from .media_bridge_update_settings_params import MediaBridgeUpdateSettingsParams as MediaBridgeUpdateSettingsParams from .o_embed_domains_collection_response import OEmbedDomainsCollectionResponse as OEmbedDomainsCollectionResponse -from .page_get_site_pages_by_query_params import PageGetSitePagesByQueryParams as PageGetSitePagesByQueryParams from .site_search_get_indexed_data_params import SiteSearchGetIndexedDataParams as SiteSearchGetIndexedDataParams from .collection_response_public_audit_log import CollectionResponsePublicAuditLog as CollectionResponsePublicAuditLog -from .extract_most_recent_email_reply_html import ExtractMostRecentEmailReplyHTML as ExtractMostRecentEmailReplyHTML -from .extract_most_recent_email_reply_text import ExtractMostRecentEmailReplyText as ExtractMostRecentEmailReplyText -from .page_get_landing_page_folders_params import PageGetLandingPageFoldersParams as PageGetLandingPageFoldersParams from .page_list_site_page_revisions_params import PageListSitePageRevisionsParams as PageListSitePageRevisionsParams from .collection_response_with_total_domain import ( CollectionResponseWithTotalDomain as CollectionResponseWithTotalDomain, ) -from .fetch_single_currency_portal_currency import ( - FetchSingleCurrencyPortalCurrency as FetchSingleCurrencyPortalCurrency, -) from .media_bridge_register_app_name_params import MediaBridgeRegisterAppNameParams as MediaBridgeRegisterAppNameParams -from .timestamp_of_target_property_variable import ( - TimestampOfTargetPropertyVariable as TimestampOfTargetPropertyVariable, -) from .attention_span_calculated_values_param import ( AttentionSpanCalculatedValuesParam as AttentionSpanCalculatedValuesParam, ) @@ -219,7 +134,6 @@ from .media_bridge_create_object_type_params import ( MediaBridgeCreateObjectTypeParams as MediaBridgeCreateObjectTypeParams, ) -from .page_get_landing_pages_by_query_params import PageGetLandingPagesByQueryParams as PageGetLandingPagesByQueryParams from .media_bridge_list_oembed_domains_params import ( MediaBridgeListOembedDomainsParams as MediaBridgeListOembedDomainsParams, ) @@ -247,9 +161,6 @@ from .media_bridge_update_property_group_params import ( MediaBridgeUpdatePropertyGroupParams as MediaBridgeUpdatePropertyGroupParams, ) -from .extract_most_recent_plain_text_email_reply import ( - ExtractMostRecentPlainTextEmailReply as ExtractMostRecentPlainTextEmailReply, -) from .hub_db_table_row_batch_clone_request_param import ( HubDBTableRowBatchCloneRequestParam as HubDBTableRowBatchCloneRequestParam, ) @@ -265,9 +176,6 @@ from .media_bridge_create_media_played_event_params import ( MediaBridgeCreateMediaPlayedEventParams as MediaBridgeCreateMediaPlayedEventParams, ) -from .page_get_landing_page_folders_by_query_params import ( - PageGetLandingPageFoldersByQueryParams as PageGetLandingPageFoldersByQueryParams, -) from .collection_response_with_total_hub_db_table_v3 import ( CollectionResponseWithTotalHubDBTableV3 as CollectionResponseWithTotalHubDBTableV3, ) diff --git a/src/hubspot_sdk/types/cms/absolute_value.py b/src/hubspot_sdk/types/cms/absolute_value.py deleted file mode 100644 index b40d194a..00000000 --- a/src/hubspot_sdk/types/cms/absolute_value.py +++ /dev/null @@ -1,256 +0,0 @@ -# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. - -from __future__ import annotations - -from typing import TYPE_CHECKING, List, Union, Optional -from typing_extensions import Literal, TypeAlias, TypeAliasType - -from pydantic import Field as FieldInfo - -from .now import Now -from .euler import Euler -from ..._compat import PYDANTIC_V1 -from ..._models import BaseModel -from .constant_number import ConstantNumber -from .constant_string import ConstantString -from .constant_boolean import ConstantBoolean -from .is_engagement_type import IsEngagementType -from .number_property_variable import NumberPropertyVariable -from .string_property_variable import StringPropertyVariable -from .boolean_property_variable import BooleanPropertyVariable -from .timestamp_of_property_variable import TimestampOfPropertyVariable -from .number_target_property_variable import NumberTargetPropertyVariable -from .string_target_property_variable import StringTargetPropertyVariable -from .boolean_target_property_variable import BooleanTargetPropertyVariable -from .fetch_single_currency_portal_currency import FetchSingleCurrencyPortalCurrency -from .timestamp_of_target_property_variable import TimestampOfTargetPropertyVariable - -__all__ = ["AbsoluteValue", "Input"] - -if TYPE_CHECKING or not PYDANTIC_V1: - Input = TypeAliasType( - "Input", - Union[ - ConstantBoolean, - ConstantNumber, - ConstantString, - BooleanPropertyVariable, - StringPropertyVariable, - NumberPropertyVariable, - TimestampOfPropertyVariable, - BooleanTargetPropertyVariable, - StringTargetPropertyVariable, - NumberTargetPropertyVariable, - TimestampOfTargetPropertyVariable, - "AddNumbers", - "SubtractNumbers", - "MultiplyNumbers", - "DivideNumbers", - "RoundDownNumbers", - "RoundUpNumbers", - "RoundNearestNumbers", - "UpperCase", - "LowerCase", - "ConcatStrings", - "Contains", - "BeginsWith", - "NumberToString", - "ParseNumber", - "FetchExchangeRate", - "FetchCurrencyDecimalPlaces", - FetchSingleCurrencyPortalCurrency, - "DatedExchangeRate", - "PipelineProbability", - "MaxNumbers", - "MinNumbers", - "LessThan", - "LessThanOrEqual", - "MoreThan", - "MoreThanOrEqual", - "NumberEquals", - "StringEquals", - "IsPipelineStageClosed", - "Not", - "Date", - "Month", - "Year", - Now, - "TimeBetween", - "TimeBetweenSkipWeekends", - "PeriodToMonths", - "PeriodToWeeks", - "And", - "Or", - "Xor", - "IfString", - "IfNumber", - "IfBoolean", - "IsPresent", - "HasEmailReply", - "HasPlainTextEmailReply", - "ExtractMostRecentEmailReplyHTML", - "ExtractMostRecentEmailReplyText", - "ExtractMostRecentPlainTextEmailReply", - "SetContainsString", - IsEngagementType, - "FormatFullName", - "FormatPhoneNumber", - "FormatSearchablePhoneNumber", - "AbsoluteValue", - "SquareRoot", - "Power", - "Substring", - Euler, - "StringLength", - "IsBlank", - "AddTime", - "SubtractTime", - ], - ) -else: - Input: TypeAlias = Union[ - ConstantBoolean, - ConstantNumber, - ConstantString, - BooleanPropertyVariable, - StringPropertyVariable, - NumberPropertyVariable, - TimestampOfPropertyVariable, - BooleanTargetPropertyVariable, - StringTargetPropertyVariable, - NumberTargetPropertyVariable, - TimestampOfTargetPropertyVariable, - "AddNumbers", - "SubtractNumbers", - "MultiplyNumbers", - "DivideNumbers", - "RoundDownNumbers", - "RoundUpNumbers", - "RoundNearestNumbers", - "UpperCase", - "LowerCase", - "ConcatStrings", - "Contains", - "BeginsWith", - "NumberToString", - "ParseNumber", - "FetchExchangeRate", - "FetchCurrencyDecimalPlaces", - FetchSingleCurrencyPortalCurrency, - "DatedExchangeRate", - "PipelineProbability", - "MaxNumbers", - "MinNumbers", - "LessThan", - "LessThanOrEqual", - "MoreThan", - "MoreThanOrEqual", - "NumberEquals", - "StringEquals", - "IsPipelineStageClosed", - "Not", - "Date", - "Month", - "Year", - Now, - "TimeBetween", - "TimeBetweenSkipWeekends", - "PeriodToMonths", - "PeriodToWeeks", - "And", - "Or", - "Xor", - "IfString", - "IfNumber", - "IfBoolean", - "IsPresent", - "HasEmailReply", - "HasPlainTextEmailReply", - "ExtractMostRecentEmailReplyHTML", - "ExtractMostRecentEmailReplyText", - "ExtractMostRecentPlainTextEmailReply", - "SetContainsString", - IsEngagementType, - "FormatFullName", - "FormatPhoneNumber", - "FormatSearchablePhoneNumber", - "AbsoluteValue", - "SquareRoot", - "Power", - "Substring", - Euler, - "StringLength", - "IsBlank", - "AddTime", - "SubtractTime", - ] - - -class AbsoluteValue(BaseModel): - operator: Literal["ABSOLUTE_VALUE"] - - inputs: Optional[List[Input]] = None - - property_name: Optional[str] = FieldInfo(alias="propertyName", default=None) - - value: Optional[float] = None - - -from .or_ import Or -from .xor import Xor -from .and_ import And -from .date import Date -from .not_ import Not -from .year import Year -from .month import Month -from .power import Power -from .add_time import AddTime -from .contains import Contains -from .is_blank import IsBlank -from .if_number import IfNumber -from .if_string import IfString -from .less_than import LessThan -from .more_than import MoreThan -from .substring import Substring -from .if_boolean import IfBoolean -from .is_present import IsPresent -from .lower_case import LowerCase -from .upper_case import UpperCase -from .add_numbers import AddNumbers -from .begins_with import BeginsWith -from .max_numbers import MaxNumbers -from .min_numbers import MinNumbers -from .square_root import SquareRoot -from .parse_number import ParseNumber -from .time_between import TimeBetween -from .number_equals import NumberEquals -from .string_equals import StringEquals -from .string_length import StringLength -from .subtract_time import SubtractTime -from .concat_strings import ConcatStrings -from .divide_numbers import DivideNumbers -from .has_email_reply import HasEmailReply -from .period_to_weeks import PeriodToWeeks -from .format_full_name import FormatFullName -from .multiply_numbers import MultiplyNumbers -from .number_to_string import NumberToString -from .period_to_months import PeriodToMonths -from .round_up_numbers import RoundUpNumbers -from .subtract_numbers import SubtractNumbers -from .less_than_or_equal import LessThanOrEqual -from .more_than_or_equal import MoreThanOrEqual -from .round_down_numbers import RoundDownNumbers -from .dated_exchange_rate import DatedExchangeRate -from .fetch_exchange_rate import FetchExchangeRate -from .format_phone_number import FormatPhoneNumber -from .set_contains_string import SetContainsString -from .pipeline_probability import PipelineProbability -from .round_nearest_numbers import RoundNearestNumbers -from .is_pipeline_stage_closed import IsPipelineStageClosed -from .has_plain_text_email_reply import HasPlainTextEmailReply -from .time_between_skip_weekends import TimeBetweenSkipWeekends -from .fetch_currency_decimal_places import FetchCurrencyDecimalPlaces -from .format_searchable_phone_number import FormatSearchablePhoneNumber -from .extract_most_recent_email_reply_html import ExtractMostRecentEmailReplyHTML -from .extract_most_recent_email_reply_text import ExtractMostRecentEmailReplyText -from .extract_most_recent_plain_text_email_reply import ExtractMostRecentPlainTextEmailReply diff --git a/src/hubspot_sdk/types/cms/add_numbers.py b/src/hubspot_sdk/types/cms/add_numbers.py deleted file mode 100644 index 963631f4..00000000 --- a/src/hubspot_sdk/types/cms/add_numbers.py +++ /dev/null @@ -1,258 +0,0 @@ -# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. - -from __future__ import annotations - -from typing import TYPE_CHECKING, List, Union, Optional -from typing_extensions import Literal, TypeAlias, TypeAliasType - -from pydantic import Field as FieldInfo - -from .now import Now -from .euler import Euler -from ..._compat import PYDANTIC_V1 -from ..._models import BaseModel -from .constant_number import ConstantNumber -from .constant_string import ConstantString -from .constant_boolean import ConstantBoolean -from .is_engagement_type import IsEngagementType -from .number_property_variable import NumberPropertyVariable -from .string_property_variable import StringPropertyVariable -from .boolean_property_variable import BooleanPropertyVariable -from .timestamp_of_property_variable import TimestampOfPropertyVariable -from .number_target_property_variable import NumberTargetPropertyVariable -from .string_target_property_variable import StringTargetPropertyVariable -from .boolean_target_property_variable import BooleanTargetPropertyVariable -from .fetch_single_currency_portal_currency import FetchSingleCurrencyPortalCurrency -from .timestamp_of_target_property_variable import TimestampOfTargetPropertyVariable - -__all__ = ["AddNumbers", "Input"] - -if TYPE_CHECKING or not PYDANTIC_V1: - Input = TypeAliasType( - "Input", - Union[ - ConstantBoolean, - ConstantNumber, - ConstantString, - BooleanPropertyVariable, - StringPropertyVariable, - NumberPropertyVariable, - TimestampOfPropertyVariable, - BooleanTargetPropertyVariable, - StringTargetPropertyVariable, - NumberTargetPropertyVariable, - TimestampOfTargetPropertyVariable, - "AddNumbers", - "SubtractNumbers", - "MultiplyNumbers", - "DivideNumbers", - "RoundDownNumbers", - "RoundUpNumbers", - "RoundNearestNumbers", - "UpperCase", - "LowerCase", - "ConcatStrings", - "Contains", - "BeginsWith", - "NumberToString", - "ParseNumber", - "FetchExchangeRate", - "FetchCurrencyDecimalPlaces", - FetchSingleCurrencyPortalCurrency, - "DatedExchangeRate", - "PipelineProbability", - "MaxNumbers", - "MinNumbers", - "LessThan", - "LessThanOrEqual", - "MoreThan", - "MoreThanOrEqual", - "NumberEquals", - "StringEquals", - "IsPipelineStageClosed", - "Not", - "Date", - "Month", - "Year", - Now, - "TimeBetween", - "TimeBetweenSkipWeekends", - "PeriodToMonths", - "PeriodToWeeks", - "And", - "Or", - "Xor", - "IfString", - "IfNumber", - "IfBoolean", - "IsPresent", - "HasEmailReply", - "HasPlainTextEmailReply", - "ExtractMostRecentEmailReplyHTML", - "ExtractMostRecentEmailReplyText", - "ExtractMostRecentPlainTextEmailReply", - "SetContainsString", - IsEngagementType, - "FormatFullName", - "FormatPhoneNumber", - "FormatSearchablePhoneNumber", - "AbsoluteValue", - "SquareRoot", - "Power", - "Substring", - Euler, - "StringLength", - "IsBlank", - "AddTime", - "SubtractTime", - ], - ) -else: - Input: TypeAlias = Union[ - ConstantBoolean, - ConstantNumber, - ConstantString, - BooleanPropertyVariable, - StringPropertyVariable, - NumberPropertyVariable, - TimestampOfPropertyVariable, - BooleanTargetPropertyVariable, - StringTargetPropertyVariable, - NumberTargetPropertyVariable, - TimestampOfTargetPropertyVariable, - "AddNumbers", - "SubtractNumbers", - "MultiplyNumbers", - "DivideNumbers", - "RoundDownNumbers", - "RoundUpNumbers", - "RoundNearestNumbers", - "UpperCase", - "LowerCase", - "ConcatStrings", - "Contains", - "BeginsWith", - "NumberToString", - "ParseNumber", - "FetchExchangeRate", - "FetchCurrencyDecimalPlaces", - FetchSingleCurrencyPortalCurrency, - "DatedExchangeRate", - "PipelineProbability", - "MaxNumbers", - "MinNumbers", - "LessThan", - "LessThanOrEqual", - "MoreThan", - "MoreThanOrEqual", - "NumberEquals", - "StringEquals", - "IsPipelineStageClosed", - "Not", - "Date", - "Month", - "Year", - Now, - "TimeBetween", - "TimeBetweenSkipWeekends", - "PeriodToMonths", - "PeriodToWeeks", - "And", - "Or", - "Xor", - "IfString", - "IfNumber", - "IfBoolean", - "IsPresent", - "HasEmailReply", - "HasPlainTextEmailReply", - "ExtractMostRecentEmailReplyHTML", - "ExtractMostRecentEmailReplyText", - "ExtractMostRecentPlainTextEmailReply", - "SetContainsString", - IsEngagementType, - "FormatFullName", - "FormatPhoneNumber", - "FormatSearchablePhoneNumber", - "AbsoluteValue", - "SquareRoot", - "Power", - "Substring", - Euler, - "StringLength", - "IsBlank", - "AddTime", - "SubtractTime", - ] - - -class AddNumbers(BaseModel): - enclosed_in_parentheses: bool = FieldInfo(alias="enclosedInParentheses") - - operator: Literal["ADD_NUMBERS"] - - inputs: Optional[List[Input]] = None - - property_name: Optional[str] = FieldInfo(alias="propertyName", default=None) - - value: Optional[float] = None - - -from .or_ import Or -from .xor import Xor -from .and_ import And -from .date import Date -from .not_ import Not -from .year import Year -from .month import Month -from .power import Power -from .add_time import AddTime -from .contains import Contains -from .is_blank import IsBlank -from .if_number import IfNumber -from .if_string import IfString -from .less_than import LessThan -from .more_than import MoreThan -from .substring import Substring -from .if_boolean import IfBoolean -from .is_present import IsPresent -from .lower_case import LowerCase -from .upper_case import UpperCase -from .begins_with import BeginsWith -from .max_numbers import MaxNumbers -from .min_numbers import MinNumbers -from .square_root import SquareRoot -from .parse_number import ParseNumber -from .time_between import TimeBetween -from .number_equals import NumberEquals -from .string_equals import StringEquals -from .string_length import StringLength -from .subtract_time import SubtractTime -from .absolute_value import AbsoluteValue -from .concat_strings import ConcatStrings -from .divide_numbers import DivideNumbers -from .has_email_reply import HasEmailReply -from .period_to_weeks import PeriodToWeeks -from .format_full_name import FormatFullName -from .multiply_numbers import MultiplyNumbers -from .number_to_string import NumberToString -from .period_to_months import PeriodToMonths -from .round_up_numbers import RoundUpNumbers -from .subtract_numbers import SubtractNumbers -from .less_than_or_equal import LessThanOrEqual -from .more_than_or_equal import MoreThanOrEqual -from .round_down_numbers import RoundDownNumbers -from .dated_exchange_rate import DatedExchangeRate -from .fetch_exchange_rate import FetchExchangeRate -from .format_phone_number import FormatPhoneNumber -from .set_contains_string import SetContainsString -from .pipeline_probability import PipelineProbability -from .round_nearest_numbers import RoundNearestNumbers -from .is_pipeline_stage_closed import IsPipelineStageClosed -from .has_plain_text_email_reply import HasPlainTextEmailReply -from .time_between_skip_weekends import TimeBetweenSkipWeekends -from .fetch_currency_decimal_places import FetchCurrencyDecimalPlaces -from .format_searchable_phone_number import FormatSearchablePhoneNumber -from .extract_most_recent_email_reply_html import ExtractMostRecentEmailReplyHTML -from .extract_most_recent_email_reply_text import ExtractMostRecentEmailReplyText -from .extract_most_recent_plain_text_email_reply import ExtractMostRecentPlainTextEmailReply diff --git a/src/hubspot_sdk/types/cms/add_time.py b/src/hubspot_sdk/types/cms/add_time.py deleted file mode 100644 index 437a7c2c..00000000 --- a/src/hubspot_sdk/types/cms/add_time.py +++ /dev/null @@ -1,416 +0,0 @@ -# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. - -from __future__ import annotations - -from typing import TYPE_CHECKING, List, Union, Optional -from typing_extensions import Literal, TypeAlias, TypeAliasType - -from pydantic import Field as FieldInfo - -from .now import Now -from .euler import Euler -from ..._compat import PYDANTIC_V1 -from ..._models import BaseModel -from .constant_number import ConstantNumber -from .constant_string import ConstantString -from .constant_boolean import ConstantBoolean -from .is_engagement_type import IsEngagementType -from .number_property_variable import NumberPropertyVariable -from .string_property_variable import StringPropertyVariable -from .boolean_property_variable import BooleanPropertyVariable -from .timestamp_of_property_variable import TimestampOfPropertyVariable -from .number_target_property_variable import NumberTargetPropertyVariable -from .string_target_property_variable import StringTargetPropertyVariable -from .boolean_target_property_variable import BooleanTargetPropertyVariable -from .fetch_single_currency_portal_currency import FetchSingleCurrencyPortalCurrency -from .timestamp_of_target_property_variable import TimestampOfTargetPropertyVariable - -__all__ = ["AddTime", "StringToCheck", "Input"] - -if TYPE_CHECKING or not PYDANTIC_V1: - StringToCheck = TypeAliasType( - "StringToCheck", - Union[ - ConstantBoolean, - ConstantNumber, - ConstantString, - BooleanPropertyVariable, - StringPropertyVariable, - NumberPropertyVariable, - TimestampOfPropertyVariable, - BooleanTargetPropertyVariable, - StringTargetPropertyVariable, - NumberTargetPropertyVariable, - TimestampOfTargetPropertyVariable, - "AddNumbers", - "SubtractNumbers", - "MultiplyNumbers", - "DivideNumbers", - "RoundDownNumbers", - "RoundUpNumbers", - "RoundNearestNumbers", - "UpperCase", - "LowerCase", - "ConcatStrings", - "Contains", - "BeginsWith", - "NumberToString", - "ParseNumber", - "FetchExchangeRate", - "FetchCurrencyDecimalPlaces", - FetchSingleCurrencyPortalCurrency, - "DatedExchangeRate", - "PipelineProbability", - "MaxNumbers", - "MinNumbers", - "LessThan", - "LessThanOrEqual", - "MoreThan", - "MoreThanOrEqual", - "NumberEquals", - "StringEquals", - "IsPipelineStageClosed", - "Not", - "Date", - "Month", - "Year", - Now, - "TimeBetween", - "TimeBetweenSkipWeekends", - "PeriodToMonths", - "PeriodToWeeks", - "And", - "Or", - "Xor", - "IfString", - "IfNumber", - "IfBoolean", - "IsPresent", - "HasEmailReply", - "HasPlainTextEmailReply", - "ExtractMostRecentEmailReplyHTML", - "ExtractMostRecentEmailReplyText", - "ExtractMostRecentPlainTextEmailReply", - "SetContainsString", - IsEngagementType, - "FormatFullName", - "FormatPhoneNumber", - "FormatSearchablePhoneNumber", - "AbsoluteValue", - "SquareRoot", - "Power", - "Substring", - Euler, - "StringLength", - "IsBlank", - "AddTime", - "SubtractTime", - ], - ) -else: - StringToCheck: TypeAlias = Union[ - ConstantBoolean, - ConstantNumber, - ConstantString, - BooleanPropertyVariable, - StringPropertyVariable, - NumberPropertyVariable, - TimestampOfPropertyVariable, - BooleanTargetPropertyVariable, - StringTargetPropertyVariable, - NumberTargetPropertyVariable, - TimestampOfTargetPropertyVariable, - "AddNumbers", - "SubtractNumbers", - "MultiplyNumbers", - "DivideNumbers", - "RoundDownNumbers", - "RoundUpNumbers", - "RoundNearestNumbers", - "UpperCase", - "LowerCase", - "ConcatStrings", - "Contains", - "BeginsWith", - "NumberToString", - "ParseNumber", - "FetchExchangeRate", - "FetchCurrencyDecimalPlaces", - FetchSingleCurrencyPortalCurrency, - "DatedExchangeRate", - "PipelineProbability", - "MaxNumbers", - "MinNumbers", - "LessThan", - "LessThanOrEqual", - "MoreThan", - "MoreThanOrEqual", - "NumberEquals", - "StringEquals", - "IsPipelineStageClosed", - "Not", - "Date", - "Month", - "Year", - Now, - "TimeBetween", - "TimeBetweenSkipWeekends", - "PeriodToMonths", - "PeriodToWeeks", - "And", - "Or", - "Xor", - "IfString", - "IfNumber", - "IfBoolean", - "IsPresent", - "HasEmailReply", - "HasPlainTextEmailReply", - "ExtractMostRecentEmailReplyHTML", - "ExtractMostRecentEmailReplyText", - "ExtractMostRecentPlainTextEmailReply", - "SetContainsString", - IsEngagementType, - "FormatFullName", - "FormatPhoneNumber", - "FormatSearchablePhoneNumber", - "AbsoluteValue", - "SquareRoot", - "Power", - "Substring", - Euler, - "StringLength", - "IsBlank", - "AddTime", - "SubtractTime", - ] - -if TYPE_CHECKING or not PYDANTIC_V1: - Input = TypeAliasType( - "Input", - Union[ - ConstantBoolean, - ConstantNumber, - ConstantString, - BooleanPropertyVariable, - StringPropertyVariable, - NumberPropertyVariable, - TimestampOfPropertyVariable, - BooleanTargetPropertyVariable, - StringTargetPropertyVariable, - NumberTargetPropertyVariable, - TimestampOfTargetPropertyVariable, - "AddNumbers", - "SubtractNumbers", - "MultiplyNumbers", - "DivideNumbers", - "RoundDownNumbers", - "RoundUpNumbers", - "RoundNearestNumbers", - "UpperCase", - "LowerCase", - "ConcatStrings", - "Contains", - "BeginsWith", - "NumberToString", - "ParseNumber", - "FetchExchangeRate", - "FetchCurrencyDecimalPlaces", - FetchSingleCurrencyPortalCurrency, - "DatedExchangeRate", - "PipelineProbability", - "MaxNumbers", - "MinNumbers", - "LessThan", - "LessThanOrEqual", - "MoreThan", - "MoreThanOrEqual", - "NumberEquals", - "StringEquals", - "IsPipelineStageClosed", - "Not", - "Date", - "Month", - "Year", - Now, - "TimeBetween", - "TimeBetweenSkipWeekends", - "PeriodToMonths", - "PeriodToWeeks", - "And", - "Or", - "Xor", - "IfString", - "IfNumber", - "IfBoolean", - "IsPresent", - "HasEmailReply", - "HasPlainTextEmailReply", - "ExtractMostRecentEmailReplyHTML", - "ExtractMostRecentEmailReplyText", - "ExtractMostRecentPlainTextEmailReply", - "SetContainsString", - IsEngagementType, - "FormatFullName", - "FormatPhoneNumber", - "FormatSearchablePhoneNumber", - "AbsoluteValue", - "SquareRoot", - "Power", - "Substring", - Euler, - "StringLength", - "IsBlank", - "AddTime", - "SubtractTime", - ], - ) -else: - Input: TypeAlias = Union[ - ConstantBoolean, - ConstantNumber, - ConstantString, - BooleanPropertyVariable, - StringPropertyVariable, - NumberPropertyVariable, - TimestampOfPropertyVariable, - BooleanTargetPropertyVariable, - StringTargetPropertyVariable, - NumberTargetPropertyVariable, - TimestampOfTargetPropertyVariable, - "AddNumbers", - "SubtractNumbers", - "MultiplyNumbers", - "DivideNumbers", - "RoundDownNumbers", - "RoundUpNumbers", - "RoundNearestNumbers", - "UpperCase", - "LowerCase", - "ConcatStrings", - "Contains", - "BeginsWith", - "NumberToString", - "ParseNumber", - "FetchExchangeRate", - "FetchCurrencyDecimalPlaces", - FetchSingleCurrencyPortalCurrency, - "DatedExchangeRate", - "PipelineProbability", - "MaxNumbers", - "MinNumbers", - "LessThan", - "LessThanOrEqual", - "MoreThan", - "MoreThanOrEqual", - "NumberEquals", - "StringEquals", - "IsPipelineStageClosed", - "Not", - "Date", - "Month", - "Year", - Now, - "TimeBetween", - "TimeBetweenSkipWeekends", - "PeriodToMonths", - "PeriodToWeeks", - "And", - "Or", - "Xor", - "IfString", - "IfNumber", - "IfBoolean", - "IsPresent", - "HasEmailReply", - "HasPlainTextEmailReply", - "ExtractMostRecentEmailReplyHTML", - "ExtractMostRecentEmailReplyText", - "ExtractMostRecentPlainTextEmailReply", - "SetContainsString", - IsEngagementType, - "FormatFullName", - "FormatPhoneNumber", - "FormatSearchablePhoneNumber", - "AbsoluteValue", - "SquareRoot", - "Power", - "Substring", - Euler, - "StringLength", - "IsBlank", - "AddTime", - "SubtractTime", - ] - - -class AddTime(BaseModel): - operator: Literal["ADD_TIME"] - - string_to_check: StringToCheck = FieldInfo(alias="stringToCheck") - - inputs: Optional[List[Input]] = None - - property_name: Optional[str] = FieldInfo(alias="propertyName", default=None) - - value: Optional[float] = None - - -from .or_ import Or -from .xor import Xor -from .and_ import And -from .date import Date -from .not_ import Not -from .year import Year -from .month import Month -from .power import Power -from .contains import Contains -from .is_blank import IsBlank -from .if_number import IfNumber -from .if_string import IfString -from .less_than import LessThan -from .more_than import MoreThan -from .substring import Substring -from .if_boolean import IfBoolean -from .is_present import IsPresent -from .lower_case import LowerCase -from .upper_case import UpperCase -from .add_numbers import AddNumbers -from .begins_with import BeginsWith -from .max_numbers import MaxNumbers -from .min_numbers import MinNumbers -from .square_root import SquareRoot -from .parse_number import ParseNumber -from .time_between import TimeBetween -from .number_equals import NumberEquals -from .string_equals import StringEquals -from .string_length import StringLength -from .subtract_time import SubtractTime -from .absolute_value import AbsoluteValue -from .concat_strings import ConcatStrings -from .divide_numbers import DivideNumbers -from .has_email_reply import HasEmailReply -from .period_to_weeks import PeriodToWeeks -from .format_full_name import FormatFullName -from .multiply_numbers import MultiplyNumbers -from .number_to_string import NumberToString -from .period_to_months import PeriodToMonths -from .round_up_numbers import RoundUpNumbers -from .subtract_numbers import SubtractNumbers -from .less_than_or_equal import LessThanOrEqual -from .more_than_or_equal import MoreThanOrEqual -from .round_down_numbers import RoundDownNumbers -from .dated_exchange_rate import DatedExchangeRate -from .fetch_exchange_rate import FetchExchangeRate -from .format_phone_number import FormatPhoneNumber -from .set_contains_string import SetContainsString -from .pipeline_probability import PipelineProbability -from .round_nearest_numbers import RoundNearestNumbers -from .is_pipeline_stage_closed import IsPipelineStageClosed -from .has_plain_text_email_reply import HasPlainTextEmailReply -from .time_between_skip_weekends import TimeBetweenSkipWeekends -from .fetch_currency_decimal_places import FetchCurrencyDecimalPlaces -from .format_searchable_phone_number import FormatSearchablePhoneNumber -from .extract_most_recent_email_reply_html import ExtractMostRecentEmailReplyHTML -from .extract_most_recent_email_reply_text import ExtractMostRecentEmailReplyText -from .extract_most_recent_plain_text_email_reply import ExtractMostRecentPlainTextEmailReply diff --git a/src/hubspot_sdk/types/cms/and_.py b/src/hubspot_sdk/types/cms/and_.py deleted file mode 100644 index 33dcb5c9..00000000 --- a/src/hubspot_sdk/types/cms/and_.py +++ /dev/null @@ -1,258 +0,0 @@ -# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. - -from __future__ import annotations - -from typing import TYPE_CHECKING, List, Union, Optional -from typing_extensions import Literal, TypeAlias, TypeAliasType - -from pydantic import Field as FieldInfo - -from .now import Now -from .euler import Euler -from ..._compat import PYDANTIC_V1 -from ..._models import BaseModel -from .constant_number import ConstantNumber -from .constant_string import ConstantString -from .constant_boolean import ConstantBoolean -from .is_engagement_type import IsEngagementType -from .number_property_variable import NumberPropertyVariable -from .string_property_variable import StringPropertyVariable -from .boolean_property_variable import BooleanPropertyVariable -from .timestamp_of_property_variable import TimestampOfPropertyVariable -from .number_target_property_variable import NumberTargetPropertyVariable -from .string_target_property_variable import StringTargetPropertyVariable -from .boolean_target_property_variable import BooleanTargetPropertyVariable -from .fetch_single_currency_portal_currency import FetchSingleCurrencyPortalCurrency -from .timestamp_of_target_property_variable import TimestampOfTargetPropertyVariable - -__all__ = ["And", "Input"] - -if TYPE_CHECKING or not PYDANTIC_V1: - Input = TypeAliasType( - "Input", - Union[ - ConstantBoolean, - ConstantNumber, - ConstantString, - BooleanPropertyVariable, - StringPropertyVariable, - NumberPropertyVariable, - TimestampOfPropertyVariable, - BooleanTargetPropertyVariable, - StringTargetPropertyVariable, - NumberTargetPropertyVariable, - TimestampOfTargetPropertyVariable, - "AddNumbers", - "SubtractNumbers", - "MultiplyNumbers", - "DivideNumbers", - "RoundDownNumbers", - "RoundUpNumbers", - "RoundNearestNumbers", - "UpperCase", - "LowerCase", - "ConcatStrings", - "Contains", - "BeginsWith", - "NumberToString", - "ParseNumber", - "FetchExchangeRate", - "FetchCurrencyDecimalPlaces", - FetchSingleCurrencyPortalCurrency, - "DatedExchangeRate", - "PipelineProbability", - "MaxNumbers", - "MinNumbers", - "LessThan", - "LessThanOrEqual", - "MoreThan", - "MoreThanOrEqual", - "NumberEquals", - "StringEquals", - "IsPipelineStageClosed", - "Not", - "Date", - "Month", - "Year", - Now, - "TimeBetween", - "TimeBetweenSkipWeekends", - "PeriodToMonths", - "PeriodToWeeks", - "And", - "Or", - "Xor", - "IfString", - "IfNumber", - "IfBoolean", - "IsPresent", - "HasEmailReply", - "HasPlainTextEmailReply", - "ExtractMostRecentEmailReplyHTML", - "ExtractMostRecentEmailReplyText", - "ExtractMostRecentPlainTextEmailReply", - "SetContainsString", - IsEngagementType, - "FormatFullName", - "FormatPhoneNumber", - "FormatSearchablePhoneNumber", - "AbsoluteValue", - "SquareRoot", - "Power", - "Substring", - Euler, - "StringLength", - "IsBlank", - "AddTime", - "SubtractTime", - ], - ) -else: - Input: TypeAlias = Union[ - ConstantBoolean, - ConstantNumber, - ConstantString, - BooleanPropertyVariable, - StringPropertyVariable, - NumberPropertyVariable, - TimestampOfPropertyVariable, - BooleanTargetPropertyVariable, - StringTargetPropertyVariable, - NumberTargetPropertyVariable, - TimestampOfTargetPropertyVariable, - "AddNumbers", - "SubtractNumbers", - "MultiplyNumbers", - "DivideNumbers", - "RoundDownNumbers", - "RoundUpNumbers", - "RoundNearestNumbers", - "UpperCase", - "LowerCase", - "ConcatStrings", - "Contains", - "BeginsWith", - "NumberToString", - "ParseNumber", - "FetchExchangeRate", - "FetchCurrencyDecimalPlaces", - FetchSingleCurrencyPortalCurrency, - "DatedExchangeRate", - "PipelineProbability", - "MaxNumbers", - "MinNumbers", - "LessThan", - "LessThanOrEqual", - "MoreThan", - "MoreThanOrEqual", - "NumberEquals", - "StringEquals", - "IsPipelineStageClosed", - "Not", - "Date", - "Month", - "Year", - Now, - "TimeBetween", - "TimeBetweenSkipWeekends", - "PeriodToMonths", - "PeriodToWeeks", - "And", - "Or", - "Xor", - "IfString", - "IfNumber", - "IfBoolean", - "IsPresent", - "HasEmailReply", - "HasPlainTextEmailReply", - "ExtractMostRecentEmailReplyHTML", - "ExtractMostRecentEmailReplyText", - "ExtractMostRecentPlainTextEmailReply", - "SetContainsString", - IsEngagementType, - "FormatFullName", - "FormatPhoneNumber", - "FormatSearchablePhoneNumber", - "AbsoluteValue", - "SquareRoot", - "Power", - "Substring", - Euler, - "StringLength", - "IsBlank", - "AddTime", - "SubtractTime", - ] - - -class And(BaseModel): - enclosed_in_parentheses: bool = FieldInfo(alias="enclosedInParentheses") - - operator: Literal["AND"] - - inputs: Optional[List[Input]] = None - - property_name: Optional[str] = FieldInfo(alias="propertyName", default=None) - - value: Optional[bool] = None - - -from .or_ import Or -from .xor import Xor -from .date import Date -from .not_ import Not -from .year import Year -from .month import Month -from .power import Power -from .add_time import AddTime -from .contains import Contains -from .is_blank import IsBlank -from .if_number import IfNumber -from .if_string import IfString -from .less_than import LessThan -from .more_than import MoreThan -from .substring import Substring -from .if_boolean import IfBoolean -from .is_present import IsPresent -from .lower_case import LowerCase -from .upper_case import UpperCase -from .add_numbers import AddNumbers -from .begins_with import BeginsWith -from .max_numbers import MaxNumbers -from .min_numbers import MinNumbers -from .square_root import SquareRoot -from .parse_number import ParseNumber -from .time_between import TimeBetween -from .number_equals import NumberEquals -from .string_equals import StringEquals -from .string_length import StringLength -from .subtract_time import SubtractTime -from .absolute_value import AbsoluteValue -from .concat_strings import ConcatStrings -from .divide_numbers import DivideNumbers -from .has_email_reply import HasEmailReply -from .period_to_weeks import PeriodToWeeks -from .format_full_name import FormatFullName -from .multiply_numbers import MultiplyNumbers -from .number_to_string import NumberToString -from .period_to_months import PeriodToMonths -from .round_up_numbers import RoundUpNumbers -from .subtract_numbers import SubtractNumbers -from .less_than_or_equal import LessThanOrEqual -from .more_than_or_equal import MoreThanOrEqual -from .round_down_numbers import RoundDownNumbers -from .dated_exchange_rate import DatedExchangeRate -from .fetch_exchange_rate import FetchExchangeRate -from .format_phone_number import FormatPhoneNumber -from .set_contains_string import SetContainsString -from .pipeline_probability import PipelineProbability -from .round_nearest_numbers import RoundNearestNumbers -from .is_pipeline_stage_closed import IsPipelineStageClosed -from .has_plain_text_email_reply import HasPlainTextEmailReply -from .time_between_skip_weekends import TimeBetweenSkipWeekends -from .fetch_currency_decimal_places import FetchCurrencyDecimalPlaces -from .format_searchable_phone_number import FormatSearchablePhoneNumber -from .extract_most_recent_email_reply_html import ExtractMostRecentEmailReplyHTML -from .extract_most_recent_email_reply_text import ExtractMostRecentEmailReplyText -from .extract_most_recent_plain_text_email_reply import ExtractMostRecentPlainTextEmailReply diff --git a/src/hubspot_sdk/types/cms/asset_file_metadata.py b/src/hubspot_sdk/types/cms/asset_file_metadata.py deleted file mode 100644 index 1298a9f4..00000000 --- a/src/hubspot_sdk/types/cms/asset_file_metadata.py +++ /dev/null @@ -1,38 +0,0 @@ -# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. - -from typing import List, Optional - -from pydantic import Field as FieldInfo - -from ..._models import BaseModel - -__all__ = ["AssetFileMetadata"] - - -class AssetFileMetadata(BaseModel): - id: str - """The path of the file in the CMS Developer File System.""" - - created_at: int = FieldInfo(alias="createdAt") - """Timestamp of when the object was first created.""" - - folder: bool - """Determines whether or not this path points to a folder.""" - - name: str - """The name of the file.""" - - updated_at: int = FieldInfo(alias="updatedAt") - """Timestamp of when the object was last updated.""" - - archived_at: Optional[int] = FieldInfo(alias="archivedAt", default=None) - """Timestamp of when the object was archived (deleted).""" - - children: Optional[List[str]] = None - """ - If the object is a folder, contains the filenames of the files within the - folder. - """ - - hash: Optional[str] = None - """A unique identifier for the file's content, used to verify data integrity.""" diff --git a/src/hubspot_sdk/types/cms/batch_response_property.py b/src/hubspot_sdk/types/cms/batch_response_property.py index 8a11dac9..c52ade37 100644 --- a/src/hubspot_sdk/types/cms/batch_response_property.py +++ b/src/hubspot_sdk/types/cms/batch_response_property.py @@ -6,8 +6,8 @@ from pydantic import Field as FieldInfo -from .property import Property from ..._models import BaseModel +from .media_bridge_property import MediaBridgeProperty __all__ = ["BatchResponseProperty"] @@ -15,7 +15,7 @@ class BatchResponseProperty(BaseModel): completed_at: datetime = FieldInfo(alias="completedAt") - results: List[Property] + results: List[MediaBridgeProperty] started_at: datetime = FieldInfo(alias="startedAt") diff --git a/src/hubspot_sdk/types/cms/begins_with.py b/src/hubspot_sdk/types/cms/begins_with.py deleted file mode 100644 index 612c9cc4..00000000 --- a/src/hubspot_sdk/types/cms/begins_with.py +++ /dev/null @@ -1,416 +0,0 @@ -# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. - -from __future__ import annotations - -from typing import TYPE_CHECKING, List, Union, Optional -from typing_extensions import Literal, TypeAlias, TypeAliasType - -from pydantic import Field as FieldInfo - -from .now import Now -from .euler import Euler -from ..._compat import PYDANTIC_V1 -from ..._models import BaseModel -from .constant_number import ConstantNumber -from .constant_string import ConstantString -from .constant_boolean import ConstantBoolean -from .is_engagement_type import IsEngagementType -from .number_property_variable import NumberPropertyVariable -from .string_property_variable import StringPropertyVariable -from .boolean_property_variable import BooleanPropertyVariable -from .timestamp_of_property_variable import TimestampOfPropertyVariable -from .number_target_property_variable import NumberTargetPropertyVariable -from .string_target_property_variable import StringTargetPropertyVariable -from .boolean_target_property_variable import BooleanTargetPropertyVariable -from .fetch_single_currency_portal_currency import FetchSingleCurrencyPortalCurrency -from .timestamp_of_target_property_variable import TimestampOfTargetPropertyVariable - -__all__ = ["BeginsWith", "StringToCheck", "Input"] - -if TYPE_CHECKING or not PYDANTIC_V1: - StringToCheck = TypeAliasType( - "StringToCheck", - Union[ - ConstantBoolean, - ConstantNumber, - ConstantString, - BooleanPropertyVariable, - StringPropertyVariable, - NumberPropertyVariable, - TimestampOfPropertyVariable, - BooleanTargetPropertyVariable, - StringTargetPropertyVariable, - NumberTargetPropertyVariable, - TimestampOfTargetPropertyVariable, - "AddNumbers", - "SubtractNumbers", - "MultiplyNumbers", - "DivideNumbers", - "RoundDownNumbers", - "RoundUpNumbers", - "RoundNearestNumbers", - "UpperCase", - "LowerCase", - "ConcatStrings", - "Contains", - "BeginsWith", - "NumberToString", - "ParseNumber", - "FetchExchangeRate", - "FetchCurrencyDecimalPlaces", - FetchSingleCurrencyPortalCurrency, - "DatedExchangeRate", - "PipelineProbability", - "MaxNumbers", - "MinNumbers", - "LessThan", - "LessThanOrEqual", - "MoreThan", - "MoreThanOrEqual", - "NumberEquals", - "StringEquals", - "IsPipelineStageClosed", - "Not", - "Date", - "Month", - "Year", - Now, - "TimeBetween", - "TimeBetweenSkipWeekends", - "PeriodToMonths", - "PeriodToWeeks", - "And", - "Or", - "Xor", - "IfString", - "IfNumber", - "IfBoolean", - "IsPresent", - "HasEmailReply", - "HasPlainTextEmailReply", - "ExtractMostRecentEmailReplyHTML", - "ExtractMostRecentEmailReplyText", - "ExtractMostRecentPlainTextEmailReply", - "SetContainsString", - IsEngagementType, - "FormatFullName", - "FormatPhoneNumber", - "FormatSearchablePhoneNumber", - "AbsoluteValue", - "SquareRoot", - "Power", - "Substring", - Euler, - "StringLength", - "IsBlank", - "AddTime", - "SubtractTime", - ], - ) -else: - StringToCheck: TypeAlias = Union[ - ConstantBoolean, - ConstantNumber, - ConstantString, - BooleanPropertyVariable, - StringPropertyVariable, - NumberPropertyVariable, - TimestampOfPropertyVariable, - BooleanTargetPropertyVariable, - StringTargetPropertyVariable, - NumberTargetPropertyVariable, - TimestampOfTargetPropertyVariable, - "AddNumbers", - "SubtractNumbers", - "MultiplyNumbers", - "DivideNumbers", - "RoundDownNumbers", - "RoundUpNumbers", - "RoundNearestNumbers", - "UpperCase", - "LowerCase", - "ConcatStrings", - "Contains", - "BeginsWith", - "NumberToString", - "ParseNumber", - "FetchExchangeRate", - "FetchCurrencyDecimalPlaces", - FetchSingleCurrencyPortalCurrency, - "DatedExchangeRate", - "PipelineProbability", - "MaxNumbers", - "MinNumbers", - "LessThan", - "LessThanOrEqual", - "MoreThan", - "MoreThanOrEqual", - "NumberEquals", - "StringEquals", - "IsPipelineStageClosed", - "Not", - "Date", - "Month", - "Year", - Now, - "TimeBetween", - "TimeBetweenSkipWeekends", - "PeriodToMonths", - "PeriodToWeeks", - "And", - "Or", - "Xor", - "IfString", - "IfNumber", - "IfBoolean", - "IsPresent", - "HasEmailReply", - "HasPlainTextEmailReply", - "ExtractMostRecentEmailReplyHTML", - "ExtractMostRecentEmailReplyText", - "ExtractMostRecentPlainTextEmailReply", - "SetContainsString", - IsEngagementType, - "FormatFullName", - "FormatPhoneNumber", - "FormatSearchablePhoneNumber", - "AbsoluteValue", - "SquareRoot", - "Power", - "Substring", - Euler, - "StringLength", - "IsBlank", - "AddTime", - "SubtractTime", - ] - -if TYPE_CHECKING or not PYDANTIC_V1: - Input = TypeAliasType( - "Input", - Union[ - ConstantBoolean, - ConstantNumber, - ConstantString, - BooleanPropertyVariable, - StringPropertyVariable, - NumberPropertyVariable, - TimestampOfPropertyVariable, - BooleanTargetPropertyVariable, - StringTargetPropertyVariable, - NumberTargetPropertyVariable, - TimestampOfTargetPropertyVariable, - "AddNumbers", - "SubtractNumbers", - "MultiplyNumbers", - "DivideNumbers", - "RoundDownNumbers", - "RoundUpNumbers", - "RoundNearestNumbers", - "UpperCase", - "LowerCase", - "ConcatStrings", - "Contains", - "BeginsWith", - "NumberToString", - "ParseNumber", - "FetchExchangeRate", - "FetchCurrencyDecimalPlaces", - FetchSingleCurrencyPortalCurrency, - "DatedExchangeRate", - "PipelineProbability", - "MaxNumbers", - "MinNumbers", - "LessThan", - "LessThanOrEqual", - "MoreThan", - "MoreThanOrEqual", - "NumberEquals", - "StringEquals", - "IsPipelineStageClosed", - "Not", - "Date", - "Month", - "Year", - Now, - "TimeBetween", - "TimeBetweenSkipWeekends", - "PeriodToMonths", - "PeriodToWeeks", - "And", - "Or", - "Xor", - "IfString", - "IfNumber", - "IfBoolean", - "IsPresent", - "HasEmailReply", - "HasPlainTextEmailReply", - "ExtractMostRecentEmailReplyHTML", - "ExtractMostRecentEmailReplyText", - "ExtractMostRecentPlainTextEmailReply", - "SetContainsString", - IsEngagementType, - "FormatFullName", - "FormatPhoneNumber", - "FormatSearchablePhoneNumber", - "AbsoluteValue", - "SquareRoot", - "Power", - "Substring", - Euler, - "StringLength", - "IsBlank", - "AddTime", - "SubtractTime", - ], - ) -else: - Input: TypeAlias = Union[ - ConstantBoolean, - ConstantNumber, - ConstantString, - BooleanPropertyVariable, - StringPropertyVariable, - NumberPropertyVariable, - TimestampOfPropertyVariable, - BooleanTargetPropertyVariable, - StringTargetPropertyVariable, - NumberTargetPropertyVariable, - TimestampOfTargetPropertyVariable, - "AddNumbers", - "SubtractNumbers", - "MultiplyNumbers", - "DivideNumbers", - "RoundDownNumbers", - "RoundUpNumbers", - "RoundNearestNumbers", - "UpperCase", - "LowerCase", - "ConcatStrings", - "Contains", - "BeginsWith", - "NumberToString", - "ParseNumber", - "FetchExchangeRate", - "FetchCurrencyDecimalPlaces", - FetchSingleCurrencyPortalCurrency, - "DatedExchangeRate", - "PipelineProbability", - "MaxNumbers", - "MinNumbers", - "LessThan", - "LessThanOrEqual", - "MoreThan", - "MoreThanOrEqual", - "NumberEquals", - "StringEquals", - "IsPipelineStageClosed", - "Not", - "Date", - "Month", - "Year", - Now, - "TimeBetween", - "TimeBetweenSkipWeekends", - "PeriodToMonths", - "PeriodToWeeks", - "And", - "Or", - "Xor", - "IfString", - "IfNumber", - "IfBoolean", - "IsPresent", - "HasEmailReply", - "HasPlainTextEmailReply", - "ExtractMostRecentEmailReplyHTML", - "ExtractMostRecentEmailReplyText", - "ExtractMostRecentPlainTextEmailReply", - "SetContainsString", - IsEngagementType, - "FormatFullName", - "FormatPhoneNumber", - "FormatSearchablePhoneNumber", - "AbsoluteValue", - "SquareRoot", - "Power", - "Substring", - Euler, - "StringLength", - "IsBlank", - "AddTime", - "SubtractTime", - ] - - -class BeginsWith(BaseModel): - operator: Literal["BEGINS_WITH"] - - string_to_check: StringToCheck = FieldInfo(alias="stringToCheck") - - inputs: Optional[List[Input]] = None - - property_name: Optional[str] = FieldInfo(alias="propertyName", default=None) - - value: Optional[bool] = None - - -from .or_ import Or -from .xor import Xor -from .and_ import And -from .date import Date -from .not_ import Not -from .year import Year -from .month import Month -from .power import Power -from .add_time import AddTime -from .contains import Contains -from .is_blank import IsBlank -from .if_number import IfNumber -from .if_string import IfString -from .less_than import LessThan -from .more_than import MoreThan -from .substring import Substring -from .if_boolean import IfBoolean -from .is_present import IsPresent -from .lower_case import LowerCase -from .upper_case import UpperCase -from .add_numbers import AddNumbers -from .max_numbers import MaxNumbers -from .min_numbers import MinNumbers -from .square_root import SquareRoot -from .parse_number import ParseNumber -from .time_between import TimeBetween -from .number_equals import NumberEquals -from .string_equals import StringEquals -from .string_length import StringLength -from .subtract_time import SubtractTime -from .absolute_value import AbsoluteValue -from .concat_strings import ConcatStrings -from .divide_numbers import DivideNumbers -from .has_email_reply import HasEmailReply -from .period_to_weeks import PeriodToWeeks -from .format_full_name import FormatFullName -from .multiply_numbers import MultiplyNumbers -from .number_to_string import NumberToString -from .period_to_months import PeriodToMonths -from .round_up_numbers import RoundUpNumbers -from .subtract_numbers import SubtractNumbers -from .less_than_or_equal import LessThanOrEqual -from .more_than_or_equal import MoreThanOrEqual -from .round_down_numbers import RoundDownNumbers -from .dated_exchange_rate import DatedExchangeRate -from .fetch_exchange_rate import FetchExchangeRate -from .format_phone_number import FormatPhoneNumber -from .set_contains_string import SetContainsString -from .pipeline_probability import PipelineProbability -from .round_nearest_numbers import RoundNearestNumbers -from .is_pipeline_stage_closed import IsPipelineStageClosed -from .has_plain_text_email_reply import HasPlainTextEmailReply -from .time_between_skip_weekends import TimeBetweenSkipWeekends -from .fetch_currency_decimal_places import FetchCurrencyDecimalPlaces -from .format_searchable_phone_number import FormatSearchablePhoneNumber -from .extract_most_recent_email_reply_html import ExtractMostRecentEmailReplyHTML -from .extract_most_recent_email_reply_text import ExtractMostRecentEmailReplyText -from .extract_most_recent_plain_text_email_reply import ExtractMostRecentPlainTextEmailReply diff --git a/src/hubspot_sdk/types/cms/boolean_property_variable.py b/src/hubspot_sdk/types/cms/boolean_property_variable.py deleted file mode 100644 index c5e6032d..00000000 --- a/src/hubspot_sdk/types/cms/boolean_property_variable.py +++ /dev/null @@ -1,18 +0,0 @@ -# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. - -from typing import Optional -from typing_extensions import Literal - -from pydantic import Field as FieldInfo - -from ..._models import BaseModel - -__all__ = ["BooleanPropertyVariable"] - - -class BooleanPropertyVariable(BaseModel): - operator: Literal["BOOLEAN_PROPERTY_VARIABLE"] - - property_name: Optional[str] = FieldInfo(alias="propertyName", default=None) - - value: Optional[bool] = None diff --git a/src/hubspot_sdk/types/cms/boolean_target_property_variable.py b/src/hubspot_sdk/types/cms/boolean_target_property_variable.py deleted file mode 100644 index 93ee9d12..00000000 --- a/src/hubspot_sdk/types/cms/boolean_target_property_variable.py +++ /dev/null @@ -1,18 +0,0 @@ -# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. - -from typing import Optional -from typing_extensions import Literal - -from pydantic import Field as FieldInfo - -from ..._models import BaseModel - -__all__ = ["BooleanTargetPropertyVariable"] - - -class BooleanTargetPropertyVariable(BaseModel): - operator: Literal["BOOLEAN_TARGET_PROPERTY_VARIABLE"] - - property_name: Optional[str] = FieldInfo(alias="propertyName", default=None) - - value: Optional[bool] = None diff --git a/src/hubspot_sdk/types/cms/bulk_integrator_object_creation_response.py b/src/hubspot_sdk/types/cms/bulk_integrator_object_creation_response.py index d7e82eb0..a8753770 100644 --- a/src/hubspot_sdk/types/cms/bulk_integrator_object_creation_response.py +++ b/src/hubspot_sdk/types/cms/bulk_integrator_object_creation_response.py @@ -1,18 +1,14 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from __future__ import annotations - from typing import Dict from pydantic import Field as FieldInfo from ..._models import BaseModel +from .integrator_object_creation_response import IntegratorObjectCreationResponse __all__ = ["BulkIntegratorObjectCreationResponse"] class BulkIntegratorObjectCreationResponse(BaseModel): - created_objects: Dict[str, "IntegratorObjectCreationResponse"] = FieldInfo(alias="createdObjects") - - -from .integrator_object_creation_response import IntegratorObjectCreationResponse + created_objects: Dict[str, IntegratorObjectCreationResponse] = FieldInfo(alias="createdObjects") diff --git a/src/hubspot_sdk/types/cms/column.py b/src/hubspot_sdk/types/cms/column.py index f6141e71..78e83e05 100644 --- a/src/hubspot_sdk/types/cms/column.py +++ b/src/hubspot_sdk/types/cms/column.py @@ -6,10 +6,10 @@ from pydantic import Field as FieldInfo -from .option import Option from ..._models import BaseModel from .foreign_id import ForeignID from .simple_user import SimpleUser +from .hubdb_option import HubdbOption __all__ = ["Column"] @@ -82,7 +82,7 @@ class Column(BaseModel): option_count: Optional[int] = FieldInfo(alias="optionCount", default=None) """Number of options available""" - options: Optional[List[Option]] = None + options: Optional[List[HubdbOption]] = None """Options to choose for select and multi-select columns""" updated_at: Optional[datetime] = FieldInfo(alias="updatedAt", default=None) diff --git a/src/hubspot_sdk/types/cms/column_request_param.py b/src/hubspot_sdk/types/cms/column_request_param.py index b67a7517..ef045599 100644 --- a/src/hubspot_sdk/types/cms/column_request_param.py +++ b/src/hubspot_sdk/types/cms/column_request_param.py @@ -6,7 +6,7 @@ from typing_extensions import Literal, Required, Annotated, TypedDict from ..._utils import PropertyInfo -from .option_param import OptionParam +from .hubdb_option_param import HubdbOptionParam __all__ = ["ColumnRequestParam"] @@ -21,7 +21,7 @@ class ColumnRequestParam(TypedDict, total=False): name: Required[str] """Name of the column""" - options: Required[Iterable[OptionParam]] + options: Required[Iterable[HubdbOptionParam]] """Options to choose for select and multi-select columns""" type: Required[ diff --git a/src/hubspot_sdk/types/cms/concat_strings.py b/src/hubspot_sdk/types/cms/concat_strings.py deleted file mode 100644 index 81dc0735..00000000 --- a/src/hubspot_sdk/types/cms/concat_strings.py +++ /dev/null @@ -1,256 +0,0 @@ -# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. - -from __future__ import annotations - -from typing import TYPE_CHECKING, List, Union, Optional -from typing_extensions import Literal, TypeAlias, TypeAliasType - -from pydantic import Field as FieldInfo - -from .now import Now -from .euler import Euler -from ..._compat import PYDANTIC_V1 -from ..._models import BaseModel -from .constant_number import ConstantNumber -from .constant_string import ConstantString -from .constant_boolean import ConstantBoolean -from .is_engagement_type import IsEngagementType -from .number_property_variable import NumberPropertyVariable -from .string_property_variable import StringPropertyVariable -from .boolean_property_variable import BooleanPropertyVariable -from .timestamp_of_property_variable import TimestampOfPropertyVariable -from .number_target_property_variable import NumberTargetPropertyVariable -from .string_target_property_variable import StringTargetPropertyVariable -from .boolean_target_property_variable import BooleanTargetPropertyVariable -from .fetch_single_currency_portal_currency import FetchSingleCurrencyPortalCurrency -from .timestamp_of_target_property_variable import TimestampOfTargetPropertyVariable - -__all__ = ["ConcatStrings", "Input"] - -if TYPE_CHECKING or not PYDANTIC_V1: - Input = TypeAliasType( - "Input", - Union[ - ConstantBoolean, - ConstantNumber, - ConstantString, - BooleanPropertyVariable, - StringPropertyVariable, - NumberPropertyVariable, - TimestampOfPropertyVariable, - BooleanTargetPropertyVariable, - StringTargetPropertyVariable, - NumberTargetPropertyVariable, - TimestampOfTargetPropertyVariable, - "AddNumbers", - "SubtractNumbers", - "MultiplyNumbers", - "DivideNumbers", - "RoundDownNumbers", - "RoundUpNumbers", - "RoundNearestNumbers", - "UpperCase", - "LowerCase", - "ConcatStrings", - "Contains", - "BeginsWith", - "NumberToString", - "ParseNumber", - "FetchExchangeRate", - "FetchCurrencyDecimalPlaces", - FetchSingleCurrencyPortalCurrency, - "DatedExchangeRate", - "PipelineProbability", - "MaxNumbers", - "MinNumbers", - "LessThan", - "LessThanOrEqual", - "MoreThan", - "MoreThanOrEqual", - "NumberEquals", - "StringEquals", - "IsPipelineStageClosed", - "Not", - "Date", - "Month", - "Year", - Now, - "TimeBetween", - "TimeBetweenSkipWeekends", - "PeriodToMonths", - "PeriodToWeeks", - "And", - "Or", - "Xor", - "IfString", - "IfNumber", - "IfBoolean", - "IsPresent", - "HasEmailReply", - "HasPlainTextEmailReply", - "ExtractMostRecentEmailReplyHTML", - "ExtractMostRecentEmailReplyText", - "ExtractMostRecentPlainTextEmailReply", - "SetContainsString", - IsEngagementType, - "FormatFullName", - "FormatPhoneNumber", - "FormatSearchablePhoneNumber", - "AbsoluteValue", - "SquareRoot", - "Power", - "Substring", - Euler, - "StringLength", - "IsBlank", - "AddTime", - "SubtractTime", - ], - ) -else: - Input: TypeAlias = Union[ - ConstantBoolean, - ConstantNumber, - ConstantString, - BooleanPropertyVariable, - StringPropertyVariable, - NumberPropertyVariable, - TimestampOfPropertyVariable, - BooleanTargetPropertyVariable, - StringTargetPropertyVariable, - NumberTargetPropertyVariable, - TimestampOfTargetPropertyVariable, - "AddNumbers", - "SubtractNumbers", - "MultiplyNumbers", - "DivideNumbers", - "RoundDownNumbers", - "RoundUpNumbers", - "RoundNearestNumbers", - "UpperCase", - "LowerCase", - "ConcatStrings", - "Contains", - "BeginsWith", - "NumberToString", - "ParseNumber", - "FetchExchangeRate", - "FetchCurrencyDecimalPlaces", - FetchSingleCurrencyPortalCurrency, - "DatedExchangeRate", - "PipelineProbability", - "MaxNumbers", - "MinNumbers", - "LessThan", - "LessThanOrEqual", - "MoreThan", - "MoreThanOrEqual", - "NumberEquals", - "StringEquals", - "IsPipelineStageClosed", - "Not", - "Date", - "Month", - "Year", - Now, - "TimeBetween", - "TimeBetweenSkipWeekends", - "PeriodToMonths", - "PeriodToWeeks", - "And", - "Or", - "Xor", - "IfString", - "IfNumber", - "IfBoolean", - "IsPresent", - "HasEmailReply", - "HasPlainTextEmailReply", - "ExtractMostRecentEmailReplyHTML", - "ExtractMostRecentEmailReplyText", - "ExtractMostRecentPlainTextEmailReply", - "SetContainsString", - IsEngagementType, - "FormatFullName", - "FormatPhoneNumber", - "FormatSearchablePhoneNumber", - "AbsoluteValue", - "SquareRoot", - "Power", - "Substring", - Euler, - "StringLength", - "IsBlank", - "AddTime", - "SubtractTime", - ] - - -class ConcatStrings(BaseModel): - operator: Literal["CONCAT_STRINGS"] - - inputs: Optional[List[Input]] = None - - property_name: Optional[str] = FieldInfo(alias="propertyName", default=None) - - value: Optional[str] = None - - -from .or_ import Or -from .xor import Xor -from .and_ import And -from .date import Date -from .not_ import Not -from .year import Year -from .month import Month -from .power import Power -from .add_time import AddTime -from .contains import Contains -from .is_blank import IsBlank -from .if_number import IfNumber -from .if_string import IfString -from .less_than import LessThan -from .more_than import MoreThan -from .substring import Substring -from .if_boolean import IfBoolean -from .is_present import IsPresent -from .lower_case import LowerCase -from .upper_case import UpperCase -from .add_numbers import AddNumbers -from .begins_with import BeginsWith -from .max_numbers import MaxNumbers -from .min_numbers import MinNumbers -from .square_root import SquareRoot -from .parse_number import ParseNumber -from .time_between import TimeBetween -from .number_equals import NumberEquals -from .string_equals import StringEquals -from .string_length import StringLength -from .subtract_time import SubtractTime -from .absolute_value import AbsoluteValue -from .divide_numbers import DivideNumbers -from .has_email_reply import HasEmailReply -from .period_to_weeks import PeriodToWeeks -from .format_full_name import FormatFullName -from .multiply_numbers import MultiplyNumbers -from .number_to_string import NumberToString -from .period_to_months import PeriodToMonths -from .round_up_numbers import RoundUpNumbers -from .subtract_numbers import SubtractNumbers -from .less_than_or_equal import LessThanOrEqual -from .more_than_or_equal import MoreThanOrEqual -from .round_down_numbers import RoundDownNumbers -from .dated_exchange_rate import DatedExchangeRate -from .fetch_exchange_rate import FetchExchangeRate -from .format_phone_number import FormatPhoneNumber -from .set_contains_string import SetContainsString -from .pipeline_probability import PipelineProbability -from .round_nearest_numbers import RoundNearestNumbers -from .is_pipeline_stage_closed import IsPipelineStageClosed -from .has_plain_text_email_reply import HasPlainTextEmailReply -from .time_between_skip_weekends import TimeBetweenSkipWeekends -from .fetch_currency_decimal_places import FetchCurrencyDecimalPlaces -from .format_searchable_phone_number import FormatSearchablePhoneNumber -from .extract_most_recent_email_reply_html import ExtractMostRecentEmailReplyHTML -from .extract_most_recent_email_reply_text import ExtractMostRecentEmailReplyText -from .extract_most_recent_plain_text_email_reply import ExtractMostRecentPlainTextEmailReply diff --git a/src/hubspot_sdk/types/cms/constant_boolean.py b/src/hubspot_sdk/types/cms/constant_boolean.py deleted file mode 100644 index a4e678e5..00000000 --- a/src/hubspot_sdk/types/cms/constant_boolean.py +++ /dev/null @@ -1,18 +0,0 @@ -# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. - -from typing import Optional -from typing_extensions import Literal - -from pydantic import Field as FieldInfo - -from ..._models import BaseModel - -__all__ = ["ConstantBoolean"] - - -class ConstantBoolean(BaseModel): - operator: Literal["CONSTANT_BOOLEAN"] - - property_name: Optional[str] = FieldInfo(alias="propertyName", default=None) - - value: Optional[bool] = None diff --git a/src/hubspot_sdk/types/cms/constant_number.py b/src/hubspot_sdk/types/cms/constant_number.py deleted file mode 100644 index b34da14d..00000000 --- a/src/hubspot_sdk/types/cms/constant_number.py +++ /dev/null @@ -1,18 +0,0 @@ -# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. - -from typing import Optional -from typing_extensions import Literal - -from pydantic import Field as FieldInfo - -from ..._models import BaseModel - -__all__ = ["ConstantNumber"] - - -class ConstantNumber(BaseModel): - operator: Literal["CONSTANT_NUMBER"] - - property_name: Optional[str] = FieldInfo(alias="propertyName", default=None) - - value: Optional[float] = None diff --git a/src/hubspot_sdk/types/cms/constant_string.py b/src/hubspot_sdk/types/cms/constant_string.py deleted file mode 100644 index 3260c5f3..00000000 --- a/src/hubspot_sdk/types/cms/constant_string.py +++ /dev/null @@ -1,18 +0,0 @@ -# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. - -from typing import Optional -from typing_extensions import Literal - -from pydantic import Field as FieldInfo - -from ..._models import BaseModel - -__all__ = ["ConstantString"] - - -class ConstantString(BaseModel): - operator: Literal["CONSTANT_STRING"] - - property_name: Optional[str] = FieldInfo(alias="propertyName", default=None) - - value: Optional[str] = None diff --git a/src/hubspot_sdk/types/cms/contains.py b/src/hubspot_sdk/types/cms/contains.py deleted file mode 100644 index 7328e0c0..00000000 --- a/src/hubspot_sdk/types/cms/contains.py +++ /dev/null @@ -1,416 +0,0 @@ -# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. - -from __future__ import annotations - -from typing import TYPE_CHECKING, List, Union, Optional -from typing_extensions import Literal, TypeAlias, TypeAliasType - -from pydantic import Field as FieldInfo - -from .now import Now -from .euler import Euler -from ..._compat import PYDANTIC_V1 -from ..._models import BaseModel -from .constant_number import ConstantNumber -from .constant_string import ConstantString -from .constant_boolean import ConstantBoolean -from .is_engagement_type import IsEngagementType -from .number_property_variable import NumberPropertyVariable -from .string_property_variable import StringPropertyVariable -from .boolean_property_variable import BooleanPropertyVariable -from .timestamp_of_property_variable import TimestampOfPropertyVariable -from .number_target_property_variable import NumberTargetPropertyVariable -from .string_target_property_variable import StringTargetPropertyVariable -from .boolean_target_property_variable import BooleanTargetPropertyVariable -from .fetch_single_currency_portal_currency import FetchSingleCurrencyPortalCurrency -from .timestamp_of_target_property_variable import TimestampOfTargetPropertyVariable - -__all__ = ["Contains", "StringToCheck", "Input"] - -if TYPE_CHECKING or not PYDANTIC_V1: - StringToCheck = TypeAliasType( - "StringToCheck", - Union[ - ConstantBoolean, - ConstantNumber, - ConstantString, - BooleanPropertyVariable, - StringPropertyVariable, - NumberPropertyVariable, - TimestampOfPropertyVariable, - BooleanTargetPropertyVariable, - StringTargetPropertyVariable, - NumberTargetPropertyVariable, - TimestampOfTargetPropertyVariable, - "AddNumbers", - "SubtractNumbers", - "MultiplyNumbers", - "DivideNumbers", - "RoundDownNumbers", - "RoundUpNumbers", - "RoundNearestNumbers", - "UpperCase", - "LowerCase", - "ConcatStrings", - "Contains", - "BeginsWith", - "NumberToString", - "ParseNumber", - "FetchExchangeRate", - "FetchCurrencyDecimalPlaces", - FetchSingleCurrencyPortalCurrency, - "DatedExchangeRate", - "PipelineProbability", - "MaxNumbers", - "MinNumbers", - "LessThan", - "LessThanOrEqual", - "MoreThan", - "MoreThanOrEqual", - "NumberEquals", - "StringEquals", - "IsPipelineStageClosed", - "Not", - "Date", - "Month", - "Year", - Now, - "TimeBetween", - "TimeBetweenSkipWeekends", - "PeriodToMonths", - "PeriodToWeeks", - "And", - "Or", - "Xor", - "IfString", - "IfNumber", - "IfBoolean", - "IsPresent", - "HasEmailReply", - "HasPlainTextEmailReply", - "ExtractMostRecentEmailReplyHTML", - "ExtractMostRecentEmailReplyText", - "ExtractMostRecentPlainTextEmailReply", - "SetContainsString", - IsEngagementType, - "FormatFullName", - "FormatPhoneNumber", - "FormatSearchablePhoneNumber", - "AbsoluteValue", - "SquareRoot", - "Power", - "Substring", - Euler, - "StringLength", - "IsBlank", - "AddTime", - "SubtractTime", - ], - ) -else: - StringToCheck: TypeAlias = Union[ - ConstantBoolean, - ConstantNumber, - ConstantString, - BooleanPropertyVariable, - StringPropertyVariable, - NumberPropertyVariable, - TimestampOfPropertyVariable, - BooleanTargetPropertyVariable, - StringTargetPropertyVariable, - NumberTargetPropertyVariable, - TimestampOfTargetPropertyVariable, - "AddNumbers", - "SubtractNumbers", - "MultiplyNumbers", - "DivideNumbers", - "RoundDownNumbers", - "RoundUpNumbers", - "RoundNearestNumbers", - "UpperCase", - "LowerCase", - "ConcatStrings", - "Contains", - "BeginsWith", - "NumberToString", - "ParseNumber", - "FetchExchangeRate", - "FetchCurrencyDecimalPlaces", - FetchSingleCurrencyPortalCurrency, - "DatedExchangeRate", - "PipelineProbability", - "MaxNumbers", - "MinNumbers", - "LessThan", - "LessThanOrEqual", - "MoreThan", - "MoreThanOrEqual", - "NumberEquals", - "StringEquals", - "IsPipelineStageClosed", - "Not", - "Date", - "Month", - "Year", - Now, - "TimeBetween", - "TimeBetweenSkipWeekends", - "PeriodToMonths", - "PeriodToWeeks", - "And", - "Or", - "Xor", - "IfString", - "IfNumber", - "IfBoolean", - "IsPresent", - "HasEmailReply", - "HasPlainTextEmailReply", - "ExtractMostRecentEmailReplyHTML", - "ExtractMostRecentEmailReplyText", - "ExtractMostRecentPlainTextEmailReply", - "SetContainsString", - IsEngagementType, - "FormatFullName", - "FormatPhoneNumber", - "FormatSearchablePhoneNumber", - "AbsoluteValue", - "SquareRoot", - "Power", - "Substring", - Euler, - "StringLength", - "IsBlank", - "AddTime", - "SubtractTime", - ] - -if TYPE_CHECKING or not PYDANTIC_V1: - Input = TypeAliasType( - "Input", - Union[ - ConstantBoolean, - ConstantNumber, - ConstantString, - BooleanPropertyVariable, - StringPropertyVariable, - NumberPropertyVariable, - TimestampOfPropertyVariable, - BooleanTargetPropertyVariable, - StringTargetPropertyVariable, - NumberTargetPropertyVariable, - TimestampOfTargetPropertyVariable, - "AddNumbers", - "SubtractNumbers", - "MultiplyNumbers", - "DivideNumbers", - "RoundDownNumbers", - "RoundUpNumbers", - "RoundNearestNumbers", - "UpperCase", - "LowerCase", - "ConcatStrings", - "Contains", - "BeginsWith", - "NumberToString", - "ParseNumber", - "FetchExchangeRate", - "FetchCurrencyDecimalPlaces", - FetchSingleCurrencyPortalCurrency, - "DatedExchangeRate", - "PipelineProbability", - "MaxNumbers", - "MinNumbers", - "LessThan", - "LessThanOrEqual", - "MoreThan", - "MoreThanOrEqual", - "NumberEquals", - "StringEquals", - "IsPipelineStageClosed", - "Not", - "Date", - "Month", - "Year", - Now, - "TimeBetween", - "TimeBetweenSkipWeekends", - "PeriodToMonths", - "PeriodToWeeks", - "And", - "Or", - "Xor", - "IfString", - "IfNumber", - "IfBoolean", - "IsPresent", - "HasEmailReply", - "HasPlainTextEmailReply", - "ExtractMostRecentEmailReplyHTML", - "ExtractMostRecentEmailReplyText", - "ExtractMostRecentPlainTextEmailReply", - "SetContainsString", - IsEngagementType, - "FormatFullName", - "FormatPhoneNumber", - "FormatSearchablePhoneNumber", - "AbsoluteValue", - "SquareRoot", - "Power", - "Substring", - Euler, - "StringLength", - "IsBlank", - "AddTime", - "SubtractTime", - ], - ) -else: - Input: TypeAlias = Union[ - ConstantBoolean, - ConstantNumber, - ConstantString, - BooleanPropertyVariable, - StringPropertyVariable, - NumberPropertyVariable, - TimestampOfPropertyVariable, - BooleanTargetPropertyVariable, - StringTargetPropertyVariable, - NumberTargetPropertyVariable, - TimestampOfTargetPropertyVariable, - "AddNumbers", - "SubtractNumbers", - "MultiplyNumbers", - "DivideNumbers", - "RoundDownNumbers", - "RoundUpNumbers", - "RoundNearestNumbers", - "UpperCase", - "LowerCase", - "ConcatStrings", - "Contains", - "BeginsWith", - "NumberToString", - "ParseNumber", - "FetchExchangeRate", - "FetchCurrencyDecimalPlaces", - FetchSingleCurrencyPortalCurrency, - "DatedExchangeRate", - "PipelineProbability", - "MaxNumbers", - "MinNumbers", - "LessThan", - "LessThanOrEqual", - "MoreThan", - "MoreThanOrEqual", - "NumberEquals", - "StringEquals", - "IsPipelineStageClosed", - "Not", - "Date", - "Month", - "Year", - Now, - "TimeBetween", - "TimeBetweenSkipWeekends", - "PeriodToMonths", - "PeriodToWeeks", - "And", - "Or", - "Xor", - "IfString", - "IfNumber", - "IfBoolean", - "IsPresent", - "HasEmailReply", - "HasPlainTextEmailReply", - "ExtractMostRecentEmailReplyHTML", - "ExtractMostRecentEmailReplyText", - "ExtractMostRecentPlainTextEmailReply", - "SetContainsString", - IsEngagementType, - "FormatFullName", - "FormatPhoneNumber", - "FormatSearchablePhoneNumber", - "AbsoluteValue", - "SquareRoot", - "Power", - "Substring", - Euler, - "StringLength", - "IsBlank", - "AddTime", - "SubtractTime", - ] - - -class Contains(BaseModel): - operator: Literal["CONTAINS"] - - string_to_check: StringToCheck = FieldInfo(alias="stringToCheck") - - inputs: Optional[List[Input]] = None - - property_name: Optional[str] = FieldInfo(alias="propertyName", default=None) - - value: Optional[bool] = None - - -from .or_ import Or -from .xor import Xor -from .and_ import And -from .date import Date -from .not_ import Not -from .year import Year -from .month import Month -from .power import Power -from .add_time import AddTime -from .is_blank import IsBlank -from .if_number import IfNumber -from .if_string import IfString -from .less_than import LessThan -from .more_than import MoreThan -from .substring import Substring -from .if_boolean import IfBoolean -from .is_present import IsPresent -from .lower_case import LowerCase -from .upper_case import UpperCase -from .add_numbers import AddNumbers -from .begins_with import BeginsWith -from .max_numbers import MaxNumbers -from .min_numbers import MinNumbers -from .square_root import SquareRoot -from .parse_number import ParseNumber -from .time_between import TimeBetween -from .number_equals import NumberEquals -from .string_equals import StringEquals -from .string_length import StringLength -from .subtract_time import SubtractTime -from .absolute_value import AbsoluteValue -from .concat_strings import ConcatStrings -from .divide_numbers import DivideNumbers -from .has_email_reply import HasEmailReply -from .period_to_weeks import PeriodToWeeks -from .format_full_name import FormatFullName -from .multiply_numbers import MultiplyNumbers -from .number_to_string import NumberToString -from .period_to_months import PeriodToMonths -from .round_up_numbers import RoundUpNumbers -from .subtract_numbers import SubtractNumbers -from .less_than_or_equal import LessThanOrEqual -from .more_than_or_equal import MoreThanOrEqual -from .round_down_numbers import RoundDownNumbers -from .dated_exchange_rate import DatedExchangeRate -from .fetch_exchange_rate import FetchExchangeRate -from .format_phone_number import FormatPhoneNumber -from .set_contains_string import SetContainsString -from .pipeline_probability import PipelineProbability -from .round_nearest_numbers import RoundNearestNumbers -from .is_pipeline_stage_closed import IsPipelineStageClosed -from .has_plain_text_email_reply import HasPlainTextEmailReply -from .time_between_skip_weekends import TimeBetweenSkipWeekends -from .fetch_currency_decimal_places import FetchCurrencyDecimalPlaces -from .format_searchable_phone_number import FormatSearchablePhoneNumber -from .extract_most_recent_email_reply_html import ExtractMostRecentEmailReplyHTML -from .extract_most_recent_email_reply_text import ExtractMostRecentEmailReplyText -from .extract_most_recent_plain_text_email_reply import ExtractMostRecentPlainTextEmailReply diff --git a/src/hubspot_sdk/types/cms/date.py b/src/hubspot_sdk/types/cms/date.py deleted file mode 100644 index 8957ec55..00000000 --- a/src/hubspot_sdk/types/cms/date.py +++ /dev/null @@ -1,256 +0,0 @@ -# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. - -from __future__ import annotations - -from typing import TYPE_CHECKING, List, Union, Optional -from typing_extensions import Literal, TypeAlias, TypeAliasType - -from pydantic import Field as FieldInfo - -from .now import Now -from .euler import Euler -from ..._compat import PYDANTIC_V1 -from ..._models import BaseModel -from .constant_number import ConstantNumber -from .constant_string import ConstantString -from .constant_boolean import ConstantBoolean -from .is_engagement_type import IsEngagementType -from .number_property_variable import NumberPropertyVariable -from .string_property_variable import StringPropertyVariable -from .boolean_property_variable import BooleanPropertyVariable -from .timestamp_of_property_variable import TimestampOfPropertyVariable -from .number_target_property_variable import NumberTargetPropertyVariable -from .string_target_property_variable import StringTargetPropertyVariable -from .boolean_target_property_variable import BooleanTargetPropertyVariable -from .fetch_single_currency_portal_currency import FetchSingleCurrencyPortalCurrency -from .timestamp_of_target_property_variable import TimestampOfTargetPropertyVariable - -__all__ = ["Date", "Input"] - -if TYPE_CHECKING or not PYDANTIC_V1: - Input = TypeAliasType( - "Input", - Union[ - ConstantBoolean, - ConstantNumber, - ConstantString, - BooleanPropertyVariable, - StringPropertyVariable, - NumberPropertyVariable, - TimestampOfPropertyVariable, - BooleanTargetPropertyVariable, - StringTargetPropertyVariable, - NumberTargetPropertyVariable, - TimestampOfTargetPropertyVariable, - "AddNumbers", - "SubtractNumbers", - "MultiplyNumbers", - "DivideNumbers", - "RoundDownNumbers", - "RoundUpNumbers", - "RoundNearestNumbers", - "UpperCase", - "LowerCase", - "ConcatStrings", - "Contains", - "BeginsWith", - "NumberToString", - "ParseNumber", - "FetchExchangeRate", - "FetchCurrencyDecimalPlaces", - FetchSingleCurrencyPortalCurrency, - "DatedExchangeRate", - "PipelineProbability", - "MaxNumbers", - "MinNumbers", - "LessThan", - "LessThanOrEqual", - "MoreThan", - "MoreThanOrEqual", - "NumberEquals", - "StringEquals", - "IsPipelineStageClosed", - "Not", - "Date", - "Month", - "Year", - Now, - "TimeBetween", - "TimeBetweenSkipWeekends", - "PeriodToMonths", - "PeriodToWeeks", - "And", - "Or", - "Xor", - "IfString", - "IfNumber", - "IfBoolean", - "IsPresent", - "HasEmailReply", - "HasPlainTextEmailReply", - "ExtractMostRecentEmailReplyHTML", - "ExtractMostRecentEmailReplyText", - "ExtractMostRecentPlainTextEmailReply", - "SetContainsString", - IsEngagementType, - "FormatFullName", - "FormatPhoneNumber", - "FormatSearchablePhoneNumber", - "AbsoluteValue", - "SquareRoot", - "Power", - "Substring", - Euler, - "StringLength", - "IsBlank", - "AddTime", - "SubtractTime", - ], - ) -else: - Input: TypeAlias = Union[ - ConstantBoolean, - ConstantNumber, - ConstantString, - BooleanPropertyVariable, - StringPropertyVariable, - NumberPropertyVariable, - TimestampOfPropertyVariable, - BooleanTargetPropertyVariable, - StringTargetPropertyVariable, - NumberTargetPropertyVariable, - TimestampOfTargetPropertyVariable, - "AddNumbers", - "SubtractNumbers", - "MultiplyNumbers", - "DivideNumbers", - "RoundDownNumbers", - "RoundUpNumbers", - "RoundNearestNumbers", - "UpperCase", - "LowerCase", - "ConcatStrings", - "Contains", - "BeginsWith", - "NumberToString", - "ParseNumber", - "FetchExchangeRate", - "FetchCurrencyDecimalPlaces", - FetchSingleCurrencyPortalCurrency, - "DatedExchangeRate", - "PipelineProbability", - "MaxNumbers", - "MinNumbers", - "LessThan", - "LessThanOrEqual", - "MoreThan", - "MoreThanOrEqual", - "NumberEquals", - "StringEquals", - "IsPipelineStageClosed", - "Not", - "Date", - "Month", - "Year", - Now, - "TimeBetween", - "TimeBetweenSkipWeekends", - "PeriodToMonths", - "PeriodToWeeks", - "And", - "Or", - "Xor", - "IfString", - "IfNumber", - "IfBoolean", - "IsPresent", - "HasEmailReply", - "HasPlainTextEmailReply", - "ExtractMostRecentEmailReplyHTML", - "ExtractMostRecentEmailReplyText", - "ExtractMostRecentPlainTextEmailReply", - "SetContainsString", - IsEngagementType, - "FormatFullName", - "FormatPhoneNumber", - "FormatSearchablePhoneNumber", - "AbsoluteValue", - "SquareRoot", - "Power", - "Substring", - Euler, - "StringLength", - "IsBlank", - "AddTime", - "SubtractTime", - ] - - -class Date(BaseModel): - operator: Literal["DATE"] - - inputs: Optional[List[Input]] = None - - property_name: Optional[str] = FieldInfo(alias="propertyName", default=None) - - value: Optional[float] = None - - -from .or_ import Or -from .xor import Xor -from .and_ import And -from .not_ import Not -from .year import Year -from .month import Month -from .power import Power -from .add_time import AddTime -from .contains import Contains -from .is_blank import IsBlank -from .if_number import IfNumber -from .if_string import IfString -from .less_than import LessThan -from .more_than import MoreThan -from .substring import Substring -from .if_boolean import IfBoolean -from .is_present import IsPresent -from .lower_case import LowerCase -from .upper_case import UpperCase -from .add_numbers import AddNumbers -from .begins_with import BeginsWith -from .max_numbers import MaxNumbers -from .min_numbers import MinNumbers -from .square_root import SquareRoot -from .parse_number import ParseNumber -from .time_between import TimeBetween -from .number_equals import NumberEquals -from .string_equals import StringEquals -from .string_length import StringLength -from .subtract_time import SubtractTime -from .absolute_value import AbsoluteValue -from .concat_strings import ConcatStrings -from .divide_numbers import DivideNumbers -from .has_email_reply import HasEmailReply -from .period_to_weeks import PeriodToWeeks -from .format_full_name import FormatFullName -from .multiply_numbers import MultiplyNumbers -from .number_to_string import NumberToString -from .period_to_months import PeriodToMonths -from .round_up_numbers import RoundUpNumbers -from .subtract_numbers import SubtractNumbers -from .less_than_or_equal import LessThanOrEqual -from .more_than_or_equal import MoreThanOrEqual -from .round_down_numbers import RoundDownNumbers -from .dated_exchange_rate import DatedExchangeRate -from .fetch_exchange_rate import FetchExchangeRate -from .format_phone_number import FormatPhoneNumber -from .set_contains_string import SetContainsString -from .pipeline_probability import PipelineProbability -from .round_nearest_numbers import RoundNearestNumbers -from .is_pipeline_stage_closed import IsPipelineStageClosed -from .has_plain_text_email_reply import HasPlainTextEmailReply -from .time_between_skip_weekends import TimeBetweenSkipWeekends -from .fetch_currency_decimal_places import FetchCurrencyDecimalPlaces -from .format_searchable_phone_number import FormatSearchablePhoneNumber -from .extract_most_recent_email_reply_html import ExtractMostRecentEmailReplyHTML -from .extract_most_recent_email_reply_text import ExtractMostRecentEmailReplyText -from .extract_most_recent_plain_text_email_reply import ExtractMostRecentPlainTextEmailReply diff --git a/src/hubspot_sdk/types/cms/dated_exchange_rate.py b/src/hubspot_sdk/types/cms/dated_exchange_rate.py deleted file mode 100644 index 3771911a..00000000 --- a/src/hubspot_sdk/types/cms/dated_exchange_rate.py +++ /dev/null @@ -1,256 +0,0 @@ -# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. - -from __future__ import annotations - -from typing import TYPE_CHECKING, List, Union, Optional -from typing_extensions import Literal, TypeAlias, TypeAliasType - -from pydantic import Field as FieldInfo - -from .now import Now -from .euler import Euler -from ..._compat import PYDANTIC_V1 -from ..._models import BaseModel -from .constant_number import ConstantNumber -from .constant_string import ConstantString -from .constant_boolean import ConstantBoolean -from .is_engagement_type import IsEngagementType -from .number_property_variable import NumberPropertyVariable -from .string_property_variable import StringPropertyVariable -from .boolean_property_variable import BooleanPropertyVariable -from .timestamp_of_property_variable import TimestampOfPropertyVariable -from .number_target_property_variable import NumberTargetPropertyVariable -from .string_target_property_variable import StringTargetPropertyVariable -from .boolean_target_property_variable import BooleanTargetPropertyVariable -from .fetch_single_currency_portal_currency import FetchSingleCurrencyPortalCurrency -from .timestamp_of_target_property_variable import TimestampOfTargetPropertyVariable - -__all__ = ["DatedExchangeRate", "Input"] - -if TYPE_CHECKING or not PYDANTIC_V1: - Input = TypeAliasType( - "Input", - Union[ - ConstantBoolean, - ConstantNumber, - ConstantString, - BooleanPropertyVariable, - StringPropertyVariable, - NumberPropertyVariable, - TimestampOfPropertyVariable, - BooleanTargetPropertyVariable, - StringTargetPropertyVariable, - NumberTargetPropertyVariable, - TimestampOfTargetPropertyVariable, - "AddNumbers", - "SubtractNumbers", - "MultiplyNumbers", - "DivideNumbers", - "RoundDownNumbers", - "RoundUpNumbers", - "RoundNearestNumbers", - "UpperCase", - "LowerCase", - "ConcatStrings", - "Contains", - "BeginsWith", - "NumberToString", - "ParseNumber", - "FetchExchangeRate", - "FetchCurrencyDecimalPlaces", - FetchSingleCurrencyPortalCurrency, - "DatedExchangeRate", - "PipelineProbability", - "MaxNumbers", - "MinNumbers", - "LessThan", - "LessThanOrEqual", - "MoreThan", - "MoreThanOrEqual", - "NumberEquals", - "StringEquals", - "IsPipelineStageClosed", - "Not", - "Date", - "Month", - "Year", - Now, - "TimeBetween", - "TimeBetweenSkipWeekends", - "PeriodToMonths", - "PeriodToWeeks", - "And", - "Or", - "Xor", - "IfString", - "IfNumber", - "IfBoolean", - "IsPresent", - "HasEmailReply", - "HasPlainTextEmailReply", - "ExtractMostRecentEmailReplyHTML", - "ExtractMostRecentEmailReplyText", - "ExtractMostRecentPlainTextEmailReply", - "SetContainsString", - IsEngagementType, - "FormatFullName", - "FormatPhoneNumber", - "FormatSearchablePhoneNumber", - "AbsoluteValue", - "SquareRoot", - "Power", - "Substring", - Euler, - "StringLength", - "IsBlank", - "AddTime", - "SubtractTime", - ], - ) -else: - Input: TypeAlias = Union[ - ConstantBoolean, - ConstantNumber, - ConstantString, - BooleanPropertyVariable, - StringPropertyVariable, - NumberPropertyVariable, - TimestampOfPropertyVariable, - BooleanTargetPropertyVariable, - StringTargetPropertyVariable, - NumberTargetPropertyVariable, - TimestampOfTargetPropertyVariable, - "AddNumbers", - "SubtractNumbers", - "MultiplyNumbers", - "DivideNumbers", - "RoundDownNumbers", - "RoundUpNumbers", - "RoundNearestNumbers", - "UpperCase", - "LowerCase", - "ConcatStrings", - "Contains", - "BeginsWith", - "NumberToString", - "ParseNumber", - "FetchExchangeRate", - "FetchCurrencyDecimalPlaces", - FetchSingleCurrencyPortalCurrency, - "DatedExchangeRate", - "PipelineProbability", - "MaxNumbers", - "MinNumbers", - "LessThan", - "LessThanOrEqual", - "MoreThan", - "MoreThanOrEqual", - "NumberEquals", - "StringEquals", - "IsPipelineStageClosed", - "Not", - "Date", - "Month", - "Year", - Now, - "TimeBetween", - "TimeBetweenSkipWeekends", - "PeriodToMonths", - "PeriodToWeeks", - "And", - "Or", - "Xor", - "IfString", - "IfNumber", - "IfBoolean", - "IsPresent", - "HasEmailReply", - "HasPlainTextEmailReply", - "ExtractMostRecentEmailReplyHTML", - "ExtractMostRecentEmailReplyText", - "ExtractMostRecentPlainTextEmailReply", - "SetContainsString", - IsEngagementType, - "FormatFullName", - "FormatPhoneNumber", - "FormatSearchablePhoneNumber", - "AbsoluteValue", - "SquareRoot", - "Power", - "Substring", - Euler, - "StringLength", - "IsBlank", - "AddTime", - "SubtractTime", - ] - - -class DatedExchangeRate(BaseModel): - operator: Literal["DATED_EXCHANGE_RATE"] - - inputs: Optional[List[Input]] = None - - property_name: Optional[str] = FieldInfo(alias="propertyName", default=None) - - value: Optional[float] = None - - -from .or_ import Or -from .xor import Xor -from .and_ import And -from .date import Date -from .not_ import Not -from .year import Year -from .month import Month -from .power import Power -from .add_time import AddTime -from .contains import Contains -from .is_blank import IsBlank -from .if_number import IfNumber -from .if_string import IfString -from .less_than import LessThan -from .more_than import MoreThan -from .substring import Substring -from .if_boolean import IfBoolean -from .is_present import IsPresent -from .lower_case import LowerCase -from .upper_case import UpperCase -from .add_numbers import AddNumbers -from .begins_with import BeginsWith -from .max_numbers import MaxNumbers -from .min_numbers import MinNumbers -from .square_root import SquareRoot -from .parse_number import ParseNumber -from .time_between import TimeBetween -from .number_equals import NumberEquals -from .string_equals import StringEquals -from .string_length import StringLength -from .subtract_time import SubtractTime -from .absolute_value import AbsoluteValue -from .concat_strings import ConcatStrings -from .divide_numbers import DivideNumbers -from .has_email_reply import HasEmailReply -from .period_to_weeks import PeriodToWeeks -from .format_full_name import FormatFullName -from .multiply_numbers import MultiplyNumbers -from .number_to_string import NumberToString -from .period_to_months import PeriodToMonths -from .round_up_numbers import RoundUpNumbers -from .subtract_numbers import SubtractNumbers -from .less_than_or_equal import LessThanOrEqual -from .more_than_or_equal import MoreThanOrEqual -from .round_down_numbers import RoundDownNumbers -from .fetch_exchange_rate import FetchExchangeRate -from .format_phone_number import FormatPhoneNumber -from .set_contains_string import SetContainsString -from .pipeline_probability import PipelineProbability -from .round_nearest_numbers import RoundNearestNumbers -from .is_pipeline_stage_closed import IsPipelineStageClosed -from .has_plain_text_email_reply import HasPlainTextEmailReply -from .time_between_skip_weekends import TimeBetweenSkipWeekends -from .fetch_currency_decimal_places import FetchCurrencyDecimalPlaces -from .format_searchable_phone_number import FormatSearchablePhoneNumber -from .extract_most_recent_email_reply_html import ExtractMostRecentEmailReplyHTML -from .extract_most_recent_email_reply_text import ExtractMostRecentEmailReplyText -from .extract_most_recent_plain_text_email_reply import ExtractMostRecentPlainTextEmailReply diff --git a/src/hubspot_sdk/types/cms/divide_numbers.py b/src/hubspot_sdk/types/cms/divide_numbers.py deleted file mode 100644 index f196713e..00000000 --- a/src/hubspot_sdk/types/cms/divide_numbers.py +++ /dev/null @@ -1,258 +0,0 @@ -# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. - -from __future__ import annotations - -from typing import TYPE_CHECKING, List, Union, Optional -from typing_extensions import Literal, TypeAlias, TypeAliasType - -from pydantic import Field as FieldInfo - -from .now import Now -from .euler import Euler -from ..._compat import PYDANTIC_V1 -from ..._models import BaseModel -from .constant_number import ConstantNumber -from .constant_string import ConstantString -from .constant_boolean import ConstantBoolean -from .is_engagement_type import IsEngagementType -from .number_property_variable import NumberPropertyVariable -from .string_property_variable import StringPropertyVariable -from .boolean_property_variable import BooleanPropertyVariable -from .timestamp_of_property_variable import TimestampOfPropertyVariable -from .number_target_property_variable import NumberTargetPropertyVariable -from .string_target_property_variable import StringTargetPropertyVariable -from .boolean_target_property_variable import BooleanTargetPropertyVariable -from .fetch_single_currency_portal_currency import FetchSingleCurrencyPortalCurrency -from .timestamp_of_target_property_variable import TimestampOfTargetPropertyVariable - -__all__ = ["DivideNumbers", "Input"] - -if TYPE_CHECKING or not PYDANTIC_V1: - Input = TypeAliasType( - "Input", - Union[ - ConstantBoolean, - ConstantNumber, - ConstantString, - BooleanPropertyVariable, - StringPropertyVariable, - NumberPropertyVariable, - TimestampOfPropertyVariable, - BooleanTargetPropertyVariable, - StringTargetPropertyVariable, - NumberTargetPropertyVariable, - TimestampOfTargetPropertyVariable, - "AddNumbers", - "SubtractNumbers", - "MultiplyNumbers", - "DivideNumbers", - "RoundDownNumbers", - "RoundUpNumbers", - "RoundNearestNumbers", - "UpperCase", - "LowerCase", - "ConcatStrings", - "Contains", - "BeginsWith", - "NumberToString", - "ParseNumber", - "FetchExchangeRate", - "FetchCurrencyDecimalPlaces", - FetchSingleCurrencyPortalCurrency, - "DatedExchangeRate", - "PipelineProbability", - "MaxNumbers", - "MinNumbers", - "LessThan", - "LessThanOrEqual", - "MoreThan", - "MoreThanOrEqual", - "NumberEquals", - "StringEquals", - "IsPipelineStageClosed", - "Not", - "Date", - "Month", - "Year", - Now, - "TimeBetween", - "TimeBetweenSkipWeekends", - "PeriodToMonths", - "PeriodToWeeks", - "And", - "Or", - "Xor", - "IfString", - "IfNumber", - "IfBoolean", - "IsPresent", - "HasEmailReply", - "HasPlainTextEmailReply", - "ExtractMostRecentEmailReplyHTML", - "ExtractMostRecentEmailReplyText", - "ExtractMostRecentPlainTextEmailReply", - "SetContainsString", - IsEngagementType, - "FormatFullName", - "FormatPhoneNumber", - "FormatSearchablePhoneNumber", - "AbsoluteValue", - "SquareRoot", - "Power", - "Substring", - Euler, - "StringLength", - "IsBlank", - "AddTime", - "SubtractTime", - ], - ) -else: - Input: TypeAlias = Union[ - ConstantBoolean, - ConstantNumber, - ConstantString, - BooleanPropertyVariable, - StringPropertyVariable, - NumberPropertyVariable, - TimestampOfPropertyVariable, - BooleanTargetPropertyVariable, - StringTargetPropertyVariable, - NumberTargetPropertyVariable, - TimestampOfTargetPropertyVariable, - "AddNumbers", - "SubtractNumbers", - "MultiplyNumbers", - "DivideNumbers", - "RoundDownNumbers", - "RoundUpNumbers", - "RoundNearestNumbers", - "UpperCase", - "LowerCase", - "ConcatStrings", - "Contains", - "BeginsWith", - "NumberToString", - "ParseNumber", - "FetchExchangeRate", - "FetchCurrencyDecimalPlaces", - FetchSingleCurrencyPortalCurrency, - "DatedExchangeRate", - "PipelineProbability", - "MaxNumbers", - "MinNumbers", - "LessThan", - "LessThanOrEqual", - "MoreThan", - "MoreThanOrEqual", - "NumberEquals", - "StringEquals", - "IsPipelineStageClosed", - "Not", - "Date", - "Month", - "Year", - Now, - "TimeBetween", - "TimeBetweenSkipWeekends", - "PeriodToMonths", - "PeriodToWeeks", - "And", - "Or", - "Xor", - "IfString", - "IfNumber", - "IfBoolean", - "IsPresent", - "HasEmailReply", - "HasPlainTextEmailReply", - "ExtractMostRecentEmailReplyHTML", - "ExtractMostRecentEmailReplyText", - "ExtractMostRecentPlainTextEmailReply", - "SetContainsString", - IsEngagementType, - "FormatFullName", - "FormatPhoneNumber", - "FormatSearchablePhoneNumber", - "AbsoluteValue", - "SquareRoot", - "Power", - "Substring", - Euler, - "StringLength", - "IsBlank", - "AddTime", - "SubtractTime", - ] - - -class DivideNumbers(BaseModel): - enclosed_in_parentheses: bool = FieldInfo(alias="enclosedInParentheses") - - operator: Literal["DIVIDE_NUMBERS"] - - inputs: Optional[List[Input]] = None - - property_name: Optional[str] = FieldInfo(alias="propertyName", default=None) - - value: Optional[float] = None - - -from .or_ import Or -from .xor import Xor -from .and_ import And -from .date import Date -from .not_ import Not -from .year import Year -from .month import Month -from .power import Power -from .add_time import AddTime -from .contains import Contains -from .is_blank import IsBlank -from .if_number import IfNumber -from .if_string import IfString -from .less_than import LessThan -from .more_than import MoreThan -from .substring import Substring -from .if_boolean import IfBoolean -from .is_present import IsPresent -from .lower_case import LowerCase -from .upper_case import UpperCase -from .add_numbers import AddNumbers -from .begins_with import BeginsWith -from .max_numbers import MaxNumbers -from .min_numbers import MinNumbers -from .square_root import SquareRoot -from .parse_number import ParseNumber -from .time_between import TimeBetween -from .number_equals import NumberEquals -from .string_equals import StringEquals -from .string_length import StringLength -from .subtract_time import SubtractTime -from .absolute_value import AbsoluteValue -from .concat_strings import ConcatStrings -from .has_email_reply import HasEmailReply -from .period_to_weeks import PeriodToWeeks -from .format_full_name import FormatFullName -from .multiply_numbers import MultiplyNumbers -from .number_to_string import NumberToString -from .period_to_months import PeriodToMonths -from .round_up_numbers import RoundUpNumbers -from .subtract_numbers import SubtractNumbers -from .less_than_or_equal import LessThanOrEqual -from .more_than_or_equal import MoreThanOrEqual -from .round_down_numbers import RoundDownNumbers -from .dated_exchange_rate import DatedExchangeRate -from .fetch_exchange_rate import FetchExchangeRate -from .format_phone_number import FormatPhoneNumber -from .set_contains_string import SetContainsString -from .pipeline_probability import PipelineProbability -from .round_nearest_numbers import RoundNearestNumbers -from .is_pipeline_stage_closed import IsPipelineStageClosed -from .has_plain_text_email_reply import HasPlainTextEmailReply -from .time_between_skip_weekends import TimeBetweenSkipWeekends -from .fetch_currency_decimal_places import FetchCurrencyDecimalPlaces -from .format_searchable_phone_number import FormatSearchablePhoneNumber -from .extract_most_recent_email_reply_html import ExtractMostRecentEmailReplyHTML -from .extract_most_recent_email_reply_text import ExtractMostRecentEmailReplyText -from .extract_most_recent_plain_text_email_reply import ExtractMostRecentPlainTextEmailReply diff --git a/src/hubspot_sdk/types/cms/euler.py b/src/hubspot_sdk/types/cms/euler.py deleted file mode 100644 index c43a09a7..00000000 --- a/src/hubspot_sdk/types/cms/euler.py +++ /dev/null @@ -1,18 +0,0 @@ -# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. - -from typing import Optional -from typing_extensions import Literal - -from pydantic import Field as FieldInfo - -from ..._models import BaseModel - -__all__ = ["Euler"] - - -class Euler(BaseModel): - operator: Literal["EULER"] - - property_name: Optional[str] = FieldInfo(alias="propertyName", default=None) - - value: Optional[float] = None diff --git a/src/hubspot_sdk/types/cms/extract_most_recent_email_reply_html.py b/src/hubspot_sdk/types/cms/extract_most_recent_email_reply_html.py deleted file mode 100644 index d887b86b..00000000 --- a/src/hubspot_sdk/types/cms/extract_most_recent_email_reply_html.py +++ /dev/null @@ -1,256 +0,0 @@ -# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. - -from __future__ import annotations - -from typing import TYPE_CHECKING, List, Union, Optional -from typing_extensions import Literal, TypeAlias, TypeAliasType - -from pydantic import Field as FieldInfo - -from .now import Now -from .euler import Euler -from ..._compat import PYDANTIC_V1 -from ..._models import BaseModel -from .constant_number import ConstantNumber -from .constant_string import ConstantString -from .constant_boolean import ConstantBoolean -from .is_engagement_type import IsEngagementType -from .number_property_variable import NumberPropertyVariable -from .string_property_variable import StringPropertyVariable -from .boolean_property_variable import BooleanPropertyVariable -from .timestamp_of_property_variable import TimestampOfPropertyVariable -from .number_target_property_variable import NumberTargetPropertyVariable -from .string_target_property_variable import StringTargetPropertyVariable -from .boolean_target_property_variable import BooleanTargetPropertyVariable -from .fetch_single_currency_portal_currency import FetchSingleCurrencyPortalCurrency -from .timestamp_of_target_property_variable import TimestampOfTargetPropertyVariable - -__all__ = ["ExtractMostRecentEmailReplyHTML", "Input"] - -if TYPE_CHECKING or not PYDANTIC_V1: - Input = TypeAliasType( - "Input", - Union[ - ConstantBoolean, - ConstantNumber, - ConstantString, - BooleanPropertyVariable, - StringPropertyVariable, - NumberPropertyVariable, - TimestampOfPropertyVariable, - BooleanTargetPropertyVariable, - StringTargetPropertyVariable, - NumberTargetPropertyVariable, - TimestampOfTargetPropertyVariable, - "AddNumbers", - "SubtractNumbers", - "MultiplyNumbers", - "DivideNumbers", - "RoundDownNumbers", - "RoundUpNumbers", - "RoundNearestNumbers", - "UpperCase", - "LowerCase", - "ConcatStrings", - "Contains", - "BeginsWith", - "NumberToString", - "ParseNumber", - "FetchExchangeRate", - "FetchCurrencyDecimalPlaces", - FetchSingleCurrencyPortalCurrency, - "DatedExchangeRate", - "PipelineProbability", - "MaxNumbers", - "MinNumbers", - "LessThan", - "LessThanOrEqual", - "MoreThan", - "MoreThanOrEqual", - "NumberEquals", - "StringEquals", - "IsPipelineStageClosed", - "Not", - "Date", - "Month", - "Year", - Now, - "TimeBetween", - "TimeBetweenSkipWeekends", - "PeriodToMonths", - "PeriodToWeeks", - "And", - "Or", - "Xor", - "IfString", - "IfNumber", - "IfBoolean", - "IsPresent", - "HasEmailReply", - "HasPlainTextEmailReply", - "ExtractMostRecentEmailReplyHTML", - "ExtractMostRecentEmailReplyText", - "ExtractMostRecentPlainTextEmailReply", - "SetContainsString", - IsEngagementType, - "FormatFullName", - "FormatPhoneNumber", - "FormatSearchablePhoneNumber", - "AbsoluteValue", - "SquareRoot", - "Power", - "Substring", - Euler, - "StringLength", - "IsBlank", - "AddTime", - "SubtractTime", - ], - ) -else: - Input: TypeAlias = Union[ - ConstantBoolean, - ConstantNumber, - ConstantString, - BooleanPropertyVariable, - StringPropertyVariable, - NumberPropertyVariable, - TimestampOfPropertyVariable, - BooleanTargetPropertyVariable, - StringTargetPropertyVariable, - NumberTargetPropertyVariable, - TimestampOfTargetPropertyVariable, - "AddNumbers", - "SubtractNumbers", - "MultiplyNumbers", - "DivideNumbers", - "RoundDownNumbers", - "RoundUpNumbers", - "RoundNearestNumbers", - "UpperCase", - "LowerCase", - "ConcatStrings", - "Contains", - "BeginsWith", - "NumberToString", - "ParseNumber", - "FetchExchangeRate", - "FetchCurrencyDecimalPlaces", - FetchSingleCurrencyPortalCurrency, - "DatedExchangeRate", - "PipelineProbability", - "MaxNumbers", - "MinNumbers", - "LessThan", - "LessThanOrEqual", - "MoreThan", - "MoreThanOrEqual", - "NumberEquals", - "StringEquals", - "IsPipelineStageClosed", - "Not", - "Date", - "Month", - "Year", - Now, - "TimeBetween", - "TimeBetweenSkipWeekends", - "PeriodToMonths", - "PeriodToWeeks", - "And", - "Or", - "Xor", - "IfString", - "IfNumber", - "IfBoolean", - "IsPresent", - "HasEmailReply", - "HasPlainTextEmailReply", - "ExtractMostRecentEmailReplyHTML", - "ExtractMostRecentEmailReplyText", - "ExtractMostRecentPlainTextEmailReply", - "SetContainsString", - IsEngagementType, - "FormatFullName", - "FormatPhoneNumber", - "FormatSearchablePhoneNumber", - "AbsoluteValue", - "SquareRoot", - "Power", - "Substring", - Euler, - "StringLength", - "IsBlank", - "AddTime", - "SubtractTime", - ] - - -class ExtractMostRecentEmailReplyHTML(BaseModel): - operator: Literal["EXTRACT_MOST_RECENT_EMAIL_REPLY_HTML"] - - inputs: Optional[List[Input]] = None - - property_name: Optional[str] = FieldInfo(alias="propertyName", default=None) - - value: Optional[str] = None - - -from .or_ import Or -from .xor import Xor -from .and_ import And -from .date import Date -from .not_ import Not -from .year import Year -from .month import Month -from .power import Power -from .add_time import AddTime -from .contains import Contains -from .is_blank import IsBlank -from .if_number import IfNumber -from .if_string import IfString -from .less_than import LessThan -from .more_than import MoreThan -from .substring import Substring -from .if_boolean import IfBoolean -from .is_present import IsPresent -from .lower_case import LowerCase -from .upper_case import UpperCase -from .add_numbers import AddNumbers -from .begins_with import BeginsWith -from .max_numbers import MaxNumbers -from .min_numbers import MinNumbers -from .square_root import SquareRoot -from .parse_number import ParseNumber -from .time_between import TimeBetween -from .number_equals import NumberEquals -from .string_equals import StringEquals -from .string_length import StringLength -from .subtract_time import SubtractTime -from .absolute_value import AbsoluteValue -from .concat_strings import ConcatStrings -from .divide_numbers import DivideNumbers -from .has_email_reply import HasEmailReply -from .period_to_weeks import PeriodToWeeks -from .format_full_name import FormatFullName -from .multiply_numbers import MultiplyNumbers -from .number_to_string import NumberToString -from .period_to_months import PeriodToMonths -from .round_up_numbers import RoundUpNumbers -from .subtract_numbers import SubtractNumbers -from .less_than_or_equal import LessThanOrEqual -from .more_than_or_equal import MoreThanOrEqual -from .round_down_numbers import RoundDownNumbers -from .dated_exchange_rate import DatedExchangeRate -from .fetch_exchange_rate import FetchExchangeRate -from .format_phone_number import FormatPhoneNumber -from .set_contains_string import SetContainsString -from .pipeline_probability import PipelineProbability -from .round_nearest_numbers import RoundNearestNumbers -from .is_pipeline_stage_closed import IsPipelineStageClosed -from .has_plain_text_email_reply import HasPlainTextEmailReply -from .time_between_skip_weekends import TimeBetweenSkipWeekends -from .fetch_currency_decimal_places import FetchCurrencyDecimalPlaces -from .format_searchable_phone_number import FormatSearchablePhoneNumber -from .extract_most_recent_email_reply_text import ExtractMostRecentEmailReplyText -from .extract_most_recent_plain_text_email_reply import ExtractMostRecentPlainTextEmailReply diff --git a/src/hubspot_sdk/types/cms/extract_most_recent_email_reply_text.py b/src/hubspot_sdk/types/cms/extract_most_recent_email_reply_text.py deleted file mode 100644 index 2e2597a7..00000000 --- a/src/hubspot_sdk/types/cms/extract_most_recent_email_reply_text.py +++ /dev/null @@ -1,256 +0,0 @@ -# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. - -from __future__ import annotations - -from typing import TYPE_CHECKING, List, Union, Optional -from typing_extensions import Literal, TypeAlias, TypeAliasType - -from pydantic import Field as FieldInfo - -from .now import Now -from .euler import Euler -from ..._compat import PYDANTIC_V1 -from ..._models import BaseModel -from .constant_number import ConstantNumber -from .constant_string import ConstantString -from .constant_boolean import ConstantBoolean -from .is_engagement_type import IsEngagementType -from .number_property_variable import NumberPropertyVariable -from .string_property_variable import StringPropertyVariable -from .boolean_property_variable import BooleanPropertyVariable -from .timestamp_of_property_variable import TimestampOfPropertyVariable -from .number_target_property_variable import NumberTargetPropertyVariable -from .string_target_property_variable import StringTargetPropertyVariable -from .boolean_target_property_variable import BooleanTargetPropertyVariable -from .fetch_single_currency_portal_currency import FetchSingleCurrencyPortalCurrency -from .timestamp_of_target_property_variable import TimestampOfTargetPropertyVariable - -__all__ = ["ExtractMostRecentEmailReplyText", "Input"] - -if TYPE_CHECKING or not PYDANTIC_V1: - Input = TypeAliasType( - "Input", - Union[ - ConstantBoolean, - ConstantNumber, - ConstantString, - BooleanPropertyVariable, - StringPropertyVariable, - NumberPropertyVariable, - TimestampOfPropertyVariable, - BooleanTargetPropertyVariable, - StringTargetPropertyVariable, - NumberTargetPropertyVariable, - TimestampOfTargetPropertyVariable, - "AddNumbers", - "SubtractNumbers", - "MultiplyNumbers", - "DivideNumbers", - "RoundDownNumbers", - "RoundUpNumbers", - "RoundNearestNumbers", - "UpperCase", - "LowerCase", - "ConcatStrings", - "Contains", - "BeginsWith", - "NumberToString", - "ParseNumber", - "FetchExchangeRate", - "FetchCurrencyDecimalPlaces", - FetchSingleCurrencyPortalCurrency, - "DatedExchangeRate", - "PipelineProbability", - "MaxNumbers", - "MinNumbers", - "LessThan", - "LessThanOrEqual", - "MoreThan", - "MoreThanOrEqual", - "NumberEquals", - "StringEquals", - "IsPipelineStageClosed", - "Not", - "Date", - "Month", - "Year", - Now, - "TimeBetween", - "TimeBetweenSkipWeekends", - "PeriodToMonths", - "PeriodToWeeks", - "And", - "Or", - "Xor", - "IfString", - "IfNumber", - "IfBoolean", - "IsPresent", - "HasEmailReply", - "HasPlainTextEmailReply", - "ExtractMostRecentEmailReplyHTML", - "ExtractMostRecentEmailReplyText", - "ExtractMostRecentPlainTextEmailReply", - "SetContainsString", - IsEngagementType, - "FormatFullName", - "FormatPhoneNumber", - "FormatSearchablePhoneNumber", - "AbsoluteValue", - "SquareRoot", - "Power", - "Substring", - Euler, - "StringLength", - "IsBlank", - "AddTime", - "SubtractTime", - ], - ) -else: - Input: TypeAlias = Union[ - ConstantBoolean, - ConstantNumber, - ConstantString, - BooleanPropertyVariable, - StringPropertyVariable, - NumberPropertyVariable, - TimestampOfPropertyVariable, - BooleanTargetPropertyVariable, - StringTargetPropertyVariable, - NumberTargetPropertyVariable, - TimestampOfTargetPropertyVariable, - "AddNumbers", - "SubtractNumbers", - "MultiplyNumbers", - "DivideNumbers", - "RoundDownNumbers", - "RoundUpNumbers", - "RoundNearestNumbers", - "UpperCase", - "LowerCase", - "ConcatStrings", - "Contains", - "BeginsWith", - "NumberToString", - "ParseNumber", - "FetchExchangeRate", - "FetchCurrencyDecimalPlaces", - FetchSingleCurrencyPortalCurrency, - "DatedExchangeRate", - "PipelineProbability", - "MaxNumbers", - "MinNumbers", - "LessThan", - "LessThanOrEqual", - "MoreThan", - "MoreThanOrEqual", - "NumberEquals", - "StringEquals", - "IsPipelineStageClosed", - "Not", - "Date", - "Month", - "Year", - Now, - "TimeBetween", - "TimeBetweenSkipWeekends", - "PeriodToMonths", - "PeriodToWeeks", - "And", - "Or", - "Xor", - "IfString", - "IfNumber", - "IfBoolean", - "IsPresent", - "HasEmailReply", - "HasPlainTextEmailReply", - "ExtractMostRecentEmailReplyHTML", - "ExtractMostRecentEmailReplyText", - "ExtractMostRecentPlainTextEmailReply", - "SetContainsString", - IsEngagementType, - "FormatFullName", - "FormatPhoneNumber", - "FormatSearchablePhoneNumber", - "AbsoluteValue", - "SquareRoot", - "Power", - "Substring", - Euler, - "StringLength", - "IsBlank", - "AddTime", - "SubtractTime", - ] - - -class ExtractMostRecentEmailReplyText(BaseModel): - operator: Literal["EXTRACT_MOST_RECENT_EMAIL_REPLY_TEXT"] - - inputs: Optional[List[Input]] = None - - property_name: Optional[str] = FieldInfo(alias="propertyName", default=None) - - value: Optional[str] = None - - -from .or_ import Or -from .xor import Xor -from .and_ import And -from .date import Date -from .not_ import Not -from .year import Year -from .month import Month -from .power import Power -from .add_time import AddTime -from .contains import Contains -from .is_blank import IsBlank -from .if_number import IfNumber -from .if_string import IfString -from .less_than import LessThan -from .more_than import MoreThan -from .substring import Substring -from .if_boolean import IfBoolean -from .is_present import IsPresent -from .lower_case import LowerCase -from .upper_case import UpperCase -from .add_numbers import AddNumbers -from .begins_with import BeginsWith -from .max_numbers import MaxNumbers -from .min_numbers import MinNumbers -from .square_root import SquareRoot -from .parse_number import ParseNumber -from .time_between import TimeBetween -from .number_equals import NumberEquals -from .string_equals import StringEquals -from .string_length import StringLength -from .subtract_time import SubtractTime -from .absolute_value import AbsoluteValue -from .concat_strings import ConcatStrings -from .divide_numbers import DivideNumbers -from .has_email_reply import HasEmailReply -from .period_to_weeks import PeriodToWeeks -from .format_full_name import FormatFullName -from .multiply_numbers import MultiplyNumbers -from .number_to_string import NumberToString -from .period_to_months import PeriodToMonths -from .round_up_numbers import RoundUpNumbers -from .subtract_numbers import SubtractNumbers -from .less_than_or_equal import LessThanOrEqual -from .more_than_or_equal import MoreThanOrEqual -from .round_down_numbers import RoundDownNumbers -from .dated_exchange_rate import DatedExchangeRate -from .fetch_exchange_rate import FetchExchangeRate -from .format_phone_number import FormatPhoneNumber -from .set_contains_string import SetContainsString -from .pipeline_probability import PipelineProbability -from .round_nearest_numbers import RoundNearestNumbers -from .is_pipeline_stage_closed import IsPipelineStageClosed -from .has_plain_text_email_reply import HasPlainTextEmailReply -from .time_between_skip_weekends import TimeBetweenSkipWeekends -from .fetch_currency_decimal_places import FetchCurrencyDecimalPlaces -from .format_searchable_phone_number import FormatSearchablePhoneNumber -from .extract_most_recent_email_reply_html import ExtractMostRecentEmailReplyHTML -from .extract_most_recent_plain_text_email_reply import ExtractMostRecentPlainTextEmailReply diff --git a/src/hubspot_sdk/types/cms/extract_most_recent_plain_text_email_reply.py b/src/hubspot_sdk/types/cms/extract_most_recent_plain_text_email_reply.py deleted file mode 100644 index d7e7b717..00000000 --- a/src/hubspot_sdk/types/cms/extract_most_recent_plain_text_email_reply.py +++ /dev/null @@ -1,256 +0,0 @@ -# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. - -from __future__ import annotations - -from typing import TYPE_CHECKING, List, Union, Optional -from typing_extensions import Literal, TypeAlias, TypeAliasType - -from pydantic import Field as FieldInfo - -from .now import Now -from .euler import Euler -from ..._compat import PYDANTIC_V1 -from ..._models import BaseModel -from .constant_number import ConstantNumber -from .constant_string import ConstantString -from .constant_boolean import ConstantBoolean -from .is_engagement_type import IsEngagementType -from .number_property_variable import NumberPropertyVariable -from .string_property_variable import StringPropertyVariable -from .boolean_property_variable import BooleanPropertyVariable -from .timestamp_of_property_variable import TimestampOfPropertyVariable -from .number_target_property_variable import NumberTargetPropertyVariable -from .string_target_property_variable import StringTargetPropertyVariable -from .boolean_target_property_variable import BooleanTargetPropertyVariable -from .fetch_single_currency_portal_currency import FetchSingleCurrencyPortalCurrency -from .timestamp_of_target_property_variable import TimestampOfTargetPropertyVariable - -__all__ = ["ExtractMostRecentPlainTextEmailReply", "Input"] - -if TYPE_CHECKING or not PYDANTIC_V1: - Input = TypeAliasType( - "Input", - Union[ - ConstantBoolean, - ConstantNumber, - ConstantString, - BooleanPropertyVariable, - StringPropertyVariable, - NumberPropertyVariable, - TimestampOfPropertyVariable, - BooleanTargetPropertyVariable, - StringTargetPropertyVariable, - NumberTargetPropertyVariable, - TimestampOfTargetPropertyVariable, - "AddNumbers", - "SubtractNumbers", - "MultiplyNumbers", - "DivideNumbers", - "RoundDownNumbers", - "RoundUpNumbers", - "RoundNearestNumbers", - "UpperCase", - "LowerCase", - "ConcatStrings", - "Contains", - "BeginsWith", - "NumberToString", - "ParseNumber", - "FetchExchangeRate", - "FetchCurrencyDecimalPlaces", - FetchSingleCurrencyPortalCurrency, - "DatedExchangeRate", - "PipelineProbability", - "MaxNumbers", - "MinNumbers", - "LessThan", - "LessThanOrEqual", - "MoreThan", - "MoreThanOrEqual", - "NumberEquals", - "StringEquals", - "IsPipelineStageClosed", - "Not", - "Date", - "Month", - "Year", - Now, - "TimeBetween", - "TimeBetweenSkipWeekends", - "PeriodToMonths", - "PeriodToWeeks", - "And", - "Or", - "Xor", - "IfString", - "IfNumber", - "IfBoolean", - "IsPresent", - "HasEmailReply", - "HasPlainTextEmailReply", - "ExtractMostRecentEmailReplyHTML", - "ExtractMostRecentEmailReplyText", - "ExtractMostRecentPlainTextEmailReply", - "SetContainsString", - IsEngagementType, - "FormatFullName", - "FormatPhoneNumber", - "FormatSearchablePhoneNumber", - "AbsoluteValue", - "SquareRoot", - "Power", - "Substring", - Euler, - "StringLength", - "IsBlank", - "AddTime", - "SubtractTime", - ], - ) -else: - Input: TypeAlias = Union[ - ConstantBoolean, - ConstantNumber, - ConstantString, - BooleanPropertyVariable, - StringPropertyVariable, - NumberPropertyVariable, - TimestampOfPropertyVariable, - BooleanTargetPropertyVariable, - StringTargetPropertyVariable, - NumberTargetPropertyVariable, - TimestampOfTargetPropertyVariable, - "AddNumbers", - "SubtractNumbers", - "MultiplyNumbers", - "DivideNumbers", - "RoundDownNumbers", - "RoundUpNumbers", - "RoundNearestNumbers", - "UpperCase", - "LowerCase", - "ConcatStrings", - "Contains", - "BeginsWith", - "NumberToString", - "ParseNumber", - "FetchExchangeRate", - "FetchCurrencyDecimalPlaces", - FetchSingleCurrencyPortalCurrency, - "DatedExchangeRate", - "PipelineProbability", - "MaxNumbers", - "MinNumbers", - "LessThan", - "LessThanOrEqual", - "MoreThan", - "MoreThanOrEqual", - "NumberEquals", - "StringEquals", - "IsPipelineStageClosed", - "Not", - "Date", - "Month", - "Year", - Now, - "TimeBetween", - "TimeBetweenSkipWeekends", - "PeriodToMonths", - "PeriodToWeeks", - "And", - "Or", - "Xor", - "IfString", - "IfNumber", - "IfBoolean", - "IsPresent", - "HasEmailReply", - "HasPlainTextEmailReply", - "ExtractMostRecentEmailReplyHTML", - "ExtractMostRecentEmailReplyText", - "ExtractMostRecentPlainTextEmailReply", - "SetContainsString", - IsEngagementType, - "FormatFullName", - "FormatPhoneNumber", - "FormatSearchablePhoneNumber", - "AbsoluteValue", - "SquareRoot", - "Power", - "Substring", - Euler, - "StringLength", - "IsBlank", - "AddTime", - "SubtractTime", - ] - - -class ExtractMostRecentPlainTextEmailReply(BaseModel): - operator: Literal["EXTRACT_MOST_RECENT_PLAIN_TEXT_EMAIL_REPLY"] - - inputs: Optional[List[Input]] = None - - property_name: Optional[str] = FieldInfo(alias="propertyName", default=None) - - value: Optional[str] = None - - -from .or_ import Or -from .xor import Xor -from .and_ import And -from .date import Date -from .not_ import Not -from .year import Year -from .month import Month -from .power import Power -from .add_time import AddTime -from .contains import Contains -from .is_blank import IsBlank -from .if_number import IfNumber -from .if_string import IfString -from .less_than import LessThan -from .more_than import MoreThan -from .substring import Substring -from .if_boolean import IfBoolean -from .is_present import IsPresent -from .lower_case import LowerCase -from .upper_case import UpperCase -from .add_numbers import AddNumbers -from .begins_with import BeginsWith -from .max_numbers import MaxNumbers -from .min_numbers import MinNumbers -from .square_root import SquareRoot -from .parse_number import ParseNumber -from .time_between import TimeBetween -from .number_equals import NumberEquals -from .string_equals import StringEquals -from .string_length import StringLength -from .subtract_time import SubtractTime -from .absolute_value import AbsoluteValue -from .concat_strings import ConcatStrings -from .divide_numbers import DivideNumbers -from .has_email_reply import HasEmailReply -from .period_to_weeks import PeriodToWeeks -from .format_full_name import FormatFullName -from .multiply_numbers import MultiplyNumbers -from .number_to_string import NumberToString -from .period_to_months import PeriodToMonths -from .round_up_numbers import RoundUpNumbers -from .subtract_numbers import SubtractNumbers -from .less_than_or_equal import LessThanOrEqual -from .more_than_or_equal import MoreThanOrEqual -from .round_down_numbers import RoundDownNumbers -from .dated_exchange_rate import DatedExchangeRate -from .fetch_exchange_rate import FetchExchangeRate -from .format_phone_number import FormatPhoneNumber -from .set_contains_string import SetContainsString -from .pipeline_probability import PipelineProbability -from .round_nearest_numbers import RoundNearestNumbers -from .is_pipeline_stage_closed import IsPipelineStageClosed -from .has_plain_text_email_reply import HasPlainTextEmailReply -from .time_between_skip_weekends import TimeBetweenSkipWeekends -from .fetch_currency_decimal_places import FetchCurrencyDecimalPlaces -from .format_searchable_phone_number import FormatSearchablePhoneNumber -from .extract_most_recent_email_reply_html import ExtractMostRecentEmailReplyHTML -from .extract_most_recent_email_reply_text import ExtractMostRecentEmailReplyText diff --git a/src/hubspot_sdk/types/cms/fetch_currency_decimal_places.py b/src/hubspot_sdk/types/cms/fetch_currency_decimal_places.py deleted file mode 100644 index 736ce2e7..00000000 --- a/src/hubspot_sdk/types/cms/fetch_currency_decimal_places.py +++ /dev/null @@ -1,256 +0,0 @@ -# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. - -from __future__ import annotations - -from typing import TYPE_CHECKING, List, Union, Optional -from typing_extensions import Literal, TypeAlias, TypeAliasType - -from pydantic import Field as FieldInfo - -from .now import Now -from .euler import Euler -from ..._compat import PYDANTIC_V1 -from ..._models import BaseModel -from .constant_number import ConstantNumber -from .constant_string import ConstantString -from .constant_boolean import ConstantBoolean -from .is_engagement_type import IsEngagementType -from .number_property_variable import NumberPropertyVariable -from .string_property_variable import StringPropertyVariable -from .boolean_property_variable import BooleanPropertyVariable -from .timestamp_of_property_variable import TimestampOfPropertyVariable -from .number_target_property_variable import NumberTargetPropertyVariable -from .string_target_property_variable import StringTargetPropertyVariable -from .boolean_target_property_variable import BooleanTargetPropertyVariable -from .fetch_single_currency_portal_currency import FetchSingleCurrencyPortalCurrency -from .timestamp_of_target_property_variable import TimestampOfTargetPropertyVariable - -__all__ = ["FetchCurrencyDecimalPlaces", "Input"] - -if TYPE_CHECKING or not PYDANTIC_V1: - Input = TypeAliasType( - "Input", - Union[ - ConstantBoolean, - ConstantNumber, - ConstantString, - BooleanPropertyVariable, - StringPropertyVariable, - NumberPropertyVariable, - TimestampOfPropertyVariable, - BooleanTargetPropertyVariable, - StringTargetPropertyVariable, - NumberTargetPropertyVariable, - TimestampOfTargetPropertyVariable, - "AddNumbers", - "SubtractNumbers", - "MultiplyNumbers", - "DivideNumbers", - "RoundDownNumbers", - "RoundUpNumbers", - "RoundNearestNumbers", - "UpperCase", - "LowerCase", - "ConcatStrings", - "Contains", - "BeginsWith", - "NumberToString", - "ParseNumber", - "FetchExchangeRate", - "FetchCurrencyDecimalPlaces", - FetchSingleCurrencyPortalCurrency, - "DatedExchangeRate", - "PipelineProbability", - "MaxNumbers", - "MinNumbers", - "LessThan", - "LessThanOrEqual", - "MoreThan", - "MoreThanOrEqual", - "NumberEquals", - "StringEquals", - "IsPipelineStageClosed", - "Not", - "Date", - "Month", - "Year", - Now, - "TimeBetween", - "TimeBetweenSkipWeekends", - "PeriodToMonths", - "PeriodToWeeks", - "And", - "Or", - "Xor", - "IfString", - "IfNumber", - "IfBoolean", - "IsPresent", - "HasEmailReply", - "HasPlainTextEmailReply", - "ExtractMostRecentEmailReplyHTML", - "ExtractMostRecentEmailReplyText", - "ExtractMostRecentPlainTextEmailReply", - "SetContainsString", - IsEngagementType, - "FormatFullName", - "FormatPhoneNumber", - "FormatSearchablePhoneNumber", - "AbsoluteValue", - "SquareRoot", - "Power", - "Substring", - Euler, - "StringLength", - "IsBlank", - "AddTime", - "SubtractTime", - ], - ) -else: - Input: TypeAlias = Union[ - ConstantBoolean, - ConstantNumber, - ConstantString, - BooleanPropertyVariable, - StringPropertyVariable, - NumberPropertyVariable, - TimestampOfPropertyVariable, - BooleanTargetPropertyVariable, - StringTargetPropertyVariable, - NumberTargetPropertyVariable, - TimestampOfTargetPropertyVariable, - "AddNumbers", - "SubtractNumbers", - "MultiplyNumbers", - "DivideNumbers", - "RoundDownNumbers", - "RoundUpNumbers", - "RoundNearestNumbers", - "UpperCase", - "LowerCase", - "ConcatStrings", - "Contains", - "BeginsWith", - "NumberToString", - "ParseNumber", - "FetchExchangeRate", - "FetchCurrencyDecimalPlaces", - FetchSingleCurrencyPortalCurrency, - "DatedExchangeRate", - "PipelineProbability", - "MaxNumbers", - "MinNumbers", - "LessThan", - "LessThanOrEqual", - "MoreThan", - "MoreThanOrEqual", - "NumberEquals", - "StringEquals", - "IsPipelineStageClosed", - "Not", - "Date", - "Month", - "Year", - Now, - "TimeBetween", - "TimeBetweenSkipWeekends", - "PeriodToMonths", - "PeriodToWeeks", - "And", - "Or", - "Xor", - "IfString", - "IfNumber", - "IfBoolean", - "IsPresent", - "HasEmailReply", - "HasPlainTextEmailReply", - "ExtractMostRecentEmailReplyHTML", - "ExtractMostRecentEmailReplyText", - "ExtractMostRecentPlainTextEmailReply", - "SetContainsString", - IsEngagementType, - "FormatFullName", - "FormatPhoneNumber", - "FormatSearchablePhoneNumber", - "AbsoluteValue", - "SquareRoot", - "Power", - "Substring", - Euler, - "StringLength", - "IsBlank", - "AddTime", - "SubtractTime", - ] - - -class FetchCurrencyDecimalPlaces(BaseModel): - operator: Literal["FETCH_CURRENCY_DECIMAL_PLACES"] - - inputs: Optional[List[Input]] = None - - property_name: Optional[str] = FieldInfo(alias="propertyName", default=None) - - value: Optional[float] = None - - -from .or_ import Or -from .xor import Xor -from .and_ import And -from .date import Date -from .not_ import Not -from .year import Year -from .month import Month -from .power import Power -from .add_time import AddTime -from .contains import Contains -from .is_blank import IsBlank -from .if_number import IfNumber -from .if_string import IfString -from .less_than import LessThan -from .more_than import MoreThan -from .substring import Substring -from .if_boolean import IfBoolean -from .is_present import IsPresent -from .lower_case import LowerCase -from .upper_case import UpperCase -from .add_numbers import AddNumbers -from .begins_with import BeginsWith -from .max_numbers import MaxNumbers -from .min_numbers import MinNumbers -from .square_root import SquareRoot -from .parse_number import ParseNumber -from .time_between import TimeBetween -from .number_equals import NumberEquals -from .string_equals import StringEquals -from .string_length import StringLength -from .subtract_time import SubtractTime -from .absolute_value import AbsoluteValue -from .concat_strings import ConcatStrings -from .divide_numbers import DivideNumbers -from .has_email_reply import HasEmailReply -from .period_to_weeks import PeriodToWeeks -from .format_full_name import FormatFullName -from .multiply_numbers import MultiplyNumbers -from .number_to_string import NumberToString -from .period_to_months import PeriodToMonths -from .round_up_numbers import RoundUpNumbers -from .subtract_numbers import SubtractNumbers -from .less_than_or_equal import LessThanOrEqual -from .more_than_or_equal import MoreThanOrEqual -from .round_down_numbers import RoundDownNumbers -from .dated_exchange_rate import DatedExchangeRate -from .fetch_exchange_rate import FetchExchangeRate -from .format_phone_number import FormatPhoneNumber -from .set_contains_string import SetContainsString -from .pipeline_probability import PipelineProbability -from .round_nearest_numbers import RoundNearestNumbers -from .is_pipeline_stage_closed import IsPipelineStageClosed -from .has_plain_text_email_reply import HasPlainTextEmailReply -from .time_between_skip_weekends import TimeBetweenSkipWeekends -from .format_searchable_phone_number import FormatSearchablePhoneNumber -from .extract_most_recent_email_reply_html import ExtractMostRecentEmailReplyHTML -from .extract_most_recent_email_reply_text import ExtractMostRecentEmailReplyText -from .extract_most_recent_plain_text_email_reply import ExtractMostRecentPlainTextEmailReply diff --git a/src/hubspot_sdk/types/cms/fetch_exchange_rate.py b/src/hubspot_sdk/types/cms/fetch_exchange_rate.py deleted file mode 100644 index 1421dffc..00000000 --- a/src/hubspot_sdk/types/cms/fetch_exchange_rate.py +++ /dev/null @@ -1,256 +0,0 @@ -# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. - -from __future__ import annotations - -from typing import TYPE_CHECKING, List, Union, Optional -from typing_extensions import Literal, TypeAlias, TypeAliasType - -from pydantic import Field as FieldInfo - -from .now import Now -from .euler import Euler -from ..._compat import PYDANTIC_V1 -from ..._models import BaseModel -from .constant_number import ConstantNumber -from .constant_string import ConstantString -from .constant_boolean import ConstantBoolean -from .is_engagement_type import IsEngagementType -from .number_property_variable import NumberPropertyVariable -from .string_property_variable import StringPropertyVariable -from .boolean_property_variable import BooleanPropertyVariable -from .timestamp_of_property_variable import TimestampOfPropertyVariable -from .number_target_property_variable import NumberTargetPropertyVariable -from .string_target_property_variable import StringTargetPropertyVariable -from .boolean_target_property_variable import BooleanTargetPropertyVariable -from .fetch_single_currency_portal_currency import FetchSingleCurrencyPortalCurrency -from .timestamp_of_target_property_variable import TimestampOfTargetPropertyVariable - -__all__ = ["FetchExchangeRate", "Input"] - -if TYPE_CHECKING or not PYDANTIC_V1: - Input = TypeAliasType( - "Input", - Union[ - ConstantBoolean, - ConstantNumber, - ConstantString, - BooleanPropertyVariable, - StringPropertyVariable, - NumberPropertyVariable, - TimestampOfPropertyVariable, - BooleanTargetPropertyVariable, - StringTargetPropertyVariable, - NumberTargetPropertyVariable, - TimestampOfTargetPropertyVariable, - "AddNumbers", - "SubtractNumbers", - "MultiplyNumbers", - "DivideNumbers", - "RoundDownNumbers", - "RoundUpNumbers", - "RoundNearestNumbers", - "UpperCase", - "LowerCase", - "ConcatStrings", - "Contains", - "BeginsWith", - "NumberToString", - "ParseNumber", - "FetchExchangeRate", - "FetchCurrencyDecimalPlaces", - FetchSingleCurrencyPortalCurrency, - "DatedExchangeRate", - "PipelineProbability", - "MaxNumbers", - "MinNumbers", - "LessThan", - "LessThanOrEqual", - "MoreThan", - "MoreThanOrEqual", - "NumberEquals", - "StringEquals", - "IsPipelineStageClosed", - "Not", - "Date", - "Month", - "Year", - Now, - "TimeBetween", - "TimeBetweenSkipWeekends", - "PeriodToMonths", - "PeriodToWeeks", - "And", - "Or", - "Xor", - "IfString", - "IfNumber", - "IfBoolean", - "IsPresent", - "HasEmailReply", - "HasPlainTextEmailReply", - "ExtractMostRecentEmailReplyHTML", - "ExtractMostRecentEmailReplyText", - "ExtractMostRecentPlainTextEmailReply", - "SetContainsString", - IsEngagementType, - "FormatFullName", - "FormatPhoneNumber", - "FormatSearchablePhoneNumber", - "AbsoluteValue", - "SquareRoot", - "Power", - "Substring", - Euler, - "StringLength", - "IsBlank", - "AddTime", - "SubtractTime", - ], - ) -else: - Input: TypeAlias = Union[ - ConstantBoolean, - ConstantNumber, - ConstantString, - BooleanPropertyVariable, - StringPropertyVariable, - NumberPropertyVariable, - TimestampOfPropertyVariable, - BooleanTargetPropertyVariable, - StringTargetPropertyVariable, - NumberTargetPropertyVariable, - TimestampOfTargetPropertyVariable, - "AddNumbers", - "SubtractNumbers", - "MultiplyNumbers", - "DivideNumbers", - "RoundDownNumbers", - "RoundUpNumbers", - "RoundNearestNumbers", - "UpperCase", - "LowerCase", - "ConcatStrings", - "Contains", - "BeginsWith", - "NumberToString", - "ParseNumber", - "FetchExchangeRate", - "FetchCurrencyDecimalPlaces", - FetchSingleCurrencyPortalCurrency, - "DatedExchangeRate", - "PipelineProbability", - "MaxNumbers", - "MinNumbers", - "LessThan", - "LessThanOrEqual", - "MoreThan", - "MoreThanOrEqual", - "NumberEquals", - "StringEquals", - "IsPipelineStageClosed", - "Not", - "Date", - "Month", - "Year", - Now, - "TimeBetween", - "TimeBetweenSkipWeekends", - "PeriodToMonths", - "PeriodToWeeks", - "And", - "Or", - "Xor", - "IfString", - "IfNumber", - "IfBoolean", - "IsPresent", - "HasEmailReply", - "HasPlainTextEmailReply", - "ExtractMostRecentEmailReplyHTML", - "ExtractMostRecentEmailReplyText", - "ExtractMostRecentPlainTextEmailReply", - "SetContainsString", - IsEngagementType, - "FormatFullName", - "FormatPhoneNumber", - "FormatSearchablePhoneNumber", - "AbsoluteValue", - "SquareRoot", - "Power", - "Substring", - Euler, - "StringLength", - "IsBlank", - "AddTime", - "SubtractTime", - ] - - -class FetchExchangeRate(BaseModel): - operator: Literal["FETCH_EXCHANGE_RATE"] - - inputs: Optional[List[Input]] = None - - property_name: Optional[str] = FieldInfo(alias="propertyName", default=None) - - value: Optional[float] = None - - -from .or_ import Or -from .xor import Xor -from .and_ import And -from .date import Date -from .not_ import Not -from .year import Year -from .month import Month -from .power import Power -from .add_time import AddTime -from .contains import Contains -from .is_blank import IsBlank -from .if_number import IfNumber -from .if_string import IfString -from .less_than import LessThan -from .more_than import MoreThan -from .substring import Substring -from .if_boolean import IfBoolean -from .is_present import IsPresent -from .lower_case import LowerCase -from .upper_case import UpperCase -from .add_numbers import AddNumbers -from .begins_with import BeginsWith -from .max_numbers import MaxNumbers -from .min_numbers import MinNumbers -from .square_root import SquareRoot -from .parse_number import ParseNumber -from .time_between import TimeBetween -from .number_equals import NumberEquals -from .string_equals import StringEquals -from .string_length import StringLength -from .subtract_time import SubtractTime -from .absolute_value import AbsoluteValue -from .concat_strings import ConcatStrings -from .divide_numbers import DivideNumbers -from .has_email_reply import HasEmailReply -from .period_to_weeks import PeriodToWeeks -from .format_full_name import FormatFullName -from .multiply_numbers import MultiplyNumbers -from .number_to_string import NumberToString -from .period_to_months import PeriodToMonths -from .round_up_numbers import RoundUpNumbers -from .subtract_numbers import SubtractNumbers -from .less_than_or_equal import LessThanOrEqual -from .more_than_or_equal import MoreThanOrEqual -from .round_down_numbers import RoundDownNumbers -from .dated_exchange_rate import DatedExchangeRate -from .format_phone_number import FormatPhoneNumber -from .set_contains_string import SetContainsString -from .pipeline_probability import PipelineProbability -from .round_nearest_numbers import RoundNearestNumbers -from .is_pipeline_stage_closed import IsPipelineStageClosed -from .has_plain_text_email_reply import HasPlainTextEmailReply -from .time_between_skip_weekends import TimeBetweenSkipWeekends -from .fetch_currency_decimal_places import FetchCurrencyDecimalPlaces -from .format_searchable_phone_number import FormatSearchablePhoneNumber -from .extract_most_recent_email_reply_html import ExtractMostRecentEmailReplyHTML -from .extract_most_recent_email_reply_text import ExtractMostRecentEmailReplyText -from .extract_most_recent_plain_text_email_reply import ExtractMostRecentPlainTextEmailReply diff --git a/src/hubspot_sdk/types/cms/fetch_single_currency_portal_currency.py b/src/hubspot_sdk/types/cms/fetch_single_currency_portal_currency.py deleted file mode 100644 index 27d64e43..00000000 --- a/src/hubspot_sdk/types/cms/fetch_single_currency_portal_currency.py +++ /dev/null @@ -1,18 +0,0 @@ -# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. - -from typing import Optional -from typing_extensions import Literal - -from pydantic import Field as FieldInfo - -from ..._models import BaseModel - -__all__ = ["FetchSingleCurrencyPortalCurrency"] - - -class FetchSingleCurrencyPortalCurrency(BaseModel): - operator: Literal["FETCH_SINGLE_CURRENCY_PORTAL_CURRENCY"] - - property_name: Optional[str] = FieldInfo(alias="propertyName", default=None) - - value: Optional[str] = None diff --git a/src/hubspot_sdk/types/cms/format_full_name.py b/src/hubspot_sdk/types/cms/format_full_name.py deleted file mode 100644 index eeeb830e..00000000 --- a/src/hubspot_sdk/types/cms/format_full_name.py +++ /dev/null @@ -1,256 +0,0 @@ -# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. - -from __future__ import annotations - -from typing import TYPE_CHECKING, List, Union, Optional -from typing_extensions import Literal, TypeAlias, TypeAliasType - -from pydantic import Field as FieldInfo - -from .now import Now -from .euler import Euler -from ..._compat import PYDANTIC_V1 -from ..._models import BaseModel -from .constant_number import ConstantNumber -from .constant_string import ConstantString -from .constant_boolean import ConstantBoolean -from .is_engagement_type import IsEngagementType -from .number_property_variable import NumberPropertyVariable -from .string_property_variable import StringPropertyVariable -from .boolean_property_variable import BooleanPropertyVariable -from .timestamp_of_property_variable import TimestampOfPropertyVariable -from .number_target_property_variable import NumberTargetPropertyVariable -from .string_target_property_variable import StringTargetPropertyVariable -from .boolean_target_property_variable import BooleanTargetPropertyVariable -from .fetch_single_currency_portal_currency import FetchSingleCurrencyPortalCurrency -from .timestamp_of_target_property_variable import TimestampOfTargetPropertyVariable - -__all__ = ["FormatFullName", "Input"] - -if TYPE_CHECKING or not PYDANTIC_V1: - Input = TypeAliasType( - "Input", - Union[ - ConstantBoolean, - ConstantNumber, - ConstantString, - BooleanPropertyVariable, - StringPropertyVariable, - NumberPropertyVariable, - TimestampOfPropertyVariable, - BooleanTargetPropertyVariable, - StringTargetPropertyVariable, - NumberTargetPropertyVariable, - TimestampOfTargetPropertyVariable, - "AddNumbers", - "SubtractNumbers", - "MultiplyNumbers", - "DivideNumbers", - "RoundDownNumbers", - "RoundUpNumbers", - "RoundNearestNumbers", - "UpperCase", - "LowerCase", - "ConcatStrings", - "Contains", - "BeginsWith", - "NumberToString", - "ParseNumber", - "FetchExchangeRate", - "FetchCurrencyDecimalPlaces", - FetchSingleCurrencyPortalCurrency, - "DatedExchangeRate", - "PipelineProbability", - "MaxNumbers", - "MinNumbers", - "LessThan", - "LessThanOrEqual", - "MoreThan", - "MoreThanOrEqual", - "NumberEquals", - "StringEquals", - "IsPipelineStageClosed", - "Not", - "Date", - "Month", - "Year", - Now, - "TimeBetween", - "TimeBetweenSkipWeekends", - "PeriodToMonths", - "PeriodToWeeks", - "And", - "Or", - "Xor", - "IfString", - "IfNumber", - "IfBoolean", - "IsPresent", - "HasEmailReply", - "HasPlainTextEmailReply", - "ExtractMostRecentEmailReplyHTML", - "ExtractMostRecentEmailReplyText", - "ExtractMostRecentPlainTextEmailReply", - "SetContainsString", - IsEngagementType, - "FormatFullName", - "FormatPhoneNumber", - "FormatSearchablePhoneNumber", - "AbsoluteValue", - "SquareRoot", - "Power", - "Substring", - Euler, - "StringLength", - "IsBlank", - "AddTime", - "SubtractTime", - ], - ) -else: - Input: TypeAlias = Union[ - ConstantBoolean, - ConstantNumber, - ConstantString, - BooleanPropertyVariable, - StringPropertyVariable, - NumberPropertyVariable, - TimestampOfPropertyVariable, - BooleanTargetPropertyVariable, - StringTargetPropertyVariable, - NumberTargetPropertyVariable, - TimestampOfTargetPropertyVariable, - "AddNumbers", - "SubtractNumbers", - "MultiplyNumbers", - "DivideNumbers", - "RoundDownNumbers", - "RoundUpNumbers", - "RoundNearestNumbers", - "UpperCase", - "LowerCase", - "ConcatStrings", - "Contains", - "BeginsWith", - "NumberToString", - "ParseNumber", - "FetchExchangeRate", - "FetchCurrencyDecimalPlaces", - FetchSingleCurrencyPortalCurrency, - "DatedExchangeRate", - "PipelineProbability", - "MaxNumbers", - "MinNumbers", - "LessThan", - "LessThanOrEqual", - "MoreThan", - "MoreThanOrEqual", - "NumberEquals", - "StringEquals", - "IsPipelineStageClosed", - "Not", - "Date", - "Month", - "Year", - Now, - "TimeBetween", - "TimeBetweenSkipWeekends", - "PeriodToMonths", - "PeriodToWeeks", - "And", - "Or", - "Xor", - "IfString", - "IfNumber", - "IfBoolean", - "IsPresent", - "HasEmailReply", - "HasPlainTextEmailReply", - "ExtractMostRecentEmailReplyHTML", - "ExtractMostRecentEmailReplyText", - "ExtractMostRecentPlainTextEmailReply", - "SetContainsString", - IsEngagementType, - "FormatFullName", - "FormatPhoneNumber", - "FormatSearchablePhoneNumber", - "AbsoluteValue", - "SquareRoot", - "Power", - "Substring", - Euler, - "StringLength", - "IsBlank", - "AddTime", - "SubtractTime", - ] - - -class FormatFullName(BaseModel): - operator: Literal["FORMAT_FULL_NAME"] - - inputs: Optional[List[Input]] = None - - property_name: Optional[str] = FieldInfo(alias="propertyName", default=None) - - value: Optional[str] = None - - -from .or_ import Or -from .xor import Xor -from .and_ import And -from .date import Date -from .not_ import Not -from .year import Year -from .month import Month -from .power import Power -from .add_time import AddTime -from .contains import Contains -from .is_blank import IsBlank -from .if_number import IfNumber -from .if_string import IfString -from .less_than import LessThan -from .more_than import MoreThan -from .substring import Substring -from .if_boolean import IfBoolean -from .is_present import IsPresent -from .lower_case import LowerCase -from .upper_case import UpperCase -from .add_numbers import AddNumbers -from .begins_with import BeginsWith -from .max_numbers import MaxNumbers -from .min_numbers import MinNumbers -from .square_root import SquareRoot -from .parse_number import ParseNumber -from .time_between import TimeBetween -from .number_equals import NumberEquals -from .string_equals import StringEquals -from .string_length import StringLength -from .subtract_time import SubtractTime -from .absolute_value import AbsoluteValue -from .concat_strings import ConcatStrings -from .divide_numbers import DivideNumbers -from .has_email_reply import HasEmailReply -from .period_to_weeks import PeriodToWeeks -from .multiply_numbers import MultiplyNumbers -from .number_to_string import NumberToString -from .period_to_months import PeriodToMonths -from .round_up_numbers import RoundUpNumbers -from .subtract_numbers import SubtractNumbers -from .less_than_or_equal import LessThanOrEqual -from .more_than_or_equal import MoreThanOrEqual -from .round_down_numbers import RoundDownNumbers -from .dated_exchange_rate import DatedExchangeRate -from .fetch_exchange_rate import FetchExchangeRate -from .format_phone_number import FormatPhoneNumber -from .set_contains_string import SetContainsString -from .pipeline_probability import PipelineProbability -from .round_nearest_numbers import RoundNearestNumbers -from .is_pipeline_stage_closed import IsPipelineStageClosed -from .has_plain_text_email_reply import HasPlainTextEmailReply -from .time_between_skip_weekends import TimeBetweenSkipWeekends -from .fetch_currency_decimal_places import FetchCurrencyDecimalPlaces -from .format_searchable_phone_number import FormatSearchablePhoneNumber -from .extract_most_recent_email_reply_html import ExtractMostRecentEmailReplyHTML -from .extract_most_recent_email_reply_text import ExtractMostRecentEmailReplyText -from .extract_most_recent_plain_text_email_reply import ExtractMostRecentPlainTextEmailReply diff --git a/src/hubspot_sdk/types/cms/format_phone_number.py b/src/hubspot_sdk/types/cms/format_phone_number.py deleted file mode 100644 index 747c1a3a..00000000 --- a/src/hubspot_sdk/types/cms/format_phone_number.py +++ /dev/null @@ -1,256 +0,0 @@ -# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. - -from __future__ import annotations - -from typing import TYPE_CHECKING, List, Union, Optional -from typing_extensions import Literal, TypeAlias, TypeAliasType - -from pydantic import Field as FieldInfo - -from .now import Now -from .euler import Euler -from ..._compat import PYDANTIC_V1 -from ..._models import BaseModel -from .constant_number import ConstantNumber -from .constant_string import ConstantString -from .constant_boolean import ConstantBoolean -from .is_engagement_type import IsEngagementType -from .number_property_variable import NumberPropertyVariable -from .string_property_variable import StringPropertyVariable -from .boolean_property_variable import BooleanPropertyVariable -from .timestamp_of_property_variable import TimestampOfPropertyVariable -from .number_target_property_variable import NumberTargetPropertyVariable -from .string_target_property_variable import StringTargetPropertyVariable -from .boolean_target_property_variable import BooleanTargetPropertyVariable -from .fetch_single_currency_portal_currency import FetchSingleCurrencyPortalCurrency -from .timestamp_of_target_property_variable import TimestampOfTargetPropertyVariable - -__all__ = ["FormatPhoneNumber", "Input"] - -if TYPE_CHECKING or not PYDANTIC_V1: - Input = TypeAliasType( - "Input", - Union[ - ConstantBoolean, - ConstantNumber, - ConstantString, - BooleanPropertyVariable, - StringPropertyVariable, - NumberPropertyVariable, - TimestampOfPropertyVariable, - BooleanTargetPropertyVariable, - StringTargetPropertyVariable, - NumberTargetPropertyVariable, - TimestampOfTargetPropertyVariable, - "AddNumbers", - "SubtractNumbers", - "MultiplyNumbers", - "DivideNumbers", - "RoundDownNumbers", - "RoundUpNumbers", - "RoundNearestNumbers", - "UpperCase", - "LowerCase", - "ConcatStrings", - "Contains", - "BeginsWith", - "NumberToString", - "ParseNumber", - "FetchExchangeRate", - "FetchCurrencyDecimalPlaces", - FetchSingleCurrencyPortalCurrency, - "DatedExchangeRate", - "PipelineProbability", - "MaxNumbers", - "MinNumbers", - "LessThan", - "LessThanOrEqual", - "MoreThan", - "MoreThanOrEqual", - "NumberEquals", - "StringEquals", - "IsPipelineStageClosed", - "Not", - "Date", - "Month", - "Year", - Now, - "TimeBetween", - "TimeBetweenSkipWeekends", - "PeriodToMonths", - "PeriodToWeeks", - "And", - "Or", - "Xor", - "IfString", - "IfNumber", - "IfBoolean", - "IsPresent", - "HasEmailReply", - "HasPlainTextEmailReply", - "ExtractMostRecentEmailReplyHTML", - "ExtractMostRecentEmailReplyText", - "ExtractMostRecentPlainTextEmailReply", - "SetContainsString", - IsEngagementType, - "FormatFullName", - "FormatPhoneNumber", - "FormatSearchablePhoneNumber", - "AbsoluteValue", - "SquareRoot", - "Power", - "Substring", - Euler, - "StringLength", - "IsBlank", - "AddTime", - "SubtractTime", - ], - ) -else: - Input: TypeAlias = Union[ - ConstantBoolean, - ConstantNumber, - ConstantString, - BooleanPropertyVariable, - StringPropertyVariable, - NumberPropertyVariable, - TimestampOfPropertyVariable, - BooleanTargetPropertyVariable, - StringTargetPropertyVariable, - NumberTargetPropertyVariable, - TimestampOfTargetPropertyVariable, - "AddNumbers", - "SubtractNumbers", - "MultiplyNumbers", - "DivideNumbers", - "RoundDownNumbers", - "RoundUpNumbers", - "RoundNearestNumbers", - "UpperCase", - "LowerCase", - "ConcatStrings", - "Contains", - "BeginsWith", - "NumberToString", - "ParseNumber", - "FetchExchangeRate", - "FetchCurrencyDecimalPlaces", - FetchSingleCurrencyPortalCurrency, - "DatedExchangeRate", - "PipelineProbability", - "MaxNumbers", - "MinNumbers", - "LessThan", - "LessThanOrEqual", - "MoreThan", - "MoreThanOrEqual", - "NumberEquals", - "StringEquals", - "IsPipelineStageClosed", - "Not", - "Date", - "Month", - "Year", - Now, - "TimeBetween", - "TimeBetweenSkipWeekends", - "PeriodToMonths", - "PeriodToWeeks", - "And", - "Or", - "Xor", - "IfString", - "IfNumber", - "IfBoolean", - "IsPresent", - "HasEmailReply", - "HasPlainTextEmailReply", - "ExtractMostRecentEmailReplyHTML", - "ExtractMostRecentEmailReplyText", - "ExtractMostRecentPlainTextEmailReply", - "SetContainsString", - IsEngagementType, - "FormatFullName", - "FormatPhoneNumber", - "FormatSearchablePhoneNumber", - "AbsoluteValue", - "SquareRoot", - "Power", - "Substring", - Euler, - "StringLength", - "IsBlank", - "AddTime", - "SubtractTime", - ] - - -class FormatPhoneNumber(BaseModel): - operator: Literal["FORMAT_PHONE_NUMBER"] - - inputs: Optional[List[Input]] = None - - property_name: Optional[str] = FieldInfo(alias="propertyName", default=None) - - value: Optional[str] = None - - -from .or_ import Or -from .xor import Xor -from .and_ import And -from .date import Date -from .not_ import Not -from .year import Year -from .month import Month -from .power import Power -from .add_time import AddTime -from .contains import Contains -from .is_blank import IsBlank -from .if_number import IfNumber -from .if_string import IfString -from .less_than import LessThan -from .more_than import MoreThan -from .substring import Substring -from .if_boolean import IfBoolean -from .is_present import IsPresent -from .lower_case import LowerCase -from .upper_case import UpperCase -from .add_numbers import AddNumbers -from .begins_with import BeginsWith -from .max_numbers import MaxNumbers -from .min_numbers import MinNumbers -from .square_root import SquareRoot -from .parse_number import ParseNumber -from .time_between import TimeBetween -from .number_equals import NumberEquals -from .string_equals import StringEquals -from .string_length import StringLength -from .subtract_time import SubtractTime -from .absolute_value import AbsoluteValue -from .concat_strings import ConcatStrings -from .divide_numbers import DivideNumbers -from .has_email_reply import HasEmailReply -from .period_to_weeks import PeriodToWeeks -from .format_full_name import FormatFullName -from .multiply_numbers import MultiplyNumbers -from .number_to_string import NumberToString -from .period_to_months import PeriodToMonths -from .round_up_numbers import RoundUpNumbers -from .subtract_numbers import SubtractNumbers -from .less_than_or_equal import LessThanOrEqual -from .more_than_or_equal import MoreThanOrEqual -from .round_down_numbers import RoundDownNumbers -from .dated_exchange_rate import DatedExchangeRate -from .fetch_exchange_rate import FetchExchangeRate -from .set_contains_string import SetContainsString -from .pipeline_probability import PipelineProbability -from .round_nearest_numbers import RoundNearestNumbers -from .is_pipeline_stage_closed import IsPipelineStageClosed -from .has_plain_text_email_reply import HasPlainTextEmailReply -from .time_between_skip_weekends import TimeBetweenSkipWeekends -from .fetch_currency_decimal_places import FetchCurrencyDecimalPlaces -from .format_searchable_phone_number import FormatSearchablePhoneNumber -from .extract_most_recent_email_reply_html import ExtractMostRecentEmailReplyHTML -from .extract_most_recent_email_reply_text import ExtractMostRecentEmailReplyText -from .extract_most_recent_plain_text_email_reply import ExtractMostRecentPlainTextEmailReply diff --git a/src/hubspot_sdk/types/cms/format_searchable_phone_number.py b/src/hubspot_sdk/types/cms/format_searchable_phone_number.py deleted file mode 100644 index b0d2dcf3..00000000 --- a/src/hubspot_sdk/types/cms/format_searchable_phone_number.py +++ /dev/null @@ -1,256 +0,0 @@ -# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. - -from __future__ import annotations - -from typing import TYPE_CHECKING, List, Union, Optional -from typing_extensions import Literal, TypeAlias, TypeAliasType - -from pydantic import Field as FieldInfo - -from .now import Now -from .euler import Euler -from ..._compat import PYDANTIC_V1 -from ..._models import BaseModel -from .constant_number import ConstantNumber -from .constant_string import ConstantString -from .constant_boolean import ConstantBoolean -from .is_engagement_type import IsEngagementType -from .number_property_variable import NumberPropertyVariable -from .string_property_variable import StringPropertyVariable -from .boolean_property_variable import BooleanPropertyVariable -from .timestamp_of_property_variable import TimestampOfPropertyVariable -from .number_target_property_variable import NumberTargetPropertyVariable -from .string_target_property_variable import StringTargetPropertyVariable -from .boolean_target_property_variable import BooleanTargetPropertyVariable -from .fetch_single_currency_portal_currency import FetchSingleCurrencyPortalCurrency -from .timestamp_of_target_property_variable import TimestampOfTargetPropertyVariable - -__all__ = ["FormatSearchablePhoneNumber", "Input"] - -if TYPE_CHECKING or not PYDANTIC_V1: - Input = TypeAliasType( - "Input", - Union[ - ConstantBoolean, - ConstantNumber, - ConstantString, - BooleanPropertyVariable, - StringPropertyVariable, - NumberPropertyVariable, - TimestampOfPropertyVariable, - BooleanTargetPropertyVariable, - StringTargetPropertyVariable, - NumberTargetPropertyVariable, - TimestampOfTargetPropertyVariable, - "AddNumbers", - "SubtractNumbers", - "MultiplyNumbers", - "DivideNumbers", - "RoundDownNumbers", - "RoundUpNumbers", - "RoundNearestNumbers", - "UpperCase", - "LowerCase", - "ConcatStrings", - "Contains", - "BeginsWith", - "NumberToString", - "ParseNumber", - "FetchExchangeRate", - "FetchCurrencyDecimalPlaces", - FetchSingleCurrencyPortalCurrency, - "DatedExchangeRate", - "PipelineProbability", - "MaxNumbers", - "MinNumbers", - "LessThan", - "LessThanOrEqual", - "MoreThan", - "MoreThanOrEqual", - "NumberEquals", - "StringEquals", - "IsPipelineStageClosed", - "Not", - "Date", - "Month", - "Year", - Now, - "TimeBetween", - "TimeBetweenSkipWeekends", - "PeriodToMonths", - "PeriodToWeeks", - "And", - "Or", - "Xor", - "IfString", - "IfNumber", - "IfBoolean", - "IsPresent", - "HasEmailReply", - "HasPlainTextEmailReply", - "ExtractMostRecentEmailReplyHTML", - "ExtractMostRecentEmailReplyText", - "ExtractMostRecentPlainTextEmailReply", - "SetContainsString", - IsEngagementType, - "FormatFullName", - "FormatPhoneNumber", - "FormatSearchablePhoneNumber", - "AbsoluteValue", - "SquareRoot", - "Power", - "Substring", - Euler, - "StringLength", - "IsBlank", - "AddTime", - "SubtractTime", - ], - ) -else: - Input: TypeAlias = Union[ - ConstantBoolean, - ConstantNumber, - ConstantString, - BooleanPropertyVariable, - StringPropertyVariable, - NumberPropertyVariable, - TimestampOfPropertyVariable, - BooleanTargetPropertyVariable, - StringTargetPropertyVariable, - NumberTargetPropertyVariable, - TimestampOfTargetPropertyVariable, - "AddNumbers", - "SubtractNumbers", - "MultiplyNumbers", - "DivideNumbers", - "RoundDownNumbers", - "RoundUpNumbers", - "RoundNearestNumbers", - "UpperCase", - "LowerCase", - "ConcatStrings", - "Contains", - "BeginsWith", - "NumberToString", - "ParseNumber", - "FetchExchangeRate", - "FetchCurrencyDecimalPlaces", - FetchSingleCurrencyPortalCurrency, - "DatedExchangeRate", - "PipelineProbability", - "MaxNumbers", - "MinNumbers", - "LessThan", - "LessThanOrEqual", - "MoreThan", - "MoreThanOrEqual", - "NumberEquals", - "StringEquals", - "IsPipelineStageClosed", - "Not", - "Date", - "Month", - "Year", - Now, - "TimeBetween", - "TimeBetweenSkipWeekends", - "PeriodToMonths", - "PeriodToWeeks", - "And", - "Or", - "Xor", - "IfString", - "IfNumber", - "IfBoolean", - "IsPresent", - "HasEmailReply", - "HasPlainTextEmailReply", - "ExtractMostRecentEmailReplyHTML", - "ExtractMostRecentEmailReplyText", - "ExtractMostRecentPlainTextEmailReply", - "SetContainsString", - IsEngagementType, - "FormatFullName", - "FormatPhoneNumber", - "FormatSearchablePhoneNumber", - "AbsoluteValue", - "SquareRoot", - "Power", - "Substring", - Euler, - "StringLength", - "IsBlank", - "AddTime", - "SubtractTime", - ] - - -class FormatSearchablePhoneNumber(BaseModel): - operator: Literal["FORMAT_SEARCHABLE_PHONE_NUMBER"] - - inputs: Optional[List[Input]] = None - - property_name: Optional[str] = FieldInfo(alias="propertyName", default=None) - - value: Optional[str] = None - - -from .or_ import Or -from .xor import Xor -from .and_ import And -from .date import Date -from .not_ import Not -from .year import Year -from .month import Month -from .power import Power -from .add_time import AddTime -from .contains import Contains -from .is_blank import IsBlank -from .if_number import IfNumber -from .if_string import IfString -from .less_than import LessThan -from .more_than import MoreThan -from .substring import Substring -from .if_boolean import IfBoolean -from .is_present import IsPresent -from .lower_case import LowerCase -from .upper_case import UpperCase -from .add_numbers import AddNumbers -from .begins_with import BeginsWith -from .max_numbers import MaxNumbers -from .min_numbers import MinNumbers -from .square_root import SquareRoot -from .parse_number import ParseNumber -from .time_between import TimeBetween -from .number_equals import NumberEquals -from .string_equals import StringEquals -from .string_length import StringLength -from .subtract_time import SubtractTime -from .absolute_value import AbsoluteValue -from .concat_strings import ConcatStrings -from .divide_numbers import DivideNumbers -from .has_email_reply import HasEmailReply -from .period_to_weeks import PeriodToWeeks -from .format_full_name import FormatFullName -from .multiply_numbers import MultiplyNumbers -from .number_to_string import NumberToString -from .period_to_months import PeriodToMonths -from .round_up_numbers import RoundUpNumbers -from .subtract_numbers import SubtractNumbers -from .less_than_or_equal import LessThanOrEqual -from .more_than_or_equal import MoreThanOrEqual -from .round_down_numbers import RoundDownNumbers -from .dated_exchange_rate import DatedExchangeRate -from .fetch_exchange_rate import FetchExchangeRate -from .format_phone_number import FormatPhoneNumber -from .set_contains_string import SetContainsString -from .pipeline_probability import PipelineProbability -from .round_nearest_numbers import RoundNearestNumbers -from .is_pipeline_stage_closed import IsPipelineStageClosed -from .has_plain_text_email_reply import HasPlainTextEmailReply -from .time_between_skip_weekends import TimeBetweenSkipWeekends -from .fetch_currency_decimal_places import FetchCurrencyDecimalPlaces -from .extract_most_recent_email_reply_html import ExtractMostRecentEmailReplyHTML -from .extract_most_recent_email_reply_text import ExtractMostRecentEmailReplyText -from .extract_most_recent_plain_text_email_reply import ExtractMostRecentPlainTextEmailReply diff --git a/src/hubspot_sdk/types/cms/has_email_reply.py b/src/hubspot_sdk/types/cms/has_email_reply.py deleted file mode 100644 index f24e9c97..00000000 --- a/src/hubspot_sdk/types/cms/has_email_reply.py +++ /dev/null @@ -1,256 +0,0 @@ -# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. - -from __future__ import annotations - -from typing import TYPE_CHECKING, List, Union, Optional -from typing_extensions import Literal, TypeAlias, TypeAliasType - -from pydantic import Field as FieldInfo - -from .now import Now -from .euler import Euler -from ..._compat import PYDANTIC_V1 -from ..._models import BaseModel -from .constant_number import ConstantNumber -from .constant_string import ConstantString -from .constant_boolean import ConstantBoolean -from .is_engagement_type import IsEngagementType -from .number_property_variable import NumberPropertyVariable -from .string_property_variable import StringPropertyVariable -from .boolean_property_variable import BooleanPropertyVariable -from .timestamp_of_property_variable import TimestampOfPropertyVariable -from .number_target_property_variable import NumberTargetPropertyVariable -from .string_target_property_variable import StringTargetPropertyVariable -from .boolean_target_property_variable import BooleanTargetPropertyVariable -from .fetch_single_currency_portal_currency import FetchSingleCurrencyPortalCurrency -from .timestamp_of_target_property_variable import TimestampOfTargetPropertyVariable - -__all__ = ["HasEmailReply", "Input"] - -if TYPE_CHECKING or not PYDANTIC_V1: - Input = TypeAliasType( - "Input", - Union[ - ConstantBoolean, - ConstantNumber, - ConstantString, - BooleanPropertyVariable, - StringPropertyVariable, - NumberPropertyVariable, - TimestampOfPropertyVariable, - BooleanTargetPropertyVariable, - StringTargetPropertyVariable, - NumberTargetPropertyVariable, - TimestampOfTargetPropertyVariable, - "AddNumbers", - "SubtractNumbers", - "MultiplyNumbers", - "DivideNumbers", - "RoundDownNumbers", - "RoundUpNumbers", - "RoundNearestNumbers", - "UpperCase", - "LowerCase", - "ConcatStrings", - "Contains", - "BeginsWith", - "NumberToString", - "ParseNumber", - "FetchExchangeRate", - "FetchCurrencyDecimalPlaces", - FetchSingleCurrencyPortalCurrency, - "DatedExchangeRate", - "PipelineProbability", - "MaxNumbers", - "MinNumbers", - "LessThan", - "LessThanOrEqual", - "MoreThan", - "MoreThanOrEqual", - "NumberEquals", - "StringEquals", - "IsPipelineStageClosed", - "Not", - "Date", - "Month", - "Year", - Now, - "TimeBetween", - "TimeBetweenSkipWeekends", - "PeriodToMonths", - "PeriodToWeeks", - "And", - "Or", - "Xor", - "IfString", - "IfNumber", - "IfBoolean", - "IsPresent", - "HasEmailReply", - "HasPlainTextEmailReply", - "ExtractMostRecentEmailReplyHTML", - "ExtractMostRecentEmailReplyText", - "ExtractMostRecentPlainTextEmailReply", - "SetContainsString", - IsEngagementType, - "FormatFullName", - "FormatPhoneNumber", - "FormatSearchablePhoneNumber", - "AbsoluteValue", - "SquareRoot", - "Power", - "Substring", - Euler, - "StringLength", - "IsBlank", - "AddTime", - "SubtractTime", - ], - ) -else: - Input: TypeAlias = Union[ - ConstantBoolean, - ConstantNumber, - ConstantString, - BooleanPropertyVariable, - StringPropertyVariable, - NumberPropertyVariable, - TimestampOfPropertyVariable, - BooleanTargetPropertyVariable, - StringTargetPropertyVariable, - NumberTargetPropertyVariable, - TimestampOfTargetPropertyVariable, - "AddNumbers", - "SubtractNumbers", - "MultiplyNumbers", - "DivideNumbers", - "RoundDownNumbers", - "RoundUpNumbers", - "RoundNearestNumbers", - "UpperCase", - "LowerCase", - "ConcatStrings", - "Contains", - "BeginsWith", - "NumberToString", - "ParseNumber", - "FetchExchangeRate", - "FetchCurrencyDecimalPlaces", - FetchSingleCurrencyPortalCurrency, - "DatedExchangeRate", - "PipelineProbability", - "MaxNumbers", - "MinNumbers", - "LessThan", - "LessThanOrEqual", - "MoreThan", - "MoreThanOrEqual", - "NumberEquals", - "StringEquals", - "IsPipelineStageClosed", - "Not", - "Date", - "Month", - "Year", - Now, - "TimeBetween", - "TimeBetweenSkipWeekends", - "PeriodToMonths", - "PeriodToWeeks", - "And", - "Or", - "Xor", - "IfString", - "IfNumber", - "IfBoolean", - "IsPresent", - "HasEmailReply", - "HasPlainTextEmailReply", - "ExtractMostRecentEmailReplyHTML", - "ExtractMostRecentEmailReplyText", - "ExtractMostRecentPlainTextEmailReply", - "SetContainsString", - IsEngagementType, - "FormatFullName", - "FormatPhoneNumber", - "FormatSearchablePhoneNumber", - "AbsoluteValue", - "SquareRoot", - "Power", - "Substring", - Euler, - "StringLength", - "IsBlank", - "AddTime", - "SubtractTime", - ] - - -class HasEmailReply(BaseModel): - operator: Literal["HAS_EMAIL_REPLY"] - - inputs: Optional[List[Input]] = None - - property_name: Optional[str] = FieldInfo(alias="propertyName", default=None) - - value: Optional[bool] = None - - -from .or_ import Or -from .xor import Xor -from .and_ import And -from .date import Date -from .not_ import Not -from .year import Year -from .month import Month -from .power import Power -from .add_time import AddTime -from .contains import Contains -from .is_blank import IsBlank -from .if_number import IfNumber -from .if_string import IfString -from .less_than import LessThan -from .more_than import MoreThan -from .substring import Substring -from .if_boolean import IfBoolean -from .is_present import IsPresent -from .lower_case import LowerCase -from .upper_case import UpperCase -from .add_numbers import AddNumbers -from .begins_with import BeginsWith -from .max_numbers import MaxNumbers -from .min_numbers import MinNumbers -from .square_root import SquareRoot -from .parse_number import ParseNumber -from .time_between import TimeBetween -from .number_equals import NumberEquals -from .string_equals import StringEquals -from .string_length import StringLength -from .subtract_time import SubtractTime -from .absolute_value import AbsoluteValue -from .concat_strings import ConcatStrings -from .divide_numbers import DivideNumbers -from .period_to_weeks import PeriodToWeeks -from .format_full_name import FormatFullName -from .multiply_numbers import MultiplyNumbers -from .number_to_string import NumberToString -from .period_to_months import PeriodToMonths -from .round_up_numbers import RoundUpNumbers -from .subtract_numbers import SubtractNumbers -from .less_than_or_equal import LessThanOrEqual -from .more_than_or_equal import MoreThanOrEqual -from .round_down_numbers import RoundDownNumbers -from .dated_exchange_rate import DatedExchangeRate -from .fetch_exchange_rate import FetchExchangeRate -from .format_phone_number import FormatPhoneNumber -from .set_contains_string import SetContainsString -from .pipeline_probability import PipelineProbability -from .round_nearest_numbers import RoundNearestNumbers -from .is_pipeline_stage_closed import IsPipelineStageClosed -from .has_plain_text_email_reply import HasPlainTextEmailReply -from .time_between_skip_weekends import TimeBetweenSkipWeekends -from .fetch_currency_decimal_places import FetchCurrencyDecimalPlaces -from .format_searchable_phone_number import FormatSearchablePhoneNumber -from .extract_most_recent_email_reply_html import ExtractMostRecentEmailReplyHTML -from .extract_most_recent_email_reply_text import ExtractMostRecentEmailReplyText -from .extract_most_recent_plain_text_email_reply import ExtractMostRecentPlainTextEmailReply diff --git a/src/hubspot_sdk/types/cms/has_plain_text_email_reply.py b/src/hubspot_sdk/types/cms/has_plain_text_email_reply.py deleted file mode 100644 index 1dca386f..00000000 --- a/src/hubspot_sdk/types/cms/has_plain_text_email_reply.py +++ /dev/null @@ -1,256 +0,0 @@ -# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. - -from __future__ import annotations - -from typing import TYPE_CHECKING, List, Union, Optional -from typing_extensions import Literal, TypeAlias, TypeAliasType - -from pydantic import Field as FieldInfo - -from .now import Now -from .euler import Euler -from ..._compat import PYDANTIC_V1 -from ..._models import BaseModel -from .constant_number import ConstantNumber -from .constant_string import ConstantString -from .constant_boolean import ConstantBoolean -from .is_engagement_type import IsEngagementType -from .number_property_variable import NumberPropertyVariable -from .string_property_variable import StringPropertyVariable -from .boolean_property_variable import BooleanPropertyVariable -from .timestamp_of_property_variable import TimestampOfPropertyVariable -from .number_target_property_variable import NumberTargetPropertyVariable -from .string_target_property_variable import StringTargetPropertyVariable -from .boolean_target_property_variable import BooleanTargetPropertyVariable -from .fetch_single_currency_portal_currency import FetchSingleCurrencyPortalCurrency -from .timestamp_of_target_property_variable import TimestampOfTargetPropertyVariable - -__all__ = ["HasPlainTextEmailReply", "Input"] - -if TYPE_CHECKING or not PYDANTIC_V1: - Input = TypeAliasType( - "Input", - Union[ - ConstantBoolean, - ConstantNumber, - ConstantString, - BooleanPropertyVariable, - StringPropertyVariable, - NumberPropertyVariable, - TimestampOfPropertyVariable, - BooleanTargetPropertyVariable, - StringTargetPropertyVariable, - NumberTargetPropertyVariable, - TimestampOfTargetPropertyVariable, - "AddNumbers", - "SubtractNumbers", - "MultiplyNumbers", - "DivideNumbers", - "RoundDownNumbers", - "RoundUpNumbers", - "RoundNearestNumbers", - "UpperCase", - "LowerCase", - "ConcatStrings", - "Contains", - "BeginsWith", - "NumberToString", - "ParseNumber", - "FetchExchangeRate", - "FetchCurrencyDecimalPlaces", - FetchSingleCurrencyPortalCurrency, - "DatedExchangeRate", - "PipelineProbability", - "MaxNumbers", - "MinNumbers", - "LessThan", - "LessThanOrEqual", - "MoreThan", - "MoreThanOrEqual", - "NumberEquals", - "StringEquals", - "IsPipelineStageClosed", - "Not", - "Date", - "Month", - "Year", - Now, - "TimeBetween", - "TimeBetweenSkipWeekends", - "PeriodToMonths", - "PeriodToWeeks", - "And", - "Or", - "Xor", - "IfString", - "IfNumber", - "IfBoolean", - "IsPresent", - "HasEmailReply", - "HasPlainTextEmailReply", - "ExtractMostRecentEmailReplyHTML", - "ExtractMostRecentEmailReplyText", - "ExtractMostRecentPlainTextEmailReply", - "SetContainsString", - IsEngagementType, - "FormatFullName", - "FormatPhoneNumber", - "FormatSearchablePhoneNumber", - "AbsoluteValue", - "SquareRoot", - "Power", - "Substring", - Euler, - "StringLength", - "IsBlank", - "AddTime", - "SubtractTime", - ], - ) -else: - Input: TypeAlias = Union[ - ConstantBoolean, - ConstantNumber, - ConstantString, - BooleanPropertyVariable, - StringPropertyVariable, - NumberPropertyVariable, - TimestampOfPropertyVariable, - BooleanTargetPropertyVariable, - StringTargetPropertyVariable, - NumberTargetPropertyVariable, - TimestampOfTargetPropertyVariable, - "AddNumbers", - "SubtractNumbers", - "MultiplyNumbers", - "DivideNumbers", - "RoundDownNumbers", - "RoundUpNumbers", - "RoundNearestNumbers", - "UpperCase", - "LowerCase", - "ConcatStrings", - "Contains", - "BeginsWith", - "NumberToString", - "ParseNumber", - "FetchExchangeRate", - "FetchCurrencyDecimalPlaces", - FetchSingleCurrencyPortalCurrency, - "DatedExchangeRate", - "PipelineProbability", - "MaxNumbers", - "MinNumbers", - "LessThan", - "LessThanOrEqual", - "MoreThan", - "MoreThanOrEqual", - "NumberEquals", - "StringEquals", - "IsPipelineStageClosed", - "Not", - "Date", - "Month", - "Year", - Now, - "TimeBetween", - "TimeBetweenSkipWeekends", - "PeriodToMonths", - "PeriodToWeeks", - "And", - "Or", - "Xor", - "IfString", - "IfNumber", - "IfBoolean", - "IsPresent", - "HasEmailReply", - "HasPlainTextEmailReply", - "ExtractMostRecentEmailReplyHTML", - "ExtractMostRecentEmailReplyText", - "ExtractMostRecentPlainTextEmailReply", - "SetContainsString", - IsEngagementType, - "FormatFullName", - "FormatPhoneNumber", - "FormatSearchablePhoneNumber", - "AbsoluteValue", - "SquareRoot", - "Power", - "Substring", - Euler, - "StringLength", - "IsBlank", - "AddTime", - "SubtractTime", - ] - - -class HasPlainTextEmailReply(BaseModel): - operator: Literal["HAS_PLAIN_TEXT_EMAIL_REPLY"] - - inputs: Optional[List[Input]] = None - - property_name: Optional[str] = FieldInfo(alias="propertyName", default=None) - - value: Optional[bool] = None - - -from .or_ import Or -from .xor import Xor -from .and_ import And -from .date import Date -from .not_ import Not -from .year import Year -from .month import Month -from .power import Power -from .add_time import AddTime -from .contains import Contains -from .is_blank import IsBlank -from .if_number import IfNumber -from .if_string import IfString -from .less_than import LessThan -from .more_than import MoreThan -from .substring import Substring -from .if_boolean import IfBoolean -from .is_present import IsPresent -from .lower_case import LowerCase -from .upper_case import UpperCase -from .add_numbers import AddNumbers -from .begins_with import BeginsWith -from .max_numbers import MaxNumbers -from .min_numbers import MinNumbers -from .square_root import SquareRoot -from .parse_number import ParseNumber -from .time_between import TimeBetween -from .number_equals import NumberEquals -from .string_equals import StringEquals -from .string_length import StringLength -from .subtract_time import SubtractTime -from .absolute_value import AbsoluteValue -from .concat_strings import ConcatStrings -from .divide_numbers import DivideNumbers -from .has_email_reply import HasEmailReply -from .period_to_weeks import PeriodToWeeks -from .format_full_name import FormatFullName -from .multiply_numbers import MultiplyNumbers -from .number_to_string import NumberToString -from .period_to_months import PeriodToMonths -from .round_up_numbers import RoundUpNumbers -from .subtract_numbers import SubtractNumbers -from .less_than_or_equal import LessThanOrEqual -from .more_than_or_equal import MoreThanOrEqual -from .round_down_numbers import RoundDownNumbers -from .dated_exchange_rate import DatedExchangeRate -from .fetch_exchange_rate import FetchExchangeRate -from .format_phone_number import FormatPhoneNumber -from .set_contains_string import SetContainsString -from .pipeline_probability import PipelineProbability -from .round_nearest_numbers import RoundNearestNumbers -from .is_pipeline_stage_closed import IsPipelineStageClosed -from .time_between_skip_weekends import TimeBetweenSkipWeekends -from .fetch_currency_decimal_places import FetchCurrencyDecimalPlaces -from .format_searchable_phone_number import FormatSearchablePhoneNumber -from .extract_most_recent_email_reply_html import ExtractMostRecentEmailReplyHTML -from .extract_most_recent_email_reply_text import ExtractMostRecentEmailReplyText -from .extract_most_recent_plain_text_email_reply import ExtractMostRecentPlainTextEmailReply diff --git a/src/hubspot_sdk/types/cms/option.py b/src/hubspot_sdk/types/cms/hubdb_option.py similarity index 96% rename from src/hubspot_sdk/types/cms/option.py rename to src/hubspot_sdk/types/cms/hubdb_option.py index cd2ef861..20634e43 100644 --- a/src/hubspot_sdk/types/cms/option.py +++ b/src/hubspot_sdk/types/cms/hubdb_option.py @@ -8,10 +8,10 @@ from ..._models import BaseModel from .simple_user import SimpleUser -__all__ = ["Option"] +__all__ = ["HubdbOption"] -class Option(BaseModel): +class HubdbOption(BaseModel): """A HubSpot property option""" id: str diff --git a/src/hubspot_sdk/types/cms/option_param.py b/src/hubspot_sdk/types/cms/hubdb_option_param.py similarity index 95% rename from src/hubspot_sdk/types/cms/option_param.py rename to src/hubspot_sdk/types/cms/hubdb_option_param.py index 21ec0502..2b8a9fd4 100644 --- a/src/hubspot_sdk/types/cms/option_param.py +++ b/src/hubspot_sdk/types/cms/hubdb_option_param.py @@ -9,10 +9,10 @@ from ..._utils import PropertyInfo from .simple_user_param import SimpleUserParam -__all__ = ["OptionParam"] +__all__ = ["HubdbOptionParam"] -class OptionParam(TypedDict, total=False): +class HubdbOptionParam(TypedDict, total=False): """A HubSpot property option""" id: Required[str] diff --git a/src/hubspot_sdk/types/cms/if_boolean.py b/src/hubspot_sdk/types/cms/if_boolean.py deleted file mode 100644 index c761b31b..00000000 --- a/src/hubspot_sdk/types/cms/if_boolean.py +++ /dev/null @@ -1,578 +0,0 @@ -# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. - -from __future__ import annotations - -from typing import TYPE_CHECKING, List, Union, Optional -from typing_extensions import Literal, TypeAlias, TypeAliasType - -from pydantic import Field as FieldInfo - -from .now import Now -from .euler import Euler -from ..._compat import PYDANTIC_V1 -from ..._models import BaseModel -from .constant_number import ConstantNumber -from .constant_string import ConstantString -from .constant_boolean import ConstantBoolean -from .is_engagement_type import IsEngagementType -from .number_property_variable import NumberPropertyVariable -from .string_property_variable import StringPropertyVariable -from .boolean_property_variable import BooleanPropertyVariable -from .timestamp_of_property_variable import TimestampOfPropertyVariable -from .number_target_property_variable import NumberTargetPropertyVariable -from .string_target_property_variable import StringTargetPropertyVariable -from .boolean_target_property_variable import BooleanTargetPropertyVariable -from .fetch_single_currency_portal_currency import FetchSingleCurrencyPortalCurrency -from .timestamp_of_target_property_variable import TimestampOfTargetPropertyVariable - -__all__ = ["IfBoolean", "IfExpression", "ElseExpression", "Input"] - -if TYPE_CHECKING or not PYDANTIC_V1: - IfExpression = TypeAliasType( - "IfExpression", - Union[ - ConstantBoolean, - ConstantNumber, - ConstantString, - BooleanPropertyVariable, - StringPropertyVariable, - NumberPropertyVariable, - TimestampOfPropertyVariable, - BooleanTargetPropertyVariable, - StringTargetPropertyVariable, - NumberTargetPropertyVariable, - TimestampOfTargetPropertyVariable, - "AddNumbers", - "SubtractNumbers", - "MultiplyNumbers", - "DivideNumbers", - "RoundDownNumbers", - "RoundUpNumbers", - "RoundNearestNumbers", - "UpperCase", - "LowerCase", - "ConcatStrings", - "Contains", - "BeginsWith", - "NumberToString", - "ParseNumber", - "FetchExchangeRate", - "FetchCurrencyDecimalPlaces", - FetchSingleCurrencyPortalCurrency, - "DatedExchangeRate", - "PipelineProbability", - "MaxNumbers", - "MinNumbers", - "LessThan", - "LessThanOrEqual", - "MoreThan", - "MoreThanOrEqual", - "NumberEquals", - "StringEquals", - "IsPipelineStageClosed", - "Not", - "Date", - "Month", - "Year", - Now, - "TimeBetween", - "TimeBetweenSkipWeekends", - "PeriodToMonths", - "PeriodToWeeks", - "And", - "Or", - "Xor", - "IfString", - "IfNumber", - "IfBoolean", - "IsPresent", - "HasEmailReply", - "HasPlainTextEmailReply", - "ExtractMostRecentEmailReplyHTML", - "ExtractMostRecentEmailReplyText", - "ExtractMostRecentPlainTextEmailReply", - "SetContainsString", - IsEngagementType, - "FormatFullName", - "FormatPhoneNumber", - "FormatSearchablePhoneNumber", - "AbsoluteValue", - "SquareRoot", - "Power", - "Substring", - Euler, - "StringLength", - "IsBlank", - "AddTime", - "SubtractTime", - ], - ) -else: - IfExpression: TypeAlias = Union[ - ConstantBoolean, - ConstantNumber, - ConstantString, - BooleanPropertyVariable, - StringPropertyVariable, - NumberPropertyVariable, - TimestampOfPropertyVariable, - BooleanTargetPropertyVariable, - StringTargetPropertyVariable, - NumberTargetPropertyVariable, - TimestampOfTargetPropertyVariable, - "AddNumbers", - "SubtractNumbers", - "MultiplyNumbers", - "DivideNumbers", - "RoundDownNumbers", - "RoundUpNumbers", - "RoundNearestNumbers", - "UpperCase", - "LowerCase", - "ConcatStrings", - "Contains", - "BeginsWith", - "NumberToString", - "ParseNumber", - "FetchExchangeRate", - "FetchCurrencyDecimalPlaces", - FetchSingleCurrencyPortalCurrency, - "DatedExchangeRate", - "PipelineProbability", - "MaxNumbers", - "MinNumbers", - "LessThan", - "LessThanOrEqual", - "MoreThan", - "MoreThanOrEqual", - "NumberEquals", - "StringEquals", - "IsPipelineStageClosed", - "Not", - "Date", - "Month", - "Year", - Now, - "TimeBetween", - "TimeBetweenSkipWeekends", - "PeriodToMonths", - "PeriodToWeeks", - "And", - "Or", - "Xor", - "IfString", - "IfNumber", - "IfBoolean", - "IsPresent", - "HasEmailReply", - "HasPlainTextEmailReply", - "ExtractMostRecentEmailReplyHTML", - "ExtractMostRecentEmailReplyText", - "ExtractMostRecentPlainTextEmailReply", - "SetContainsString", - IsEngagementType, - "FormatFullName", - "FormatPhoneNumber", - "FormatSearchablePhoneNumber", - "AbsoluteValue", - "SquareRoot", - "Power", - "Substring", - Euler, - "StringLength", - "IsBlank", - "AddTime", - "SubtractTime", - ] - -if TYPE_CHECKING or not PYDANTIC_V1: - ElseExpression = TypeAliasType( - "ElseExpression", - Union[ - ConstantBoolean, - ConstantNumber, - ConstantString, - BooleanPropertyVariable, - StringPropertyVariable, - NumberPropertyVariable, - TimestampOfPropertyVariable, - BooleanTargetPropertyVariable, - StringTargetPropertyVariable, - NumberTargetPropertyVariable, - TimestampOfTargetPropertyVariable, - "AddNumbers", - "SubtractNumbers", - "MultiplyNumbers", - "DivideNumbers", - "RoundDownNumbers", - "RoundUpNumbers", - "RoundNearestNumbers", - "UpperCase", - "LowerCase", - "ConcatStrings", - "Contains", - "BeginsWith", - "NumberToString", - "ParseNumber", - "FetchExchangeRate", - "FetchCurrencyDecimalPlaces", - FetchSingleCurrencyPortalCurrency, - "DatedExchangeRate", - "PipelineProbability", - "MaxNumbers", - "MinNumbers", - "LessThan", - "LessThanOrEqual", - "MoreThan", - "MoreThanOrEqual", - "NumberEquals", - "StringEquals", - "IsPipelineStageClosed", - "Not", - "Date", - "Month", - "Year", - Now, - "TimeBetween", - "TimeBetweenSkipWeekends", - "PeriodToMonths", - "PeriodToWeeks", - "And", - "Or", - "Xor", - "IfString", - "IfNumber", - "IfBoolean", - "IsPresent", - "HasEmailReply", - "HasPlainTextEmailReply", - "ExtractMostRecentEmailReplyHTML", - "ExtractMostRecentEmailReplyText", - "ExtractMostRecentPlainTextEmailReply", - "SetContainsString", - IsEngagementType, - "FormatFullName", - "FormatPhoneNumber", - "FormatSearchablePhoneNumber", - "AbsoluteValue", - "SquareRoot", - "Power", - "Substring", - Euler, - "StringLength", - "IsBlank", - "AddTime", - "SubtractTime", - ], - ) -else: - ElseExpression: TypeAlias = Union[ - ConstantBoolean, - ConstantNumber, - ConstantString, - BooleanPropertyVariable, - StringPropertyVariable, - NumberPropertyVariable, - TimestampOfPropertyVariable, - BooleanTargetPropertyVariable, - StringTargetPropertyVariable, - NumberTargetPropertyVariable, - TimestampOfTargetPropertyVariable, - "AddNumbers", - "SubtractNumbers", - "MultiplyNumbers", - "DivideNumbers", - "RoundDownNumbers", - "RoundUpNumbers", - "RoundNearestNumbers", - "UpperCase", - "LowerCase", - "ConcatStrings", - "Contains", - "BeginsWith", - "NumberToString", - "ParseNumber", - "FetchExchangeRate", - "FetchCurrencyDecimalPlaces", - FetchSingleCurrencyPortalCurrency, - "DatedExchangeRate", - "PipelineProbability", - "MaxNumbers", - "MinNumbers", - "LessThan", - "LessThanOrEqual", - "MoreThan", - "MoreThanOrEqual", - "NumberEquals", - "StringEquals", - "IsPipelineStageClosed", - "Not", - "Date", - "Month", - "Year", - Now, - "TimeBetween", - "TimeBetweenSkipWeekends", - "PeriodToMonths", - "PeriodToWeeks", - "And", - "Or", - "Xor", - "IfString", - "IfNumber", - "IfBoolean", - "IsPresent", - "HasEmailReply", - "HasPlainTextEmailReply", - "ExtractMostRecentEmailReplyHTML", - "ExtractMostRecentEmailReplyText", - "ExtractMostRecentPlainTextEmailReply", - "SetContainsString", - IsEngagementType, - "FormatFullName", - "FormatPhoneNumber", - "FormatSearchablePhoneNumber", - "AbsoluteValue", - "SquareRoot", - "Power", - "Substring", - Euler, - "StringLength", - "IsBlank", - "AddTime", - "SubtractTime", - ] - -if TYPE_CHECKING or not PYDANTIC_V1: - Input = TypeAliasType( - "Input", - Union[ - ConstantBoolean, - ConstantNumber, - ConstantString, - BooleanPropertyVariable, - StringPropertyVariable, - NumberPropertyVariable, - TimestampOfPropertyVariable, - BooleanTargetPropertyVariable, - StringTargetPropertyVariable, - NumberTargetPropertyVariable, - TimestampOfTargetPropertyVariable, - "AddNumbers", - "SubtractNumbers", - "MultiplyNumbers", - "DivideNumbers", - "RoundDownNumbers", - "RoundUpNumbers", - "RoundNearestNumbers", - "UpperCase", - "LowerCase", - "ConcatStrings", - "Contains", - "BeginsWith", - "NumberToString", - "ParseNumber", - "FetchExchangeRate", - "FetchCurrencyDecimalPlaces", - FetchSingleCurrencyPortalCurrency, - "DatedExchangeRate", - "PipelineProbability", - "MaxNumbers", - "MinNumbers", - "LessThan", - "LessThanOrEqual", - "MoreThan", - "MoreThanOrEqual", - "NumberEquals", - "StringEquals", - "IsPipelineStageClosed", - "Not", - "Date", - "Month", - "Year", - Now, - "TimeBetween", - "TimeBetweenSkipWeekends", - "PeriodToMonths", - "PeriodToWeeks", - "And", - "Or", - "Xor", - "IfString", - "IfNumber", - "IfBoolean", - "IsPresent", - "HasEmailReply", - "HasPlainTextEmailReply", - "ExtractMostRecentEmailReplyHTML", - "ExtractMostRecentEmailReplyText", - "ExtractMostRecentPlainTextEmailReply", - "SetContainsString", - IsEngagementType, - "FormatFullName", - "FormatPhoneNumber", - "FormatSearchablePhoneNumber", - "AbsoluteValue", - "SquareRoot", - "Power", - "Substring", - Euler, - "StringLength", - "IsBlank", - "AddTime", - "SubtractTime", - ], - ) -else: - Input: TypeAlias = Union[ - ConstantBoolean, - ConstantNumber, - ConstantString, - BooleanPropertyVariable, - StringPropertyVariable, - NumberPropertyVariable, - TimestampOfPropertyVariable, - BooleanTargetPropertyVariable, - StringTargetPropertyVariable, - NumberTargetPropertyVariable, - TimestampOfTargetPropertyVariable, - "AddNumbers", - "SubtractNumbers", - "MultiplyNumbers", - "DivideNumbers", - "RoundDownNumbers", - "RoundUpNumbers", - "RoundNearestNumbers", - "UpperCase", - "LowerCase", - "ConcatStrings", - "Contains", - "BeginsWith", - "NumberToString", - "ParseNumber", - "FetchExchangeRate", - "FetchCurrencyDecimalPlaces", - FetchSingleCurrencyPortalCurrency, - "DatedExchangeRate", - "PipelineProbability", - "MaxNumbers", - "MinNumbers", - "LessThan", - "LessThanOrEqual", - "MoreThan", - "MoreThanOrEqual", - "NumberEquals", - "StringEquals", - "IsPipelineStageClosed", - "Not", - "Date", - "Month", - "Year", - Now, - "TimeBetween", - "TimeBetweenSkipWeekends", - "PeriodToMonths", - "PeriodToWeeks", - "And", - "Or", - "Xor", - "IfString", - "IfNumber", - "IfBoolean", - "IsPresent", - "HasEmailReply", - "HasPlainTextEmailReply", - "ExtractMostRecentEmailReplyHTML", - "ExtractMostRecentEmailReplyText", - "ExtractMostRecentPlainTextEmailReply", - "SetContainsString", - IsEngagementType, - "FormatFullName", - "FormatPhoneNumber", - "FormatSearchablePhoneNumber", - "AbsoluteValue", - "SquareRoot", - "Power", - "Substring", - Euler, - "StringLength", - "IsBlank", - "AddTime", - "SubtractTime", - ] - - -class IfBoolean(BaseModel): - enclosed_in_parentheses: bool = FieldInfo(alias="enclosedInParentheses") - - if_expression: IfExpression = FieldInfo(alias="ifExpression") - - operator: Literal["IF_BOOLEAN"] - - else_expression: Optional[ElseExpression] = FieldInfo(alias="elseExpression", default=None) - - inputs: Optional[List[Input]] = None - - property_name: Optional[str] = FieldInfo(alias="propertyName", default=None) - - value: Optional[bool] = None - - -from .or_ import Or -from .xor import Xor -from .and_ import And -from .date import Date -from .not_ import Not -from .year import Year -from .month import Month -from .power import Power -from .add_time import AddTime -from .contains import Contains -from .is_blank import IsBlank -from .if_number import IfNumber -from .if_string import IfString -from .less_than import LessThan -from .more_than import MoreThan -from .substring import Substring -from .is_present import IsPresent -from .lower_case import LowerCase -from .upper_case import UpperCase -from .add_numbers import AddNumbers -from .begins_with import BeginsWith -from .max_numbers import MaxNumbers -from .min_numbers import MinNumbers -from .square_root import SquareRoot -from .parse_number import ParseNumber -from .time_between import TimeBetween -from .number_equals import NumberEquals -from .string_equals import StringEquals -from .string_length import StringLength -from .subtract_time import SubtractTime -from .absolute_value import AbsoluteValue -from .concat_strings import ConcatStrings -from .divide_numbers import DivideNumbers -from .has_email_reply import HasEmailReply -from .period_to_weeks import PeriodToWeeks -from .format_full_name import FormatFullName -from .multiply_numbers import MultiplyNumbers -from .number_to_string import NumberToString -from .period_to_months import PeriodToMonths -from .round_up_numbers import RoundUpNumbers -from .subtract_numbers import SubtractNumbers -from .less_than_or_equal import LessThanOrEqual -from .more_than_or_equal import MoreThanOrEqual -from .round_down_numbers import RoundDownNumbers -from .dated_exchange_rate import DatedExchangeRate -from .fetch_exchange_rate import FetchExchangeRate -from .format_phone_number import FormatPhoneNumber -from .set_contains_string import SetContainsString -from .pipeline_probability import PipelineProbability -from .round_nearest_numbers import RoundNearestNumbers -from .is_pipeline_stage_closed import IsPipelineStageClosed -from .has_plain_text_email_reply import HasPlainTextEmailReply -from .time_between_skip_weekends import TimeBetweenSkipWeekends -from .fetch_currency_decimal_places import FetchCurrencyDecimalPlaces -from .format_searchable_phone_number import FormatSearchablePhoneNumber -from .extract_most_recent_email_reply_html import ExtractMostRecentEmailReplyHTML -from .extract_most_recent_email_reply_text import ExtractMostRecentEmailReplyText -from .extract_most_recent_plain_text_email_reply import ExtractMostRecentPlainTextEmailReply diff --git a/src/hubspot_sdk/types/cms/if_number.py b/src/hubspot_sdk/types/cms/if_number.py deleted file mode 100644 index dacab41d..00000000 --- a/src/hubspot_sdk/types/cms/if_number.py +++ /dev/null @@ -1,578 +0,0 @@ -# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. - -from __future__ import annotations - -from typing import TYPE_CHECKING, List, Union, Optional -from typing_extensions import Literal, TypeAlias, TypeAliasType - -from pydantic import Field as FieldInfo - -from .now import Now -from .euler import Euler -from ..._compat import PYDANTIC_V1 -from ..._models import BaseModel -from .constant_number import ConstantNumber -from .constant_string import ConstantString -from .constant_boolean import ConstantBoolean -from .is_engagement_type import IsEngagementType -from .number_property_variable import NumberPropertyVariable -from .string_property_variable import StringPropertyVariable -from .boolean_property_variable import BooleanPropertyVariable -from .timestamp_of_property_variable import TimestampOfPropertyVariable -from .number_target_property_variable import NumberTargetPropertyVariable -from .string_target_property_variable import StringTargetPropertyVariable -from .boolean_target_property_variable import BooleanTargetPropertyVariable -from .fetch_single_currency_portal_currency import FetchSingleCurrencyPortalCurrency -from .timestamp_of_target_property_variable import TimestampOfTargetPropertyVariable - -__all__ = ["IfNumber", "IfExpression", "ElseExpression", "Input"] - -if TYPE_CHECKING or not PYDANTIC_V1: - IfExpression = TypeAliasType( - "IfExpression", - Union[ - ConstantBoolean, - ConstantNumber, - ConstantString, - BooleanPropertyVariable, - StringPropertyVariable, - NumberPropertyVariable, - TimestampOfPropertyVariable, - BooleanTargetPropertyVariable, - StringTargetPropertyVariable, - NumberTargetPropertyVariable, - TimestampOfTargetPropertyVariable, - "AddNumbers", - "SubtractNumbers", - "MultiplyNumbers", - "DivideNumbers", - "RoundDownNumbers", - "RoundUpNumbers", - "RoundNearestNumbers", - "UpperCase", - "LowerCase", - "ConcatStrings", - "Contains", - "BeginsWith", - "NumberToString", - "ParseNumber", - "FetchExchangeRate", - "FetchCurrencyDecimalPlaces", - FetchSingleCurrencyPortalCurrency, - "DatedExchangeRate", - "PipelineProbability", - "MaxNumbers", - "MinNumbers", - "LessThan", - "LessThanOrEqual", - "MoreThan", - "MoreThanOrEqual", - "NumberEquals", - "StringEquals", - "IsPipelineStageClosed", - "Not", - "Date", - "Month", - "Year", - Now, - "TimeBetween", - "TimeBetweenSkipWeekends", - "PeriodToMonths", - "PeriodToWeeks", - "And", - "Or", - "Xor", - "IfString", - "IfNumber", - "IfBoolean", - "IsPresent", - "HasEmailReply", - "HasPlainTextEmailReply", - "ExtractMostRecentEmailReplyHTML", - "ExtractMostRecentEmailReplyText", - "ExtractMostRecentPlainTextEmailReply", - "SetContainsString", - IsEngagementType, - "FormatFullName", - "FormatPhoneNumber", - "FormatSearchablePhoneNumber", - "AbsoluteValue", - "SquareRoot", - "Power", - "Substring", - Euler, - "StringLength", - "IsBlank", - "AddTime", - "SubtractTime", - ], - ) -else: - IfExpression: TypeAlias = Union[ - ConstantBoolean, - ConstantNumber, - ConstantString, - BooleanPropertyVariable, - StringPropertyVariable, - NumberPropertyVariable, - TimestampOfPropertyVariable, - BooleanTargetPropertyVariable, - StringTargetPropertyVariable, - NumberTargetPropertyVariable, - TimestampOfTargetPropertyVariable, - "AddNumbers", - "SubtractNumbers", - "MultiplyNumbers", - "DivideNumbers", - "RoundDownNumbers", - "RoundUpNumbers", - "RoundNearestNumbers", - "UpperCase", - "LowerCase", - "ConcatStrings", - "Contains", - "BeginsWith", - "NumberToString", - "ParseNumber", - "FetchExchangeRate", - "FetchCurrencyDecimalPlaces", - FetchSingleCurrencyPortalCurrency, - "DatedExchangeRate", - "PipelineProbability", - "MaxNumbers", - "MinNumbers", - "LessThan", - "LessThanOrEqual", - "MoreThan", - "MoreThanOrEqual", - "NumberEquals", - "StringEquals", - "IsPipelineStageClosed", - "Not", - "Date", - "Month", - "Year", - Now, - "TimeBetween", - "TimeBetweenSkipWeekends", - "PeriodToMonths", - "PeriodToWeeks", - "And", - "Or", - "Xor", - "IfString", - "IfNumber", - "IfBoolean", - "IsPresent", - "HasEmailReply", - "HasPlainTextEmailReply", - "ExtractMostRecentEmailReplyHTML", - "ExtractMostRecentEmailReplyText", - "ExtractMostRecentPlainTextEmailReply", - "SetContainsString", - IsEngagementType, - "FormatFullName", - "FormatPhoneNumber", - "FormatSearchablePhoneNumber", - "AbsoluteValue", - "SquareRoot", - "Power", - "Substring", - Euler, - "StringLength", - "IsBlank", - "AddTime", - "SubtractTime", - ] - -if TYPE_CHECKING or not PYDANTIC_V1: - ElseExpression = TypeAliasType( - "ElseExpression", - Union[ - ConstantBoolean, - ConstantNumber, - ConstantString, - BooleanPropertyVariable, - StringPropertyVariable, - NumberPropertyVariable, - TimestampOfPropertyVariable, - BooleanTargetPropertyVariable, - StringTargetPropertyVariable, - NumberTargetPropertyVariable, - TimestampOfTargetPropertyVariable, - "AddNumbers", - "SubtractNumbers", - "MultiplyNumbers", - "DivideNumbers", - "RoundDownNumbers", - "RoundUpNumbers", - "RoundNearestNumbers", - "UpperCase", - "LowerCase", - "ConcatStrings", - "Contains", - "BeginsWith", - "NumberToString", - "ParseNumber", - "FetchExchangeRate", - "FetchCurrencyDecimalPlaces", - FetchSingleCurrencyPortalCurrency, - "DatedExchangeRate", - "PipelineProbability", - "MaxNumbers", - "MinNumbers", - "LessThan", - "LessThanOrEqual", - "MoreThan", - "MoreThanOrEqual", - "NumberEquals", - "StringEquals", - "IsPipelineStageClosed", - "Not", - "Date", - "Month", - "Year", - Now, - "TimeBetween", - "TimeBetweenSkipWeekends", - "PeriodToMonths", - "PeriodToWeeks", - "And", - "Or", - "Xor", - "IfString", - "IfNumber", - "IfBoolean", - "IsPresent", - "HasEmailReply", - "HasPlainTextEmailReply", - "ExtractMostRecentEmailReplyHTML", - "ExtractMostRecentEmailReplyText", - "ExtractMostRecentPlainTextEmailReply", - "SetContainsString", - IsEngagementType, - "FormatFullName", - "FormatPhoneNumber", - "FormatSearchablePhoneNumber", - "AbsoluteValue", - "SquareRoot", - "Power", - "Substring", - Euler, - "StringLength", - "IsBlank", - "AddTime", - "SubtractTime", - ], - ) -else: - ElseExpression: TypeAlias = Union[ - ConstantBoolean, - ConstantNumber, - ConstantString, - BooleanPropertyVariable, - StringPropertyVariable, - NumberPropertyVariable, - TimestampOfPropertyVariable, - BooleanTargetPropertyVariable, - StringTargetPropertyVariable, - NumberTargetPropertyVariable, - TimestampOfTargetPropertyVariable, - "AddNumbers", - "SubtractNumbers", - "MultiplyNumbers", - "DivideNumbers", - "RoundDownNumbers", - "RoundUpNumbers", - "RoundNearestNumbers", - "UpperCase", - "LowerCase", - "ConcatStrings", - "Contains", - "BeginsWith", - "NumberToString", - "ParseNumber", - "FetchExchangeRate", - "FetchCurrencyDecimalPlaces", - FetchSingleCurrencyPortalCurrency, - "DatedExchangeRate", - "PipelineProbability", - "MaxNumbers", - "MinNumbers", - "LessThan", - "LessThanOrEqual", - "MoreThan", - "MoreThanOrEqual", - "NumberEquals", - "StringEquals", - "IsPipelineStageClosed", - "Not", - "Date", - "Month", - "Year", - Now, - "TimeBetween", - "TimeBetweenSkipWeekends", - "PeriodToMonths", - "PeriodToWeeks", - "And", - "Or", - "Xor", - "IfString", - "IfNumber", - "IfBoolean", - "IsPresent", - "HasEmailReply", - "HasPlainTextEmailReply", - "ExtractMostRecentEmailReplyHTML", - "ExtractMostRecentEmailReplyText", - "ExtractMostRecentPlainTextEmailReply", - "SetContainsString", - IsEngagementType, - "FormatFullName", - "FormatPhoneNumber", - "FormatSearchablePhoneNumber", - "AbsoluteValue", - "SquareRoot", - "Power", - "Substring", - Euler, - "StringLength", - "IsBlank", - "AddTime", - "SubtractTime", - ] - -if TYPE_CHECKING or not PYDANTIC_V1: - Input = TypeAliasType( - "Input", - Union[ - ConstantBoolean, - ConstantNumber, - ConstantString, - BooleanPropertyVariable, - StringPropertyVariable, - NumberPropertyVariable, - TimestampOfPropertyVariable, - BooleanTargetPropertyVariable, - StringTargetPropertyVariable, - NumberTargetPropertyVariable, - TimestampOfTargetPropertyVariable, - "AddNumbers", - "SubtractNumbers", - "MultiplyNumbers", - "DivideNumbers", - "RoundDownNumbers", - "RoundUpNumbers", - "RoundNearestNumbers", - "UpperCase", - "LowerCase", - "ConcatStrings", - "Contains", - "BeginsWith", - "NumberToString", - "ParseNumber", - "FetchExchangeRate", - "FetchCurrencyDecimalPlaces", - FetchSingleCurrencyPortalCurrency, - "DatedExchangeRate", - "PipelineProbability", - "MaxNumbers", - "MinNumbers", - "LessThan", - "LessThanOrEqual", - "MoreThan", - "MoreThanOrEqual", - "NumberEquals", - "StringEquals", - "IsPipelineStageClosed", - "Not", - "Date", - "Month", - "Year", - Now, - "TimeBetween", - "TimeBetweenSkipWeekends", - "PeriodToMonths", - "PeriodToWeeks", - "And", - "Or", - "Xor", - "IfString", - "IfNumber", - "IfBoolean", - "IsPresent", - "HasEmailReply", - "HasPlainTextEmailReply", - "ExtractMostRecentEmailReplyHTML", - "ExtractMostRecentEmailReplyText", - "ExtractMostRecentPlainTextEmailReply", - "SetContainsString", - IsEngagementType, - "FormatFullName", - "FormatPhoneNumber", - "FormatSearchablePhoneNumber", - "AbsoluteValue", - "SquareRoot", - "Power", - "Substring", - Euler, - "StringLength", - "IsBlank", - "AddTime", - "SubtractTime", - ], - ) -else: - Input: TypeAlias = Union[ - ConstantBoolean, - ConstantNumber, - ConstantString, - BooleanPropertyVariable, - StringPropertyVariable, - NumberPropertyVariable, - TimestampOfPropertyVariable, - BooleanTargetPropertyVariable, - StringTargetPropertyVariable, - NumberTargetPropertyVariable, - TimestampOfTargetPropertyVariable, - "AddNumbers", - "SubtractNumbers", - "MultiplyNumbers", - "DivideNumbers", - "RoundDownNumbers", - "RoundUpNumbers", - "RoundNearestNumbers", - "UpperCase", - "LowerCase", - "ConcatStrings", - "Contains", - "BeginsWith", - "NumberToString", - "ParseNumber", - "FetchExchangeRate", - "FetchCurrencyDecimalPlaces", - FetchSingleCurrencyPortalCurrency, - "DatedExchangeRate", - "PipelineProbability", - "MaxNumbers", - "MinNumbers", - "LessThan", - "LessThanOrEqual", - "MoreThan", - "MoreThanOrEqual", - "NumberEquals", - "StringEquals", - "IsPipelineStageClosed", - "Not", - "Date", - "Month", - "Year", - Now, - "TimeBetween", - "TimeBetweenSkipWeekends", - "PeriodToMonths", - "PeriodToWeeks", - "And", - "Or", - "Xor", - "IfString", - "IfNumber", - "IfBoolean", - "IsPresent", - "HasEmailReply", - "HasPlainTextEmailReply", - "ExtractMostRecentEmailReplyHTML", - "ExtractMostRecentEmailReplyText", - "ExtractMostRecentPlainTextEmailReply", - "SetContainsString", - IsEngagementType, - "FormatFullName", - "FormatPhoneNumber", - "FormatSearchablePhoneNumber", - "AbsoluteValue", - "SquareRoot", - "Power", - "Substring", - Euler, - "StringLength", - "IsBlank", - "AddTime", - "SubtractTime", - ] - - -class IfNumber(BaseModel): - enclosed_in_parentheses: bool = FieldInfo(alias="enclosedInParentheses") - - if_expression: IfExpression = FieldInfo(alias="ifExpression") - - operator: Literal["IF_NUMBER"] - - else_expression: Optional[ElseExpression] = FieldInfo(alias="elseExpression", default=None) - - inputs: Optional[List[Input]] = None - - property_name: Optional[str] = FieldInfo(alias="propertyName", default=None) - - value: Optional[float] = None - - -from .or_ import Or -from .xor import Xor -from .and_ import And -from .date import Date -from .not_ import Not -from .year import Year -from .month import Month -from .power import Power -from .add_time import AddTime -from .contains import Contains -from .is_blank import IsBlank -from .if_string import IfString -from .less_than import LessThan -from .more_than import MoreThan -from .substring import Substring -from .if_boolean import IfBoolean -from .is_present import IsPresent -from .lower_case import LowerCase -from .upper_case import UpperCase -from .add_numbers import AddNumbers -from .begins_with import BeginsWith -from .max_numbers import MaxNumbers -from .min_numbers import MinNumbers -from .square_root import SquareRoot -from .parse_number import ParseNumber -from .time_between import TimeBetween -from .number_equals import NumberEquals -from .string_equals import StringEquals -from .string_length import StringLength -from .subtract_time import SubtractTime -from .absolute_value import AbsoluteValue -from .concat_strings import ConcatStrings -from .divide_numbers import DivideNumbers -from .has_email_reply import HasEmailReply -from .period_to_weeks import PeriodToWeeks -from .format_full_name import FormatFullName -from .multiply_numbers import MultiplyNumbers -from .number_to_string import NumberToString -from .period_to_months import PeriodToMonths -from .round_up_numbers import RoundUpNumbers -from .subtract_numbers import SubtractNumbers -from .less_than_or_equal import LessThanOrEqual -from .more_than_or_equal import MoreThanOrEqual -from .round_down_numbers import RoundDownNumbers -from .dated_exchange_rate import DatedExchangeRate -from .fetch_exchange_rate import FetchExchangeRate -from .format_phone_number import FormatPhoneNumber -from .set_contains_string import SetContainsString -from .pipeline_probability import PipelineProbability -from .round_nearest_numbers import RoundNearestNumbers -from .is_pipeline_stage_closed import IsPipelineStageClosed -from .has_plain_text_email_reply import HasPlainTextEmailReply -from .time_between_skip_weekends import TimeBetweenSkipWeekends -from .fetch_currency_decimal_places import FetchCurrencyDecimalPlaces -from .format_searchable_phone_number import FormatSearchablePhoneNumber -from .extract_most_recent_email_reply_html import ExtractMostRecentEmailReplyHTML -from .extract_most_recent_email_reply_text import ExtractMostRecentEmailReplyText -from .extract_most_recent_plain_text_email_reply import ExtractMostRecentPlainTextEmailReply diff --git a/src/hubspot_sdk/types/cms/if_string.py b/src/hubspot_sdk/types/cms/if_string.py deleted file mode 100644 index c6f56dd3..00000000 --- a/src/hubspot_sdk/types/cms/if_string.py +++ /dev/null @@ -1,578 +0,0 @@ -# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. - -from __future__ import annotations - -from typing import TYPE_CHECKING, List, Union, Optional -from typing_extensions import Literal, TypeAlias, TypeAliasType - -from pydantic import Field as FieldInfo - -from .now import Now -from .euler import Euler -from ..._compat import PYDANTIC_V1 -from ..._models import BaseModel -from .constant_number import ConstantNumber -from .constant_string import ConstantString -from .constant_boolean import ConstantBoolean -from .is_engagement_type import IsEngagementType -from .number_property_variable import NumberPropertyVariable -from .string_property_variable import StringPropertyVariable -from .boolean_property_variable import BooleanPropertyVariable -from .timestamp_of_property_variable import TimestampOfPropertyVariable -from .number_target_property_variable import NumberTargetPropertyVariable -from .string_target_property_variable import StringTargetPropertyVariable -from .boolean_target_property_variable import BooleanTargetPropertyVariable -from .fetch_single_currency_portal_currency import FetchSingleCurrencyPortalCurrency -from .timestamp_of_target_property_variable import TimestampOfTargetPropertyVariable - -__all__ = ["IfString", "IfExpression", "ElseExpression", "Input"] - -if TYPE_CHECKING or not PYDANTIC_V1: - IfExpression = TypeAliasType( - "IfExpression", - Union[ - ConstantBoolean, - ConstantNumber, - ConstantString, - BooleanPropertyVariable, - StringPropertyVariable, - NumberPropertyVariable, - TimestampOfPropertyVariable, - BooleanTargetPropertyVariable, - StringTargetPropertyVariable, - NumberTargetPropertyVariable, - TimestampOfTargetPropertyVariable, - "AddNumbers", - "SubtractNumbers", - "MultiplyNumbers", - "DivideNumbers", - "RoundDownNumbers", - "RoundUpNumbers", - "RoundNearestNumbers", - "UpperCase", - "LowerCase", - "ConcatStrings", - "Contains", - "BeginsWith", - "NumberToString", - "ParseNumber", - "FetchExchangeRate", - "FetchCurrencyDecimalPlaces", - FetchSingleCurrencyPortalCurrency, - "DatedExchangeRate", - "PipelineProbability", - "MaxNumbers", - "MinNumbers", - "LessThan", - "LessThanOrEqual", - "MoreThan", - "MoreThanOrEqual", - "NumberEquals", - "StringEquals", - "IsPipelineStageClosed", - "Not", - "Date", - "Month", - "Year", - Now, - "TimeBetween", - "TimeBetweenSkipWeekends", - "PeriodToMonths", - "PeriodToWeeks", - "And", - "Or", - "Xor", - "IfString", - "IfNumber", - "IfBoolean", - "IsPresent", - "HasEmailReply", - "HasPlainTextEmailReply", - "ExtractMostRecentEmailReplyHTML", - "ExtractMostRecentEmailReplyText", - "ExtractMostRecentPlainTextEmailReply", - "SetContainsString", - IsEngagementType, - "FormatFullName", - "FormatPhoneNumber", - "FormatSearchablePhoneNumber", - "AbsoluteValue", - "SquareRoot", - "Power", - "Substring", - Euler, - "StringLength", - "IsBlank", - "AddTime", - "SubtractTime", - ], - ) -else: - IfExpression: TypeAlias = Union[ - ConstantBoolean, - ConstantNumber, - ConstantString, - BooleanPropertyVariable, - StringPropertyVariable, - NumberPropertyVariable, - TimestampOfPropertyVariable, - BooleanTargetPropertyVariable, - StringTargetPropertyVariable, - NumberTargetPropertyVariable, - TimestampOfTargetPropertyVariable, - "AddNumbers", - "SubtractNumbers", - "MultiplyNumbers", - "DivideNumbers", - "RoundDownNumbers", - "RoundUpNumbers", - "RoundNearestNumbers", - "UpperCase", - "LowerCase", - "ConcatStrings", - "Contains", - "BeginsWith", - "NumberToString", - "ParseNumber", - "FetchExchangeRate", - "FetchCurrencyDecimalPlaces", - FetchSingleCurrencyPortalCurrency, - "DatedExchangeRate", - "PipelineProbability", - "MaxNumbers", - "MinNumbers", - "LessThan", - "LessThanOrEqual", - "MoreThan", - "MoreThanOrEqual", - "NumberEquals", - "StringEquals", - "IsPipelineStageClosed", - "Not", - "Date", - "Month", - "Year", - Now, - "TimeBetween", - "TimeBetweenSkipWeekends", - "PeriodToMonths", - "PeriodToWeeks", - "And", - "Or", - "Xor", - "IfString", - "IfNumber", - "IfBoolean", - "IsPresent", - "HasEmailReply", - "HasPlainTextEmailReply", - "ExtractMostRecentEmailReplyHTML", - "ExtractMostRecentEmailReplyText", - "ExtractMostRecentPlainTextEmailReply", - "SetContainsString", - IsEngagementType, - "FormatFullName", - "FormatPhoneNumber", - "FormatSearchablePhoneNumber", - "AbsoluteValue", - "SquareRoot", - "Power", - "Substring", - Euler, - "StringLength", - "IsBlank", - "AddTime", - "SubtractTime", - ] - -if TYPE_CHECKING or not PYDANTIC_V1: - ElseExpression = TypeAliasType( - "ElseExpression", - Union[ - ConstantBoolean, - ConstantNumber, - ConstantString, - BooleanPropertyVariable, - StringPropertyVariable, - NumberPropertyVariable, - TimestampOfPropertyVariable, - BooleanTargetPropertyVariable, - StringTargetPropertyVariable, - NumberTargetPropertyVariable, - TimestampOfTargetPropertyVariable, - "AddNumbers", - "SubtractNumbers", - "MultiplyNumbers", - "DivideNumbers", - "RoundDownNumbers", - "RoundUpNumbers", - "RoundNearestNumbers", - "UpperCase", - "LowerCase", - "ConcatStrings", - "Contains", - "BeginsWith", - "NumberToString", - "ParseNumber", - "FetchExchangeRate", - "FetchCurrencyDecimalPlaces", - FetchSingleCurrencyPortalCurrency, - "DatedExchangeRate", - "PipelineProbability", - "MaxNumbers", - "MinNumbers", - "LessThan", - "LessThanOrEqual", - "MoreThan", - "MoreThanOrEqual", - "NumberEquals", - "StringEquals", - "IsPipelineStageClosed", - "Not", - "Date", - "Month", - "Year", - Now, - "TimeBetween", - "TimeBetweenSkipWeekends", - "PeriodToMonths", - "PeriodToWeeks", - "And", - "Or", - "Xor", - "IfString", - "IfNumber", - "IfBoolean", - "IsPresent", - "HasEmailReply", - "HasPlainTextEmailReply", - "ExtractMostRecentEmailReplyHTML", - "ExtractMostRecentEmailReplyText", - "ExtractMostRecentPlainTextEmailReply", - "SetContainsString", - IsEngagementType, - "FormatFullName", - "FormatPhoneNumber", - "FormatSearchablePhoneNumber", - "AbsoluteValue", - "SquareRoot", - "Power", - "Substring", - Euler, - "StringLength", - "IsBlank", - "AddTime", - "SubtractTime", - ], - ) -else: - ElseExpression: TypeAlias = Union[ - ConstantBoolean, - ConstantNumber, - ConstantString, - BooleanPropertyVariable, - StringPropertyVariable, - NumberPropertyVariable, - TimestampOfPropertyVariable, - BooleanTargetPropertyVariable, - StringTargetPropertyVariable, - NumberTargetPropertyVariable, - TimestampOfTargetPropertyVariable, - "AddNumbers", - "SubtractNumbers", - "MultiplyNumbers", - "DivideNumbers", - "RoundDownNumbers", - "RoundUpNumbers", - "RoundNearestNumbers", - "UpperCase", - "LowerCase", - "ConcatStrings", - "Contains", - "BeginsWith", - "NumberToString", - "ParseNumber", - "FetchExchangeRate", - "FetchCurrencyDecimalPlaces", - FetchSingleCurrencyPortalCurrency, - "DatedExchangeRate", - "PipelineProbability", - "MaxNumbers", - "MinNumbers", - "LessThan", - "LessThanOrEqual", - "MoreThan", - "MoreThanOrEqual", - "NumberEquals", - "StringEquals", - "IsPipelineStageClosed", - "Not", - "Date", - "Month", - "Year", - Now, - "TimeBetween", - "TimeBetweenSkipWeekends", - "PeriodToMonths", - "PeriodToWeeks", - "And", - "Or", - "Xor", - "IfString", - "IfNumber", - "IfBoolean", - "IsPresent", - "HasEmailReply", - "HasPlainTextEmailReply", - "ExtractMostRecentEmailReplyHTML", - "ExtractMostRecentEmailReplyText", - "ExtractMostRecentPlainTextEmailReply", - "SetContainsString", - IsEngagementType, - "FormatFullName", - "FormatPhoneNumber", - "FormatSearchablePhoneNumber", - "AbsoluteValue", - "SquareRoot", - "Power", - "Substring", - Euler, - "StringLength", - "IsBlank", - "AddTime", - "SubtractTime", - ] - -if TYPE_CHECKING or not PYDANTIC_V1: - Input = TypeAliasType( - "Input", - Union[ - ConstantBoolean, - ConstantNumber, - ConstantString, - BooleanPropertyVariable, - StringPropertyVariable, - NumberPropertyVariable, - TimestampOfPropertyVariable, - BooleanTargetPropertyVariable, - StringTargetPropertyVariable, - NumberTargetPropertyVariable, - TimestampOfTargetPropertyVariable, - "AddNumbers", - "SubtractNumbers", - "MultiplyNumbers", - "DivideNumbers", - "RoundDownNumbers", - "RoundUpNumbers", - "RoundNearestNumbers", - "UpperCase", - "LowerCase", - "ConcatStrings", - "Contains", - "BeginsWith", - "NumberToString", - "ParseNumber", - "FetchExchangeRate", - "FetchCurrencyDecimalPlaces", - FetchSingleCurrencyPortalCurrency, - "DatedExchangeRate", - "PipelineProbability", - "MaxNumbers", - "MinNumbers", - "LessThan", - "LessThanOrEqual", - "MoreThan", - "MoreThanOrEqual", - "NumberEquals", - "StringEquals", - "IsPipelineStageClosed", - "Not", - "Date", - "Month", - "Year", - Now, - "TimeBetween", - "TimeBetweenSkipWeekends", - "PeriodToMonths", - "PeriodToWeeks", - "And", - "Or", - "Xor", - "IfString", - "IfNumber", - "IfBoolean", - "IsPresent", - "HasEmailReply", - "HasPlainTextEmailReply", - "ExtractMostRecentEmailReplyHTML", - "ExtractMostRecentEmailReplyText", - "ExtractMostRecentPlainTextEmailReply", - "SetContainsString", - IsEngagementType, - "FormatFullName", - "FormatPhoneNumber", - "FormatSearchablePhoneNumber", - "AbsoluteValue", - "SquareRoot", - "Power", - "Substring", - Euler, - "StringLength", - "IsBlank", - "AddTime", - "SubtractTime", - ], - ) -else: - Input: TypeAlias = Union[ - ConstantBoolean, - ConstantNumber, - ConstantString, - BooleanPropertyVariable, - StringPropertyVariable, - NumberPropertyVariable, - TimestampOfPropertyVariable, - BooleanTargetPropertyVariable, - StringTargetPropertyVariable, - NumberTargetPropertyVariable, - TimestampOfTargetPropertyVariable, - "AddNumbers", - "SubtractNumbers", - "MultiplyNumbers", - "DivideNumbers", - "RoundDownNumbers", - "RoundUpNumbers", - "RoundNearestNumbers", - "UpperCase", - "LowerCase", - "ConcatStrings", - "Contains", - "BeginsWith", - "NumberToString", - "ParseNumber", - "FetchExchangeRate", - "FetchCurrencyDecimalPlaces", - FetchSingleCurrencyPortalCurrency, - "DatedExchangeRate", - "PipelineProbability", - "MaxNumbers", - "MinNumbers", - "LessThan", - "LessThanOrEqual", - "MoreThan", - "MoreThanOrEqual", - "NumberEquals", - "StringEquals", - "IsPipelineStageClosed", - "Not", - "Date", - "Month", - "Year", - Now, - "TimeBetween", - "TimeBetweenSkipWeekends", - "PeriodToMonths", - "PeriodToWeeks", - "And", - "Or", - "Xor", - "IfString", - "IfNumber", - "IfBoolean", - "IsPresent", - "HasEmailReply", - "HasPlainTextEmailReply", - "ExtractMostRecentEmailReplyHTML", - "ExtractMostRecentEmailReplyText", - "ExtractMostRecentPlainTextEmailReply", - "SetContainsString", - IsEngagementType, - "FormatFullName", - "FormatPhoneNumber", - "FormatSearchablePhoneNumber", - "AbsoluteValue", - "SquareRoot", - "Power", - "Substring", - Euler, - "StringLength", - "IsBlank", - "AddTime", - "SubtractTime", - ] - - -class IfString(BaseModel): - enclosed_in_parentheses: bool = FieldInfo(alias="enclosedInParentheses") - - if_expression: IfExpression = FieldInfo(alias="ifExpression") - - operator: Literal["IF_STRING"] - - else_expression: Optional[ElseExpression] = FieldInfo(alias="elseExpression", default=None) - - inputs: Optional[List[Input]] = None - - property_name: Optional[str] = FieldInfo(alias="propertyName", default=None) - - value: Optional[str] = None - - -from .or_ import Or -from .xor import Xor -from .and_ import And -from .date import Date -from .not_ import Not -from .year import Year -from .month import Month -from .power import Power -from .add_time import AddTime -from .contains import Contains -from .is_blank import IsBlank -from .if_number import IfNumber -from .less_than import LessThan -from .more_than import MoreThan -from .substring import Substring -from .if_boolean import IfBoolean -from .is_present import IsPresent -from .lower_case import LowerCase -from .upper_case import UpperCase -from .add_numbers import AddNumbers -from .begins_with import BeginsWith -from .max_numbers import MaxNumbers -from .min_numbers import MinNumbers -from .square_root import SquareRoot -from .parse_number import ParseNumber -from .time_between import TimeBetween -from .number_equals import NumberEquals -from .string_equals import StringEquals -from .string_length import StringLength -from .subtract_time import SubtractTime -from .absolute_value import AbsoluteValue -from .concat_strings import ConcatStrings -from .divide_numbers import DivideNumbers -from .has_email_reply import HasEmailReply -from .period_to_weeks import PeriodToWeeks -from .format_full_name import FormatFullName -from .multiply_numbers import MultiplyNumbers -from .number_to_string import NumberToString -from .period_to_months import PeriodToMonths -from .round_up_numbers import RoundUpNumbers -from .subtract_numbers import SubtractNumbers -from .less_than_or_equal import LessThanOrEqual -from .more_than_or_equal import MoreThanOrEqual -from .round_down_numbers import RoundDownNumbers -from .dated_exchange_rate import DatedExchangeRate -from .fetch_exchange_rate import FetchExchangeRate -from .format_phone_number import FormatPhoneNumber -from .set_contains_string import SetContainsString -from .pipeline_probability import PipelineProbability -from .round_nearest_numbers import RoundNearestNumbers -from .is_pipeline_stage_closed import IsPipelineStageClosed -from .has_plain_text_email_reply import HasPlainTextEmailReply -from .time_between_skip_weekends import TimeBetweenSkipWeekends -from .fetch_currency_decimal_places import FetchCurrencyDecimalPlaces -from .format_searchable_phone_number import FormatSearchablePhoneNumber -from .extract_most_recent_email_reply_html import ExtractMostRecentEmailReplyHTML -from .extract_most_recent_email_reply_text import ExtractMostRecentEmailReplyText -from .extract_most_recent_plain_text_email_reply import ExtractMostRecentPlainTextEmailReply diff --git a/src/hubspot_sdk/types/cms/import_result.py b/src/hubspot_sdk/types/cms/import_result.py index 8254369c..e97eda97 100644 --- a/src/hubspot_sdk/types/cms/import_result.py +++ b/src/hubspot_sdk/types/cms/import_result.py @@ -5,7 +5,7 @@ from pydantic import Field as FieldInfo from ..._models import BaseModel -from ..shared.error import Error +from ..shared.base_error import BaseError __all__ = ["ImportResult"] @@ -14,7 +14,7 @@ class ImportResult(BaseModel): duplicate_rows: int = FieldInfo(alias="duplicateRows") """Specifies number of duplicate rows""" - errors: List[Error] + errors: List[BaseError] """List of errors during import""" row_limit_exceeded: bool = FieldInfo(alias="rowLimitExceeded") diff --git a/src/hubspot_sdk/types/cms/integrator_object_creation_response.py b/src/hubspot_sdk/types/cms/integrator_object_creation_response.py index 5e771e75..a6e24c50 100644 --- a/src/hubspot_sdk/types/cms/integrator_object_creation_response.py +++ b/src/hubspot_sdk/types/cms/integrator_object_creation_response.py @@ -1,13 +1,12 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from __future__ import annotations - from typing import List from pydantic import Field as FieldInfo from .group import Group from ..._models import BaseModel +from .property_definition import PropertyDefinition from .inbound_db_object_type import InboundDBObjectType __all__ = ["IntegratorObjectCreationResponse"] @@ -16,9 +15,6 @@ class IntegratorObjectCreationResponse(BaseModel): object_type: InboundDBObjectType = FieldInfo(alias="objectType") - properties: List["PropertyDefinition"] + properties: List[PropertyDefinition] property_groups: List[Group] = FieldInfo(alias="propertyGroups") - - -from .property_definition import PropertyDefinition diff --git a/src/hubspot_sdk/types/cms/is_blank.py b/src/hubspot_sdk/types/cms/is_blank.py deleted file mode 100644 index 7eb37e07..00000000 --- a/src/hubspot_sdk/types/cms/is_blank.py +++ /dev/null @@ -1,256 +0,0 @@ -# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. - -from __future__ import annotations - -from typing import TYPE_CHECKING, List, Union, Optional -from typing_extensions import Literal, TypeAlias, TypeAliasType - -from pydantic import Field as FieldInfo - -from .now import Now -from .euler import Euler -from ..._compat import PYDANTIC_V1 -from ..._models import BaseModel -from .constant_number import ConstantNumber -from .constant_string import ConstantString -from .constant_boolean import ConstantBoolean -from .is_engagement_type import IsEngagementType -from .number_property_variable import NumberPropertyVariable -from .string_property_variable import StringPropertyVariable -from .boolean_property_variable import BooleanPropertyVariable -from .timestamp_of_property_variable import TimestampOfPropertyVariable -from .number_target_property_variable import NumberTargetPropertyVariable -from .string_target_property_variable import StringTargetPropertyVariable -from .boolean_target_property_variable import BooleanTargetPropertyVariable -from .fetch_single_currency_portal_currency import FetchSingleCurrencyPortalCurrency -from .timestamp_of_target_property_variable import TimestampOfTargetPropertyVariable - -__all__ = ["IsBlank", "Input"] - -if TYPE_CHECKING or not PYDANTIC_V1: - Input = TypeAliasType( - "Input", - Union[ - ConstantBoolean, - ConstantNumber, - ConstantString, - BooleanPropertyVariable, - StringPropertyVariable, - NumberPropertyVariable, - TimestampOfPropertyVariable, - BooleanTargetPropertyVariable, - StringTargetPropertyVariable, - NumberTargetPropertyVariable, - TimestampOfTargetPropertyVariable, - "AddNumbers", - "SubtractNumbers", - "MultiplyNumbers", - "DivideNumbers", - "RoundDownNumbers", - "RoundUpNumbers", - "RoundNearestNumbers", - "UpperCase", - "LowerCase", - "ConcatStrings", - "Contains", - "BeginsWith", - "NumberToString", - "ParseNumber", - "FetchExchangeRate", - "FetchCurrencyDecimalPlaces", - FetchSingleCurrencyPortalCurrency, - "DatedExchangeRate", - "PipelineProbability", - "MaxNumbers", - "MinNumbers", - "LessThan", - "LessThanOrEqual", - "MoreThan", - "MoreThanOrEqual", - "NumberEquals", - "StringEquals", - "IsPipelineStageClosed", - "Not", - "Date", - "Month", - "Year", - Now, - "TimeBetween", - "TimeBetweenSkipWeekends", - "PeriodToMonths", - "PeriodToWeeks", - "And", - "Or", - "Xor", - "IfString", - "IfNumber", - "IfBoolean", - "IsPresent", - "HasEmailReply", - "HasPlainTextEmailReply", - "ExtractMostRecentEmailReplyHTML", - "ExtractMostRecentEmailReplyText", - "ExtractMostRecentPlainTextEmailReply", - "SetContainsString", - IsEngagementType, - "FormatFullName", - "FormatPhoneNumber", - "FormatSearchablePhoneNumber", - "AbsoluteValue", - "SquareRoot", - "Power", - "Substring", - Euler, - "StringLength", - "IsBlank", - "AddTime", - "SubtractTime", - ], - ) -else: - Input: TypeAlias = Union[ - ConstantBoolean, - ConstantNumber, - ConstantString, - BooleanPropertyVariable, - StringPropertyVariable, - NumberPropertyVariable, - TimestampOfPropertyVariable, - BooleanTargetPropertyVariable, - StringTargetPropertyVariable, - NumberTargetPropertyVariable, - TimestampOfTargetPropertyVariable, - "AddNumbers", - "SubtractNumbers", - "MultiplyNumbers", - "DivideNumbers", - "RoundDownNumbers", - "RoundUpNumbers", - "RoundNearestNumbers", - "UpperCase", - "LowerCase", - "ConcatStrings", - "Contains", - "BeginsWith", - "NumberToString", - "ParseNumber", - "FetchExchangeRate", - "FetchCurrencyDecimalPlaces", - FetchSingleCurrencyPortalCurrency, - "DatedExchangeRate", - "PipelineProbability", - "MaxNumbers", - "MinNumbers", - "LessThan", - "LessThanOrEqual", - "MoreThan", - "MoreThanOrEqual", - "NumberEquals", - "StringEquals", - "IsPipelineStageClosed", - "Not", - "Date", - "Month", - "Year", - Now, - "TimeBetween", - "TimeBetweenSkipWeekends", - "PeriodToMonths", - "PeriodToWeeks", - "And", - "Or", - "Xor", - "IfString", - "IfNumber", - "IfBoolean", - "IsPresent", - "HasEmailReply", - "HasPlainTextEmailReply", - "ExtractMostRecentEmailReplyHTML", - "ExtractMostRecentEmailReplyText", - "ExtractMostRecentPlainTextEmailReply", - "SetContainsString", - IsEngagementType, - "FormatFullName", - "FormatPhoneNumber", - "FormatSearchablePhoneNumber", - "AbsoluteValue", - "SquareRoot", - "Power", - "Substring", - Euler, - "StringLength", - "IsBlank", - "AddTime", - "SubtractTime", - ] - - -class IsBlank(BaseModel): - operator: Literal["IS_BLANK"] - - inputs: Optional[List[Input]] = None - - property_name: Optional[str] = FieldInfo(alias="propertyName", default=None) - - value: Optional[bool] = None - - -from .or_ import Or -from .xor import Xor -from .and_ import And -from .date import Date -from .not_ import Not -from .year import Year -from .month import Month -from .power import Power -from .add_time import AddTime -from .contains import Contains -from .if_number import IfNumber -from .if_string import IfString -from .less_than import LessThan -from .more_than import MoreThan -from .substring import Substring -from .if_boolean import IfBoolean -from .is_present import IsPresent -from .lower_case import LowerCase -from .upper_case import UpperCase -from .add_numbers import AddNumbers -from .begins_with import BeginsWith -from .max_numbers import MaxNumbers -from .min_numbers import MinNumbers -from .square_root import SquareRoot -from .parse_number import ParseNumber -from .time_between import TimeBetween -from .number_equals import NumberEquals -from .string_equals import StringEquals -from .string_length import StringLength -from .subtract_time import SubtractTime -from .absolute_value import AbsoluteValue -from .concat_strings import ConcatStrings -from .divide_numbers import DivideNumbers -from .has_email_reply import HasEmailReply -from .period_to_weeks import PeriodToWeeks -from .format_full_name import FormatFullName -from .multiply_numbers import MultiplyNumbers -from .number_to_string import NumberToString -from .period_to_months import PeriodToMonths -from .round_up_numbers import RoundUpNumbers -from .subtract_numbers import SubtractNumbers -from .less_than_or_equal import LessThanOrEqual -from .more_than_or_equal import MoreThanOrEqual -from .round_down_numbers import RoundDownNumbers -from .dated_exchange_rate import DatedExchangeRate -from .fetch_exchange_rate import FetchExchangeRate -from .format_phone_number import FormatPhoneNumber -from .set_contains_string import SetContainsString -from .pipeline_probability import PipelineProbability -from .round_nearest_numbers import RoundNearestNumbers -from .is_pipeline_stage_closed import IsPipelineStageClosed -from .has_plain_text_email_reply import HasPlainTextEmailReply -from .time_between_skip_weekends import TimeBetweenSkipWeekends -from .fetch_currency_decimal_places import FetchCurrencyDecimalPlaces -from .format_searchable_phone_number import FormatSearchablePhoneNumber -from .extract_most_recent_email_reply_html import ExtractMostRecentEmailReplyHTML -from .extract_most_recent_email_reply_text import ExtractMostRecentEmailReplyText -from .extract_most_recent_plain_text_email_reply import ExtractMostRecentPlainTextEmailReply diff --git a/src/hubspot_sdk/types/cms/is_engagement_type.py b/src/hubspot_sdk/types/cms/is_engagement_type.py deleted file mode 100644 index 59b7130e..00000000 --- a/src/hubspot_sdk/types/cms/is_engagement_type.py +++ /dev/null @@ -1,18 +0,0 @@ -# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. - -from typing import Optional -from typing_extensions import Literal - -from pydantic import Field as FieldInfo - -from ..._models import BaseModel - -__all__ = ["IsEngagementType"] - - -class IsEngagementType(BaseModel): - operator: Literal["IS_ENGAGEMENT_TYPE"] - - property_name: Optional[str] = FieldInfo(alias="propertyName", default=None) - - value: Optional[bool] = None diff --git a/src/hubspot_sdk/types/cms/is_pipeline_stage_closed.py b/src/hubspot_sdk/types/cms/is_pipeline_stage_closed.py deleted file mode 100644 index 54034919..00000000 --- a/src/hubspot_sdk/types/cms/is_pipeline_stage_closed.py +++ /dev/null @@ -1,256 +0,0 @@ -# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. - -from __future__ import annotations - -from typing import TYPE_CHECKING, List, Union, Optional -from typing_extensions import Literal, TypeAlias, TypeAliasType - -from pydantic import Field as FieldInfo - -from .now import Now -from .euler import Euler -from ..._compat import PYDANTIC_V1 -from ..._models import BaseModel -from .constant_number import ConstantNumber -from .constant_string import ConstantString -from .constant_boolean import ConstantBoolean -from .is_engagement_type import IsEngagementType -from .number_property_variable import NumberPropertyVariable -from .string_property_variable import StringPropertyVariable -from .boolean_property_variable import BooleanPropertyVariable -from .timestamp_of_property_variable import TimestampOfPropertyVariable -from .number_target_property_variable import NumberTargetPropertyVariable -from .string_target_property_variable import StringTargetPropertyVariable -from .boolean_target_property_variable import BooleanTargetPropertyVariable -from .fetch_single_currency_portal_currency import FetchSingleCurrencyPortalCurrency -from .timestamp_of_target_property_variable import TimestampOfTargetPropertyVariable - -__all__ = ["IsPipelineStageClosed", "Input"] - -if TYPE_CHECKING or not PYDANTIC_V1: - Input = TypeAliasType( - "Input", - Union[ - ConstantBoolean, - ConstantNumber, - ConstantString, - BooleanPropertyVariable, - StringPropertyVariable, - NumberPropertyVariable, - TimestampOfPropertyVariable, - BooleanTargetPropertyVariable, - StringTargetPropertyVariable, - NumberTargetPropertyVariable, - TimestampOfTargetPropertyVariable, - "AddNumbers", - "SubtractNumbers", - "MultiplyNumbers", - "DivideNumbers", - "RoundDownNumbers", - "RoundUpNumbers", - "RoundNearestNumbers", - "UpperCase", - "LowerCase", - "ConcatStrings", - "Contains", - "BeginsWith", - "NumberToString", - "ParseNumber", - "FetchExchangeRate", - "FetchCurrencyDecimalPlaces", - FetchSingleCurrencyPortalCurrency, - "DatedExchangeRate", - "PipelineProbability", - "MaxNumbers", - "MinNumbers", - "LessThan", - "LessThanOrEqual", - "MoreThan", - "MoreThanOrEqual", - "NumberEquals", - "StringEquals", - "IsPipelineStageClosed", - "Not", - "Date", - "Month", - "Year", - Now, - "TimeBetween", - "TimeBetweenSkipWeekends", - "PeriodToMonths", - "PeriodToWeeks", - "And", - "Or", - "Xor", - "IfString", - "IfNumber", - "IfBoolean", - "IsPresent", - "HasEmailReply", - "HasPlainTextEmailReply", - "ExtractMostRecentEmailReplyHTML", - "ExtractMostRecentEmailReplyText", - "ExtractMostRecentPlainTextEmailReply", - "SetContainsString", - IsEngagementType, - "FormatFullName", - "FormatPhoneNumber", - "FormatSearchablePhoneNumber", - "AbsoluteValue", - "SquareRoot", - "Power", - "Substring", - Euler, - "StringLength", - "IsBlank", - "AddTime", - "SubtractTime", - ], - ) -else: - Input: TypeAlias = Union[ - ConstantBoolean, - ConstantNumber, - ConstantString, - BooleanPropertyVariable, - StringPropertyVariable, - NumberPropertyVariable, - TimestampOfPropertyVariable, - BooleanTargetPropertyVariable, - StringTargetPropertyVariable, - NumberTargetPropertyVariable, - TimestampOfTargetPropertyVariable, - "AddNumbers", - "SubtractNumbers", - "MultiplyNumbers", - "DivideNumbers", - "RoundDownNumbers", - "RoundUpNumbers", - "RoundNearestNumbers", - "UpperCase", - "LowerCase", - "ConcatStrings", - "Contains", - "BeginsWith", - "NumberToString", - "ParseNumber", - "FetchExchangeRate", - "FetchCurrencyDecimalPlaces", - FetchSingleCurrencyPortalCurrency, - "DatedExchangeRate", - "PipelineProbability", - "MaxNumbers", - "MinNumbers", - "LessThan", - "LessThanOrEqual", - "MoreThan", - "MoreThanOrEqual", - "NumberEquals", - "StringEquals", - "IsPipelineStageClosed", - "Not", - "Date", - "Month", - "Year", - Now, - "TimeBetween", - "TimeBetweenSkipWeekends", - "PeriodToMonths", - "PeriodToWeeks", - "And", - "Or", - "Xor", - "IfString", - "IfNumber", - "IfBoolean", - "IsPresent", - "HasEmailReply", - "HasPlainTextEmailReply", - "ExtractMostRecentEmailReplyHTML", - "ExtractMostRecentEmailReplyText", - "ExtractMostRecentPlainTextEmailReply", - "SetContainsString", - IsEngagementType, - "FormatFullName", - "FormatPhoneNumber", - "FormatSearchablePhoneNumber", - "AbsoluteValue", - "SquareRoot", - "Power", - "Substring", - Euler, - "StringLength", - "IsBlank", - "AddTime", - "SubtractTime", - ] - - -class IsPipelineStageClosed(BaseModel): - operator: Literal["IS_PIPELINE_STAGE_CLOSED"] - - inputs: Optional[List[Input]] = None - - property_name: Optional[str] = FieldInfo(alias="propertyName", default=None) - - value: Optional[bool] = None - - -from .or_ import Or -from .xor import Xor -from .and_ import And -from .date import Date -from .not_ import Not -from .year import Year -from .month import Month -from .power import Power -from .add_time import AddTime -from .contains import Contains -from .is_blank import IsBlank -from .if_number import IfNumber -from .if_string import IfString -from .less_than import LessThan -from .more_than import MoreThan -from .substring import Substring -from .if_boolean import IfBoolean -from .is_present import IsPresent -from .lower_case import LowerCase -from .upper_case import UpperCase -from .add_numbers import AddNumbers -from .begins_with import BeginsWith -from .max_numbers import MaxNumbers -from .min_numbers import MinNumbers -from .square_root import SquareRoot -from .parse_number import ParseNumber -from .time_between import TimeBetween -from .number_equals import NumberEquals -from .string_equals import StringEquals -from .string_length import StringLength -from .subtract_time import SubtractTime -from .absolute_value import AbsoluteValue -from .concat_strings import ConcatStrings -from .divide_numbers import DivideNumbers -from .has_email_reply import HasEmailReply -from .period_to_weeks import PeriodToWeeks -from .format_full_name import FormatFullName -from .multiply_numbers import MultiplyNumbers -from .number_to_string import NumberToString -from .period_to_months import PeriodToMonths -from .round_up_numbers import RoundUpNumbers -from .subtract_numbers import SubtractNumbers -from .less_than_or_equal import LessThanOrEqual -from .more_than_or_equal import MoreThanOrEqual -from .round_down_numbers import RoundDownNumbers -from .dated_exchange_rate import DatedExchangeRate -from .fetch_exchange_rate import FetchExchangeRate -from .format_phone_number import FormatPhoneNumber -from .set_contains_string import SetContainsString -from .pipeline_probability import PipelineProbability -from .round_nearest_numbers import RoundNearestNumbers -from .has_plain_text_email_reply import HasPlainTextEmailReply -from .time_between_skip_weekends import TimeBetweenSkipWeekends -from .fetch_currency_decimal_places import FetchCurrencyDecimalPlaces -from .format_searchable_phone_number import FormatSearchablePhoneNumber -from .extract_most_recent_email_reply_html import ExtractMostRecentEmailReplyHTML -from .extract_most_recent_email_reply_text import ExtractMostRecentEmailReplyText -from .extract_most_recent_plain_text_email_reply import ExtractMostRecentPlainTextEmailReply diff --git a/src/hubspot_sdk/types/cms/is_present.py b/src/hubspot_sdk/types/cms/is_present.py deleted file mode 100644 index 99020baa..00000000 --- a/src/hubspot_sdk/types/cms/is_present.py +++ /dev/null @@ -1,256 +0,0 @@ -# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. - -from __future__ import annotations - -from typing import TYPE_CHECKING, Union, Optional -from typing_extensions import Literal, TypeAlias, TypeAliasType - -from pydantic import Field as FieldInfo - -from .now import Now -from .euler import Euler -from ..._compat import PYDANTIC_V1 -from ..._models import BaseModel -from .constant_number import ConstantNumber -from .constant_string import ConstantString -from .constant_boolean import ConstantBoolean -from .is_engagement_type import IsEngagementType -from .number_property_variable import NumberPropertyVariable -from .string_property_variable import StringPropertyVariable -from .boolean_property_variable import BooleanPropertyVariable -from .timestamp_of_property_variable import TimestampOfPropertyVariable -from .number_target_property_variable import NumberTargetPropertyVariable -from .string_target_property_variable import StringTargetPropertyVariable -from .boolean_target_property_variable import BooleanTargetPropertyVariable -from .fetch_single_currency_portal_currency import FetchSingleCurrencyPortalCurrency -from .timestamp_of_target_property_variable import TimestampOfTargetPropertyVariable - -__all__ = ["IsPresent", "ExpressionToEvaluate"] - -if TYPE_CHECKING or not PYDANTIC_V1: - ExpressionToEvaluate = TypeAliasType( - "ExpressionToEvaluate", - Union[ - ConstantBoolean, - ConstantNumber, - ConstantString, - BooleanPropertyVariable, - StringPropertyVariable, - NumberPropertyVariable, - TimestampOfPropertyVariable, - BooleanTargetPropertyVariable, - StringTargetPropertyVariable, - NumberTargetPropertyVariable, - TimestampOfTargetPropertyVariable, - "AddNumbers", - "SubtractNumbers", - "MultiplyNumbers", - "DivideNumbers", - "RoundDownNumbers", - "RoundUpNumbers", - "RoundNearestNumbers", - "UpperCase", - "LowerCase", - "ConcatStrings", - "Contains", - "BeginsWith", - "NumberToString", - "ParseNumber", - "FetchExchangeRate", - "FetchCurrencyDecimalPlaces", - FetchSingleCurrencyPortalCurrency, - "DatedExchangeRate", - "PipelineProbability", - "MaxNumbers", - "MinNumbers", - "LessThan", - "LessThanOrEqual", - "MoreThan", - "MoreThanOrEqual", - "NumberEquals", - "StringEquals", - "IsPipelineStageClosed", - "Not", - "Date", - "Month", - "Year", - Now, - "TimeBetween", - "TimeBetweenSkipWeekends", - "PeriodToMonths", - "PeriodToWeeks", - "And", - "Or", - "Xor", - "IfString", - "IfNumber", - "IfBoolean", - "IsPresent", - "HasEmailReply", - "HasPlainTextEmailReply", - "ExtractMostRecentEmailReplyHTML", - "ExtractMostRecentEmailReplyText", - "ExtractMostRecentPlainTextEmailReply", - "SetContainsString", - IsEngagementType, - "FormatFullName", - "FormatPhoneNumber", - "FormatSearchablePhoneNumber", - "AbsoluteValue", - "SquareRoot", - "Power", - "Substring", - Euler, - "StringLength", - "IsBlank", - "AddTime", - "SubtractTime", - ], - ) -else: - ExpressionToEvaluate: TypeAlias = Union[ - ConstantBoolean, - ConstantNumber, - ConstantString, - BooleanPropertyVariable, - StringPropertyVariable, - NumberPropertyVariable, - TimestampOfPropertyVariable, - BooleanTargetPropertyVariable, - StringTargetPropertyVariable, - NumberTargetPropertyVariable, - TimestampOfTargetPropertyVariable, - "AddNumbers", - "SubtractNumbers", - "MultiplyNumbers", - "DivideNumbers", - "RoundDownNumbers", - "RoundUpNumbers", - "RoundNearestNumbers", - "UpperCase", - "LowerCase", - "ConcatStrings", - "Contains", - "BeginsWith", - "NumberToString", - "ParseNumber", - "FetchExchangeRate", - "FetchCurrencyDecimalPlaces", - FetchSingleCurrencyPortalCurrency, - "DatedExchangeRate", - "PipelineProbability", - "MaxNumbers", - "MinNumbers", - "LessThan", - "LessThanOrEqual", - "MoreThan", - "MoreThanOrEqual", - "NumberEquals", - "StringEquals", - "IsPipelineStageClosed", - "Not", - "Date", - "Month", - "Year", - Now, - "TimeBetween", - "TimeBetweenSkipWeekends", - "PeriodToMonths", - "PeriodToWeeks", - "And", - "Or", - "Xor", - "IfString", - "IfNumber", - "IfBoolean", - "IsPresent", - "HasEmailReply", - "HasPlainTextEmailReply", - "ExtractMostRecentEmailReplyHTML", - "ExtractMostRecentEmailReplyText", - "ExtractMostRecentPlainTextEmailReply", - "SetContainsString", - IsEngagementType, - "FormatFullName", - "FormatPhoneNumber", - "FormatSearchablePhoneNumber", - "AbsoluteValue", - "SquareRoot", - "Power", - "Substring", - Euler, - "StringLength", - "IsBlank", - "AddTime", - "SubtractTime", - ] - - -class IsPresent(BaseModel): - expression_to_evaluate: ExpressionToEvaluate = FieldInfo(alias="expressionToEvaluate") - - operator: Literal["IS_PRESENT"] - - property_name: Optional[str] = FieldInfo(alias="propertyName", default=None) - - value: Optional[bool] = None - - -from .or_ import Or -from .xor import Xor -from .and_ import And -from .date import Date -from .not_ import Not -from .year import Year -from .month import Month -from .power import Power -from .add_time import AddTime -from .contains import Contains -from .is_blank import IsBlank -from .if_number import IfNumber -from .if_string import IfString -from .less_than import LessThan -from .more_than import MoreThan -from .substring import Substring -from .if_boolean import IfBoolean -from .lower_case import LowerCase -from .upper_case import UpperCase -from .add_numbers import AddNumbers -from .begins_with import BeginsWith -from .max_numbers import MaxNumbers -from .min_numbers import MinNumbers -from .square_root import SquareRoot -from .parse_number import ParseNumber -from .time_between import TimeBetween -from .number_equals import NumberEquals -from .string_equals import StringEquals -from .string_length import StringLength -from .subtract_time import SubtractTime -from .absolute_value import AbsoluteValue -from .concat_strings import ConcatStrings -from .divide_numbers import DivideNumbers -from .has_email_reply import HasEmailReply -from .period_to_weeks import PeriodToWeeks -from .format_full_name import FormatFullName -from .multiply_numbers import MultiplyNumbers -from .number_to_string import NumberToString -from .period_to_months import PeriodToMonths -from .round_up_numbers import RoundUpNumbers -from .subtract_numbers import SubtractNumbers -from .less_than_or_equal import LessThanOrEqual -from .more_than_or_equal import MoreThanOrEqual -from .round_down_numbers import RoundDownNumbers -from .dated_exchange_rate import DatedExchangeRate -from .fetch_exchange_rate import FetchExchangeRate -from .format_phone_number import FormatPhoneNumber -from .set_contains_string import SetContainsString -from .pipeline_probability import PipelineProbability -from .round_nearest_numbers import RoundNearestNumbers -from .is_pipeline_stage_closed import IsPipelineStageClosed -from .has_plain_text_email_reply import HasPlainTextEmailReply -from .time_between_skip_weekends import TimeBetweenSkipWeekends -from .fetch_currency_decimal_places import FetchCurrencyDecimalPlaces -from .format_searchable_phone_number import FormatSearchablePhoneNumber -from .extract_most_recent_email_reply_html import ExtractMostRecentEmailReplyHTML -from .extract_most_recent_email_reply_text import ExtractMostRecentEmailReplyText -from .extract_most_recent_plain_text_email_reply import ExtractMostRecentPlainTextEmailReply diff --git a/src/hubspot_sdk/types/cms/less_than.py b/src/hubspot_sdk/types/cms/less_than.py deleted file mode 100644 index 31999a4e..00000000 --- a/src/hubspot_sdk/types/cms/less_than.py +++ /dev/null @@ -1,256 +0,0 @@ -# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. - -from __future__ import annotations - -from typing import TYPE_CHECKING, List, Union, Optional -from typing_extensions import Literal, TypeAlias, TypeAliasType - -from pydantic import Field as FieldInfo - -from .now import Now -from .euler import Euler -from ..._compat import PYDANTIC_V1 -from ..._models import BaseModel -from .constant_number import ConstantNumber -from .constant_string import ConstantString -from .constant_boolean import ConstantBoolean -from .is_engagement_type import IsEngagementType -from .number_property_variable import NumberPropertyVariable -from .string_property_variable import StringPropertyVariable -from .boolean_property_variable import BooleanPropertyVariable -from .timestamp_of_property_variable import TimestampOfPropertyVariable -from .number_target_property_variable import NumberTargetPropertyVariable -from .string_target_property_variable import StringTargetPropertyVariable -from .boolean_target_property_variable import BooleanTargetPropertyVariable -from .fetch_single_currency_portal_currency import FetchSingleCurrencyPortalCurrency -from .timestamp_of_target_property_variable import TimestampOfTargetPropertyVariable - -__all__ = ["LessThan", "Input"] - -if TYPE_CHECKING or not PYDANTIC_V1: - Input = TypeAliasType( - "Input", - Union[ - ConstantBoolean, - ConstantNumber, - ConstantString, - BooleanPropertyVariable, - StringPropertyVariable, - NumberPropertyVariable, - TimestampOfPropertyVariable, - BooleanTargetPropertyVariable, - StringTargetPropertyVariable, - NumberTargetPropertyVariable, - TimestampOfTargetPropertyVariable, - "AddNumbers", - "SubtractNumbers", - "MultiplyNumbers", - "DivideNumbers", - "RoundDownNumbers", - "RoundUpNumbers", - "RoundNearestNumbers", - "UpperCase", - "LowerCase", - "ConcatStrings", - "Contains", - "BeginsWith", - "NumberToString", - "ParseNumber", - "FetchExchangeRate", - "FetchCurrencyDecimalPlaces", - FetchSingleCurrencyPortalCurrency, - "DatedExchangeRate", - "PipelineProbability", - "MaxNumbers", - "MinNumbers", - "LessThan", - "LessThanOrEqual", - "MoreThan", - "MoreThanOrEqual", - "NumberEquals", - "StringEquals", - "IsPipelineStageClosed", - "Not", - "Date", - "Month", - "Year", - Now, - "TimeBetween", - "TimeBetweenSkipWeekends", - "PeriodToMonths", - "PeriodToWeeks", - "And", - "Or", - "Xor", - "IfString", - "IfNumber", - "IfBoolean", - "IsPresent", - "HasEmailReply", - "HasPlainTextEmailReply", - "ExtractMostRecentEmailReplyHTML", - "ExtractMostRecentEmailReplyText", - "ExtractMostRecentPlainTextEmailReply", - "SetContainsString", - IsEngagementType, - "FormatFullName", - "FormatPhoneNumber", - "FormatSearchablePhoneNumber", - "AbsoluteValue", - "SquareRoot", - "Power", - "Substring", - Euler, - "StringLength", - "IsBlank", - "AddTime", - "SubtractTime", - ], - ) -else: - Input: TypeAlias = Union[ - ConstantBoolean, - ConstantNumber, - ConstantString, - BooleanPropertyVariable, - StringPropertyVariable, - NumberPropertyVariable, - TimestampOfPropertyVariable, - BooleanTargetPropertyVariable, - StringTargetPropertyVariable, - NumberTargetPropertyVariable, - TimestampOfTargetPropertyVariable, - "AddNumbers", - "SubtractNumbers", - "MultiplyNumbers", - "DivideNumbers", - "RoundDownNumbers", - "RoundUpNumbers", - "RoundNearestNumbers", - "UpperCase", - "LowerCase", - "ConcatStrings", - "Contains", - "BeginsWith", - "NumberToString", - "ParseNumber", - "FetchExchangeRate", - "FetchCurrencyDecimalPlaces", - FetchSingleCurrencyPortalCurrency, - "DatedExchangeRate", - "PipelineProbability", - "MaxNumbers", - "MinNumbers", - "LessThan", - "LessThanOrEqual", - "MoreThan", - "MoreThanOrEqual", - "NumberEquals", - "StringEquals", - "IsPipelineStageClosed", - "Not", - "Date", - "Month", - "Year", - Now, - "TimeBetween", - "TimeBetweenSkipWeekends", - "PeriodToMonths", - "PeriodToWeeks", - "And", - "Or", - "Xor", - "IfString", - "IfNumber", - "IfBoolean", - "IsPresent", - "HasEmailReply", - "HasPlainTextEmailReply", - "ExtractMostRecentEmailReplyHTML", - "ExtractMostRecentEmailReplyText", - "ExtractMostRecentPlainTextEmailReply", - "SetContainsString", - IsEngagementType, - "FormatFullName", - "FormatPhoneNumber", - "FormatSearchablePhoneNumber", - "AbsoluteValue", - "SquareRoot", - "Power", - "Substring", - Euler, - "StringLength", - "IsBlank", - "AddTime", - "SubtractTime", - ] - - -class LessThan(BaseModel): - operator: Literal["LESS_THAN"] - - inputs: Optional[List[Input]] = None - - property_name: Optional[str] = FieldInfo(alias="propertyName", default=None) - - value: Optional[bool] = None - - -from .or_ import Or -from .xor import Xor -from .and_ import And -from .date import Date -from .not_ import Not -from .year import Year -from .month import Month -from .power import Power -from .add_time import AddTime -from .contains import Contains -from .is_blank import IsBlank -from .if_number import IfNumber -from .if_string import IfString -from .more_than import MoreThan -from .substring import Substring -from .if_boolean import IfBoolean -from .is_present import IsPresent -from .lower_case import LowerCase -from .upper_case import UpperCase -from .add_numbers import AddNumbers -from .begins_with import BeginsWith -from .max_numbers import MaxNumbers -from .min_numbers import MinNumbers -from .square_root import SquareRoot -from .parse_number import ParseNumber -from .time_between import TimeBetween -from .number_equals import NumberEquals -from .string_equals import StringEquals -from .string_length import StringLength -from .subtract_time import SubtractTime -from .absolute_value import AbsoluteValue -from .concat_strings import ConcatStrings -from .divide_numbers import DivideNumbers -from .has_email_reply import HasEmailReply -from .period_to_weeks import PeriodToWeeks -from .format_full_name import FormatFullName -from .multiply_numbers import MultiplyNumbers -from .number_to_string import NumberToString -from .period_to_months import PeriodToMonths -from .round_up_numbers import RoundUpNumbers -from .subtract_numbers import SubtractNumbers -from .less_than_or_equal import LessThanOrEqual -from .more_than_or_equal import MoreThanOrEqual -from .round_down_numbers import RoundDownNumbers -from .dated_exchange_rate import DatedExchangeRate -from .fetch_exchange_rate import FetchExchangeRate -from .format_phone_number import FormatPhoneNumber -from .set_contains_string import SetContainsString -from .pipeline_probability import PipelineProbability -from .round_nearest_numbers import RoundNearestNumbers -from .is_pipeline_stage_closed import IsPipelineStageClosed -from .has_plain_text_email_reply import HasPlainTextEmailReply -from .time_between_skip_weekends import TimeBetweenSkipWeekends -from .fetch_currency_decimal_places import FetchCurrencyDecimalPlaces -from .format_searchable_phone_number import FormatSearchablePhoneNumber -from .extract_most_recent_email_reply_html import ExtractMostRecentEmailReplyHTML -from .extract_most_recent_email_reply_text import ExtractMostRecentEmailReplyText -from .extract_most_recent_plain_text_email_reply import ExtractMostRecentPlainTextEmailReply diff --git a/src/hubspot_sdk/types/cms/less_than_or_equal.py b/src/hubspot_sdk/types/cms/less_than_or_equal.py deleted file mode 100644 index f41610f7..00000000 --- a/src/hubspot_sdk/types/cms/less_than_or_equal.py +++ /dev/null @@ -1,256 +0,0 @@ -# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. - -from __future__ import annotations - -from typing import TYPE_CHECKING, List, Union, Optional -from typing_extensions import Literal, TypeAlias, TypeAliasType - -from pydantic import Field as FieldInfo - -from .now import Now -from .euler import Euler -from ..._compat import PYDANTIC_V1 -from ..._models import BaseModel -from .constant_number import ConstantNumber -from .constant_string import ConstantString -from .constant_boolean import ConstantBoolean -from .is_engagement_type import IsEngagementType -from .number_property_variable import NumberPropertyVariable -from .string_property_variable import StringPropertyVariable -from .boolean_property_variable import BooleanPropertyVariable -from .timestamp_of_property_variable import TimestampOfPropertyVariable -from .number_target_property_variable import NumberTargetPropertyVariable -from .string_target_property_variable import StringTargetPropertyVariable -from .boolean_target_property_variable import BooleanTargetPropertyVariable -from .fetch_single_currency_portal_currency import FetchSingleCurrencyPortalCurrency -from .timestamp_of_target_property_variable import TimestampOfTargetPropertyVariable - -__all__ = ["LessThanOrEqual", "Input"] - -if TYPE_CHECKING or not PYDANTIC_V1: - Input = TypeAliasType( - "Input", - Union[ - ConstantBoolean, - ConstantNumber, - ConstantString, - BooleanPropertyVariable, - StringPropertyVariable, - NumberPropertyVariable, - TimestampOfPropertyVariable, - BooleanTargetPropertyVariable, - StringTargetPropertyVariable, - NumberTargetPropertyVariable, - TimestampOfTargetPropertyVariable, - "AddNumbers", - "SubtractNumbers", - "MultiplyNumbers", - "DivideNumbers", - "RoundDownNumbers", - "RoundUpNumbers", - "RoundNearestNumbers", - "UpperCase", - "LowerCase", - "ConcatStrings", - "Contains", - "BeginsWith", - "NumberToString", - "ParseNumber", - "FetchExchangeRate", - "FetchCurrencyDecimalPlaces", - FetchSingleCurrencyPortalCurrency, - "DatedExchangeRate", - "PipelineProbability", - "MaxNumbers", - "MinNumbers", - "LessThan", - "LessThanOrEqual", - "MoreThan", - "MoreThanOrEqual", - "NumberEquals", - "StringEquals", - "IsPipelineStageClosed", - "Not", - "Date", - "Month", - "Year", - Now, - "TimeBetween", - "TimeBetweenSkipWeekends", - "PeriodToMonths", - "PeriodToWeeks", - "And", - "Or", - "Xor", - "IfString", - "IfNumber", - "IfBoolean", - "IsPresent", - "HasEmailReply", - "HasPlainTextEmailReply", - "ExtractMostRecentEmailReplyHTML", - "ExtractMostRecentEmailReplyText", - "ExtractMostRecentPlainTextEmailReply", - "SetContainsString", - IsEngagementType, - "FormatFullName", - "FormatPhoneNumber", - "FormatSearchablePhoneNumber", - "AbsoluteValue", - "SquareRoot", - "Power", - "Substring", - Euler, - "StringLength", - "IsBlank", - "AddTime", - "SubtractTime", - ], - ) -else: - Input: TypeAlias = Union[ - ConstantBoolean, - ConstantNumber, - ConstantString, - BooleanPropertyVariable, - StringPropertyVariable, - NumberPropertyVariable, - TimestampOfPropertyVariable, - BooleanTargetPropertyVariable, - StringTargetPropertyVariable, - NumberTargetPropertyVariable, - TimestampOfTargetPropertyVariable, - "AddNumbers", - "SubtractNumbers", - "MultiplyNumbers", - "DivideNumbers", - "RoundDownNumbers", - "RoundUpNumbers", - "RoundNearestNumbers", - "UpperCase", - "LowerCase", - "ConcatStrings", - "Contains", - "BeginsWith", - "NumberToString", - "ParseNumber", - "FetchExchangeRate", - "FetchCurrencyDecimalPlaces", - FetchSingleCurrencyPortalCurrency, - "DatedExchangeRate", - "PipelineProbability", - "MaxNumbers", - "MinNumbers", - "LessThan", - "LessThanOrEqual", - "MoreThan", - "MoreThanOrEqual", - "NumberEquals", - "StringEquals", - "IsPipelineStageClosed", - "Not", - "Date", - "Month", - "Year", - Now, - "TimeBetween", - "TimeBetweenSkipWeekends", - "PeriodToMonths", - "PeriodToWeeks", - "And", - "Or", - "Xor", - "IfString", - "IfNumber", - "IfBoolean", - "IsPresent", - "HasEmailReply", - "HasPlainTextEmailReply", - "ExtractMostRecentEmailReplyHTML", - "ExtractMostRecentEmailReplyText", - "ExtractMostRecentPlainTextEmailReply", - "SetContainsString", - IsEngagementType, - "FormatFullName", - "FormatPhoneNumber", - "FormatSearchablePhoneNumber", - "AbsoluteValue", - "SquareRoot", - "Power", - "Substring", - Euler, - "StringLength", - "IsBlank", - "AddTime", - "SubtractTime", - ] - - -class LessThanOrEqual(BaseModel): - operator: Literal["LESS_THAN_OR_EQUAL"] - - inputs: Optional[List[Input]] = None - - property_name: Optional[str] = FieldInfo(alias="propertyName", default=None) - - value: Optional[bool] = None - - -from .or_ import Or -from .xor import Xor -from .and_ import And -from .date import Date -from .not_ import Not -from .year import Year -from .month import Month -from .power import Power -from .add_time import AddTime -from .contains import Contains -from .is_blank import IsBlank -from .if_number import IfNumber -from .if_string import IfString -from .less_than import LessThan -from .more_than import MoreThan -from .substring import Substring -from .if_boolean import IfBoolean -from .is_present import IsPresent -from .lower_case import LowerCase -from .upper_case import UpperCase -from .add_numbers import AddNumbers -from .begins_with import BeginsWith -from .max_numbers import MaxNumbers -from .min_numbers import MinNumbers -from .square_root import SquareRoot -from .parse_number import ParseNumber -from .time_between import TimeBetween -from .number_equals import NumberEquals -from .string_equals import StringEquals -from .string_length import StringLength -from .subtract_time import SubtractTime -from .absolute_value import AbsoluteValue -from .concat_strings import ConcatStrings -from .divide_numbers import DivideNumbers -from .has_email_reply import HasEmailReply -from .period_to_weeks import PeriodToWeeks -from .format_full_name import FormatFullName -from .multiply_numbers import MultiplyNumbers -from .number_to_string import NumberToString -from .period_to_months import PeriodToMonths -from .round_up_numbers import RoundUpNumbers -from .subtract_numbers import SubtractNumbers -from .more_than_or_equal import MoreThanOrEqual -from .round_down_numbers import RoundDownNumbers -from .dated_exchange_rate import DatedExchangeRate -from .fetch_exchange_rate import FetchExchangeRate -from .format_phone_number import FormatPhoneNumber -from .set_contains_string import SetContainsString -from .pipeline_probability import PipelineProbability -from .round_nearest_numbers import RoundNearestNumbers -from .is_pipeline_stage_closed import IsPipelineStageClosed -from .has_plain_text_email_reply import HasPlainTextEmailReply -from .time_between_skip_weekends import TimeBetweenSkipWeekends -from .fetch_currency_decimal_places import FetchCurrencyDecimalPlaces -from .format_searchable_phone_number import FormatSearchablePhoneNumber -from .extract_most_recent_email_reply_html import ExtractMostRecentEmailReplyHTML -from .extract_most_recent_email_reply_text import ExtractMostRecentEmailReplyText -from .extract_most_recent_plain_text_email_reply import ExtractMostRecentPlainTextEmailReply diff --git a/src/hubspot_sdk/types/cms/lookup_association_spec.py b/src/hubspot_sdk/types/cms/lookup_association_spec.py new file mode 100644 index 00000000..85d9222d --- /dev/null +++ b/src/hubspot_sdk/types/cms/lookup_association_spec.py @@ -0,0 +1,25 @@ +# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. + +from typing import Optional +from typing_extensions import Literal + +from pydantic import Field as FieldInfo + +from ..._models import BaseModel +from ..shared.association_spec import AssociationSpec + +__all__ = ["LookupAssociationSpec"] + + +class LookupAssociationSpec(BaseModel): + association_spec: AssociationSpec = FieldInfo(alias="associationSpec") + """ + Defines the type, direction, and details of the relationship between two CRM + objects. + """ + + cardinality: Optional[Literal["ONE_TO_MANY", "ONE_TO_ONE"]] = None + + max_to_object_ids: Optional[int] = FieldInfo(alias="maxToObjectIds", default=None) + + to_object_type_id: Optional[str] = FieldInfo(alias="toObjectTypeId", default=None) diff --git a/src/hubspot_sdk/types/cms/lower_case.py b/src/hubspot_sdk/types/cms/lower_case.py deleted file mode 100644 index e3dcdac0..00000000 --- a/src/hubspot_sdk/types/cms/lower_case.py +++ /dev/null @@ -1,256 +0,0 @@ -# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. - -from __future__ import annotations - -from typing import TYPE_CHECKING, List, Union, Optional -from typing_extensions import Literal, TypeAlias, TypeAliasType - -from pydantic import Field as FieldInfo - -from .now import Now -from .euler import Euler -from ..._compat import PYDANTIC_V1 -from ..._models import BaseModel -from .constant_number import ConstantNumber -from .constant_string import ConstantString -from .constant_boolean import ConstantBoolean -from .is_engagement_type import IsEngagementType -from .number_property_variable import NumberPropertyVariable -from .string_property_variable import StringPropertyVariable -from .boolean_property_variable import BooleanPropertyVariable -from .timestamp_of_property_variable import TimestampOfPropertyVariable -from .number_target_property_variable import NumberTargetPropertyVariable -from .string_target_property_variable import StringTargetPropertyVariable -from .boolean_target_property_variable import BooleanTargetPropertyVariable -from .fetch_single_currency_portal_currency import FetchSingleCurrencyPortalCurrency -from .timestamp_of_target_property_variable import TimestampOfTargetPropertyVariable - -__all__ = ["LowerCase", "Input"] - -if TYPE_CHECKING or not PYDANTIC_V1: - Input = TypeAliasType( - "Input", - Union[ - ConstantBoolean, - ConstantNumber, - ConstantString, - BooleanPropertyVariable, - StringPropertyVariable, - NumberPropertyVariable, - TimestampOfPropertyVariable, - BooleanTargetPropertyVariable, - StringTargetPropertyVariable, - NumberTargetPropertyVariable, - TimestampOfTargetPropertyVariable, - "AddNumbers", - "SubtractNumbers", - "MultiplyNumbers", - "DivideNumbers", - "RoundDownNumbers", - "RoundUpNumbers", - "RoundNearestNumbers", - "UpperCase", - "LowerCase", - "ConcatStrings", - "Contains", - "BeginsWith", - "NumberToString", - "ParseNumber", - "FetchExchangeRate", - "FetchCurrencyDecimalPlaces", - FetchSingleCurrencyPortalCurrency, - "DatedExchangeRate", - "PipelineProbability", - "MaxNumbers", - "MinNumbers", - "LessThan", - "LessThanOrEqual", - "MoreThan", - "MoreThanOrEqual", - "NumberEquals", - "StringEquals", - "IsPipelineStageClosed", - "Not", - "Date", - "Month", - "Year", - Now, - "TimeBetween", - "TimeBetweenSkipWeekends", - "PeriodToMonths", - "PeriodToWeeks", - "And", - "Or", - "Xor", - "IfString", - "IfNumber", - "IfBoolean", - "IsPresent", - "HasEmailReply", - "HasPlainTextEmailReply", - "ExtractMostRecentEmailReplyHTML", - "ExtractMostRecentEmailReplyText", - "ExtractMostRecentPlainTextEmailReply", - "SetContainsString", - IsEngagementType, - "FormatFullName", - "FormatPhoneNumber", - "FormatSearchablePhoneNumber", - "AbsoluteValue", - "SquareRoot", - "Power", - "Substring", - Euler, - "StringLength", - "IsBlank", - "AddTime", - "SubtractTime", - ], - ) -else: - Input: TypeAlias = Union[ - ConstantBoolean, - ConstantNumber, - ConstantString, - BooleanPropertyVariable, - StringPropertyVariable, - NumberPropertyVariable, - TimestampOfPropertyVariable, - BooleanTargetPropertyVariable, - StringTargetPropertyVariable, - NumberTargetPropertyVariable, - TimestampOfTargetPropertyVariable, - "AddNumbers", - "SubtractNumbers", - "MultiplyNumbers", - "DivideNumbers", - "RoundDownNumbers", - "RoundUpNumbers", - "RoundNearestNumbers", - "UpperCase", - "LowerCase", - "ConcatStrings", - "Contains", - "BeginsWith", - "NumberToString", - "ParseNumber", - "FetchExchangeRate", - "FetchCurrencyDecimalPlaces", - FetchSingleCurrencyPortalCurrency, - "DatedExchangeRate", - "PipelineProbability", - "MaxNumbers", - "MinNumbers", - "LessThan", - "LessThanOrEqual", - "MoreThan", - "MoreThanOrEqual", - "NumberEquals", - "StringEquals", - "IsPipelineStageClosed", - "Not", - "Date", - "Month", - "Year", - Now, - "TimeBetween", - "TimeBetweenSkipWeekends", - "PeriodToMonths", - "PeriodToWeeks", - "And", - "Or", - "Xor", - "IfString", - "IfNumber", - "IfBoolean", - "IsPresent", - "HasEmailReply", - "HasPlainTextEmailReply", - "ExtractMostRecentEmailReplyHTML", - "ExtractMostRecentEmailReplyText", - "ExtractMostRecentPlainTextEmailReply", - "SetContainsString", - IsEngagementType, - "FormatFullName", - "FormatPhoneNumber", - "FormatSearchablePhoneNumber", - "AbsoluteValue", - "SquareRoot", - "Power", - "Substring", - Euler, - "StringLength", - "IsBlank", - "AddTime", - "SubtractTime", - ] - - -class LowerCase(BaseModel): - operator: Literal["LOWER_CASE"] - - inputs: Optional[List[Input]] = None - - property_name: Optional[str] = FieldInfo(alias="propertyName", default=None) - - value: Optional[str] = None - - -from .or_ import Or -from .xor import Xor -from .and_ import And -from .date import Date -from .not_ import Not -from .year import Year -from .month import Month -from .power import Power -from .add_time import AddTime -from .contains import Contains -from .is_blank import IsBlank -from .if_number import IfNumber -from .if_string import IfString -from .less_than import LessThan -from .more_than import MoreThan -from .substring import Substring -from .if_boolean import IfBoolean -from .is_present import IsPresent -from .upper_case import UpperCase -from .add_numbers import AddNumbers -from .begins_with import BeginsWith -from .max_numbers import MaxNumbers -from .min_numbers import MinNumbers -from .square_root import SquareRoot -from .parse_number import ParseNumber -from .time_between import TimeBetween -from .number_equals import NumberEquals -from .string_equals import StringEquals -from .string_length import StringLength -from .subtract_time import SubtractTime -from .absolute_value import AbsoluteValue -from .concat_strings import ConcatStrings -from .divide_numbers import DivideNumbers -from .has_email_reply import HasEmailReply -from .period_to_weeks import PeriodToWeeks -from .format_full_name import FormatFullName -from .multiply_numbers import MultiplyNumbers -from .number_to_string import NumberToString -from .period_to_months import PeriodToMonths -from .round_up_numbers import RoundUpNumbers -from .subtract_numbers import SubtractNumbers -from .less_than_or_equal import LessThanOrEqual -from .more_than_or_equal import MoreThanOrEqual -from .round_down_numbers import RoundDownNumbers -from .dated_exchange_rate import DatedExchangeRate -from .fetch_exchange_rate import FetchExchangeRate -from .format_phone_number import FormatPhoneNumber -from .set_contains_string import SetContainsString -from .pipeline_probability import PipelineProbability -from .round_nearest_numbers import RoundNearestNumbers -from .is_pipeline_stage_closed import IsPipelineStageClosed -from .has_plain_text_email_reply import HasPlainTextEmailReply -from .time_between_skip_weekends import TimeBetweenSkipWeekends -from .fetch_currency_decimal_places import FetchCurrencyDecimalPlaces -from .format_searchable_phone_number import FormatSearchablePhoneNumber -from .extract_most_recent_email_reply_html import ExtractMostRecentEmailReplyHTML -from .extract_most_recent_email_reply_text import ExtractMostRecentEmailReplyText -from .extract_most_recent_plain_text_email_reply import ExtractMostRecentPlainTextEmailReply diff --git a/src/hubspot_sdk/types/cms/max_numbers.py b/src/hubspot_sdk/types/cms/max_numbers.py deleted file mode 100644 index 327df09c..00000000 --- a/src/hubspot_sdk/types/cms/max_numbers.py +++ /dev/null @@ -1,256 +0,0 @@ -# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. - -from __future__ import annotations - -from typing import TYPE_CHECKING, List, Union, Optional -from typing_extensions import Literal, TypeAlias, TypeAliasType - -from pydantic import Field as FieldInfo - -from .now import Now -from .euler import Euler -from ..._compat import PYDANTIC_V1 -from ..._models import BaseModel -from .constant_number import ConstantNumber -from .constant_string import ConstantString -from .constant_boolean import ConstantBoolean -from .is_engagement_type import IsEngagementType -from .number_property_variable import NumberPropertyVariable -from .string_property_variable import StringPropertyVariable -from .boolean_property_variable import BooleanPropertyVariable -from .timestamp_of_property_variable import TimestampOfPropertyVariable -from .number_target_property_variable import NumberTargetPropertyVariable -from .string_target_property_variable import StringTargetPropertyVariable -from .boolean_target_property_variable import BooleanTargetPropertyVariable -from .fetch_single_currency_portal_currency import FetchSingleCurrencyPortalCurrency -from .timestamp_of_target_property_variable import TimestampOfTargetPropertyVariable - -__all__ = ["MaxNumbers", "Input"] - -if TYPE_CHECKING or not PYDANTIC_V1: - Input = TypeAliasType( - "Input", - Union[ - ConstantBoolean, - ConstantNumber, - ConstantString, - BooleanPropertyVariable, - StringPropertyVariable, - NumberPropertyVariable, - TimestampOfPropertyVariable, - BooleanTargetPropertyVariable, - StringTargetPropertyVariable, - NumberTargetPropertyVariable, - TimestampOfTargetPropertyVariable, - "AddNumbers", - "SubtractNumbers", - "MultiplyNumbers", - "DivideNumbers", - "RoundDownNumbers", - "RoundUpNumbers", - "RoundNearestNumbers", - "UpperCase", - "LowerCase", - "ConcatStrings", - "Contains", - "BeginsWith", - "NumberToString", - "ParseNumber", - "FetchExchangeRate", - "FetchCurrencyDecimalPlaces", - FetchSingleCurrencyPortalCurrency, - "DatedExchangeRate", - "PipelineProbability", - "MaxNumbers", - "MinNumbers", - "LessThan", - "LessThanOrEqual", - "MoreThan", - "MoreThanOrEqual", - "NumberEquals", - "StringEquals", - "IsPipelineStageClosed", - "Not", - "Date", - "Month", - "Year", - Now, - "TimeBetween", - "TimeBetweenSkipWeekends", - "PeriodToMonths", - "PeriodToWeeks", - "And", - "Or", - "Xor", - "IfString", - "IfNumber", - "IfBoolean", - "IsPresent", - "HasEmailReply", - "HasPlainTextEmailReply", - "ExtractMostRecentEmailReplyHTML", - "ExtractMostRecentEmailReplyText", - "ExtractMostRecentPlainTextEmailReply", - "SetContainsString", - IsEngagementType, - "FormatFullName", - "FormatPhoneNumber", - "FormatSearchablePhoneNumber", - "AbsoluteValue", - "SquareRoot", - "Power", - "Substring", - Euler, - "StringLength", - "IsBlank", - "AddTime", - "SubtractTime", - ], - ) -else: - Input: TypeAlias = Union[ - ConstantBoolean, - ConstantNumber, - ConstantString, - BooleanPropertyVariable, - StringPropertyVariable, - NumberPropertyVariable, - TimestampOfPropertyVariable, - BooleanTargetPropertyVariable, - StringTargetPropertyVariable, - NumberTargetPropertyVariable, - TimestampOfTargetPropertyVariable, - "AddNumbers", - "SubtractNumbers", - "MultiplyNumbers", - "DivideNumbers", - "RoundDownNumbers", - "RoundUpNumbers", - "RoundNearestNumbers", - "UpperCase", - "LowerCase", - "ConcatStrings", - "Contains", - "BeginsWith", - "NumberToString", - "ParseNumber", - "FetchExchangeRate", - "FetchCurrencyDecimalPlaces", - FetchSingleCurrencyPortalCurrency, - "DatedExchangeRate", - "PipelineProbability", - "MaxNumbers", - "MinNumbers", - "LessThan", - "LessThanOrEqual", - "MoreThan", - "MoreThanOrEqual", - "NumberEquals", - "StringEquals", - "IsPipelineStageClosed", - "Not", - "Date", - "Month", - "Year", - Now, - "TimeBetween", - "TimeBetweenSkipWeekends", - "PeriodToMonths", - "PeriodToWeeks", - "And", - "Or", - "Xor", - "IfString", - "IfNumber", - "IfBoolean", - "IsPresent", - "HasEmailReply", - "HasPlainTextEmailReply", - "ExtractMostRecentEmailReplyHTML", - "ExtractMostRecentEmailReplyText", - "ExtractMostRecentPlainTextEmailReply", - "SetContainsString", - IsEngagementType, - "FormatFullName", - "FormatPhoneNumber", - "FormatSearchablePhoneNumber", - "AbsoluteValue", - "SquareRoot", - "Power", - "Substring", - Euler, - "StringLength", - "IsBlank", - "AddTime", - "SubtractTime", - ] - - -class MaxNumbers(BaseModel): - operator: Literal["MAX_NUMBERS"] - - inputs: Optional[List[Input]] = None - - property_name: Optional[str] = FieldInfo(alias="propertyName", default=None) - - value: Optional[float] = None - - -from .or_ import Or -from .xor import Xor -from .and_ import And -from .date import Date -from .not_ import Not -from .year import Year -from .month import Month -from .power import Power -from .add_time import AddTime -from .contains import Contains -from .is_blank import IsBlank -from .if_number import IfNumber -from .if_string import IfString -from .less_than import LessThan -from .more_than import MoreThan -from .substring import Substring -from .if_boolean import IfBoolean -from .is_present import IsPresent -from .lower_case import LowerCase -from .upper_case import UpperCase -from .add_numbers import AddNumbers -from .begins_with import BeginsWith -from .min_numbers import MinNumbers -from .square_root import SquareRoot -from .parse_number import ParseNumber -from .time_between import TimeBetween -from .number_equals import NumberEquals -from .string_equals import StringEquals -from .string_length import StringLength -from .subtract_time import SubtractTime -from .absolute_value import AbsoluteValue -from .concat_strings import ConcatStrings -from .divide_numbers import DivideNumbers -from .has_email_reply import HasEmailReply -from .period_to_weeks import PeriodToWeeks -from .format_full_name import FormatFullName -from .multiply_numbers import MultiplyNumbers -from .number_to_string import NumberToString -from .period_to_months import PeriodToMonths -from .round_up_numbers import RoundUpNumbers -from .subtract_numbers import SubtractNumbers -from .less_than_or_equal import LessThanOrEqual -from .more_than_or_equal import MoreThanOrEqual -from .round_down_numbers import RoundDownNumbers -from .dated_exchange_rate import DatedExchangeRate -from .fetch_exchange_rate import FetchExchangeRate -from .format_phone_number import FormatPhoneNumber -from .set_contains_string import SetContainsString -from .pipeline_probability import PipelineProbability -from .round_nearest_numbers import RoundNearestNumbers -from .is_pipeline_stage_closed import IsPipelineStageClosed -from .has_plain_text_email_reply import HasPlainTextEmailReply -from .time_between_skip_weekends import TimeBetweenSkipWeekends -from .fetch_currency_decimal_places import FetchCurrencyDecimalPlaces -from .format_searchable_phone_number import FormatSearchablePhoneNumber -from .extract_most_recent_email_reply_html import ExtractMostRecentEmailReplyHTML -from .extract_most_recent_email_reply_text import ExtractMostRecentEmailReplyText -from .extract_most_recent_plain_text_email_reply import ExtractMostRecentPlainTextEmailReply diff --git a/src/hubspot_sdk/types/cms/property.py b/src/hubspot_sdk/types/cms/media_bridge_property.py similarity index 99% rename from src/hubspot_sdk/types/cms/property.py rename to src/hubspot_sdk/types/cms/media_bridge_property.py index c73fc113..8c572f68 100644 --- a/src/hubspot_sdk/types/cms/property.py +++ b/src/hubspot_sdk/types/cms/media_bridge_property.py @@ -9,10 +9,10 @@ from .object_type_id_proto import ObjectTypeIDProto from ..shared.automation_actions_option import AutomationActionsOption -__all__ = ["Property"] +__all__ = ["MediaBridgeProperty"] -class Property(BaseModel): +class MediaBridgeProperty(BaseModel): """A HubSpot property""" allowed_object_types: List[ObjectTypeIDProto] = FieldInfo(alias="allowedObjectTypes") diff --git a/src/hubspot_sdk/types/cms/min_numbers.py b/src/hubspot_sdk/types/cms/min_numbers.py deleted file mode 100644 index eb598d5c..00000000 --- a/src/hubspot_sdk/types/cms/min_numbers.py +++ /dev/null @@ -1,256 +0,0 @@ -# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. - -from __future__ import annotations - -from typing import TYPE_CHECKING, List, Union, Optional -from typing_extensions import Literal, TypeAlias, TypeAliasType - -from pydantic import Field as FieldInfo - -from .now import Now -from .euler import Euler -from ..._compat import PYDANTIC_V1 -from ..._models import BaseModel -from .constant_number import ConstantNumber -from .constant_string import ConstantString -from .constant_boolean import ConstantBoolean -from .is_engagement_type import IsEngagementType -from .number_property_variable import NumberPropertyVariable -from .string_property_variable import StringPropertyVariable -from .boolean_property_variable import BooleanPropertyVariable -from .timestamp_of_property_variable import TimestampOfPropertyVariable -from .number_target_property_variable import NumberTargetPropertyVariable -from .string_target_property_variable import StringTargetPropertyVariable -from .boolean_target_property_variable import BooleanTargetPropertyVariable -from .fetch_single_currency_portal_currency import FetchSingleCurrencyPortalCurrency -from .timestamp_of_target_property_variable import TimestampOfTargetPropertyVariable - -__all__ = ["MinNumbers", "Input"] - -if TYPE_CHECKING or not PYDANTIC_V1: - Input = TypeAliasType( - "Input", - Union[ - ConstantBoolean, - ConstantNumber, - ConstantString, - BooleanPropertyVariable, - StringPropertyVariable, - NumberPropertyVariable, - TimestampOfPropertyVariable, - BooleanTargetPropertyVariable, - StringTargetPropertyVariable, - NumberTargetPropertyVariable, - TimestampOfTargetPropertyVariable, - "AddNumbers", - "SubtractNumbers", - "MultiplyNumbers", - "DivideNumbers", - "RoundDownNumbers", - "RoundUpNumbers", - "RoundNearestNumbers", - "UpperCase", - "LowerCase", - "ConcatStrings", - "Contains", - "BeginsWith", - "NumberToString", - "ParseNumber", - "FetchExchangeRate", - "FetchCurrencyDecimalPlaces", - FetchSingleCurrencyPortalCurrency, - "DatedExchangeRate", - "PipelineProbability", - "MaxNumbers", - "MinNumbers", - "LessThan", - "LessThanOrEqual", - "MoreThan", - "MoreThanOrEqual", - "NumberEquals", - "StringEquals", - "IsPipelineStageClosed", - "Not", - "Date", - "Month", - "Year", - Now, - "TimeBetween", - "TimeBetweenSkipWeekends", - "PeriodToMonths", - "PeriodToWeeks", - "And", - "Or", - "Xor", - "IfString", - "IfNumber", - "IfBoolean", - "IsPresent", - "HasEmailReply", - "HasPlainTextEmailReply", - "ExtractMostRecentEmailReplyHTML", - "ExtractMostRecentEmailReplyText", - "ExtractMostRecentPlainTextEmailReply", - "SetContainsString", - IsEngagementType, - "FormatFullName", - "FormatPhoneNumber", - "FormatSearchablePhoneNumber", - "AbsoluteValue", - "SquareRoot", - "Power", - "Substring", - Euler, - "StringLength", - "IsBlank", - "AddTime", - "SubtractTime", - ], - ) -else: - Input: TypeAlias = Union[ - ConstantBoolean, - ConstantNumber, - ConstantString, - BooleanPropertyVariable, - StringPropertyVariable, - NumberPropertyVariable, - TimestampOfPropertyVariable, - BooleanTargetPropertyVariable, - StringTargetPropertyVariable, - NumberTargetPropertyVariable, - TimestampOfTargetPropertyVariable, - "AddNumbers", - "SubtractNumbers", - "MultiplyNumbers", - "DivideNumbers", - "RoundDownNumbers", - "RoundUpNumbers", - "RoundNearestNumbers", - "UpperCase", - "LowerCase", - "ConcatStrings", - "Contains", - "BeginsWith", - "NumberToString", - "ParseNumber", - "FetchExchangeRate", - "FetchCurrencyDecimalPlaces", - FetchSingleCurrencyPortalCurrency, - "DatedExchangeRate", - "PipelineProbability", - "MaxNumbers", - "MinNumbers", - "LessThan", - "LessThanOrEqual", - "MoreThan", - "MoreThanOrEqual", - "NumberEquals", - "StringEquals", - "IsPipelineStageClosed", - "Not", - "Date", - "Month", - "Year", - Now, - "TimeBetween", - "TimeBetweenSkipWeekends", - "PeriodToMonths", - "PeriodToWeeks", - "And", - "Or", - "Xor", - "IfString", - "IfNumber", - "IfBoolean", - "IsPresent", - "HasEmailReply", - "HasPlainTextEmailReply", - "ExtractMostRecentEmailReplyHTML", - "ExtractMostRecentEmailReplyText", - "ExtractMostRecentPlainTextEmailReply", - "SetContainsString", - IsEngagementType, - "FormatFullName", - "FormatPhoneNumber", - "FormatSearchablePhoneNumber", - "AbsoluteValue", - "SquareRoot", - "Power", - "Substring", - Euler, - "StringLength", - "IsBlank", - "AddTime", - "SubtractTime", - ] - - -class MinNumbers(BaseModel): - operator: Literal["MIN_NUMBERS"] - - inputs: Optional[List[Input]] = None - - property_name: Optional[str] = FieldInfo(alias="propertyName", default=None) - - value: Optional[float] = None - - -from .or_ import Or -from .xor import Xor -from .and_ import And -from .date import Date -from .not_ import Not -from .year import Year -from .month import Month -from .power import Power -from .add_time import AddTime -from .contains import Contains -from .is_blank import IsBlank -from .if_number import IfNumber -from .if_string import IfString -from .less_than import LessThan -from .more_than import MoreThan -from .substring import Substring -from .if_boolean import IfBoolean -from .is_present import IsPresent -from .lower_case import LowerCase -from .upper_case import UpperCase -from .add_numbers import AddNumbers -from .begins_with import BeginsWith -from .max_numbers import MaxNumbers -from .square_root import SquareRoot -from .parse_number import ParseNumber -from .time_between import TimeBetween -from .number_equals import NumberEquals -from .string_equals import StringEquals -from .string_length import StringLength -from .subtract_time import SubtractTime -from .absolute_value import AbsoluteValue -from .concat_strings import ConcatStrings -from .divide_numbers import DivideNumbers -from .has_email_reply import HasEmailReply -from .period_to_weeks import PeriodToWeeks -from .format_full_name import FormatFullName -from .multiply_numbers import MultiplyNumbers -from .number_to_string import NumberToString -from .period_to_months import PeriodToMonths -from .round_up_numbers import RoundUpNumbers -from .subtract_numbers import SubtractNumbers -from .less_than_or_equal import LessThanOrEqual -from .more_than_or_equal import MoreThanOrEqual -from .round_down_numbers import RoundDownNumbers -from .dated_exchange_rate import DatedExchangeRate -from .fetch_exchange_rate import FetchExchangeRate -from .format_phone_number import FormatPhoneNumber -from .set_contains_string import SetContainsString -from .pipeline_probability import PipelineProbability -from .round_nearest_numbers import RoundNearestNumbers -from .is_pipeline_stage_closed import IsPipelineStageClosed -from .has_plain_text_email_reply import HasPlainTextEmailReply -from .time_between_skip_weekends import TimeBetweenSkipWeekends -from .fetch_currency_decimal_places import FetchCurrencyDecimalPlaces -from .format_searchable_phone_number import FormatSearchablePhoneNumber -from .extract_most_recent_email_reply_html import ExtractMostRecentEmailReplyHTML -from .extract_most_recent_email_reply_text import ExtractMostRecentEmailReplyText -from .extract_most_recent_plain_text_email_reply import ExtractMostRecentPlainTextEmailReply diff --git a/src/hubspot_sdk/types/cms/month.py b/src/hubspot_sdk/types/cms/month.py deleted file mode 100644 index 371d71e9..00000000 --- a/src/hubspot_sdk/types/cms/month.py +++ /dev/null @@ -1,256 +0,0 @@ -# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. - -from __future__ import annotations - -from typing import TYPE_CHECKING, List, Union, Optional -from typing_extensions import Literal, TypeAlias, TypeAliasType - -from pydantic import Field as FieldInfo - -from .now import Now -from .euler import Euler -from ..._compat import PYDANTIC_V1 -from ..._models import BaseModel -from .constant_number import ConstantNumber -from .constant_string import ConstantString -from .constant_boolean import ConstantBoolean -from .is_engagement_type import IsEngagementType -from .number_property_variable import NumberPropertyVariable -from .string_property_variable import StringPropertyVariable -from .boolean_property_variable import BooleanPropertyVariable -from .timestamp_of_property_variable import TimestampOfPropertyVariable -from .number_target_property_variable import NumberTargetPropertyVariable -from .string_target_property_variable import StringTargetPropertyVariable -from .boolean_target_property_variable import BooleanTargetPropertyVariable -from .fetch_single_currency_portal_currency import FetchSingleCurrencyPortalCurrency -from .timestamp_of_target_property_variable import TimestampOfTargetPropertyVariable - -__all__ = ["Month", "Input"] - -if TYPE_CHECKING or not PYDANTIC_V1: - Input = TypeAliasType( - "Input", - Union[ - ConstantBoolean, - ConstantNumber, - ConstantString, - BooleanPropertyVariable, - StringPropertyVariable, - NumberPropertyVariable, - TimestampOfPropertyVariable, - BooleanTargetPropertyVariable, - StringTargetPropertyVariable, - NumberTargetPropertyVariable, - TimestampOfTargetPropertyVariable, - "AddNumbers", - "SubtractNumbers", - "MultiplyNumbers", - "DivideNumbers", - "RoundDownNumbers", - "RoundUpNumbers", - "RoundNearestNumbers", - "UpperCase", - "LowerCase", - "ConcatStrings", - "Contains", - "BeginsWith", - "NumberToString", - "ParseNumber", - "FetchExchangeRate", - "FetchCurrencyDecimalPlaces", - FetchSingleCurrencyPortalCurrency, - "DatedExchangeRate", - "PipelineProbability", - "MaxNumbers", - "MinNumbers", - "LessThan", - "LessThanOrEqual", - "MoreThan", - "MoreThanOrEqual", - "NumberEquals", - "StringEquals", - "IsPipelineStageClosed", - "Not", - "Date", - "Month", - "Year", - Now, - "TimeBetween", - "TimeBetweenSkipWeekends", - "PeriodToMonths", - "PeriodToWeeks", - "And", - "Or", - "Xor", - "IfString", - "IfNumber", - "IfBoolean", - "IsPresent", - "HasEmailReply", - "HasPlainTextEmailReply", - "ExtractMostRecentEmailReplyHTML", - "ExtractMostRecentEmailReplyText", - "ExtractMostRecentPlainTextEmailReply", - "SetContainsString", - IsEngagementType, - "FormatFullName", - "FormatPhoneNumber", - "FormatSearchablePhoneNumber", - "AbsoluteValue", - "SquareRoot", - "Power", - "Substring", - Euler, - "StringLength", - "IsBlank", - "AddTime", - "SubtractTime", - ], - ) -else: - Input: TypeAlias = Union[ - ConstantBoolean, - ConstantNumber, - ConstantString, - BooleanPropertyVariable, - StringPropertyVariable, - NumberPropertyVariable, - TimestampOfPropertyVariable, - BooleanTargetPropertyVariable, - StringTargetPropertyVariable, - NumberTargetPropertyVariable, - TimestampOfTargetPropertyVariable, - "AddNumbers", - "SubtractNumbers", - "MultiplyNumbers", - "DivideNumbers", - "RoundDownNumbers", - "RoundUpNumbers", - "RoundNearestNumbers", - "UpperCase", - "LowerCase", - "ConcatStrings", - "Contains", - "BeginsWith", - "NumberToString", - "ParseNumber", - "FetchExchangeRate", - "FetchCurrencyDecimalPlaces", - FetchSingleCurrencyPortalCurrency, - "DatedExchangeRate", - "PipelineProbability", - "MaxNumbers", - "MinNumbers", - "LessThan", - "LessThanOrEqual", - "MoreThan", - "MoreThanOrEqual", - "NumberEquals", - "StringEquals", - "IsPipelineStageClosed", - "Not", - "Date", - "Month", - "Year", - Now, - "TimeBetween", - "TimeBetweenSkipWeekends", - "PeriodToMonths", - "PeriodToWeeks", - "And", - "Or", - "Xor", - "IfString", - "IfNumber", - "IfBoolean", - "IsPresent", - "HasEmailReply", - "HasPlainTextEmailReply", - "ExtractMostRecentEmailReplyHTML", - "ExtractMostRecentEmailReplyText", - "ExtractMostRecentPlainTextEmailReply", - "SetContainsString", - IsEngagementType, - "FormatFullName", - "FormatPhoneNumber", - "FormatSearchablePhoneNumber", - "AbsoluteValue", - "SquareRoot", - "Power", - "Substring", - Euler, - "StringLength", - "IsBlank", - "AddTime", - "SubtractTime", - ] - - -class Month(BaseModel): - operator: Literal["MONTH"] - - inputs: Optional[List[Input]] = None - - property_name: Optional[str] = FieldInfo(alias="propertyName", default=None) - - value: Optional[float] = None - - -from .or_ import Or -from .xor import Xor -from .and_ import And -from .date import Date -from .not_ import Not -from .year import Year -from .power import Power -from .add_time import AddTime -from .contains import Contains -from .is_blank import IsBlank -from .if_number import IfNumber -from .if_string import IfString -from .less_than import LessThan -from .more_than import MoreThan -from .substring import Substring -from .if_boolean import IfBoolean -from .is_present import IsPresent -from .lower_case import LowerCase -from .upper_case import UpperCase -from .add_numbers import AddNumbers -from .begins_with import BeginsWith -from .max_numbers import MaxNumbers -from .min_numbers import MinNumbers -from .square_root import SquareRoot -from .parse_number import ParseNumber -from .time_between import TimeBetween -from .number_equals import NumberEquals -from .string_equals import StringEquals -from .string_length import StringLength -from .subtract_time import SubtractTime -from .absolute_value import AbsoluteValue -from .concat_strings import ConcatStrings -from .divide_numbers import DivideNumbers -from .has_email_reply import HasEmailReply -from .period_to_weeks import PeriodToWeeks -from .format_full_name import FormatFullName -from .multiply_numbers import MultiplyNumbers -from .number_to_string import NumberToString -from .period_to_months import PeriodToMonths -from .round_up_numbers import RoundUpNumbers -from .subtract_numbers import SubtractNumbers -from .less_than_or_equal import LessThanOrEqual -from .more_than_or_equal import MoreThanOrEqual -from .round_down_numbers import RoundDownNumbers -from .dated_exchange_rate import DatedExchangeRate -from .fetch_exchange_rate import FetchExchangeRate -from .format_phone_number import FormatPhoneNumber -from .set_contains_string import SetContainsString -from .pipeline_probability import PipelineProbability -from .round_nearest_numbers import RoundNearestNumbers -from .is_pipeline_stage_closed import IsPipelineStageClosed -from .has_plain_text_email_reply import HasPlainTextEmailReply -from .time_between_skip_weekends import TimeBetweenSkipWeekends -from .fetch_currency_decimal_places import FetchCurrencyDecimalPlaces -from .format_searchable_phone_number import FormatSearchablePhoneNumber -from .extract_most_recent_email_reply_html import ExtractMostRecentEmailReplyHTML -from .extract_most_recent_email_reply_text import ExtractMostRecentEmailReplyText -from .extract_most_recent_plain_text_email_reply import ExtractMostRecentPlainTextEmailReply diff --git a/src/hubspot_sdk/types/cms/more_than.py b/src/hubspot_sdk/types/cms/more_than.py deleted file mode 100644 index 90ed905a..00000000 --- a/src/hubspot_sdk/types/cms/more_than.py +++ /dev/null @@ -1,256 +0,0 @@ -# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. - -from __future__ import annotations - -from typing import TYPE_CHECKING, List, Union, Optional -from typing_extensions import Literal, TypeAlias, TypeAliasType - -from pydantic import Field as FieldInfo - -from .now import Now -from .euler import Euler -from ..._compat import PYDANTIC_V1 -from ..._models import BaseModel -from .constant_number import ConstantNumber -from .constant_string import ConstantString -from .constant_boolean import ConstantBoolean -from .is_engagement_type import IsEngagementType -from .number_property_variable import NumberPropertyVariable -from .string_property_variable import StringPropertyVariable -from .boolean_property_variable import BooleanPropertyVariable -from .timestamp_of_property_variable import TimestampOfPropertyVariable -from .number_target_property_variable import NumberTargetPropertyVariable -from .string_target_property_variable import StringTargetPropertyVariable -from .boolean_target_property_variable import BooleanTargetPropertyVariable -from .fetch_single_currency_portal_currency import FetchSingleCurrencyPortalCurrency -from .timestamp_of_target_property_variable import TimestampOfTargetPropertyVariable - -__all__ = ["MoreThan", "Input"] - -if TYPE_CHECKING or not PYDANTIC_V1: - Input = TypeAliasType( - "Input", - Union[ - ConstantBoolean, - ConstantNumber, - ConstantString, - BooleanPropertyVariable, - StringPropertyVariable, - NumberPropertyVariable, - TimestampOfPropertyVariable, - BooleanTargetPropertyVariable, - StringTargetPropertyVariable, - NumberTargetPropertyVariable, - TimestampOfTargetPropertyVariable, - "AddNumbers", - "SubtractNumbers", - "MultiplyNumbers", - "DivideNumbers", - "RoundDownNumbers", - "RoundUpNumbers", - "RoundNearestNumbers", - "UpperCase", - "LowerCase", - "ConcatStrings", - "Contains", - "BeginsWith", - "NumberToString", - "ParseNumber", - "FetchExchangeRate", - "FetchCurrencyDecimalPlaces", - FetchSingleCurrencyPortalCurrency, - "DatedExchangeRate", - "PipelineProbability", - "MaxNumbers", - "MinNumbers", - "LessThan", - "LessThanOrEqual", - "MoreThan", - "MoreThanOrEqual", - "NumberEquals", - "StringEquals", - "IsPipelineStageClosed", - "Not", - "Date", - "Month", - "Year", - Now, - "TimeBetween", - "TimeBetweenSkipWeekends", - "PeriodToMonths", - "PeriodToWeeks", - "And", - "Or", - "Xor", - "IfString", - "IfNumber", - "IfBoolean", - "IsPresent", - "HasEmailReply", - "HasPlainTextEmailReply", - "ExtractMostRecentEmailReplyHTML", - "ExtractMostRecentEmailReplyText", - "ExtractMostRecentPlainTextEmailReply", - "SetContainsString", - IsEngagementType, - "FormatFullName", - "FormatPhoneNumber", - "FormatSearchablePhoneNumber", - "AbsoluteValue", - "SquareRoot", - "Power", - "Substring", - Euler, - "StringLength", - "IsBlank", - "AddTime", - "SubtractTime", - ], - ) -else: - Input: TypeAlias = Union[ - ConstantBoolean, - ConstantNumber, - ConstantString, - BooleanPropertyVariable, - StringPropertyVariable, - NumberPropertyVariable, - TimestampOfPropertyVariable, - BooleanTargetPropertyVariable, - StringTargetPropertyVariable, - NumberTargetPropertyVariable, - TimestampOfTargetPropertyVariable, - "AddNumbers", - "SubtractNumbers", - "MultiplyNumbers", - "DivideNumbers", - "RoundDownNumbers", - "RoundUpNumbers", - "RoundNearestNumbers", - "UpperCase", - "LowerCase", - "ConcatStrings", - "Contains", - "BeginsWith", - "NumberToString", - "ParseNumber", - "FetchExchangeRate", - "FetchCurrencyDecimalPlaces", - FetchSingleCurrencyPortalCurrency, - "DatedExchangeRate", - "PipelineProbability", - "MaxNumbers", - "MinNumbers", - "LessThan", - "LessThanOrEqual", - "MoreThan", - "MoreThanOrEqual", - "NumberEquals", - "StringEquals", - "IsPipelineStageClosed", - "Not", - "Date", - "Month", - "Year", - Now, - "TimeBetween", - "TimeBetweenSkipWeekends", - "PeriodToMonths", - "PeriodToWeeks", - "And", - "Or", - "Xor", - "IfString", - "IfNumber", - "IfBoolean", - "IsPresent", - "HasEmailReply", - "HasPlainTextEmailReply", - "ExtractMostRecentEmailReplyHTML", - "ExtractMostRecentEmailReplyText", - "ExtractMostRecentPlainTextEmailReply", - "SetContainsString", - IsEngagementType, - "FormatFullName", - "FormatPhoneNumber", - "FormatSearchablePhoneNumber", - "AbsoluteValue", - "SquareRoot", - "Power", - "Substring", - Euler, - "StringLength", - "IsBlank", - "AddTime", - "SubtractTime", - ] - - -class MoreThan(BaseModel): - operator: Literal["MORE_THAN"] - - inputs: Optional[List[Input]] = None - - property_name: Optional[str] = FieldInfo(alias="propertyName", default=None) - - value: Optional[bool] = None - - -from .or_ import Or -from .xor import Xor -from .and_ import And -from .date import Date -from .not_ import Not -from .year import Year -from .month import Month -from .power import Power -from .add_time import AddTime -from .contains import Contains -from .is_blank import IsBlank -from .if_number import IfNumber -from .if_string import IfString -from .less_than import LessThan -from .substring import Substring -from .if_boolean import IfBoolean -from .is_present import IsPresent -from .lower_case import LowerCase -from .upper_case import UpperCase -from .add_numbers import AddNumbers -from .begins_with import BeginsWith -from .max_numbers import MaxNumbers -from .min_numbers import MinNumbers -from .square_root import SquareRoot -from .parse_number import ParseNumber -from .time_between import TimeBetween -from .number_equals import NumberEquals -from .string_equals import StringEquals -from .string_length import StringLength -from .subtract_time import SubtractTime -from .absolute_value import AbsoluteValue -from .concat_strings import ConcatStrings -from .divide_numbers import DivideNumbers -from .has_email_reply import HasEmailReply -from .period_to_weeks import PeriodToWeeks -from .format_full_name import FormatFullName -from .multiply_numbers import MultiplyNumbers -from .number_to_string import NumberToString -from .period_to_months import PeriodToMonths -from .round_up_numbers import RoundUpNumbers -from .subtract_numbers import SubtractNumbers -from .less_than_or_equal import LessThanOrEqual -from .more_than_or_equal import MoreThanOrEqual -from .round_down_numbers import RoundDownNumbers -from .dated_exchange_rate import DatedExchangeRate -from .fetch_exchange_rate import FetchExchangeRate -from .format_phone_number import FormatPhoneNumber -from .set_contains_string import SetContainsString -from .pipeline_probability import PipelineProbability -from .round_nearest_numbers import RoundNearestNumbers -from .is_pipeline_stage_closed import IsPipelineStageClosed -from .has_plain_text_email_reply import HasPlainTextEmailReply -from .time_between_skip_weekends import TimeBetweenSkipWeekends -from .fetch_currency_decimal_places import FetchCurrencyDecimalPlaces -from .format_searchable_phone_number import FormatSearchablePhoneNumber -from .extract_most_recent_email_reply_html import ExtractMostRecentEmailReplyHTML -from .extract_most_recent_email_reply_text import ExtractMostRecentEmailReplyText -from .extract_most_recent_plain_text_email_reply import ExtractMostRecentPlainTextEmailReply diff --git a/src/hubspot_sdk/types/cms/more_than_or_equal.py b/src/hubspot_sdk/types/cms/more_than_or_equal.py deleted file mode 100644 index d7d254c3..00000000 --- a/src/hubspot_sdk/types/cms/more_than_or_equal.py +++ /dev/null @@ -1,256 +0,0 @@ -# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. - -from __future__ import annotations - -from typing import TYPE_CHECKING, List, Union, Optional -from typing_extensions import Literal, TypeAlias, TypeAliasType - -from pydantic import Field as FieldInfo - -from .now import Now -from .euler import Euler -from ..._compat import PYDANTIC_V1 -from ..._models import BaseModel -from .constant_number import ConstantNumber -from .constant_string import ConstantString -from .constant_boolean import ConstantBoolean -from .is_engagement_type import IsEngagementType -from .number_property_variable import NumberPropertyVariable -from .string_property_variable import StringPropertyVariable -from .boolean_property_variable import BooleanPropertyVariable -from .timestamp_of_property_variable import TimestampOfPropertyVariable -from .number_target_property_variable import NumberTargetPropertyVariable -from .string_target_property_variable import StringTargetPropertyVariable -from .boolean_target_property_variable import BooleanTargetPropertyVariable -from .fetch_single_currency_portal_currency import FetchSingleCurrencyPortalCurrency -from .timestamp_of_target_property_variable import TimestampOfTargetPropertyVariable - -__all__ = ["MoreThanOrEqual", "Input"] - -if TYPE_CHECKING or not PYDANTIC_V1: - Input = TypeAliasType( - "Input", - Union[ - ConstantBoolean, - ConstantNumber, - ConstantString, - BooleanPropertyVariable, - StringPropertyVariable, - NumberPropertyVariable, - TimestampOfPropertyVariable, - BooleanTargetPropertyVariable, - StringTargetPropertyVariable, - NumberTargetPropertyVariable, - TimestampOfTargetPropertyVariable, - "AddNumbers", - "SubtractNumbers", - "MultiplyNumbers", - "DivideNumbers", - "RoundDownNumbers", - "RoundUpNumbers", - "RoundNearestNumbers", - "UpperCase", - "LowerCase", - "ConcatStrings", - "Contains", - "BeginsWith", - "NumberToString", - "ParseNumber", - "FetchExchangeRate", - "FetchCurrencyDecimalPlaces", - FetchSingleCurrencyPortalCurrency, - "DatedExchangeRate", - "PipelineProbability", - "MaxNumbers", - "MinNumbers", - "LessThan", - "LessThanOrEqual", - "MoreThan", - "MoreThanOrEqual", - "NumberEquals", - "StringEquals", - "IsPipelineStageClosed", - "Not", - "Date", - "Month", - "Year", - Now, - "TimeBetween", - "TimeBetweenSkipWeekends", - "PeriodToMonths", - "PeriodToWeeks", - "And", - "Or", - "Xor", - "IfString", - "IfNumber", - "IfBoolean", - "IsPresent", - "HasEmailReply", - "HasPlainTextEmailReply", - "ExtractMostRecentEmailReplyHTML", - "ExtractMostRecentEmailReplyText", - "ExtractMostRecentPlainTextEmailReply", - "SetContainsString", - IsEngagementType, - "FormatFullName", - "FormatPhoneNumber", - "FormatSearchablePhoneNumber", - "AbsoluteValue", - "SquareRoot", - "Power", - "Substring", - Euler, - "StringLength", - "IsBlank", - "AddTime", - "SubtractTime", - ], - ) -else: - Input: TypeAlias = Union[ - ConstantBoolean, - ConstantNumber, - ConstantString, - BooleanPropertyVariable, - StringPropertyVariable, - NumberPropertyVariable, - TimestampOfPropertyVariable, - BooleanTargetPropertyVariable, - StringTargetPropertyVariable, - NumberTargetPropertyVariable, - TimestampOfTargetPropertyVariable, - "AddNumbers", - "SubtractNumbers", - "MultiplyNumbers", - "DivideNumbers", - "RoundDownNumbers", - "RoundUpNumbers", - "RoundNearestNumbers", - "UpperCase", - "LowerCase", - "ConcatStrings", - "Contains", - "BeginsWith", - "NumberToString", - "ParseNumber", - "FetchExchangeRate", - "FetchCurrencyDecimalPlaces", - FetchSingleCurrencyPortalCurrency, - "DatedExchangeRate", - "PipelineProbability", - "MaxNumbers", - "MinNumbers", - "LessThan", - "LessThanOrEqual", - "MoreThan", - "MoreThanOrEqual", - "NumberEquals", - "StringEquals", - "IsPipelineStageClosed", - "Not", - "Date", - "Month", - "Year", - Now, - "TimeBetween", - "TimeBetweenSkipWeekends", - "PeriodToMonths", - "PeriodToWeeks", - "And", - "Or", - "Xor", - "IfString", - "IfNumber", - "IfBoolean", - "IsPresent", - "HasEmailReply", - "HasPlainTextEmailReply", - "ExtractMostRecentEmailReplyHTML", - "ExtractMostRecentEmailReplyText", - "ExtractMostRecentPlainTextEmailReply", - "SetContainsString", - IsEngagementType, - "FormatFullName", - "FormatPhoneNumber", - "FormatSearchablePhoneNumber", - "AbsoluteValue", - "SquareRoot", - "Power", - "Substring", - Euler, - "StringLength", - "IsBlank", - "AddTime", - "SubtractTime", - ] - - -class MoreThanOrEqual(BaseModel): - operator: Literal["MORE_THAN_OR_EQUAL"] - - inputs: Optional[List[Input]] = None - - property_name: Optional[str] = FieldInfo(alias="propertyName", default=None) - - value: Optional[bool] = None - - -from .or_ import Or -from .xor import Xor -from .and_ import And -from .date import Date -from .not_ import Not -from .year import Year -from .month import Month -from .power import Power -from .add_time import AddTime -from .contains import Contains -from .is_blank import IsBlank -from .if_number import IfNumber -from .if_string import IfString -from .less_than import LessThan -from .more_than import MoreThan -from .substring import Substring -from .if_boolean import IfBoolean -from .is_present import IsPresent -from .lower_case import LowerCase -from .upper_case import UpperCase -from .add_numbers import AddNumbers -from .begins_with import BeginsWith -from .max_numbers import MaxNumbers -from .min_numbers import MinNumbers -from .square_root import SquareRoot -from .parse_number import ParseNumber -from .time_between import TimeBetween -from .number_equals import NumberEquals -from .string_equals import StringEquals -from .string_length import StringLength -from .subtract_time import SubtractTime -from .absolute_value import AbsoluteValue -from .concat_strings import ConcatStrings -from .divide_numbers import DivideNumbers -from .has_email_reply import HasEmailReply -from .period_to_weeks import PeriodToWeeks -from .format_full_name import FormatFullName -from .multiply_numbers import MultiplyNumbers -from .number_to_string import NumberToString -from .period_to_months import PeriodToMonths -from .round_up_numbers import RoundUpNumbers -from .subtract_numbers import SubtractNumbers -from .less_than_or_equal import LessThanOrEqual -from .round_down_numbers import RoundDownNumbers -from .dated_exchange_rate import DatedExchangeRate -from .fetch_exchange_rate import FetchExchangeRate -from .format_phone_number import FormatPhoneNumber -from .set_contains_string import SetContainsString -from .pipeline_probability import PipelineProbability -from .round_nearest_numbers import RoundNearestNumbers -from .is_pipeline_stage_closed import IsPipelineStageClosed -from .has_plain_text_email_reply import HasPlainTextEmailReply -from .time_between_skip_weekends import TimeBetweenSkipWeekends -from .fetch_currency_decimal_places import FetchCurrencyDecimalPlaces -from .format_searchable_phone_number import FormatSearchablePhoneNumber -from .extract_most_recent_email_reply_html import ExtractMostRecentEmailReplyHTML -from .extract_most_recent_email_reply_text import ExtractMostRecentEmailReplyText -from .extract_most_recent_plain_text_email_reply import ExtractMostRecentPlainTextEmailReply diff --git a/src/hubspot_sdk/types/cms/multiply_numbers.py b/src/hubspot_sdk/types/cms/multiply_numbers.py deleted file mode 100644 index ef46bdb5..00000000 --- a/src/hubspot_sdk/types/cms/multiply_numbers.py +++ /dev/null @@ -1,258 +0,0 @@ -# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. - -from __future__ import annotations - -from typing import TYPE_CHECKING, List, Union, Optional -from typing_extensions import Literal, TypeAlias, TypeAliasType - -from pydantic import Field as FieldInfo - -from .now import Now -from .euler import Euler -from ..._compat import PYDANTIC_V1 -from ..._models import BaseModel -from .constant_number import ConstantNumber -from .constant_string import ConstantString -from .constant_boolean import ConstantBoolean -from .is_engagement_type import IsEngagementType -from .number_property_variable import NumberPropertyVariable -from .string_property_variable import StringPropertyVariable -from .boolean_property_variable import BooleanPropertyVariable -from .timestamp_of_property_variable import TimestampOfPropertyVariable -from .number_target_property_variable import NumberTargetPropertyVariable -from .string_target_property_variable import StringTargetPropertyVariable -from .boolean_target_property_variable import BooleanTargetPropertyVariable -from .fetch_single_currency_portal_currency import FetchSingleCurrencyPortalCurrency -from .timestamp_of_target_property_variable import TimestampOfTargetPropertyVariable - -__all__ = ["MultiplyNumbers", "Input"] - -if TYPE_CHECKING or not PYDANTIC_V1: - Input = TypeAliasType( - "Input", - Union[ - ConstantBoolean, - ConstantNumber, - ConstantString, - BooleanPropertyVariable, - StringPropertyVariable, - NumberPropertyVariable, - TimestampOfPropertyVariable, - BooleanTargetPropertyVariable, - StringTargetPropertyVariable, - NumberTargetPropertyVariable, - TimestampOfTargetPropertyVariable, - "AddNumbers", - "SubtractNumbers", - "MultiplyNumbers", - "DivideNumbers", - "RoundDownNumbers", - "RoundUpNumbers", - "RoundNearestNumbers", - "UpperCase", - "LowerCase", - "ConcatStrings", - "Contains", - "BeginsWith", - "NumberToString", - "ParseNumber", - "FetchExchangeRate", - "FetchCurrencyDecimalPlaces", - FetchSingleCurrencyPortalCurrency, - "DatedExchangeRate", - "PipelineProbability", - "MaxNumbers", - "MinNumbers", - "LessThan", - "LessThanOrEqual", - "MoreThan", - "MoreThanOrEqual", - "NumberEquals", - "StringEquals", - "IsPipelineStageClosed", - "Not", - "Date", - "Month", - "Year", - Now, - "TimeBetween", - "TimeBetweenSkipWeekends", - "PeriodToMonths", - "PeriodToWeeks", - "And", - "Or", - "Xor", - "IfString", - "IfNumber", - "IfBoolean", - "IsPresent", - "HasEmailReply", - "HasPlainTextEmailReply", - "ExtractMostRecentEmailReplyHTML", - "ExtractMostRecentEmailReplyText", - "ExtractMostRecentPlainTextEmailReply", - "SetContainsString", - IsEngagementType, - "FormatFullName", - "FormatPhoneNumber", - "FormatSearchablePhoneNumber", - "AbsoluteValue", - "SquareRoot", - "Power", - "Substring", - Euler, - "StringLength", - "IsBlank", - "AddTime", - "SubtractTime", - ], - ) -else: - Input: TypeAlias = Union[ - ConstantBoolean, - ConstantNumber, - ConstantString, - BooleanPropertyVariable, - StringPropertyVariable, - NumberPropertyVariable, - TimestampOfPropertyVariable, - BooleanTargetPropertyVariable, - StringTargetPropertyVariable, - NumberTargetPropertyVariable, - TimestampOfTargetPropertyVariable, - "AddNumbers", - "SubtractNumbers", - "MultiplyNumbers", - "DivideNumbers", - "RoundDownNumbers", - "RoundUpNumbers", - "RoundNearestNumbers", - "UpperCase", - "LowerCase", - "ConcatStrings", - "Contains", - "BeginsWith", - "NumberToString", - "ParseNumber", - "FetchExchangeRate", - "FetchCurrencyDecimalPlaces", - FetchSingleCurrencyPortalCurrency, - "DatedExchangeRate", - "PipelineProbability", - "MaxNumbers", - "MinNumbers", - "LessThan", - "LessThanOrEqual", - "MoreThan", - "MoreThanOrEqual", - "NumberEquals", - "StringEquals", - "IsPipelineStageClosed", - "Not", - "Date", - "Month", - "Year", - Now, - "TimeBetween", - "TimeBetweenSkipWeekends", - "PeriodToMonths", - "PeriodToWeeks", - "And", - "Or", - "Xor", - "IfString", - "IfNumber", - "IfBoolean", - "IsPresent", - "HasEmailReply", - "HasPlainTextEmailReply", - "ExtractMostRecentEmailReplyHTML", - "ExtractMostRecentEmailReplyText", - "ExtractMostRecentPlainTextEmailReply", - "SetContainsString", - IsEngagementType, - "FormatFullName", - "FormatPhoneNumber", - "FormatSearchablePhoneNumber", - "AbsoluteValue", - "SquareRoot", - "Power", - "Substring", - Euler, - "StringLength", - "IsBlank", - "AddTime", - "SubtractTime", - ] - - -class MultiplyNumbers(BaseModel): - enclosed_in_parentheses: bool = FieldInfo(alias="enclosedInParentheses") - - operator: Literal["MULTIPLY_NUMBERS"] - - inputs: Optional[List[Input]] = None - - property_name: Optional[str] = FieldInfo(alias="propertyName", default=None) - - value: Optional[float] = None - - -from .or_ import Or -from .xor import Xor -from .and_ import And -from .date import Date -from .not_ import Not -from .year import Year -from .month import Month -from .power import Power -from .add_time import AddTime -from .contains import Contains -from .is_blank import IsBlank -from .if_number import IfNumber -from .if_string import IfString -from .less_than import LessThan -from .more_than import MoreThan -from .substring import Substring -from .if_boolean import IfBoolean -from .is_present import IsPresent -from .lower_case import LowerCase -from .upper_case import UpperCase -from .add_numbers import AddNumbers -from .begins_with import BeginsWith -from .max_numbers import MaxNumbers -from .min_numbers import MinNumbers -from .square_root import SquareRoot -from .parse_number import ParseNumber -from .time_between import TimeBetween -from .number_equals import NumberEquals -from .string_equals import StringEquals -from .string_length import StringLength -from .subtract_time import SubtractTime -from .absolute_value import AbsoluteValue -from .concat_strings import ConcatStrings -from .divide_numbers import DivideNumbers -from .has_email_reply import HasEmailReply -from .period_to_weeks import PeriodToWeeks -from .format_full_name import FormatFullName -from .number_to_string import NumberToString -from .period_to_months import PeriodToMonths -from .round_up_numbers import RoundUpNumbers -from .subtract_numbers import SubtractNumbers -from .less_than_or_equal import LessThanOrEqual -from .more_than_or_equal import MoreThanOrEqual -from .round_down_numbers import RoundDownNumbers -from .dated_exchange_rate import DatedExchangeRate -from .fetch_exchange_rate import FetchExchangeRate -from .format_phone_number import FormatPhoneNumber -from .set_contains_string import SetContainsString -from .pipeline_probability import PipelineProbability -from .round_nearest_numbers import RoundNearestNumbers -from .is_pipeline_stage_closed import IsPipelineStageClosed -from .has_plain_text_email_reply import HasPlainTextEmailReply -from .time_between_skip_weekends import TimeBetweenSkipWeekends -from .fetch_currency_decimal_places import FetchCurrencyDecimalPlaces -from .format_searchable_phone_number import FormatSearchablePhoneNumber -from .extract_most_recent_email_reply_html import ExtractMostRecentEmailReplyHTML -from .extract_most_recent_email_reply_text import ExtractMostRecentEmailReplyText -from .extract_most_recent_plain_text_email_reply import ExtractMostRecentPlainTextEmailReply diff --git a/src/hubspot_sdk/types/cms/not_.py b/src/hubspot_sdk/types/cms/not_.py deleted file mode 100644 index e39a1d79..00000000 --- a/src/hubspot_sdk/types/cms/not_.py +++ /dev/null @@ -1,256 +0,0 @@ -# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. - -from __future__ import annotations - -from typing import TYPE_CHECKING, List, Union, Optional -from typing_extensions import Literal, TypeAlias, TypeAliasType - -from pydantic import Field as FieldInfo - -from .now import Now -from .euler import Euler -from ..._compat import PYDANTIC_V1 -from ..._models import BaseModel -from .constant_number import ConstantNumber -from .constant_string import ConstantString -from .constant_boolean import ConstantBoolean -from .is_engagement_type import IsEngagementType -from .number_property_variable import NumberPropertyVariable -from .string_property_variable import StringPropertyVariable -from .boolean_property_variable import BooleanPropertyVariable -from .timestamp_of_property_variable import TimestampOfPropertyVariable -from .number_target_property_variable import NumberTargetPropertyVariable -from .string_target_property_variable import StringTargetPropertyVariable -from .boolean_target_property_variable import BooleanTargetPropertyVariable -from .fetch_single_currency_portal_currency import FetchSingleCurrencyPortalCurrency -from .timestamp_of_target_property_variable import TimestampOfTargetPropertyVariable - -__all__ = ["Not", "Input"] - -if TYPE_CHECKING or not PYDANTIC_V1: - Input = TypeAliasType( - "Input", - Union[ - ConstantBoolean, - ConstantNumber, - ConstantString, - BooleanPropertyVariable, - StringPropertyVariable, - NumberPropertyVariable, - TimestampOfPropertyVariable, - BooleanTargetPropertyVariable, - StringTargetPropertyVariable, - NumberTargetPropertyVariable, - TimestampOfTargetPropertyVariable, - "AddNumbers", - "SubtractNumbers", - "MultiplyNumbers", - "DivideNumbers", - "RoundDownNumbers", - "RoundUpNumbers", - "RoundNearestNumbers", - "UpperCase", - "LowerCase", - "ConcatStrings", - "Contains", - "BeginsWith", - "NumberToString", - "ParseNumber", - "FetchExchangeRate", - "FetchCurrencyDecimalPlaces", - FetchSingleCurrencyPortalCurrency, - "DatedExchangeRate", - "PipelineProbability", - "MaxNumbers", - "MinNumbers", - "LessThan", - "LessThanOrEqual", - "MoreThan", - "MoreThanOrEqual", - "NumberEquals", - "StringEquals", - "IsPipelineStageClosed", - "Not", - "Date", - "Month", - "Year", - Now, - "TimeBetween", - "TimeBetweenSkipWeekends", - "PeriodToMonths", - "PeriodToWeeks", - "And", - "Or", - "Xor", - "IfString", - "IfNumber", - "IfBoolean", - "IsPresent", - "HasEmailReply", - "HasPlainTextEmailReply", - "ExtractMostRecentEmailReplyHTML", - "ExtractMostRecentEmailReplyText", - "ExtractMostRecentPlainTextEmailReply", - "SetContainsString", - IsEngagementType, - "FormatFullName", - "FormatPhoneNumber", - "FormatSearchablePhoneNumber", - "AbsoluteValue", - "SquareRoot", - "Power", - "Substring", - Euler, - "StringLength", - "IsBlank", - "AddTime", - "SubtractTime", - ], - ) -else: - Input: TypeAlias = Union[ - ConstantBoolean, - ConstantNumber, - ConstantString, - BooleanPropertyVariable, - StringPropertyVariable, - NumberPropertyVariable, - TimestampOfPropertyVariable, - BooleanTargetPropertyVariable, - StringTargetPropertyVariable, - NumberTargetPropertyVariable, - TimestampOfTargetPropertyVariable, - "AddNumbers", - "SubtractNumbers", - "MultiplyNumbers", - "DivideNumbers", - "RoundDownNumbers", - "RoundUpNumbers", - "RoundNearestNumbers", - "UpperCase", - "LowerCase", - "ConcatStrings", - "Contains", - "BeginsWith", - "NumberToString", - "ParseNumber", - "FetchExchangeRate", - "FetchCurrencyDecimalPlaces", - FetchSingleCurrencyPortalCurrency, - "DatedExchangeRate", - "PipelineProbability", - "MaxNumbers", - "MinNumbers", - "LessThan", - "LessThanOrEqual", - "MoreThan", - "MoreThanOrEqual", - "NumberEquals", - "StringEquals", - "IsPipelineStageClosed", - "Not", - "Date", - "Month", - "Year", - Now, - "TimeBetween", - "TimeBetweenSkipWeekends", - "PeriodToMonths", - "PeriodToWeeks", - "And", - "Or", - "Xor", - "IfString", - "IfNumber", - "IfBoolean", - "IsPresent", - "HasEmailReply", - "HasPlainTextEmailReply", - "ExtractMostRecentEmailReplyHTML", - "ExtractMostRecentEmailReplyText", - "ExtractMostRecentPlainTextEmailReply", - "SetContainsString", - IsEngagementType, - "FormatFullName", - "FormatPhoneNumber", - "FormatSearchablePhoneNumber", - "AbsoluteValue", - "SquareRoot", - "Power", - "Substring", - Euler, - "StringLength", - "IsBlank", - "AddTime", - "SubtractTime", - ] - - -class Not(BaseModel): - operator: Literal["NOT"] - - inputs: Optional[List[Input]] = None - - property_name: Optional[str] = FieldInfo(alias="propertyName", default=None) - - value: Optional[bool] = None - - -from .or_ import Or -from .xor import Xor -from .and_ import And -from .date import Date -from .year import Year -from .month import Month -from .power import Power -from .add_time import AddTime -from .contains import Contains -from .is_blank import IsBlank -from .if_number import IfNumber -from .if_string import IfString -from .less_than import LessThan -from .more_than import MoreThan -from .substring import Substring -from .if_boolean import IfBoolean -from .is_present import IsPresent -from .lower_case import LowerCase -from .upper_case import UpperCase -from .add_numbers import AddNumbers -from .begins_with import BeginsWith -from .max_numbers import MaxNumbers -from .min_numbers import MinNumbers -from .square_root import SquareRoot -from .parse_number import ParseNumber -from .time_between import TimeBetween -from .number_equals import NumberEquals -from .string_equals import StringEquals -from .string_length import StringLength -from .subtract_time import SubtractTime -from .absolute_value import AbsoluteValue -from .concat_strings import ConcatStrings -from .divide_numbers import DivideNumbers -from .has_email_reply import HasEmailReply -from .period_to_weeks import PeriodToWeeks -from .format_full_name import FormatFullName -from .multiply_numbers import MultiplyNumbers -from .number_to_string import NumberToString -from .period_to_months import PeriodToMonths -from .round_up_numbers import RoundUpNumbers -from .subtract_numbers import SubtractNumbers -from .less_than_or_equal import LessThanOrEqual -from .more_than_or_equal import MoreThanOrEqual -from .round_down_numbers import RoundDownNumbers -from .dated_exchange_rate import DatedExchangeRate -from .fetch_exchange_rate import FetchExchangeRate -from .format_phone_number import FormatPhoneNumber -from .set_contains_string import SetContainsString -from .pipeline_probability import PipelineProbability -from .round_nearest_numbers import RoundNearestNumbers -from .is_pipeline_stage_closed import IsPipelineStageClosed -from .has_plain_text_email_reply import HasPlainTextEmailReply -from .time_between_skip_weekends import TimeBetweenSkipWeekends -from .fetch_currency_decimal_places import FetchCurrencyDecimalPlaces -from .format_searchable_phone_number import FormatSearchablePhoneNumber -from .extract_most_recent_email_reply_html import ExtractMostRecentEmailReplyHTML -from .extract_most_recent_email_reply_text import ExtractMostRecentEmailReplyText -from .extract_most_recent_plain_text_email_reply import ExtractMostRecentPlainTextEmailReply diff --git a/src/hubspot_sdk/types/cms/now.py b/src/hubspot_sdk/types/cms/now.py deleted file mode 100644 index 8f355c48..00000000 --- a/src/hubspot_sdk/types/cms/now.py +++ /dev/null @@ -1,18 +0,0 @@ -# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. - -from typing import Optional -from typing_extensions import Literal - -from pydantic import Field as FieldInfo - -from ..._models import BaseModel - -__all__ = ["Now"] - - -class Now(BaseModel): - operator: Literal["NOW"] - - property_name: Optional[str] = FieldInfo(alias="propertyName", default=None) - - value: Optional[float] = None diff --git a/src/hubspot_sdk/types/cms/number_equals.py b/src/hubspot_sdk/types/cms/number_equals.py deleted file mode 100644 index 4b8d8815..00000000 --- a/src/hubspot_sdk/types/cms/number_equals.py +++ /dev/null @@ -1,256 +0,0 @@ -# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. - -from __future__ import annotations - -from typing import TYPE_CHECKING, List, Union, Optional -from typing_extensions import Literal, TypeAlias, TypeAliasType - -from pydantic import Field as FieldInfo - -from .now import Now -from .euler import Euler -from ..._compat import PYDANTIC_V1 -from ..._models import BaseModel -from .constant_number import ConstantNumber -from .constant_string import ConstantString -from .constant_boolean import ConstantBoolean -from .is_engagement_type import IsEngagementType -from .number_property_variable import NumberPropertyVariable -from .string_property_variable import StringPropertyVariable -from .boolean_property_variable import BooleanPropertyVariable -from .timestamp_of_property_variable import TimestampOfPropertyVariable -from .number_target_property_variable import NumberTargetPropertyVariable -from .string_target_property_variable import StringTargetPropertyVariable -from .boolean_target_property_variable import BooleanTargetPropertyVariable -from .fetch_single_currency_portal_currency import FetchSingleCurrencyPortalCurrency -from .timestamp_of_target_property_variable import TimestampOfTargetPropertyVariable - -__all__ = ["NumberEquals", "Input"] - -if TYPE_CHECKING or not PYDANTIC_V1: - Input = TypeAliasType( - "Input", - Union[ - ConstantBoolean, - ConstantNumber, - ConstantString, - BooleanPropertyVariable, - StringPropertyVariable, - NumberPropertyVariable, - TimestampOfPropertyVariable, - BooleanTargetPropertyVariable, - StringTargetPropertyVariable, - NumberTargetPropertyVariable, - TimestampOfTargetPropertyVariable, - "AddNumbers", - "SubtractNumbers", - "MultiplyNumbers", - "DivideNumbers", - "RoundDownNumbers", - "RoundUpNumbers", - "RoundNearestNumbers", - "UpperCase", - "LowerCase", - "ConcatStrings", - "Contains", - "BeginsWith", - "NumberToString", - "ParseNumber", - "FetchExchangeRate", - "FetchCurrencyDecimalPlaces", - FetchSingleCurrencyPortalCurrency, - "DatedExchangeRate", - "PipelineProbability", - "MaxNumbers", - "MinNumbers", - "LessThan", - "LessThanOrEqual", - "MoreThan", - "MoreThanOrEqual", - "NumberEquals", - "StringEquals", - "IsPipelineStageClosed", - "Not", - "Date", - "Month", - "Year", - Now, - "TimeBetween", - "TimeBetweenSkipWeekends", - "PeriodToMonths", - "PeriodToWeeks", - "And", - "Or", - "Xor", - "IfString", - "IfNumber", - "IfBoolean", - "IsPresent", - "HasEmailReply", - "HasPlainTextEmailReply", - "ExtractMostRecentEmailReplyHTML", - "ExtractMostRecentEmailReplyText", - "ExtractMostRecentPlainTextEmailReply", - "SetContainsString", - IsEngagementType, - "FormatFullName", - "FormatPhoneNumber", - "FormatSearchablePhoneNumber", - "AbsoluteValue", - "SquareRoot", - "Power", - "Substring", - Euler, - "StringLength", - "IsBlank", - "AddTime", - "SubtractTime", - ], - ) -else: - Input: TypeAlias = Union[ - ConstantBoolean, - ConstantNumber, - ConstantString, - BooleanPropertyVariable, - StringPropertyVariable, - NumberPropertyVariable, - TimestampOfPropertyVariable, - BooleanTargetPropertyVariable, - StringTargetPropertyVariable, - NumberTargetPropertyVariable, - TimestampOfTargetPropertyVariable, - "AddNumbers", - "SubtractNumbers", - "MultiplyNumbers", - "DivideNumbers", - "RoundDownNumbers", - "RoundUpNumbers", - "RoundNearestNumbers", - "UpperCase", - "LowerCase", - "ConcatStrings", - "Contains", - "BeginsWith", - "NumberToString", - "ParseNumber", - "FetchExchangeRate", - "FetchCurrencyDecimalPlaces", - FetchSingleCurrencyPortalCurrency, - "DatedExchangeRate", - "PipelineProbability", - "MaxNumbers", - "MinNumbers", - "LessThan", - "LessThanOrEqual", - "MoreThan", - "MoreThanOrEqual", - "NumberEquals", - "StringEquals", - "IsPipelineStageClosed", - "Not", - "Date", - "Month", - "Year", - Now, - "TimeBetween", - "TimeBetweenSkipWeekends", - "PeriodToMonths", - "PeriodToWeeks", - "And", - "Or", - "Xor", - "IfString", - "IfNumber", - "IfBoolean", - "IsPresent", - "HasEmailReply", - "HasPlainTextEmailReply", - "ExtractMostRecentEmailReplyHTML", - "ExtractMostRecentEmailReplyText", - "ExtractMostRecentPlainTextEmailReply", - "SetContainsString", - IsEngagementType, - "FormatFullName", - "FormatPhoneNumber", - "FormatSearchablePhoneNumber", - "AbsoluteValue", - "SquareRoot", - "Power", - "Substring", - Euler, - "StringLength", - "IsBlank", - "AddTime", - "SubtractTime", - ] - - -class NumberEquals(BaseModel): - operator: Literal["NUMBER_EQUALS"] - - inputs: Optional[List[Input]] = None - - property_name: Optional[str] = FieldInfo(alias="propertyName", default=None) - - value: Optional[bool] = None - - -from .or_ import Or -from .xor import Xor -from .and_ import And -from .date import Date -from .not_ import Not -from .year import Year -from .month import Month -from .power import Power -from .add_time import AddTime -from .contains import Contains -from .is_blank import IsBlank -from .if_number import IfNumber -from .if_string import IfString -from .less_than import LessThan -from .more_than import MoreThan -from .substring import Substring -from .if_boolean import IfBoolean -from .is_present import IsPresent -from .lower_case import LowerCase -from .upper_case import UpperCase -from .add_numbers import AddNumbers -from .begins_with import BeginsWith -from .max_numbers import MaxNumbers -from .min_numbers import MinNumbers -from .square_root import SquareRoot -from .parse_number import ParseNumber -from .time_between import TimeBetween -from .string_equals import StringEquals -from .string_length import StringLength -from .subtract_time import SubtractTime -from .absolute_value import AbsoluteValue -from .concat_strings import ConcatStrings -from .divide_numbers import DivideNumbers -from .has_email_reply import HasEmailReply -from .period_to_weeks import PeriodToWeeks -from .format_full_name import FormatFullName -from .multiply_numbers import MultiplyNumbers -from .number_to_string import NumberToString -from .period_to_months import PeriodToMonths -from .round_up_numbers import RoundUpNumbers -from .subtract_numbers import SubtractNumbers -from .less_than_or_equal import LessThanOrEqual -from .more_than_or_equal import MoreThanOrEqual -from .round_down_numbers import RoundDownNumbers -from .dated_exchange_rate import DatedExchangeRate -from .fetch_exchange_rate import FetchExchangeRate -from .format_phone_number import FormatPhoneNumber -from .set_contains_string import SetContainsString -from .pipeline_probability import PipelineProbability -from .round_nearest_numbers import RoundNearestNumbers -from .is_pipeline_stage_closed import IsPipelineStageClosed -from .has_plain_text_email_reply import HasPlainTextEmailReply -from .time_between_skip_weekends import TimeBetweenSkipWeekends -from .fetch_currency_decimal_places import FetchCurrencyDecimalPlaces -from .format_searchable_phone_number import FormatSearchablePhoneNumber -from .extract_most_recent_email_reply_html import ExtractMostRecentEmailReplyHTML -from .extract_most_recent_email_reply_text import ExtractMostRecentEmailReplyText -from .extract_most_recent_plain_text_email_reply import ExtractMostRecentPlainTextEmailReply diff --git a/src/hubspot_sdk/types/cms/number_property_variable.py b/src/hubspot_sdk/types/cms/number_property_variable.py deleted file mode 100644 index 86f5e44f..00000000 --- a/src/hubspot_sdk/types/cms/number_property_variable.py +++ /dev/null @@ -1,18 +0,0 @@ -# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. - -from typing import Optional -from typing_extensions import Literal - -from pydantic import Field as FieldInfo - -from ..._models import BaseModel - -__all__ = ["NumberPropertyVariable"] - - -class NumberPropertyVariable(BaseModel): - operator: Literal["NUMBER_PROPERTY_VARIABLE"] - - property_name: Optional[str] = FieldInfo(alias="propertyName", default=None) - - value: Optional[float] = None diff --git a/src/hubspot_sdk/types/cms/number_target_property_variable.py b/src/hubspot_sdk/types/cms/number_target_property_variable.py deleted file mode 100644 index ab47bf74..00000000 --- a/src/hubspot_sdk/types/cms/number_target_property_variable.py +++ /dev/null @@ -1,18 +0,0 @@ -# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. - -from typing import Optional -from typing_extensions import Literal - -from pydantic import Field as FieldInfo - -from ..._models import BaseModel - -__all__ = ["NumberTargetPropertyVariable"] - - -class NumberTargetPropertyVariable(BaseModel): - operator: Literal["NUMBER_TARGET_PROPERTY_VARIABLE"] - - property_name: Optional[str] = FieldInfo(alias="propertyName", default=None) - - value: Optional[float] = None diff --git a/src/hubspot_sdk/types/cms/number_to_string.py b/src/hubspot_sdk/types/cms/number_to_string.py deleted file mode 100644 index e47eed5e..00000000 --- a/src/hubspot_sdk/types/cms/number_to_string.py +++ /dev/null @@ -1,256 +0,0 @@ -# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. - -from __future__ import annotations - -from typing import TYPE_CHECKING, List, Union, Optional -from typing_extensions import Literal, TypeAlias, TypeAliasType - -from pydantic import Field as FieldInfo - -from .now import Now -from .euler import Euler -from ..._compat import PYDANTIC_V1 -from ..._models import BaseModel -from .constant_number import ConstantNumber -from .constant_string import ConstantString -from .constant_boolean import ConstantBoolean -from .is_engagement_type import IsEngagementType -from .number_property_variable import NumberPropertyVariable -from .string_property_variable import StringPropertyVariable -from .boolean_property_variable import BooleanPropertyVariable -from .timestamp_of_property_variable import TimestampOfPropertyVariable -from .number_target_property_variable import NumberTargetPropertyVariable -from .string_target_property_variable import StringTargetPropertyVariable -from .boolean_target_property_variable import BooleanTargetPropertyVariable -from .fetch_single_currency_portal_currency import FetchSingleCurrencyPortalCurrency -from .timestamp_of_target_property_variable import TimestampOfTargetPropertyVariable - -__all__ = ["NumberToString", "Input"] - -if TYPE_CHECKING or not PYDANTIC_V1: - Input = TypeAliasType( - "Input", - Union[ - ConstantBoolean, - ConstantNumber, - ConstantString, - BooleanPropertyVariable, - StringPropertyVariable, - NumberPropertyVariable, - TimestampOfPropertyVariable, - BooleanTargetPropertyVariable, - StringTargetPropertyVariable, - NumberTargetPropertyVariable, - TimestampOfTargetPropertyVariable, - "AddNumbers", - "SubtractNumbers", - "MultiplyNumbers", - "DivideNumbers", - "RoundDownNumbers", - "RoundUpNumbers", - "RoundNearestNumbers", - "UpperCase", - "LowerCase", - "ConcatStrings", - "Contains", - "BeginsWith", - "NumberToString", - "ParseNumber", - "FetchExchangeRate", - "FetchCurrencyDecimalPlaces", - FetchSingleCurrencyPortalCurrency, - "DatedExchangeRate", - "PipelineProbability", - "MaxNumbers", - "MinNumbers", - "LessThan", - "LessThanOrEqual", - "MoreThan", - "MoreThanOrEqual", - "NumberEquals", - "StringEquals", - "IsPipelineStageClosed", - "Not", - "Date", - "Month", - "Year", - Now, - "TimeBetween", - "TimeBetweenSkipWeekends", - "PeriodToMonths", - "PeriodToWeeks", - "And", - "Or", - "Xor", - "IfString", - "IfNumber", - "IfBoolean", - "IsPresent", - "HasEmailReply", - "HasPlainTextEmailReply", - "ExtractMostRecentEmailReplyHTML", - "ExtractMostRecentEmailReplyText", - "ExtractMostRecentPlainTextEmailReply", - "SetContainsString", - IsEngagementType, - "FormatFullName", - "FormatPhoneNumber", - "FormatSearchablePhoneNumber", - "AbsoluteValue", - "SquareRoot", - "Power", - "Substring", - Euler, - "StringLength", - "IsBlank", - "AddTime", - "SubtractTime", - ], - ) -else: - Input: TypeAlias = Union[ - ConstantBoolean, - ConstantNumber, - ConstantString, - BooleanPropertyVariable, - StringPropertyVariable, - NumberPropertyVariable, - TimestampOfPropertyVariable, - BooleanTargetPropertyVariable, - StringTargetPropertyVariable, - NumberTargetPropertyVariable, - TimestampOfTargetPropertyVariable, - "AddNumbers", - "SubtractNumbers", - "MultiplyNumbers", - "DivideNumbers", - "RoundDownNumbers", - "RoundUpNumbers", - "RoundNearestNumbers", - "UpperCase", - "LowerCase", - "ConcatStrings", - "Contains", - "BeginsWith", - "NumberToString", - "ParseNumber", - "FetchExchangeRate", - "FetchCurrencyDecimalPlaces", - FetchSingleCurrencyPortalCurrency, - "DatedExchangeRate", - "PipelineProbability", - "MaxNumbers", - "MinNumbers", - "LessThan", - "LessThanOrEqual", - "MoreThan", - "MoreThanOrEqual", - "NumberEquals", - "StringEquals", - "IsPipelineStageClosed", - "Not", - "Date", - "Month", - "Year", - Now, - "TimeBetween", - "TimeBetweenSkipWeekends", - "PeriodToMonths", - "PeriodToWeeks", - "And", - "Or", - "Xor", - "IfString", - "IfNumber", - "IfBoolean", - "IsPresent", - "HasEmailReply", - "HasPlainTextEmailReply", - "ExtractMostRecentEmailReplyHTML", - "ExtractMostRecentEmailReplyText", - "ExtractMostRecentPlainTextEmailReply", - "SetContainsString", - IsEngagementType, - "FormatFullName", - "FormatPhoneNumber", - "FormatSearchablePhoneNumber", - "AbsoluteValue", - "SquareRoot", - "Power", - "Substring", - Euler, - "StringLength", - "IsBlank", - "AddTime", - "SubtractTime", - ] - - -class NumberToString(BaseModel): - operator: Literal["NUMBER_TO_STRING"] - - inputs: Optional[List[Input]] = None - - property_name: Optional[str] = FieldInfo(alias="propertyName", default=None) - - value: Optional[str] = None - - -from .or_ import Or -from .xor import Xor -from .and_ import And -from .date import Date -from .not_ import Not -from .year import Year -from .month import Month -from .power import Power -from .add_time import AddTime -from .contains import Contains -from .is_blank import IsBlank -from .if_number import IfNumber -from .if_string import IfString -from .less_than import LessThan -from .more_than import MoreThan -from .substring import Substring -from .if_boolean import IfBoolean -from .is_present import IsPresent -from .lower_case import LowerCase -from .upper_case import UpperCase -from .add_numbers import AddNumbers -from .begins_with import BeginsWith -from .max_numbers import MaxNumbers -from .min_numbers import MinNumbers -from .square_root import SquareRoot -from .parse_number import ParseNumber -from .time_between import TimeBetween -from .number_equals import NumberEquals -from .string_equals import StringEquals -from .string_length import StringLength -from .subtract_time import SubtractTime -from .absolute_value import AbsoluteValue -from .concat_strings import ConcatStrings -from .divide_numbers import DivideNumbers -from .has_email_reply import HasEmailReply -from .period_to_weeks import PeriodToWeeks -from .format_full_name import FormatFullName -from .multiply_numbers import MultiplyNumbers -from .period_to_months import PeriodToMonths -from .round_up_numbers import RoundUpNumbers -from .subtract_numbers import SubtractNumbers -from .less_than_or_equal import LessThanOrEqual -from .more_than_or_equal import MoreThanOrEqual -from .round_down_numbers import RoundDownNumbers -from .dated_exchange_rate import DatedExchangeRate -from .fetch_exchange_rate import FetchExchangeRate -from .format_phone_number import FormatPhoneNumber -from .set_contains_string import SetContainsString -from .pipeline_probability import PipelineProbability -from .round_nearest_numbers import RoundNearestNumbers -from .is_pipeline_stage_closed import IsPipelineStageClosed -from .has_plain_text_email_reply import HasPlainTextEmailReply -from .time_between_skip_weekends import TimeBetweenSkipWeekends -from .fetch_currency_decimal_places import FetchCurrencyDecimalPlaces -from .format_searchable_phone_number import FormatSearchablePhoneNumber -from .extract_most_recent_email_reply_html import ExtractMostRecentEmailReplyHTML -from .extract_most_recent_email_reply_text import ExtractMostRecentEmailReplyText -from .extract_most_recent_plain_text_email_reply import ExtractMostRecentPlainTextEmailReply diff --git a/src/hubspot_sdk/types/cms/object_definition_response.py b/src/hubspot_sdk/types/cms/object_definition_response.py index b3bd237c..92ddefbf 100644 --- a/src/hubspot_sdk/types/cms/object_definition_response.py +++ b/src/hubspot_sdk/types/cms/object_definition_response.py @@ -1,13 +1,12 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from __future__ import annotations - from typing import List, Optional from pydantic import Field as FieldInfo from ..._models import BaseModel from .group_view import GroupView +from .property_definition import PropertyDefinition from .inbound_db_object_type import InboundDBObjectType __all__ = ["ObjectDefinitionResponse"] @@ -18,11 +17,8 @@ class ObjectDefinitionResponse(BaseModel): object_type_name: str = FieldInfo(alias="objectTypeName") - properties: List["PropertyDefinition"] + properties: List[PropertyDefinition] property_groups: List[GroupView] = FieldInfo(alias="propertyGroups") schema_: Optional[InboundDBObjectType] = FieldInfo(alias="schema", default=None) - - -from .property_definition import PropertyDefinition diff --git a/src/hubspot_sdk/types/cms/object_schema.py b/src/hubspot_sdk/types/cms/object_schema.py index c8a678a3..1a2eb0cb 100644 --- a/src/hubspot_sdk/types/cms/object_schema.py +++ b/src/hubspot_sdk/types/cms/object_schema.py @@ -7,7 +7,7 @@ from ..._models import BaseModel from .property_1 import Property1 -from ..shared.association_definition import AssociationDefinition +from ..shared.base_association_definition import BaseAssociationDefinition from ..shared.object_type_definition_labels import ObjectTypeDefinitionLabels __all__ = ["ObjectSchema"] @@ -20,7 +20,7 @@ class ObjectSchema(BaseModel): archived: bool - associations: List[AssociationDefinition] + associations: List[BaseAssociationDefinition] fully_qualified_name: str = FieldInfo(alias="fullyQualifiedName") diff --git a/src/hubspot_sdk/types/cms/or_.py b/src/hubspot_sdk/types/cms/or_.py deleted file mode 100644 index 09f26664..00000000 --- a/src/hubspot_sdk/types/cms/or_.py +++ /dev/null @@ -1,258 +0,0 @@ -# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. - -from __future__ import annotations - -from typing import TYPE_CHECKING, List, Union, Optional -from typing_extensions import Literal, TypeAlias, TypeAliasType - -from pydantic import Field as FieldInfo - -from .now import Now -from .euler import Euler -from ..._compat import PYDANTIC_V1 -from ..._models import BaseModel -from .constant_number import ConstantNumber -from .constant_string import ConstantString -from .constant_boolean import ConstantBoolean -from .is_engagement_type import IsEngagementType -from .number_property_variable import NumberPropertyVariable -from .string_property_variable import StringPropertyVariable -from .boolean_property_variable import BooleanPropertyVariable -from .timestamp_of_property_variable import TimestampOfPropertyVariable -from .number_target_property_variable import NumberTargetPropertyVariable -from .string_target_property_variable import StringTargetPropertyVariable -from .boolean_target_property_variable import BooleanTargetPropertyVariable -from .fetch_single_currency_portal_currency import FetchSingleCurrencyPortalCurrency -from .timestamp_of_target_property_variable import TimestampOfTargetPropertyVariable - -__all__ = ["Or", "Input"] - -if TYPE_CHECKING or not PYDANTIC_V1: - Input = TypeAliasType( - "Input", - Union[ - ConstantBoolean, - ConstantNumber, - ConstantString, - BooleanPropertyVariable, - StringPropertyVariable, - NumberPropertyVariable, - TimestampOfPropertyVariable, - BooleanTargetPropertyVariable, - StringTargetPropertyVariable, - NumberTargetPropertyVariable, - TimestampOfTargetPropertyVariable, - "AddNumbers", - "SubtractNumbers", - "MultiplyNumbers", - "DivideNumbers", - "RoundDownNumbers", - "RoundUpNumbers", - "RoundNearestNumbers", - "UpperCase", - "LowerCase", - "ConcatStrings", - "Contains", - "BeginsWith", - "NumberToString", - "ParseNumber", - "FetchExchangeRate", - "FetchCurrencyDecimalPlaces", - FetchSingleCurrencyPortalCurrency, - "DatedExchangeRate", - "PipelineProbability", - "MaxNumbers", - "MinNumbers", - "LessThan", - "LessThanOrEqual", - "MoreThan", - "MoreThanOrEqual", - "NumberEquals", - "StringEquals", - "IsPipelineStageClosed", - "Not", - "Date", - "Month", - "Year", - Now, - "TimeBetween", - "TimeBetweenSkipWeekends", - "PeriodToMonths", - "PeriodToWeeks", - "And", - "Or", - "Xor", - "IfString", - "IfNumber", - "IfBoolean", - "IsPresent", - "HasEmailReply", - "HasPlainTextEmailReply", - "ExtractMostRecentEmailReplyHTML", - "ExtractMostRecentEmailReplyText", - "ExtractMostRecentPlainTextEmailReply", - "SetContainsString", - IsEngagementType, - "FormatFullName", - "FormatPhoneNumber", - "FormatSearchablePhoneNumber", - "AbsoluteValue", - "SquareRoot", - "Power", - "Substring", - Euler, - "StringLength", - "IsBlank", - "AddTime", - "SubtractTime", - ], - ) -else: - Input: TypeAlias = Union[ - ConstantBoolean, - ConstantNumber, - ConstantString, - BooleanPropertyVariable, - StringPropertyVariable, - NumberPropertyVariable, - TimestampOfPropertyVariable, - BooleanTargetPropertyVariable, - StringTargetPropertyVariable, - NumberTargetPropertyVariable, - TimestampOfTargetPropertyVariable, - "AddNumbers", - "SubtractNumbers", - "MultiplyNumbers", - "DivideNumbers", - "RoundDownNumbers", - "RoundUpNumbers", - "RoundNearestNumbers", - "UpperCase", - "LowerCase", - "ConcatStrings", - "Contains", - "BeginsWith", - "NumberToString", - "ParseNumber", - "FetchExchangeRate", - "FetchCurrencyDecimalPlaces", - FetchSingleCurrencyPortalCurrency, - "DatedExchangeRate", - "PipelineProbability", - "MaxNumbers", - "MinNumbers", - "LessThan", - "LessThanOrEqual", - "MoreThan", - "MoreThanOrEqual", - "NumberEquals", - "StringEquals", - "IsPipelineStageClosed", - "Not", - "Date", - "Month", - "Year", - Now, - "TimeBetween", - "TimeBetweenSkipWeekends", - "PeriodToMonths", - "PeriodToWeeks", - "And", - "Or", - "Xor", - "IfString", - "IfNumber", - "IfBoolean", - "IsPresent", - "HasEmailReply", - "HasPlainTextEmailReply", - "ExtractMostRecentEmailReplyHTML", - "ExtractMostRecentEmailReplyText", - "ExtractMostRecentPlainTextEmailReply", - "SetContainsString", - IsEngagementType, - "FormatFullName", - "FormatPhoneNumber", - "FormatSearchablePhoneNumber", - "AbsoluteValue", - "SquareRoot", - "Power", - "Substring", - Euler, - "StringLength", - "IsBlank", - "AddTime", - "SubtractTime", - ] - - -class Or(BaseModel): - enclosed_in_parentheses: bool = FieldInfo(alias="enclosedInParentheses") - - operator: Literal["OR"] - - inputs: Optional[List[Input]] = None - - property_name: Optional[str] = FieldInfo(alias="propertyName", default=None) - - value: Optional[bool] = None - - -from .xor import Xor -from .and_ import And -from .date import Date -from .not_ import Not -from .year import Year -from .month import Month -from .power import Power -from .add_time import AddTime -from .contains import Contains -from .is_blank import IsBlank -from .if_number import IfNumber -from .if_string import IfString -from .less_than import LessThan -from .more_than import MoreThan -from .substring import Substring -from .if_boolean import IfBoolean -from .is_present import IsPresent -from .lower_case import LowerCase -from .upper_case import UpperCase -from .add_numbers import AddNumbers -from .begins_with import BeginsWith -from .max_numbers import MaxNumbers -from .min_numbers import MinNumbers -from .square_root import SquareRoot -from .parse_number import ParseNumber -from .time_between import TimeBetween -from .number_equals import NumberEquals -from .string_equals import StringEquals -from .string_length import StringLength -from .subtract_time import SubtractTime -from .absolute_value import AbsoluteValue -from .concat_strings import ConcatStrings -from .divide_numbers import DivideNumbers -from .has_email_reply import HasEmailReply -from .period_to_weeks import PeriodToWeeks -from .format_full_name import FormatFullName -from .multiply_numbers import MultiplyNumbers -from .number_to_string import NumberToString -from .period_to_months import PeriodToMonths -from .round_up_numbers import RoundUpNumbers -from .subtract_numbers import SubtractNumbers -from .less_than_or_equal import LessThanOrEqual -from .more_than_or_equal import MoreThanOrEqual -from .round_down_numbers import RoundDownNumbers -from .dated_exchange_rate import DatedExchangeRate -from .fetch_exchange_rate import FetchExchangeRate -from .format_phone_number import FormatPhoneNumber -from .set_contains_string import SetContainsString -from .pipeline_probability import PipelineProbability -from .round_nearest_numbers import RoundNearestNumbers -from .is_pipeline_stage_closed import IsPipelineStageClosed -from .has_plain_text_email_reply import HasPlainTextEmailReply -from .time_between_skip_weekends import TimeBetweenSkipWeekends -from .fetch_currency_decimal_places import FetchCurrencyDecimalPlaces -from .format_searchable_phone_number import FormatSearchablePhoneNumber -from .extract_most_recent_email_reply_html import ExtractMostRecentEmailReplyHTML -from .extract_most_recent_email_reply_text import ExtractMostRecentEmailReplyText -from .extract_most_recent_plain_text_email_reply import ExtractMostRecentPlainTextEmailReply diff --git a/src/hubspot_sdk/types/cms/page_get_landing_page_folders_by_query_params.py b/src/hubspot_sdk/types/cms/page_get_landing_page_folders_by_query_params.py deleted file mode 100644 index 7aae7ed8..00000000 --- a/src/hubspot_sdk/types/cms/page_get_landing_page_folders_by_query_params.py +++ /dev/null @@ -1,43 +0,0 @@ -# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. - -from __future__ import annotations - -from typing import Union -from datetime import datetime -from typing_extensions import Annotated, TypedDict - -from ..._types import SequenceNotStr -from ..._utils import PropertyInfo - -__all__ = ["PageGetLandingPageFoldersByQueryParams"] - - -class PageGetLandingPageFoldersByQueryParams(TypedDict, total=False): - after: str - """ - The paging cursor token of the last successfully read resource will be returned - as the `paging.next.after` JSON property of a paged response containing more - results. - """ - - archived: bool - """Whether to return only results that have been archived.""" - - created_after: Annotated[Union[str, datetime], PropertyInfo(alias="createdAfter", format="iso8601")] - - created_at: Annotated[Union[str, datetime], PropertyInfo(alias="createdAt", format="iso8601")] - - created_before: Annotated[Union[str, datetime], PropertyInfo(alias="createdBefore", format="iso8601")] - - limit: int - """The maximum number of results to display per page.""" - - property: str - - sort: SequenceNotStr[str] - - updated_after: Annotated[Union[str, datetime], PropertyInfo(alias="updatedAfter", format="iso8601")] - - updated_at: Annotated[Union[str, datetime], PropertyInfo(alias="updatedAt", format="iso8601")] - - updated_before: Annotated[Union[str, datetime], PropertyInfo(alias="updatedBefore", format="iso8601")] diff --git a/src/hubspot_sdk/types/cms/page_get_landing_page_folders_params.py b/src/hubspot_sdk/types/cms/page_get_landing_page_folders_params.py deleted file mode 100644 index a9690729..00000000 --- a/src/hubspot_sdk/types/cms/page_get_landing_page_folders_params.py +++ /dev/null @@ -1,43 +0,0 @@ -# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. - -from __future__ import annotations - -from typing import Union -from datetime import datetime -from typing_extensions import Annotated, TypedDict - -from ..._types import SequenceNotStr -from ..._utils import PropertyInfo - -__all__ = ["PageGetLandingPageFoldersParams"] - - -class PageGetLandingPageFoldersParams(TypedDict, total=False): - after: str - """ - The paging cursor token of the last successfully read resource will be returned - as the `paging.next.after` JSON property of a paged response containing more - results. - """ - - archived: bool - """Whether to return only results that have been archived.""" - - created_after: Annotated[Union[str, datetime], PropertyInfo(alias="createdAfter", format="iso8601")] - - created_at: Annotated[Union[str, datetime], PropertyInfo(alias="createdAt", format="iso8601")] - - created_before: Annotated[Union[str, datetime], PropertyInfo(alias="createdBefore", format="iso8601")] - - limit: int - """The maximum number of results to display per page.""" - - property: str - - sort: SequenceNotStr[str] - - updated_after: Annotated[Union[str, datetime], PropertyInfo(alias="updatedAfter", format="iso8601")] - - updated_at: Annotated[Union[str, datetime], PropertyInfo(alias="updatedAt", format="iso8601")] - - updated_before: Annotated[Union[str, datetime], PropertyInfo(alias="updatedBefore", format="iso8601")] diff --git a/src/hubspot_sdk/types/cms/page_get_landing_pages_by_query_params.py b/src/hubspot_sdk/types/cms/page_get_landing_pages_by_query_params.py deleted file mode 100644 index 176633ee..00000000 --- a/src/hubspot_sdk/types/cms/page_get_landing_pages_by_query_params.py +++ /dev/null @@ -1,43 +0,0 @@ -# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. - -from __future__ import annotations - -from typing import Union -from datetime import datetime -from typing_extensions import Annotated, TypedDict - -from ..._types import SequenceNotStr -from ..._utils import PropertyInfo - -__all__ = ["PageGetLandingPagesByQueryParams"] - - -class PageGetLandingPagesByQueryParams(TypedDict, total=False): - after: str - """ - The paging cursor token of the last successfully read resource will be returned - as the `paging.next.after` JSON property of a paged response containing more - results. - """ - - archived: bool - """Whether to return only results that have been archived.""" - - created_after: Annotated[Union[str, datetime], PropertyInfo(alias="createdAfter", format="iso8601")] - - created_at: Annotated[Union[str, datetime], PropertyInfo(alias="createdAt", format="iso8601")] - - created_before: Annotated[Union[str, datetime], PropertyInfo(alias="createdBefore", format="iso8601")] - - limit: int - """The maximum number of results to display per page.""" - - property: str - - sort: SequenceNotStr[str] - - updated_after: Annotated[Union[str, datetime], PropertyInfo(alias="updatedAfter", format="iso8601")] - - updated_at: Annotated[Union[str, datetime], PropertyInfo(alias="updatedAt", format="iso8601")] - - updated_before: Annotated[Union[str, datetime], PropertyInfo(alias="updatedBefore", format="iso8601")] diff --git a/src/hubspot_sdk/types/cms/page_get_landing_pages_params.py b/src/hubspot_sdk/types/cms/page_get_landing_pages_params.py deleted file mode 100644 index 17cd24fb..00000000 --- a/src/hubspot_sdk/types/cms/page_get_landing_pages_params.py +++ /dev/null @@ -1,43 +0,0 @@ -# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. - -from __future__ import annotations - -from typing import Union -from datetime import datetime -from typing_extensions import Annotated, TypedDict - -from ..._types import SequenceNotStr -from ..._utils import PropertyInfo - -__all__ = ["PageGetLandingPagesParams"] - - -class PageGetLandingPagesParams(TypedDict, total=False): - after: str - """ - The paging cursor token of the last successfully read resource will be returned - as the `paging.next.after` JSON property of a paged response containing more - results. - """ - - archived: bool - """Whether to return only results that have been archived.""" - - created_after: Annotated[Union[str, datetime], PropertyInfo(alias="createdAfter", format="iso8601")] - - created_at: Annotated[Union[str, datetime], PropertyInfo(alias="createdAt", format="iso8601")] - - created_before: Annotated[Union[str, datetime], PropertyInfo(alias="createdBefore", format="iso8601")] - - limit: int - """The maximum number of results to display per page.""" - - property: str - - sort: SequenceNotStr[str] - - updated_after: Annotated[Union[str, datetime], PropertyInfo(alias="updatedAfter", format="iso8601")] - - updated_at: Annotated[Union[str, datetime], PropertyInfo(alias="updatedAt", format="iso8601")] - - updated_before: Annotated[Union[str, datetime], PropertyInfo(alias="updatedBefore", format="iso8601")] diff --git a/src/hubspot_sdk/types/cms/page_get_site_pages_by_query_params.py b/src/hubspot_sdk/types/cms/page_get_site_pages_by_query_params.py deleted file mode 100644 index cba8f558..00000000 --- a/src/hubspot_sdk/types/cms/page_get_site_pages_by_query_params.py +++ /dev/null @@ -1,43 +0,0 @@ -# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. - -from __future__ import annotations - -from typing import Union -from datetime import datetime -from typing_extensions import Annotated, TypedDict - -from ..._types import SequenceNotStr -from ..._utils import PropertyInfo - -__all__ = ["PageGetSitePagesByQueryParams"] - - -class PageGetSitePagesByQueryParams(TypedDict, total=False): - after: str - """ - The paging cursor token of the last successfully read resource will be returned - as the `paging.next.after` JSON property of a paged response containing more - results. - """ - - archived: bool - """Whether to return only results that have been archived.""" - - created_after: Annotated[Union[str, datetime], PropertyInfo(alias="createdAfter", format="iso8601")] - - created_at: Annotated[Union[str, datetime], PropertyInfo(alias="createdAt", format="iso8601")] - - created_before: Annotated[Union[str, datetime], PropertyInfo(alias="createdBefore", format="iso8601")] - - limit: int - """The maximum number of results to display per page.""" - - property: str - - sort: SequenceNotStr[str] - - updated_after: Annotated[Union[str, datetime], PropertyInfo(alias="updatedAfter", format="iso8601")] - - updated_at: Annotated[Union[str, datetime], PropertyInfo(alias="updatedAt", format="iso8601")] - - updated_before: Annotated[Union[str, datetime], PropertyInfo(alias="updatedBefore", format="iso8601")] diff --git a/src/hubspot_sdk/types/cms/page_get_site_pages_params.py b/src/hubspot_sdk/types/cms/page_get_site_pages_params.py deleted file mode 100644 index 724cbd09..00000000 --- a/src/hubspot_sdk/types/cms/page_get_site_pages_params.py +++ /dev/null @@ -1,43 +0,0 @@ -# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. - -from __future__ import annotations - -from typing import Union -from datetime import datetime -from typing_extensions import Annotated, TypedDict - -from ..._types import SequenceNotStr -from ..._utils import PropertyInfo - -__all__ = ["PageGetSitePagesParams"] - - -class PageGetSitePagesParams(TypedDict, total=False): - after: str - """ - The paging cursor token of the last successfully read resource will be returned - as the `paging.next.after` JSON property of a paged response containing more - results. - """ - - archived: bool - """Whether to return only results that have been archived.""" - - created_after: Annotated[Union[str, datetime], PropertyInfo(alias="createdAfter", format="iso8601")] - - created_at: Annotated[Union[str, datetime], PropertyInfo(alias="createdAt", format="iso8601")] - - created_before: Annotated[Union[str, datetime], PropertyInfo(alias="createdBefore", format="iso8601")] - - limit: int - """The maximum number of results to display per page.""" - - property: str - - sort: SequenceNotStr[str] - - updated_after: Annotated[Union[str, datetime], PropertyInfo(alias="updatedAfter", format="iso8601")] - - updated_at: Annotated[Union[str, datetime], PropertyInfo(alias="updatedAt", format="iso8601")] - - updated_before: Annotated[Union[str, datetime], PropertyInfo(alias="updatedBefore", format="iso8601")] diff --git a/src/hubspot_sdk/types/cms/pages/folder_list_params.py b/src/hubspot_sdk/types/cms/pages/folder_list_params.py index d77eb8ec..31a665d3 100644 --- a/src/hubspot_sdk/types/cms/pages/folder_list_params.py +++ b/src/hubspot_sdk/types/cms/pages/folder_list_params.py @@ -24,8 +24,10 @@ class FolderListParams(TypedDict, total=False): """Whether to return only results that have been archived.""" created_after: Annotated[Union[str, datetime], PropertyInfo(alias="createdAfter", format="iso8601")] + """Filter folders created after the specified date and time.""" created_at: Annotated[Union[str, datetime], PropertyInfo(alias="createdAt", format="iso8601")] + """Filter folders by their exact creation date and time.""" created_before: Annotated[Union[str, datetime], PropertyInfo(alias="createdBefore", format="iso8601")] @@ -33,6 +35,7 @@ class FolderListParams(TypedDict, total=False): """The maximum number of results to display per page.""" property: str + """Specify a property to include in the response.""" sort: SequenceNotStr[str] diff --git a/src/hubspot_sdk/types/cms/pages/landing_page_get_params.py b/src/hubspot_sdk/types/cms/pages/landing_page_get_params.py index 46a75cb0..5502f202 100644 --- a/src/hubspot_sdk/types/cms/pages/landing_page_get_params.py +++ b/src/hubspot_sdk/types/cms/pages/landing_page_get_params.py @@ -12,3 +12,4 @@ class LandingPageGetParams(TypedDict, total=False): """Whether to return only results that have been archived.""" property: str + """A specific property of the landing page to include in the response.""" diff --git a/src/hubspot_sdk/types/cms/pages/landing_page_list_params.py b/src/hubspot_sdk/types/cms/pages/landing_page_list_params.py index c5d6a66c..856e5e38 100644 --- a/src/hubspot_sdk/types/cms/pages/landing_page_list_params.py +++ b/src/hubspot_sdk/types/cms/pages/landing_page_list_params.py @@ -14,30 +14,37 @@ class LandingPageListParams(TypedDict, total=False): after: str - """ - The paging cursor token of the last successfully read resource will be returned - as the `paging.next.after` JSON property of a paged response containing more - results. + """A cursor token for pagination. + + Use the value from the previous response's paging.next.after field. """ archived: bool """Whether to return only results that have been archived.""" created_after: Annotated[Union[str, datetime], PropertyInfo(alias="createdAfter", format="iso8601")] + """Filter landing pages created after a specific date and time.""" created_at: Annotated[Union[str, datetime], PropertyInfo(alias="createdAt", format="iso8601")] + """Filter landing pages by their creation timestamp.""" created_before: Annotated[Union[str, datetime], PropertyInfo(alias="createdBefore", format="iso8601")] + """Filter landing pages created before a specific date and time.""" limit: int """The maximum number of results to display per page.""" property: str + """Specify which properties of the landing pages to include in the response.""" sort: SequenceNotStr[str] + """Specify the order in which results are returned. Accepts an array of strings.""" updated_after: Annotated[Union[str, datetime], PropertyInfo(alias="updatedAfter", format="iso8601")] + """Filter landing pages updated after a specific date and time.""" updated_at: Annotated[Union[str, datetime], PropertyInfo(alias="updatedAt", format="iso8601")] + """Filter landing pages by their last updated timestamp.""" updated_before: Annotated[Union[str, datetime], PropertyInfo(alias="updatedBefore", format="iso8601")] + """Filter landing pages updated before a specific date and time.""" diff --git a/src/hubspot_sdk/types/cms/pages/website_page_list_params.py b/src/hubspot_sdk/types/cms/pages/website_page_list_params.py index 798df3e0..cd4dc9f5 100644 --- a/src/hubspot_sdk/types/cms/pages/website_page_list_params.py +++ b/src/hubspot_sdk/types/cms/pages/website_page_list_params.py @@ -24,20 +24,31 @@ class WebsitePageListParams(TypedDict, total=False): """Whether to return only results that have been archived.""" created_after: Annotated[Union[str, datetime], PropertyInfo(alias="createdAfter", format="iso8601")] + """Filter pages created after a specific date and time.""" created_at: Annotated[Union[str, datetime], PropertyInfo(alias="createdAt", format="iso8601")] + """Filter pages by the exact creation timestamp. Format is date-time.""" created_before: Annotated[Union[str, datetime], PropertyInfo(alias="createdBefore", format="iso8601")] + """Filter pages created before a specific date-time.""" limit: int """The maximum number of results to display per page.""" property: str + """Specify properties to include in the response.""" sort: SequenceNotStr[str] + """Specify the order of results. Accepts an array of field names to sort by.""" updated_after: Annotated[Union[str, datetime], PropertyInfo(alias="updatedAfter", format="iso8601")] + """Filter pages updated after the specified date-time.""" updated_at: Annotated[Union[str, datetime], PropertyInfo(alias="updatedAt", format="iso8601")] + """Filter pages by their exact update timestamp in ISO 8601 format.""" updated_before: Annotated[Union[str, datetime], PropertyInfo(alias="updatedBefore", format="iso8601")] + """Filter pages updated before a specific date and time. + + Format should be date-time. + """ diff --git a/src/hubspot_sdk/types/cms/parse_number.py b/src/hubspot_sdk/types/cms/parse_number.py deleted file mode 100644 index d1ff77df..00000000 --- a/src/hubspot_sdk/types/cms/parse_number.py +++ /dev/null @@ -1,256 +0,0 @@ -# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. - -from __future__ import annotations - -from typing import TYPE_CHECKING, List, Union, Optional -from typing_extensions import Literal, TypeAlias, TypeAliasType - -from pydantic import Field as FieldInfo - -from .now import Now -from .euler import Euler -from ..._compat import PYDANTIC_V1 -from ..._models import BaseModel -from .constant_number import ConstantNumber -from .constant_string import ConstantString -from .constant_boolean import ConstantBoolean -from .is_engagement_type import IsEngagementType -from .number_property_variable import NumberPropertyVariable -from .string_property_variable import StringPropertyVariable -from .boolean_property_variable import BooleanPropertyVariable -from .timestamp_of_property_variable import TimestampOfPropertyVariable -from .number_target_property_variable import NumberTargetPropertyVariable -from .string_target_property_variable import StringTargetPropertyVariable -from .boolean_target_property_variable import BooleanTargetPropertyVariable -from .fetch_single_currency_portal_currency import FetchSingleCurrencyPortalCurrency -from .timestamp_of_target_property_variable import TimestampOfTargetPropertyVariable - -__all__ = ["ParseNumber", "Input"] - -if TYPE_CHECKING or not PYDANTIC_V1: - Input = TypeAliasType( - "Input", - Union[ - ConstantBoolean, - ConstantNumber, - ConstantString, - BooleanPropertyVariable, - StringPropertyVariable, - NumberPropertyVariable, - TimestampOfPropertyVariable, - BooleanTargetPropertyVariable, - StringTargetPropertyVariable, - NumberTargetPropertyVariable, - TimestampOfTargetPropertyVariable, - "AddNumbers", - "SubtractNumbers", - "MultiplyNumbers", - "DivideNumbers", - "RoundDownNumbers", - "RoundUpNumbers", - "RoundNearestNumbers", - "UpperCase", - "LowerCase", - "ConcatStrings", - "Contains", - "BeginsWith", - "NumberToString", - "ParseNumber", - "FetchExchangeRate", - "FetchCurrencyDecimalPlaces", - FetchSingleCurrencyPortalCurrency, - "DatedExchangeRate", - "PipelineProbability", - "MaxNumbers", - "MinNumbers", - "LessThan", - "LessThanOrEqual", - "MoreThan", - "MoreThanOrEqual", - "NumberEquals", - "StringEquals", - "IsPipelineStageClosed", - "Not", - "Date", - "Month", - "Year", - Now, - "TimeBetween", - "TimeBetweenSkipWeekends", - "PeriodToMonths", - "PeriodToWeeks", - "And", - "Or", - "Xor", - "IfString", - "IfNumber", - "IfBoolean", - "IsPresent", - "HasEmailReply", - "HasPlainTextEmailReply", - "ExtractMostRecentEmailReplyHTML", - "ExtractMostRecentEmailReplyText", - "ExtractMostRecentPlainTextEmailReply", - "SetContainsString", - IsEngagementType, - "FormatFullName", - "FormatPhoneNumber", - "FormatSearchablePhoneNumber", - "AbsoluteValue", - "SquareRoot", - "Power", - "Substring", - Euler, - "StringLength", - "IsBlank", - "AddTime", - "SubtractTime", - ], - ) -else: - Input: TypeAlias = Union[ - ConstantBoolean, - ConstantNumber, - ConstantString, - BooleanPropertyVariable, - StringPropertyVariable, - NumberPropertyVariable, - TimestampOfPropertyVariable, - BooleanTargetPropertyVariable, - StringTargetPropertyVariable, - NumberTargetPropertyVariable, - TimestampOfTargetPropertyVariable, - "AddNumbers", - "SubtractNumbers", - "MultiplyNumbers", - "DivideNumbers", - "RoundDownNumbers", - "RoundUpNumbers", - "RoundNearestNumbers", - "UpperCase", - "LowerCase", - "ConcatStrings", - "Contains", - "BeginsWith", - "NumberToString", - "ParseNumber", - "FetchExchangeRate", - "FetchCurrencyDecimalPlaces", - FetchSingleCurrencyPortalCurrency, - "DatedExchangeRate", - "PipelineProbability", - "MaxNumbers", - "MinNumbers", - "LessThan", - "LessThanOrEqual", - "MoreThan", - "MoreThanOrEqual", - "NumberEquals", - "StringEquals", - "IsPipelineStageClosed", - "Not", - "Date", - "Month", - "Year", - Now, - "TimeBetween", - "TimeBetweenSkipWeekends", - "PeriodToMonths", - "PeriodToWeeks", - "And", - "Or", - "Xor", - "IfString", - "IfNumber", - "IfBoolean", - "IsPresent", - "HasEmailReply", - "HasPlainTextEmailReply", - "ExtractMostRecentEmailReplyHTML", - "ExtractMostRecentEmailReplyText", - "ExtractMostRecentPlainTextEmailReply", - "SetContainsString", - IsEngagementType, - "FormatFullName", - "FormatPhoneNumber", - "FormatSearchablePhoneNumber", - "AbsoluteValue", - "SquareRoot", - "Power", - "Substring", - Euler, - "StringLength", - "IsBlank", - "AddTime", - "SubtractTime", - ] - - -class ParseNumber(BaseModel): - operator: Literal["PARSE_NUMBER"] - - inputs: Optional[List[Input]] = None - - property_name: Optional[str] = FieldInfo(alias="propertyName", default=None) - - value: Optional[float] = None - - -from .or_ import Or -from .xor import Xor -from .and_ import And -from .date import Date -from .not_ import Not -from .year import Year -from .month import Month -from .power import Power -from .add_time import AddTime -from .contains import Contains -from .is_blank import IsBlank -from .if_number import IfNumber -from .if_string import IfString -from .less_than import LessThan -from .more_than import MoreThan -from .substring import Substring -from .if_boolean import IfBoolean -from .is_present import IsPresent -from .lower_case import LowerCase -from .upper_case import UpperCase -from .add_numbers import AddNumbers -from .begins_with import BeginsWith -from .max_numbers import MaxNumbers -from .min_numbers import MinNumbers -from .square_root import SquareRoot -from .time_between import TimeBetween -from .number_equals import NumberEquals -from .string_equals import StringEquals -from .string_length import StringLength -from .subtract_time import SubtractTime -from .absolute_value import AbsoluteValue -from .concat_strings import ConcatStrings -from .divide_numbers import DivideNumbers -from .has_email_reply import HasEmailReply -from .period_to_weeks import PeriodToWeeks -from .format_full_name import FormatFullName -from .multiply_numbers import MultiplyNumbers -from .number_to_string import NumberToString -from .period_to_months import PeriodToMonths -from .round_up_numbers import RoundUpNumbers -from .subtract_numbers import SubtractNumbers -from .less_than_or_equal import LessThanOrEqual -from .more_than_or_equal import MoreThanOrEqual -from .round_down_numbers import RoundDownNumbers -from .dated_exchange_rate import DatedExchangeRate -from .fetch_exchange_rate import FetchExchangeRate -from .format_phone_number import FormatPhoneNumber -from .set_contains_string import SetContainsString -from .pipeline_probability import PipelineProbability -from .round_nearest_numbers import RoundNearestNumbers -from .is_pipeline_stage_closed import IsPipelineStageClosed -from .has_plain_text_email_reply import HasPlainTextEmailReply -from .time_between_skip_weekends import TimeBetweenSkipWeekends -from .fetch_currency_decimal_places import FetchCurrencyDecimalPlaces -from .format_searchable_phone_number import FormatSearchablePhoneNumber -from .extract_most_recent_email_reply_html import ExtractMostRecentEmailReplyHTML -from .extract_most_recent_email_reply_text import ExtractMostRecentEmailReplyText -from .extract_most_recent_plain_text_email_reply import ExtractMostRecentPlainTextEmailReply diff --git a/src/hubspot_sdk/types/cms/period_to_months.py b/src/hubspot_sdk/types/cms/period_to_months.py deleted file mode 100644 index 2cb3560d..00000000 --- a/src/hubspot_sdk/types/cms/period_to_months.py +++ /dev/null @@ -1,256 +0,0 @@ -# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. - -from __future__ import annotations - -from typing import TYPE_CHECKING, List, Union, Optional -from typing_extensions import Literal, TypeAlias, TypeAliasType - -from pydantic import Field as FieldInfo - -from .now import Now -from .euler import Euler -from ..._compat import PYDANTIC_V1 -from ..._models import BaseModel -from .constant_number import ConstantNumber -from .constant_string import ConstantString -from .constant_boolean import ConstantBoolean -from .is_engagement_type import IsEngagementType -from .number_property_variable import NumberPropertyVariable -from .string_property_variable import StringPropertyVariable -from .boolean_property_variable import BooleanPropertyVariable -from .timestamp_of_property_variable import TimestampOfPropertyVariable -from .number_target_property_variable import NumberTargetPropertyVariable -from .string_target_property_variable import StringTargetPropertyVariable -from .boolean_target_property_variable import BooleanTargetPropertyVariable -from .fetch_single_currency_portal_currency import FetchSingleCurrencyPortalCurrency -from .timestamp_of_target_property_variable import TimestampOfTargetPropertyVariable - -__all__ = ["PeriodToMonths", "Input"] - -if TYPE_CHECKING or not PYDANTIC_V1: - Input = TypeAliasType( - "Input", - Union[ - ConstantBoolean, - ConstantNumber, - ConstantString, - BooleanPropertyVariable, - StringPropertyVariable, - NumberPropertyVariable, - TimestampOfPropertyVariable, - BooleanTargetPropertyVariable, - StringTargetPropertyVariable, - NumberTargetPropertyVariable, - TimestampOfTargetPropertyVariable, - "AddNumbers", - "SubtractNumbers", - "MultiplyNumbers", - "DivideNumbers", - "RoundDownNumbers", - "RoundUpNumbers", - "RoundNearestNumbers", - "UpperCase", - "LowerCase", - "ConcatStrings", - "Contains", - "BeginsWith", - "NumberToString", - "ParseNumber", - "FetchExchangeRate", - "FetchCurrencyDecimalPlaces", - FetchSingleCurrencyPortalCurrency, - "DatedExchangeRate", - "PipelineProbability", - "MaxNumbers", - "MinNumbers", - "LessThan", - "LessThanOrEqual", - "MoreThan", - "MoreThanOrEqual", - "NumberEquals", - "StringEquals", - "IsPipelineStageClosed", - "Not", - "Date", - "Month", - "Year", - Now, - "TimeBetween", - "TimeBetweenSkipWeekends", - "PeriodToMonths", - "PeriodToWeeks", - "And", - "Or", - "Xor", - "IfString", - "IfNumber", - "IfBoolean", - "IsPresent", - "HasEmailReply", - "HasPlainTextEmailReply", - "ExtractMostRecentEmailReplyHTML", - "ExtractMostRecentEmailReplyText", - "ExtractMostRecentPlainTextEmailReply", - "SetContainsString", - IsEngagementType, - "FormatFullName", - "FormatPhoneNumber", - "FormatSearchablePhoneNumber", - "AbsoluteValue", - "SquareRoot", - "Power", - "Substring", - Euler, - "StringLength", - "IsBlank", - "AddTime", - "SubtractTime", - ], - ) -else: - Input: TypeAlias = Union[ - ConstantBoolean, - ConstantNumber, - ConstantString, - BooleanPropertyVariable, - StringPropertyVariable, - NumberPropertyVariable, - TimestampOfPropertyVariable, - BooleanTargetPropertyVariable, - StringTargetPropertyVariable, - NumberTargetPropertyVariable, - TimestampOfTargetPropertyVariable, - "AddNumbers", - "SubtractNumbers", - "MultiplyNumbers", - "DivideNumbers", - "RoundDownNumbers", - "RoundUpNumbers", - "RoundNearestNumbers", - "UpperCase", - "LowerCase", - "ConcatStrings", - "Contains", - "BeginsWith", - "NumberToString", - "ParseNumber", - "FetchExchangeRate", - "FetchCurrencyDecimalPlaces", - FetchSingleCurrencyPortalCurrency, - "DatedExchangeRate", - "PipelineProbability", - "MaxNumbers", - "MinNumbers", - "LessThan", - "LessThanOrEqual", - "MoreThan", - "MoreThanOrEqual", - "NumberEquals", - "StringEquals", - "IsPipelineStageClosed", - "Not", - "Date", - "Month", - "Year", - Now, - "TimeBetween", - "TimeBetweenSkipWeekends", - "PeriodToMonths", - "PeriodToWeeks", - "And", - "Or", - "Xor", - "IfString", - "IfNumber", - "IfBoolean", - "IsPresent", - "HasEmailReply", - "HasPlainTextEmailReply", - "ExtractMostRecentEmailReplyHTML", - "ExtractMostRecentEmailReplyText", - "ExtractMostRecentPlainTextEmailReply", - "SetContainsString", - IsEngagementType, - "FormatFullName", - "FormatPhoneNumber", - "FormatSearchablePhoneNumber", - "AbsoluteValue", - "SquareRoot", - "Power", - "Substring", - Euler, - "StringLength", - "IsBlank", - "AddTime", - "SubtractTime", - ] - - -class PeriodToMonths(BaseModel): - operator: Literal["PERIOD_TO_MONTHS"] - - inputs: Optional[List[Input]] = None - - property_name: Optional[str] = FieldInfo(alias="propertyName", default=None) - - value: Optional[float] = None - - -from .or_ import Or -from .xor import Xor -from .and_ import And -from .date import Date -from .not_ import Not -from .year import Year -from .month import Month -from .power import Power -from .add_time import AddTime -from .contains import Contains -from .is_blank import IsBlank -from .if_number import IfNumber -from .if_string import IfString -from .less_than import LessThan -from .more_than import MoreThan -from .substring import Substring -from .if_boolean import IfBoolean -from .is_present import IsPresent -from .lower_case import LowerCase -from .upper_case import UpperCase -from .add_numbers import AddNumbers -from .begins_with import BeginsWith -from .max_numbers import MaxNumbers -from .min_numbers import MinNumbers -from .square_root import SquareRoot -from .parse_number import ParseNumber -from .time_between import TimeBetween -from .number_equals import NumberEquals -from .string_equals import StringEquals -from .string_length import StringLength -from .subtract_time import SubtractTime -from .absolute_value import AbsoluteValue -from .concat_strings import ConcatStrings -from .divide_numbers import DivideNumbers -from .has_email_reply import HasEmailReply -from .period_to_weeks import PeriodToWeeks -from .format_full_name import FormatFullName -from .multiply_numbers import MultiplyNumbers -from .number_to_string import NumberToString -from .round_up_numbers import RoundUpNumbers -from .subtract_numbers import SubtractNumbers -from .less_than_or_equal import LessThanOrEqual -from .more_than_or_equal import MoreThanOrEqual -from .round_down_numbers import RoundDownNumbers -from .dated_exchange_rate import DatedExchangeRate -from .fetch_exchange_rate import FetchExchangeRate -from .format_phone_number import FormatPhoneNumber -from .set_contains_string import SetContainsString -from .pipeline_probability import PipelineProbability -from .round_nearest_numbers import RoundNearestNumbers -from .is_pipeline_stage_closed import IsPipelineStageClosed -from .has_plain_text_email_reply import HasPlainTextEmailReply -from .time_between_skip_weekends import TimeBetweenSkipWeekends -from .fetch_currency_decimal_places import FetchCurrencyDecimalPlaces -from .format_searchable_phone_number import FormatSearchablePhoneNumber -from .extract_most_recent_email_reply_html import ExtractMostRecentEmailReplyHTML -from .extract_most_recent_email_reply_text import ExtractMostRecentEmailReplyText -from .extract_most_recent_plain_text_email_reply import ExtractMostRecentPlainTextEmailReply diff --git a/src/hubspot_sdk/types/cms/period_to_weeks.py b/src/hubspot_sdk/types/cms/period_to_weeks.py deleted file mode 100644 index e5914d13..00000000 --- a/src/hubspot_sdk/types/cms/period_to_weeks.py +++ /dev/null @@ -1,256 +0,0 @@ -# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. - -from __future__ import annotations - -from typing import TYPE_CHECKING, List, Union, Optional -from typing_extensions import Literal, TypeAlias, TypeAliasType - -from pydantic import Field as FieldInfo - -from .now import Now -from .euler import Euler -from ..._compat import PYDANTIC_V1 -from ..._models import BaseModel -from .constant_number import ConstantNumber -from .constant_string import ConstantString -from .constant_boolean import ConstantBoolean -from .is_engagement_type import IsEngagementType -from .number_property_variable import NumberPropertyVariable -from .string_property_variable import StringPropertyVariable -from .boolean_property_variable import BooleanPropertyVariable -from .timestamp_of_property_variable import TimestampOfPropertyVariable -from .number_target_property_variable import NumberTargetPropertyVariable -from .string_target_property_variable import StringTargetPropertyVariable -from .boolean_target_property_variable import BooleanTargetPropertyVariable -from .fetch_single_currency_portal_currency import FetchSingleCurrencyPortalCurrency -from .timestamp_of_target_property_variable import TimestampOfTargetPropertyVariable - -__all__ = ["PeriodToWeeks", "Input"] - -if TYPE_CHECKING or not PYDANTIC_V1: - Input = TypeAliasType( - "Input", - Union[ - ConstantBoolean, - ConstantNumber, - ConstantString, - BooleanPropertyVariable, - StringPropertyVariable, - NumberPropertyVariable, - TimestampOfPropertyVariable, - BooleanTargetPropertyVariable, - StringTargetPropertyVariable, - NumberTargetPropertyVariable, - TimestampOfTargetPropertyVariable, - "AddNumbers", - "SubtractNumbers", - "MultiplyNumbers", - "DivideNumbers", - "RoundDownNumbers", - "RoundUpNumbers", - "RoundNearestNumbers", - "UpperCase", - "LowerCase", - "ConcatStrings", - "Contains", - "BeginsWith", - "NumberToString", - "ParseNumber", - "FetchExchangeRate", - "FetchCurrencyDecimalPlaces", - FetchSingleCurrencyPortalCurrency, - "DatedExchangeRate", - "PipelineProbability", - "MaxNumbers", - "MinNumbers", - "LessThan", - "LessThanOrEqual", - "MoreThan", - "MoreThanOrEqual", - "NumberEquals", - "StringEquals", - "IsPipelineStageClosed", - "Not", - "Date", - "Month", - "Year", - Now, - "TimeBetween", - "TimeBetweenSkipWeekends", - "PeriodToMonths", - "PeriodToWeeks", - "And", - "Or", - "Xor", - "IfString", - "IfNumber", - "IfBoolean", - "IsPresent", - "HasEmailReply", - "HasPlainTextEmailReply", - "ExtractMostRecentEmailReplyHTML", - "ExtractMostRecentEmailReplyText", - "ExtractMostRecentPlainTextEmailReply", - "SetContainsString", - IsEngagementType, - "FormatFullName", - "FormatPhoneNumber", - "FormatSearchablePhoneNumber", - "AbsoluteValue", - "SquareRoot", - "Power", - "Substring", - Euler, - "StringLength", - "IsBlank", - "AddTime", - "SubtractTime", - ], - ) -else: - Input: TypeAlias = Union[ - ConstantBoolean, - ConstantNumber, - ConstantString, - BooleanPropertyVariable, - StringPropertyVariable, - NumberPropertyVariable, - TimestampOfPropertyVariable, - BooleanTargetPropertyVariable, - StringTargetPropertyVariable, - NumberTargetPropertyVariable, - TimestampOfTargetPropertyVariable, - "AddNumbers", - "SubtractNumbers", - "MultiplyNumbers", - "DivideNumbers", - "RoundDownNumbers", - "RoundUpNumbers", - "RoundNearestNumbers", - "UpperCase", - "LowerCase", - "ConcatStrings", - "Contains", - "BeginsWith", - "NumberToString", - "ParseNumber", - "FetchExchangeRate", - "FetchCurrencyDecimalPlaces", - FetchSingleCurrencyPortalCurrency, - "DatedExchangeRate", - "PipelineProbability", - "MaxNumbers", - "MinNumbers", - "LessThan", - "LessThanOrEqual", - "MoreThan", - "MoreThanOrEqual", - "NumberEquals", - "StringEquals", - "IsPipelineStageClosed", - "Not", - "Date", - "Month", - "Year", - Now, - "TimeBetween", - "TimeBetweenSkipWeekends", - "PeriodToMonths", - "PeriodToWeeks", - "And", - "Or", - "Xor", - "IfString", - "IfNumber", - "IfBoolean", - "IsPresent", - "HasEmailReply", - "HasPlainTextEmailReply", - "ExtractMostRecentEmailReplyHTML", - "ExtractMostRecentEmailReplyText", - "ExtractMostRecentPlainTextEmailReply", - "SetContainsString", - IsEngagementType, - "FormatFullName", - "FormatPhoneNumber", - "FormatSearchablePhoneNumber", - "AbsoluteValue", - "SquareRoot", - "Power", - "Substring", - Euler, - "StringLength", - "IsBlank", - "AddTime", - "SubtractTime", - ] - - -class PeriodToWeeks(BaseModel): - operator: Literal["PERIOD_TO_WEEKS"] - - inputs: Optional[List[Input]] = None - - property_name: Optional[str] = FieldInfo(alias="propertyName", default=None) - - value: Optional[float] = None - - -from .or_ import Or -from .xor import Xor -from .and_ import And -from .date import Date -from .not_ import Not -from .year import Year -from .month import Month -from .power import Power -from .add_time import AddTime -from .contains import Contains -from .is_blank import IsBlank -from .if_number import IfNumber -from .if_string import IfString -from .less_than import LessThan -from .more_than import MoreThan -from .substring import Substring -from .if_boolean import IfBoolean -from .is_present import IsPresent -from .lower_case import LowerCase -from .upper_case import UpperCase -from .add_numbers import AddNumbers -from .begins_with import BeginsWith -from .max_numbers import MaxNumbers -from .min_numbers import MinNumbers -from .square_root import SquareRoot -from .parse_number import ParseNumber -from .time_between import TimeBetween -from .number_equals import NumberEquals -from .string_equals import StringEquals -from .string_length import StringLength -from .subtract_time import SubtractTime -from .absolute_value import AbsoluteValue -from .concat_strings import ConcatStrings -from .divide_numbers import DivideNumbers -from .has_email_reply import HasEmailReply -from .format_full_name import FormatFullName -from .multiply_numbers import MultiplyNumbers -from .number_to_string import NumberToString -from .period_to_months import PeriodToMonths -from .round_up_numbers import RoundUpNumbers -from .subtract_numbers import SubtractNumbers -from .less_than_or_equal import LessThanOrEqual -from .more_than_or_equal import MoreThanOrEqual -from .round_down_numbers import RoundDownNumbers -from .dated_exchange_rate import DatedExchangeRate -from .fetch_exchange_rate import FetchExchangeRate -from .format_phone_number import FormatPhoneNumber -from .set_contains_string import SetContainsString -from .pipeline_probability import PipelineProbability -from .round_nearest_numbers import RoundNearestNumbers -from .is_pipeline_stage_closed import IsPipelineStageClosed -from .has_plain_text_email_reply import HasPlainTextEmailReply -from .time_between_skip_weekends import TimeBetweenSkipWeekends -from .fetch_currency_decimal_places import FetchCurrencyDecimalPlaces -from .format_searchable_phone_number import FormatSearchablePhoneNumber -from .extract_most_recent_email_reply_html import ExtractMostRecentEmailReplyHTML -from .extract_most_recent_email_reply_text import ExtractMostRecentEmailReplyText -from .extract_most_recent_plain_text_email_reply import ExtractMostRecentPlainTextEmailReply diff --git a/src/hubspot_sdk/types/cms/pipeline_probability.py b/src/hubspot_sdk/types/cms/pipeline_probability.py deleted file mode 100644 index 44b0e712..00000000 --- a/src/hubspot_sdk/types/cms/pipeline_probability.py +++ /dev/null @@ -1,256 +0,0 @@ -# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. - -from __future__ import annotations - -from typing import TYPE_CHECKING, List, Union, Optional -from typing_extensions import Literal, TypeAlias, TypeAliasType - -from pydantic import Field as FieldInfo - -from .now import Now -from .euler import Euler -from ..._compat import PYDANTIC_V1 -from ..._models import BaseModel -from .constant_number import ConstantNumber -from .constant_string import ConstantString -from .constant_boolean import ConstantBoolean -from .is_engagement_type import IsEngagementType -from .number_property_variable import NumberPropertyVariable -from .string_property_variable import StringPropertyVariable -from .boolean_property_variable import BooleanPropertyVariable -from .timestamp_of_property_variable import TimestampOfPropertyVariable -from .number_target_property_variable import NumberTargetPropertyVariable -from .string_target_property_variable import StringTargetPropertyVariable -from .boolean_target_property_variable import BooleanTargetPropertyVariable -from .fetch_single_currency_portal_currency import FetchSingleCurrencyPortalCurrency -from .timestamp_of_target_property_variable import TimestampOfTargetPropertyVariable - -__all__ = ["PipelineProbability", "Input"] - -if TYPE_CHECKING or not PYDANTIC_V1: - Input = TypeAliasType( - "Input", - Union[ - ConstantBoolean, - ConstantNumber, - ConstantString, - BooleanPropertyVariable, - StringPropertyVariable, - NumberPropertyVariable, - TimestampOfPropertyVariable, - BooleanTargetPropertyVariable, - StringTargetPropertyVariable, - NumberTargetPropertyVariable, - TimestampOfTargetPropertyVariable, - "AddNumbers", - "SubtractNumbers", - "MultiplyNumbers", - "DivideNumbers", - "RoundDownNumbers", - "RoundUpNumbers", - "RoundNearestNumbers", - "UpperCase", - "LowerCase", - "ConcatStrings", - "Contains", - "BeginsWith", - "NumberToString", - "ParseNumber", - "FetchExchangeRate", - "FetchCurrencyDecimalPlaces", - FetchSingleCurrencyPortalCurrency, - "DatedExchangeRate", - "PipelineProbability", - "MaxNumbers", - "MinNumbers", - "LessThan", - "LessThanOrEqual", - "MoreThan", - "MoreThanOrEqual", - "NumberEquals", - "StringEquals", - "IsPipelineStageClosed", - "Not", - "Date", - "Month", - "Year", - Now, - "TimeBetween", - "TimeBetweenSkipWeekends", - "PeriodToMonths", - "PeriodToWeeks", - "And", - "Or", - "Xor", - "IfString", - "IfNumber", - "IfBoolean", - "IsPresent", - "HasEmailReply", - "HasPlainTextEmailReply", - "ExtractMostRecentEmailReplyHTML", - "ExtractMostRecentEmailReplyText", - "ExtractMostRecentPlainTextEmailReply", - "SetContainsString", - IsEngagementType, - "FormatFullName", - "FormatPhoneNumber", - "FormatSearchablePhoneNumber", - "AbsoluteValue", - "SquareRoot", - "Power", - "Substring", - Euler, - "StringLength", - "IsBlank", - "AddTime", - "SubtractTime", - ], - ) -else: - Input: TypeAlias = Union[ - ConstantBoolean, - ConstantNumber, - ConstantString, - BooleanPropertyVariable, - StringPropertyVariable, - NumberPropertyVariable, - TimestampOfPropertyVariable, - BooleanTargetPropertyVariable, - StringTargetPropertyVariable, - NumberTargetPropertyVariable, - TimestampOfTargetPropertyVariable, - "AddNumbers", - "SubtractNumbers", - "MultiplyNumbers", - "DivideNumbers", - "RoundDownNumbers", - "RoundUpNumbers", - "RoundNearestNumbers", - "UpperCase", - "LowerCase", - "ConcatStrings", - "Contains", - "BeginsWith", - "NumberToString", - "ParseNumber", - "FetchExchangeRate", - "FetchCurrencyDecimalPlaces", - FetchSingleCurrencyPortalCurrency, - "DatedExchangeRate", - "PipelineProbability", - "MaxNumbers", - "MinNumbers", - "LessThan", - "LessThanOrEqual", - "MoreThan", - "MoreThanOrEqual", - "NumberEquals", - "StringEquals", - "IsPipelineStageClosed", - "Not", - "Date", - "Month", - "Year", - Now, - "TimeBetween", - "TimeBetweenSkipWeekends", - "PeriodToMonths", - "PeriodToWeeks", - "And", - "Or", - "Xor", - "IfString", - "IfNumber", - "IfBoolean", - "IsPresent", - "HasEmailReply", - "HasPlainTextEmailReply", - "ExtractMostRecentEmailReplyHTML", - "ExtractMostRecentEmailReplyText", - "ExtractMostRecentPlainTextEmailReply", - "SetContainsString", - IsEngagementType, - "FormatFullName", - "FormatPhoneNumber", - "FormatSearchablePhoneNumber", - "AbsoluteValue", - "SquareRoot", - "Power", - "Substring", - Euler, - "StringLength", - "IsBlank", - "AddTime", - "SubtractTime", - ] - - -class PipelineProbability(BaseModel): - operator: Literal["PIPELINE_PROBABILITY"] - - inputs: Optional[List[Input]] = None - - property_name: Optional[str] = FieldInfo(alias="propertyName", default=None) - - value: Optional[float] = None - - -from .or_ import Or -from .xor import Xor -from .and_ import And -from .date import Date -from .not_ import Not -from .year import Year -from .month import Month -from .power import Power -from .add_time import AddTime -from .contains import Contains -from .is_blank import IsBlank -from .if_number import IfNumber -from .if_string import IfString -from .less_than import LessThan -from .more_than import MoreThan -from .substring import Substring -from .if_boolean import IfBoolean -from .is_present import IsPresent -from .lower_case import LowerCase -from .upper_case import UpperCase -from .add_numbers import AddNumbers -from .begins_with import BeginsWith -from .max_numbers import MaxNumbers -from .min_numbers import MinNumbers -from .square_root import SquareRoot -from .parse_number import ParseNumber -from .time_between import TimeBetween -from .number_equals import NumberEquals -from .string_equals import StringEquals -from .string_length import StringLength -from .subtract_time import SubtractTime -from .absolute_value import AbsoluteValue -from .concat_strings import ConcatStrings -from .divide_numbers import DivideNumbers -from .has_email_reply import HasEmailReply -from .period_to_weeks import PeriodToWeeks -from .format_full_name import FormatFullName -from .multiply_numbers import MultiplyNumbers -from .number_to_string import NumberToString -from .period_to_months import PeriodToMonths -from .round_up_numbers import RoundUpNumbers -from .subtract_numbers import SubtractNumbers -from .less_than_or_equal import LessThanOrEqual -from .more_than_or_equal import MoreThanOrEqual -from .round_down_numbers import RoundDownNumbers -from .dated_exchange_rate import DatedExchangeRate -from .fetch_exchange_rate import FetchExchangeRate -from .format_phone_number import FormatPhoneNumber -from .set_contains_string import SetContainsString -from .round_nearest_numbers import RoundNearestNumbers -from .is_pipeline_stage_closed import IsPipelineStageClosed -from .has_plain_text_email_reply import HasPlainTextEmailReply -from .time_between_skip_weekends import TimeBetweenSkipWeekends -from .fetch_currency_decimal_places import FetchCurrencyDecimalPlaces -from .format_searchable_phone_number import FormatSearchablePhoneNumber -from .extract_most_recent_email_reply_html import ExtractMostRecentEmailReplyHTML -from .extract_most_recent_email_reply_text import ExtractMostRecentEmailReplyText -from .extract_most_recent_plain_text_email_reply import ExtractMostRecentPlainTextEmailReply diff --git a/src/hubspot_sdk/types/cms/power.py b/src/hubspot_sdk/types/cms/power.py deleted file mode 100644 index 9d013df9..00000000 --- a/src/hubspot_sdk/types/cms/power.py +++ /dev/null @@ -1,256 +0,0 @@ -# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. - -from __future__ import annotations - -from typing import TYPE_CHECKING, List, Union, Optional -from typing_extensions import Literal, TypeAlias, TypeAliasType - -from pydantic import Field as FieldInfo - -from .now import Now -from .euler import Euler -from ..._compat import PYDANTIC_V1 -from ..._models import BaseModel -from .constant_number import ConstantNumber -from .constant_string import ConstantString -from .constant_boolean import ConstantBoolean -from .is_engagement_type import IsEngagementType -from .number_property_variable import NumberPropertyVariable -from .string_property_variable import StringPropertyVariable -from .boolean_property_variable import BooleanPropertyVariable -from .timestamp_of_property_variable import TimestampOfPropertyVariable -from .number_target_property_variable import NumberTargetPropertyVariable -from .string_target_property_variable import StringTargetPropertyVariable -from .boolean_target_property_variable import BooleanTargetPropertyVariable -from .fetch_single_currency_portal_currency import FetchSingleCurrencyPortalCurrency -from .timestamp_of_target_property_variable import TimestampOfTargetPropertyVariable - -__all__ = ["Power", "Input"] - -if TYPE_CHECKING or not PYDANTIC_V1: - Input = TypeAliasType( - "Input", - Union[ - ConstantBoolean, - ConstantNumber, - ConstantString, - BooleanPropertyVariable, - StringPropertyVariable, - NumberPropertyVariable, - TimestampOfPropertyVariable, - BooleanTargetPropertyVariable, - StringTargetPropertyVariable, - NumberTargetPropertyVariable, - TimestampOfTargetPropertyVariable, - "AddNumbers", - "SubtractNumbers", - "MultiplyNumbers", - "DivideNumbers", - "RoundDownNumbers", - "RoundUpNumbers", - "RoundNearestNumbers", - "UpperCase", - "LowerCase", - "ConcatStrings", - "Contains", - "BeginsWith", - "NumberToString", - "ParseNumber", - "FetchExchangeRate", - "FetchCurrencyDecimalPlaces", - FetchSingleCurrencyPortalCurrency, - "DatedExchangeRate", - "PipelineProbability", - "MaxNumbers", - "MinNumbers", - "LessThan", - "LessThanOrEqual", - "MoreThan", - "MoreThanOrEqual", - "NumberEquals", - "StringEquals", - "IsPipelineStageClosed", - "Not", - "Date", - "Month", - "Year", - Now, - "TimeBetween", - "TimeBetweenSkipWeekends", - "PeriodToMonths", - "PeriodToWeeks", - "And", - "Or", - "Xor", - "IfString", - "IfNumber", - "IfBoolean", - "IsPresent", - "HasEmailReply", - "HasPlainTextEmailReply", - "ExtractMostRecentEmailReplyHTML", - "ExtractMostRecentEmailReplyText", - "ExtractMostRecentPlainTextEmailReply", - "SetContainsString", - IsEngagementType, - "FormatFullName", - "FormatPhoneNumber", - "FormatSearchablePhoneNumber", - "AbsoluteValue", - "SquareRoot", - "Power", - "Substring", - Euler, - "StringLength", - "IsBlank", - "AddTime", - "SubtractTime", - ], - ) -else: - Input: TypeAlias = Union[ - ConstantBoolean, - ConstantNumber, - ConstantString, - BooleanPropertyVariable, - StringPropertyVariable, - NumberPropertyVariable, - TimestampOfPropertyVariable, - BooleanTargetPropertyVariable, - StringTargetPropertyVariable, - NumberTargetPropertyVariable, - TimestampOfTargetPropertyVariable, - "AddNumbers", - "SubtractNumbers", - "MultiplyNumbers", - "DivideNumbers", - "RoundDownNumbers", - "RoundUpNumbers", - "RoundNearestNumbers", - "UpperCase", - "LowerCase", - "ConcatStrings", - "Contains", - "BeginsWith", - "NumberToString", - "ParseNumber", - "FetchExchangeRate", - "FetchCurrencyDecimalPlaces", - FetchSingleCurrencyPortalCurrency, - "DatedExchangeRate", - "PipelineProbability", - "MaxNumbers", - "MinNumbers", - "LessThan", - "LessThanOrEqual", - "MoreThan", - "MoreThanOrEqual", - "NumberEquals", - "StringEquals", - "IsPipelineStageClosed", - "Not", - "Date", - "Month", - "Year", - Now, - "TimeBetween", - "TimeBetweenSkipWeekends", - "PeriodToMonths", - "PeriodToWeeks", - "And", - "Or", - "Xor", - "IfString", - "IfNumber", - "IfBoolean", - "IsPresent", - "HasEmailReply", - "HasPlainTextEmailReply", - "ExtractMostRecentEmailReplyHTML", - "ExtractMostRecentEmailReplyText", - "ExtractMostRecentPlainTextEmailReply", - "SetContainsString", - IsEngagementType, - "FormatFullName", - "FormatPhoneNumber", - "FormatSearchablePhoneNumber", - "AbsoluteValue", - "SquareRoot", - "Power", - "Substring", - Euler, - "StringLength", - "IsBlank", - "AddTime", - "SubtractTime", - ] - - -class Power(BaseModel): - operator: Literal["POWER"] - - inputs: Optional[List[Input]] = None - - property_name: Optional[str] = FieldInfo(alias="propertyName", default=None) - - value: Optional[float] = None - - -from .or_ import Or -from .xor import Xor -from .and_ import And -from .date import Date -from .not_ import Not -from .year import Year -from .month import Month -from .add_time import AddTime -from .contains import Contains -from .is_blank import IsBlank -from .if_number import IfNumber -from .if_string import IfString -from .less_than import LessThan -from .more_than import MoreThan -from .substring import Substring -from .if_boolean import IfBoolean -from .is_present import IsPresent -from .lower_case import LowerCase -from .upper_case import UpperCase -from .add_numbers import AddNumbers -from .begins_with import BeginsWith -from .max_numbers import MaxNumbers -from .min_numbers import MinNumbers -from .square_root import SquareRoot -from .parse_number import ParseNumber -from .time_between import TimeBetween -from .number_equals import NumberEquals -from .string_equals import StringEquals -from .string_length import StringLength -from .subtract_time import SubtractTime -from .absolute_value import AbsoluteValue -from .concat_strings import ConcatStrings -from .divide_numbers import DivideNumbers -from .has_email_reply import HasEmailReply -from .period_to_weeks import PeriodToWeeks -from .format_full_name import FormatFullName -from .multiply_numbers import MultiplyNumbers -from .number_to_string import NumberToString -from .period_to_months import PeriodToMonths -from .round_up_numbers import RoundUpNumbers -from .subtract_numbers import SubtractNumbers -from .less_than_or_equal import LessThanOrEqual -from .more_than_or_equal import MoreThanOrEqual -from .round_down_numbers import RoundDownNumbers -from .dated_exchange_rate import DatedExchangeRate -from .fetch_exchange_rate import FetchExchangeRate -from .format_phone_number import FormatPhoneNumber -from .set_contains_string import SetContainsString -from .pipeline_probability import PipelineProbability -from .round_nearest_numbers import RoundNearestNumbers -from .is_pipeline_stage_closed import IsPipelineStageClosed -from .has_plain_text_email_reply import HasPlainTextEmailReply -from .time_between_skip_weekends import TimeBetweenSkipWeekends -from .fetch_currency_decimal_places import FetchCurrencyDecimalPlaces -from .format_searchable_phone_number import FormatSearchablePhoneNumber -from .extract_most_recent_email_reply_html import ExtractMostRecentEmailReplyHTML -from .extract_most_recent_email_reply_text import ExtractMostRecentEmailReplyText -from .extract_most_recent_plain_text_email_reply import ExtractMostRecentPlainTextEmailReply diff --git a/src/hubspot_sdk/types/cms/property_definition.py b/src/hubspot_sdk/types/cms/property_definition.py index e0e3df29..58a6da78 100644 --- a/src/hubspot_sdk/types/cms/property_definition.py +++ b/src/hubspot_sdk/types/cms/property_definition.py @@ -1,123 +1,30 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from __future__ import annotations - -from typing import Union, Optional -from typing_extensions import TypeAlias +from typing import Optional from pydantic import Field as FieldInfo -from .now import Now -from .euler import Euler -from .property import Property from ..._models import BaseModel from .extension_data import ExtensionData -from .constant_number import ConstantNumber -from .constant_string import ConstantString -from .constant_boolean import ConstantBoolean from .definition_source import DefinitionSource -from .is_engagement_type import IsEngagementType +from .rollup_expression import RollupExpression from .default_requirements import DefaultRequirements +from .media_bridge_property import MediaBridgeProperty from .field_level_permission import FieldLevelPermission -from .number_property_variable import NumberPropertyVariable -from .string_property_variable import StringPropertyVariable -from .boolean_property_variable import BooleanPropertyVariable +from .lookup_association_spec import LookupAssociationSpec from .external_options_meta_data import ExternalOptionsMetaData from .property_definition_source import PropertyDefinitionSource -from .timestamp_of_property_variable import TimestampOfPropertyVariable -from .number_target_property_variable import NumberTargetPropertyVariable -from .string_target_property_variable import StringTargetPropertyVariable -from .boolean_target_property_variable import BooleanTargetPropertyVariable -from .fetch_single_currency_portal_currency import FetchSingleCurrencyPortalCurrency -from .timestamp_of_target_property_variable import TimestampOfTargetPropertyVariable - -__all__ = ["PropertyDefinition", "CalculationExpression"] - -CalculationExpression: TypeAlias = Union[ - ConstantBoolean, - ConstantNumber, - ConstantString, - BooleanPropertyVariable, - StringPropertyVariable, - NumberPropertyVariable, - TimestampOfPropertyVariable, - BooleanTargetPropertyVariable, - StringTargetPropertyVariable, - NumberTargetPropertyVariable, - TimestampOfTargetPropertyVariable, - "AddNumbers", - "SubtractNumbers", - "MultiplyNumbers", - "DivideNumbers", - "RoundDownNumbers", - "RoundUpNumbers", - "RoundNearestNumbers", - "UpperCase", - "LowerCase", - "ConcatStrings", - "Contains", - "BeginsWith", - "NumberToString", - "ParseNumber", - "FetchExchangeRate", - "FetchCurrencyDecimalPlaces", - FetchSingleCurrencyPortalCurrency, - "DatedExchangeRate", - "PipelineProbability", - "MaxNumbers", - "MinNumbers", - "LessThan", - "LessThanOrEqual", - "MoreThan", - "MoreThanOrEqual", - "NumberEquals", - "StringEquals", - "IsPipelineStageClosed", - "Not", - "Date", - "Month", - "Year", - Now, - "TimeBetween", - "TimeBetweenSkipWeekends", - "PeriodToMonths", - "PeriodToWeeks", - "And", - "Or", - "Xor", - "IfString", - "IfNumber", - "IfBoolean", - "IsPresent", - "HasEmailReply", - "HasPlainTextEmailReply", - "ExtractMostRecentEmailReplyHTML", - "ExtractMostRecentEmailReplyText", - "ExtractMostRecentPlainTextEmailReply", - "SetContainsString", - IsEngagementType, - "FormatFullName", - "FormatPhoneNumber", - "FormatSearchablePhoneNumber", - "AbsoluteValue", - "SquareRoot", - "Power", - "Substring", - Euler, - "StringLength", - "IsBlank", - "AddTime", - "SubtractTime", -] + +__all__ = ["PropertyDefinition"] class PropertyDefinition(BaseModel): object_type_id: str = FieldInfo(alias="objectTypeId") - property: Property + property: MediaBridgeProperty """A HubSpot property""" - calculation_expression: Optional[CalculationExpression] = FieldInfo(alias="calculationExpression", default=None) + calculation_expression: Optional[object] = FieldInfo(alias="calculationExpression", default=None) calculation_formula: Optional[str] = FieldInfo(alias="calculationFormula", default=None) @@ -135,72 +42,12 @@ class PropertyDefinition(BaseModel): janus_group: Optional[str] = FieldInfo(alias="janusGroup", default=None) + lookup_association_spec: Optional[LookupAssociationSpec] = FieldInfo(alias="lookupAssociationSpec", default=None) + permission: Optional[FieldLevelPermission] = None property_definition_source: Optional[DefinitionSource] = FieldInfo(alias="propertyDefinitionSource", default=None) property_requirements: Optional[DefaultRequirements] = FieldInfo(alias="propertyRequirements", default=None) - rollup_expression: Optional["RollupExpression"] = FieldInfo(alias="rollupExpression", default=None) - - -from .or_ import Or -from .xor import Xor -from .and_ import And -from .date import Date -from .not_ import Not -from .year import Year -from .month import Month -from .power import Power -from .add_time import AddTime -from .contains import Contains -from .is_blank import IsBlank -from .if_number import IfNumber -from .if_string import IfString -from .less_than import LessThan -from .more_than import MoreThan -from .substring import Substring -from .if_boolean import IfBoolean -from .is_present import IsPresent -from .lower_case import LowerCase -from .upper_case import UpperCase -from .add_numbers import AddNumbers -from .begins_with import BeginsWith -from .max_numbers import MaxNumbers -from .min_numbers import MinNumbers -from .square_root import SquareRoot -from .parse_number import ParseNumber -from .time_between import TimeBetween -from .number_equals import NumberEquals -from .string_equals import StringEquals -from .string_length import StringLength -from .subtract_time import SubtractTime -from .absolute_value import AbsoluteValue -from .concat_strings import ConcatStrings -from .divide_numbers import DivideNumbers -from .has_email_reply import HasEmailReply -from .period_to_weeks import PeriodToWeeks -from .format_full_name import FormatFullName -from .multiply_numbers import MultiplyNumbers -from .number_to_string import NumberToString -from .period_to_months import PeriodToMonths -from .round_up_numbers import RoundUpNumbers -from .subtract_numbers import SubtractNumbers -from .rollup_expression import RollupExpression -from .less_than_or_equal import LessThanOrEqual -from .more_than_or_equal import MoreThanOrEqual -from .round_down_numbers import RoundDownNumbers -from .dated_exchange_rate import DatedExchangeRate -from .fetch_exchange_rate import FetchExchangeRate -from .format_phone_number import FormatPhoneNumber -from .set_contains_string import SetContainsString -from .pipeline_probability import PipelineProbability -from .round_nearest_numbers import RoundNearestNumbers -from .is_pipeline_stage_closed import IsPipelineStageClosed -from .has_plain_text_email_reply import HasPlainTextEmailReply -from .time_between_skip_weekends import TimeBetweenSkipWeekends -from .fetch_currency_decimal_places import FetchCurrencyDecimalPlaces -from .format_searchable_phone_number import FormatSearchablePhoneNumber -from .extract_most_recent_email_reply_html import ExtractMostRecentEmailReplyHTML -from .extract_most_recent_email_reply_text import ExtractMostRecentEmailReplyText -from .extract_most_recent_plain_text_email_reply import ExtractMostRecentPlainTextEmailReply + rollup_expression: Optional[RollupExpression] = FieldInfo(alias="rollupExpression", default=None) diff --git a/src/hubspot_sdk/types/cms/rollup_expression.py b/src/hubspot_sdk/types/cms/rollup_expression.py index 3b4e83b9..c0592334 100644 --- a/src/hubspot_sdk/types/cms/rollup_expression.py +++ b/src/hubspot_sdk/types/cms/rollup_expression.py @@ -1,108 +1,14 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from __future__ import annotations - -from typing import List, Union, Optional -from typing_extensions import Literal, TypeAlias +from typing import List, Optional +from typing_extensions import Literal from pydantic import Field as FieldInfo -from .now import Now -from .euler import Euler from ..._models import BaseModel -from .constant_number import ConstantNumber -from .constant_string import ConstantString -from .constant_boolean import ConstantBoolean -from .is_engagement_type import IsEngagementType from ..shared.association_spec import AssociationSpec -from .number_property_variable import NumberPropertyVariable -from .string_property_variable import StringPropertyVariable -from .boolean_property_variable import BooleanPropertyVariable -from .timestamp_of_property_variable import TimestampOfPropertyVariable -from .number_target_property_variable import NumberTargetPropertyVariable -from .string_target_property_variable import StringTargetPropertyVariable -from .boolean_target_property_variable import BooleanTargetPropertyVariable -from .fetch_single_currency_portal_currency import FetchSingleCurrencyPortalCurrency -from .timestamp_of_target_property_variable import TimestampOfTargetPropertyVariable - -__all__ = ["RollupExpression", "ConditionalExpression"] -ConditionalExpression: TypeAlias = Union[ - ConstantBoolean, - ConstantNumber, - ConstantString, - BooleanPropertyVariable, - StringPropertyVariable, - NumberPropertyVariable, - TimestampOfPropertyVariable, - BooleanTargetPropertyVariable, - StringTargetPropertyVariable, - NumberTargetPropertyVariable, - TimestampOfTargetPropertyVariable, - "AddNumbers", - "SubtractNumbers", - "MultiplyNumbers", - "DivideNumbers", - "RoundDownNumbers", - "RoundUpNumbers", - "RoundNearestNumbers", - "UpperCase", - "LowerCase", - "ConcatStrings", - "Contains", - "BeginsWith", - "NumberToString", - "ParseNumber", - "FetchExchangeRate", - "FetchCurrencyDecimalPlaces", - FetchSingleCurrencyPortalCurrency, - "DatedExchangeRate", - "PipelineProbability", - "MaxNumbers", - "MinNumbers", - "LessThan", - "LessThanOrEqual", - "MoreThan", - "MoreThanOrEqual", - "NumberEquals", - "StringEquals", - "IsPipelineStageClosed", - "Not", - "Date", - "Month", - "Year", - Now, - "TimeBetween", - "TimeBetweenSkipWeekends", - "PeriodToMonths", - "PeriodToWeeks", - "And", - "Or", - "Xor", - "IfString", - "IfNumber", - "IfBoolean", - "IsPresent", - "HasEmailReply", - "HasPlainTextEmailReply", - "ExtractMostRecentEmailReplyHTML", - "ExtractMostRecentEmailReplyText", - "ExtractMostRecentPlainTextEmailReply", - "SetContainsString", - IsEngagementType, - "FormatFullName", - "FormatPhoneNumber", - "FormatSearchablePhoneNumber", - "AbsoluteValue", - "SquareRoot", - "Power", - "Substring", - Euler, - "StringLength", - "IsBlank", - "AddTime", - "SubtractTime", -] +__all__ = ["RollupExpression"] class RollupExpression(BaseModel): @@ -131,71 +37,10 @@ class RollupExpression(BaseModel): source_property_name: str = FieldInfo(alias="sourcePropertyName") - conditional_expression: Optional[ConditionalExpression] = FieldInfo(alias="conditionalExpression", default=None) + conditional_expression: Optional[object] = FieldInfo(alias="conditionalExpression", default=None) conditional_formula: Optional[str] = FieldInfo(alias="conditionalFormula", default=None) empty_rollup_value: Optional[str] = FieldInfo(alias="emptyRollupValue", default=None) source_compare_by_property_name: Optional[str] = FieldInfo(alias="sourceCompareByPropertyName", default=None) - - -from .or_ import Or -from .xor import Xor -from .and_ import And -from .date import Date -from .not_ import Not -from .year import Year -from .month import Month -from .power import Power -from .add_time import AddTime -from .contains import Contains -from .is_blank import IsBlank -from .if_number import IfNumber -from .if_string import IfString -from .less_than import LessThan -from .more_than import MoreThan -from .substring import Substring -from .if_boolean import IfBoolean -from .is_present import IsPresent -from .lower_case import LowerCase -from .upper_case import UpperCase -from .add_numbers import AddNumbers -from .begins_with import BeginsWith -from .max_numbers import MaxNumbers -from .min_numbers import MinNumbers -from .square_root import SquareRoot -from .parse_number import ParseNumber -from .time_between import TimeBetween -from .number_equals import NumberEquals -from .string_equals import StringEquals -from .string_length import StringLength -from .subtract_time import SubtractTime -from .absolute_value import AbsoluteValue -from .concat_strings import ConcatStrings -from .divide_numbers import DivideNumbers -from .has_email_reply import HasEmailReply -from .period_to_weeks import PeriodToWeeks -from .format_full_name import FormatFullName -from .multiply_numbers import MultiplyNumbers -from .number_to_string import NumberToString -from .period_to_months import PeriodToMonths -from .round_up_numbers import RoundUpNumbers -from .subtract_numbers import SubtractNumbers -from .less_than_or_equal import LessThanOrEqual -from .more_than_or_equal import MoreThanOrEqual -from .round_down_numbers import RoundDownNumbers -from .dated_exchange_rate import DatedExchangeRate -from .fetch_exchange_rate import FetchExchangeRate -from .format_phone_number import FormatPhoneNumber -from .set_contains_string import SetContainsString -from .pipeline_probability import PipelineProbability -from .round_nearest_numbers import RoundNearestNumbers -from .is_pipeline_stage_closed import IsPipelineStageClosed -from .has_plain_text_email_reply import HasPlainTextEmailReply -from .time_between_skip_weekends import TimeBetweenSkipWeekends -from .fetch_currency_decimal_places import FetchCurrencyDecimalPlaces -from .format_searchable_phone_number import FormatSearchablePhoneNumber -from .extract_most_recent_email_reply_html import ExtractMostRecentEmailReplyHTML -from .extract_most_recent_email_reply_text import ExtractMostRecentEmailReplyText -from .extract_most_recent_plain_text_email_reply import ExtractMostRecentPlainTextEmailReply diff --git a/src/hubspot_sdk/types/cms/round_down_numbers.py b/src/hubspot_sdk/types/cms/round_down_numbers.py deleted file mode 100644 index b03b874e..00000000 --- a/src/hubspot_sdk/types/cms/round_down_numbers.py +++ /dev/null @@ -1,256 +0,0 @@ -# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. - -from __future__ import annotations - -from typing import TYPE_CHECKING, List, Union, Optional -from typing_extensions import Literal, TypeAlias, TypeAliasType - -from pydantic import Field as FieldInfo - -from .now import Now -from .euler import Euler -from ..._compat import PYDANTIC_V1 -from ..._models import BaseModel -from .constant_number import ConstantNumber -from .constant_string import ConstantString -from .constant_boolean import ConstantBoolean -from .is_engagement_type import IsEngagementType -from .number_property_variable import NumberPropertyVariable -from .string_property_variable import StringPropertyVariable -from .boolean_property_variable import BooleanPropertyVariable -from .timestamp_of_property_variable import TimestampOfPropertyVariable -from .number_target_property_variable import NumberTargetPropertyVariable -from .string_target_property_variable import StringTargetPropertyVariable -from .boolean_target_property_variable import BooleanTargetPropertyVariable -from .fetch_single_currency_portal_currency import FetchSingleCurrencyPortalCurrency -from .timestamp_of_target_property_variable import TimestampOfTargetPropertyVariable - -__all__ = ["RoundDownNumbers", "Input"] - -if TYPE_CHECKING or not PYDANTIC_V1: - Input = TypeAliasType( - "Input", - Union[ - ConstantBoolean, - ConstantNumber, - ConstantString, - BooleanPropertyVariable, - StringPropertyVariable, - NumberPropertyVariable, - TimestampOfPropertyVariable, - BooleanTargetPropertyVariable, - StringTargetPropertyVariable, - NumberTargetPropertyVariable, - TimestampOfTargetPropertyVariable, - "AddNumbers", - "SubtractNumbers", - "MultiplyNumbers", - "DivideNumbers", - "RoundDownNumbers", - "RoundUpNumbers", - "RoundNearestNumbers", - "UpperCase", - "LowerCase", - "ConcatStrings", - "Contains", - "BeginsWith", - "NumberToString", - "ParseNumber", - "FetchExchangeRate", - "FetchCurrencyDecimalPlaces", - FetchSingleCurrencyPortalCurrency, - "DatedExchangeRate", - "PipelineProbability", - "MaxNumbers", - "MinNumbers", - "LessThan", - "LessThanOrEqual", - "MoreThan", - "MoreThanOrEqual", - "NumberEquals", - "StringEquals", - "IsPipelineStageClosed", - "Not", - "Date", - "Month", - "Year", - Now, - "TimeBetween", - "TimeBetweenSkipWeekends", - "PeriodToMonths", - "PeriodToWeeks", - "And", - "Or", - "Xor", - "IfString", - "IfNumber", - "IfBoolean", - "IsPresent", - "HasEmailReply", - "HasPlainTextEmailReply", - "ExtractMostRecentEmailReplyHTML", - "ExtractMostRecentEmailReplyText", - "ExtractMostRecentPlainTextEmailReply", - "SetContainsString", - IsEngagementType, - "FormatFullName", - "FormatPhoneNumber", - "FormatSearchablePhoneNumber", - "AbsoluteValue", - "SquareRoot", - "Power", - "Substring", - Euler, - "StringLength", - "IsBlank", - "AddTime", - "SubtractTime", - ], - ) -else: - Input: TypeAlias = Union[ - ConstantBoolean, - ConstantNumber, - ConstantString, - BooleanPropertyVariable, - StringPropertyVariable, - NumberPropertyVariable, - TimestampOfPropertyVariable, - BooleanTargetPropertyVariable, - StringTargetPropertyVariable, - NumberTargetPropertyVariable, - TimestampOfTargetPropertyVariable, - "AddNumbers", - "SubtractNumbers", - "MultiplyNumbers", - "DivideNumbers", - "RoundDownNumbers", - "RoundUpNumbers", - "RoundNearestNumbers", - "UpperCase", - "LowerCase", - "ConcatStrings", - "Contains", - "BeginsWith", - "NumberToString", - "ParseNumber", - "FetchExchangeRate", - "FetchCurrencyDecimalPlaces", - FetchSingleCurrencyPortalCurrency, - "DatedExchangeRate", - "PipelineProbability", - "MaxNumbers", - "MinNumbers", - "LessThan", - "LessThanOrEqual", - "MoreThan", - "MoreThanOrEqual", - "NumberEquals", - "StringEquals", - "IsPipelineStageClosed", - "Not", - "Date", - "Month", - "Year", - Now, - "TimeBetween", - "TimeBetweenSkipWeekends", - "PeriodToMonths", - "PeriodToWeeks", - "And", - "Or", - "Xor", - "IfString", - "IfNumber", - "IfBoolean", - "IsPresent", - "HasEmailReply", - "HasPlainTextEmailReply", - "ExtractMostRecentEmailReplyHTML", - "ExtractMostRecentEmailReplyText", - "ExtractMostRecentPlainTextEmailReply", - "SetContainsString", - IsEngagementType, - "FormatFullName", - "FormatPhoneNumber", - "FormatSearchablePhoneNumber", - "AbsoluteValue", - "SquareRoot", - "Power", - "Substring", - Euler, - "StringLength", - "IsBlank", - "AddTime", - "SubtractTime", - ] - - -class RoundDownNumbers(BaseModel): - operator: Literal["ROUND_DOWN"] - - inputs: Optional[List[Input]] = None - - property_name: Optional[str] = FieldInfo(alias="propertyName", default=None) - - value: Optional[float] = None - - -from .or_ import Or -from .xor import Xor -from .and_ import And -from .date import Date -from .not_ import Not -from .year import Year -from .month import Month -from .power import Power -from .add_time import AddTime -from .contains import Contains -from .is_blank import IsBlank -from .if_number import IfNumber -from .if_string import IfString -from .less_than import LessThan -from .more_than import MoreThan -from .substring import Substring -from .if_boolean import IfBoolean -from .is_present import IsPresent -from .lower_case import LowerCase -from .upper_case import UpperCase -from .add_numbers import AddNumbers -from .begins_with import BeginsWith -from .max_numbers import MaxNumbers -from .min_numbers import MinNumbers -from .square_root import SquareRoot -from .parse_number import ParseNumber -from .time_between import TimeBetween -from .number_equals import NumberEquals -from .string_equals import StringEquals -from .string_length import StringLength -from .subtract_time import SubtractTime -from .absolute_value import AbsoluteValue -from .concat_strings import ConcatStrings -from .divide_numbers import DivideNumbers -from .has_email_reply import HasEmailReply -from .period_to_weeks import PeriodToWeeks -from .format_full_name import FormatFullName -from .multiply_numbers import MultiplyNumbers -from .number_to_string import NumberToString -from .period_to_months import PeriodToMonths -from .round_up_numbers import RoundUpNumbers -from .subtract_numbers import SubtractNumbers -from .less_than_or_equal import LessThanOrEqual -from .more_than_or_equal import MoreThanOrEqual -from .dated_exchange_rate import DatedExchangeRate -from .fetch_exchange_rate import FetchExchangeRate -from .format_phone_number import FormatPhoneNumber -from .set_contains_string import SetContainsString -from .pipeline_probability import PipelineProbability -from .round_nearest_numbers import RoundNearestNumbers -from .is_pipeline_stage_closed import IsPipelineStageClosed -from .has_plain_text_email_reply import HasPlainTextEmailReply -from .time_between_skip_weekends import TimeBetweenSkipWeekends -from .fetch_currency_decimal_places import FetchCurrencyDecimalPlaces -from .format_searchable_phone_number import FormatSearchablePhoneNumber -from .extract_most_recent_email_reply_html import ExtractMostRecentEmailReplyHTML -from .extract_most_recent_email_reply_text import ExtractMostRecentEmailReplyText -from .extract_most_recent_plain_text_email_reply import ExtractMostRecentPlainTextEmailReply diff --git a/src/hubspot_sdk/types/cms/round_nearest_numbers.py b/src/hubspot_sdk/types/cms/round_nearest_numbers.py deleted file mode 100644 index e809ee36..00000000 --- a/src/hubspot_sdk/types/cms/round_nearest_numbers.py +++ /dev/null @@ -1,256 +0,0 @@ -# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. - -from __future__ import annotations - -from typing import TYPE_CHECKING, List, Union, Optional -from typing_extensions import Literal, TypeAlias, TypeAliasType - -from pydantic import Field as FieldInfo - -from .now import Now -from .euler import Euler -from ..._compat import PYDANTIC_V1 -from ..._models import BaseModel -from .constant_number import ConstantNumber -from .constant_string import ConstantString -from .constant_boolean import ConstantBoolean -from .is_engagement_type import IsEngagementType -from .number_property_variable import NumberPropertyVariable -from .string_property_variable import StringPropertyVariable -from .boolean_property_variable import BooleanPropertyVariable -from .timestamp_of_property_variable import TimestampOfPropertyVariable -from .number_target_property_variable import NumberTargetPropertyVariable -from .string_target_property_variable import StringTargetPropertyVariable -from .boolean_target_property_variable import BooleanTargetPropertyVariable -from .fetch_single_currency_portal_currency import FetchSingleCurrencyPortalCurrency -from .timestamp_of_target_property_variable import TimestampOfTargetPropertyVariable - -__all__ = ["RoundNearestNumbers", "Input"] - -if TYPE_CHECKING or not PYDANTIC_V1: - Input = TypeAliasType( - "Input", - Union[ - ConstantBoolean, - ConstantNumber, - ConstantString, - BooleanPropertyVariable, - StringPropertyVariable, - NumberPropertyVariable, - TimestampOfPropertyVariable, - BooleanTargetPropertyVariable, - StringTargetPropertyVariable, - NumberTargetPropertyVariable, - TimestampOfTargetPropertyVariable, - "AddNumbers", - "SubtractNumbers", - "MultiplyNumbers", - "DivideNumbers", - "RoundDownNumbers", - "RoundUpNumbers", - "RoundNearestNumbers", - "UpperCase", - "LowerCase", - "ConcatStrings", - "Contains", - "BeginsWith", - "NumberToString", - "ParseNumber", - "FetchExchangeRate", - "FetchCurrencyDecimalPlaces", - FetchSingleCurrencyPortalCurrency, - "DatedExchangeRate", - "PipelineProbability", - "MaxNumbers", - "MinNumbers", - "LessThan", - "LessThanOrEqual", - "MoreThan", - "MoreThanOrEqual", - "NumberEquals", - "StringEquals", - "IsPipelineStageClosed", - "Not", - "Date", - "Month", - "Year", - Now, - "TimeBetween", - "TimeBetweenSkipWeekends", - "PeriodToMonths", - "PeriodToWeeks", - "And", - "Or", - "Xor", - "IfString", - "IfNumber", - "IfBoolean", - "IsPresent", - "HasEmailReply", - "HasPlainTextEmailReply", - "ExtractMostRecentEmailReplyHTML", - "ExtractMostRecentEmailReplyText", - "ExtractMostRecentPlainTextEmailReply", - "SetContainsString", - IsEngagementType, - "FormatFullName", - "FormatPhoneNumber", - "FormatSearchablePhoneNumber", - "AbsoluteValue", - "SquareRoot", - "Power", - "Substring", - Euler, - "StringLength", - "IsBlank", - "AddTime", - "SubtractTime", - ], - ) -else: - Input: TypeAlias = Union[ - ConstantBoolean, - ConstantNumber, - ConstantString, - BooleanPropertyVariable, - StringPropertyVariable, - NumberPropertyVariable, - TimestampOfPropertyVariable, - BooleanTargetPropertyVariable, - StringTargetPropertyVariable, - NumberTargetPropertyVariable, - TimestampOfTargetPropertyVariable, - "AddNumbers", - "SubtractNumbers", - "MultiplyNumbers", - "DivideNumbers", - "RoundDownNumbers", - "RoundUpNumbers", - "RoundNearestNumbers", - "UpperCase", - "LowerCase", - "ConcatStrings", - "Contains", - "BeginsWith", - "NumberToString", - "ParseNumber", - "FetchExchangeRate", - "FetchCurrencyDecimalPlaces", - FetchSingleCurrencyPortalCurrency, - "DatedExchangeRate", - "PipelineProbability", - "MaxNumbers", - "MinNumbers", - "LessThan", - "LessThanOrEqual", - "MoreThan", - "MoreThanOrEqual", - "NumberEquals", - "StringEquals", - "IsPipelineStageClosed", - "Not", - "Date", - "Month", - "Year", - Now, - "TimeBetween", - "TimeBetweenSkipWeekends", - "PeriodToMonths", - "PeriodToWeeks", - "And", - "Or", - "Xor", - "IfString", - "IfNumber", - "IfBoolean", - "IsPresent", - "HasEmailReply", - "HasPlainTextEmailReply", - "ExtractMostRecentEmailReplyHTML", - "ExtractMostRecentEmailReplyText", - "ExtractMostRecentPlainTextEmailReply", - "SetContainsString", - IsEngagementType, - "FormatFullName", - "FormatPhoneNumber", - "FormatSearchablePhoneNumber", - "AbsoluteValue", - "SquareRoot", - "Power", - "Substring", - Euler, - "StringLength", - "IsBlank", - "AddTime", - "SubtractTime", - ] - - -class RoundNearestNumbers(BaseModel): - operator: Literal["ROUND_NEAREST"] - - inputs: Optional[List[Input]] = None - - property_name: Optional[str] = FieldInfo(alias="propertyName", default=None) - - value: Optional[float] = None - - -from .or_ import Or -from .xor import Xor -from .and_ import And -from .date import Date -from .not_ import Not -from .year import Year -from .month import Month -from .power import Power -from .add_time import AddTime -from .contains import Contains -from .is_blank import IsBlank -from .if_number import IfNumber -from .if_string import IfString -from .less_than import LessThan -from .more_than import MoreThan -from .substring import Substring -from .if_boolean import IfBoolean -from .is_present import IsPresent -from .lower_case import LowerCase -from .upper_case import UpperCase -from .add_numbers import AddNumbers -from .begins_with import BeginsWith -from .max_numbers import MaxNumbers -from .min_numbers import MinNumbers -from .square_root import SquareRoot -from .parse_number import ParseNumber -from .time_between import TimeBetween -from .number_equals import NumberEquals -from .string_equals import StringEquals -from .string_length import StringLength -from .subtract_time import SubtractTime -from .absolute_value import AbsoluteValue -from .concat_strings import ConcatStrings -from .divide_numbers import DivideNumbers -from .has_email_reply import HasEmailReply -from .period_to_weeks import PeriodToWeeks -from .format_full_name import FormatFullName -from .multiply_numbers import MultiplyNumbers -from .number_to_string import NumberToString -from .period_to_months import PeriodToMonths -from .round_up_numbers import RoundUpNumbers -from .subtract_numbers import SubtractNumbers -from .less_than_or_equal import LessThanOrEqual -from .more_than_or_equal import MoreThanOrEqual -from .round_down_numbers import RoundDownNumbers -from .dated_exchange_rate import DatedExchangeRate -from .fetch_exchange_rate import FetchExchangeRate -from .format_phone_number import FormatPhoneNumber -from .set_contains_string import SetContainsString -from .pipeline_probability import PipelineProbability -from .is_pipeline_stage_closed import IsPipelineStageClosed -from .has_plain_text_email_reply import HasPlainTextEmailReply -from .time_between_skip_weekends import TimeBetweenSkipWeekends -from .fetch_currency_decimal_places import FetchCurrencyDecimalPlaces -from .format_searchable_phone_number import FormatSearchablePhoneNumber -from .extract_most_recent_email_reply_html import ExtractMostRecentEmailReplyHTML -from .extract_most_recent_email_reply_text import ExtractMostRecentEmailReplyText -from .extract_most_recent_plain_text_email_reply import ExtractMostRecentPlainTextEmailReply diff --git a/src/hubspot_sdk/types/cms/round_up_numbers.py b/src/hubspot_sdk/types/cms/round_up_numbers.py deleted file mode 100644 index f30a67f6..00000000 --- a/src/hubspot_sdk/types/cms/round_up_numbers.py +++ /dev/null @@ -1,256 +0,0 @@ -# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. - -from __future__ import annotations - -from typing import TYPE_CHECKING, List, Union, Optional -from typing_extensions import Literal, TypeAlias, TypeAliasType - -from pydantic import Field as FieldInfo - -from .now import Now -from .euler import Euler -from ..._compat import PYDANTIC_V1 -from ..._models import BaseModel -from .constant_number import ConstantNumber -from .constant_string import ConstantString -from .constant_boolean import ConstantBoolean -from .is_engagement_type import IsEngagementType -from .number_property_variable import NumberPropertyVariable -from .string_property_variable import StringPropertyVariable -from .boolean_property_variable import BooleanPropertyVariable -from .timestamp_of_property_variable import TimestampOfPropertyVariable -from .number_target_property_variable import NumberTargetPropertyVariable -from .string_target_property_variable import StringTargetPropertyVariable -from .boolean_target_property_variable import BooleanTargetPropertyVariable -from .fetch_single_currency_portal_currency import FetchSingleCurrencyPortalCurrency -from .timestamp_of_target_property_variable import TimestampOfTargetPropertyVariable - -__all__ = ["RoundUpNumbers", "Input"] - -if TYPE_CHECKING or not PYDANTIC_V1: - Input = TypeAliasType( - "Input", - Union[ - ConstantBoolean, - ConstantNumber, - ConstantString, - BooleanPropertyVariable, - StringPropertyVariable, - NumberPropertyVariable, - TimestampOfPropertyVariable, - BooleanTargetPropertyVariable, - StringTargetPropertyVariable, - NumberTargetPropertyVariable, - TimestampOfTargetPropertyVariable, - "AddNumbers", - "SubtractNumbers", - "MultiplyNumbers", - "DivideNumbers", - "RoundDownNumbers", - "RoundUpNumbers", - "RoundNearestNumbers", - "UpperCase", - "LowerCase", - "ConcatStrings", - "Contains", - "BeginsWith", - "NumberToString", - "ParseNumber", - "FetchExchangeRate", - "FetchCurrencyDecimalPlaces", - FetchSingleCurrencyPortalCurrency, - "DatedExchangeRate", - "PipelineProbability", - "MaxNumbers", - "MinNumbers", - "LessThan", - "LessThanOrEqual", - "MoreThan", - "MoreThanOrEqual", - "NumberEquals", - "StringEquals", - "IsPipelineStageClosed", - "Not", - "Date", - "Month", - "Year", - Now, - "TimeBetween", - "TimeBetweenSkipWeekends", - "PeriodToMonths", - "PeriodToWeeks", - "And", - "Or", - "Xor", - "IfString", - "IfNumber", - "IfBoolean", - "IsPresent", - "HasEmailReply", - "HasPlainTextEmailReply", - "ExtractMostRecentEmailReplyHTML", - "ExtractMostRecentEmailReplyText", - "ExtractMostRecentPlainTextEmailReply", - "SetContainsString", - IsEngagementType, - "FormatFullName", - "FormatPhoneNumber", - "FormatSearchablePhoneNumber", - "AbsoluteValue", - "SquareRoot", - "Power", - "Substring", - Euler, - "StringLength", - "IsBlank", - "AddTime", - "SubtractTime", - ], - ) -else: - Input: TypeAlias = Union[ - ConstantBoolean, - ConstantNumber, - ConstantString, - BooleanPropertyVariable, - StringPropertyVariable, - NumberPropertyVariable, - TimestampOfPropertyVariable, - BooleanTargetPropertyVariable, - StringTargetPropertyVariable, - NumberTargetPropertyVariable, - TimestampOfTargetPropertyVariable, - "AddNumbers", - "SubtractNumbers", - "MultiplyNumbers", - "DivideNumbers", - "RoundDownNumbers", - "RoundUpNumbers", - "RoundNearestNumbers", - "UpperCase", - "LowerCase", - "ConcatStrings", - "Contains", - "BeginsWith", - "NumberToString", - "ParseNumber", - "FetchExchangeRate", - "FetchCurrencyDecimalPlaces", - FetchSingleCurrencyPortalCurrency, - "DatedExchangeRate", - "PipelineProbability", - "MaxNumbers", - "MinNumbers", - "LessThan", - "LessThanOrEqual", - "MoreThan", - "MoreThanOrEqual", - "NumberEquals", - "StringEquals", - "IsPipelineStageClosed", - "Not", - "Date", - "Month", - "Year", - Now, - "TimeBetween", - "TimeBetweenSkipWeekends", - "PeriodToMonths", - "PeriodToWeeks", - "And", - "Or", - "Xor", - "IfString", - "IfNumber", - "IfBoolean", - "IsPresent", - "HasEmailReply", - "HasPlainTextEmailReply", - "ExtractMostRecentEmailReplyHTML", - "ExtractMostRecentEmailReplyText", - "ExtractMostRecentPlainTextEmailReply", - "SetContainsString", - IsEngagementType, - "FormatFullName", - "FormatPhoneNumber", - "FormatSearchablePhoneNumber", - "AbsoluteValue", - "SquareRoot", - "Power", - "Substring", - Euler, - "StringLength", - "IsBlank", - "AddTime", - "SubtractTime", - ] - - -class RoundUpNumbers(BaseModel): - operator: Literal["ROUND_UP"] - - inputs: Optional[List[Input]] = None - - property_name: Optional[str] = FieldInfo(alias="propertyName", default=None) - - value: Optional[float] = None - - -from .or_ import Or -from .xor import Xor -from .and_ import And -from .date import Date -from .not_ import Not -from .year import Year -from .month import Month -from .power import Power -from .add_time import AddTime -from .contains import Contains -from .is_blank import IsBlank -from .if_number import IfNumber -from .if_string import IfString -from .less_than import LessThan -from .more_than import MoreThan -from .substring import Substring -from .if_boolean import IfBoolean -from .is_present import IsPresent -from .lower_case import LowerCase -from .upper_case import UpperCase -from .add_numbers import AddNumbers -from .begins_with import BeginsWith -from .max_numbers import MaxNumbers -from .min_numbers import MinNumbers -from .square_root import SquareRoot -from .parse_number import ParseNumber -from .time_between import TimeBetween -from .number_equals import NumberEquals -from .string_equals import StringEquals -from .string_length import StringLength -from .subtract_time import SubtractTime -from .absolute_value import AbsoluteValue -from .concat_strings import ConcatStrings -from .divide_numbers import DivideNumbers -from .has_email_reply import HasEmailReply -from .period_to_weeks import PeriodToWeeks -from .format_full_name import FormatFullName -from .multiply_numbers import MultiplyNumbers -from .number_to_string import NumberToString -from .period_to_months import PeriodToMonths -from .subtract_numbers import SubtractNumbers -from .less_than_or_equal import LessThanOrEqual -from .more_than_or_equal import MoreThanOrEqual -from .round_down_numbers import RoundDownNumbers -from .dated_exchange_rate import DatedExchangeRate -from .fetch_exchange_rate import FetchExchangeRate -from .format_phone_number import FormatPhoneNumber -from .set_contains_string import SetContainsString -from .pipeline_probability import PipelineProbability -from .round_nearest_numbers import RoundNearestNumbers -from .is_pipeline_stage_closed import IsPipelineStageClosed -from .has_plain_text_email_reply import HasPlainTextEmailReply -from .time_between_skip_weekends import TimeBetweenSkipWeekends -from .fetch_currency_decimal_places import FetchCurrencyDecimalPlaces -from .format_searchable_phone_number import FormatSearchablePhoneNumber -from .extract_most_recent_email_reply_html import ExtractMostRecentEmailReplyHTML -from .extract_most_recent_email_reply_text import ExtractMostRecentEmailReplyText -from .extract_most_recent_plain_text_email_reply import ExtractMostRecentPlainTextEmailReply diff --git a/src/hubspot_sdk/types/cms/set_contains_string.py b/src/hubspot_sdk/types/cms/set_contains_string.py deleted file mode 100644 index 88be2fab..00000000 --- a/src/hubspot_sdk/types/cms/set_contains_string.py +++ /dev/null @@ -1,416 +0,0 @@ -# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. - -from __future__ import annotations - -from typing import TYPE_CHECKING, List, Union, Optional -from typing_extensions import Literal, TypeAlias, TypeAliasType - -from pydantic import Field as FieldInfo - -from .now import Now -from .euler import Euler -from ..._compat import PYDANTIC_V1 -from ..._models import BaseModel -from .constant_number import ConstantNumber -from .constant_string import ConstantString -from .constant_boolean import ConstantBoolean -from .is_engagement_type import IsEngagementType -from .number_property_variable import NumberPropertyVariable -from .string_property_variable import StringPropertyVariable -from .boolean_property_variable import BooleanPropertyVariable -from .timestamp_of_property_variable import TimestampOfPropertyVariable -from .number_target_property_variable import NumberTargetPropertyVariable -from .string_target_property_variable import StringTargetPropertyVariable -from .boolean_target_property_variable import BooleanTargetPropertyVariable -from .fetch_single_currency_portal_currency import FetchSingleCurrencyPortalCurrency -from .timestamp_of_target_property_variable import TimestampOfTargetPropertyVariable - -__all__ = ["SetContainsString", "StringToCheck", "Input"] - -if TYPE_CHECKING or not PYDANTIC_V1: - StringToCheck = TypeAliasType( - "StringToCheck", - Union[ - ConstantBoolean, - ConstantNumber, - ConstantString, - BooleanPropertyVariable, - StringPropertyVariable, - NumberPropertyVariable, - TimestampOfPropertyVariable, - BooleanTargetPropertyVariable, - StringTargetPropertyVariable, - NumberTargetPropertyVariable, - TimestampOfTargetPropertyVariable, - "AddNumbers", - "SubtractNumbers", - "MultiplyNumbers", - "DivideNumbers", - "RoundDownNumbers", - "RoundUpNumbers", - "RoundNearestNumbers", - "UpperCase", - "LowerCase", - "ConcatStrings", - "Contains", - "BeginsWith", - "NumberToString", - "ParseNumber", - "FetchExchangeRate", - "FetchCurrencyDecimalPlaces", - FetchSingleCurrencyPortalCurrency, - "DatedExchangeRate", - "PipelineProbability", - "MaxNumbers", - "MinNumbers", - "LessThan", - "LessThanOrEqual", - "MoreThan", - "MoreThanOrEqual", - "NumberEquals", - "StringEquals", - "IsPipelineStageClosed", - "Not", - "Date", - "Month", - "Year", - Now, - "TimeBetween", - "TimeBetweenSkipWeekends", - "PeriodToMonths", - "PeriodToWeeks", - "And", - "Or", - "Xor", - "IfString", - "IfNumber", - "IfBoolean", - "IsPresent", - "HasEmailReply", - "HasPlainTextEmailReply", - "ExtractMostRecentEmailReplyHTML", - "ExtractMostRecentEmailReplyText", - "ExtractMostRecentPlainTextEmailReply", - "SetContainsString", - IsEngagementType, - "FormatFullName", - "FormatPhoneNumber", - "FormatSearchablePhoneNumber", - "AbsoluteValue", - "SquareRoot", - "Power", - "Substring", - Euler, - "StringLength", - "IsBlank", - "AddTime", - "SubtractTime", - ], - ) -else: - StringToCheck: TypeAlias = Union[ - ConstantBoolean, - ConstantNumber, - ConstantString, - BooleanPropertyVariable, - StringPropertyVariable, - NumberPropertyVariable, - TimestampOfPropertyVariable, - BooleanTargetPropertyVariable, - StringTargetPropertyVariable, - NumberTargetPropertyVariable, - TimestampOfTargetPropertyVariable, - "AddNumbers", - "SubtractNumbers", - "MultiplyNumbers", - "DivideNumbers", - "RoundDownNumbers", - "RoundUpNumbers", - "RoundNearestNumbers", - "UpperCase", - "LowerCase", - "ConcatStrings", - "Contains", - "BeginsWith", - "NumberToString", - "ParseNumber", - "FetchExchangeRate", - "FetchCurrencyDecimalPlaces", - FetchSingleCurrencyPortalCurrency, - "DatedExchangeRate", - "PipelineProbability", - "MaxNumbers", - "MinNumbers", - "LessThan", - "LessThanOrEqual", - "MoreThan", - "MoreThanOrEqual", - "NumberEquals", - "StringEquals", - "IsPipelineStageClosed", - "Not", - "Date", - "Month", - "Year", - Now, - "TimeBetween", - "TimeBetweenSkipWeekends", - "PeriodToMonths", - "PeriodToWeeks", - "And", - "Or", - "Xor", - "IfString", - "IfNumber", - "IfBoolean", - "IsPresent", - "HasEmailReply", - "HasPlainTextEmailReply", - "ExtractMostRecentEmailReplyHTML", - "ExtractMostRecentEmailReplyText", - "ExtractMostRecentPlainTextEmailReply", - "SetContainsString", - IsEngagementType, - "FormatFullName", - "FormatPhoneNumber", - "FormatSearchablePhoneNumber", - "AbsoluteValue", - "SquareRoot", - "Power", - "Substring", - Euler, - "StringLength", - "IsBlank", - "AddTime", - "SubtractTime", - ] - -if TYPE_CHECKING or not PYDANTIC_V1: - Input = TypeAliasType( - "Input", - Union[ - ConstantBoolean, - ConstantNumber, - ConstantString, - BooleanPropertyVariable, - StringPropertyVariable, - NumberPropertyVariable, - TimestampOfPropertyVariable, - BooleanTargetPropertyVariable, - StringTargetPropertyVariable, - NumberTargetPropertyVariable, - TimestampOfTargetPropertyVariable, - "AddNumbers", - "SubtractNumbers", - "MultiplyNumbers", - "DivideNumbers", - "RoundDownNumbers", - "RoundUpNumbers", - "RoundNearestNumbers", - "UpperCase", - "LowerCase", - "ConcatStrings", - "Contains", - "BeginsWith", - "NumberToString", - "ParseNumber", - "FetchExchangeRate", - "FetchCurrencyDecimalPlaces", - FetchSingleCurrencyPortalCurrency, - "DatedExchangeRate", - "PipelineProbability", - "MaxNumbers", - "MinNumbers", - "LessThan", - "LessThanOrEqual", - "MoreThan", - "MoreThanOrEqual", - "NumberEquals", - "StringEquals", - "IsPipelineStageClosed", - "Not", - "Date", - "Month", - "Year", - Now, - "TimeBetween", - "TimeBetweenSkipWeekends", - "PeriodToMonths", - "PeriodToWeeks", - "And", - "Or", - "Xor", - "IfString", - "IfNumber", - "IfBoolean", - "IsPresent", - "HasEmailReply", - "HasPlainTextEmailReply", - "ExtractMostRecentEmailReplyHTML", - "ExtractMostRecentEmailReplyText", - "ExtractMostRecentPlainTextEmailReply", - "SetContainsString", - IsEngagementType, - "FormatFullName", - "FormatPhoneNumber", - "FormatSearchablePhoneNumber", - "AbsoluteValue", - "SquareRoot", - "Power", - "Substring", - Euler, - "StringLength", - "IsBlank", - "AddTime", - "SubtractTime", - ], - ) -else: - Input: TypeAlias = Union[ - ConstantBoolean, - ConstantNumber, - ConstantString, - BooleanPropertyVariable, - StringPropertyVariable, - NumberPropertyVariable, - TimestampOfPropertyVariable, - BooleanTargetPropertyVariable, - StringTargetPropertyVariable, - NumberTargetPropertyVariable, - TimestampOfTargetPropertyVariable, - "AddNumbers", - "SubtractNumbers", - "MultiplyNumbers", - "DivideNumbers", - "RoundDownNumbers", - "RoundUpNumbers", - "RoundNearestNumbers", - "UpperCase", - "LowerCase", - "ConcatStrings", - "Contains", - "BeginsWith", - "NumberToString", - "ParseNumber", - "FetchExchangeRate", - "FetchCurrencyDecimalPlaces", - FetchSingleCurrencyPortalCurrency, - "DatedExchangeRate", - "PipelineProbability", - "MaxNumbers", - "MinNumbers", - "LessThan", - "LessThanOrEqual", - "MoreThan", - "MoreThanOrEqual", - "NumberEquals", - "StringEquals", - "IsPipelineStageClosed", - "Not", - "Date", - "Month", - "Year", - Now, - "TimeBetween", - "TimeBetweenSkipWeekends", - "PeriodToMonths", - "PeriodToWeeks", - "And", - "Or", - "Xor", - "IfString", - "IfNumber", - "IfBoolean", - "IsPresent", - "HasEmailReply", - "HasPlainTextEmailReply", - "ExtractMostRecentEmailReplyHTML", - "ExtractMostRecentEmailReplyText", - "ExtractMostRecentPlainTextEmailReply", - "SetContainsString", - IsEngagementType, - "FormatFullName", - "FormatPhoneNumber", - "FormatSearchablePhoneNumber", - "AbsoluteValue", - "SquareRoot", - "Power", - "Substring", - Euler, - "StringLength", - "IsBlank", - "AddTime", - "SubtractTime", - ] - - -class SetContainsString(BaseModel): - operator: Literal["SET_CONTAINS_STRING"] - - string_to_check: StringToCheck = FieldInfo(alias="stringToCheck") - - inputs: Optional[List[Input]] = None - - property_name: Optional[str] = FieldInfo(alias="propertyName", default=None) - - value: Optional[bool] = None - - -from .or_ import Or -from .xor import Xor -from .and_ import And -from .date import Date -from .not_ import Not -from .year import Year -from .month import Month -from .power import Power -from .add_time import AddTime -from .contains import Contains -from .is_blank import IsBlank -from .if_number import IfNumber -from .if_string import IfString -from .less_than import LessThan -from .more_than import MoreThan -from .substring import Substring -from .if_boolean import IfBoolean -from .is_present import IsPresent -from .lower_case import LowerCase -from .upper_case import UpperCase -from .add_numbers import AddNumbers -from .begins_with import BeginsWith -from .max_numbers import MaxNumbers -from .min_numbers import MinNumbers -from .square_root import SquareRoot -from .parse_number import ParseNumber -from .time_between import TimeBetween -from .number_equals import NumberEquals -from .string_equals import StringEquals -from .string_length import StringLength -from .subtract_time import SubtractTime -from .absolute_value import AbsoluteValue -from .concat_strings import ConcatStrings -from .divide_numbers import DivideNumbers -from .has_email_reply import HasEmailReply -from .period_to_weeks import PeriodToWeeks -from .format_full_name import FormatFullName -from .multiply_numbers import MultiplyNumbers -from .number_to_string import NumberToString -from .period_to_months import PeriodToMonths -from .round_up_numbers import RoundUpNumbers -from .subtract_numbers import SubtractNumbers -from .less_than_or_equal import LessThanOrEqual -from .more_than_or_equal import MoreThanOrEqual -from .round_down_numbers import RoundDownNumbers -from .dated_exchange_rate import DatedExchangeRate -from .fetch_exchange_rate import FetchExchangeRate -from .format_phone_number import FormatPhoneNumber -from .pipeline_probability import PipelineProbability -from .round_nearest_numbers import RoundNearestNumbers -from .is_pipeline_stage_closed import IsPipelineStageClosed -from .has_plain_text_email_reply import HasPlainTextEmailReply -from .time_between_skip_weekends import TimeBetweenSkipWeekends -from .fetch_currency_decimal_places import FetchCurrencyDecimalPlaces -from .format_searchable_phone_number import FormatSearchablePhoneNumber -from .extract_most_recent_email_reply_html import ExtractMostRecentEmailReplyHTML -from .extract_most_recent_email_reply_text import ExtractMostRecentEmailReplyText -from .extract_most_recent_plain_text_email_reply import ExtractMostRecentPlainTextEmailReply diff --git a/src/hubspot_sdk/types/cms/source_code_create_params.py b/src/hubspot_sdk/types/cms/source_code_create_params.py deleted file mode 100644 index f2a22544..00000000 --- a/src/hubspot_sdk/types/cms/source_code_create_params.py +++ /dev/null @@ -1,15 +0,0 @@ -# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. - -from __future__ import annotations - -from typing_extensions import Required, TypedDict - -from ..._types import FileTypes - -__all__ = ["SourceCodeCreateParams"] - - -class SourceCodeCreateParams(TypedDict, total=False): - environment: Required[str] - - file: FileTypes diff --git a/src/hubspot_sdk/types/cms/source_code_get_metadata_params.py b/src/hubspot_sdk/types/cms/source_code_get_metadata_params.py deleted file mode 100644 index a118f25f..00000000 --- a/src/hubspot_sdk/types/cms/source_code_get_metadata_params.py +++ /dev/null @@ -1,13 +0,0 @@ -# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. - -from __future__ import annotations - -from typing_extensions import Required, TypedDict - -__all__ = ["SourceCodeGetMetadataParams"] - - -class SourceCodeGetMetadataParams(TypedDict, total=False): - environment: Required[str] - - properties: str diff --git a/src/hubspot_sdk/types/cms/source_code_upsert_params.py b/src/hubspot_sdk/types/cms/source_code_upsert_params.py deleted file mode 100644 index 278fc1df..00000000 --- a/src/hubspot_sdk/types/cms/source_code_upsert_params.py +++ /dev/null @@ -1,15 +0,0 @@ -# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. - -from __future__ import annotations - -from typing_extensions import Required, TypedDict - -from ..._types import FileTypes - -__all__ = ["SourceCodeUpsertParams"] - - -class SourceCodeUpsertParams(TypedDict, total=False): - environment: Required[str] - - file: FileTypes diff --git a/src/hubspot_sdk/types/cms/source_code_validate_params.py b/src/hubspot_sdk/types/cms/source_code_validate_params.py deleted file mode 100644 index ecea22c3..00000000 --- a/src/hubspot_sdk/types/cms/source_code_validate_params.py +++ /dev/null @@ -1,15 +0,0 @@ -# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. - -from __future__ import annotations - -from typing_extensions import Required, TypedDict - -from ..._types import FileTypes - -__all__ = ["SourceCodeValidateParams"] - - -class SourceCodeValidateParams(TypedDict, total=False): - environment: Required[str] - - file: FileTypes diff --git a/src/hubspot_sdk/types/cms/square_root.py b/src/hubspot_sdk/types/cms/square_root.py deleted file mode 100644 index f4721e0a..00000000 --- a/src/hubspot_sdk/types/cms/square_root.py +++ /dev/null @@ -1,256 +0,0 @@ -# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. - -from __future__ import annotations - -from typing import TYPE_CHECKING, List, Union, Optional -from typing_extensions import Literal, TypeAlias, TypeAliasType - -from pydantic import Field as FieldInfo - -from .now import Now -from .euler import Euler -from ..._compat import PYDANTIC_V1 -from ..._models import BaseModel -from .constant_number import ConstantNumber -from .constant_string import ConstantString -from .constant_boolean import ConstantBoolean -from .is_engagement_type import IsEngagementType -from .number_property_variable import NumberPropertyVariable -from .string_property_variable import StringPropertyVariable -from .boolean_property_variable import BooleanPropertyVariable -from .timestamp_of_property_variable import TimestampOfPropertyVariable -from .number_target_property_variable import NumberTargetPropertyVariable -from .string_target_property_variable import StringTargetPropertyVariable -from .boolean_target_property_variable import BooleanTargetPropertyVariable -from .fetch_single_currency_portal_currency import FetchSingleCurrencyPortalCurrency -from .timestamp_of_target_property_variable import TimestampOfTargetPropertyVariable - -__all__ = ["SquareRoot", "Input"] - -if TYPE_CHECKING or not PYDANTIC_V1: - Input = TypeAliasType( - "Input", - Union[ - ConstantBoolean, - ConstantNumber, - ConstantString, - BooleanPropertyVariable, - StringPropertyVariable, - NumberPropertyVariable, - TimestampOfPropertyVariable, - BooleanTargetPropertyVariable, - StringTargetPropertyVariable, - NumberTargetPropertyVariable, - TimestampOfTargetPropertyVariable, - "AddNumbers", - "SubtractNumbers", - "MultiplyNumbers", - "DivideNumbers", - "RoundDownNumbers", - "RoundUpNumbers", - "RoundNearestNumbers", - "UpperCase", - "LowerCase", - "ConcatStrings", - "Contains", - "BeginsWith", - "NumberToString", - "ParseNumber", - "FetchExchangeRate", - "FetchCurrencyDecimalPlaces", - FetchSingleCurrencyPortalCurrency, - "DatedExchangeRate", - "PipelineProbability", - "MaxNumbers", - "MinNumbers", - "LessThan", - "LessThanOrEqual", - "MoreThan", - "MoreThanOrEqual", - "NumberEquals", - "StringEquals", - "IsPipelineStageClosed", - "Not", - "Date", - "Month", - "Year", - Now, - "TimeBetween", - "TimeBetweenSkipWeekends", - "PeriodToMonths", - "PeriodToWeeks", - "And", - "Or", - "Xor", - "IfString", - "IfNumber", - "IfBoolean", - "IsPresent", - "HasEmailReply", - "HasPlainTextEmailReply", - "ExtractMostRecentEmailReplyHTML", - "ExtractMostRecentEmailReplyText", - "ExtractMostRecentPlainTextEmailReply", - "SetContainsString", - IsEngagementType, - "FormatFullName", - "FormatPhoneNumber", - "FormatSearchablePhoneNumber", - "AbsoluteValue", - "SquareRoot", - "Power", - "Substring", - Euler, - "StringLength", - "IsBlank", - "AddTime", - "SubtractTime", - ], - ) -else: - Input: TypeAlias = Union[ - ConstantBoolean, - ConstantNumber, - ConstantString, - BooleanPropertyVariable, - StringPropertyVariable, - NumberPropertyVariable, - TimestampOfPropertyVariable, - BooleanTargetPropertyVariable, - StringTargetPropertyVariable, - NumberTargetPropertyVariable, - TimestampOfTargetPropertyVariable, - "AddNumbers", - "SubtractNumbers", - "MultiplyNumbers", - "DivideNumbers", - "RoundDownNumbers", - "RoundUpNumbers", - "RoundNearestNumbers", - "UpperCase", - "LowerCase", - "ConcatStrings", - "Contains", - "BeginsWith", - "NumberToString", - "ParseNumber", - "FetchExchangeRate", - "FetchCurrencyDecimalPlaces", - FetchSingleCurrencyPortalCurrency, - "DatedExchangeRate", - "PipelineProbability", - "MaxNumbers", - "MinNumbers", - "LessThan", - "LessThanOrEqual", - "MoreThan", - "MoreThanOrEqual", - "NumberEquals", - "StringEquals", - "IsPipelineStageClosed", - "Not", - "Date", - "Month", - "Year", - Now, - "TimeBetween", - "TimeBetweenSkipWeekends", - "PeriodToMonths", - "PeriodToWeeks", - "And", - "Or", - "Xor", - "IfString", - "IfNumber", - "IfBoolean", - "IsPresent", - "HasEmailReply", - "HasPlainTextEmailReply", - "ExtractMostRecentEmailReplyHTML", - "ExtractMostRecentEmailReplyText", - "ExtractMostRecentPlainTextEmailReply", - "SetContainsString", - IsEngagementType, - "FormatFullName", - "FormatPhoneNumber", - "FormatSearchablePhoneNumber", - "AbsoluteValue", - "SquareRoot", - "Power", - "Substring", - Euler, - "StringLength", - "IsBlank", - "AddTime", - "SubtractTime", - ] - - -class SquareRoot(BaseModel): - operator: Literal["SQUARE_ROOT"] - - inputs: Optional[List[Input]] = None - - property_name: Optional[str] = FieldInfo(alias="propertyName", default=None) - - value: Optional[float] = None - - -from .or_ import Or -from .xor import Xor -from .and_ import And -from .date import Date -from .not_ import Not -from .year import Year -from .month import Month -from .power import Power -from .add_time import AddTime -from .contains import Contains -from .is_blank import IsBlank -from .if_number import IfNumber -from .if_string import IfString -from .less_than import LessThan -from .more_than import MoreThan -from .substring import Substring -from .if_boolean import IfBoolean -from .is_present import IsPresent -from .lower_case import LowerCase -from .upper_case import UpperCase -from .add_numbers import AddNumbers -from .begins_with import BeginsWith -from .max_numbers import MaxNumbers -from .min_numbers import MinNumbers -from .parse_number import ParseNumber -from .time_between import TimeBetween -from .number_equals import NumberEquals -from .string_equals import StringEquals -from .string_length import StringLength -from .subtract_time import SubtractTime -from .absolute_value import AbsoluteValue -from .concat_strings import ConcatStrings -from .divide_numbers import DivideNumbers -from .has_email_reply import HasEmailReply -from .period_to_weeks import PeriodToWeeks -from .format_full_name import FormatFullName -from .multiply_numbers import MultiplyNumbers -from .number_to_string import NumberToString -from .period_to_months import PeriodToMonths -from .round_up_numbers import RoundUpNumbers -from .subtract_numbers import SubtractNumbers -from .less_than_or_equal import LessThanOrEqual -from .more_than_or_equal import MoreThanOrEqual -from .round_down_numbers import RoundDownNumbers -from .dated_exchange_rate import DatedExchangeRate -from .fetch_exchange_rate import FetchExchangeRate -from .format_phone_number import FormatPhoneNumber -from .set_contains_string import SetContainsString -from .pipeline_probability import PipelineProbability -from .round_nearest_numbers import RoundNearestNumbers -from .is_pipeline_stage_closed import IsPipelineStageClosed -from .has_plain_text_email_reply import HasPlainTextEmailReply -from .time_between_skip_weekends import TimeBetweenSkipWeekends -from .fetch_currency_decimal_places import FetchCurrencyDecimalPlaces -from .format_searchable_phone_number import FormatSearchablePhoneNumber -from .extract_most_recent_email_reply_html import ExtractMostRecentEmailReplyHTML -from .extract_most_recent_email_reply_text import ExtractMostRecentEmailReplyText -from .extract_most_recent_plain_text_email_reply import ExtractMostRecentPlainTextEmailReply diff --git a/src/hubspot_sdk/types/cms/string_equals.py b/src/hubspot_sdk/types/cms/string_equals.py deleted file mode 100644 index fda3d938..00000000 --- a/src/hubspot_sdk/types/cms/string_equals.py +++ /dev/null @@ -1,256 +0,0 @@ -# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. - -from __future__ import annotations - -from typing import TYPE_CHECKING, List, Union, Optional -from typing_extensions import Literal, TypeAlias, TypeAliasType - -from pydantic import Field as FieldInfo - -from .now import Now -from .euler import Euler -from ..._compat import PYDANTIC_V1 -from ..._models import BaseModel -from .constant_number import ConstantNumber -from .constant_string import ConstantString -from .constant_boolean import ConstantBoolean -from .is_engagement_type import IsEngagementType -from .number_property_variable import NumberPropertyVariable -from .string_property_variable import StringPropertyVariable -from .boolean_property_variable import BooleanPropertyVariable -from .timestamp_of_property_variable import TimestampOfPropertyVariable -from .number_target_property_variable import NumberTargetPropertyVariable -from .string_target_property_variable import StringTargetPropertyVariable -from .boolean_target_property_variable import BooleanTargetPropertyVariable -from .fetch_single_currency_portal_currency import FetchSingleCurrencyPortalCurrency -from .timestamp_of_target_property_variable import TimestampOfTargetPropertyVariable - -__all__ = ["StringEquals", "Input"] - -if TYPE_CHECKING or not PYDANTIC_V1: - Input = TypeAliasType( - "Input", - Union[ - ConstantBoolean, - ConstantNumber, - ConstantString, - BooleanPropertyVariable, - StringPropertyVariable, - NumberPropertyVariable, - TimestampOfPropertyVariable, - BooleanTargetPropertyVariable, - StringTargetPropertyVariable, - NumberTargetPropertyVariable, - TimestampOfTargetPropertyVariable, - "AddNumbers", - "SubtractNumbers", - "MultiplyNumbers", - "DivideNumbers", - "RoundDownNumbers", - "RoundUpNumbers", - "RoundNearestNumbers", - "UpperCase", - "LowerCase", - "ConcatStrings", - "Contains", - "BeginsWith", - "NumberToString", - "ParseNumber", - "FetchExchangeRate", - "FetchCurrencyDecimalPlaces", - FetchSingleCurrencyPortalCurrency, - "DatedExchangeRate", - "PipelineProbability", - "MaxNumbers", - "MinNumbers", - "LessThan", - "LessThanOrEqual", - "MoreThan", - "MoreThanOrEqual", - "NumberEquals", - "StringEquals", - "IsPipelineStageClosed", - "Not", - "Date", - "Month", - "Year", - Now, - "TimeBetween", - "TimeBetweenSkipWeekends", - "PeriodToMonths", - "PeriodToWeeks", - "And", - "Or", - "Xor", - "IfString", - "IfNumber", - "IfBoolean", - "IsPresent", - "HasEmailReply", - "HasPlainTextEmailReply", - "ExtractMostRecentEmailReplyHTML", - "ExtractMostRecentEmailReplyText", - "ExtractMostRecentPlainTextEmailReply", - "SetContainsString", - IsEngagementType, - "FormatFullName", - "FormatPhoneNumber", - "FormatSearchablePhoneNumber", - "AbsoluteValue", - "SquareRoot", - "Power", - "Substring", - Euler, - "StringLength", - "IsBlank", - "AddTime", - "SubtractTime", - ], - ) -else: - Input: TypeAlias = Union[ - ConstantBoolean, - ConstantNumber, - ConstantString, - BooleanPropertyVariable, - StringPropertyVariable, - NumberPropertyVariable, - TimestampOfPropertyVariable, - BooleanTargetPropertyVariable, - StringTargetPropertyVariable, - NumberTargetPropertyVariable, - TimestampOfTargetPropertyVariable, - "AddNumbers", - "SubtractNumbers", - "MultiplyNumbers", - "DivideNumbers", - "RoundDownNumbers", - "RoundUpNumbers", - "RoundNearestNumbers", - "UpperCase", - "LowerCase", - "ConcatStrings", - "Contains", - "BeginsWith", - "NumberToString", - "ParseNumber", - "FetchExchangeRate", - "FetchCurrencyDecimalPlaces", - FetchSingleCurrencyPortalCurrency, - "DatedExchangeRate", - "PipelineProbability", - "MaxNumbers", - "MinNumbers", - "LessThan", - "LessThanOrEqual", - "MoreThan", - "MoreThanOrEqual", - "NumberEquals", - "StringEquals", - "IsPipelineStageClosed", - "Not", - "Date", - "Month", - "Year", - Now, - "TimeBetween", - "TimeBetweenSkipWeekends", - "PeriodToMonths", - "PeriodToWeeks", - "And", - "Or", - "Xor", - "IfString", - "IfNumber", - "IfBoolean", - "IsPresent", - "HasEmailReply", - "HasPlainTextEmailReply", - "ExtractMostRecentEmailReplyHTML", - "ExtractMostRecentEmailReplyText", - "ExtractMostRecentPlainTextEmailReply", - "SetContainsString", - IsEngagementType, - "FormatFullName", - "FormatPhoneNumber", - "FormatSearchablePhoneNumber", - "AbsoluteValue", - "SquareRoot", - "Power", - "Substring", - Euler, - "StringLength", - "IsBlank", - "AddTime", - "SubtractTime", - ] - - -class StringEquals(BaseModel): - operator: Literal["STRING_EQUALS"] - - inputs: Optional[List[Input]] = None - - property_name: Optional[str] = FieldInfo(alias="propertyName", default=None) - - value: Optional[bool] = None - - -from .or_ import Or -from .xor import Xor -from .and_ import And -from .date import Date -from .not_ import Not -from .year import Year -from .month import Month -from .power import Power -from .add_time import AddTime -from .contains import Contains -from .is_blank import IsBlank -from .if_number import IfNumber -from .if_string import IfString -from .less_than import LessThan -from .more_than import MoreThan -from .substring import Substring -from .if_boolean import IfBoolean -from .is_present import IsPresent -from .lower_case import LowerCase -from .upper_case import UpperCase -from .add_numbers import AddNumbers -from .begins_with import BeginsWith -from .max_numbers import MaxNumbers -from .min_numbers import MinNumbers -from .square_root import SquareRoot -from .parse_number import ParseNumber -from .time_between import TimeBetween -from .number_equals import NumberEquals -from .string_length import StringLength -from .subtract_time import SubtractTime -from .absolute_value import AbsoluteValue -from .concat_strings import ConcatStrings -from .divide_numbers import DivideNumbers -from .has_email_reply import HasEmailReply -from .period_to_weeks import PeriodToWeeks -from .format_full_name import FormatFullName -from .multiply_numbers import MultiplyNumbers -from .number_to_string import NumberToString -from .period_to_months import PeriodToMonths -from .round_up_numbers import RoundUpNumbers -from .subtract_numbers import SubtractNumbers -from .less_than_or_equal import LessThanOrEqual -from .more_than_or_equal import MoreThanOrEqual -from .round_down_numbers import RoundDownNumbers -from .dated_exchange_rate import DatedExchangeRate -from .fetch_exchange_rate import FetchExchangeRate -from .format_phone_number import FormatPhoneNumber -from .set_contains_string import SetContainsString -from .pipeline_probability import PipelineProbability -from .round_nearest_numbers import RoundNearestNumbers -from .is_pipeline_stage_closed import IsPipelineStageClosed -from .has_plain_text_email_reply import HasPlainTextEmailReply -from .time_between_skip_weekends import TimeBetweenSkipWeekends -from .fetch_currency_decimal_places import FetchCurrencyDecimalPlaces -from .format_searchable_phone_number import FormatSearchablePhoneNumber -from .extract_most_recent_email_reply_html import ExtractMostRecentEmailReplyHTML -from .extract_most_recent_email_reply_text import ExtractMostRecentEmailReplyText -from .extract_most_recent_plain_text_email_reply import ExtractMostRecentPlainTextEmailReply diff --git a/src/hubspot_sdk/types/cms/string_length.py b/src/hubspot_sdk/types/cms/string_length.py deleted file mode 100644 index bfe9efa4..00000000 --- a/src/hubspot_sdk/types/cms/string_length.py +++ /dev/null @@ -1,256 +0,0 @@ -# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. - -from __future__ import annotations - -from typing import TYPE_CHECKING, List, Union, Optional -from typing_extensions import Literal, TypeAlias, TypeAliasType - -from pydantic import Field as FieldInfo - -from .now import Now -from .euler import Euler -from ..._compat import PYDANTIC_V1 -from ..._models import BaseModel -from .constant_number import ConstantNumber -from .constant_string import ConstantString -from .constant_boolean import ConstantBoolean -from .is_engagement_type import IsEngagementType -from .number_property_variable import NumberPropertyVariable -from .string_property_variable import StringPropertyVariable -from .boolean_property_variable import BooleanPropertyVariable -from .timestamp_of_property_variable import TimestampOfPropertyVariable -from .number_target_property_variable import NumberTargetPropertyVariable -from .string_target_property_variable import StringTargetPropertyVariable -from .boolean_target_property_variable import BooleanTargetPropertyVariable -from .fetch_single_currency_portal_currency import FetchSingleCurrencyPortalCurrency -from .timestamp_of_target_property_variable import TimestampOfTargetPropertyVariable - -__all__ = ["StringLength", "Input"] - -if TYPE_CHECKING or not PYDANTIC_V1: - Input = TypeAliasType( - "Input", - Union[ - ConstantBoolean, - ConstantNumber, - ConstantString, - BooleanPropertyVariable, - StringPropertyVariable, - NumberPropertyVariable, - TimestampOfPropertyVariable, - BooleanTargetPropertyVariable, - StringTargetPropertyVariable, - NumberTargetPropertyVariable, - TimestampOfTargetPropertyVariable, - "AddNumbers", - "SubtractNumbers", - "MultiplyNumbers", - "DivideNumbers", - "RoundDownNumbers", - "RoundUpNumbers", - "RoundNearestNumbers", - "UpperCase", - "LowerCase", - "ConcatStrings", - "Contains", - "BeginsWith", - "NumberToString", - "ParseNumber", - "FetchExchangeRate", - "FetchCurrencyDecimalPlaces", - FetchSingleCurrencyPortalCurrency, - "DatedExchangeRate", - "PipelineProbability", - "MaxNumbers", - "MinNumbers", - "LessThan", - "LessThanOrEqual", - "MoreThan", - "MoreThanOrEqual", - "NumberEquals", - "StringEquals", - "IsPipelineStageClosed", - "Not", - "Date", - "Month", - "Year", - Now, - "TimeBetween", - "TimeBetweenSkipWeekends", - "PeriodToMonths", - "PeriodToWeeks", - "And", - "Or", - "Xor", - "IfString", - "IfNumber", - "IfBoolean", - "IsPresent", - "HasEmailReply", - "HasPlainTextEmailReply", - "ExtractMostRecentEmailReplyHTML", - "ExtractMostRecentEmailReplyText", - "ExtractMostRecentPlainTextEmailReply", - "SetContainsString", - IsEngagementType, - "FormatFullName", - "FormatPhoneNumber", - "FormatSearchablePhoneNumber", - "AbsoluteValue", - "SquareRoot", - "Power", - "Substring", - Euler, - "StringLength", - "IsBlank", - "AddTime", - "SubtractTime", - ], - ) -else: - Input: TypeAlias = Union[ - ConstantBoolean, - ConstantNumber, - ConstantString, - BooleanPropertyVariable, - StringPropertyVariable, - NumberPropertyVariable, - TimestampOfPropertyVariable, - BooleanTargetPropertyVariable, - StringTargetPropertyVariable, - NumberTargetPropertyVariable, - TimestampOfTargetPropertyVariable, - "AddNumbers", - "SubtractNumbers", - "MultiplyNumbers", - "DivideNumbers", - "RoundDownNumbers", - "RoundUpNumbers", - "RoundNearestNumbers", - "UpperCase", - "LowerCase", - "ConcatStrings", - "Contains", - "BeginsWith", - "NumberToString", - "ParseNumber", - "FetchExchangeRate", - "FetchCurrencyDecimalPlaces", - FetchSingleCurrencyPortalCurrency, - "DatedExchangeRate", - "PipelineProbability", - "MaxNumbers", - "MinNumbers", - "LessThan", - "LessThanOrEqual", - "MoreThan", - "MoreThanOrEqual", - "NumberEquals", - "StringEquals", - "IsPipelineStageClosed", - "Not", - "Date", - "Month", - "Year", - Now, - "TimeBetween", - "TimeBetweenSkipWeekends", - "PeriodToMonths", - "PeriodToWeeks", - "And", - "Or", - "Xor", - "IfString", - "IfNumber", - "IfBoolean", - "IsPresent", - "HasEmailReply", - "HasPlainTextEmailReply", - "ExtractMostRecentEmailReplyHTML", - "ExtractMostRecentEmailReplyText", - "ExtractMostRecentPlainTextEmailReply", - "SetContainsString", - IsEngagementType, - "FormatFullName", - "FormatPhoneNumber", - "FormatSearchablePhoneNumber", - "AbsoluteValue", - "SquareRoot", - "Power", - "Substring", - Euler, - "StringLength", - "IsBlank", - "AddTime", - "SubtractTime", - ] - - -class StringLength(BaseModel): - operator: Literal["STRING_LENGTH"] - - inputs: Optional[List[Input]] = None - - property_name: Optional[str] = FieldInfo(alias="propertyName", default=None) - - value: Optional[float] = None - - -from .or_ import Or -from .xor import Xor -from .and_ import And -from .date import Date -from .not_ import Not -from .year import Year -from .month import Month -from .power import Power -from .add_time import AddTime -from .contains import Contains -from .is_blank import IsBlank -from .if_number import IfNumber -from .if_string import IfString -from .less_than import LessThan -from .more_than import MoreThan -from .substring import Substring -from .if_boolean import IfBoolean -from .is_present import IsPresent -from .lower_case import LowerCase -from .upper_case import UpperCase -from .add_numbers import AddNumbers -from .begins_with import BeginsWith -from .max_numbers import MaxNumbers -from .min_numbers import MinNumbers -from .square_root import SquareRoot -from .parse_number import ParseNumber -from .time_between import TimeBetween -from .number_equals import NumberEquals -from .string_equals import StringEquals -from .subtract_time import SubtractTime -from .absolute_value import AbsoluteValue -from .concat_strings import ConcatStrings -from .divide_numbers import DivideNumbers -from .has_email_reply import HasEmailReply -from .period_to_weeks import PeriodToWeeks -from .format_full_name import FormatFullName -from .multiply_numbers import MultiplyNumbers -from .number_to_string import NumberToString -from .period_to_months import PeriodToMonths -from .round_up_numbers import RoundUpNumbers -from .subtract_numbers import SubtractNumbers -from .less_than_or_equal import LessThanOrEqual -from .more_than_or_equal import MoreThanOrEqual -from .round_down_numbers import RoundDownNumbers -from .dated_exchange_rate import DatedExchangeRate -from .fetch_exchange_rate import FetchExchangeRate -from .format_phone_number import FormatPhoneNumber -from .set_contains_string import SetContainsString -from .pipeline_probability import PipelineProbability -from .round_nearest_numbers import RoundNearestNumbers -from .is_pipeline_stage_closed import IsPipelineStageClosed -from .has_plain_text_email_reply import HasPlainTextEmailReply -from .time_between_skip_weekends import TimeBetweenSkipWeekends -from .fetch_currency_decimal_places import FetchCurrencyDecimalPlaces -from .format_searchable_phone_number import FormatSearchablePhoneNumber -from .extract_most_recent_email_reply_html import ExtractMostRecentEmailReplyHTML -from .extract_most_recent_email_reply_text import ExtractMostRecentEmailReplyText -from .extract_most_recent_plain_text_email_reply import ExtractMostRecentPlainTextEmailReply diff --git a/src/hubspot_sdk/types/cms/string_property_variable.py b/src/hubspot_sdk/types/cms/string_property_variable.py deleted file mode 100644 index 40e8f4d7..00000000 --- a/src/hubspot_sdk/types/cms/string_property_variable.py +++ /dev/null @@ -1,18 +0,0 @@ -# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. - -from typing import Optional -from typing_extensions import Literal - -from pydantic import Field as FieldInfo - -from ..._models import BaseModel - -__all__ = ["StringPropertyVariable"] - - -class StringPropertyVariable(BaseModel): - operator: Literal["STRING_PROPERTY_VARIABLE"] - - property_name: Optional[str] = FieldInfo(alias="propertyName", default=None) - - value: Optional[str] = None diff --git a/src/hubspot_sdk/types/cms/string_target_property_variable.py b/src/hubspot_sdk/types/cms/string_target_property_variable.py deleted file mode 100644 index f4bf86d7..00000000 --- a/src/hubspot_sdk/types/cms/string_target_property_variable.py +++ /dev/null @@ -1,18 +0,0 @@ -# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. - -from typing import Optional -from typing_extensions import Literal - -from pydantic import Field as FieldInfo - -from ..._models import BaseModel - -__all__ = ["StringTargetPropertyVariable"] - - -class StringTargetPropertyVariable(BaseModel): - operator: Literal["STRING_TARGET_PROPERTY_VARIABLE"] - - property_name: Optional[str] = FieldInfo(alias="propertyName", default=None) - - value: Optional[str] = None diff --git a/src/hubspot_sdk/types/cms/substring.py b/src/hubspot_sdk/types/cms/substring.py deleted file mode 100644 index fa4bb747..00000000 --- a/src/hubspot_sdk/types/cms/substring.py +++ /dev/null @@ -1,416 +0,0 @@ -# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. - -from __future__ import annotations - -from typing import TYPE_CHECKING, List, Union, Optional -from typing_extensions import Literal, TypeAlias, TypeAliasType - -from pydantic import Field as FieldInfo - -from .now import Now -from .euler import Euler -from ..._compat import PYDANTIC_V1 -from ..._models import BaseModel -from .constant_number import ConstantNumber -from .constant_string import ConstantString -from .constant_boolean import ConstantBoolean -from .is_engagement_type import IsEngagementType -from .number_property_variable import NumberPropertyVariable -from .string_property_variable import StringPropertyVariable -from .boolean_property_variable import BooleanPropertyVariable -from .timestamp_of_property_variable import TimestampOfPropertyVariable -from .number_target_property_variable import NumberTargetPropertyVariable -from .string_target_property_variable import StringTargetPropertyVariable -from .boolean_target_property_variable import BooleanTargetPropertyVariable -from .fetch_single_currency_portal_currency import FetchSingleCurrencyPortalCurrency -from .timestamp_of_target_property_variable import TimestampOfTargetPropertyVariable - -__all__ = ["Substring", "StringToCheck", "Input"] - -if TYPE_CHECKING or not PYDANTIC_V1: - StringToCheck = TypeAliasType( - "StringToCheck", - Union[ - ConstantBoolean, - ConstantNumber, - ConstantString, - BooleanPropertyVariable, - StringPropertyVariable, - NumberPropertyVariable, - TimestampOfPropertyVariable, - BooleanTargetPropertyVariable, - StringTargetPropertyVariable, - NumberTargetPropertyVariable, - TimestampOfTargetPropertyVariable, - "AddNumbers", - "SubtractNumbers", - "MultiplyNumbers", - "DivideNumbers", - "RoundDownNumbers", - "RoundUpNumbers", - "RoundNearestNumbers", - "UpperCase", - "LowerCase", - "ConcatStrings", - "Contains", - "BeginsWith", - "NumberToString", - "ParseNumber", - "FetchExchangeRate", - "FetchCurrencyDecimalPlaces", - FetchSingleCurrencyPortalCurrency, - "DatedExchangeRate", - "PipelineProbability", - "MaxNumbers", - "MinNumbers", - "LessThan", - "LessThanOrEqual", - "MoreThan", - "MoreThanOrEqual", - "NumberEquals", - "StringEquals", - "IsPipelineStageClosed", - "Not", - "Date", - "Month", - "Year", - Now, - "TimeBetween", - "TimeBetweenSkipWeekends", - "PeriodToMonths", - "PeriodToWeeks", - "And", - "Or", - "Xor", - "IfString", - "IfNumber", - "IfBoolean", - "IsPresent", - "HasEmailReply", - "HasPlainTextEmailReply", - "ExtractMostRecentEmailReplyHTML", - "ExtractMostRecentEmailReplyText", - "ExtractMostRecentPlainTextEmailReply", - "SetContainsString", - IsEngagementType, - "FormatFullName", - "FormatPhoneNumber", - "FormatSearchablePhoneNumber", - "AbsoluteValue", - "SquareRoot", - "Power", - "Substring", - Euler, - "StringLength", - "IsBlank", - "AddTime", - "SubtractTime", - ], - ) -else: - StringToCheck: TypeAlias = Union[ - ConstantBoolean, - ConstantNumber, - ConstantString, - BooleanPropertyVariable, - StringPropertyVariable, - NumberPropertyVariable, - TimestampOfPropertyVariable, - BooleanTargetPropertyVariable, - StringTargetPropertyVariable, - NumberTargetPropertyVariable, - TimestampOfTargetPropertyVariable, - "AddNumbers", - "SubtractNumbers", - "MultiplyNumbers", - "DivideNumbers", - "RoundDownNumbers", - "RoundUpNumbers", - "RoundNearestNumbers", - "UpperCase", - "LowerCase", - "ConcatStrings", - "Contains", - "BeginsWith", - "NumberToString", - "ParseNumber", - "FetchExchangeRate", - "FetchCurrencyDecimalPlaces", - FetchSingleCurrencyPortalCurrency, - "DatedExchangeRate", - "PipelineProbability", - "MaxNumbers", - "MinNumbers", - "LessThan", - "LessThanOrEqual", - "MoreThan", - "MoreThanOrEqual", - "NumberEquals", - "StringEquals", - "IsPipelineStageClosed", - "Not", - "Date", - "Month", - "Year", - Now, - "TimeBetween", - "TimeBetweenSkipWeekends", - "PeriodToMonths", - "PeriodToWeeks", - "And", - "Or", - "Xor", - "IfString", - "IfNumber", - "IfBoolean", - "IsPresent", - "HasEmailReply", - "HasPlainTextEmailReply", - "ExtractMostRecentEmailReplyHTML", - "ExtractMostRecentEmailReplyText", - "ExtractMostRecentPlainTextEmailReply", - "SetContainsString", - IsEngagementType, - "FormatFullName", - "FormatPhoneNumber", - "FormatSearchablePhoneNumber", - "AbsoluteValue", - "SquareRoot", - "Power", - "Substring", - Euler, - "StringLength", - "IsBlank", - "AddTime", - "SubtractTime", - ] - -if TYPE_CHECKING or not PYDANTIC_V1: - Input = TypeAliasType( - "Input", - Union[ - ConstantBoolean, - ConstantNumber, - ConstantString, - BooleanPropertyVariable, - StringPropertyVariable, - NumberPropertyVariable, - TimestampOfPropertyVariable, - BooleanTargetPropertyVariable, - StringTargetPropertyVariable, - NumberTargetPropertyVariable, - TimestampOfTargetPropertyVariable, - "AddNumbers", - "SubtractNumbers", - "MultiplyNumbers", - "DivideNumbers", - "RoundDownNumbers", - "RoundUpNumbers", - "RoundNearestNumbers", - "UpperCase", - "LowerCase", - "ConcatStrings", - "Contains", - "BeginsWith", - "NumberToString", - "ParseNumber", - "FetchExchangeRate", - "FetchCurrencyDecimalPlaces", - FetchSingleCurrencyPortalCurrency, - "DatedExchangeRate", - "PipelineProbability", - "MaxNumbers", - "MinNumbers", - "LessThan", - "LessThanOrEqual", - "MoreThan", - "MoreThanOrEqual", - "NumberEquals", - "StringEquals", - "IsPipelineStageClosed", - "Not", - "Date", - "Month", - "Year", - Now, - "TimeBetween", - "TimeBetweenSkipWeekends", - "PeriodToMonths", - "PeriodToWeeks", - "And", - "Or", - "Xor", - "IfString", - "IfNumber", - "IfBoolean", - "IsPresent", - "HasEmailReply", - "HasPlainTextEmailReply", - "ExtractMostRecentEmailReplyHTML", - "ExtractMostRecentEmailReplyText", - "ExtractMostRecentPlainTextEmailReply", - "SetContainsString", - IsEngagementType, - "FormatFullName", - "FormatPhoneNumber", - "FormatSearchablePhoneNumber", - "AbsoluteValue", - "SquareRoot", - "Power", - "Substring", - Euler, - "StringLength", - "IsBlank", - "AddTime", - "SubtractTime", - ], - ) -else: - Input: TypeAlias = Union[ - ConstantBoolean, - ConstantNumber, - ConstantString, - BooleanPropertyVariable, - StringPropertyVariable, - NumberPropertyVariable, - TimestampOfPropertyVariable, - BooleanTargetPropertyVariable, - StringTargetPropertyVariable, - NumberTargetPropertyVariable, - TimestampOfTargetPropertyVariable, - "AddNumbers", - "SubtractNumbers", - "MultiplyNumbers", - "DivideNumbers", - "RoundDownNumbers", - "RoundUpNumbers", - "RoundNearestNumbers", - "UpperCase", - "LowerCase", - "ConcatStrings", - "Contains", - "BeginsWith", - "NumberToString", - "ParseNumber", - "FetchExchangeRate", - "FetchCurrencyDecimalPlaces", - FetchSingleCurrencyPortalCurrency, - "DatedExchangeRate", - "PipelineProbability", - "MaxNumbers", - "MinNumbers", - "LessThan", - "LessThanOrEqual", - "MoreThan", - "MoreThanOrEqual", - "NumberEquals", - "StringEquals", - "IsPipelineStageClosed", - "Not", - "Date", - "Month", - "Year", - Now, - "TimeBetween", - "TimeBetweenSkipWeekends", - "PeriodToMonths", - "PeriodToWeeks", - "And", - "Or", - "Xor", - "IfString", - "IfNumber", - "IfBoolean", - "IsPresent", - "HasEmailReply", - "HasPlainTextEmailReply", - "ExtractMostRecentEmailReplyHTML", - "ExtractMostRecentEmailReplyText", - "ExtractMostRecentPlainTextEmailReply", - "SetContainsString", - IsEngagementType, - "FormatFullName", - "FormatPhoneNumber", - "FormatSearchablePhoneNumber", - "AbsoluteValue", - "SquareRoot", - "Power", - "Substring", - Euler, - "StringLength", - "IsBlank", - "AddTime", - "SubtractTime", - ] - - -class Substring(BaseModel): - operator: Literal["SUBSTRING"] - - string_to_check: StringToCheck = FieldInfo(alias="stringToCheck") - - inputs: Optional[List[Input]] = None - - property_name: Optional[str] = FieldInfo(alias="propertyName", default=None) - - value: Optional[str] = None - - -from .or_ import Or -from .xor import Xor -from .and_ import And -from .date import Date -from .not_ import Not -from .year import Year -from .month import Month -from .power import Power -from .add_time import AddTime -from .contains import Contains -from .is_blank import IsBlank -from .if_number import IfNumber -from .if_string import IfString -from .less_than import LessThan -from .more_than import MoreThan -from .if_boolean import IfBoolean -from .is_present import IsPresent -from .lower_case import LowerCase -from .upper_case import UpperCase -from .add_numbers import AddNumbers -from .begins_with import BeginsWith -from .max_numbers import MaxNumbers -from .min_numbers import MinNumbers -from .square_root import SquareRoot -from .parse_number import ParseNumber -from .time_between import TimeBetween -from .number_equals import NumberEquals -from .string_equals import StringEquals -from .string_length import StringLength -from .subtract_time import SubtractTime -from .absolute_value import AbsoluteValue -from .concat_strings import ConcatStrings -from .divide_numbers import DivideNumbers -from .has_email_reply import HasEmailReply -from .period_to_weeks import PeriodToWeeks -from .format_full_name import FormatFullName -from .multiply_numbers import MultiplyNumbers -from .number_to_string import NumberToString -from .period_to_months import PeriodToMonths -from .round_up_numbers import RoundUpNumbers -from .subtract_numbers import SubtractNumbers -from .less_than_or_equal import LessThanOrEqual -from .more_than_or_equal import MoreThanOrEqual -from .round_down_numbers import RoundDownNumbers -from .dated_exchange_rate import DatedExchangeRate -from .fetch_exchange_rate import FetchExchangeRate -from .format_phone_number import FormatPhoneNumber -from .set_contains_string import SetContainsString -from .pipeline_probability import PipelineProbability -from .round_nearest_numbers import RoundNearestNumbers -from .is_pipeline_stage_closed import IsPipelineStageClosed -from .has_plain_text_email_reply import HasPlainTextEmailReply -from .time_between_skip_weekends import TimeBetweenSkipWeekends -from .fetch_currency_decimal_places import FetchCurrencyDecimalPlaces -from .format_searchable_phone_number import FormatSearchablePhoneNumber -from .extract_most_recent_email_reply_html import ExtractMostRecentEmailReplyHTML -from .extract_most_recent_email_reply_text import ExtractMostRecentEmailReplyText -from .extract_most_recent_plain_text_email_reply import ExtractMostRecentPlainTextEmailReply diff --git a/src/hubspot_sdk/types/cms/subtract_numbers.py b/src/hubspot_sdk/types/cms/subtract_numbers.py deleted file mode 100644 index 5a35d724..00000000 --- a/src/hubspot_sdk/types/cms/subtract_numbers.py +++ /dev/null @@ -1,258 +0,0 @@ -# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. - -from __future__ import annotations - -from typing import TYPE_CHECKING, List, Union, Optional -from typing_extensions import Literal, TypeAlias, TypeAliasType - -from pydantic import Field as FieldInfo - -from .now import Now -from .euler import Euler -from ..._compat import PYDANTIC_V1 -from ..._models import BaseModel -from .constant_number import ConstantNumber -from .constant_string import ConstantString -from .constant_boolean import ConstantBoolean -from .is_engagement_type import IsEngagementType -from .number_property_variable import NumberPropertyVariable -from .string_property_variable import StringPropertyVariable -from .boolean_property_variable import BooleanPropertyVariable -from .timestamp_of_property_variable import TimestampOfPropertyVariable -from .number_target_property_variable import NumberTargetPropertyVariable -from .string_target_property_variable import StringTargetPropertyVariable -from .boolean_target_property_variable import BooleanTargetPropertyVariable -from .fetch_single_currency_portal_currency import FetchSingleCurrencyPortalCurrency -from .timestamp_of_target_property_variable import TimestampOfTargetPropertyVariable - -__all__ = ["SubtractNumbers", "Input"] - -if TYPE_CHECKING or not PYDANTIC_V1: - Input = TypeAliasType( - "Input", - Union[ - ConstantBoolean, - ConstantNumber, - ConstantString, - BooleanPropertyVariable, - StringPropertyVariable, - NumberPropertyVariable, - TimestampOfPropertyVariable, - BooleanTargetPropertyVariable, - StringTargetPropertyVariable, - NumberTargetPropertyVariable, - TimestampOfTargetPropertyVariable, - "AddNumbers", - "SubtractNumbers", - "MultiplyNumbers", - "DivideNumbers", - "RoundDownNumbers", - "RoundUpNumbers", - "RoundNearestNumbers", - "UpperCase", - "LowerCase", - "ConcatStrings", - "Contains", - "BeginsWith", - "NumberToString", - "ParseNumber", - "FetchExchangeRate", - "FetchCurrencyDecimalPlaces", - FetchSingleCurrencyPortalCurrency, - "DatedExchangeRate", - "PipelineProbability", - "MaxNumbers", - "MinNumbers", - "LessThan", - "LessThanOrEqual", - "MoreThan", - "MoreThanOrEqual", - "NumberEquals", - "StringEquals", - "IsPipelineStageClosed", - "Not", - "Date", - "Month", - "Year", - Now, - "TimeBetween", - "TimeBetweenSkipWeekends", - "PeriodToMonths", - "PeriodToWeeks", - "And", - "Or", - "Xor", - "IfString", - "IfNumber", - "IfBoolean", - "IsPresent", - "HasEmailReply", - "HasPlainTextEmailReply", - "ExtractMostRecentEmailReplyHTML", - "ExtractMostRecentEmailReplyText", - "ExtractMostRecentPlainTextEmailReply", - "SetContainsString", - IsEngagementType, - "FormatFullName", - "FormatPhoneNumber", - "FormatSearchablePhoneNumber", - "AbsoluteValue", - "SquareRoot", - "Power", - "Substring", - Euler, - "StringLength", - "IsBlank", - "AddTime", - "SubtractTime", - ], - ) -else: - Input: TypeAlias = Union[ - ConstantBoolean, - ConstantNumber, - ConstantString, - BooleanPropertyVariable, - StringPropertyVariable, - NumberPropertyVariable, - TimestampOfPropertyVariable, - BooleanTargetPropertyVariable, - StringTargetPropertyVariable, - NumberTargetPropertyVariable, - TimestampOfTargetPropertyVariable, - "AddNumbers", - "SubtractNumbers", - "MultiplyNumbers", - "DivideNumbers", - "RoundDownNumbers", - "RoundUpNumbers", - "RoundNearestNumbers", - "UpperCase", - "LowerCase", - "ConcatStrings", - "Contains", - "BeginsWith", - "NumberToString", - "ParseNumber", - "FetchExchangeRate", - "FetchCurrencyDecimalPlaces", - FetchSingleCurrencyPortalCurrency, - "DatedExchangeRate", - "PipelineProbability", - "MaxNumbers", - "MinNumbers", - "LessThan", - "LessThanOrEqual", - "MoreThan", - "MoreThanOrEqual", - "NumberEquals", - "StringEquals", - "IsPipelineStageClosed", - "Not", - "Date", - "Month", - "Year", - Now, - "TimeBetween", - "TimeBetweenSkipWeekends", - "PeriodToMonths", - "PeriodToWeeks", - "And", - "Or", - "Xor", - "IfString", - "IfNumber", - "IfBoolean", - "IsPresent", - "HasEmailReply", - "HasPlainTextEmailReply", - "ExtractMostRecentEmailReplyHTML", - "ExtractMostRecentEmailReplyText", - "ExtractMostRecentPlainTextEmailReply", - "SetContainsString", - IsEngagementType, - "FormatFullName", - "FormatPhoneNumber", - "FormatSearchablePhoneNumber", - "AbsoluteValue", - "SquareRoot", - "Power", - "Substring", - Euler, - "StringLength", - "IsBlank", - "AddTime", - "SubtractTime", - ] - - -class SubtractNumbers(BaseModel): - enclosed_in_parentheses: bool = FieldInfo(alias="enclosedInParentheses") - - operator: Literal["SUBTRACT_NUMBERS"] - - inputs: Optional[List[Input]] = None - - property_name: Optional[str] = FieldInfo(alias="propertyName", default=None) - - value: Optional[float] = None - - -from .or_ import Or -from .xor import Xor -from .and_ import And -from .date import Date -from .not_ import Not -from .year import Year -from .month import Month -from .power import Power -from .add_time import AddTime -from .contains import Contains -from .is_blank import IsBlank -from .if_number import IfNumber -from .if_string import IfString -from .less_than import LessThan -from .more_than import MoreThan -from .substring import Substring -from .if_boolean import IfBoolean -from .is_present import IsPresent -from .lower_case import LowerCase -from .upper_case import UpperCase -from .add_numbers import AddNumbers -from .begins_with import BeginsWith -from .max_numbers import MaxNumbers -from .min_numbers import MinNumbers -from .square_root import SquareRoot -from .parse_number import ParseNumber -from .time_between import TimeBetween -from .number_equals import NumberEquals -from .string_equals import StringEquals -from .string_length import StringLength -from .subtract_time import SubtractTime -from .absolute_value import AbsoluteValue -from .concat_strings import ConcatStrings -from .divide_numbers import DivideNumbers -from .has_email_reply import HasEmailReply -from .period_to_weeks import PeriodToWeeks -from .format_full_name import FormatFullName -from .multiply_numbers import MultiplyNumbers -from .number_to_string import NumberToString -from .period_to_months import PeriodToMonths -from .round_up_numbers import RoundUpNumbers -from .less_than_or_equal import LessThanOrEqual -from .more_than_or_equal import MoreThanOrEqual -from .round_down_numbers import RoundDownNumbers -from .dated_exchange_rate import DatedExchangeRate -from .fetch_exchange_rate import FetchExchangeRate -from .format_phone_number import FormatPhoneNumber -from .set_contains_string import SetContainsString -from .pipeline_probability import PipelineProbability -from .round_nearest_numbers import RoundNearestNumbers -from .is_pipeline_stage_closed import IsPipelineStageClosed -from .has_plain_text_email_reply import HasPlainTextEmailReply -from .time_between_skip_weekends import TimeBetweenSkipWeekends -from .fetch_currency_decimal_places import FetchCurrencyDecimalPlaces -from .format_searchable_phone_number import FormatSearchablePhoneNumber -from .extract_most_recent_email_reply_html import ExtractMostRecentEmailReplyHTML -from .extract_most_recent_email_reply_text import ExtractMostRecentEmailReplyText -from .extract_most_recent_plain_text_email_reply import ExtractMostRecentPlainTextEmailReply diff --git a/src/hubspot_sdk/types/cms/subtract_time.py b/src/hubspot_sdk/types/cms/subtract_time.py deleted file mode 100644 index b546822b..00000000 --- a/src/hubspot_sdk/types/cms/subtract_time.py +++ /dev/null @@ -1,416 +0,0 @@ -# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. - -from __future__ import annotations - -from typing import TYPE_CHECKING, List, Union, Optional -from typing_extensions import Literal, TypeAlias, TypeAliasType - -from pydantic import Field as FieldInfo - -from .now import Now -from .euler import Euler -from ..._compat import PYDANTIC_V1 -from ..._models import BaseModel -from .constant_number import ConstantNumber -from .constant_string import ConstantString -from .constant_boolean import ConstantBoolean -from .is_engagement_type import IsEngagementType -from .number_property_variable import NumberPropertyVariable -from .string_property_variable import StringPropertyVariable -from .boolean_property_variable import BooleanPropertyVariable -from .timestamp_of_property_variable import TimestampOfPropertyVariable -from .number_target_property_variable import NumberTargetPropertyVariable -from .string_target_property_variable import StringTargetPropertyVariable -from .boolean_target_property_variable import BooleanTargetPropertyVariable -from .fetch_single_currency_portal_currency import FetchSingleCurrencyPortalCurrency -from .timestamp_of_target_property_variable import TimestampOfTargetPropertyVariable - -__all__ = ["SubtractTime", "StringToCheck", "Input"] - -if TYPE_CHECKING or not PYDANTIC_V1: - StringToCheck = TypeAliasType( - "StringToCheck", - Union[ - ConstantBoolean, - ConstantNumber, - ConstantString, - BooleanPropertyVariable, - StringPropertyVariable, - NumberPropertyVariable, - TimestampOfPropertyVariable, - BooleanTargetPropertyVariable, - StringTargetPropertyVariable, - NumberTargetPropertyVariable, - TimestampOfTargetPropertyVariable, - "AddNumbers", - "SubtractNumbers", - "MultiplyNumbers", - "DivideNumbers", - "RoundDownNumbers", - "RoundUpNumbers", - "RoundNearestNumbers", - "UpperCase", - "LowerCase", - "ConcatStrings", - "Contains", - "BeginsWith", - "NumberToString", - "ParseNumber", - "FetchExchangeRate", - "FetchCurrencyDecimalPlaces", - FetchSingleCurrencyPortalCurrency, - "DatedExchangeRate", - "PipelineProbability", - "MaxNumbers", - "MinNumbers", - "LessThan", - "LessThanOrEqual", - "MoreThan", - "MoreThanOrEqual", - "NumberEquals", - "StringEquals", - "IsPipelineStageClosed", - "Not", - "Date", - "Month", - "Year", - Now, - "TimeBetween", - "TimeBetweenSkipWeekends", - "PeriodToMonths", - "PeriodToWeeks", - "And", - "Or", - "Xor", - "IfString", - "IfNumber", - "IfBoolean", - "IsPresent", - "HasEmailReply", - "HasPlainTextEmailReply", - "ExtractMostRecentEmailReplyHTML", - "ExtractMostRecentEmailReplyText", - "ExtractMostRecentPlainTextEmailReply", - "SetContainsString", - IsEngagementType, - "FormatFullName", - "FormatPhoneNumber", - "FormatSearchablePhoneNumber", - "AbsoluteValue", - "SquareRoot", - "Power", - "Substring", - Euler, - "StringLength", - "IsBlank", - "AddTime", - "SubtractTime", - ], - ) -else: - StringToCheck: TypeAlias = Union[ - ConstantBoolean, - ConstantNumber, - ConstantString, - BooleanPropertyVariable, - StringPropertyVariable, - NumberPropertyVariable, - TimestampOfPropertyVariable, - BooleanTargetPropertyVariable, - StringTargetPropertyVariable, - NumberTargetPropertyVariable, - TimestampOfTargetPropertyVariable, - "AddNumbers", - "SubtractNumbers", - "MultiplyNumbers", - "DivideNumbers", - "RoundDownNumbers", - "RoundUpNumbers", - "RoundNearestNumbers", - "UpperCase", - "LowerCase", - "ConcatStrings", - "Contains", - "BeginsWith", - "NumberToString", - "ParseNumber", - "FetchExchangeRate", - "FetchCurrencyDecimalPlaces", - FetchSingleCurrencyPortalCurrency, - "DatedExchangeRate", - "PipelineProbability", - "MaxNumbers", - "MinNumbers", - "LessThan", - "LessThanOrEqual", - "MoreThan", - "MoreThanOrEqual", - "NumberEquals", - "StringEquals", - "IsPipelineStageClosed", - "Not", - "Date", - "Month", - "Year", - Now, - "TimeBetween", - "TimeBetweenSkipWeekends", - "PeriodToMonths", - "PeriodToWeeks", - "And", - "Or", - "Xor", - "IfString", - "IfNumber", - "IfBoolean", - "IsPresent", - "HasEmailReply", - "HasPlainTextEmailReply", - "ExtractMostRecentEmailReplyHTML", - "ExtractMostRecentEmailReplyText", - "ExtractMostRecentPlainTextEmailReply", - "SetContainsString", - IsEngagementType, - "FormatFullName", - "FormatPhoneNumber", - "FormatSearchablePhoneNumber", - "AbsoluteValue", - "SquareRoot", - "Power", - "Substring", - Euler, - "StringLength", - "IsBlank", - "AddTime", - "SubtractTime", - ] - -if TYPE_CHECKING or not PYDANTIC_V1: - Input = TypeAliasType( - "Input", - Union[ - ConstantBoolean, - ConstantNumber, - ConstantString, - BooleanPropertyVariable, - StringPropertyVariable, - NumberPropertyVariable, - TimestampOfPropertyVariable, - BooleanTargetPropertyVariable, - StringTargetPropertyVariable, - NumberTargetPropertyVariable, - TimestampOfTargetPropertyVariable, - "AddNumbers", - "SubtractNumbers", - "MultiplyNumbers", - "DivideNumbers", - "RoundDownNumbers", - "RoundUpNumbers", - "RoundNearestNumbers", - "UpperCase", - "LowerCase", - "ConcatStrings", - "Contains", - "BeginsWith", - "NumberToString", - "ParseNumber", - "FetchExchangeRate", - "FetchCurrencyDecimalPlaces", - FetchSingleCurrencyPortalCurrency, - "DatedExchangeRate", - "PipelineProbability", - "MaxNumbers", - "MinNumbers", - "LessThan", - "LessThanOrEqual", - "MoreThan", - "MoreThanOrEqual", - "NumberEquals", - "StringEquals", - "IsPipelineStageClosed", - "Not", - "Date", - "Month", - "Year", - Now, - "TimeBetween", - "TimeBetweenSkipWeekends", - "PeriodToMonths", - "PeriodToWeeks", - "And", - "Or", - "Xor", - "IfString", - "IfNumber", - "IfBoolean", - "IsPresent", - "HasEmailReply", - "HasPlainTextEmailReply", - "ExtractMostRecentEmailReplyHTML", - "ExtractMostRecentEmailReplyText", - "ExtractMostRecentPlainTextEmailReply", - "SetContainsString", - IsEngagementType, - "FormatFullName", - "FormatPhoneNumber", - "FormatSearchablePhoneNumber", - "AbsoluteValue", - "SquareRoot", - "Power", - "Substring", - Euler, - "StringLength", - "IsBlank", - "AddTime", - "SubtractTime", - ], - ) -else: - Input: TypeAlias = Union[ - ConstantBoolean, - ConstantNumber, - ConstantString, - BooleanPropertyVariable, - StringPropertyVariable, - NumberPropertyVariable, - TimestampOfPropertyVariable, - BooleanTargetPropertyVariable, - StringTargetPropertyVariable, - NumberTargetPropertyVariable, - TimestampOfTargetPropertyVariable, - "AddNumbers", - "SubtractNumbers", - "MultiplyNumbers", - "DivideNumbers", - "RoundDownNumbers", - "RoundUpNumbers", - "RoundNearestNumbers", - "UpperCase", - "LowerCase", - "ConcatStrings", - "Contains", - "BeginsWith", - "NumberToString", - "ParseNumber", - "FetchExchangeRate", - "FetchCurrencyDecimalPlaces", - FetchSingleCurrencyPortalCurrency, - "DatedExchangeRate", - "PipelineProbability", - "MaxNumbers", - "MinNumbers", - "LessThan", - "LessThanOrEqual", - "MoreThan", - "MoreThanOrEqual", - "NumberEquals", - "StringEquals", - "IsPipelineStageClosed", - "Not", - "Date", - "Month", - "Year", - Now, - "TimeBetween", - "TimeBetweenSkipWeekends", - "PeriodToMonths", - "PeriodToWeeks", - "And", - "Or", - "Xor", - "IfString", - "IfNumber", - "IfBoolean", - "IsPresent", - "HasEmailReply", - "HasPlainTextEmailReply", - "ExtractMostRecentEmailReplyHTML", - "ExtractMostRecentEmailReplyText", - "ExtractMostRecentPlainTextEmailReply", - "SetContainsString", - IsEngagementType, - "FormatFullName", - "FormatPhoneNumber", - "FormatSearchablePhoneNumber", - "AbsoluteValue", - "SquareRoot", - "Power", - "Substring", - Euler, - "StringLength", - "IsBlank", - "AddTime", - "SubtractTime", - ] - - -class SubtractTime(BaseModel): - operator: Literal["SUBTRACT_TIME"] - - string_to_check: StringToCheck = FieldInfo(alias="stringToCheck") - - inputs: Optional[List[Input]] = None - - property_name: Optional[str] = FieldInfo(alias="propertyName", default=None) - - value: Optional[float] = None - - -from .or_ import Or -from .xor import Xor -from .and_ import And -from .date import Date -from .not_ import Not -from .year import Year -from .month import Month -from .power import Power -from .add_time import AddTime -from .contains import Contains -from .is_blank import IsBlank -from .if_number import IfNumber -from .if_string import IfString -from .less_than import LessThan -from .more_than import MoreThan -from .substring import Substring -from .if_boolean import IfBoolean -from .is_present import IsPresent -from .lower_case import LowerCase -from .upper_case import UpperCase -from .add_numbers import AddNumbers -from .begins_with import BeginsWith -from .max_numbers import MaxNumbers -from .min_numbers import MinNumbers -from .square_root import SquareRoot -from .parse_number import ParseNumber -from .time_between import TimeBetween -from .number_equals import NumberEquals -from .string_equals import StringEquals -from .string_length import StringLength -from .absolute_value import AbsoluteValue -from .concat_strings import ConcatStrings -from .divide_numbers import DivideNumbers -from .has_email_reply import HasEmailReply -from .period_to_weeks import PeriodToWeeks -from .format_full_name import FormatFullName -from .multiply_numbers import MultiplyNumbers -from .number_to_string import NumberToString -from .period_to_months import PeriodToMonths -from .round_up_numbers import RoundUpNumbers -from .subtract_numbers import SubtractNumbers -from .less_than_or_equal import LessThanOrEqual -from .more_than_or_equal import MoreThanOrEqual -from .round_down_numbers import RoundDownNumbers -from .dated_exchange_rate import DatedExchangeRate -from .fetch_exchange_rate import FetchExchangeRate -from .format_phone_number import FormatPhoneNumber -from .set_contains_string import SetContainsString -from .pipeline_probability import PipelineProbability -from .round_nearest_numbers import RoundNearestNumbers -from .is_pipeline_stage_closed import IsPipelineStageClosed -from .has_plain_text_email_reply import HasPlainTextEmailReply -from .time_between_skip_weekends import TimeBetweenSkipWeekends -from .fetch_currency_decimal_places import FetchCurrencyDecimalPlaces -from .format_searchable_phone_number import FormatSearchablePhoneNumber -from .extract_most_recent_email_reply_html import ExtractMostRecentEmailReplyHTML -from .extract_most_recent_email_reply_text import ExtractMostRecentEmailReplyText -from .extract_most_recent_plain_text_email_reply import ExtractMostRecentPlainTextEmailReply diff --git a/src/hubspot_sdk/types/cms/time_between.py b/src/hubspot_sdk/types/cms/time_between.py deleted file mode 100644 index 0514c474..00000000 --- a/src/hubspot_sdk/types/cms/time_between.py +++ /dev/null @@ -1,256 +0,0 @@ -# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. - -from __future__ import annotations - -from typing import TYPE_CHECKING, List, Union, Optional -from typing_extensions import Literal, TypeAlias, TypeAliasType - -from pydantic import Field as FieldInfo - -from .now import Now -from .euler import Euler -from ..._compat import PYDANTIC_V1 -from ..._models import BaseModel -from .constant_number import ConstantNumber -from .constant_string import ConstantString -from .constant_boolean import ConstantBoolean -from .is_engagement_type import IsEngagementType -from .number_property_variable import NumberPropertyVariable -from .string_property_variable import StringPropertyVariable -from .boolean_property_variable import BooleanPropertyVariable -from .timestamp_of_property_variable import TimestampOfPropertyVariable -from .number_target_property_variable import NumberTargetPropertyVariable -from .string_target_property_variable import StringTargetPropertyVariable -from .boolean_target_property_variable import BooleanTargetPropertyVariable -from .fetch_single_currency_portal_currency import FetchSingleCurrencyPortalCurrency -from .timestamp_of_target_property_variable import TimestampOfTargetPropertyVariable - -__all__ = ["TimeBetween", "Input"] - -if TYPE_CHECKING or not PYDANTIC_V1: - Input = TypeAliasType( - "Input", - Union[ - ConstantBoolean, - ConstantNumber, - ConstantString, - BooleanPropertyVariable, - StringPropertyVariable, - NumberPropertyVariable, - TimestampOfPropertyVariable, - BooleanTargetPropertyVariable, - StringTargetPropertyVariable, - NumberTargetPropertyVariable, - TimestampOfTargetPropertyVariable, - "AddNumbers", - "SubtractNumbers", - "MultiplyNumbers", - "DivideNumbers", - "RoundDownNumbers", - "RoundUpNumbers", - "RoundNearestNumbers", - "UpperCase", - "LowerCase", - "ConcatStrings", - "Contains", - "BeginsWith", - "NumberToString", - "ParseNumber", - "FetchExchangeRate", - "FetchCurrencyDecimalPlaces", - FetchSingleCurrencyPortalCurrency, - "DatedExchangeRate", - "PipelineProbability", - "MaxNumbers", - "MinNumbers", - "LessThan", - "LessThanOrEqual", - "MoreThan", - "MoreThanOrEqual", - "NumberEquals", - "StringEquals", - "IsPipelineStageClosed", - "Not", - "Date", - "Month", - "Year", - Now, - "TimeBetween", - "TimeBetweenSkipWeekends", - "PeriodToMonths", - "PeriodToWeeks", - "And", - "Or", - "Xor", - "IfString", - "IfNumber", - "IfBoolean", - "IsPresent", - "HasEmailReply", - "HasPlainTextEmailReply", - "ExtractMostRecentEmailReplyHTML", - "ExtractMostRecentEmailReplyText", - "ExtractMostRecentPlainTextEmailReply", - "SetContainsString", - IsEngagementType, - "FormatFullName", - "FormatPhoneNumber", - "FormatSearchablePhoneNumber", - "AbsoluteValue", - "SquareRoot", - "Power", - "Substring", - Euler, - "StringLength", - "IsBlank", - "AddTime", - "SubtractTime", - ], - ) -else: - Input: TypeAlias = Union[ - ConstantBoolean, - ConstantNumber, - ConstantString, - BooleanPropertyVariable, - StringPropertyVariable, - NumberPropertyVariable, - TimestampOfPropertyVariable, - BooleanTargetPropertyVariable, - StringTargetPropertyVariable, - NumberTargetPropertyVariable, - TimestampOfTargetPropertyVariable, - "AddNumbers", - "SubtractNumbers", - "MultiplyNumbers", - "DivideNumbers", - "RoundDownNumbers", - "RoundUpNumbers", - "RoundNearestNumbers", - "UpperCase", - "LowerCase", - "ConcatStrings", - "Contains", - "BeginsWith", - "NumberToString", - "ParseNumber", - "FetchExchangeRate", - "FetchCurrencyDecimalPlaces", - FetchSingleCurrencyPortalCurrency, - "DatedExchangeRate", - "PipelineProbability", - "MaxNumbers", - "MinNumbers", - "LessThan", - "LessThanOrEqual", - "MoreThan", - "MoreThanOrEqual", - "NumberEquals", - "StringEquals", - "IsPipelineStageClosed", - "Not", - "Date", - "Month", - "Year", - Now, - "TimeBetween", - "TimeBetweenSkipWeekends", - "PeriodToMonths", - "PeriodToWeeks", - "And", - "Or", - "Xor", - "IfString", - "IfNumber", - "IfBoolean", - "IsPresent", - "HasEmailReply", - "HasPlainTextEmailReply", - "ExtractMostRecentEmailReplyHTML", - "ExtractMostRecentEmailReplyText", - "ExtractMostRecentPlainTextEmailReply", - "SetContainsString", - IsEngagementType, - "FormatFullName", - "FormatPhoneNumber", - "FormatSearchablePhoneNumber", - "AbsoluteValue", - "SquareRoot", - "Power", - "Substring", - Euler, - "StringLength", - "IsBlank", - "AddTime", - "SubtractTime", - ] - - -class TimeBetween(BaseModel): - operator: Literal["TIME_BETWEEN"] - - inputs: Optional[List[Input]] = None - - property_name: Optional[str] = FieldInfo(alias="propertyName", default=None) - - value: Optional[float] = None - - -from .or_ import Or -from .xor import Xor -from .and_ import And -from .date import Date -from .not_ import Not -from .year import Year -from .month import Month -from .power import Power -from .add_time import AddTime -from .contains import Contains -from .is_blank import IsBlank -from .if_number import IfNumber -from .if_string import IfString -from .less_than import LessThan -from .more_than import MoreThan -from .substring import Substring -from .if_boolean import IfBoolean -from .is_present import IsPresent -from .lower_case import LowerCase -from .upper_case import UpperCase -from .add_numbers import AddNumbers -from .begins_with import BeginsWith -from .max_numbers import MaxNumbers -from .min_numbers import MinNumbers -from .square_root import SquareRoot -from .parse_number import ParseNumber -from .number_equals import NumberEquals -from .string_equals import StringEquals -from .string_length import StringLength -from .subtract_time import SubtractTime -from .absolute_value import AbsoluteValue -from .concat_strings import ConcatStrings -from .divide_numbers import DivideNumbers -from .has_email_reply import HasEmailReply -from .period_to_weeks import PeriodToWeeks -from .format_full_name import FormatFullName -from .multiply_numbers import MultiplyNumbers -from .number_to_string import NumberToString -from .period_to_months import PeriodToMonths -from .round_up_numbers import RoundUpNumbers -from .subtract_numbers import SubtractNumbers -from .less_than_or_equal import LessThanOrEqual -from .more_than_or_equal import MoreThanOrEqual -from .round_down_numbers import RoundDownNumbers -from .dated_exchange_rate import DatedExchangeRate -from .fetch_exchange_rate import FetchExchangeRate -from .format_phone_number import FormatPhoneNumber -from .set_contains_string import SetContainsString -from .pipeline_probability import PipelineProbability -from .round_nearest_numbers import RoundNearestNumbers -from .is_pipeline_stage_closed import IsPipelineStageClosed -from .has_plain_text_email_reply import HasPlainTextEmailReply -from .time_between_skip_weekends import TimeBetweenSkipWeekends -from .fetch_currency_decimal_places import FetchCurrencyDecimalPlaces -from .format_searchable_phone_number import FormatSearchablePhoneNumber -from .extract_most_recent_email_reply_html import ExtractMostRecentEmailReplyHTML -from .extract_most_recent_email_reply_text import ExtractMostRecentEmailReplyText -from .extract_most_recent_plain_text_email_reply import ExtractMostRecentPlainTextEmailReply diff --git a/src/hubspot_sdk/types/cms/time_between_skip_weekends.py b/src/hubspot_sdk/types/cms/time_between_skip_weekends.py deleted file mode 100644 index a67a3a26..00000000 --- a/src/hubspot_sdk/types/cms/time_between_skip_weekends.py +++ /dev/null @@ -1,256 +0,0 @@ -# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. - -from __future__ import annotations - -from typing import TYPE_CHECKING, List, Union, Optional -from typing_extensions import Literal, TypeAlias, TypeAliasType - -from pydantic import Field as FieldInfo - -from .now import Now -from .euler import Euler -from ..._compat import PYDANTIC_V1 -from ..._models import BaseModel -from .constant_number import ConstantNumber -from .constant_string import ConstantString -from .constant_boolean import ConstantBoolean -from .is_engagement_type import IsEngagementType -from .number_property_variable import NumberPropertyVariable -from .string_property_variable import StringPropertyVariable -from .boolean_property_variable import BooleanPropertyVariable -from .timestamp_of_property_variable import TimestampOfPropertyVariable -from .number_target_property_variable import NumberTargetPropertyVariable -from .string_target_property_variable import StringTargetPropertyVariable -from .boolean_target_property_variable import BooleanTargetPropertyVariable -from .fetch_single_currency_portal_currency import FetchSingleCurrencyPortalCurrency -from .timestamp_of_target_property_variable import TimestampOfTargetPropertyVariable - -__all__ = ["TimeBetweenSkipWeekends", "Input"] - -if TYPE_CHECKING or not PYDANTIC_V1: - Input = TypeAliasType( - "Input", - Union[ - ConstantBoolean, - ConstantNumber, - ConstantString, - BooleanPropertyVariable, - StringPropertyVariable, - NumberPropertyVariable, - TimestampOfPropertyVariable, - BooleanTargetPropertyVariable, - StringTargetPropertyVariable, - NumberTargetPropertyVariable, - TimestampOfTargetPropertyVariable, - "AddNumbers", - "SubtractNumbers", - "MultiplyNumbers", - "DivideNumbers", - "RoundDownNumbers", - "RoundUpNumbers", - "RoundNearestNumbers", - "UpperCase", - "LowerCase", - "ConcatStrings", - "Contains", - "BeginsWith", - "NumberToString", - "ParseNumber", - "FetchExchangeRate", - "FetchCurrencyDecimalPlaces", - FetchSingleCurrencyPortalCurrency, - "DatedExchangeRate", - "PipelineProbability", - "MaxNumbers", - "MinNumbers", - "LessThan", - "LessThanOrEqual", - "MoreThan", - "MoreThanOrEqual", - "NumberEquals", - "StringEquals", - "IsPipelineStageClosed", - "Not", - "Date", - "Month", - "Year", - Now, - "TimeBetween", - "TimeBetweenSkipWeekends", - "PeriodToMonths", - "PeriodToWeeks", - "And", - "Or", - "Xor", - "IfString", - "IfNumber", - "IfBoolean", - "IsPresent", - "HasEmailReply", - "HasPlainTextEmailReply", - "ExtractMostRecentEmailReplyHTML", - "ExtractMostRecentEmailReplyText", - "ExtractMostRecentPlainTextEmailReply", - "SetContainsString", - IsEngagementType, - "FormatFullName", - "FormatPhoneNumber", - "FormatSearchablePhoneNumber", - "AbsoluteValue", - "SquareRoot", - "Power", - "Substring", - Euler, - "StringLength", - "IsBlank", - "AddTime", - "SubtractTime", - ], - ) -else: - Input: TypeAlias = Union[ - ConstantBoolean, - ConstantNumber, - ConstantString, - BooleanPropertyVariable, - StringPropertyVariable, - NumberPropertyVariable, - TimestampOfPropertyVariable, - BooleanTargetPropertyVariable, - StringTargetPropertyVariable, - NumberTargetPropertyVariable, - TimestampOfTargetPropertyVariable, - "AddNumbers", - "SubtractNumbers", - "MultiplyNumbers", - "DivideNumbers", - "RoundDownNumbers", - "RoundUpNumbers", - "RoundNearestNumbers", - "UpperCase", - "LowerCase", - "ConcatStrings", - "Contains", - "BeginsWith", - "NumberToString", - "ParseNumber", - "FetchExchangeRate", - "FetchCurrencyDecimalPlaces", - FetchSingleCurrencyPortalCurrency, - "DatedExchangeRate", - "PipelineProbability", - "MaxNumbers", - "MinNumbers", - "LessThan", - "LessThanOrEqual", - "MoreThan", - "MoreThanOrEqual", - "NumberEquals", - "StringEquals", - "IsPipelineStageClosed", - "Not", - "Date", - "Month", - "Year", - Now, - "TimeBetween", - "TimeBetweenSkipWeekends", - "PeriodToMonths", - "PeriodToWeeks", - "And", - "Or", - "Xor", - "IfString", - "IfNumber", - "IfBoolean", - "IsPresent", - "HasEmailReply", - "HasPlainTextEmailReply", - "ExtractMostRecentEmailReplyHTML", - "ExtractMostRecentEmailReplyText", - "ExtractMostRecentPlainTextEmailReply", - "SetContainsString", - IsEngagementType, - "FormatFullName", - "FormatPhoneNumber", - "FormatSearchablePhoneNumber", - "AbsoluteValue", - "SquareRoot", - "Power", - "Substring", - Euler, - "StringLength", - "IsBlank", - "AddTime", - "SubtractTime", - ] - - -class TimeBetweenSkipWeekends(BaseModel): - operator: Literal["TIME_BETWEEN_SKIP_WEEKENDS"] - - inputs: Optional[List[Input]] = None - - property_name: Optional[str] = FieldInfo(alias="propertyName", default=None) - - value: Optional[float] = None - - -from .or_ import Or -from .xor import Xor -from .and_ import And -from .date import Date -from .not_ import Not -from .year import Year -from .month import Month -from .power import Power -from .add_time import AddTime -from .contains import Contains -from .is_blank import IsBlank -from .if_number import IfNumber -from .if_string import IfString -from .less_than import LessThan -from .more_than import MoreThan -from .substring import Substring -from .if_boolean import IfBoolean -from .is_present import IsPresent -from .lower_case import LowerCase -from .upper_case import UpperCase -from .add_numbers import AddNumbers -from .begins_with import BeginsWith -from .max_numbers import MaxNumbers -from .min_numbers import MinNumbers -from .square_root import SquareRoot -from .parse_number import ParseNumber -from .time_between import TimeBetween -from .number_equals import NumberEquals -from .string_equals import StringEquals -from .string_length import StringLength -from .subtract_time import SubtractTime -from .absolute_value import AbsoluteValue -from .concat_strings import ConcatStrings -from .divide_numbers import DivideNumbers -from .has_email_reply import HasEmailReply -from .period_to_weeks import PeriodToWeeks -from .format_full_name import FormatFullName -from .multiply_numbers import MultiplyNumbers -from .number_to_string import NumberToString -from .period_to_months import PeriodToMonths -from .round_up_numbers import RoundUpNumbers -from .subtract_numbers import SubtractNumbers -from .less_than_or_equal import LessThanOrEqual -from .more_than_or_equal import MoreThanOrEqual -from .round_down_numbers import RoundDownNumbers -from .dated_exchange_rate import DatedExchangeRate -from .fetch_exchange_rate import FetchExchangeRate -from .format_phone_number import FormatPhoneNumber -from .set_contains_string import SetContainsString -from .pipeline_probability import PipelineProbability -from .round_nearest_numbers import RoundNearestNumbers -from .is_pipeline_stage_closed import IsPipelineStageClosed -from .has_plain_text_email_reply import HasPlainTextEmailReply -from .fetch_currency_decimal_places import FetchCurrencyDecimalPlaces -from .format_searchable_phone_number import FormatSearchablePhoneNumber -from .extract_most_recent_email_reply_html import ExtractMostRecentEmailReplyHTML -from .extract_most_recent_email_reply_text import ExtractMostRecentEmailReplyText -from .extract_most_recent_plain_text_email_reply import ExtractMostRecentPlainTextEmailReply diff --git a/src/hubspot_sdk/types/cms/timestamp_of_property_variable.py b/src/hubspot_sdk/types/cms/timestamp_of_property_variable.py deleted file mode 100644 index a2c1e47e..00000000 --- a/src/hubspot_sdk/types/cms/timestamp_of_property_variable.py +++ /dev/null @@ -1,18 +0,0 @@ -# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. - -from typing import Optional -from typing_extensions import Literal - -from pydantic import Field as FieldInfo - -from ..._models import BaseModel - -__all__ = ["TimestampOfPropertyVariable"] - - -class TimestampOfPropertyVariable(BaseModel): - operator: Literal["TIMESTAMP_OF_PROPERTY_VARIABLE"] - - property_name: Optional[str] = FieldInfo(alias="propertyName", default=None) - - value: Optional[str] = None diff --git a/src/hubspot_sdk/types/cms/timestamp_of_target_property_variable.py b/src/hubspot_sdk/types/cms/timestamp_of_target_property_variable.py deleted file mode 100644 index 1109c84a..00000000 --- a/src/hubspot_sdk/types/cms/timestamp_of_target_property_variable.py +++ /dev/null @@ -1,18 +0,0 @@ -# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. - -from typing import Optional -from typing_extensions import Literal - -from pydantic import Field as FieldInfo - -from ..._models import BaseModel - -__all__ = ["TimestampOfTargetPropertyVariable"] - - -class TimestampOfTargetPropertyVariable(BaseModel): - operator: Literal["TIMESTAMP_OF_TARGET_PROPERTY_VARIABLE"] - - property_name: Optional[str] = FieldInfo(alias="propertyName", default=None) - - value: Optional[str] = None diff --git a/src/hubspot_sdk/types/cms/upper_case.py b/src/hubspot_sdk/types/cms/upper_case.py deleted file mode 100644 index 484a753a..00000000 --- a/src/hubspot_sdk/types/cms/upper_case.py +++ /dev/null @@ -1,256 +0,0 @@ -# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. - -from __future__ import annotations - -from typing import TYPE_CHECKING, List, Union, Optional -from typing_extensions import Literal, TypeAlias, TypeAliasType - -from pydantic import Field as FieldInfo - -from .now import Now -from .euler import Euler -from ..._compat import PYDANTIC_V1 -from ..._models import BaseModel -from .constant_number import ConstantNumber -from .constant_string import ConstantString -from .constant_boolean import ConstantBoolean -from .is_engagement_type import IsEngagementType -from .number_property_variable import NumberPropertyVariable -from .string_property_variable import StringPropertyVariable -from .boolean_property_variable import BooleanPropertyVariable -from .timestamp_of_property_variable import TimestampOfPropertyVariable -from .number_target_property_variable import NumberTargetPropertyVariable -from .string_target_property_variable import StringTargetPropertyVariable -from .boolean_target_property_variable import BooleanTargetPropertyVariable -from .fetch_single_currency_portal_currency import FetchSingleCurrencyPortalCurrency -from .timestamp_of_target_property_variable import TimestampOfTargetPropertyVariable - -__all__ = ["UpperCase", "Input"] - -if TYPE_CHECKING or not PYDANTIC_V1: - Input = TypeAliasType( - "Input", - Union[ - ConstantBoolean, - ConstantNumber, - ConstantString, - BooleanPropertyVariable, - StringPropertyVariable, - NumberPropertyVariable, - TimestampOfPropertyVariable, - BooleanTargetPropertyVariable, - StringTargetPropertyVariable, - NumberTargetPropertyVariable, - TimestampOfTargetPropertyVariable, - "AddNumbers", - "SubtractNumbers", - "MultiplyNumbers", - "DivideNumbers", - "RoundDownNumbers", - "RoundUpNumbers", - "RoundNearestNumbers", - "UpperCase", - "LowerCase", - "ConcatStrings", - "Contains", - "BeginsWith", - "NumberToString", - "ParseNumber", - "FetchExchangeRate", - "FetchCurrencyDecimalPlaces", - FetchSingleCurrencyPortalCurrency, - "DatedExchangeRate", - "PipelineProbability", - "MaxNumbers", - "MinNumbers", - "LessThan", - "LessThanOrEqual", - "MoreThan", - "MoreThanOrEqual", - "NumberEquals", - "StringEquals", - "IsPipelineStageClosed", - "Not", - "Date", - "Month", - "Year", - Now, - "TimeBetween", - "TimeBetweenSkipWeekends", - "PeriodToMonths", - "PeriodToWeeks", - "And", - "Or", - "Xor", - "IfString", - "IfNumber", - "IfBoolean", - "IsPresent", - "HasEmailReply", - "HasPlainTextEmailReply", - "ExtractMostRecentEmailReplyHTML", - "ExtractMostRecentEmailReplyText", - "ExtractMostRecentPlainTextEmailReply", - "SetContainsString", - IsEngagementType, - "FormatFullName", - "FormatPhoneNumber", - "FormatSearchablePhoneNumber", - "AbsoluteValue", - "SquareRoot", - "Power", - "Substring", - Euler, - "StringLength", - "IsBlank", - "AddTime", - "SubtractTime", - ], - ) -else: - Input: TypeAlias = Union[ - ConstantBoolean, - ConstantNumber, - ConstantString, - BooleanPropertyVariable, - StringPropertyVariable, - NumberPropertyVariable, - TimestampOfPropertyVariable, - BooleanTargetPropertyVariable, - StringTargetPropertyVariable, - NumberTargetPropertyVariable, - TimestampOfTargetPropertyVariable, - "AddNumbers", - "SubtractNumbers", - "MultiplyNumbers", - "DivideNumbers", - "RoundDownNumbers", - "RoundUpNumbers", - "RoundNearestNumbers", - "UpperCase", - "LowerCase", - "ConcatStrings", - "Contains", - "BeginsWith", - "NumberToString", - "ParseNumber", - "FetchExchangeRate", - "FetchCurrencyDecimalPlaces", - FetchSingleCurrencyPortalCurrency, - "DatedExchangeRate", - "PipelineProbability", - "MaxNumbers", - "MinNumbers", - "LessThan", - "LessThanOrEqual", - "MoreThan", - "MoreThanOrEqual", - "NumberEquals", - "StringEquals", - "IsPipelineStageClosed", - "Not", - "Date", - "Month", - "Year", - Now, - "TimeBetween", - "TimeBetweenSkipWeekends", - "PeriodToMonths", - "PeriodToWeeks", - "And", - "Or", - "Xor", - "IfString", - "IfNumber", - "IfBoolean", - "IsPresent", - "HasEmailReply", - "HasPlainTextEmailReply", - "ExtractMostRecentEmailReplyHTML", - "ExtractMostRecentEmailReplyText", - "ExtractMostRecentPlainTextEmailReply", - "SetContainsString", - IsEngagementType, - "FormatFullName", - "FormatPhoneNumber", - "FormatSearchablePhoneNumber", - "AbsoluteValue", - "SquareRoot", - "Power", - "Substring", - Euler, - "StringLength", - "IsBlank", - "AddTime", - "SubtractTime", - ] - - -class UpperCase(BaseModel): - operator: Literal["UPPER_CASE"] - - inputs: Optional[List[Input]] = None - - property_name: Optional[str] = FieldInfo(alias="propertyName", default=None) - - value: Optional[str] = None - - -from .or_ import Or -from .xor import Xor -from .and_ import And -from .date import Date -from .not_ import Not -from .year import Year -from .month import Month -from .power import Power -from .add_time import AddTime -from .contains import Contains -from .is_blank import IsBlank -from .if_number import IfNumber -from .if_string import IfString -from .less_than import LessThan -from .more_than import MoreThan -from .substring import Substring -from .if_boolean import IfBoolean -from .is_present import IsPresent -from .lower_case import LowerCase -from .add_numbers import AddNumbers -from .begins_with import BeginsWith -from .max_numbers import MaxNumbers -from .min_numbers import MinNumbers -from .square_root import SquareRoot -from .parse_number import ParseNumber -from .time_between import TimeBetween -from .number_equals import NumberEquals -from .string_equals import StringEquals -from .string_length import StringLength -from .subtract_time import SubtractTime -from .absolute_value import AbsoluteValue -from .concat_strings import ConcatStrings -from .divide_numbers import DivideNumbers -from .has_email_reply import HasEmailReply -from .period_to_weeks import PeriodToWeeks -from .format_full_name import FormatFullName -from .multiply_numbers import MultiplyNumbers -from .number_to_string import NumberToString -from .period_to_months import PeriodToMonths -from .round_up_numbers import RoundUpNumbers -from .subtract_numbers import SubtractNumbers -from .less_than_or_equal import LessThanOrEqual -from .more_than_or_equal import MoreThanOrEqual -from .round_down_numbers import RoundDownNumbers -from .dated_exchange_rate import DatedExchangeRate -from .fetch_exchange_rate import FetchExchangeRate -from .format_phone_number import FormatPhoneNumber -from .set_contains_string import SetContainsString -from .pipeline_probability import PipelineProbability -from .round_nearest_numbers import RoundNearestNumbers -from .is_pipeline_stage_closed import IsPipelineStageClosed -from .has_plain_text_email_reply import HasPlainTextEmailReply -from .time_between_skip_weekends import TimeBetweenSkipWeekends -from .fetch_currency_decimal_places import FetchCurrencyDecimalPlaces -from .format_searchable_phone_number import FormatSearchablePhoneNumber -from .extract_most_recent_email_reply_html import ExtractMostRecentEmailReplyHTML -from .extract_most_recent_email_reply_text import ExtractMostRecentEmailReplyText -from .extract_most_recent_plain_text_email_reply import ExtractMostRecentPlainTextEmailReply diff --git a/src/hubspot_sdk/types/cms/variant_param.py b/src/hubspot_sdk/types/cms/variant_param.py index bcc7b121..4a3fcfb7 100644 --- a/src/hubspot_sdk/types/cms/variant_param.py +++ b/src/hubspot_sdk/types/cms/variant_param.py @@ -2,8 +2,9 @@ from __future__ import annotations +from typing import Dict from typing_extensions import TypeAlias __all__ = ["VariantParam"] -VariantParam: TypeAlias = object +VariantParam: TypeAlias = Dict[str, object] diff --git a/src/hubspot_sdk/types/cms/xor.py b/src/hubspot_sdk/types/cms/xor.py deleted file mode 100644 index d4ded592..00000000 --- a/src/hubspot_sdk/types/cms/xor.py +++ /dev/null @@ -1,258 +0,0 @@ -# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. - -from __future__ import annotations - -from typing import TYPE_CHECKING, List, Union, Optional -from typing_extensions import Literal, TypeAlias, TypeAliasType - -from pydantic import Field as FieldInfo - -from .now import Now -from .euler import Euler -from ..._compat import PYDANTIC_V1 -from ..._models import BaseModel -from .constant_number import ConstantNumber -from .constant_string import ConstantString -from .constant_boolean import ConstantBoolean -from .is_engagement_type import IsEngagementType -from .number_property_variable import NumberPropertyVariable -from .string_property_variable import StringPropertyVariable -from .boolean_property_variable import BooleanPropertyVariable -from .timestamp_of_property_variable import TimestampOfPropertyVariable -from .number_target_property_variable import NumberTargetPropertyVariable -from .string_target_property_variable import StringTargetPropertyVariable -from .boolean_target_property_variable import BooleanTargetPropertyVariable -from .fetch_single_currency_portal_currency import FetchSingleCurrencyPortalCurrency -from .timestamp_of_target_property_variable import TimestampOfTargetPropertyVariable - -__all__ = ["Xor", "Input"] - -if TYPE_CHECKING or not PYDANTIC_V1: - Input = TypeAliasType( - "Input", - Union[ - ConstantBoolean, - ConstantNumber, - ConstantString, - BooleanPropertyVariable, - StringPropertyVariable, - NumberPropertyVariable, - TimestampOfPropertyVariable, - BooleanTargetPropertyVariable, - StringTargetPropertyVariable, - NumberTargetPropertyVariable, - TimestampOfTargetPropertyVariable, - "AddNumbers", - "SubtractNumbers", - "MultiplyNumbers", - "DivideNumbers", - "RoundDownNumbers", - "RoundUpNumbers", - "RoundNearestNumbers", - "UpperCase", - "LowerCase", - "ConcatStrings", - "Contains", - "BeginsWith", - "NumberToString", - "ParseNumber", - "FetchExchangeRate", - "FetchCurrencyDecimalPlaces", - FetchSingleCurrencyPortalCurrency, - "DatedExchangeRate", - "PipelineProbability", - "MaxNumbers", - "MinNumbers", - "LessThan", - "LessThanOrEqual", - "MoreThan", - "MoreThanOrEqual", - "NumberEquals", - "StringEquals", - "IsPipelineStageClosed", - "Not", - "Date", - "Month", - "Year", - Now, - "TimeBetween", - "TimeBetweenSkipWeekends", - "PeriodToMonths", - "PeriodToWeeks", - "And", - "Or", - "Xor", - "IfString", - "IfNumber", - "IfBoolean", - "IsPresent", - "HasEmailReply", - "HasPlainTextEmailReply", - "ExtractMostRecentEmailReplyHTML", - "ExtractMostRecentEmailReplyText", - "ExtractMostRecentPlainTextEmailReply", - "SetContainsString", - IsEngagementType, - "FormatFullName", - "FormatPhoneNumber", - "FormatSearchablePhoneNumber", - "AbsoluteValue", - "SquareRoot", - "Power", - "Substring", - Euler, - "StringLength", - "IsBlank", - "AddTime", - "SubtractTime", - ], - ) -else: - Input: TypeAlias = Union[ - ConstantBoolean, - ConstantNumber, - ConstantString, - BooleanPropertyVariable, - StringPropertyVariable, - NumberPropertyVariable, - TimestampOfPropertyVariable, - BooleanTargetPropertyVariable, - StringTargetPropertyVariable, - NumberTargetPropertyVariable, - TimestampOfTargetPropertyVariable, - "AddNumbers", - "SubtractNumbers", - "MultiplyNumbers", - "DivideNumbers", - "RoundDownNumbers", - "RoundUpNumbers", - "RoundNearestNumbers", - "UpperCase", - "LowerCase", - "ConcatStrings", - "Contains", - "BeginsWith", - "NumberToString", - "ParseNumber", - "FetchExchangeRate", - "FetchCurrencyDecimalPlaces", - FetchSingleCurrencyPortalCurrency, - "DatedExchangeRate", - "PipelineProbability", - "MaxNumbers", - "MinNumbers", - "LessThan", - "LessThanOrEqual", - "MoreThan", - "MoreThanOrEqual", - "NumberEquals", - "StringEquals", - "IsPipelineStageClosed", - "Not", - "Date", - "Month", - "Year", - Now, - "TimeBetween", - "TimeBetweenSkipWeekends", - "PeriodToMonths", - "PeriodToWeeks", - "And", - "Or", - "Xor", - "IfString", - "IfNumber", - "IfBoolean", - "IsPresent", - "HasEmailReply", - "HasPlainTextEmailReply", - "ExtractMostRecentEmailReplyHTML", - "ExtractMostRecentEmailReplyText", - "ExtractMostRecentPlainTextEmailReply", - "SetContainsString", - IsEngagementType, - "FormatFullName", - "FormatPhoneNumber", - "FormatSearchablePhoneNumber", - "AbsoluteValue", - "SquareRoot", - "Power", - "Substring", - Euler, - "StringLength", - "IsBlank", - "AddTime", - "SubtractTime", - ] - - -class Xor(BaseModel): - enclosed_in_parentheses: bool = FieldInfo(alias="enclosedInParentheses") - - operator: Literal["XOR"] - - inputs: Optional[List[Input]] = None - - property_name: Optional[str] = FieldInfo(alias="propertyName", default=None) - - value: Optional[bool] = None - - -from .or_ import Or -from .and_ import And -from .date import Date -from .not_ import Not -from .year import Year -from .month import Month -from .power import Power -from .add_time import AddTime -from .contains import Contains -from .is_blank import IsBlank -from .if_number import IfNumber -from .if_string import IfString -from .less_than import LessThan -from .more_than import MoreThan -from .substring import Substring -from .if_boolean import IfBoolean -from .is_present import IsPresent -from .lower_case import LowerCase -from .upper_case import UpperCase -from .add_numbers import AddNumbers -from .begins_with import BeginsWith -from .max_numbers import MaxNumbers -from .min_numbers import MinNumbers -from .square_root import SquareRoot -from .parse_number import ParseNumber -from .time_between import TimeBetween -from .number_equals import NumberEquals -from .string_equals import StringEquals -from .string_length import StringLength -from .subtract_time import SubtractTime -from .absolute_value import AbsoluteValue -from .concat_strings import ConcatStrings -from .divide_numbers import DivideNumbers -from .has_email_reply import HasEmailReply -from .period_to_weeks import PeriodToWeeks -from .format_full_name import FormatFullName -from .multiply_numbers import MultiplyNumbers -from .number_to_string import NumberToString -from .period_to_months import PeriodToMonths -from .round_up_numbers import RoundUpNumbers -from .subtract_numbers import SubtractNumbers -from .less_than_or_equal import LessThanOrEqual -from .more_than_or_equal import MoreThanOrEqual -from .round_down_numbers import RoundDownNumbers -from .dated_exchange_rate import DatedExchangeRate -from .fetch_exchange_rate import FetchExchangeRate -from .format_phone_number import FormatPhoneNumber -from .set_contains_string import SetContainsString -from .pipeline_probability import PipelineProbability -from .round_nearest_numbers import RoundNearestNumbers -from .is_pipeline_stage_closed import IsPipelineStageClosed -from .has_plain_text_email_reply import HasPlainTextEmailReply -from .time_between_skip_weekends import TimeBetweenSkipWeekends -from .fetch_currency_decimal_places import FetchCurrencyDecimalPlaces -from .format_searchable_phone_number import FormatSearchablePhoneNumber -from .extract_most_recent_email_reply_html import ExtractMostRecentEmailReplyHTML -from .extract_most_recent_email_reply_text import ExtractMostRecentEmailReplyText -from .extract_most_recent_plain_text_email_reply import ExtractMostRecentPlainTextEmailReply diff --git a/src/hubspot_sdk/types/cms/year.py b/src/hubspot_sdk/types/cms/year.py deleted file mode 100644 index 41caff87..00000000 --- a/src/hubspot_sdk/types/cms/year.py +++ /dev/null @@ -1,256 +0,0 @@ -# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. - -from __future__ import annotations - -from typing import TYPE_CHECKING, List, Union, Optional -from typing_extensions import Literal, TypeAlias, TypeAliasType - -from pydantic import Field as FieldInfo - -from .now import Now -from .euler import Euler -from ..._compat import PYDANTIC_V1 -from ..._models import BaseModel -from .constant_number import ConstantNumber -from .constant_string import ConstantString -from .constant_boolean import ConstantBoolean -from .is_engagement_type import IsEngagementType -from .number_property_variable import NumberPropertyVariable -from .string_property_variable import StringPropertyVariable -from .boolean_property_variable import BooleanPropertyVariable -from .timestamp_of_property_variable import TimestampOfPropertyVariable -from .number_target_property_variable import NumberTargetPropertyVariable -from .string_target_property_variable import StringTargetPropertyVariable -from .boolean_target_property_variable import BooleanTargetPropertyVariable -from .fetch_single_currency_portal_currency import FetchSingleCurrencyPortalCurrency -from .timestamp_of_target_property_variable import TimestampOfTargetPropertyVariable - -__all__ = ["Year", "Input"] - -if TYPE_CHECKING or not PYDANTIC_V1: - Input = TypeAliasType( - "Input", - Union[ - ConstantBoolean, - ConstantNumber, - ConstantString, - BooleanPropertyVariable, - StringPropertyVariable, - NumberPropertyVariable, - TimestampOfPropertyVariable, - BooleanTargetPropertyVariable, - StringTargetPropertyVariable, - NumberTargetPropertyVariable, - TimestampOfTargetPropertyVariable, - "AddNumbers", - "SubtractNumbers", - "MultiplyNumbers", - "DivideNumbers", - "RoundDownNumbers", - "RoundUpNumbers", - "RoundNearestNumbers", - "UpperCase", - "LowerCase", - "ConcatStrings", - "Contains", - "BeginsWith", - "NumberToString", - "ParseNumber", - "FetchExchangeRate", - "FetchCurrencyDecimalPlaces", - FetchSingleCurrencyPortalCurrency, - "DatedExchangeRate", - "PipelineProbability", - "MaxNumbers", - "MinNumbers", - "LessThan", - "LessThanOrEqual", - "MoreThan", - "MoreThanOrEqual", - "NumberEquals", - "StringEquals", - "IsPipelineStageClosed", - "Not", - "Date", - "Month", - "Year", - Now, - "TimeBetween", - "TimeBetweenSkipWeekends", - "PeriodToMonths", - "PeriodToWeeks", - "And", - "Or", - "Xor", - "IfString", - "IfNumber", - "IfBoolean", - "IsPresent", - "HasEmailReply", - "HasPlainTextEmailReply", - "ExtractMostRecentEmailReplyHTML", - "ExtractMostRecentEmailReplyText", - "ExtractMostRecentPlainTextEmailReply", - "SetContainsString", - IsEngagementType, - "FormatFullName", - "FormatPhoneNumber", - "FormatSearchablePhoneNumber", - "AbsoluteValue", - "SquareRoot", - "Power", - "Substring", - Euler, - "StringLength", - "IsBlank", - "AddTime", - "SubtractTime", - ], - ) -else: - Input: TypeAlias = Union[ - ConstantBoolean, - ConstantNumber, - ConstantString, - BooleanPropertyVariable, - StringPropertyVariable, - NumberPropertyVariable, - TimestampOfPropertyVariable, - BooleanTargetPropertyVariable, - StringTargetPropertyVariable, - NumberTargetPropertyVariable, - TimestampOfTargetPropertyVariable, - "AddNumbers", - "SubtractNumbers", - "MultiplyNumbers", - "DivideNumbers", - "RoundDownNumbers", - "RoundUpNumbers", - "RoundNearestNumbers", - "UpperCase", - "LowerCase", - "ConcatStrings", - "Contains", - "BeginsWith", - "NumberToString", - "ParseNumber", - "FetchExchangeRate", - "FetchCurrencyDecimalPlaces", - FetchSingleCurrencyPortalCurrency, - "DatedExchangeRate", - "PipelineProbability", - "MaxNumbers", - "MinNumbers", - "LessThan", - "LessThanOrEqual", - "MoreThan", - "MoreThanOrEqual", - "NumberEquals", - "StringEquals", - "IsPipelineStageClosed", - "Not", - "Date", - "Month", - "Year", - Now, - "TimeBetween", - "TimeBetweenSkipWeekends", - "PeriodToMonths", - "PeriodToWeeks", - "And", - "Or", - "Xor", - "IfString", - "IfNumber", - "IfBoolean", - "IsPresent", - "HasEmailReply", - "HasPlainTextEmailReply", - "ExtractMostRecentEmailReplyHTML", - "ExtractMostRecentEmailReplyText", - "ExtractMostRecentPlainTextEmailReply", - "SetContainsString", - IsEngagementType, - "FormatFullName", - "FormatPhoneNumber", - "FormatSearchablePhoneNumber", - "AbsoluteValue", - "SquareRoot", - "Power", - "Substring", - Euler, - "StringLength", - "IsBlank", - "AddTime", - "SubtractTime", - ] - - -class Year(BaseModel): - operator: Literal["YEAR"] - - inputs: Optional[List[Input]] = None - - property_name: Optional[str] = FieldInfo(alias="propertyName", default=None) - - value: Optional[float] = None - - -from .or_ import Or -from .xor import Xor -from .and_ import And -from .date import Date -from .not_ import Not -from .month import Month -from .power import Power -from .add_time import AddTime -from .contains import Contains -from .is_blank import IsBlank -from .if_number import IfNumber -from .if_string import IfString -from .less_than import LessThan -from .more_than import MoreThan -from .substring import Substring -from .if_boolean import IfBoolean -from .is_present import IsPresent -from .lower_case import LowerCase -from .upper_case import UpperCase -from .add_numbers import AddNumbers -from .begins_with import BeginsWith -from .max_numbers import MaxNumbers -from .min_numbers import MinNumbers -from .square_root import SquareRoot -from .parse_number import ParseNumber -from .time_between import TimeBetween -from .number_equals import NumberEquals -from .string_equals import StringEquals -from .string_length import StringLength -from .subtract_time import SubtractTime -from .absolute_value import AbsoluteValue -from .concat_strings import ConcatStrings -from .divide_numbers import DivideNumbers -from .has_email_reply import HasEmailReply -from .period_to_weeks import PeriodToWeeks -from .format_full_name import FormatFullName -from .multiply_numbers import MultiplyNumbers -from .number_to_string import NumberToString -from .period_to_months import PeriodToMonths -from .round_up_numbers import RoundUpNumbers -from .subtract_numbers import SubtractNumbers -from .less_than_or_equal import LessThanOrEqual -from .more_than_or_equal import MoreThanOrEqual -from .round_down_numbers import RoundDownNumbers -from .dated_exchange_rate import DatedExchangeRate -from .fetch_exchange_rate import FetchExchangeRate -from .format_phone_number import FormatPhoneNumber -from .set_contains_string import SetContainsString -from .pipeline_probability import PipelineProbability -from .round_nearest_numbers import RoundNearestNumbers -from .is_pipeline_stage_closed import IsPipelineStageClosed -from .has_plain_text_email_reply import HasPlainTextEmailReply -from .time_between_skip_weekends import TimeBetweenSkipWeekends -from .fetch_currency_decimal_places import FetchCurrencyDecimalPlaces -from .format_searchable_phone_number import FormatSearchablePhoneNumber -from .extract_most_recent_email_reply_html import ExtractMostRecentEmailReplyHTML -from .extract_most_recent_email_reply_text import ExtractMostRecentEmailReplyText -from .extract_most_recent_plain_text_email_reply import ExtractMostRecentPlainTextEmailReply diff --git a/src/hubspot_sdk/types/conversations/pre_resolved_contact_param.py b/src/hubspot_sdk/types/conversations/pre_resolved_contact_param.py index 62af3bea..68ba0319 100644 --- a/src/hubspot_sdk/types/conversations/pre_resolved_contact_param.py +++ b/src/hubspot_sdk/types/conversations/pre_resolved_contact_param.py @@ -152,6 +152,7 @@ class PreResolvedContactParam(TypedDict, total=False): "hs_emailconfirmationstatus", "hs_employment_change_detected_date", "hs_enriched_email_bounce_detected", + "hs_excluded_from_cross_account_data_mirroring", "hs_facebook_ad_clicked", "hs_facebook_click_id", "hs_facebookid", @@ -172,6 +173,12 @@ class PreResolvedContactParam(TypedDict, total=False): "hs_first_outreach_date", "hs_first_subscription_create_date", "hs_full_name_or_email", + "hs_geohash_1", + "hs_geohash_2", + "hs_geohash_3", + "hs_geohash_4", + "hs_geohash_5", + "hs_geohash_6", "hs_google_click_id", "hs_googleplusid", "hs_gps_coordinates", diff --git a/src/hubspot_sdk/types/crm/__init__.py b/src/hubspot_sdk/types/crm/__init__.py index 7dcaa754..caa12b54 100644 --- a/src/hubspot_sdk/types/crm/__init__.py +++ b/src/hubspot_sdk/types/crm/__init__.py @@ -51,7 +51,6 @@ from .usage_for_object_type import UsageForObjectType as UsageForObjectType from .at_limit_record_sample import AtLimitRecordSample as AtLimitRecordSample from .flags_for_app_response import FlagsForAppResponse as FlagsForAppResponse -from .object_type_definition import ObjectTypeDefinition as ObjectTypeDefinition from .pipeline_create_params import PipelineCreateParams as PipelineCreateParams from .pipeline_delete_params import PipelineDeleteParams as PipelineDeleteParams from .pipeline_update_params import PipelineUpdateParams as PipelineUpdateParams @@ -143,6 +142,7 @@ from .timeline_create_event_params import TimelineCreateEventParams as TimelineCreateEventParams from .timeline_event_i_frame_param import TimelineEventIFrameParam as TimelineEventIFrameParam from .app_event_resolution_response import AppEventResolutionResponse as AppEventResolutionResponse +from .limits_object_type_definition import LimitsObjectTypeDefinition as LimitsObjectTypeDefinition from .list_create_id_mapping_params import ListCreateIDMappingParams as ListCreateIDMappingParams from .public_association_spec_param import PublicAssociationSpecParam as PublicAssociationSpecParam from .public_deal_split_input_param import PublicDealSplitInputParam as PublicDealSplitInputParam diff --git a/src/hubspot_sdk/types/crm/association_label_limit_response.py b/src/hubspot_sdk/types/crm/association_label_limit_response.py index 8a40265c..4766c36b 100644 --- a/src/hubspot_sdk/types/crm/association_label_limit_response.py +++ b/src/hubspot_sdk/types/crm/association_label_limit_response.py @@ -5,7 +5,7 @@ from pydantic import Field as FieldInfo from ..._models import BaseModel -from .object_type_definition import ObjectTypeDefinition +from .limits_object_type_definition import LimitsObjectTypeDefinition __all__ = ["AssociationLabelLimitResponse"] @@ -14,7 +14,7 @@ class AssociationLabelLimitResponse(BaseModel): all_labels: List[str] = FieldInfo(alias="allLabels") """A list of all association labels.""" - from_object_type: ObjectTypeDefinition = FieldInfo(alias="fromObjectType") + from_object_type: LimitsObjectTypeDefinition = FieldInfo(alias="fromObjectType") limit: int """The maximum number of association labels allowed.""" @@ -22,7 +22,7 @@ class AssociationLabelLimitResponse(BaseModel): percentage: float """The percentage of the association label limit that has been used.""" - to_object_type: ObjectTypeDefinition = FieldInfo(alias="toObjectType") + to_object_type: LimitsObjectTypeDefinition = FieldInfo(alias="toObjectType") usage: int """The current number of association labels used.""" diff --git a/src/hubspot_sdk/types/crm/batch_response_property.py b/src/hubspot_sdk/types/crm/batch_response_property.py index b27e20f1..fe0228a6 100644 --- a/src/hubspot_sdk/types/crm/batch_response_property.py +++ b/src/hubspot_sdk/types/crm/batch_response_property.py @@ -7,7 +7,7 @@ from pydantic import Field as FieldInfo from ..._models import BaseModel -from ..shared.property import Property +from ..shared.base_property import BaseProperty __all__ = ["BatchResponseProperty"] @@ -16,7 +16,7 @@ class BatchResponseProperty(BaseModel): completed_at: datetime = FieldInfo(alias="completedAt") """The timestamp indicating when the batch operation was completed.""" - results: List[Property] + results: List[BaseProperty] started_at: datetime = FieldInfo(alias="startedAt") """The timestamp indicating when the batch operation began processing.""" diff --git a/src/hubspot_sdk/types/crm/collection_response_property_no_paging.py b/src/hubspot_sdk/types/crm/collection_response_property_no_paging.py index df95c0b7..7433b87f 100644 --- a/src/hubspot_sdk/types/crm/collection_response_property_no_paging.py +++ b/src/hubspot_sdk/types/crm/collection_response_property_no_paging.py @@ -3,10 +3,10 @@ from typing import List from ..._models import BaseModel -from ..shared.property import Property +from ..shared.base_property import BaseProperty __all__ = ["CollectionResponsePropertyNoPaging"] class CollectionResponsePropertyNoPaging(BaseModel): - results: List[Property] + results: List[BaseProperty] diff --git a/src/hubspot_sdk/types/crm/object_type_definition.py b/src/hubspot_sdk/types/crm/limits_object_type_definition.py similarity index 85% rename from src/hubspot_sdk/types/crm/object_type_definition.py rename to src/hubspot_sdk/types/crm/limits_object_type_definition.py index d0a38913..96fff320 100644 --- a/src/hubspot_sdk/types/crm/object_type_definition.py +++ b/src/hubspot_sdk/types/crm/limits_object_type_definition.py @@ -4,10 +4,10 @@ from ..._models import BaseModel -__all__ = ["ObjectTypeDefinition"] +__all__ = ["LimitsObjectTypeDefinition"] -class ObjectTypeDefinition(BaseModel): +class LimitsObjectTypeDefinition(BaseModel): object_type_id: str = FieldInfo(alias="objectTypeId") """The unique identifier for the object type.""" diff --git a/src/hubspot_sdk/types/crm/object_schema.py b/src/hubspot_sdk/types/crm/object_schema.py index a843a08c..215df56e 100644 --- a/src/hubspot_sdk/types/crm/object_schema.py +++ b/src/hubspot_sdk/types/crm/object_schema.py @@ -6,8 +6,8 @@ from pydantic import Field as FieldInfo from ..._models import BaseModel -from ..shared.property import Property -from ..shared.association_definition import AssociationDefinition +from ..shared.base_property import BaseProperty +from ..shared.base_association_definition import BaseAssociationDefinition from ..shared.object_type_definition_labels import ObjectTypeDefinitionLabels __all__ = ["ObjectSchema"] @@ -24,7 +24,7 @@ class ObjectSchema(BaseModel): archived: bool - associations: List[AssociationDefinition] + associations: List[BaseAssociationDefinition] """Associations defined for a given object type.""" fully_qualified_name: str = FieldInfo(alias="fullyQualifiedName") @@ -37,7 +37,7 @@ class ObjectSchema(BaseModel): object_type_id: str = FieldInfo(alias="objectTypeId") - properties: List[Property] + properties: List[BaseProperty] """Properties defined for this object type.""" required_properties: List[str] = FieldInfo(alias="requiredProperties") diff --git a/src/hubspot_sdk/types/crm/public_ranged_time_operation.py b/src/hubspot_sdk/types/crm/public_ranged_time_operation.py index ea93d673..0309a1f7 100644 --- a/src/hubspot_sdk/types/crm/public_ranged_time_operation.py +++ b/src/hubspot_sdk/types/crm/public_ranged_time_operation.py @@ -27,7 +27,7 @@ class PublicRangedTimeOperation(BaseModel): lower_bound_time_point: LowerBoundTimePoint = FieldInfo(alias="lowerBoundTimePoint") """Defines the lower bound time point for the operation.""" - operation_type: str = FieldInfo(alias="operationType") + operation_type: Literal["TIME_RANGED"] = FieldInfo(alias="operationType") """Specifies the type of operation (TIME_RANGED).""" operator: str diff --git a/src/hubspot_sdk/types/crm/public_ranged_time_operation_param.py b/src/hubspot_sdk/types/crm/public_ranged_time_operation_param.py index 66d7fad3..cc652221 100644 --- a/src/hubspot_sdk/types/crm/public_ranged_time_operation_param.py +++ b/src/hubspot_sdk/types/crm/public_ranged_time_operation_param.py @@ -31,7 +31,7 @@ class PublicRangedTimeOperationParam(TypedDict, total=False): lower_bound_time_point: Required[Annotated[LowerBoundTimePoint, PropertyInfo(alias="lowerBoundTimePoint")]] """Defines the lower bound time point for the operation.""" - operation_type: Required[Annotated[str, PropertyInfo(alias="operationType")]] + operation_type: Required[Annotated[Literal["TIME_RANGED"], PropertyInfo(alias="operationType")]] """Specifies the type of operation (TIME_RANGED).""" operator: Required[str] diff --git a/src/hubspot_sdk/types/events/__init__.py b/src/hubspot_sdk/types/events/__init__.py index 40825660..37faea65 100644 --- a/src/hubspot_sdk/types/events/__init__.py +++ b/src/hubspot_sdk/types/events/__init__.py @@ -20,7 +20,6 @@ from .time_point_operation import TimePointOperation as TimePointOperation from .all_history_refine_by import AllHistoryRefineBy as AllHistoryRefineBy from .ranged_time_operation import RangedTimeOperation as RangedTimeOperation -from .association_definition import AssociationDefinition as AssociationDefinition from .definition_list_params import DefinitionListParams as DefinitionListParams from .external_unified_event import ExternalUnifiedEvent as ExternalUnifiedEvent from .occurrence_list_params import OccurrenceListParams as OccurrenceListParams @@ -48,6 +47,7 @@ from .definition_create_property_params import DefinitionCreatePropertyParams as DefinitionCreatePropertyParams from .definition_update_property_params import DefinitionUpdatePropertyParams as DefinitionUpdatePropertyParams from .visible_external_event_type_names import VisibleExternalEventTypeNames as VisibleExternalEventTypeNames +from .definitions_association_definition import DefinitionsAssociationDefinition as DefinitionsAssociationDefinition from .rolling_property_updated_operation import RollingPropertyUpdatedOperation as RollingPropertyUpdatedOperation from .absolute_ranged_timestamp_refine_by import AbsoluteRangedTimestampRefineBy as AbsoluteRangedTimestampRefineBy from .comparative_bool_property_operation import ComparativeBoolPropertyOperation as ComparativeBoolPropertyOperation diff --git a/src/hubspot_sdk/types/events/association_definition.py b/src/hubspot_sdk/types/events/definitions_association_definition.py similarity index 99% rename from src/hubspot_sdk/types/events/association_definition.py rename to src/hubspot_sdk/types/events/definitions_association_definition.py index af53f0cb..b3317077 100644 --- a/src/hubspot_sdk/types/events/association_definition.py +++ b/src/hubspot_sdk/types/events/definitions_association_definition.py @@ -7,10 +7,10 @@ from ..._models import BaseModel -__all__ = ["AssociationDefinition"] +__all__ = ["DefinitionsAssociationDefinition"] -class AssociationDefinition(BaseModel): +class DefinitionsAssociationDefinition(BaseModel): """The definition of an association""" id: int diff --git a/src/hubspot_sdk/types/events/external_behavioral_event_type_definition.py b/src/hubspot_sdk/types/events/external_behavioral_event_type_definition.py index 6ac8141b..bb6e4b8e 100644 --- a/src/hubspot_sdk/types/events/external_behavioral_event_type_definition.py +++ b/src/hubspot_sdk/types/events/external_behavioral_event_type_definition.py @@ -9,8 +9,8 @@ from pydantic import Field as FieldInfo from ..._models import BaseModel -from ..shared.property import Property -from .association_definition import AssociationDefinition +from ..shared.base_property import BaseProperty +from .definitions_association_definition import DefinitionsAssociationDefinition from .behavioral_event_type_definition_labels import BehavioralEventTypeDefinitionLabels from .external_object_resolution_mapping_response import ExternalObjectResolutionMappingResponse @@ -22,7 +22,7 @@ class ExternalBehavioralEventTypeDefinition(BaseModel): archived: bool - associations: List[AssociationDefinition] + associations: List[DefinitionsAssociationDefinition] fully_qualified_name: str = FieldInfo(alias="fullyQualifiedName") @@ -32,7 +32,7 @@ class ExternalBehavioralEventTypeDefinition(BaseModel): object_type_id: str = FieldInfo(alias="objectTypeId") - properties: List[Property] + properties: List[BaseProperty] combo_event_rules: Optional["ComboEventRuleBranch"] = FieldInfo(alias="comboEventRules", default=None) @@ -46,6 +46,10 @@ class ExternalBehavioralEventTypeDefinition(BaseModel): description: Optional[str] = None + detail_template: Optional[str] = FieldInfo(alias="detailTemplate", default=None) + + header_template: Optional[str] = FieldInfo(alias="headerTemplate", default=None) + primary_object: Optional[str] = FieldInfo(alias="primaryObject", default=None) primary_object_id: Optional[str] = FieldInfo(alias="primaryObjectId", default=None) diff --git a/src/hubspot_sdk/types/files/__init__.py b/src/hubspot_sdk/types/files/__init__.py index 1d222429..22d10fc4 100644 --- a/src/hubspot_sdk/types/files/__init__.py +++ b/src/hubspot_sdk/types/files/__init__.py @@ -4,7 +4,6 @@ from .file import File as File from .folder import Folder as Folder -from .file_stat import FileStat as FileStat from .signed_url import SignedURL as SignedURL from .file_action_response import FileActionResponse as FileActionResponse from .folder_search_params import FolderSearchParams as FolderSearchParams @@ -22,7 +21,6 @@ from .folder_update_by_id_params import FolderUpdateByIDParams as FolderUpdateByIDParams from .folder_update_task_locator import FolderUpdateTaskLocator as FolderUpdateTaskLocator from .import_from_url_task_locator import ImportFromURLTaskLocator as ImportFromURLTaskLocator -from .file_asset_get_by_path_params import FileAssetGetByPathParams as FileAssetGetByPathParams from .file_asset_get_signed_url_params import FileAssetGetSignedURLParams as FileAssetGetSignedURLParams from .folder_update_async_by_id_params import FolderUpdateAsyncByIDParams as FolderUpdateAsyncByIDParams from .file_asset_import_from_url_async_params import ( diff --git a/src/hubspot_sdk/types/files/file_asset_get_by_path_params.py b/src/hubspot_sdk/types/files/file_asset_get_by_path_params.py deleted file mode 100644 index cec595c5..00000000 --- a/src/hubspot_sdk/types/files/file_asset_get_by_path_params.py +++ /dev/null @@ -1,13 +0,0 @@ -# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. - -from __future__ import annotations - -from typing_extensions import TypedDict - -from ..._types import SequenceNotStr - -__all__ = ["FileAssetGetByPathParams"] - - -class FileAssetGetByPathParams(TypedDict, total=False): - properties: SequenceNotStr[str] diff --git a/src/hubspot_sdk/types/files/file_stat.py b/src/hubspot_sdk/types/files/file_stat.py deleted file mode 100644 index dc08268c..00000000 --- a/src/hubspot_sdk/types/files/file_stat.py +++ /dev/null @@ -1,15 +0,0 @@ -# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. - -from typing import Optional - -from .file import File -from .folder import Folder -from ..._models import BaseModel - -__all__ = ["FileStat"] - - -class FileStat(BaseModel): - file: Optional[File] = None - - folder: Optional[Folder] = None diff --git a/src/hubspot_sdk/types/scheduler/external_calendar_meeting_event_response_properties.py b/src/hubspot_sdk/types/scheduler/external_calendar_meeting_event_response_properties.py index 6501e427..06b55443 100644 --- a/src/hubspot_sdk/types/scheduler/external_calendar_meeting_event_response_properties.py +++ b/src/hubspot_sdk/types/scheduler/external_calendar_meeting_event_response_properties.py @@ -42,6 +42,7 @@ class ExternalCalendarMeetingEventResponseProperties(BaseModel): "COMPANIES", "COMPANY_FAMILIES", "COMPANY_INSIGHTS", + "CONNECTED_ACCOUNT", "CONTACTS", "CONTACTS_WEB", "CONTENT_MEMBERSHIP", diff --git a/src/hubspot_sdk/types/shared/__init__.py b/src/hubspot_sdk/types/shared/__init__.py index 90b714db..0b343112 100644 --- a/src/hubspot_sdk/types/shared/__init__.py +++ b/src/hubspot_sdk/types/shared/__init__.py @@ -1,14 +1,14 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from .error import Error as Error -from .option import Option as Option from .paging import Paging as Paging -from .property import Property as Property from .next_page import NextPage as NextPage +from .base_error import BaseError as BaseError +from .base_option import BaseOption as BaseOption from .error_detail import ErrorDetail as ErrorDetail from .option_input import OptionInput as OptionInput from .task_locator import TaskLocator as TaskLocator from .version_user import VersionUser as VersionUser +from .base_property import BaseProperty as BaseProperty from .previous_page import PreviousPage as PreviousPage from .property_name import PropertyName as PropertyName from .forward_paging import ForwardPaging as ForwardPaging @@ -22,11 +22,11 @@ from .batch_input_string import BatchInputString as BatchInputString from .property_group_create import PropertyGroupCreate as PropertyGroupCreate from .property_group_update import PropertyGroupUpdate as PropertyGroupUpdate -from .association_definition import AssociationDefinition as AssociationDefinition -from .object_type_definition import ObjectTypeDefinition as ObjectTypeDefinition from .automation_actions_option import AutomationActionsOption as AutomationActionsOption from .batch_input_property_name import BatchInputPropertyName as BatchInputPropertyName from .association_definition_egg import AssociationDefinitionEgg as AssociationDefinitionEgg +from .base_association_definition import BaseAssociationDefinition as BaseAssociationDefinition +from .base_object_type_definition import BaseObjectTypeDefinition as BaseObjectTypeDefinition from .batch_input_property_create import BatchInputPropertyCreate as BatchInputPropertyCreate from .batch_input_public_object_id import BatchInputPublicObjectID as BatchInputPublicObjectID from .object_type_definition_patch import ObjectTypeDefinitionPatch as ObjectTypeDefinitionPatch diff --git a/src/hubspot_sdk/types/shared/association_definition.py b/src/hubspot_sdk/types/shared/base_association_definition.py similarity index 92% rename from src/hubspot_sdk/types/shared/association_definition.py rename to src/hubspot_sdk/types/shared/base_association_definition.py index 3a77a49c..17149d2c 100644 --- a/src/hubspot_sdk/types/shared/association_definition.py +++ b/src/hubspot_sdk/types/shared/base_association_definition.py @@ -7,10 +7,10 @@ from ..._models import BaseModel -__all__ = ["AssociationDefinition"] +__all__ = ["BaseAssociationDefinition"] -class AssociationDefinition(BaseModel): +class BaseAssociationDefinition(BaseModel): """The definition of an association""" id: str diff --git a/src/hubspot_sdk/types/shared/error.py b/src/hubspot_sdk/types/shared/base_error.py similarity index 95% rename from src/hubspot_sdk/types/shared/error.py rename to src/hubspot_sdk/types/shared/base_error.py index 7bc9a4d3..345c2d84 100644 --- a/src/hubspot_sdk/types/shared/error.py +++ b/src/hubspot_sdk/types/shared/base_error.py @@ -7,10 +7,10 @@ from ..._models import BaseModel from .error_detail import ErrorDetail -__all__ = ["Error"] +__all__ = ["BaseError"] -class Error(BaseModel): +class BaseError(BaseModel): category: str """The error category""" diff --git a/src/hubspot_sdk/types/shared/object_type_definition.py b/src/hubspot_sdk/types/shared/base_object_type_definition.py similarity index 93% rename from src/hubspot_sdk/types/shared/object_type_definition.py rename to src/hubspot_sdk/types/shared/base_object_type_definition.py index 7d3fdb8f..70e2da55 100644 --- a/src/hubspot_sdk/types/shared/object_type_definition.py +++ b/src/hubspot_sdk/types/shared/base_object_type_definition.py @@ -8,10 +8,10 @@ from ..._models import BaseModel from .object_type_definition_labels import ObjectTypeDefinitionLabels -__all__ = ["ObjectTypeDefinition"] +__all__ = ["BaseObjectTypeDefinition"] -class ObjectTypeDefinition(BaseModel): +class BaseObjectTypeDefinition(BaseModel): id: str allows_sensitive_properties: bool = FieldInfo(alias="allowsSensitiveProperties") diff --git a/src/hubspot_sdk/types/shared/option.py b/src/hubspot_sdk/types/shared/base_option.py similarity index 94% rename from src/hubspot_sdk/types/shared/option.py rename to src/hubspot_sdk/types/shared/base_option.py index 5f1356a8..3bc3d25b 100644 --- a/src/hubspot_sdk/types/shared/option.py +++ b/src/hubspot_sdk/types/shared/base_option.py @@ -6,10 +6,10 @@ from ..._models import BaseModel -__all__ = ["Option"] +__all__ = ["BaseOption"] -class Option(BaseModel): +class BaseOption(BaseModel): """A HubSpot property option""" hidden: bool diff --git a/src/hubspot_sdk/types/shared/property.py b/src/hubspot_sdk/types/shared/base_property.py similarity index 97% rename from src/hubspot_sdk/types/shared/property.py rename to src/hubspot_sdk/types/shared/base_property.py index 077c1000..08a00185 100644 --- a/src/hubspot_sdk/types/shared/property.py +++ b/src/hubspot_sdk/types/shared/base_property.py @@ -6,14 +6,14 @@ from pydantic import Field as FieldInfo -from .option import Option from ..._models import BaseModel +from .base_option import BaseOption from .property_modification_metadata import PropertyModificationMetadata -__all__ = ["Property"] +__all__ = ["BaseProperty"] -class Property(BaseModel): +class BaseProperty(BaseModel): """A HubSpot property""" description: str @@ -34,7 +34,7 @@ class Property(BaseModel): the API. """ - options: List[Option] + options: List[BaseOption] """A list of valid options for the property. This field is required for enumerated properties, but will be empty for other diff --git a/src/hubspot_sdk/types/shared/property_value.py b/src/hubspot_sdk/types/shared/property_value.py index 40e50d34..23a11fd0 100644 --- a/src/hubspot_sdk/types/shared/property_value.py +++ b/src/hubspot_sdk/types/shared/property_value.py @@ -74,6 +74,7 @@ class PropertyValue(BaseModel): "COMPANIES", "COMPANY_FAMILIES", "COMPANY_INSIGHTS", + "CONNECTED_ACCOUNT", "CONTACTS", "CONTACTS_WEB", "CONTENT_MEMBERSHIP", diff --git a/src/hubspot_sdk/types/shared_params/property_value.py b/src/hubspot_sdk/types/shared_params/property_value.py index 8a7a3a4f..6af2f88b 100644 --- a/src/hubspot_sdk/types/shared_params/property_value.py +++ b/src/hubspot_sdk/types/shared_params/property_value.py @@ -75,6 +75,7 @@ class PropertyValue(TypedDict, total=False): "COMPANIES", "COMPANY_FAMILIES", "COMPANY_INSIGHTS", + "CONNECTED_ACCOUNT", "CONTACTS", "CONTACTS_WEB", "CONTENT_MEMBERSHIP", diff --git a/src/hubspot_sdk/types/webhooks/action_override_request.py b/src/hubspot_sdk/types/webhooks/action_override_request.py index c68d20c8..827fd760 100644 --- a/src/hubspot_sdk/types/webhooks/action_override_request.py +++ b/src/hubspot_sdk/types/webhooks/action_override_request.py @@ -18,18 +18,18 @@ class ActionOverrideRequest(BaseModel): list_ids: Optional[List[int]] = FieldInfo(alias="listIds", default=None) """ - An array of integers representing list IDs that are affected by the action - override. These IDs are in int64 format. + An array of integers representing list IDs that are associated with the action + override. The integers are in int64 format. """ object_ids: Optional[List[int]] = FieldInfo(alias="objectIds", default=None) """ An array of integers, each representing an object ID for which the action - override is applicable. These IDs are in int64 format. + override is applicable. The integers are in int64 format. """ properties: Optional[List[str]] = None - """ - An array of strings representing specific properties to be overridden in the - action. Each entry in the array corresponds to a property name. + """An array of strings representing the properties to be overridden in the action. + + Each string corresponds to a property name. """ diff --git a/src/hubspot_sdk/types/webhooks/batch_response_journal_fetch_response.py b/src/hubspot_sdk/types/webhooks/batch_response_journal_fetch_response.py index 5381710a..d1c2dd06 100644 --- a/src/hubspot_sdk/types/webhooks/batch_response_journal_fetch_response.py +++ b/src/hubspot_sdk/types/webhooks/batch_response_journal_fetch_response.py @@ -18,8 +18,8 @@ class BatchResponseJournalFetchResponse(BaseModel): results: List[JournalFetchResponse] """ - An array of journal fetch responses, each containing details about individual - journal entries. + An array of results from the batch operation, each represented as a + JournalFetchResponse object. """ started_at: datetime = FieldInfo(alias="startedAt") @@ -32,10 +32,7 @@ class BatchResponseJournalFetchResponse(BaseModel): """ links: Optional[Dict[str, str]] = None - """ - A map of link names to associated URIs, providing additional resources or - documentation related to the batch operation. - """ + """A map of link names to associated URIs related to the batch operation.""" requested_at: Optional[datetime] = FieldInfo(alias="requestedAt", default=None) """The date and time when the batch operation was requested, in ISO 8601 format.""" diff --git a/src/hubspot_sdk/types/webhooks/batch_response_subscription_response.py b/src/hubspot_sdk/types/webhooks/batch_response_subscription_response.py index 9d69199a..9b8b759a 100644 --- a/src/hubspot_sdk/types/webhooks/batch_response_subscription_response.py +++ b/src/hubspot_sdk/types/webhooks/batch_response_subscription_response.py @@ -18,8 +18,8 @@ class BatchResponseSubscriptionResponse(BaseModel): results: List[SubscriptionResponse] """ - An array of SubscriptionResponse objects, each representing the result of an - individual subscription update within the batch operation. + An array containing the results of the batch operation, with each item + representing an individual subscription response. """ started_at: datetime = FieldInfo(alias="startedAt") @@ -33,8 +33,8 @@ class BatchResponseSubscriptionResponse(BaseModel): links: Optional[Dict[str, str]] = None """ - A map of link names to associated URIs, providing additional information or - resources related to the batch operation. + A map of link names to associated URIs providing additional information about + the batch operation. """ requested_at: Optional[datetime] = FieldInfo(alias="requestedAt", default=None) diff --git a/src/hubspot_sdk/types/webhooks/collection_response_subscription_response_no_paging.py b/src/hubspot_sdk/types/webhooks/collection_response_subscription_response_no_paging.py index 04ff21d9..be0c56f0 100644 --- a/src/hubspot_sdk/types/webhooks/collection_response_subscription_response_no_paging.py +++ b/src/hubspot_sdk/types/webhooks/collection_response_subscription_response_no_paging.py @@ -12,5 +12,5 @@ class CollectionResponseSubscriptionResponseNoPaging(BaseModel): results: List[SubscriptionResponse1] """ An array of SubscriptionResponse objects, each representing a subscription's - details such as actions, app ID, and timestamps. + details such as actions, appId, createdAt, and other relevant properties. """ diff --git a/src/hubspot_sdk/types/webhooks/condition.py b/src/hubspot_sdk/types/webhooks/condition.py index 439616ce..719347b9 100644 --- a/src/hubspot_sdk/types/webhooks/condition.py +++ b/src/hubspot_sdk/types/webhooks/condition.py @@ -12,7 +12,10 @@ class Condition(BaseModel): filter_type: Literal["CRM_OBJECT_PROPERTY"] = FieldInfo(alias="filterType") - """A string representing the type of filter. Valid value is 'CRM_OBJECT_PROPERTY'.""" + """A string indicating the type of filter being applied. + + Valid value is 'CRM_OBJECT_PROPERTY'. + """ operator: Literal[ "CONTAINS", @@ -29,23 +32,26 @@ class Condition(BaseModel): "NOT_IN", "STARTS_WITH", ] - """A string indicating the operation to apply for filtering. + """A string specifying the operation to be performed in the condition. Valid values include 'EQ', 'N_EQ', 'LT', 'GT', 'LTE', 'GTE', 'CONTAINS', 'STARTS_WITH', 'ENDS_WITH', 'IN', 'NOT_IN', 'IS_EMPTY', and 'IS_NOT_EMPTY'. """ property: str - """A string specifying the property of the CRM object to be filtered.""" + """ + A string representing the specific property of the CRM object that the condition + applies to. + """ value: Optional[str] = None """ - A string representing the value to compare against the specified property when - filtering. + A string representing the value to be compared against the specified property + when using single-value operators. """ values: Optional[List[str]] = None """ - An array of strings, each representing a value to be used in the filtering - operation. + An array of strings used to specify multiple values for comparison when using + operators that support multiple values, such as 'IN' or 'NOT_IN'. """ diff --git a/src/hubspot_sdk/types/webhooks/condition_param.py b/src/hubspot_sdk/types/webhooks/condition_param.py index afd95868..04b3edf1 100644 --- a/src/hubspot_sdk/types/webhooks/condition_param.py +++ b/src/hubspot_sdk/types/webhooks/condition_param.py @@ -12,7 +12,10 @@ class ConditionParam(TypedDict, total=False): filter_type: Required[Annotated[Literal["CRM_OBJECT_PROPERTY"], PropertyInfo(alias="filterType")]] - """A string representing the type of filter. Valid value is 'CRM_OBJECT_PROPERTY'.""" + """A string indicating the type of filter being applied. + + Valid value is 'CRM_OBJECT_PROPERTY'. + """ operator: Required[ Literal[ @@ -31,23 +34,26 @@ class ConditionParam(TypedDict, total=False): "STARTS_WITH", ] ] - """A string indicating the operation to apply for filtering. + """A string specifying the operation to be performed in the condition. Valid values include 'EQ', 'N_EQ', 'LT', 'GT', 'LTE', 'GTE', 'CONTAINS', 'STARTS_WITH', 'ENDS_WITH', 'IN', 'NOT_IN', 'IS_EMPTY', and 'IS_NOT_EMPTY'. """ property: Required[str] - """A string specifying the property of the CRM object to be filtered.""" + """ + A string representing the specific property of the CRM object that the condition + applies to. + """ value: str """ - A string representing the value to compare against the specified property when - filtering. + A string representing the value to be compared against the specified property + when using single-value operators. """ values: SequenceNotStr[str] """ - An array of strings, each representing a value to be used in the filtering - operation. + An array of strings used to specify multiple values for comparison when using + operators that support multiple values, such as 'IN' or 'NOT_IN'. """ diff --git a/src/hubspot_sdk/types/webhooks/crm_object_snapshot_batch_response.py b/src/hubspot_sdk/types/webhooks/crm_object_snapshot_batch_response.py index ad2aaf72..e7bbadc6 100644 --- a/src/hubspot_sdk/types/webhooks/crm_object_snapshot_batch_response.py +++ b/src/hubspot_sdk/types/webhooks/crm_object_snapshot_batch_response.py @@ -13,6 +13,6 @@ class CrmObjectSnapshotBatchResponse(BaseModel): snapshot_responses: List[CrmObjectSnapshotResponse] = FieldInfo(alias="snapshotResponses") """ - An array of CrmObjectSnapshotResponse objects, each containing the details of a - single CRM object snapshot request. This property is required. + An array of CrmObjectSnapshotResponse objects, each representing the result of a + snapshot operation for a specific CRM object. This property is required. """ diff --git a/src/hubspot_sdk/types/webhooks/crm_object_snapshot_request_param.py b/src/hubspot_sdk/types/webhooks/crm_object_snapshot_request_param.py index 7a91747c..309fb0ac 100644 --- a/src/hubspot_sdk/types/webhooks/crm_object_snapshot_request_param.py +++ b/src/hubspot_sdk/types/webhooks/crm_object_snapshot_request_param.py @@ -14,17 +14,23 @@ class CrmObjectSnapshotRequestParam(TypedDict, total=False): object_id: Required[Annotated[int, PropertyInfo(alias="objectId")]] """ An integer representing the unique identifier of the CRM object for which the - snapshot is being requested. + snapshot is requested. """ object_type_id: Required[Annotated[str, PropertyInfo(alias="objectTypeId")]] - """A string representing the type identifier of the CRM object.""" + """ + A string representing the type identifier of the CRM object, specifying what + kind of object it is within HubSpot. + """ portal_id: Required[Annotated[int, PropertyInfo(alias="portalId")]] - """An integer representing the unique identifier of the HubSpot portal.""" + """ + An integer representing the unique identifier of the HubSpot account (portal) + where the CRM object resides. + """ properties: Required[SequenceNotStr[str]] """ - An array of strings, each representing a property of the CRM object to be - included in the snapshot. + An array of strings, each representing a property of the CRM object that should + be included in the snapshot. """ diff --git a/src/hubspot_sdk/types/webhooks/crm_object_snapshot_response.py b/src/hubspot_sdk/types/webhooks/crm_object_snapshot_response.py index 8b2a9fed..3bcb20fe 100644 --- a/src/hubspot_sdk/types/webhooks/crm_object_snapshot_response.py +++ b/src/hubspot_sdk/types/webhooks/crm_object_snapshot_response.py @@ -9,13 +9,25 @@ class CrmObjectSnapshotResponse(BaseModel): object_id: int = FieldInfo(alias="objectId") - """An integer representing the unique identifier for the CRM object.""" + """ + An integer representing the unique identifier of the CRM object for which the + snapshot is taken. + """ object_type_id: str = FieldInfo(alias="objectTypeId") - """A string representing the type identifier of the CRM object.""" + """ + A string indicating the type of the CRM object, such as contact, company, or + deal. + """ portal_id: int = FieldInfo(alias="portalId") - """An integer representing the unique identifier for the HubSpot portal.""" + """ + An integer representing the unique identifier of the HubSpot portal associated + with the CRM object. + """ snapshot_status_id: str = FieldInfo(alias="snapshotStatusId") - """A UUID string representing the status identifier of the snapshot.""" + """ + A UUID string representing the status identifier of the snapshot request, + indicating the current state of the snapshot process. + """ diff --git a/src/hubspot_sdk/types/webhooks/filter.py b/src/hubspot_sdk/types/webhooks/filter.py index 70b62e0c..521e142b 100644 --- a/src/hubspot_sdk/types/webhooks/filter.py +++ b/src/hubspot_sdk/types/webhooks/filter.py @@ -14,8 +14,8 @@ class Filter(BaseModel): """ conditions: List[Condition] - """An array of conditions that define the filter criteria. + """An array of conditions that define the criteria for the filter. - Each condition specifies a property, operator, and value to determine if a data - item meets the filter requirements. + Each condition specifies a property, an operator, and optionally a value or + values. """ diff --git a/src/hubspot_sdk/types/webhooks/filter_param.py b/src/hubspot_sdk/types/webhooks/filter_param.py index e4607f87..573559f8 100644 --- a/src/hubspot_sdk/types/webhooks/filter_param.py +++ b/src/hubspot_sdk/types/webhooks/filter_param.py @@ -16,8 +16,8 @@ class FilterParam(TypedDict, total=False): """ conditions: Required[Iterable[ConditionParam]] - """An array of conditions that define the filter criteria. + """An array of conditions that define the criteria for the filter. - Each condition specifies a property, operator, and value to determine if a data - item meets the filter requirements. + Each condition specifies a property, an operator, and optionally a value or + values. """ diff --git a/src/hubspot_sdk/types/webhooks/filter_response.py b/src/hubspot_sdk/types/webhooks/filter_response.py index eb907ecb..3d096714 100644 --- a/src/hubspot_sdk/types/webhooks/filter_response.py +++ b/src/hubspot_sdk/types/webhooks/filter_response.py @@ -13,10 +13,7 @@ class FilterResponse(BaseModel): """The unique identifier for the filter. It is an integer in int64 format.""" created_at: int = FieldInfo(alias="createdAt") - """ - A timestamp indicating when the filter was created, represented as an integer in - int64 format. - """ + """A Unix timestamp in milliseconds indicating when the filter was created.""" filter: Filter """ diff --git a/src/hubspot_sdk/types/webhooks/journal_fetch_response.py b/src/hubspot_sdk/types/webhooks/journal_fetch_response.py index 864b898e..6aad8c11 100644 --- a/src/hubspot_sdk/types/webhooks/journal_fetch_response.py +++ b/src/hubspot_sdk/types/webhooks/journal_fetch_response.py @@ -12,12 +12,12 @@ class JournalFetchResponse(BaseModel): current_offset: str = FieldInfo(alias="currentOffset") """ - A UUID string indicating the current offset in the journal data, used for - pagination. + The unique identifier for the current offset of the journal entry, formatted as + a UUID. """ expires_at: datetime = FieldInfo(alias="expiresAt") """The date and time when the URL will expire, in ISO 8601 format.""" url: str - """A string representing the URL where the fetched journal data can be accessed.""" + """The URL where the journal entry can be accessed. It is a string.""" diff --git a/src/hubspot_sdk/types/webhooks/snapshot_status_response.py b/src/hubspot_sdk/types/webhooks/snapshot_status_response.py index 40b7d1d4..2b2b1d46 100644 --- a/src/hubspot_sdk/types/webhooks/snapshot_status_response.py +++ b/src/hubspot_sdk/types/webhooks/snapshot_status_response.py @@ -12,16 +12,16 @@ class SnapshotStatusResponse(BaseModel): id: str - """The unique identifier for the snapshot operation, formatted as a UUID.""" + """The unique identifier for the snapshot operation, represented as a UUID.""" initiated_at: int = FieldInfo(alias="initiatedAt") """ - A Unix timestamp in milliseconds indicating when the snapshot operation was - initiated. + The timestamp indicating when the snapshot operation was initiated, represented + as a Unix timestamp in milliseconds. """ status: Literal["COMPLETED", "EXPIRED", "FAILED", "IN_PROGRESS", "PENDING"] - """The current status of the snapshot operation. + """The current status of the snapshot. Valid values include 'PENDING', 'IN_PROGRESS', 'COMPLETED', 'FAILED', and 'EXPIRED'. @@ -29,14 +29,14 @@ class SnapshotStatusResponse(BaseModel): completed_at: Optional[int] = FieldInfo(alias="completedAt", default=None) """ - A Unix timestamp in milliseconds indicating when the snapshot operation was - completed. + The timestamp indicating when the snapshot operation was completed, represented + as a Unix timestamp in milliseconds. """ error_code: Optional[Literal["INTERNAL_ERROR", "PERMISSION_DENIED", "TIMEOUT", "VALIDATION_ERROR"]] = FieldInfo( alias="errorCode", default=None ) - """The code representing any error that occurred during the snapshot operation. + """A code representing the error that occurred, if any. Possible values are 'TIMEOUT', 'VALIDATION_ERROR', 'INTERNAL_ERROR', and 'PERMISSION_DENIED'. @@ -45,5 +45,5 @@ class SnapshotStatusResponse(BaseModel): message: Optional[str] = None """ A descriptive message providing additional information about the snapshot - operation or any errors encountered. + operation or error. """ diff --git a/src/hubspot_sdk/types/webhooks/subscription_batch_update_request_param.py b/src/hubspot_sdk/types/webhooks/subscription_batch_update_request_param.py index 2eaa89d8..b7048dd0 100644 --- a/src/hubspot_sdk/types/webhooks/subscription_batch_update_request_param.py +++ b/src/hubspot_sdk/types/webhooks/subscription_batch_update_request_param.py @@ -9,7 +9,7 @@ class SubscriptionBatchUpdateRequestParam(TypedDict, total=False): id: Required[int] - """The unique identifier for the subscription to be updated. It is an integer.""" + """The unique identifier for the subscription. It is an integer.""" active: Required[bool] """A boolean indicating whether the subscription is active.""" diff --git a/src/hubspot_sdk/types/webhooks/subscription_list_response.py b/src/hubspot_sdk/types/webhooks/subscription_list_response.py index 0d433854..71dea75e 100644 --- a/src/hubspot_sdk/types/webhooks/subscription_list_response.py +++ b/src/hubspot_sdk/types/webhooks/subscription_list_response.py @@ -11,6 +11,6 @@ class SubscriptionListResponse(BaseModel): results: List[SubscriptionResponse] """ - An array of SubscriptionResponse objects, each representing a subscription - associated with the app. This property is required. + An array of subscription responses, each detailing a specific subscription's + properties and status. """ diff --git a/src/hubspot_sdk/types/webhooks/subscription_response.py b/src/hubspot_sdk/types/webhooks/subscription_response.py index ebd56b1f..d45146f5 100644 --- a/src/hubspot_sdk/types/webhooks/subscription_response.py +++ b/src/hubspot_sdk/types/webhooks/subscription_response.py @@ -13,7 +13,10 @@ class SubscriptionResponse(BaseModel): id: str - """The unique identifier for the subscription, represented as an integer.""" + """The unique identifier for the subscription. + + It is an integer formatted as int64. + """ active: bool """A boolean indicating whether the subscription is currently active.""" @@ -73,21 +76,21 @@ class SubscriptionResponse(BaseModel): ] = FieldInfo(alias="eventType") """The type of event that triggers the subscription. - Valid values include various object changes such as 'contact.propertyChange', - 'deal.creation', and 'ticket.deletion'. + Valid values include various property changes, creations, deletions, merges, + restores, and association changes for different HubSpot objects. """ event_type_name: Optional[str] = FieldInfo(alias="eventTypeName", default=None) - """A descriptive name for the event type.""" + """The name of the event type for the subscription.""" object_type_id: Optional[str] = FieldInfo(alias="objectTypeId", default=None) - """ - The identifier for the object type associated with the subscription, represented - as a string. + """The identifier for the object type associated with the subscription. + + It is a string. """ property_name: Optional[str] = FieldInfo(alias="propertyName", default=None) - """The name of the property associated with the event, if applicable.""" + """The name of the property associated with the subscription event, if applicable.""" updated_at: Optional[datetime] = FieldInfo(alias="updatedAt", default=None) """The date and time when the subscription was last updated, in ISO 8601 format.""" diff --git a/src/hubspot_sdk/types/webhooks/subscription_response_1.py b/src/hubspot_sdk/types/webhooks/subscription_response_1.py index 0f6c849c..b7c1c297 100644 --- a/src/hubspot_sdk/types/webhooks/subscription_response_1.py +++ b/src/hubspot_sdk/types/webhooks/subscription_response_1.py @@ -14,7 +14,10 @@ class SubscriptionResponse1(BaseModel): id: int - """The unique identifier for the subscription, represented as an integer.""" + """The unique identifier for the subscription. + + It is an integer formatted as int64. + """ actions: List[ Literal[ @@ -33,34 +36,35 @@ class SubscriptionResponse1(BaseModel): "GDPR_DELETE", ] ] - """ - An array of actions that trigger the subscription, such as 'CREATE', 'UPDATE', - 'DELETE', 'MERGE', 'RESTORE', 'ASSOCIATION_ADDED', 'ASSOCIATION_REMOVED', - 'SNAPSHOT', 'APP_INSTALL', 'APP_UNINSTALL', 'ADDED_TO_LIST', - 'REMOVED_FROM_LIST', and 'GDPR_DELETE'. + """A list of actions that trigger the subscription. + + Possible values include 'CREATE', 'UPDATE', 'DELETE', 'MERGE', 'RESTORE', + 'ASSOCIATION_ADDED', 'ASSOCIATION_REMOVED', 'SNAPSHOT', 'APP_INSTALL', + 'APP_UNINSTALL', 'ADDED_TO_LIST', 'REMOVED_FROM_LIST', and 'GDPR_DELETE'. """ app_id: int = FieldInfo(alias="appId") - """ - The unique identifier for the app associated with the subscription, represented - as an integer. + """The unique identifier for the app associated with the subscription. + + It is an integer formatted as int64. """ created_at: datetime = FieldInfo(alias="createdAt") """The date and time when the subscription was created, in ISO 8601 format.""" object_type_id: str = FieldInfo(alias="objectTypeId") - """ - The identifier for the object type associated with the subscription, represented - as a string. + """The identifier for the object type associated with the subscription. + + It is a string. """ subscription_type: Literal[ "APP_LIFECYCLE_EVENT", "ASSOCIATION", "EVENT", "GDPR_PRIVACY_DELETION", "LIST_MEMBERSHIP", "OBJECT" ] = FieldInfo(alias="subscriptionType") """ - The type of subscription, which can be one of 'OBJECT', 'ASSOCIATION', 'EVENT', - 'APP_LIFECYCLE_EVENT', 'LIST_MEMBERSHIP', or 'GDPR_PRIVACY_DELETION'. + The type of subscription, which can be one of the following: 'OBJECT', + 'ASSOCIATION', 'EVENT', 'APP_LIFECYCLE_EVENT', 'LIST_MEMBERSHIP', or + 'GDPR_PRIVACY_DELETION'. """ updated_at: datetime = FieldInfo(alias="updatedAt") @@ -73,39 +77,40 @@ class SubscriptionResponse1(BaseModel): """ associated_object_type_ids: Optional[List[str]] = FieldInfo(alias="associatedObjectTypeIds", default=None) - """ - An array of strings representing the associated object type IDs for the - subscription. - """ + """A list of associated object type IDs. Each ID is a string.""" created_by: Optional[int] = FieldInfo(alias="createdBy", default=None) - """ - The unique identifier for the user who created the subscription, represented as - an integer. + """The ID of the user who created the subscription. + + It is an integer formatted as int64. """ deleted_at: Optional[datetime] = FieldInfo(alias="deletedAt", default=None) - """The date and time when the subscription was deleted, in ISO 8601 format.""" + """ + The date and time when the subscription was deleted, in ISO 8601 format, if + applicable. + """ list_ids: Optional[List[int]] = FieldInfo(alias="listIds", default=None) - """ - An array of integers representing the list IDs associated with the subscription. + """A list of list IDs associated with the subscription. + + Each ID is an integer formatted as int64. """ object_ids: Optional[List[int]] = FieldInfo(alias="objectIds", default=None) - """ - An array of integers representing the object IDs associated with the - subscription. + """A list of object IDs associated with the subscription. + + Each ID is an integer formatted as int64. """ portal_id: Optional[int] = FieldInfo(alias="portalId", default=None) - """ - The unique identifier for the portal associated with the subscription, - represented as an integer. + """The unique identifier for the portal associated with the subscription. + + It is an integer formatted as int64. """ properties: Optional[List[str]] = None - """ - An array of strings representing the properties associated with the - subscription. + """A list of property names associated with the subscription. + + Each property is a string. """ diff --git a/src/hubspot_sdk/types/webhooks/throttling_settings.py b/src/hubspot_sdk/types/webhooks/throttling_settings.py index 92f01bf4..dea5cf11 100644 --- a/src/hubspot_sdk/types/webhooks/throttling_settings.py +++ b/src/hubspot_sdk/types/webhooks/throttling_settings.py @@ -9,4 +9,4 @@ class ThrottlingSettings(BaseModel): max_concurrent_requests: int = FieldInfo(alias="maxConcurrentRequests") - """The maximum number of concurrent requests allowed. It is an integer value.""" + """The maximum number of concurrent requests allowed. This is an integer value.""" diff --git a/src/hubspot_sdk/types/webhooks/throttling_settings_param.py b/src/hubspot_sdk/types/webhooks/throttling_settings_param.py index 6b3ea5f7..49711879 100644 --- a/src/hubspot_sdk/types/webhooks/throttling_settings_param.py +++ b/src/hubspot_sdk/types/webhooks/throttling_settings_param.py @@ -11,4 +11,4 @@ class ThrottlingSettingsParam(TypedDict, total=False): max_concurrent_requests: Required[Annotated[int, PropertyInfo(alias="maxConcurrentRequests")]] - """The maximum number of concurrent requests allowed. It is an integer value.""" + """The maximum number of concurrent requests allowed. This is an integer value.""" diff --git a/src/hubspot_sdk/types/webhooks/webhook_create_crm_snapshots_params.py b/src/hubspot_sdk/types/webhooks/webhook_create_crm_snapshots_params.py index 818b15a2..cd088ca2 100644 --- a/src/hubspot_sdk/types/webhooks/webhook_create_crm_snapshots_params.py +++ b/src/hubspot_sdk/types/webhooks/webhook_create_crm_snapshots_params.py @@ -17,5 +17,5 @@ class WebhookCreateCrmSnapshotsParams(TypedDict, total=False): ] """ An array of CrmObjectSnapshotRequest objects, each representing a request to - capture a snapshot of a specific CRM object. This property is required. + create a snapshot for a specific CRM object. This property is required. """ diff --git a/src/hubspot_sdk/types/webhooks/webhook_create_event_subscription_params.py b/src/hubspot_sdk/types/webhooks/webhook_create_event_subscription_params.py index d2194f62..45ce219c 100644 --- a/src/hubspot_sdk/types/webhooks/webhook_create_event_subscription_params.py +++ b/src/hubspot_sdk/types/webhooks/webhook_create_event_subscription_params.py @@ -11,10 +11,7 @@ class WebhookCreateEventSubscriptionParams(TypedDict, total=False): active: Required[bool] - """A boolean indicating whether the subscription is active. - - This field is required. - """ + """A boolean indicating whether the subscription is active.""" event_type: Required[ Annotated[ @@ -73,24 +70,21 @@ class WebhookCreateEventSubscriptionParams(TypedDict, total=False): ] """A string representing the type of event to subscribe to. - Valid values include various object changes such as 'contact.propertyChange', - 'deal.creation', and 'conversation.newMessage'. + Valid values include various property changes, creations, deletions, merges, + restorations, association changes, and event completions. """ event_type_name: Annotated[str, PropertyInfo(alias="eventTypeName")] - """A string that provides a human-readable name for the event type. - - This is optional. - """ + """A string providing a human-readable name for the event type.""" object_type_id: Annotated[str, PropertyInfo(alias="objectTypeId")] """ - A string representing the identifier of the object type for which the - subscription is being created. This is optional. + A string representing the ID of the object type associated with the + subscription. """ property_name: Annotated[str, PropertyInfo(alias="propertyName")] - """A string indicating the name of the property that triggers the event. - - This is optional and used when subscribing to property change events. + """ + A string indicating the specific property name related to the event type, if + applicable. """ diff --git a/src/hubspot_sdk/types/webhooks/webhook_create_subscription_filter_params.py b/src/hubspot_sdk/types/webhooks/webhook_create_subscription_filter_params.py index 2fb18d64..80de4322 100644 --- a/src/hubspot_sdk/types/webhooks/webhook_create_subscription_filter_params.py +++ b/src/hubspot_sdk/types/webhooks/webhook_create_subscription_filter_params.py @@ -21,5 +21,5 @@ class WebhookCreateSubscriptionFilterParams(TypedDict, total=False): subscription_id: Required[Annotated[int, PropertyInfo(alias="subscriptionId")]] """The unique identifier of the subscription to which the filter will be applied. - It is an integer in int64 format. + It is an integer formatted as int64. """ diff --git a/src/hubspot_sdk/types/webhooks/webhook_get_earliest_journal_batch_params.py b/src/hubspot_sdk/types/webhooks/webhook_get_earliest_journal_batch_params.py index adc943bb..46611a94 100644 --- a/src/hubspot_sdk/types/webhooks/webhook_get_earliest_journal_batch_params.py +++ b/src/hubspot_sdk/types/webhooks/webhook_get_earliest_journal_batch_params.py @@ -11,7 +11,7 @@ class WebhookGetEarliestJournalBatchParams(TypedDict, total=False): install_portal_id: Annotated[int, PropertyInfo(alias="installPortalId")] - """The ID of the portal installation for which to fetch the journal entries. + """The ID of the portal installation to filter the webhook journal entries by. - This is an optional parameter. + This is an integer value. """ diff --git a/src/hubspot_sdk/types/webhooks/webhook_get_earliest_journal_entry_params.py b/src/hubspot_sdk/types/webhooks/webhook_get_earliest_journal_entry_params.py index d4151efc..7bd708d0 100644 --- a/src/hubspot_sdk/types/webhooks/webhook_get_earliest_journal_entry_params.py +++ b/src/hubspot_sdk/types/webhooks/webhook_get_earliest_journal_entry_params.py @@ -13,5 +13,5 @@ class WebhookGetEarliestJournalEntryParams(TypedDict, total=False): install_portal_id: Annotated[int, PropertyInfo(alias="installPortalId")] """The ID of the portal installation to filter the journal entries. - This is an integer value. + It is an integer. """ diff --git a/src/hubspot_sdk/types/webhooks/webhook_get_earliest_local_journal_batch_params.py b/src/hubspot_sdk/types/webhooks/webhook_get_earliest_local_journal_batch_params.py index d212cefa..6b7d57d8 100644 --- a/src/hubspot_sdk/types/webhooks/webhook_get_earliest_local_journal_batch_params.py +++ b/src/hubspot_sdk/types/webhooks/webhook_get_earliest_local_journal_batch_params.py @@ -11,7 +11,7 @@ class WebhookGetEarliestLocalJournalBatchParams(TypedDict, total=False): install_portal_id: Annotated[int, PropertyInfo(alias="installPortalId")] - """The ID of the portal installation to filter the webhook journal entries. + """The ID of the portal where the webhooks are installed. - It is an integer value. + This is an integer value. """ diff --git a/src/hubspot_sdk/types/webhooks/webhook_get_earliest_local_journal_entry_params.py b/src/hubspot_sdk/types/webhooks/webhook_get_earliest_local_journal_entry_params.py index e634cb39..61e30ce9 100644 --- a/src/hubspot_sdk/types/webhooks/webhook_get_earliest_local_journal_entry_params.py +++ b/src/hubspot_sdk/types/webhooks/webhook_get_earliest_local_journal_entry_params.py @@ -11,7 +11,7 @@ class WebhookGetEarliestLocalJournalEntryParams(TypedDict, total=False): install_portal_id: Annotated[int, PropertyInfo(alias="installPortalId")] - """The ID of the portal for which to retrieve the earliest journal entry. + """The ID of the portal installation to filter the journal entries by. This parameter is optional and should be an integer. """ diff --git a/src/hubspot_sdk/types/webhooks/webhook_get_journal_batch_by_request_params.py b/src/hubspot_sdk/types/webhooks/webhook_get_journal_batch_by_request_params.py index 3d8ced3f..7ad12c68 100644 --- a/src/hubspot_sdk/types/webhooks/webhook_get_journal_batch_by_request_params.py +++ b/src/hubspot_sdk/types/webhooks/webhook_get_journal_batch_by_request_params.py @@ -15,7 +15,7 @@ class WebhookGetJournalBatchByRequestParams(TypedDict, total=False): """Strings to input.""" install_portal_id: Annotated[int, PropertyInfo(alias="installPortalId")] - """The ID of the portal from which to retrieve webhook journal entries. + """The ID of the portal where the webhooks are installed. This is an integer value. """ diff --git a/src/hubspot_sdk/types/webhooks/webhook_get_journal_batch_from_offset_params.py b/src/hubspot_sdk/types/webhooks/webhook_get_journal_batch_from_offset_params.py index 44b7cab5..175cb87c 100644 --- a/src/hubspot_sdk/types/webhooks/webhook_get_journal_batch_from_offset_params.py +++ b/src/hubspot_sdk/types/webhooks/webhook_get_journal_batch_from_offset_params.py @@ -13,8 +13,7 @@ class WebhookGetJournalBatchFromOffsetParams(TypedDict, total=False): offset: Required[str] install_portal_id: Annotated[int, PropertyInfo(alias="installPortalId")] - """The ID of the portal installation to filter the webhook journal entries. + """The ID of the portal installation. - This parameter is optional and is used to specify which portal's data to - retrieve. + This is an integer value used to specify the portal context for the request. """ diff --git a/src/hubspot_sdk/types/webhooks/webhook_get_latest_journal_batch_params.py b/src/hubspot_sdk/types/webhooks/webhook_get_latest_journal_batch_params.py index 48387288..ac126eed 100644 --- a/src/hubspot_sdk/types/webhooks/webhook_get_latest_journal_batch_params.py +++ b/src/hubspot_sdk/types/webhooks/webhook_get_latest_journal_batch_params.py @@ -13,6 +13,5 @@ class WebhookGetLatestJournalBatchParams(TypedDict, total=False): install_portal_id: Annotated[int, PropertyInfo(alias="installPortalId")] """The ID of the portal installation. - This parameter is optional and can be used to filter results by a specific - portal. + This is an integer value used to identify the specific portal. """ diff --git a/src/hubspot_sdk/types/webhooks/webhook_get_latest_journal_entry_params.py b/src/hubspot_sdk/types/webhooks/webhook_get_latest_journal_entry_params.py index 0a21ecc2..3f1fd243 100644 --- a/src/hubspot_sdk/types/webhooks/webhook_get_latest_journal_entry_params.py +++ b/src/hubspot_sdk/types/webhooks/webhook_get_latest_journal_entry_params.py @@ -11,7 +11,7 @@ class WebhookGetLatestJournalEntryParams(TypedDict, total=False): install_portal_id: Annotated[int, PropertyInfo(alias="installPortalId")] - """The ID of the portal for which to retrieve the latest journal entry. + """The ID of the portal installation to filter the journal entries. It is an integer value. """ diff --git a/src/hubspot_sdk/types/webhooks/webhook_get_latest_local_journal_batch_params.py b/src/hubspot_sdk/types/webhooks/webhook_get_latest_local_journal_batch_params.py index a16190c1..9fb3d173 100644 --- a/src/hubspot_sdk/types/webhooks/webhook_get_latest_local_journal_batch_params.py +++ b/src/hubspot_sdk/types/webhooks/webhook_get_latest_local_journal_batch_params.py @@ -11,7 +11,8 @@ class WebhookGetLatestLocalJournalBatchParams(TypedDict, total=False): install_portal_id: Annotated[int, PropertyInfo(alias="installPortalId")] - """The ID of the portal installation to filter the webhook journal entries. + """The ID of the portal installation. - It is an optional integer parameter. + This parameter is optional and used to filter the journal entries by a specific + portal. """ diff --git a/src/hubspot_sdk/types/webhooks/webhook_get_latest_local_journal_entry_params.py b/src/hubspot_sdk/types/webhooks/webhook_get_latest_local_journal_entry_params.py index e63da890..fd93911a 100644 --- a/src/hubspot_sdk/types/webhooks/webhook_get_latest_local_journal_entry_params.py +++ b/src/hubspot_sdk/types/webhooks/webhook_get_latest_local_journal_entry_params.py @@ -11,7 +11,7 @@ class WebhookGetLatestLocalJournalEntryParams(TypedDict, total=False): install_portal_id: Annotated[int, PropertyInfo(alias="installPortalId")] - """ - An integer representing the ID of the portal to filter the webhook journal - entries. + """The ID of the portal for which to retrieve the latest journal entries. + + This parameter is optional and should be an integer. """ diff --git a/src/hubspot_sdk/types/webhooks/webhook_get_local_journal_batch_by_request_params.py b/src/hubspot_sdk/types/webhooks/webhook_get_local_journal_batch_by_request_params.py index f94040ef..c51c5a6f 100644 --- a/src/hubspot_sdk/types/webhooks/webhook_get_local_journal_batch_by_request_params.py +++ b/src/hubspot_sdk/types/webhooks/webhook_get_local_journal_batch_by_request_params.py @@ -15,8 +15,7 @@ class WebhookGetLocalJournalBatchByRequestParams(TypedDict, total=False): """Strings to input.""" install_portal_id: Annotated[int, PropertyInfo(alias="installPortalId")] - """The ID of the portal where the webhook is installed. + """The ID of the portal where the webhooks are installed. - This parameter is optional and is used to specify the portal context for the - operation. + This parameter is optional and is used to specify the target portal. """ diff --git a/src/hubspot_sdk/types/webhooks/webhook_get_local_journal_batch_from_offset_params.py b/src/hubspot_sdk/types/webhooks/webhook_get_local_journal_batch_from_offset_params.py index 785398bc..4fcf48dc 100644 --- a/src/hubspot_sdk/types/webhooks/webhook_get_local_journal_batch_from_offset_params.py +++ b/src/hubspot_sdk/types/webhooks/webhook_get_local_journal_batch_from_offset_params.py @@ -13,7 +13,7 @@ class WebhookGetLocalJournalBatchFromOffsetParams(TypedDict, total=False): offset: Required[str] install_portal_id: Annotated[int, PropertyInfo(alias="installPortalId")] - """The ID of the portal where the webhooks are installed. + """The ID of the portal installation. - This is an integer value. + This is an integer value used to specify the portal context for the request. """ diff --git a/src/hubspot_sdk/types/webhooks/webhook_get_next_journal_entries_params.py b/src/hubspot_sdk/types/webhooks/webhook_get_next_journal_entries_params.py index a5a229ef..0554073d 100644 --- a/src/hubspot_sdk/types/webhooks/webhook_get_next_journal_entries_params.py +++ b/src/hubspot_sdk/types/webhooks/webhook_get_next_journal_entries_params.py @@ -11,7 +11,7 @@ class WebhookGetNextJournalEntriesParams(TypedDict, total=False): install_portal_id: Annotated[int, PropertyInfo(alias="installPortalId")] - """The ID of the portal where the webhooks are installed. + """The ID of the portal installation to filter the webhook journal entries. - This is an integer value. + This is an optional parameter. """ diff --git a/src/hubspot_sdk/types/webhooks/webhook_get_next_local_journal_entries_params.py b/src/hubspot_sdk/types/webhooks/webhook_get_next_local_journal_entries_params.py index 5651658b..b05dbed2 100644 --- a/src/hubspot_sdk/types/webhooks/webhook_get_next_local_journal_entries_params.py +++ b/src/hubspot_sdk/types/webhooks/webhook_get_next_local_journal_entries_params.py @@ -11,7 +11,4 @@ class WebhookGetNextLocalJournalEntriesParams(TypedDict, total=False): install_portal_id: Annotated[int, PropertyInfo(alias="installPortalId")] - """The ID of the portal installation to filter the journal entries by. - - This is an optional parameter. - """ + """The ID of the portal where the webhook is installed. This is an integer value.""" diff --git a/src/hubspot_sdk/types/webhooks/webhook_update_event_subscription_params.py b/src/hubspot_sdk/types/webhooks/webhook_update_event_subscription_params.py index 7741e18a..71cb33d6 100644 --- a/src/hubspot_sdk/types/webhooks/webhook_update_event_subscription_params.py +++ b/src/hubspot_sdk/types/webhooks/webhook_update_event_subscription_params.py @@ -13,8 +13,7 @@ class WebhookUpdateEventSubscriptionParams(TypedDict, total=False): app_id: Required[Annotated[int, PropertyInfo(alias="appId")]] active: bool - """Whether to activate or pause the webhook subscription. + """A boolean indicating whether the subscription is active. - If true, the subscription will send webhook notifications. If false, the - subscription is paused and will not send notifications. + If true, the subscription is active; if false, it is inactive. """ diff --git a/src/hubspot_sdk/types/webhooks/webhook_update_settings_params.py b/src/hubspot_sdk/types/webhooks/webhook_update_settings_params.py index 073aca60..7f3c21aa 100644 --- a/src/hubspot_sdk/types/webhooks/webhook_update_settings_params.py +++ b/src/hubspot_sdk/types/webhooks/webhook_update_settings_params.py @@ -12,10 +12,6 @@ class WebhookUpdateSettingsParams(TypedDict, total=False): target_url: Required[Annotated[str, PropertyInfo(alias="targetUrl")]] - """ - A publicly available URL for Hubspot to call where event payloads will be - delivered. See [link-so-some-doc](#) for details about the format of these event - payloads. - """ + """The URL to which webhook events will be sent. It is a string.""" throttling: Required[ThrottlingSettingsParam] diff --git a/tests/api_resources/cms/hubdb/test_rows.py b/tests/api_resources/cms/hubdb/test_rows.py index 9f0e0ae9..cc8d3355 100644 --- a/tests/api_resources/cms/hubdb/test_rows.py +++ b/tests/api_resources/cms/hubdb/test_rows.py @@ -28,7 +28,7 @@ def test_method_create(self, client: HubSpot) -> None: table_id_or_name="tableIdOrName", child_table_id=0, display_index=0, - values={"foo": {}}, + values={"foo": {"foo": "bar"}}, ) assert_matches_type(HubDBTableRowV3, row, path=["response"]) @@ -39,7 +39,7 @@ def test_method_create_with_all_params(self, client: HubSpot) -> None: table_id_or_name="tableIdOrName", child_table_id=0, display_index=0, - values={"foo": {}}, + values={"foo": {"foo": "bar"}}, name="name", path="path", ) @@ -52,7 +52,7 @@ def test_raw_response_create(self, client: HubSpot) -> None: table_id_or_name="tableIdOrName", child_table_id=0, display_index=0, - values={"foo": {}}, + values={"foo": {"foo": "bar"}}, ) assert response.is_closed is True @@ -67,7 +67,7 @@ def test_streaming_response_create(self, client: HubSpot) -> None: table_id_or_name="tableIdOrName", child_table_id=0, display_index=0, - values={"foo": {}}, + values={"foo": {"foo": "bar"}}, ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -85,7 +85,7 @@ def test_path_params_create(self, client: HubSpot) -> None: table_id_or_name="", child_table_id=0, display_index=0, - values={"foo": {}}, + values={"foo": {"foo": "bar"}}, ) @pytest.mark.skip(reason="Mock server tests are disabled") @@ -261,7 +261,7 @@ def test_method_create_batch(self, client: HubSpot) -> None: { "child_table_id": 0, "display_index": 0, - "values": {"foo": {}}, + "values": {"foo": {"foo": "bar"}}, } ], ) @@ -276,7 +276,7 @@ def test_raw_response_create_batch(self, client: HubSpot) -> None: { "child_table_id": 0, "display_index": 0, - "values": {"foo": {}}, + "values": {"foo": {"foo": "bar"}}, } ], ) @@ -295,7 +295,7 @@ def test_streaming_response_create_batch(self, client: HubSpot) -> None: { "child_table_id": 0, "display_index": 0, - "values": {"foo": {}}, + "values": {"foo": {"foo": "bar"}}, } ], ) as response: @@ -317,7 +317,7 @@ def test_path_params_create_batch(self, client: HubSpot) -> None: { "child_table_id": 0, "display_index": 0, - "values": {"foo": {}}, + "values": {"foo": {"foo": "bar"}}, } ], ) @@ -645,7 +645,7 @@ def test_method_replace_batch(self, client: HubSpot) -> None: { "child_table_id": 0, "display_index": 0, - "values": {"foo": {}}, + "values": {"foo": {"foo": "bar"}}, } ], ) @@ -660,7 +660,7 @@ def test_raw_response_replace_batch(self, client: HubSpot) -> None: { "child_table_id": 0, "display_index": 0, - "values": {"foo": {}}, + "values": {"foo": {"foo": "bar"}}, } ], ) @@ -679,7 +679,7 @@ def test_streaming_response_replace_batch(self, client: HubSpot) -> None: { "child_table_id": 0, "display_index": 0, - "values": {"foo": {}}, + "values": {"foo": {"foo": "bar"}}, } ], ) as response: @@ -701,7 +701,7 @@ def test_path_params_replace_batch(self, client: HubSpot) -> None: { "child_table_id": 0, "display_index": 0, - "values": {"foo": {}}, + "values": {"foo": {"foo": "bar"}}, } ], ) @@ -714,7 +714,7 @@ def test_method_replace_draft(self, client: HubSpot) -> None: table_id_or_name="tableIdOrName", child_table_id=0, display_index=0, - values={"foo": {}}, + values={"foo": {"foo": "bar"}}, ) assert_matches_type(HubDBTableRowV3, row, path=["response"]) @@ -726,7 +726,7 @@ def test_method_replace_draft_with_all_params(self, client: HubSpot) -> None: table_id_or_name="tableIdOrName", child_table_id=0, display_index=0, - values={"foo": {}}, + values={"foo": {"foo": "bar"}}, name="name", path="path", ) @@ -740,7 +740,7 @@ def test_raw_response_replace_draft(self, client: HubSpot) -> None: table_id_or_name="tableIdOrName", child_table_id=0, display_index=0, - values={"foo": {}}, + values={"foo": {"foo": "bar"}}, ) assert response.is_closed is True @@ -756,7 +756,7 @@ def test_streaming_response_replace_draft(self, client: HubSpot) -> None: table_id_or_name="tableIdOrName", child_table_id=0, display_index=0, - values={"foo": {}}, + values={"foo": {"foo": "bar"}}, ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -775,7 +775,7 @@ def test_path_params_replace_draft(self, client: HubSpot) -> None: table_id_or_name="", child_table_id=0, display_index=0, - values={"foo": {}}, + values={"foo": {"foo": "bar"}}, ) with pytest.raises(ValueError, match=r"Expected a non-empty value for `row_id` but received ''"): @@ -784,7 +784,7 @@ def test_path_params_replace_draft(self, client: HubSpot) -> None: table_id_or_name="tableIdOrName", child_table_id=0, display_index=0, - values={"foo": {}}, + values={"foo": {"foo": "bar"}}, ) @pytest.mark.skip(reason="Mock server tests are disabled") @@ -796,7 +796,7 @@ def test_method_update_batch(self, client: HubSpot) -> None: { "child_table_id": 0, "display_index": 0, - "values": {"foo": {}}, + "values": {"foo": {"foo": "bar"}}, } ], ) @@ -811,7 +811,7 @@ def test_raw_response_update_batch(self, client: HubSpot) -> None: { "child_table_id": 0, "display_index": 0, - "values": {"foo": {}}, + "values": {"foo": {"foo": "bar"}}, } ], ) @@ -830,7 +830,7 @@ def test_streaming_response_update_batch(self, client: HubSpot) -> None: { "child_table_id": 0, "display_index": 0, - "values": {"foo": {}}, + "values": {"foo": {"foo": "bar"}}, } ], ) as response: @@ -852,7 +852,7 @@ def test_path_params_update_batch(self, client: HubSpot) -> None: { "child_table_id": 0, "display_index": 0, - "values": {"foo": {}}, + "values": {"foo": {"foo": "bar"}}, } ], ) @@ -865,7 +865,7 @@ def test_method_update_draft(self, client: HubSpot) -> None: table_id_or_name="tableIdOrName", child_table_id=0, display_index=0, - values={"foo": {}}, + values={"foo": {"foo": "bar"}}, ) assert_matches_type(HubDBTableRowV3, row, path=["response"]) @@ -877,7 +877,7 @@ def test_method_update_draft_with_all_params(self, client: HubSpot) -> None: table_id_or_name="tableIdOrName", child_table_id=0, display_index=0, - values={"foo": {}}, + values={"foo": {"foo": "bar"}}, name="name", path="path", ) @@ -891,7 +891,7 @@ def test_raw_response_update_draft(self, client: HubSpot) -> None: table_id_or_name="tableIdOrName", child_table_id=0, display_index=0, - values={"foo": {}}, + values={"foo": {"foo": "bar"}}, ) assert response.is_closed is True @@ -907,7 +907,7 @@ def test_streaming_response_update_draft(self, client: HubSpot) -> None: table_id_or_name="tableIdOrName", child_table_id=0, display_index=0, - values={"foo": {}}, + values={"foo": {"foo": "bar"}}, ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -926,7 +926,7 @@ def test_path_params_update_draft(self, client: HubSpot) -> None: table_id_or_name="", child_table_id=0, display_index=0, - values={"foo": {}}, + values={"foo": {"foo": "bar"}}, ) with pytest.raises(ValueError, match=r"Expected a non-empty value for `row_id` but received ''"): @@ -935,7 +935,7 @@ def test_path_params_update_draft(self, client: HubSpot) -> None: table_id_or_name="tableIdOrName", child_table_id=0, display_index=0, - values={"foo": {}}, + values={"foo": {"foo": "bar"}}, ) @@ -951,7 +951,7 @@ async def test_method_create(self, async_client: AsyncHubSpot) -> None: table_id_or_name="tableIdOrName", child_table_id=0, display_index=0, - values={"foo": {}}, + values={"foo": {"foo": "bar"}}, ) assert_matches_type(HubDBTableRowV3, row, path=["response"]) @@ -962,7 +962,7 @@ async def test_method_create_with_all_params(self, async_client: AsyncHubSpot) - table_id_or_name="tableIdOrName", child_table_id=0, display_index=0, - values={"foo": {}}, + values={"foo": {"foo": "bar"}}, name="name", path="path", ) @@ -975,7 +975,7 @@ async def test_raw_response_create(self, async_client: AsyncHubSpot) -> None: table_id_or_name="tableIdOrName", child_table_id=0, display_index=0, - values={"foo": {}}, + values={"foo": {"foo": "bar"}}, ) assert response.is_closed is True @@ -990,7 +990,7 @@ async def test_streaming_response_create(self, async_client: AsyncHubSpot) -> No table_id_or_name="tableIdOrName", child_table_id=0, display_index=0, - values={"foo": {}}, + values={"foo": {"foo": "bar"}}, ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -1008,7 +1008,7 @@ async def test_path_params_create(self, async_client: AsyncHubSpot) -> None: table_id_or_name="", child_table_id=0, display_index=0, - values={"foo": {}}, + values={"foo": {"foo": "bar"}}, ) @pytest.mark.skip(reason="Mock server tests are disabled") @@ -1184,7 +1184,7 @@ async def test_method_create_batch(self, async_client: AsyncHubSpot) -> None: { "child_table_id": 0, "display_index": 0, - "values": {"foo": {}}, + "values": {"foo": {"foo": "bar"}}, } ], ) @@ -1199,7 +1199,7 @@ async def test_raw_response_create_batch(self, async_client: AsyncHubSpot) -> No { "child_table_id": 0, "display_index": 0, - "values": {"foo": {}}, + "values": {"foo": {"foo": "bar"}}, } ], ) @@ -1218,7 +1218,7 @@ async def test_streaming_response_create_batch(self, async_client: AsyncHubSpot) { "child_table_id": 0, "display_index": 0, - "values": {"foo": {}}, + "values": {"foo": {"foo": "bar"}}, } ], ) as response: @@ -1240,7 +1240,7 @@ async def test_path_params_create_batch(self, async_client: AsyncHubSpot) -> Non { "child_table_id": 0, "display_index": 0, - "values": {"foo": {}}, + "values": {"foo": {"foo": "bar"}}, } ], ) @@ -1568,7 +1568,7 @@ async def test_method_replace_batch(self, async_client: AsyncHubSpot) -> None: { "child_table_id": 0, "display_index": 0, - "values": {"foo": {}}, + "values": {"foo": {"foo": "bar"}}, } ], ) @@ -1583,7 +1583,7 @@ async def test_raw_response_replace_batch(self, async_client: AsyncHubSpot) -> N { "child_table_id": 0, "display_index": 0, - "values": {"foo": {}}, + "values": {"foo": {"foo": "bar"}}, } ], ) @@ -1602,7 +1602,7 @@ async def test_streaming_response_replace_batch(self, async_client: AsyncHubSpot { "child_table_id": 0, "display_index": 0, - "values": {"foo": {}}, + "values": {"foo": {"foo": "bar"}}, } ], ) as response: @@ -1624,7 +1624,7 @@ async def test_path_params_replace_batch(self, async_client: AsyncHubSpot) -> No { "child_table_id": 0, "display_index": 0, - "values": {"foo": {}}, + "values": {"foo": {"foo": "bar"}}, } ], ) @@ -1637,7 +1637,7 @@ async def test_method_replace_draft(self, async_client: AsyncHubSpot) -> None: table_id_or_name="tableIdOrName", child_table_id=0, display_index=0, - values={"foo": {}}, + values={"foo": {"foo": "bar"}}, ) assert_matches_type(HubDBTableRowV3, row, path=["response"]) @@ -1649,7 +1649,7 @@ async def test_method_replace_draft_with_all_params(self, async_client: AsyncHub table_id_or_name="tableIdOrName", child_table_id=0, display_index=0, - values={"foo": {}}, + values={"foo": {"foo": "bar"}}, name="name", path="path", ) @@ -1663,7 +1663,7 @@ async def test_raw_response_replace_draft(self, async_client: AsyncHubSpot) -> N table_id_or_name="tableIdOrName", child_table_id=0, display_index=0, - values={"foo": {}}, + values={"foo": {"foo": "bar"}}, ) assert response.is_closed is True @@ -1679,7 +1679,7 @@ async def test_streaming_response_replace_draft(self, async_client: AsyncHubSpot table_id_or_name="tableIdOrName", child_table_id=0, display_index=0, - values={"foo": {}}, + values={"foo": {"foo": "bar"}}, ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -1698,7 +1698,7 @@ async def test_path_params_replace_draft(self, async_client: AsyncHubSpot) -> No table_id_or_name="", child_table_id=0, display_index=0, - values={"foo": {}}, + values={"foo": {"foo": "bar"}}, ) with pytest.raises(ValueError, match=r"Expected a non-empty value for `row_id` but received ''"): @@ -1707,7 +1707,7 @@ async def test_path_params_replace_draft(self, async_client: AsyncHubSpot) -> No table_id_or_name="tableIdOrName", child_table_id=0, display_index=0, - values={"foo": {}}, + values={"foo": {"foo": "bar"}}, ) @pytest.mark.skip(reason="Mock server tests are disabled") @@ -1719,7 +1719,7 @@ async def test_method_update_batch(self, async_client: AsyncHubSpot) -> None: { "child_table_id": 0, "display_index": 0, - "values": {"foo": {}}, + "values": {"foo": {"foo": "bar"}}, } ], ) @@ -1734,7 +1734,7 @@ async def test_raw_response_update_batch(self, async_client: AsyncHubSpot) -> No { "child_table_id": 0, "display_index": 0, - "values": {"foo": {}}, + "values": {"foo": {"foo": "bar"}}, } ], ) @@ -1753,7 +1753,7 @@ async def test_streaming_response_update_batch(self, async_client: AsyncHubSpot) { "child_table_id": 0, "display_index": 0, - "values": {"foo": {}}, + "values": {"foo": {"foo": "bar"}}, } ], ) as response: @@ -1775,7 +1775,7 @@ async def test_path_params_update_batch(self, async_client: AsyncHubSpot) -> Non { "child_table_id": 0, "display_index": 0, - "values": {"foo": {}}, + "values": {"foo": {"foo": "bar"}}, } ], ) @@ -1788,7 +1788,7 @@ async def test_method_update_draft(self, async_client: AsyncHubSpot) -> None: table_id_or_name="tableIdOrName", child_table_id=0, display_index=0, - values={"foo": {}}, + values={"foo": {"foo": "bar"}}, ) assert_matches_type(HubDBTableRowV3, row, path=["response"]) @@ -1800,7 +1800,7 @@ async def test_method_update_draft_with_all_params(self, async_client: AsyncHubS table_id_or_name="tableIdOrName", child_table_id=0, display_index=0, - values={"foo": {}}, + values={"foo": {"foo": "bar"}}, name="name", path="path", ) @@ -1814,7 +1814,7 @@ async def test_raw_response_update_draft(self, async_client: AsyncHubSpot) -> No table_id_or_name="tableIdOrName", child_table_id=0, display_index=0, - values={"foo": {}}, + values={"foo": {"foo": "bar"}}, ) assert response.is_closed is True @@ -1830,7 +1830,7 @@ async def test_streaming_response_update_draft(self, async_client: AsyncHubSpot) table_id_or_name="tableIdOrName", child_table_id=0, display_index=0, - values={"foo": {}}, + values={"foo": {"foo": "bar"}}, ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -1849,7 +1849,7 @@ async def test_path_params_update_draft(self, async_client: AsyncHubSpot) -> Non table_id_or_name="", child_table_id=0, display_index=0, - values={"foo": {}}, + values={"foo": {"foo": "bar"}}, ) with pytest.raises(ValueError, match=r"Expected a non-empty value for `row_id` but received ''"): @@ -1858,5 +1858,5 @@ async def test_path_params_update_draft(self, async_client: AsyncHubSpot) -> Non table_id_or_name="tableIdOrName", child_table_id=0, display_index=0, - values={"foo": {}}, + values={"foo": {"foo": "bar"}}, ) diff --git a/tests/api_resources/cms/test_media_bridge.py b/tests/api_resources/cms/test_media_bridge.py index 670c21a3..551c7605 100644 --- a/tests/api_resources/cms/test_media_bridge.py +++ b/tests/api_resources/cms/test_media_bridge.py @@ -10,10 +10,10 @@ from hubspot_sdk import HubSpot, AsyncHubSpot from tests.utils import assert_matches_type from hubspot_sdk.types.cms import ( - Property, ObjectSchema, MediaPlayedEvent, AttentionSpanEvent, + MediaBridgeProperty, EventVisibilityChange, EventVisibilityResponse, ObjectDefinitionResponse, @@ -27,8 +27,8 @@ ) from hubspot_sdk.types.shared import ( PropertyGroup, - ObjectTypeDefinition, - AssociationDefinition, + BaseObjectTypeDefinition, + BaseAssociationDefinition, CollectionResponsePropertyGroupNoPaging, ) @@ -49,7 +49,7 @@ def test_method_create_association(self, client: HubSpot) -> None: from_object_type_id="fromObjectTypeId", to_object_type_id="toObjectTypeId", ) - assert_matches_type(AssociationDefinition, media_bridge, path=["response"]) + assert_matches_type(BaseAssociationDefinition, media_bridge, path=["response"]) @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize @@ -61,7 +61,7 @@ def test_method_create_association_with_all_params(self, client: HubSpot) -> Non to_object_type_id="toObjectTypeId", name="name", ) - assert_matches_type(AssociationDefinition, media_bridge, path=["response"]) + assert_matches_type(BaseAssociationDefinition, media_bridge, path=["response"]) @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize @@ -76,7 +76,7 @@ def test_raw_response_create_association(self, client: HubSpot) -> None: assert response.is_closed is True assert response.http_request.headers.get("X-Stainless-Lang") == "python" media_bridge = response.parse() - assert_matches_type(AssociationDefinition, media_bridge, path=["response"]) + assert_matches_type(BaseAssociationDefinition, media_bridge, path=["response"]) @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize @@ -91,7 +91,7 @@ def test_streaming_response_create_association(self, client: HubSpot) -> None: assert response.http_request.headers.get("X-Stainless-Lang") == "python" media_bridge = response.parse() - assert_matches_type(AssociationDefinition, media_bridge, path=["response"]) + assert_matches_type(BaseAssociationDefinition, media_bridge, path=["response"]) assert cast(Any, response.is_closed) is True @@ -419,7 +419,7 @@ def test_method_create_property(self, client: HubSpot) -> None: name="name", type="bool", ) - assert_matches_type(Property, media_bridge, path=["response"]) + assert_matches_type(MediaBridgeProperty, media_bridge, path=["response"]) @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize @@ -454,7 +454,7 @@ def test_method_create_property_with_all_params(self, client: HubSpot) -> None: referenced_object_type="referencedObjectType", show_currency_symbol=True, ) - assert_matches_type(Property, media_bridge, path=["response"]) + assert_matches_type(MediaBridgeProperty, media_bridge, path=["response"]) @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize @@ -472,7 +472,7 @@ def test_raw_response_create_property(self, client: HubSpot) -> None: assert response.is_closed is True assert response.http_request.headers.get("X-Stainless-Lang") == "python" media_bridge = response.parse() - assert_matches_type(Property, media_bridge, path=["response"]) + assert_matches_type(MediaBridgeProperty, media_bridge, path=["response"]) @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize @@ -490,7 +490,7 @@ def test_streaming_response_create_property(self, client: HubSpot) -> None: assert response.http_request.headers.get("X-Stainless-Lang") == "python" media_bridge = response.parse() - assert_matches_type(Property, media_bridge, path=["response"]) + assert_matches_type(MediaBridgeProperty, media_bridge, path=["response"]) assert cast(Any, response.is_closed) is True @@ -580,7 +580,7 @@ def test_method_create_video_association_definition(self, client: HubSpot) -> No media_bridge = client.cms.media_bridge.create_video_association_definition( 0, ) - assert_matches_type(AssociationDefinition, media_bridge, path=["response"]) + assert_matches_type(BaseAssociationDefinition, media_bridge, path=["response"]) @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize @@ -592,7 +592,7 @@ def test_raw_response_create_video_association_definition(self, client: HubSpot) assert response.is_closed is True assert response.http_request.headers.get("X-Stainless-Lang") == "python" media_bridge = response.parse() - assert_matches_type(AssociationDefinition, media_bridge, path=["response"]) + assert_matches_type(BaseAssociationDefinition, media_bridge, path=["response"]) @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize @@ -604,7 +604,7 @@ def test_streaming_response_create_video_association_definition(self, client: Hu assert response.http_request.headers.get("X-Stainless-Lang") == "python" media_bridge = response.parse() - assert_matches_type(AssociationDefinition, media_bridge, path=["response"]) + assert_matches_type(BaseAssociationDefinition, media_bridge, path=["response"]) assert cast(Any, response.is_closed) is True @@ -911,7 +911,7 @@ def test_method_get_property(self, client: HubSpot) -> None: app_id=0, object_type="objectType", ) - assert_matches_type(Property, media_bridge, path=["response"]) + assert_matches_type(MediaBridgeProperty, media_bridge, path=["response"]) @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize @@ -923,7 +923,7 @@ def test_method_get_property_with_all_params(self, client: HubSpot) -> None: archived=True, properties="properties", ) - assert_matches_type(Property, media_bridge, path=["response"]) + assert_matches_type(MediaBridgeProperty, media_bridge, path=["response"]) @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize @@ -937,7 +937,7 @@ def test_raw_response_get_property(self, client: HubSpot) -> None: assert response.is_closed is True assert response.http_request.headers.get("X-Stainless-Lang") == "python" media_bridge = response.parse() - assert_matches_type(Property, media_bridge, path=["response"]) + assert_matches_type(MediaBridgeProperty, media_bridge, path=["response"]) @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize @@ -951,7 +951,7 @@ def test_streaming_response_get_property(self, client: HubSpot) -> None: assert response.http_request.headers.get("X-Stainless-Lang") == "python" media_bridge = response.parse() - assert_matches_type(Property, media_bridge, path=["response"]) + assert_matches_type(MediaBridgeProperty, media_bridge, path=["response"]) assert cast(Any, response.is_closed) is True @@ -1508,7 +1508,7 @@ def test_method_update_property(self, client: HubSpot) -> None: app_id=0, object_type="objectType", ) - assert_matches_type(Property, media_bridge, path=["response"]) + assert_matches_type(MediaBridgeProperty, media_bridge, path=["response"]) @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize @@ -1540,7 +1540,7 @@ def test_method_update_property_with_all_params(self, client: HubSpot) -> None: show_currency_symbol=True, type="bool", ) - assert_matches_type(Property, media_bridge, path=["response"]) + assert_matches_type(MediaBridgeProperty, media_bridge, path=["response"]) @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize @@ -1554,7 +1554,7 @@ def test_raw_response_update_property(self, client: HubSpot) -> None: assert response.is_closed is True assert response.http_request.headers.get("X-Stainless-Lang") == "python" media_bridge = response.parse() - assert_matches_type(Property, media_bridge, path=["response"]) + assert_matches_type(MediaBridgeProperty, media_bridge, path=["response"]) @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize @@ -1568,7 +1568,7 @@ def test_streaming_response_update_property(self, client: HubSpot) -> None: assert response.http_request.headers.get("X-Stainless-Lang") == "python" media_bridge = response.parse() - assert_matches_type(Property, media_bridge, path=["response"]) + assert_matches_type(MediaBridgeProperty, media_bridge, path=["response"]) assert cast(Any, response.is_closed) is True @@ -1666,7 +1666,7 @@ def test_method_update_schema(self, client: HubSpot) -> None: app_id=0, clear_description=True, ) - assert_matches_type(ObjectTypeDefinition, media_bridge, path=["response"]) + assert_matches_type(BaseObjectTypeDefinition, media_bridge, path=["response"]) @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize @@ -1687,7 +1687,7 @@ def test_method_update_schema_with_all_params(self, client: HubSpot) -> None: searchable_properties=["string"], secondary_display_properties=["string"], ) - assert_matches_type(ObjectTypeDefinition, media_bridge, path=["response"]) + assert_matches_type(BaseObjectTypeDefinition, media_bridge, path=["response"]) @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize @@ -1701,7 +1701,7 @@ def test_raw_response_update_schema(self, client: HubSpot) -> None: assert response.is_closed is True assert response.http_request.headers.get("X-Stainless-Lang") == "python" media_bridge = response.parse() - assert_matches_type(ObjectTypeDefinition, media_bridge, path=["response"]) + assert_matches_type(BaseObjectTypeDefinition, media_bridge, path=["response"]) @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize @@ -1715,7 +1715,7 @@ def test_streaming_response_update_schema(self, client: HubSpot) -> None: assert response.http_request.headers.get("X-Stainless-Lang") == "python" media_bridge = response.parse() - assert_matches_type(ObjectTypeDefinition, media_bridge, path=["response"]) + assert_matches_type(BaseObjectTypeDefinition, media_bridge, path=["response"]) assert cast(Any, response.is_closed) is True @@ -1793,7 +1793,7 @@ async def test_method_create_association(self, async_client: AsyncHubSpot) -> No from_object_type_id="fromObjectTypeId", to_object_type_id="toObjectTypeId", ) - assert_matches_type(AssociationDefinition, media_bridge, path=["response"]) + assert_matches_type(BaseAssociationDefinition, media_bridge, path=["response"]) @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize @@ -1805,7 +1805,7 @@ async def test_method_create_association_with_all_params(self, async_client: Asy to_object_type_id="toObjectTypeId", name="name", ) - assert_matches_type(AssociationDefinition, media_bridge, path=["response"]) + assert_matches_type(BaseAssociationDefinition, media_bridge, path=["response"]) @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize @@ -1820,7 +1820,7 @@ async def test_raw_response_create_association(self, async_client: AsyncHubSpot) assert response.is_closed is True assert response.http_request.headers.get("X-Stainless-Lang") == "python" media_bridge = await response.parse() - assert_matches_type(AssociationDefinition, media_bridge, path=["response"]) + assert_matches_type(BaseAssociationDefinition, media_bridge, path=["response"]) @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize @@ -1835,7 +1835,7 @@ async def test_streaming_response_create_association(self, async_client: AsyncHu assert response.http_request.headers.get("X-Stainless-Lang") == "python" media_bridge = await response.parse() - assert_matches_type(AssociationDefinition, media_bridge, path=["response"]) + assert_matches_type(BaseAssociationDefinition, media_bridge, path=["response"]) assert cast(Any, response.is_closed) is True @@ -2163,7 +2163,7 @@ async def test_method_create_property(self, async_client: AsyncHubSpot) -> None: name="name", type="bool", ) - assert_matches_type(Property, media_bridge, path=["response"]) + assert_matches_type(MediaBridgeProperty, media_bridge, path=["response"]) @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize @@ -2198,7 +2198,7 @@ async def test_method_create_property_with_all_params(self, async_client: AsyncH referenced_object_type="referencedObjectType", show_currency_symbol=True, ) - assert_matches_type(Property, media_bridge, path=["response"]) + assert_matches_type(MediaBridgeProperty, media_bridge, path=["response"]) @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize @@ -2216,7 +2216,7 @@ async def test_raw_response_create_property(self, async_client: AsyncHubSpot) -> assert response.is_closed is True assert response.http_request.headers.get("X-Stainless-Lang") == "python" media_bridge = await response.parse() - assert_matches_type(Property, media_bridge, path=["response"]) + assert_matches_type(MediaBridgeProperty, media_bridge, path=["response"]) @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize @@ -2234,7 +2234,7 @@ async def test_streaming_response_create_property(self, async_client: AsyncHubSp assert response.http_request.headers.get("X-Stainless-Lang") == "python" media_bridge = await response.parse() - assert_matches_type(Property, media_bridge, path=["response"]) + assert_matches_type(MediaBridgeProperty, media_bridge, path=["response"]) assert cast(Any, response.is_closed) is True @@ -2324,7 +2324,7 @@ async def test_method_create_video_association_definition(self, async_client: As media_bridge = await async_client.cms.media_bridge.create_video_association_definition( 0, ) - assert_matches_type(AssociationDefinition, media_bridge, path=["response"]) + assert_matches_type(BaseAssociationDefinition, media_bridge, path=["response"]) @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize @@ -2336,7 +2336,7 @@ async def test_raw_response_create_video_association_definition(self, async_clie assert response.is_closed is True assert response.http_request.headers.get("X-Stainless-Lang") == "python" media_bridge = await response.parse() - assert_matches_type(AssociationDefinition, media_bridge, path=["response"]) + assert_matches_type(BaseAssociationDefinition, media_bridge, path=["response"]) @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize @@ -2348,7 +2348,7 @@ async def test_streaming_response_create_video_association_definition(self, asyn assert response.http_request.headers.get("X-Stainless-Lang") == "python" media_bridge = await response.parse() - assert_matches_type(AssociationDefinition, media_bridge, path=["response"]) + assert_matches_type(BaseAssociationDefinition, media_bridge, path=["response"]) assert cast(Any, response.is_closed) is True @@ -2655,7 +2655,7 @@ async def test_method_get_property(self, async_client: AsyncHubSpot) -> None: app_id=0, object_type="objectType", ) - assert_matches_type(Property, media_bridge, path=["response"]) + assert_matches_type(MediaBridgeProperty, media_bridge, path=["response"]) @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize @@ -2667,7 +2667,7 @@ async def test_method_get_property_with_all_params(self, async_client: AsyncHubS archived=True, properties="properties", ) - assert_matches_type(Property, media_bridge, path=["response"]) + assert_matches_type(MediaBridgeProperty, media_bridge, path=["response"]) @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize @@ -2681,7 +2681,7 @@ async def test_raw_response_get_property(self, async_client: AsyncHubSpot) -> No assert response.is_closed is True assert response.http_request.headers.get("X-Stainless-Lang") == "python" media_bridge = await response.parse() - assert_matches_type(Property, media_bridge, path=["response"]) + assert_matches_type(MediaBridgeProperty, media_bridge, path=["response"]) @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize @@ -2695,7 +2695,7 @@ async def test_streaming_response_get_property(self, async_client: AsyncHubSpot) assert response.http_request.headers.get("X-Stainless-Lang") == "python" media_bridge = await response.parse() - assert_matches_type(Property, media_bridge, path=["response"]) + assert_matches_type(MediaBridgeProperty, media_bridge, path=["response"]) assert cast(Any, response.is_closed) is True @@ -3252,7 +3252,7 @@ async def test_method_update_property(self, async_client: AsyncHubSpot) -> None: app_id=0, object_type="objectType", ) - assert_matches_type(Property, media_bridge, path=["response"]) + assert_matches_type(MediaBridgeProperty, media_bridge, path=["response"]) @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize @@ -3284,7 +3284,7 @@ async def test_method_update_property_with_all_params(self, async_client: AsyncH show_currency_symbol=True, type="bool", ) - assert_matches_type(Property, media_bridge, path=["response"]) + assert_matches_type(MediaBridgeProperty, media_bridge, path=["response"]) @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize @@ -3298,7 +3298,7 @@ async def test_raw_response_update_property(self, async_client: AsyncHubSpot) -> assert response.is_closed is True assert response.http_request.headers.get("X-Stainless-Lang") == "python" media_bridge = await response.parse() - assert_matches_type(Property, media_bridge, path=["response"]) + assert_matches_type(MediaBridgeProperty, media_bridge, path=["response"]) @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize @@ -3312,7 +3312,7 @@ async def test_streaming_response_update_property(self, async_client: AsyncHubSp assert response.http_request.headers.get("X-Stainless-Lang") == "python" media_bridge = await response.parse() - assert_matches_type(Property, media_bridge, path=["response"]) + assert_matches_type(MediaBridgeProperty, media_bridge, path=["response"]) assert cast(Any, response.is_closed) is True @@ -3410,7 +3410,7 @@ async def test_method_update_schema(self, async_client: AsyncHubSpot) -> None: app_id=0, clear_description=True, ) - assert_matches_type(ObjectTypeDefinition, media_bridge, path=["response"]) + assert_matches_type(BaseObjectTypeDefinition, media_bridge, path=["response"]) @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize @@ -3431,7 +3431,7 @@ async def test_method_update_schema_with_all_params(self, async_client: AsyncHub searchable_properties=["string"], secondary_display_properties=["string"], ) - assert_matches_type(ObjectTypeDefinition, media_bridge, path=["response"]) + assert_matches_type(BaseObjectTypeDefinition, media_bridge, path=["response"]) @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize @@ -3445,7 +3445,7 @@ async def test_raw_response_update_schema(self, async_client: AsyncHubSpot) -> N assert response.is_closed is True assert response.http_request.headers.get("X-Stainless-Lang") == "python" media_bridge = await response.parse() - assert_matches_type(ObjectTypeDefinition, media_bridge, path=["response"]) + assert_matches_type(BaseObjectTypeDefinition, media_bridge, path=["response"]) @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize @@ -3459,7 +3459,7 @@ async def test_streaming_response_update_schema(self, async_client: AsyncHubSpot assert response.http_request.headers.get("X-Stainless-Lang") == "python" media_bridge = await response.parse() - assert_matches_type(ObjectTypeDefinition, media_bridge, path=["response"]) + assert_matches_type(BaseObjectTypeDefinition, media_bridge, path=["response"]) assert cast(Any, response.is_closed) is True diff --git a/tests/api_resources/cms/test_pages.py b/tests/api_resources/cms/test_pages.py index accb3580..6da4eb27 100644 --- a/tests/api_resources/cms/test_pages.py +++ b/tests/api_resources/cms/test_pages.py @@ -9,7 +9,6 @@ from hubspot_sdk import HubSpot, AsyncHubSpot from tests.utils import assert_matches_type -from hubspot_sdk._utils import parse_datetime from hubspot_sdk.types.cms import ( PageData, PageVersion, @@ -22,98 +21,6 @@ class TestPages: parametrize = pytest.mark.parametrize("client", [False, True], indirect=True, ids=["loose", "strict"]) - @pytest.mark.skip(reason="Mock server tests are disabled") - @parametrize - def test_method_get_landing_page_folders(self, client: HubSpot) -> None: - page = client.cms.pages.get_landing_page_folders() - assert_matches_type(object, page, path=["response"]) - - @pytest.mark.skip(reason="Mock server tests are disabled") - @parametrize - def test_method_get_landing_page_folders_with_all_params(self, client: HubSpot) -> None: - page = client.cms.pages.get_landing_page_folders( - after="after", - archived=True, - created_after=parse_datetime("2019-12-27T18:11:19.117Z"), - created_at=parse_datetime("2019-12-27T18:11:19.117Z"), - created_before=parse_datetime("2019-12-27T18:11:19.117Z"), - limit=0, - property="property", - sort=["string"], - updated_after=parse_datetime("2019-12-27T18:11:19.117Z"), - updated_at=parse_datetime("2019-12-27T18:11:19.117Z"), - updated_before=parse_datetime("2019-12-27T18:11:19.117Z"), - ) - assert_matches_type(object, page, path=["response"]) - - @pytest.mark.skip(reason="Mock server tests are disabled") - @parametrize - def test_raw_response_get_landing_page_folders(self, client: HubSpot) -> None: - response = client.cms.pages.with_raw_response.get_landing_page_folders() - - assert response.is_closed is True - assert response.http_request.headers.get("X-Stainless-Lang") == "python" - page = response.parse() - assert_matches_type(object, page, path=["response"]) - - @pytest.mark.skip(reason="Mock server tests are disabled") - @parametrize - def test_streaming_response_get_landing_page_folders(self, client: HubSpot) -> None: - with client.cms.pages.with_streaming_response.get_landing_page_folders() as response: - assert not response.is_closed - assert response.http_request.headers.get("X-Stainless-Lang") == "python" - - page = response.parse() - assert_matches_type(object, page, path=["response"]) - - assert cast(Any, response.is_closed) is True - - @pytest.mark.skip(reason="Mock server tests are disabled") - @parametrize - def test_method_get_landing_page_folders_by_query(self, client: HubSpot) -> None: - page = client.cms.pages.get_landing_page_folders_by_query() - assert_matches_type(object, page, path=["response"]) - - @pytest.mark.skip(reason="Mock server tests are disabled") - @parametrize - def test_method_get_landing_page_folders_by_query_with_all_params(self, client: HubSpot) -> None: - page = client.cms.pages.get_landing_page_folders_by_query( - after="after", - archived=True, - created_after=parse_datetime("2019-12-27T18:11:19.117Z"), - created_at=parse_datetime("2019-12-27T18:11:19.117Z"), - created_before=parse_datetime("2019-12-27T18:11:19.117Z"), - limit=0, - property="property", - sort=["string"], - updated_after=parse_datetime("2019-12-27T18:11:19.117Z"), - updated_at=parse_datetime("2019-12-27T18:11:19.117Z"), - updated_before=parse_datetime("2019-12-27T18:11:19.117Z"), - ) - assert_matches_type(object, page, path=["response"]) - - @pytest.mark.skip(reason="Mock server tests are disabled") - @parametrize - def test_raw_response_get_landing_page_folders_by_query(self, client: HubSpot) -> None: - response = client.cms.pages.with_raw_response.get_landing_page_folders_by_query() - - assert response.is_closed is True - assert response.http_request.headers.get("X-Stainless-Lang") == "python" - page = response.parse() - assert_matches_type(object, page, path=["response"]) - - @pytest.mark.skip(reason="Mock server tests are disabled") - @parametrize - def test_streaming_response_get_landing_page_folders_by_query(self, client: HubSpot) -> None: - with client.cms.pages.with_streaming_response.get_landing_page_folders_by_query() as response: - assert not response.is_closed - assert response.http_request.headers.get("X-Stainless-Lang") == "python" - - page = response.parse() - assert_matches_type(object, page, path=["response"]) - - assert cast(Any, response.is_closed) is True - @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize def test_method_get_landing_page_revision(self, client: HubSpot) -> None: @@ -166,98 +73,6 @@ def test_path_params_get_landing_page_revision(self, client: HubSpot) -> None: object_id="objectId", ) - @pytest.mark.skip(reason="Mock server tests are disabled") - @parametrize - def test_method_get_landing_pages(self, client: HubSpot) -> None: - page = client.cms.pages.get_landing_pages() - assert_matches_type(object, page, path=["response"]) - - @pytest.mark.skip(reason="Mock server tests are disabled") - @parametrize - def test_method_get_landing_pages_with_all_params(self, client: HubSpot) -> None: - page = client.cms.pages.get_landing_pages( - after="after", - archived=True, - created_after=parse_datetime("2019-12-27T18:11:19.117Z"), - created_at=parse_datetime("2019-12-27T18:11:19.117Z"), - created_before=parse_datetime("2019-12-27T18:11:19.117Z"), - limit=0, - property="property", - sort=["string"], - updated_after=parse_datetime("2019-12-27T18:11:19.117Z"), - updated_at=parse_datetime("2019-12-27T18:11:19.117Z"), - updated_before=parse_datetime("2019-12-27T18:11:19.117Z"), - ) - assert_matches_type(object, page, path=["response"]) - - @pytest.mark.skip(reason="Mock server tests are disabled") - @parametrize - def test_raw_response_get_landing_pages(self, client: HubSpot) -> None: - response = client.cms.pages.with_raw_response.get_landing_pages() - - assert response.is_closed is True - assert response.http_request.headers.get("X-Stainless-Lang") == "python" - page = response.parse() - assert_matches_type(object, page, path=["response"]) - - @pytest.mark.skip(reason="Mock server tests are disabled") - @parametrize - def test_streaming_response_get_landing_pages(self, client: HubSpot) -> None: - with client.cms.pages.with_streaming_response.get_landing_pages() as response: - assert not response.is_closed - assert response.http_request.headers.get("X-Stainless-Lang") == "python" - - page = response.parse() - assert_matches_type(object, page, path=["response"]) - - assert cast(Any, response.is_closed) is True - - @pytest.mark.skip(reason="Mock server tests are disabled") - @parametrize - def test_method_get_landing_pages_by_query(self, client: HubSpot) -> None: - page = client.cms.pages.get_landing_pages_by_query() - assert_matches_type(object, page, path=["response"]) - - @pytest.mark.skip(reason="Mock server tests are disabled") - @parametrize - def test_method_get_landing_pages_by_query_with_all_params(self, client: HubSpot) -> None: - page = client.cms.pages.get_landing_pages_by_query( - after="after", - archived=True, - created_after=parse_datetime("2019-12-27T18:11:19.117Z"), - created_at=parse_datetime("2019-12-27T18:11:19.117Z"), - created_before=parse_datetime("2019-12-27T18:11:19.117Z"), - limit=0, - property="property", - sort=["string"], - updated_after=parse_datetime("2019-12-27T18:11:19.117Z"), - updated_at=parse_datetime("2019-12-27T18:11:19.117Z"), - updated_before=parse_datetime("2019-12-27T18:11:19.117Z"), - ) - assert_matches_type(object, page, path=["response"]) - - @pytest.mark.skip(reason="Mock server tests are disabled") - @parametrize - def test_raw_response_get_landing_pages_by_query(self, client: HubSpot) -> None: - response = client.cms.pages.with_raw_response.get_landing_pages_by_query() - - assert response.is_closed is True - assert response.http_request.headers.get("X-Stainless-Lang") == "python" - page = response.parse() - assert_matches_type(object, page, path=["response"]) - - @pytest.mark.skip(reason="Mock server tests are disabled") - @parametrize - def test_streaming_response_get_landing_pages_by_query(self, client: HubSpot) -> None: - with client.cms.pages.with_streaming_response.get_landing_pages_by_query() as response: - assert not response.is_closed - assert response.http_request.headers.get("X-Stainless-Lang") == "python" - - page = response.parse() - assert_matches_type(object, page, path=["response"]) - - assert cast(Any, response.is_closed) is True - @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize def test_method_get_site_page_revision(self, client: HubSpot) -> None: @@ -310,98 +125,6 @@ def test_path_params_get_site_page_revision(self, client: HubSpot) -> None: object_id="objectId", ) - @pytest.mark.skip(reason="Mock server tests are disabled") - @parametrize - def test_method_get_site_pages(self, client: HubSpot) -> None: - page = client.cms.pages.get_site_pages() - assert_matches_type(object, page, path=["response"]) - - @pytest.mark.skip(reason="Mock server tests are disabled") - @parametrize - def test_method_get_site_pages_with_all_params(self, client: HubSpot) -> None: - page = client.cms.pages.get_site_pages( - after="after", - archived=True, - created_after=parse_datetime("2019-12-27T18:11:19.117Z"), - created_at=parse_datetime("2019-12-27T18:11:19.117Z"), - created_before=parse_datetime("2019-12-27T18:11:19.117Z"), - limit=0, - property="property", - sort=["string"], - updated_after=parse_datetime("2019-12-27T18:11:19.117Z"), - updated_at=parse_datetime("2019-12-27T18:11:19.117Z"), - updated_before=parse_datetime("2019-12-27T18:11:19.117Z"), - ) - assert_matches_type(object, page, path=["response"]) - - @pytest.mark.skip(reason="Mock server tests are disabled") - @parametrize - def test_raw_response_get_site_pages(self, client: HubSpot) -> None: - response = client.cms.pages.with_raw_response.get_site_pages() - - assert response.is_closed is True - assert response.http_request.headers.get("X-Stainless-Lang") == "python" - page = response.parse() - assert_matches_type(object, page, path=["response"]) - - @pytest.mark.skip(reason="Mock server tests are disabled") - @parametrize - def test_streaming_response_get_site_pages(self, client: HubSpot) -> None: - with client.cms.pages.with_streaming_response.get_site_pages() as response: - assert not response.is_closed - assert response.http_request.headers.get("X-Stainless-Lang") == "python" - - page = response.parse() - assert_matches_type(object, page, path=["response"]) - - assert cast(Any, response.is_closed) is True - - @pytest.mark.skip(reason="Mock server tests are disabled") - @parametrize - def test_method_get_site_pages_by_query(self, client: HubSpot) -> None: - page = client.cms.pages.get_site_pages_by_query() - assert_matches_type(object, page, path=["response"]) - - @pytest.mark.skip(reason="Mock server tests are disabled") - @parametrize - def test_method_get_site_pages_by_query_with_all_params(self, client: HubSpot) -> None: - page = client.cms.pages.get_site_pages_by_query( - after="after", - archived=True, - created_after=parse_datetime("2019-12-27T18:11:19.117Z"), - created_at=parse_datetime("2019-12-27T18:11:19.117Z"), - created_before=parse_datetime("2019-12-27T18:11:19.117Z"), - limit=0, - property="property", - sort=["string"], - updated_after=parse_datetime("2019-12-27T18:11:19.117Z"), - updated_at=parse_datetime("2019-12-27T18:11:19.117Z"), - updated_before=parse_datetime("2019-12-27T18:11:19.117Z"), - ) - assert_matches_type(object, page, path=["response"]) - - @pytest.mark.skip(reason="Mock server tests are disabled") - @parametrize - def test_raw_response_get_site_pages_by_query(self, client: HubSpot) -> None: - response = client.cms.pages.with_raw_response.get_site_pages_by_query() - - assert response.is_closed is True - assert response.http_request.headers.get("X-Stainless-Lang") == "python" - page = response.parse() - assert_matches_type(object, page, path=["response"]) - - @pytest.mark.skip(reason="Mock server tests are disabled") - @parametrize - def test_streaming_response_get_site_pages_by_query(self, client: HubSpot) -> None: - with client.cms.pages.with_streaming_response.get_site_pages_by_query() as response: - assert not response.is_closed - assert response.http_request.headers.get("X-Stainless-Lang") == "python" - - page = response.parse() - assert_matches_type(object, page, path=["response"]) - - assert cast(Any, response.is_closed) is True - @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize def test_method_list_landing_page_revisions(self, client: HubSpot) -> None: @@ -752,98 +475,6 @@ class TestAsyncPages: "async_client", [False, True, {"http_client": "aiohttp"}], indirect=True, ids=["loose", "strict", "aiohttp"] ) - @pytest.mark.skip(reason="Mock server tests are disabled") - @parametrize - async def test_method_get_landing_page_folders(self, async_client: AsyncHubSpot) -> None: - page = await async_client.cms.pages.get_landing_page_folders() - assert_matches_type(object, page, path=["response"]) - - @pytest.mark.skip(reason="Mock server tests are disabled") - @parametrize - async def test_method_get_landing_page_folders_with_all_params(self, async_client: AsyncHubSpot) -> None: - page = await async_client.cms.pages.get_landing_page_folders( - after="after", - archived=True, - created_after=parse_datetime("2019-12-27T18:11:19.117Z"), - created_at=parse_datetime("2019-12-27T18:11:19.117Z"), - created_before=parse_datetime("2019-12-27T18:11:19.117Z"), - limit=0, - property="property", - sort=["string"], - updated_after=parse_datetime("2019-12-27T18:11:19.117Z"), - updated_at=parse_datetime("2019-12-27T18:11:19.117Z"), - updated_before=parse_datetime("2019-12-27T18:11:19.117Z"), - ) - assert_matches_type(object, page, path=["response"]) - - @pytest.mark.skip(reason="Mock server tests are disabled") - @parametrize - async def test_raw_response_get_landing_page_folders(self, async_client: AsyncHubSpot) -> None: - response = await async_client.cms.pages.with_raw_response.get_landing_page_folders() - - assert response.is_closed is True - assert response.http_request.headers.get("X-Stainless-Lang") == "python" - page = await response.parse() - assert_matches_type(object, page, path=["response"]) - - @pytest.mark.skip(reason="Mock server tests are disabled") - @parametrize - async def test_streaming_response_get_landing_page_folders(self, async_client: AsyncHubSpot) -> None: - async with async_client.cms.pages.with_streaming_response.get_landing_page_folders() as response: - assert not response.is_closed - assert response.http_request.headers.get("X-Stainless-Lang") == "python" - - page = await response.parse() - assert_matches_type(object, page, path=["response"]) - - assert cast(Any, response.is_closed) is True - - @pytest.mark.skip(reason="Mock server tests are disabled") - @parametrize - async def test_method_get_landing_page_folders_by_query(self, async_client: AsyncHubSpot) -> None: - page = await async_client.cms.pages.get_landing_page_folders_by_query() - assert_matches_type(object, page, path=["response"]) - - @pytest.mark.skip(reason="Mock server tests are disabled") - @parametrize - async def test_method_get_landing_page_folders_by_query_with_all_params(self, async_client: AsyncHubSpot) -> None: - page = await async_client.cms.pages.get_landing_page_folders_by_query( - after="after", - archived=True, - created_after=parse_datetime("2019-12-27T18:11:19.117Z"), - created_at=parse_datetime("2019-12-27T18:11:19.117Z"), - created_before=parse_datetime("2019-12-27T18:11:19.117Z"), - limit=0, - property="property", - sort=["string"], - updated_after=parse_datetime("2019-12-27T18:11:19.117Z"), - updated_at=parse_datetime("2019-12-27T18:11:19.117Z"), - updated_before=parse_datetime("2019-12-27T18:11:19.117Z"), - ) - assert_matches_type(object, page, path=["response"]) - - @pytest.mark.skip(reason="Mock server tests are disabled") - @parametrize - async def test_raw_response_get_landing_page_folders_by_query(self, async_client: AsyncHubSpot) -> None: - response = await async_client.cms.pages.with_raw_response.get_landing_page_folders_by_query() - - assert response.is_closed is True - assert response.http_request.headers.get("X-Stainless-Lang") == "python" - page = await response.parse() - assert_matches_type(object, page, path=["response"]) - - @pytest.mark.skip(reason="Mock server tests are disabled") - @parametrize - async def test_streaming_response_get_landing_page_folders_by_query(self, async_client: AsyncHubSpot) -> None: - async with async_client.cms.pages.with_streaming_response.get_landing_page_folders_by_query() as response: - assert not response.is_closed - assert response.http_request.headers.get("X-Stainless-Lang") == "python" - - page = await response.parse() - assert_matches_type(object, page, path=["response"]) - - assert cast(Any, response.is_closed) is True - @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize async def test_method_get_landing_page_revision(self, async_client: AsyncHubSpot) -> None: @@ -896,98 +527,6 @@ async def test_path_params_get_landing_page_revision(self, async_client: AsyncHu object_id="objectId", ) - @pytest.mark.skip(reason="Mock server tests are disabled") - @parametrize - async def test_method_get_landing_pages(self, async_client: AsyncHubSpot) -> None: - page = await async_client.cms.pages.get_landing_pages() - assert_matches_type(object, page, path=["response"]) - - @pytest.mark.skip(reason="Mock server tests are disabled") - @parametrize - async def test_method_get_landing_pages_with_all_params(self, async_client: AsyncHubSpot) -> None: - page = await async_client.cms.pages.get_landing_pages( - after="after", - archived=True, - created_after=parse_datetime("2019-12-27T18:11:19.117Z"), - created_at=parse_datetime("2019-12-27T18:11:19.117Z"), - created_before=parse_datetime("2019-12-27T18:11:19.117Z"), - limit=0, - property="property", - sort=["string"], - updated_after=parse_datetime("2019-12-27T18:11:19.117Z"), - updated_at=parse_datetime("2019-12-27T18:11:19.117Z"), - updated_before=parse_datetime("2019-12-27T18:11:19.117Z"), - ) - assert_matches_type(object, page, path=["response"]) - - @pytest.mark.skip(reason="Mock server tests are disabled") - @parametrize - async def test_raw_response_get_landing_pages(self, async_client: AsyncHubSpot) -> None: - response = await async_client.cms.pages.with_raw_response.get_landing_pages() - - assert response.is_closed is True - assert response.http_request.headers.get("X-Stainless-Lang") == "python" - page = await response.parse() - assert_matches_type(object, page, path=["response"]) - - @pytest.mark.skip(reason="Mock server tests are disabled") - @parametrize - async def test_streaming_response_get_landing_pages(self, async_client: AsyncHubSpot) -> None: - async with async_client.cms.pages.with_streaming_response.get_landing_pages() as response: - assert not response.is_closed - assert response.http_request.headers.get("X-Stainless-Lang") == "python" - - page = await response.parse() - assert_matches_type(object, page, path=["response"]) - - assert cast(Any, response.is_closed) is True - - @pytest.mark.skip(reason="Mock server tests are disabled") - @parametrize - async def test_method_get_landing_pages_by_query(self, async_client: AsyncHubSpot) -> None: - page = await async_client.cms.pages.get_landing_pages_by_query() - assert_matches_type(object, page, path=["response"]) - - @pytest.mark.skip(reason="Mock server tests are disabled") - @parametrize - async def test_method_get_landing_pages_by_query_with_all_params(self, async_client: AsyncHubSpot) -> None: - page = await async_client.cms.pages.get_landing_pages_by_query( - after="after", - archived=True, - created_after=parse_datetime("2019-12-27T18:11:19.117Z"), - created_at=parse_datetime("2019-12-27T18:11:19.117Z"), - created_before=parse_datetime("2019-12-27T18:11:19.117Z"), - limit=0, - property="property", - sort=["string"], - updated_after=parse_datetime("2019-12-27T18:11:19.117Z"), - updated_at=parse_datetime("2019-12-27T18:11:19.117Z"), - updated_before=parse_datetime("2019-12-27T18:11:19.117Z"), - ) - assert_matches_type(object, page, path=["response"]) - - @pytest.mark.skip(reason="Mock server tests are disabled") - @parametrize - async def test_raw_response_get_landing_pages_by_query(self, async_client: AsyncHubSpot) -> None: - response = await async_client.cms.pages.with_raw_response.get_landing_pages_by_query() - - assert response.is_closed is True - assert response.http_request.headers.get("X-Stainless-Lang") == "python" - page = await response.parse() - assert_matches_type(object, page, path=["response"]) - - @pytest.mark.skip(reason="Mock server tests are disabled") - @parametrize - async def test_streaming_response_get_landing_pages_by_query(self, async_client: AsyncHubSpot) -> None: - async with async_client.cms.pages.with_streaming_response.get_landing_pages_by_query() as response: - assert not response.is_closed - assert response.http_request.headers.get("X-Stainless-Lang") == "python" - - page = await response.parse() - assert_matches_type(object, page, path=["response"]) - - assert cast(Any, response.is_closed) is True - @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize async def test_method_get_site_page_revision(self, async_client: AsyncHubSpot) -> None: @@ -1040,98 +579,6 @@ async def test_path_params_get_site_page_revision(self, async_client: AsyncHubSp object_id="objectId", ) - @pytest.mark.skip(reason="Mock server tests are disabled") - @parametrize - async def test_method_get_site_pages(self, async_client: AsyncHubSpot) -> None: - page = await async_client.cms.pages.get_site_pages() - assert_matches_type(object, page, path=["response"]) - - @pytest.mark.skip(reason="Mock server tests are disabled") - @parametrize - async def test_method_get_site_pages_with_all_params(self, async_client: AsyncHubSpot) -> None: - page = await async_client.cms.pages.get_site_pages( - after="after", - archived=True, - created_after=parse_datetime("2019-12-27T18:11:19.117Z"), - created_at=parse_datetime("2019-12-27T18:11:19.117Z"), - created_before=parse_datetime("2019-12-27T18:11:19.117Z"), - limit=0, - property="property", - sort=["string"], - updated_after=parse_datetime("2019-12-27T18:11:19.117Z"), - updated_at=parse_datetime("2019-12-27T18:11:19.117Z"), - updated_before=parse_datetime("2019-12-27T18:11:19.117Z"), - ) - assert_matches_type(object, page, path=["response"]) - - @pytest.mark.skip(reason="Mock server tests are disabled") - @parametrize - async def test_raw_response_get_site_pages(self, async_client: AsyncHubSpot) -> None: - response = await async_client.cms.pages.with_raw_response.get_site_pages() - - assert response.is_closed is True - assert response.http_request.headers.get("X-Stainless-Lang") == "python" - page = await response.parse() - assert_matches_type(object, page, path=["response"]) - - @pytest.mark.skip(reason="Mock server tests are disabled") - @parametrize - async def test_streaming_response_get_site_pages(self, async_client: AsyncHubSpot) -> None: - async with async_client.cms.pages.with_streaming_response.get_site_pages() as response: - assert not response.is_closed - assert response.http_request.headers.get("X-Stainless-Lang") == "python" - - page = await response.parse() - assert_matches_type(object, page, path=["response"]) - - assert cast(Any, response.is_closed) is True - - @pytest.mark.skip(reason="Mock server tests are disabled") - @parametrize - async def test_method_get_site_pages_by_query(self, async_client: AsyncHubSpot) -> None: - page = await async_client.cms.pages.get_site_pages_by_query() - assert_matches_type(object, page, path=["response"]) - - @pytest.mark.skip(reason="Mock server tests are disabled") - @parametrize - async def test_method_get_site_pages_by_query_with_all_params(self, async_client: AsyncHubSpot) -> None: - page = await async_client.cms.pages.get_site_pages_by_query( - after="after", - archived=True, - created_after=parse_datetime("2019-12-27T18:11:19.117Z"), - created_at=parse_datetime("2019-12-27T18:11:19.117Z"), - created_before=parse_datetime("2019-12-27T18:11:19.117Z"), - limit=0, - property="property", - sort=["string"], - updated_after=parse_datetime("2019-12-27T18:11:19.117Z"), - updated_at=parse_datetime("2019-12-27T18:11:19.117Z"), - updated_before=parse_datetime("2019-12-27T18:11:19.117Z"), - ) - assert_matches_type(object, page, path=["response"]) - - @pytest.mark.skip(reason="Mock server tests are disabled") - @parametrize - async def test_raw_response_get_site_pages_by_query(self, async_client: AsyncHubSpot) -> None: - response = await async_client.cms.pages.with_raw_response.get_site_pages_by_query() - - assert response.is_closed is True - assert response.http_request.headers.get("X-Stainless-Lang") == "python" - page = await response.parse() - assert_matches_type(object, page, path=["response"]) - - @pytest.mark.skip(reason="Mock server tests are disabled") - @parametrize - async def test_streaming_response_get_site_pages_by_query(self, async_client: AsyncHubSpot) -> None: - async with async_client.cms.pages.with_streaming_response.get_site_pages_by_query() as response: - assert not response.is_closed - assert response.http_request.headers.get("X-Stainless-Lang") == "python" - - page = await response.parse() - assert_matches_type(object, page, path=["response"]) - - assert cast(Any, response.is_closed) is True - @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize async def test_method_list_landing_page_revisions(self, async_client: AsyncHubSpot) -> None: diff --git a/tests/api_resources/cms/test_source_code.py b/tests/api_resources/cms/test_source_code.py index 545ebf4f..48f5cabc 100644 --- a/tests/api_resources/cms/test_source_code.py +++ b/tests/api_resources/cms/test_source_code.py @@ -5,152 +5,18 @@ import os from typing import Any, cast -import httpx import pytest -from respx import MockRouter from hubspot_sdk import HubSpot, AsyncHubSpot from tests.utils import assert_matches_type -from hubspot_sdk._response import ( - BinaryAPIResponse, - AsyncBinaryAPIResponse, - StreamedBinaryAPIResponse, - AsyncStreamedBinaryAPIResponse, -) -from hubspot_sdk.types.cms import ( - AssetFileMetadata, -) from hubspot_sdk.types.shared import TaskLocator, ActionResponse -# pyright: reportDeprecated=false - base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") class TestSourceCode: parametrize = pytest.mark.parametrize("client", [False, True], indirect=True, ids=["loose", "strict"]) - @pytest.mark.skip(reason="Mock server tests are disabled") - @parametrize - def test_method_create(self, client: HubSpot) -> None: - with pytest.warns(DeprecationWarning): - source_code = client.cms.source_code.create( - path="path", - environment="environment", - ) - - assert_matches_type(AssetFileMetadata, source_code, path=["response"]) - - @pytest.mark.skip(reason="Mock server tests are disabled") - @parametrize - def test_method_create_with_all_params(self, client: HubSpot) -> None: - with pytest.warns(DeprecationWarning): - source_code = client.cms.source_code.create( - path="path", - environment="environment", - file=b"Example data", - ) - - assert_matches_type(AssetFileMetadata, source_code, path=["response"]) - - @pytest.mark.skip(reason="Mock server tests are disabled") - @parametrize - def test_raw_response_create(self, client: HubSpot) -> None: - with pytest.warns(DeprecationWarning): - response = client.cms.source_code.with_raw_response.create( - path="path", - environment="environment", - ) - - assert response.is_closed is True - assert response.http_request.headers.get("X-Stainless-Lang") == "python" - source_code = response.parse() - assert_matches_type(AssetFileMetadata, source_code, path=["response"]) - - @pytest.mark.skip(reason="Mock server tests are disabled") - @parametrize - def test_streaming_response_create(self, client: HubSpot) -> None: - with pytest.warns(DeprecationWarning): - with client.cms.source_code.with_streaming_response.create( - path="path", - environment="environment", - ) as response: - assert not response.is_closed - assert response.http_request.headers.get("X-Stainless-Lang") == "python" - - source_code = response.parse() - assert_matches_type(AssetFileMetadata, source_code, path=["response"]) - - assert cast(Any, response.is_closed) is True - - @pytest.mark.skip(reason="Mock server tests are disabled") - @parametrize - def test_path_params_create(self, client: HubSpot) -> None: - with pytest.warns(DeprecationWarning): - with pytest.raises(ValueError, match=r"Expected a non-empty value for `environment` but received ''"): - client.cms.source_code.with_raw_response.create( - path="path", - environment="", - ) - - with pytest.raises(ValueError, match=r"Expected a non-empty value for `path` but received ''"): - client.cms.source_code.with_raw_response.create( - path="", - environment="environment", - ) - - @pytest.mark.skip(reason="Mock server tests are disabled") - @parametrize - def test_method_delete(self, client: HubSpot) -> None: - source_code = client.cms.source_code.delete( - path="path", - environment="environment", - ) - assert source_code is None - - @pytest.mark.skip(reason="Mock server tests are disabled") - @parametrize - def test_raw_response_delete(self, client: HubSpot) -> None: - response = client.cms.source_code.with_raw_response.delete( - path="path", - environment="environment", - ) - - assert response.is_closed is True - assert response.http_request.headers.get("X-Stainless-Lang") == "python" - source_code = response.parse() - assert source_code is None - - @pytest.mark.skip(reason="Mock server tests are disabled") - @parametrize - def test_streaming_response_delete(self, client: HubSpot) -> None: - with client.cms.source_code.with_streaming_response.delete( - path="path", - environment="environment", - ) as response: - assert not response.is_closed - assert response.http_request.headers.get("X-Stainless-Lang") == "python" - - source_code = response.parse() - assert source_code is None - - assert cast(Any, response.is_closed) is True - - @pytest.mark.skip(reason="Mock server tests are disabled") - @parametrize - def test_path_params_delete(self, client: HubSpot) -> None: - with pytest.raises(ValueError, match=r"Expected a non-empty value for `environment` but received ''"): - client.cms.source_code.with_raw_response.delete( - path="path", - environment="", - ) - - with pytest.raises(ValueError, match=r"Expected a non-empty value for `path` but received ''"): - client.cms.source_code.with_raw_response.delete( - path="", - environment="environment", - ) - @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize def test_method_extract_async(self, client: HubSpot) -> None: @@ -185,72 +51,6 @@ def test_streaming_response_extract_async(self, client: HubSpot) -> None: assert cast(Any, response.is_closed) is True - @parametrize - @pytest.mark.respx(base_url=base_url) - def test_method_get(self, client: HubSpot, respx_mock: MockRouter) -> None: - respx_mock.get("/cms/source-code/2026-03/environment/content/path").mock( - return_value=httpx.Response(200, json={"foo": "bar"}) - ) - source_code = client.cms.source_code.get( - path="path", - environment="environment", - ) - assert source_code.is_closed - assert source_code.json() == {"foo": "bar"} - assert cast(Any, source_code.is_closed) is True - assert isinstance(source_code, BinaryAPIResponse) - - @parametrize - @pytest.mark.respx(base_url=base_url) - def test_raw_response_get(self, client: HubSpot, respx_mock: MockRouter) -> None: - respx_mock.get("/cms/source-code/2026-03/environment/content/path").mock( - return_value=httpx.Response(200, json={"foo": "bar"}) - ) - - source_code = client.cms.source_code.with_raw_response.get( - path="path", - environment="environment", - ) - - assert source_code.is_closed is True - assert source_code.http_request.headers.get("X-Stainless-Lang") == "python" - assert source_code.json() == {"foo": "bar"} - assert isinstance(source_code, BinaryAPIResponse) - - @parametrize - @pytest.mark.respx(base_url=base_url) - def test_streaming_response_get(self, client: HubSpot, respx_mock: MockRouter) -> None: - respx_mock.get("/cms/source-code/2026-03/environment/content/path").mock( - return_value=httpx.Response(200, json={"foo": "bar"}) - ) - with client.cms.source_code.with_streaming_response.get( - path="path", - environment="environment", - ) as source_code: - assert not source_code.is_closed - assert source_code.http_request.headers.get("X-Stainless-Lang") == "python" - - assert source_code.json() == {"foo": "bar"} - assert cast(Any, source_code.is_closed) is True - assert isinstance(source_code, StreamedBinaryAPIResponse) - - assert cast(Any, source_code.is_closed) is True - - @parametrize - @pytest.mark.respx(base_url=base_url) - def test_path_params_get(self, client: HubSpot) -> None: - with pytest.raises(ValueError, match=r"Expected a non-empty value for `environment` but received ''"): - client.cms.source_code.with_raw_response.get( - path="path", - environment="", - ) - - with pytest.raises(ValueError, match=r"Expected a non-empty value for `path` but received ''"): - client.cms.source_code.with_raw_response.get( - path="", - environment="environment", - ) - @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize def test_method_get_extraction_status(self, client: HubSpot) -> None: @@ -285,339 +85,12 @@ def test_streaming_response_get_extraction_status(self, client: HubSpot) -> None assert cast(Any, response.is_closed) is True - @pytest.mark.skip(reason="Mock server tests are disabled") - @parametrize - def test_method_get_metadata(self, client: HubSpot) -> None: - source_code = client.cms.source_code.get_metadata( - path="path", - environment="environment", - ) - assert_matches_type(AssetFileMetadata, source_code, path=["response"]) - - @pytest.mark.skip(reason="Mock server tests are disabled") - @parametrize - def test_method_get_metadata_with_all_params(self, client: HubSpot) -> None: - source_code = client.cms.source_code.get_metadata( - path="path", - environment="environment", - properties="properties", - ) - assert_matches_type(AssetFileMetadata, source_code, path=["response"]) - - @pytest.mark.skip(reason="Mock server tests are disabled") - @parametrize - def test_raw_response_get_metadata(self, client: HubSpot) -> None: - response = client.cms.source_code.with_raw_response.get_metadata( - path="path", - environment="environment", - ) - - assert response.is_closed is True - assert response.http_request.headers.get("X-Stainless-Lang") == "python" - source_code = response.parse() - assert_matches_type(AssetFileMetadata, source_code, path=["response"]) - - @pytest.mark.skip(reason="Mock server tests are disabled") - @parametrize - def test_streaming_response_get_metadata(self, client: HubSpot) -> None: - with client.cms.source_code.with_streaming_response.get_metadata( - path="path", - environment="environment", - ) as response: - assert not response.is_closed - assert response.http_request.headers.get("X-Stainless-Lang") == "python" - - source_code = response.parse() - assert_matches_type(AssetFileMetadata, source_code, path=["response"]) - - assert cast(Any, response.is_closed) is True - - @pytest.mark.skip(reason="Mock server tests are disabled") - @parametrize - def test_path_params_get_metadata(self, client: HubSpot) -> None: - with pytest.raises(ValueError, match=r"Expected a non-empty value for `environment` but received ''"): - client.cms.source_code.with_raw_response.get_metadata( - path="path", - environment="", - ) - - with pytest.raises(ValueError, match=r"Expected a non-empty value for `path` but received ''"): - client.cms.source_code.with_raw_response.get_metadata( - path="", - environment="environment", - ) - - @pytest.mark.skip(reason="Mock server tests are disabled") - @parametrize - def test_method_upsert(self, client: HubSpot) -> None: - source_code = client.cms.source_code.upsert( - path="path", - environment="environment", - ) - assert_matches_type(AssetFileMetadata, source_code, path=["response"]) - - @pytest.mark.skip(reason="Mock server tests are disabled") - @parametrize - def test_method_upsert_with_all_params(self, client: HubSpot) -> None: - source_code = client.cms.source_code.upsert( - path="path", - environment="environment", - file=b"Example data", - ) - assert_matches_type(AssetFileMetadata, source_code, path=["response"]) - - @pytest.mark.skip(reason="Mock server tests are disabled") - @parametrize - def test_raw_response_upsert(self, client: HubSpot) -> None: - response = client.cms.source_code.with_raw_response.upsert( - path="path", - environment="environment", - ) - - assert response.is_closed is True - assert response.http_request.headers.get("X-Stainless-Lang") == "python" - source_code = response.parse() - assert_matches_type(AssetFileMetadata, source_code, path=["response"]) - - @pytest.mark.skip(reason="Mock server tests are disabled") - @parametrize - def test_streaming_response_upsert(self, client: HubSpot) -> None: - with client.cms.source_code.with_streaming_response.upsert( - path="path", - environment="environment", - ) as response: - assert not response.is_closed - assert response.http_request.headers.get("X-Stainless-Lang") == "python" - - source_code = response.parse() - assert_matches_type(AssetFileMetadata, source_code, path=["response"]) - - assert cast(Any, response.is_closed) is True - - @pytest.mark.skip(reason="Mock server tests are disabled") - @parametrize - def test_path_params_upsert(self, client: HubSpot) -> None: - with pytest.raises(ValueError, match=r"Expected a non-empty value for `environment` but received ''"): - client.cms.source_code.with_raw_response.upsert( - path="path", - environment="", - ) - - with pytest.raises(ValueError, match=r"Expected a non-empty value for `path` but received ''"): - client.cms.source_code.with_raw_response.upsert( - path="", - environment="environment", - ) - - @parametrize - @pytest.mark.respx(base_url=base_url) - def test_method_validate(self, client: HubSpot, respx_mock: MockRouter) -> None: - respx_mock.post("/cms/source-code/2026-03/environment/validate/path").mock( - return_value=httpx.Response(200, json={"foo": "bar"}) - ) - source_code = client.cms.source_code.validate( - path="path", - environment="environment", - ) - assert source_code.is_closed - assert source_code.json() == {"foo": "bar"} - assert cast(Any, source_code.is_closed) is True - assert isinstance(source_code, BinaryAPIResponse) - - @parametrize - @pytest.mark.respx(base_url=base_url) - def test_method_validate_with_all_params(self, client: HubSpot, respx_mock: MockRouter) -> None: - respx_mock.post("/cms/source-code/2026-03/environment/validate/path").mock( - return_value=httpx.Response(200, json={"foo": "bar"}) - ) - source_code = client.cms.source_code.validate( - path="path", - environment="environment", - file=b"Example data", - ) - assert source_code.is_closed - assert source_code.json() == {"foo": "bar"} - assert cast(Any, source_code.is_closed) is True - assert isinstance(source_code, BinaryAPIResponse) - - @parametrize - @pytest.mark.respx(base_url=base_url) - def test_raw_response_validate(self, client: HubSpot, respx_mock: MockRouter) -> None: - respx_mock.post("/cms/source-code/2026-03/environment/validate/path").mock( - return_value=httpx.Response(200, json={"foo": "bar"}) - ) - - source_code = client.cms.source_code.with_raw_response.validate( - path="path", - environment="environment", - ) - - assert source_code.is_closed is True - assert source_code.http_request.headers.get("X-Stainless-Lang") == "python" - assert source_code.json() == {"foo": "bar"} - assert isinstance(source_code, BinaryAPIResponse) - - @parametrize - @pytest.mark.respx(base_url=base_url) - def test_streaming_response_validate(self, client: HubSpot, respx_mock: MockRouter) -> None: - respx_mock.post("/cms/source-code/2026-03/environment/validate/path").mock( - return_value=httpx.Response(200, json={"foo": "bar"}) - ) - with client.cms.source_code.with_streaming_response.validate( - path="path", - environment="environment", - ) as source_code: - assert not source_code.is_closed - assert source_code.http_request.headers.get("X-Stainless-Lang") == "python" - - assert source_code.json() == {"foo": "bar"} - assert cast(Any, source_code.is_closed) is True - assert isinstance(source_code, StreamedBinaryAPIResponse) - - assert cast(Any, source_code.is_closed) is True - - @parametrize - @pytest.mark.respx(base_url=base_url) - def test_path_params_validate(self, client: HubSpot) -> None: - with pytest.raises(ValueError, match=r"Expected a non-empty value for `environment` but received ''"): - client.cms.source_code.with_raw_response.validate( - path="path", - environment="", - ) - - with pytest.raises(ValueError, match=r"Expected a non-empty value for `path` but received ''"): - client.cms.source_code.with_raw_response.validate( - path="", - environment="environment", - ) - class TestAsyncSourceCode: parametrize = pytest.mark.parametrize( "async_client", [False, True, {"http_client": "aiohttp"}], indirect=True, ids=["loose", "strict", "aiohttp"] ) - @pytest.mark.skip(reason="Mock server tests are disabled") - @parametrize - async def test_method_create(self, async_client: AsyncHubSpot) -> None: - with pytest.warns(DeprecationWarning): - source_code = await async_client.cms.source_code.create( - path="path", - environment="environment", - ) - - assert_matches_type(AssetFileMetadata, source_code, path=["response"]) - - @pytest.mark.skip(reason="Mock server tests are disabled") - @parametrize - async def test_method_create_with_all_params(self, async_client: AsyncHubSpot) -> None: - with pytest.warns(DeprecationWarning): - source_code = await async_client.cms.source_code.create( - path="path", - environment="environment", - file=b"Example data", - ) - - assert_matches_type(AssetFileMetadata, source_code, path=["response"]) - - @pytest.mark.skip(reason="Mock server tests are disabled") - @parametrize - async def test_raw_response_create(self, async_client: AsyncHubSpot) -> None: - with pytest.warns(DeprecationWarning): - response = await async_client.cms.source_code.with_raw_response.create( - path="path", - environment="environment", - ) - - assert response.is_closed is True - assert response.http_request.headers.get("X-Stainless-Lang") == "python" - source_code = await response.parse() - assert_matches_type(AssetFileMetadata, source_code, path=["response"]) - - @pytest.mark.skip(reason="Mock server tests are disabled") - @parametrize - async def test_streaming_response_create(self, async_client: AsyncHubSpot) -> None: - with pytest.warns(DeprecationWarning): - async with async_client.cms.source_code.with_streaming_response.create( - path="path", - environment="environment", - ) as response: - assert not response.is_closed - assert response.http_request.headers.get("X-Stainless-Lang") == "python" - - source_code = await response.parse() - assert_matches_type(AssetFileMetadata, source_code, path=["response"]) - - assert cast(Any, response.is_closed) is True - - @pytest.mark.skip(reason="Mock server tests are disabled") - @parametrize - async def test_path_params_create(self, async_client: AsyncHubSpot) -> None: - with pytest.warns(DeprecationWarning): - with pytest.raises(ValueError, match=r"Expected a non-empty value for `environment` but received ''"): - await async_client.cms.source_code.with_raw_response.create( - path="path", - environment="", - ) - - with pytest.raises(ValueError, match=r"Expected a non-empty value for `path` but received ''"): - await async_client.cms.source_code.with_raw_response.create( - path="", - environment="environment", - ) - - @pytest.mark.skip(reason="Mock server tests are disabled") - @parametrize - async def test_method_delete(self, async_client: AsyncHubSpot) -> None: - source_code = await async_client.cms.source_code.delete( - path="path", - environment="environment", - ) - assert source_code is None - - @pytest.mark.skip(reason="Mock server tests are disabled") - @parametrize - async def test_raw_response_delete(self, async_client: AsyncHubSpot) -> None: - response = await async_client.cms.source_code.with_raw_response.delete( - path="path", - environment="environment", - ) - - assert response.is_closed is True - assert response.http_request.headers.get("X-Stainless-Lang") == "python" - source_code = await response.parse() - assert source_code is None - - @pytest.mark.skip(reason="Mock server tests are disabled") - @parametrize - async def test_streaming_response_delete(self, async_client: AsyncHubSpot) -> None: - async with async_client.cms.source_code.with_streaming_response.delete( - path="path", - environment="environment", - ) as response: - assert not response.is_closed - assert response.http_request.headers.get("X-Stainless-Lang") == "python" - - source_code = await response.parse() - assert source_code is None - - assert cast(Any, response.is_closed) is True - - @pytest.mark.skip(reason="Mock server tests are disabled") - @parametrize - async def test_path_params_delete(self, async_client: AsyncHubSpot) -> None: - with pytest.raises(ValueError, match=r"Expected a non-empty value for `environment` but received ''"): - await async_client.cms.source_code.with_raw_response.delete( - path="path", - environment="", - ) - - with pytest.raises(ValueError, match=r"Expected a non-empty value for `path` but received ''"): - await async_client.cms.source_code.with_raw_response.delete( - path="", - environment="environment", - ) - @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize async def test_method_extract_async(self, async_client: AsyncHubSpot) -> None: @@ -652,72 +125,6 @@ async def test_streaming_response_extract_async(self, async_client: AsyncHubSpot assert cast(Any, response.is_closed) is True - @parametrize - @pytest.mark.respx(base_url=base_url) - async def test_method_get(self, async_client: AsyncHubSpot, respx_mock: MockRouter) -> None: - respx_mock.get("/cms/source-code/2026-03/environment/content/path").mock( - return_value=httpx.Response(200, json={"foo": "bar"}) - ) - source_code = await async_client.cms.source_code.get( - path="path", - environment="environment", - ) - assert source_code.is_closed - assert await source_code.json() == {"foo": "bar"} - assert cast(Any, source_code.is_closed) is True - assert isinstance(source_code, AsyncBinaryAPIResponse) - - @parametrize - @pytest.mark.respx(base_url=base_url) - async def test_raw_response_get(self, async_client: AsyncHubSpot, respx_mock: MockRouter) -> None: - respx_mock.get("/cms/source-code/2026-03/environment/content/path").mock( - return_value=httpx.Response(200, json={"foo": "bar"}) - ) - - source_code = await async_client.cms.source_code.with_raw_response.get( - path="path", - environment="environment", - ) - - assert source_code.is_closed is True - assert source_code.http_request.headers.get("X-Stainless-Lang") == "python" - assert await source_code.json() == {"foo": "bar"} - assert isinstance(source_code, AsyncBinaryAPIResponse) - - @parametrize - @pytest.mark.respx(base_url=base_url) - async def test_streaming_response_get(self, async_client: AsyncHubSpot, respx_mock: MockRouter) -> None: - respx_mock.get("/cms/source-code/2026-03/environment/content/path").mock( - return_value=httpx.Response(200, json={"foo": "bar"}) - ) - async with async_client.cms.source_code.with_streaming_response.get( - path="path", - environment="environment", - ) as source_code: - assert not source_code.is_closed - assert source_code.http_request.headers.get("X-Stainless-Lang") == "python" - - assert await source_code.json() == {"foo": "bar"} - assert cast(Any, source_code.is_closed) is True - assert isinstance(source_code, AsyncStreamedBinaryAPIResponse) - - assert cast(Any, source_code.is_closed) is True - - @parametrize - @pytest.mark.respx(base_url=base_url) - async def test_path_params_get(self, async_client: AsyncHubSpot) -> None: - with pytest.raises(ValueError, match=r"Expected a non-empty value for `environment` but received ''"): - await async_client.cms.source_code.with_raw_response.get( - path="path", - environment="", - ) - - with pytest.raises(ValueError, match=r"Expected a non-empty value for `path` but received ''"): - await async_client.cms.source_code.with_raw_response.get( - path="", - environment="environment", - ) - @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize async def test_method_get_extraction_status(self, async_client: AsyncHubSpot) -> None: @@ -751,209 +158,3 @@ async def test_streaming_response_get_extraction_status(self, async_client: Asyn assert_matches_type(ActionResponse, source_code, path=["response"]) assert cast(Any, response.is_closed) is True - - @pytest.mark.skip(reason="Mock server tests are disabled") - @parametrize - async def test_method_get_metadata(self, async_client: AsyncHubSpot) -> None: - source_code = await async_client.cms.source_code.get_metadata( - path="path", - environment="environment", - ) - assert_matches_type(AssetFileMetadata, source_code, path=["response"]) - - @pytest.mark.skip(reason="Mock server tests are disabled") - @parametrize - async def test_method_get_metadata_with_all_params(self, async_client: AsyncHubSpot) -> None: - source_code = await async_client.cms.source_code.get_metadata( - path="path", - environment="environment", - properties="properties", - ) - assert_matches_type(AssetFileMetadata, source_code, path=["response"]) - - @pytest.mark.skip(reason="Mock server tests are disabled") - @parametrize - async def test_raw_response_get_metadata(self, async_client: AsyncHubSpot) -> None: - response = await async_client.cms.source_code.with_raw_response.get_metadata( - path="path", - environment="environment", - ) - - assert response.is_closed is True - assert response.http_request.headers.get("X-Stainless-Lang") == "python" - source_code = await response.parse() - assert_matches_type(AssetFileMetadata, source_code, path=["response"]) - - @pytest.mark.skip(reason="Mock server tests are disabled") - @parametrize - async def test_streaming_response_get_metadata(self, async_client: AsyncHubSpot) -> None: - async with async_client.cms.source_code.with_streaming_response.get_metadata( - path="path", - environment="environment", - ) as response: - assert not response.is_closed - assert response.http_request.headers.get("X-Stainless-Lang") == "python" - - source_code = await response.parse() - assert_matches_type(AssetFileMetadata, source_code, path=["response"]) - - assert cast(Any, response.is_closed) is True - - @pytest.mark.skip(reason="Mock server tests are disabled") - @parametrize - async def test_path_params_get_metadata(self, async_client: AsyncHubSpot) -> None: - with pytest.raises(ValueError, match=r"Expected a non-empty value for `environment` but received ''"): - await async_client.cms.source_code.with_raw_response.get_metadata( - path="path", - environment="", - ) - - with pytest.raises(ValueError, match=r"Expected a non-empty value for `path` but received ''"): - await async_client.cms.source_code.with_raw_response.get_metadata( - path="", - environment="environment", - ) - - @pytest.mark.skip(reason="Mock server tests are disabled") - @parametrize - async def test_method_upsert(self, async_client: AsyncHubSpot) -> None: - source_code = await async_client.cms.source_code.upsert( - path="path", - environment="environment", - ) - assert_matches_type(AssetFileMetadata, source_code, path=["response"]) - - @pytest.mark.skip(reason="Mock server tests are disabled") - @parametrize - async def test_method_upsert_with_all_params(self, async_client: AsyncHubSpot) -> None: - source_code = await async_client.cms.source_code.upsert( - path="path", - environment="environment", - file=b"Example data", - ) - assert_matches_type(AssetFileMetadata, source_code, path=["response"]) - - @pytest.mark.skip(reason="Mock server tests are disabled") - @parametrize - async def test_raw_response_upsert(self, async_client: AsyncHubSpot) -> None: - response = await async_client.cms.source_code.with_raw_response.upsert( - path="path", - environment="environment", - ) - - assert response.is_closed is True - assert response.http_request.headers.get("X-Stainless-Lang") == "python" - source_code = await response.parse() - assert_matches_type(AssetFileMetadata, source_code, path=["response"]) - - @pytest.mark.skip(reason="Mock server tests are disabled") - @parametrize - async def test_streaming_response_upsert(self, async_client: AsyncHubSpot) -> None: - async with async_client.cms.source_code.with_streaming_response.upsert( - path="path", - environment="environment", - ) as response: - assert not response.is_closed - assert response.http_request.headers.get("X-Stainless-Lang") == "python" - - source_code = await response.parse() - assert_matches_type(AssetFileMetadata, source_code, path=["response"]) - - assert cast(Any, response.is_closed) is True - - @pytest.mark.skip(reason="Mock server tests are disabled") - @parametrize - async def test_path_params_upsert(self, async_client: AsyncHubSpot) -> None: - with pytest.raises(ValueError, match=r"Expected a non-empty value for `environment` but received ''"): - await async_client.cms.source_code.with_raw_response.upsert( - path="path", - environment="", - ) - - with pytest.raises(ValueError, match=r"Expected a non-empty value for `path` but received ''"): - await async_client.cms.source_code.with_raw_response.upsert( - path="", - environment="environment", - ) - - @parametrize - @pytest.mark.respx(base_url=base_url) - async def test_method_validate(self, async_client: AsyncHubSpot, respx_mock: MockRouter) -> None: - respx_mock.post("/cms/source-code/2026-03/environment/validate/path").mock( - return_value=httpx.Response(200, json={"foo": "bar"}) - ) - source_code = await async_client.cms.source_code.validate( - path="path", - environment="environment", - ) - assert source_code.is_closed - assert await source_code.json() == {"foo": "bar"} - assert cast(Any, source_code.is_closed) is True - assert isinstance(source_code, AsyncBinaryAPIResponse) - - @parametrize - @pytest.mark.respx(base_url=base_url) - async def test_method_validate_with_all_params(self, async_client: AsyncHubSpot, respx_mock: MockRouter) -> None: - respx_mock.post("/cms/source-code/2026-03/environment/validate/path").mock( - return_value=httpx.Response(200, json={"foo": "bar"}) - ) - source_code = await async_client.cms.source_code.validate( - path="path", - environment="environment", - file=b"Example data", - ) - assert source_code.is_closed - assert await source_code.json() == {"foo": "bar"} - assert cast(Any, source_code.is_closed) is True - assert isinstance(source_code, AsyncBinaryAPIResponse) - - @parametrize - @pytest.mark.respx(base_url=base_url) - async def test_raw_response_validate(self, async_client: AsyncHubSpot, respx_mock: MockRouter) -> None: - respx_mock.post("/cms/source-code/2026-03/environment/validate/path").mock( - return_value=httpx.Response(200, json={"foo": "bar"}) - ) - - source_code = await async_client.cms.source_code.with_raw_response.validate( - path="path", - environment="environment", - ) - - assert source_code.is_closed is True - assert source_code.http_request.headers.get("X-Stainless-Lang") == "python" - assert await source_code.json() == {"foo": "bar"} - assert isinstance(source_code, AsyncBinaryAPIResponse) - - @parametrize - @pytest.mark.respx(base_url=base_url) - async def test_streaming_response_validate(self, async_client: AsyncHubSpot, respx_mock: MockRouter) -> None: - respx_mock.post("/cms/source-code/2026-03/environment/validate/path").mock( - return_value=httpx.Response(200, json={"foo": "bar"}) - ) - async with async_client.cms.source_code.with_streaming_response.validate( - path="path", - environment="environment", - ) as source_code: - assert not source_code.is_closed - assert source_code.http_request.headers.get("X-Stainless-Lang") == "python" - - assert await source_code.json() == {"foo": "bar"} - assert cast(Any, source_code.is_closed) is True - assert isinstance(source_code, AsyncStreamedBinaryAPIResponse) - - assert cast(Any, source_code.is_closed) is True - - @parametrize - @pytest.mark.respx(base_url=base_url) - async def test_path_params_validate(self, async_client: AsyncHubSpot) -> None: - with pytest.raises(ValueError, match=r"Expected a non-empty value for `environment` but received ''"): - await async_client.cms.source_code.with_raw_response.validate( - path="path", - environment="", - ) - - with pytest.raises(ValueError, match=r"Expected a non-empty value for `path` but received ''"): - await async_client.cms.source_code.with_raw_response.validate( - path="", - environment="environment", - ) diff --git a/tests/api_resources/crm/test_object_schemas.py b/tests/api_resources/crm/test_object_schemas.py index 4d171e8e..664fe426 100644 --- a/tests/api_resources/crm/test_object_schemas.py +++ b/tests/api_resources/crm/test_object_schemas.py @@ -13,7 +13,7 @@ ObjectSchema, CollectionResponseObjectSchemaNoPaging, ) -from hubspot_sdk.types.shared import ObjectTypeDefinition, AssociationDefinition +from hubspot_sdk.types.shared import BaseObjectTypeDefinition, BaseAssociationDefinition base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") @@ -153,7 +153,7 @@ def test_method_update(self, client: HubSpot) -> None: object_type="objectType", clear_description=True, ) - assert_matches_type(ObjectTypeDefinition, object_schema, path=["response"]) + assert_matches_type(BaseObjectTypeDefinition, object_schema, path=["response"]) @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize @@ -173,7 +173,7 @@ def test_method_update_with_all_params(self, client: HubSpot) -> None: searchable_properties=["string"], secondary_display_properties=["string"], ) - assert_matches_type(ObjectTypeDefinition, object_schema, path=["response"]) + assert_matches_type(BaseObjectTypeDefinition, object_schema, path=["response"]) @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize @@ -186,7 +186,7 @@ def test_raw_response_update(self, client: HubSpot) -> None: assert response.is_closed is True assert response.http_request.headers.get("X-Stainless-Lang") == "python" object_schema = response.parse() - assert_matches_type(ObjectTypeDefinition, object_schema, path=["response"]) + assert_matches_type(BaseObjectTypeDefinition, object_schema, path=["response"]) @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize @@ -199,7 +199,7 @@ def test_streaming_response_update(self, client: HubSpot) -> None: assert response.http_request.headers.get("X-Stainless-Lang") == "python" object_schema = response.parse() - assert_matches_type(ObjectTypeDefinition, object_schema, path=["response"]) + assert_matches_type(BaseObjectTypeDefinition, object_schema, path=["response"]) assert cast(Any, response.is_closed) is True @@ -310,7 +310,7 @@ def test_method_create_association(self, client: HubSpot) -> None: from_object_type_id="fromObjectTypeId", to_object_type_id="toObjectTypeId", ) - assert_matches_type(AssociationDefinition, object_schema, path=["response"]) + assert_matches_type(BaseAssociationDefinition, object_schema, path=["response"]) @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize @@ -321,7 +321,7 @@ def test_method_create_association_with_all_params(self, client: HubSpot) -> Non to_object_type_id="toObjectTypeId", name="name", ) - assert_matches_type(AssociationDefinition, object_schema, path=["response"]) + assert_matches_type(BaseAssociationDefinition, object_schema, path=["response"]) @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize @@ -335,7 +335,7 @@ def test_raw_response_create_association(self, client: HubSpot) -> None: assert response.is_closed is True assert response.http_request.headers.get("X-Stainless-Lang") == "python" object_schema = response.parse() - assert_matches_type(AssociationDefinition, object_schema, path=["response"]) + assert_matches_type(BaseAssociationDefinition, object_schema, path=["response"]) @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize @@ -349,7 +349,7 @@ def test_streaming_response_create_association(self, client: HubSpot) -> None: assert response.http_request.headers.get("X-Stainless-Lang") == "python" object_schema = response.parse() - assert_matches_type(AssociationDefinition, object_schema, path=["response"]) + assert_matches_type(BaseAssociationDefinition, object_schema, path=["response"]) assert cast(Any, response.is_closed) is True @@ -608,7 +608,7 @@ async def test_method_update(self, async_client: AsyncHubSpot) -> None: object_type="objectType", clear_description=True, ) - assert_matches_type(ObjectTypeDefinition, object_schema, path=["response"]) + assert_matches_type(BaseObjectTypeDefinition, object_schema, path=["response"]) @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize @@ -628,7 +628,7 @@ async def test_method_update_with_all_params(self, async_client: AsyncHubSpot) - searchable_properties=["string"], secondary_display_properties=["string"], ) - assert_matches_type(ObjectTypeDefinition, object_schema, path=["response"]) + assert_matches_type(BaseObjectTypeDefinition, object_schema, path=["response"]) @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize @@ -641,7 +641,7 @@ async def test_raw_response_update(self, async_client: AsyncHubSpot) -> None: assert response.is_closed is True assert response.http_request.headers.get("X-Stainless-Lang") == "python" object_schema = await response.parse() - assert_matches_type(ObjectTypeDefinition, object_schema, path=["response"]) + assert_matches_type(BaseObjectTypeDefinition, object_schema, path=["response"]) @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize @@ -654,7 +654,7 @@ async def test_streaming_response_update(self, async_client: AsyncHubSpot) -> No assert response.http_request.headers.get("X-Stainless-Lang") == "python" object_schema = await response.parse() - assert_matches_type(ObjectTypeDefinition, object_schema, path=["response"]) + assert_matches_type(BaseObjectTypeDefinition, object_schema, path=["response"]) assert cast(Any, response.is_closed) is True @@ -765,7 +765,7 @@ async def test_method_create_association(self, async_client: AsyncHubSpot) -> No from_object_type_id="fromObjectTypeId", to_object_type_id="toObjectTypeId", ) - assert_matches_type(AssociationDefinition, object_schema, path=["response"]) + assert_matches_type(BaseAssociationDefinition, object_schema, path=["response"]) @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize @@ -776,7 +776,7 @@ async def test_method_create_association_with_all_params(self, async_client: Asy to_object_type_id="toObjectTypeId", name="name", ) - assert_matches_type(AssociationDefinition, object_schema, path=["response"]) + assert_matches_type(BaseAssociationDefinition, object_schema, path=["response"]) @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize @@ -790,7 +790,7 @@ async def test_raw_response_create_association(self, async_client: AsyncHubSpot) assert response.is_closed is True assert response.http_request.headers.get("X-Stainless-Lang") == "python" object_schema = await response.parse() - assert_matches_type(AssociationDefinition, object_schema, path=["response"]) + assert_matches_type(BaseAssociationDefinition, object_schema, path=["response"]) @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize @@ -804,7 +804,7 @@ async def test_streaming_response_create_association(self, async_client: AsyncHu assert response.http_request.headers.get("X-Stainless-Lang") == "python" object_schema = await response.parse() - assert_matches_type(AssociationDefinition, object_schema, path=["response"]) + assert_matches_type(BaseAssociationDefinition, object_schema, path=["response"]) assert cast(Any, response.is_closed) is True diff --git a/tests/api_resources/crm/test_properties.py b/tests/api_resources/crm/test_properties.py index 1ca0ca0c..4dc64303 100644 --- a/tests/api_resources/crm/test_properties.py +++ b/tests/api_resources/crm/test_properties.py @@ -12,7 +12,7 @@ from hubspot_sdk.types.crm import ( CollectionResponsePropertyNoPaging, ) -from hubspot_sdk.types.shared import Property +from hubspot_sdk.types.shared import BaseProperty base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") @@ -31,7 +31,7 @@ def test_method_create(self, client: HubSpot) -> None: name="name", type="bool", ) - assert_matches_type(Property, property, path=["response"]) + assert_matches_type(BaseProperty, property, path=["response"]) @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize @@ -65,7 +65,7 @@ def test_method_create_with_all_params(self, client: HubSpot) -> None: referenced_object_type="referencedObjectType", show_currency_symbol=True, ) - assert_matches_type(Property, property, path=["response"]) + assert_matches_type(BaseProperty, property, path=["response"]) @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize @@ -82,7 +82,7 @@ def test_raw_response_create(self, client: HubSpot) -> None: assert response.is_closed is True assert response.http_request.headers.get("X-Stainless-Lang") == "python" property = response.parse() - assert_matches_type(Property, property, path=["response"]) + assert_matches_type(BaseProperty, property, path=["response"]) @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize @@ -99,7 +99,7 @@ def test_streaming_response_create(self, client: HubSpot) -> None: assert response.http_request.headers.get("X-Stainless-Lang") == "python" property = response.parse() - assert_matches_type(Property, property, path=["response"]) + assert_matches_type(BaseProperty, property, path=["response"]) assert cast(Any, response.is_closed) is True @@ -123,7 +123,7 @@ def test_method_update(self, client: HubSpot) -> None: property_name="propertyName", object_type="objectType", ) - assert_matches_type(Property, property, path=["response"]) + assert_matches_type(BaseProperty, property, path=["response"]) @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize @@ -153,7 +153,7 @@ def test_method_update_with_all_params(self, client: HubSpot) -> None: show_currency_symbol=True, type="bool", ) - assert_matches_type(Property, property, path=["response"]) + assert_matches_type(BaseProperty, property, path=["response"]) @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize @@ -166,7 +166,7 @@ def test_raw_response_update(self, client: HubSpot) -> None: assert response.is_closed is True assert response.http_request.headers.get("X-Stainless-Lang") == "python" property = response.parse() - assert_matches_type(Property, property, path=["response"]) + assert_matches_type(BaseProperty, property, path=["response"]) @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize @@ -179,7 +179,7 @@ def test_streaming_response_update(self, client: HubSpot) -> None: assert response.http_request.headers.get("X-Stainless-Lang") == "python" property = response.parse() - assert_matches_type(Property, property, path=["response"]) + assert_matches_type(BaseProperty, property, path=["response"]) assert cast(Any, response.is_closed) is True @@ -311,7 +311,7 @@ def test_method_get(self, client: HubSpot) -> None: property_name="propertyName", object_type="objectType", ) - assert_matches_type(Property, property, path=["response"]) + assert_matches_type(BaseProperty, property, path=["response"]) @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize @@ -324,7 +324,7 @@ def test_method_get_with_all_params(self, client: HubSpot) -> None: locale="locale", properties="properties", ) - assert_matches_type(Property, property, path=["response"]) + assert_matches_type(BaseProperty, property, path=["response"]) @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize @@ -337,7 +337,7 @@ def test_raw_response_get(self, client: HubSpot) -> None: assert response.is_closed is True assert response.http_request.headers.get("X-Stainless-Lang") == "python" property = response.parse() - assert_matches_type(Property, property, path=["response"]) + assert_matches_type(BaseProperty, property, path=["response"]) @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize @@ -350,7 +350,7 @@ def test_streaming_response_get(self, client: HubSpot) -> None: assert response.http_request.headers.get("X-Stainless-Lang") == "python" property = response.parse() - assert_matches_type(Property, property, path=["response"]) + assert_matches_type(BaseProperty, property, path=["response"]) assert cast(Any, response.is_closed) is True @@ -386,7 +386,7 @@ async def test_method_create(self, async_client: AsyncHubSpot) -> None: name="name", type="bool", ) - assert_matches_type(Property, property, path=["response"]) + assert_matches_type(BaseProperty, property, path=["response"]) @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize @@ -420,7 +420,7 @@ async def test_method_create_with_all_params(self, async_client: AsyncHubSpot) - referenced_object_type="referencedObjectType", show_currency_symbol=True, ) - assert_matches_type(Property, property, path=["response"]) + assert_matches_type(BaseProperty, property, path=["response"]) @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize @@ -437,7 +437,7 @@ async def test_raw_response_create(self, async_client: AsyncHubSpot) -> None: assert response.is_closed is True assert response.http_request.headers.get("X-Stainless-Lang") == "python" property = await response.parse() - assert_matches_type(Property, property, path=["response"]) + assert_matches_type(BaseProperty, property, path=["response"]) @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize @@ -454,7 +454,7 @@ async def test_streaming_response_create(self, async_client: AsyncHubSpot) -> No assert response.http_request.headers.get("X-Stainless-Lang") == "python" property = await response.parse() - assert_matches_type(Property, property, path=["response"]) + assert_matches_type(BaseProperty, property, path=["response"]) assert cast(Any, response.is_closed) is True @@ -478,7 +478,7 @@ async def test_method_update(self, async_client: AsyncHubSpot) -> None: property_name="propertyName", object_type="objectType", ) - assert_matches_type(Property, property, path=["response"]) + assert_matches_type(BaseProperty, property, path=["response"]) @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize @@ -508,7 +508,7 @@ async def test_method_update_with_all_params(self, async_client: AsyncHubSpot) - show_currency_symbol=True, type="bool", ) - assert_matches_type(Property, property, path=["response"]) + assert_matches_type(BaseProperty, property, path=["response"]) @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize @@ -521,7 +521,7 @@ async def test_raw_response_update(self, async_client: AsyncHubSpot) -> None: assert response.is_closed is True assert response.http_request.headers.get("X-Stainless-Lang") == "python" property = await response.parse() - assert_matches_type(Property, property, path=["response"]) + assert_matches_type(BaseProperty, property, path=["response"]) @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize @@ -534,7 +534,7 @@ async def test_streaming_response_update(self, async_client: AsyncHubSpot) -> No assert response.http_request.headers.get("X-Stainless-Lang") == "python" property = await response.parse() - assert_matches_type(Property, property, path=["response"]) + assert_matches_type(BaseProperty, property, path=["response"]) assert cast(Any, response.is_closed) is True @@ -666,7 +666,7 @@ async def test_method_get(self, async_client: AsyncHubSpot) -> None: property_name="propertyName", object_type="objectType", ) - assert_matches_type(Property, property, path=["response"]) + assert_matches_type(BaseProperty, property, path=["response"]) @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize @@ -679,7 +679,7 @@ async def test_method_get_with_all_params(self, async_client: AsyncHubSpot) -> N locale="locale", properties="properties", ) - assert_matches_type(Property, property, path=["response"]) + assert_matches_type(BaseProperty, property, path=["response"]) @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize @@ -692,7 +692,7 @@ async def test_raw_response_get(self, async_client: AsyncHubSpot) -> None: assert response.is_closed is True assert response.http_request.headers.get("X-Stainless-Lang") == "python" property = await response.parse() - assert_matches_type(Property, property, path=["response"]) + assert_matches_type(BaseProperty, property, path=["response"]) @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize @@ -705,7 +705,7 @@ async def test_streaming_response_get(self, async_client: AsyncHubSpot) -> None: assert response.http_request.headers.get("X-Stainless-Lang") == "python" property = await response.parse() - assert_matches_type(Property, property, path=["response"]) + assert_matches_type(BaseProperty, property, path=["response"]) assert cast(Any, response.is_closed) is True diff --git a/tests/api_resources/events/test_definitions.py b/tests/api_resources/events/test_definitions.py index d2c7065a..8c84a106 100644 --- a/tests/api_resources/events/test_definitions.py +++ b/tests/api_resources/events/test_definitions.py @@ -13,7 +13,7 @@ from hubspot_sdk.types.events import ( ExternalBehavioralEventTypeDefinition, ) -from hubspot_sdk.types.shared import Property +from hubspot_sdk.types.shared import BaseProperty base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") @@ -253,7 +253,7 @@ def test_method_create_property(self, client: HubSpot) -> None: label="label", type="type", ) - assert_matches_type(Property, definition, path=["response"]) + assert_matches_type(BaseProperty, definition, path=["response"]) @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize @@ -274,7 +274,7 @@ def test_method_create_property_with_all_params(self, client: HubSpot) -> None: } ], ) - assert_matches_type(Property, definition, path=["response"]) + assert_matches_type(BaseProperty, definition, path=["response"]) @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize @@ -288,7 +288,7 @@ def test_raw_response_create_property(self, client: HubSpot) -> None: assert response.is_closed is True assert response.http_request.headers.get("X-Stainless-Lang") == "python" definition = response.parse() - assert_matches_type(Property, definition, path=["response"]) + assert_matches_type(BaseProperty, definition, path=["response"]) @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize @@ -302,7 +302,7 @@ def test_streaming_response_create_property(self, client: HubSpot) -> None: assert response.http_request.headers.get("X-Stainless-Lang") == "python" definition = response.parse() - assert_matches_type(Property, definition, path=["response"]) + assert_matches_type(BaseProperty, definition, path=["response"]) assert cast(Any, response.is_closed) is True @@ -466,7 +466,7 @@ def test_method_update_property(self, client: HubSpot) -> None: property_name="propertyName", event_name="eventName", ) - assert_matches_type(Property, definition, path=["response"]) + assert_matches_type(BaseProperty, definition, path=["response"]) @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize @@ -486,7 +486,7 @@ def test_method_update_property_with_all_params(self, client: HubSpot) -> None: } ], ) - assert_matches_type(Property, definition, path=["response"]) + assert_matches_type(BaseProperty, definition, path=["response"]) @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize @@ -499,7 +499,7 @@ def test_raw_response_update_property(self, client: HubSpot) -> None: assert response.is_closed is True assert response.http_request.headers.get("X-Stainless-Lang") == "python" definition = response.parse() - assert_matches_type(Property, definition, path=["response"]) + assert_matches_type(BaseProperty, definition, path=["response"]) @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize @@ -512,7 +512,7 @@ def test_streaming_response_update_property(self, client: HubSpot) -> None: assert response.http_request.headers.get("X-Stainless-Lang") == "python" definition = response.parse() - assert_matches_type(Property, definition, path=["response"]) + assert_matches_type(BaseProperty, definition, path=["response"]) assert cast(Any, response.is_closed) is True @@ -769,7 +769,7 @@ async def test_method_create_property(self, async_client: AsyncHubSpot) -> None: label="label", type="type", ) - assert_matches_type(Property, definition, path=["response"]) + assert_matches_type(BaseProperty, definition, path=["response"]) @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize @@ -790,7 +790,7 @@ async def test_method_create_property_with_all_params(self, async_client: AsyncH } ], ) - assert_matches_type(Property, definition, path=["response"]) + assert_matches_type(BaseProperty, definition, path=["response"]) @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize @@ -804,7 +804,7 @@ async def test_raw_response_create_property(self, async_client: AsyncHubSpot) -> assert response.is_closed is True assert response.http_request.headers.get("X-Stainless-Lang") == "python" definition = await response.parse() - assert_matches_type(Property, definition, path=["response"]) + assert_matches_type(BaseProperty, definition, path=["response"]) @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize @@ -818,7 +818,7 @@ async def test_streaming_response_create_property(self, async_client: AsyncHubSp assert response.http_request.headers.get("X-Stainless-Lang") == "python" definition = await response.parse() - assert_matches_type(Property, definition, path=["response"]) + assert_matches_type(BaseProperty, definition, path=["response"]) assert cast(Any, response.is_closed) is True @@ -982,7 +982,7 @@ async def test_method_update_property(self, async_client: AsyncHubSpot) -> None: property_name="propertyName", event_name="eventName", ) - assert_matches_type(Property, definition, path=["response"]) + assert_matches_type(BaseProperty, definition, path=["response"]) @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize @@ -1002,7 +1002,7 @@ async def test_method_update_property_with_all_params(self, async_client: AsyncH } ], ) - assert_matches_type(Property, definition, path=["response"]) + assert_matches_type(BaseProperty, definition, path=["response"]) @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize @@ -1015,7 +1015,7 @@ async def test_raw_response_update_property(self, async_client: AsyncHubSpot) -> assert response.is_closed is True assert response.http_request.headers.get("X-Stainless-Lang") == "python" definition = await response.parse() - assert_matches_type(Property, definition, path=["response"]) + assert_matches_type(BaseProperty, definition, path=["response"]) @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize @@ -1028,7 +1028,7 @@ async def test_streaming_response_update_property(self, async_client: AsyncHubSp assert response.http_request.headers.get("X-Stainless-Lang") == "python" definition = await response.parse() - assert_matches_type(Property, definition, path=["response"]) + assert_matches_type(BaseProperty, definition, path=["response"]) assert cast(Any, response.is_closed) is True diff --git a/tests/api_resources/files/test_file_assets.py b/tests/api_resources/files/test_file_assets.py index cf87cc97..58ea42c5 100644 --- a/tests/api_resources/files/test_file_assets.py +++ b/tests/api_resources/files/test_file_assets.py @@ -14,7 +14,6 @@ from hubspot_sdk.types.files import ( File, Folder, - FileStat, SignedURL, FileActionResponse, ImportFromURLTaskLocator, @@ -266,57 +265,6 @@ def test_path_params_get(self, client: HubSpot) -> None: file_id="", ) - @pytest.mark.skip(reason="Mock server tests are disabled") - @parametrize - def test_method_get_by_path(self, client: HubSpot) -> None: - file_asset = client.files.file_assets.get_by_path( - path="path", - ) - assert_matches_type(FileStat, file_asset, path=["response"]) - - @pytest.mark.skip(reason="Mock server tests are disabled") - @parametrize - def test_method_get_by_path_with_all_params(self, client: HubSpot) -> None: - file_asset = client.files.file_assets.get_by_path( - path="path", - properties=["string"], - ) - assert_matches_type(FileStat, file_asset, path=["response"]) - - @pytest.mark.skip(reason="Mock server tests are disabled") - @parametrize - def test_raw_response_get_by_path(self, client: HubSpot) -> None: - response = client.files.file_assets.with_raw_response.get_by_path( - path="path", - ) - - assert response.is_closed is True - assert response.http_request.headers.get("X-Stainless-Lang") == "python" - file_asset = response.parse() - assert_matches_type(FileStat, file_asset, path=["response"]) - - @pytest.mark.skip(reason="Mock server tests are disabled") - @parametrize - def test_streaming_response_get_by_path(self, client: HubSpot) -> None: - with client.files.file_assets.with_streaming_response.get_by_path( - path="path", - ) as response: - assert not response.is_closed - assert response.http_request.headers.get("X-Stainless-Lang") == "python" - - file_asset = response.parse() - assert_matches_type(FileStat, file_asset, path=["response"]) - - assert cast(Any, response.is_closed) is True - - @pytest.mark.skip(reason="Mock server tests are disabled") - @parametrize - def test_path_params_get_by_path(self, client: HubSpot) -> None: - with pytest.raises(ValueError, match=r"Expected a non-empty value for `path` but received ''"): - client.files.file_assets.with_raw_response.get_by_path( - path="", - ) - @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize def test_method_get_import_task_status(self, client: HubSpot) -> None: @@ -883,57 +831,6 @@ async def test_path_params_get(self, async_client: AsyncHubSpot) -> None: file_id="", ) - @pytest.mark.skip(reason="Mock server tests are disabled") - @parametrize - async def test_method_get_by_path(self, async_client: AsyncHubSpot) -> None: - file_asset = await async_client.files.file_assets.get_by_path( - path="path", - ) - assert_matches_type(FileStat, file_asset, path=["response"]) - - @pytest.mark.skip(reason="Mock server tests are disabled") - @parametrize - async def test_method_get_by_path_with_all_params(self, async_client: AsyncHubSpot) -> None: - file_asset = await async_client.files.file_assets.get_by_path( - path="path", - properties=["string"], - ) - assert_matches_type(FileStat, file_asset, path=["response"]) - - @pytest.mark.skip(reason="Mock server tests are disabled") - @parametrize - async def test_raw_response_get_by_path(self, async_client: AsyncHubSpot) -> None: - response = await async_client.files.file_assets.with_raw_response.get_by_path( - path="path", - ) - - assert response.is_closed is True - assert response.http_request.headers.get("X-Stainless-Lang") == "python" - file_asset = await response.parse() - assert_matches_type(FileStat, file_asset, path=["response"]) - - @pytest.mark.skip(reason="Mock server tests are disabled") - @parametrize - async def test_streaming_response_get_by_path(self, async_client: AsyncHubSpot) -> None: - async with async_client.files.file_assets.with_streaming_response.get_by_path( - path="path", - ) as response: - assert not response.is_closed - assert response.http_request.headers.get("X-Stainless-Lang") == "python" - - file_asset = await response.parse() - assert_matches_type(FileStat, file_asset, path=["response"]) - - assert cast(Any, response.is_closed) is True - - @pytest.mark.skip(reason="Mock server tests are disabled") - @parametrize - async def test_path_params_get_by_path(self, async_client: AsyncHubSpot) -> None: - with pytest.raises(ValueError, match=r"Expected a non-empty value for `path` but received ''"): - await async_client.files.file_assets.with_raw_response.get_by_path( - path="", - ) - @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize async def test_method_get_import_task_status(self, async_client: AsyncHubSpot) -> None: diff --git a/tests/test_deepcopy.py b/tests/test_deepcopy.py deleted file mode 100644 index 5cd4d2c8..00000000 --- a/tests/test_deepcopy.py +++ /dev/null @@ -1,58 +0,0 @@ -from hubspot_sdk._utils import deepcopy_minimal - - -def assert_different_identities(obj1: object, obj2: object) -> None: - assert obj1 == obj2 - assert id(obj1) != id(obj2) - - -def test_simple_dict() -> None: - obj1 = {"foo": "bar"} - obj2 = deepcopy_minimal(obj1) - assert_different_identities(obj1, obj2) - - -def test_nested_dict() -> None: - obj1 = {"foo": {"bar": True}} - obj2 = deepcopy_minimal(obj1) - assert_different_identities(obj1, obj2) - assert_different_identities(obj1["foo"], obj2["foo"]) - - -def test_complex_nested_dict() -> None: - obj1 = {"foo": {"bar": [{"hello": "world"}]}} - obj2 = deepcopy_minimal(obj1) - assert_different_identities(obj1, obj2) - assert_different_identities(obj1["foo"], obj2["foo"]) - assert_different_identities(obj1["foo"]["bar"], obj2["foo"]["bar"]) - assert_different_identities(obj1["foo"]["bar"][0], obj2["foo"]["bar"][0]) - - -def test_simple_list() -> None: - obj1 = ["a", "b", "c"] - obj2 = deepcopy_minimal(obj1) - assert_different_identities(obj1, obj2) - - -def test_nested_list() -> None: - obj1 = ["a", [1, 2, 3]] - obj2 = deepcopy_minimal(obj1) - assert_different_identities(obj1, obj2) - assert_different_identities(obj1[1], obj2[1]) - - -class MyObject: ... - - -def test_ignores_other_types() -> None: - # custom classes - my_obj = MyObject() - obj1 = {"foo": my_obj} - obj2 = deepcopy_minimal(obj1) - assert_different_identities(obj1, obj2) - assert obj1["foo"] is my_obj - - # tuples - obj3 = ("a", "b") - obj4 = deepcopy_minimal(obj3) - assert obj3 is obj4 diff --git a/tests/test_files.py b/tests/test_files.py index 67813275..475225a1 100644 --- a/tests/test_files.py +++ b/tests/test_files.py @@ -4,7 +4,8 @@ import pytest from dirty_equals import IsDict, IsList, IsBytes, IsTuple -from hubspot_sdk._files import to_httpx_files, async_to_httpx_files +from hubspot_sdk._files import to_httpx_files, deepcopy_with_paths, async_to_httpx_files +from hubspot_sdk._utils import extract_files readme_path = Path(__file__).parent.parent.joinpath("README.md") @@ -49,3 +50,99 @@ def test_string_not_allowed() -> None: "file": "foo", # type: ignore } ) + + +def assert_different_identities(obj1: object, obj2: object) -> None: + assert obj1 == obj2 + assert obj1 is not obj2 + + +class TestDeepcopyWithPaths: + def test_copies_top_level_dict(self) -> None: + original = {"file": b"data", "other": "value"} + result = deepcopy_with_paths(original, [["file"]]) + assert_different_identities(result, original) + + def test_file_value_is_same_reference(self) -> None: + file_bytes = b"contents" + original = {"file": file_bytes} + result = deepcopy_with_paths(original, [["file"]]) + assert_different_identities(result, original) + assert result["file"] is file_bytes + + def test_list_popped_wholesale(self) -> None: + files = [b"f1", b"f2"] + original = {"files": files, "title": "t"} + result = deepcopy_with_paths(original, [["files", ""]]) + assert_different_identities(result, original) + result_files = result["files"] + assert isinstance(result_files, list) + assert_different_identities(result_files, files) + + def test_nested_array_path_copies_list_and_elements(self) -> None: + elem1 = {"file": b"f1", "extra": 1} + elem2 = {"file": b"f2", "extra": 2} + original = {"items": [elem1, elem2]} + result = deepcopy_with_paths(original, [["items", "", "file"]]) + assert_different_identities(result, original) + result_items = result["items"] + assert isinstance(result_items, list) + assert_different_identities(result_items, original["items"]) + assert_different_identities(result_items[0], elem1) + assert_different_identities(result_items[1], elem2) + + def test_empty_paths_returns_same_object(self) -> None: + original = {"foo": "bar"} + result = deepcopy_with_paths(original, []) + assert result is original + + def test_multiple_paths(self) -> None: + f1 = b"file1" + f2 = b"file2" + original = {"a": f1, "b": f2, "c": "unchanged"} + result = deepcopy_with_paths(original, [["a"], ["b"]]) + assert_different_identities(result, original) + assert result["a"] is f1 + assert result["b"] is f2 + assert result["c"] is original["c"] + + def test_extract_files_does_not_mutate_original_top_level(self) -> None: + file_bytes = b"contents" + original = {"file": file_bytes, "other": "value"} + + copied = deepcopy_with_paths(original, [["file"]]) + extracted = extract_files(copied, paths=[["file"]]) + + assert extracted == [("file", file_bytes)] + assert original == {"file": file_bytes, "other": "value"} + assert copied == {"other": "value"} + + def test_extract_files_does_not_mutate_original_nested_array_path(self) -> None: + file1 = b"f1" + file2 = b"f2" + original = { + "items": [ + {"file": file1, "extra": 1}, + {"file": file2, "extra": 2}, + ], + "title": "example", + } + + copied = deepcopy_with_paths(original, [["items", "", "file"]]) + extracted = extract_files(copied, paths=[["items", "", "file"]]) + + assert extracted == [("items[][file]", file1), ("items[][file]", file2)] + assert original == { + "items": [ + {"file": file1, "extra": 1}, + {"file": file2, "extra": 2}, + ], + "title": "example", + } + assert copied == { + "items": [ + {"extra": 1}, + {"extra": 2}, + ], + "title": "example", + }