29 June 2023
B2BAudit LogProduct catalogQuotesProject configurationGraphQL
We have extended the capabilities of Audit Log to track changes to Business Units. In addition, we introduced new Change Types for Stores, Product Selections, and Quotes.
To help you filter Records, we've added the
resourceKey query parameter to the Query Records endpoint. This allows you to filter Records by key for three specific resource types: business-units, products, and stores.Changes:
- [API] Added the following Change Types:
- Business Units: AddAssociateChange, ChangeAssociateChange, ChangeAssociateModeChange, ChangeParentUnitChange, ChangeStatusChange, RemoveAssociateChange, SetAddressCustomFieldChange, SetAddressCustomTypeChange, SetContactEmailChange, SetStoreModeChange.
- Stores: AddProductSelectionChange, ChangeProductSelectionActiveChange, RemoveProductSelectionChange.
- Product Selections: AddProductChange, SetVariantSelectionChange.
- Quotes: RequestQuoteRenegotiationChange.
- [API] Added Label
BusinessUnitLabel. - [API] Added query parameter
resourceKeyto the Query Records endpoint. - [API] Added
keyfield toresourceproperty of Record. - [API] Added
business-unitto ChangeHistoryResourceType enum. - [GraphQL API] Added the following types to the GraphQL schema:
BusinessUnitChangeInput,ResourceIdentifier,BusinessUnitLabel. - [GraphQL API] Changed the
ResourceTypestype:- Added
BusinessUnitto the enumResourceTypes.
- Added
- [GraphQL API] Changed the Query type:
- Added the
businessUnitsfield to the Query type. - Added the
businessUnitfield to the Query type. - Added the
resourceKeyproperty to theproductsfield. - Added the
resourceKeyproperty to thestoresfield.
- Added the
- [GraphQL API] Changed the
ChangeHistorytype:- Added
keyfield toresourceproperty ofChangeHistory.
- Added
The following change was introduced in terms of GraphQL SDL:
enum BusinessUnitChangeInput {
addAddress
addAssociate
addBillingAddressId
addShippingAddressId
changeAddress
changeAssociate
changeAssociateMode
changeName
changeParentUnit
changeStatus
removeAddress
removeAssociate
removeBillingAddressId
removeShippingAddressId
setAddressCustomField
setAddressCustomType
setContactEmail
setCustomField
setCustomType
setDefaultBillingAddress
setDefaultShippingAddress
setStoreMode
setStores
}
type ResourceIdentifier {
id: String
typeId: String!
key: String
}
type BusinessUnitLabel {
key: String!
name: String!
}
extend enum ResourceTypes {
BusinessUnit
}
extend enum QuoteChangeInput {
requestQuoteRenegotiation
}
extend enum ProductSelectionChangeInput {
setVariantSelection
}
extend enum StoreChangeInput {
addProductSelection
changeProductSelectionActive
removeProductSelection
}
extend type Query {
businessUnits(
date: DateRange
limit: Int
offset: Int
source: Source
type: Type
clientId: String
userId: String
customerId: String
changes: [BusinessUnitChangeInput!]
expand: Boolean
stores: [String!]
resourceKey: String
): ChangeHistoryQueryResults!
businessUnit(
id: String!
date: DateRange
limit: Int
offset: Int
source: Source
type: Type
clientId: String
userId: String
customerId: String
changes: [BusinessUnitChangeInput!]
expand: Boolean
stores: [String!]
): ChangeHistoryQueryResults!
products(
resourceKey: String
): ChangeHistoryQueryResults!
stores(
resourceKey: String
): ChangeHistoryQueryResults!
}