dm3
dm3 copied to clipboard
Refactor DeliveryInformation Type
Currently, the EnvelopMetadata contains the field
deliveryInformation: string | DeliveryInformation;
When it's encrypted it is from type string, decrypted it is from type DeliveryInformation. This causes problems because it can't be ensured whether deliveryInformation is encrypted on compile time.
Hence we need to distinguish between EnvelopeMetadataEncryptedDI and EnvelopeMetadataDecryptedDI
- [ ] Add the Types
- [ ] Ensure that the objects are properly encoded where the new types are used
- [ ] Think about the implications on the database. Is it necessary to migrate because the DTO changes?