UNPKG

airalo-sdk-type

Version:

UNOFFICIAL AIRALO API INTEGRATION FOR JAVASCRIPT/TYPESCRIPT

87 lines (86 loc) 1.85 kB
type Image = { width: number; height: number; url: string; }; type Network = { name: string; types: string[]; }; type Coverage = { name: string; code: string; networks: Network[]; }; type APNConfig = { apn_type: string; apn_value: string | null; }; type CurrencyPrice = { [currency: string]: number; }; type PackagePrices = { net_price: CurrencyPrice; recommended_retail_price: CurrencyPrice; }; export type Package = { id: string; type: string; price: number; amount: number; day: number; is_unlimited: boolean; title: string; short_info: string | null; qr_installation: string; manual_installation: string; is_fair_usage_policy: boolean; fair_usage_policy: string | null; data: string; voice: number | null; text: number | null; net_price: number; prices: PackagePrices; }; export type Operator = { id: number; style: string; gradient_start: string; gradient_end: string; type: string; is_prepaid: boolean; title: string; esim_type: string; warning: string | null; apn_type: string; apn_value: string | null; is_roaming: boolean; info: string[]; image: Image | null; plan_type: string; activation_policy: string; is_kyc_verify: boolean; rechargeability: boolean; other_info: string | null; coverages: Coverage[]; install_window_days: number | null; topup_grace_window_days: number | null; apn: { ios: APNConfig; android: APNConfig; }; packages: Package[]; countries: { country_code: string; title: string; image: Image; }[]; }; export type CountryData = { slug: string; country_code: string; title: string; image: Image; operators: Operator[]; }; export {};