import { api } from "../auth/http"; import { URL_CONSTANTS } from "../constants/URLS"; export interface TransitAgent { id: string; name: string; validFrom: string; validTo: string; isActive: boolean; } export const transitAgentsService = { /** Active + currently inside its validity window — the assignment dropdown. */ async listAssignable() { const response = await api.get( URL_CONSTANTS.RULE_ENGINE.TRANSIT_AGENTS_ASSIGNABLE, ); return response.data; }, };