@likeminds.community/feed-js
Version:
LikeMinds Javascript SDK for chat APIs
24 lines (23 loc) • 1.46 kB
TypeScript
import NetworkLibrary from "../../core/services/networklibrary";
import { AddComment, AddPost, DecodeUrl, DeletePost, EditPost, Feed, GetComment, GetPost, LikePost, PinPost, SavePost } from "./types";
export declare class UniversalFeed {
networkLibrary: NetworkLibrary;
constructor(networkLibrary: NetworkLibrary);
getFeed(feed: Feed): Promise<any>;
addPost(addPost: AddPost): Promise<any>;
savePost(savePost: SavePost, postId: string): Promise<any>;
getPost(getPost: GetPost, postId: string): Promise<any>;
getPostLikes(getPost: GetPost, postId: string): Promise<any>;
likePost(likePost: LikePost, postId: string): Promise<any>;
pinPost(pinPost: PinPost, postId: string): Promise<any>;
editPost(editPost: EditPost, postId: string): Promise<any>;
addComment(addComment: AddComment, postId: string): Promise<any>;
getComment(getComment: GetComment, postId: string, commentId: any): Promise<any>;
getCommentLikes(getComment: GetComment, postId: string, commentId: any): Promise<any>;
likeComment(postId: string, commentId: any): Promise<any>;
replyComment(text: string, postId: string, commentId: any): Promise<any>;
editComment(text: string, postId: string, commentId: any): Promise<any>;
deleteComment(deleteReason: string, postId: string, commentId: any): Promise<any>;
deletePost(deletePost: DeletePost, postId: string): Promise<any>;
decodeUrl(decodeUrl: DecodeUrl): Promise<any>;
}