Skip to content

Commit

Permalink
Add caller id match payload
Browse files Browse the repository at this point in the history
  • Loading branch information
esme committed Nov 9, 2023
1 parent 9194701 commit 3ee317f
Showing 1 changed file with 53 additions and 0 deletions.
53 changes: 53 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -414,6 +414,59 @@ onDialNumber(data) {
</p>
</details>
<details>
<summary>onCallerIdMatchSucceeded</summary>
<p>
```js
// Message indicating that HubSpot has updated an engagement
onCallerIdMatchSucceeded(data) {
const {
callId: number,
callerIdMatches: (ContactIdMatch | CompanyIdMatch)[];
} = data;
...
}
type ObjectCoordinate = {
portalId: number;
objectTypeId: string;
objectId: number;
}
type ContactIdMatch = {
callerIdType: 'CONTACT';
objectCoordinates: ObjectCoordinate;
firstName: string;
lastName: string;
email: string;
}
type CompanyIdMatch = {
callerIdType: 'COMPANY';
objectCoordinates: ObjectCoordinate;
name: string;
}
```
</p>
</details>
<details>
<summary>onCallerIdMatchFailed</summary>
<p>
```js
// Message indicating that HubSpot has failed to update an engagement
onCallerIdMatchFailed(data) {
const {
error: { message: string }
} = data;
...
}
```
</p>
</details>
<details>
<summary>onVisibilityChanged</summary>
<p>
Expand Down

0 comments on commit 3ee317f

Please sign in to comment.