From 8364e632b712a64b46c7eb17adf6ea67d75ac5ca Mon Sep 17 00:00:00 2001 From: Jeremy Stretch Date: Mon, 22 Apr 2024 15:08:34 -0400 Subject: [PATCH] Remove obsolete type definitions --- netbox/project-static/src/global.d.ts | 109 -------------------------- 1 file changed, 109 deletions(-) diff --git a/netbox/project-static/src/global.d.ts b/netbox/project-static/src/global.d.ts index 89c106e9cc4..d7244339a3f 100644 --- a/netbox/project-static/src/global.d.ts +++ b/netbox/project-static/src/global.d.ts @@ -68,123 +68,14 @@ type APIObjectBase = { [k: string]: JSONAble; }; -type APIKeyPair = { - public_key: string; - private_key: string; -}; - -type APIReference = { - id: number; - name: string; - slug: string; - url: string; - _depth: number; -}; - -type APISecret = { - assigned_object: APIObjectBase; - assigned_object_id: number; - assigned_object_type: string; - created: string; - custom_fields: Record; - display: string; - hash: string; - id: number; - last_updated: string; - name: string; - plaintext: Nullable; - role: APIObjectBase; - tags: number[]; - url: string; -}; - type APIUserConfig = { tables: { [k: string]: { columns: string[]; available_columns: string[] } }; [k: string]: unknown; }; -type LLDPInterface = { - parent_interface: string | null; - remote_chassis_id: string | null; - remote_port: string | null; - remote_port_description: string | null; - remote_system_capab: string[]; - remote_system_description: string | null; - remote_system_enable_capab: string[]; - remote_system_name: string | null; -}; - -type LLDPNeighborDetail = { - get_lldp_neighbors_detail: { [interface: string]: LLDPInterface[] }; -}; - -type DeviceConfig = { - get_config: { - candidate: string | Record; - running: string | Record; - startup: string | Record; - error?: string; - }; -}; - -type DeviceConfigType = Exclude; - -type DeviceEnvironment = { - cpu?: { - [core: string]: { '%usage': number }; - }; - memory?: { - available_ram: number; - used_ram: number; - }; - power?: { - [psu: string]: { capacity: number; output: number; status: boolean }; - }; - temperature?: { - [sensor: string]: { - is_alert: boolean; - is_critical: boolean; - temperature: number; - }; - }; - fans?: { - [fan: string]: { - status: boolean; - }; - }; -}; - -type DeviceFacts = { - fqdn: string; - hostname: string; - interface_list: string[]; - model: string; - os_version: string; - serial_number: string; - uptime: number; - vendor: string; -}; - -type DeviceStatus = { - get_environment: DeviceEnvironment | ErrorBase; - get_facts: DeviceFacts | ErrorBase; -}; - -interface ObjectWithGroup extends APIObjectBase { - group: Nullable; -} - declare const messages: string[]; type FormControls = HTMLInputElement | HTMLSelectElement | HTMLTextAreaElement; type ColorMode = 'light' | 'dark'; type ColorModePreference = ColorMode | 'none'; -type ConfigContextFormat = 'json' | 'yaml'; - -type UserPreferences = { - ui: { - colorMode: ColorMode; - showRackImages: boolean; - }; -};