add new role conditions for local/remote followers/followees
This commit is contained in:
@@ -147,6 +147,70 @@ type CondFormulaValueFollowingMoreThanOrEq = {
|
||||
value: number;
|
||||
};
|
||||
|
||||
/**
|
||||
* Is followed by at most N local users
|
||||
*/
|
||||
type CondFormulaValueLocalFollowersLessThanOrEq = {
|
||||
type: 'localFollowersLessThanOrEq';
|
||||
value: number;
|
||||
};
|
||||
|
||||
/**
|
||||
* Is followed by at least N local users
|
||||
*/
|
||||
type CondFormulaValueLocalFollowersMoreThanOrEq = {
|
||||
type: 'localFollowersMoreThanOrEq';
|
||||
value: number;
|
||||
};
|
||||
|
||||
/**
|
||||
* Is following at most N local users
|
||||
*/
|
||||
type CondFormulaValueLocalFollowingLessThanOrEq = {
|
||||
type: 'localFollowingLessThanOrEq';
|
||||
value: number;
|
||||
};
|
||||
|
||||
/**
|
||||
* Is following at least N local users
|
||||
*/
|
||||
type CondFormulaValueLocalFollowingMoreThanOrEq = {
|
||||
type: 'localFollowingMoreThanOrEq';
|
||||
value: number;
|
||||
};
|
||||
|
||||
/**
|
||||
* Is followed by at most N remote users
|
||||
*/
|
||||
type CondFormulaValueRemoteFollowersLessThanOrEq = {
|
||||
type: 'remoteFollowersLessThanOrEq';
|
||||
value: number;
|
||||
};
|
||||
|
||||
/**
|
||||
* Is followed by at least N remote users
|
||||
*/
|
||||
type CondFormulaValueRemoteFollowersMoreThanOrEq = {
|
||||
type: 'remoteFollowersMoreThanOrEq';
|
||||
value: number;
|
||||
};
|
||||
|
||||
/**
|
||||
* Is following at most N remote users
|
||||
*/
|
||||
type CondFormulaValueRemoteFollowingLessThanOrEq = {
|
||||
type: 'remoteFollowingLessThanOrEq';
|
||||
value: number;
|
||||
};
|
||||
|
||||
/**
|
||||
* Is following at least N remote users
|
||||
*/
|
||||
type CondFormulaValueRemoteFollowingMoreThanOrEq = {
|
||||
type: 'remoteFollowingMoreThanOrEq';
|
||||
value: number;
|
||||
};
|
||||
|
||||
/**
|
||||
* 投稿数が指定値以下の場合のみ成立とする
|
||||
*/
|
||||
@@ -182,6 +246,14 @@ export type RoleCondFormulaValue = { id: string } & (
|
||||
CondFormulaValueFollowersMoreThanOrEq |
|
||||
CondFormulaValueFollowingLessThanOrEq |
|
||||
CondFormulaValueFollowingMoreThanOrEq |
|
||||
CondFormulaValueLocalFollowersLessThanOrEq |
|
||||
CondFormulaValueLocalFollowersMoreThanOrEq |
|
||||
CondFormulaValueLocalFollowingLessThanOrEq |
|
||||
CondFormulaValueLocalFollowingMoreThanOrEq |
|
||||
CondFormulaValueRemoteFollowersLessThanOrEq |
|
||||
CondFormulaValueRemoteFollowersMoreThanOrEq |
|
||||
CondFormulaValueRemoteFollowingLessThanOrEq |
|
||||
CondFormulaValueRemoteFollowingMoreThanOrEq |
|
||||
CondFormulaValueNotesLessThanOrEq |
|
||||
CondFormulaValueNotesMoreThanOrEq
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user