Add door lock interfaces

This commit is contained in:
faris Aljohari
2024-06-28 20:47:31 +03:00
parent 062eb7660b
commit 46debaaafc

View File

@ -0,0 +1,57 @@
import { WorkingDays } from '@app/common/constants/working-days';
export interface createTickInterface {
success: boolean;
result: {
expire_time: number;
ticket_id: string;
ticket_key: string;
id?: number;
};
msg?: string;
}
export interface addDeviceObjectInterface {
name: string;
encryptedPassword: string;
effectiveTime: string;
invalidTime: string;
ticketId: string;
scheduleList?: any[];
}
export interface ScheduleDto {
effectiveTime: string;
invalidTime: string;
workingDay: WorkingDays[];
}
export interface AddDoorLockOnlineInterface {
name: string;
password: string;
effectiveTime: string;
invalidTime: string;
scheduleList?: ScheduleDto[];
}
export interface getPasswordInterface {
success: boolean;
result: [
{
effective_time: number;
id: number;
invalid_time: number;
name: string;
phase: number;
phone: string;
schedule_list?: [];
sn: number;
time_zone: string;
type: number;
},
];
msg?: string;
}
export interface deleteTemporaryPasswordInterface {
success: boolean;
result: boolean;
msg?: string;
}