feat!: add required calendarDate stage to MealInDbBaseClientFacingSource builder and update environment URLs#2
Closed
fern-api[bot] wants to merge 1 commit into
Closed
Conversation
…rce builder and update environment URLs Introduce a new required `calendarDate` field to `MealInDbBaseClientFacingSource`, inserting a new `CalendarDateStage` step into the staged builder chain between `TimestampStage` and `NameStage`. This is a breaking change because existing code calling `.timestamp(...)` and expecting a `NameStage` in return will now receive a `CalendarDateStage` instead, causing compilation failures. Additionally, update all environment base URLs from `tryvital.io` to `junction.com` domains across PRODUCTION, PRODUCTION_EU, SANDBOX, and SANDBOX_EU constants. Key changes: - Add required `calendarDate` (String) field and `getCalendarDate()` accessor to `MealInDbBaseClientFacingSource` - Insert new `CalendarDateStage` interface into the staged builder chain; `TimestampStage.timestamp()` now returns `CalendarDateStage` instead of `NameStage` - Update `Environment` base URLs from `tryvital.io` to `junction.com` for all four environment constants 🌿 Generated with Fern
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Breaking: The
TimestampStage.timestamp()method inMealInDbBaseClientFacingSource's staged builder now returnsCalendarDateStageinstead ofNameStage, breaking all existing builder call chains that chain directly fromtimestamp()toname().Breaking Changes
MealInDbBaseClientFacingSourcebuilder — a new requiredcalendarDatestep has been inserted into the staged builder chain;TimestampStage.timestamp()now returnsCalendarDateStageinstead ofNameStage, so existing builder call chains will fail to compile. Add a.calendarDate(...)call after.timestamp(...)to migrate.EnvironmentURLs — the base URLs for all four environment constants (PRODUCTION,PRODUCTION_EU,SANDBOX,SANDBOX_EU) have changed fromtryvital.iodomains tojunction.comdomains. No code change is required, but any hardcoded URL overrides should be updated accordingly.Added
MealInDbBaseClientFacingSource.getCalendarDate()— returns the date of the meal inYYYY-MM-DDformat, supporting providers that only expose a calendar date.See full changelog