fix(ts-sdk): export Polymarket_us alias#1290
Conversation
PR Review: PASS (NOT VERIFIED)What This DoesExports the TypeScript Blast RadiusTypeScript SDK public exports/client aliasing, generated OpenAPI/docs artifacts, and Consumer VerificationBefore (base branch): import { Polymarket_us } from "pmxt"
// base: public export not presentAfter (PR branch): expect(Polymarket_us).toBe(PolymarketUS)
expect(new Polymarket_us({ autoStartServer: false }).exchangeName).toBe("polymarket_us")Runtime SDK verification was blocked by missing generated SDK artifacts. Test Results
FindingsNo blocking findings. PMXT Pipeline Check
Semver Impactpatch -- additive backwards-compatible public alias/export and docs generation sync. RiskThe docs JSON diff is large relative to the source change; I verified the intended Hunch exchange-scoping addition is present, but did not exhaustively re-review every generated docs deletion/addition line. |
Summary
Polymarket_usfrom the TypeScript SDK as a backwards-compatible alias forPolymarketUS.Hunchconsistently across OpenAPI, Python SDK exports, TypeScript SDK exports, generated client methods, API references, and compliance docs so exchange coverage stays in sync.Fixes #1285.
Test Plan
node core/scripts/check-exchange-drift.jsnode sdks/typescript/scripts/generate-client-methods.jsnode sdks/python/scripts/generate-client-methods.jsnode core/scripts/generate-compliance.jsnpm run build --workspace=pmxt-corenpm run generate:openapi --workspace=pmxt-corenpm run generate:mintlify --workspace=pmxt-corenpm run docs:llmsNODE_PATH=/Users/linghao/Github/pmxt/node_modules npm test -- --runTestsByPath tests/public-exports.test.tsinsdks/typescript— pass, 6 tests.NODE_PATHis only for local hoisted dependency resolution ofts-jest.npm run buildinsdks/typescriptpython3 -m py_compile sdks/python/pmxt/_exchanges.py sdks/python/pmxt/__init__.py sdks/python/pmxt/client.pygit diff --checkNotes
The first push exposed generated-output drift around
Hunch; the follow-up commits intentionally bring those generated surfaces back in sync so the PR is ready for CI/review.