ingestion/document_scanner: getPreferredAttachedDocumentPublicationState type based method

This customizable type based method is used in "Attach Document" and
"Scan Document" dialogs, to set a default value in the dialog for the
publication state field.
2 jobs for feat/scan_document_customizability
in 0 seconds, using 0 compute credits, and was queued for 0 seconds