change history to clean
This commit is contained in:
@@ -3,7 +3,7 @@ export type BrowserStats = {
|
||||
extensionCount: number;
|
||||
bookmarkCount: number;
|
||||
passwordSiteCount: number;
|
||||
historyDomainCount: number;
|
||||
historyCleanupProfileCount: number;
|
||||
};
|
||||
|
||||
export type ProfileSummary = {
|
||||
@@ -16,6 +16,7 @@ export type ProfileSummary = {
|
||||
defaultAvatarStrokeColor: number | null;
|
||||
avatarLabel: string;
|
||||
path: string;
|
||||
historyCleanup: HistoryCleanupSummary;
|
||||
};
|
||||
|
||||
export type ExtensionSummary = {
|
||||
@@ -41,11 +42,28 @@ export type PasswordSiteSummary = {
|
||||
profiles: AssociatedProfileSummary[];
|
||||
};
|
||||
|
||||
export type HistoryDomainSummary = {
|
||||
domain: string;
|
||||
visitCount: number;
|
||||
export type HistoryCleanupSummary = {
|
||||
history: CleanupFileStatus;
|
||||
topSites: CleanupFileStatus;
|
||||
visitedLinks: CleanupFileStatus;
|
||||
};
|
||||
|
||||
export type CleanupFileStatus = "found" | "missing";
|
||||
|
||||
export type CleanupHistoryInput = {
|
||||
browserId: string;
|
||||
profileIds: string[];
|
||||
profiles: AssociatedProfileSummary[];
|
||||
};
|
||||
|
||||
export type CleanupHistoryResult = {
|
||||
profileId: string;
|
||||
deletedFiles: string[];
|
||||
skippedFiles: string[];
|
||||
error: string | null;
|
||||
};
|
||||
|
||||
export type CleanupHistoryResponse = {
|
||||
results: CleanupHistoryResult[];
|
||||
};
|
||||
|
||||
export type AssociatedProfileSummary = {
|
||||
@@ -73,7 +91,6 @@ export type ProfileSortKey = "name" | "email" | "id";
|
||||
export type ExtensionSortKey = "name" | "id";
|
||||
export type BookmarkSortKey = "title" | "url";
|
||||
export type PasswordSiteSortKey = "domain" | "url";
|
||||
export type HistoryDomainSortKey = "visits" | "domain";
|
||||
export type AssociatedProfileSortKey = "id" | "name";
|
||||
export type ActiveSection = "profiles" | "extensions" | "bookmarks" | "passwords" | "history";
|
||||
export type AppPage = "browserData" | "configuration";
|
||||
@@ -111,7 +128,6 @@ export type BrowserView = {
|
||||
extensions: ExtensionSummary[];
|
||||
bookmarks: BookmarkSummary[];
|
||||
passwordSites: PasswordSiteSummary[];
|
||||
historyDomains: HistoryDomainSummary[];
|
||||
stats: BrowserStats;
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user