#1 PDF Application on GitHub that lets you edit PDFs on any device anywhere
TypeScript dockerhacktoberfestjavapdfpdf-converterpdf-editorpdf-manipulationpdf-mergerpdf-ocrpdf-toolspdf-web-appspdfmergerself-hosted
import type { UsersBackend } from "@processor/api/usersBackend";
import {
fetchAuthConfig,
fetchUsers,
inviteMember,
removeMember,
} from "@processor/api/users";
import { fetchTeams, renameTeam } from "@processor/api/teams";
/**
* Self-hosted (proprietary) build: the existing admin-endpoint calls, unchanged.
* This is exactly the behaviour the Users page had before the seam existed - it
* just re-exports the `@processor/api/{users,teams}` functions behind the contract.
*/
export const usersBackend: UsersBackend = {
fetchUsers,
fetchTeams,
fetchAuthConfig,
inviteMember,
renameTeam,
removeMember,
// Self-hosted has no pending-invite concept; the control is gated off
// (manageInvitations=false) so this is never reached.
cancelInvitation() {
return Promise.reject(
new Error("Cancelling invitations is not supported on self-hosted"),
);
},
};