I would say that "lunch" is a noun here and "to lunch" is a prepositional phrase. "Thanks for inviting me to your home."
But one could make an argument that "to lunch" is a verb. "I invite you to go take a long walk on a short pier."
Student or Learner