SDK regeneration#186
Merged
Merged
Conversation
Generated by Fern CLI Version: unknown Generators: - fernapi/fern-php-sdk: 2.1.5
…ests to flat LoadResponse; lighter live query Reapplies the .fernignore-protected Reporting API customizations (FER-11257) onto the regenerated SDK, and adapts them to the regenerated flat LoadResponse (getData()/$data; no getResults()/LoadResult). - src/Utils/ReportingHelper.php: loadAndWait polling helper. The flat LoadResponse has only optional fields, so a "Continue wait" body now deserializes cleanly with the unmapped `error` key preserved as an additional property (data null) rather than raising a TypeError; isContinueWait() detects that preserved error. The defensive TypeError catch is kept for forward compatibility. Docs updated accordingly. - tests/Integration/ReportingHelperTest.php: offline unit tests through the real LoadResponse deserializer; resolved responses built via data; the crux test now asserts the sentinel preserves error (no TypeError); assertions use getData(). - tests/Integration/ReportingTest.php: live smoke test, skipped unless TEST_SQUARE_REPORTING is set (which also supplies the prod reporting token); asserts getData() is non-null; switched the live query from the heavy Orders.count (timed out within the poll budget) to the lighter Appointments.count. - README.md: Reporting API section; load example shows getData(). - .fernignore: protects src/Utils/ReportingHelper.php. - .github/workflows/ci.yml: test job passes TEST_SQUARE_REPORTING.
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.
Automated SDK generation by Fern