@termii/node
Version:
Nodejs SDK wrapper for Termii API written with Typescript support
30 lines (29 loc) • 781 B
TypeScript
import { BaseMetaResponse, MessageResponse } from './constants';
interface Contact {
id: number;
pid: number;
phone_number: string;
email_address: string | null;
message: string | null;
company: string | null;
first_name: string | null;
last_name: string | null;
create_at: string;
updated_at: string;
}
export interface IFetchContactsResponse extends BaseMetaResponse<Contact> {
}
export interface ICreateContact {
phone_number: string;
email_address?: string;
first_name?: string;
last_name?: string;
company?: string;
country_code?: string;
}
export interface ICreateContactResponse {
data: Contact;
}
export interface IDeleteContactResponse extends MessageResponse {
}
export {};