Skip to content

Commit

Permalink
Release 0.0.1068
Browse files Browse the repository at this point in the history
  • Loading branch information
fern-api[bot] committed Jul 30, 2024
1 parent 7a122d3 commit 64cd248
Show file tree
Hide file tree
Showing 12 changed files with 168 additions and 96 deletions.
56 changes: 0 additions & 56 deletions README.md

This file was deleted.

12 changes: 6 additions & 6 deletions poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "revert-api"
version = "0.0.1067"
version = "0.0.1068"
description = ""
readme = "README.md"
authors = []
Expand Down
2 changes: 1 addition & 1 deletion src/revert/core/client_wrapper.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
24 changes: 20 additions & 4 deletions src/revert/resources/crm/resources/company/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand All @@ -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.
Expand All @@ -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(),
Expand Down Expand Up @@ -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,
Expand All @@ -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].
Expand All @@ -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(),
Expand Down Expand Up @@ -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,
Expand All @@ -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.
Expand All @@ -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(),
Expand Down Expand Up @@ -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,
Expand All @@ -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].
Expand All @@ -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(),
Expand Down
24 changes: 20 additions & 4 deletions src/revert/resources/crm/resources/contact/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand All @@ -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.
Expand All @@ -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(),
Expand Down Expand Up @@ -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,
Expand All @@ -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.
Expand All @@ -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(),
Expand Down Expand Up @@ -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,
Expand All @@ -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.
Expand All @@ -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(),
Expand Down Expand Up @@ -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,
Expand All @@ -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.
Expand All @@ -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(),
Expand Down
Loading

0 comments on commit 64cd248

Please sign in to comment.