import { RuleContext } from '@alfresco/adf-extensions' ; /**
 * Checks if the quick share repository option is enabled or not.
 * JSON ref: `repository.isQuickShareEnabled`
 */ export function hasQuickShareEnabled ( context ) { return context . repository . status . isQuickShareEnabled ; } export function isMajorVersionAvailable ( context , versionNumber ) { const majorVersion = context . repository . version ?. major ? parseInt ( context . repository . version . major , 10 ) : 0 ; return majorVersion >= parseInt ( versionNumber , 10 ) ; }