korean-dummy-json-fetcher
Version:
한국어 더미 데이터 생성 라이브러리
17 lines (16 loc) • 866 B
TypeScript
import { Review, ApiResponse, PaginatedResponse } from "./types";
export declare function getReview({ id, }: {
id: number;
}): Promise<ApiResponse<Review, "review">>;
export declare function getReviews(options?: {
bookId?: number;
userId?: number;
limit?: number;
page?: number;
}): Promise<PaginatedResponse<Review, "reviews">>;
export declare function createReview(data: Omit<Review, "id" | "createdAt">): Promise<ApiResponse<Review, "review">>;
export declare function patchReview(id: number, data: Partial<Omit<Review, "id" | "userId" | "bookId" | "createdAt">>): Promise<ApiResponse<Review, "review">>;
export declare function putReview(id: number, data: Omit<Review, "id" | "userId" | "bookId" | "createdAt">): Promise<ApiResponse<Review, "review">>;
export declare function deleteReview({ id }: {
id: number;
}): Promise<ApiResponse>;