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

Function collectWorkOSList

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

Source from the content-addressed store, hash-verified

311 response.listMetadata?.after ?? response.list_metadata?.after ?? null;
312
313export const collectWorkOSList = async <Resource>(
314 response: WorkOSAutoPaginatable<Resource>,
315): Promise<WorkOSCollectedList<Resource>> => {
316 const data = response.listMetadata.after ? await response.autoPagination() : response.data;
317 return {
318 object: "list",
319 data,
320 listMetadata: completedListMetadata,
321 };
322};
323
324export const collectRawWorkOSList = async (
325 loadPage: (after?: string) => Promise<unknown>,

Callers 2

workos.tsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected