Sift flours, baking soda, baking powder and salt into a bowl.Combine sugars and butter in a mixer bowl. Beat with paddle attachment on medium speed until very light, about 5 minutes.Add eggs, one at a time, beating well after each addition.Stir in vanilla extract.Reduce speed to low and add dry ingredients. Mix until just combined, about 5 seconds.Add chocolate pieces and mix well and quickly by hand.Press a piece of plastic wrap on the dough and refrigerate for 24-36 hours.