-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
π Add new indexer documents for Lens v3: v4 (#indexer-codegen)
Summary: Added new GraphQL documents for handling notifications, account management, and transaction queries. Highlights: β’ Introduced fragments for various notification types like `CommentNotificationFields` and `FollowNotificationFields`. β’ Added mutations for account management, including `AddAccountManager` and `RemoveAccountManager`. β’ Implemented queries for notifications and transaction status, such as `Notifications` and `TransactionStatus`. Read more: https://pierre.co/hey/hey/indexer-codegen
- Loading branch information
Yoginth
authored and
Pierre
committed
Nov 26, 2024
1 parent
1113c34
commit f1e1692
Showing
39 changed files
with
759 additions
and
193 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
fragment RepostFields on Repost { | ||
repostOf { | ||
...PostFields | ||
} | ||
} |
6 changes: 6 additions & 0 deletions
6
packages/indexer/documents/fragments/notifications/CommentNotificationFields.graphql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
fragment CommentNotificationFields on CommentNotification { | ||
id | ||
comment { | ||
...PostFields | ||
} | ||
} |
8 changes: 8 additions & 0 deletions
8
packages/indexer/documents/fragments/notifications/FollowNotificationFields.graphql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
fragment FollowNotificationFields on FollowNotification { | ||
id | ||
followers { | ||
account { | ||
...AccountFields | ||
} | ||
} | ||
} |
6 changes: 6 additions & 0 deletions
6
packages/indexer/documents/fragments/notifications/MentionNotificationFields.graphql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
fragment MentionNotificationFields on MentionNotification { | ||
id | ||
post { | ||
...PostFields | ||
} | ||
} |
6 changes: 6 additions & 0 deletions
6
packages/indexer/documents/fragments/notifications/QuoteNotificationFields.graphql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
fragment QuoteNotificationFields on QuoteNotification { | ||
id | ||
quote { | ||
...PostFields | ||
} | ||
} |
11 changes: 11 additions & 0 deletions
11
packages/indexer/documents/fragments/notifications/ReactionNotificationFields.graphql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
fragment ReactionNotificationFields on ReactionNotification { | ||
id | ||
post { | ||
...PostFields | ||
} | ||
reactions { | ||
account { | ||
...AccountFields | ||
} | ||
} | ||
} |
12 changes: 12 additions & 0 deletions
12
packages/indexer/documents/fragments/notifications/RepostNotificationFields.graphql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
fragment RepostNotificationFields on RepostNotification { | ||
id | ||
post { | ||
...PostFields | ||
} | ||
reposts { | ||
account { | ||
...AccountFields | ||
} | ||
repostedAt | ||
} | ||
} |
13 changes: 13 additions & 0 deletions
13
packages/indexer/documents/mutations/account/AddAccountManager.graphql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
mutation AddAccountManager($request: AddAccountManagerRequest!) { | ||
addAccountManager(request: $request) { | ||
... on SelfFundedTransactionRequest { | ||
selfFundedReason: reason | ||
} | ||
... on SponsoredTransactionRequest { | ||
sponsoredReason: reason | ||
} | ||
... on TransactionWillFail { | ||
transactionFailReason: reason | ||
} | ||
} | ||
} |
13 changes: 13 additions & 0 deletions
13
packages/indexer/documents/mutations/account/RemoveAccountManager.graphql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
mutation RemoveAccountManager($request: RemoveAccountManagerRequest!) { | ||
removeAccountManager(request: $request) { | ||
... on SelfFundedTransactionRequest { | ||
selfFundedReason: reason | ||
} | ||
... on SponsoredTransactionRequest { | ||
sponsoredReason: reason | ||
} | ||
... on TransactionWillFail { | ||
transactionFailReason: reason | ||
} | ||
} | ||
} |
16 changes: 16 additions & 0 deletions
16
packages/indexer/documents/mutations/account/SetAccountMetadata.graphql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
mutation SetAccountMetadata($request: SetAccountMetadataRequest!) { | ||
setAccountMetadata(request: $request) { | ||
... on SetAccountMetadataResponse { | ||
hash | ||
} | ||
... on SponsoredTransactionRequest { | ||
sponsoredReason: reason | ||
} | ||
... on SelfFundedTransactionRequest { | ||
selfFundedReason: reason | ||
} | ||
... on TransactionWillFail { | ||
transactionFailReason: reason | ||
} | ||
} | ||
} |
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
query PostReactions($request: PostReactionsRequest!) { | ||
postReactions(request: $request) { | ||
items { | ||
account { | ||
...AccountFields | ||
} | ||
} | ||
} | ||
} |
16 changes: 16 additions & 0 deletions
16
packages/indexer/documents/queries/TransactionStatus.graphql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
query TransactionStatus($request: TransactionStatusRequest!) { | ||
transactionStatus(request: $request) { | ||
... on FinishedTransactionStatus { | ||
blockTimestamp | ||
} | ||
... on PendingTransactionStatus { | ||
blockTimestamp | ||
} | ||
... on NotIndexedYetStatus { | ||
reason | ||
} | ||
... on FailedTransactionStatus { | ||
reason | ||
} | ||
} | ||
} |
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
24 changes: 24 additions & 0 deletions
24
packages/indexer/documents/queries/account/Notifications.graphql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
query Notifications($request: NotificationRequest!) { | ||
notifications(request: $request) { | ||
items { | ||
... on CommentNotification { | ||
...CommentNotificationFields | ||
} | ||
... on FollowNotification { | ||
...FollowNotificationFields | ||
} | ||
... on MentionNotification { | ||
...MentionNotificationFields | ||
} | ||
... on QuoteNotification { | ||
...QuoteNotificationFields | ||
} | ||
... on ReactionNotification { | ||
...ReactionNotificationFields | ||
} | ||
... on RepostNotification { | ||
...RepostNotificationFields | ||
} | ||
} | ||
} | ||
} |
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
12 changes: 12 additions & 0 deletions
12
packages/indexer/documents/queries/post/PostBookmarks.graphql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
query PostBookmarks($request: PostBookmarksRequest!) { | ||
postBookmarks(request: $request) { | ||
items { | ||
... on Post { | ||
...PostFields | ||
} | ||
... on Repost { | ||
...RepostFields | ||
} | ||
} | ||
} | ||
} |
9 changes: 9 additions & 0 deletions
9
packages/indexer/documents/queries/post/PostReactions.graphql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
query PostReactions($request: PostReactionsRequest!) { | ||
postReactions(request: $request) { | ||
items { | ||
account { | ||
...AccountFields | ||
} | ||
} | ||
} | ||
} |
12 changes: 12 additions & 0 deletions
12
packages/indexer/documents/queries/post/PostReferences.graphql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
query PostReferences($request: PostReferencesRequest!) { | ||
postReferences(request: $request) { | ||
items { | ||
... on Post { | ||
...PostFields | ||
} | ||
... on Repost { | ||
...RepostFields | ||
} | ||
} | ||
} | ||
} |
File renamed without changes.
File renamed without changes.
File renamed without changes.
Oops, something went wrong.
f1e1692
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Successfully deployed to the following URLs:
web β ./
web-heyxyz.vercel.app
web-git-main-heyxyz.vercel.app
heyxyz.vercel.app
hey.xyz