nrkno / sofie-emberplus-connection

Ember+ Connection: A Part of the Sofie TV Studio Automation System
https://github.com/nrkno/Sofie-TV-automation/
MIT License
20 stars 15 forks source link

TS refactor of client #12

Closed mint-dewit closed 4 years ago

mint-dewit commented 4 years ago

Based on https://github.com/nrkno/tv-automation-emberplus-connection/pull/8 and https://github.com/nrkno/tv-automation-emberplus-connection/pull/10

This refactors the client to be written in TypeScript as well as based on the new data model. This has no intention of being backwards compatible with the old library, but does keep the expand() and getElementByPath() options. Interfaces may have changed though.

This rewrite makes the request logic fully asynchronous. Request resolval is currently based on paths and id's for function invocations. Further improvements to that logic may be nice.

So far the expand() and setValue() calls have been tested and found working against Lawo's R3lay software