@hhgtech/hhg-components
Version:
Hello Health Group common components
116 lines (115 loc) • 3.83 kB
TypeScript
import { LOCALE, LocaleType } from "../types";
export declare const basePath: string;
export declare const SSO_URL: string;
export declare const USER_GEOLOCATION_COORDINATES_COOKIE = "userGeoLocationCoordinates";
export type CategoriesLayout = 'short' | 'long';
export type LogoType = 'hellobacsi' | 'hellosehat' | 'hellohealth' | 'hellotogether' | 'hellocare' | 'logomark' | 'hellodoctor' | 'hellokrupet' | 'helloswasthya' | 'hellosayarwon' | 'helloyishi' | 'hellokhunmor' | 'hellodoktor' | 'marryBaby' | 'hellojiankang';
export declare const LOCALE_SPECS: {
[key: string]: {
[key: string]: string;
};
};
export declare const COUNTRY_LIST: {
countryCode: string;
countryName: string;
languageCode: string;
}[];
export declare const STATIC_PAGES: {
[key in LocaleType]: {
[key: string]: string | null;
};
};
export declare const UP_BASEPATH = "user";
export declare const LOCALE_HAS_COMMUNITY_SITE: string[];
export declare const HAS_CLINITY_DOWNLOAD_SITE: string[];
export declare const LOCALE_HAS_CART_CARE_SITE: string[];
export declare const ECOM_LOCALES: string[];
export declare const DATA_PRIVACY_LOCALES: string[];
export declare const CARE_LOCALES: string[];
export declare const CARE_BOOKING_LOCALES: string[];
export declare const VIDEO_LOCALES: string[];
export declare const FAVICONS: {
[key: string]: ({
type: 'link';
rel: string;
href: string;
sizes?: string;
} | {
type: 'meta';
name: string;
content: string;
})[];
};
export declare enum QUERY_HEALTH_TOOL {
bmi = "mi",
gender = "gndr",
age = "ge",
slug = "slug",
resultId = "resultId",
bmr = "mr",
height = "gt",
weight = "wght",
source = "surc",
type = "tp",
startDate = "sd",
additional = "tnl",
week = "wk",
twins = "twn",
weightBefore = "wb",
yourself = "yrslf",
intensity = "sy",
rate = "rt",
method = "mthd",
day = "dy",
pwg = "pwg",
cycle = "le",
period = "prd",
access_token = "tkn",
name = "nm",
id = "id",
activityLevel = "actl",
status = "status",
birthday = "brd",
withImperialUnit = "lbs"
}
export declare const ISO_FORMAT: {
[key in LOCALE]: {
dateFormat: string;
separator: ',' | '.';
};
};
export * from "./site";
export * from "./domainLocales";
export * from "./riskScreener";
export * from "./isProduction";
export declare const BEARER_TOKEN_COOKIE = "hhg_user_token";
export declare const BEARER_REFRESH_TOKEN_COOKIE = "hhg_user_refresh_token";
export declare const DATE_FNS_LOCALE: {
[key in LOCALE | string]?: Locale;
};
export declare const CDN_ADDRESS = "https://cdn.hellohealthgroup.com/countries";
export declare const GA_TOKEN_COOKIE = "_ga";
export declare const API_DATE_FORMAT = "YYYY-MM-DD";
export declare const DATE_FNS_DATE_FORMAT = "dd-MM-yyyy";
export declare const ZINDEX_SSO = 9999999;
export declare const ZINDEX_HEADER = 305;
export declare const VIDEO_DETAIL_TEMP_STORAGE = "video_item_detail";
export declare const HHG_CART_CARE_STORE_KEY = "hhg_cart_care_store_key";
export declare enum EMERGENCY_STATUS {
UNAVAILABLE = 0,
AVAILABLE = 1
}
export declare enum ServicePrice {
FIXED = 1,
STARTING = 2,
RANGE = 3
}
export declare enum SERVICE_TYPE {
VACCINE = "VACCINE",
IVF = "IVF",
EGG_FREEZING = "EGG_FREEZING",
HEALTH_SCREENER = "HEALTH_SCREENER"
}
export type HospitalProductType = 'vaccine' | 'ivf' | 'egg-freezing' | 'screener';
export declare const serviceTypeByProductType: Record<HospitalProductType, SERVICE_TYPE>;
export declare const productTypeByServiceType: Record<SERVICE_TYPE, HospitalProductType>;