add getModuleTemplateType to service and repository