@@ -51,45 +51,42 @@ export function mapDocument(r: DocumentRow): Document {
5151 } ;
5252}
5353
54- export function mapRopaRecord (
55- row : RopaRecordRow ,
56- fields : RopaPersonalDataField [ ]
57- ) : RopaRecord {
54+ export function mapRopaRecord ( row : RopaRecordRow , fields : RopaPersonalDataField [ ] ) : RopaRecord {
5855 return {
59- id : row . id ,
60- bpmnProcessId : row . bpmn_process_id ,
61- processLevel : row . process_level as RopaRecord [ 'processLevel' ] ,
62- title : row . title ,
63- controllerName : row . controller_name ,
64- controllerContact : row . controller_contact ,
65- dpoContact : row . dpo_contact ?? undefined ,
66- purpose : row . purpose ,
67- legalBasisUri : row . legal_basis_uri ,
68- legalBasisLabel : row . legal_basis_label ,
69- gdprArticle : row . gdpr_article ,
70- dataSubjects : row . data_subjects ,
71- recipients : row . recipients ,
56+ id : row . id ,
57+ bpmnProcessId : row . bpmn_process_id ,
58+ processLevel : row . process_level as RopaRecord [ 'processLevel' ] ,
59+ title : row . title ,
60+ controllerName : row . controller_name ,
61+ controllerContact : row . controller_contact ,
62+ dpoContact : row . dpo_contact ?? undefined ,
63+ purpose : row . purpose ,
64+ legalBasisUri : row . legal_basis_uri ,
65+ legalBasisLabel : row . legal_basis_label ,
66+ gdprArticle : row . gdpr_article ,
67+ dataSubjects : row . data_subjects ,
68+ recipients : row . recipients ,
7269 thirdCountryTransfers : row . third_country_transfers ,
73- thirdCountryDetails : row . third_country_details ?? undefined ,
74- retentionPeriod : row . retention_period ,
75- securityMeasures : row . security_measures ,
76- status : row . status as RopaRecord [ 'status' ] ,
77- schemaVersion : row . schema_version ,
78- personalDataFields : fields ,
79- createdAt : row . created_at . toISOString ( ) ,
80- updatedAt : row . updated_at . toISOString ( ) ,
70+ thirdCountryDetails : row . third_country_details ?? undefined ,
71+ retentionPeriod : row . retention_period ,
72+ securityMeasures : row . security_measures ,
73+ status : row . status as RopaRecord [ 'status' ] ,
74+ schemaVersion : row . schema_version ,
75+ personalDataFields : fields ,
76+ createdAt : row . created_at . toISOString ( ) ,
77+ updatedAt : row . updated_at . toISOString ( ) ,
8178 } ;
8279}
8380
8481export function mapRopaField ( row : RopaFieldRow ) : RopaPersonalDataField {
8582 return {
86- id : row . id ,
87- ropaRecordId : row . ropa_record_id ,
88- formId : row . form_id ,
89- fieldKey : row . field_key ,
90- fieldLabel : row . field_label ,
91- dataCategory : row . data_category ,
83+ id : row . id ,
84+ ropaRecordId : row . ropa_record_id ,
85+ formId : row . form_id ,
86+ fieldKey : row . field_key ,
87+ fieldLabel : row . field_label ,
88+ dataCategory : row . data_category ,
9289 specialCategory : row . special_category ,
93- sortOrder : row . sort_order ,
90+ sortOrder : row . sort_order ,
9491 } ;
95- }
92+ }
0 commit comments