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

Function listOptions

packages/core/api/src/admin/handlers.ts:27–35  ·  view source on GitHub ↗
(query: {
  readonly limit?: number | undefined;
  readonly offset?: number | undefined;
  readonly email?: string | undefined;
})

Source from the content-addressed store, hash-verified

25// `email` is normalized here rather than in the contract schema, so the filter
26// and the single-user path parameter share ONE rule (`normalizeEmail`).
27const listOptions = (query: {
28 readonly limit?: number | undefined;
29 readonly offset?: number | undefined;
30 readonly email?: string | undefined;
31}): AdminUsersListOptions => ({
32 ...(query.limit === undefined ? {} : { limit: query.limit }),
33 ...(query.offset === undefined ? {} : { offset: query.offset }),
34 ...(query.email === undefined ? {} : { email: normalizeEmail(query.email) }),
35});
36
37export const AdminUsersHandlers = HttpApiBuilder.group(
38 AdminUsersHttpApi,

Callers 1

handlers.tsFile · 0.85

Calls 1

normalizeEmailFunction · 0.90

Tested by

no test coverage detected