feat(export): add single PDF export for sections and events with chapter ordering
CI / typecheck + tests (push) Canceled after 0s
CI / build + deploy (Nix) — api (push) Canceled after 0s
CI / build + deploy (Nix) — mcp (push) Canceled after 0s
CI / build + deploy (Nix) — worker (push) Canceled after 0s
CI / build + deploy (web) (push) Canceled after 0s
CI / typecheck + tests (push) Canceled after 0s
CI / build + deploy (Nix) — api (push) Canceled after 0s
CI / build + deploy (Nix) — mcp (push) Canceled after 0s
CI / build + deploy (Nix) — worker (push) Canceled after 0s
CI / build + deploy (web) (push) Canceled after 0s
This commit is contained in:
@@ -40,3 +40,41 @@ export interface SearchHit {
|
||||
snippet: string;
|
||||
}
|
||||
|
||||
export type ExportSortOption =
|
||||
| "category_points"
|
||||
| "path"
|
||||
| "title"
|
||||
| "points_desc"
|
||||
| "difficulty"
|
||||
| "updated_at";
|
||||
|
||||
export interface ExportCategorySummary {
|
||||
name: string;
|
||||
count: number;
|
||||
points: number;
|
||||
}
|
||||
|
||||
export interface ExportSummary {
|
||||
title: string;
|
||||
scope: string;
|
||||
section: string;
|
||||
totalDocuments: number;
|
||||
totalPoints: number;
|
||||
categories: ExportCategorySummary[];
|
||||
authors: string[];
|
||||
generatedAt: string;
|
||||
}
|
||||
|
||||
export interface ExportData {
|
||||
summary: ExportSummary;
|
||||
documents: Document[];
|
||||
}
|
||||
|
||||
export interface ExportQueryOptions {
|
||||
path?: string;
|
||||
section?: string;
|
||||
slugs?: string[];
|
||||
status?: string;
|
||||
sortBy?: ExportSortOption;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user