# Basic events chronicle resource activities such as the creation of an article, the fulfillment of an order, or
# the addition of a product.
type BasicEvent implements Event&Node {
    # The name of the app that created the event.
    appTitle: String

    # Whether the event was created by an app.
    attributeToApp: Boolean!

    # Whether the event was caused by an admin user.
    attributeToUser: Boolean!

    # The date and time when the event was created.
    createdAt: DateTime!

    # Whether the event is critical.
    criticalAlert: Boolean!

    # A globally-unique identifier.
    id: ID!

    # Human readable text that describes the event.
    message: FormattedString!
}

# An auto-generated type for paginating through multiple Events.
type EventConnection {
    # A list of edges.
    edges: [EventEdge!]!

    # A list of the nodes contained in EventEdge.
    nodes: [Event!]!

    # Information to aid in pagination.
    pageInfo: PageInfo!
}

# An auto-generated type which holds one Event and a cursor during pagination.
type EventEdge {
    # A cursor for use in pagination.
    cursor: String!

    # The item at the end of EventEdge.
    node: Event!
}
