Fraud SDK Node module 2.2.0

  • Add support for custom events (CustomEvent) via the new /v1/validate/custom and /v1/collect/custom endpoints, to send any business event not covered by login, registration, account update or password update
  • Add optional customFields (up to 10 custom business data fields) and partnerId to all events
  • Add optional failReason field to LoginEvent
  • Add optional status and failReason fields to RegistrationEvent
  • Add optional accountType and accountCreationDate fields to LoginEvent, RegistrationEvent, and AccountUpdateEvent
  • Add optional accountCreationDate field to PasswordUpdateEvent
  • Add optional dateOfBirth field to the User interface
  • Update the truncation limit of the clientID header field to 512 characters
  • Truncate the account field to 320 characters
  • Remove ActionType.PAYMENT, which does not correspond to any Account Protect API endpoint
  • Fix the title value in the User interface from 'ms' to 'mrs', matching the Account Protect API
  • Retype Response.location from Address to the new Location interface ({ countryCode, country, city }), matching the Account Protect API response