device-type.ts
769 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
export const DEVICE_TYPE_CATEGORY_VALUES = [
'robot',
'controller',
'vision',
'chassis',
'communication',
'power',
'sensor',
'actuator',
'other'
] as const
export type DeviceTypeCategory = (typeof DEVICE_TYPE_CATEGORY_VALUES)[number]
export interface DeviceType {
id: number
name: string
model: string
category: DeviceTypeCategory
lengthMm: number
widthMm: number
heightMm: number
weightKg: number
hasBattery: boolean
batterySpec?: string
description?: string
updatedAt: string
}
export interface DeviceTypePayload {
name: string
model: string
category: DeviceTypeCategory
lengthMm: number
widthMm: number
heightMm: number
weightKg: number
hasBattery: boolean
batterySpec?: string
description?: string
}