UNPKG

airalo-sdk-type

Version:

UNOFFICIAL AIRALO API INTEGRATION FOR JAVASCRIPT/TYPESCRIPT

65 lines (64 loc) 1.62 kB
export type SimDataUsage = { remaining: number; total: number; expired_at: string; is_unlimited: boolean; status: "NOT_ACTIVE" | "ACTIVE" | "FINISHED" | "UNKNOWN" | "EXPIRED"; remaining_voice: number; remaining_text: number; total_voice: number; total_text: number; }; export type SimTopUpPackage = { id: string; type: string; price: number; amount: number; day: number; is_unlimited: boolean; title: string; data: string; short_info: string | null; voice: number | null; text: number | null; net_price: number; }; export type SimInstallationGuide = { ios: string; android: string; }; export type SimDetail = { id: number; created_at: string; iccid: string; lpa: string; imsis: string | null; matching_id: string; qrcode: string; qrcode_url: string; direct_apple_installation_url: string; airalo_code: string | null; apn_type: string; apn_value: string | null; is_roaming: boolean; confirmation_code: string | null; msisdn: string | null; order?: Record<string, unknown>; share?: Record<string, unknown>; }; export type SimPackageHistory = { id: string; package_id: string; status: string; created_at: string; activated_at: string | null; expired_at: string | null; data: string; day: number; }; export type NotificationType = "email_low_data" | "email_credit_limit" | "webhook_low_data" | "webhook_credit_limit"; export type NotificationConfig = { type: NotificationType; webhook_url?: string; levels?: number[]; };