37 lines
760 B
TypeScript
37 lines
760 B
TypeScript
declare namespace MasterModel {
|
|
interface SearchAlarmPaginationBody extends SearchPaginationBody {
|
|
order?: 'name' | undefined;
|
|
thing_name?: string;
|
|
thing_id?: string;
|
|
level?: number;
|
|
}
|
|
interface AlarmsResponse {
|
|
total?: number;
|
|
limit?: number;
|
|
order?: string;
|
|
dir?: string;
|
|
alarms?: Alarm[];
|
|
}
|
|
|
|
interface ConfirmAlarmRequest {
|
|
id?: string;
|
|
description?: string;
|
|
thing_id?: string;
|
|
time?: number;
|
|
}
|
|
// Alarm
|
|
interface Alarm {
|
|
name?: string;
|
|
time?: number;
|
|
level?: number;
|
|
id?: string;
|
|
confirmed?: boolean;
|
|
confirmed_email?: string;
|
|
confirmed_time?: number;
|
|
confirmed_desc?: string;
|
|
thing_id?: string;
|
|
thing_name?: string;
|
|
thing_type?: string;
|
|
}
|
|
}
|