For AI agents: an index of this documentation is at https://developer.rippling.com/llms.txt. Public pages have a Markdown version at the same URL with .md added.

Skip to main content
Article

CustomObjectDefinition

Type reference for CustomObjectDefinition in the Rippling SDK, including its public shape and related types.

Use with AI:Rippling AI ChatGPT Claude Cursor

Final immutable definition returned by {@link defineCustomObject }.

Type definition​

export interface CustomObjectDefinition<TObjectName extends LogicalCustomObjectName = LogicalCustomObjectName, TCategoryName extends LogicalCategoryName = LogicalCategoryName, TSections extends SectionDefinitions = {}, TFields extends FieldDefinitions = FieldDefinitions, TNameField extends NameFieldDefinition = NameFieldDefinition> extends CustomObjectIdentity<TObjectName> {
    readonly displayName: string;
    readonly pluralLabel?: string;
    readonly category: TCategoryName;
    readonly categoryDefinition?: CustomObjectCategoryDefinition<TCategoryName>;
    readonly ownerRole?: string;
    readonly enableHistory?: boolean;
    readonly categoryApiName: CategoryApiName<TCategoryName>;
    readonly description: string;
    readonly icon?: {
        readonly emoji?: string | null;
        readonly ripplingIcon?: string | null;
        readonly s3Bucket?: string;
        readonly s3Key?: string;
    };
    readonly nameField: TNameField;
    readonly sections: TSections;
    readonly fields: {
        readonly [K in Extract<keyof TFields, string>]: ResolvedFieldDefinition<K, TFields[K]>;
    };
}