...
Code Block | ||
---|---|---|
| ||
query getSanityOffers {
LoyaltyOffersUI(id: "feature-loyalty-offers-ui-singleton") {
# Available for all users.
# You can use these to lookup assets from global.
sortedSystemwideOffers {
_id
loyaltyEngineId
name {
enRaw
}
rules {
# Returns the value of the AuthenticationRequired rule
... on RequiresAuthentication {
requiresAuthentication
}
# Add more rules as needed here (e.g. FirstOrderOnly, LoyaltyBetweenDates, etc)
}
}
# These are config. offers (templates).
# You should use these only to display content (images, names, etc).
# You can use these to lookup assets from the actual Personalized offers.
liveConfigOffers {
_id
loyaltyEngineId
name {
enRaw
}
}
}
}
|
...