@termii/node
Version:
Nodejs SDK wrapper for Termii API written with Typescript support
33 lines (32 loc) • 766 B
TypeScript
import { BaseResponse } from './constants';
export interface Media {
url: string;
caption: string;
}
export declare type ISendMessage = {
to: string | string[];
from: string;
type: string;
channel: 'dnd' | 'generic' | 'whatsapp';
sms: string;
media?: never;
} | {
to: string | string[];
from: string;
type: string;
channel: 'whatsapp';
sms?: never;
media: Media;
};
export interface ISendBulkMessage {
to: string[];
from: string;
type: string;
channel: 'dnd' | 'generic' | 'whatsapp';
sms: string;
}
export interface ISendMessageResponse extends BaseResponse {
message_id_str: string;
}
export interface ISendBulkMessageResponse extends BaseResponse {
}