Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 15 additions & 0 deletions new/apps/web/src/lib/common/interfaces.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
interface EolListEntry {
cycle: string;
releaseLabel: string;
releaseDate: string;
eol: string;
latest: string;
link: string;
lts: boolean;
support: string;
extendedSupport: boolean;
}

export type {
EolListEntry
}
20 changes: 20 additions & 0 deletions new/apps/web/src/lib/common/report/basicinfo.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
interface BasicInfo {
Edition: string;
Version: string;
Sku: string;
FriendlyVersion: string;
InstallDate: string;
Uptime: number;
Hostname: string;
Username: string;
Domain: string;
BootMode: string;
BootState: string;
SMBiosRamInformation: boolean;
WriteSuccess: boolean;
ErrorCount: number;
}

export type {
BasicInfo,
}
126 changes: 126 additions & 0 deletions new/apps/web/src/lib/common/report/events.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,126 @@
interface UnexpectedShutdown {
Timestamp: string;
BugcheckCode: number;
BugcheckParameter1: string;
BugcheckParameter2: string;
BugcheckParameter3: string;
BugcheckParameter4: string;
PowerButtonTimestamp: number;
}

interface MachineCheckException {
Timestamp: number | null;
MciStatusRegisterValid: boolean;
ErrorOverflow: boolean;
UncorrectedError: boolean;
ErrorReportingEnabled: boolean;
ProcessorContextCorrupted: boolean;
PoisonedData: boolean;
ExtendedErrorCode: number;
McaErrorCode: string;
ErrorMessage: string;
TransactionType: string;
MemoryHierarchyLevel: string;
RequestType: string;
Participation: string;
Timeout: string;
MemoryOrIo: string;
MemoryTransactionType: string;
ChannelNumber: string;
}

interface ErrorHeader {
Signature: string;
Revision: string;
SignatureEnd: string;
SectionCount: string;
Severity: string;
ValidBits: string;
Length: string;
Timestamp: string;
PlatformId: string;
PartitionId: string;
CreatorId: string;
NotifyType: string;
RecordId: string;
Flags: string;
PersistenceInfo: string;
}

interface ErrorDescriptor {
SectionOffset: string;
SectionLength: string;
Revision: string;
ValidBits: string;
Flags: string;
SectionType: string;
FRUId: string;
SectionSeverity: string;
FRUText: string;
}

interface WheaErrorRecord {
ErrorHeader: ErrorHeader;
ErrorDescriptors: Array<ErrorDescriptor>;
ErrorPackets: Array<string>;
}

interface PciCommandRegister {
InterruptDisable: boolean;
FastBackToBackEnable: boolean;
SErrEnable: boolean;
ParityErrorResponse: boolean;
VgaPaletteSnoop: boolean;
MemoryWriteAndInvalidateEnable: boolean;
SpecialCycles: boolean;
BusMaster: boolean;
MemorySpace: boolean;
IoSpace: boolean;
}

interface PciStatusRegister {
DetectedParityError: boolean;
SignaledSystemError: boolean;
ReceivedMasterAbort: boolean;
ReceivedTargetAbort: boolean;
SignaledTargetAbort: boolean;
DevselTiming: number;
MasterDataParityError: boolean;
FastBackToBackCapable: boolean;
SixtySixMhzCapable: boolean;
CapabilitiesList: boolean;
InterruptStatus: boolean;
}

interface PciWheaError {
Timestamp: number | null;
VendorId: string;
DeviceId: string;
FaultingDevice: string;
Command: number;
Status: number;
Bus: number;
Device: number;
Function: number;
pciCommandRegister: PciCommandRegister;
pciStatusRegister: PciStatusRegister;
}

interface Events {
UnexpectedShutdowns: Array<UnexpectedShutdown>;
MachineCheckExceptions: Array<MachineCheckException>;
WheaErrorRecords: Array<WheaErrorRecord>;
PciWheaErrors: Array<PciWheaError>;
UnexpectedShutdownCount: number;
MachineCheckExceptionCount: number;
WheaErrorRecordCount: number;
PciWheaErrorCount: number;
}

export type {
UnexpectedShutdown, MachineCheckException, ErrorHeader,
ErrorDescriptor, WheaErrorRecord, PciCommandRegister,
PciStatusRegister, PciWheaError,

Events,
}
199 changes: 199 additions & 0 deletions new/apps/web/src/lib/common/report/hardware.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,199 @@
interface RamModule {
DeviceLocation: string;
BankLocator: string;
Mnufacturer: string | null;
SerialNumber: string | null;
PartNumber: string | null;
ConfiguredSpeed: number;
Capacity: number;
}

interface Cpu {
CurrentClockSpeed: number;
LoadPercentage: number;
Manufacturer: string;
Name: string;
NumberOfEnabledCore: number;
SocketDesignation: string;
ThreadCount: number;
}

interface Gpu {
AdapterRAM: number | null;
CurrentBitsPerPixel: number | null;
CurrentHorizontalResolution: number | null;
CurrentRefreshRate: number | null;
CurrentVerticalResolution: number | null;
Description: string;
DriverDate: string;
DriverVersion: string;
}

interface Motherboard {
Manufacturer: string;
Product: string;
SerialNumber: string;
}

interface AudioDevice {
DeviceID: string;
Manufacturer: string;
Name: string;
Status: string;
}

interface Monitor {
Source: string | null;
Name: string;
ChipType: string | null;
DedicatedMemory: string;
MonitorModel: string;
CurrentMode: string;
ConnectionType: string;
}

interface EdidEntry {
FixedHeaderPattern: string;
ManufacturerId: string;
ProductCode: string;
SerialNumber: string;
ManufacturedDate: string;
EdidVersion: string;
EdidRevision: string;
VideoInputParametersBitmap: string;
HorizontalScreenSize: string;
VerticalScreenSize: string;
DisplayGamma: string;
SupportedFeaturesBitmap: string;
ChromacityCoordinates: string;
EstablishedTimingBitmap: string;
TimingInformation: string;
TimingDescriptors: string;
NumberOfExtensions: string;
Checksum: string;
}

interface Driver {
DeviceID: string;
DeviceName: string;
DriverVersion: string;
FriendlyName: string;
Manufacturer: string;
}

interface Device {
ConfigManagerErrorCode: number;
Description: string;
DeviceID: string;
Name: string;
Status: string;
}

interface BiosInfo {
BiosCharacteristics: Array<number>;
BIOSVersion: Array<string>;
BuildNumber: string | null;
Caption: string | null;
CodeSet: string | null;
CurrentLanguage: string;
Description: string;
EmbeddedControllerMajorVersion: number;
EmbeddedControllerMinorVersion: number;
IdentificationCode: number | null;
InstallableLanguages: number;
InstallDate: string | null;
LanguageEdition: string | null;
ListOfLanguages: Array<string>;
Manufacturer: string;
Name: string;
OtherTargetOS: string | null;
PrimaryBIOS: boolean;
ReleaseDate: string;
SerialNumber: string;
SMBIOSBIOSVersion: string;
SMBIOSMajorVersion: number;
SMBIOSMinorVersion: number;
SMBIOSPresent: boolean;
SoftwareElementID: string;
SoftwareElementState: number;
Status: string;
SystemBiosMajorVersion: number;
SystemBiosMinorVersion: number;
TargetOperatingSystem: number;
Version: string;
}

interface Partition {
PartitionCapacity: number;
PartitionFree: number;
PartitionLabel: string;
PartitionLetter: string;
Filesystem: string;
CfgMgrErrorCode: number;
LastErrorCode: number;
DirtyBitSet: boolean;
BitlockerEncryptionStatus: boolean;
}

interface SmartEntry {
Id: number;
Name: string;
RawValue: string;
}

interface StorageDevice {
DeviceName: string;
SerialNumber: string;
DiskNumber: number;
DiskCapacity: number;
DiskFree: number;
BlockSize: number | null;
MediaType: string;
InterfaceType: string;
PartitionScheme: string;
Partitions: Array<Partition>;
SmartData: Array<SmartEntry>;
}

interface TemperatureSensor {
Hardware: string;
SensorName: string;
SensorValue: number;
}

interface Battery {
Name: string;
Manufacturer: string;
Chemistry: string;
Design_Capacity: string;
Full_Charge_Capacity: string;
Remaining_Life_Percentage: number;
}

interface Hardware {
Ram: Array<RamModule>;
Cpu: Cpu;
Gpu: Array<Gpu>;
Motherboard: Motherboard;
AudioDevices: Array<AudioDevice>;
Monitors: Array<Monitor>;
EdidData: Array<EdidEntry>;
Drivers: Array<Driver>;
Devices: Array<Device>;
BiosInfo: Array<BiosInfo>;
Storage: Array<StorageDevice>;
Temperatures: Array<TemperatureSensor> | null;
Batteries: Array<Battery>;
WriteSuccess: boolean;
ErrorCount: number;
}

export type {
RamModule, Cpu, Gpu,
Motherboard, AudioDevice, Monitor,
EdidEntry, Driver, Device,
BiosInfo, Partition, SmartEntry,
StorageDevice, TemperatureSensor, Battery,

Hardware,
};
8 changes: 8 additions & 0 deletions new/apps/web/src/lib/common/report/meta.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
interface Meta {
ElapsedTime: number;
GenerationDate: string;
}

export type {
Meta,
}
Loading