2025-12-10 15:22:10 +09:00
|
|
|
import * as Mapper from "./mapper.js";
|
|
|
|
|
import * as RawTypes from "./raw.types.js";
|
|
|
|
|
import * as Requests from "./requests.js";
|
|
|
|
|
import * as Utils from "./utils.js";
|
2025-10-03 16:37:52 +09:00
|
|
|
|
|
|
|
|
export const schemas = {
|
|
|
|
|
accountDetails: Requests.freebitAccountDetailsRequestSchema,
|
|
|
|
|
trafficInfo: Requests.freebitTrafficInfoRequestSchema,
|
|
|
|
|
topUp: Requests.freebitTopUpRequestPayloadSchema,
|
|
|
|
|
topUpApi: Requests.freebitTopUpApiRequestSchema,
|
|
|
|
|
planChange: Requests.freebitPlanChangeRequestSchema,
|
|
|
|
|
planChangeApi: Requests.freebitPlanChangeApiRequestSchema,
|
|
|
|
|
addSpec: Requests.freebitAddSpecRequestSchema,
|
|
|
|
|
cancelPlan: Requests.freebitCancelPlanRequestSchema,
|
|
|
|
|
cancelPlanApi: Requests.freebitCancelPlanApiRequestSchema,
|
|
|
|
|
quotaHistory: Requests.freebitQuotaHistoryRequestSchema,
|
|
|
|
|
esimReissue: Requests.freebitEsimReissueRequestSchema,
|
|
|
|
|
simFeatures: Requests.freebitSimFeaturesRequestSchema,
|
|
|
|
|
globalIp: Requests.freebitGlobalIpRequestSchema,
|
|
|
|
|
esimActivationParams: Requests.freebitEsimActivationParamsSchema,
|
|
|
|
|
esimActivationRequest: Requests.freebitEsimActivationRequestSchema,
|
|
|
|
|
esimAddAccount: Requests.freebitEsimAddAccountRequestSchema,
|
|
|
|
|
auth: Requests.freebitAuthRequestSchema,
|
|
|
|
|
cancelAccount: Requests.freebitCancelAccountRequestSchema,
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
export const raw = RawTypes;
|
|
|
|
|
export const mapper = Mapper;
|
2025-10-03 17:33:39 +09:00
|
|
|
export const requests = Requests;
|
2025-10-03 16:37:52 +09:00
|
|
|
|
|
|
|
|
export type EsimAccountActivationRequest = Requests.FreebitEsimActivationRequest;
|
|
|
|
|
export type TopUpRequest = Requests.FreebitTopUpRequest;
|
|
|
|
|
export type TopUpApiRequest = Requests.FreebitTopUpApiRequest;
|
|
|
|
|
export type PlanChangeRequest = Requests.FreebitPlanChangeRequest;
|
|
|
|
|
export type PlanChangeApiRequest = Requests.FreebitPlanChangeApiRequest;
|
|
|
|
|
export type SimFeaturesRequest = Requests.FreebitSimFeaturesRequest;
|
|
|
|
|
export type QuotaHistoryRequest = Requests.FreebitQuotaHistoryRequest;
|
|
|
|
|
export type EsimAddAccountRequest = Requests.FreebitEsimAddAccountRequest;
|
|
|
|
|
export type TrafficInfoRequest = Requests.FreebitTrafficInfoRequest;
|
|
|
|
|
export type CancelPlanRequest = Requests.FreebitCancelPlanRequest;
|
|
|
|
|
export type CancelPlanApiRequest = Requests.FreebitCancelPlanApiRequest;
|
|
|
|
|
export type CancelAccountRequest = Requests.FreebitCancelAccountRequest;
|
|
|
|
|
export type AuthRequest = Requests.FreebitAuthRequest;
|
2025-10-03 17:08:42 +09:00
|
|
|
export type TopUpResponse = ReturnType<typeof Mapper.transformFreebitTopUpResponse>;
|
|
|
|
|
export type AddSpecResponse = ReturnType<typeof Mapper.transformFreebitAddSpecResponse>;
|
|
|
|
|
export type PlanChangeResponse = ReturnType<typeof Mapper.transformFreebitPlanChangeResponse>;
|
|
|
|
|
export type CancelPlanResponse = ReturnType<typeof Mapper.transformFreebitCancelPlanResponse>;
|
|
|
|
|
export type CancelAccountResponse = ReturnType<typeof Mapper.transformFreebitCancelAccountResponse>;
|
|
|
|
|
export type EsimReissueResponse = ReturnType<typeof Mapper.transformFreebitEsimReissueResponse>;
|
2025-12-25 17:30:02 +09:00
|
|
|
export type EsimAddAccountResponse = ReturnType<
|
|
|
|
|
typeof Mapper.transformFreebitEsimAddAccountResponse
|
|
|
|
|
>;
|
|
|
|
|
export type EsimActivationResponse = ReturnType<
|
|
|
|
|
typeof Mapper.transformFreebitEsimActivationResponse
|
|
|
|
|
>;
|
2025-10-03 17:13:02 +09:00
|
|
|
export type AuthResponse = ReturnType<typeof Mapper.transformFreebitAuthResponse>;
|
2025-10-03 16:37:52 +09:00
|
|
|
|
2025-12-10 15:22:10 +09:00
|
|
|
export * from "./mapper.js";
|
|
|
|
|
export * from "./raw.types.js";
|
|
|
|
|
export * from "./requests.js";
|
|
|
|
|
export * from "./utils.js";
|
2025-10-03 16:37:52 +09:00
|
|
|
|
|
|
|
|
export const Freebit = {
|
|
|
|
|
...Mapper,
|
2025-10-08 13:03:31 +09:00
|
|
|
...Utils,
|
2025-10-03 17:33:39 +09:00
|
|
|
mapper: Mapper,
|
2025-10-03 16:37:52 +09:00
|
|
|
raw: RawTypes,
|
|
|
|
|
schemas,
|
2025-10-03 17:33:39 +09:00
|
|
|
requests: Requests,
|
2025-10-08 13:03:31 +09:00
|
|
|
utils: Utils,
|
2025-10-03 16:37:52 +09:00
|
|
|
};
|
|
|
|
|
|
2025-10-08 13:03:31 +09:00
|
|
|
// Deprecated: use Freebit.normalizeAccount
|
|
|
|
|
export const normalizeAccount = Utils.normalizeAccount;
|