Getting Available Output Types
1 min
Firstly we need to establish which output types are still available to use in case there has been previous outputs attached to the scribe. We can use the Autoscriber SDK for this operation by calling the .getAvailableOutTypes() method. This method will respond with a string of allowed output types for the next operation - taking into account already generated outputs and the SPECIALTY param passed to it.
.getAvailableOutTypes()
// Without SPECIALTY
let availableTemplates = scribe.getAvailableOutTypes(); // Returns a string array with available output templates
// With SPECIALTY
let availableTemplates = scribe.getAvailableOutTypes(SPECIALTY.GP); // Returns a string array with available output templates, SPECIALTY will affect this