The minimal per-part shape the tree builder consumes.

interface BodyPartLike {
    index: number;
    label: string;
    locations: readonly BodyLocationLike[];
    role?: string;
    shortcode: string;
}

Properties

index: number
label: string
locations: readonly BodyLocationLike[]
role?: string

Pre-formatted functional-role badge text; omitted when the part has no roles.

shortcode: string