UNPKG

@termii/node

Version:

Nodejs SDK wrapper for Termii API written with Typescript support

47 lines (46 loc) 1.21 kB
import { BaseMetaResponse, MessageResponse } from './constants'; interface Campaign { campaign_id: string; phone_book: string; sender: string; camp_type: string; channel: string; total_recipients: number; run_at: string; status: string; created_at: string; } interface CampaignHistory { id: number; sender: string; receiver: string; message: string; message_abbreviation: string; amount: number; channel: string; sms_type: string; message_id: string; status: string; date_created: string; last_updated: string; } export interface IFetchCampaignsResponse extends BaseMetaResponse<Campaign> { } export interface IFetchCampaignHistoryResponse extends BaseMetaResponse<CampaignHistory> { } export interface ISendCampaign { country_code: string; sender_id: string; message: string; channel: string; message_type: string; phonebook_id: string; delimiter: string; remove_duplicate: string; campaign_type: string; schedule_time: string; schedule_sms_status: string; } export interface ISendCampaignResponse extends MessageResponse { } export {};