From 85cfd191cea63d69dc43e14b82b3fbefadfa2832 Mon Sep 17 00:00:00 2001 From: Yogesh Ojha Date: Sun, 8 Feb 2026 13:27:45 +0530 Subject: [PATCH] add noc and routing roles --- .../whois/whois-entities-tab.svelte | 10 ++++++-- frontend/src/lib/types/whois.ts | 24 ++++++++++++------- 2 files changed, 24 insertions(+), 10 deletions(-) diff --git a/frontend/src/lib/components/whois/whois-entities-tab.svelte b/frontend/src/lib/components/whois/whois-entities-tab.svelte index 87425683..6f79300e 100644 --- a/frontend/src/lib/components/whois/whois-entities-tab.svelte +++ b/frontend/src/lib/components/whois/whois-entities-tab.svelte @@ -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(() => { diff --git a/frontend/src/lib/types/whois.ts b/frontend/src/lib/types/whois.ts index fdbc662c..929ee959 100644 --- a/frontend/src/lib/types/whois.ts +++ b/frontend/src/lib/types/whois.ts @@ -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 = { - 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 = { registrant: 'Shared Registrant', registrar: 'Shared Registrar',