feat: add logging support and enhanced SSE streaming capabilities#74
Open
fern-api[bot] wants to merge 1 commit intomainfrom
Open
feat: add logging support and enhanced SSE streaming capabilities#74fern-api[bot] wants to merge 1 commit intomainfrom
fern-api[bot] wants to merge 1 commit intomainfrom
Conversation
This update introduces configurable logging through the ClientOptions builder and adds advanced SSE streaming capabilities with event-level discrimination support. The lab report client API has been simplified by removing InputStream overloads and updating method documentation. Key changes: - Add LogConfig support to ClientOptions with logging() builder method - Add SSE_EVENT_DISCRIMINATED stream type with discrimination support - Add fromSseWithEventDiscrimination() factory methods to Stream class - Remove InputStream-based parserCreateJob() method overloads - Update documentation from "file" to "file(s)" in lab report methods 🌿 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.
Version Bump: Removed public parserCreateJob() methods that accepted InputStream parameters - existing callers will get compile errors.
parserCreateJobmethod overloads that acceptedInputStreamparameters have been removed fromRawLabReportClient. Use theFileparameter overloads instead. Thelabparameter inLabTestsGetPscAppointmentAvailabilityRequestnow accepts anAppointmentPscLabsenum instead of a String.New optional parameters are now available:
labAccountIdandlabSluginCreateLabTestRequest,labSluginLabTestsGetMarkersRequest, andappointmentNotesinRequestAppointmentRequest.ManualConnectionData, appointment notes inAppointmentRescheduleRequest, clinical notes inClientFacingOrder, and access notes inAddress. TheUserInfoCreateRequestnow uses the more specificUserAddresstype instead of the genericAddresstype. A newDerivedReadinessColumnExprvariant has been added toAggregateExprArgfor enhanced query capabilities.ConvertCompendiumBodyandSearchCompendiumBodyfor searching and converting lab tests across different providers. Additionally, a newLabAccountClientis available withgetTeamLabAccounts()method for managing team lab accounts.RawLabAccountClient.getTeamLabAccounts()method. The SDK now supports filtering lab accounts by ID and status. Added optionalclinical_notesfield to order creation requests for additional clinical context.additionalProperty()andadditionalProperties()methods available on request builder classes. These methods enable setting custom properties on request objects for enhanced flexibility and extensibility.additionalProperty()andadditionalProperties()are now available on request objects, providing a fluent API for setting additional properties on requests.additionalProperty()andadditionalProperties()methods available on all vitals request builders. These methods allow adding custom key-value pairs to requests for extended functionality while maintaining backward compatibility.additionalProperty()andadditionalProperties()methods available on all vitals request builders for setting custom key-value pairs.additionalProperty()andadditionalProperties()methods. This enables flexible extensibility for custom use cases. Added optionalappointmentNotesfield toAppointmentBookingRequestand newAppointmentPscLabsenum for PSC lab selection.CanonicalCandidatetype available for biomarker matching operations with support for LOINC codes, display names, aliases, and confidence scoring. Builder patterns across all types now support additional properties viaadditionalProperty()andadditionalProperties()methods.appointmentNotesfield available onClientFacingAppointmentobjects. Enhanced builder pattern support withadditionalProperty()andadditionalProperties()methods for programmatic object construction.additionalProperty()andadditionalProperties()builder methods available on all ClientFacing data types for handling additional properties and extensibility.additionalProperty()andadditionalProperties()are now available on all client-facing model builders. These methods allow setting custom key-value pairs on objects during construction, providing greater flexibility when working with dynamic data structures.additionalProperty()andadditionalProperties()are now available on all data model builders, allowing you to set custom properties that will be preserved during serialization.additionalProperty(String key, Object value)andadditionalProperties(Map<String, Object> additionalProperties)methods for programmatically setting additional properties during object construction.additionalProperty(key, value)to set individual properties oradditionalProperties(map)to set multiple properties at once.additionalProperty()andadditionalProperties()methods are now available on all builder classes for client-facing types. These methods provide a fluent API for adding custom properties during object construction.additionalProperty()andadditionalProperties()methods available on all response object builders for handling dynamic API response fields.additionalProperty()andadditionalProperties()methods are available on builder classes to support dynamic field handling from API responses. A newGetTeamLabAccountsResponseclass has been added for lab account management functionality.additionalProperty()andadditionalProperties()methods on all GroupedData builders, enabling better handling of dynamic or unexpected fields from the API.additionalProperty()andadditionalProperties()builder methods are now available on all Grouped* type builders, enabling flexible handling of additional properties not explicitly defined in the schema.additionalProperty()andadditionalProperties()methods. This enables setting custom fields on model objects when using the builder pattern.additionalProperty(key, value)andadditionalProperties(map)to set custom properties on response objects during construction.PerLabCandidateclass for working with laboratory candidate data, providing access to marker information, LOINC codes, CPT codes, and confidence scores. All builder classes now supportadditionalProperty()andadditionalProperties()methods for enhanced flexibility when working with dynamic properties.ProviderIdConversionResponseandRelatedCandidateclasses are available for provider ID conversion functionality. Lab result metadata now includes an optional gender field with the newResultMetadataGenderenum.