All Release Notes
Audit Log now tracks changes on Business Units
29 June 2023
Composable Commerce
HTTP API
Enhancement
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 {addAddressaddAssociateaddBillingAddressIdaddShippingAddressIdchangeAddresschangeAssociatechangeAssociateModechangeNamechangeParentUnitchangeStatusremoveAddressremoveAssociateremoveBillingAddressIdremoveShippingAddressIdsetAddressCustomFieldsetAddressCustomTypesetContactEmailsetCustomFieldsetCustomTypesetDefaultBillingAddresssetDefaultShippingAddresssetStoreModesetStores}type ResourceIdentifier {id: StringtypeId: String!key: String}type BusinessUnitLabel {key: String!name: String!}extend enum ResourceTypes {BusinessUnit}extend enum QuoteChangeInput {requestQuoteRenegotiation}extend enum ProductSelectionChangeInput {setVariantSelection}extend enum StoreChangeInput {addProductSelectionchangeProductSelectionActiveremoveProductSelection}extend type Query {businessUnits(date: DateRangelimit: Intoffset: Intsource: Sourcetype: TypeclientId: StringuserId: StringcustomerId: Stringchanges: [BusinessUnitChangeInput!]expand: Booleanstores: [String!]resourceKey: String): ChangeHistoryQueryResults!businessUnit(id: String!date: DateRangelimit: Intoffset: Intsource: Sourcetype: TypeclientId: StringuserId: StringcustomerId: Stringchanges: [BusinessUnitChangeInput!]expand: Booleanstores: [String!]): ChangeHistoryQueryResults!products(resourceKey: String): ChangeHistoryQueryResults!stores(resourceKey: String): ChangeHistoryQueryResults!}