2024-12-07 14:09:53 +05:00
|
|
|
export type PaymentType = {
|
|
|
|
numberOfMonths: number;
|
|
|
|
userId: string;
|
|
|
|
deviceIds: string[];
|
|
|
|
amount: number;
|
|
|
|
paid: boolean;
|
|
|
|
};
|
2024-12-22 21:34:57 +05:00
|
|
|
|
2024-12-25 17:21:04 +05:00
|
|
|
export type TopupType = {
|
|
|
|
amount: number;
|
|
|
|
userId: string;
|
|
|
|
paid: boolean;
|
|
|
|
};
|
|
|
|
|
2024-12-22 21:34:57 +05:00
|
|
|
interface IpAddress {
|
|
|
|
ip: string;
|
|
|
|
mask: number;
|
|
|
|
}
|
|
|
|
|
|
|
|
interface Ipv6Address {
|
|
|
|
ip: string;
|
|
|
|
prefix: number;
|
|
|
|
}
|
|
|
|
|
|
|
|
export interface MacAddress {
|
|
|
|
ruleId?: number;
|
|
|
|
name: string;
|
|
|
|
macAddress: string;
|
|
|
|
}
|
|
|
|
|
|
|
|
export interface GroupProfile {
|
|
|
|
groupId: string;
|
|
|
|
site?: string;
|
|
|
|
name: string;
|
|
|
|
buildIn?: boolean;
|
|
|
|
ipList?: IpAddress[];
|
|
|
|
ipv6List?: Ipv6Address[];
|
|
|
|
macAddressList?: MacAddress[];
|
|
|
|
count: number;
|
|
|
|
type: number;
|
|
|
|
resource: number;
|
|
|
|
}
|
|
|
|
|
|
|
|
export interface OmadaResponse {
|
|
|
|
errorCode: number;
|
|
|
|
msg: string;
|
|
|
|
result: {
|
|
|
|
data: GroupProfile[];
|
|
|
|
};
|
|
|
|
}
|
2025-01-10 15:59:44 +05:00
|
|
|
|
|
|
|
export interface TNationalPerson {
|
|
|
|
nic: string;
|
|
|
|
name: string;
|
|
|
|
name_en: string;
|
|
|
|
dob: string;
|
|
|
|
gender: "M" | "F"; // Assuming gender can only be Male or Female
|
|
|
|
house_name: string;
|
|
|
|
house_name_en: string;
|
|
|
|
island_name: string;
|
|
|
|
island_name_en: string;
|
|
|
|
atoll: string;
|
|
|
|
atoll_en: string;
|
|
|
|
constituency: string;
|
|
|
|
district_en: string | null;
|
|
|
|
block_no: string | null;
|
|
|
|
email: string | null;
|
|
|
|
primary_contact: string;
|
|
|
|
image_url: string;
|
|
|
|
}
|