UNPKG

@hubs101/js-api-skd-client

Version:
17 lines (16 loc) 1.7 kB
import { APIResponse } from "../../types/base"; import { CommentBody, Post, PostBody, UpdatePostBody } from "./types"; export declare const _fetchPosts: (basePath: string, token: string, eventId: string) => Promise<Post[]>; export declare const _fetchPostDetails: (basePath: string, token: string, postId: string) => Promise<Post>; export declare const _likePost: (basePath: string, token: string, postId: string) => Promise<Post>; export declare const _unlikePost: (basePath: string, token: string, postId: string) => Promise<Post>; export declare const _likeComment: (basePath: string, token: string, postId: string, commentId: string) => Promise<Post>; export declare const _unlikeComment: (basePath: string, token: string, postId: string, commentId: string) => Promise<Post>; export declare const _unlikeCommentNative: (basePath: string, token: string, postId: string, commentId: string) => Promise<Post>; export declare const _unlikePostNative: (basePath: string, token: string, postId: string) => Promise<Post>; export declare const _addComment: (basePath: string, token: string, postId: string, body: CommentBody) => Promise<Comment>; export declare const _addPost: (basePath: string, token: string, body: PostBody) => Promise<Post>; export declare const _updatePost: (basePath: string, token: string, postId: string, body: UpdatePostBody) => Promise<Post>; export declare const _deletePost: (basePath: string, token: string, postId: string) => Promise<APIResponse>; export declare const _deleteComment: (basePath: string, token: string, postId: string, commentId: string) => Promise<Post>; export declare const _addPostNative: (basePath: string, token: string, body: FormData) => Promise<Post>;