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

Function emailBisonRecordData

apps/sim/tools/emailbison/utils.ts:101–107  ·  view source on GitHub ↗
(response: Response, label: string)

Source from the content-addressed store, hash-verified

99}
100
101export async function emailBisonRecordData(response: Response, label: string): Promise<unknown> {
102 const data = await emailBisonData<unknown>(response)
103 if (!isRecordLike(data)) {
104 throw new Error(`Email Bison response did not include a valid ${label} object`)
105 }
106 return data
107}
108
109export function mapLead(value: unknown): EmailBisonLead {
110 const record = toRecord(value)

Callers 9

get_lead.tsFile · 0.90
update_campaign.tsFile · 0.90
update_lead.tsFile · 0.90
create_tag.tsFile · 0.90
create_campaign.tsFile · 0.90
create_lead.tsFile · 0.90

Calls 1

isRecordLikeFunction · 0.90

Tested by

no test coverage detected