Trigger JS Query After Successful Import

I import a lot of data into RT from a construction management system that does not have a REST API. My feature request is to be able to trigger a JS query after a successful import.

Why? For example, I import a CSV of payments that has vendor names in one column. I'd like to automatically run an UPDATE query to insert the vendors UUID from a vendors table into the payments table so that I have a proper foreign key relationship.