Skip to content

feat: adopt standard-user/shopper-roles in custom-api-role-policies#92

Merged
ellanan merged 1 commit into
mainfrom
feat/adopt-standard-roles-in-custom-api-role-policies
May 13, 2026
Merged

feat: adopt standard-user/shopper-roles in custom-api-role-policies#92
ellanan merged 1 commit into
mainfrom
feat/adopt-standard-roles-in-custom-api-role-policies

Conversation

@ellanan
Copy link
Copy Markdown
Collaborator

@ellanan ellanan commented May 12, 2026

Type

  • Feature

    Implements a new feature

Description

  • Removed GetBuiltInRoles and BuiltInRolePolicy. Replace with GetStandardUserRoles + GetStandardShopperRoles. CustomApiRolePolicy now uses standard_user_role / standard_shopper_role on relationships.role.data.type (was built_in_role).
  • GetCustomApiRolePolicies accepts an include: 'role' argument and its return type changes from Promise<Resource<Array>> to Promise, which adds optional included.role inline.

Dependencies

[MT-23086] Adopt new custom-api role policies endpoints

BREAKING CHANGE: removes GetBuiltInRoles and BuiltInRolePolicy. Replace
with GetStandardUserRoles + GetStandardShopperRoles. CustomApiRolePolicy
now uses standard_user_role / standard_shopper_role on
relationships.role.data.type (was built_in_role).
GetCustomApiRolePolicies accepts an `include: 'role'` argument and its
return type changes from Promise<Resource<Array<CustomApiRolePolicy>>>
to Promise<CustomApiRolePoliciesResponse>, which adds optional
`included.role` inline. Runtime shape is compatible, but downstream
typings referencing the old return type will need updating.
@ellanan ellanan force-pushed the feat/adopt-standard-roles-in-custom-api-role-policies branch from e4e38e6 to 0300590 Compare May 13, 2026 13:56
@ellanan ellanan changed the title feat!: adopt standard-user/shopper-roles in custom-api-role-policies feat: adopt standard-user/shopper-roles in custom-api-role-policies May 13, 2026
@github-actions
Copy link
Copy Markdown

Test Results

  1 files  ±0   60 suites  ±0   2s ⏱️ ±0s
367 tests ±0  367 ✅ ±0  0 💤 ±0  0 ❌ ±0 
372 runs  ±0  372 ✅ ±0  0 💤 ±0  0 ❌ ±0 

Results for commit 0300590. ± Comparison against base commit c4dd59c.

@ellanan ellanan merged commit 3a5786c into main May 13, 2026
11 checks passed
@ellanan ellanan deleted the feat/adopt-standard-roles-in-custom-api-role-policies branch May 13, 2026 14:36
@github-actions
Copy link
Copy Markdown

🎉 This PR is included in version 34.0.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants