Skip to content

SDK regeneration#186

Merged
fern-support merged 4 commits into
masterfrom
fern-bot/2026-06-18_17-28-02_484
Jun 20, 2026
Merged

SDK regeneration#186
fern-support merged 4 commits into
masterfrom
fern-bot/2026-06-18_17-28-02_484

Conversation

@fern-api

@fern-api fern-api Bot commented Jun 18, 2026

Copy link
Copy Markdown
Contributor

Automated SDK generation by Fern

fern-api Bot and others added 4 commits June 18, 2026 17:28
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.
@fern-support fern-support merged commit cffbd66 into master Jun 20, 2026
7 checks passed
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