UNPKG

@selldone/sdk-storefront

Version:

A TypeScript SDK to connect to your shop and build a fully functional storefront and website by simply developing a frontend web application. All backend operations are seamlessly managed by the serverless Selldone solution.

45 lines (44 loc) 1.11 kB
export interface ArticleReport { /** * Unique identifier of the article. */ id: number; article_id: number; /** * Reporter user */ user_id: number; /** * Reason of the report */ category: ArticleReport.CategoryKey; /** * Delete this article (only by a supervisor or system) */ delete: boolean; /** * Last updated date of the article. */ updated_at: Date; /** * Creation date of the article. */ created_at: Date; } export declare namespace ArticleReport { /** * Defines the structure for each article report category. */ interface ICategory { value: CategoryKey; title: string; } /** * Enumerates the keys for various reasons to report an article. */ type CategoryKey = "Inappropriate" | "Fake" | "Spam" | "Scam" | "Hacked" | "Offensive" | "Violent" | "Harassment" | "Hate" | "Infringe"; /** * Enumerates various reasons to report an article with associated metadata. */ const Categories: Record<CategoryKey, ICategory>; }