MCPcopy Create free account
hub / github.com/simstudioai/sim / resolveBoard

Function resolveBoard

apps/sim/connectors/monday/monday.ts:199–206  ·  view source on GitHub ↗

* Resolves a stable board name + id for an item, preferring the nested `board` * field and falling back to the board the item was listed under.

(
  item: MondayItem,
  fallback?: { id: string; name: string | null }
)

Source from the content-addressed store, hash-verified

197 * field and falling back to the board the item was listed under.
198 */
199function resolveBoard(
200 item: MondayItem,
201 fallback?: { id: string; name: string | null }
202): { id: string; name: string } {
203 const id = item.board?.id ?? fallback?.id ?? ''
204 const name = item.board?.name ?? fallback?.name ?? ''
205 return { id, name }
206}
207
208function buildSourceUrl(item: MondayItem): string | undefined {
209 return item.url ?? undefined

Callers 1

itemToDocumentFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected