File: /var/www/fintechfuel/src/type/form.ts
export interface IForm {
loading: boolean;
error: boolean;
data: {
[name: string]: string | boolean | null | number;
};
response: {
[name: string]: string;
};
status: number;
}
export interface IRequest {
agreement: boolean;
token: string;
email: string;
name: string;
first_name?: string;
last_name?: string;
text: string;
phone?: string;
message: string;
price?: string;
landing_url: string;
language: string;
lang_by_browser?: string;
utm_campaign?: string;
utm_medium?: string;
utm_source?: string;
utm_content?: string;
utm_term?: string;
business_identification?: string;
region?: string;
country_code?: string;
gclid?: string;
roistatId?: string;
company_name?: string;
short_bio?: string;
tg_channel?: string;
instagram?: string;
youtube?: string;
tiktok?: string;
ftd_sum?: string;
has_network?: string;
regions?: string[];
launch_reason?: string;
}
export type IRequestField = keyof IRequest;
export type IRecord = Record<string, string | boolean | undefined | number>;