Skip to main content

varo@1.0.0

Functions

convertToEms

convertToEms(messageContents) ⇒ Operation

Processes EMS data from the provided list of message contents.

ParamTypeDescription
messageContentsArrayArray of message content objects.

This operation writes the following keys to state:

State KeyDescription
dataThe converted, EMS-compliant version of each message contents.

Example: Convert data to EMS-compliant data.

convertToEms(
[
{
metadata: { content: '', filename: '' },
data: { content: '', filename: '' }
}
]
);