Skip to content

Commit

Permalink
Add new indexer documents
Browse files Browse the repository at this point in the history
  • Loading branch information
Yoginth committed Nov 26, 2024
1 parent 87566a2 commit 5dc9bdf
Show file tree
Hide file tree
Showing 9 changed files with 79 additions and 0 deletions.
6 changes: 6 additions & 0 deletions packages/indexer/documents/fragments/AppFields.graphql
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
fragment AppFields on App {
metadata {
name
logo
}
}
12 changes: 12 additions & 0 deletions packages/indexer/documents/fragments/PostFields.graphql
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
fragment PostFields on Post {
id
isDeleted
isEdited
stats {
...PostStatsFields
}
author {
...AccountFields
}
timestamp
}
8 changes: 8 additions & 0 deletions packages/indexer/documents/fragments/PostStatsFields.graphql
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
fragment PostStatsFields on PostStats {
bookmarks
collects
comments
quotes
reactions
reposts
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
fragment MetadataAttributeFields on MetadataAttribute {
type
key
value
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
fragment MediaAudioFields on MediaAudio {
artist
audio {
optimized {
uri
}
}
cover {
...EncryptableImageSetFields
}
license
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
fragment MediaFields on AnyMedia {
... on MediaVideo {
...MediaVideoFields
}
... on MediaImage {
...MediaImageFields
}
... on MediaAudio {
...MediaAudioFields
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
fragment MediaImageFields on MediaImage {
image {
...EncryptableImageSetFields
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
fragment MediaVideoFields on MediaVideo {
video {
optimized {
uri
}
}
cover {
...EncryptableImageSetFields
}
license
}
9 changes: 9 additions & 0 deletions packages/indexer/documents/mutations/Authenticate.graphql
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
mutation Aauthenticate($request: SignedAuthChallenge!) {
authenticate(request: $request) {
... on AuthenticationTokens {
accessToken
refreshToken
idToken
}
}
}

1 comment on commit 5dc9bdf

@vercel
Copy link

@vercel vercel bot commented on 5dc9bdf Nov 26, 2024

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
hey.xyz
heyxyz.vercel.app
web-git-main-heyxyz.vercel.app

Please sign in to comment.