All Release Notes
Audit Log now tracks changes on Associate Roles
18 July 2023
Composable Commerce
HTTP API
Enhancement
Deprecation
B2BAudit LogGraphQL
We have extended the capabilities of Audit Log to track changes to Associate Roles. In addition, we introduced new Change Types for Business Units.
To ensure a consistent experience when working with different Change Types across the Change History API, we are adjusting the implementation of SetNameChange and introducing SetLocalizedNameChange.
From 18 October 2023:
SetNameChangefieldspreviousValueandnextValuewill change to typeString.- The following update actions will trigger
SetLocalizedNameChangeinstead ofSetNameChange:- Set Name on Discount Codes.
- Set State Name on States.
- Set Name on Stores.
Changes:
- [API] Added the following Change Types:
- Associate Roles: ChangeBuyerAssignableChange, SetPermissionsChange.
- Business Units: AddInheritedAssociateChange, ChangeInheritedAssociateChange, RemoveInheritedAssociateChange.
- [API] Added Label
AssociateRoleLabel. - [API] Added
associate-roleto ChangeHistoryResourceType enum. - [GraphQL API] Added the following types to the GraphQL schema:
AssociateRoleChangeInput,AssociateRoleLabel.
- [GraphQL API] Changed the
ResourceTypestype:- Added
AssociateRoleto the enumResourceTypes.
- Added
- [GraphQL API] Changed the
BusinessUnitChangeInputtype:- Added
addInheritedAssociate,changeInheritedAssociate,removeInheritedAssociateto the enumBusinessUnitChangeInput.
- Added
- [GraphQL API] Changed the Query type:
- Added
associateRolesandassociateRolefields to the Query type.
- Added
The following change was introduced in terms of GraphQL SDL:
enum AssociateRoleChangeInput {changeBuyerAssignablesetCustomFieldsetCustomTypesetNamesetPermissions}type AssociateRoleLabel {key: String!name: String}extend enum ResourceTypes {AssociateRole}extend enum BusinessUnitChangeInput {addInheritedAssociatechangeInheritedAssociateremoveInheritedAssociate}extend type Query {associateRoles(date: DateRangelimit: Intoffset: Intsource: Sourcetype: TypeclientId: StringuserId: StringcustomerId: Stringchanges: [AssociateRoleChangeInput!]expand: Booleanstores: [String!]resourceKey: String): ChangeHistoryQueryResults!associateRole(id: String!date: DateRangelimit: Intoffset: Intsource: Sourcetype: TypeclientId: StringuserId: StringcustomerId: Stringchanges: [AssociateRoleChangeInput!]expand: Booleanstores: [String!]): ChangeHistoryQueryResults!}