(value: unknown)
| 190 | } |
| 191 | |
| 192 | export function mapReply(value: unknown): EmailBisonReply { |
| 193 | const record = toRecord(value) |
| 194 | |
| 195 | return { |
| 196 | id: toNullableNumber(record.id), |
| 197 | uuid: toStringOrNull(record.uuid), |
| 198 | folder: toStringOrNull(record.folder), |
| 199 | subject: toStringOrNull(record.subject), |
| 200 | read: toNullableBoolean(record.read), |
| 201 | interested: toNullableBoolean(record.interested), |
| 202 | automated_reply: toNullableBoolean(record.automated_reply), |
| 203 | html_body: toStringOrNull(record.html_body), |
| 204 | text_body: toStringOrNull(record.text_body), |
| 205 | raw_body: toStringOrNull(record.raw_body), |
| 206 | headers: toStringOrNull(record.headers), |
| 207 | date_received: toStringOrNull(record.date_received), |
| 208 | type: toStringOrNull(record.type), |
| 209 | tracked_reply: toNullableBoolean(record.tracked_reply), |
| 210 | scheduled_email_id: toStringNumberOrNull(record.scheduled_email_id), |
| 211 | campaign_id: toStringNumberOrNull(record.campaign_id), |
| 212 | lead_id: toNullableNumber(record.lead_id), |
| 213 | sender_email_id: toNullableNumber(record.sender_email_id), |
| 214 | raw_message_id: toStringOrNull(record.raw_message_id), |
| 215 | from_name: toStringOrNull(record.from_name), |
| 216 | from_email_address: toStringOrNull(record.from_email_address), |
| 217 | primary_to_email_address: toStringOrNull(record.primary_to_email_address), |
| 218 | to: toArray(record.to).map(mapReplyAddress), |
| 219 | cc: toStringOrNull(record.cc), |
| 220 | bcc: toStringOrNull(record.bcc), |
| 221 | parent_id: toStringNumberOrNull(record.parent_id), |
| 222 | attachments: toArray(record.attachments).map(mapReplyAttachment), |
| 223 | created_at: toStringOrNull(record.created_at), |
| 224 | updated_at: toStringOrNull(record.updated_at), |
| 225 | } |
| 226 | } |
| 227 | |
| 228 | export function actionOutput(value: unknown): { success: boolean; message: string | null } { |
| 229 | const record = toRecord(value) |
nothing calls this directly
no test coverage detected