UNPKG

@datadome/fraud-sdk-node

Version:

Fraud Protection - Node.js SDK

20 lines 631 B
export var ActionType; (function (ActionType) { ActionType["LOGIN"] = "login"; ActionType["REGISTER"] = "registration"; ActionType["PASSWORD_UPDATE"] = "password/update"; ActionType["ACCOUNT_UPDATE"] = "account/update"; ActionType["PAYMENT"] = "payment"; })(ActionType || (ActionType = {})); export class DataDomeEvent { constructor({ action, account }) { this.action = action; this.account = account; } mergeWith(requestData) { requestData.event = this.action; requestData.account = this.account; return requestData; } } //# sourceMappingURL=event.js.map