@upv/ushi-shared
Version:
Shared DTOs, types, and utilities for the USHI platform (LMS, Trials, Social, Wallet).
29 lines (28 loc) • 1.09 kB
TypeScript
import BaseDto from '../base/BaseDto';
import { IDemographicsProfileDto, IDemographicsProfile } from '../../../types/demographicsProfile';
/**
* DemographicsProfileDto
*
* DTO for user identity and demographics used in trials, personalization, and segmentation.
*/
declare class DemographicsProfileDto extends BaseDto<IDemographicsProfileDto> {
protected _userId: string;
protected _birthDate?: string;
protected _sex?: 'male' | 'female' | 'other';
protected _gender?: string;
protected _ethnicity?: string;
protected _country?: string;
protected _zipCode?: string;
protected _language?: string;
constructor(data: IDemographicsProfileDto);
serialize(): Promise<IDemographicsProfile>;
get userId(): string;
get birthDate(): string | undefined;
get sex(): 'male' | 'female' | 'other' | undefined;
get gender(): string | undefined;
get ethnicity(): string | undefined;
get country(): string | undefined;
get zipCode(): string | undefined;
get language(): string | undefined;
}
export default DemographicsProfileDto;