All files / scripts/generate-news-enhanced types.ts

0% Statements 0/0
0% Branches 0/0
0% Functions 0/0
0% Lines 0/0

Press n or j to go to the next uncovered block, b, p or k for the previous block.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38                                                                           
/**
 * @module generate-news-enhanced/types
 * @description Local type definitions for the enhanced news generation system.
 *
 * @author Hack23 AB
 * @license Apache-2.0
 */
 
import type { Language } from '../types/language.js';
 
export interface TitleSet {
  title: string;
  subtitle: string;
}
 
export interface BatchStatus {
  complete: boolean;
  completedLanguages?: string[];
  remainingLanguages?: string[];
  allRequestedLanguages?: string[];
  allDone?: string[];
  timestamp: string;
}
 
export interface LastGenerationMetadata {
  timestamp: string;
  types: string[];
  languagesGenerated: Language[];
  allRequestedLanguages: Language[];
  batchSize: number | string;
  skipExisting: boolean;
  generated: number;
  errors: number;
  articles: string[];
  status: string;
  note: string;
}