import * as Options from '../options'; import { BaseService } from '../infrastructure'; import { Comment } from '../interfaces'; /** * A service for manipulating Shopify's Blog Comments API. */ export declare class Comments extends BaseService { constructor(shopDomain: string, accessToken: string); /** * Creates a comment for an article. * @param comment partial comment object with properties for creation * * required fields: * * body (is rendered from Textile markup into HTML in `body_html` field), * * author * * email */ create(comment: Partial): Promise; /** * Updates a comment of an article. * @param id The id of the comment to update. * @param comment partial comment object with properties to update */ update(id: number, comment: Partial): Promise; /** * Gets a count of comments * @param options Options for filtering the result. */ count(options?: Options.CommentCountOptions): Promise; /** * Gets a commect with the given id. * @param id The id of the comment to get. * @param options Options for filtering the result. */ get(id: number, options?: Options.CommentGetOptions): Promise; /** * Retrieves a list of up to 250 comments. * @param options Options for pagination and filtering the result. */ list(options?: Options.CommentListOptions): Promise; /** * Marks the commect with the given id as spam. * @param id The id of the comment to mark as spam. */ spam(id: number): Promise; /** * Marks the commect with the given id as not spam. * @param id The id of the comment to mark as not spam. */ notSpam(id: number): Promise; /** * Approves the comment with the given id. * @param id The id of the comment to approve. */ approve(id: number): Promise; /** * Removes the comment with the given id. * @param id The id of the comment to remove. */ remove(id: number): Promise; /** * Restores the removed comment with the given id. * @param id The id of the removed comment to restore. */ restore(id: number): Promise; } export default Comments;