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.

82 lines (81 loc) 2.62 kB
export interface CommunityPost { /** Unique identifier for the post. */ id: number; /** Identifier for the associated community. */ community_id: number; /** Identifier for the associated topic. */ topic_id: number; /** Identifier for the user who created the post. */ user_id: number; /** Identifier for cross-referencing. */ cross_id: number; /** The main content of the post. */ body: string; /** List of mentioned users or entities. */ mentions: string[]; /** List of tags associated with the post. */ tags: string[]; /** Aspect ratio for the associated image or video. */ aspect: string; /** URL or path to the associated image. */ image: string; /** URL or path to the associated video. */ video: string; /** URL or path to the associated voice recording. */ voice: string; /** URL or path to an associated link. */ link: string; /** Preview details for the associated link. */ link_preview: any[]; /** Identifier for the associated product. */ product_id: number; /** Identifier for the associated shop. */ shop_id: number; /** Flag indicating if the post is marked as offensive. */ offensive: boolean; /** Total number of comments on the post. */ total_comments: number; /** Count of impressions for the post. */ impressions: number; /** Count of media views (e.g., video plays, voice plays). */ views: number; /** Count of likes on the post. */ likes: number; /** Count of smiles on the post. */ smiles: number; /** Count of claps on the post. */ claps: number; /** Count of ideas on the post. */ ideas: number; /** Count of disagreements on the post. */ disagrees: number; /** Count of saves of the post. */ saves: number; /** Count of shares of the post. */ shares: number; /** Count of embeds of the post. */ embeds: number; /** Count of reports on the post. */ reports: number; /** Flag indicating if the post is an approved answer. */ approved: boolean; /** Timestamp indicating when the post was created. */ created_at: string; /** Timestamp indicating the last update to the post. */ updated_at: string; } export declare namespace CommunityPost { /** * Type definition for an individual post action. */ type IActionType = { code: string; name: string; icon: string; }; /** * Enumeration of various post actions. */ export const PostActions: Record<string, IActionType>; export {}; }