Skip to main content

apps/web/lib/portal-data.ts

Metadata

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;