Detects document type using consistent logic across the extension. Works with Datalayer model instances that have a 'type' property.
The document to analyze (Datalayer model instance).
Document type information with boolean flags and type string.
Detects document type using consistent logic across the extension. Works with Datalayer model instances that have a 'type' property.