@@ -240,6 +240,8 @@ def search_companies(
240
240
self ,
241
241
* ,
242
242
fields : typing .Optional [str ] = None ,
243
+ page_size : typing .Optional [str ] = None ,
244
+ cursor : typing .Optional [str ] = None ,
243
245
search_criteria : typing .Any ,
244
246
x_revert_api_token : str ,
245
247
x_revert_t_id : str ,
@@ -251,6 +253,10 @@ def search_companies(
251
253
Parameters:
252
254
- fields: typing.Optional[str].
253
255
256
+ - page_size: typing.Optional[str].
257
+
258
+ - cursor: typing.Optional[str].
259
+
254
260
- search_criteria: typing.Any.
255
261
256
262
- x_revert_api_token: str. Your official API key for accessing revert apis.
@@ -262,7 +268,7 @@ def search_companies(
262
268
_response = self ._client_wrapper .httpx_client .request (
263
269
"POST" ,
264
270
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 }),
266
272
json = jsonable_encoder ({"searchCriteria" : search_criteria }),
267
273
headers = remove_none_from_dict (
268
274
{
@@ -501,6 +507,8 @@ async def search_companies(
501
507
self ,
502
508
* ,
503
509
fields : typing .Optional [str ] = None ,
510
+ page_size : typing .Optional [str ] = None ,
511
+ cursor : typing .Optional [str ] = None ,
504
512
search_criteria : typing .Any ,
505
513
x_revert_api_token : str ,
506
514
x_revert_t_id : str ,
@@ -512,6 +520,10 @@ async def search_companies(
512
520
Parameters:
513
521
- fields: typing.Optional[str].
514
522
523
+ - page_size: typing.Optional[str].
524
+
525
+ - cursor: typing.Optional[str].
526
+
515
527
- search_criteria: typing.Any.
516
528
517
529
- x_revert_api_token: str. Your official API key for accessing revert apis.
@@ -523,7 +535,7 @@ async def search_companies(
523
535
_response = await self ._client_wrapper .httpx_client .request (
524
536
"POST" ,
525
537
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 }),
527
539
json = jsonable_encoder ({"searchCriteria" : search_criteria }),
528
540
headers = remove_none_from_dict (
529
541
{
0 commit comments