Skip to content

Commit

Permalink
Release 0.0.861
Browse files Browse the repository at this point in the history
  • Loading branch information
fern-api[bot] committed Apr 25, 2024
1 parent 0c10e5f commit 8a6bc3f
Show file tree
Hide file tree
Showing 16 changed files with 114 additions and 16 deletions.
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.852"
version = "0.0.861"
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.852",
"X-Fern-SDK-Version": "0.0.861",
}
return headers

Expand Down
16 changes: 14 additions & 2 deletions src/revert/resources/crm/resources/company/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -240,6 +240,8 @@ def search_companies(
self,
*,
fields: typing.Optional[str] = None,
page_size: typing.Optional[str] = None,
cursor: typing.Optional[str] = None,
search_criteria: typing.Any,
x_revert_api_token: str,
x_revert_t_id: str,
Expand All @@ -251,6 +253,10 @@ def search_companies(
Parameters:
- fields: typing.Optional[str].
- page_size: typing.Optional[str].
- cursor: typing.Optional[str].
- search_criteria: typing.Any.
- x_revert_api_token: str. Your official API key for accessing revert apis.
Expand All @@ -262,7 +268,7 @@ def search_companies(
_response = self._client_wrapper.httpx_client.request(
"POST",
urllib.parse.urljoin(f"{self._client_wrapper.get_base_url()}/", "crm/companies/search"),
params=remove_none_from_dict({"fields": fields}),
params=remove_none_from_dict({"fields": fields, "pageSize": page_size, "cursor": cursor}),
json=jsonable_encoder({"searchCriteria": search_criteria}),
headers=remove_none_from_dict(
{
Expand Down Expand Up @@ -501,6 +507,8 @@ async def search_companies(
self,
*,
fields: typing.Optional[str] = None,
page_size: typing.Optional[str] = None,
cursor: typing.Optional[str] = None,
search_criteria: typing.Any,
x_revert_api_token: str,
x_revert_t_id: str,
Expand All @@ -512,6 +520,10 @@ async def search_companies(
Parameters:
- fields: typing.Optional[str].
- page_size: typing.Optional[str].
- cursor: typing.Optional[str].
- search_criteria: typing.Any.
- x_revert_api_token: str. Your official API key for accessing revert apis.
Expand All @@ -523,7 +535,7 @@ async def search_companies(
_response = await self._client_wrapper.httpx_client.request(
"POST",
urllib.parse.urljoin(f"{self._client_wrapper.get_base_url()}/", "crm/companies/search"),
params=remove_none_from_dict({"fields": fields}),
params=remove_none_from_dict({"fields": fields, "pageSize": page_size, "cursor": cursor}),
json=jsonable_encoder({"searchCriteria": search_criteria}),
headers=remove_none_from_dict(
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@

class SearchCompaniesResponse(pydantic.BaseModel):
status: ResponseStatus
next: typing.Optional[str]
previous: typing.Optional[str]
results: typing.List[Company]

def json(self, **kwargs: typing.Any) -> str:
Expand Down
16 changes: 14 additions & 2 deletions src/revert/resources/crm/resources/contact/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -244,6 +244,8 @@ def search_contacts(
self,
*,
fields: typing.Optional[str] = None,
page_size: typing.Optional[str] = None,
cursor: typing.Optional[str] = None,
search_criteria: typing.Any,
x_revert_api_token: str,
x_revert_t_id: str,
Expand All @@ -255,6 +257,10 @@ def search_contacts(
Parameters:
- fields: typing.Optional[str].
- page_size: typing.Optional[str].
- cursor: typing.Optional[str].
- search_criteria: typing.Any.
- x_revert_api_token: str. Your official API key for accessing revert apis.
Expand All @@ -266,7 +272,7 @@ def search_contacts(
_response = self._client_wrapper.httpx_client.request(
"POST",
urllib.parse.urljoin(f"{self._client_wrapper.get_base_url()}/", "crm/contacts/search"),
params=remove_none_from_dict({"fields": fields}),
params=remove_none_from_dict({"fields": fields, "pageSize": page_size, "cursor": cursor}),
json=jsonable_encoder({"searchCriteria": search_criteria}),
headers=remove_none_from_dict(
{
Expand Down Expand Up @@ -509,6 +515,8 @@ async def search_contacts(
self,
*,
fields: typing.Optional[str] = None,
page_size: typing.Optional[str] = None,
cursor: typing.Optional[str] = None,
search_criteria: typing.Any,
x_revert_api_token: str,
x_revert_t_id: str,
Expand All @@ -520,6 +528,10 @@ async def search_contacts(
Parameters:
- fields: typing.Optional[str].
- page_size: typing.Optional[str].
- cursor: typing.Optional[str].
- search_criteria: typing.Any.
- x_revert_api_token: str. Your official API key for accessing revert apis.
Expand All @@ -531,7 +543,7 @@ async def search_contacts(
_response = await self._client_wrapper.httpx_client.request(
"POST",
urllib.parse.urljoin(f"{self._client_wrapper.get_base_url()}/", "crm/contacts/search"),
params=remove_none_from_dict({"fields": fields}),
params=remove_none_from_dict({"fields": fields, "pageSize": page_size, "cursor": cursor}),
json=jsonable_encoder({"searchCriteria": search_criteria}),
headers=remove_none_from_dict(
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@

class SearchContactsResponse(pydantic.BaseModel):
status: ResponseStatus
next: typing.Optional[str]
previous: typing.Optional[str]
results: typing.List[Contact]

def json(self, **kwargs: typing.Any) -> str:
Expand Down
16 changes: 14 additions & 2 deletions src/revert/resources/crm/resources/deal/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -239,6 +239,8 @@ def search_deals(
self,
*,
fields: typing.Optional[str] = None,
page_size: typing.Optional[str] = None,
cursor: typing.Optional[str] = None,
search_criteria: typing.Any,
x_revert_api_token: str,
x_revert_t_id: str,
Expand All @@ -250,6 +252,10 @@ def search_deals(
Parameters:
- fields: typing.Optional[str].
- page_size: typing.Optional[str].
- cursor: typing.Optional[str].
- search_criteria: typing.Any.
- x_revert_api_token: str. Your official API key for accessing revert apis.
Expand All @@ -261,7 +267,7 @@ def search_deals(
_response = self._client_wrapper.httpx_client.request(
"POST",
urllib.parse.urljoin(f"{self._client_wrapper.get_base_url()}/", "crm/deals/search"),
params=remove_none_from_dict({"fields": fields}),
params=remove_none_from_dict({"fields": fields, "pageSize": page_size, "cursor": cursor}),
json=jsonable_encoder({"searchCriteria": search_criteria}),
headers=remove_none_from_dict(
{
Expand Down Expand Up @@ -500,6 +506,8 @@ async def search_deals(
self,
*,
fields: typing.Optional[str] = None,
page_size: typing.Optional[str] = None,
cursor: typing.Optional[str] = None,
search_criteria: typing.Any,
x_revert_api_token: str,
x_revert_t_id: str,
Expand All @@ -511,6 +519,10 @@ async def search_deals(
Parameters:
- fields: typing.Optional[str].
- page_size: typing.Optional[str].
- cursor: typing.Optional[str].
- search_criteria: typing.Any.
- x_revert_api_token: str. Your official API key for accessing revert apis.
Expand All @@ -522,7 +534,7 @@ async def search_deals(
_response = await self._client_wrapper.httpx_client.request(
"POST",
urllib.parse.urljoin(f"{self._client_wrapper.get_base_url()}/", "crm/deals/search"),
params=remove_none_from_dict({"fields": fields}),
params=remove_none_from_dict({"fields": fields, "pageSize": page_size, "cursor": cursor}),
json=jsonable_encoder({"searchCriteria": search_criteria}),
headers=remove_none_from_dict(
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@

class SearchDealsResponse(pydantic.BaseModel):
status: ResponseStatus
next: typing.Optional[str]
previous: typing.Optional[str]
results: typing.List[Deal]

def json(self, **kwargs: typing.Any) -> str:
Expand Down
16 changes: 14 additions & 2 deletions src/revert/resources/crm/resources/event/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -240,6 +240,8 @@ def search_events(
self,
*,
fields: typing.Optional[str] = None,
page_size: typing.Optional[str] = None,
cursor: typing.Optional[str] = None,
search_criteria: typing.Any,
x_revert_api_token: str,
x_revert_t_id: str,
Expand All @@ -251,6 +253,10 @@ def search_events(
Parameters:
- fields: typing.Optional[str].
- page_size: typing.Optional[str].
- cursor: typing.Optional[str].
- search_criteria: typing.Any.
- x_revert_api_token: str. Your official API key for accessing revert apis.
Expand All @@ -262,7 +268,7 @@ def search_events(
_response = self._client_wrapper.httpx_client.request(
"POST",
urllib.parse.urljoin(f"{self._client_wrapper.get_base_url()}/", "crm/events/search"),
params=remove_none_from_dict({"fields": fields}),
params=remove_none_from_dict({"fields": fields, "pageSize": page_size, "cursor": cursor}),
json=jsonable_encoder({"searchCriteria": search_criteria}),
headers=remove_none_from_dict(
{
Expand Down Expand Up @@ -543,6 +549,8 @@ async def search_events(
self,
*,
fields: typing.Optional[str] = None,
page_size: typing.Optional[str] = None,
cursor: typing.Optional[str] = None,
search_criteria: typing.Any,
x_revert_api_token: str,
x_revert_t_id: str,
Expand All @@ -554,6 +562,10 @@ async def search_events(
Parameters:
- fields: typing.Optional[str].
- page_size: typing.Optional[str].
- cursor: typing.Optional[str].
- search_criteria: typing.Any.
- x_revert_api_token: str. Your official API key for accessing revert apis.
Expand All @@ -565,7 +577,7 @@ async def search_events(
_response = await self._client_wrapper.httpx_client.request(
"POST",
urllib.parse.urljoin(f"{self._client_wrapper.get_base_url()}/", "crm/events/search"),
params=remove_none_from_dict({"fields": fields}),
params=remove_none_from_dict({"fields": fields, "pageSize": page_size, "cursor": cursor}),
json=jsonable_encoder({"searchCriteria": search_criteria}),
headers=remove_none_from_dict(
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@

class SearchEventsResponse(pydantic.BaseModel):
status: ResponseStatus
next: typing.Optional[str]
previous: typing.Optional[str]
results: typing.List[Event]

def json(self, **kwargs: typing.Any) -> str:
Expand Down
16 changes: 14 additions & 2 deletions src/revert/resources/crm/resources/lead/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -239,6 +239,8 @@ def search_leads(
self,
*,
fields: typing.Optional[str] = None,
page_size: typing.Optional[str] = None,
cursor: typing.Optional[str] = None,
search_criteria: typing.Any,
x_revert_api_token: str,
x_revert_t_id: str,
Expand All @@ -250,6 +252,10 @@ def search_leads(
Parameters:
- fields: typing.Optional[str].
- page_size: typing.Optional[str].
- cursor: typing.Optional[str].
- search_criteria: typing.Any.
- x_revert_api_token: str. Your official API key for accessing revert apis.
Expand All @@ -261,7 +267,7 @@ def search_leads(
_response = self._client_wrapper.httpx_client.request(
"POST",
urllib.parse.urljoin(f"{self._client_wrapper.get_base_url()}/", "crm/leads/search"),
params=remove_none_from_dict({"fields": fields}),
params=remove_none_from_dict({"fields": fields, "pageSize": page_size, "cursor": cursor}),
json=jsonable_encoder({"searchCriteria": search_criteria}),
headers=remove_none_from_dict(
{
Expand Down Expand Up @@ -500,6 +506,8 @@ async def search_leads(
self,
*,
fields: typing.Optional[str] = None,
page_size: typing.Optional[str] = None,
cursor: typing.Optional[str] = None,
search_criteria: typing.Any,
x_revert_api_token: str,
x_revert_t_id: str,
Expand All @@ -511,6 +519,10 @@ async def search_leads(
Parameters:
- fields: typing.Optional[str].
- page_size: typing.Optional[str].
- cursor: typing.Optional[str].
- search_criteria: typing.Any.
- x_revert_api_token: str. Your official API key for accessing revert apis.
Expand All @@ -522,7 +534,7 @@ async def search_leads(
_response = await self._client_wrapper.httpx_client.request(
"POST",
urllib.parse.urljoin(f"{self._client_wrapper.get_base_url()}/", "crm/leads/search"),
params=remove_none_from_dict({"fields": fields}),
params=remove_none_from_dict({"fields": fields, "pageSize": page_size, "cursor": cursor}),
json=jsonable_encoder({"searchCriteria": search_criteria}),
headers=remove_none_from_dict(
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@

class SearchLeadsResponse(pydantic.BaseModel):
status: ResponseStatus
next: typing.Optional[str]
previous: typing.Optional[str]
results: typing.List[Lead]

def json(self, **kwargs: typing.Any) -> str:
Expand Down
Loading

0 comments on commit 8a6bc3f

Please sign in to comment.