MCPcopy Create free account
hub / github.com/UsefulSoftwareCo/executor / collectWorkOSList

Function collectWorkOSList

apps/cloud/src/auth/workos.ts:335–344  ·  view source on GitHub ↗
(
  response: WorkOSAutoPaginatable<Resource>,
)

Source from the content-addressed store, hash-verified

333 response.listMetadata?.after ?? response.list_metadata?.after ?? null;
334
335export const collectWorkOSList = async <Resource>(
336 response: WorkOSAutoPaginatable<Resource>,
337): Promise<WorkOSCollectedList<Resource>> => {
338 const data = response.listMetadata.after ? await response.autoPagination() : response.data;
339 return {
340 object: "list",
341 data,
342 listMetadata: completedListMetadata,
343 };
344};
345
346export const collectRawWorkOSList = async (
347 loadPage: (after?: string) => Promise<unknown>,

Callers 2

workos.tsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected