File: /var/www/affiliate.casatrade/src/type/form.ts
export interface IForm {
loading: boolean;
error: boolean;
data: {
[name: string]: string | boolean | null | number;
};
response: {
[name: string]: IAffStoreErrorFormat | null | string;
};
status: number;
}
export interface IAffStoreErrorFormat {
key: string
params?: {
field: string
value: string
}
}
export interface IRequest {
agreement: boolean;
token: string;
email: string;
password: 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;
}
export type IRequestField = keyof IRequest;
export type IRecord = Record<string, string | boolean | undefined | number>;