mirror of
https://github.com/Tria-plc/edr-platform.git
synced 2026-08-29 14:08:11 +00:00
21 lines
515 B
TypeScript
21 lines
515 B
TypeScript
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<TransitAgent[]>(
|
|
URL_CONSTANTS.RULE_ENGINE.TRANSIT_AGENTS_ASSIGNABLE,
|
|
);
|
|
return response.data;
|
|
},
|
|
};
|