I have added a “Card” integraiton into my HS account. It can be shown on the sidebar. My question is how to get the currently displaying card type in the react code?
I know I can get a context object from the request. The context object includes:
```context:
crm: {objectId: 51370421137, objectTypeId: ‘0-2’}
extension: {appId: 30993424, appName: ‘extension-Application’, cardTitle: ‘New Card’}location: “crm.record.sidebar”
…
```
It has objectId which is the record ID. It also includes a objectTypeId. How do I know if the record is a company record or a contact record? Where can I find the mapping for objectTypeId?