1 September 2023
CustomersMessages/SubscriptionsGraphQL
You can now subscribe to Messages that will be triggered when using Set CustomField, Set Custom Type, Set CustomField in Address, and Set Custom Type in Address actions on Customers.
Changes:
- [API] Added Customer Custom Field Added Message.
- [API] Added Customer Custom Field Changed Message.
- [API] Added Customer Custom Field Removed Message.
- [API] Added Customer Custom Type Set Message.
- [API] Added Customer Custom Type Removed Message.
- [API] Added Customer Address Custom Field Added Message.
- [API] Added Customer Address Custom Field Changed Message.
- [API] Added Customer Address Custom Field Removed Message.
- [API] Added Customer Address Custom Type Set Message.
- [API] Added Customer Address Custom Type Removed Message.
- [GraphQL API] Added the following types to the GraphQL schema:
CustomerCustomFieldAdded
,CustomerCustomFieldChanged
,CustomerCustomFieldRemoved
,CustomerCustomTypeSet
,CustomerCustomTypeRemoved
,CustomerAddressCustomFieldAdded
,CustomerAddressCustomFieldChanged
,CustomerAddressCustomFieldRemoved
,CustomerAddressCustomTypeSet
,CustomerAddressCustomTypeRemoved
.
The following changes were introduced in terms of GraphQL SDL:
type CustomerAddressCustomFieldAdded implements MessagePayload {
name: String!
value: Json!
type: String!
}
type CustomerAddressCustomFieldChanged implements MessagePayload {
name: String!
value: Json!
previousValue: Json
type: String!
}
type CustomerAddressCustomFieldRemoved implements MessagePayload {
name: String!
type: String!
}
type CustomerAddressCustomTypeRemoved implements MessagePayload {
previousTypeId: String
type: String!
}
type CustomerAddressCustomTypeSet implements MessagePayload {
customFields: CustomFieldsType!
previousTypeId: String
type: String!
}
type CustomerCustomFieldAdded implements MessagePayload {
name: String!
value: Json!
type: String!
}
type CustomerCustomFieldChanged implements MessagePayload {
name: String!
value: Json!
previousValue: Json
type: String!
}
type CustomerCustomFieldRemoved implements MessagePayload {
name: String!
type: String!
}
type CustomerCustomTypeRemoved implements MessagePayload {
previousTypeId: String
type: String!
}
type CustomerCustomTypeSet implements MessagePayload {
customFields: CustomFieldsType!
previousTypeId: String
type: String!
}