Skip to content

apps/api/src/features/auth/auth.dto.ts ​

Auto-generated by scripts/generate-file-docs.ts. Do not edit — overwritten on every run.

Purpose ​

DTO mappers for the auth feature. The Prisma User row carries internal columns (passwordHash, externalUserId, approvedById, updatedAt, lastLoginAt, ...). The API contract exposes only the documented UserProfile fields (api-contracts.md §4). These mappers are the single boundary that enforces "never leak passwordHash" and normalizes enum casing (Prisma uppercase → wire-format lowercase). /

Exports ​

  • export type RoleSlug
  • export type UserStatusSlug
  • export type CredentialTypeSlug
  • export interface UserProfile
  • export type GenderSlug
  • export interface MemberSummary
  • export function toRoleSlug
  • export function toStatusSlug
  • export function toCredentialTypeSlug
  • export function toUserProfile
  • export function toMemberSummary

Imports ​

  • @hch/shared-types
  • @prisma/client

Imported by ​

Heritage Community Hub — Internal. Access restricted via Cloudflare Access + Entra ID.