⚡ Project management that doesn't become the project. Boards, Gantt charts, and GitHub integration. Self-host it or use Kaneo Cloud.
TypeScript honoissue-managementissue-trackerjira-alternativekanbanlinear-alternativemcpproject-managementreactself-hostedtypescript
import { client } from "@kaneo/libs";
import { HttpError } from "@/lib/http-error";
import {
ADMIN_USERS_PAGE_SIZE,
ADMIN_USERS_SEARCH_MAX_LENGTH,
type AdminUserFilters,
} from "./types";
export async function getAdminUsers(
search: string,
page: number,
filters: AdminUserFilters = {},
) {
const normalizedSearch = search
.trim()
.slice(0, ADMIN_USERS_SEARCH_MAX_LENGTH);
const response = await client.admin.users.$get({
query: {
...(normalizedSearch ? { search: normalizedSearch } : {}),
...filters,
page: String(page + 1),
limit: String(ADMIN_USERS_PAGE_SIZE),
},
});
if (!response.ok) {
throw await HttpError.fromResponse(response);
}
return response.json();
}