I suspect that's generally basura / rubbish - one usually earns miles / points on a direct codeshare as if one were flying the airline. E.g. flying LY as an IB codeshare, you should earn as if flying IB; it would not work if you were flying attempting to earn as a oneworld codeshare on a non-oneworld airline - a different thing (e.g. AA operated by FJ). I can;t believe IB is that different... see the thread with contact information to "upgrade" your complaint.