apps/web/lib/portal-data.ts
Metadata
- Purpose: Frontend data/service utility module.
- Domain:
applications - Language:
ts - Bytes: 1722
- Lines: 69
- Content hash (short):
64c49394 - Source (start): apps/web/lib/portal-data.ts:1
- Source (end): apps/web/lib/portal-data.ts:69
Indexed Symbols
requestHeaders(line 46, function) - Implements request headers for module behavior.getPortalData(line 54, function) - Implements get portal data for module behavior.
Markdown Headings (if applicable)
No markdown headings detected.
Source Preview
import { resolvePortalAuthToken } from "./portal-session";
export type PortalCounter = {
label: string;
value: string;
status: string;
};
export type PortalTicket = {
id: string;
title: string;
status: string;
updatedAt: string;
};
export type PortalApproval = {
id: string;
type: "quote" | "invoice";
label: string;
status: string;
total: number;
};
export type PortalInvoice = {
id: string;