@upv/ushi-shared
Version:
Shared DTOs, types, and utilities for the USHI platform (LMS, Trials, Social, Wallet).
23 lines (22 loc) • 610 B
TypeScript
import { PersonStatus } from '../core';
import { IBaseDtoInput, IBaseDtoOutput } from './base';
/**
* IPersonDto - Raw input shape for global Person entity
*/
export type IPersonStatus = PersonStatus | (string & {});
export interface IPersonDto extends IBaseDtoInput {
personId: string;
cognitoId?: string;
name: string;
email: string;
phoneNumber?: string;
status: IPersonStatus;
}
export interface IPerson extends IBaseDtoOutput {
personId: string;
cognitoId?: string | null;
name: string;
email: string;
phoneNumber: string | null;
status: IPersonStatus;
}