Skip to content

@W-21112167 adding replications api#215

Open
charithaT07 wants to merge 9 commits intomainfrom
W-21112167-Replications-API
Open

@W-21112167 adding replications api#215
charithaT07 wants to merge 9 commits intomainfrom
W-21112167-Replications-API

Conversation

@charithaT07
Copy link
Collaborator

@charithaT07 charithaT07 commented Feb 26, 2026

Summary

Brief description of what this PR does.

Summary
Adds support for the Granular Replications API to publish individual items (products, price tables, content assets) from staging to production, providing fine-grained control over replication instead of full-site replication.

Commands Added

Usage

Publish a product
b2c scapi replications publish --product-id PROD-123 --tenant-id zzxy_stg

List processes
b2c scapi replications list --tenant-id zzxy_stg

Wait for completion
b2c scapi replications wait --tenant-id zzxy_stg

What's Included

  • ✅ SDK Client - Type-safe createGranularReplicationsClient() with OAuth
  • ✅ 4 CLI Commands - list/get/publish/wait with table output
  • ✅ Complete Tests - 1,083 lines of unit tests with MSW mocking
  • ✅ Full Documentation - 380-line command reference guide
  • ✅ Entity Support - Products, price tables, and content assets

Implementation

SDK (packages/b2c-tooling-sdk):

  • OpenAPI spec + generated types (1,074 lines)
  • Granular Replications client with OAuth scopes
  • Test coverage with MSW API mocks

CLI (packages/b2c-cli):

  • Base command with tenant/org resolution
  • 4 commands with validation and formatted output
  • 785 lines of CLI test coverage

Testing

How was this tested?

Dependencies

  • No net-new third-party dependencies were added
  • If net-new third-party dependencies were added, rationale/discussion is included and 3pl-approved is set by a maintainer

  • Tests pass (pnpm test)
  • Code is formatted (pnpm run format)

@charithaT07 charithaT07 changed the title W 21112167 replications api @W 21112167 replications api Feb 26, 2026
@charithaT07 charithaT07 changed the title @W 21112167 replications api @W-21112167 replications api Feb 26, 2026
@charithaT07 charithaT07 changed the title @W-21112167 replications api @W-21112167 adding replications api Feb 26, 2026
@charithaT07 charithaT07 marked this pull request as ready for review March 6, 2026 12:31
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.

1 participant