SDK regeneration#239
Open
fern-api[bot] wants to merge 6 commits into
Open
Conversation
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.
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