Skip to content

Commit 25a5726

Browse files
committed
Release 0.0.649
1 parent 21ada11 commit 25a5726

File tree

10 files changed

+85
-4
lines changed

10 files changed

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

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ class CommonUnifiedFields(pydantic.BaseModel):
2222
updated_timestamp: typing.Any = pydantic.Field(
2323
alias="updatedTimestamp", description="The last updated timestamp of the object."
2424
)
25-
additional: typing.Any = pydantic.Field(
25+
additional: typing.Optional[typing.Any] = pydantic.Field(
2626
description="Any fields that are not unified yet/non-unifiable come inside this `json` object."
2727
)
2828

Lines changed: 28 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,32 @@
11
# This file was auto-generated by Fern from our API Definition.
22

3+
import datetime as dt
4+
import typing
5+
6+
from ......core.datetime_utils import serialize_datetime
37
from .....common.resources.unified.types.contact_write import ContactWrite
48

5-
CreateOrUpdateContactRequest = ContactWrite
9+
try:
10+
import pydantic.v1 as pydantic # type: ignore
11+
except ImportError:
12+
import pydantic # type: ignore
13+
14+
15+
class CreateOrUpdateContactRequest(ContactWrite):
16+
additional: typing.Any = pydantic.Field(
17+
description="Any fields that are not unified yet/non-unifiable come inside this `json` object."
18+
)
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/crm/resources/deal/types/create_or_update_deal_request.py

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,17 @@
66
from ......core.datetime_utils import serialize_datetime
77
from .....common.resources.unified.types.deal_write import DealWrite
88

9+
try:
10+
import pydantic.v1 as pydantic # type: ignore
11+
except ImportError:
12+
import pydantic # type: ignore
13+
914

1015
class CreateOrUpdateDealRequest(DealWrite):
16+
additional: typing.Any = pydantic.Field(
17+
description="Any fields that are not unified yet/non-unifiable come inside this `json` object."
18+
)
19+
1120
def json(self, **kwargs: typing.Any) -> str:
1221
kwargs_with_defaults: typing.Any = {"by_alias": True, "exclude_unset": True, **kwargs}
1322
return super().json(**kwargs_with_defaults)

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

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,17 @@
66
from ......core.datetime_utils import serialize_datetime
77
from .....common.resources.unified.types.event_write import EventWrite
88

9+
try:
10+
import pydantic.v1 as pydantic # type: ignore
11+
except ImportError:
12+
import pydantic # type: ignore
13+
914

1015
class CreateOrUpdateEventRequest(EventWrite):
16+
additional: typing.Any = pydantic.Field(
17+
description="Any fields that are not unified yet/non-unifiable come inside this `json` object."
18+
)
19+
1120
def json(self, **kwargs: typing.Any) -> str:
1221
kwargs_with_defaults: typing.Any = {"by_alias": True, "exclude_unset": True, **kwargs}
1322
return super().json(**kwargs_with_defaults)

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

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,17 @@
66
from ......core.datetime_utils import serialize_datetime
77
from .....common.resources.unified.types.lead_write import LeadWrite
88

9+
try:
10+
import pydantic.v1 as pydantic # type: ignore
11+
except ImportError:
12+
import pydantic # type: ignore
13+
914

1015
class CreateOrUpdateLeadRequest(LeadWrite):
16+
additional: typing.Any = pydantic.Field(
17+
description="Any fields that are not unified yet/non-unifiable come inside this `json` object."
18+
)
19+
1120
def json(self, **kwargs: typing.Any) -> str:
1221
kwargs_with_defaults: typing.Any = {"by_alias": True, "exclude_unset": True, **kwargs}
1322
return super().json(**kwargs_with_defaults)

src/revert/resources/crm/resources/note/types/create_or_update_note_request.py

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,17 @@
66
from ......core.datetime_utils import serialize_datetime
77
from .....common.resources.unified.types.note_write import NoteWrite
88

9+
try:
10+
import pydantic.v1 as pydantic # type: ignore
11+
except ImportError:
12+
import pydantic # type: ignore
13+
914

1015
class CreateOrUpdateNoteRequest(NoteWrite):
16+
additional: typing.Any = pydantic.Field(
17+
description="Any fields that are not unified yet/non-unifiable come inside this `json` object."
18+
)
19+
1120
def json(self, **kwargs: typing.Any) -> str:
1221
kwargs_with_defaults: typing.Any = {"by_alias": True, "exclude_unset": True, **kwargs}
1322
return super().json(**kwargs_with_defaults)

src/revert/resources/crm/resources/task/types/create_or_update_task_request.py

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,17 @@
66
from ......core.datetime_utils import serialize_datetime
77
from .....common.resources.unified.types.task_write import TaskWrite
88

9+
try:
10+
import pydantic.v1 as pydantic # type: ignore
11+
except ImportError:
12+
import pydantic # type: ignore
13+
914

1015
class CreateOrUpdateTaskRequest(TaskWrite):
16+
additional: typing.Any = pydantic.Field(
17+
description="Any fields that are not unified yet/non-unifiable come inside this `json` object."
18+
)
19+
1120
def json(self, **kwargs: typing.Any) -> str:
1221
kwargs_with_defaults: typing.Any = {"by_alias": True, "exclude_unset": True, **kwargs}
1322
return super().json(**kwargs_with_defaults)

src/revert/resources/crm/resources/user/types/create_or_update_user_request.py

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,17 @@
66
from ......core.datetime_utils import serialize_datetime
77
from .....common.resources.unified.types.user_write import UserWrite
88

9+
try:
10+
import pydantic.v1 as pydantic # type: ignore
11+
except ImportError:
12+
import pydantic # type: ignore
13+
914

1015
class CreateOrUpdateUserRequest(UserWrite):
16+
additional: typing.Any = pydantic.Field(
17+
description="Any fields that are not unified yet/non-unifiable come inside this `json` object."
18+
)
19+
1120
def json(self, **kwargs: typing.Any) -> str:
1221
kwargs_with_defaults: typing.Any = {"by_alias": True, "exclude_unset": True, **kwargs}
1322
return super().json(**kwargs_with_defaults)

0 commit comments

Comments
 (0)