alert.graphql 2.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. # An alert message that appears in the Shopify admin about a problem with a store resource, with 1 or more actions to take.
  2. # For example, you could use an alert to indicate that you're not charging taxes on some product variants.
  3. # They can optionally have a specific icon and be dismissed by merchants.
  4. type ResourceAlert {
  5. # Buttons in the alert that link to related information.
  6. # For example, Edit variants.
  7. actions: [ResourceAlertAction!]!
  8. # The secondary text in the alert that includes further information or instructions about how to solve a problem.
  9. content: HTML!
  10. # Unique identifier that appears when an alert is manually closed by the merchant.
  11. # Most alerts cannot be manually closed.
  12. dismissibleHandle: String
  13. # An icon that is optionally displayed with the alert.
  14. icon: ResourceAlertIcon
  15. # Indication of how important the alert is.
  16. severity: ResourceAlertSeverity!
  17. # The primary text in the alert that includes information or describes the problem.
  18. title: String!
  19. }
  20. # An action associated to a resource alert, such as editing variants.
  21. type ResourceAlertAction {
  22. # Whether the action appears as a button or as a link.
  23. primary: Boolean!
  24. # Resource for the action to show.
  25. show: String
  26. # The text for the button in the alert. For example, Edit variants.
  27. title: String!
  28. # The target URL that the button links to.
  29. url: URL!
  30. }
  31. # An alert message that appears in the Shopify admin about a problem with a store setting, with an action to take.
  32. # For example, you could show an alert to ask the merchant to enter their billing information to activate Shopify Plus.
  33. type ShopAlert {
  34. # The text for the button in the alert that links to related information. For example, Add credit card.
  35. action: ShopAlertAction!
  36. # A description of the alert and further information, such as whether the merchant will be charged.
  37. description: String!
  38. }
  39. # An action associated to a shop alert, such as adding a credit card.
  40. type ShopAlertAction {
  41. # The text for the button in the alert. For example, Add credit card.
  42. title: String!
  43. # The target URL that the button links to.
  44. url: URL!
  45. }