import { HttpService } from '@nestjs/axios'; import { IotSimModuleOptions } from '../interfaces/options.interface'; import { OneLinkGetSimBasicInfoResponse } from '../interfaces/response/one-link/get-sim-basic-info.one-link.interface'; import { BaseResponse } from '../interfaces/response/base.response.interface'; import { OneLinkGetSimStatusResponse } from '../interfaces/response/one-link/get-sim-status.one-link.interface'; import { AuthUtil } from '../utils/auth.util'; import { OneLinkGetSimChangeHistoryResponse } from '../interfaces/response/one-link/get-sim-change-history.one-link.interface'; import { OneLinkGetSimImeiResponse } from '../interfaces/response/one-link/get-sim-imei.one-link.interface'; import { OneLinkGetSimCardInfoBatchResponse } from '../interfaces/response/one-link/get-sim-card-info-batch.one-link.interface'; import { OneLinkGetSimPlatformBatchResponse } from '../interfaces/response/one-link/get-sim-platform-batch.one-link.interface'; import { OneLinkGetSimStopReasonResponse } from '../interfaces/response/one-link/get-sim-stop-reason.one-link.interface'; import { OneLinkGetSimDataMarginResponse } from '../interfaces/response/one-link/get-sim-data-margin.one-link.interface'; import { OneLinkGetSimDataUsageResponse } from '../interfaces/response/one-link/get-sim-data-usage.one-link.interface'; import { OneLinkGetSimDataUsageDailyBatchResponse } from '../interfaces/response/one-link/get-sim-data-usage-daily-batch.one-link.interface'; import { OneLinkGetSimDataUsageInpoolResponse } from '../interfaces/response/one-link/get-sim-data-usage-inpool.one-link.interface'; import { OneLinkGetSimDataUsageMonthlyBatchResponse } from '../interfaces/response/one-link/get-sim-data-usage-monthly-batch.one-link.interface'; export declare class OneLinkIotSimService { constructor(oneLinkKey: string, options: IotSimModuleOptions, httpService: HttpService, authUtil: AuthUtil); readonly oneLinkKey: string; readonly options: IotSimModuleOptions; readonly httpService: HttpService; readonly authUtil: AuthUtil; private requestObj; private requestArr; /** * 获取token * @param refresh 是否刷新token * @returns token */ getToken(refresh?: boolean): Promise>; /** 单卡基本信息查询 */ getSimBasicInfo(iccid: string): Promise>; /** 单卡状态查询 */ getSimStatus(iccid: string): Promise>; /** 单卡状态变更历史查询 */ getSimChangeHistory(iccid: string): Promise>; /** 单卡实时使用终端 IMEI 查询 */ getSimImei(iccid: string): Promise>; /** 码号信息批量查询 */ getSimCardInfoBatch(iccidList: string[]): Promise>; /** 物联卡归属平台批量查询 */ getSimPlatformBatch(iccidList: string[]): Promise>; /** 单卡停机原因查询 */ getSimStopReason(iccid: string): Promise>; /** 单卡本月套餐内流量使用量实时查询 */ getSimDataMargin(iccid: string): Promise>; /** 单卡本月流量累计使用量查询 */ getSimDataUsage(iccid: string): Promise>; /** * 物联卡单日 GPRS 流量使用量批量查询 * @param iccidList ICCID 列表 * @param queryDate 查询具体某一天时间。当前时间前一天开始的 7 日内。日期格式为 yyyyMMdd * @returns 查询结果 */ getSimDataUsageDailyBatch(iccidList: string[], queryDate: string): Promise>; /** 单卡流量池内使用量实时查询 */ getSimDataUsageInpool(iccid: string): Promise>; /** * 物联卡单月 GPRS 流量使用量批量查询 * @param iccidList ICCID 列表 * @param queryDate 查询最近 6 个月中的某月,其中本月数据截止为前一天,日期格式为 yyyyMM * @returns 查询结果 */ getSimDataUsageMonthlyBatch(iccidList: string[], queryDate: string): Promise>; }