(query: {
readonly limit?: number | undefined;
readonly offset?: number | undefined;
readonly email?: string | undefined;
})
| 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`). |
| 27 | const 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 | |
| 37 | export const AdminUsersHandlers = HttpApiBuilder.group( |
| 38 | AdminUsersHttpApi, |
no test coverage detected