@allofshop/aos-sdk-nodejs
Version:
AOS SDK for NodeJS
10 lines (9 loc) • 893 B
TypeScript
import * as lite from '@allofshop/aos-sdk-nodejs-lite';
import { CreateDto, FindArticlesByBoardIdDto, UpdateOneByIdDto, VoteDto } from './type';
export declare function createArticle(body: CreateDto): Promise<lite.AllOfShopResponse<unknown>>;
export declare function getArticle(articleId: string): Promise<lite.AllOfShopResponse<unknown>>;
export declare function updateArticle(articleId: string, body: UpdateOneByIdDto): Promise<lite.AllOfShopResponse<unknown>>;
export declare function deleteArticle(articleId: string): Promise<lite.AllOfShopResponse<unknown>>;
export declare function getArticles(query: FindArticlesByBoardIdDto): Promise<lite.AllOfShopResponse<unknown>>;
export declare function voteArticle(articleId: string, body: VoteDto): Promise<lite.AllOfShopResponse<unknown>>;
export declare function cancelVoteArticle(articleId: string): Promise<lite.AllOfShopResponse<unknown>>;