All Release Notes
Audit Log now tracks changes on Business Units
29 June 2023
Enhancement
B2BSecurityProduct CatalogQuotesStoresGraphQL
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
resourceKey
to the Query Records endpoint. - [API] Added
key
field toresource
property of Record. - [API] Added
business-unit
to ChangeHistoryResourceType enum. - [GraphQL API] Added the following types to the GraphQL schema:
BusinessUnitChangeInput
,ResourceIdentifier
,BusinessUnitLabel
. - [GraphQL API] Changed the
ResourceTypes
type:- Added
BusinessUnit
to the enumResourceTypes
.
- Added
- [GraphQL API] Changed the Query type:
- Added the
businessUnits
field to the Query type. - Added the
businessUnit
field to the Query type. - Added the
resourceKey
property to theproducts
field. - Added the
resourceKey
property to thestores
field.
- Added the
- [GraphQL API] Changed the
ChangeHistory
type:- Added
key
field toresource
property 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!}