varo@1.0.0
Functions
convertToEms
convertToEms(messageContents) ⇒ Operation
Processes EMS data from the provided list of message contents.
Param | Type | Description |
---|---|---|
messageContents | Array | Array of message content objects. |
This operation writes the following keys to state:
State Key | Description |
---|---|
data | The converted, EMS-compliant version of each message contents. |
Example: Convert data to EMS-compliant data.
convertToEms(
[
{
metadata: { content: '', filename: '' },
data: { content: '', filename: '' }
}
]
);