arcade-mcp/toolkits/hubspot/arcade_hubspot/enums.py
Renato Byrro de227c5f51
Hubspot toolkit (#363)
Reviewer:

1. DM me to get a client ID/secret for the Hubspot app and login
credentials for a sample Hubspot account
2. For now, you'll need to run the engine on the branch
`nate/token-introspection` for the auth flow to work with Hubspot
3. Add the following to `auth.providers` in your engine yaml:

```yaml
- id: arcade-hubspot
  description: 'Hubspot provider'
  enabled: true
  type: oauth2
  provider_id: hubspot
  client_id: ${env:HUBSPOT_CLIENT_ID}
  client_secret: ${env:HUBSPOT_CLIENT_SECRET}
```
2025-04-22 17:43:15 -03:00

20 lines
418 B
Python

from enum import Enum
class HubspotObject(Enum):
ACCOUNT = "account"
CALL = "call"
COMMUNICATION = "communication"
COMPANY = "company"
CONTACT = "contact"
DEAL = "deal"
EMAIL = "email"
MEETING = "meeting"
NOTE = "note"
TASK = "task"
@property
def plural(self) -> str:
if self.value == "company":
return "companies"
return f"{self.value}s"