Type aliases
Activity
Activity
: { account
: string; agg_count
: number; aggregated
: boolean; block_number
: string; comment_id
?: string; date
: string; event
: EventsName; event_index
: number; following_id
?: string; post_id
?: string; space_id
?: string }
Type declaration
-
account: string
-
agg_count: number
-
aggregated: boolean
-
block_number: string
-
Optional comment_id?: string
-
date: string
-
-
event_index: number
-
Optional following_id?: string
-
Optional post_id?: string
-
Optional space_id?: string
AnyAccountId
AnyAccountId: AccountId | string
CommentContent
CommentContent: CommonPostContent
ContentFilter
ContentFilter: { withContentOnly?: boolean }
Type declaration
-
Optional withContentOnly?: boolean
ContentResult
ContentResult<T>: Record<CidAsStr, T>
Type parameters
Counts
Counts: { activitiesCount: number; commentsCount: number; followsCount: number; postsCount: number; reactionsCount: number; spacesCount: number }
Type declaration
-
activitiesCount: number
-
commentsCount: number
-
followsCount: number
-
postsCount: number
-
reactionsCount: number
-
spacesCount: number
ElasticIndexName
ElasticIndexName: "subsocial_profiles" | "subsocial_spaces" | "subsocial_posts"
ElasticIndexTypes
ElasticIndexTypes: "all" | "profiles" | "spaces" | "posts"
ElasticPostDoc
ElasticPostDoc: { body?: string; spaceId?: string; tags?: string[]; title?: string }
Type declaration
-
Optional body?: string
-
Optional spaceId?: string
-
Optional tags?: string[]
-
Optional title?: string
ElasticProfileDoc
ElasticProfileDoc: { about?: string; name?: string }
Type declaration
-
Optional about?: string
-
Optional name?: string
ElasticQueryParams
Elastic
QueryParams: { indexes?: ElasticIndexTypes[]; limit?: number; offset?: number; q?: string; tags?: string[] }
Type declaration
-
-
Optional limit?: number
-
Optional offset?: number
-
Optional q?: string
-
Optional tags?: string[]
ElasticSpaceDoc
ElasticSpaceDoc: { about?: string; handle?: string; name?: string; tags?: string[] }
Type declaration
-
Optional about?: string
-
Optional handle?: string
-
Optional name?: string
-
Optional tags?: string[]
EventsName
EventsName: "AccountFollowed" | "SpaceFollowed" | "SpaceCreated" | "CommentCreated" | "CommentReplyCreated" | "PostCreated" | "PostShared" | "CommentShared" | "PostReactionCreated" | "CommentReactionCreated"
FindPostsWithDetailsQuery
FindStruct
Find
Struct<Id>: { id: Id } & Filters
Type parameters
FindStructs
Find
Structs<Id>: { ids: Id[] } & Filters
Type parameters
HttpRequestMethod
HttpRequestMethod: "post" | "get"
NamedLink
NamedLink: { name: string; url?: string }
Type declaration
-
name: string
-
Optional url?: string
PostContent
Post
Content: CommonPostContent & { canonical: string; image: string; link?: string; meta?: MetaItem[]; tags: string[]; title: string }
PostDetailsOpts
Post
DetailsOpts: VisibilityFilter & { withOwner?: boolean; withSpace?: boolean }
PostUpdateType
Type declaration
-
-
hidden: Option<bool>
-
space_id: Option<SpaceId>
ProfileContent
ProfileContent: { about: string; avatar: string; name: string }
Type declaration
-
about: string
-
avatar: string
-
name: string
SharedPostContent
SharedPostContent: CommonPostContent
SpaceContent
Space
Content: ContentFormat & { about: string; email: string; image: string; links: string[] | NamedLink[]; name: string; tags: string[] }
SubstrareProposal
SubstrareProposal: { kind: "SubstrateProposal"; network: "Kusama" | "Polkadot"; proposalIndex: number }
Type declaration
-
kind: "SubstrateProposal"
-
network: "Kusama" | "Polkadot"
-
proposalIndex: number
Visibility
Visibility: "onlyVisible" | "onlyHidden" | "onlyPublic" | "onlyUnlisted"
Date of this activity. Example: "2020-12-03T19:22:36.000Z"