Documentation
¶
Index ¶
- Constants
- type Connector
- type ContactMetadataObserver
- func (o ContactMetadataObserver) AssessMetadata(raw json.RawMessage) (model.ProofVerdict, []model.ProofDiagnostic, error)
- func (o ContactMetadataObserver) Description() string
- func (o ContactMetadataObserver) MatchesResource(config, operation json.RawMessage, source bool) bool
- func (o ContactMetadataObserver) Plan() (proofevidence.MetadataPlan, error)
- func (o ContactMetadataObserver) ReadMetadata(ctx context.Context, transport proofevidence.MetadataIO, credential []byte, ...) (json.RawMessage, int64, proofevidence.Outcome)
- type ContactMetadataSnapshot
- type Credentials
- type ObjectSchema
- type OperationSchema
- type PropertySchema
- type Schema
- type SchemaIntrospector
Constants ¶
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) 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 ¶
type ContactMetadataObserver ¶
type ContactMetadataObserver struct {
AccountID int64 `json:"account_id"`
}
ContactMetadataObserver identifies the account whose contact schema is read.
func (ContactMetadataObserver) AssessMetadata ¶
func (o ContactMetadataObserver) AssessMetadata(raw json.RawMessage) (model.ProofVerdict, []model.ProofDiagnostic, error)
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 (o ContactMetadataObserver) Plan() (proofevidence.MetadataPlan, error)
func (ContactMetadataObserver) ReadMetadata ¶
func (o ContactMetadataObserver) ReadMetadata(ctx context.Context, transport proofevidence.MetadataIO, credential []byte, limits proofevidence.Limits) (json.RawMessage, int64, proofevidence.Outcome)
type ContactMetadataSnapshot ¶
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 PropertySchema ¶
type Schema ¶
type Schema struct {
Objects []ObjectSchema `json:"objects"`
}