24 lines
870 B
TypeScript
24 lines
870 B
TypeScript
// API DTOs are generated from the backend's OpenAPI spec (see
|
|
// `backend/schemas.py` → `frontend/openapi.json` → orval; run `npm run gen:api`).
|
|
// This module re-exports them under their original names and keeps the few
|
|
// non-API helper types the app builds client-side.
|
|
export * from "./generated/model";
|
|
|
|
import type { FileEntry, FileEntryKind, ServiceSummaryAuth } from "./generated/model";
|
|
|
|
/** File-kind union — alias of the generated `FileEntry.kind` type. */
|
|
export type FileKind = FileEntryKind;
|
|
|
|
/** How a service opts into Traefik middleware chains. */
|
|
export type ServiceAuth = ServiceSummaryAuth | null;
|
|
|
|
/** A node in the rendered file tree (folders + files) — built client-side in
|
|
* `tree.ts`, not returned by the API. */
|
|
export interface TreeNode {
|
|
name: string;
|
|
path: string;
|
|
dir: boolean;
|
|
file?: FileEntry;
|
|
children: TreeNode[];
|
|
}
|