UNPKG

fivesim-api

Version:

Node.js wrapper for the 5sim.net API - SMS verification service with TypeScript support

21 lines (20 loc) 1.67 kB
import { GuestService } from "./services/guest.service"; import { UserService } from "./services/user.service"; import type { UserProfile, Order, OrderHistoryResponse, PaymentHistoryResponse, PriceLimit, ProductsResponse, PricesResponse, CountriesResponse, NotificationResponse, SMSInboxResponse, VendorProfile, VendorWallets, VendorOrdersResponse, VendorPaymentsResponse, SuccessResponse } from "./interfaces/responses"; import type { OrderHistoryOptions, PaginationOptions, BuyNumberOptions, Language, Country, Operator, PayoutMethod, FeeSystem } from "./interfaces/types"; /** * Main class for interacting with the 5sim API * Combines both guest (static) and authenticated methods */ export declare class FiveSimAPI extends UserService { constructor(token: string); static getProducts: typeof GuestService.getProducts; static getPrices: typeof GuestService.getPrices; static getPricesByCountry: typeof GuestService.getPricesByCountry; static getPricesByProduct: typeof GuestService.getPricesByProduct; static getPricesByCountryAndProduct: typeof GuestService.getPricesByCountryAndProduct; static getNotifications: typeof GuestService.getNotifications; static getCountries: typeof GuestService.getCountries; } export type { UserProfile, Order, OrderHistoryResponse, PaymentHistoryResponse, PriceLimit, ProductsResponse, PricesResponse, CountriesResponse, NotificationResponse, SMSInboxResponse, VendorProfile, VendorWallets, VendorOrdersResponse, VendorPaymentsResponse, SuccessResponse, OrderHistoryOptions, PaginationOptions, BuyNumberOptions, Language, Country, Operator, PayoutMethod, FeeSystem, }; export * from "./utils/error";