[client] Migrate client/models to typescript.
This MR migrates models.js to typescript. This is a fist step to type the client, and add proper tests to the CI.
This MR migrates models.js to typescript. This is a fist step to type the client, and add proper tests to the CI.