Quality module is for filtering and ranking search results based on how much profile meta data they have available
Methods
-
innerfilterQuality(data, type, config){array}
-
Name Type Description dataarray account data objects to cast/scheme
typestring valid types are
qualityanddomainconfigarray | string when
typeisqualityisarraywith values:['name', 'bio', 'avatar', 'accounts'], else is string of domain extensions to filter for.id.blockstack/id.blockstack .id.onenameReturns:
Type Description array returns array of account data objects filtered according to typeandconfigparams -
innerrankQuality(data){array}
-
Name Type Description dataarray array of casted/schemed account data objects
Returns:
Type Description array returns array of casted/schemed account data objects ranked for based on whether has most or least of these: avatar,name,bio