export enum RoleType {
  COMMUNITY = 'COMMUNITY',
  AUTH_PROVINCE_COMPANY = 'AUTH_PROVINCE_COMPANY',
  PROVINCE_COMPANY = 'PROVINCE_COMPANY',
  AUTH_CITY_COMPANY = 'AUTH_CITY_COMPANY',
  CITY_COMPANY = 'CITY_COMPANY',
}

export enum AuthorizationStatus {
  PENDING = 'PENDING',
  AUTHORIZED = 'AUTHORIZED',
  REVOKED = 'REVOKED',
}

export enum AssessmentResult {
  NOT_ASSESSED = 'NOT_ASSESSED',
  PASS = 'PASS',
  FAIL = 'FAIL',
  BYPASSED = 'BYPASSED',
}

export enum MonthlyTargetType {
  NONE = 'NONE',
  FIXED = 'FIXED',
  LADDER = 'LADDER',
}

export enum RestrictionType {
  ACCOUNT_LIMIT = 'ACCOUNT_LIMIT',
  TOTAL_LIMIT = 'TOTAL_LIMIT',
}

export enum ApprovalStatus {
  PENDING = 'PENDING',
  APPROVED = 'APPROVED',
  REJECTED = 'REJECTED',
}

export enum OperationType {
  GRANT_AUTHORIZATION = 'GRANT_AUTHORIZATION',
  REVOKE_AUTHORIZATION = 'REVOKE_AUTHORIZATION',
  GRANT_BYPASS = 'GRANT_BYPASS',
  EXEMPT_PERCENTAGE = 'EXEMPT_PERCENTAGE',
  MODIFY_CONFIG = 'MODIFY_CONFIG',
}

export enum RegionType {
  PROVINCE = 'PROVINCE',
  CITY = 'CITY',
}

// 系统账户类型
export enum SystemAccountType {
  COST_ACCOUNT = 'COST_ACCOUNT',           // 成本账户
  OPERATION_ACCOUNT = 'OPERATION_ACCOUNT', // 运营账户
  HQ_COMMUNITY = 'HQ_COMMUNITY',           // 总部社区账户
  RWAD_POOL_PENDING = 'RWAD_POOL_PENDING', // RWAD矿池待注入
  SYSTEM_PROVINCE = 'SYSTEM_PROVINCE',     // 系统省账户（无授权时）
  SYSTEM_CITY = 'SYSTEM_CITY',             // 系统市账户（无授权时）
}

// 系统账户流水类型
export enum SystemLedgerEntryType {
  PLANTING_ALLOCATION = 'PLANTING_ALLOCATION',  // 认种分配收入
  REWARD_EXPIRED = 'REWARD_EXPIRED',            // 过期奖励收入
  TRANSFER_OUT = 'TRANSFER_OUT',                // 转出
  TRANSFER_IN = 'TRANSFER_IN',                  // 转入
  WITHDRAWAL = 'WITHDRAWAL',                    // 提现
  ADJUSTMENT = 'ADJUSTMENT',                    // 调整
}

// 系统账户状态
export enum SystemAccountStatus {
  ACTIVE = 'ACTIVE',
  INACTIVE = 'INACTIVE',
}

// 权益操作类型
export enum BenefitActionType {
  ACTIVATED = 'ACTIVATED',       // 首次激活
  RENEWED = 'RENEWED',           // 续期
  DEACTIVATED = 'DEACTIVATED',   // 失效
  NO_CHANGE = 'NO_CHANGE',       // 无变化
}
