Skip to content

Commit a6f488d

Browse files
authored
Merge pull request #2 from diegomustafamarino/feature/contact-schema-refinement
Feature/contact schema refinement
2 parents abeda74 + 269063d commit a6f488d

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "evolution-api-sdk",
33
"private": false,
4-
"version": "0.6.9",
4+
"version": "0.6.10",
55
"description": "Unofficial SDK for the Evolution Whatsapp API v2",
66
"main": "lib/index.js",
77
"types": "lib/index.d.ts",

src/modules/messages/schemas/contact.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,9 @@ export const ContactMessageBodyTransform = ({
8888
contactItem.phoneNumber
8989
).formatInternational(),
9090
wuid: contactItem.phoneNumber.replace(/\D/g, ""),
91+
organization: contactItem.organization || "",
92+
email: contactItem.email || "",
93+
url: contactItem.url || "",
9194
})),
9295
});
9396

0 commit comments

Comments
 (0)