Defines an object type.

Constructors

Properties

archived?: boolean
createdAt?: Date

When the object type was created.

description?: string
fullyQualifiedName?: string
id: string

A unique ID for this object type. Will be defined as {meta-type}-{unique ID}.

name: string

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

objectTypeId?: string
portalId?: number

The ID of the account that this object type is specific to.

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.

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.

updatedAt?: Date

When the object type was last updated.

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

Methods

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