Files
backend/src/device/interfaces/get.device.interface.ts
2024-04-27 18:41:14 +03:00

65 lines
1.1 KiB
TypeScript

export interface GetDeviceDetailsInterface {
result: {
productId: string;
};
success: boolean;
msg: string;
}
export interface GetDevicesByRoomIdInterface {
success: boolean;
msg: string;
result: any;
}
export interface GetDevicesByGroupIdInterface {
success: boolean;
msg: string;
result: {
count: number;
data_list: [];
};
}
export interface addDeviceInRoomInterface {
success: boolean;
msg: string;
result: boolean;
}
export interface controlDeviceInterface {
success: boolean;
result: boolean;
msg: string;
}
export interface GetDeviceDetailsFunctionsInterface {
result: {
category: string;
functions: [];
};
success: boolean;
msg: string;
}
export interface GetDeviceDetailsFunctionsStatusInterface {
result: [{ id: string; status: [] }];
success: boolean;
msg: string;
}
export interface GetProductInterface {
productType: string;
productId: string;
}
export interface DeviceInstructionResponse {
success: boolean;
result: {
productId: string;
productType: string;
functions: {
code: string;
values: any[];
dataType: string;
}[];
};
msg: string;
}