Skip to content

feat: add support for my business unit by key#332

Merged
jsm1t merged 5 commits intolabd:mainfrom
jsm1t:feat/get-my-business-unit-by-key
Sep 17, 2025
Merged

feat: add support for my business unit by key#332
jsm1t merged 5 commits intolabd:mainfrom
jsm1t:feat/get-my-business-unit-by-key

Conversation

@jsm1t
Copy link
Collaborator

@jsm1t jsm1t commented Sep 8, 2025

No description provided.

@changeset-bot
Copy link

changeset-bot bot commented Sep 8, 2025

🦋 Changeset detected

Latest commit: b4407ab

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
@labdigital/commercetools-mock Minor

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@jsm1t jsm1t requested a review from Copilot September 8, 2025 19:12
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR adds support for accessing business units by key in the MyBusinessUnit service, complementing the existing ID-based access pattern. The implementation follows the established pattern of the codebase by adding key-based endpoints alongside existing ID-based ones.

Key changes:

  • Added three new route handlers for key-based operations: GET, DELETE, and POST
  • Added comprehensive test coverage for all new key-based endpoints
  • Added proper cleanup in test suite with afterEach hook

Reviewed Changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 3 comments.

File Description
src/services/my-business-unit.ts Added three new route definitions for key-based business unit operations
src/services/my-business-unit.test.ts Added test coverage for key-based endpoints and improved test isolation
.changeset/early-geese-sniff.md Added changeset file documenting the new feature

@jsm1t jsm1t merged commit 71ecce0 into labd:main Sep 17, 2025
9 checks passed
@github-actions github-actions bot mentioned this pull request Sep 17, 2025
demeyerthom pushed a commit that referenced this pull request Sep 17, 2025
This PR was opened by the [Changesets
release](https://github.com/changesets/action) GitHub action. When
you're ready to do a release, you can merge this and the packages will
be published to npm automatically. If you're not ready to do a release
yet, that's fine, whenever you add more changesets to main, this PR will
be updated.


# Releases
## @labdigital/commercetools-mock@2.57.0

### Minor Changes

- [#332](#332)
[`71ecce0`](71ecce0)
Thanks [@jsm1t](https://github.com/jsm1t)! - Add support for get my
business unit by key

- [#333](#333)
[`7948f69`](7948f69)
Thanks [@demeyerthom](https://github.com/demeyerthom)! - Added
additional features to project endpoints, updated project starting
defaults to align with commercetools

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
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