Provided herein are Heteroaryl Compounds having the following structure: wherein R 1 , R 2 , L, X, Y, Z, Q, A and B are as defined herein, compositions comprising an effective amount of a Heteroaryl Compound and methods for treating or preventing cancer, inflammatory conditions, immunological conditions, metabolic conditions and conditions treatable or preventable by inhibition of a kinase pathway comprising administering an effective amount of a Heteroaryl Compound to a patient in need thereof.