2 December 2021
Enhancement
SecurityCustomizationGraphQL

We have extended the abilities of Audit Log to include the tracking of changes made against Custom Objects. This enhancement will start tracking new Custom Object Changes made and these Changes will be automatically added into your Audit Log responses.

Changes:

  • [API] Added the view_key_value_documents:{projectKey} scope.
  • [API] Added key-value-document to ChangeHistoryResourceType.
  • [API] Added AddPropertyChange.
  • [API] Added RemovePropertyChange.
  • [API] Added SetPropertyChange.
  • [API] Added SetValueChange.
  • [API] Added CustomObjectLabel.
  • [GraphQL API] Added the following types to the graphQL schema: CustomObjectLabel, CustomObjectChangeInput.
  • [GraphQL API] Added queries customObject and customObjects.
  • [GraphQL API] Added CustomObject to the ResourceType enum.

The following change was introduced in terms of GraphQL SDL:

type CustomObjectLabel {
container: String
key: String
}
customObjects(
date: DateRange
limit: Int
offset: Int
source: Source
type: Type
clientId: String
userId: String
customerId: String
changes: [CustomObjectChangeInput!]
expand: Boolean
): ChangeHistoryQueryResults!
@auth(
permissions: [
view_audit_log
view_products
view_orders
view_customers
view_key_value_documents
]
)
customObject(
id: String!
date: DateRange
limit: Int
offset: Int
source: Source
type: Type
clientId: String
userId: String
customerId: String
changes: [CustomObjectChangeInput!]
expand: Boolean
): ChangeHistoryQueryResults!
@auth(
permissions: [
view_audit_log
view_products
view_orders
view_customers
view_key_value_documents
]
)
enum CustomObjectChangeInput {
addProperty
removeProperty
setProperty
setValue
}