Skip to main content

apps/web/lib/ops-data.ts

Metadata

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";