// 公司相关类型定义

export type CompanyType = 'province' | 'city';
export type AuthStatus = 'authorized' | 'pending' | 'unauthorized';

export interface Company {
  id: string;
  avatar: string;
  nickname: string;
  accountId: string;
  type: CompanyType;
  province: string;
  city?: string;
  teamAdoptions: number;
  authStatus: AuthStatus;
  authorizedAt?: string;
}

export interface AssessmentRules {
  firstTriggerThreshold: number;
  stageUnitBenefit: number;
  incrementalBenefit: number;
  assessmentCycle: 'monthly' | 'quarterly';
  failureResetEnabled: boolean;
}

export interface AuthorizationLimits {
  oneProvinceOneCompany: boolean;
  oneCityOneCompany: boolean;
  topRankingRequired: number;
  specialCityRules: {
    beijing: boolean;
    shanghai: boolean;
  };
}

export interface LadderTarget {
  assessmentMonth: number;
  provinceMonthlyTarget: number;
  provinceCumulativeTarget: number;
  cityMonthlyTarget: number;
  cityCumulativeTarget: number;
}
