9 August 2024
Messages/SubscriptionsOrdersGraphQL
You can now subscribe to Messages for changes to Custom Fields and Types on Order Deliveries.
Changes:
- [API] Added the following Messages: DeliveryCustomFieldAdded, DeliveryCustomFieldChanged, DeliveryCustomFieldRemoved, DeliveryCustomTypeSet, and DeliveryCustomTypeRemoved.
- [GraphQL API] Added the following types to the GraphQL schema:
DeliveryCustomFieldAdded
,DeliveryCustomFieldChanged
,DeliveryCustomFieldRemoved
,DeliveryCustomTypeSet
, andDeliveryCustomTypeRemoved
.
The following changes were introduced in terms of GraphQL SDL:
type DeliveryCustomFieldAdded implements OrderMessagePayload {
deliveryId: String!
name: String!
value: Json!
type: String!
}
type DeliveryCustomFieldChanged implements OrderMessagePayload {
deliveryId: String!
name: String!
value: Json!
type: String!
previousValue: Json
}
type DeliveryCustomFieldRemoved implements OrderMessagePayload {
deliveryId: String!
name: String!
type: String!
}
type DeliveryCustomTypeSet implements OrderMessagePayload {
deliveryId: String!
customFields: CustomFieldsType!
previousTypeId: String
type: String!
}
type DeliveryCustomTypeRemoved implements OrderMessagePayload {
deliveryId: String!
previousTypeId: String
type: String!
}