-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
bd5842c
commit b26cb56
Showing
3 changed files
with
49 additions
and
65 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,15 @@ | ||
import { createDefaultCodec } from '../helpers'; | ||
import { OneTrustCombinedAssessmentCodec } from './codecs'; | ||
import { flattenOneTrustAssessment } from './flattenOneTrustAssessment'; | ||
|
||
/** | ||
* An object with default values of type OneTrustCombinedAssessmentCodec. It's very | ||
* valuable when converting assessments to CSV. When we flatten it, the resulting | ||
* value always contains all keys that eventually we add to the header. | ||
*/ | ||
export const DEFAULT_ONE_TRUST_COMBINED_ASSESSMENT: OneTrustCombinedAssessmentCodec = | ||
const DEFAULT_ONE_TRUST_COMBINED_ASSESSMENT: OneTrustCombinedAssessmentCodec = | ||
createDefaultCodec(OneTrustCombinedAssessmentCodec); | ||
|
||
export const DEFAULT_ONE_TRUST_ASSESSMENT_CSV_KEYS = Object.keys( | ||
flattenOneTrustAssessment(DEFAULT_ONE_TRUST_COMBINED_ASSESSMENT), | ||
); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters