From 07f08b15ace0f9fc3d5491fc26f6eec51c52f8d5 Mon Sep 17 00:00:00 2001 From: "fern-api[bot]" <115122769+fern-api[bot]@users.noreply.github.com> Date: Mon, 4 May 2026 11:26:42 +0000 Subject: [PATCH] feat: update base URLs and add calendar_date to MealInDbBaseClientFacingSource MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Update the default API base URLs for all environments from the legacy tryvital.io domain to the new junction.com domain. Also add a new `calendar_date` field to `MealInDbBaseClientFacingSource` to expose the date of a meal in YYYY-mm-dd format. Key changes: - Update PRODUCTION, PRODUCTION_EU, SANDBOX, and SANDBOX_EU environment URLs to junction.com domains - Add `calendar_date` (str) field to `MealInDbBaseClientFacingSource` for date-only meal providers 🌿 Generated with Fern --- .fern/metadata.json | 6 +++--- changelog.md | 6 ++++++ pyproject.toml | 2 +- src/junction/core/client_wrapper.py | 4 ++-- src/junction/environment.py | 8 ++++---- .../types/meal_in_db_base_client_facing_source.py | 5 +++++ 6 files changed, 21 insertions(+), 10 deletions(-) diff --git a/.fern/metadata.json b/.fern/metadata.json index 91c4fe4..116e9e0 100644 --- a/.fern/metadata.json +++ b/.fern/metadata.json @@ -1,5 +1,5 @@ { - "cliVersion": "5.5.1", + "cliVersion": "5.7.7", "generatorName": "fernapi/fern-python-sdk", "generatorVersion": "5.8.1", "generatorConfig": { @@ -10,10 +10,10 @@ "use_pydantic_field_aliases": true } }, - "originGitCommit": "05d79dd6ce370cbd029417f59eb71c056d94aa61", + "originGitCommit": "013d384eb55b3bae6134a907ce4c7f11837ba7d9", "originGitCommitIsDirty": true, "invokedBy": "ci", "requestedVersion": "AUTO", "ciProvider": "unknown", - "sdkVersion": "0.0.1" + "sdkVersion": "0.1.0" } \ No newline at end of file diff --git a/changelog.md b/changelog.md index 9f803cf..eefb32d 100644 --- a/changelog.md +++ b/changelog.md @@ -1,3 +1,9 @@ +## 0.1.0 - 2026-05-04 +### Changed +* **`JunctionEnvironment`** base URLs updated across all environments (`PRODUCTION`, `PRODUCTION_EU`, `SANDBOX`, `SANDBOX_EU`) to point to the new `junction.com` domain instead of `tryvital.io`. +### Added +* **`MealInDbBaseClientFacingSource.calendar_date`** — new `str` field exposing the meal date in `YYYY-mm-dd` format, useful for providers that only record a calendar date rather than a full timestamp. + ## 0.0.1 - 2026-05-01 * Initial SDK generation * 🌿 Generated with Fern diff --git a/pyproject.toml b/pyproject.toml index 766bd19..11ca7f2 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -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 = [] diff --git a/src/junction/core/client_wrapper.py b/src/junction/core/client_wrapper.py index 628daab..b46fff8 100644 --- a/src/junction/core/client_wrapper.py +++ b/src/junction/core/client_wrapper.py @@ -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 diff --git a/src/junction/environment.py b/src/junction/environment.py index 22800c2..6d0129f 100644 --- a/src/junction/environment.py +++ b/src/junction/environment.py @@ -4,7 +4,7 @@ class JunctionEnvironment(enum.Enum): - PRODUCTION = "https://api.tryvital.io" - PRODUCTION_EU = "https://api.eu.tryvital.io" - SANDBOX = "https://api.sandbox.tryvital.io" - SANDBOX_EU = "https://api.sandbox.eu.tryvital.io" + PRODUCTION = "https://api.us.junction.com" + PRODUCTION_EU = "https://api.eu.junction.com" + SANDBOX = "https://api.sandbox.us.junction.com" + SANDBOX_EU = "https://api.sandbox.eu.junction.com" diff --git a/src/junction/types/meal_in_db_base_client_facing_source.py b/src/junction/types/meal_in_db_base_client_facing_source.py index 5ae7a0b..7525775 100644 --- a/src/junction/types/meal_in_db_base_client_facing_source.py +++ b/src/junction/types/meal_in_db_base_client_facing_source.py @@ -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