- EsaApiFp(configuration?): {
batchMoveCategory(teamName, batchMoveOptions, options?) => Promise<((axios?, basePath?) => AxiosPromise<BatchMoveResult>)>;
createComment(teamName, postNumber, createCommentBody, page?, perPage?, options?) => Promise<((axios?, basePath?) => AxiosPromise<Comment>)>;
createEmoji(teamName, createEmojiBody, options?) => Promise<((axios?, basePath?) => AxiosPromise<CreatedEmoji>)>;
createPost(teamName, createPostBody, options?) => Promise<((axios?, basePath?) => AxiosPromise<Post>)>;
deleteComment(teamName, commentId, options?) => Promise<((axios?, basePath?) => AxiosPromise<void>)>;
deleteEmoji(teamName, code, options?) => Promise<((axios?, basePath?) => AxiosPromise<void>)>;
deleteMember(teamName, screenName, options?) => Promise<((axios?, basePath?) => AxiosPromise<void>)>;
deletePost(teamName, postNumber, options?) => Promise<((axios?, basePath?) => AxiosPromise<void>)>;
disinvite(teamName, code, options?) => Promise<((axios?, basePath?) => AxiosPromise<void>)>;
getAuthenticatedUser(include?, options?) => Promise<((axios?, basePath?) => AxiosPromise<AuthenticatedUser>)>;
getComment(teamName, commentId, include?, options?) => Promise<((axios?, basePath?) => AxiosPromise<Comment>)>;
getCommentStargazers(teamName, commentId, page?, perPage?, options?) => Promise<((axios?, basePath?) => AxiosPromise<PaginatedStargazers>)>;
getComments(teamName, page?, perPage?, options?) => Promise<((axios?, basePath?) => AxiosPromise<PaginatedComments>)>;
getEmojis(teamName, include?, options?) => Promise<((axios?, basePath?) => AxiosPromise<EmojiList>)>;
getInvitations(teamName, options?) => Promise<((axios?, basePath?) => AxiosPromise<InvitationList>)>;
getMembers(teamName, sort?, order?, page?, perPage?, options?) => Promise<((axios?, basePath?) => AxiosPromise<PaginatedMembers>)>;
getPost(teamName, postNumber, include?, options?) => Promise<((axios?, basePath?) => AxiosPromise<Post>)>;
getPostComments(teamName, postNumber, page?, perPage?, options?) => Promise<((axios?, basePath?) => AxiosPromise<PaginatedComments>)>;
getPostStargazers(teamName, postNumber, page?, perPage?, options?) => Promise<((axios?, basePath?) => AxiosPromise<PaginatedStargazers>)>;
getPosts(teamName, q?, include?, sort?, order?, page?, perPage?, options?) => Promise<((axios?, basePath?) => AxiosPromise<PaginatedPosts>)>;
getTags(teamName, page?, perPage?, options?) => Promise<((axios?, basePath?) => AxiosPromise<PaginatedTags>)>;
getTeam(teamName, options?) => Promise<((axios?, basePath?) => AxiosPromise<Team>)>;
getTeamStats(teamName, options?) => Promise<((axios?, basePath?) => AxiosPromise<TeamStats>)>;
getTeams(page?, perPage?, options?) => Promise<((axios?, basePath?) => AxiosPromise<PaginatedTeams>)>;
getWatchers(teamName, postNumber, page?, perPage?, options?) => Promise<((axios?, basePath?) => AxiosPromise<PaginatedWatchers>)>;
invite(teamName, inviteBody, options?) => Promise<((axios?, basePath?) => AxiosPromise<InvitationList>)>;
starComment(teamName, commentId, newStar, options?) => Promise<((axios?, basePath?) => AxiosPromise<void>)>;
starPost(teamName, postNumber, newStar, options?) => Promise<((axios?, basePath?) => AxiosPromise<void>)>;
unstarComment(teamName, commentId, options?) => Promise<((axios?, basePath?) => AxiosPromise<void>)>;
unstarPost(teamName, postNumber, options?) => Promise<((axios?, basePath?) => AxiosPromise<void>)>;
unwachPost(teamName, postNumber, options?) => Promise<((axios?, basePath?) => AxiosPromise<void>)>;
updateComment(teamName, commentId, updateCommentBody, options?) => Promise<((axios?, basePath?) => AxiosPromise<Comment>)>;
updatePost(teamName, postNumber, updatePostBody, options?) => Promise<((axios?, basePath?) => AxiosPromise<Post>)>;
watchPost(teamName, postNumber, options?) => Promise<((axios?, basePath?) => AxiosPromise<void>)>;
}
-
Returns {
batchMoveCategory(teamName, batchMoveOptions, options?) => Promise<((axios?, basePath?) => AxiosPromise<BatchMoveResult>)>;
createComment(teamName, postNumber, createCommentBody, page?, perPage?, options?) => Promise<((axios?, basePath?) => AxiosPromise<Comment>)>;
createEmoji(teamName, createEmojiBody, options?) => Promise<((axios?, basePath?) => AxiosPromise<CreatedEmoji>)>;
createPost(teamName, createPostBody, options?) => Promise<((axios?, basePath?) => AxiosPromise<Post>)>;
deleteComment(teamName, commentId, options?) => Promise<((axios?, basePath?) => AxiosPromise<void>)>;
deleteEmoji(teamName, code, options?) => Promise<((axios?, basePath?) => AxiosPromise<void>)>;
deleteMember(teamName, screenName, options?) => Promise<((axios?, basePath?) => AxiosPromise<void>)>;
deletePost(teamName, postNumber, options?) => Promise<((axios?, basePath?) => AxiosPromise<void>)>;
disinvite(teamName, code, options?) => Promise<((axios?, basePath?) => AxiosPromise<void>)>;
getAuthenticatedUser(include?, options?) => Promise<((axios?, basePath?) => AxiosPromise<AuthenticatedUser>)>;
getComment(teamName, commentId, include?, options?) => Promise<((axios?, basePath?) => AxiosPromise<Comment>)>;
getCommentStargazers(teamName, commentId, page?, perPage?, options?) => Promise<((axios?, basePath?) => AxiosPromise<PaginatedStargazers>)>;
getComments(teamName, page?, perPage?, options?) => Promise<((axios?, basePath?) => AxiosPromise<PaginatedComments>)>;
getEmojis(teamName, include?, options?) => Promise<((axios?, basePath?) => AxiosPromise<EmojiList>)>;
getInvitations(teamName, options?) => Promise<((axios?, basePath?) => AxiosPromise<InvitationList>)>;
getMembers(teamName, sort?, order?, page?, perPage?, options?) => Promise<((axios?, basePath?) => AxiosPromise<PaginatedMembers>)>;
getPost(teamName, postNumber, include?, options?) => Promise<((axios?, basePath?) => AxiosPromise<Post>)>;
getPostComments(teamName, postNumber, page?, perPage?, options?) => Promise<((axios?, basePath?) => AxiosPromise<PaginatedComments>)>;
getPostStargazers(teamName, postNumber, page?, perPage?, options?) => Promise<((axios?, basePath?) => AxiosPromise<PaginatedStargazers>)>;
getPosts(teamName, q?, include?, sort?, order?, page?, perPage?, options?) => Promise<((axios?, basePath?) => AxiosPromise<PaginatedPosts>)>;
getTags(teamName, page?, perPage?, options?) => Promise<((axios?, basePath?) => AxiosPromise<PaginatedTags>)>;
getTeam(teamName, options?) => Promise<((axios?, basePath?) => AxiosPromise<Team>)>;
getTeamStats(teamName, options?) => Promise<((axios?, basePath?) => AxiosPromise<TeamStats>)>;
getTeams(page?, perPage?, options?) => Promise<((axios?, basePath?) => AxiosPromise<PaginatedTeams>)>;
getWatchers(teamName, postNumber, page?, perPage?, options?) => Promise<((axios?, basePath?) => AxiosPromise<PaginatedWatchers>)>;
invite(teamName, inviteBody, options?) => Promise<((axios?, basePath?) => AxiosPromise<InvitationList>)>;
starComment(teamName, commentId, newStar, options?) => Promise<((axios?, basePath?) => AxiosPromise<void>)>;
starPost(teamName, postNumber, newStar, options?) => Promise<((axios?, basePath?) => AxiosPromise<void>)>;
unstarComment(teamName, commentId, options?) => Promise<((axios?, basePath?) => AxiosPromise<void>)>;
unstarPost(teamName, postNumber, options?) => Promise<((axios?, basePath?) => AxiosPromise<void>)>;
unwachPost(teamName, postNumber, options?) => Promise<((axios?, basePath?) => AxiosPromise<void>)>;
updateComment(teamName, commentId, updateCommentBody, options?) => Promise<((axios?, basePath?) => AxiosPromise<Comment>)>;
updatePost(teamName, postNumber, updatePostBody, options?) => Promise<((axios?, basePath?) => AxiosPromise<Post>)>;
watchPost(teamName, postNumber, options?) => Promise<((axios?, basePath?) => AxiosPromise<void>)>;
}
-
batchMoveCategory:function
- batchMoveCategory(teamName, batchMoveOptions, options?): Promise<((axios?, basePath?) => AxiosPromise<BatchMoveResult>)>
-
Parameters
-
teamName: string
-
-
Optional
options: any
Returns Promise<((axios?, basePath?) => AxiosPromise<BatchMoveResult>)>
-
createComment:function
-
Parameters
-
teamName: string
-
postNumber: number
-
-
Optional
page: number
-
Optional
perPage: number
-
Optional
options: any
Returns Promise<((axios?, basePath?) => AxiosPromise<Comment>)>
-
createEmoji:function
- createEmoji(teamName, createEmojiBody, options?): Promise<((axios?, basePath?) => AxiosPromise<CreatedEmoji>)>
-
Parameters
-
teamName: string
-
-
Optional
options: any
Returns Promise<((axios?, basePath?) => AxiosPromise<CreatedEmoji>)>
-
createPost:function
- createPost(teamName, createPostBody, options?): Promise<((axios?, basePath?) => AxiosPromise<Post>)>
-
Parameters
-
teamName: string
-
-
Optional
options: any
Returns Promise<((axios?, basePath?) => AxiosPromise<Post>)>
-
deleteComment:function
-
Parameters
-
teamName: string
-
commentId: number
-
Optional
options: any
Returns Promise<((axios?, basePath?) => AxiosPromise<void>)>
-
deleteEmoji:function
- deleteEmoji(teamName, code, options?): Promise<((axios?, basePath?) => AxiosPromise<void>)>
-
Parameters
-
teamName: string
-
code: string
-
Optional
options: any
Returns Promise<((axios?, basePath?) => AxiosPromise<void>)>
-
deleteMember:function
- deleteMember(teamName, screenName, options?): Promise<((axios?, basePath?) => AxiosPromise<void>)>
-
Parameters
-
teamName: string
-
screenName: string
-
Optional
options: any
Returns Promise<((axios?, basePath?) => AxiosPromise<void>)>
-
deletePost:function
- deletePost(teamName, postNumber, options?): Promise<((axios?, basePath?) => AxiosPromise<void>)>
-
Parameters
-
teamName: string
-
postNumber: number
-
Optional
options: any
Returns Promise<((axios?, basePath?) => AxiosPromise<void>)>
-
disinvite:function
- disinvite(teamName, code, options?): Promise<((axios?, basePath?) => AxiosPromise<void>)>
-
Parameters
-
teamName: string
-
code: string
-
Optional
options: any
Returns Promise<((axios?, basePath?) => AxiosPromise<void>)>
-
getAuthenticatedUser:function
- getAuthenticatedUser(include?, options?): Promise<((axios?, basePath?) => AxiosPromise<AuthenticatedUser>)>
-
Parameters
-
Optional
include: "teams"
-
Optional
options: any
Returns Promise<((axios?, basePath?) => AxiosPromise<AuthenticatedUser>)>
-
getComment:function
-
Parameters
-
teamName: string
-
commentId: number
-
Optional
include: "stargazers"
-
Optional
options: any
Returns Promise<((axios?, basePath?) => AxiosPromise<Comment>)>
-
getCommentStargazers:function
-
Parameters
-
teamName: string
-
commentId: number
-
Optional
page: number
-
Optional
perPage: number
-
Optional
options: any
Returns Promise<((axios?, basePath?) => AxiosPromise<PaginatedStargazers>)>
-
getComments:function
-
Parameters
-
teamName: string
-
Optional
page: number
-
Optional
perPage: number
-
Optional
options: any
Returns Promise<((axios?, basePath?) => AxiosPromise<PaginatedComments>)>
-
getEmojis:function
- getEmojis(teamName, include?, options?): Promise<((axios?, basePath?) => AxiosPromise<EmojiList>)>
-
Parameters
-
teamName: string
-
Optional
include: "all"
-
Optional
options: any
Returns Promise<((axios?, basePath?) => AxiosPromise<EmojiList>)>
-
getInvitations:function
- getInvitations(teamName, options?): Promise<((axios?, basePath?) => AxiosPromise<InvitationList>)>
-
Parameters
-
teamName: string
-
Optional
options: any
Returns Promise<((axios?, basePath?) => AxiosPromise<InvitationList>)>
-
getMembers:function
- getMembers(teamName, sort?, order?, page?, perPage?, options?): Promise<((axios?, basePath?) => AxiosPromise<PaginatedMembers>)>
-
Parameters
-
teamName: string
-
Optional
sort: "posts_count" | "joined" | "last_accessed"
-
Optional
order: "asc" | "desc"
-
Optional
page: number
-
Optional
perPage: number
-
Optional
options: any
Returns Promise<((axios?, basePath?) => AxiosPromise<PaginatedMembers>)>
-
getPost:function
- getPost(teamName, postNumber, include?, options?): Promise<((axios?, basePath?) => AxiosPromise<Post>)>
-
Parameters
-
teamName: string
-
postNumber: number
-
Optional
include: ("stargazers" | "comments" | "comments.stargazers")[]
-
Optional
options: any
Returns Promise<((axios?, basePath?) => AxiosPromise<Post>)>
-
getPostComments:function
-
Parameters
-
teamName: string
-
postNumber: number
-
Optional
page: number
-
Optional
perPage: number
-
Optional
options: any
Returns Promise<((axios?, basePath?) => AxiosPromise<PaginatedComments>)>
-
getPostStargazers:function
- getPostStargazers(teamName, postNumber, page?, perPage?, options?): Promise<((axios?, basePath?) => AxiosPromise<PaginatedStargazers>)>
-
Parameters
-
teamName: string
-
postNumber: number
-
Optional
page: number
-
Optional
perPage: number
-
Optional
options: any
Returns Promise<((axios?, basePath?) => AxiosPromise<PaginatedStargazers>)>
-
getPosts:function
- getPosts(teamName, q?, include?, sort?, order?, page?, perPage?, options?): Promise<((axios?, basePath?) => AxiosPromise<PaginatedPosts>)>
-
Parameters
-
teamName: string
-
Optional
q: string
-
Optional
include: ("stargazers" | "comments" | "comments.stargazers")[]
-
Optional
sort: "number" | "comments" | "updated" | "created" | "stars" | "watches" | "best_match"
-
Optional
order: "asc" | "desc"
-
Optional
page: number
-
Optional
perPage: number
-
Optional
options: any
Returns Promise<((axios?, basePath?) => AxiosPromise<PaginatedPosts>)>
-
getTags:function
- getTags(teamName, page?, perPage?, options?): Promise<((axios?, basePath?) => AxiosPromise<PaginatedTags>)>
-
Parameters
-
teamName: string
-
Optional
page: number
-
Optional
perPage: number
-
Optional
options: any
Returns Promise<((axios?, basePath?) => AxiosPromise<PaginatedTags>)>
-
getTeam:function
- getTeam(teamName, options?): Promise<((axios?, basePath?) => AxiosPromise<Team>)>
-
Parameters
-
teamName: string
-
Optional
options: any
Returns Promise<((axios?, basePath?) => AxiosPromise<Team>)>
-
getTeamStats:function
- getTeamStats(teamName, options?): Promise<((axios?, basePath?) => AxiosPromise<TeamStats>)>
-
Parameters
-
teamName: string
-
Optional
options: any
Returns Promise<((axios?, basePath?) => AxiosPromise<TeamStats>)>
-
getTeams:function
- getTeams(page?, perPage?, options?): Promise<((axios?, basePath?) => AxiosPromise<PaginatedTeams>)>
-
Parameters
-
Optional
page: number
-
Optional
perPage: number
-
Optional
options: any
Returns Promise<((axios?, basePath?) => AxiosPromise<PaginatedTeams>)>
-
getWatchers:function
- getWatchers(teamName, postNumber, page?, perPage?, options?): Promise<((axios?, basePath?) => AxiosPromise<PaginatedWatchers>)>
-
Parameters
-
teamName: string
-
postNumber: number
-
Optional
page: number
-
Optional
perPage: number
-
Optional
options: any
Returns Promise<((axios?, basePath?) => AxiosPromise<PaginatedWatchers>)>
-
invite:function
- invite(teamName, inviteBody, options?): Promise<((axios?, basePath?) => AxiosPromise<InvitationList>)>
-
Parameters
-
teamName: string
-
-
Optional
options: any
Returns Promise<((axios?, basePath?) => AxiosPromise<InvitationList>)>
-
starComment:function
-
Parameters
-
teamName: string
-
commentId: number
-
-
Optional
options: any
Returns Promise<((axios?, basePath?) => AxiosPromise<void>)>
-
starPost:function
- starPost(teamName, postNumber, newStar, options?): Promise<((axios?, basePath?) => AxiosPromise<void>)>
-
Parameters
-
teamName: string
-
postNumber: number
-
-
Optional
options: any
Returns Promise<((axios?, basePath?) => AxiosPromise<void>)>
-
unstarComment:function
-
Parameters
-
teamName: string
-
commentId: number
-
Optional
options: any
Returns Promise<((axios?, basePath?) => AxiosPromise<void>)>
-
unstarPost:function
- unstarPost(teamName, postNumber, options?): Promise<((axios?, basePath?) => AxiosPromise<void>)>
-
Parameters
-
teamName: string
-
postNumber: number
-
Optional
options: any
Returns Promise<((axios?, basePath?) => AxiosPromise<void>)>
-
unwachPost:function
- unwachPost(teamName, postNumber, options?): Promise<((axios?, basePath?) => AxiosPromise<void>)>
-
Parameters
-
teamName: string
-
postNumber: number
-
Optional
options: any
Returns Promise<((axios?, basePath?) => AxiosPromise<void>)>
-
updateComment:function
-
Parameters
-
teamName: string
-
commentId: number
-
-
Optional
options: any
Returns Promise<((axios?, basePath?) => AxiosPromise<Comment>)>
-
updatePost:function
- updatePost(teamName, postNumber, updatePostBody, options?): Promise<((axios?, basePath?) => AxiosPromise<Post>)>
-
Parameters
-
teamName: string
-
postNumber: number
-
-
Optional
options: any
Returns Promise<((axios?, basePath?) => AxiosPromise<Post>)>
-
watchPost:function
- watchPost(teamName, postNumber, options?): Promise<((axios?, basePath?) => AxiosPromise<void>)>
-
Parameters
-
teamName: string
-
postNumber: number
-
Optional
options: any
Returns Promise<((axios?, basePath?) => AxiosPromise<void>)>
EsaApi - functional programming interface