UNPKG

@benshi.ai/js-sdk

Version:

Benshi SDK

70 lines 2.45 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.FeedType = exports.PublicationType = exports.PublicationAction = exports.FeedTypes = void 0; var FeedTypes; (function (FeedTypes) { FeedTypes["Publication"] = "publication"; FeedTypes["Feed"] = "feed"; })(FeedTypes = exports.FeedTypes || (exports.FeedTypes = {})); var PublicationAction; (function (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 */ PublicationAction["Create"] = "create"; /** * The publication have been deleted */ PublicationAction["Delete"] = "delete"; /** * The publication have been edited. This action log * must be created when the edition ends and the user * publish it */ PublicationAction["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 */ PublicationAction["Like"] = "like"; /** * User removes the Like from this publication */ PublicationAction["Unlike"] = "unlike"; /** * User have subscribed to updates on this publication */ PublicationAction["Subscribe"] = "subscribe"; /** * User shares this publication. It may be an `in_app` share or * use an external service like Whatsapp, Facebook, etc */ PublicationAction["Share"] = "share"; /** * This publication have been flagged by the user */ PublicationAction["Report"] = "report"; /** * User has reply to either a comment or a post */ PublicationAction["Reply"] = "reply"; /** * The user requires the direct link to this publication */ PublicationAction["CopyLink"] = "copy_link"; })(PublicationAction = exports.PublicationAction || (exports.PublicationAction = {})); var PublicationType; (function (PublicationType) { PublicationType["Comment"] = "comment"; PublicationType["Post"] = "post"; })(PublicationType = exports.PublicationType || (exports.PublicationType = {})); var FeedType; (function (FeedType) { FeedType["News"] = "news"; FeedType["Qa"] = "qa"; FeedType["Jobs"] = "jobs"; })(FeedType = exports.FeedType || (exports.FeedType = {})); //# sourceMappingURL=typings.js.map