UNPKG

event-app-api

Version:

Package for easy access to Event App API

13 lines (12 loc) 1.31 kB
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 _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<Response>; export declare const _deleteComment: (basePath: string, token: string, postId: string, commentId: string) => Promise<Post>;