Getting product specification in faststore v2

Good morning.
I need to fetch product specification information and product rules. To do so, I followed the API extension documentation.
I was using files with the .tsx extension and there were no changes in the usePDP hook. I changed it to .ts as mentioned in the documentation and started getting ‘GraphQL was not optimized and the TS files were not updated. Changes in the GraphQL layer had no effect.’
Details about each structure are attached in the PDF
ApiExtension.pdf (92.7 KB)