From 64cd2480f1433285e5a48690e249e88dda547800 Mon Sep 17 00:00:00 2001 From: fern-api <115122769+fern-api[bot]@users.noreply.github.com> Date: Tue, 30 Jul 2024 05:41:48 +0000 Subject: [PATCH] Release 0.0.1068 --- README.md | 56 ------------------- poetry.lock | 12 ++-- pyproject.toml | 2 +- src/revert/core/client_wrapper.py | 2 +- .../resources/crm/resources/company/client.py | 24 ++++++-- .../resources/crm/resources/contact/client.py | 24 ++++++-- .../resources/crm/resources/deal/client.py | 24 ++++++-- .../resources/crm/resources/event/client.py | 24 ++++++-- .../resources/crm/resources/lead/client.py | 24 ++++++-- .../resources/crm/resources/note/client.py | 24 ++++++-- .../resources/crm/resources/task/client.py | 24 ++++++-- .../resources/crm/resources/user/client.py | 24 ++++++-- 12 files changed, 168 insertions(+), 96 deletions(-) delete mode 100644 README.md diff --git a/README.md b/README.md deleted file mode 100644 index 86c38eb..0000000 --- a/README.md +++ /dev/null @@ -1,56 +0,0 @@ - -# Revert Python Library - -[![fern shield](https://img.shields.io/badge/%F0%9F%8C%BF-SDK%20generated%20by%20Fern-brightgreen)](https://github.com/fern-api/fern) - -The Revert Python Library provides convenient access to the Revert API from applications written in Python. - - - -# Installation - -```sh -pip install --upgrade revert-api -``` - - - -# Usage - -```python -from revert.client import Revert - -client = Revert() -``` - - - -# Async Client - -```python -from revert.client import AsyncRevert - -client = AsyncRevert() -``` - - - -# Beta Status - -This SDK is in beta, and there may be breaking changes between versions without a major -version update. Therefore, we recommend pinning the package version to a specific version. -This way, you can install the same version each time without breaking changes. - - - -# Contributing - -While we value open-source contributions to this SDK, this library is generated programmatically. -Additions made directly to this library would have to be moved over to our generation code, -otherwise they would be overwritten upon the next generated release. Feel free to open a PR as - a proof of concept, but know that we will not be able to merge it as-is. We suggest opening -an issue first to discuss with us! - -On the other hand, contributions to the README are always very welcome! - - diff --git a/poetry.lock b/poetry.lock index 5451d0b..4806d93 100644 --- a/poetry.lock +++ b/poetry.lock @@ -38,13 +38,13 @@ trio = ["trio (<0.22)"] [[package]] name = "certifi" -version = "2024.6.2" +version = "2024.7.4" description = "Python package for providing Mozilla's CA Bundle." optional = false python-versions = ">=3.6" files = [ - {file = "certifi-2024.6.2-py3-none-any.whl", hash = "sha256:ddc6c8ce995e6987e7faf5e3f1b02b302836a0e5d98ece18392cb1a36c72ad56"}, - {file = "certifi-2024.6.2.tar.gz", hash = "sha256:3cd43f1c6fa7dedc5899d69d3ad0398fd018ad1a17fba83ddaf78aa46c747516"}, + {file = "certifi-2024.7.4-py3-none-any.whl", hash = "sha256:c198e21b1289c2ab85ee4e67bb4b4ef3ead0892059901a8d5b622f24a1101e90"}, + {file = "certifi-2024.7.4.tar.gz", hash = "sha256:5a1e7645bc0ec61a09e26c36f6106dd4cf40c6db3a1fb6352b0244e7fb057c7b"}, ] [[package]] @@ -60,13 +60,13 @@ files = [ [[package]] name = "exceptiongroup" -version = "1.2.1" +version = "1.2.2" description = "Backport of PEP 654 (exception groups)" optional = false python-versions = ">=3.7" files = [ - {file = "exceptiongroup-1.2.1-py3-none-any.whl", hash = "sha256:5258b9ed329c5bbdd31a309f53cbfb0b155341807f6ff7606a1e801a891b29ad"}, - {file = "exceptiongroup-1.2.1.tar.gz", hash = "sha256:a4785e48b045528f5bfe627b6ad554ff32def154f42372786903b7abcfe1aa16"}, + {file = "exceptiongroup-1.2.2-py3-none-any.whl", hash = "sha256:3111b9d131c238bec2f8f516e123e14ba243563fb135d3fe885990585aa7795b"}, + {file = "exceptiongroup-1.2.2.tar.gz", hash = "sha256:47c2edf7c6738fafb49fd34290706d1a1a2f4d1c6df275526b62cbb4aa5393cc"}, ] [package.extras] diff --git a/pyproject.toml b/pyproject.toml index 2db0922..7b67743 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [tool.poetry] name = "revert-api" -version = "0.0.1067" +version = "0.0.1068" description = "" readme = "README.md" authors = [] diff --git a/src/revert/core/client_wrapper.py b/src/revert/core/client_wrapper.py index 7b5e5bc..43f5f2a 100644 --- a/src/revert/core/client_wrapper.py +++ b/src/revert/core/client_wrapper.py @@ -13,7 +13,7 @@ def get_headers(self) -> typing.Dict[str, str]: headers: typing.Dict[str, str] = { "X-Fern-Language": "Python", "X-Fern-SDK-Name": "revert-api", - "X-Fern-SDK-Version": "0.0.1067", + "X-Fern-SDK-Version": "0.0.1068", } return headers diff --git a/src/revert/resources/crm/resources/company/client.py b/src/revert/resources/crm/resources/company/client.py index 567e0d7..ee86cb4 100644 --- a/src/revert/resources/crm/resources/company/client.py +++ b/src/revert/resources/crm/resources/company/client.py @@ -37,6 +37,7 @@ def get_company( id: str, *, fields: typing.Optional[str] = None, + associations: typing.Optional[str] = None, x_revert_api_token: str, x_revert_t_id: str, x_api_version: typing.Optional[str] = None, @@ -49,6 +50,8 @@ def get_company( - fields: typing.Optional[str]. + - associations: typing.Optional[str]. + - x_revert_api_token: str. Your official API key for accessing revert apis. - x_revert_t_id: str. The unique customer id used when the customer linked their account. @@ -58,7 +61,7 @@ def get_company( _response = self._client_wrapper.httpx_client.request( "GET", urllib.parse.urljoin(f"{self._client_wrapper.get_base_url()}/", f"crm/companies/{id}"), - params=remove_none_from_dict({"fields": fields}), + params=remove_none_from_dict({"fields": fields, "associations": associations}), headers=remove_none_from_dict( { **self._client_wrapper.get_headers(), @@ -87,6 +90,7 @@ def get_companies( self, *, fields: typing.Optional[str] = None, + associations: typing.Optional[str] = None, page_size: typing.Optional[str] = None, cursor: typing.Optional[str] = None, x_revert_api_token: str, @@ -99,6 +103,8 @@ def get_companies( Parameters: - fields: typing.Optional[str]. + - associations: typing.Optional[str]. + - page_size: typing.Optional[str]. - cursor: typing.Optional[str]. @@ -112,7 +118,9 @@ def get_companies( _response = self._client_wrapper.httpx_client.request( "GET", urllib.parse.urljoin(f"{self._client_wrapper.get_base_url()}/", "crm/companies"), - params=remove_none_from_dict({"fields": fields, "pageSize": page_size, "cursor": cursor}), + params=remove_none_from_dict( + {"fields": fields, "associations": associations, "pageSize": page_size, "cursor": cursor} + ), headers=remove_none_from_dict( { **self._client_wrapper.get_headers(), @@ -304,6 +312,7 @@ async def get_company( id: str, *, fields: typing.Optional[str] = None, + associations: typing.Optional[str] = None, x_revert_api_token: str, x_revert_t_id: str, x_api_version: typing.Optional[str] = None, @@ -316,6 +325,8 @@ async def get_company( - fields: typing.Optional[str]. + - associations: typing.Optional[str]. + - x_revert_api_token: str. Your official API key for accessing revert apis. - x_revert_t_id: str. The unique customer id used when the customer linked their account. @@ -325,7 +336,7 @@ async def get_company( _response = await self._client_wrapper.httpx_client.request( "GET", urllib.parse.urljoin(f"{self._client_wrapper.get_base_url()}/", f"crm/companies/{id}"), - params=remove_none_from_dict({"fields": fields}), + params=remove_none_from_dict({"fields": fields, "associations": associations}), headers=remove_none_from_dict( { **self._client_wrapper.get_headers(), @@ -354,6 +365,7 @@ async def get_companies( self, *, fields: typing.Optional[str] = None, + associations: typing.Optional[str] = None, page_size: typing.Optional[str] = None, cursor: typing.Optional[str] = None, x_revert_api_token: str, @@ -366,6 +378,8 @@ async def get_companies( Parameters: - fields: typing.Optional[str]. + - associations: typing.Optional[str]. + - page_size: typing.Optional[str]. - cursor: typing.Optional[str]. @@ -379,7 +393,9 @@ async def get_companies( _response = await self._client_wrapper.httpx_client.request( "GET", urllib.parse.urljoin(f"{self._client_wrapper.get_base_url()}/", "crm/companies"), - params=remove_none_from_dict({"fields": fields, "pageSize": page_size, "cursor": cursor}), + params=remove_none_from_dict( + {"fields": fields, "associations": associations, "pageSize": page_size, "cursor": cursor} + ), headers=remove_none_from_dict( { **self._client_wrapper.get_headers(), diff --git a/src/revert/resources/crm/resources/contact/client.py b/src/revert/resources/crm/resources/contact/client.py index 27a77f8..db3843d 100644 --- a/src/revert/resources/crm/resources/contact/client.py +++ b/src/revert/resources/crm/resources/contact/client.py @@ -37,6 +37,7 @@ def get_contact( id: str, *, fields: typing.Optional[str] = None, + associations: typing.Optional[str] = None, x_revert_api_token: str, x_revert_t_id: str, x_api_version: typing.Optional[str] = None, @@ -49,6 +50,8 @@ def get_contact( - fields: typing.Optional[str]. + - associations: typing.Optional[str]. + - x_revert_api_token: str. Your official API key for accessing revert apis. - x_revert_t_id: str. The unique customer id used when the customer linked their account. @@ -58,7 +61,7 @@ def get_contact( _response = self._client_wrapper.httpx_client.request( "GET", urllib.parse.urljoin(f"{self._client_wrapper.get_base_url()}/", f"crm/contacts/{id}"), - params=remove_none_from_dict({"fields": fields}), + params=remove_none_from_dict({"fields": fields, "associations": associations}), headers=remove_none_from_dict( { **self._client_wrapper.get_headers(), @@ -89,6 +92,7 @@ def get_contacts( fields: typing.Optional[str] = None, page_size: typing.Optional[str] = None, cursor: typing.Optional[str] = None, + associations: typing.Optional[str] = None, x_revert_api_token: str, x_revert_t_id: str, x_api_version: typing.Optional[str] = None, @@ -103,6 +107,8 @@ def get_contacts( - cursor: typing.Optional[str]. + - associations: typing.Optional[str]. + - x_revert_api_token: str. Your official API key for accessing revert apis. - x_revert_t_id: str. The unique customer id used when the customer linked their account. @@ -112,7 +118,9 @@ def get_contacts( _response = self._client_wrapper.httpx_client.request( "GET", urllib.parse.urljoin(f"{self._client_wrapper.get_base_url()}/", "crm/contacts"), - params=remove_none_from_dict({"fields": fields, "pageSize": page_size, "cursor": cursor}), + params=remove_none_from_dict( + {"fields": fields, "pageSize": page_size, "cursor": cursor, "associations": associations} + ), headers=remove_none_from_dict( { **self._client_wrapper.get_headers(), @@ -308,6 +316,7 @@ async def get_contact( id: str, *, fields: typing.Optional[str] = None, + associations: typing.Optional[str] = None, x_revert_api_token: str, x_revert_t_id: str, x_api_version: typing.Optional[str] = None, @@ -320,6 +329,8 @@ async def get_contact( - fields: typing.Optional[str]. + - associations: typing.Optional[str]. + - x_revert_api_token: str. Your official API key for accessing revert apis. - x_revert_t_id: str. The unique customer id used when the customer linked their account. @@ -329,7 +340,7 @@ async def get_contact( _response = await self._client_wrapper.httpx_client.request( "GET", urllib.parse.urljoin(f"{self._client_wrapper.get_base_url()}/", f"crm/contacts/{id}"), - params=remove_none_from_dict({"fields": fields}), + params=remove_none_from_dict({"fields": fields, "associations": associations}), headers=remove_none_from_dict( { **self._client_wrapper.get_headers(), @@ -360,6 +371,7 @@ async def get_contacts( fields: typing.Optional[str] = None, page_size: typing.Optional[str] = None, cursor: typing.Optional[str] = None, + associations: typing.Optional[str] = None, x_revert_api_token: str, x_revert_t_id: str, x_api_version: typing.Optional[str] = None, @@ -374,6 +386,8 @@ async def get_contacts( - cursor: typing.Optional[str]. + - associations: typing.Optional[str]. + - x_revert_api_token: str. Your official API key for accessing revert apis. - x_revert_t_id: str. The unique customer id used when the customer linked their account. @@ -383,7 +397,9 @@ async def get_contacts( _response = await self._client_wrapper.httpx_client.request( "GET", urllib.parse.urljoin(f"{self._client_wrapper.get_base_url()}/", "crm/contacts"), - params=remove_none_from_dict({"fields": fields, "pageSize": page_size, "cursor": cursor}), + params=remove_none_from_dict( + {"fields": fields, "pageSize": page_size, "cursor": cursor, "associations": associations} + ), headers=remove_none_from_dict( { **self._client_wrapper.get_headers(), diff --git a/src/revert/resources/crm/resources/deal/client.py b/src/revert/resources/crm/resources/deal/client.py index 53274ff..52387a5 100644 --- a/src/revert/resources/crm/resources/deal/client.py +++ b/src/revert/resources/crm/resources/deal/client.py @@ -36,6 +36,7 @@ def get_deal( id: str, *, fields: typing.Optional[str] = None, + associations: typing.Optional[str] = None, x_revert_api_token: str, x_revert_t_id: str, x_api_version: typing.Optional[str] = None, @@ -48,6 +49,8 @@ def get_deal( - fields: typing.Optional[str]. + - associations: typing.Optional[str]. + - x_revert_api_token: str. Your official API key for accessing revert apis. - x_revert_t_id: str. The unique customer id used when the customer linked their account. @@ -57,7 +60,7 @@ def get_deal( _response = self._client_wrapper.httpx_client.request( "GET", urllib.parse.urljoin(f"{self._client_wrapper.get_base_url()}/", f"crm/deals/{id}"), - params=remove_none_from_dict({"fields": fields}), + params=remove_none_from_dict({"fields": fields, "associations": associations}), headers=remove_none_from_dict( { **self._client_wrapper.get_headers(), @@ -88,6 +91,7 @@ def get_deals( fields: typing.Optional[str] = None, page_size: typing.Optional[str] = None, cursor: typing.Optional[str] = None, + associations: typing.Optional[str] = None, x_revert_api_token: str, x_revert_t_id: str, x_api_version: typing.Optional[str] = None, @@ -102,6 +106,8 @@ def get_deals( - cursor: typing.Optional[str]. + - associations: typing.Optional[str]. + - x_revert_api_token: str. Your official API key for accessing revert apis. - x_revert_t_id: str. The unique customer id used when the customer linked their account. @@ -111,7 +117,9 @@ def get_deals( _response = self._client_wrapper.httpx_client.request( "GET", urllib.parse.urljoin(f"{self._client_wrapper.get_base_url()}/", "crm/deals"), - params=remove_none_from_dict({"fields": fields, "pageSize": page_size, "cursor": cursor}), + params=remove_none_from_dict( + {"fields": fields, "pageSize": page_size, "cursor": cursor, "associations": associations} + ), headers=remove_none_from_dict( { **self._client_wrapper.get_headers(), @@ -303,6 +311,7 @@ async def get_deal( id: str, *, fields: typing.Optional[str] = None, + associations: typing.Optional[str] = None, x_revert_api_token: str, x_revert_t_id: str, x_api_version: typing.Optional[str] = None, @@ -315,6 +324,8 @@ async def get_deal( - fields: typing.Optional[str]. + - associations: typing.Optional[str]. + - x_revert_api_token: str. Your official API key for accessing revert apis. - x_revert_t_id: str. The unique customer id used when the customer linked their account. @@ -324,7 +335,7 @@ async def get_deal( _response = await self._client_wrapper.httpx_client.request( "GET", urllib.parse.urljoin(f"{self._client_wrapper.get_base_url()}/", f"crm/deals/{id}"), - params=remove_none_from_dict({"fields": fields}), + params=remove_none_from_dict({"fields": fields, "associations": associations}), headers=remove_none_from_dict( { **self._client_wrapper.get_headers(), @@ -355,6 +366,7 @@ async def get_deals( fields: typing.Optional[str] = None, page_size: typing.Optional[str] = None, cursor: typing.Optional[str] = None, + associations: typing.Optional[str] = None, x_revert_api_token: str, x_revert_t_id: str, x_api_version: typing.Optional[str] = None, @@ -369,6 +381,8 @@ async def get_deals( - cursor: typing.Optional[str]. + - associations: typing.Optional[str]. + - x_revert_api_token: str. Your official API key for accessing revert apis. - x_revert_t_id: str. The unique customer id used when the customer linked their account. @@ -378,7 +392,9 @@ async def get_deals( _response = await self._client_wrapper.httpx_client.request( "GET", urllib.parse.urljoin(f"{self._client_wrapper.get_base_url()}/", "crm/deals"), - params=remove_none_from_dict({"fields": fields, "pageSize": page_size, "cursor": cursor}), + params=remove_none_from_dict( + {"fields": fields, "pageSize": page_size, "cursor": cursor, "associations": associations} + ), headers=remove_none_from_dict( { **self._client_wrapper.get_headers(), diff --git a/src/revert/resources/crm/resources/event/client.py b/src/revert/resources/crm/resources/event/client.py index 7a12b66..b3fb867 100644 --- a/src/revert/resources/crm/resources/event/client.py +++ b/src/revert/resources/crm/resources/event/client.py @@ -37,6 +37,7 @@ def get_event( id: str, *, fields: typing.Optional[str] = None, + associations: typing.Optional[str] = None, x_revert_api_token: str, x_revert_t_id: str, x_api_version: typing.Optional[str] = None, @@ -49,6 +50,8 @@ def get_event( - fields: typing.Optional[str]. + - associations: typing.Optional[str]. + - x_revert_api_token: str. Your official API key for accessing revert apis. - x_revert_t_id: str. The unique customer id used when the customer linked their account. @@ -58,7 +61,7 @@ def get_event( _response = self._client_wrapper.httpx_client.request( "GET", urllib.parse.urljoin(f"{self._client_wrapper.get_base_url()}/", f"crm/events/{id}"), - params=remove_none_from_dict({"fields": fields}), + params=remove_none_from_dict({"fields": fields, "associations": associations}), headers=remove_none_from_dict( { **self._client_wrapper.get_headers(), @@ -89,6 +92,7 @@ def get_events( fields: typing.Optional[str] = None, page_size: typing.Optional[str] = None, cursor: typing.Optional[str] = None, + associations: typing.Optional[str] = None, x_revert_api_token: str, x_revert_t_id: str, x_api_version: typing.Optional[str] = None, @@ -103,6 +107,8 @@ def get_events( - cursor: typing.Optional[str]. + - associations: typing.Optional[str]. + - x_revert_api_token: str. Your official API key for accessing revert apis. - x_revert_t_id: str. The unique customer id used when the customer linked their account. @@ -112,7 +118,9 @@ def get_events( _response = self._client_wrapper.httpx_client.request( "GET", urllib.parse.urljoin(f"{self._client_wrapper.get_base_url()}/", "crm/events"), - params=remove_none_from_dict({"fields": fields, "pageSize": page_size, "cursor": cursor}), + params=remove_none_from_dict( + {"fields": fields, "pageSize": page_size, "cursor": cursor, "associations": associations} + ), headers=remove_none_from_dict( { **self._client_wrapper.get_headers(), @@ -346,6 +354,7 @@ async def get_event( id: str, *, fields: typing.Optional[str] = None, + associations: typing.Optional[str] = None, x_revert_api_token: str, x_revert_t_id: str, x_api_version: typing.Optional[str] = None, @@ -358,6 +367,8 @@ async def get_event( - fields: typing.Optional[str]. + - associations: typing.Optional[str]. + - x_revert_api_token: str. Your official API key for accessing revert apis. - x_revert_t_id: str. The unique customer id used when the customer linked their account. @@ -367,7 +378,7 @@ async def get_event( _response = await self._client_wrapper.httpx_client.request( "GET", urllib.parse.urljoin(f"{self._client_wrapper.get_base_url()}/", f"crm/events/{id}"), - params=remove_none_from_dict({"fields": fields}), + params=remove_none_from_dict({"fields": fields, "associations": associations}), headers=remove_none_from_dict( { **self._client_wrapper.get_headers(), @@ -398,6 +409,7 @@ async def get_events( fields: typing.Optional[str] = None, page_size: typing.Optional[str] = None, cursor: typing.Optional[str] = None, + associations: typing.Optional[str] = None, x_revert_api_token: str, x_revert_t_id: str, x_api_version: typing.Optional[str] = None, @@ -412,6 +424,8 @@ async def get_events( - cursor: typing.Optional[str]. + - associations: typing.Optional[str]. + - x_revert_api_token: str. Your official API key for accessing revert apis. - x_revert_t_id: str. The unique customer id used when the customer linked their account. @@ -421,7 +435,9 @@ async def get_events( _response = await self._client_wrapper.httpx_client.request( "GET", urllib.parse.urljoin(f"{self._client_wrapper.get_base_url()}/", "crm/events"), - params=remove_none_from_dict({"fields": fields, "pageSize": page_size, "cursor": cursor}), + params=remove_none_from_dict( + {"fields": fields, "pageSize": page_size, "cursor": cursor, "associations": associations} + ), headers=remove_none_from_dict( { **self._client_wrapper.get_headers(), diff --git a/src/revert/resources/crm/resources/lead/client.py b/src/revert/resources/crm/resources/lead/client.py index 784c85c..b36d1fb 100644 --- a/src/revert/resources/crm/resources/lead/client.py +++ b/src/revert/resources/crm/resources/lead/client.py @@ -36,6 +36,7 @@ def get_lead( id: str, *, fields: typing.Optional[str] = None, + associations: typing.Optional[str] = None, x_revert_api_token: str, x_revert_t_id: str, x_api_version: typing.Optional[str] = None, @@ -48,6 +49,8 @@ def get_lead( - fields: typing.Optional[str]. + - associations: typing.Optional[str]. + - x_revert_api_token: str. Your official API key for accessing revert apis. - x_revert_t_id: str. The unique customer id used when the customer linked their account. @@ -57,7 +60,7 @@ def get_lead( _response = self._client_wrapper.httpx_client.request( "GET", urllib.parse.urljoin(f"{self._client_wrapper.get_base_url()}/", f"crm/leads/{id}"), - params=remove_none_from_dict({"fields": fields}), + params=remove_none_from_dict({"fields": fields, "associations": associations}), headers=remove_none_from_dict( { **self._client_wrapper.get_headers(), @@ -88,6 +91,7 @@ def get_leads( fields: typing.Optional[str] = None, page_size: typing.Optional[str] = None, cursor: typing.Optional[str] = None, + associations: typing.Optional[str] = None, x_revert_api_token: str, x_revert_t_id: str, x_api_version: typing.Optional[str] = None, @@ -102,6 +106,8 @@ def get_leads( - cursor: typing.Optional[str]. + - associations: typing.Optional[str]. + - x_revert_api_token: str. Your official API key for accessing revert apis. - x_revert_t_id: str. The unique customer id used when the customer linked their account. @@ -111,7 +117,9 @@ def get_leads( _response = self._client_wrapper.httpx_client.request( "GET", urllib.parse.urljoin(f"{self._client_wrapper.get_base_url()}/", "crm/leads"), - params=remove_none_from_dict({"fields": fields, "pageSize": page_size, "cursor": cursor}), + params=remove_none_from_dict( + {"fields": fields, "pageSize": page_size, "cursor": cursor, "associations": associations} + ), headers=remove_none_from_dict( { **self._client_wrapper.get_headers(), @@ -303,6 +311,7 @@ async def get_lead( id: str, *, fields: typing.Optional[str] = None, + associations: typing.Optional[str] = None, x_revert_api_token: str, x_revert_t_id: str, x_api_version: typing.Optional[str] = None, @@ -315,6 +324,8 @@ async def get_lead( - fields: typing.Optional[str]. + - associations: typing.Optional[str]. + - x_revert_api_token: str. Your official API key for accessing revert apis. - x_revert_t_id: str. The unique customer id used when the customer linked their account. @@ -324,7 +335,7 @@ async def get_lead( _response = await self._client_wrapper.httpx_client.request( "GET", urllib.parse.urljoin(f"{self._client_wrapper.get_base_url()}/", f"crm/leads/{id}"), - params=remove_none_from_dict({"fields": fields}), + params=remove_none_from_dict({"fields": fields, "associations": associations}), headers=remove_none_from_dict( { **self._client_wrapper.get_headers(), @@ -355,6 +366,7 @@ async def get_leads( fields: typing.Optional[str] = None, page_size: typing.Optional[str] = None, cursor: typing.Optional[str] = None, + associations: typing.Optional[str] = None, x_revert_api_token: str, x_revert_t_id: str, x_api_version: typing.Optional[str] = None, @@ -369,6 +381,8 @@ async def get_leads( - cursor: typing.Optional[str]. + - associations: typing.Optional[str]. + - x_revert_api_token: str. Your official API key for accessing revert apis. - x_revert_t_id: str. The unique customer id used when the customer linked their account. @@ -378,7 +392,9 @@ async def get_leads( _response = await self._client_wrapper.httpx_client.request( "GET", urllib.parse.urljoin(f"{self._client_wrapper.get_base_url()}/", "crm/leads"), - params=remove_none_from_dict({"fields": fields, "pageSize": page_size, "cursor": cursor}), + params=remove_none_from_dict( + {"fields": fields, "pageSize": page_size, "cursor": cursor, "associations": associations} + ), headers=remove_none_from_dict( { **self._client_wrapper.get_headers(), diff --git a/src/revert/resources/crm/resources/note/client.py b/src/revert/resources/crm/resources/note/client.py index 0f26227..3a2eacf 100644 --- a/src/revert/resources/crm/resources/note/client.py +++ b/src/revert/resources/crm/resources/note/client.py @@ -36,6 +36,7 @@ def get_note( id: str, *, fields: typing.Optional[str] = None, + associations: typing.Optional[str] = None, x_revert_api_token: str, x_revert_t_id: str, x_api_version: typing.Optional[str] = None, @@ -48,6 +49,8 @@ def get_note( - fields: typing.Optional[str]. + - associations: typing.Optional[str]. + - x_revert_api_token: str. Your official API key for accessing revert apis. - x_revert_t_id: str. The unique customer id used when the customer linked their account. @@ -57,7 +60,7 @@ def get_note( _response = self._client_wrapper.httpx_client.request( "GET", urllib.parse.urljoin(f"{self._client_wrapper.get_base_url()}/", f"crm/notes/{id}"), - params=remove_none_from_dict({"fields": fields}), + params=remove_none_from_dict({"fields": fields, "associations": associations}), headers=remove_none_from_dict( { **self._client_wrapper.get_headers(), @@ -88,6 +91,7 @@ def get_notes( fields: typing.Optional[str] = None, page_size: typing.Optional[str] = None, cursor: typing.Optional[str] = None, + associations: typing.Optional[str] = None, x_revert_api_token: str, x_revert_t_id: str, x_api_version: typing.Optional[str] = None, @@ -102,6 +106,8 @@ def get_notes( - cursor: typing.Optional[str]. + - associations: typing.Optional[str]. + - x_revert_api_token: str. Your official API key for accessing revert apis. - x_revert_t_id: str. The unique customer id used when the customer linked their account. @@ -111,7 +117,9 @@ def get_notes( _response = self._client_wrapper.httpx_client.request( "GET", urllib.parse.urljoin(f"{self._client_wrapper.get_base_url()}/", "crm/notes"), - params=remove_none_from_dict({"fields": fields, "pageSize": page_size, "cursor": cursor}), + params=remove_none_from_dict( + {"fields": fields, "pageSize": page_size, "cursor": cursor, "associations": associations} + ), headers=remove_none_from_dict( { **self._client_wrapper.get_headers(), @@ -303,6 +311,7 @@ async def get_note( id: str, *, fields: typing.Optional[str] = None, + associations: typing.Optional[str] = None, x_revert_api_token: str, x_revert_t_id: str, x_api_version: typing.Optional[str] = None, @@ -315,6 +324,8 @@ async def get_note( - fields: typing.Optional[str]. + - associations: typing.Optional[str]. + - x_revert_api_token: str. Your official API key for accessing revert apis. - x_revert_t_id: str. The unique customer id used when the customer linked their account. @@ -324,7 +335,7 @@ async def get_note( _response = await self._client_wrapper.httpx_client.request( "GET", urllib.parse.urljoin(f"{self._client_wrapper.get_base_url()}/", f"crm/notes/{id}"), - params=remove_none_from_dict({"fields": fields}), + params=remove_none_from_dict({"fields": fields, "associations": associations}), headers=remove_none_from_dict( { **self._client_wrapper.get_headers(), @@ -355,6 +366,7 @@ async def get_notes( fields: typing.Optional[str] = None, page_size: typing.Optional[str] = None, cursor: typing.Optional[str] = None, + associations: typing.Optional[str] = None, x_revert_api_token: str, x_revert_t_id: str, x_api_version: typing.Optional[str] = None, @@ -369,6 +381,8 @@ async def get_notes( - cursor: typing.Optional[str]. + - associations: typing.Optional[str]. + - x_revert_api_token: str. Your official API key for accessing revert apis. - x_revert_t_id: str. The unique customer id used when the customer linked their account. @@ -378,7 +392,9 @@ async def get_notes( _response = await self._client_wrapper.httpx_client.request( "GET", urllib.parse.urljoin(f"{self._client_wrapper.get_base_url()}/", "crm/notes"), - params=remove_none_from_dict({"fields": fields, "pageSize": page_size, "cursor": cursor}), + params=remove_none_from_dict( + {"fields": fields, "pageSize": page_size, "cursor": cursor, "associations": associations} + ), headers=remove_none_from_dict( { **self._client_wrapper.get_headers(), diff --git a/src/revert/resources/crm/resources/task/client.py b/src/revert/resources/crm/resources/task/client.py index be32797..590650f 100644 --- a/src/revert/resources/crm/resources/task/client.py +++ b/src/revert/resources/crm/resources/task/client.py @@ -36,6 +36,7 @@ def get_task( id: str, *, fields: typing.Optional[str] = None, + associations: typing.Optional[str] = None, x_revert_api_token: str, x_revert_t_id: str, x_api_version: typing.Optional[str] = None, @@ -48,6 +49,8 @@ def get_task( - fields: typing.Optional[str]. + - associations: typing.Optional[str]. + - x_revert_api_token: str. Your official API key for accessing revert apis. - x_revert_t_id: str. The unique customer id used when the customer linked their account. @@ -57,7 +60,7 @@ def get_task( _response = self._client_wrapper.httpx_client.request( "GET", urllib.parse.urljoin(f"{self._client_wrapper.get_base_url()}/", f"crm/tasks/{id}"), - params=remove_none_from_dict({"fields": fields}), + params=remove_none_from_dict({"fields": fields, "associations": associations}), headers=remove_none_from_dict( { **self._client_wrapper.get_headers(), @@ -88,6 +91,7 @@ def get_tasks( fields: typing.Optional[str] = None, page_size: typing.Optional[str] = None, cursor: typing.Optional[str] = None, + associations: typing.Optional[str] = None, x_revert_api_token: str, x_revert_t_id: str, x_api_version: typing.Optional[str] = None, @@ -102,6 +106,8 @@ def get_tasks( - cursor: typing.Optional[str]. + - associations: typing.Optional[str]. + - x_revert_api_token: str. Your official API key for accessing revert apis. - x_revert_t_id: str. The unique customer id used when the customer linked their account. @@ -111,7 +117,9 @@ def get_tasks( _response = self._client_wrapper.httpx_client.request( "GET", urllib.parse.urljoin(f"{self._client_wrapper.get_base_url()}/", "crm/tasks"), - params=remove_none_from_dict({"fields": fields, "pageSize": page_size, "cursor": cursor}), + params=remove_none_from_dict( + {"fields": fields, "pageSize": page_size, "cursor": cursor, "associations": associations} + ), headers=remove_none_from_dict( { **self._client_wrapper.get_headers(), @@ -303,6 +311,7 @@ async def get_task( id: str, *, fields: typing.Optional[str] = None, + associations: typing.Optional[str] = None, x_revert_api_token: str, x_revert_t_id: str, x_api_version: typing.Optional[str] = None, @@ -315,6 +324,8 @@ async def get_task( - fields: typing.Optional[str]. + - associations: typing.Optional[str]. + - x_revert_api_token: str. Your official API key for accessing revert apis. - x_revert_t_id: str. The unique customer id used when the customer linked their account. @@ -324,7 +335,7 @@ async def get_task( _response = await self._client_wrapper.httpx_client.request( "GET", urllib.parse.urljoin(f"{self._client_wrapper.get_base_url()}/", f"crm/tasks/{id}"), - params=remove_none_from_dict({"fields": fields}), + params=remove_none_from_dict({"fields": fields, "associations": associations}), headers=remove_none_from_dict( { **self._client_wrapper.get_headers(), @@ -355,6 +366,7 @@ async def get_tasks( fields: typing.Optional[str] = None, page_size: typing.Optional[str] = None, cursor: typing.Optional[str] = None, + associations: typing.Optional[str] = None, x_revert_api_token: str, x_revert_t_id: str, x_api_version: typing.Optional[str] = None, @@ -369,6 +381,8 @@ async def get_tasks( - cursor: typing.Optional[str]. + - associations: typing.Optional[str]. + - x_revert_api_token: str. Your official API key for accessing revert apis. - x_revert_t_id: str. The unique customer id used when the customer linked their account. @@ -378,7 +392,9 @@ async def get_tasks( _response = await self._client_wrapper.httpx_client.request( "GET", urllib.parse.urljoin(f"{self._client_wrapper.get_base_url()}/", "crm/tasks"), - params=remove_none_from_dict({"fields": fields, "pageSize": page_size, "cursor": cursor}), + params=remove_none_from_dict( + {"fields": fields, "pageSize": page_size, "cursor": cursor, "associations": associations} + ), headers=remove_none_from_dict( { **self._client_wrapper.get_headers(), diff --git a/src/revert/resources/crm/resources/user/client.py b/src/revert/resources/crm/resources/user/client.py index 408602c..df130fc 100644 --- a/src/revert/resources/crm/resources/user/client.py +++ b/src/revert/resources/crm/resources/user/client.py @@ -35,6 +35,7 @@ def get_user( id: str, *, fields: typing.Optional[str] = None, + associations: typing.Optional[str] = None, x_revert_api_token: str, x_revert_t_id: str, x_api_version: typing.Optional[str] = None, @@ -47,6 +48,8 @@ def get_user( - fields: typing.Optional[str]. + - associations: typing.Optional[str]. + - x_revert_api_token: str. Your official API key for accessing revert apis. - x_revert_t_id: str. The unique customer id used when the customer linked their account. @@ -56,7 +59,7 @@ def get_user( _response = self._client_wrapper.httpx_client.request( "GET", urllib.parse.urljoin(f"{self._client_wrapper.get_base_url()}/", f"crm/users/{id}"), - params=remove_none_from_dict({"fields": fields}), + params=remove_none_from_dict({"fields": fields, "associations": associations}), headers=remove_none_from_dict( { **self._client_wrapper.get_headers(), @@ -87,6 +90,7 @@ def get_users( fields: typing.Optional[str] = None, page_size: typing.Optional[str] = None, cursor: typing.Optional[str] = None, + associations: typing.Optional[str] = None, x_revert_api_token: str, x_revert_t_id: str, x_api_version: typing.Optional[str] = None, @@ -101,6 +105,8 @@ def get_users( - cursor: typing.Optional[str]. + - associations: typing.Optional[str]. + - x_revert_api_token: str. Your official API key for accessing revert apis. - x_revert_t_id: str. The unique customer id used when the customer linked their account. @@ -110,7 +116,9 @@ def get_users( _response = self._client_wrapper.httpx_client.request( "GET", urllib.parse.urljoin(f"{self._client_wrapper.get_base_url()}/", "crm/users"), - params=remove_none_from_dict({"fields": fields, "pageSize": page_size, "cursor": cursor}), + params=remove_none_from_dict( + {"fields": fields, "pageSize": page_size, "cursor": cursor, "associations": associations} + ), headers=remove_none_from_dict( { **self._client_wrapper.get_headers(), @@ -193,6 +201,7 @@ async def get_user( id: str, *, fields: typing.Optional[str] = None, + associations: typing.Optional[str] = None, x_revert_api_token: str, x_revert_t_id: str, x_api_version: typing.Optional[str] = None, @@ -205,6 +214,8 @@ async def get_user( - fields: typing.Optional[str]. + - associations: typing.Optional[str]. + - x_revert_api_token: str. Your official API key for accessing revert apis. - x_revert_t_id: str. The unique customer id used when the customer linked their account. @@ -214,7 +225,7 @@ async def get_user( _response = await self._client_wrapper.httpx_client.request( "GET", urllib.parse.urljoin(f"{self._client_wrapper.get_base_url()}/", f"crm/users/{id}"), - params=remove_none_from_dict({"fields": fields}), + params=remove_none_from_dict({"fields": fields, "associations": associations}), headers=remove_none_from_dict( { **self._client_wrapper.get_headers(), @@ -245,6 +256,7 @@ async def get_users( fields: typing.Optional[str] = None, page_size: typing.Optional[str] = None, cursor: typing.Optional[str] = None, + associations: typing.Optional[str] = None, x_revert_api_token: str, x_revert_t_id: str, x_api_version: typing.Optional[str] = None, @@ -259,6 +271,8 @@ async def get_users( - cursor: typing.Optional[str]. + - associations: typing.Optional[str]. + - x_revert_api_token: str. Your official API key for accessing revert apis. - x_revert_t_id: str. The unique customer id used when the customer linked their account. @@ -268,7 +282,9 @@ async def get_users( _response = await self._client_wrapper.httpx_client.request( "GET", urllib.parse.urljoin(f"{self._client_wrapper.get_base_url()}/", "crm/users"), - params=remove_none_from_dict({"fields": fields, "pageSize": page_size, "cursor": cursor}), + params=remove_none_from_dict( + {"fields": fields, "pageSize": page_size, "cursor": cursor, "associations": associations} + ), headers=remove_none_from_dict( { **self._client_wrapper.get_headers(),