GetEventsByTypeResponseDTO
Package: @nauth-toolkit/core
Type: DTO (Response)
Response DTO containing paginated audit events filtered by event type.
- NestJS
- Express
- Fastify
import { GetEventsByTypeResponseDTO } from '@nauth-toolkit/nestjs';
import { GetEventsByTypeResponseDTO } from '@nauth-toolkit/core';
import { GetEventsByTypeResponseDTO } from '@nauth-toolkit/core';
Properties
| Property | Type | Required | Description |
|---|---|---|---|
data | IAuthAudit[] | Yes | Array of audit records |
total | number | Yes | Total number of records matching query |
page | number | Yes | Current page number |
limit | number | Yes | Number of records per page |
totalPages | number | Yes | Total number of pages (Math.ceil(total / limit)) |
Example
{
"data": [
{
"id": 1,
"userId": 123,
"eventType": "SUSPICIOUS_ACTIVITY",
"eventStatus": "SUSPICIOUS",
"createdAt": "2025-01-15T10:30:00.000Z"
}
],
"total": 25,
"page": 1,
"limit": 50,
"totalPages": 1
}