Mazjī proper name: the book’s Baʿlabakk is diptote.
Iḍāfa compound: the book’s ʿAbd Allāh is treated as fully declinable (the first noun takes normal case).
Isnādī compound: the book’s Shāba Qarnāhā is mabnī.
In one line: Compound proper names do not share one rule; their internal construction determines their grammatical treatment.