Skip to content

Function: getPaginatedComponents() ​

ts
function getPaginatedComponents(
   client, 
   parameters?, 
   options?
): Promise<{
[key: string]: unknown;
  isLast?: boolean;
  maxResults?: number;
  nextPage?: string;
  self?: string;
  startAt?: number;
  total?: number;
  values?: Record<string, any>[];
}>;

Defined in: src/server/api/projectComponents.ts:41

Returns paginated list of filtered active components

Parameters ​

ParameterTypeDescription
clientClient-
parameters?{ maxResults?: string; projectIds?: string; query?: string; startAt?: string; }-
parameters.maxResults?stringThe maximum number of components to return
parameters.projectIds?stringThe set of project ids to filter components
parameters.query?stringThe string that components names will be matched with
parameters.startAt?stringThe index of the first components to return
options?RequestOptions-

Returns ​

Promise<{ [key: string]: unknown; isLast?: boolean; maxResults?: number; nextPage?: string; self?: string; startAt?: number; total?: number; values?: Record<string, any>[]; }>