@hhgtech/hhg-components
Version:
Hello Health Group common components
66 lines (65 loc) • 2.17 kB
TypeScript
export declare const Service: {
campaignGetById: (id: string) => Promise<any>;
getCampaignByCode: (campaign_code: any) => Promise<any>;
getSubscriptionBoxInfo: ({ category, site, slug, }: {
category: number | string;
site: string;
slug: string;
}) => Promise<any>;
postSubscriptionBoxLead: ({ data }: {
data: any;
}) => Promise<any>;
postUserInfoFromLeadGen: ({ name }: {
name: string;
}) => Promise<any>;
campaignPostImpression: ({ code, action, title_article, ga_client_id, cookie_id, extra, url, referrer, }: {
code: string;
action: string;
title_article: string;
ga_client_id: string | null;
cookie_id: string | null;
url: string;
extra?: Record<string, string | number>;
referrer?: string;
}) => Promise<any>;
trackingSubscription: (data: {
subscription_title: string;
name: string;
area_code: string;
phone_number: string;
site_domain: string;
url: string;
cookie_id: string;
ga_client_id: string;
article_title: string;
article_id: number;
category_id: string | number;
type: string;
}) => Promise<any>;
validateEmailOrPhoneOnSubot: ({ bot_id, email, phone, }: {
bot_id: number[];
email?: string;
phone?: string;
}) => Promise<any>;
validateEmailOrPhoneOnLeadGen: ({ campaign_id, email, phone, }: {
campaign_id: number[];
email?: string;
phone?: string;
}) => Promise<any>;
validatePhoneNumberOnLeadGen: ({ campaign_id, phone, }: {
campaign_id: number;
phone: string;
}) => Promise<any>;
sendSMSOtpLead: ({ phone, type, }: {
phone: string;
type: 'whatsapp' | 'phone' | 'zalo';
}) => Promise<any>;
verifyOtpLead: ({ phone, otp, type, }: {
phone: string;
otp: string;
type: 'whatsapp' | 'phone' | 'zalo';
}) => Promise<any>;
postPhoneToCtaSubmit: ({ data }: {
data: any;
}) => Promise<any>;
};