apps/web/lib/ops-data.ts
Metadata
- Purpose: Frontend data/service utility module.
- Domain:
applications - Language:
ts - Bytes: 1330
- Lines: 49
- Content hash (short):
67da9982 - Source (start): apps/web/lib/ops-data.ts:1
- Source (end): apps/web/lib/ops-data.ts:49
Indexed Symbols
requestHeaders(line 26, function) - Implements request headers for module behavior.getOpsData(line 34, function) - Implements get ops data for module behavior.
Markdown Headings (if applicable)
No markdown headings detected.
Source Preview
import { resolveOperatorAuthToken } from "./operator-session";
export type OpsLaneItem = {
id: string;
label: string;
status: string;
detail: string;
};
export type OpsLane = {
title: string;
items: OpsLaneItem[];
};
export type OpsData = {
lanes: OpsLane[];
};
type OpsSummaryResponse = {
data?: OpsData;
error?: string;
};
const apiBaseUrl = process.env.API_BASE_URL ?? process.env.NEXT_PUBLIC_API_BASE_URL ?? "http://localhost:8080";