123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485 |
- type CategoryCreatedEvent implements Event @entity {
- ### GENERIC DATA ###
- "(network}-{blockNumber}-{indexInBlock}"
- id: ID!
- "Hash of the extrinsic which caused the event to be emitted"
- inExtrinsic: String
- "Blocknumber of the block in which the event was emitted."
- inBlock: Int!
- "Network the block was produced in"
- network: Network!
- "Index of event in block from which it was emitted."
- indexInBlock: Int!
- ### SPECIFIC DATA ###
- "The created category"
- category: ForumCategory!
- # The actor is always lead
- }
- type CategoryArchivalStatusUpdatedEvent implements Event @entity {
- ### GENERIC DATA ###
- "(network}-{blockNumber}-{indexInBlock}"
- id: ID!
- "Hash of the extrinsic which caused the event to be emitted"
- inExtrinsic: String
- "Blocknumber of the block in which the event was emitted."
- inBlock: Int!
- "Network the block was produced in"
- network: Network!
- "Index of event in block from which it was emitted."
- indexInBlock: Int!
- ### SPECIFIC DATA ###
- "The category beeing updated"
- category: ForumCategory!
- "The new archival status of the category (true = archived)"
- newArchivalStatus: Boolean!
- "The moderator (possibly lead) responsible for updating the category"
- actor: Worker!
- }
- type CategoryDeletedEvent implements Event @entity {
- ### GENERIC DATA ###
- "(network}-{blockNumber}-{indexInBlock}"
- id: ID!
- "Hash of the extrinsic which caused the event to be emitted"
- inExtrinsic: String
- "Blocknumber of the block in which the event was emitted."
- inBlock: Int!
- "Network the block was produced in"
- network: Network!
- "Index of event in block from which it was emitted."
- indexInBlock: Int!
- ### SPECIFIC DATA ###
- "Category beeing deleted"
- category: ForumCategory!
- "The moderator (possibly lead) responsible for deleting the category"
- actor: Worker!
- }
- type ThreadCreatedEvent implements Event @entity {
- ### GENERIC DATA ###
- "(network}-{blockNumber}-{indexInBlock}"
- id: ID!
- "Hash of the extrinsic which caused the event to be emitted"
- inExtrinsic: String
- "Blocknumber of the block in which the event was emitted."
- inBlock: Int!
- "Network the block was produced in"
- network: Network!
- "Index of event in block from which it was emitted."
- indexInBlock: Int!
- ### SPECIFIC DATA ###
- "The thread that was created"
- thread: ForumThread!
- "Thread's original title"
- title: String!
- "Thread's original text"
- text: String!
- # The author is already part of the Thread entity itself and is immutable
- }
- type ThreadModeratedEvent implements Event @entity {
- ### GENERIC DATA ###
- "(network}-{blockNumber}-{indexInBlock}"
- id: ID!
- "Hash of the extrinsic which caused the event to be emitted"
- inExtrinsic: String
- "Blocknumber of the block in which the event was emitted."
- inBlock: Int!
- "Network the block was produced in"
- network: Network!
- "Index of event in block from which it was emitted."
- indexInBlock: Int!
- ### SPECIFIC DATA ###
- "The thread beeing moderated"
- thread: ForumThread!
- "Rationale behind the moderation"
- rationale: String!
- "Actor responsible for the moderation"
- actor: Worker!
- }
- type ThreadMetadataUpdatedEvent implements Event @entity {
- ### GENERIC DATA ###
- "(network}-{blockNumber}-{indexInBlock}"
- id: ID!
- "Hash of the extrinsic which caused the event to be emitted"
- inExtrinsic: String
- "Blocknumber of the block in which the event was emitted."
- inBlock: Int!
- "Network the block was produced in"
- network: Network!
- "Index of event in block from which it was emitted."
- indexInBlock: Int!
- ### SPECIFIC DATA ###
- "The thread beeing updated"
- thread: ForumThread!
- "New title of the thread"
- newTitle: String
- # Only author can update the thread title, so no actor information required
- }
- type ThreadDeletedEvent implements Event @entity {
- ### GENERIC DATA ###
- "(network}-{blockNumber}-{indexInBlock}"
- id: ID!
- "Hash of the extrinsic which caused the event to be emitted"
- inExtrinsic: String
- "Blocknumber of the block in which the event was emitted."
- inBlock: Int!
- "Network the block was produced in"
- network: Network!
- "Index of event in block from which it was emitted."
- indexInBlock: Int!
- ### SPECIFIC DATA ###
- "The thread beeing deleted"
- thread: ForumThread!
- # Only author can delete the thread, so no actor information required
- }
- type ThreadMovedEvent implements Event @entity {
- ### GENERIC DATA ###
- "(network}-{blockNumber}-{indexInBlock}"
- id: ID!
- "Hash of the extrinsic which caused the event to be emitted"
- inExtrinsic: String
- "Blocknumber of the block in which the event was emitted."
- inBlock: Int!
- "Network the block was produced in"
- network: Network!
- "Index of event in block from which it was emitted."
- indexInBlock: Int!
- ### SPECIFIC DATA ###
- "The thread beeing moved"
- thread: ForumThread!
- "Thread's previous category"
- oldCategory: ForumCategory!
- "Thread's new category"
- newCategory: ForumCategory!
- "The actor performing the transfer"
- actor: Worker!
- }
- type PostAddedEvent implements Event @entity {
- ### GENERIC DATA ###
- "(network}-{blockNumber}-{indexInBlock}"
- id: ID!
- "Hash of the extrinsic which caused the event to be emitted"
- inExtrinsic: String
- "Blocknumber of the block in which the event was emitted."
- inBlock: Int!
- "Network the block was produced in"
- network: Network!
- "Index of event in block from which it was emitted."
- indexInBlock: Int!
- ### SPECIFIC DATA ###
- "The post that was added"
- post: ForumPost!
- "Whether the added post is editable"
- isEditable: Boolean
- "Post's original text"
- text: String!
- }
- type PostModeratedEvent implements Event @entity {
- ### GENERIC DATA ###
- "(network}-{blockNumber}-{indexInBlock}"
- id: ID!
- "Hash of the extrinsic which caused the event to be emitted"
- inExtrinsic: String
- "Blocknumber of the block in which the event was emitted."
- inBlock: Int!
- "Network the block was produced in"
- network: Network!
- "Index of event in block from which it was emitted."
- indexInBlock: Int!
- ### SPECIFIC DATA ###
- "The post beeing moderated"
- post: ForumPost!
- "The rationale behind the moderation"
- rationale: String!
- "The actor responsible for the moderation"
- actor: Worker!
- }
- type PostDeletedEvent implements Event @entity {
- ### GENERIC DATA ###
- "(network}-{blockNumber}-{indexInBlock}"
- id: ID!
- "Hash of the extrinsic which caused the event to be emitted"
- inExtrinsic: String
- "Blocknumber of the block in which the event was emitted."
- inBlock: Int!
- "Network the block was produced in"
- network: Network!
- "Index of event in block from which it was emitted."
- indexInBlock: Int!
- ### SPECIFIC DATA ###
- "List of deleted posts"
- posts: [ForumPost!] @derivedFrom(field: "deletedInEvent")
- "The actor responsible for the removal"
- actor: Membership!
- "Posts deletion rationale"
- rationale: String!
- }
- type PostTextUpdatedEvent implements Event @entity {
- ### GENERIC DATA ###
- "(network}-{blockNumber}-{indexInBlock}"
- id: ID!
- "Hash of the extrinsic which caused the event to be emitted"
- inExtrinsic: String
- "Blocknumber of the block in which the event was emitted."
- inBlock: Int!
- "Network the block was produced in"
- network: Network!
- "Index of event in block from which it was emitted."
- indexInBlock: Int!
- ### SPECIFIC DATA ###
- "The post beeing updated"
- post: ForumPost!
- "New post text"
- newText: String!
- # Only author can edit the post, so no actor context required
- }
- type PostReactionResultCancel @variant {
- _phantom: Int
- }
- type PostReactionResultValid @variant {
- reaction: PostReaction!
- reactionId: Int!
- }
- type PostReactionResultInvalid @variant {
- reactionId: String!
- }
- union PostReactionResult = PostReactionResultCancel | PostReactionResultValid | PostReactionResultInvalid
- type PostReactedEvent implements Event @entity {
- ### GENERIC DATA ###
- "(network}-{blockNumber}-{indexInBlock}"
- id: ID!
- "Hash of the extrinsic which caused the event to be emitted"
- inExtrinsic: String
- "Blocknumber of the block in which the event was emitted."
- inBlock: Int!
- "Network the block was produced in"
- network: Network!
- "Index of event in block from which it was emitted."
- indexInBlock: Int!
- ### SPECIFIC DATA ###
- "The post beeing reacted to"
- post: ForumPost!
- "The reaction result - new valid reaction, cancelation of previous reaction or invalid reaction (which also cancels the previous one)"
- reactionResult: PostReactionResult!
- "The member reacting to the post"
- reactingMember: Membership!
- }
- type VoteOnPollEvent implements Event @entity {
- ### GENERIC DATA ###
- "(network}-{blockNumber}-{indexInBlock}"
- id: ID!
- "Hash of the extrinsic which caused the event to be emitted"
- inExtrinsic: String
- "Blocknumber of the block in which the event was emitted."
- inBlock: Int!
- "Network the block was produced in"
- network: Network!
- "Index of event in block from which it was emitted."
- indexInBlock: Int!
- ### SPECIFIC DATA ###
- "Poll alternative beeing voted on"
- pollAlternative: ForumPollAlternative!
- "The member that casted the vote"
- votingMember: Membership!
- }
- type CategoryStickyThreadUpdateEvent implements Event @entity {
- ### GENERIC DATA ###
- "(network}-{blockNumber}-{indexInBlock}"
- id: ID!
- "Hash of the extrinsic which caused the event to be emitted"
- inExtrinsic: String
- "Blocknumber of the block in which the event was emitted."
- inBlock: Int!
- "Network the block was produced in"
- network: Network!
- "Index of event in block from which it was emitted."
- indexInBlock: Int!
- ### SPECIFIC DATA ###
- "The related category"
- category: ForumCategory!
- "List of the threads beeing made sticky"
- newStickyThreads: [ForumThread!]
- "The actor responsible for making the threads sticky"
- actor: Worker!
- }
- type CategoryMembershipOfModeratorUpdatedEvent implements Event @entity {
- ### GENERIC DATA ###
- "(network}-{blockNumber}-{indexInBlock}"
- id: ID!
- "Hash of the extrinsic which caused the event to be emitted"
- inExtrinsic: String
- "Blocknumber of the block in which the event was emitted."
- inBlock: Int!
- "Network the block was produced in"
- network: Network!
- "Index of event in block from which it was emitted."
- indexInBlock: Int!
- ### SPECIFIC DATA ###
- "The moderator in question"
- moderator: Worker!
- "The category in question"
- category: ForumCategory!
- "The flag indicating whether the permissions to moderate the category are granted or revoked"
- newCanModerateValue: Boolean!
- # Actor is always lead
- }
|