UNPKG

@datadome/fraud-sdk-node

Version:

Fraud Protection - Node.js SDK

25 lines 853 B
import { DataDomeRequest } from '../api'; export declare enum ActionType { LOGIN = "login", REGISTER = "registration", PASSWORD_UPDATE = "password/update", ACCOUNT_UPDATE = "account/update", PAYMENT = "payment" } /** * This class is used to define the common fields for all Events. * * @property {ActionType} action - The action associated with the event. * @property {StatusType} status - The status of the event. Defaults to `StatusType.UNDEFINED` if not provided. * @property {string} account - The account identifier related to the event. */ export declare class DataDomeEvent { action: ActionType; account: string; constructor({ action, account }: { action: ActionType; account: string; }); mergeWith(requestData: DataDomeRequest): DataDomeRequest; } //# sourceMappingURL=event.d.ts.map