@hhgtech/hhg-components
Version:
Hello Health Group common components
157 lines (156 loc) • 4.2 kB
TypeScript
export type LocaleType = 'vi-VN' | 'id-ID' | 'ms-MY' | 'km-KH' | 'en-PH' | 'th-TH' | 'my-MM' | 'zh-TW' | 'hi-IN' | 'tl-PH' | 'zh-CN';
export type DiscoverRole = 'user' | 'admin' | 'local-admin' | 'moderator' | 'ambassador' | 'expert' | 'sponsor' | 'guide' | 'influencer';
export type CareRole = 'user' | 'admin' | 'branch' | 'facility' | 'doctor' | 'super' | 'senior_branch';
export type Role = DiscoverRole | CareRole;
export type GeoLocationPermission = 'granted' | 'denied' | 'unset';
export type GPSType = {
lat: string;
lng: string;
};
export type DataTrackingType = {
dataEventCategory?: string;
dataEventAction?: string;
dataEventLabel?: string;
};
export type DataTrackingTypeHTMLElement = {
'data-event-category'?: string;
'data-event-action'?: string;
'data-event-label'?: string;
};
export type FooterInfo = {
general: {
logo: string;
content: string;
copyright: string;
information?: string;
verified: Array<{
image: string;
url: string;
}>;
};
menu: Array<{
menu_title: string;
items: Array<{
title: string;
url: string;
}>;
}>;
social: {
title: string;
socials: Array<{
icon: string;
name: string;
url: string;
}>;
};
branch: {
title: string;
branch: Array<{
flag: string;
name: string;
url: string;
}>;
};
};
export type FooterInfoMarryBaby = {
general: {
logo: string;
content: string;
information?: string;
copyright: string;
verified: Array<{
image: string;
url: string;
}>;
};
menu: Array<{
menu_title: string;
items: Array<{
title: string;
url: string;
}>;
}>;
socials: Array<{
icon: string;
name: string;
url: string;
}>;
};
export type SiteType = 'marryBaby' | 'helloSites';
export type UserRole = 'user' | 'admin' | 'expert';
export type UserInfo = {
name?: string;
phone?: string;
username?: string;
title?: string;
avatar?: string;
email?: string;
role?: Role;
phone_verified?: boolean;
birthday?: string;
gender?: number;
id?: number;
userId?: number | string;
bookmarks?: Array<string | number>;
coralToken?: {
token?: string;
isTemp?: boolean;
};
total_bookmark?: number;
first_time_bookmark?: boolean;
first_time_login?: number;
provider?: string;
phone_verified_at?: string;
verify_phone_code?: string;
city_id?: string;
type_of_pass?: string;
is_new?: number;
communities_interacted?: 0 | 1;
city_name?: string;
is_pass?: boolean;
area_code?: string;
email_verified_at?: string;
uid?: string;
};
export type ProjectType = 'care' | 'ecom' | 'discover' | 'together' | 'profile' | 'marryBaby';
export * from "./BabyGrowth";
export * from "./Locale";
export * from "./HealthTool";
export * from "./Onboarding";
export * from "./BabyVaccination";
export * from "./Subot";
export * from "./SubotInline";
export * from "./Video";
export type OvulationLocalStoredType = {
cycle: number;
periodDateStart: Date;
periodLength: number;
};
export type SpotlightTemplate = 'default' | 'super_content' | 'landing' | 'services-connection';
export declare enum SocialType {
Facebook = "facebook",
Zalo = "zalo",
Twitter = "twitter",
WhatsApp = "whatsApp",
Line = "line",
Instagram = "instagram",
LinkedIn = "linkedin",
Youtube = "youtube",
Tiktok = "tiktok",
Telegram = "telegram",
Viber = "viber"
}
export declare const COMMON_DATE_TRANSLATE_KEY: {
DD: {
id: string;
defaultMessage: string;
};
MM: {
id: string;
defaultMessage: string;
};
YYYY: {
id: string;
defaultMessage: string;
};
};