@benshi.ai/js-sdk
Version:
Benshi SDK
76 lines (75 loc) • 1.91 kB
TypeScript
import { SearchFilter } from "../../core/commonTypes";
export declare enum FeedTypes {
Publication = "publication",
Feed = "feed"
}
export declare enum PublicationAction {
/**
* User has added a new publication to the feed.
* It must be of type "Post", since it is not a
* reply to an existing one
*/
Create = "create",
/**
* The publication have been deleted
*/
Delete = "delete",
/**
* The publication have been edited. This action log
* must be created when the edition ends and the user
* publish it
*/
Edit = "edit",
/**
* The publication has been marked as Liked. Depending on the
* application, the user interface may show another word
* (Like, Recommend, Kudos, etc). Just just this action for any of them
*/
Like = "like",
/**
* User removes the Like from this publication
*/
Unlike = "unlike",
/**
* User have subscribed to updates on this publication
*/
Subscribe = "subscribe",
/**
* User shares this publication. It may be an `in_app` share or
* use an external service like Whatsapp, Facebook, etc
*/
Share = "share",
/**
* This publication have been flagged by the user
*/
Report = "report",
/**
* User has reply to either a comment or a post
*/
Reply = "reply",
/**
* The user requires the direct link to this publication
*/
CopyLink = "copy_link"
}
export declare enum PublicationType {
Comment = "comment",
Post = "post"
}
export interface PublicationProperties {
action: PublicationAction;
share_via?: string;
id: string;
type: PublicationType;
meta?: any;
}
export declare enum FeedType {
News = "news",
Qa = "qa",
Jobs = "jobs"
}
export interface FeedProperties {
type: FeedType;
filter?: SearchFilter;
meta?: any;
}