- Use type-only import for HttpContext in exceptions/handler.ts - Use #services alias instead of relative path in device_record.ts - Reformat api_key_middleware and cwmp_logger_middleware per prettier
26 lines
871 B
TypeScript
26 lines
871 B
TypeScript
import { type DeviceId } from './device_id.js'
|
|
import { type PropertySnapshot, type ParameterSnapshot } from './device_parameter.js'
|
|
import { type DeviceComplianceInfo } from '../configuration/compliance.js'
|
|
import { type DataModel, type GpnStatus, type GpnCircuitBreaker } from './device.js'
|
|
import type { DeviceReference } from '#services/references/types'
|
|
|
|
export interface DeviceRecord {
|
|
identifier?: string
|
|
deviceId: DeviceId
|
|
properties: PropertySnapshot[]
|
|
parameters: ParameterSnapshot[]
|
|
gpnStatus?: GpnStatus
|
|
dataModel?: DataModel
|
|
gpnCircuitBreaker?: GpnCircuitBreaker
|
|
lastGpnSentDate?: Date | null
|
|
operationalStatus?: string
|
|
lastFailureReason?: string
|
|
compliance?: DeviceComplianceInfo
|
|
provisioningCode?: string
|
|
references?: DeviceReference[]
|
|
lastPeriodicInformAt?: Date
|
|
lastRemoteIp?: string
|
|
updatedAt?: Date
|
|
createdAt?: Date
|
|
}
|