Converts new document type back into old document type. This allows for a smoother transition from old to new
npm i @vtfk/minelev-document-converter
Import the module Then call it with the document object and the language you want for the old document
const convert = require('@vtfk/minelev-document-converter');
const oldDocument = convert(newDocument, 'nb');
The following properties will not be given back with the old document, because they are not used anywhere..
- minElevVersion
- skjemaUtfyllingStop
- userAgent