mirror of
https://github.com/shlinkio/shlink-web-client.git
synced 2026-03-11 10:03:51 +00:00
Migrated first short URL reducers to typescript
This commit is contained in:
29
src/short-urls/data/index.ts
Normal file
29
src/short-urls/data/index.ts
Normal file
@@ -0,0 +1,29 @@
|
||||
import { Nullable } from '../../utils/utils';
|
||||
|
||||
export interface ShortUrlData {
|
||||
longUrl: string;
|
||||
tags?: string[];
|
||||
customSlug?: string;
|
||||
shortCodeLength?: number;
|
||||
domain?: string;
|
||||
validSince?: string;
|
||||
validUntil?: string;
|
||||
maxVisits?: number;
|
||||
findIfExists?: boolean;
|
||||
}
|
||||
|
||||
export interface ShortUrl {
|
||||
shortCode: string;
|
||||
shortUrl: string;
|
||||
longUrl: string;
|
||||
visitsCount: number;
|
||||
meta: Required<Nullable<ShortUrlMeta>>;
|
||||
tags: string[];
|
||||
domain: string | null;
|
||||
}
|
||||
|
||||
export interface ShortUrlMeta {
|
||||
validSince?: string;
|
||||
validUntil?: string;
|
||||
maxVisits?: number;
|
||||
}
|
||||
Reference in New Issue
Block a user