RaynorUE / snich

Application for code work on a ServiceNow Instance
22 stars 4 forks source link

Typescript / intellisense generation for Script Includes and other things #236

Open RaynorUE opened 9 months ago

RaynorUE commented 9 months ago

Currently, I have business rules that can execute on an SN Instance that will generate the "Typescript definition" files from the script include code dynamically. However, this has the downside of confusing SN Certifiers (For reading Script includes table)...

Going to consider moving ALL of that functionality for script includes / table definitions to be something that happens with SNICH when it connects to an instance and pulls down stuff, tables, script includes, etc.

Adding some additional notes, regarding solutioning. Consider caching the "Record count" and last modified date in sys dictionary, sys_db_object, sys_script_include, and check that on each "load record / load all files" to see if we need to pull the new stuff down or not, while it is an extra API Call every time, it's going to be very fast / minimal.