Skip to content

Commit 64cd248

Browse files
committed
Release 0.0.1068
1 parent 7a122d3 commit 64cd248

File tree

12 files changed

+168
-96
lines changed

12 files changed

+168
-96
lines changed

README.md

Lines changed: 0 additions & 56 deletions
This file was deleted.

poetry.lock

Lines changed: 6 additions & 6 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[tool.poetry]
22
name = "revert-api"
3-
version = "0.0.1067"
3+
version = "0.0.1068"
44
description = ""
55
readme = "README.md"
66
authors = []

src/revert/core/client_wrapper.py

Lines changed: 1 addition & 1 deletion
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.1067",
16+
"X-Fern-SDK-Version": "0.0.1068",
1717
}
1818
return headers
1919

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

Lines changed: 20 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ def get_company(
3737
id: str,
3838
*,
3939
fields: typing.Optional[str] = None,
40+
associations: typing.Optional[str] = None,
4041
x_revert_api_token: str,
4142
x_revert_t_id: str,
4243
x_api_version: typing.Optional[str] = None,
@@ -49,6 +50,8 @@ def get_company(
4950
5051
- fields: typing.Optional[str].
5152
53+
- associations: typing.Optional[str].
54+
5255
- x_revert_api_token: str. Your official API key for accessing revert apis.
5356
5457
- x_revert_t_id: str. The unique customer id used when the customer linked their account.
@@ -58,7 +61,7 @@ def get_company(
5861
_response = self._client_wrapper.httpx_client.request(
5962
"GET",
6063
urllib.parse.urljoin(f"{self._client_wrapper.get_base_url()}/", f"crm/companies/{id}"),
61-
params=remove_none_from_dict({"fields": fields}),
64+
params=remove_none_from_dict({"fields": fields, "associations": associations}),
6265
headers=remove_none_from_dict(
6366
{
6467
**self._client_wrapper.get_headers(),
@@ -87,6 +90,7 @@ def get_companies(
8790
self,
8891
*,
8992
fields: typing.Optional[str] = None,
93+
associations: typing.Optional[str] = None,
9094
page_size: typing.Optional[str] = None,
9195
cursor: typing.Optional[str] = None,
9296
x_revert_api_token: str,
@@ -99,6 +103,8 @@ def get_companies(
99103
Parameters:
100104
- fields: typing.Optional[str].
101105
106+
- associations: typing.Optional[str].
107+
102108
- page_size: typing.Optional[str].
103109
104110
- cursor: typing.Optional[str].
@@ -112,7 +118,9 @@ def get_companies(
112118
_response = self._client_wrapper.httpx_client.request(
113119
"GET",
114120
urllib.parse.urljoin(f"{self._client_wrapper.get_base_url()}/", "crm/companies"),
115-
params=remove_none_from_dict({"fields": fields, "pageSize": page_size, "cursor": cursor}),
121+
params=remove_none_from_dict(
122+
{"fields": fields, "associations": associations, "pageSize": page_size, "cursor": cursor}
123+
),
116124
headers=remove_none_from_dict(
117125
{
118126
**self._client_wrapper.get_headers(),
@@ -304,6 +312,7 @@ async def get_company(
304312
id: str,
305313
*,
306314
fields: typing.Optional[str] = None,
315+
associations: typing.Optional[str] = None,
307316
x_revert_api_token: str,
308317
x_revert_t_id: str,
309318
x_api_version: typing.Optional[str] = None,
@@ -316,6 +325,8 @@ async def get_company(
316325
317326
- fields: typing.Optional[str].
318327
328+
- associations: typing.Optional[str].
329+
319330
- x_revert_api_token: str. Your official API key for accessing revert apis.
320331
321332
- x_revert_t_id: str. The unique customer id used when the customer linked their account.
@@ -325,7 +336,7 @@ async def get_company(
325336
_response = await self._client_wrapper.httpx_client.request(
326337
"GET",
327338
urllib.parse.urljoin(f"{self._client_wrapper.get_base_url()}/", f"crm/companies/{id}"),
328-
params=remove_none_from_dict({"fields": fields}),
339+
params=remove_none_from_dict({"fields": fields, "associations": associations}),
329340
headers=remove_none_from_dict(
330341
{
331342
**self._client_wrapper.get_headers(),
@@ -354,6 +365,7 @@ async def get_companies(
354365
self,
355366
*,
356367
fields: typing.Optional[str] = None,
368+
associations: typing.Optional[str] = None,
357369
page_size: typing.Optional[str] = None,
358370
cursor: typing.Optional[str] = None,
359371
x_revert_api_token: str,
@@ -366,6 +378,8 @@ async def get_companies(
366378
Parameters:
367379
- fields: typing.Optional[str].
368380
381+
- associations: typing.Optional[str].
382+
369383
- page_size: typing.Optional[str].
370384
371385
- cursor: typing.Optional[str].
@@ -379,7 +393,9 @@ async def get_companies(
379393
_response = await self._client_wrapper.httpx_client.request(
380394
"GET",
381395
urllib.parse.urljoin(f"{self._client_wrapper.get_base_url()}/", "crm/companies"),
382-
params=remove_none_from_dict({"fields": fields, "pageSize": page_size, "cursor": cursor}),
396+
params=remove_none_from_dict(
397+
{"fields": fields, "associations": associations, "pageSize": page_size, "cursor": cursor}
398+
),
383399
headers=remove_none_from_dict(
384400
{
385401
**self._client_wrapper.get_headers(),

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

Lines changed: 20 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ def get_contact(
3737
id: str,
3838
*,
3939
fields: typing.Optional[str] = None,
40+
associations: typing.Optional[str] = None,
4041
x_revert_api_token: str,
4142
x_revert_t_id: str,
4243
x_api_version: typing.Optional[str] = None,
@@ -49,6 +50,8 @@ def get_contact(
4950
5051
- fields: typing.Optional[str].
5152
53+
- associations: typing.Optional[str].
54+
5255
- x_revert_api_token: str. Your official API key for accessing revert apis.
5356
5457
- x_revert_t_id: str. The unique customer id used when the customer linked their account.
@@ -58,7 +61,7 @@ def get_contact(
5861
_response = self._client_wrapper.httpx_client.request(
5962
"GET",
6063
urllib.parse.urljoin(f"{self._client_wrapper.get_base_url()}/", f"crm/contacts/{id}"),
61-
params=remove_none_from_dict({"fields": fields}),
64+
params=remove_none_from_dict({"fields": fields, "associations": associations}),
6265
headers=remove_none_from_dict(
6366
{
6467
**self._client_wrapper.get_headers(),
@@ -89,6 +92,7 @@ def get_contacts(
8992
fields: typing.Optional[str] = None,
9093
page_size: typing.Optional[str] = None,
9194
cursor: typing.Optional[str] = None,
95+
associations: typing.Optional[str] = None,
9296
x_revert_api_token: str,
9397
x_revert_t_id: str,
9498
x_api_version: typing.Optional[str] = None,
@@ -103,6 +107,8 @@ def get_contacts(
103107
104108
- cursor: typing.Optional[str].
105109
110+
- associations: typing.Optional[str].
111+
106112
- x_revert_api_token: str. Your official API key for accessing revert apis.
107113
108114
- x_revert_t_id: str. The unique customer id used when the customer linked their account.
@@ -112,7 +118,9 @@ def get_contacts(
112118
_response = self._client_wrapper.httpx_client.request(
113119
"GET",
114120
urllib.parse.urljoin(f"{self._client_wrapper.get_base_url()}/", "crm/contacts"),
115-
params=remove_none_from_dict({"fields": fields, "pageSize": page_size, "cursor": cursor}),
121+
params=remove_none_from_dict(
122+
{"fields": fields, "pageSize": page_size, "cursor": cursor, "associations": associations}
123+
),
116124
headers=remove_none_from_dict(
117125
{
118126
**self._client_wrapper.get_headers(),
@@ -308,6 +316,7 @@ async def get_contact(
308316
id: str,
309317
*,
310318
fields: typing.Optional[str] = None,
319+
associations: typing.Optional[str] = None,
311320
x_revert_api_token: str,
312321
x_revert_t_id: str,
313322
x_api_version: typing.Optional[str] = None,
@@ -320,6 +329,8 @@ async def get_contact(
320329
321330
- fields: typing.Optional[str].
322331
332+
- associations: typing.Optional[str].
333+
323334
- x_revert_api_token: str. Your official API key for accessing revert apis.
324335
325336
- x_revert_t_id: str. The unique customer id used when the customer linked their account.
@@ -329,7 +340,7 @@ async def get_contact(
329340
_response = await self._client_wrapper.httpx_client.request(
330341
"GET",
331342
urllib.parse.urljoin(f"{self._client_wrapper.get_base_url()}/", f"crm/contacts/{id}"),
332-
params=remove_none_from_dict({"fields": fields}),
343+
params=remove_none_from_dict({"fields": fields, "associations": associations}),
333344
headers=remove_none_from_dict(
334345
{
335346
**self._client_wrapper.get_headers(),
@@ -360,6 +371,7 @@ async def get_contacts(
360371
fields: typing.Optional[str] = None,
361372
page_size: typing.Optional[str] = None,
362373
cursor: typing.Optional[str] = None,
374+
associations: typing.Optional[str] = None,
363375
x_revert_api_token: str,
364376
x_revert_t_id: str,
365377
x_api_version: typing.Optional[str] = None,
@@ -374,6 +386,8 @@ async def get_contacts(
374386
375387
- cursor: typing.Optional[str].
376388
389+
- associations: typing.Optional[str].
390+
377391
- x_revert_api_token: str. Your official API key for accessing revert apis.
378392
379393
- x_revert_t_id: str. The unique customer id used when the customer linked their account.
@@ -383,7 +397,9 @@ async def get_contacts(
383397
_response = await self._client_wrapper.httpx_client.request(
384398
"GET",
385399
urllib.parse.urljoin(f"{self._client_wrapper.get_base_url()}/", "crm/contacts"),
386-
params=remove_none_from_dict({"fields": fields, "pageSize": page_size, "cursor": cursor}),
400+
params=remove_none_from_dict(
401+
{"fields": fields, "pageSize": page_size, "cursor": cursor, "associations": associations}
402+
),
387403
headers=remove_none_from_dict(
388404
{
389405
**self._client_wrapper.get_headers(),

0 commit comments

Comments
 (0)