18 July 2023
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 {
changeBuyerAssignable
setCustomField
setCustomType
setName
setPermissions
}
type AssociateRoleLabel {
key: String!
name: String
}
extend enum ResourceTypes {
AssociateRole
}
extend enum BusinessUnitChangeInput {
addInheritedAssociate
changeInheritedAssociate
removeInheritedAssociate
}
extend type Query {
associateRoles(
date: DateRange
limit: Int
offset: Int
source: Source
type: Type
clientId: String
userId: String
customerId: String
changes: [AssociateRoleChangeInput!]
expand: Boolean
stores: [String!]
resourceKey: String
): ChangeHistoryQueryResults!
associateRole(
id: String!
date: DateRange
limit: Int
offset: Int
source: Source
type: Type
clientId: String
userId: String
customerId: String
changes: [AssociateRoleChangeInput!]
expand: Boolean
stores: [String!]
): ChangeHistoryQueryResults!
}