UNPKG

@onereach/channel-transformer

Version:

Convert data model between different channels (Slack, Microsoft Teams, Generic...)

18 lines (15 loc) 455 B
import { IGenericAttachments } from "../../../generic/types"; import { IZendeskContent } from "../../types"; export const transformFileUpload = (message: IZendeskContent): IGenericAttachments => { const result: IGenericAttachments = { type: "attachments", props: { value: { staticValue: [{ text: message.mediaUrl }] } } }; return result; };