Following NXP-24031 and NXP-24282, new trash APIs are available.
We want to add them to nuxeo-js-client.
Here a non exhaustive list of what to do:
- add method on document to test if document is trashed
- add methods on document to easily trash/untrash it that returns the updated document.
- rework all places where currentLifeCycleState was used to check trashed state