@interep/reputation
Version:
Definitions and utility functions of Interep reputation.
35 lines (32 loc) • 1.03 kB
text/typescript
import { OAuthProvider } from "../types"
import { Operator, RuleDef } from "../types/rule"
const CRITERIA_CONFIG: Record<OAuthProvider, RuleDef> = {
[]: {
bins: [
[],
[],
[],
[]
], // stars
condition: { operator: Operator.Gte, operand: 1, binIndexGrantedIfSatisfied: 2 } // sponsors + sponsoring
},
[]: {
bins: [
[],
[],
[],
[]
], // total karma
condition: { operator: Operator.Eq, operand: true, binIndexGrantedIfSatisfied: 1 } // is_gold
},
[]: {
bins: [
[],
[],
[],
[]
], // followers
condition: { operator: Operator.Eq, operand: true, binIndexGrantedIfSatisfied: 2 } // verified
}
}
export default CRITERIA_CONFIG