Skip to content

SDK regeneration#239

Open
fern-api[bot] wants to merge 6 commits into
masterfrom
fern-bot/2026-06-12_23-53-29_139
Open

SDK regeneration#239
fern-api[bot] wants to merge 6 commits into
masterfrom
fern-bot/2026-06-12_23-53-29_139

Conversation

@fern-api

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

Copy link
Copy Markdown
Contributor

Automated SDK generation by Fern

fern-api Bot and others added 6 commits June 12, 2026 23:53
Generated by Fern
CLI Version: unknown
Generators:
  - fernapi/fern-typescript-sdk: 3.43.8
ReportingHelper.loadAndWait wraps reporting.load with an exponential-backoff
retry loop around the "Continue wait" sentinel the async /v1/load endpoint
returns (HTTP 200) while a query is still computing. Exported from the package
root and protected via .fernignore so regeneration won't clobber it.

Tests:
- tests/unit/reporting.test.ts (protected): polling logic, maxAttempts timeout,
  abort, and a real-serializer check that the "Continue wait" body survives
  deserialization as a detectable sentinel. Runnable without a live account.
- tests/integration/reporting.test.ts: live smoke test. Reporting is served only
  from production (connect.squareup.com/reporting; sandbox 404s), so this suite
  targets production by default and needs a production-capable TEST_SQUARE_TOKEN.
  Read-only endpoints (schema discovery + queries).
…257)

Reporting is served only from production and needs a prod, reporting-provisioned
token; CI's token is sandbox-only and 401s against prod, turning the integration
job red. Gate the live suite behind TEST_SQUARE_REPORTING so it skips by default
(CI green) while staying runnable on demand against a real prod account. Default
target stays production. Polling logic remains covered by tests/unit/reporting.test.ts.
…ER-11257)

The customers 'add to group' integration test intermittently exceeds jest's 5s
default under CI load, turning the integration job red. Bump the integration
project's testTimeout to 30s (jest.config.mjs is .fernignore-protected).
…257)

Add a '## Reporting API' section (preserved by the README generator) covering
getMetadata schema discovery, the async 'Continue wait' polling behavior, and
the ReportingHelper.loadAndWait helper, linking to Square's Reporting API docs.
Also add a Table of Contents entry.
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.

2 participants