Skip to content

Commit 8a6bc3f

Browse files
committed
Release 0.0.861
1 parent 0c10e5f commit 8a6bc3f

16 files changed

+114
-16
lines changed

pyproject.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[tool.poetry]
22
name = "revert-api"
3-
version = "0.0.852"
3+
version = "0.0.861"
44
description = ""
55
readme = "README.md"
66
authors = []

src/revert/core/client_wrapper.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ def get_headers(self) -> typing.Dict[str, str]:
1313
headers: typing.Dict[str, str] = {
1414
"X-Fern-Language": "Python",
1515
"X-Fern-SDK-Name": "revert-api",
16-
"X-Fern-SDK-Version": "0.0.852",
16+
"X-Fern-SDK-Version": "0.0.861",
1717
}
1818
return headers
1919

src/revert/resources/crm/resources/company/client.py

+14-2
Original file line numberDiff line numberDiff line change
@@ -240,6 +240,8 @@ def search_companies(
240240
self,
241241
*,
242242
fields: typing.Optional[str] = None,
243+
page_size: typing.Optional[str] = None,
244+
cursor: typing.Optional[str] = None,
243245
search_criteria: typing.Any,
244246
x_revert_api_token: str,
245247
x_revert_t_id: str,
@@ -251,6 +253,10 @@ def search_companies(
251253
Parameters:
252254
- fields: typing.Optional[str].
253255
256+
- page_size: typing.Optional[str].
257+
258+
- cursor: typing.Optional[str].
259+
254260
- search_criteria: typing.Any.
255261
256262
- x_revert_api_token: str. Your official API key for accessing revert apis.
@@ -262,7 +268,7 @@ def search_companies(
262268
_response = self._client_wrapper.httpx_client.request(
263269
"POST",
264270
urllib.parse.urljoin(f"{self._client_wrapper.get_base_url()}/", "crm/companies/search"),
265-
params=remove_none_from_dict({"fields": fields}),
271+
params=remove_none_from_dict({"fields": fields, "pageSize": page_size, "cursor": cursor}),
266272
json=jsonable_encoder({"searchCriteria": search_criteria}),
267273
headers=remove_none_from_dict(
268274
{
@@ -501,6 +507,8 @@ async def search_companies(
501507
self,
502508
*,
503509
fields: typing.Optional[str] = None,
510+
page_size: typing.Optional[str] = None,
511+
cursor: typing.Optional[str] = None,
504512
search_criteria: typing.Any,
505513
x_revert_api_token: str,
506514
x_revert_t_id: str,
@@ -512,6 +520,10 @@ async def search_companies(
512520
Parameters:
513521
- fields: typing.Optional[str].
514522
523+
- page_size: typing.Optional[str].
524+
525+
- cursor: typing.Optional[str].
526+
515527
- search_criteria: typing.Any.
516528
517529
- x_revert_api_token: str. Your official API key for accessing revert apis.
@@ -523,7 +535,7 @@ async def search_companies(
523535
_response = await self._client_wrapper.httpx_client.request(
524536
"POST",
525537
urllib.parse.urljoin(f"{self._client_wrapper.get_base_url()}/", "crm/companies/search"),
526-
params=remove_none_from_dict({"fields": fields}),
538+
params=remove_none_from_dict({"fields": fields, "pageSize": page_size, "cursor": cursor}),
527539
json=jsonable_encoder({"searchCriteria": search_criteria}),
528540
headers=remove_none_from_dict(
529541
{

src/revert/resources/crm/resources/company/types/search_companies_response.py

+2
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,8 @@
1515

1616
class SearchCompaniesResponse(pydantic.BaseModel):
1717
status: ResponseStatus
18+
next: typing.Optional[str]
19+
previous: typing.Optional[str]
1820
results: typing.List[Company]
1921

2022
def json(self, **kwargs: typing.Any) -> str:

src/revert/resources/crm/resources/contact/client.py

+14-2
Original file line numberDiff line numberDiff line change
@@ -244,6 +244,8 @@ def search_contacts(
244244
self,
245245
*,
246246
fields: typing.Optional[str] = None,
247+
page_size: typing.Optional[str] = None,
248+
cursor: typing.Optional[str] = None,
247249
search_criteria: typing.Any,
248250
x_revert_api_token: str,
249251
x_revert_t_id: str,
@@ -255,6 +257,10 @@ def search_contacts(
255257
Parameters:
256258
- fields: typing.Optional[str].
257259
260+
- page_size: typing.Optional[str].
261+
262+
- cursor: typing.Optional[str].
263+
258264
- search_criteria: typing.Any.
259265
260266
- x_revert_api_token: str. Your official API key for accessing revert apis.
@@ -266,7 +272,7 @@ def search_contacts(
266272
_response = self._client_wrapper.httpx_client.request(
267273
"POST",
268274
urllib.parse.urljoin(f"{self._client_wrapper.get_base_url()}/", "crm/contacts/search"),
269-
params=remove_none_from_dict({"fields": fields}),
275+
params=remove_none_from_dict({"fields": fields, "pageSize": page_size, "cursor": cursor}),
270276
json=jsonable_encoder({"searchCriteria": search_criteria}),
271277
headers=remove_none_from_dict(
272278
{
@@ -509,6 +515,8 @@ async def search_contacts(
509515
self,
510516
*,
511517
fields: typing.Optional[str] = None,
518+
page_size: typing.Optional[str] = None,
519+
cursor: typing.Optional[str] = None,
512520
search_criteria: typing.Any,
513521
x_revert_api_token: str,
514522
x_revert_t_id: str,
@@ -520,6 +528,10 @@ async def search_contacts(
520528
Parameters:
521529
- fields: typing.Optional[str].
522530
531+
- page_size: typing.Optional[str].
532+
533+
- cursor: typing.Optional[str].
534+
523535
- search_criteria: typing.Any.
524536
525537
- x_revert_api_token: str. Your official API key for accessing revert apis.
@@ -531,7 +543,7 @@ async def search_contacts(
531543
_response = await self._client_wrapper.httpx_client.request(
532544
"POST",
533545
urllib.parse.urljoin(f"{self._client_wrapper.get_base_url()}/", "crm/contacts/search"),
534-
params=remove_none_from_dict({"fields": fields}),
546+
params=remove_none_from_dict({"fields": fields, "pageSize": page_size, "cursor": cursor}),
535547
json=jsonable_encoder({"searchCriteria": search_criteria}),
536548
headers=remove_none_from_dict(
537549
{

src/revert/resources/crm/resources/contact/types/search_contacts_response.py

+2
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,8 @@
1515

1616
class SearchContactsResponse(pydantic.BaseModel):
1717
status: ResponseStatus
18+
next: typing.Optional[str]
19+
previous: typing.Optional[str]
1820
results: typing.List[Contact]
1921

2022
def json(self, **kwargs: typing.Any) -> str:

src/revert/resources/crm/resources/deal/client.py

+14-2
Original file line numberDiff line numberDiff line change
@@ -239,6 +239,8 @@ def search_deals(
239239
self,
240240
*,
241241
fields: typing.Optional[str] = None,
242+
page_size: typing.Optional[str] = None,
243+
cursor: typing.Optional[str] = None,
242244
search_criteria: typing.Any,
243245
x_revert_api_token: str,
244246
x_revert_t_id: str,
@@ -250,6 +252,10 @@ def search_deals(
250252
Parameters:
251253
- fields: typing.Optional[str].
252254
255+
- page_size: typing.Optional[str].
256+
257+
- cursor: typing.Optional[str].
258+
253259
- search_criteria: typing.Any.
254260
255261
- x_revert_api_token: str. Your official API key for accessing revert apis.
@@ -261,7 +267,7 @@ def search_deals(
261267
_response = self._client_wrapper.httpx_client.request(
262268
"POST",
263269
urllib.parse.urljoin(f"{self._client_wrapper.get_base_url()}/", "crm/deals/search"),
264-
params=remove_none_from_dict({"fields": fields}),
270+
params=remove_none_from_dict({"fields": fields, "pageSize": page_size, "cursor": cursor}),
265271
json=jsonable_encoder({"searchCriteria": search_criteria}),
266272
headers=remove_none_from_dict(
267273
{
@@ -500,6 +506,8 @@ async def search_deals(
500506
self,
501507
*,
502508
fields: typing.Optional[str] = None,
509+
page_size: typing.Optional[str] = None,
510+
cursor: typing.Optional[str] = None,
503511
search_criteria: typing.Any,
504512
x_revert_api_token: str,
505513
x_revert_t_id: str,
@@ -511,6 +519,10 @@ async def search_deals(
511519
Parameters:
512520
- fields: typing.Optional[str].
513521
522+
- page_size: typing.Optional[str].
523+
524+
- cursor: typing.Optional[str].
525+
514526
- search_criteria: typing.Any.
515527
516528
- x_revert_api_token: str. Your official API key for accessing revert apis.
@@ -522,7 +534,7 @@ async def search_deals(
522534
_response = await self._client_wrapper.httpx_client.request(
523535
"POST",
524536
urllib.parse.urljoin(f"{self._client_wrapper.get_base_url()}/", "crm/deals/search"),
525-
params=remove_none_from_dict({"fields": fields}),
537+
params=remove_none_from_dict({"fields": fields, "pageSize": page_size, "cursor": cursor}),
526538
json=jsonable_encoder({"searchCriteria": search_criteria}),
527539
headers=remove_none_from_dict(
528540
{

src/revert/resources/crm/resources/deal/types/search_deals_response.py

+2
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,8 @@
1515

1616
class SearchDealsResponse(pydantic.BaseModel):
1717
status: ResponseStatus
18+
next: typing.Optional[str]
19+
previous: typing.Optional[str]
1820
results: typing.List[Deal]
1921

2022
def json(self, **kwargs: typing.Any) -> str:

src/revert/resources/crm/resources/event/client.py

+14-2
Original file line numberDiff line numberDiff line change
@@ -240,6 +240,8 @@ def search_events(
240240
self,
241241
*,
242242
fields: typing.Optional[str] = None,
243+
page_size: typing.Optional[str] = None,
244+
cursor: typing.Optional[str] = None,
243245
search_criteria: typing.Any,
244246
x_revert_api_token: str,
245247
x_revert_t_id: str,
@@ -251,6 +253,10 @@ def search_events(
251253
Parameters:
252254
- fields: typing.Optional[str].
253255
256+
- page_size: typing.Optional[str].
257+
258+
- cursor: typing.Optional[str].
259+
254260
- search_criteria: typing.Any.
255261
256262
- x_revert_api_token: str. Your official API key for accessing revert apis.
@@ -262,7 +268,7 @@ def search_events(
262268
_response = self._client_wrapper.httpx_client.request(
263269
"POST",
264270
urllib.parse.urljoin(f"{self._client_wrapper.get_base_url()}/", "crm/events/search"),
265-
params=remove_none_from_dict({"fields": fields}),
271+
params=remove_none_from_dict({"fields": fields, "pageSize": page_size, "cursor": cursor}),
266272
json=jsonable_encoder({"searchCriteria": search_criteria}),
267273
headers=remove_none_from_dict(
268274
{
@@ -543,6 +549,8 @@ async def search_events(
543549
self,
544550
*,
545551
fields: typing.Optional[str] = None,
552+
page_size: typing.Optional[str] = None,
553+
cursor: typing.Optional[str] = None,
546554
search_criteria: typing.Any,
547555
x_revert_api_token: str,
548556
x_revert_t_id: str,
@@ -554,6 +562,10 @@ async def search_events(
554562
Parameters:
555563
- fields: typing.Optional[str].
556564
565+
- page_size: typing.Optional[str].
566+
567+
- cursor: typing.Optional[str].
568+
557569
- search_criteria: typing.Any.
558570
559571
- x_revert_api_token: str. Your official API key for accessing revert apis.
@@ -565,7 +577,7 @@ async def search_events(
565577
_response = await self._client_wrapper.httpx_client.request(
566578
"POST",
567579
urllib.parse.urljoin(f"{self._client_wrapper.get_base_url()}/", "crm/events/search"),
568-
params=remove_none_from_dict({"fields": fields}),
580+
params=remove_none_from_dict({"fields": fields, "pageSize": page_size, "cursor": cursor}),
569581
json=jsonable_encoder({"searchCriteria": search_criteria}),
570582
headers=remove_none_from_dict(
571583
{

src/revert/resources/crm/resources/event/types/search_events_response.py

+2
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,8 @@
1515

1616
class SearchEventsResponse(pydantic.BaseModel):
1717
status: ResponseStatus
18+
next: typing.Optional[str]
19+
previous: typing.Optional[str]
1820
results: typing.List[Event]
1921

2022
def json(self, **kwargs: typing.Any) -> str:

src/revert/resources/crm/resources/lead/client.py

+14-2
Original file line numberDiff line numberDiff line change
@@ -239,6 +239,8 @@ def search_leads(
239239
self,
240240
*,
241241
fields: typing.Optional[str] = None,
242+
page_size: typing.Optional[str] = None,
243+
cursor: typing.Optional[str] = None,
242244
search_criteria: typing.Any,
243245
x_revert_api_token: str,
244246
x_revert_t_id: str,
@@ -250,6 +252,10 @@ def search_leads(
250252
Parameters:
251253
- fields: typing.Optional[str].
252254
255+
- page_size: typing.Optional[str].
256+
257+
- cursor: typing.Optional[str].
258+
253259
- search_criteria: typing.Any.
254260
255261
- x_revert_api_token: str. Your official API key for accessing revert apis.
@@ -261,7 +267,7 @@ def search_leads(
261267
_response = self._client_wrapper.httpx_client.request(
262268
"POST",
263269
urllib.parse.urljoin(f"{self._client_wrapper.get_base_url()}/", "crm/leads/search"),
264-
params=remove_none_from_dict({"fields": fields}),
270+
params=remove_none_from_dict({"fields": fields, "pageSize": page_size, "cursor": cursor}),
265271
json=jsonable_encoder({"searchCriteria": search_criteria}),
266272
headers=remove_none_from_dict(
267273
{
@@ -500,6 +506,8 @@ async def search_leads(
500506
self,
501507
*,
502508
fields: typing.Optional[str] = None,
509+
page_size: typing.Optional[str] = None,
510+
cursor: typing.Optional[str] = None,
503511
search_criteria: typing.Any,
504512
x_revert_api_token: str,
505513
x_revert_t_id: str,
@@ -511,6 +519,10 @@ async def search_leads(
511519
Parameters:
512520
- fields: typing.Optional[str].
513521
522+
- page_size: typing.Optional[str].
523+
524+
- cursor: typing.Optional[str].
525+
514526
- search_criteria: typing.Any.
515527
516528
- x_revert_api_token: str. Your official API key for accessing revert apis.
@@ -522,7 +534,7 @@ async def search_leads(
522534
_response = await self._client_wrapper.httpx_client.request(
523535
"POST",
524536
urllib.parse.urljoin(f"{self._client_wrapper.get_base_url()}/", "crm/leads/search"),
525-
params=remove_none_from_dict({"fields": fields}),
537+
params=remove_none_from_dict({"fields": fields, "pageSize": page_size, "cursor": cursor}),
526538
json=jsonable_encoder({"searchCriteria": search_criteria}),
527539
headers=remove_none_from_dict(
528540
{

src/revert/resources/crm/resources/lead/types/search_leads_response.py

+2
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,8 @@
1515

1616
class SearchLeadsResponse(pydantic.BaseModel):
1717
status: ResponseStatus
18+
next: typing.Optional[str]
19+
previous: typing.Optional[str]
1820
results: typing.List[Lead]
1921

2022
def json(self, **kwargs: typing.Any) -> str:

0 commit comments

Comments
 (0)