|
| 1 | +export interface DeviceInfo { |
| 2 | + brand: string | null; |
| 3 | + manufacturer: string | null; |
| 4 | + deviceName: string | null; |
| 5 | + modelId: string | null; |
| 6 | + modelName: string | null; |
| 7 | + osName: string | null; |
| 8 | + osVersion: string | null; |
| 9 | + osBuildId: string | null; |
| 10 | + osInternalBuildId: string | null; |
| 11 | + deviceType: string | null; |
| 12 | + deviceYearClass: number | null; |
| 13 | + isDevice: boolean | null; |
| 14 | + supportedCpuArchitectures: string[] | null; |
| 15 | + totalMemory: number | null; |
| 16 | + uptime: string | null; |
| 17 | + isJailBroken: boolean | null; |
| 18 | +} |
| 19 | + |
| 20 | +export const DEVICE_INFO_FIELDS: { |
| 21 | + title: string; |
| 22 | + identifier: keyof DeviceInfo; |
| 23 | +}[] = [ |
| 24 | + { title: 'Brand', identifier: 'brand' }, |
| 25 | + { title: 'Manufacturer', identifier: 'manufacturer' }, |
| 26 | + { title: 'Device Name', identifier: 'deviceName' }, |
| 27 | + { title: 'Model ID', identifier: 'modelId' }, |
| 28 | + { title: 'Model Name', identifier: 'modelName' }, |
| 29 | + { title: 'OS Name', identifier: 'osName' }, |
| 30 | + { title: 'OS Version', identifier: 'osVersion' }, |
| 31 | + { title: 'OS Build ID', identifier: 'osBuildId' }, |
| 32 | + { title: 'OS Internal Build ID', identifier: 'osInternalBuildId' }, |
| 33 | + { title: 'Device Type', identifier: 'deviceType' }, |
| 34 | + { title: 'Device Year Class', identifier: 'deviceYearClass' }, |
| 35 | + { title: 'Physical Device', identifier: 'isDevice' }, |
| 36 | + { |
| 37 | + title: 'Supported CPU Architectures', |
| 38 | + identifier: 'supportedCpuArchitectures', |
| 39 | + }, |
| 40 | + { title: 'Total Memory (Bytes)', identifier: 'totalMemory' }, |
| 41 | + { title: 'Uptime', identifier: 'uptime' }, |
| 42 | + { title: 'Jail Broken', identifier: 'isJailBroken' }, |
| 43 | +]; |
0 commit comments