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

This commit is contained in:
asepharyana
2026-08-22 11:41:49 +07:00
parent 2a70a111a2
commit 5cd9ea92a7
14 changed files with 1891 additions and 6 deletions
+38
View File
@@ -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;
}