@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.
53 lines (52 loc) • 1.71 kB
TypeScript
export interface CommunityPostReaction {
/** Unique identifier for the community post reaction. */
id: number;
/** Identifier for the community this post reaction belongs to. */
community_id: number;
/** Identifier for the post this reaction is associated with. */
post_id: number;
/** Identifier for the user who reacted to the post. */
user_id: number;
/** Reaction to the post. */
reaction: keyof typeof CommunityPostReaction.Reactions;
/** Flag indicating whether the post is saved. */
save: boolean;
/** Report category for the post. */
report: CommunityPostReaction.Reports;
}
export declare namespace CommunityPostReaction {
/**
* Enum representing report categories for community posts.
*/
export enum Reports {
Inappropriate = "Inappropriate",
Fake = "Fake",
Spam = "Spam",
Scam = "Scam",
Hacked = "Hacked",
Offensive = "Offensive",
Violent = "Violent",
Harassment = "Harassment",
Hate = "Hate",
Infringe = "Infringe"
}
/**
* Defines the structure of a post reaction.
*
* - `code`: The unique code representing the type of reaction.
* - `name`: The i18n key associated with the reaction for translations.
* - `image`: The path to the image representing the reaction.
* - `column`: The database column associated with this type of reaction.
*/
interface IReaction {
code: string;
name: string;
image: any;
column: string;
}
/**
* Enum for post reactions with their properties.
*/
export const Reactions: Record<string, IReaction>;
export {};
}