@forestadmin-experimental/datasource-hubspot-translation
TypeScript icon, indicating that this package has built-in type declarations

1.1.0 • Public • Published

hubspot-datasource

Usage

agent
  .addDataSource(
    createHubSpotDataSource({
      accessToken: 'token',
      collections: {
        companies: [
          'name',
          'address',
          'address2',
          'city',
          'country',
          'createdate',
          'description',
        ],
        products: ['name'],
        projects: ['number_of_users', 'project_id', 'project_name', 'cs_owner'],
        //...
      },
      excludeOwnerCollection: false, // we handle automatically the owner collection, but you can exclude it if you want.
    }),
  )

Why is it experimental

Hubspot datasources has a few limitations that currently prevent us from having a complex support via Forest.

A few examples:

  • We currently can't handle relation natively, because Hubspot doesn't provide a way to fetch related data in a single request.
  • Hubspot API is rate-limited, which means that we can't fetch all the data in a single request (Search API up to 4 requests/seconds, Basic API 100 requests every 10 seconds).
  • Hubspot API doesn't support ALL forest operations, thus some behavior may not work as expected (Eg. Search an owner email needs to be exact, can't search of owner first/lastname, etc)

Readme

Keywords

none

Package Sidebar

Install

npm i @forestadmin-experimental/datasource-hubspot-translation

Weekly Downloads

12

Version

1.1.0

License

GPL-3.0

Unpacked Size

80.3 kB

Total Files

19

Last publish

Collaborators

  • sinkneath
  • vincentmolinieforest
  • arnaudbesnier
  • styv
  • jeffladiray