airalo-sdk-type
Version:
UNOFFICIAL AIRALO API INTEGRATION FOR JAVASCRIPT/TYPESCRIPT
37 lines (36 loc) • 1.24 kB
TypeScript
import { NotificationType, NotificationConfig } from "../types/sim";
import { ApiResult } from "../utils/helpers";
type NotificationData = {
type: NotificationType;
webhook_url?: string;
levels?: number[];
created_at?: string;
};
type WebhookSimulatorParams = {
event: string;
type: string;
iccid: string;
};
export declare const NotificationOptIn: (params: NotificationConfig) => Promise<ApiResult<NotificationData>>;
export declare const NotificationOptOut: (params: {
type: NotificationType;
}) => Promise<ApiResult<{
message: string;
}>>;
export declare const GetNotification: () => Promise<ApiResult<NotificationData[]>>;
export declare const SimulateWebhook: (params: WebhookSimulatorParams) => Promise<ApiResult<{
message: string;
}>>;
declare const _default: {
NotificationOptIn: (params: NotificationConfig) => Promise<ApiResult<NotificationData>>;
NotificationOptOut: (params: {
type: NotificationType;
}) => Promise<ApiResult<{
message: string;
}>>;
GetNotification: () => Promise<ApiResult<NotificationData[]>>;
SimulateWebhook: (params: WebhookSimulatorParams) => Promise<ApiResult<{
message: string;
}>>;
};
export default _default;