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

Function mapTrelloChecklist

apps/sim/tools/trello/shared.ts:195–207  ·  view source on GitHub ↗
(value: unknown)

Source from the content-addressed store, hash-verified

193}
194
195export function mapTrelloChecklist(value: unknown): TrelloChecklist {
196 if (!isRecordLike(value)) {
197 throw new Error('Trello returned an invalid checklist object')
198 }
199
200 return {
201 id: getRequiredString(value.id, 'id'),
202 name: getRequiredString(value.name, 'name'),
203 idCard: getRequiredString(value.idCard, 'idCard'),
204 idBoard: getOptionalString(value.idBoard),
205 pos: getNumber(value.pos),
206 }
207}
208
209export function mapTrelloAction(value: unknown): TrelloAction {
210 if (!isRecordLike(value)) {

Callers 1

add_checklist.tsFile · 0.90

Calls 4

isRecordLikeFunction · 0.90
getRequiredStringFunction · 0.85
getOptionalStringFunction · 0.85
getNumberFunction · 0.70

Tested by

no test coverage detected