apps/gateway/src/services/portal-invite-repository.ts
Metadata
- Purpose: Gateway service module implementing business logic or integrations.
- Domain:
applications - Language:
ts - Bytes: 4210
- Lines: 178
- Content hash (short):
69147f70 - Source (start): apps/gateway/src/services/portal-invite-repository.ts:1
- Source (end): apps/gateway/src/services/portal-invite-repository.ts:178
Indexed Symbols
normalizeStatus(line 35, function) - Implements normalize status for service-layer operations.mapInvite(line 45, function) - Implements map invite for service-layer operations.createPortalInvite(line 62, function) - Implements create portal invite for service-layer operations.listPortalInvites(line 109, function) - Implements list portal invites for service-layer operations.revokePortalInvite(line 136, function) - Implements revoke portal invite for service-layer operations.getPortalInviteByJti(line 150, function) - Implements get portal invite by jti for service-layer operations.
Markdown Headings (if applicable)
No markdown headings detected.
Source Preview
import { query } from "./postgres.js";
type PortalInviteStatus = "active" | "revoked" | "expired";
type PortalInviteRow = {
id: string;
workspace_id: string;
email: string;
client_id: string | null;
token_jti: string;
token_subject: string;
status: string;
expires_at: string;
created_by: string;
created_at: string;
revoked_at: string | null;
revoked_by: string | null;
};
export type PortalInvite = {
id: string;
workspaceId: string;
email: string;
clientId: string | null;
tokenJti: string;