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

Function collectWorkOSList

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

Source from the content-addressed store, hash-verified

68 response.listMetadata?.after ?? response.list_metadata?.after ?? null;
69
70export const collectWorkOSList = async <Resource>(
71 response: WorkOSAutoPaginatable<Resource>,
72): Promise<WorkOSCollectedList<Resource>> => {
73 const data = response.listMetadata.after ? await response.autoPagination() : response.data;
74 return {
75 object: "list",
76 data,
77 listMetadata: completedListMetadata,
78 };
79};
80
81export const collectRawWorkOSList = async (
82 loadPage: (after?: string) => Promise<unknown>,

Callers 2

workos.tsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected