Type Aliases
GenericSuccess
GenericSuccess: { success: true }
PostInPopular
Post
In
Popular
: { _id
: string; author
: { _id
: string; avatar
: FileInformation | null; description
: string; displayName
: string; username
: string; verified
: boolean }; createdAt
: number; file
: { fileName
: string; size
: number }; slug
: string; tags
: string[]; title
: string; views
: number }Type declaration
_id: string
author: { _id: string; avatar: FileInformation | null; description: string; displayName: string; username: string; verified: boolean }
_id: string
description: string
displayName: string
username: string
verified: boolean
createdAt: number
file: { fileName: string; size: number }
fileName: string
size: number
slug: string
tags: string[]
title: string
views: number
PostInSearch
Post
In
Search
: { _id
: string; author
: { _id
: string; avatar
: FileInformation | null; description
: string; displayName
: string; username
: string; verified
: boolean }; createdAt
: number; file
: FileInformation; slug
: string; tags
: string[]; title
: string; views
: number }Type declaration
_id: string
author: { _id: string; avatar: FileInformation | null; description: string; displayName: string; username: string; verified: boolean }
_id: string
description: string
displayName: string
username: string
verified: boolean
createdAt: number
slug: string
tags: string[]
title: string
views: number
PostInfoResponse
Post
Info
Response
: { _id
: string; author
: { _id
: string; avatar
: FileInformation | null; description
: string; displayName
: string; username
: string; verified
: boolean }; createdAt
: number; file
: { fileName
: string; size
: number }; slug
: string; tags
: string[]; title
: string; views
: number }Type declaration
_id: string
author: { _id: string; avatar: FileInformation | null; description: string; displayName: string; username: string; verified: boolean }
_id: string
description: string
displayName: string
username: string
verified: boolean
createdAt: number
file: { fileName: string; size: number }
fileName: string
size: number
slug: string
tags: string[]
title: string
views: number
PostNewResponse
Post
New
Response
: { _id
: string; author
: { _id
: string; avatar
: FileInformation | null; description
: string; displayName
: string; username
: string; verified
: boolean }; createdAt
: number; file
: FileInformation; private
: boolean; slug
: string; tags
: string[]; title
: string }Type declaration
_id: string
author: { _id: string; avatar: FileInformation | null; description: string; displayName: string; username: string; verified: boolean }
_id: string
description: string
displayName: string
username: string
verified: boolean
createdAt: number
private: boolean
slug: string
tags: string[]
title: string
PostSearchResponse
Post
Search
Response
: { hits
: PostInSearch[]; numHits
: number; tookMs
: number }Type declaration
numHits: number
tookMs: number
SessionCreateResponse
SessionCreateResponse: { sessionName: string; token: string }
Type declaration
sessionName: string
token: string
SessionCurrentResponse
SessionCurrentResponse: { _id: string; sessionName: string; token: string; userId: string }
Type declaration
_id: string
sessionName: string
token: string
userId: string
UserQueryResponse
User
Query
Response
: { _id
: string; avatar
: FileInformation | null; description
: string; displayName
: string; username
: string; verified
: boolean }Type declaration
_id: string
description: string
displayName: string
username: string
verified: boolean
UserRegisterResponse
UserRegisterResponse: { _id: string; avatar: null; description: string; displayName: string; email: string; username: string }
Type declaration
_id: string
avatar: null
description: string
displayName: string
email: string
username: string
UserSelfResponse
UserSelfResponse: { avatar: object | null; description: string; displayName: string; email: string; username: string; verified: boolean }
Type declaration
avatar: object | null
description: string
displayName: string
email: string
username: string
verified: boolean