Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions .fern/metadata.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"cliVersion": "5.5.1",
"cliVersion": "5.6.1",
"generatorName": "fernapi/fern-python-sdk",
"generatorVersion": "5.8.1",
"generatorConfig": {
Expand All @@ -10,10 +10,10 @@
"use_pydantic_field_aliases": true
}
},
"originGitCommit": "05d79dd6ce370cbd029417f59eb71c056d94aa61",
"originGitCommit": "e1c3ceef9f4e6957d1a38d66920fdb58ec00c6d5",
"originGitCommitIsDirty": true,
"invokedBy": "ci",
"requestedVersion": "AUTO",
"ciProvider": "unknown",
"sdkVersion": "0.0.1"
"sdkVersion": "0.1.0"
}
4 changes: 4 additions & 0 deletions changelog.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
## 0.1.0 - 2026-05-01
### Added
* **`MealInDbBaseClientFacingSource`** now includes a `calendar_date` field (string in `YYYY-mm-dd` format) representing the date of the meal, particularly useful for providers that only expose a date rather than a full timestamp.

## 0.0.1 - 2026-05-01
* Initial SDK generation
* 🌿 Generated with Fern
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ dynamic = ["version"]

[tool.poetry]
name = "junction-api-sdk"
version = "0.0.1"
version = "0.1.0"
description = ""
readme = "README.md"
authors = []
Expand Down
4 changes: 2 additions & 2 deletions src/junction/core/client_wrapper.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,12 +27,12 @@ def get_headers(self) -> typing.Dict[str, str]:
import platform

headers: typing.Dict[str, str] = {
"User-Agent": "junction-api-sdk/0.0.1",
"User-Agent": "junction-api-sdk/0.1.0",
"X-Fern-Language": "Python",
"X-Fern-Runtime": f"python/{platform.python_version()}",
"X-Fern-Platform": f"{platform.system().lower()}/{platform.release()}",
"X-Fern-SDK-Name": "junction-api-sdk",
"X-Fern-SDK-Version": "0.0.1",
"X-Fern-SDK-Version": "0.1.0",
**(self.get_custom_headers() or {}),
}
headers["x-vital-api-key"] = self.api_key
Expand Down
5 changes: 5 additions & 0 deletions src/junction/types/meal_in_db_base_client_facing_source.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,11 @@ class MealInDbBaseClientFacingSource(UniversalBaseModel):
"""

timestamp: dt.datetime
calendar_date: str = pydantic.Field()
"""
Date of the meal in the YYYY-mm-dd format. For providers that only expose a date, this is the calendar date as recorded by the user.
"""

name: str
energy: typing.Optional[Energy] = None
macros: typing.Optional[Macros] = None
Expand Down
Loading