Defines an object schema, including its properties and associations.

Constructors

Properties

archived?: boolean
associations: AssociationDefinition[]

Associations defined for a given object type.

createdAt?: Date

When the object schema was created.

createdByUserId?: number
description?: string
fullyQualifiedName?: string

An assigned unique ID for the object, including portal ID and object name.

id: string

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

name: string

A unique name for the schema's object type.

objectTypeId?: string
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: Property[]

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.

updatedAt?: Date

When the object schema was last updated.

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

Methods

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