@selfcommunity/types
Version:
Types to integrate a community created with SelfCommunity.
33 lines (32 loc) • 2.46 kB
JavaScript
/**
* User status
*/
export var SCUserStatus;
(function (SCUserStatus) {
SCUserStatus["APPROVED"] = "a";
SCUserStatus["BLOCKED"] = "b";
SCUserStatus["DELETED"] = "d";
SCUserStatus["UNREGISTERED"] = "u";
})(SCUserStatus || (SCUserStatus = {}));
export var SCUserReputationType;
(function (SCUserReputationType) {
SCUserReputationType[SCUserReputationType["GAIN_BY_UPVOTED"] = 1] = "GAIN_BY_UPVOTED";
SCUserReputationType[SCUserReputationType["ASSIGNED_BY_MODERATOR"] = 10] = "ASSIGNED_BY_MODERATOR";
SCUserReputationType[SCUserReputationType["GAIN_BY_CANCELLING_CONTRIBUTE_MODERATION"] = 11] = "GAIN_BY_CANCELLING_CONTRIBUTE_MODERATION";
SCUserReputationType[SCUserReputationType["GAIN_BY_MAKE_POST"] = 12] = "GAIN_BY_MAKE_POST";
SCUserReputationType[SCUserReputationType["GAIN_BY_MAKE_FIRST_LEVEL_COMMENT"] = 13] = "GAIN_BY_MAKE_FIRST_LEVEL_COMMENT";
SCUserReputationType[SCUserReputationType["GAIN_BY_MAKE_SECOND_LEVEL_COMMENT"] = 14] = "GAIN_BY_MAKE_SECOND_LEVEL_COMMENT";
SCUserReputationType[SCUserReputationType["GAIN_BY_CONNECTION"] = 15] = "GAIN_BY_CONNECTION";
SCUserReputationType[SCUserReputationType["GAIN_BY_APP_USED"] = 17] = "GAIN_BY_APP_USED";
SCUserReputationType[SCUserReputationType["GAIN_BY_DAILY_VISIT"] = 18] = "GAIN_BY_DAILY_VISIT";
SCUserReputationType[SCUserReputationType["GAIN_BY_FOLLOWER"] = 19] = "GAIN_BY_FOLLOWER";
SCUserReputationType[SCUserReputationType["GAIN_BY_UNBLOCK_ACCOUNT"] = 20] = "GAIN_BY_UNBLOCK_ACCOUNT";
SCUserReputationType[SCUserReputationType["LOSE_BY_UPVOTE_CANCELED"] = -1] = "LOSE_BY_UPVOTE_CANCELED";
SCUserReputationType[SCUserReputationType["LOSE_BY_CONTRIBUTE_MODERATION"] = -11] = "LOSE_BY_CONTRIBUTE_MODERATION";
SCUserReputationType[SCUserReputationType["LOSE_BY_DELETE_POST"] = -12] = "LOSE_BY_DELETE_POST";
SCUserReputationType[SCUserReputationType["LOSE_BY_DELETE_FIRST_LEVEL_COMMENT"] = -13] = "LOSE_BY_DELETE_FIRST_LEVEL_COMMENT";
SCUserReputationType[SCUserReputationType["LOSE_BY_DELETE_SECOND_LEVEL_COMMENT"] = -14] = "LOSE_BY_DELETE_SECOND_LEVEL_COMMENT";
SCUserReputationType[SCUserReputationType["LOSE_BY_CONNECTION"] = -15] = "LOSE_BY_CONNECTION";
SCUserReputationType[SCUserReputationType["LOSE_BY_FOLLOWER"] = -19] = "LOSE_BY_FOLLOWER";
SCUserReputationType[SCUserReputationType["LOSE_BY_BLOCK_ACCOUNT"] = -20] = "LOSE_BY_BLOCK_ACCOUNT";
})(SCUserReputationType || (SCUserReputationType = {}));