MCPcopy Index your code
hub / github.com/simstudioai/sim / mapReplyAttachment

Function mapReplyAttachment

apps/sim/tools/emailbison/utils.ts:430–442  ·  view source on GitHub ↗
(value: unknown)

Source from the content-addressed store, hash-verified

428}
429
430function mapReplyAttachment(value: unknown): EmailBisonReplyAttachment {
431 const record = toRecord(value)
432
433 return {
434 id: toNullableNumber(record.id),
435 uuid: toStringOrNull(record.uuid),
436 reply_id: toNullableNumber(record.reply_id),
437 file_name: toStringOrNull(record.file_name),
438 download_url: toStringOrNull(record.download_url),
439 created_at: toStringOrNull(record.created_at),
440 updated_at: toStringOrNull(record.updated_at),
441 }
442}
443
444function toRecord(value: unknown): Record<string, unknown> {
445 return isRecordLike(value) ? value : {}

Callers

nothing calls this directly

Calls 3

toRecordFunction · 0.85
toNullableNumberFunction · 0.85
toStringOrNullFunction · 0.70

Tested by

no test coverage detected