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

DefinedCustomObject

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

Use with AI:Rippling AI ChatGPT Claude Cursor

Type definition​

export type DefinedCustomObject<D extends {
    fields: object;
    apiName: string;
}> = Omit<D, 'fields' | 'inputs' | 'records' | 'schema'> & ObjectMetadataOptions & {
    readonly fields: {
        readonly [K in keyof D['fields']]: Omit<D['fields'][K], 'apiName'> & {
            readonly apiName: `${Unsuffixed<Extract<K, string>>}__c`;
            readonly objectApiName: D['apiName'];
        };
    };
    readonly records: D extends AnyCustomObjectDefinition ? Readonly<ObjectRecords<D>> : never;
    readonly schema: D extends AnyCustomObjectDefinition ? Readonly<ObjectSchema> : never;
    readonly inputs: D extends AnyCustomObjectDefinition ? {
        readonly create: ValueParser<ObjectCreateInput<D>>;
        readonly update: ValueParser<ObjectUpdateInput<D>>;
    } : never;
};