Add JSDoc for API properties (2026-01)#4390
Conversation
Adds JSDoc to checkout and customer account API surfaces for properties whose documentation was moved out of Limitations sections in shopify-dev. See shopify/issues-learn#1612. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
🚨🚨🚨 Docs migration in progress 🚨🚨🚨We are actively migrating UI extension reference docs to MDX in the
During this migration, please be aware of the following:
Doc comments in Examples that previously lived in this repo are being moved to the What should I do?
Thanks for your patience while we complete the migration! 🙏 |
|
We detected some changes in |
Adds JSDoc to OrderStatusApi.authenticationState (read-only framing) and OrderStatusApi.requireLogin (dismissal-handling guidance) on the customer account API surface. Picks up content trimmed from the .mdx in shopify/world#663262 review feedback. References shopify/issues-learn#1612. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
…26-01 # Conflicts: # packages/ui-extensions/src/surfaces/checkout/api/standard/standard.ts
Summary
Adds JSDoc to checkout and customer account API surfaces for properties whose documentation was moved out of
## Limitationssections in shopify-dev. Pairs with the .mdx cleanup in shopify/world#663262 and the multi-agent plan in shopify/world#660052.References shopify/issues-learn#1612.
This is the 2026-01 sibling of #4389 (2025-10). JSDoc text is byte-identical across all four version PRs.
Follow-up commit
Picks up content trimmed from the .mdx in review feedback on shopify/world#663262:
OrderStatusApi.requireLogin(order-status.ts) — dismissal-handling guidanceOrderStatusApi.authenticationState(order-status.ts) — read-only framingNotes / deviations from the plan
<Requires>callout. Existing JSDoc onBuyerIdentity.emailandBuyerIdentity.phoneinstandard.tsalready includes "Requires level 2 access to protected customer data" plus theundefinedbehavior, so no JSDoc edit is needed here.availablePaymentOptionsandselectedPaymentOptionsJSDoc edits in this PR were superseded by upstream commit2e27e8ea7 Add payment option limitations to availablePaymentOptions and selectedPaymentOptions(Stephanie). Same content, reviewer-improved phrasing. The merge resolution takes the upstream wording, so A.16 is no longer load-bearing here.message: The plan's text references "the error code" but these error result types only carrytype: 'error'andmessage: string. Adapted the new sentence to "Render your own localized error text rather than displaying this message to the buyer."subclaim: There's no typedsubfield — the token is a JWT string. Added the guidance to theSessionTokeninterface description.fetch(): Thefetch()approach uses standard JSfetchwithshopify:storefront/...URLs and has no typed function in the customer account API source. Skipped JSDoc for this version. The .mdx cleanup already covers the guidance.Test plan
2025-10,2026-04,2026-07-rcwith byte-identical JSDoc🤖 Generated with Claude Code