whatsapp-business
Advanced tools
Comparing version 1.10.0 to 1.11.0
{ | ||
"name": "whatsapp-business", | ||
"author": "MarcosNicolau", | ||
"version": "1.10.0", | ||
"version": "1.11.0", | ||
"description": "Node.js connector for the WhatsApp Business APIs with TypeScript support, integration tests and more.", | ||
@@ -6,0 +6,0 @@ "license": "MIT", |
@@ -47,3 +47,3 @@ import { WABAErrorCodes } from "./error"; | ||
*/ | ||
type: MessageType | "system" | "unknown"; | ||
type: MessageType | "system" | "unknown" | "request_welcome"; | ||
/** | ||
@@ -71,2 +71,45 @@ * The time when the customer sent the message to the business in unix format | ||
/** | ||
* When the messages type field is set to contact, this object is included in the messages object: | ||
*/ | ||
contacts?: [ | ||
{ | ||
addresses?: { | ||
city?: string; | ||
country?: string; | ||
country_code?: string; | ||
state?: string; | ||
street?: string; | ||
type?: string; | ||
zip?: string; | ||
}[]; | ||
birthday?: string; | ||
emails?: { | ||
email: string; | ||
type?: string; | ||
}[]; | ||
name?: { | ||
formatted_name?: string; | ||
first_name?: string; | ||
last_name?: string; | ||
middle_name?: string; | ||
suffix?: string; | ||
prefix?: string; | ||
}; | ||
org?: { | ||
company?: string; | ||
department?: string; | ||
title?: string; | ||
}; | ||
phones?: { | ||
phone: string; | ||
wa_id?: string; | ||
type?: string; | ||
}[]; | ||
urls?: { | ||
url: string; | ||
type?: string; | ||
}[]; | ||
} | ||
]; | ||
/** | ||
* Context object. Only included when a user replies or interacts with one of your messages. Context objects can have the following properties | ||
@@ -170,2 +213,11 @@ */ | ||
/** | ||
* When the messages type field is set to location, this object is included in the messages object: | ||
*/ | ||
location?: { | ||
latitude: string; | ||
longitude: string; | ||
name?: string; | ||
address?: string; | ||
}; | ||
/** | ||
* Included in the messages object when a customer has placed an order. Order objects have the following properties: | ||
@@ -172,0 +224,0 @@ */ |
{ | ||
"name": "whatsapp-business", | ||
"author": "MarcosNicolau", | ||
"version": "1.10.0", | ||
"version": "1.11.0", | ||
"description": "Node.js connector for the WhatsApp Business APIs with TypeScript support, integration tests and more.", | ||
@@ -6,0 +6,0 @@ "license": "MIT", |
Sorry, the diff of this file is not supported yet
120174
2262