export type AdminAgentLineProvisionPayload = {
  site_code: string;
  code?: string;
  name: string;
  username: string;
  password: string;
  email?: string | null;
  status?: number;
  total_share_rate?: number;
  credit_limit?: number;
  rebate_limit?: number;
  default_player_rebate?: number;
  can_grant_extra_rebate?: boolean;
};

export type AdminAgentLineProvisionResult = {
  id: number;
  code: string;
  name: string;
  agent_node: {
    id: number;
    code: string;
    site_code: string | null;
    is_line_root: boolean;
  };
  line_root: {
    agent_node_id: number;
    site_code: string;
    is_line_root: boolean;
  };
};
