@cranberry-money/shared-types
Version:
Shared TypeScript type definitions for Blueberry platform
19 lines • 1.02 kB
TypeScript
import type { BaseEntity } from '../../common/base-patterns';
export interface UserProfile extends BaseEntity {
citizenshipCountry: string;
fullName: string;
dateOfBirth: string;
residentialAddress: string;
isPoliticallyExposed: boolean;
phoneNumber: string;
investmentGoals: string[];
riskTolerance: string | null;
withdrawPreferences: string | null;
isIdVerified: boolean;
termsAndConditions: boolean;
isSignupCompleted: boolean;
}
export type CreateUserProfile = Omit<UserProfile, 'uuid' | 'createdAt' | 'updatedAt' | 'isIdVerified' | 'isSignupCompleted' | 'investmentGoals' | 'riskTolerance' | 'withdrawPreferences' | 'termsAndConditions'>;
export type UpdateUserProfile = Partial<Omit<UserProfile, 'uuid' | 'createdAt' | 'updatedAt'>>;
export type CompleteUserProfile = Pick<UserProfile, 'termsAndConditions' | 'isSignupCompleted'> & Partial<Pick<UserProfile, 'investmentGoals' | 'riskTolerance' | 'withdrawPreferences'>>;
//# sourceMappingURL=user-profile.d.ts.map