Skip to content

Commit

Permalink
Update type Webpage to remove domain import
Browse files Browse the repository at this point in the history
  • Loading branch information
ameliav committed Sep 27, 2024
1 parent 2ebcf1d commit 19661bc
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 18 deletions.
2 changes: 1 addition & 1 deletion frontend/src/components/DomainDetails.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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';

Expand Down
16 changes: 15 additions & 1 deletion frontend/src/types/domain.ts
Original file line number Diff line number Diff line change
@@ -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
Expand Down Expand Up @@ -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;
Expand Down
16 changes: 0 additions & 16 deletions frontend/src/types/webpage.ts

This file was deleted.

0 comments on commit 19661bc

Please sign in to comment.