dm3 icon indicating copy to clipboard operation
dm3 copied to clipboard

Refactor DeliveryInformation Type

Open AlexNi245 opened this issue 1 year ago • 0 comments

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?

AlexNi245 avatar Apr 17 '23 08:04 AlexNi245