whatsapp-business
Version:
Node.js connector for the WhatsApp Business APIs with TypeScript support, integration tests and more.
17 lines (16 loc) • 429 B
TypeScript
export type RegisterPhonePayload = {
messaging_product: "whatsapp";
/**
* A 6-digit pin you have previously set up
*/
pin: string;
};
export type RegisterPhoneArgs = Omit<RegisterPhonePayload, "messaging_product"> & {
phoneNumberId: string;
};
export type SetUpTwoFactorAuthPayload = {
pin: string;
};
export type SetUpTwoFactorAuthArgs = SetUpTwoFactorAuthPayload & {
phoneNumberId: string;
};