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

Function collectWorkOSList

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

Source from the content-addressed store, hash-verified

250 response.listMetadata?.after ?? response.list_metadata?.after ?? null;
251
252export const collectWorkOSList = async <Resource>(
253 response: WorkOSAutoPaginatable<Resource>,
254): Promise<WorkOSCollectedList<Resource>> => {
255 const data = response.listMetadata.after ? await response.autoPagination() : response.data;
256 return {
257 object: "list",
258 data,
259 listMetadata: completedListMetadata,
260 };
261};
262
263export const collectRawWorkOSList = async (
264 loadPage: (after?: string) => Promise<unknown>,

Callers 2

workos.tsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected