Defines a new object type, its properties, and associations.

Constructors

Properties

associatedObjects: string[]

Associations defined for this object type.

description?: string
name: string

A unique name for this object. For internal use only.

primaryDisplayProperty?: string

The name of the primary property for this object. This will be displayed as primary on the HubSpot record page for this object type.

Properties defined for this object type.

requiredProperties: string[]

The names of properties that should be required when creating an object of this type.

searchableProperties?: string[]

Names of properties that will be indexed for this object type in by HubSpot's product search.

secondaryDisplayProperties?: string[]

The names of secondary properties for this object. These will be displayed as secondary on the HubSpot record page for this object type.

attributeTypeMap: {
    baseName: string;
    format: string;
    name: string;
    type: string;
}[] = ...
discriminator: undefined | string = undefined

Methods

  • Returns {
        baseName: string;
        format: string;
        name: string;
        type: string;
    }[]