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

Function getVantaListResults

apps/sim/tools/vanta/utils.ts:309–320  ·  view source on GitHub ↗
(data: unknown)

Source from the content-addressed store, hash-verified

307 * list endpoint returns.
308 */
309export function getVantaListResults(data: unknown): {
310 data: JsonRecord[]
311 pageInfo: VantaPageInfo | null
312} {
313 if (!isRecordLike(data) || !isRecordLike(data.results)) {
314 return { data: [], pageInfo: null }
315 }
316 return {
317 data: getRecordArray(data.results.data),
318 pageInfo: normalizeVantaPageInfo(data.results.pageInfo),
319 }
320}
321
322export function normalizeVantaPageInfo(value: unknown): VantaPageInfo | null {
323 if (!isRecordLike(value)) return null

Callers 1

buildVantaOutputFunction · 0.90

Calls 3

isRecordLikeFunction · 0.90
normalizeVantaPageInfoFunction · 0.85
getRecordArrayFunction · 0.70

Tested by

no test coverage detected