UNPKG

@onereach/channel-transformer

Version:

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

9 lines (8 loc) 295 B
import { IZendeskContent } from "../../types"; import { IGenericLocation } from "../../../generic/types/location"; export const transformLocation = (message: IZendeskContent): IGenericLocation => ({ type: 'location', props: { value: Object.values(message.coordinates), } });