Skip to content

feat!: add required calendarDate stage to MealInDbBaseClientFacingSource builder#3

Closed
fern-api[bot] wants to merge 1 commit into
mainfrom
fern-bot/2026-05-05T13-55Z
Closed

feat!: add required calendarDate stage to MealInDbBaseClientFacingSource builder#3
fern-api[bot] wants to merge 1 commit into
mainfrom
fern-bot/2026-05-05T13-55Z

Conversation

@fern-api
Copy link
Copy Markdown
Contributor

@fern-api fern-api Bot commented May 5, 2026

⚠️ 0.0.1 → 1.0.0

Breaking: MealInDbBaseClientFacingSource.Builder.timestamp() now returns CalendarDateStage instead of NameStage, breaking all existing builder chains that chain .timestamp(...).name(...).

Breaking Changes

  • MealInDbBaseClientFacingSource.Buildertimestamp() now returns CalendarDateStage instead of NameStage, inserting a new required calendarDate(String) step in the builder chain. Migrate by adding .calendarDate("YYYY-MM-DD") between .timestamp(...) and .name(...).

Added

  • LabReportResult — new optional getSampleType() (LabReportResultSampleType) and getMeasurementKind() (LabReportResultMeasurementKind) fields, with corresponding builder methods.
  • LabReportResultSampleType — new non-exhaustive enum type representing the biological sample type (e.g. URINE, SERUM_PLASMA_BLOOD, STOOL, SALIVA).
  • LabReportResultMeasurementKind — new non-exhaustive enum type representing how a lab value was derived (e.g. DIRECT, CALCULATED, RATIO).

Changed

  • Environment — all base URLs updated from tryvital.io to junction.com domains (PRODUCTION, PRODUCTION_EU, SANDBOX, SANDBOX_EU).

See full changelog

…rce builder

Introduce new fields and types to LabReportResult and MealInDbBaseClientFacingSource,
and update all environment base URLs from tryvital.io to junction.com domains.

The MealInDbBaseClientFacingSource staged builder now requires a new mandatory
`calendarDate` step between `timestamp` and `name`. Existing builder chains that
called `.timestamp(...).name(...)` will fail to compile because `timestamp()` now
returns `CalendarDateStage` instead of `NameStage`.

Key changes:
- `MealInDbBaseClientFacingSource.Builder`: `timestamp()` now returns `CalendarDateStage` (was `NameStage`), inserting a required `calendarDate` step — existing builder chains break
- `LabReportResult`: new optional `sampleType` (`LabReportResultSampleType`) and `measurementKind` (`LabReportResultMeasurementKind`) fields with corresponding builder methods and getters
- New types `LabReportResultSampleType` and `LabReportResultMeasurementKind` added
- Environment base URLs updated from `tryvital.io` to `junction.com` domains

🌿 Generated with Fern
@ItachiEU ItachiEU closed this May 6, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant