12 July 2022
Audit LogProduct catalogGraphQL
We have extended the capabilities of Audit Log to include the tracking of changes made on Product Selections.
With this enhancement, all Changes performed on Product Selections are tracked from now on and these Changes are now retrievable via API.
Changes:
- [API] Added the 
view_product_selections:{projectKey}scope. - [API] Added 
product-selectionto ChangeHistoryResourceType. - [API] Added AddProductChange.
 - [API] Added RemoveProductChange.
 - [API] Added SetProductCountChange.
 - [GraphQL API] Added the following types to the graphQL schema: 
ProductSelectionChangeInput. - [GraphQL API] Added queries 
productSelectionandproductSelections. - [GraphQL API] Added 
ProductSelectionto the ResourceType enum. 
Additional changes:
- [API] Added SetAuthenticationModeChange for 
customers. - [API] Added SetLineItemDeactivatedAtChange for 
shopping-lists. - [API] Added SetLineItemProductKeyChange for 
orders. - [API] Added SetProductSelectionsChange for 
stores. - [GraphQL API] Added SetAuthenticationModeChange to 
CustomerChangeInput - [GraphQL API] Added SetLineItemDeactivatedAtChange for 
ShoppingListChangeInput - [GraphQL API] Added SetLineItemProductKeyChange for 
OrderChangeInput - [GraphQL API] Added SetProductSelectionsChange for 
StoreChangeInput 
The following change was introduced in terms of GraphQL SDL:
  productSelections(
    date: DateRange
    limit: Int
    offset: Int
    source: Source
    type: Type
    clientId: String
    userId: String
    customerId: String
    changes: [ProductSelectionChangeInput!]
    expand: Boolean
    stores: [String!]
  ): ChangeHistoryQueryResults!
    @auth(permissions: [view_audit_log, view_product_selections])
  productSelection(
    id: String!
    date: DateRange
    limit: Int
    offset: Int
    source: Source
    type: Type
    clientId: String
    userId: String
    customerId: String
    changes: [ProductSelectionChangeInput!]
    expand: Boolean
    stores: [String!]
  ): ChangeHistoryQueryResults!
    @auth(permissions: [view_audit_log, view_product_selections])
  enum ProductSelectionChangeInput {
    setKey
    changeName
    setCustomType
    setCustomField
    setProductCount
    addProduct
    removeProduct
  }