Split these files that exceeded the 500-line hard cap: - privacy-policy.ts (965 LOC) -> sections + renderers - academy/api.ts (787 LOC) -> courses + mock-data - whistleblower/api.ts (755 LOC) -> operations + mock-data - vvt-profiling.ts (659 LOC) -> data + logic - cookie-banner.ts (595 LOC) -> config + embed - dsr/types.ts (581 LOC) -> core + api types - tom-generator/rules-engine.ts (560 LOC) -> evaluator + gap-analysis - datapoint-helpers.ts (548 LOC) -> generators + validators Each original file becomes a barrel re-export for backward compatibility. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
39 lines
750 B
TypeScript
39 lines
750 B
TypeScript
/**
|
|
* Academy API Client — barrel re-export
|
|
*
|
|
* Split into:
|
|
* - api-courses.ts (CRUD, enrollments, certificates, quiz, stats, generation)
|
|
* - api-mock-data.ts (mock data + SDK proxy)
|
|
*/
|
|
|
|
export {
|
|
fetchCourses,
|
|
fetchCourse,
|
|
createCourse,
|
|
updateCourse,
|
|
deleteCourse,
|
|
fetchEnrollments,
|
|
enrollUser,
|
|
updateProgress,
|
|
completeEnrollment,
|
|
deleteEnrollment,
|
|
updateEnrollment,
|
|
fetchCertificate,
|
|
generateCertificate,
|
|
fetchCertificates,
|
|
submitQuiz,
|
|
updateLesson,
|
|
fetchAcademyStatistics,
|
|
generateCourse,
|
|
generateAllCourses,
|
|
generateVideos,
|
|
getVideoStatus,
|
|
} from './api-courses'
|
|
|
|
export {
|
|
fetchSDKAcademyList,
|
|
createMockCourses,
|
|
createMockEnrollments,
|
|
createMockStatistics,
|
|
} from './api-mock-data'
|