Skip to content

Commit 59eacae

Browse files
committed
Release 0.0.654
1 parent 25a5726 commit 59eacae

24 files changed

+277
-82
lines changed

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.649"
3+
version = "0.0.654"
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.649",
16+
"X-Fern-SDK-Version": "0.0.654",
1717
}
1818
return headers
1919

src/revert/resources/common/__init__.py

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,26 +15,32 @@
1515
Connection,
1616
Contact,
1717
ContactAssociation,
18+
ContactRead,
1819
ContactWrite,
1920
Deal,
2021
DealAssociation,
22+
DealRead,
2123
DealWrite,
2224
Event,
2325
EventAssociation,
26+
EventRead,
2427
EventWrite,
2528
InternalServerError,
2629
Lead,
2730
LeadAssociation,
31+
LeadRead,
2832
LeadWrite,
2933
Message,
3034
NotFoundError,
3135
Note,
36+
NoteRead,
3237
NoteWrite,
3338
ResponseStatus,
3439
RevertUser,
3540
StandardObject,
3641
Task,
3742
TaskAssociation,
43+
TaskRead,
3844
TaskTicket,
3945
TaskTicketWrite,
4046
TaskWrite,
@@ -66,26 +72,32 @@
6672
"Connection",
6773
"Contact",
6874
"ContactAssociation",
75+
"ContactRead",
6976
"ContactWrite",
7077
"Deal",
7178
"DealAssociation",
79+
"DealRead",
7280
"DealWrite",
7381
"Event",
7482
"EventAssociation",
83+
"EventRead",
7584
"EventWrite",
7685
"InternalServerError",
7786
"Lead",
7887
"LeadAssociation",
88+
"LeadRead",
7989
"LeadWrite",
8090
"Message",
8191
"NotFoundError",
8292
"Note",
93+
"NoteRead",
8394
"NoteWrite",
8495
"ResponseStatus",
8596
"RevertUser",
8697
"StandardObject",
8798
"Task",
8899
"TaskAssociation",
100+
"TaskRead",
89101
"TaskTicket",
90102
"TaskTicketWrite",
91103
"TaskWrite",

src/revert/resources/common/resources/__init__.py

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,17 +29,23 @@
2929
Company,
3030
CompanyAddress,
3131
Contact,
32+
ContactRead,
3233
ContactWrite,
3334
Deal,
35+
DealRead,
3436
DealWrite,
3537
Event,
38+
EventRead,
3639
EventWrite,
3740
Lead,
41+
LeadRead,
3842
LeadWrite,
3943
Message,
4044
Note,
45+
NoteRead,
4146
NoteWrite,
4247
Task,
48+
TaskRead,
4349
TaskTicket,
4450
TaskTicketWrite,
4551
TaskWrite,
@@ -63,26 +69,32 @@
6369
"Connection",
6470
"Contact",
6571
"ContactAssociation",
72+
"ContactRead",
6673
"ContactWrite",
6774
"Deal",
6875
"DealAssociation",
76+
"DealRead",
6977
"DealWrite",
7078
"Event",
7179
"EventAssociation",
80+
"EventRead",
7281
"EventWrite",
7382
"InternalServerError",
7483
"Lead",
7584
"LeadAssociation",
85+
"LeadRead",
7686
"LeadWrite",
7787
"Message",
7888
"NotFoundError",
7989
"Note",
90+
"NoteRead",
8091
"NoteWrite",
8192
"ResponseStatus",
8293
"RevertUser",
8394
"StandardObject",
8495
"Task",
8596
"TaskAssociation",
97+
"TaskRead",
8698
"TaskTicket",
8799
"TaskTicketWrite",
88100
"TaskWrite",

src/revert/resources/common/resources/unified/__init__.py

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,17 +7,23 @@
77
Company,
88
CompanyAddress,
99
Contact,
10+
ContactRead,
1011
ContactWrite,
1112
Deal,
13+
DealRead,
1214
DealWrite,
1315
Event,
16+
EventRead,
1417
EventWrite,
1518
Lead,
19+
LeadRead,
1620
LeadWrite,
1721
Message,
1822
Note,
23+
NoteRead,
1924
NoteWrite,
2025
Task,
26+
TaskRead,
2127
TaskTicket,
2228
TaskTicketWrite,
2329
TaskWrite,
@@ -33,17 +39,23 @@
3339
"Company",
3440
"CompanyAddress",
3541
"Contact",
42+
"ContactRead",
3643
"ContactWrite",
3744
"Deal",
45+
"DealRead",
3846
"DealWrite",
3947
"Event",
48+
"EventRead",
4049
"EventWrite",
4150
"Lead",
51+
"LeadRead",
4252
"LeadWrite",
4353
"Message",
4454
"Note",
55+
"NoteRead",
4556
"NoteWrite",
4657
"Task",
58+
"TaskRead",
4759
"TaskTicket",
4860
"TaskTicketWrite",
4961
"TaskWrite",

src/revert/resources/common/resources/unified/types/__init__.py

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,17 +6,23 @@
66
from .company import Company
77
from .company_address import CompanyAddress
88
from .contact import Contact
9+
from .contact_read import ContactRead
910
from .contact_write import ContactWrite
1011
from .deal import Deal
12+
from .deal_read import DealRead
1113
from .deal_write import DealWrite
1214
from .event import Event
15+
from .event_read import EventRead
1316
from .event_write import EventWrite
1417
from .lead import Lead
18+
from .lead_read import LeadRead
1519
from .lead_write import LeadWrite
1620
from .message import Message
1721
from .note import Note
22+
from .note_read import NoteRead
1823
from .note_write import NoteWrite
1924
from .task import Task
25+
from .task_read import TaskRead
2026
from .task_ticket import TaskTicket
2127
from .task_ticket_write import TaskTicketWrite
2228
from .task_write import TaskWrite
@@ -31,17 +37,23 @@
3137
"Company",
3238
"CompanyAddress",
3339
"Contact",
40+
"ContactRead",
3441
"ContactWrite",
3542
"Deal",
43+
"DealRead",
3644
"DealWrite",
3745
"Event",
46+
"EventRead",
3847
"EventWrite",
3948
"Lead",
49+
"LeadRead",
4050
"LeadWrite",
4151
"Message",
4252
"Note",
53+
"NoteRead",
4354
"NoteWrite",
4455
"Task",
56+
"TaskRead",
4557
"TaskTicket",
4658
"TaskTicketWrite",
4759
"TaskWrite",

src/revert/resources/common/resources/unified/types/contact.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,10 @@
55

66
from ......core.datetime_utils import serialize_datetime
77
from .common_unified_fields import CommonUnifiedFields
8-
from .contact_write import ContactWrite
8+
from .contact_read import ContactRead
99

1010

11-
class Contact(CommonUnifiedFields, ContactWrite):
11+
class Contact(CommonUnifiedFields, ContactRead):
1212
def json(self, **kwargs: typing.Any) -> str:
1313
kwargs_with_defaults: typing.Any = {"by_alias": True, "exclude_unset": True, **kwargs}
1414
return super().json(**kwargs_with_defaults)
Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
# This file was auto-generated by Fern from our API Definition.
2+
3+
import datetime as dt
4+
import typing
5+
6+
from ......core.datetime_utils import serialize_datetime
7+
8+
try:
9+
import pydantic.v1 as pydantic # type: ignore
10+
except ImportError:
11+
import pydantic # type: ignore
12+
13+
14+
class ContactRead(pydantic.BaseModel):
15+
first_name: str = pydantic.Field(alias="firstName", description="The first name of the contact in a CRM.")
16+
last_name: str = pydantic.Field(alias="lastName", description="The last name of the contact in a CRM.")
17+
phone: str = pydantic.Field(description="The phone number of the contact in a CRM.")
18+
email: str = pydantic.Field(description="The email of the contact in a CRM.")
19+
20+
def json(self, **kwargs: typing.Any) -> str:
21+
kwargs_with_defaults: typing.Any = {"by_alias": True, "exclude_unset": True, **kwargs}
22+
return super().json(**kwargs_with_defaults)
23+
24+
def dict(self, **kwargs: typing.Any) -> typing.Dict[str, typing.Any]:
25+
kwargs_with_defaults: typing.Any = {"by_alias": True, "exclude_unset": True, **kwargs}
26+
return super().dict(**kwargs_with_defaults)
27+
28+
class Config:
29+
frozen = True
30+
smart_union = True
31+
allow_population_by_field_name = True
32+
json_encoders = {dt.datetime: serialize_datetime}

src/revert/resources/common/resources/unified/types/contact_write.py

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -5,18 +5,10 @@
55

66
from ......core.datetime_utils import serialize_datetime
77
from ...associations.types.contact_association import ContactAssociation
8+
from .contact_read import ContactRead
89

9-
try:
10-
import pydantic.v1 as pydantic # type: ignore
11-
except ImportError:
12-
import pydantic # type: ignore
1310

14-
15-
class ContactWrite(pydantic.BaseModel):
16-
first_name: str = pydantic.Field(alias="firstName", description="The first name of the contact in a CRM.")
17-
last_name: str = pydantic.Field(alias="lastName", description="The last name of the contact in a CRM.")
18-
phone: str = pydantic.Field(description="The phone number of the contact in a CRM.")
19-
email: str = pydantic.Field(description="The email of the contact in a CRM.")
11+
class ContactWrite(ContactRead):
2012
associations: typing.Optional[ContactAssociation]
2113

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

src/revert/resources/common/resources/unified/types/deal.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,10 @@
55

66
from ......core.datetime_utils import serialize_datetime
77
from .common_unified_fields import CommonUnifiedFields
8-
from .deal_write import DealWrite
8+
from .deal_read import DealRead
99

1010

11-
class Deal(CommonUnifiedFields, DealWrite):
11+
class Deal(CommonUnifiedFields, DealRead):
1212
def json(self, **kwargs: typing.Any) -> str:
1313
kwargs_with_defaults: typing.Any = {"by_alias": True, "exclude_unset": True, **kwargs}
1414
return super().json(**kwargs_with_defaults)

0 commit comments

Comments
 (0)