Split the monolithic file into three content modules plus a barrel re-export: - compliance-scope-profiling-blocks.ts (489 LOC): blocks 1-7, hidden questions, autofill IDs - compliance-scope-profiling-vvt-blocks.ts (274 LOC): blocks 8-9, SCOPE_QUESTION_BLOCKS aggregate - compliance-scope-profiling-helpers.ts (359 LOC): all prefill/export/progress functions - compliance-scope-profiling.ts (41 LOC): barrel re-export preserving existing import paths All files under the 500 LOC hard cap. No consumer changes needed. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
42 lines
1.0 KiB
TypeScript
42 lines
1.0 KiB
TypeScript
/**
|
|
* Compliance Scope Profiling -- barrel re-export.
|
|
*
|
|
* Block constants 1-7 and hidden questions live in
|
|
* ./compliance-scope-profiling-blocks
|
|
*
|
|
* Blocks 8-9 and the aggregated SCOPE_QUESTION_BLOCKS array live in
|
|
* ./compliance-scope-profiling-vvt-blocks
|
|
*
|
|
* All helper/export functions live in
|
|
* ./compliance-scope-profiling-helpers
|
|
*/
|
|
|
|
// --- data / constants ---
|
|
export {
|
|
PROFILE_AUTOFILL_QUESTION_IDS,
|
|
HIDDEN_SCORING_QUESTIONS,
|
|
} from './compliance-scope-profiling-blocks'
|
|
|
|
// --- blocks aggregate ---
|
|
export {
|
|
SCOPE_QUESTION_BLOCKS,
|
|
} from './compliance-scope-profiling-vvt-blocks'
|
|
|
|
// --- all functions ---
|
|
export {
|
|
prefillFromCompanyProfile,
|
|
getAutoFilledScoringAnswers,
|
|
getProfileInfoForBlock,
|
|
prefillFromVVTAnswers,
|
|
prefillFromLoeschfristenAnswers,
|
|
exportToVVTAnswers,
|
|
exportToLoeschfristenAnswers,
|
|
exportToTOMProfile,
|
|
isBlockComplete,
|
|
getBlockProgress,
|
|
getTotalProgress,
|
|
getAnswerValue,
|
|
getAllQuestions,
|
|
getUnansweredRequiredQuestions,
|
|
} from './compliance-scope-profiling-helpers'
|