Added ShortUrlStatus concept

This commit is contained in:
Alejandro Celaya
2022-12-18 19:26:30 +01:00
parent 99485cc6d8
commit d1a1b7426e
6 changed files with 105 additions and 40 deletions

View File

@@ -31,7 +31,9 @@ export interface ShortUrl {
shortUrl: string;
longUrl: string;
dateCreated: string;
visitsCount: number;
/** @deprecated */
visitsCount: number; // Deprecated since Shlink 3.4.0
visitsSummary?: ShortUrlVisitsSummary; // Optional only before Shlink 3.4.0
meta: Required<Nullable<ShortUrlMeta>>;
tags: string[];
domain: string | null;
@@ -46,6 +48,12 @@ export interface ShortUrlMeta {
maxVisits?: number;
}
export interface ShortUrlVisitsSummary {
total: number;
nonBots: number;
bots: number;
}
export interface ShortUrlModalProps {
shortUrl: ShortUrl;
isOpen: boolean;