hubspot

package
v0.5.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 1, 2026 License: Apache-2.0 Imports: 19 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

View Source
const (

	// OperationUpsert is the saved-query operation that consumes row-object sink input.
	OperationUpsert = "upsert"

	// RecordIDFieldName is the adapter-owned column name for HubSpot record IDs.
	RecordIDFieldName = "hs_object_id"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Connector

type Connector struct {
	// contains filtered or unexported fields
}

func New

func New(
	ctx context.Context,
	config hubspotclient.Config,
	creds Credentials,
) (*Connector, error)

New constructs a HubSpot connector, preferring an OAuth access token over a static private-app token.

func (*Connector) Close

func (c *Connector) Close() error

func (*Connector) Execute

func (c *Connector) Execute(
	ctx context.Context,
	queryData json.RawMessage,
	params map[string]types.TypedParam,
	limits ...types.ExecutionLimits,
) (*result.ExecutionResult, error)

func (*Connector) IntrospectSchema

func (c *Connector) IntrospectSchema(ctx context.Context) (*Schema, error)

func (*Connector) TestConnection

func (c *Connector) TestConnection(ctx context.Context) error

type ContactMetadataObserver

type ContactMetadataObserver struct {
	AccountID int64 `json:"account_id"`
}

ContactMetadataObserver identifies the account whose contact schema is read.

func (ContactMetadataObserver) AssessMetadata

func (ContactMetadataObserver) Description

func (o ContactMetadataObserver) Description() string

func (ContactMetadataObserver) MatchesResource

func (o ContactMetadataObserver) MatchesResource(config, operation json.RawMessage, source bool) bool

func (ContactMetadataObserver) Plan

func (ContactMetadataObserver) ReadMetadata

type ContactMetadataSnapshot

type ContactMetadataSnapshot struct {
	Properties []crm.Property `json:"properties"`
}

type Credentials

type Credentials struct {
	PrivateAppToken string   `json:"private_app_token,omitempty" validate:"omitempty,min=1"`
	AccessToken     string   `json:"access_token,omitempty" validate:"omitempty,min=1"`
	GrantedScopes   []string `json:"granted_scopes,omitempty"`
}

Credentials holds datasource-specific HubSpot credential payload fields. PrivateAppToken is retained only for the static-secret API contract; OAuth grants arrive through AccessToken and are adapted to the neutral CRM client.

type ObjectSchema

type ObjectSchema struct {
	Name             string            `json:"name"`
	Label            string            `json:"label"`
	Properties       []PropertySchema  `json:"properties"`
	Operations       []OperationSchema `json:"operations"`
	ProviderMetadata map[string]any    `json:"provider_metadata,omitempty"`
}

type OperationSchema

type OperationSchema struct {
	Name  string `json:"name"`
	Label string `json:"label"`
}

type PropertySchema

type PropertySchema struct {
	Name             string         `json:"name"`
	Label            string         `json:"label"`
	Type             string         `json:"type"`
	ProviderMetadata map[string]any `json:"provider_metadata,omitempty"`
}

type Schema

type Schema struct {
	Objects []ObjectSchema `json:"objects"`
}

type SchemaIntrospector

type SchemaIntrospector interface {
	IntrospectSchema(ctx context.Context) (*Schema, error)
}

SchemaIntrospector exposes HubSpot property discovery for supported CRM objects.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL