mirror of
https://github.com/yogeshojha/rengine.git
synced 2026-09-13 21:37:42 +02:00
add noc and routing roles
This commit is contained in:
@@ -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(() => {
|
||||
|
||||
@@ -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',
|
||||
|
||||
Reference in New Issue
Block a user