UNPKG

@likeminds.community/feed-js

Version:

LikeMinds Javascript SDK for chat APIs

48 lines (47 loc) 1.14 kB
import { PollMultipleSelectState, PollType } from "../../poll/enums"; import { OgTag } from "./ogTag"; export declare enum AttachmentType { IMAGE = "image", VIDEO = "video", DOCUMENT = "document", LINK = "link", CUSTOM = "custom", POLL = "poll", ARTICLE = "article", POST = "post", REPOST = "repost", GIF = "gif", REEL = "reel" } export interface Attachment { metaData: AttachmentMeta; type: AttachmentType; } export interface AttachmentMeta { entityId?: string; format?: string; name?: string; ogTags?: OgTag; size?: number; url?: string; duration?: number; coverImageUrl?: string; title?: string; body?: string; pollQuestion?: string; expiryTime?: number; options?: string[]; multipleSelectState?: PollMultipleSelectState; pollType?: PollType; multipleSelectNumber?: number; isAnonymous?: boolean; allowAddOption?: boolean; thumbnailUrl?: string; widgetMeta?: WidgetMeta; pageCount?: number; height?: number; width?: number; } export interface WidgetMeta { meta: Record<string, any>; }