Enhance types including potential bots on visits summary endpoint

This commit is contained in:
Alejandro Celaya
2023-03-18 10:29:49 +01:00
parent a1b879a5b4
commit 25aa9b9bd7
2 changed files with 13 additions and 7 deletions

View File

@@ -40,13 +40,24 @@ export interface ShlinkPaginator {
totalItems: number;
}
export interface ShlinkVisitsSummary {
total: number;
nonBots: number;
bots: number;
}
export interface ShlinkVisits {
data: Visit[];
pagination: ShlinkPaginator;
}
export interface ShlinkVisitsOverview {
nonOrphanVisits?: ShlinkVisitsSummary; // Optional only before Shlink 3.5.0
orphanVisits?: ShlinkVisitsSummary; // Optional only before Shlink 3.5.0
/** @deprecated */
visitsCount: number;
/** @deprecated */
orphanVisitsCount: number;
}