import apiClient from './client';
import type { GateTargetLadderResponse, SRLevelResponse } from '../lib/types';

export function getLevels(symbol: string) {
  return apiClient
    .get<SRLevelResponse>(`sr-levels/${symbol}`)
    .then((r) => r.data);
}

export function getGateTargetLadder(symbol: string) {
  return apiClient
    .get<GateTargetLadderResponse>(`gate-target-ladder/${symbol}`)
    .then((r) => r.data);
}
