add noc and routing roles

This commit is contained in:
Yogesh Ojha
2026-02-08 13:27:45 +05:30
parent 75a0f9e6a7
commit 85cfd191ce
2 changed files with 24 additions and 10 deletions
@@ -14,6 +14,8 @@
Phone,
MapPin,
Globe,
MonitorCog,
Cable
} from 'lucide-svelte';
interface Props {
@@ -29,7 +31,9 @@
abuse: Shield,
billing: CreditCard,
registrar: Handshake,
sponsor: Globe
sponsor: Globe,
noc: MonitorCog,
routing: Cable
};
const ROLE_ORDER: WhoisEntityRole[] = [
@@ -39,7 +43,9 @@
'abuse',
'registrar',
'billing',
'sponsor'
'sponsor',
'noc',
'routing'
];
let populatedRoles = $derived.by(() => {
+16 -8
View File
@@ -46,6 +46,8 @@ export interface WhoisParsedData {
billing: WhoisEntity[];
registrar: WhoisEntity[];
sponsor: WhoisEntity[];
noc: WhoisEntity[];
routing: WhoisEntity[];
};
unicode_name: string;
nameservers: string[];
@@ -122,18 +124,24 @@ export interface WhoisLookupResponse {
cached: boolean;
}
export type WhoisEntityRole = 'registrant' | 'administrative' | 'technical' | 'abuse' | 'billing' | 'registrar' | 'sponsor';
export type WhoisEntityRole =
| 'registrant' | 'administrative' | 'technical'
| 'abuse' | 'billing' | 'registrar' | 'sponsor'
| 'noc' | 'routing';
export const ENTITY_ROLE_LABELS: Record<WhoisEntityRole, string> = {
registrant: 'Registrant',
administrative: 'Administrative',
technical: 'Technical',
abuse: 'Abuse',
billing: 'Billing',
registrar: 'Registrar',
sponsor: 'Sponsor'
registrant: 'Registrant',
administrative: 'Administrative',
technical: 'Technical',
abuse: 'Abuse',
billing: 'Billing',
registrar: 'Registrar',
sponsor: 'Sponsor',
noc: 'NOC',
routing: 'Routing'
};
export const CORRELATION_TYPE_LABELS: Record<string, string> = {
registrant: 'Shared Registrant',
registrar: 'Shared Registrar',