From 0d233e4dbe68cb7c248482730102077e0db7de08 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Fri, 19 Jul 2024 14:12:13 +0000 Subject: [PATCH] feat(api): update via SDK Studio (#256) --- api.md | 14 +++++++------- .../resources/help_center/help_centers.py | 2 +- src/python_intercom/types/__init__.py | 2 ++ src/python_intercom/types/help_center/__init__.py | 1 - .../types/{help_center => }/help_center_list.py | 4 ++-- .../api_resources/help_center/test_help_centers.py | 3 ++- 6 files changed, 14 insertions(+), 12 deletions(-) rename src/python_intercom/types/{help_center => }/help_center_list.py (83%) diff --git a/api.md b/api.md index 5aa24c19..79fccd52 100644 --- a/api.md +++ b/api.md @@ -86,6 +86,12 @@ Methods: # HelpCenter +Types: + +```python +from python_intercom.types import HelpCenter, HelpCenterList +``` + ## Collections Types: @@ -104,16 +110,10 @@ Methods: ## HelpCenters -Types: - -```python -from python_intercom.types.help_center import HelpCenter, HelpCenterList -``` - Methods: - client.help_center.help_centers.retrieve(id) -> HelpCenter -- client.help_center.help_centers.list() -> HelpCenterList +- client.help_center.help_centers.list() -> HelpCenterList # Companies diff --git a/src/python_intercom/resources/help_center/help_centers.py b/src/python_intercom/resources/help_center/help_centers.py index 86446e73..46a9fd6e 100644 --- a/src/python_intercom/resources/help_center/help_centers.py +++ b/src/python_intercom/resources/help_center/help_centers.py @@ -17,8 +17,8 @@ async_to_streamed_response_wrapper, ) from ..._base_client import make_request_options +from ...types.help_center_list import HelpCenterList from ...types.help_center.help_center import HelpCenter -from ...types.help_center.help_center_list import HelpCenterList __all__ = ["HelpCentersResource", "AsyncHelpCentersResource"] diff --git a/src/python_intercom/types/__init__.py b/src/python_intercom/types/__init__.py index 26433b99..798a027a 100644 --- a/src/python_intercom/types/__init__.py +++ b/src/python_intercom/types/__init__.py @@ -35,6 +35,7 @@ from .team_list import TeamList as TeamList from .admin_list import AdminList as AdminList from .data_export import DataExport as DataExport +from .help_center import HelpCenter as HelpCenter from .ticket_list import TicketList as TicketList from .ticket_type import TicketType as TicketType from .article_list import ArticleList as ArticleList @@ -48,6 +49,7 @@ from .data_attribute import DataAttribute as DataAttribute from .contact_deleted import ContactDeleted as ContactDeleted from .contact_archived import ContactArchived as ContactArchived +from .help_center_list import HelpCenterList as HelpCenterList from .ticket_type_list import TicketTypeList as TicketTypeList from .conversation_list import ConversationList as ConversationList from .contact_unarchived import ContactUnarchived as ContactUnarchived diff --git a/src/python_intercom/types/help_center/__init__.py b/src/python_intercom/types/help_center/__init__.py index 4d3ad85a..fcaa3833 100644 --- a/src/python_intercom/types/help_center/__init__.py +++ b/src/python_intercom/types/help_center/__init__.py @@ -5,7 +5,6 @@ from .collection import Collection as Collection from .help_center import HelpCenter as HelpCenter from .collection_list import CollectionList as CollectionList -from .help_center_list import HelpCenterList as HelpCenterList from .deleted_collection import DeletedCollection as DeletedCollection from .collection_create_params import CollectionCreateParams as CollectionCreateParams from .collection_update_params import CollectionUpdateParams as CollectionUpdateParams diff --git a/src/python_intercom/types/help_center/help_center_list.py b/src/python_intercom/types/help_center_list.py similarity index 83% rename from src/python_intercom/types/help_center/help_center_list.py rename to src/python_intercom/types/help_center_list.py index 8223f5a7..c45b0ee4 100644 --- a/src/python_intercom/types/help_center/help_center_list.py +++ b/src/python_intercom/types/help_center_list.py @@ -3,8 +3,8 @@ from typing import List, Optional from typing_extensions import Literal -from ..._models import BaseModel -from .help_center import HelpCenter +from .._models import BaseModel +from .help_center.help_center import HelpCenter __all__ = ["HelpCenterList"] diff --git a/tests/api_resources/help_center/test_help_centers.py b/tests/api_resources/help_center/test_help_centers.py index 4d6dbac8..218aee63 100644 --- a/tests/api_resources/help_center/test_help_centers.py +++ b/tests/api_resources/help_center/test_help_centers.py @@ -9,7 +9,8 @@ from tests.utils import assert_matches_type from python_intercom import Intercom, AsyncIntercom -from python_intercom.types.help_center import HelpCenter, HelpCenterList +from python_intercom.types import HelpCenterList +from python_intercom.types.help_center import HelpCenter base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010")