diff --git a/frontend/src/components/DomainDetails.tsx b/frontend/src/components/DomainDetails.tsx index 6d7b8fc1..ff1238f7 100644 --- a/frontend/src/components/DomainDetails.tsx +++ b/frontend/src/components/DomainDetails.tsx @@ -24,7 +24,7 @@ import { useDomainApi } from 'hooks'; import { DefinitionList } from './DefinitionList'; // @ts-ignore:next-line import { differenceInCalendarDays, parseISO } from 'date-fns'; -import { Webpage } from 'types/webpage'; +import { Webpage } from 'types/domain'; import { useAuthContext } from 'context'; import { Stack } from '@mui/system'; diff --git a/frontend/src/types/domain.ts b/frontend/src/types/domain.ts index 329c2479..2f7f67c7 100644 --- a/frontend/src/types/domain.ts +++ b/frontend/src/types/domain.ts @@ -1,6 +1,6 @@ import { Organization } from './organization'; import { Vulnerability } from './vulnerability'; -import { Webpage } from './webpage'; +import { Scan } from './scan'; export interface Product { // Common name @@ -68,6 +68,20 @@ export interface Service { serviceSource: string | null; } +export interface Webpage { + id: string; + createdAt: Date; + updatedAt: Date; + syncedAt: Date | null; + domain: Domain; + discoveredBy: Scan; + lastSeen: Date | null; + s3Key: string | null; + url: string; + status: number; + responseSize: number | null; +} + export interface Domain { id: string; name: string; diff --git a/frontend/src/types/webpage.ts b/frontend/src/types/webpage.ts deleted file mode 100644 index 7420aacc..00000000 --- a/frontend/src/types/webpage.ts +++ /dev/null @@ -1,16 +0,0 @@ -import { Scan } from './scan'; -import { Domain } from './domain'; - -export interface Webpage { - id: string; - createdAt: Date; - updatedAt: Date; - syncedAt: Date | null; - domain: Domain; - discoveredBy: Scan; - lastSeen: Date | null; - s3Key: string | null; - url: string; - status: number; - responseSize: number | null; -}