comment.graphql 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  1. # Comment events are generated by staff members of a shop.
  2. # They are created when a staff member adds a comment to the timeline of an order, draft order, customer, or transfer.
  3. type CommentEvent implements Event&Node {
  4. # The name of the app that created the event.
  5. appTitle: String
  6. # The attachments associated with the comment event.
  7. attachments: [CommentEventAttachment!]!
  8. # Whether the event was created by an app.
  9. attributeToApp: Boolean!
  10. # Whether the event was caused by an admin user.
  11. attributeToUser: Boolean!
  12. # The name of the user that authored the comment event.
  13. author: StaffMember!
  14. # Whether the comment event can be deleted. If true, then the comment event can be deleted.
  15. canDelete: Boolean!
  16. # Whether the comment event can be edited. If true, then the comment event can be edited.
  17. canEdit: Boolean!
  18. # The date and time when the event was created.
  19. createdAt: DateTime!
  20. # Whether the event is critical.
  21. criticalAlert: Boolean!
  22. # Whether the comment event has been edited. If true, then the comment event has been edited.
  23. edited: Boolean!
  24. # The object reference associated with the comment event. For example, a product or discount).
  25. embed: CommentEventEmbed
  26. # A globally-unique identifier.
  27. id: ID!
  28. # Human readable text that describes the event.
  29. message: FormattedString!
  30. # The raw body of the comment event.
  31. rawMessage: String!
  32. # The parent subject to which the comment event belongs.
  33. subject: CommentEventSubject!
  34. }
  35. # A file attachment associated to a comment event.
  36. type CommentEventAttachment {
  37. # The file extension of the comment event attachment, indicating the file format.
  38. fileExtension: String
  39. # A globally-unique identifier.
  40. id: ID!
  41. # The image attached to the comment event.
  42. image: Image
  43. # The filename of the comment event attachment.
  44. name: String!
  45. # The size of the attachment.
  46. size: Int!
  47. # The URL of the attachment.
  48. url: URL!
  49. }