(value: unknown, nameField: string)
| 147 | } |
| 148 | |
| 149 | function readClientDeviceIdentity(value: unknown, nameField: string) { |
| 150 | const record = asRecord(value); |
| 151 | return { |
| 152 | record, |
| 153 | platform: readRequiredPlatform(record, 'platform'), |
| 154 | id: readRequiredString(record, 'id'), |
| 155 | name: readRequiredString(record, nameField), |
| 156 | target: readDeviceTarget(record, 'target'), |
| 157 | }; |
| 158 | } |
| 159 | |
| 160 | function buildClientDevicePlatformFields( |
| 161 | platform: AgentDeviceDevice['platform'], |
no test coverage detected