feat(vs-extension): API Browser shopper-schema → sfnext scapi add#457
Draft
clavery wants to merge 1 commit into
Draft
feat(vs-extension): API Browser shopper-schema → sfnext scapi add#457clavery wants to merge 1 commit into
clavery wants to merge 1 commit into
Conversation
Right-click a Shopper schema in the API Browser to run `pnpm sfnext scapi add <family> <name> <version>` in an integrated terminal. Menu is gated on Storefront Next workspace detection (via @salesforce/b2c-tooling-sdk/discovery) so it only appears in sfnext projects. Logs detection + invocation to the B2C DX output channel for diagnosis.
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.
Summary
pnpm sfnext scapi add <apiFamily> <apiName> <apiVersion>in an integrated terminal.@salesforce/b2c-tooling-sdk/discovery(detectWorkspaceType) — only appears whenb2c-dx.isStorefrontNextcontext is true.apiSchema-shopper/apiSchema-admincontext values; classification uses anisShopperSchema()helper that checks bothapiFamilyandapiNameforshopper*(case-insensitive) so APIs that come back asapiName=\"shopper-products\"are classified correctly.Notes