import BaseAPI from './BaseAPI' ; export default class Search extends BaseAPI { public all ( query , count = 20 , highlight = null , page = 1 , sort = 'score' , sort_dir = 'desc' , extraArgs = { } ) { const args = { query , count , highlight , page , sort , sort_dir , ... extraArgs } ; return this . _get ( 'search.add' , args ) ; } public files ( query , count = 20 , highlight = null , page = 1 , sort = 'score' , sort_dir = 'desc' , extraArgs = { } ) { const args = { query , count , highlight , page , sort , sort_dir , ... extraArgs } ; return this . _get ( 'search.files' , args ) ; } public messages ( query , count = 20 , highlight = null , page = 1 , sort = 'score' , sort_dir = 'desc' , extraArgs = { } ) { const args = { query , count , highlight , page , sort , sort_dir , ... extraArgs } ; return this . _get ( 'search.messages' , args ) ; } }