Add JSDoc for API properties (2026-07-rc)#4392
Conversation
🚨🚨🚨 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! 🙏 |
…07-rc) 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. Note: B.10 Metafield.value JSDoc skipped on this branch — the Metafield interface was removed in 2026-04 and isn't present here either. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
23718d4 to
4114293
Compare
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>
…-2026-07-rc # Conflicts: # packages/ui-extensions/src/surfaces/checkout/api/checkout/checkout.ts # 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-07-rc sibling of #4389 (2025-10), #4390 (2026-01), and #4391 (2026-04). JSDoc text matches across the version PRs except where a property doesn't exist on this branch.
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 framingSkipped on this branch
Metafieldinterface incustomer-account/api/order-status/order-status.tsisn't present in 2026-07-rc (removed in 2026-04 in favor ofAppMetafieldEntry). Skipped per the plan's "if a property doesn't exist in a given version branch, skip it" rule.Notes / 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 to "Render your own localized error text rather than displaying this message to the buyer."subclaim: There's no typedsubfield. Added the guidance to theSessionTokeninterface description.fetch(): No typedfetchfunction in CA API source. Skipped JSDoc for this version. The .mdx cleanup already covers the guidance.Test plan
2025-10,2026-01,2026-04🤖 Generated with Claude Code