Skip to content

Backport #617 to 6.x: janusCatalogSystem + licenseManager.listBindings#665

Open
monteirogc wants to merge 1 commit into
6.xfrom
feature/IDAAS-805/tenants-client-alternative-6x
Open

Backport #617 to 6.x: janusCatalogSystem + licenseManager.listBindings#665
monteirogc wants to merge 1 commit into
6.xfrom
feature/IDAAS-805/tenants-client-alternative-6x

Conversation

@monteirogc

Copy link
Copy Markdown
Contributor

Summary

Backports the changes merged in #617 (on master/7.x) to the 6.x line, since we maintain two versions of @vtex/api.

  • Adds the base IOClients getter janusCatalogSystem (Janus Catalog client: getSalesChannel / getDefaultSalesChannel).
  • Adds LicenseManager.listBindings(tenant) returning APIBindingRes[].
  • Splits the single-file janus/LicenseManager.ts into a directory (index.ts / types.ts / utils.ts) and adds the binding-mapping helpers getCanonicalAndAlternateAddresses and inferTargetProduct.
  • Exports the new Catalog client and the LicenseManager types/utils from the top-level @vtex/api.
  • Bumps version to 6.51.0 and updates the CHANGELOG.

Parity with #617

Functionally identical to the merged PR. The only deltas are:

  • Import / object-key ordering and arrow-paren style adapted to the stricter 6.x tslint/prettier config (no behavior change).
  • Version (6.51.0 vs 7.4.0) and CHANGELOG wording (6.x never had the intermediate catalogSystem getter, so no rename note).

Test plan

  • tslint clean on all changed files
  • prettier --check clean on all new files
  • tsc --noEmit adds no new errors (the 2 pre-existing errors in service/logger|telemetry/client.ts are unrelated)
  • CI green on the 6.x pipeline

Made with Cursor

Adds the base IOClients `janusCatalogSystem` (Janus Catalog) getter and
`LicenseManager.listBindings`, plus the binding-mapping helpers
(getCanonicalAndAlternateAddresses, inferTargetProduct) and the
APIBindingRes/SalesChannel types, used by the Tenant API migration.

Splits the single-file LicenseManager into a directory (index/types/utils)
and adds the Janus Catalog client. Backport of #617 to the 6.x line;
import/key ordering adapted to the stricter 6.x tslint/prettier config.

Co-authored-by: Cursor <cursoragent@cursor.com>
@monteirogc monteirogc requested a review from arturpimentel June 23, 2026 17:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants